/* ==========================================================================
   Van Fontanilla: portfolio + life updates
   Dark "bento" design: navy cards, sunset-orange + sea-cyan accents (La Union).
   Dark is the default; the toggle switches to light.
   ========================================================================== */

:root {
  --bg: #070b14;
  --surface: #0d1422;
  --surface-2: #111a2b;
  --surface-3: #172238;
  --ink: #eef2f8;
  --ink-2: #b9c3d3;
  --muted: #8a96ab;
  --line: rgb(148 163 184 / 0.14);
  --line-strong: rgb(148 163 184 / 0.3);
  --accent: #ff8a3d;
  --accent-ink: #ffa566;
  --on-accent: #1b0d02;
  --accent-2: #38d6ff;
  --accent-2-ink: #74e4ff;
  --on-accent-2: #021219;
  --good: #34d399;
  --focus: #74e4ff;
  --glow-a: rgb(56 214 255 / 0.1);
  --glow-b: rgb(255 138 61 / 0.07);
  --shadow: 0 18px 40px -18px rgb(0 0 0 / 0.7);
  --radius: 18px;
  --radius-sm: 12px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Poppins", "Inter", system-ui, sans-serif;
  --gutter: 16px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f2f4f8;
  --surface: #ffffff;
  --surface-2: #f5f7fb;
  --surface-3: #eaeef5;
  --ink: #0b1220;
  --ink-2: #364153;
  --muted: #5b6678;
  --line: rgb(15 23 42 / 0.1);
  --line-strong: rgb(15 23 42 / 0.22);
  --accent: #fb7f2d;
  --accent-ink: #b14f0e;
  --on-accent: #1b0d02;
  --accent-2: #0bb4d8;
  --accent-2-ink: #0b7491;
  --on-accent-2: #021219;
  --good: #059669;
  --focus: #2563eb;
  --glow-a: rgb(11 180 216 / 0.08);
  --glow-b: rgb(251 127 45 / 0.06);
  --shadow: 0 16px 36px -18px rgb(15 23 42 / 0.25);
  color-scheme: light;
}

@media (min-width: 640px) {
  :root { --gutter: 28px; }
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 520px at 50% -8%, var(--glow-a), transparent 65%),
    radial-gradient(700px 480px at 100% 4%, var(--glow-b), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
figure { margin: 0; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 12px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  overflow-wrap: anywhere; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary, .btn-hire { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover, .btn-hire:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent), 0 8px 26px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-hire { text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; box-shadow: 0 6px 22px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-small { min-height: 38px; padding: 7px 16px; font-size: 0.85rem; border-radius: 10px; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.92rem;
  color: var(--accent-2-ink); text-decoration: none; white-space: nowrap;
}
.link-arrow span { transition: transform 0.15s ease; }
.link-arrow:hover span { transform: translateX(3px); }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer;
}
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { border-color: var(--ink-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 700; min-width: 0; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #0a0f1a; font-size: 1.1rem; font-weight: 800;
  box-shadow: 0 0 22px -6px color-mix(in srgb, var(--accent-2) 70%, transparent);
}
.brand-name { font-size: 1.02rem; white-space: nowrap; }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 12px; text-decoration: none; position: relative;
  font-weight: 500; font-size: 0.95rem; color: var(--ink-2);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }

.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px; display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { padding: 12px 4px; font-size: 1rem; }
  .site-nav a[aria-current="page"]::after { left: 4px; right: auto; width: 24px; bottom: 6px; }
}
@media (max-width: 420px) {
  .brand-name { display: none; }
}

/* ---------- Cards (shared) ---------- */
.card {
  position: relative; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { border-color: var(--line-strong); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2 { font-size: 1.05rem; font-weight: 600; }
.card-head h2 a { text-decoration: none; }
.card-head h2 a:hover { color: var(--accent-2-ink); }
.card-icon {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none;
  border-radius: 9px; color: var(--ink-2);
}
.card-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-icon-link { text-decoration: none; transition: color 0.15s ease, transform 0.15s ease; }
.card-icon-link:hover { color: var(--accent-2-ink); transform: translateX(2px); }
.card-icon-glow {
  color: var(--accent-2); border: 1px solid color-mix(in srgb, var(--accent-2) 55%, transparent);
  box-shadow: 0 0 18px -2px color-mix(in srgb, var(--accent-2) 55%, transparent), inset 0 0 10px -4px var(--accent-2);
}

/* ---------- Home ---------- */
.home { padding: 26px 0 72px; }
.home-name {
  text-align: center; text-transform: uppercase; font-weight: 800;
  font-size: clamp(2.5rem, 0.6rem + 8.4vw, 6.2rem); line-height: 0.98; letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--ink) 30%, color-mix(in srgb, var(--ink) 62%, transparent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.home-sub { text-align: center; color: var(--muted); font-size: 0.95rem; margin: 10px 0 26px; }

.bento {
  display: grid; gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "photo" "status" "updates" "ribbon" "featured" "skills" "interests" "services";
}
.card-photo { grid-area: photo; }
.card-ribbon { grid-area: ribbon; }
.card-skills { grid-area: skills; }
.card-featured { grid-area: featured; }
.card-updates { grid-area: updates; }
.card-services { grid-area: services; }
.card-status { grid-area: status; }
.card-interests { grid-area: interests; }

@media (min-width: 680px) {
  .bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "photo photo photo ribbon ribbon ribbon"
      "photo photo photo status status status"
      "updates updates updates updates updates updates"
      "featured featured featured featured featured featured"
      "skills skills skills interests interests interests"
      "services services services services services services";
  }
}
@media (min-width: 1040px) {
  .bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-areas:
      "photo photo photo ribbon ribbon ribbon updates updates updates updates updates updates"
      "photo photo photo status status status updates updates updates updates updates updates"
      "featured featured featured featured featured featured featured featured skills skills skills skills"
      "featured featured featured featured featured featured featured featured interests interests interests interests"
      "services services services services services services services services services services services services";
  }
}

/* Photo */
.card-photo { padding: 0; background: #fff; min-height: 300px; }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.card-photo img[data-position="top"] { object-position: 50% 0%; }
.card-photo img[data-position="bottom"] { object-position: 50% 100%; }
@media (min-width: 680px) { .card-photo { min-height: 0; } }

/* Ribbons */
.card-ribbon {
  min-height: 150px; padding: 0;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--surface);
}
.tape {
  position: absolute; left: -12%; right: -12%; top: 50%; height: 36px;
  display: flex; align-items: center; overflow: hidden;
  font-family: var(--font-head); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.05em;
  text-transform: uppercase; white-space: nowrap;
}
.tape-a {
  z-index: 2; transform: translateY(-80%) rotate(-7deg);
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 26px -2px color-mix(in srgb, var(--accent) 60%, transparent);
}
.tape-b {
  z-index: 1; transform: translateY(-10%) rotate(6deg);
  background: var(--accent-2); color: var(--on-accent-2);
  box-shadow: 0 0 26px -2px color-mix(in srgb, var(--accent-2) 60%, transparent);
}
.tape-track { display: flex; flex: none; }
.tape-track span { flex: none; padding-right: 0.35em; }
@media (prefers-reduced-motion: no-preference) {
  .tape-track { animation: marquee 32s linear infinite; }
  .tape-b .tape-track { animation-direction: reverse; animation-duration: 38s; }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Skills */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 12px; border-radius: 9px; font-size: 0.86rem; font-weight: 500;
  background: var(--surface-3); border: 1px solid var(--line); color: var(--ink);
}

/* Featured (current role) */
.card-featured { padding: 20px 22px 22px; display: flex; flex-direction: column; }
.featured-body {
  flex: 1; display: grid; gap: 22px 24px; align-content: center;
  grid-template-areas: "visual" "text" "stats";
}
.featured-visual { grid-area: visual; }
.featured-text { grid-area: text; }
.featured-body .mini-stats { grid-area: stats; margin-top: 0; }
@media (min-width: 560px) {
  .featured-body { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); grid-template-areas: "visual text" "stats stats"; align-items: center; }
}
.featured-visual {
  padding: 8px; border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 85%, transparent), color-mix(in srgb, #4f6bff 70%, transparent) 55%, color-mix(in srgb, var(--accent) 80%, transparent));
  box-shadow: 0 18px 40px -20px color-mix(in srgb, var(--accent-2) 70%, transparent);
}
.featured-text h3 { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem); font-weight: 700; }
.featured-org { color: var(--muted); font-size: 0.9rem; margin-top: 6px; line-height: 1.45; }
.featured-desc { color: var(--ink-2); font-size: 0.95rem; margin-top: 12px; }
.mini-stats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.mini-stats li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.mini-stats strong { font-family: var(--font-head); font-size: 1.3rem; line-height: 1.1; color: var(--ink); }
.mini-stats span { font-size: 0.78rem; color: var(--muted); line-height: 1.3; }

/* Network illustration */
.net { width: 100%; height: auto; }
.net-bg { fill: #0a1120; }
.net-rule { stroke: rgb(148 163 184 / 0.18); }
.net-title { fill: #8a96ab; font: 500 9px var(--font-body); letter-spacing: 0.04em; }
.dot-r { fill: #ff6b6b; } .dot-y { fill: #fbbf24; } .dot-g { fill: #34d399; }
.net-links path { fill: none; stroke: rgb(148 163 184 / 0.28); stroke-width: 1.5; }
.net-flow path { fill: none; stroke: #38d6ff; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 3 9; opacity: 0.9; }
.net-node rect { fill: #121c30; stroke: rgb(148 163 184 / 0.35); }
.net-node text { fill: #dbe4f0; font: 600 8.5px var(--font-body); }
.net-node-accent rect { stroke: #ff8a3d; fill: rgb(255 138 61 / 0.12); }
.net-node-core rect { stroke: #38d6ff; fill: rgb(56 214 255 / 0.14); }
.net-status rect { fill: rgb(52 211 153 / 0.12); stroke: rgb(52 211 153 / 0.45); }
.net-status text { fill: #6ee7b7; font: 600 8px var(--font-body); }
.net-pulse { fill: #34d399; }
@media (prefers-reduced-motion: no-preference) {
  .net-flow path { animation: flow 1.6s linear infinite; }
  .net-pulse { animation: pulse 1.8s ease-in-out infinite; }
}
@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes pulse { 50% { opacity: 0.35; } }

/* Interests */
.interests { list-style: none; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); }
.interests li {
  --tone: var(--accent);
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); font-weight: 500; font-size: 0.92rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.interests li:hover { border-color: color-mix(in srgb, var(--tone) 55%, transparent); transform: translateY(-2px); }
.interests li:nth-child(6n+2) { --tone: var(--accent-2); }
.interests li:nth-child(6n+3) { --tone: #34d399; }
.interests li:nth-child(6n+4) { --tone: #f472b6; }
.interests li:nth-child(6n+5) { --tone: #a78bfa; }
.interests li:nth-child(6n+6) { --tone: #fbbf24; }
.interest-icon {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: color-mix(in srgb, var(--tone) 16%, transparent); color: var(--tone);
}
.interest-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Status (home card + contact page pill) */
.status-open { --status: var(--good); }
.status-busy { --status: #f87171; }
.status-vacation { --status: #fbbf24; }
:root[data-theme="light"] .status-busy { --status: #dc2626; }
:root[data-theme="light"] .status-vacation { --status: #d97706; }
.status-light {
  position: relative; width: 12px; height: 12px; border-radius: 50%; flex: none;
  background: var(--status); box-shadow: 0 0 0 4px color-mix(in srgb, var(--status) 22%, transparent), 0 0 14px var(--status);
}
@media (prefers-reduced-motion: no-preference) {
  .status-open .status-light::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--status);
    animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
  }
}
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }

.card-status {
  display: flex; flex-direction: column; gap: 10px; padding: 18px;
  border-color: color-mix(in srgb, var(--status) 30%, var(--line));
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--status) 14%, transparent), transparent 60%),
    var(--surface);
}
.card-status:hover { border-color: color-mix(in srgb, var(--status) 55%, transparent); }
.card-status .card-head { margin-bottom: 2px; }
.card-icon-status {
  color: var(--status); border: 1px solid color-mix(in srgb, var(--status) 50%, transparent);
  box-shadow: 0 0 18px -4px color-mix(in srgb, var(--status) 70%, transparent);
}
.status-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.3;
}
.status-label .status-light { width: 10px; height: 10px; }
.status-note { color: var(--muted); font-size: 0.84rem; line-height: 1.45; padding-left: 20px; margin-top: -4px; }
.job-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.job-tags li {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 7px; border-radius: 8px;
  font-size: 0.8rem; font-weight: 600;
  background: color-mix(in srgb, var(--status) 12%, transparent); color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--status) 35%, transparent);
}
.job-tags svg { width: 13px; height: 13px; fill: none; stroke: var(--status); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.status-time { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.82rem; }
.status-time[hidden] { display: none; }
.status-time svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.status-btn { margin-top: auto; }

.status-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 20px;
  padding: 7px 16px 7px 12px; border-radius: 999px; font-weight: 500; font-size: 0.92rem;
  background: color-mix(in srgb, var(--status) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--status) 35%, transparent);
}
.status-pill .status-light { width: 10px; height: 10px; }

/* Life updates: big latest post + thumbnails */
.card-updates { display: flex; flex-direction: column; }
.card-updates .card-head h2 { font-size: 1.15rem; }
.update-hero {
  position: relative; display: block; flex: 1; min-height: 240px; border-radius: 14px; overflow: hidden;
  text-decoration: none; color: #fff; border: 1px solid var(--line); isolation: isolate;
}
.update-hero-media { position: absolute; inset: 0; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); z-index: -2; }
.update-hero-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.update-hero-media svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.update-hero:hover .update-hero-media img { transform: scale(1.04); }
.update-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgb(3 6 12 / 0.82)); }
.update-hero-text { position: absolute; left: 18px; right: 18px; bottom: 16px; display: grid; gap: 4px; justify-items: start; }
.update-hero-text strong { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); line-height: 1.2; text-shadow: 0 2px 12px rgb(0 0 0 / 0.4); }
.update-hero-text time { font-size: 0.84rem; color: rgb(255 255 255 / 0.8); }
.update-hero-badge {
  padding: 3px 9px; border-radius: 7px; margin-bottom: 4px;
  background: var(--accent); color: var(--on-accent); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.update-hero-count {
  position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgb(0 0 0 / 0.6); color: #fff; font-size: 0.76rem; font-weight: 600;
}
.thumbs { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.thumb { display: grid; gap: 8px; text-decoration: none; }
.thumb-soon { display: grid; gap: 8px; align-content: start; }
.thumb-media {
  display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden;
  background: var(--surface-3); border: 1px solid var(--line); color: var(--muted);
}
.thumb-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.thumb:hover .thumb-media img { transform: scale(1.05); }
.thumb-media svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.thumb-empty {
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 60%),
    var(--surface-3);
}
.thumb-soon .thumb-empty { opacity: 0.5; border-style: dashed; background: transparent; }
.thumb-title {
  font-size: 0.82rem; color: var(--ink-2); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.thumb:hover .thumb-title { color: var(--ink); }
.thumb-soon .thumb-title { color: var(--muted); }

/* What I do */
.services { list-style: none; display: grid; gap: 14px; }
@media (min-width: 560px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; } }
@media (min-width: 1040px) { .services { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 22px; } }
.services li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.services h3 { font-size: 0.95rem; font-weight: 600; }
.services p { font-size: 0.85rem; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.service-icon {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface-3); border: 1px solid var(--line); color: var(--accent);
}
.service-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: no-preference) {
  .bento > .card { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .bento > .card:nth-child(2) { animation-delay: 0.04s; }
  .bento > .card:nth-child(3) { animation-delay: 0.08s; }
  .bento > .card:nth-child(4) { animation-delay: 0.12s; }
  .bento > .card:nth-child(5) { animation-delay: 0.16s; }
  .bento > .card:nth-child(6) { animation-delay: 0.2s; }
  .bento > .card:nth-child(7) { animation-delay: 0.24s; }
  .bento > .card:nth-child(n+8) { animation-delay: 0.28s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Contact page ---------- */
.contact-page { padding-bottom: 80px; display: grid; gap: 40px; }
.contact-main { display: grid; gap: 12px; }
.contact-minis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.contact-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: var(--surface-3); border: 1px solid var(--line); color: var(--accent-2);
}
.contact-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-icon-lg { width: 56px; height: 56px; border-radius: 16px; color: var(--accent); }
.contact-icon-lg svg { width: 28px; height: 28px; }

.contact-primary { display: grid; gap: 18px; align-items: center; padding: 26px; }
@media (min-width: 760px) { .contact-primary { grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; padding: 28px 30px; } }
.contact-primary h2, .contact-mini h2 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-big {
  display: inline-block; margin-top: 4px; text-decoration: none; overflow-wrap: anywhere;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.05rem, 0.6rem + 2.4vw, 1.9rem); line-height: 1.2;
}
.contact-big:hover { color: var(--accent-2-ink); }
.contact-primary-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-primary-actions svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn.is-copied { border-color: var(--good); color: var(--good); }

.contact-mini { display: flex; gap: 14px; align-items: center; }
.contact-mini p, .contact-mini a { font-weight: 500; margin-top: 2px; }
.contact-mini a { color: var(--ink); }
.contact-mini a:hover { color: var(--accent-2-ink); }

.contact-section-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }
.social-grid { list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.social-card {
  --brand: var(--accent-2);
  display: flex; align-items: center; gap: 14px; height: 100%;
  padding: 16px 18px; border-radius: var(--radius); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
a.social-card:hover {
  transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 60%, transparent);
  box-shadow: 0 12px 30px -16px color-mix(in srgb, var(--brand) 70%, transparent);
}
.social-card-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; flex: none;
  background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
}
.social-card-icon svg, .social-card-go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.social-card-text { display: grid; min-width: 0; flex: 1; }
.social-card-text strong { font-family: var(--font-head); font-weight: 600; }
.social-card-text span { color: var(--muted); font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-card-go { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; color: var(--muted); background: none; border: 0; }
.social-card-go svg { width: 18px; height: 18px; }
a.social-card:hover .social-card-go { color: var(--brand); }
.social-card-copy { cursor: pointer; border: 1px solid var(--line); }
.social-card-copy:hover, .social-card-copy.is-copied { color: var(--good); border-color: var(--good); }

.brand-facebook, .brand-facebook-page { --brand: #1877f2; }
.brand-instagram { --brand: #e4405f; }
.brand-linkedin { --brand: #0a66c2; }
.brand-steam { --brand: #66c0f4; }
.brand-tiktok { --brand: #25f4ee; }
.brand-youtube { --brand: #ff3b30; }
.brand-x { --brand: var(--ink); }
.brand-discord { --brand: #5865f2; }
.brand-messenger { --brand: #0084ff; }
.brand-whatsapp { --brand: #25d366; }
.brand-viber { --brand: #7360f2; }
.brand-telegram { --brand: #26a5e4; }
.brand-github { --brand: var(--ink); }
.brand-website, .brand-other { --brand: var(--accent); }
:root:not([data-theme="light"]) .brand-facebook, :root:not([data-theme="light"]) .brand-facebook-page { --brand: #4a95ff; }
:root:not([data-theme="light"]) .brand-linkedin { --brand: #3d93e8; }

/* ---------- Shared bits for inner pages ---------- */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
  background: color-mix(in srgb, var(--accent-2) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-2) 35%, transparent);
  color: var(--accent-2-ink);
  font-family: var(--font-head); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.section-label a { color: inherit; text-decoration: none; }

.prose { color: var(--ink-2); font-size: 1.04rem; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose a { color: var(--accent-2-ink); }
.prose img { border-radius: var(--radius-sm); }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.6em; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--ink); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3em; }

.empty-state {
  padding: 40px 24px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
}
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-ink);
  font-size: 0.78rem; font-weight: 600;
}

.page-hero { padding: 48px 0 32px; }
.page-hero-center { text-align: center; }
.page-title { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
.page-lead { margin-top: 14px; color: var(--ink-2); font-size: 1.05rem; max-width: 70ch; }
.page-hero-center .page-lead { margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-actions-center { justify-content: center; }
.not-found { padding: 96px 0; }

/* ---------- Resume ("Hire me") page ---------- */
.resume-grid { display: grid; gap: 28px; padding-bottom: 80px; }
@media (min-width: 960px) { .resume-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; } }

.pill-heading {
  display: inline-block; background: var(--ink); color: var(--bg);
  font-size: 0.98rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 9px 22px; border-radius: 999px; margin: 0 0 24px;
}
.resume-main > .pill-heading:not(:first-child) { margin-top: 52px; }

.timeline { list-style: none; position: relative; display: grid; gap: 18px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 26px; bottom: 26px; width: 2px; background: var(--line-strong); }
.timeline-item { position: relative; }
.timeline-item::before {
  content: ""; position: absolute; top: 26px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface-3); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--line-strong);
}
.timeline-item:first-child::before { background: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 0 16px var(--accent); }
.resume-main .timeline-item { margin-left: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.resume-main .timeline-item::before { left: -36px; }
.timeline-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.timeline h3 { font-size: 1.12rem; font-weight: 600; }
.timeline-org { color: var(--muted); font-weight: 500; margin-top: 2px; }
.timeline-years {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 0.78rem;
  padding: 3px 11px; border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--accent-2) 12%, transparent); color: var(--accent-2-ink);
  border: 1px solid color-mix(in srgb, var(--accent-2) 30%, transparent);
}
.bullets { margin-top: 12px; padding-left: 1.15em; display: grid; gap: 6px; color: var(--ink-2); font-size: 0.95rem; }
.bullets li::marker { color: var(--accent); }

.skills-block { display: grid; gap: 22px; }
.skills-block h3 { font-size: 0.92rem; font-weight: 600; margin-bottom: 10px; color: var(--ink-2); }
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li {
  padding: 6px 13px; border-radius: 9px; font-size: 0.88rem; font-weight: 500;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
}
.chip-list-muted li { background: var(--surface-3); border-color: var(--line); color: var(--ink-2); }

.resume-side {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px;
  display: grid; gap: 28px;
}
@media (min-width: 960px) { .resume-side { position: sticky; top: 90px; } }
.side-heading {
  display: inline-block; background: var(--ink); color: var(--bg);
  font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 6px 16px; border-radius: 999px; margin-bottom: 16px;
}
.side-list { list-style: none; display: grid; gap: 16px; }
.side-list li { display: grid; gap: 2px; position: relative; padding-left: 20px; }
.side-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
.side-list strong { font-weight: 600; line-height: 1.35; }
.side-list em { color: var(--muted); }
.side-list span { font-size: 0.88rem; color: var(--ink-2); }
.lang-list { list-style: none; display: grid; gap: 12px; }
.lang-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lang-meter { display: inline-flex; gap: 7px; }
.lang-meter i { width: 11px; height: 11px; transform: rotate(45deg); background: var(--surface-3); border: 1px solid var(--line-strong); border-radius: 2px; }
.lang-meter i.on { background: var(--accent); border-color: var(--accent); }
.side-contact { list-style: none; display: grid; gap: 12px; overflow-wrap: anywhere; }
.side-contact li { display: grid; gap: 1px; }
.side-contact span { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.side-contact a { color: var(--ink); }

/* ---------- Life Updates ---------- */
.tag-cloud { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.tag-cloud a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: 0.88rem; font-weight: 500;
}
.tag-cloud a:hover { border-color: var(--accent-2); }
.tag-cloud span { color: var(--muted); font-size: 0.76rem; }

.feed { display: grid; gap: 22px; padding-bottom: 32px; }
.post-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 20px; display: grid; gap: 16px;
}
@media (min-width: 640px) { .post-card { padding: 26px; } }
.post-card:hover { border-color: var(--line-strong); }
.post-card-head { display: grid; gap: 6px; }
.post-card-head time { font-size: 0.84rem; color: var(--muted); font-weight: 500; }
.post-card-head h2 { font-size: clamp(1.25rem, 1.08rem + 0.7vw, 1.55rem); font-weight: 700; }
.post-card-head h2 a { text-decoration: none; }
.post-card-head h2 a:hover { color: var(--accent-2-ink); }
.post-card-caption, .post-card-text { color: var(--ink-2); }
.post-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }

.photo-grid { display: grid; gap: 6px; border-radius: 14px; overflow: hidden; }
.photo-grid .photo-link { position: relative; display: block; overflow: hidden; background: var(--surface-3); }
.photo-grid .photo-link.is-hidden { display: none; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.photo-grid .photo-link:hover img { transform: scale(1.03); }
.photo-grid.count-1 .photo-link { display: flex; justify-content: center; }
.photo-grid.count-1 img { height: auto; max-height: 640px; object-fit: contain; width: auto; max-width: 100%; }
.photo-grid.count-2 { grid-template-columns: 1fr 1fr; }
.photo-grid.count-2 .photo-link { aspect-ratio: 4 / 5; }
.photo-grid.count-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 3 / 2; }
.photo-grid.count-3 .photo-link:first-child { grid-row: span 2; }
.photo-grid.count-4 { grid-template-columns: 1fr 1fr; }
.photo-grid.count-4 .photo-link { aspect-ratio: 1; }
.photo-more {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgb(0 0 0 / 0.55); color: #fff; font-family: var(--font-head); font-size: 1.8rem; font-weight: 700;
}

.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.tag-list a { color: var(--accent-2-ink); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.tag-list a:hover { text-decoration: underline; }

.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 12px 0 80px; }
.pager > :last-child { justify-self: end; }
.pager-info { color: var(--muted); font-size: 0.9rem; }

/* Cards used on tag pages */
.card-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.update-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.update-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.update-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.update-card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-3); }
.update-card-media img { width: 100%; height: 100%; object-fit: cover; }
.update-card-count {
  position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgb(0 0 0 / 0.65); color: #fff; font-size: 0.78rem; font-weight: 600;
}
.update-card-body { padding: 18px 20px 22px; display: grid; gap: 8px; }
.update-card-body time { font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.update-card-body h3 { font-size: 1.1rem; font-weight: 600; }
.update-card-body p { color: var(--ink-2); font-size: 0.94rem; }
.update-card.no-photo .update-card-body { border-top: 4px solid var(--accent); }
.center-link { text-align: center; margin: 40px 0 80px; }

/* ---------- Single post ---------- */
.post { padding-bottom: 80px; }
.post-head { padding-top: 44px; padding-bottom: 26px; }
.post-title { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 12px; color: var(--muted); font-size: 0.95rem; }
.post-meta > * + *::before { content: "·"; margin-right: 14px; }
.post-meta .badge::before { content: none; }
.post-photos { display: grid; gap: 30px; }
.post-photo { display: grid; gap: 12px; }
.post-photo .photo-link { display: block; border-radius: 16px; overflow: hidden; background: var(--surface-3); border: 1px solid var(--line); cursor: zoom-in; }
.post-photo img { width: 100%; height: auto; }
.post-photo figcaption { color: var(--ink-2); font-size: 1rem; padding: 0 4px; }
.post-body { margin-top: 30px; }
.post-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.post-nav-link {
  display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); text-decoration: none; font-family: var(--font-head); font-weight: 600; line-height: 1.3;
}
.post-nav-link span { font-family: var(--font-body); font-weight: 500; font-size: 0.82rem; color: var(--muted); }
.post-nav-link:hover { border-color: var(--accent-2); }
.post-nav-older { text-align: right; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(4 7 13 / 0.95); color: #fff;
}
.lightbox::backdrop { background: rgb(0 0 0 / 0.6); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 12px 16px; }
.lightbox-figure { display: grid; gap: 14px; justify-items: center; max-width: 100%; max-height: 100%; }
.lightbox-figure img { max-width: min(100%, 1400px); max-height: calc(100dvh - 160px); width: auto; height: auto; border-radius: 8px; object-fit: contain; user-select: none; }
.lightbox-figure figcaption { display: grid; gap: 4px; text-align: center; max-width: 70ch; padding: 0 12px; }
.lightbox-caption { font-size: 0.98rem; }
.lightbox-count { font-size: 0.8rem; color: rgb(255 255 255 / 0.6); }
.lightbox-btn {
  position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid rgb(255 255 255 / 0.15); background: rgb(255 255 255 / 0.08); color: #fff; cursor: pointer; z-index: 2;
}
.lightbox-btn:hover { background: rgb(255 255 255 / 0.18); }
.lightbox-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lightbox-prev, .lightbox.is-single .lightbox-next { display: none; }
@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; transform: none; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 26px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-size: 0.93rem; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-meta { margin-top: 24px; color: var(--muted); font-size: 0.84rem; }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  :root, :root[data-theme="light"] {
    --bg: #fff; --surface: #fff; --surface-2: #f3f4f6; --surface-3: #eef0f3; --ink: #111; --ink-2: #333; --muted: #555;
    --line: #d4d4d8; --line-strong: #a1a1aa; --accent-2-ink: #0b7491; --accent-ink: #b14f0e;
  }
  body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .no-print, .skip-link, .lightbox { display: none !important; }
  .page-hero { padding: 0 0 12px; }
  .resume-grid { grid-template-columns: 1fr 250px; gap: 20px; }
  .resume-side { position: static; }
  .pill-heading, .side-heading, .chip-list li, .timeline-item::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .timeline-item { break-inside: avoid; }
}
