/* Light version of the same token scale (ink = background, fog = text) */
:root{
  --ink-950:#ffffff; --ink-850:#f1f1f4;
  --fog-50:#0b0b0f; --fog-100:#17171c; --fog-200:#2b2b32; --fog-300:#46464f; --fog-400:#6b6b75; --fog-500:#8e8e99;
  --line:#e9e9ee; --line-strong:#d6d6dd;
  --signal:#2563eb; --signal-bright:#1d4ed8;
  --font-sans:"Inter",ui-sans-serif,system-ui,sans-serif; --font-mono:"JetBrains Mono",ui-monospace,"SFMono-Regular",Menlo,monospace;
  --font-display:"Newsreader",ui-serif,Georgia,"Times New Roman",serif;
  --ease-out-soft:cubic-bezier(.22,1,.36,1);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:5rem}
body{background:var(--ink-950);color:var(--fog-200);font-family:var(--font-sans);font-feature-settings:"cv11","ss01";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-height:100vh;line-height:1.65}
a{color:inherit;text-decoration:none}
img{display:block}
button{font:inherit;color:inherit}
.shell{width:100%;max-width:100rem;margin-inline:auto;padding-inline:clamp(1.5rem,5vw,5rem)}

/* ---------- header (h-14, fixed) ---------- */
[data-nav]{position:fixed;inset-inline:0;top:0;z-index:50;background:rgba(255,255,255,.8);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid transparent;transition:transform .35s var(--ease-out-soft),background .3s var(--ease-out-soft),border-color .3s var(--ease-out-soft)}
[data-nav].is-scrolled{background:rgba(255,255,255,.94);border-bottom-color:var(--line)}
[data-nav].is-hidden:not(:focus-within){transform:translateY(-100%)}
.nav-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);column-gap:1.5rem;height:3.5rem;align-items:center}
.nav-row>.icons{justify-self:end}
.brand{display:inline-flex;flex-direction:column;gap:.2rem;line-height:1.15;min-width:0;justify-self:start;max-width:100%}
.brand span:first-child{font-weight:500;letter-spacing:-.025em;color:var(--fog-50)}
.brand span:last-child{font-family:var(--font-display);font-size:.8rem;font-style:italic;color:var(--fog-400);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.primary{display:flex;align-items:center;gap:.25rem}
.primary a{font-family:var(--font-mono);border-radius:.375rem;padding:.375rem .75rem;font-size:.8rem;font-weight:600;line-height:1.65;color:var(--fog-200);transition:color .15s}
.primary a:hover,.primary a[aria-current]{color:var(--fog-50)}
.icons{display:flex;align-items:center;gap:.25rem}
.icons a{display:inline-flex;height:2rem;width:2rem;align-items:center;justify-content:center;border-radius:.375rem;color:var(--fog-300);transition:color .15s,background-color .15s}
.icons a:hover{background:rgba(0,0,0,.05);color:var(--fog-50)}
.icons svg{width:15px;height:15px;fill:currentColor}

/* ---------- on-page ticks (xl) ---------- */
.onpage{position:fixed;right:1.5rem;top:50%;z-index:30;transform:translateY(-50%);display:none}
.onpage ul{list-style:none;display:flex;flex-direction:column;gap:.5rem}
.onpage-link{justify-content:flex-end;align-items:center;height:18px;display:flex;position:relative}
.onpage-tick{background:var(--line-strong);width:16px;height:2px;border-radius:2px;display:block;transition:width .25s var(--ease-out-soft),background-color .25s var(--ease-out-soft)}
.onpage-link:hover .onpage-tick{background:var(--fog-300)}
.onpage-link.is-active .onpage-tick{background:var(--signal);width:30px}
.onpage-label{white-space:nowrap;font-family:var(--font-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--fog-200);background:rgba(255,255,255,.92);border:1px solid var(--line);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border-radius:4px;padding:.18rem .5rem;font-size:.66rem;position:absolute;right:26px;opacity:0;pointer-events:none;transform:translate(6px);transition:opacity .2s var(--ease-out-soft),transform .2s var(--ease-out-soft)}
.onpage-link:hover .onpage-label,.onpage-link.is-active .onpage-label{opacity:1;transform:translate(0)}
.onpage-link.is-active .onpage-label{color:var(--fog-50)}
@media (min-width:80rem){.onpage{display:block}}

/* ---------- intro (pt-32 / sm:pt-40, pb-12) ---------- */
.page{padding-top:8rem;padding-bottom:3rem}
.intro-top{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}
h1{font-size:2.25rem;line-height:2.5rem;font-weight:600;letter-spacing:-.025em;color:var(--fog-50)}
.tagline{margin-top:.5rem;font-family:var(--font-display);font-size:1.5rem;line-height:2rem;font-style:italic;color:var(--fog-300)}
.role{margin-top:.75rem;font-size:.875rem;line-height:1.25rem;color:var(--fog-400)}
.btn{font-family:var(--font-mono);letter-spacing:.02em;border:1px solid var(--line-strong);color:var(--fog-100);white-space:nowrap;border-radius:4px;align-items:center;gap:.5rem;padding:.55rem 1rem;font-size:.8rem;font-weight:500;line-height:1.65;display:inline-flex;flex-shrink:0;background:transparent;cursor:pointer;transition:all .25s var(--ease-out-soft)}
.btn:hover{border-color:rgba(37,99,235,.6);color:var(--fog-50);background:rgba(37,99,235,.06)}
.contact{margin-top:1rem;display:flex;flex-wrap:wrap;column-gap:1.25rem;row-gap:.25rem}
.contact a{font-family:var(--font-mono);font-size:.875rem;line-height:1.25rem;color:var(--fog-400);transition:color .15s}
.contact a:hover{color:var(--fog-100)}
.contact a.mail:hover{color:var(--signal-bright)}
.summary{margin-top:2rem;max-width:56rem;line-height:1.625;color:var(--fog-300)}

/* ---------- photo strip (mt-10) ---------- */
.photo-strip{margin-top:2.5rem;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,#0000,#000 8% 92%,#0000);mask-image:linear-gradient(90deg,#0000,#000 8% 92%,#0000)}
.photo-strip__track{width:max-content;animation:photo-strip var(--strip-duration,75s) linear infinite;display:flex}
.photo-strip:hover .photo-strip__track,html.lightbox-open .photo-strip__track{animation-play-state:paused}
.photo-strip__set{gap:.75rem;padding-right:.75rem;display:flex;list-style:none}
.photo-strip__zoom{cursor:zoom-in;background:0 0;border:0;padding:0;display:block}
.photo-strip img{background:var(--ink-850);filter:grayscale(.2);width:auto;max-width:none;height:9rem;transition:filter .4s var(--ease-out-soft)}
.photo-strip img:hover{filter:none}
@keyframes photo-strip{to{transform:translate(-50%)}}
@media (min-width:40rem){.photo-strip img{height:11rem}}

/* ---------- sections (mt-11) ---------- */
section{margin-top:2.75rem}
.group-rule{display:flex;align-items:center;gap:1rem;margin-bottom:1rem;font-size:.75rem;line-height:1rem;font-weight:600;letter-spacing:.15em;text-transform:uppercase;color:var(--fog-400)}
.group-rule::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,var(--line-strong),transparent)}
.rows>*+*{margin-top:.75rem}
.row{display:flex;flex-direction:column;gap:.25rem}
.row-main{min-width:0;display:flex;align-items:center;gap:.75rem}
.min{min-width:0}
.logo{display:flex;height:2rem;width:2rem;flex-shrink:0;align-items:center;justify-content:center;font-family:var(--font-mono);font-size:.7rem;font-weight:600;color:var(--fog-500)}
.t{color:var(--fog-100);transition:color .15s}
a.row:hover .t{color:var(--signal-bright)}
.o{color:var(--fog-500)}
.meta{font-family:var(--font-mono);font-size:.75rem;line-height:1rem;color:var(--fog-500)}
.row:has(.logo) .meta.pad{padding-left:2.75rem}
@media (min-width:40rem){
  .page{padding-top:10rem}
  .row{flex-direction:row;justify-content:space-between;gap:1rem;align-items:center}
  .row.baseline{align-items:baseline}
  .row .meta{flex-shrink:0}
  .row .meta.pad{padding-left:0}
}

/* ---------- footer (mt-32, 4 columns) ---------- */
footer{position:relative;margin-top:8rem;border-top:1px solid var(--line)}
.foot{border-inline:1px solid var(--line);display:grid}
.foot>div{padding:1.5rem}
.foot>div+div{border-top:1px solid var(--line)}
.foot>div:first-child{padding-top:3.5rem;padding-bottom:3.5rem}
.foot .fl{display:flex;flex-direction:column;gap:.5rem}
.foot .fl a{font-family:var(--font-mono);font-size:.875rem;line-height:1.25rem;color:var(--fog-400);transition:color .15s}
.foot .fl a:hover{color:var(--fog-100)}
.foot .ft{font-family:var(--font-display);font-size:1.5rem;line-height:2rem;font-style:italic;color:var(--fog-50)}
.foot p{margin-top:.75rem;font-size:.875rem;line-height:1.25rem;color:var(--fog-400)}
.foot small{display:block;font-size:.75rem;line-height:1.5;color:var(--fog-500)}
@media (min-width:48rem){
  .foot{grid-template-columns:repeat(4,1fr)}
  .foot>div{padding:3.5rem 1.5rem}
  .foot>div+div{border-top:0;border-left:1px solid var(--line)}
}

/* ---------- lightbox ---------- */
.lightbox{position:fixed;inset:0;z-index:60;display:grid;place-items:center;cursor:zoom-out;background:rgba(255,255,255,0);pointer-events:none;transition:background-color .35s var(--ease-out-soft),backdrop-filter .35s var(--ease-out-soft)}
.lightbox.open{background:rgba(255,255,255,.9);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);pointer-events:auto}
.lightbox img{max-width:92vw;max-height:84vh;opacity:0;transform:scale(.97);transition:opacity .35s var(--ease-out-soft),transform .35s var(--ease-out-soft);box-shadow:0 24px 60px rgba(0,0,0,.18)}
.lightbox.open img{opacity:1;transform:none}
.lightbox p{position:absolute;inset-inline:0;bottom:1.5rem;text-align:center;font-family:var(--font-mono);font-size:.75rem;color:var(--fog-400);opacity:0;transition:opacity .35s}
.lightbox.open p{opacity:1}
.lightbox p a{color:var(--fog-200);border-bottom:1px solid var(--line-strong);cursor:pointer}

@media (max-width:47.99rem){.primary{display:none}}
@media (max-width:39.99rem){.icons{display:none}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.photo-strip__track{animation:none}}
@media print{
  [data-nav],.onpage,.photo-strip,.btn,footer,.lightbox{display:none!important}
  .page{padding-top:0}
  section{margin-top:1.5rem;break-inside:avoid}
}

/* ---------- detail pages (shell-narrow article) ---------- */
.shell-narrow{max-width:52rem;padding-inline:1.5rem}
.article{padding-top:8rem;padding-bottom:2.5rem}
.eyebrow{font-family:var(--font-mono);letter-spacing:.18em;text-transform:uppercase;color:var(--fog-400);font-size:.72rem;font-weight:500;transition:color .15s}
a.eyebrow:hover{color:var(--fog-200)}
.article header{margin-top:1.25rem}
.article h1.big{margin-top:1rem;font-size:2.25rem;line-height:2.5rem;font-weight:600;letter-spacing:-.025em;color:var(--fog-50)}
.chips{margin-top:1rem;display:flex;flex-wrap:wrap;align-items:center;gap:.75rem}
.chip{font-family:var(--font-mono);letter-spacing:.04em;border:1px solid var(--line);color:var(--fog-200);background:rgba(0,0,0,.02);border-radius:3px;align-items:center;gap:.35rem;padding:.2rem .5rem;font-size:.68rem;display:inline-flex}
.content{margin-top:2.5rem;line-height:1.7;color:var(--fog-300)}
.content p+p{margin-top:1rem}
.article-foot{margin-top:3.5rem;border-top:1px solid var(--line);padding-top:1.5rem}
@media (min-width:40rem){.article{padding-top:10rem}.article h1.big{font-size:3rem;line-height:1}}

/* skills: readable two-column list in the body font */
#skills .rows>*+*{margin-top:1.1rem}
#skills .row .t{font-weight:500;color:var(--fog-50)}
#skills .row .meta{font-family:var(--font-sans);font-size:1rem;line-height:1.7;color:var(--fog-200);letter-spacing:0}
@media (min-width:40rem){
  #skills .row{gap:2rem;align-items:baseline}
  #skills .row .min{flex-shrink:0;width:17rem}
  #skills .row .meta{flex:1;flex-shrink:1;text-align:left}
}

/* ---------- section pages (/experience/, /projects/, ...) ---------- */
.section-head{padding-top:8rem;padding-bottom:3rem}
.section-head h1{margin-top:1.25rem;font-size:2.25rem;line-height:2.5rem;font-weight:600;letter-spacing:-.025em;color:var(--fog-50)}
.lede{margin-top:1.5rem;max-width:42rem;font-size:1.125rem;line-height:1.625;color:var(--fog-300)}
.cards{display:flex;flex-direction:column;gap:1.25rem;padding-bottom:2.5rem}
.panel{background:#fff;border:1px solid var(--line);border-radius:4px;padding:1.5rem;transition:border-color .25s var(--ease-out-soft),background-color .25s var(--ease-out-soft)}
.panel:hover{border-color:var(--line-strong);background:#fafafb}
.card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}
.card-top h3{font-size:1.125rem;line-height:1.4;font-weight:600;color:var(--fog-50)}
.card-top h3 a:hover{color:var(--signal-bright)}
.card-top .chip{flex-shrink:0}
.card-place{margin-top:.5rem;font-family:var(--font-mono);font-size:.75rem;color:var(--fog-400)}
.card-body{margin-top:1rem;max-width:56rem;line-height:1.7;color:var(--fog-300)}
.card-more{display:inline-block;margin-top:1.25rem;font-family:var(--font-mono);font-size:.8rem;color:var(--fog-200);transition:color .15s}
.card-more:hover{color:var(--signal-bright)}
@media (min-width:40rem){.section-head{padding-top:10rem}.section-head h1{font-size:3.25rem;line-height:1.05}.panel{padding:1.75rem}}

/* ---------- detail pages ---------- */
.meta-place{font-family:var(--font-mono);font-size:.75rem;color:var(--fog-400)}
.content ul{margin-top:1rem;padding-left:1.25rem;list-style:disc}
.content li{margin-top:.5rem}
.content li::marker{color:var(--fog-500)}
.detail-chips{margin-top:2rem}
.btns{margin-top:2rem;display:flex;flex-wrap:wrap;gap:.5rem}
.btns .btn{text-decoration:none}
.related{margin-top:2.5rem}
.related ul{margin-top:.75rem;list-style:none;display:flex;flex-direction:column;gap:.5rem}
.related a{color:var(--fog-100);transition:color .15s}
.related a:hover{color:var(--signal-bright)}

/* ---------- icons ---------- */
.logo{overflow:hidden;border-radius:4px}
.logo img{width:100%;height:100%;object-fit:contain;display:block}
.eyebrow-row{display:flex;align-items:center;gap:.75rem}
.eyebrow-row .logo{height:1.75rem;width:1.75rem}
.card-title{display:flex;align-items:center;gap:.75rem;min-width:0}
.card-title .logo{height:2rem;width:2rem}
.row .meta{text-align:right}
@media (max-width:39.99rem){.row .meta{text-align:left}.row:has(.logo) .meta{padding-left:2.75rem}}
