/* ═══════════════════════════ Fonts — served from this origin ═══════════════════════════
   Plus Jakarta Sans and JetBrains Mono, variable weight axes, `latin` subset, woff2.
   Both are SIL Open Font License 1.1; the licence texts ship alongside the files in
   /fonts/. Nothing on this page requests a subresource from any other host.
   Weight ranges match what the page actually asks for: 400–800 for the sans,
   400–600 for the mono. The single italic on the site is the print-only résumé
   subtitle, which takes a synthesised oblique rather than a second file. */
@font-face{
  font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400 800;font-display:swap;
  src:url('/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'JetBrains Mono';font-style:normal;font-weight:400 600;font-display:swap;
  src:url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ─────────────────────────── Tokens ─────────────────────────── */
/* Dark is the default: :root carries the dark palette and light is the
   override, so a page with no data-theme attribute at all still reads dark.
   Structural tokens never change, so they live only in :root.
   --text-muted carries the site's small text — the 11-13px mono labels — so it
   is kept at or above 4.5:1 against every surface it appears on (--surface,
   --surface-2, --bg, --bg-alt) in each theme. There is deliberately no
   --text-dim beside it: the dark pair was #94a3b8 and #93a2b8, one unit apart in
   two channels, which is not two greys but one grey named twice.
   tests/smoke.test.ts recomputes those ratios from these two blocks. */

/* ─────────────────────── The spacing ladder ───────────────────── */
/* Spacing in this file is written in px, as 305 values across 39 of them:
   1 to 20 inclusive, then 22, 24, 26, 28, 30, 32, 34, 36, 40, 44, 48, 52, 60,
   64, 68, 72, 84, 96 and 104. That is a ladder that was climbed rather than
   designed, and two tidy-ups were measured before being rejected.

   Alias tokens — one variable per value — would keep every rendering identical,
   make the file bigger (var(--s-12) is twelve characters where 12px is four), and
   put a layer of indirection between a reader and the rhythm, while each token
   still holds its own value. Nothing becomes easier to change.

   Snapping to a real 4px grid would change the rendering: 5px to 4, 22px to 24,
   18px to 16. That is a redesign of a page recruiters are reading today, and it
   needs eyes on the result.

   What is worth having costs no bytes: the set is closed. A spacing value outside
   the list above fails smoke.test.ts, so adding a rung means adding it there and
   saying why in the commit message — which makes "another one-off number" a
   decision visible somewhere other than in a diff. */
:root{
  color-scheme:dark;
  --bg:#020618;
  --bg-alt:#060b1e;
  --surface:#0f172b;
  --surface-2:#152038;
  --surface-3:#1b2946;
  --border:#1d293d;
  --border-soft:rgba(148,180,220,.13);
  --border-subtle:rgba(0,183,215,.2);
  --border-bright:rgba(0,183,215,.45);
  --text:#e9eef7;
  --text-muted:#94a3b8;
  --accent:#00b7d7;
  --accent-hover:#3bd3ef;
  --accent-soft:rgba(0,183,215,.13);
  --accent-line:rgba(0,183,215,.36);
  --accent-glow:rgba(0,183,215,.24);
  --accent-ink:#03151c;
  --ok:#00d294;
  --ok-soft:rgba(0,210,148,.13);
  --scrim:rgba(2,6,18,.75);
  --track-agile:rgba(36,166,86,.55);
  --track-grc:rgba(200,140,8,.65);
  --track-cyber:rgba(218,70,70,.6);
  --track-ba:rgba(46,148,224,.6);
  --shadow-sm:inset 0 1px 0 rgba(255,255,255,.06),0 2px 5px rgba(0,0,0,.5);
  --shadow:inset 0 1px 0 rgba(255,255,255,.08),0 18px 40px -16px rgba(0,0,0,.85);
  --shadow-lg:0 26px 62px -22px rgba(0,0,0,.92);
  --shadow-glow:0 0 26px -8px var(--accent-glow);
  --r:12px;
  --r-sm:8px;
  --r-lg:18px;
  --maxw:1160px;
  --nav-h:70px;
  --font:'Plus Jakarta Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --ease:cubic-bezier(.16,1,.3,1);
}
[data-theme="light"]{
  color-scheme:light;
  --bg:#f6f8fb;
  --bg-alt:#eef2f7;
  --surface:#ffffff;
  --surface-2:#f2f6fa;
  --surface-3:#e6eef5;
  --border:#d5dee9;
  --border-soft:rgba(9,25,45,.09);
  --border-subtle:rgba(0,95,120,.18);
  --border-bright:rgba(0,95,120,.4);
  --text:#0b1220;
  --text-muted:#4a5568;
  --accent:#005f78;
  --accent-hover:#0a4d5f;
  --accent-soft:rgba(0,95,120,.1);
  --accent-line:rgba(0,95,120,.3);
  --accent-glow:rgba(0,95,120,.16);
  --accent-ink:#f2fdff;
  --ok:#0d8a62;
  --ok-soft:rgba(13,138,98,.1);
  --scrim:rgba(16,28,44,.5);
  --track-agile:rgba(18,138,60,.7);
  --track-grc:rgba(0,95,120,.7);
  --track-cyber:rgba(196,40,40,.65);
  --track-ba:rgba(22,98,188,.65);
  --shadow-sm:0 2px 6px rgba(12,25,45,.07);
  --shadow:0 16px 36px -18px rgba(12,25,45,.18);
  --shadow-lg:0 24px 56px -22px rgba(12,25,45,.24);
  --shadow-glow:0 0 20px -6px var(--accent-glow);
}

/* ─────────────────────────── Base ─────────────────────────── */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:calc(var(--nav-h) + 20px)}
/* A smooth anchor scroll animates the whole document across seven sections, and
   on a thumb that is the worst possible moment: the reveals, the progress bar and
   the scroll-spy are all driven by exactly this scroll. A device whose pointer
   hovers gets the glide; a touchscreen gets the destination. */
@media (hover:hover){html{scroll-behavior:smooth}}
body{
  margin:0;background:var(--bg);color:var(--text);
  font-family:var(--font);font-size:16px;line-height:1.65;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}
html:has(dialog[open]){overflow:hidden}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit;color:inherit}
h1,h2,h3,h4{margin:0;line-height:1.16;letter-spacing:-.025em;font-weight:700;text-wrap:balance}
p{margin:0;text-wrap:pretty}
ul,ol{margin:0;padding:0;list-style:none}
::selection{background:var(--accent-line);color:var(--text)}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:6px}
hr{border:0;border-top:1px solid var(--border);margin:0}

.wrap{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:28px}
.skip{
  position:fixed;top:12px;left:12px;z-index:200;transform:translateY(-180%);
  background:var(--accent);color:var(--accent-ink);padding:10px 18px;border-radius:10px;
  font-weight:700;font-size:14px;transition:transform .22s var(--ease);box-shadow:var(--shadow);
}
.skip:focus{transform:translateY(0)}
.mono{font-family:var(--mono)}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ─────────────────────────── Chrome ─────────────────────────── */
#progress{
  position:fixed;top:0;left:0;height:3px;width:100%;z-index:120;
  background:linear-gradient(90deg,var(--accent),var(--accent-hover));
  transform:scaleX(0);transform-origin:0 50%;transition:transform .1s linear;
}

.nav{
  position:fixed;top:0;left:0;right:0;z-index:100;height:var(--nav-h);
  display:flex;align-items:center;
  background:color-mix(in srgb,var(--bg) 94%,transparent);
  border-bottom:1px solid transparent;
}
/* The stuck appearance is a scroll-driven animation (see the @supports block at
   the end of this file); there is no .is-stuck class any more, and the two
   properties that animation drives carry no transition of their own either. */
/* Frosted glass costs far more than it looks worth on a phone: a backdrop-filter
   on a fixed bar makes the browser re-sample and re-blur a full-width strip of
   the page on every scroll frame, for the whole visit. The blur is kept for a
   desktop pointer on a screen wide enough to actually read it. */
@media (min-width:821px) and (hover:hover){
  .nav{
    background:color-mix(in srgb,var(--bg) 84%,transparent);
    backdrop-filter:saturate(180%) blur(16px);
    -webkit-backdrop-filter:saturate(180%) blur(16px);
  }
}
.nav-inner{display:flex;align-items:center;gap:24px;width:100%}
.brand{display:flex;align-items:center;gap:12px;font-weight:700;letter-spacing:-.02em;margin-right:auto}
.brand-mark{
  width:34px;height:34px;border-radius:10px;flex:none;display:grid;place-items:center;
  background:linear-gradient(135deg,var(--accent),var(--accent-hover));
  color:var(--accent-ink);font-family:var(--mono);font-weight:700;font-size:14.5px;
  box-shadow:0 2px 10px -2px var(--accent-line);
}
.brand-name{font-size:15px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.brand-name span{color:var(--text-muted);font-weight:500;font-size:13.5px}
@media (max-width:1180px){.brand-name span{display:none}}

.nav-links{display:flex;align-items:center;gap:4px}
.nav-links a{
  position:relative;padding:8px 13px;border-radius:8px;font-size:14px;font-weight:500;
  color:var(--text-muted);transition:color .18s,background .18s;
}
.nav-links a:hover{color:var(--text);background:var(--surface-2)}

/* The mobile menu switch: a real checkbox, visually replaced by its label. */
.nav-switch{position:absolute;width:1px;height:1px;opacity:0;margin:0;pointer-events:none}
.nav-switch:focus-visible ~ .nav-tools .burger{outline:2px solid var(--accent);outline-offset:2px}
.nav-tools{display:flex;align-items:center;gap:10px}

.icon-btn{
  width:38px;height:38px;flex:none;display:grid;place-items:center;cursor:pointer;
  background:var(--surface);border:1px solid var(--border);border-radius:10px;color:var(--text-muted);
  transition:color .18s,border-color .18s,background .18s,transform .18s;
}
.icon-btn:hover{color:var(--text);border-color:var(--accent-line);background:var(--surface-2)}
.icon-btn:active{transform:scale(.94)}
.icon-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
/* Two children now — the magnifier and the shortcut chip — so this one button
   lays them out in a row instead of the two stacked rows a bare grid makes. */
.kbd-btn{display:flex;align-items:center;width:auto;padding:0 12px;gap:8px}
.kbd-chip{
  font-family:var(--mono);font-size:11px;padding:2px 6px;border-radius:5px;
  background:var(--surface-2);border:1px solid var(--border);color:var(--text-muted);
}
:root:not([data-theme="light"]) .only-light{display:none}
[data-theme="light"] .only-dark{display:none}

.burger{display:none;cursor:pointer}
.burger svg{pointer-events:none}
.burger svg line{transform-box:fill-box;transform-origin:center;transition:transform .22s var(--ease),opacity .18s}
/* The menu is a checkbox, so the control can show which state it is in without
   a class, an aria-expanded or a line of JavaScript: three lines fold into an X
   on :checked, the same :checked that opens the panel. */
.nav-switch:checked ~ .nav-tools .burger line:nth-of-type(1){transform:translateY(5px) rotate(45deg)}
.nav-switch:checked ~ .nav-tools .burger line:nth-of-type(2){opacity:0}
.nav-switch:checked ~ .nav-tools .burger line:nth-of-type(3){transform:translateY(-5px) rotate(-45deg)}

/* ─────────────────────────── Buttons ─────────────────────────── */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;cursor:pointer;
  padding:11px 20px;border-radius:11px;font-size:14.5px;font-weight:600;letter-spacing:-.01em;
  border:1px solid transparent;transition:transform .16s var(--ease),background .18s,border-color .18s,color .18s,box-shadow .18s;
  white-space:nowrap;
}
.btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.btn:active{transform:translateY(1px) scale(.99)}
.btn-primary{
  background:linear-gradient(135deg,var(--accent),var(--accent-hover));
  color:var(--accent-ink);box-shadow:0 8px 25px -8px var(--accent-line);
}
.btn-primary:hover{box-shadow:0 12px 30px -8px var(--accent-line);transform:translateY(-1px)}
.btn-ghost{border-color:var(--border);color:var(--text);background:var(--surface)}
.btn-ghost:hover{border-color:var(--accent-line);background:var(--surface-2);transform:translateY(-1px)}
.btn-sm{padding:8px 14px;font-size:13.5px;border-radius:9px}

/* ─────────────────────────── Sections ─────────────────────────── */
.section{padding:104px 0;position:relative}
.section + .section{border-top:1px solid var(--border-soft)}
/* Two bands break the single-background run of the long scroll. --bg-alt already
   exists in both themes and the visual audit already measures small-text contrast
   on it, so this adds depth without adding a token or a contrast risk. */
#skills,#development{background:var(--bg-alt)}
.section-head{max-width:680px;margin-bottom:48px}
.kicker{
  display:inline-flex;align-items:center;gap:9px;font-family:var(--mono);font-size:12px;
  letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin-bottom:14px;
  background:var(--accent-soft);padding:4px 12px 4px 8px;border-radius:999px;border:1px solid var(--accent-line);
}
.kicker::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--accent)}
/* The index is decoration (aria-hidden in the markup); one weight step below the
   label's 700 keeps it reading as the number, not the name. */
.kicker-num{font-weight:600}
.section-title{font-size:clamp(1.75rem,3.4vw,2.45rem);letter-spacing:-.03em}
.section-desc{margin-top:14px;color:var(--text-muted);font-size:16.5px;line-height:1.6}

.card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--r);
  transition:border-color .18s,background .18s;
  box-shadow:var(--shadow-sm);
}
.card:hover{border-color:var(--accent-line)}

/* ─────────────────────────── Hero ─────────────────────────── */
.hero{
  position:relative;padding:calc(var(--nav-h) + 68px) 0 84px;overflow:hidden;
  border-bottom:1px solid var(--border-soft);
}
.hero-bg{position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden}
.hero-bg::before{
  content:'';position:absolute;inset:0;
  background-image:linear-gradient(var(--border-soft) 1px,transparent 1px),
                   linear-gradient(90deg,var(--border-soft) 1px,transparent 1px);
  background-size:56px 56px;
  mask-image:radial-gradient(ellipse 75% 65% at 50% 15%,#000 25%,transparent 80%);
  -webkit-mask-image:radial-gradient(ellipse 75% 65% at 50% 15%,#000 25%,transparent 80%);
}
.hero-bg::after{
  content:'';position:absolute;top:-220px;left:50%;width:1050px;height:680px;transform:translateX(-50%);
  /* A radial gradient is already soft. Blurring this box by 40px asked the GPU
     for a full-size offscreen pass and changed nothing an eye can find. */
  background:radial-gradient(ellipse at center,var(--accent-soft) 0%,transparent 68%);
  opacity:.8;
}
.hero-inner{
  position:relative;z-index:1;display:grid;
  grid-template-columns:minmax(0,1.38fr) minmax(320px,0.92fr);
  gap:48px;align-items:center;
}

.hero-content{display:flex;flex-direction:column}

.status{
  display:inline-flex;align-items:center;gap:9px;padding:6px 14px 6px 10px;margin-bottom:24px;
  border:1px solid var(--border);border-radius:999px;background:var(--surface);
  font-size:12.5px;color:var(--text-muted);font-weight:500;box-shadow:var(--shadow-sm);
  width:fit-content;
}
.status .dot{width:8px;height:8px;border-radius:50%;background:var(--ok);position:relative;flex:none}
.status .dot::after{
  content:'';position:absolute;inset:-4px;border-radius:50%;border:1px solid var(--ok);
  opacity:.6;animation:pulse 2.2s ease-out infinite;
}
@keyframes pulse{0%{transform:scale(.6);opacity:.8}100%{transform:scale(1.7);opacity:0}}

.hero h1{font-size:clamp(2.35rem,5.6vw,4.1rem);letter-spacing:-.038em;line-height:1.06;font-weight:800;
  max-width:24ch;text-wrap:balance}
.hero h1 .accent{
  color:var(--accent);
  background:linear-gradient(135deg,var(--accent),var(--accent-hover));
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
}
.hero-role{
  margin-top:18px;font-family:var(--mono);font-size:clamp(.92rem,1.5vw,1.05rem);
  color:var(--text-muted);display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap;
  background:var(--surface);padding:8px 16px;border-radius:10px;border:1px solid var(--border);
  width:fit-content;box-shadow:var(--shadow-sm);
}
.hero-role .sep{color:var(--accent);opacity:.8;font-weight:700}
.hero-role-tail{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
/* One word at a time, all nine stacked in a single grid cell. The cell is as
   wide as the longest word, so the role bar never changes width and a word
   change reflows nothing; justify-items:start keeps each word — and the caret
   after it — at the left of that cell instead of stretched across it.
   The version this replaced flipped `display` inside the keyframes. Only
   Chromium 116+ and Safari 17.4+ interpolate `display` at all; everywhere else
   the base `display:none` held, words 2–6 never entered the flow, and the first
   word merely blinked on for 2.6s of every 16.8s — the rotation was invisible
   in Firefox. `opacity` is the only property animated now.
   Nine blocks rather than one because the slots are deliberately unequal
   (5.2s–9.6s): a shared block would make them all the same length, and a
   keyframe percentage cannot be a var(). Slot lengths, in seconds:
   6.4 · 8.8 · 5.2 · 9.6 · 7.0 · 5.6 · 8.2 · 6.0 · 9.2 = 66. Inside a slot the word
   fades in over 0.4s, holds, then fades out and leaves 0.4s of blank before its
   successor begins: stacked in one cell, two words half-visible at once would
   read as one smudge rather than as a change of word. */
.rotator{color:var(--text);font-weight:500;display:inline-grid;justify-items:start;min-width:0}
.rotator>.w{grid-area:1/1;opacity:0;animation-duration:66s;animation-timing-function:linear;animation-iteration-count:infinite;animation-fill-mode:both}
.rotator>.w:first-child{opacity:1}
.rotator>.w:nth-child(1){animation-name:c1}
.rotator>.w:nth-child(2){animation-name:c2}
.rotator>.w:nth-child(3){animation-name:c3}
.rotator>.w:nth-child(4){animation-name:c4}
.rotator>.w:nth-child(5){animation-name:c5}
.rotator>.w:nth-child(6){animation-name:c6}
.rotator>.w:nth-child(7){animation-name:c7}
.rotator>.w:nth-child(8){animation-name:c8}
.rotator>.w:nth-child(9){animation-name:c9}
@keyframes c1{0%{opacity:0}.61%{opacity:1}8.48%{opacity:1}9.09%{opacity:0}100%{opacity:0}}
@keyframes c2{0%{opacity:0}9.7%{opacity:0}10.3%{opacity:1}21.82%{opacity:1}22.42%{opacity:0}100%{opacity:0}}
@keyframes c3{0%{opacity:0}23.03%{opacity:0}23.64%{opacity:1}29.7%{opacity:1}30.3%{opacity:0}100%{opacity:0}}
@keyframes c4{0%{opacity:0}30.91%{opacity:0}31.52%{opacity:1}44.24%{opacity:1}44.85%{opacity:0}100%{opacity:0}}
@keyframes c5{0%{opacity:0}45.45%{opacity:0}46.06%{opacity:1}54.85%{opacity:1}55.45%{opacity:0}100%{opacity:0}}
@keyframes c6{0%{opacity:0}56.06%{opacity:0}56.67%{opacity:1}63.33%{opacity:1}63.94%{opacity:0}100%{opacity:0}}
@keyframes c7{0%{opacity:0}64.55%{opacity:0}65.15%{opacity:1}75.76%{opacity:1}76.36%{opacity:0}100%{opacity:0}}
@keyframes c8{0%{opacity:0}76.97%{opacity:0}77.58%{opacity:1}84.85%{opacity:1}85.45%{opacity:0}100%{opacity:0}}
@keyframes c9{0%{opacity:0}86.06%{opacity:0}86.67%{opacity:1}98.79%{opacity:1}99.39%{opacity:0}100%{opacity:0}}
.rotator>.w::after{
  content:'';display:inline-block;width:2px;height:1.05em;margin-left:3px;vertical-align:-.18em;
  background:var(--accent);animation:blink 1.05s steps(1) infinite;
}
@keyframes blink{0%,50%{opacity:1}50.01%,100%{opacity:0}}

.hero-lead{margin-top:22px;max-width:58ch;color:var(--text-muted);font-size:16.8px;line-height:1.68}
.hero-lead strong{color:var(--text);font-weight:600}

/* Four controls share this row now. The hero's text column is ~627px at every
   desktop width — the wrap is capped, so widening the window never widens it —
   and four buttons at .btn's default 20px/12px need ~638px, which wraps the
   résumé onto a line of its own. Ten and seventeen are the smallest numbers
   that land all four beside each other with room to spare; below 560px the
   buttons stretch to fill the column anyway (see `.cta-row .btn` there). */
.cta-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:32px;align-items:center}
.cta-row .btn{padding-inline:17px}
.hero-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px;margin-top:32px;color:var(--text-muted);font-size:13.5px}
.hero-meta span{display:inline-flex;align-items:center;gap:7px}
.hero-meta svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Hero Spotlight Card (Executive Right Column) */
.hero-spotlight{position:relative}
.spotlight-card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);
  padding:24px;box-shadow:var(--shadow);position:relative;overflow:hidden;
  transition:border-color .25s,box-shadow .25s;
}
.spotlight-card:hover{border-color:var(--accent-line);box-shadow:var(--shadow-lg),var(--shadow-glow)}
.spotlight-card::before{
  content:'';position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,var(--accent),var(--accent-hover));
}

.avatar{
  width:100%;aspect-ratio:1/1;max-width:320px;margin-inline:auto;border-radius:18px;position:relative;
  background:linear-gradient(150deg,var(--surface-2),var(--surface));
  border:1px solid var(--border);display:grid;place-items:center;overflow:hidden;
  box-shadow:0 0 30px -8px var(--accent-glow);
}
.avatar img{position:relative;width:100%;height:100%;object-fit:cover;border-radius:inherit}

.spotlight-info{margin-top:20px;display:flex;flex-direction:column;gap:12px}
.spotlight-badge{
  display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;
  color:var(--text);font-family:var(--font);
}
.spotlight-status-dot{width:8px;height:8px;border-radius:50%;background:var(--ok);flex:none;box-shadow:0 0 8px var(--ok)}
.spotlight-loc{font-size:12.5px;color:var(--text-muted);font-family:var(--mono)}
.spotlight-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
.spotlight-chip{
  font-family:var(--mono);font-size:11px;padding:3px 9px;border-radius:6px;
  background:var(--surface-2);border:1px solid var(--border-soft);color:var(--text-muted);
}
.spotlight-info .socials{display:flex;align-items:center;gap:8px;margin-top:6px;padding-top:14px;border-top:1px solid var(--border-soft)}
.socials .spotlight-cta{width:auto;height:auto;display:inline-flex;place-items:initial;padding:0 4px}
.spotlight-cta{
  margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:13px;
  font-weight:600;color:var(--accent);transition:transform .18s;white-space:nowrap;flex:none;
}
.spotlight-cta svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.spotlight-cta:hover{transform:translateX(3px)}

.socials{display:flex;gap:8px}
.socials a,.socials button{
  width:38px;height:38px;display:grid;place-items:center;border-radius:10px;cursor:pointer;
  border:1px solid var(--border);color:var(--text-muted);background:var(--surface-2);
  transition:color .18s,border-color .18s,transform .18s var(--ease),background .18s;
}
.socials a:hover,.socials button:hover{color:var(--accent);border-color:var(--accent-line);transform:translateY(-2px)}
.socials svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* Bento Stat Grid in Hero */
.hero-stats{
  grid-column:1/-1;margin-top:48px;display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;
}
.hero-stats .stat{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--r);
  padding:24px 26px;position:relative;overflow:hidden;box-shadow:var(--shadow-sm);
  transition:border-color .22s,transform .22s var(--ease),box-shadow .22s;
}
.hero-stats .stat:hover{border-color:var(--accent-line);transform:translateY(-3px);box-shadow:var(--shadow)}
.hero-stats .stat::before{
  content:'';position:absolute;top:0;left:0;right:0;height:2px;
  background:linear-gradient(90deg,var(--accent),transparent);opacity:.5;
}
.stat .n{font-size:2.55rem;font-weight:800;letter-spacing:-.035em;line-height:1}
.stat .l{margin-top:9px;font-size:13px;color:var(--text-muted);font-family:var(--mono);letter-spacing:.01em}

/* A hint, not a loop: it fades on the scroll timeline where that exists and sits
   still where it doesn't, and it is switched off for fingers, which don't need it. */
.scroll-cue{
  grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:6px;margin-top:32px;
  font-family:var(--mono);font-size:11px;font-weight:600;letter-spacing:.14em;
  text-transform:uppercase;color:var(--text-muted);
}
.scroll-cue svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ─────────────────────────── About ─────────────────────────── */
.about-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr);gap:44px;align-items:start}
.prose p + p{margin-top:16px}
.prose p{color:var(--text-muted);font-size:16.5px;line-height:1.7}
.prose strong{color:var(--text);font-weight:600}
.prose a.link{color:var(--accent);border-bottom:1px solid var(--accent-line);transition:border-color .18s,opacity .18s}
.prose a.link:hover{border-bottom-color:var(--accent)}

.facts{padding:28px;position:relative}
.facts dl{margin:0}
.facts::before{
  content:'';position:absolute;top:0;left:0;right:0;height:2px;
  background:linear-gradient(90deg,var(--accent),transparent);
}
.facts h3{
  font-size:12.5px;font-family:var(--mono);font-weight:600;letter-spacing:.1em;
  text-transform:uppercase;color:var(--accent);margin-bottom:20px;
}
.fact{display:flex;gap:14px;padding:13px 0;border-top:1px solid var(--border-soft);font-size:14.5px}
.fact:first-of-type{border-top:0;padding-top:0}
.fact dt{color:var(--text-muted);min-width:104px;flex:none;font-family:var(--mono);font-size:12.5px;padding-top:2px}
/* min-width:0 is the whole bug: a flex item's default min-width:auto refuses to
   shrink below its min-content width, which here is the longest unbreakable word
   in a value ("Telecommunications"). The row therefore grew past the card, past
   the wrap, and body{overflow-x:hidden} clipped the excess out of reach.
   overflow-wrap is declared twice on purpose: break-word for Safari below 16.4,
   anywhere where it is supported — anywhere also collapses the min-content
   contribution, which is what stops the floor being set by one long word. */
.fact dd{margin:0;color:var(--text);font-weight:500;min-width:0;overflow-wrap:break-word;overflow-wrap:anywhere}

/* ─────────────────────────── Skills ─────────────────────────── */
.skills-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.skill-group{
  padding:26px;position:relative;overflow:hidden;
  transition:transform .22s var(--ease),border-color .22s,box-shadow .22s;
}
.skill-group:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:var(--accent-line)}
.skill-group::before{
  content:'';position:absolute;top:0;left:0;right:0;height:2px;
  background:linear-gradient(90deg,var(--accent),transparent);opacity:.4;
}
.skill-group h3{font-size:15.5px;font-weight:700;display:flex;align-items:center;gap:12px;margin-bottom:18px}
.skill-group h3 svg{
  width:18px;height:18px;flex:none;fill:none;stroke:var(--accent);stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round;padding:6px;box-sizing:content-box;
  background:var(--accent-soft);border:1px solid var(--accent-line);border-radius:8px;
}
.pills{display:flex;flex-wrap:wrap;gap:8px}
.pill{
  padding:6px 12px;border-radius:8px;font-size:13px;font-weight:500;
  background:var(--surface-2);border:1px solid var(--border-soft);color:var(--text-muted);
  transition:color .18s,border-color .18s,background .18s,transform .16s;
}
.pill:hover{color:var(--text);border-color:var(--accent-line);transform:translateY(-1px)}
.pill.is-core{
  display:inline-flex;align-items:center;gap:6px;
  color:var(--accent);background:var(--accent-soft);border-color:var(--accent-line);
  font-weight:600;box-shadow:0 1px 8px -2px var(--accent-soft);
}
.pill.is-core::before{
  content:'';width:5px;height:5px;border-radius:50%;background:var(--accent);flex:none;
}

/* ─────────────────────────── Timeline ─────────────────────────── */
.timeline{position:relative;padding-left:36px}
.timeline::before{
  content:'';position:absolute;left:8px;top:12px;bottom:12px;width:2px;
  background:linear-gradient(180deg,var(--accent),var(--border) 25%,var(--border) 80%,transparent);
}
.tl-item{
  position:relative;padding:26px 28px;margin-bottom:22px;background:var(--surface);
  border:1px solid var(--border);border-radius:var(--r);box-shadow:var(--shadow-sm);
  transition:border-color .22s,transform .22s var(--ease),box-shadow .22s;
}
.tl-item:hover{border-color:var(--accent-line);transform:translateX(4px);box-shadow:var(--shadow)}
.tl-item:last-child{margin-bottom:0}
.tl-item::before{
  content:'';position:absolute;left:-35px;top:28px;width:12px;height:12px;border-radius:50%;
  background:var(--bg);border:2px solid var(--accent);box-shadow:0 0 0 3px var(--bg);
  transition:border-color .2s,box-shadow .2s,background .2s;
}
.tl-item:hover::before{background:var(--accent);box-shadow:0 0 0 5px var(--accent-soft)}
.tl-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.tl-role{font-size:17px;font-weight:700;letter-spacing:-.018em;color:var(--text)}
.tl-org{color:var(--accent);font-size:14.5px;font-weight:600}
.tl-when{margin-left:auto;font-family:var(--mono);font-size:12.4px;color:var(--text-muted);white-space:nowrap}
.tl-kind{
  font-family:var(--mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;
  padding:3px 9px;border-radius:6px;border:1px solid var(--border);color:var(--text-muted);
  background:var(--surface-2);font-weight:600;
}
.tl-body{margin-top:14px;color:var(--text-muted);font-size:15px;max-width:76ch;line-height:1.68}
.tl-body li{position:relative;padding-left:18px;margin-top:9px;text-wrap:pretty}
.tl-body li::before{content:'';position:absolute;left:2px;top:.68em;width:5px;height:5px;border-radius:2px;background:var(--accent)}
.tl-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px;padding-top:12px;border-top:1px solid var(--border-soft)}
.tag{
  font-family:var(--mono);font-size:11.5px;padding:3px 9px;border-radius:6px;
  background:var(--surface-2);border:1px solid var(--border-soft);color:var(--text-muted);
}

/* ─────────────────────────── Projects ─────────────────────────── */
.filters{
  display:inline-flex;flex-wrap:wrap;gap:6px;margin-bottom:30px;padding:6px;
  background:var(--surface);border:1px solid var(--border);border-radius:999px;
  box-shadow:var(--shadow-sm);
}
/* Filtering is entirely CSS: each radio sits immediately before its label, and
   #projects:has(#f-x:checked) decides which cat-* cards survive. Adding a
   category is one radio, one label and one rule here. */
.filter-radio{position:absolute;width:1px;height:1px;opacity:0;margin:0;pointer-events:none}
.filter-btn{
  cursor:pointer;padding:7px 16px;border-radius:999px;font-size:13.4px;font-weight:500;
  background:transparent;border:1px solid transparent;color:var(--text-muted);
  transition:color .18s,border-color .18s,background .18s;
}
.filter-btn:hover{color:var(--text);background:var(--surface-2)}
.filter-radio:checked + .filter-btn{
  background:linear-gradient(135deg,var(--accent),var(--accent-hover));
  color:var(--accent-ink);font-weight:700;box-shadow:0 2px 10px -2px var(--accent-line);
}
.filter-radio:focus-visible + .filter-btn{outline:2px solid var(--accent);outline-offset:2px}
.filter-btn .count{
  opacity:.75;font-family:var(--mono);font-size:11.5px;margin-left:6px;
  background:rgba(0,0,0,.25);padding:1px 6px;border-radius:999px;
}
[data-theme="light"] .filter-radio:checked + .filter-btn .count{background:rgba(0,0,0,.15)}

#projects:has(#f-compliance:checked) .project-card:not(.cat-compliance),
#projects:has(#f-security:checked) .project-card:not(.cat-security),
#projects:has(#f-delivery:checked) .project-card:not(.cat-delivery),
#projects:has(#f-operations:checked) .project-card:not(.cat-operations){display:none}
#projects:has(#f-compliance:checked) .projects-grid:not(:has(.cat-compliance)) ~ .empty-note,
#projects:has(#f-security:checked) .projects-grid:not(:has(.cat-security)) ~ .empty-note,
#projects:has(#f-delivery:checked) .projects-grid:not(:has(.cat-delivery)) ~ .empty-note,
#projects:has(#f-operations:checked) .projects-grid:not(:has(.cat-operations)) ~ .empty-note{display:block}

/* min(330px,100%) rather than 330px: a bare 330px track floor is wider than the
   284px left inside the wrap on a 320px phone, which held every card open at 330px
   and pushed the page past the viewport — the same clipping as the quick-facts
   card, found by measuring rather than by looking. min() keeps the intended
   minimum wherever there is room for it. */
.projects-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(330px,100%),1fr));gap:22px}
.project-card{
  display:flex;flex-direction:column;overflow:hidden;cursor:pointer;background:var(--surface);
  position:relative;
  border:1px solid var(--border);border-radius:var(--r);text-align:left;padding:0;width:100%;
  transition:border-color .22s,transform .22s var(--ease),box-shadow .22s,opacity .25s var(--ease);
  box-shadow:var(--shadow-sm);
}
.project-card:hover{border-color:var(--accent-line);transform:translateY(-3px);box-shadow:var(--shadow)}
/* The :has() filter swaps display:none instantly; this gives the cards that come
   back an entrance instead of a snap. Entry only — an exit transition would keep
   the dying card in its grid slot until the fade finished, and hop the layout. */
@starting-style{.project-card{opacity:0;transform:translateY(8px)}}

.thumb{height:152px;position:relative;overflow:hidden;border-bottom:1px solid var(--border-soft);flex:none}
.thumb::after{
  content:'';position:absolute;inset:0;opacity:.35;
  background-image:linear-gradient(rgba(255,255,255,.15) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(255,255,255,.15) 1px,transparent 1px);
  background-size:18px 18px;
}
.thumb-art{
  position:absolute;right:-10px;bottom:-16px;width:152px;height:152px;z-index:1;
  fill:none;stroke:rgba(255,255,255,.16);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
  pointer-events:none;transition:transform .35s var(--ease),stroke .35s;
}
.project-card:hover .thumb-art{transform:scale(1.06) rotate(-3deg);stroke:rgba(255,255,255,.28)}
.thumb .glyph{
  position:absolute;inset:0;display:grid;place-items:center;z-index:1;
  font-family:var(--mono);font-size:2.2rem;font-weight:700;color:rgba(255,255,255,.95);
  letter-spacing:.04em;text-shadow:0 3px 20px rgba(0,0,0,.45);
}
.t1{background:linear-gradient(135deg,#062a3f,#0b637f 60%,#22b8dc)}
.t2{background:linear-gradient(135deg,#0c3e47,#166e7a 60%,#47b0a8)}
.t3{background:linear-gradient(135deg,#083247,#0f7195 58%,#4fd0e8)}
.t4{background:linear-gradient(135deg,#152c4d,#245694 58%,#6ba0d6)}
.t5{background:linear-gradient(135deg,#1b2352,#3b4a94 58%,#8fa4e0)}
.t6{background:linear-gradient(135deg,#162f1e,#2a613a 58%,#6aa873)}

.project-body{padding:22px 22px 20px;display:flex;flex-direction:column;gap:11px;flex:1}
.project-head{display:flex;align-items:flex-start;gap:12px;min-height:44px}
.project-title{font-size:16.8px;font-weight:700;letter-spacing:-.016em;margin-right:auto;color:var(--text)}
.badge{
  font-family:var(--mono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;flex:none;
  padding:3px 8px;border-radius:6px;background:var(--accent-soft);color:var(--accent);
  border:1px solid var(--accent-line);font-weight:600;
}
.project-desc{color:var(--text-muted);font-size:14.5px;line-height:1.62}
.project-foot{margin-top:auto;padding-top:14px;display:flex;align-items:center;flex-wrap:wrap;gap:8px;border-top:1px solid var(--border-soft)}
.project-foot .tag{font-size:11.2px}
.more{
  margin-left:auto;display:inline-flex;align-items:center;gap:5px;font-size:13px;
  color:var(--accent);font-weight:600;background:none;border:0;padding:0;
}
/* The trigger's ::after is stretched over the whole card, so "click anywhere on
   the card opens it" is native button behaviour, not a handler on the article.
   The cost is that the title and the one-line summary cannot be selected with the
   mouse, because the overlay is what the drag starts on. Left as it is on
   purpose: the whole point of the card is that it opens, and everything the card
   says is repeated inside the case study, where it can be read and copied. */
.more::after{content:'';position:absolute;inset:0;z-index:1}
.project-card:has(.more:focus-visible){outline:2px solid var(--accent);outline-offset:3px}
.more svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s var(--ease)}
.project-card:hover .more svg{transform:translateX(4px)}
.empty-note{padding:44px;text-align:center;color:var(--text-muted);border:1px dashed var(--border);border-radius:var(--r);display:none}

/* ─────────────────────────── Achievements ─────────────────────────── */
.ach-hero{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:18px;margin-bottom:22px}
.ach-stat{
  padding:26px;position:relative;overflow:hidden;
  transition:transform .22s var(--ease),border-color .22s,box-shadow .22s;
}
.ach-stat:hover{transform:translateY(-3px);border-color:var(--accent-line);box-shadow:var(--shadow)}
.ach-stat::after{
  content:'';position:absolute;right:-25px;top:-25px;width:120px;height:120px;border-radius:50%;
  background:radial-gradient(circle,var(--accent-soft),transparent 70%);
}
.ach-stat .n{font-size:2.35rem;font-weight:800;letter-spacing:-.035em;line-height:1;position:relative}
.ach-stat .l{margin-top:10px;font-size:13.5px;color:var(--text-muted);position:relative;font-family:var(--mono)}

.ach-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(330px,100%),1fr));gap:18px}
.ach-card{
  padding:24px;display:flex;gap:18px;align-items:flex-start;
  transition:transform .22s var(--ease),border-color .22s,box-shadow .22s;
}
.ach-card:hover{transform:translateY(-3px);border-color:var(--accent-line);box-shadow:var(--shadow)}
.ach-ico{
  width:44px;height:44px;flex:none;border-radius:12px;display:grid;place-items:center;
  background:var(--accent-soft);border:1px solid var(--accent-line);color:var(--accent);
}
.ach-ico svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ach-card h3{font-size:16px;font-weight:700;letter-spacing:-.015em;color:var(--text)}
.ach-card .meta{margin-top:5px;font-family:var(--mono);font-size:12px;color:var(--accent);font-weight:500}
.ach-card p{margin-top:10px;font-size:14.3px;color:var(--text-muted);line-height:1.62}

/* ─────────────────────────── Development — courses & certifications ─────────────────────────── */
/* The legend that names the four tracks the rows below are striped by. */
.tracks{display:flex;flex-wrap:wrap;gap:8px 22px;margin-top:20px}
.track{position:relative;padding-left:16px;font-family:var(--mono);font-size:11.5px;
  letter-spacing:.01em;color:var(--text-muted)}
.track::before{content:'';position:absolute;left:0;top:.42em;width:9px;height:9px;border-radius:2px}
.track-agile::before{background:var(--track-agile)}
.track-grc::before{background:var(--track-grc)}
.track-cyber::before{background:var(--track-cyber)}
.track-ba::before{background:var(--track-ba)}

.posts{border-top:1px solid var(--border-soft)}
.post{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:20px;align-items:center;
  padding:22px 18px;border-bottom:1px solid var(--border-soft);border-radius:12px;
  transition:background .2s,border-color .2s,transform .18s var(--ease);
}
/* The row used to widen its own padding on hover as well as move. Padding is
   layout, so that one transition re-flowed the whole list on every pass of the
   mouse; a background change says the same thing without touching geometry, and
   the movement that does survive is for a fine pointer only. */
.post:hover{background:var(--surface)}
@media (hover:hover) and (pointer:fine){
  .post:hover{padding-inline:22px;transform:translateX(4px)}
}
.post:hover .post-title{color:var(--accent)}
.post > span:nth-child(2){display:flex;flex-direction:column;gap:5px}
.post-when{
  font-family:var(--mono);font-size:12px;font-weight:600;color:var(--accent);
  background:var(--surface-2);padding:5px 11px;border-radius:7px;border:1px solid var(--border);
  text-align:center;width:fit-content;min-width:58px;
}
.post-title{font-size:16.2px;font-weight:700;letter-spacing:-.014em;transition:color .2s;color:var(--text)}
.post-ex{font-size:14.2px;color:var(--text-muted);max-width:72ch;line-height:1.58;text-wrap:pretty}
.post-read{
  font-family:var(--mono);font-size:11.5px;color:var(--accent);white-space:nowrap;
  background:var(--accent-soft);border:1px solid var(--accent-line);padding:5px 12px;
  border-radius:999px;font-weight:600;min-width:148px;text-align:center;
}

/* ─────────────────────────── Contact ─────────────────────────── */
.contact-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:48px;align-items:start}
.contact-lede p{color:var(--text-muted);font-size:16.5px;line-height:1.68}
.contact-lede p + p{margin-top:14px}
.mail-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
.mail-row .btn{padding-inline:16px}
.contact-channels{margin-top:32px;display:grid;gap:12px}
.channel{
  display:flex;align-items:center;gap:14px;padding:15px 18px;border-radius:12px;
  border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-sm);
  transition:border-color .2s,transform .2s var(--ease),box-shadow .2s;
}
.channel:hover{border-color:var(--accent-line);transform:translateX(4px);box-shadow:var(--shadow)}
.channel svg{width:18px;height:18px;flex:none;fill:none;stroke:var(--accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.channel .k{font-size:12px;color:var(--text-muted);font-family:var(--mono);text-transform:uppercase;letter-spacing:.06em}
.channel .v{font-size:14.5px;font-weight:600;color:var(--text)}
.channel .v span{color:var(--text-muted);font-weight:400}

.form-card{padding:32px;position:relative}
.form-card::before{
  content:'';position:absolute;top:0;left:0;right:0;height:2px;
  background:linear-gradient(90deg,var(--accent),transparent);
}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.field{display:flex;flex-direction:column;gap:8px}
.field.full{grid-column:1/-1}
.field label{font-size:13px;font-weight:600;color:var(--text);letter-spacing:-.005em}
.field label .req{color:var(--accent)}
.field input,.field textarea,.field select{
  width:100%;padding:12px 15px;border-radius:10px;background:var(--bg-alt);
  border:1px solid var(--border);font-size:14.5px;transition:border-color .18s,background .18s,box-shadow .18s;
  color:var(--text);
}
.field textarea{resize:vertical;min-height:130px;line-height:1.6}
.field input::placeholder,.field textarea::placeholder{color:var(--text-muted)}
.field input:focus,.field textarea:focus,.field select:focus{
  outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);background:var(--surface);
}
/* Validation is the browser's own (required / type=email / minlength). These
   rules paint it; :-moz-ui-invalid is the older Firefox spelling, kept as a
   separate rule because an unknown pseudo-class invalidates its whole selector
   list. Neither is used by JavaScript. */
.field input:user-invalid,.field textarea:user-invalid{border-color:#e05a4d;box-shadow:0 0 0 3px rgba(224,90,77,.15)}
.field input:-moz-ui-invalid,.field textarea:-moz-ui-invalid{border-color:#e05a4d;box-shadow:0 0 0 3px rgba(224,90,77,.15)}
.err{font-size:12.2px;color:#e05a4d;min-height:0;display:none}
.field:has(:user-invalid) .err{display:block}
.field:has(:-moz-ui-invalid) .err{display:block}
.form-hint{display:none;width:100%;font-size:12.5px;font-weight:600;color:#e05a4d}
#contactForm:has(:user-invalid) .form-hint{display:block}
#contactForm:has(:-moz-ui-invalid) .form-hint{display:block}
#submitBtn:disabled{opacity:.65;cursor:default}
.form-foot{margin-top:22px;display:flex;flex-wrap:wrap;align-items:center;gap:16px}
.form-note{font-size:12.5px;color:var(--text-muted);max-width:34ch;line-height:1.5}
.form-status{
  margin-top:18px;padding:13px 16px;border-radius:10px;font-size:14px;display:none;
  border:1px solid var(--accent-line);background:var(--accent-soft);color:var(--text);
}
.form-status.is-on{display:block}
.form-status.is-bad{border-color:rgba(224,90,77,.4);background:rgba(224,90,77,.1);color:#e05a4d}

/* ─────────────────────────── Footer ─────────────────────────── */
.footer{border-top:1px solid var(--border-soft);padding:48px 0 36px;background:var(--bg-alt)}
.footer-inner{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:center;justify-content:space-between}
.footer p{font-size:13px;color:var(--text-muted)}
.footer p strong{color:var(--text);font-weight:600}
.footer-links{display:flex;flex-wrap:wrap;flex-wrap:balance;gap:8px 12px}
.footer-links a{font-size:13px;color:var(--text-muted);transition:color .18s}
.footer-links a:hover{color:var(--accent)}
.colophon{
  margin-top:28px;padding-top:22px;border-top:1px solid var(--border-soft);
  font-family:var(--mono);font-size:11.8px;color:var(--text-muted);display:flex;flex-wrap:wrap;gap:8px 24px;
}
.colophon > span:nth-child(3),
.colophon > span:nth-child(5){margin-inline-start:auto}

/* ─────────────────────────── Overlays ─────────────────────────── */
/* Both overlays are native <dialog>s. showModal() supplies the top layer, the
   backdrop, the focus trap, Escape and focus restore; <form method="dialog">
   supplies closing. The only JavaScript left is the call that opens them. */
/* Scoped, because styles.css is shared by /privacy/ and /admin/: a bare
   dialog{} reset would silently strip the panel styling off any dialog added to
   the dashboard later. */
dialog.case,dialog.palette{color:inherit;background:transparent;border:0;padding:0;margin:0;overflow:hidden}
/* Higher specificity than the display:grid rules below, so a closed dialog is
   really gone. The UA sheet's own version of this loses to an author sheet. */
dialog.case:not([open]),dialog.palette:not([open]){display:none}

dialog.case{
  position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;
  z-index:150;padding:24px;display:grid;place-items:center;
}
dialog.case::backdrop{
  background:var(--scrim);
  animation:fade .22s var(--ease);
}
/* The blur behind a case study is a second full-viewport filter, and the modal
   text under it scrolls: on a phone that is a re-blur on every flick. Dim stays
   everywhere, the blur goes where the pointer is fine and the screen is wide. */
@media (min-width:821px) and (hover:hover){
  dialog.case::backdrop{backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
}
@keyframes fade{from{opacity:0}to{opacity:1}}
.case-scrim,.palette-scrim{position:absolute;inset:0;display:block}
.case-scrim>button,.palette-scrim>button{width:100%;height:100%;background:none;border:0;padding:0;cursor:default}

.modal{
  position:relative;z-index:1;animation:rise-in .24s var(--ease);
  width:min(740px,100%);max-height:min(88dvh,calc(100dvh - 48px));overflow-y:auto;
  background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);
  box-shadow:var(--shadow-lg);
}
@keyframes rise-in{from{transform:translateY(14px) scale(.985)}to{transform:none}}
.modal-thumb{height:175px;position:relative;overflow:hidden;border-bottom:1px solid var(--border-soft)}
.modal-thumb .thumb-art{width:176px;height:176px;right:16px;bottom:-22px;stroke:rgba(255,255,255,.18)}
.modal-close{position:absolute;top:14px;right:14px;z-index:2;background:rgba(10,10,12,.65);border-color:rgba(255,255,255,.2);color:#fff}
.modal-close:hover{background:rgba(10,10,12,.9);color:#fff}
.modal-body{padding:32px}
.modal-body h2{font-size:1.65rem;letter-spacing:-.03em}
.modal-sub{margin-top:7px;font-family:var(--mono);font-size:12.6px;color:var(--accent)}
.modal-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px;padding-top:22px;border-top:1px solid var(--border-soft)}
.modal-thumb .glyph{
  position:absolute;inset:0;display:grid;place-items:center;
  font-family:var(--mono);font-size:2.8rem;font-weight:700;color:rgba(255,255,255,.94);
  letter-spacing:-.03em;text-shadow:0 3px 20px rgba(0,0,0,.45);
}

/* Case study content, authored inside each card's own dialog. */
dialog.case .d-summary{font-size:16.5px;color:var(--text);line-height:1.65}
dialog.case .d-h{
  margin-top:24px;margin-bottom:10px;font-size:12px;font-family:var(--mono);font-weight:600;
  letter-spacing:.1em;text-transform:uppercase;color:var(--accent);
}
dialog.case .d-p{color:var(--text-muted);font-size:15.2px;line-height:1.68}
dialog.case .d-ul li{position:relative;padding-left:18px;margin-top:8px;color:var(--text-muted);font-size:15.2px;line-height:1.65}
dialog.case .d-ul li::before{content:'';position:absolute;left:3px;top:.62em;width:5px;height:5px;border-radius:50%;background:var(--accent)}
dialog.case .d-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin-top:24px}
dialog.case .m{padding:16px;border-radius:12px;background:var(--surface-2);border:1px solid var(--border-soft)}
dialog.case .mn{display:block;font-size:1.35rem;font-weight:800;letter-spacing:-.03em;color:var(--accent);line-height:1.1}
dialog.case .ml{display:block;margin-top:4px;font-size:12px;color:var(--text-muted);font-family:var(--mono)}
dialog.case .d-stack{
  margin-top:24px;padding-top:18px;border-top:1px solid var(--border-soft);
  font-family:var(--mono);font-size:12px;color:var(--text-muted);line-height:1.7;
}

dialog.palette{
  position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;
  z-index:160;padding:12vh 20px 20px;display:grid;justify-content:center;align-content:start;
}
dialog.palette::backdrop{background:rgba(4,4,6,.65)}
@media (min-width:821px) and (hover:hover){
  dialog.palette::backdrop{backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
}
.palette-box{
  position:relative;z-index:1;
  width:min(580px,100%);background:var(--surface);border:1px solid var(--border);
  border-radius:var(--r-lg);box-shadow:var(--shadow-lg);overflow:hidden;
  animation:pop .18s var(--ease);
}
@keyframes pop{from{opacity:0;transform:translateY(-8px) scale(.985)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:no-preference){
  dialog.case,dialog.palette,
  dialog.case::backdrop,dialog.palette::backdrop{
    transition:opacity .18s var(--ease),display .18s var(--ease) allow-discrete,overlay .18s var(--ease) allow-discrete;
    opacity:0;
  }
  dialog.case[open],dialog.palette[open],
  dialog.case[open]::backdrop,dialog.palette[open]::backdrop{opacity:1}
  dialog.case .modal,dialog.palette .palette-box{
    transition:transform .2s var(--ease);
    transform:translateY(10px) scale(.985);
  }
  dialog.case[open] .modal,dialog.palette[open] .palette-box{transform:none}
  @starting-style{
    dialog.case[open],dialog.palette[open],
    dialog.case[open]::backdrop,dialog.palette[open]::backdrop{opacity:0}
    dialog.case[open] .modal{transform:translateY(14px) scale(.985)}
    dialog.palette[open] .palette-box{transform:translateY(-8px) scale(.985)}
  }
}
.palette-input{
  display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--border);
}
.palette-input svg{width:18px;height:18px;flex:none;fill:none;stroke:var(--text-muted);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.palette-input input{flex:1;background:none;border:0;outline:none;font-size:15.5px;color:var(--text)}
/* The line above removes the outline because the row has no border of its own to
   light up — which left the search box with no visible focus at all, since this
   rule outranks the global :focus-visible. A keyboard user opening the palette
   could not see where the caret was. So the cue is drawn here, inset, because
   the input is flush with the dialog edge and an outside ring would be clipped. */
.palette-input input:focus-visible{outline:2px solid var(--accent);outline-offset:-3px;border-radius:6px}
.palette-input kbd{
  font-family:var(--mono);font-size:11px;padding:3px 7px;border-radius:5px;
  background:var(--surface-2);border:1px solid var(--border);color:var(--text-muted);
}
.palette-list{max-height:48dvh;overflow-y:auto;padding:8px}
.palette-group{padding:10px 12px 6px;font-family:var(--mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--accent)}
.palette-item{
  display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border-radius:9px;cursor:pointer;
  background:none;border:0;text-align:left;font-size:14.5px;color:var(--text-muted);
}
.palette-item svg{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.palette-item .hint{margin-left:auto;font-family:var(--mono);font-size:11px;color:var(--text-muted)}
.palette-item.is-sel,.palette-item:hover{background:var(--accent-soft);color:var(--text)}
.palette-empty{padding:28px;text-align:center;color:var(--text-muted);font-size:14px}
.palette-keys{
  display:flex;flex-wrap:wrap;align-items:center;gap:4px 7px;
  padding:9px 14px;border-top:1px solid var(--border);background:var(--surface-2);
  font-family:var(--mono);font-size:11px;letter-spacing:.02em;color:var(--text-muted);
}
.palette-keys kbd{
  font-family:var(--mono);font-size:10.5px;line-height:1.4;padding:2px 6px;border-radius:5px;
  background:var(--surface);border:1px solid var(--border);color:var(--text-muted);
}
.palette-keys span+kbd{margin-left:6px}
/* display on the rules above would otherwise beat the [hidden] attribute. */
.palette-item[hidden],.palette-group[hidden],.palette-empty[hidden]{display:none}

.toast{
  position:fixed;left:50%;bottom:30px;z-index:180;transform:translate(-50%,20px);
  display:flex;align-items:center;gap:10px;padding:12px 18px;border-radius:12px;
  background:var(--surface-2);border:1px solid var(--border);box-shadow:var(--shadow);
  font-size:14px;font-weight:600;opacity:0;pointer-events:none;
  transition:opacity .22s,transform .22s var(--ease);
}
.toast.is-on{opacity:1;transform:translate(-50%,0)}
.toast svg{width:16px;height:16px;fill:none;stroke:var(--ok);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

.to-top{
  position:fixed;right:24px;bottom:24px;z-index:90;width:44px;height:44px;border-radius:12px;
  display:grid;place-items:center;cursor:pointer;background:var(--surface);border:1px solid var(--border);
  color:var(--text-muted);box-shadow:var(--shadow);opacity:0;visibility:hidden;transform:translateY(10px);
  transition:color .18s,border-color .18s;
}
.to-top:hover{color:var(--accent);border-color:var(--accent-line)}
.to-top svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ─────────────────────────── Reveal ─────────────────────────── */
/* Deliberately visible by default. The fade-in is added by the
   @supports (animation-timeline: view()) block at the end of this file, so a
   browser without it — or a visitor with JavaScript off — reads the page
   immediately instead of staring at a blank column. */

/* ─────────────────────────── Print résumé ─────────────────────────── */
#print-resume{display:none}

/* ─────────────────────────── Responsive ─────────────────────────── */
@media (max-width:1024px){
  .hero-inner{grid-template-columns:1fr;gap:40px}
  .hero-stats{grid-template-columns:repeat(2,1fr)}
  /* A grid/flex item's automatic minimum is its min-content width, so `1fr` here
     let the column be held open by one long word inside a card. minmax(0,1fr)
     says the column may always shrink to the container. */
  .about-grid,.contact-grid{grid-template-columns:minmax(0,1fr);gap:34px}
  .spotlight-card{max-width:440px;margin-inline:auto}
  .colophon > span:nth-child(3),
  .colophon > span:nth-child(5){margin-inline-start:0}
}
@media (max-width:820px){
  .nav-links{
    position:fixed;top:var(--nav-h);left:0;right:0;flex-direction:column;align-items:stretch;gap:4px;
    padding:16px;background:var(--bg-alt);border-bottom:1px solid var(--border);
    transform:translateY(-14px);opacity:0;visibility:hidden;transition:opacity .2s,transform .2s var(--ease),visibility .2s;
    max-height:calc(100dvh - var(--nav-h));overflow-y:auto;box-shadow:var(--shadow-lg);
  }
  .nav-switch:checked ~ .nav-links{transform:none;opacity:1;visibility:visible}
  .nav-links a{padding:12px 16px;font-size:15px;border-radius:10px}
  .burger{display:grid}
  .kbd-btn,.nav-resume{display:none}
  .section{padding:72px 0}
  .hero{padding:calc(var(--nav-h) + 44px) 0 60px}
  .tl-when{margin-left:0;width:100%;order:3}
  .skills-grid{grid-template-columns:minmax(0,1fr)}
  /* Two columns, not one: the track chip is the only place a row says which
     discipline it belongs to, so it keeps its place on a phone instead of
     being switched off, and the year stays in its own column. */
  .post{grid-template-columns:auto minmax(0,1fr);gap:9px 14px;padding:18px 14px}
  .post-when{grid-column:1;grid-row:1}
  .post > span:nth-child(2){grid-column:2;grid-row:1}
  .post-read{grid-column:2;grid-row:2;justify-self:start;min-width:0}
  .form-grid{grid-template-columns:1fr}
  .hero-stats{gap:16px}
}
@media (max-width:560px){
  .wrap{padding-inline:18px}
  .hero-stats{grid-template-columns:1fr 1fr;gap:14px}
  .stat .n{font-size:1.75rem}
  .modal-body{padding:24px}
  .cta-row .btn{flex:1 1 auto}
  .filters{width:100%;border-radius:14px;justify-content:center}
  .project-head{min-height:0}
  /* Quick facts: a 104px label column plus a 14px gap ate 118px of a card only
     ~284px wide inside on a 320px phone, and the longest unbreakable word in a
     value held the whole card open at ~320px — so the panel overflowed the
     viewport and body{overflow-x:hidden} cut the tail off. Label above value
     instead of beside it: the value gets the full card width, and the label
     keeps its mono styling. Desktop and tablet keep the two-column table. */
  .facts{padding:22px}
  .fact{flex-direction:column;gap:3px;padding:11px 0}
  .fact dt{min-width:0;font-size:11.5px;padding-top:0}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;scroll-behavior:auto !important}
  /* The global override above would leave every word of the rotator parked at
     opacity 0, so pin the first one instead of animating the cycle. */
  .rotator>.w{animation:none;opacity:0}
  .rotator>.w:first-child{opacity:1}
}

/* ── High-contrast modes ──────────────────────────────────────────────────────
   forced-colors (Windows High Contrast, and the same mode on Linux) discards the
   palette: backgrounds, borders, shadows and gradients are replaced by system
   colours. Here that is not decoration being flattened — the cyan *is* the focus
   ring, the selected filter and the edge of every card, so the meaning would
   vanish with the colour. The cues are therefore restated in system colours
   rather than fought over. No token is re-declared: the blocks below are the
   ones the visual audit counts, and this file's tokens are not what high-contrast
   mode reads anyway. */
@media (forced-colors:active){
  :focus-visible{outline:2px solid Highlight;outline-offset:2px}
  /* The form fields replace their outline with an accent border plus a soft
     ring, and forced-colours flattens both — so the ring is put back, and the
     selector has to name the fields: `.field input:focus` outranks the bare
     `:focus-visible` above, exactly as `outline:none` outranked it in the
     palette case. */
  .field input:focus,.field textarea:focus,.field select:focus{outline:2px solid Highlight;outline-offset:1px}
  .nav,dialog,.project-card,.toast,.field input,.field textarea,.field select{border:1px solid CanvasText}
  /* Selected stays selectable: the chip's fill is gone, so it gets the one cue
     forced-colours never eats — a border drawn in the user's own text colour. */
  .filter-radio:checked + .filter-btn{outline:2px solid CanvasText}
  .nav-switch:checked ~ .nav-tools .burger{outline:2px solid CanvasText}
  /* Pure glow: a gradient with no information in it. Hidden rather than redrawn. */
  .hero-bg,.thumb::before,#progress{display:none}
  /* The availability dot is aria-hidden and its words are already next to it, so
     losing its green costs nothing — but a link must still look like one. */
  a{text-decoration-color:LinkText}
}
/* The same preference on platforms that signal it without entering forced
   colours (macOS "increase contrast"): keep the palette, strengthen the edges. */
@media (prefers-contrast:more){
  .nav,dialog,.project-card,.field input,.field textarea,.field select{border-color:var(--text)}
  :focus-visible{outline-width:3px;outline-offset:2px}
}

@media print{
  :root{--bg:#fff;--text:#000}
  .nav,#progress,.hero-bg,.socials,.cta-row,.to-top,dialog,.toast,.footer,.skip,#main{display:none !important}
  body{background:#fff;color:#000;font-size:11pt;line-height:1.38}
  .wrap{max-width:none;padding:0}
  #print-resume{display:block}
  /* A4 is the paper a CV is printed on in every market this page targets, so it
     is what the sheet asks for. The ask is advisory, not a guarantee: `size`
     needs Safari 18.2 or newer, an AirPrint printer loaded with Letter still
     prints Letter, and a phone's dialog prints its own header and footer unless
     you switch them off — which costs 20mm of every page. So the two pages are
     earned by the content height below rather than by this line, and the budget
     they have to fit is the *shortest* sheet any of those paths hands back: two
     pages of US Letter with headers and footers on. The margins are the ones a
     binding can swallow. */
  @page{size:A4;margin:11mm 13mm}
  /* Break control, and deliberately not `break-inside:avoid` on a whole job:
     the two Liberty Global blocks are taller than the slack a page has left, so
     refusing to split them would push one whole role onto page 3 and waste the
     very space that fits them. What may never happen instead is a heading or a
     job's title line arriving alone at the bottom of a page, and a bullet
     snapping in half mid-sentence. */
  #print-resume h2{break-after:avoid;page-break-after:avoid}
  #print-resume .r-head,#print-resume .r-sub{break-after:avoid;page-break-after:avoid}
  #print-resume .r-item li{break-inside:avoid;page-break-inside:avoid;orphans:2;widows:2}
  #print-resume .r-item{break-inside:auto;page-break-inside:auto}
}
/* Every box the résumé contains gets an explicit size, and those numbers are
   not arbitrary: tests/smoke.test.ts paginates this markup against two pages of
   US Letter with the print dialog's own header and footer switched on — the
   shortest sheet any browser or printer hands back once the advisory `size:A4`
   above is declined — and fails if the flow no longer fits. Winning that budget
   by pushing type under 9pt would print a worse CV than one running to three
   pages, so the suite insists on the floor as well.
   The bare `p` rule is the one that used to be missing: without it the summary,
   the three expertise lines and the languages line inherited body's 11pt from
   @media print, which made the prose *larger* than the bullets under it and
   cost two whole lines of column. `#print-resume .r-name` and friends are more
   specific than `#print-resume p`, so they keep their own sizes. */
#print-resume{font-family:var(--font);font-size:10pt;line-height:1.32}
#print-resume p{font-size:9.5pt}
#print-resume .r-name{font-size:17pt;font-weight:700;margin:0 0 2pt;letter-spacing:-.02em}
#print-resume .r-contact{font-size:9.5pt;color:#444;margin-bottom:4pt}
#print-resume h2{font-size:10.5pt;text-transform:uppercase;letter-spacing:.08em;border-bottom:1px solid #bbb;padding-bottom:2.5pt;margin:6pt 0 3.5pt}
#print-resume .r-item{margin-bottom:4pt}
#print-resume .r-head{display:flex;justify-content:space-between;gap:12pt;font-weight:600;font-size:10pt}
#print-resume .r-sub{font-size:9.5pt;color:#555;font-style:italic}
#print-resume li{margin-left:12pt;list-style:disc;font-size:9.5pt}

/* ═══════════════════════════════════════════════════════════════
   DESIGN REFINEMENT — PASS 2
   Enhanced tokens · Hero polish · Section depth · Card details
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero h1 gradient — the light ramp is bounded by contrast, not by taste ──
   This span is painted with the gradient and its -webkit-text-fill-color is
   transparent, so the lightest stop *is* the headline's colour at the bottom
   right of "delivered programmes." The tail stop used to be #22b8dc, which
   measures 2.20:1 against --bg (#f6f8fb) — below the 3:1 WCAG 1.4.3 floor for
   text this size, and 1.89:1 once .hero-bg's --accent-soft wash moves the
   background toward the same cyan. #005f78 → #007a99 holds 6.65:1 at the dark
   end and 4.65:1 at the light end on --bg, and still clears 3:1 against the
   washed surface. section 08 now measures every stop of every gradient that
   clips text, so the ramp cannot be widened back into failure. */
[data-theme="light"] .hero h1 .accent{
  background-image:linear-gradient(135deg,#005f78 0%,#007a99 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}
/* Dark mode glow. A 110px text-shadow is a blur of the whole headline box, and
   this is now the theme every first visit reads: 34px is the same halo. */
[data-theme="dark"] .hero h1{text-shadow:0 0 34px rgba(0,183,215,.08)}

/* ── Hero role bar — a cooler rule along the bottom ── */
.hero-role{
  border-bottom-color:var(--border-subtle);
}

/* ── First (flagship) stat card — glow emphasis ── */
.hero-stats .stat:first-child{
  border-color:var(--border-subtle);
  box-shadow:var(--shadow-sm),0 0 28px -10px var(--accent-glow);
}

/* ── Section kickers & headings — stronger hierarchy ── */
.kicker{font-weight:700;letter-spacing:.13em}
.section-title{font-weight:800}

/* ── Nav brand — subtle right separator ── */
.brand{
  padding-right:22px;
  border-right:1px solid var(--border-soft);
  margin-right:6px;
}

/* ── Spotlight card photo — richer frame ── */
.avatar{
  box-shadow:0 0 0 3px var(--border-soft),0 0 50px -14px var(--accent-glow);
}
[data-theme="dark"] .spotlight-card{
  background:linear-gradient(155deg,var(--surface) 0%,var(--surface-2) 100%);
}

/* ── Skills: is-core pills — gradient treatment ── */
.pill.is-core{
  background:linear-gradient(135deg,var(--accent-soft),rgba(0,183,215,.18));
  border-color:var(--accent-line);
  box-shadow:0 2px 10px -3px var(--accent-glow);
}
[data-theme="dark"] .pill.is-core{
  box-shadow:0 2px 14px -4px var(--accent-glow);
}

/* Cybersecurity group — primary expertise glow */
.skills-grid>.card:first-child{
  border-color:var(--border-subtle);
  box-shadow:var(--shadow-sm),0 0 40px -18px var(--accent-glow);
}

/* ── Timeline: colour-coded category badges (keyed by role type, not position) ── */
.kind-security{background:rgba(220,98,28,.13);border-color:rgba(220,98,28,.4);color:#dc621c}
.kind-delivery{background:rgba(46,138,218,.12);border-color:rgba(46,138,218,.38);color:#2e8ada}
.kind-operations{background:rgba(36,166,86,.12);border-color:rgba(36,166,86,.36);color:#24a656}
.kind-it{background:rgba(126,76,202,.12);border-color:rgba(126,76,202,.36);color:#7e4cca}
.kind-education{background:rgba(88,106,156,.12);border-color:rgba(88,106,156,.35);color:#586a9c}
[data-theme="light"] .kind-security{color:#a83808}
[data-theme="light"] .kind-delivery{color:#165ea8}
[data-theme="light"] .kind-operations{color:#167840}
[data-theme="light"] .kind-it{color:#5428a6}
[data-theme="light"] .kind-education{color:#384c7a}

/* Latest role — larger, glowing timeline node; featured vs compact pacing */
.tl-item.tl-featured{
  border-left:3px solid var(--accent-line);
  background:linear-gradient(165deg,var(--surface) 0%,var(--surface-2) 100%);
}
.tl-item.tl-featured .tl-role{width:100%}
.tl-item.tl-featured::before{
  background:var(--accent);border-color:var(--accent);
}
.tl-item.tl-compact{
  padding:18px 24px;margin-bottom:16px;
}
.tl-item.tl-compact:last-child{margin-bottom:0}
.tl-item.tl-compact::before{
  top:22px;width:10px;height:10px;left:-34px;
}
.tl-item.tl-compact .tl-role{font-size:15.8px}
.tl-item.tl-compact .tl-body{margin-top:8px;font-size:14.4px}
.tl-item.tl-compact .tl-body li{margin-top:0;padding-left:0}
.tl-item.tl-compact .tl-body li::before{display:none}
.tl-item.tl-compact .tl-tags{margin-top:10px;padding-top:10px}
.timeline>li:first-child::before{
  width:14px;height:14px;left:-36px;top:27px;
  background:var(--accent);border-color:var(--accent);
  box-shadow:0 0 0 4px var(--bg),0 0 16px -2px var(--accent-glow);
}
.timeline>li:first-child:hover::before{
  box-shadow:0 0 0 5px var(--accent-soft),0 0 20px -2px var(--accent-glow);
}

/* ── Project card thumbnails — hover shimmer ── */
.thumb::before{
  content:'';position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden;
  background:linear-gradient(
    112deg,transparent 22%,rgba(255,255,255,.13) 48%,rgba(255,255,255,.22) 50%,rgba(255,255,255,.13) 52%,transparent 78%
  );
  transform:translateX(-110%);
}
.project-card:hover .thumb::before{animation:card-shimmer .78s ease-out forwards}
@keyframes card-shimmer{from{transform:translateX(-110%)}to{transform:translateX(110%)}}

/* Slightly taller thumbnails */
.thumb{height:166px}
.modal-thumb{height:180px}

/* ── Development section: category left-border indicators (keyed by track) ──
   The four track hues live as tokens (--track-*) in both theme blocks, so the
   legend under the section head and the stripe on each row read the same colour
   and cannot drift apart per theme. */
.posts .post{border-left:3px solid transparent;border-radius:0 12px 12px 0}
.posts .post[data-track="agile"]{border-left-color:var(--track-agile)}
.posts .post[data-track="grc"]{border-left-color:var(--track-grc)}
.posts .post[data-track="cyber"]{border-left-color:var(--track-cyber)}
.posts .post[data-track="ba"]{border-left-color:var(--track-ba)}

/* Year pill: more typographic */
.post-when{
  background:linear-gradient(135deg,var(--surface-2),var(--surface-3));
  color:var(--accent);font-weight:700;
}

/* ── Contact channels: accent left border on hover ── */
.channel{
  border-left:3px solid transparent;
  transition:border-color .2s,transform .18s var(--ease),box-shadow .18s;
}
.channel:hover{border-left-color:var(--accent-line)}

/* ── Footer: gradient top border instead of plain ── */
.footer{border-top:none;position:relative}
.footer::before{
  content:'';position:absolute;top:0;left:0;right:0;height:1px;
  background:linear-gradient(90deg,var(--accent) 0%,var(--accent-hover) 22%,var(--border-soft) 60%,var(--border-soft) 100%);
}

/* ── Achievement stats: glow on hover ── */
.ach-stat:hover{
  box-shadow:var(--shadow),0 0 30px -12px var(--accent-glow);
}

/* ── Reduce motion: disable shimmer ── */
@media(prefers-reduced-motion:reduce){
  .thumb::before,.project-card:hover .thumb::before,.project-card:hover .thumb-art{animation:none!important;transform:none!important}
  .project-card{transition-property:border-color,box-shadow}
}

/* ═══════════════════════════════════════════════════════════════
   TOUCHSCREENS: WHAT IS SWITCHED OFF, AND WHY
   Everything removed here is motion or a blurred surface. No information, no
   control and no content goes. Three rules decide it:
     · Nothing may loop for the length of a visit. An infinite animation keeps
       the compositor ticking so the page never goes idle, which a phone pays
       for in battery and in frames it needed for the scroll.
     · Nothing may be re-blurred per frame (see the nav and the case-study
       scrim, both keyed to (hover:hover) above).
     · A hover style is not a hint on a touchscreen. A tap LATCHES :hover, so
       the last card touched stays lifted under two deep shadows — and a
       thumbnail frozen mid-shimmer — until something else is tapped.
   A desktop pointer keeps the pulse, the blinking caret, the rotating word, the
   masked grid and every lift. The layout breakpoint is 820px; this is keyed to
   (hover:none) instead, because it is the finger that changes the cost, not the
   width.
   ═══════════════════════════════════════════════════════════════ */
@media (hover:none){
  /* The availability ring and the terminal caret stop looping and simply hold
     their resting shape: a green dot, and a steady bar after the word. */
  .status .dot::after{animation:none;opacity:0}
  .rotator>.w::after{animation:none}
  /* The word cycle is kept. It is `opacity` only, inside one grid cell, so it
     costs no layout and no repaint of text: the nine spans are pre-rendered and
     only their opacity changes, twice per slot across a 66s loop. The caret
     above is the expensive half — nine `steps(1)` blinks at 1.05s, eight of
     them sitting under a span at opacity:0 — and that stays off. */
  /* The masked grid behind the hero: two repeating gradients under a radial
     mask, which asks for its own render surface to draw hairlines that are
     barely a line at this size. */
  .hero-bg::before{content:none}
  /* Cards answer a tap with colour, which is the part that means something,
     and not with a lift, a second shadow or a sweep of light. */
  .project-card:hover,.hero-stats .stat:hover,.skill-group:hover,
  .tl-item:hover,.ach-stat:hover,.ach-card:hover,.channel:hover{
    transform:none;box-shadow:var(--shadow-sm);
  }
  .spotlight-card:hover{box-shadow:var(--shadow)}
  .timeline>li:first-child:hover::before{box-shadow:0 0 0 4px var(--bg),0 0 16px -2px var(--accent-glow)}
  .project-card:hover .thumb::before{animation:none}
  .project-card:hover .thumb-art,.project-card:hover .more svg,.socials a:hover,.socials button:hover,
  .btn-primary:hover,.btn-ghost:hover,.pill:hover,.spotlight-cta:hover{transform:none}
  /* The filter entrance is motion too, and the scroll hint is for a pointer. */
  .project-card{transition-property:border-color,box-shadow}
  .scroll-cue{display:none}
}

/* The overlays that really do move are the three worth a layer hint: they are
   small, they are fixed, and without one each appearance promotes and demotes a
   compositor layer of its own. The reveal fades deliberately get nothing —
   forty-three standing layers is a worse trade than the animation they would
   have smoothed. */
@media (prefers-reduced-motion:no-preference){
  .toast,.to-top{will-change:transform,opacity}
}
@media (max-width:820px) and (prefers-reduced-motion:no-preference){
  .nav-links{will-change:transform,opacity}
}

/* ═══════════════════ Legal document pages (/privacy/) ═══════════════════ */
.wrap.narrow{max-width:820px}
.doc{padding-top:64px}
.doc-crumb{margin:0 0 26px;font-family:var(--mono);font-size:12.5px}
.doc-updated{margin:14px 0 0;font-family:var(--mono);font-size:11.5px;letter-spacing:.04em;color:var(--text-muted)}
.doc .prose code,.doc-ul code,.doc-table code{
  font-family:var(--mono);font-size:.88em;color:var(--accent);
  background:var(--accent-soft);padding:1px 5px;border-radius:4px;
}
.doc-h{margin:44px 0 14px;font-size:1.16rem;font-weight:800;letter-spacing:-.02em;color:var(--text)}
.card .doc-h:first-child{margin-top:0}
.doc-split{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(310px,100%),1fr));gap:18px;margin:34px 0 8px}
.doc-split .card{padding:24px}
.doc-ul{margin:0;padding-left:19px;display:grid;gap:11px;color:var(--text-muted);font-size:14.5px;line-height:1.62}
.doc-ul li::marker{color:var(--accent)}
.doc-ul strong{color:var(--text);font-weight:600}
.doc-ul em{color:var(--text);font-style:normal;border-bottom:1px dashed var(--accent-line)}
.doc-table-wrap{overflow-x:auto;margin:6px 0 8px;border:1px solid var(--border);border-radius:var(--r)}
.doc-table{width:100%;border-collapse:collapse;font-size:13px;min-width:640px}
.doc-table th{
  text-align:left;padding:12px 14px;white-space:nowrap;font-family:var(--mono);
  font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;font-weight:500;
  color:var(--text-muted);border-bottom:1px solid var(--border);background:var(--bg-alt);
}
.doc-table td{padding:11px 14px;border-bottom:1px solid var(--border-soft);color:var(--text-muted);vertical-align:top}
.doc-table tbody tr:last-child td{border-bottom:none}
.doc-table tbody tr:hover td{background:var(--surface)}
.doc-foot{
  display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;align-items:center;
  margin-top:52px;padding-top:22px;border-top:1px solid var(--border);
}
.doc-foot .mono{font-size:11.5px;color:var(--text-muted)}
.doc-foot-links{display:flex;gap:18px}
.doc-foot-links a{font-size:13.5px;color:var(--accent);text-decoration:none;border-bottom:1px solid var(--accent-line)}
.doc-foot-links a:hover{border-bottom-color:var(--accent)}
@media(max-width:640px){.doc{padding-top:44px}.doc-split{grid-template-columns:1fr}}

/* ═══════════════════════════════════════════════════════════════
   SCROLL-DRIVEN POLISH — progressive enhancement only
   animation-timeline is implemented by Chrome, Edge, Opera and Safari 26 and
   is still flag-gated in current Firefox, so every rule below sits behind
   @supports. A browser that fails the test ignores the whole block and renders
   the plain rules earlier in this file: content visible, headline numbers
   reading their real value, no progress bar, no fade-ins. Nothing here is
   load-bearing, and none of it is reachable from JavaScript.
   ═══════════════════════════════════════════════════════════════ */

/* Registered as an <integer> so it interpolates, which is what lets counter()
   render a counting-up number. */
@property --num{syntax:'<integer>';inherits:false;initial-value:0}

@keyframes read-progress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes nav-stuck{
  from{border-bottom-color:transparent;background:color-mix(in srgb,var(--bg) 84%,transparent)}
  to{border-bottom-color:var(--border-soft);background:color-mix(in srgb,var(--bg) 94%,transparent)}
}
@keyframes to-top-in{
  from{opacity:0;visibility:hidden;transform:translateY(10px)}
  to{opacity:1;visibility:visible;transform:none}
}
@keyframes reveal-rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes count-up{from{--num:0}to{--num:var(--to)}}
/* Opacity only. The nav link used to cross-fade its font-weight as well, and a
   font-weight animation is never composited: it re-shapes and re-measures seven
   labels on every frame of every scroll. The accent hue stays out of it because
   an animation beats :hover in the cascade, and the links still need their hover
   colour. */
@keyframes spy-link{0%,100%{opacity:.6}4%,96%{opacity:1}}
@keyframes spy-pill{0%,100%{opacity:0}4%,96%{opacity:1}}
@keyframes spy-bar{from{transform:scaleX(0)}4%,96%{transform:scaleX(1)}to{transform:scaleX(0)}}
@keyframes cue-fade{from{opacity:1}to{opacity:0}}

@supports (animation-timeline: scroll(root block)) {
  #progress{
    animation:read-progress linear both;
    animation-timeline:scroll(root block);
    transition:none;
  }
  /* A 1px window at 12px of scroll reproduces the old `y > 12` class toggle. */
  .nav{
    animation:nav-stuck linear both;
    animation-timeline:scroll(root block);
    animation-range:12px 13px;
  }
  .to-top{
    animation:to-top-in linear both;
    animation-timeline:scroll(root block);
    animation-range:700px 701px;
  }
  /* Gone by the time the first section is on screen; where the timeline is
     missing the base rule leaves it visible and still, which is the hint intact. */
  .scroll-cue{
    animation:cue-fade linear both;
    animation-timeline:scroll(root block);
    animation-range:0px 320px;
  }
}

/* A control is not decoration. Everything else here degrades quietly when
   scroll-driven animation is missing — no progress bar, no stuck-nav border, no
   fades — but the base .to-top rule hides the back-to-top button outright, so on
   such a browser the button would simply never appear. Reveal it. */
@supports not (animation-timeline: scroll(root block)) {
  .to-top{opacity:.92;visibility:visible;transform:none}
  .to-top:hover{opacity:1}
}

@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline: view()) {
    /* The stagger moves the range, not a delay: a progress-driven animation has
       no notion of time. The ranges end at or before half an element's entry,
       so nothing is still fading once it is far enough into view to read. */
    .reveal{animation:reveal-rise linear both;animation-timeline:view();animation-range:entry 0% entry 30%}
    .reveal[data-d="1"]{animation-range:entry 5% entry 35%}
    .reveal[data-d="2"]{animation-range:entry 10% entry 40%}
    .reveal[data-d="3"]{animation-range:entry 15% entry 45%}
    .reveal[data-d="4"]{animation-range:entry 20% entry 50%}

    /* The hero numbers are on screen at load, so a scroll timeline would park
       them already finished. They run on the clock instead; the Impact row
       below the fold tracks the viewport. Both overlay the real value that is
       already in the HTML, so a failure here shows the correct number. */
    .hero-stats .count-up{
      position:relative;color:transparent;counter-reset:c var(--num);
      animation:count-up 1.1s cubic-bezier(.33,1,.68,1) .2s both;
    }
    /* The Impact row sits below the fold, so it used to count up against the
       viewport. A --num animation is a registered custom property: it runs on
       the main thread and re-lays-out the counter() text it feeds, once per
       scroll frame, for as long as the section is entering. It now runs on the
       clock like the hero row — by the time a phone reaches it the number has
       settled, which is the same end state and none of the cost. Both overlay
       the real value already in the HTML, so a failure shows the correct number. */
    .ach-hero .count-up{
      position:relative;color:transparent;counter-reset:c var(--num);
      animation:count-up 1.1s cubic-bezier(.33,1,.68,1) .2s both;
    }
    .count-up::after{
      content:attr(data-prefix) counter(c) attr(data-suffix);
      position:absolute;left:0;top:0;color:var(--text);
    }
  }
}

/* Scroll-spy. The nav links are not descendants of the sections, so the
   view timelines are hoisted to :root with timeline-scope. view-timeline-inset
   collapses each section's observation root to a band across the middle of the
   viewport, which makes "this section is the one you are reading" exactly
   `cover 0% → cover 100%` — and only one section can span that band at a time. */
@supports (animation-timeline: view()) and (timeline-scope: --s) {
  body{timeline-scope:--s-about,--s-skills,--s-experience,--s-projects,--s-achievements,--s-development,--s-contact}
  main section[id]{view-timeline-inset:48% 48%}
  #about{view-timeline-name:--s-about}
  #skills{view-timeline-name:--s-skills}
  #experience{view-timeline-name:--s-experience}
  #projects{view-timeline-name:--s-projects}
  #achievements{view-timeline-name:--s-achievements}
  #development{view-timeline-name:--s-development}
  #contact{view-timeline-name:--s-contact}

  #navLinks a{animation:spy-link linear both;animation-timeline:view();animation-range:cover 0% cover 100%}
  #navLinks a::before{
    content:'';position:absolute;inset:2px 4px;border-radius:7px;z-index:-1;
    background:var(--accent-soft);opacity:0;pointer-events:none;
    animation:spy-pill linear both;animation-timeline:view();animation-range:cover 0% cover 100%;
  }
  #navLinks a::after{
    content:'';position:absolute;left:13px;right:13px;bottom:1px;height:2px;
    background:var(--accent);border-radius:2px;box-shadow:0 0 8px var(--accent-glow);transform:scaleX(0);
    animation:spy-bar linear both;animation-timeline:view();animation-range:cover 0% cover 100%;
  }
  #navLinks a[href="#about"],#navLinks a[href="#about"]::before,#navLinks a[href="#about"]::after{animation-timeline:--s-about}
  #navLinks a[href="#skills"],#navLinks a[href="#skills"]::before,#navLinks a[href="#skills"]::after{animation-timeline:--s-skills}
  #navLinks a[href="#experience"],#navLinks a[href="#experience"]::before,#navLinks a[href="#experience"]::after{animation-timeline:--s-experience}
  #navLinks a[href="#projects"],#navLinks a[href="#projects"]::before,#navLinks a[href="#projects"]::after{animation-timeline:--s-projects}
  #navLinks a[href="#achievements"],#navLinks a[href="#achievements"]::before,#navLinks a[href="#achievements"]::after{animation-timeline:--s-achievements}
  #navLinks a[href="#development"],#navLinks a[href="#development"]::before,#navLinks a[href="#development"]::after{animation-timeline:--s-development}
  #navLinks a[href="#contact"],#navLinks a[href="#contact"]::before,#navLinks a[href="#contact"]::after{animation-timeline:--s-contact}
  @media (max-width:820px){#navLinks a::before,#navLinks a::after{display:none}}
}
