/* =================================================================
   NISHAD SUTHAR — PORTFOLIO
   Dark, cinematic, editorial. Original build.
   ================================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Surfaces */
  --bg:          #0A0A0B;
  --bg-2:        #0D0D0F;
  --surface:     #121215;
  --surface-2:   #18181D;
  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text:      #F4F1EA;   /* bone */
  --muted:     #B7B4AC;   /* ~9:1 on bg */
  --dim:       #86837C;   /* labels / decorative */

  /* Accent */
  --accent:      #FF5E3A;
  --accent-2:    #FFB35C;
  --accent-soft: rgba(255, 94, 58, 0.14);
  --accent-glow: rgba(255, 94, 58, 0.35);

  /* Type */
  --font-display: 'Clash Display', 'General Sans', system-ui, sans-serif;
  --font-sans:    'General Sans', system-ui, -apple-system, sans-serif;
  --font-serif:   'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-mono:    'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Fluid type */
  --fs-mono:    0.72rem;
  --fs-body:    clamp(1rem, 0.96rem + 0.25vw, 1.15rem);
  --fs-lead:    clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  --fs-h3:      clamp(1.35rem, 1.15rem + 0.9vw, 1.9rem);
  --fs-title:   clamp(2.1rem, 1.3rem + 3.3vw, 4rem);
  --fs-display: clamp(2.6rem, 1rem + 7.6vw, 7.2rem);
  --fs-mega:    clamp(4.5rem, 1rem + 22vw, 22rem);

  /* Spacing */
  --pad-x:    clamp(1.25rem, 5vw, 4.5rem);
  --maxw:     1320px;
  --sec-y:    clamp(5rem, 9vw, 11rem);

  /* Radius */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 34px;

  /* Motion */
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur:      0.6s;

  /* Z-scale */
  --z-grain: 9000;
  --z-cursor: 10000;
  --z-nav: 800;
  --z-menu: 900;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: auto;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
em { font-style: normal; }

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

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.section  { padding-block: var(--sec-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 5vw, 5rem); }
.mono { font-family: var(--font-mono); font-weight: 400; letter-spacing: 0.04em; }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--dim);
  margin-bottom: 1.6rem;
}

.section-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.section-title em, .accent-line em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent-2); letter-spacing: 0; }
.section-sub { margin-top: 1.25rem; color: var(--muted); max-width: 48ch; font-size: var(--fs-lead); line-height: 1.45; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); display: inline-block; }
.dot--live { background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------- Grain / Noise ---------- */
.grain {
  position: fixed; inset: -50%;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.04;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.7s steps(2) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(-3%, 2%); }
}

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: var(--z-nav); background: transparent; }
.scroll-progress span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; }

/* ---------- Custom cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: var(--z-cursor); pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity 0.3s; }
.cursor__dot { position: fixed; width: 7px; height: 7px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }
.cursor__ring {
  position: fixed; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,0.7); border-radius: 50%;
  transform: translate(-50%, -50%); transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s, border-color 0.3s;
}
.cursor__label {
  position: fixed; transform: translate(-50%, -50%); color: #0A0A0B; font-family: var(--font-mono); font-size: 0.62rem;
  text-transform: uppercase; letter-spacing: 0.08em; opacity: 0; transition: opacity 0.25s; white-space: nowrap;
}
body.cursor-active .cursor { opacity: 1; }
body.cursor-grow .cursor__ring { width: 74px; height: 74px; background: var(--text); border-color: transparent; }
body.cursor-grow .cursor__label { opacity: 1; }
body.cursor-grow .cursor__dot { opacity: 0; }
body.cursor-hide .cursor__ring { width: 0; height: 0; opacity: 0; }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed; top: 0; left: 50%; transform: translate(-50%, -120%); z-index: var(--z-cursor);
  background: var(--accent); color: #0A0A0B; padding: 0.6rem 1.2rem; border-radius: 0 0 var(--r-sm) var(--r-sm); font-family: var(--font-mono); font-size: 0.8rem;
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-sans); font-weight: 500; font-size: 0.95rem;
  padding: 0.85rem 1.4rem; border-radius: 100px; line-height: 1;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap; will-change: transform;
}
.btn svg { transition: transform 0.4s var(--ease); }
.btn--primary { background: var(--text); color: #0A0A0B; }
.btn--primary:hover { background: var(--accent); box-shadow: 0 12px 34px rgba(255, 94, 58, 0.28); }
.btn--primary:hover svg { transform: translate(3px, -3px); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn--ghost:hover { background: rgba(255,255,255,0.06); border-color: var(--text); }
.btn--pill { border: 1px solid var(--line-strong); padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.btn--pill:hover { background: var(--accent); color: #0A0A0B; border-color: var(--accent); }
.btn--pill:hover svg { transform: translate(2px, -2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* ============================ NAV ============================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  transition: transform 0.5s var(--ease), background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10,10,11,0.7); backdrop-filter: blur(14px) saturate(160%); border-bottom-color: var(--line); }
.nav.hidden { transform: translateY(-110%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.1rem var(--pad-x); }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 600; }
.brand__mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--line-strong); font-family: var(--font-display); font-size: 0.95rem; letter-spacing: -0.02em;
  background: var(--surface); transition: border-color 0.3s, color 0.3s;
}
.brand:hover .brand__mark { border-color: var(--accent); color: var(--accent); }
.brand__name { font-family: var(--font-display); font-size: 1rem; letter-spacing: -0.01em; }

.nav__links { display: flex; gap: 0.4rem; }
.nav__links a { position: relative; padding: 0.5rem 0.85rem; font-size: 0.92rem; color: var(--muted); border-radius: 100px; transition: color 0.3s; }
.nav__links a::after {
  content: ''; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.35rem; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__right { display: flex; align-items: center; gap: 1rem; }
.nav__clock { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; margin-right: -8px; }
.nav__toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: transform 0.35s var(--ease), opacity 0.3s; }
body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* ============================ MOBILE MENU ============================ */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu); background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center; padding: var(--pad-x);
  clip-path: inset(0 0 100% 0); transition: clip-path 0.7s var(--ease); pointer-events: none;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu__links { display: flex; flex-direction: column; gap: 0.4rem; }
.menu__links a {
  display: flex; align-items: baseline; gap: 1rem; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.2rem, 11vw, 3.6rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--text);
  opacity: 0; transform: translateY(24px); transition: opacity 0.5s var(--ease), color 0.3s;
}
body.menu-open .menu__links a { opacity: 1; transform: translateY(0); transition: opacity 0.6s var(--ease) calc(var(--i, 0) * 0.06s + 0.15s), transform 0.6s var(--ease) calc(var(--i, 0) * 0.06s + 0.15s), color 0.3s; }
.menu__links a:hover { color: var(--accent); }
.menu__idx { font-family: var(--font-mono); font-size: 0.85rem; color: var(--dim); }
.menu__foot { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1.5rem; font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); }
.menu__foot a:hover { color: var(--accent); }

/* ============================ HERO ============================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 7rem; padding-bottom: 9rem; overflow: hidden; }
.hero__inner { position: relative; z-index: 2; }

.hero__aurora {
  position: absolute; z-index: 0; top: -20%; left: 50%; transform: translateX(-50%);
  width: min(120vw, 1500px); height: 120vh;
  background:
    radial-gradient(40% 38% at 30% 30%, rgba(255,94,58,0.22), transparent 70%),
    radial-gradient(38% 36% at 72% 42%, rgba(255,179,92,0.16), transparent 70%),
    radial-gradient(45% 40% at 55% 75%, rgba(90,80,255,0.12), transparent 70%);
  filter: blur(20px); animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translateX(-50%) translateY(0) scale(1); }
  100% { transform: translateX(-48%) translateY(4%) scale(1.08); }
}
.hero__grid-lines {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: clamp(60px, 8vw, 110px) clamp(60px, 8vw, 110px);
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 0%, transparent 78%);
  opacity: 0.6;
}

.hero__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-bottom: 2rem; }
.badge { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.85rem; border: 1px solid var(--line-strong); border-radius: 100px; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: rgba(255,255,255,0.02); }
.hero__role { font-size: var(--fs-mono); color: var(--dim); text-transform: uppercase; letter-spacing: 0.16em; }

.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-display); line-height: 0.98; letter-spacing: -0.03em;
  max-width: 16ch;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent-2); letter-spacing: 0; }

.hero__bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-top: clamp(2rem, 4vw, 3.5rem); }
.hero__lead { max-width: 46ch; color: var(--muted); font-size: var(--fs-lead); line-height: 1.45; }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero__meta { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.8rem; border-top: 1px solid var(--line); }
.hero__meta li { font-size: 0.95rem; color: var(--text); }
.hero__meta-k { display: block; font-size: var(--fs-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-bottom: 0.35rem; }

.hero__wordmark { position: absolute; bottom: -2.5%; left: 0; right: 0; z-index: 1; text-align: center; pointer-events: none; line-height: 0.8; }
.hero__wordmark span {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-mega); letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.07); display: inline-block;
}
.hero__scroll { position: absolute; bottom: 2rem; right: var(--pad-x); z-index: 3; display: inline-flex; flex-direction: column; align-items: center; gap: 0.6rem; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--dim); }
.hero__scroll svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ============================ MARQUEE ============================ */
.marquee { border-block: 1px solid var(--line); padding-block: 1.4rem; overflow: hidden; background: var(--bg-2); }
.marquee__track, .toolkit__track { display: inline-flex; align-items: center; gap: 2.5rem; white-space: nowrap; will-change: transform; }
.marquee__track span { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 3vw, 2.4rem); letter-spacing: -0.01em; color: var(--text); }
.marquee__track .sep { color: var(--accent); font-size: 1.1rem; }

/* ============================ MANIFESTO ============================ */
.manifesto__text {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.9rem, 1rem + 4.6vw, 5rem); line-height: 1.06; letter-spacing: -0.025em;
  max-width: 20ch;
}
.manifesto__text span { display: block; }
.manifesto__text em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent-2); letter-spacing: 0; }
.accent-line { color: var(--muted); }

/* ============================ STATS ============================ */
.stats { border-block: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--bg); padding: clamp(1.6rem, 3vw, 2.6rem); display: flex; flex-direction: column; gap: 0.7rem; }
.stat__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 1rem + 4vw, 4.2rem); line-height: 1; letter-spacing: -0.03em; color: var(--text); }
.stat__label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.4; }

/* ============================ WORK ============================ */
.work__list { display: flex; flex-direction: column; }
.project { border-top: 1px solid var(--line); }
.project:last-child { border-bottom: 1px solid var(--line); }
.project__link { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(1.8rem, 3vw, 2.8rem); transition: padding 0.5s var(--ease); }
.project:hover .project__link { padding-inline: clamp(0.5rem, 2vw, 1.5rem); }

.project__media { overflow: hidden; border-radius: var(--r); }
.thumb { position: relative; aspect-ratio: 400 / 280; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); transition: transform 0.6s var(--ease); }
.project:hover .thumb { transform: scale(1.015); }
.thumb::before { content: ''; position: absolute; inset: 0; opacity: 0.9; }
.thumb__art { position: relative; z-index: 1; width: 100%; height: 100%; transition: transform 0.7s var(--ease); }
.project:hover .thumb__art { transform: scale(1.06); }
.thumb--bfc::before   { background: radial-gradient(120% 120% at 50% 30%, #2A1410, #0A0A0B 70%); }
.thumb--mind::before  { background: radial-gradient(120% 120% at 40% 30%, #0C2230, #0A0A0B 70%); }
.thumb--law::before   { background: radial-gradient(120% 120% at 60% 30%, #1A1430, #0A0A0B 70%); }
.thumb--clxns::before { background: radial-gradient(120% 120% at 50% 70%, #0C2620, #0A0A0B 70%); }
.thumb--kryp::before  { background: radial-gradient(120% 120% at 50% 30%, #2A1422, #0A0A0B 70%); }

.project__info { position: relative; }
.project__idx { position: absolute; top: -0.4rem; right: 0; font-size: 0.85rem; color: var(--dim); }
.project__title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); letter-spacing: -0.02em; margin-bottom: 0.8rem; transition: color 0.3s; }
.project:hover .project__title { color: var(--accent-2); }
.project__desc { color: var(--muted); max-width: 52ch; margin-bottom: 1.4rem; }
.project__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.project__tags li { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 0.35rem 0.7rem; border: 1px solid var(--line); border-radius: 100px; }
.project__meta { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.75rem; color: var(--dim); padding-top: 1.2rem; border-top: 1px solid var(--line); }

/* ============================ ABOUT ============================ */
.about__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.about__left { position: sticky; top: 6rem; }
.portrait { position: relative; margin-top: 1.5rem; }
.portrait__frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); border: 1px solid var(--line-strong);
  background:
    radial-gradient(80% 60% at 50% 20%, rgba(255,94,58,0.16), transparent 70%),
    linear-gradient(160deg, var(--surface-2), var(--bg));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; overflow: hidden;
}
.portrait__frame::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; opacity: 0.4; mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 80%); -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 80%); }
.portrait__mono { position: relative; z-index: 1; font-family: var(--font-display); font-size: clamp(3rem, 10vw, 5rem); font-weight: 600; color: var(--text); letter-spacing: -0.03em; }
.portrait__note { position: relative; z-index: 1; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); text-align: center; padding-inline: 1rem; }
.portrait__badge { position: absolute; bottom: 1rem; left: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.8rem; border-radius: 100px; background: rgba(10,10,11,0.7); backdrop-filter: blur(8px); border: 1px solid var(--line-strong); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

.about__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 1rem + 2.4vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 2rem; }
.about__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent-2); }
.about__body p { color: var(--muted); margin-bottom: 1.2rem; max-width: 58ch; font-size: var(--fs-lead); line-height: 1.55; }
.about__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 2rem; margin-block: 2.4rem; padding-block: 2rem; border-block: 1px solid var(--line); }
.about__facts li { font-size: 0.98rem; color: var(--text); }
.about__facts .mono { display: block; font-size: var(--fs-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-bottom: 0.4rem; }
.about__quote { padding-left: 1.5rem; border-left: 2px solid var(--accent); }
.about__quote p { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem); line-height: 1.35; color: var(--text); }

/* ============================ CAPABILITIES ============================ */
.caps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cap { background: var(--bg); padding: clamp(1.6rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: 0.9rem; transition: background 0.4s; min-height: 240px; }
.cap:hover { background: var(--surface); }
.cap__top { display: flex; align-items: center; justify-content: space-between; }
.cap__idx { font-size: 0.78rem; color: var(--dim); }
.cap__icon { width: 26px; height: 26px; stroke: var(--accent); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.5s var(--ease); }
.cap:hover .cap__icon { transform: rotate(-8deg) scale(1.08); }
.cap h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.01em; margin-top: 0.4rem; }
.cap p { color: var(--muted); font-size: 0.98rem; line-height: 1.5; flex: 1; }
.cap__tools { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dim); }

/* ============================ PROCESS ============================ */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; counter-reset: step; }
.step { padding-top: 2rem; border-top: 1px solid var(--line-strong); position: relative; }
.step::before { content: ''; position: absolute; top: -1px; left: 0; width: 40%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.step.in-view::before { transform: scaleX(1); }
.step__num { font-size: 0.85rem; color: var(--accent); display: block; margin-bottom: 1rem; }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin-bottom: 0.8rem; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* ============================ EXPERIENCE ============================ */
.timeline { border-top: 1px solid var(--line); }
.role { display: grid; grid-template-columns: 0.4fr 1.4fr 0.3fr; gap: 1.5rem 2.5rem; align-items: baseline; padding-block: clamp(1.6rem, 3vw, 2.4rem); border-bottom: 1px solid var(--line); transition: background 0.4s; }
.role:hover { background: linear-gradient(90deg, rgba(255,94,58,0.05), transparent 60%); }
.role__when { font-size: 0.8rem; color: var(--accent); letter-spacing: 0.04em; }
.role__main h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); letter-spacing: -0.015em; margin-bottom: 0.6rem; }
.role__main h3 span { color: var(--dim); font-weight: 400; }
.role__main p { color: var(--muted); max-width: 62ch; font-size: 0.98rem; }
.role__place { font-size: 0.72rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; text-align: right; }
.role--edu .role__main h3 span { color: var(--dim); }

.toolkit { margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2.5rem; border-top: 1px solid var(--line); overflow: hidden; }
.toolkit .eyebrow { margin-bottom: 1.5rem; }
.toolkit__track span { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.2rem, 2.5vw, 1.8rem); color: var(--muted); padding-right: 2.5rem; position: relative; }
.toolkit__track span::after { content: '·'; position: absolute; right: 1.1rem; color: var(--accent); }

/* ============================ CONTACT ============================ */
.contact { position: relative; overflow: hidden; border-top: 1px solid var(--line); text-align: center; }
.contact__aurora {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 100%, rgba(255,94,58,0.18), transparent 70%), radial-gradient(40% 50% at 70% 10%, rgba(255,179,92,0.1), transparent 70%);
}
.contact__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.contact__title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-display); line-height: 0.98; letter-spacing: -0.03em; }
.contact__title .line { display: block; }
.contact__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent-2); }
.contact__sub { color: var(--muted); max-width: 50ch; margin-top: 1.8rem; font-size: var(--fs-lead); line-height: 1.45; }
.contact__email {
  display: inline-flex; align-items: center; gap: 0.8rem; margin-top: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 1rem + 2.5vw, 2.8rem); letter-spacing: -0.02em;
  padding-bottom: 0.4rem; border-bottom: 2px solid var(--line-strong); transition: border-color 0.4s, color 0.4s;
}
.contact__email:hover { border-color: var(--accent); color: var(--accent-2); }
.contact__email svg { transition: transform 0.4s var(--ease); }
.contact__email:hover svg { transform: translate(4px, -4px); }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; margin-top: 2.8rem; font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); }
.contact__links a { transition: color 0.3s; }
.contact__links a:hover { color: var(--accent); }

/* ============================ FOOTER ============================ */
.footer { border-top: 1px solid var(--line); padding-top: clamp(3rem, 5vw, 4.5rem); background: var(--bg-2); }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand { display: flex; gap: 1rem; align-items: flex-start; max-width: 42ch; }
.footer__brand p { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.footer__cols { display: flex; gap: 3.5rem; justify-content: flex-end; }
.footer__col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col .mono { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-bottom: 0.4rem; }
.footer__col a { color: var(--muted); font-size: 0.95rem; transition: color 0.3s; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-block: 1.8rem; border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--dim); }
.footer__top { font-size: 0.75rem; color: var(--muted); transition: color 0.3s; }
.footer__top:hover { color: var(--accent); }

/* ============================ REVEAL ANIMATIONS ============================ */
.reveal { transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.js .reveal { opacity: 0; transform: translateY(30px); }
.reveal.in-view { opacity: 1; transform: none; }

.reveal-text { display: block; transition: transform 0.9s var(--ease); }
.js .reveal-text { transform: translateY(110%); }
.line.in-view .reveal-text, .hero__title.in-view .reveal-text { transform: translateY(0); }
.hero__title .line .reveal-text { transition-delay: calc(var(--line-idx, 0) * 0.09s); }

.reveal-line { transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.js .reveal-line { opacity: 0; transform: translateY(40px); }
.reveal-line.in-view { opacity: 1; transform: none; }

/* Force-reveal (preview mode / safety fallback) */
.reveal-all .reveal, .reveal-all .reveal-line, html.revealed .reveal, html.revealed .reveal-line { opacity: 1 !important; transform: none !important; }
.reveal-all .reveal-text, html.revealed .reveal-text { transform: translateY(0) !important; }

/* Audit mode: collapse full-height hero so the whole page flows for static capture */
html.audit .hero { min-height: auto; padding-top: 9rem; padding-bottom: 5rem; }
html.audit .about__left { position: static; }
html.audit .nav { position: absolute; }
html.audit .grain { display: none; }

/* Stagger children */
.work__list .project.in-view,
.caps__grid .cap.in-view,
.steps .step.in-view,
.stats__grid .stat.in-view { transition-delay: calc(var(--i, 0) * 0.07s); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1024px) {
  .caps__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .about__grid { grid-template-columns: 1fr; }
  .about__left { position: static; max-width: 420px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { justify-content: flex-start; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__clock { display: none; }
  .nav__toggle { display: flex; }
  .btn--pill { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .project__link { grid-template-columns: 1fr; gap: 1.5rem; }
  .project__media { order: -1; }
  .project__idx { position: static; display: block; margin-bottom: 0.6rem; }
  .hero__meta { gap: 1.2rem 2rem; }
  .role { grid-template-columns: 1fr; gap: 0.5rem; }
  .role__when { order: -1; }
  .role__place { text-align: left; }
}

@media (max-width: 560px) {
  .caps__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; }
  .about__facts { grid-template-columns: 1fr; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  /* Prevent headline clipping / horizontal overflow on small phones */
  .hero__title { max-width: 100%; font-size: clamp(2.05rem, 1rem + 5.6vw, 3.2rem); }
  .contact__title { font-size: clamp(2.05rem, 1rem + 5.6vw, 3.2rem); }
  .hero__wordmark span { font-size: clamp(3rem, 1rem + 15vw, 8rem); }
  .hero__actions { width: 100%; flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .menu__foot { flex-direction: column; gap: 0.8rem; }
}

/* ============================ REDUCED MOTION ============================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-line { opacity: 1 !important; transform: none !important; }
  .reveal-text { transform: none !important; }
  .grain { display: none; }
  .hero__aurora { animation: none; }
  .cursor { display: none; }
}

/* Touch / no-hover devices: hide custom cursor */
@media (hover: none), (pointer: coarse) {
  .cursor { display: none !important; }
  body { cursor: auto !important; }
}
