/* =============================================================
   SAUMY KASHYAP · PORTFOLIO 2026
   Tokens · Reset · Background stack · Nav · Hero · Sections
   ============================================================= */

/* ---------- tokens ---------- */
:root {
  --bg: #0a0d14;
  --bg-warm: #15100a;
  --ink: #f4eee2;
  --ink-dim: rgba(244, 238, 226, 0.64);
  --ink-mute: rgba(244, 238, 226, 0.38);
  --line: rgba(244, 238, 226, 0.16);
  --accent: #ff5a2e;       /* warm NYC neon */
  --accent-2: #4ddbff;     /* cool window glow */
  --accent-3: #ffd166;     /* amber signage */

  --ff-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --ff-sans: 'Inter', system-ui, sans-serif;
  --ff-serif: 'Instrument Serif', 'Cormorant Garamond', serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

  --pad: clamp(20px, 3vw, 56px);
  --rad: 14px;

  /* scroll-driven (updated by JS) */
  --scroll: 0;           /* 0..1 through page */
  --bg-hue: 0deg;
  --bg-sat: 1;
  --bg-blur: 0px;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  font-family: var(--ff-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  cursor: none;
}
@media (hover: none) { body { cursor: auto; } }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }
ul, ol { list-style: none; }

::selection { background: var(--accent); color: #0a0d14; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-items: end stretch;
  padding: var(--pad);
  transition: opacity .8s var(--ease), visibility .8s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto auto;
  gap: 24px 32px;
  align-items: end;
  width: 100%;
}
.loader__tag {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  grid-column: 1;
  align-self: start;
}
.loader__title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(64px, 14vw, 220px);
  line-height: .9;
  letter-spacing: -0.04em;
  grid-column: 1 / -1;
}
.loader__title em {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.loader__bar {
  grid-column: 1;
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.loader__bar i {
  position: absolute; inset: 0 auto 0 0;
  width: 0%;
  background: var(--ink);
  transition: width .2s linear;
}
.loader__pct {
  grid-column: 2;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .1em;
}

/* ---------- cursor ---------- */
.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 90;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor {
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease), height .35s var(--ease),
              border-color .3s, background .3s, opacity .3s;
}
.cursor.is-link { width: 10px; height: 10px; }
.cursor-ring.is-link { width: 58px; height: 58px; }
.cursor.is-btn { width: 4px; height: 4px; }
.cursor-ring.is-btn { width: 80px; height: 80px; border-color: rgba(255,255,255,.9); background: rgba(255,255,255,.08); }
.cursor-ring.is-view { width: 120px; height: 120px; border-color: var(--accent); background: rgba(255,90,46,.18); }
.cursor-ring.is-view::before {
  content: "view →";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font: 500 11px/1 var(--ff-mono);
  letter-spacing: .1em; text-transform: uppercase;
  color: #fff;
}

/* "locked" state — for projects that have no demo or repo (e.g. hardware) */
.cursor-ring.is-locked {
  width: 180px; height: 180px;
  border-color: rgba(255,255,255,.45);
  background: rgba(8, 11, 18, .68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cursor-ring.is-locked::before {
  content: "Hardware project, so no demos or github";
  position: absolute; inset: 14px;
  display: grid; place-items: center;
  font: 500 10.5px/1.35 var(--ff-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
}
.cursor.is-locked { width: 4px; height: 4px; background: rgba(255,255,255,.85); }
@media (hover: none) { .cursor, .cursor-ring { display: none; } }

/* ---------- background stack (fixed, behind everything) ---------- */
.bg {
  position: fixed; inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--bg);
}
.bg__layer {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  filter: saturate(var(--bg-sat)) hue-rotate(var(--bg-hue)) blur(var(--bg-blur));
  will-change: opacity, filter;
}
.bg__layer--solid { background: radial-gradient(ellipse at 50% 30%, #121826 0%, #05070c 70%); }

.bg__tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(10,13,20,.25) 0%,
    rgba(10,13,20,.1) 40%,
    rgba(10,13,20,.35) 100%);
}
.bg__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}
.bg__grain {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg,
    rgba(255,255,255,.02) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  opacity: .6;
}
.bg__noise {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.93  0 0 0 0 0.88  0 0 0 .15 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .4;
  mix-blend-mode: overlay;
  animation: noiseShift 1.2s steps(4) infinite;
  pointer-events: none;
}
@keyframes noiseShift {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-6%, 3%); }
  50%  { transform: translate(4%, -5%); }
  75%  { transform: translate(-3%, 6%); }
  100% { transform: translate(0,0); }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  mix-blend-mode: difference;
  color: #fff;
}
.nav::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), transparent);
  pointer-events: none;
  opacity: var(--nav-veil, 0);
  transition: opacity .3s;
  z-index: -1;
  mix-blend-mode: normal;
}
.nav__logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-display);
  font-size: 18px;
  letter-spacing: -0.02em;
  text-transform: none;
}
.nav__logo-mark {
  color: var(--accent);
  animation: pulse 3s ease-in-out infinite;
}
.nav__logo em {
  color: var(--accent);
  font-style: normal;
}
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:.35 } }

.nav__links {
  display: flex; gap: 32px;
}
.nav__links a {
  position: relative;
  display: inline-flex; align-items: baseline; gap: 6px;
  transition: opacity .25s;
}
.nav__links a::before {
  content: attr(data-num);
  font-size: 9px;
  opacity: .55;
  transform: translateY(-3px);
}
.nav__links a span {
  position: relative;
  display: inline-block;
}
.nav__links a span::after {
  content: "";
  position: absolute; left: 0; right: 100%;
  bottom: -4px; height: 1px;
  background: currentColor;
  transition: right .4s var(--ease-out-expo);
}
.nav__links a:hover span::after,
.nav__links a.is-active span::after { right: 0; }

.nav__cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  transition: background .3s, border-color .3s;
}
.nav__cta:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.8); }
.nav__cta-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4dff88;
  box-shadow: 0 0 0 3px rgba(77,255,136,.25);
  animation: pulse 2s ease-in-out infinite;
}

@media (max-width: 820px) {
  .nav__links { display: none; }
}

/* ---------- progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 49;
  background: transparent;
}
.progress i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  width: calc(var(--scroll) * 100%);
  box-shadow: 0 0 12px var(--accent);
}

/* ---------- sections shared ---------- */
.section {
  position: relative;
  min-height: 100vh;
  padding: clamp(100px, 14vh, 180px) var(--pad) clamp(100px, 14vh, 180px);
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.section__index {
  display: inline-flex; gap: 12px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: clamp(48px, 8vh, 120px);
}
.section__index span:first-child { color: var(--accent); }

/* ---------- type utilities ---------- */
.reveal-lines .line {
  display: block;
  overflow: hidden;
}
.reveal-lines .line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out-expo);
  will-change: transform;
}
.reveal-lines.is-in .line > span { transform: translateY(0); }
.reveal-lines .line:nth-child(2) > span { transition-delay: .08s; }
.reveal-lines .line:nth-child(3) > span { transition-delay: .16s; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease-out-expo), transform .9s var(--ease-out-expo);
}
.reveal.is-in { opacity: 1; transform: none; }

em {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.inline-link {
  color: var(--accent-3);
  border-bottom: 1px solid rgba(255,209,102,.45);
  padding-bottom: 1px;
  transition: color .25s, border-color .25s;
}
.inline-link:hover { color: var(--accent); border-color: var(--accent); }

.kbd {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- HERO ---------- */
.hero {
  justify-content: space-between;
  min-height: 100vh;
  height: 100vh;
  padding-top: clamp(80px, 10vh, 130px);
  padding-bottom: clamp(60px, 7vh, 100px);
}
.hero__head {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
}
.hero__title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(48px, min(11vw, 17vh), 168px);
  line-height: .92;
  letter-spacing: -0.04em;
  margin: auto 0;
  max-width: 100%;
  text-shadow: 0 2px 40px rgba(0,0,0,.35);
}
.hero__title .line { padding-right: .1em; }
.hero__foot {
  display: grid;
  grid-template-columns: 1.3fr auto 1fr;
  gap: 32px;
  align-items: end;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 24px;
}
.hero__blurb {
  display: flex; gap: 12px; align-items: flex-start;
  max-width: 42ch;
}
.hero__blurb p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,.9);
}
.dot-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4dff88;
  box-shadow: 0 0 12px #4dff88;
  margin-top: 6px; flex: none;
  animation: pulse 2s ease-in-out infinite;
}
.hero__meta {
  display: flex; flex-direction: column; gap: 4px;
  align-items: flex-end;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
}

.scroll-hint {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
}
.scroll-hint__line {
  width: 1px; height: 56px;
  background: rgba(255,255,255,.28);
  position: relative; overflow: hidden;
}
.scroll-hint__line i {
  position: absolute; top: 0; left: 0; right: 0;
  height: 40%;
  background: #fff;
  animation: scroll-drip 2.4s var(--ease-in-out) infinite;
}
@keyframes scroll-drip {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(260%); }
  100% { transform: translateY(260%); }
}

/* ---------- MARQUEE ---------- */
.marquee {
  overflow: hidden;
  padding: 20px 0;
  border-block: 1px solid var(--line);
  background: rgba(10,13,20,.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative; z-index: 3;
}
.marquee__track {
  display: inline-flex; gap: 48px;
  white-space: nowrap;
  animation: marquee 42s linear infinite;
  font-family: var(--ff-display);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.marquee__track span:nth-child(even) {
  font-family: var(--ff-serif);
  font-style: italic;
  color: var(--accent);
  font-size: .7em;
  align-self: center;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- ABOUT ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about__headline {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(40px, 6.5vw, 108px);
  line-height: .96;
  letter-spacing: -0.035em;
}
.about__body { display: flex; flex-direction: column; gap: 40px; }
.about__para {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.45;
  color: rgba(244,238,226,.92);
}
.about__para em { font-family: var(--ff-serif); font-style: italic; color: var(--accent-3); }
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.about__stats li {
  display: flex; flex-direction: column; gap: 6px;
}
.about__stats b {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1;
  color: var(--ink);
}
.about__stats span {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  max-width: 16ch;
}
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* ---------- WORK ---------- */
.work__headline {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 120px);
  line-height: .94;
  letter-spacing: -0.035em;
  margin-bottom: clamp(60px, 8vh, 100px);
}
.work__list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.project {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1.2fr 1.6fr 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: padding .5s var(--ease), background .5s;
  text-decoration: none;
  color: inherit;
}
a.project:hover .project__title { color: var(--accent); }
.project__title { transition: color .3s; }
.project::before {
  content: "";
  position: absolute; left: 0; right: 100%;
  top: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(255,90,46,.12), transparent 60%);
  transition: right .6s var(--ease-out-expo);
  pointer-events: none;
}
.project:hover::before { right: 0; }
.project:hover { padding-left: 20px; }
.project__meta {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.project__title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.project__desc {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(244,238,226,.8);
  max-width: 44ch;
}
.project__tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-self: end;
  align-self: start;
}
.project__tags span {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-dim);
}
@media (max-width: 1100px) {
  .project {
    grid-template-columns: 60px 1fr;
    gap: 14px 18px;
  }
  .project__desc, .project__tags { grid-column: 2; }
  .project__tags { justify-self: start; }
}

/* ---------- ART ---------- */
.art__headline {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(44px, 8vw, 140px);
  line-height: .92;
  letter-spacing: -0.04em;
}
.art__para {
  margin-top: 40px;
  max-width: 58ch;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1.45;
  color: rgba(244,238,226,.92);
}
.art__pill-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 56px;
}
.pill {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(0,0,0,.25);
  transition: background .3s, transform .3s, color .3s;
}
.pill:hover {
  background: var(--accent);
  color: #0a0d14;
  transform: translateY(-3px);
}

/* ---------- PROCESS ---------- */
.process__headline {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 120px);
  line-height: .94;
  letter-spacing: -0.035em;
  margin-bottom: clamp(60px, 8vh, 100px);
}
.timeline {
  display: flex; flex-direction: column;
  gap: 8px;
  max-width: 900px;
}
.timeline__step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.timeline__step:last-child { border-bottom: 1px solid var(--line); }
.timeline__num {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--accent);
}
.timeline__step h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.timeline__step p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(244,238,226,.82);
  max-width: 58ch;
}

/* ---------- CONTACT ---------- */
.contact { background: rgba(5,7,12,.28); }
.contact__headline {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(48px, 9vw, 160px);
  line-height: .9;
  letter-spacing: -0.04em;
}
.contact__mail {
  display: inline-flex; align-items: baseline; gap: 18px;
  margin-top: clamp(40px, 6vh, 80px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  transition: color .3s, border-color .3s;
}
.contact__mail:hover { color: var(--accent); border-color: var(--accent); }
.contact__mail-pre {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.contact__mail-addr {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(28px, 5vw, 80px);
  letter-spacing: -0.03em;
}
.contact__mail svg { align-self: center; flex: none; transition: transform .4s var(--ease-out-expo); }
.contact__mail:hover svg { transform: translate(4px, -4px) rotate(0deg); }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: clamp(60px, 10vh, 120px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.contact__label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.contact__col p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(244,238,226,.82);
  max-width: 36ch;
}
.contact__col ul { display: flex; flex-direction: column; gap: 10px; }
.contact__col ul a {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.01em;
  transition: color .3s, transform .4s var(--ease-out-expo);
}
.contact__col ul a i {
  font-style: normal;
  font-size: 14px;
  color: var(--ink-dim);
  transition: transform .4s var(--ease-out-expo);
}
.contact__col ul a:hover { color: var(--accent); transform: translateX(6px); }
.contact__col ul a:hover i { transform: translate(4px, -4px); }
@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; gap: 32px; }
}

.foot {
  margin-top: clamp(60px, 10vh, 120px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.foot__mid { opacity: .7; }
.foot__top:hover { color: var(--accent); }

@media (max-width: 720px) {
  .hero__foot { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  .hero__meta { align-items: flex-start; }
  .foot { flex-direction: column; gap: 12px; }
}

/* =============================================================
   READABILITY LAYER
   Goal: keep the colourful backgrounds, guarantee the words read.
   Strategy: 3 layers of fallback so text is legible everywhere
     1. Text-shadow on every major headline (always on)
     2. "Reading plates" — subtle frosted cards behind body copy,
        intensify when you hover the block
     3. Section scrim — darken the background when the cursor is
        inside a section (engaged-reading mode)
   ============================================================= */

/* 1 — Always-on headline legibility */
.hero__title,
.about__headline,
.work__headline,
.art__headline,
.process__headline,
.contact__headline,
.loader__title {
  text-shadow:
    0 2px 18px rgba(0, 0, 0, .55),
    0 0 60px rgba(0, 0, 0, .35);
}

/* smaller display type — softer shadow */
.project__title,
.timeline__step h4,
.contact__col ul a,
.contact__mail-addr {
  text-shadow: 0 1px 10px rgba(0, 0, 0, .55);
}

/* 2 — Reading plates for body copy
   Each eligible block gets a frosted dark card behind it.
   Default opacity is subtle; hover takes it to full strength. */
.hero__blurb,
.about__para,
.art__para,
.project__desc,
.timeline__step p,
.contact__col p,
.about__stats,
.hero__meta,
.section__index,
.kbd {
  position: relative;
  isolation: isolate;
}
.hero__blurb::before,
.about__para::before,
.art__para::before,
.project__desc::before,
.timeline__step p::before,
.contact__col p::before {
  content: "";
  position: absolute;
  inset: -14px -20px;
  border-radius: 14px;
  background: rgba(8, 11, 18, .42);
  backdrop-filter: blur(14px) saturate(.9);
  -webkit-backdrop-filter: blur(14px) saturate(.9);
  border: 1px solid rgba(255, 255, 255, .06);
  z-index: -1;
  opacity: .65;
  transition:
    opacity .45s var(--ease),
    background-color .45s var(--ease),
    border-color .45s var(--ease),
    transform .45s var(--ease),
    box-shadow .45s var(--ease);
  pointer-events: none;
}
.hero__blurb:hover::before,
.about__para:hover::before,
.art__para:hover::before,
.project__desc:hover::before,
.timeline__step:hover p::before,
.contact__col:hover p::before {
  opacity: 1;
  background: rgba(8, 11, 18, .82);
  border-color: rgba(255, 255, 255, .16);
  transform: scale(1.015);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

/* tiny plates for single-line meta so the grey mono type stays readable */
.hero__meta::before,
.section__index::before,
.kbd::before {
  content: "";
  position: absolute;
  inset: -6px -12px;
  border-radius: 999px;
  background: rgba(8, 11, 18, .5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
  opacity: .7;
  transition: opacity .4s, background-color .4s;
  pointer-events: none;
}
.kbd::before { inset: -5px -10px; }

/* 3 — Section-hover scrim — when you're "reading" a section, background dims */
.section {
  isolation: isolate;
}
.section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 25% 35%, rgba(8, 11, 18, .55), transparent 60%),
    linear-gradient(180deg, rgba(8, 11, 18, .35), rgba(8, 11, 18, .55));
  opacity: 0;
  transition: opacity .7s var(--ease);
}
.section:hover::after { opacity: 1; }

/* Project desc plate is tighter so it doesn't bleed into neighbor grid cells */
.project__desc::before {
  inset: -10px -12px;
  border-radius: 10px;
}
/* Intensify the desc plate when hovering anywhere on the project row */
.project:hover .project__desc::before {
  opacity: 1;
  background: rgba(8, 11, 18, .82);
  border-color: rgba(255, 255, 255, .16);
}

/* Make pills pop more against busy bg */
.pill {
  background: rgba(8, 11, 18, .55);
  border-color: rgba(255, 255, 255, .22);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}

/* Stats numbers get their own small plate */
.about__stats li {
  position: relative;
  padding: 12px 16px 12px 0;
}
.about__stats li::before {
  content: "";
  position: absolute; inset: 0 -12px 0 -12px;
  background: rgba(8, 11, 18, .3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  z-index: -1;
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.about__stats li:hover::before { opacity: 1; }

/* NAV upgrade — replace mix-blend-mode with an always-legible frosted pill */
.nav {
  mix-blend-mode: normal;
  pointer-events: none; /* children re-enable */
}
.nav > * { pointer-events: auto; }

.nav__logo,
.nav__links,
.nav__cta {
  background: rgba(8, 11, 18, .55);
  backdrop-filter: blur(18px) saturate(.9);
  -webkit-backdrop-filter: blur(18px) saturate(.9);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .28);
}
.nav__links {
  padding: 10px 22px;
  gap: 28px;
}
.nav__cta { padding: 9px 16px; }

/* ensure CTA stays clickable with the new container */
.nav__cta:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .5);
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal-lines .line > span { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
