/* =====================================================================
   SANSKAR NANEGAONKAR · a site at golden hour
   Cinematic Shinkai twilight. Static HTML/CSS/JS, no build.
   ===================================================================== */

:root {
  /* palette */
  --peach:   #FFB88C;
  --rose:    #DE6262;
  --indigo:  #3A4A7A;
  --night:   #1A1A3D;
  --night-2: #16213E;
  --night-3: #0F3460;
  --sky:     #7EC8E3;
  --sky-2:   #A8DADC;
  --gold:    #FFD98E;
  --gold-2:  #FFC371;
  --cloud:   #FFF5E1;
  --flare:   #FFE8A3;
  --ink:     #FDFBF7;
  --ink-dim: rgba(253, 251, 247, 0.74);
  --ink-fade:rgba(253, 251, 247, 0.48);

  /* live sky vars · JS interpolates these by scroll (defaults = golden hour) */
  --sky-top: #FFB88C;
  --sky-mid: #DE6262;
  --sky-bot: #4A3A60;
  --sun-x: 70%;
  --sun-y: 60%;
  --sun-op: 0.95;
  --stars-op: 0;
  --win-op: 0.35;

  /* glass */
  --frost-bg: rgba(20, 22, 52, 0.42);
  --frost-bg-strong: rgba(14, 16, 40, 0.62);
  --frost-line: rgba(255, 245, 225, 0.18);
  --frost-line-hi: rgba(255, 245, 225, 0.36);
  --pill-bg: rgba(16, 18, 44, 0.46);

  /* type · cinematic editorial */
  --f-head: "Fraunces", "Hoefler Text", "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body: "Mona Sans", "Hubot Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --f-mono: "Spline Sans Mono", "IBM Plex Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
  --f-jp:   "Shippori Mincho", "Noto Serif JP", "Yu Mincho", serif;

  /* adaptive ink · flips dark-on-bright -> cream-on-night with scroll (JS sets --ink-t 0..1) */
  --ink-t: 0;
  --ink-dark: #16182E;
  --ink-cream: #FDFBF7;
  --sky-ink:     color-mix(in oklch, var(--ink-dark), var(--ink-cream) calc(var(--ink-t) * 100%));
  --sky-ink-dim: color-mix(in oklch, #3c3e54,            #e9e6e0      calc(var(--ink-t) * 100%));
  --sky-accent:  color-mix(in oklch, #A8322F,            var(--gold)  calc(var(--ink-t) * 100%));

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* text legibility halo (counts as perceived contrast on large display type) */
  --halo: 0 1px 2px rgba(8,10,26,.55), 0 2px 10px rgba(8,10,26,.45);

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 84px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--night-2);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--flare); color: var(--night); }

a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--gold); }
img, svg, canvas, video { display: block; max-width: 100%; }

/* keyboard focus · visible on every interactive element over any sky tone */
:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--flare);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible, .intro__btn:focus-visible, .contact__links a:focus-visible {
  outline: 3px solid var(--flare);
  outline-offset: 4px;
}

.skip-link {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%) translateY(-160%);
  z-index: 300; background: var(--cloud); color: var(--night);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em;
  padding: 10px 18px; border-radius: 999px; transition: transform .25s var(--ease);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); }

/* =====================================================================
   ATMOSPHERE
   ===================================================================== */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.sky__gradient {
  position: absolute; inset: -2px;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 46%, var(--sky-bot) 100%);
  transition: background 220ms linear;
}

/* sun + flare + god rays */
.sky__sun {
  position: absolute;
  left: var(--sun-x); top: var(--sun-y);
  width: min(74vw, 680px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: var(--sun-op);
  transition: opacity 220ms linear, top 220ms linear;
}
.sky__sun::before {            /* crisp god-ray spokes */
  content: ""; position: absolute; inset: -6%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg at 50% 50%,
      rgba(255,232,163,.12) 0deg 1.3deg, transparent 1.3deg 13deg);
  -webkit-mask: radial-gradient(circle, transparent 13%, #000 30%, transparent 72%);
          mask: radial-gradient(circle, transparent 13%, #000 30%, transparent 72%);
  opacity: .75;
  animation: sunspin 150s linear infinite reverse;
}
.sky__sun-rays { width: 100%; height: 100%; animation: sunspin 120s linear infinite; }
.sky__sun-core {
  position: absolute; left: 50%; top: 50%;
  width: 16%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--cloud) 0%, var(--flare) 42%, rgba(255,195,113,0) 72%);
  filter: blur(2px);
  animation: sunpulse 7s var(--ease) infinite;
}
@keyframes sunspin { to { transform: rotate(360deg); } }
@keyframes sunpulse { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity:.95; } 50% { transform: translate(-50%,-50%) scale(1.08); opacity:1; } }

/* clouds · parallax (outer translateY via JS) + GPU drift (inner translateX) */
.sky__clouds { position: absolute; left: -10%; right: -10%; height: 60%; overflow: hidden; }
.sky__clouds::before {
  content: ""; position: absolute; inset: -10% -30%;
  background-repeat: repeat-x;
  will-change: transform;
}
.sky__clouds--far { top: 6%; }
.sky__clouds--far::before {
  background-image:
    radial-gradient(60% 80% at 15% 60%, rgba(255,245,225,.30), rgba(255,245,225,0) 70%),
    radial-gradient(50% 70% at 45% 50%, rgba(255,245,225,.22), rgba(255,245,225,0) 70%),
    radial-gradient(70% 90% at 78% 65%, rgba(255,245,225,.26), rgba(255,245,225,0) 70%);
  background-size: 1100px 100%; filter: blur(2px); opacity: .55;
  animation: drift-far 90s linear infinite;
}
.sky__clouds--mid { top: 20%; }
.sky__clouds--mid::before {
  background-image:
    radial-gradient(55% 75% at 25% 55%, rgba(255,245,225,.40), rgba(255,245,225,0) 72%),
    radial-gradient(65% 85% at 65% 60%, rgba(255,236,200,.34), rgba(255,236,200,0) 72%);
  background-size: 900px 100%; filter: blur(3px); opacity: .7;
  animation: drift-mid 64s linear infinite;
}
.sky__clouds--near { top: 38%; height: 50%; }
.sky__clouds--near::before {
  background-image:
    radial-gradient(60% 70% at 20% 60%, rgba(222,98,98,.22), rgba(222,98,98,0) 72%),
    radial-gradient(70% 80% at 70% 55%, rgba(255,184,140,.30), rgba(255,184,140,0) 72%);
  background-size: 760px 100%; filter: blur(6px); opacity: .6;
  animation: drift-near 46s linear infinite;
}
@keyframes drift-far  { from { transform: translateX(0); } to { transform: translateX(-1100px); } }
@keyframes drift-mid  { from { transform: translateX(0); } to { transform: translateX(-900px); } }
@keyframes drift-near { from { transform: translateX(0); } to { transform: translateX(-760px); } }

.sky__particles { position: absolute; inset: 0; width: 100%; height: 100%; }

.sky__stars {
  position: absolute; inset: 0; opacity: var(--stars-op); transition: opacity 400ms linear;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 28% 32%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 42% 12%, #fff, transparent),
    radial-gradient(1px 1px at 56% 26%, #fff, transparent),
    radial-gradient(1px 1px at 68% 8%,  #fff, transparent),
    radial-gradient(1.5px 1.5px at 78% 22%, #fff, transparent),
    radial-gradient(1px 1px at 88% 14%, #fff, transparent),
    radial-gradient(1px 1px at 8% 40%,  #fff, transparent),
    radial-gradient(1px 1px at 35% 46%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 62% 42%, #fff, transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: calc(var(--stars-op) * .55); } to { opacity: var(--stars-op); } }

/* foreground silhouette */
.sky__silhouette { position: absolute; left: 0; right: 0; bottom: 0; height: min(38vh, 340px); }
.sky__silhouette svg { width: 100%; height: 100%; }
.silhouette__city rect { fill: rgba(9, 9, 24, 0.94); }
.silhouette__city .win { fill: var(--gold); opacity: var(--win-op); animation: flicker 5s steps(2) infinite; }
.silhouette__poles rect { fill: rgba(7, 7, 20, 0.96); }
.silhouette__poles path { fill: none; stroke: rgba(7, 7, 20, 0.92); stroke-width: 2.2; }
@keyframes flicker { 0%,92%,100% { opacity: var(--win-op); } 95% { opacity: calc(var(--win-op) * .3); } }

.sky__grain {
  position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sky__cursor-glow {
  position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,232,163,.18), rgba(255,232,163,0) 64%);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .4s ease; mix-blend-mode: screen;
}
.sky__cursor-glow.is-on { opacity: 1; }

/* =====================================================================
   INTRO SPLASH
   ===================================================================== */
.intro {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; cursor: pointer;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(255,184,140,.20), transparent 60%),
    linear-gradient(180deg, #FFB88C 0%, #DE6262 44%, #1A1A3D 100%);
  transition: opacity 1.1s var(--ease), visibility 1.1s var(--ease);
}
.intro.is-gone { display: none; }
.intro__inner { text-align: center; position: relative; z-index: 2; padding: 24px; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.intro.is-exiting .intro__inner { opacity: 0; transform: translateY(-16px) scale(.985); }

/* twilight brush sweep */
.intro__brush { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.intro__stroke { will-change: stroke-dashoffset; }
.intro__kanji {
  font-family: var(--f-jp); font-weight: 500; font-size: clamp(80px, 22vw, 260px);
  color: rgba(255,245,225,.10); position: absolute; left: 50%; top: 46%;
  transform: translate(-50%,-50%); pointer-events: none; line-height: 1; white-space: nowrap;
}
.intro__eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .42em;
  color: var(--ink); margin-bottom: 18px; text-shadow: var(--halo); animation: rise .9s var(--ease) both;
}
.intro__logo {
  font-family: var(--f-head); font-weight: 500; font-size: clamp(54px, 13vw, 150px);
  letter-spacing: -.02em; color: var(--ink);
  text-shadow: 0 6px 50px rgba(16,18,44,.45), var(--halo); animation: rise 1s .08s var(--ease) both;
}
.intro__sub {
  font-family: var(--f-mono); font-size: clamp(11px,2.4vw,14px); letter-spacing: .36em;
  color: var(--cloud); margin-top: 8px; text-shadow: var(--halo); animation: rise 1s .16s var(--ease) both;
}
.intro__btn {
  margin-top: 40px; display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .28em;
  color: var(--night); background: var(--cloud); border: none; border-radius: 999px;
  padding: 15px 30px; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 10px 40px rgba(255,232,163,.30); animation: rise 1s .24s var(--ease) both;
}
.intro__btn:hover { transform: translateY(-3px); box-shadow: 0 16px 54px rgba(255,232,163,.5); }
.intro__btn svg { transition: transform .3s var(--ease); }
.intro__btn:hover svg { transform: translateX(4px); }
.intro__hint {
  margin-top: 18px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .26em;
  color: rgba(253,251,247,.6); animation: rise 1s .32s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 16px var(--pad);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), padding .4s var(--ease);
}
.nav.is-scrolled {
  background: linear-gradient(180deg, rgba(14,16,40,.72), rgba(14,16,40,0));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding-top: 12px; padding-bottom: 12px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__brand-mark {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--cloud), var(--gold-2) 60%, var(--rose));
  box-shadow: 0 0 14px var(--flare);
}
/* nav text follows the adaptive ink at the top (dark over bright sky),
   then flips to cream once the dark frosted bar appears on scroll */
.nav__brand-text { font-family: var(--f-mono); font-weight: 600; font-size: 12px; letter-spacing: .2em; color: var(--sky-ink); }
.nav__links { display: flex; gap: 26px; list-style: none; }
.nav__links a {
  display: inline-block; padding: 10px 2px;
  font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: .18em;
  color: var(--sky-ink); opacity: .82; position: relative; transition: color .3s var(--ease), opacity .3s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: 4px; height: 1.5px; width: 0;
  background: var(--sky-accent); transition: width .3s var(--ease);
}
.nav__links a:hover { opacity: 1; color: var(--sky-accent); }
.nav__links a:hover::after { width: calc(100% - 4px); }
.nav__hud { display: flex; align-items: center; gap: 8px; }
.nav__hud-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--sky-accent);
  box-shadow: 0 0 10px var(--sky-accent); animation: pulse 2.4s ease-in-out infinite;
}
.nav__hud-text { font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .24em; color: var(--sky-ink-dim); }

/* scrolled: dark frosted bar -> force cream regardless of phase */
.nav.is-scrolled .nav__brand-text { color: var(--ink-cream); }
.nav.is-scrolled .nav__links a { color: var(--ink-cream); opacity: .8; }
.nav.is-scrolled .nav__links a:hover { opacity: 1; color: var(--gold); }
.nav.is-scrolled .nav__links a::after { background: var(--gold); }
.nav.is-scrolled .nav__hud-text { color: rgba(253,251,247,.62); }
.nav.is-scrolled .nav__hud-dot { background: var(--sky-2); box-shadow: 0 0 10px var(--sky-2); }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }

/* hamburger toggle (mobile only) */
.nav__toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: var(--pill-bg); border: 1px solid var(--frost-line); border-radius: 12px; cursor: pointer;
}
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav.nav--open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.nav--open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--pad) 90px; max-width: var(--maxw); margin: 0 auto;
}
.hero::before {            /* legibility scrim · only on the dark/cream phases (dark ink needs none) */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 85% at 28% 46%,
      rgba(14,16,38, calc(.5 * var(--ink-t))), rgba(14,16,38, calc(.18 * var(--ink-t))) 46%, transparent 72%);
}
.hero__inner { position: relative; z-index: 2; max-width: 880px; }
.hero__eyebrow { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hero__chip {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em;
  padding: 8px 14px; border-radius: 999px;
  background: var(--pill-bg); border: 1px solid var(--frost-line); color: var(--ink);
}
.hero__chip--accent { color: var(--night); background: var(--flare); border-color: transparent; font-weight: 600; }

.hero__title {
  font-family: var(--f-head); font-weight: 900;
  font-size: clamp(48px, 16vw, 188px); line-height: .92; letter-spacing: -.012em; color: var(--sky-ink);
  text-shadow: 0 10px 60px rgba(14,16,38,.34), 0 2px 18px rgba(255,232,163,.18),
               1px 0 0 rgba(255,90,90,.12), -1px 0 0 rgba(90,200,255,.12);   /* subtle chromatic aberration */
}
.hero__surname { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 14px; }
.hero__surname-bar { width: 46px; height: 2px; background: var(--sky-accent); }
.hero__surname-text { font-family: var(--f-head); font-weight: 600; font-size: clamp(18px,3.4vw,30px); letter-spacing: 0; color: var(--sky-ink); }
.hero__surname-dot { color: var(--sky-accent); }
.hero__surname-tag { font-family: var(--f-mono); font-size: clamp(11px,2vw,13px); letter-spacing: .26em; color: var(--sky-accent); }

.hero__pitch {
  margin-top: 30px; max-width: 640px;
  font-size: clamp(17px, 2.4vw, 22px); line-height: 1.62; color: var(--sky-ink);
  text-shadow: 0 1px 2px color-mix(in srgb, var(--ink-dark) calc(var(--ink-t) * 60%), transparent);
}
.hero__pitch em { color: var(--sky-accent); font-weight: 600; }
.hero__meta {
  margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--sky-ink-dim);
}
.hero__meta > span:first-child { color: var(--sky-accent); }
.hero__meta > span:last-child { overflow-wrap: anywhere; }

.hero__cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; padding: 14px 26px; border-radius: 999px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--primary { background: var(--cloud); color: var(--night); box-shadow: 0 10px 36px rgba(255,232,163,.28); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(255,232,163,.46); }
.btn--ghost { border: 1px solid var(--frost-line-hi); color: var(--ink); background: var(--pill-bg); }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--gold); }

.hero__scroll { margin-top: 56px; display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .3em; color: var(--sky-ink-dim); }
.hero__scroll-line { width: 64px; height: 1px; background: linear-gradient(90deg, var(--ink-fade), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 24px; background: var(--gold); animation: scan 2.6s var(--ease) infinite; }
@keyframes scan { 0% { transform: translateX(-24px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateX(64px); opacity: 0; } }

.hero__readouts { position: absolute; right: var(--pad); bottom: 12vh; z-index: 2; display: grid; gap: 10px; text-align: right; }
.readout {
  display: flex; flex-direction: column; align-items: flex-end; padding: 10px 16px; border-radius: 12px;
  background: var(--frost-bg); border: 1px solid var(--frost-line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.readout__label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em; color: var(--ink-fade); }
.readout__val { font-family: var(--f-head); font-weight: 700; font-size: 22px; color: var(--gold); }

/* =====================================================================
   BANDS / SECTIONS
   ===================================================================== */
.band {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(70px, 12vh, 150px) var(--pad);
  display: grid; grid-template-columns: 120px 1fr; gap: clamp(20px, 5vw, 64px);
  scroll-margin-top: 80px;
}
.band:focus { outline: none; }
.rail { position: relative; }
.rail__num { font-family: var(--f-mono); font-size: 13px; letter-spacing: .2em; color: var(--sky-accent); display: block; }
.rail__label {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .26em; color: var(--sky-ink-dim);
  writing-mode: vertical-rl; margin-top: 16px; display: inline-block;
}
.band__body { min-width: 0; position: relative; isolation: isolate; }
.band__body::before {           /* soft scrim · appears only on the dark/cream phases */
  content: ""; position: absolute; z-index: -1; left: -6%; top: -5%;
  width: min(720px, 86%); height: clamp(180px, 36%, 380px);
  background: radial-gradient(78% 100% at 22% 30%, rgba(10,12,30, calc(.5 * var(--ink-t))), transparent 72%);
  filter: blur(28px); pointer-events: none;
}
.kicker {
  font-family: var(--f-head); font-weight: 500; font-size: clamp(38px, 7vw, 84px);
  line-height: 1; color: var(--sky-ink);
  text-shadow: 0 6px 40px color-mix(in srgb, rgba(10,12,30,.6) calc(var(--ink-t) * 100%), transparent);
}
.lede {
  margin-top: 20px; max-width: 640px; font-size: clamp(16px, 2.2vw, 20px); color: var(--sky-ink); line-height: 1.6;
  text-shadow: 0 1px 2px color-mix(in srgb, rgba(8,10,26,.7) calc(var(--ink-t) * 100%), transparent);
}

/* frosted glass primitive */
.frost {
  background: var(--frost-bg); border: 1px solid var(--frost-line); border-radius: 18px;
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
  padding: clamp(20px, 3vw, 30px); box-shadow: 0 24px 60px rgba(8, 10, 30, .28);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .frost, .card, .readout { background: var(--frost-bg-strong); }
}

.two-col { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.two-col p { color: var(--ink); }

.quote { margin-top: 32px; position: relative; padding: 26px 26px 26px 40px; border-left: 2px solid var(--sky-accent); }
.quote__mark { position: absolute; left: 4px; top: 6px; font-family: var(--f-head); font-weight: 500; font-size: 72px; color: var(--sky-accent); opacity: .55; line-height: 1; }
.quote p { font-family: var(--f-head); font-weight: 500; font-size: clamp(19px, 3vw, 30px); line-height: 1.42; color: var(--sky-ink); }

/* =====================================================================
   CARDS · timeline / projects
   ===================================================================== */
.card {
  list-style: none; background: var(--frost-bg); border: 1px solid var(--frost-line); border-radius: 18px;
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
  padding: clamp(22px, 3vw, 32px); box-shadow: 0 24px 60px rgba(8, 10, 30, .26);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--frost-line-hi); box-shadow: 0 30px 80px rgba(8,10,30,.4); }
.card__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.card__when { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; color: var(--gold); }
.card__tag { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; color: var(--ink-fade); border: 1px solid var(--frost-line); border-radius: 999px; padding: 4px 10px; }
.card__title { font-family: var(--f-head); font-weight: 700; font-size: clamp(19px, 2.6vw, 26px); margin-top: 12px; color: var(--ink); }
.card__org { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--sky-2); margin-top: 4px; }
.card__points { margin-top: 16px; list-style: none; display: grid; gap: 12px; }
.card__points li { position: relative; padding-left: 22px; color: var(--ink-dim); font-size: 15px; line-height: 1.55; }
.card__points li::before { content: "↳"; position: absolute; left: 0; top: 0; color: var(--gold); }
.card__points strong { color: var(--ink); font-weight: 600; }

.timeline { list-style: none; margin-top: 36px; display: grid; gap: 18px; position: relative; }

.grid-cards { list-style: none; margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card--project { position: relative; display: flex; flex-direction: column; }
.card__index { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: var(--gold); }
.card__body { margin-top: 12px; color: var(--ink-dim); font-size: 15px; line-height: 1.6; flex: 1; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tags li { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; color: var(--ink-dim); border: 1px solid var(--frost-line); border-radius: 999px; padding: 4px 10px; }

/* =====================================================================
   SKILLS + PUBLICATIONS
   ===================================================================== */
.groups { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.group__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: var(--gold); display: block; margin-bottom: 14px; text-shadow: var(--halo); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {            /* no per-chip backdrop-filter · cheap opaque pill instead */
  font-size: 13px; padding: 7px 13px; border-radius: 999px;
  background: var(--pill-bg); border: 1px solid var(--frost-line); color: var(--ink-dim);
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.chips li:hover { color: var(--ink); border-color: var(--gold); transform: translateY(-2px); }

.pubs { margin-top: 40px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; }
.pubs__eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; color: var(--gold); display: block; margin-bottom: 12px; }
.pubs__title { font-family: var(--f-head); font-weight: 700; font-size: 20px; color: var(--ink); }
.pubs__detail { font-family: var(--f-mono); font-size: 13px; color: var(--ink-dim); margin-top: 8px; letter-spacing: .04em; }
.pubs__item { color: var(--ink-dim); font-size: 14px; line-height: 1.55; }
.pubs__item + .pubs__item { margin-top: 14px; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact__links { list-style: none; margin-top: 36px; display: grid; gap: 2px; }
.contact__links a, .contact__placeholder {
  display: grid; grid-template-columns: 60px 1fr auto; align-items: baseline; gap: 16px;
  padding: 22px 8px; border-top: 1px solid var(--frost-line);
  transition: padding-left .35s var(--ease), background .35s var(--ease);
}
.contact__links li:last-child a, .contact__links li:last-child .contact__placeholder { border-bottom: 1px solid var(--frost-line); }
.contact__links a:hover { padding-left: 20px; background: linear-gradient(90deg, rgba(255,232,163,.08), transparent); }
.contact__num { font-family: var(--f-mono); font-size: 12px; color: var(--sky-accent); }
.contact__text { font-family: var(--f-head); font-weight: 600; font-size: clamp(20px, 4vw, 34px); color: var(--sky-ink); }
.contact__host { font-family: var(--f-mono); font-size: 12px; color: var(--sky-ink-dim); letter-spacing: .06em; min-width: 0; overflow-wrap: anywhere; text-align: right; }
.contact__placeholder { opacity: .5; cursor: default; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  max-width: var(--maxw); margin: 0 auto; padding: 40px var(--pad) 60px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; color: var(--ink-fade);
  border-top: 1px solid var(--frost-line);
}

/* =====================================================================
   SCROLL REVEALS
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.kicker .char, .hero__title .char { display: inline-block; opacity: 0; transform: translateY(.4em) rotate(4deg); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--char-index, 0) * 28ms); }
.is-in .char { opacity: 1; transform: none; }

/* =====================================================================
   FRAUNCES DISPLAY TUNING · optical size + SOFT rounding per tier
   ===================================================================== */
.intro__logo, .hero__title, .kicker, .hero__surname-text, .card__title,
.pubs__title, .contact__text, .quote p, .readout__val { font-optical-sizing: auto; }

/* hero / film-title scale · dramatic contrast + golden-hour softness */
.hero__title, .intro__logo { font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0; font-weight: 500; }
/* section heads */
.kicker { font-variation-settings: "opsz" 60, "SOFT" 46, "WONK" 0; font-weight: 500; }
/* sub-display */
.card__title, .contact__text, .hero__surname-text, .pubs__title, .quote p, .readout__val {
  font-variation-settings: "opsz" 30, "SOFT" 34, "WONK" 0; font-weight: 600;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__hud { display: none; }
  .nav__links {
    position: absolute; top: calc(100% + 6px); right: var(--pad); left: var(--pad);
    flex-direction: column; gap: 2px;
    background: var(--frost-bg-strong); border: 1px solid var(--frost-line); border-radius: 16px;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    padding: 8px; box-shadow: 0 24px 60px rgba(8,10,30,.4);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.nav--open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { display: block; padding: 14px 14px; font-size: 13px; }
  .nav__links a::after { display: none; }

  .band { grid-template-columns: 1fr; }
  .rail { display: flex; align-items: center; gap: 12px; }
  .rail__label { writing-mode: horizontal-tb; margin-top: 0; }
  .two-col { grid-template-columns: 1fr; }
  .pubs { grid-template-columns: 1fr; }
  .hero__readouts { display: none; }
}
@media (max-width: 520px) {
  .hero__surname { gap: 8px; }
  .contact__links a, .contact__placeholder { grid-template-columns: 40px 1fr; }
  .contact__host { grid-column: 1 / -1; text-align: left; padding-left: 56px; }
  .nav__brand-text { font-size: 10px; }
}
@media (max-width: 360px) {
  .hero__title { font-size: 46px; }
}

/* short / landscape phones · don't let hero padding crowd the title */
@media (max-height: 600px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 90px var(--pad) 48px; }
  .hero__readouts { display: none; }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .sky__clouds::before, .sky__sun-rays, .sky__sun-core, .sky__sun::before, .sky__stars, .silhouette__city .win { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .kicker .char, .hero__title .char { opacity: 1 !important; transform: none !important; }
  .intro__stroke { display: none !important; }
}
