/* ==========================================================================
   Kashish Tripathi — Noir
   A dark, rain-soaked night-city theme. Loaded with night-hero.css (hero,
   preloader, sound button). Breakpoints: 1000 / 600.
   ========================================================================== */

@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --bg: #06070a;
  --bg-2: #0b0c10;
  --card: #0f1116;
  --card-2: #151821;
  --line: rgba(222, 228, 236, 0.09);
  --line-2: rgba(222, 228, 236, 0.18);
  --text: #e8eaed;
  --muted: rgba(226, 230, 236, 0.56);
  --faint: rgba(226, 230, 236, 0.32);
  --amber: #9ea9b7;      /* steel: small marks, numbers, dots */
  --amber-2: #d3d9e1;    /* bright silver: hover / active */
  --metal: linear-gradient(180deg, #fbfcfd 0%, #d8dce2 36%, #8d95a0 52%, #c6ccd4 70%, #f0f2f5 100%);
  --beam: #cdd8ff;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Archivo", "Helvetica Neue", Arial, sans-serif; /* no serif in this theme */
  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(20px, 6vw, 100px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  /* names the hero/preloader stylesheet expects */
  --ink: var(--text);
  --dark: #12141a;
  --shadow-btn-dark:
    rgba(255, 255, 255, 0.16) 0 1px 0 0 inset,
    rgba(255, 255, 255, 0.06) 0 10px 18px -6px inset,
    rgba(0, 0, 0, 0.4) 0 10px 30px -10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html.is-intro body { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(200, 208, 220, 0.3); color: #fff; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* scroll progress */
.progress { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, transparent, var(--amber)); transform-origin: left center; transform: scaleX(var(--sp, 0)); }

/* ---------- type ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.label b { color: var(--amber); font-weight: 500; }
.label::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.6; }
.display {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(56px, 10vw, 168px);
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
/* accent words: same wide face at hairline weight, in brushed metal */
.display em, .h2 em, .nh__title em, .nh__role em, .h2 em .sp-w > span {
  font-style: normal;
  font-weight: 200;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h2 {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(34px, 4.9vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; letter-spacing: -0.01em; color: var(--muted); max-width: 34em; }

/* split-text reveal: each word slides up out of its own mask */
.sp-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.sp-w > span { display: inline-block; transform: translateY(105%); opacity: 0.2; transition: transform 0.9s var(--ease-out), opacity 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
.is-in .sp-w > span, html:not(.motion) .sp-w > span { transform: none; opacity: 1; }
.motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion [data-split] { opacity: 1; transform: none; }

/* ---------- buttons: cut-corner "tactical" tags ---------- */
.btn {
  --cut: 12px;
  --clip: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 54px;
  padding: 0 7px 0 24px;
  border: 0;
  border-radius: 0;
  clip-path: var(--clip);
  font-family: var(--sans);
  font-stretch: 112%;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.35s ease, background-color 0.35s ease;
}
.btn--lg { height: 60px; padding: 0 8px 0 28px; font-size: 14.5px; }
/* the arrow sits in its own square tab */
.btn svg {
  flex: none;
  width: 40px; height: 40px; padding: 11px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  transition: transform 0.5s var(--ease-out), background-color 0.35s ease, color 0.35s ease;
}
.btn--lg svg { width: 44px; height: 44px; padding: 12px; }
.btn:hover svg { transform: translateX(3px); }
/* label rolls up to a fresh copy on hover */
.btn__roll { position: relative; display: block; height: 1.25em; overflow: hidden; line-height: 1.25; }
.btn__roll span { display: block; transition: transform 0.55s var(--ease-out); }
.btn__roll span + span { position: absolute; left: 0; top: 100%; }
.btn:hover .btn__roll span { transform: translateY(-100%); }

/* primary: solid white, dark arrow tab */
.btn--light, .btn--dark { background: #fff; color: #050608; }
.btn--light svg, .btn--dark svg { background: #050608; color: #fff; }
.btn--light::after, .btn--dark::after { content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(140, 150, 165, 0.4), transparent); transform: skewX(-20deg); pointer-events: none; }
.btn--light:hover::after, .btn--dark:hover::after { transform: skewX(-20deg) translateX(460%); transition: transform 0.9s var(--ease-out); }

/* secondary: a crisp white cut-corner outline that floods white on hover */
.btn--ghost { background: #fff; color: #fff; }
.btn--ghost::before {
  content: ""; position: absolute; z-index: -1; inset: 1.5px;
  background: var(--bg);
  clip-path: polygon(calc(var(--cut) - 0.6px) 0, 100% 0, 100% calc(100% - var(--cut) + 0.6px), calc(100% - var(--cut) + 0.6px) 100%, 0 100%, 0 calc(var(--cut) - 0.6px));
  transition: opacity 0.35s ease;
}
.btn--ghost svg { background: #fff; color: #050608; }
.btn--ghost:hover { color: #050608; }
.btn--ghost:hover::before { opacity: 0; }
.btn--ghost:hover svg { background: #050608; color: #fff; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* underline link that runs along on hover */
.ul-link { position: relative; display: inline-block; }
.ul-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out); }
.ul-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- custom cursor ---------- */
.cur { position: fixed; z-index: 95; left: 0; top: 0; pointer-events: none; display: none; transition: opacity 0.3s ease; }
.has-cursor .cur { display: block; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cur__dot, .cur__ring { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cur__dot { width: 6px; height: 6px; background: var(--amber); }
.cur__ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(226, 230, 236, 0.45);
  display: grid; place-items: center;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), background-color 0.35s ease, border-color 0.35s ease;
}
.cur__ring span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #08090c; opacity: 0; transition: opacity 0.2s ease; }
.cur.is-link .cur__ring { width: 56px; height: 56px; border-color: var(--amber); }
.cur.is-view .cur__ring { width: 92px; height: 92px; background: var(--amber-2); border-color: var(--amber-2); }
.cur.is-view .cur__ring span { opacity: 1; }
.cur.is-view .cur__dot, .cur.is-link .cur__dot { opacity: 0; }



/* ==========================================================================
   Navigation — a camera viewfinder HUD
   ========================================================================== */
.hud {
  position: fixed; z-index: 60; top: 0; left: 0; right: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  height: 76px; padding: 0 28px;
  transition: transform 0.7s var(--ease-out), opacity 0.8s ease;
}
.hud::before { /* soft shade so the bar reads over any scene */
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(6, 7, 10, 0.86), rgba(6, 7, 10, 0));
  transition: opacity 0.4s ease;
}
.hud.is-hidden { transform: translateY(-110%); }
html.menu-open .hud { transform: none; }
html.menu-open .hud::before { opacity: 0; }
html.night-intro .hud, html.night-intro .corners { opacity: 0; transform: translateY(-14px); pointer-events: none; }
.hud__left { display: flex; align-items: center; gap: 18px; }
.hud__logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow 0.3s ease, background-color 0.3s ease; }
.hud__logo:hover { background: rgba(226, 230, 236, 0.06); box-shadow: inset 0 0 0 1px rgba(200, 208, 220, 0.5); }
.hud__logo img { width: 26px; height: 26px; object-fit: contain; }
.hud__status, .hud__scene { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.hud__status { display: inline-flex; align-items: center; gap: 8px; }
.hud__status i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d3d; box-shadow: 0 0 10px 1px rgba(255, 77, 61, 0.7); }
.motion .hud__status i { animation: rec 1.6s steps(1) infinite; }
@keyframes rec { 50% { opacity: 0.25; } }
.hud__status [data-ist] { color: var(--text); font-variant-numeric: tabular-nums; }
.hud__scene { justify-self: center; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 99px; background: rgba(10, 11, 14, 0.88); box-shadow: inset 0 0 0 1px var(--line); }
.hud__scene-k { color: var(--amber); }
.hud__scene-v { color: var(--text); min-width: 18ch; }
.hud__right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.hud__sayhi { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; background: #fff; color: #050608; font-stretch: 112%; font-size: 12.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); transition: background-color 0.25s ease; }
.hud__sayhi:hover { background: #d9dee5; }
.hud__sayhi svg { width: 15px; height: 15px; }
.hud__menu {
  display: inline-flex; align-items: center; gap: 14px;
  position: relative; isolation: isolate;
  height: 44px; padding: 0 14px 0 18px; border: 0; border-radius: 0;
  background: rgba(255, 255, 255, 0.55);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.hud__menu::before { content: ""; position: absolute; z-index: -1; inset: 1px; background: rgba(10, 11, 14, 0.92); clip-path: polygon(8.6px 0, 100% 0, 100% calc(100% - 8.6px), calc(100% - 8.6px) 100%, 0 100%, 0 8.6px); transition: background-color 0.3s ease; }
.hud__menu:hover { background: #fff; }
.hud__menu:hover::before { background: rgba(18, 20, 25, 0.95); }
.hud__menu-label { position: relative; display: block; height: 1.3em; overflow: hidden; line-height: 1.3; }
.hud__menu-label span { display: block; transition: transform 0.55s var(--ease-out); }
html.menu-open .hud__menu-label span { transform: translateY(-100%); }
.hud__burger { position: relative; width: 22px; height: 12px; }
.hud__burger i { position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform 0.55s var(--ease-out), top 0.55s var(--ease-out), width 0.55s var(--ease-out); }
.hud__burger i:first-child { top: 1px; }
.hud__burger i:last-child { top: 9px; width: 60%; left: auto; }
.hud__menu:hover .hud__burger i:last-child { width: 100%; }
html.menu-open .hud__burger i:first-child { top: 5px; transform: rotate(45deg); }
html.menu-open .hud__burger i:last-child { top: 5px; width: 100%; transform: rotate(-45deg); }

/* viewfinder corner brackets */
.corners { position: fixed; z-index: 59; inset: 14px; pointer-events: none; transition: opacity 0.8s ease, transform 0.8s var(--ease-out); }
.corners i { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(226, 230, 236, 0.28); }
.corners i:nth-child(1) { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.corners i:nth-child(2) { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.corners i:nth-child(3) { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.corners i:nth-child(4) { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }

/* ==========================================================================
   Menu — venetian blinds
   ========================================================================== */
.menu { position: fixed; z-index: 58; inset: 0; visibility: hidden; pointer-events: none; }
.menu.is-open, .menu.is-closing { visibility: visible; }
.menu.is-open { pointer-events: auto; }
html.menu-open body { overflow: hidden; }
.menu__blinds { position: absolute; inset: 0; display: flex; flex-direction: column; perspective: 1400px; }
.menu__blinds i {
  flex: 1; display: block;
  background: linear-gradient(180deg, #0d0e13, #07080b 70%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.025);
  transform-origin: 50% 0;
  transform: rotateX(-92deg);
  transition: transform 0.6s var(--ease-io);
  transition-delay: calc(var(--k) * 30ms);
}
.menu.is-open .menu__blinds i { transform: rotateX(0deg); }
.menu.is-closing .menu__blinds i { transition-delay: calc((11 - var(--k)) * 24ms); }
.menu__light { /* light falling through the slats */
  position: absolute; inset: -20%;
  background: repeating-linear-gradient(-24deg, rgba(214, 222, 235, 0.055) 0 34px, transparent 34px 92px);
  -webkit-mask-image: radial-gradient(70% 60% at 70% 30%, #000, transparent 80%);
  mask-image: radial-gradient(70% 60% at 70% 30%, #000, transparent 80%);
  opacity: 0; transition: opacity 0.6s ease;
}
.menu.is-open .menu__light { opacity: 1; transition-delay: 0.35s; }
.motion .menu.is-open .menu__light { animation: blinds-drift 14s linear infinite; }
@keyframes blinds-drift { to { transform: translate3d(-92px, 40px, 0); } }
.menu__body {
  position: relative; height: 100%;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); grid-template-rows: 1fr auto;
  gap: 24px 60px; padding: 110px var(--gutter) 34px;
}
.menu__links { display: flex; flex-direction: column; justify-content: center; counter-reset: m; }
.menu__links:hover a { opacity: 0.32; }
.menu__links a {
  position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: baseline;
  padding: 2px 0; transition: opacity 0.35s ease;
}
.menu__links a:hover, .menu__links a:focus-visible { opacity: 1; outline: none; }
.menu__n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--faint); transition: color 0.3s ease; }
.menu__t { display: block; overflow: hidden; padding-bottom: 0.05em; }
.menu__t span {
  display: inline-block;
  font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: clamp(42px, 7.6vh, 92px); line-height: 0.95; text-transform: uppercase;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out), color 0.3s ease, letter-spacing 0.5s var(--ease-out);
  transition-delay: calc(0.32s + var(--k) * 0.05s), 0s, 0s;
}
.menu.is-open .menu__t span { transform: none; }
.menu.is-closing .menu__t span { transition-delay: 0s; transition-duration: 0.35s; transform: translateY(-110%); }
.menu__links a:hover .menu__t span, .menu__links a:focus-visible .menu__t span { color: var(--amber-2); letter-spacing: 0.02em; }
.menu__links a:hover .menu__n, .menu__links a:focus-visible .menu__n { color: var(--amber); }
.menu__links a.is-current .menu__n::after { content: " ●"; color: var(--amber); }
.menu__preview { align-self: center; margin: 0; opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.8s var(--ease-out); }
.menu.is-open .menu__preview { opacity: 1; transform: none; transition-delay: 0.45s; }
.menu.is-closing .menu__preview { transition-delay: 0s; opacity: 0; }
.menu__frame { position: relative; aspect-ratio: 4 / 5; max-height: 62vh; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 40px 100px -40px rgba(200, 208, 220, 0.3); }
.menu__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) contrast(1.05); }
.menu__frame img.is-top { z-index: 2; clip-path: circle(0% at var(--cx, 50%) var(--cy, 50%)); transition: clip-path 0.9s var(--ease-out); }
.menu__frame img.is-top.is-shown { clip-path: circle(80% at var(--cx, 50%) var(--cy, 50%)); }
.menu__frame::after { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(180deg, transparent 60%, rgba(6, 7, 10, 0.6)); pointer-events: none; }
.menu__cap { margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.menu__cap span:first-child { color: var(--amber); }
.menu__foot { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; padding-top: 24px; border-top: 1px solid var(--line); opacity: 0; transition: opacity 0.5s ease; }
.menu.is-open .menu__foot { opacity: 1; transition-delay: 0.55s; }
.menu.is-closing .menu__foot { transition-delay: 0s; }
.menu__h { margin-bottom: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.menu__foot li + li { margin-top: 6px; }
.menu__foot a, .menu__note p:not(.menu__h) { font-size: 14px; color: rgba(226, 230, 236, 0.85); }
.menu__foot a:hover { color: var(--amber-2); }
.menu__soc { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 26px; }
.menu__soc li + li { margin-top: 0; }
.menu__clock { margin-top: 6px; font-family: var(--mono); font-size: 12px !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted) !important; }

/* ---------- shared section scaffolding ---------- */
.sec { position: relative; padding: clamp(100px, 14vw, 200px) var(--gutter); }
.sec__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; margin-bottom: clamp(48px, 7vw, 100px); }
.sec__head .label { margin-bottom: 26px; }
.gridlines { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc((100% - 2 * var(--gutter)) / 4) 100%; background-position: var(--gutter) 0; -webkit-mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); opacity: 0.7; }

/* ---------- hero overrides for the noir theme ---------- */
.theme-noir .nh__title { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(28px, min(3.6vw, 6.4vh), 60px); line-height: 1.02; text-transform: uppercase; letter-spacing: -0.035em; max-width: none; }
.theme-noir .nh__line { display: block; }
@media (min-width: 700px) { .theme-noir .nh__line { white-space: nowrap; } }
.theme-noir .nh__title .muted { color: rgba(226, 230, 236, 0.5); }
.theme-noir .nh__ui p { display: none; } /* the HUD already shows the live time */
.theme-noir .nh__kicker, .theme-noir .nh__ui { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.theme-noir .nh__screen-dots { background-image: radial-gradient(rgba(226, 230, 236, 0.18) 1px, transparent 1.4px); }
.theme-noir .nh__role { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(30px, 4.4vw, 72px); line-height: 1; letter-spacing: -0.035em; text-transform: uppercase; color: var(--text); }
.theme-noir .nh__role .muted { color: rgba(226, 230, 236, 0.45); }
.theme-noir .nh__areas { color: var(--muted); }
.theme-noir .nh__tag { color: var(--amber-2); border-color: rgba(200, 208, 220, 0.4); }
.theme-noir .nh__bar { background: #0d0f14; color: var(--text); font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; border-top: 1px solid var(--line); }
.theme-noir .nh__bar .hero__info-stripes { opacity: 0.06; filter: invert(1); }
.hero__info-stripes { position: absolute; inset: 0; background: url("/assets/img/stripes.svg") repeat; background-size: 34.5px 34.5px; pointer-events: none; }
.hero__clock { font-variant-numeric: tabular-nums; }
.motion .reveal-hero { opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.motion.is-ready .reveal-hero { opacity: 1; transform: none; }

/* ==========================================================================
   01 — About
   ========================================================================== */
.about { padding-top: clamp(120px, 16vw, 220px); }
.about__statement {
  font-family: var(--display);
  font-stretch: 100%;
  font-weight: 500;
  font-size: clamp(30px, 3.9vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 21em;
}
.about__statement .wd { color: rgba(226, 230, 236, 0.14); transition: color 0.35s ease; }
.about__statement .wd.on { color: var(--text); }
.about__statement .wd.hl, .end__title em .wd { font-weight: 200; }
.about__statement .wd.hl.on, .end__title em .wd.on { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about__statement .indent { display: inline-block; width: 2.2em; }
.about__row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; margin-top: clamp(64px, 9vw, 130px); padding-top: 32px; border-top: 1px solid var(--line); }
.stat__num { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: clamp(80px, 10vw, 170px); line-height: 0.85; letter-spacing: -0.02em; }
.stat__num small { font-size: 0.4em; color: var(--amber); margin-left: 4px; }
.stat__k { margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.stat__v { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 22em; }
.about__note { align-self: end; font-size: 15px; line-height: 1.6; color: var(--muted); }
.about__note .btn { margin-top: 22px; }

/* ==========================================================================
   02 — Testimonials
   ========================================================================== */
.witness { background: linear-gradient(var(--bg), #08090d 40%, var(--bg)); }
.witness__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; perspective: 1200px; }
.wcard {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 440px; padding: 26px 24px 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
  transform: translateY(calc(var(--flip, 0) * 110px)) rotateX(calc(var(--rx, 0deg) + var(--flip, 0) * 72deg)) rotateY(var(--ry, 0deg));
  opacity: calc(1 - var(--flip, 0) * 0.85);
  transition: transform 0.25s ease-out, box-shadow 0.4s ease;
  overflow: hidden;
}
.wcard:hover { box-shadow: inset 0 0 0 1px rgba(200, 208, 220, 0.35), 0 40px 80px -30px rgba(200, 208, 220, 0.18); }
.wcard::before { /* torchlight that follows the pointer */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(200, 208, 220, 0.12), transparent 60%);
  opacity: 0; transition: opacity 0.4s ease;
}
.wcard:hover::before { opacity: 1; }
.wcard__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.wcard__top b { color: var(--amber); font-weight: 500; }
.wcard__avatar { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; filter: grayscale(1) contrast(1.05); transform: rotate(-3deg) translateZ(30px); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.7); transition: filter 0.5s ease; }
.wcard:hover .wcard__avatar { filter: none; }
.wcard__quote { position: relative; margin-top: 22px; font-size: 16px; line-height: 1.6; letter-spacing: -0.01em; color: rgba(226, 230, 236, 0.82); transform: translateZ(20px); }
.wcard__quote::before { content: "“"; display: block; height: 0.5em; margin-bottom: 6px; font-stretch: 125%; font-weight: 800; font-size: 56px; line-height: 1; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wcard__cred { margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.wcard__name { font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: -0.01em; }
.wcard__role { margin-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================================
   03 — Clients marquee
   ========================================================================== */
.clients { padding: 70px 0 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients .label { margin: 0 var(--gutter) 40px; }
.mq { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq__track { display: flex; align-items: center; width: max-content; will-change: transform; }
.mq__track > * { flex: none; }
.clients .mq__track { gap: 96px; height: 48px; }
.clients img { width: auto; max-width: none; opacity: 0.55; filter: grayscale(1) brightness(1.4); transition: opacity 0.3s ease; }
.clients img:hover { opacity: 1; }

/* ==========================================================================
   04 — Work (pinned horizontal scroll)
   ========================================================================== */
.work { position: relative; }
.work__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.work__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 0 var(--gutter); margin-bottom: clamp(28px, 4vh, 48px); }
.work__head .label { margin-bottom: 18px; }
.work__count { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); white-space: nowrap; }
.work__count b { color: var(--text); font-weight: 500; }
.work__track { display: flex; gap: clamp(18px, 2vw, 32px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.pcard {
  position: relative; flex: none;
  width: min(62vw, 880px);
  display: flex; flex-direction: column; gap: 18px;
}
.pcard__media { position: relative; aspect-ratio: 16 / 10; max-height: 56vh; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pcard__media img { position: absolute; inset: -4% -8%; width: 116%; height: 108%; max-width: none; object-fit: cover; transform: translate3d(var(--px, 0px), 0, 0) scale(1.02); transition: transform 0.9s var(--ease-out), filter 0.6s ease; filter: saturate(0.85) brightness(0.92); }
.pcard:hover .pcard__media img { filter: saturate(1) brightness(1); }
.pcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6, 7, 10, 0.55)); pointer-events: none; }
.pcard__idx { position: absolute; z-index: 2; left: 20px; top: 16px; font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 72px; line-height: 1; color: rgba(226, 230, 236, 0.9); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); }
.pcard__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.pcard__title { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: clamp(22px, 2.1vw, 34px); line-height: 1.02; letter-spacing: -0.03em; text-transform: uppercase; }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pcard__go { flex: none; display: inline-flex; align-items: center; gap: 10px; padding-top: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: color 0.25s ease; }
.pcard__go svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; transition: transform 0.4s var(--ease-out); }
.pcard:hover .pcard__go { color: var(--amber-2); }
.pcard:hover .pcard__go svg { transform: translateX(4px) rotate(-45deg); }
.work__end { flex: none; width: min(40vw, 560px); display: flex; flex-direction: column; justify-content: center; gap: 22px; padding-left: 20px; }
.work__end p { font-family: var(--display); font-stretch: 100%; font-weight: 500; font-size: clamp(26px, 2.6vw, 42px); line-height: 1.1; letter-spacing: -0.035em; }

/* ==========================================================================
   05 — Store
   ========================================================================== */
.store { position: relative; min-height: 90vh; display: flex; align-items: center; padding: clamp(100px, 12vw, 180px) var(--gutter); overflow: hidden; border-top: 1px solid var(--line); }
.store__bg { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; object-position: 85% 30%; opacity: 0.4; will-change: transform; }
.store::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--bg) 18%, rgba(6, 7, 10, 0.55) 55%, rgba(6, 7, 10, 0.2)), linear-gradient(0deg, var(--bg), transparent 35%); }
.beam { position: absolute; z-index: 1; top: -20%; width: 34vw; height: 140%; pointer-events: none; background: linear-gradient(180deg, rgba(205, 216, 255, 0.16), rgba(205, 216, 255, 0) 75%); clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); transform-origin: 50% 0; opacity: 0.8; }
.motion .beam { animation: sweep 9s var(--ease-io) infinite alternate; }
.beam--a { left: 52%; }
.beam--b { left: 70%; animation-delay: -4.5s !important; opacity: 0.7; }
@keyframes sweep { from { transform: rotate(-22deg); } to { transform: rotate(18deg); } }
.store__inner { position: relative; z-index: 2; max-width: 760px; }
.store__inner .label { margin-bottom: 26px; }
.store__inner .lead { margin-top: 28px; }
.store__inner .btn { margin-top: 40px; }

/* ==========================================================================
   06 — Niches
   ========================================================================== */
.niches { padding-bottom: clamp(80px, 10vw, 140px); overflow: hidden; }
.niches__rows { display: flex; flex-direction: column; gap: 6px; margin-top: clamp(40px, 6vw, 80px); }
.niches .mq__track { gap: 0; }
.nword {
  display: inline-flex; align-items: center; gap: 0.45em;
  padding: 0 0.45em 0 0;
  font-family: var(--display); font-stretch: 62%; font-weight: 900;
  font-size: clamp(56px, 8.6vw, 150px); line-height: 1.02; letter-spacing: -0.01em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(226, 230, 236, 0.32);
  transition: color 0.35s ease, -webkit-text-stroke-color 0.35s ease;
  white-space: nowrap;
}
.nword::after { content: "+"; font-family: var(--mono); font-weight: 400; font-size: 0.32em; -webkit-text-stroke: 0; color: var(--amber); }
.nword:hover { color: var(--amber-2); -webkit-text-stroke-color: var(--amber-2); }
.nword--solid { color: var(--text); -webkit-text-stroke-color: var(--text); }
.nword img { height: 0.62em; width: auto; filter: invert(1); opacity: 0.85; }
.niches__p { max-width: 30em; }

/* ==========================================================================
   07 — Skills
   ========================================================================== */
.skills { border-top: 1px solid var(--line); }
.skills__wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.skills__aside { position: sticky; top: 120px; }
.skills__aside .label { margin-bottom: 26px; }
.skills__aside .lead { margin-top: 28px; }
.skills__aside h3 { margin-top: 36px; font-weight: 300; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.3; letter-spacing: -0.02em; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; max-width: 20em; }
.skills__aside .btn { margin-top: 34px; }
.skills__list { counter-reset: s; }
.srow { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr) 24px; align-items: center; gap: 18px; padding: clamp(22px, 2.6vw, 34px) clamp(16px, 1.6vw, 24px); border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; overflow: hidden; }
.srow::before { counter-increment: s; content: "0" counter(s); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--amber); }
.srow::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: linear-gradient(90deg, var(--amber), transparent); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out); }
.srow.is-in::after { transform: scaleX(1); }
.srow__t { font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: clamp(22px, 2.5vw, 40px); line-height: 1.05; letter-spacing: -0.035em; text-transform: uppercase; transition: transform 0.5s var(--ease-out), color 0.3s ease; }
.srow svg { width: 22px; height: 22px; stroke: var(--faint); fill: none; stroke-width: 1.5; transition: transform 0.5s var(--ease-out), stroke 0.3s ease; }
.srow:hover .srow__t { transform: translateX(12px); color: var(--amber-2); }
.srow:hover svg { transform: rotate(-45deg); stroke: var(--amber-2); }

/* ==========================================================================
   08 — YouTube
   ========================================================================== */
.yt { padding-top: clamp(60px, 8vw, 120px); text-align: center; }
.yt .label { margin-bottom: 26px; }
.yt__frame {
  position: relative; margin: clamp(48px, 6vw, 80px) auto 0;
  width: calc(100% - 2 * var(--gutter)); aspect-ratio: 16 / 9; max-height: 82vh;
  border-radius: calc(28px * (1 - var(--yp, 0)) + 8px);
  overflow: hidden; background: #000;
  clip-path: inset(0 calc(18% * (1 - var(--yp, 0))) round 24px);
  box-shadow: 0 60px 140px -60px rgba(200, 208, 220, 0.25);
}
html:not(.motion) .yt__frame { clip-path: none; }
.yt__frame iframe, .yt__frame .yt__poster, .yt__frame .yt__poster img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.yt__copy { max-width: 760px; margin: clamp(40px, 5vw, 64px) auto 0; }
.yt__copy .lead { margin: 18px auto 0; text-align: center; }
.yt__copy .btn { margin-top: 32px; }

/* ==========================================================================
   09 — Contact + footer
   ========================================================================== */
.end { position: relative; overflow: hidden; padding: clamp(110px, 14vw, 200px) var(--gutter) 0; border-top: 1px solid var(--line); background: radial-gradient(120% 70% at 50% 0%, #0d0f15, var(--bg) 60%); }
.end .beam--a { left: 8%; }
.end .beam--b { left: 66%; }
.end__inner { position: relative; z-index: 2; }
.end__head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.end__title { font-family: var(--display); font-stretch: 100%; font-weight: 600; font-size: clamp(32px, 4.2vw, 70px); line-height: 1.04; letter-spacing: -0.04em; }
.end__title .wd { color: rgba(226, 230, 236, 0.16); transition: color 0.3s ease; }
.end__title .wd.on { color: var(--text); }
.end__title em.on, .end__title em .wd.on { color: var(--amber-2); }
.end__ctas { display: flex; flex-direction: column; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line-2); font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; transition: color 0.3s ease, padding 0.5s var(--ease-out), background-color 0.3s ease; }
.cta-row:first-child { border-top: 1px solid var(--line-2); }
.cta-row span:last-child { display: inline-flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.82); text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 15px; }
.cta-row svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; transition: transform 0.4s var(--ease-out); }
.cta-row:hover { padding-left: 12px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 70%); }
.cta-row:hover span:last-child { color: #fff; }
.cta-row:hover svg { transform: rotate(-45deg); }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.6fr)); gap: 40px; margin-top: clamp(80px, 10vw, 140px); }
.foot__name { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 24px; letter-spacing: -0.03em; text-transform: uppercase; }
.foot__bio { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 30em; }
.foot__bio strong { display: block; margin-top: 4px; color: var(--text); font-weight: 500; }
.foot h4 { margin-bottom: 18px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.foot li + li { margin-top: 12px; }
.foot li a { font-size: 15px; color: rgba(226, 230, 236, 0.85); }
.foot li a:hover { color: var(--amber-2); }
.wordmark {
  position: relative; z-index: 1;
  margin: clamp(60px, 8vw, 110px) calc(-1 * var(--gutter)) 0;
  padding: 0 var(--gutter);
  font-family: var(--display); font-stretch: 62%; font-weight: 900;
  font-size: 12vw; line-height: 0.8; letter-spacing: -0.01em;
  text-transform: uppercase; white-space: nowrap; text-align: center;
  color: var(--text);
  -webkit-mask-image: repeating-linear-gradient(0deg, #000 0 3px, transparent 3px 7px), linear-gradient(180deg, #000 30%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: repeating-linear-gradient(0deg, #000 0 3px, transparent 3px 7px), linear-gradient(180deg, #000 30%, transparent 100%);
  mask-composite: intersect;
  opacity: 0.85;
  transform: translateY(calc(30% * (1 - var(--wp, 1))));
}
.wordmark span { display: inline-block; }
.foot__bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0 30px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.foot__bar a { color: var(--text); }

/* ==========================================================================
   Section openings & closings
   ========================================================================== */
/* stacking: a held section sinks back and dims while the next one slides over it */
main > section, main > footer { position: relative; }
.motion [data-stack] { position: sticky; }
.stack-shade { position: absolute; inset: 0; z-index: 20; pointer-events: none; background: #030304; opacity: 0; }
.motion .is-cover { border-radius: 30px 30px 0 0; box-shadow: 0 -50px 90px -30px rgba(0, 0, 0, 0.9); }
.motion .is-cover::before { content: ""; position: absolute; z-index: 21; left: 8%; right: 8%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(200, 208, 220, 0.5), transparent); pointer-events: none; }
.about, .witness, .clients, .work, .store, .niches, .skills, .yt { background-color: var(--bg); }
main > :nth-child(n) { isolation: isolate; }
/* stacking order is set inline in page order by noir.js, so later sections always sit on top */
.clients.is-cover { border-radius: 30px 30px 0 0; }
.clients { overflow: hidden; }

/* clients: a searchlight sweeps across the logo band as it arrives */
.sweep { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(100deg, transparent 38%, rgba(205, 216, 255, 0.13) 50%, transparent 62%); transform: translateX(-100%); }
.motion .clients.is-in .sweep { animation: sweep-across 2.2s var(--ease-io) 0.2s both; }
@keyframes sweep-across { to { transform: translateX(100%); } }

/* work: the title lands from big as the section pins */
.work__head .h2 { transform: scale(var(--tz, 1)); transform-origin: 0 100%; will-change: transform; }
.work__track .pcard { transform: skewX(var(--sk, 0deg)); transition: transform 0.4s var(--ease-out); }

/* store: cinematic letterbox bars that retract */
.lb { position: absolute; left: 0; right: 0; z-index: 3; height: 50%; background: var(--bg); pointer-events: none; transform: scaleY(var(--lb, 1)); will-change: transform; }
.lb--t { top: 0; transform-origin: 50% 0; box-shadow: 0 1px 0 rgba(200, 208, 220, calc(0.4 * var(--lb, 1))); }
.lb--b { bottom: 0; transform-origin: 50% 100%; box-shadow: 0 -1px 0 rgba(200, 208, 220, calc(0.4 * var(--lb, 1))); }
html:not(.motion) .lb { display: none; }

/* skills: a searchlight scans down the list */
.skills__list.is-scanning .srow .srow__t { color: rgba(226, 230, 236, 0.32); }
.skills__list.is-scanning .srow.is-active .srow__t { color: var(--amber-2); transform: translateX(14px); }
.srow.is-active { background: linear-gradient(90deg, rgba(200, 208, 220, 0.09), transparent 75%); }
.srow.is-active svg { stroke: var(--amber-2); transform: rotate(-45deg); }

/* youtube: giant outlined words drift behind the frame */
.yt { overflow: hidden; }
.yt__ghost { position: absolute; z-index: 0; top: 52%; left: 0; white-space: nowrap; pointer-events: none; transform: translate3d(var(--gx, 0px), -50%, 0); }
.yt__ghost span { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: clamp(120px, 20vw, 340px); line-height: 1; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(226, 230, 236, 0.07); }
.yt > *:not(.yt__ghost) { position: relative; z-index: 1; }

@media (max-width: 699.98px) {
  .motion [data-stack] { position: relative; top: auto !important; transform: none; }
  .stack-shade { display: none; }
  .motion .is-cover { border-radius: 0; box-shadow: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 999.98px) {
  .hud { padding: 0 16px; height: 68px; grid-template-columns: 1fr auto; }
  .hud__scene, .hud__sayhi, .corners { display: none; }
  .menu__body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; padding: 96px 24px 28px; }
  .menu__preview { display: none; }
  .menu__foot { grid-template-columns: 1fr 1fr; }
  .menu__note { display: none; }


  .sec__head { grid-template-columns: 1fr; }
  .about__row { grid-template-columns: 1fr 1fr; }
  .about__note { grid-column: 1 / -1; }
  .witness__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills__wrap { grid-template-columns: 1fr; }
  .skills__aside { position: relative; top: 0; }
  .end__head { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }

  /* work: a normal vertical list on tablets and phones */
  .work__pin { position: relative; height: auto; overflow: visible; padding: clamp(100px, 14vw, 160px) 0 40px; }
  .work__track { flex-direction: column; width: auto; transform: none !important; }
  .pcard { width: 100%; }
  .pcard__media { max-height: none; }
  .work__end { width: 100%; padding: 30px 0 0; }
  .work__count { display: none; } /* it tracks the pinned desktop scroll only */
}
@media (max-width: 599.98px) {
  .hud__status { display: none; }
  .menu__links a { grid-template-columns: 40px minmax(0, 1fr); }
  .menu__t span { font-size: clamp(34px, 6.4vh, 52px); }
  .menu__foot { grid-template-columns: 1fr; gap: 18px; }
  .menu__soc { grid-template-columns: repeat(3, max-content); }
  .label { font-size: 11px; }
  .about__row { grid-template-columns: 1fr; }
  .witness__grid { grid-template-columns: 1fr; }
  .wcard { min-height: 0; }
  .clients .mq__track { gap: 56px; }
  .pcard__idx { font-size: 44px; }
  .pcard__meta { flex-direction: column; gap: 12px; }
  .srow { grid-template-columns: 44px minmax(0, 1fr) 20px; }
  .foot { grid-template-columns: 1fr; }
  .foot__bar { flex-direction: column; align-items: flex-start; }
  .yt__frame { clip-path: none; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .beam { animation: none !important; }
}

/* ---------- noir overrides for the hero / preloader / sound stylesheet ---------- */
.theme-noir .nh__kicker::before, .theme-noir .nh__hint::before { background: var(--amber-2); box-shadow: 0 0 12px 2px rgba(214, 222, 235, 0.45); }
.theme-noir .nl__prompt, .theme-noir .nl__ok { color: var(--amber); }
.theme-noir .nl__count { font-family: var(--display); font-stretch: 62%; font-weight: 200; letter-spacing: -0.02em; }
.theme-noir .nl__term { color: rgba(226, 230, 236, 0.8); }
.theme-noir .snd:focus-visible { outline-color: var(--amber-2); }
.theme-noir .snd.is-on .snd__bars, .theme-noir .snd.is-armed .snd__bars { color: var(--amber-2); }
.theme-noir .snd { font-family: var(--sans); }
.theme-noir .nh__areas { font-size: clamp(16px, 1.3vw, 19px); letter-spacing: -0.01em; margin-left: auto; margin-right: auto; }

/* the screen inside the laptop no longer has the India / time strip */
.theme-noir .nh__screen-content { padding-bottom: 64px; }

/* ==========================================================================
   Inside the laptop: a design-tool canvas
   ========================================================================== */
.theme-noir .nh__screen-content { justify-content: center; }
.scr-ruler { position: absolute; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.8s ease 0.1s; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.04em; color: rgba(226, 230, 236, 0.35); }
.scr-ruler--x { left: 24px; right: 0; top: 76px; height: 22px; border-bottom: 1px solid rgba(226, 230, 236, 0.12);
  background-image: linear-gradient(90deg, rgba(226, 230, 236, 0.28) 1px, transparent 1px), linear-gradient(90deg, rgba(226, 230, 236, 0.14) 1px, transparent 1px);
  background-size: 100px 100%, 10px 6px; background-position: 0 0, 0 100%; background-repeat: repeat-x; }
.scr-ruler--y { top: 98px; bottom: 0; left: 0; width: 24px; border-right: 1px solid rgba(226, 230, 236, 0.12);
  background-image: linear-gradient(180deg, rgba(226, 230, 236, 0.28) 1px, transparent 1px), linear-gradient(180deg, rgba(226, 230, 236, 0.14) 1px, transparent 1px);
  background-size: 100% 100px, 6px 10px; background-position: 0 0, 100% 0; background-repeat: repeat-y; }
.scr-ruler i { position: absolute; font-style: normal; }
.scr-ruler--x i { top: 2px; transform: translateX(3px); }
.scr-ruler--y i { left: 3px; transform: translateY(3px); writing-mode: vertical-rl; }
.nh__screen.is-live .scr-ruler { opacity: 1; }

.scr-frame { position: relative; padding: 26px 34px 30px; margin: 22px 0 0; }
.scr-frame::before { /* selection outline draws in */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 1px solid rgba(214, 222, 235, 0.55);
  clip-path: inset(0 100% 100% 0);
  transition: clip-path 1.1s var(--ease-io) 0.15s;
}
.nh__screen.is-live .scr-frame::before { clip-path: inset(0 0 0 0); }
.scr-h { position: absolute; width: 9px; height: 9px; background: var(--bg); border: 1px solid #e3e7ec; transform: scale(0); transition: transform 0.45s var(--ease-out) 0.9s; }
.scr-h--tl { left: -5px; top: -5px; } .scr-h--tr { right: -5px; top: -5px; } .scr-h--bl { left: -5px; bottom: -5px; } .scr-h--br { right: -5px; bottom: -5px; }
.nh__screen.is-live .scr-h { transform: scale(1); }
.scr-frame__name, .scr-frame__dim { position: absolute; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0; transition: opacity 0.5s ease 1.1s, transform 0.5s var(--ease-out) 1.1s; transform: translateY(4px); }
.scr-frame__name { left: 0; top: -22px; color: rgba(226, 230, 236, 0.6); }
.scr-frame__dim { left: 50%; bottom: -26px; transform: translate(-50%, 4px); padding: 3px 8px; background: #e3e7ec; color: #050608; }
.nh__screen.is-live .scr-frame__name { opacity: 1; transform: none; }
.nh__screen.is-live .scr-frame__dim { opacity: 1; transform: translate(-50%, 0); }
/* headline lines slide up once the screen is flat */
.nh__role .ln { display: block; overflow: hidden; padding-bottom: 0.04em; }
.nh__role .ln > * { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); }
.nh__role .ln:nth-child(2) > * { transition-delay: 0.12s; }
.nh__screen.is-live .nh__role .ln > * { transform: none; }
html:not(.motion) .nh__role .ln > * { transform: none; }
.theme-noir .nh__actions { margin-top: 44px; gap: 14px; }

/* Kashish's cursor glides in and idles near the headline */
.scr-cursor { position: absolute; z-index: 3; left: 71%; top: 21%; display: flex; flex-direction: column; align-items: flex-start; pointer-events: none; opacity: 0; transform: translate(40vw, 30vh); transition: transform 1.6s var(--ease-io) 0.6s, opacity 0.6s ease 0.6s; }
.scr-cursor__arrow { width: 22px; height: 24px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)); }
.scr-cursor span { margin: 2px 0 0 16px; padding: 4px 9px; background: #e3e7ec; color: #050608; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
.nh__screen.is-live .scr-cursor { opacity: 1; transform: none; }
.motion .nh__screen.is-live .scr-cursor { animation: k-idle 7s ease-in-out 2.4s infinite; }
@keyframes k-idle { 0%, 100% { translate: 0 0; } 30% { translate: -26px 18px; } 65% { translate: 18px -12px; } }

/* "You" tag on the visitor's cursor while over the canvas */
.cur__tag { position: absolute; left: 14px; top: 12px; padding: 3px 8px; background: #8d96a2; color: #050608; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; opacity: 0; transform: scale(0.8); transform-origin: 0 0; transition: opacity 0.25s ease, transform 0.25s ease; clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
.cur.is-you .cur__tag { opacity: 1; transform: none; }
.cur.is-you .cur__ring { width: 20px; height: 20px; border-color: rgba(226, 230, 236, 0.7); }

@media (max-width: 699.98px) {
  .scr-ruler--y { display: none; }
  .scr-ruler--x { left: 0; top: 68px; }
  .scr-frame { padding: 20px 16px 24px; }
  .scr-cursor { left: 58%; top: 22%; }
  .theme-noir .nh__actions .btn { min-width: 250px; justify-content: space-between; }
}

/* YouTube: poster + play badge; the player loads only on click */
.yt__poster { display: block; }
.yt__poster img { transition: transform 0.9s var(--ease-out); }
.yt__poster:hover img { transform: scale(1.03); }
.yt__play { position: absolute; left: clamp(14px, 2vw, 26px); bottom: clamp(14px, 2vw, 26px); z-index: 2; display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 22px 0 7px; background: #fff; color: #050608; font-stretch: 112%; font-size: 13.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); transition: transform 0.4s var(--ease-out); }
.yt__play svg { width: 40px; height: 40px; padding: 12px 11px 12px 13px; background: #050608; fill: #fff; }
.yt__poster:hover .yt__play { transform: translateY(-3px); }

/* ==========================================================================
   Inside the laptop: a white canvas that floods into the dark theme
   ========================================================================== */
.nh[data-screen="dark"] .nh__screen { --fx: calc(100% - 64px); --fy: 134px; }
.nh[data-screen="dark"] .nh__screen-dots { background-image: radial-gradient(rgba(11, 13, 17, 0.24) 1px, transparent 1.4px); }
/* the dark page, revealed by a circle growing out of the theme switch */
.nh[data-screen="dark"] .nh__screen-content {
  background: radial-gradient(70% 60% at 50% 42%, rgba(6, 7, 10, 0) 40%, #06070a 85%), radial-gradient(rgba(226, 230, 236, 0.16) 1px, transparent 1.4px) 0 0 / 24px 24px, #06070a;
  clip-path: circle(0% at var(--fx) var(--fy));
  transition: clip-path 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}
.nh[data-screen="dark"] .nh__screen.is-dark .nh__screen-content { clip-path: circle(150% at var(--fx) var(--fy)); transition-duration: 1.2s; }
html:not(.motion) .nh[data-screen="dark"] .nh__screen-content { clip-path: none; }
/* the switch */
.scr-theme { position: absolute; z-index: 4; right: 32px; top: 118px; width: 64px; height: 32px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px rgba(11, 13, 17, 0.2), 0 6px 18px -8px rgba(11, 13, 17, 0.35); opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease, transform 0.5s var(--ease-out), background-color 0.5s ease, box-shadow 0.5s ease; pointer-events: none; }
.scr-theme i { position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #0b0d11; color: #fff; transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1), background-color 0.45s ease, color 0.45s ease; }
.scr-theme svg { position: absolute; inset: 5px; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: opacity 0.3s ease, transform 0.45s ease; }
.scr-theme__moon { fill: currentColor !important; stroke: none !important; opacity: 0; transform: rotate(-60deg); }
.nh__screen.is-flat .scr-theme { opacity: 1; transform: none; }
.nh__screen.is-dark .scr-theme { background: #14171d; box-shadow: inset 0 0 0 1px rgba(226, 230, 236, 0.28); }
.nh__screen.is-dark .scr-theme i { transform: translateX(32px); background: #e8eaed; color: #0b0d11; }
.nh__screen.is-dark .scr-theme__sun { opacity: 0; transform: rotate(60deg); }
.nh__screen.is-dark .scr-theme__moon { opacity: 1; transform: none; }
html:not(.motion) .scr-theme { display: none; }
@media (max-width: 699.98px) {
  .nh[data-screen="dark"] .nh__screen { --fx: calc(100% - 52px); --fy: 120px; }
  .scr-theme { right: 20px; top: 104px; }
}
