/* Sushil Yadav - portfolio. One stylesheet, tokens first.
   Palette from the photograph: fog greys, night charcoal, and the orange-red of
   his sleeve stripe as the one saturated colour. Contrast is measured in
   tests/test_site.py, not remembered. */

@font-face { font-family: "Anton"; src: url(../fonts/anton-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(../fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(../fonts/jetbrains-mono-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #0B0D10;
  --bg-2: #12151A;
  --bg-3: #191D23;
  --line: #262B33;
  --fog: #E6E8EA;
  --fog-2: #A3AAB3;
  --body-2: #C5CAD0;
  --accent: #E2553F;
  --accent-soft: #F08A76;
  --c-lead: #E2553F;
  --c-check: #7FB8C8;
  --c-run: #E3B868;
  --c-platforms: #E6E8EA;
  --c-tools: #A3AAB3;

  /* The type scale. Every size on the page is one of these; a component that
     needs a new one is a decision, not a default. Scanned 2026-09-20: the page
     had 26 distinct sizes because each component carried its own. */
  --t-xs: .75rem;     /* 12px - labels, chips, numbers */
  --t-s: .8rem;       /* 12.8px - kickers, small mono */
  --t-sm: .85rem;     /* 13.6px - asides, status */
  --t-ms: .9rem;      /* 14.4px - captions under a number */
  --t-m: .95rem;      /* 15.2px - secondary body */
  --t-l: 1.0625rem;   /* 17px - body */
  --t-xl: 1.25rem;    /* 20px - lede */
  --d-s: clamp(1.6rem, 2.2vw, 2.1rem);      /* display: card and chapter headings */
  --d-m: clamp(1.8rem, 2.6vw, 2.6rem);      /* display: column heads */
  --d-l: clamp(2.4rem, 6.2vw, 5.6rem);      /* display: section headings */
  /* The radius scale: 8px for fields and chips, 16px for cards, pills, dots. */
  --r-s: .5rem;
  --r-m: 1rem;

  /* The depth scale. One scale, like type and radius: a component that wants a
     new depth is a decision, not a default.

     Measured before any of it was written, because neumorphism lives or dies on
     one number. A box in this style has no border; it is told apart from its
     background by a light shadow on the side the light comes from and a dark
     one opposite. On #191D23 a white highlight is worth 1.19:1 at 6% and
     1.35:1 at 10%, and the dark side cannot pass 1.21:1 at any alpha, because
     a near-black surface has almost nowhere left to darken. WCAG 1.4.11 asks
     3:1 of anything that marks the edge of a control.

     So this layer carries depth and never carries a boundary. Every border on
     the page stays, the field edge stays at 3.53:1, and under
     prefers-contrast: more the whole thing flattens back to flat surfaces. */
  --nm-hi: rgb(255 255 255 / .07);        /* the lit hairline, top left */
  --nm-glow: rgb(255 255 255 / .04);      /* the soft lift around it */
  --nm-lo: rgb(0 0 0 / .72);
  --nm-lo-deep: rgb(0 0 0 / .9);

  --nm-1: inset 1px 1px 0 var(--nm-hi), -5px -5px 14px var(--nm-glow),
          7px 10px 22px var(--nm-lo);
  --nm-2: inset 1px 1px 0 var(--nm-hi), -9px -9px 26px var(--nm-glow),
          14px 20px 42px var(--nm-lo);
  --nm-3: inset 1px 1px 0 var(--nm-hi), -13px -13px 38px var(--nm-glow),
          24px 34px 68px var(--nm-lo-deep);

  /* Pressed in. The one neumorphic reading that is strong on a dark page: a
     hole is believable here in a way a bump is not. */
  --nm-in: inset 4px 4px 10px rgb(0 0 0 / .78), inset -3px -3px 8px var(--nm-glow);
  --nm-in-deep: inset 6px 6px 16px rgb(0 0 0 / .85), inset -4px -4px 11px var(--nm-hi);
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(1rem, 5vw, 5rem);
  --shell: 78rem;
  --prose: 38rem;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--fog); font: 400 1.0625rem/1.65 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; -webkit-user-drag: none; user-select: none; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
section[id] { scroll-margin-top: 4.5rem; }

.skip { position: absolute; left: 1rem; top: -3rem; z-index: 100; background: var(--fog); color: var(--bg); padding: .5rem .9rem; border-radius: var(--r-s); }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--shell)); margin-inline: auto; }
.h2 { font: 400 var(--d-l)/0.95 var(--display); text-transform: uppercase; letter-spacing: .005em; max-width: 16ch; }

/* A heading of forty-odd characters cannot sit on two lines inside a 16ch cap:
   three of them were running to three lines at every width. .h2-long drops the
   cap and takes one step down the display scale, which is what a longer line
   wants anyway. Measured, not guessed: tests/browser_check.mjs counts the lines
   and fails if any of the three goes back to three. 2026-09-27. */
.h2-long { max-width: none; font-size: clamp(1.7rem, 4.6vw, 4rem); }
.h2 .ln { display: block; }
.lede { color: var(--fog-2); font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: var(--prose); margin-top: 1.1rem; }
.kicker { font: 600 var(--t-s)/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--fog); color: var(--bg); text-decoration: none; font-weight: 600; padding: .85rem 1.3rem; border-radius: 999px; border: 0; cursor: pointer; transition: background .25s, color .25s; }
.btn:hover { background: var(--accent); color: #fff; }
.link { text-decoration: none; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 1px; background: none; cursor: pointer; }
.link:hover { color: var(--accent); }
/* The second way to do the same thing (call instead of WhatsApp, email instead
   of WhatsApp) is a button of the same size, outlined instead of filled. It was
   a small underlined link until 2026-09-20: half the weight of its neighbour and
   a 30px tap target on a phone. */
.btn-2 { display: inline-flex; align-items: center; justify-content: center; background: none; color: var(--fog); text-decoration: none; font-weight: 600;
  padding: calc(.85rem - 1px) calc(1.3rem - 1px); border-radius: 999px; border: 1px solid var(--fog-2); cursor: pointer; transition: border-color .25s, color .25s, background .25s; }
.btn-2:hover { border-color: var(--accent); color: var(--accent); background: rgb(226 85 63 / .08); }

/* The small button. It lived as a `.cookie .btn` override, which made it two
   more button styles rather than one more size: the next place that wanted a
   small button would have written a third copy, and an audit on 2026-10-14
   counted six buttons on a page that has two. Named, it is a size on the scale.
   Pixel for pixel what the override was, including the 1px the outlined one
   gives back to its own border so both buttons end up the same height.
   It sits after .btn-2 on purpose: same specificity, so order decides. */
.btn-s { font-size: var(--t-m); padding: .6rem 1.1rem; }
.btn-2.btn-s { padding: calc(.6rem - 1px) calc(1.1rem - 1px); }
.card-glass { background: color-mix(in srgb, var(--bg-3) 70%, transparent); border: 1px solid var(--line); border-radius: var(--r-m); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgb(255 255 255 / .06) inset, 0 40px 80px -40px rgb(0 0 0 / .7); }

/* ---------- progress + cursor ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.cursor { display: none; }
.fine.motion .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; opacity: 0; transition: opacity .3s; }
.fine.motion .cursor.live { opacity: 1; }
.cursor .tagname { position: absolute; font: 600 .6rem/1 var(--mono); letter-spacing: .08em; color: var(--accent); transform: translate(calc(-100% - 10px), -50%); text-shadow: 0 0 8px rgb(11 13 16 / .8); transition: opacity .2s; }
.cursor.hover .tagname, .cursor.drag .tagname { opacity: 0; }
.cursor .ring { position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 1px solid rgb(230 232 234 / .45); display: grid; place-items: center; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, border-color .3s; }
.cursor .ring em { font: 600 .6rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; font-style: normal; opacity: 0; transition: opacity .2s; }
.cursor.hover .ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgb(226 85 63 / .12); border-color: var(--accent); }
.cursor.drag .ring { width: 72px; height: 72px; margin: -36px 0 0 -36px; border-color: var(--c-check); }
.cursor.drag .ring em { opacity: 1; }
.fine.motion, .fine.motion a, .fine.motion button, .fine.motion #skills-canvas { cursor: none; }

/* ---------- preloader ---------- */
.boot { display: none; }
.motion .boot {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: grid; place-items: center; align-content: center; gap: 1.6rem; padding: var(--gutter);
  animation: boot-failsafe .4s 5s forwards;             /* if JS never removes it, it still goes */
}
@keyframes boot-failsafe { to { opacity: 0; visibility: hidden; } }
.boot::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(to bottom, rgb(255 255 255 / .025) 0 1px, transparent 1px 3px); }
.boot-term { position: relative; font: 400 clamp(.8rem, 1.5vw, 1rem)/2 var(--mono); color: var(--fog-2); width: min(100%, 36rem); }
.boot-term .bl { opacity: 0; white-space: nowrap; }
.boot-term .p, .method .p { color: var(--accent); margin-right: .6ch; }
.boot-term .mod { display: flex; align-items: baseline; gap: .6ch; padding-left: 2ch; }
.boot-term .mod i { flex: 1; border-bottom: 1px dotted rgb(163 170 179 / .35); transform: translateY(-.3em); }
.boot-term .mod b { font-weight: 600; color: var(--c-check); }
.boot-term .bar-line { display: flex; align-items: center; gap: 1rem; margin: .5rem 0; }
.boot-term .bar { flex: 1; height: 4px; background: #1A1F26; border-radius: 999px; overflow: hidden; }
.boot-term .fill { display: block; height: 100%; background: linear-gradient(90deg, var(--c-check), var(--accent)); transform-origin: left; transform: scaleX(0); }
.boot-term .pct { color: var(--fog); font-weight: 600; min-width: 4ch; text-align: right; }
/* 12px (.75rem) is the floor for every word on the page. Below it a label is
   hard to read on a phone; a usability scan found text at 11px on 2026-09-20.
   Only the cursor's own decoration and the temporary placeholder badge go under. */
.boot-skip { font: 400 var(--t-xs)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgb(163 170 179 / .55); }
.caret { display: inline-block; width: .6ch; height: 1.1em; background: var(--accent); vertical-align: -.2em; margin-left: .3ch; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 1.1rem var(--gutter); transition: background .35s, backdrop-filter .35s; }
.nav.solid { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.brand { font: 400 1.6rem/1 var(--display); text-decoration: none; letter-spacing: .02em; }
.brand span { color: var(--accent); }
.nav nav { display: flex; align-items: center; gap: clamp(.9rem, 2.4vw, 2rem); font: 600 var(--t-ms)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.nav nav a { text-decoration: none; opacity: .9; padding: .6rem .2rem; }
.nav nav a:hover { opacity: 1; color: var(--accent); }
.nav-cta { border: 1px solid var(--fog-2); padding: .55rem .9rem !important; border-radius: 999px; display: inline-block; }
.menu-btn { display: none; background: none; border: 1px solid var(--fog-2); color: var(--fog); border-radius: 999px; padding: .6rem 1rem; font: 600 var(--t-s)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }

/* ---------- hero ---------- */
.hero { position: relative; }
.stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #1a1d20; perspective: 1400px; user-select: none; }
.plane { position: absolute; inset: 0; will-change: transform; }
.plane picture, .plane img, picture.plane img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 36%; }
.fg-inner, .fg-inner picture, .fg-inner .living { position: absolute; inset: 0; width: 100%; height: 100%; }
.fg-inner .living { display: block; opacity: 0; transition: opacity .6s; }
.living-on .fg-inner .living { opacity: 1; }
.living-on .fg-inner picture { opacity: 0; }                  /* the canvas draws him; the img stays for its alt text */
.fog { width: 100%; height: 100%; pointer-events: none; }
.shade {
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgb(11 13 16 / .55), rgb(11 13 16 / 0) 18%),   /* the nav reads over the photo */
    linear-gradient(to top, var(--bg) 0%, rgb(11 13 16 / .75) 16%, rgb(11 13 16 / 0) 42%);
}
.shade-left { pointer-events: none; background: linear-gradient(to right, rgb(11 13 16 / .55), rgb(11 13 16 / 0) 55%); }   /* under his name, so both halves of it match */
.scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgb(226 85 63 / .0) 30%, rgb(255 190 170 / .95) 62%, rgb(226 85 63 / .0) 90%, transparent);
  box-shadow: 0 0 18px 4px rgb(226 85 63 / .45); }
.tokens { pointer-events: none; overflow: hidden; }
.tok { position: absolute; left: 0; top: 0; font: 600 var(--t-xs)/1 var(--mono); letter-spacing: .06em; white-space: nowrap; padding: .3rem .5rem; border-radius: var(--r-s); border: 1px solid rgb(230 232 234 / .22); color: rgb(236 238 240 / .75); background: rgb(11 13 16 / .18); }
.tok.far { font-size: .68rem; opacity: .45; filter: blur(1.2px); }
.tok.near { font-size: .86rem; color: #fff; border-color: rgb(226 85 63 / .6); background: rgb(226 85 63 / .12); }
.tok.ok { color: #BFE3EC; border-color: rgb(127 184 200 / .5); }
.title-plane { pointer-events: none; }
.title { position: absolute; left: var(--gutter); top: 17vh; font-weight: 400; }
.title .kicker { display: block; margin: 0 0 1.2rem .3rem; color: var(--fog); text-shadow: 0 1px 12px rgb(11 13 16 / .6);
  text-transform: none; letter-spacing: .1em; font-size: var(--t-s); }   /* 49 characters: a line, not a label */
.title .kicker::before { content: ""; display: inline-block; width: 1.6rem; height: 2px; background: var(--accent); vertical-align: .3em; margin-right: .7rem; }
.title .name { display: block; white-space: nowrap; font: 400 min(15.5vw, 31vh)/.84 var(--display); text-transform: uppercase; color: rgb(236 238 240 / .92); letter-spacing: .005em; }
.title .line { display: inline-block; }
.title .line + .line { margin-left: .22em; }
.letterbox { position: absolute; left: 0; right: 0; height: 9vh; background: #000; z-index: 3; transform-origin: top; }
.lb-top { top: 0; }
.lb-bottom { bottom: 0; transform-origin: bottom; }
.hero-ui { position: absolute; inset: 0; z-index: 4; pointer-events: none; }   /* scroll fades this; the intro fades what is inside */
.hero-ui > * { pointer-events: auto; }
.hero-copy { position: absolute; left: var(--gutter); bottom: 12vh; z-index: 4; max-width: 32rem; }
.tagline { font: 600 clamp(1.3rem, 2.3vw, 1.9rem)/1.25 var(--body); letter-spacing: -.01em; }
.sub { color: var(--body-2); margin-top: .8rem; }
.actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: baseline; }   /* the link's words on the button's line */
.cue { position: absolute; right: var(--gutter); bottom: 12vh; z-index: 4; font: 600 var(--t-xs)/1 var(--mono); letter-spacing: .06em; color: var(--fog-2); }
.cue span { color: var(--fog); }

/* ---------- sections ---------- */
section:not(.hero) { position: relative; padding-block: clamp(5rem, 13vh, 9rem); }

/* hello + stories */
.intro { background: var(--bg); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.intro .kicker { margin-bottom: 1.6rem; }
.manifesto { font: 600 clamp(1.6rem, 3vw, 2.8rem)/1.2 var(--body); letter-spacing: -.02em; color: var(--fog); }
.manifesto .w { display: inline-block; }
.intro-more { color: var(--body-2); font-size: var(--t-l); margin-top: 1.3rem; max-width: 40rem; }
.intro-more b { color: var(--fog); }
.story-list { margin-top: 1.6rem; border-top: 1px solid var(--line); }
.story-list button { position: relative; width: 100%; text-align: left; display: flex; gap: 1rem; align-items: baseline; background: none; border: 0; border-bottom: 1px solid var(--line); padding: .8rem .2rem; color: var(--fog-2); cursor: pointer; transition: color .25s, padding .35s var(--ease); }
.story-list button:hover, .story-list button.on { color: var(--fog); padding-left: .8rem; }
.story-list button.on { font-weight: 600; }
.story-list button::after {                                  /* every row says "this opens something" */
  content: "›"; margin-left: auto; padding-left: .8rem; font: 400 1.2rem/1 var(--body); color: var(--fog-2); opacity: .5; transition: opacity .25s, color .25s, transform .25s var(--ease); }
.story-list button:hover::after, .story-list button:focus-visible::after { opacity: 1; transform: translateX(3px); }
.story-list button.on::after { opacity: 1; color: var(--accent); transform: translateX(3px); }
.story-list button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-s); }
.story-list button.on::before {                              /* the one being told, marked, not just a shade brighter */
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 1.2em; border-radius: 999px; background: var(--accent); box-shadow: 0 0 10px rgb(226 85 63 / .6); }
.story-list button.on .sn { color: var(--accent); }
.sn { font: 600 var(--t-xs)/1 var(--mono); color: var(--fog-2); }
.story-frame { position: sticky; top: 12vh; }
.story-pics { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-m); overflow: hidden; background: var(--bg-3); box-shadow: 0 50px 90px -40px rgb(0 0 0 / .85); }
.story-pics img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.story-pics img:first-child { opacity: 1; }
.story-cap { display: grid; gap: .35rem; margin-top: 1rem; }
.story-n { font: 600 var(--t-xs)/1 var(--mono); color: var(--accent); letter-spacing: .1em; }
.story-t { font: 400 clamp(1.4rem, 2vw, 1.9rem)/1.05 var(--display); text-transform: uppercase; }
.story-d { color: var(--body-2); }
.story-bar { height: 2px; background: var(--line); margin-top: .5rem; overflow: hidden; }
.story-bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* capabilities */
.caps { background: var(--bg-2); }
.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; gap: 1.2rem; margin-top: 3rem; }
/* Four rows shared across the whole row of cards, so every "Talk about this"
   sits on the same line however long the text above it runs (scan, 2026-09-20).
   Without subgrid the cards fall back to the old column and stay usable. */
.cap { position: relative; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.6rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .7rem; overflow: hidden; transition: border-color .3s; }
.cap::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(226 85 63 / .22), transparent 70%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.cap:hover { border-color: rgb(226 85 63 / .5); }
.cap:hover::after { opacity: 1; }
.cap code { font: 600 var(--t-xs)/1 var(--mono); letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.cap h3 { font: 400 var(--d-s)/1 var(--display); text-transform: uppercase; margin-top: 1.2rem; }
.cap p { color: var(--body-2); font-size: var(--t-m); }
.cap .if { color: var(--fog); font-weight: 600; }
.cap .if::before { content: "If "; color: var(--fog-2); font-weight: 400; }
.cap-head, .cap-body { display: flex; flex-direction: column; gap: .7rem; }
.cap .get { border-top: 1px dashed var(--line); padding-top: .7rem; color: var(--fog); margin-top: auto; }
@supports (grid-template-rows: subgrid) {
  .cap-grid > .cap { grid-row: span 4; display: grid; grid-template-rows: subgrid; }
  .cap .get { margin-top: 0; }
}
.cap .get span { display: block; font: 600 var(--t-xs)/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--c-check); }
.cap-cta { display: block; align-self: start; padding: .6rem 0; font: 600 var(--t-s)/1 var(--mono); letter-spacing: .08em; color: var(--accent-soft); text-decoration: none; }
.cap-cta:hover { color: #fff; }

/* manage / build / advise */
.shipped { background: var(--bg-2); }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 3rem; align-items: start; }
.col { display: grid; gap: 1rem; }
.col-h { font: 400 var(--d-m)/1 var(--display); text-transform: uppercase; padding-bottom: .8rem; border-bottom: 2px solid var(--accent); }
.col-h span { font: 600 var(--t-xs)/1 var(--mono); color: var(--accent); vertical-align: .9em; margin-right: .3rem; }
.tile { position: relative; background: linear-gradient(160deg, var(--bg-3), #14171C); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.3rem 1.3rem 1.4rem; overflow: hidden; }
.tile .tag { display: inline-block; font: 600 var(--t-xs)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c-check); border: 1px solid rgb(127 184 200 / .35); border-radius: 999px; padding: .4rem .7rem; }
.tile h4 { font: 600 var(--t-xl)/1.3 var(--body); margin-top: .9rem; }
.tile p { color: var(--body-2); margin-top: .4rem; font-size: var(--t-m); }
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 40%, rgb(230 232 234 / .06) 50%, transparent 60%); transform: translateX(-100%); transition: transform .9s var(--ease); pointer-events: none; }
.tile:hover::before { transform: translateX(100%); }

/* numbers */
.numbers { background: var(--bg); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr) 1.6fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 3.2rem; }
.stat { background: var(--bg); padding: 2rem 1.5rem 1.8rem; display: flex; flex-direction: column; gap: .8rem; }
.stat > b { font: 400 clamp(3.6rem, 7vw, 6.4rem)/.9 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; }
.stat > span { color: var(--fog-2); font-size: var(--t-m); }
.stats { grid-template-columns: repeat(3, 1fr); }
.impact { grid-column: 1 / -1; overflow: hidden; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem 3rem; background: linear-gradient(135deg, rgb(226 85 63 / .10), var(--bg) 55%); padding: 2.2rem 2rem; }
.impact-head strong { display: block; font: 400 clamp(2rem, 3.4vw, 3.2rem)/1 var(--display); text-transform: uppercase; color: var(--fog); }
.impact-head > p { color: var(--body-2); margin-top: .8rem; max-width: 30rem; }
.impact-best { display: flex; gap: 1rem; align-items: center; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px dashed var(--line); }
.impact-best b { font: 400 clamp(3rem, 5vw, 4.4rem)/.9 var(--display); color: var(--accent); flex: none; }
.impact-best > span { color: var(--fog-2); font-size: var(--t-ms); }
.impact-list { display: grid; gap: .2rem; align-content: center; }
.impact-list li { display: grid; grid-template-columns: 2.6rem 11rem 1fr; align-items: baseline; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.impact-list li:last-child { border-bottom: 0; }
.impact-list i { font: 400 1.9rem/1 var(--display); font-style: normal; color: var(--c-check); display: inline-block; }
.impact-list b { font: 400 var(--t-xl)/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--fog); }
.impact-list span { color: var(--fog-2); font-size: var(--t-ms); }

/* story chapters */
.career { background: var(--bg-2); overflow: hidden; }
.career-head { width: min(100% - 2 * var(--gutter), var(--shell)); margin-inline: auto; }
.rail { display: none; }
.rail-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); padding: 3rem var(--gutter) 0; }
.chapter { position: relative; min-width: 0; background: linear-gradient(160deg, var(--bg-3), #14171C); border: 1px solid var(--line); border-radius: var(--r-m); padding: 2rem 2rem 1.8rem; overflow: hidden; transform-style: preserve-3d; }
.chapter > *:not(.year) { position: relative; }
.chapter .year { position: absolute; right: -.4rem; top: -1.4rem; font: 400 clamp(6rem, 11vw, 10rem)/1 var(--display); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgb(230 232 234 / .09); pointer-events: none; }
.when { font: 600 var(--t-s)/1.4 var(--mono); letter-spacing: .06em; color: var(--fog-2); }   /* "Watch · 2011 - 2019 · Merging Layers" is a sentence */
.idx { color: var(--accent); margin-right: .8ch; }
.line-big { font: 400 var(--d-m)/1 var(--display); text-transform: uppercase; margin: 1.2rem 0 1rem; }
.story { color: var(--body-2); font-size: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; }
.tags span { font: 600 var(--t-xs)/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: .4rem .6rem; border-radius: var(--r-s); background: rgb(226 85 63 / .1); color: var(--accent-soft); }

/* principles */
.why { background: var(--bg); }
.stack { margin-top: 3rem; display: grid; gap: 1.4rem; }
.why-card { position: relative; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-m); padding: clamp(1.8rem, 4vw, 3.2rem); display: grid; grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.5rem 2.5rem; align-items: baseline; transform-origin: 50% 0; box-shadow: 0 -30px 60px -30px rgb(0 0 0 / .8); }
.why-card .n { font: 600 .8rem/1 var(--mono); color: var(--accent); letter-spacing: .1em; }
.why-card h3 { font: 400 clamp(2.4rem, 5vw, 4.4rem)/.95 var(--display); text-transform: uppercase; }
.why-card p { color: var(--body-2); font-size: clamp(1rem, 1.35vw, 1.15rem); }
.motion .why-card { position: sticky; top: calc(14vh + var(--i, 0) * 1.4rem); }

/* toolkit */
.skills { background: var(--bg-2); }
.skills-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; }
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2rem; margin-top: 2.4rem; }
.group h3 { font: 600 1rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: .6rem; }
.group h3::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--gc); box-shadow: 0 0 12px var(--gc); }
.group ul { margin-top: .7rem; }
.group li { color: var(--body-2); font-size: var(--t-m); line-height: 1.7; }
.group-lead { grid-column: 1 / -1; }
.group-lead ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.group-lead li { font: 400 clamp(1.1rem, 1.6vw, 1.45rem)/1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--fog); border: 1px solid rgb(226 85 63 / .45); border-radius: 999px; padding: .5rem .9rem; }
.group[data-group="lead"] { --gc: var(--c-lead); }
.group[data-group="check"] { --gc: var(--c-check); }
.group[data-group="run"] { --gc: var(--c-run); }
.group[data-group="platforms"] { --gc: var(--c-platforms); }
.group[data-group="tools"] { --gc: var(--c-tools); }
/* dim the children, never .group itself: GSAP animates .group's opacity, and a CSS
   transition on the same property froze the reveal at 0 (2026-09-19) */
.group > * { transition: opacity .3s; }
.groups.hovering .group:not(.lit) > * { opacity: .35; }
.group.lit h3 { color: var(--gc); }
.constellation { position: relative; aspect-ratio: 1 / 1; width: 100%; max-height: 80vh; }
#skills-canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
#skills-canvas:active { cursor: grabbing; }
.labels { position: absolute; inset: 0; pointer-events: none; overflow: clip; }
.labels span { position: absolute; left: 0; top: 0; font: 400 var(--t-xs)/1 var(--mono); white-space: nowrap; color: var(--fog); padding: .25rem .45rem; border-radius: var(--r-s); background: rgb(11 13 16 / .55); transition: opacity .2s; }
.labels span.big { font-size: var(--t-sm); font-weight: 600; }
.hint { position: absolute; right: 0; bottom: -.4rem; font: 400 var(--t-xs)/1 var(--mono); color: var(--fog-2); letter-spacing: .06em; }   /* a sentence, not a label */

/* method */
.method { background: var(--bg); }
.term { margin-top: 2.6rem; background: #07090B; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; font: 400 clamp(.85rem, 1.25vw, 1rem)/1.6 var(--mono); box-shadow: 0 40px 80px -40px rgb(0 0 0 / .8); }
.term-bar { display: flex; align-items: center; gap: .45rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); color: var(--fog-2); font-size: .75rem; }
.term-bar i { width: .7rem; height: .7rem; border-radius: 50%; background: var(--line); }
.term-bar i:first-child { background: var(--accent); }
.term-bar span { margin-left: .6rem; }
.step, .prompt { display: grid; grid-template-columns: 3ch 11ch 1fr; gap: 1rem; padding: .9rem 1.4rem; border-bottom: 1px solid #14181D; }
.step .n { color: var(--fog-2); }
.step code { font: inherit; color: var(--accent); }
.step .d { color: var(--fog); }
.prompt { display: block; border: 0; }
.gate { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid #14181D; color: var(--fog-2); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.gate .bar { flex: 1; height: 6px; border-radius: 999px; background: #1A1F26; overflow: hidden; }
.gate .fill { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--c-check), var(--accent)); transform-origin: left; }
.motion .gate .fill { transform: scaleX(0); }
.gate.passed .gate-text { color: var(--c-check); }

/* clients */
.brands { background: var(--bg); overflow: hidden; }
.marquee { margin-top: 3rem; display: grid; gap: .6rem; }
.row { display: flex; gap: 2.5rem; width: max-content; font: 400 clamp(2.6rem, 6.5vw, 6rem)/1 var(--display); text-transform: uppercase; will-change: transform; }
.row li:nth-child(odd) { color: transparent; -webkit-text-stroke: 1px var(--fog-2); }
.row li:nth-child(4n) { color: var(--accent); -webkit-text-stroke: 0; }
.who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 3rem; background: var(--line); border: 1px solid var(--line); }
.who li { background: var(--bg); padding: 1.1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; transition: background .3s; }
.who li:hover { background: var(--bg-3); }
.who b { font-weight: 600; }
.who span { font: 600 var(--t-xs)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c-check); }
.who-more { margin-top: 1.2rem; color: var(--fog-2); font-family: var(--mono); font-size: var(--t-sm); }

/* contact */
.contact { background:
  radial-gradient(50% 60% at 85% 70%, rgb(226 85 63 / .08), transparent 70%), var(--bg-2); padding-bottom: 6rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact .h2 { margin-top: 1rem; }
.phone { margin: 2rem 0 1.4rem; }
.phone a { display: inline-block; font: 400 clamp(2.4rem, 5.6vw, 5rem)/1 var(--display); letter-spacing: .01em; text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 3px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.phone a:hover { background-size: 100% 3px; color: var(--accent); }
.contact-links { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: baseline; }
.form { padding: 1.6rem; display: grid; gap: 1rem; }
.form-h { color: var(--fog-2); font-size: var(--t-ms); }
.form label { display: grid; gap: .4rem; font: 600 var(--t-s)/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fog-2); }
/* A field has to look like a field: lighter than the card it sits on, with a
   border you can see without looking for it (3:1 against both, WCAG 1.4.11).
   It was #0E1115 on #0F1318 with a 1px hairline until 2026-09-20. */
/* min-width: 0 so a field may be narrower than its own content. Without it a
   <select> is as wide as its longest option ("Technical project management",
   282px), which at 320px pushed the page to 351px: the whole site scrolled
   sideways and the MENU button and the contact copy were cut off the screen.
   Measured 2026-09-27; tests/test_site.py holds 320px from here on. */
.form input, .form select, .form textarea { min-width: 0; width: 100%; font: 400 1rem/1.4 var(--body); letter-spacing: 0; text-transform: none; color: var(--fog); background: #191E25; border: 1px solid #6B747E; border-radius: var(--r-s); padding: .75rem .85rem; transition: border-color .2s; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: #7C858F; }
.form input::placeholder, .form textarea::placeholder { color: #8A929B; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); background: #1C222A; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-actions { display: flex; gap: 1.2rem; align-items: baseline; flex-wrap: wrap; }
.err { min-height: 0; font: 400 .8rem/1.4 var(--body); letter-spacing: 0; text-transform: none; color: var(--accent-soft); }
.err:empty { display: none; }
.form [aria-invalid="true"] { border-color: var(--accent); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form-status { font-size: var(--t-ms); color: var(--c-check); min-height: 1.3em; }
.form-status.warn { color: var(--accent-soft); }

.foot { border-top: 1px solid var(--line); overflow: hidden; }
.foot-row a { display: inline-block; padding: .4rem 0; }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.2rem var(--gutter) 1.8rem; color: var(--fog-2); font: 400 .8rem/1.5 var(--mono); }

.grain { position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: .07;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.motion .grain { animation: grain 1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

/* ---------- set by main.js when the story row is pinned and slides sideways ---------- */
.career-pinned .career { height: 100vh; height: 100svh; padding-block: 0; display: flex; align-items: center; }
.career-pinned .career-row { display: flex; align-items: center; gap: clamp(2rem, 4vw, 4rem); width: max-content; padding: 4rem var(--gutter) 0; }
.career-pinned .career-head { width: min(34vw, 30rem); margin: 0; flex: none; }
.career-pinned .track { display: flex; padding: 0; gap: clamp(1.5rem, 2.5vw, 2.5rem); }
.career-pinned .chapter { width: min(36vw, 31rem); flex: none; padding: 1.7rem 1.8rem 1.5rem; }
.career-pinned .line-big { font-size: var(--d-s); margin: 1.1rem 0 .9rem; }
.career-pinned .story { font-size: var(--t-m); }
.career-pinned .rail { display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 7vh; height: 2px; background: var(--line); }
.no-webgl .constellation { display: none; }
.no-webgl .skills-grid { grid-template-columns: 1fr; }

/* ---------- small screens ---------- */
@media (max-width: 1100px) {
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .impact { grid-template-columns: 1fr; }
  .track { grid-template-columns: 1fr; padding-top: 2rem; }
  .skills-grid, .intro-grid, .contact-grid, .board { grid-template-columns: 1fr; }
  .story-frame { position: relative; top: 0; max-width: 28rem; }
  .constellation { max-width: 34rem; margin-inline: auto; }
  .why-card { grid-template-columns: 1fr; gap: .8rem; }
  .who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .menu-btn { display: inline-block; position: relative; z-index: 2; }
  .nav nav { display: none; }
  .menu-open .nav nav { display: flex; position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; align-items: flex-start; gap: .4rem; padding: 5rem var(--gutter) 3rem; background: var(--bg); font: 400 2.6rem/1.1 var(--display); letter-spacing: .01em; }
  .menu-open .nav nav a { opacity: 1; padding: .4rem 0; }
  .menu-open .nav nav .nav-cta { margin-top: 1rem; font: 600 1rem/1 var(--mono); }
  .menu-open, .menu-open body { overflow: hidden; }
  .plane img { object-position: 76% 50%; }
  .title { top: 11vh; }
  .title .kicker { font-size: .75rem; letter-spacing: .06em; margin-bottom: .9rem; max-width: 84vw; }
  .title .kicker::before { width: 1rem; margin-right: .5rem; }
  .title .name { font-size: 24vw; white-space: normal; }
  .title .line { display: block; }
  .title .line + .line { margin-left: 0; }
  .hero-copy { bottom: 13vh; right: var(--gutter); }
  .sub { display: none; }
  .cue { display: none; }
  .cap-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 2.5ch 1fr; }
  .step .d { grid-column: 2; }
  .letterbox { height: 6vh; }
  .motion .why-card { top: calc(10vh + var(--i, 0) * 1rem); }
  .tok.far { display: none; }
  /* One group to a row on a phone. Two columns put "Email and WhatsApp
     marketing" on three lines in a 130px column and the groups stopped
     reading as groups. Sushil, 2026-09-27: "ek row me ek section". */
  .groups { grid-template-columns: 1fr; gap: 1.8rem; }
  .who { grid-template-columns: 1fr; }
  .stat { padding: 1.3rem .9rem 1.2rem; }
  .stat > b { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .stat > span { font-size: .82rem; }
  .impact { padding: 1.5rem 1.1rem; }
  .impact-list li { grid-template-columns: 2rem 1fr; }
  .impact-list span { grid-column: 2; }
}

/* phones: no live blur behind the nav and the form; it re-blurs the page every frame */
@media (pointer: coarse) {
  .nav.solid { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgb(11 13 16 / .94); }
  .card-glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg-3); }
}

/* Pills whose labels are all capitals: centre the capitals, not the font's em box.
   Chrome on Windows sat "CONTACT" 1.2px high in its pill (measured on pixels,
   2026-09-19, work/dbg-buttons.mjs). Trim the line to cap height and baseline,
   and give the trimmed space back as padding, so every pill keeps its size.
   A browser without text-box keeps the old padding. Only where the pixels got
   better: on the phone's Menu button WebKit went the other way, so it is left out. */
@supports (text-box: trim-both cap alphabetic) {
  .nav-cta, .tile .tag, .tags span, .group-lead li { text-box: trim-both cap alphabetic; }
  .nav-cta { padding-block: calc(.55rem + (1em - 1cap) / 2) !important; }
  .tile .tag { padding-top: calc(.4rem + (1em - 1cap) / 2 - .5px); padding-bottom: calc(.4rem + (1em - 1cap) / 2 + .5px); }
  .tags span { padding-top: calc(.4rem + (1em - 1cap) / 2 - .5px); padding-bottom: calc(.4rem + (1em - 1cap) / 2 + .5px); }
  .group-lead li { padding-top: calc(.5rem + (1em - 1cap) / 2 - .5px); padding-bottom: calc(.5rem + (1em - 1cap) / 2 + .5px); }
}
@supports not (text-box: trim-both cap alphabetic) {                /* Firefox: the tile tags sat up to 1.1px low */
  .tile .tag { padding-top: calc(.4rem - .5px); padding-bottom: calc(.4rem + .5px); }
}

/* Printed or saved as a PDF: nothing may still be waiting for a scroll. */
@media print {
  *, *::before, *::after { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
  .hero .stage { height: 60vh; }
  .cursor, .progress, .boot { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .row { flex-wrap: wrap; width: auto; padding-inline: var(--gutter); white-space: normal; }
  .letterbox, .scan { display: none; }
}

/* ---------------------------------------------------------------------------
   Document pages: terms.html and privacy.html. No canvas, no pinning, no
   scroll circus. The same tokens as the site, so they read as the same site
   and not as something bolted on.

   Two bugs from the first cut, both fixed on 2026-09-27 after looking at the
   rendered page rather than the code:
     1. `section:not(.hero)` gives every section 80-144px of padding top and
        bottom. These sections are paragraphs of a document, not screens, so
        they inherited a 250px gap and the page read as broken.
     2. `.doc-body a` sits after `.btn` in this file, so it repainted the
        button's label white on a white pill and the button looked empty. The
        link colour is scoped to prose now.
   --------------------------------------------------------------------------- */
.doc { padding: clamp(6rem, 14vh, 8rem) 0 4rem; }
.doc .kicker { font: 600 var(--t-s)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.doc h1 { font: 400 clamp(2.1rem, 5.4vw, 4.4rem)/0.95 var(--display); text-transform: uppercase; letter-spacing: .005em; max-width: 18ch; margin-top: 1rem; }
.doc .updated { color: var(--fog-2); font: 400 var(--t-ms)/1.5 var(--mono); margin-top: 1.1rem; }
.doc .summary { color: var(--body-2); font-size: var(--t-xl); line-height: 1.55; max-width: var(--prose); margin-top: 1.6rem; }
.doc-head { border-bottom: 1px solid var(--line); padding-bottom: 2.6rem; }

/* A long legal page is read by jumping, so it gets a list to jump with. */
.doc-grid { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); margin-top: 3rem; align-items: start; }
.doc-toc { position: sticky; top: 6rem; }
.doc-toc p { font: 600 var(--t-xs)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fog-2); }
.doc-toc ol { margin-top: 1rem; list-style: none; padding: 0; counter-reset: toc; }
.doc-toc li { counter-increment: toc; border-top: 1px solid var(--line); }
.doc-toc a { display: grid; grid-template-columns: 2.4ch 1fr; gap: .6rem; padding: .6rem 0; color: var(--fog-2); text-decoration: none; font-size: var(--t-m); line-height: 1.4; transition: color .2s; }
.doc-toc a::before { content: counter(toc, decimal-leading-zero); font: 600 var(--t-xs)/1.6 var(--mono); color: var(--accent); }
.doc-toc a:hover, .doc-toc a:focus-visible { color: var(--fog); }

.doc-body { max-width: var(--prose); }
.doc-body section { padding-block: 0; scroll-margin-top: 6rem; }
.doc-body section + section { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.doc-body h2 { font: 600 var(--t-xl)/1.3 var(--body); color: var(--fog); letter-spacing: 0; text-transform: none; max-width: none; }
.doc-body h2 .n { color: var(--accent); font-family: var(--mono); font-size: var(--t-m); margin-right: .7rem; }
.doc-body p, .doc-body li { color: var(--body-2); font-size: var(--t-l); line-height: 1.7; margin-top: .9rem; }
.doc-body ul { margin-top: .4rem; padding-left: 1.1rem; }
.doc-body li { margin-top: .5rem; }
.doc-body li::marker { color: var(--accent); }
/* Prose links only. .doc-back is a <p> too, and the first two attempts at
   this selector both repainted the button's label white on a white pill. */
.doc-body p:not(.doc-back) a, .doc-body li a { color: var(--fog); text-decoration: none; border-bottom: 1px solid var(--accent); }
.doc-body p:not(.doc-back) a:hover, .doc-body li a:hover { color: var(--accent); }
.doc-body code { font: 400 var(--t-m)/1.4 var(--mono); background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-s); padding: .1rem .35rem; }
.doc-body strong { color: var(--fog); font-weight: 600; }
.doc-note { margin-top: 3rem; background: var(--bg-2); border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: var(--r-m); padding: 1.4rem 1.5rem; }
.doc-note p:first-child { margin-top: 0; }
.doc-back { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

@media (max-width: 1100px) {
  .doc-grid { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
  .doc-toc ol { columns: 2; column-gap: 2rem; }
  .doc-body { max-width: none; }
}
@media (max-width: 640px) {
  .doc-toc ol { columns: 1; }
}

/* ---------------------------------------------------------------------------
   The enquiry inbox (inbox.php). Second pass 2026-09-28: stat boxes, chips,
   and real buttons. Only the site's own colours: --accent for what is open,
   --c-check (teal) for what is handled, --c-run (amber) for recent. The two
   chip backgrounds are those colours at 10-12% over --bg-2, written out as
   solid hex so the email (which cannot do rgba) can use the same values:
     #271B1E = --accent at 10% on #12151A
     #1F292F = --c-check at 12% on #12151A
   The Call button carries dark text, not white: white on #E2553F measured
   3.75:1 on this site on 2026-09-26 and fails; ink measures 5.19:1.
   --------------------------------------------------------------------------- */
/* Sign in. One card in the middle of an otherwise empty page, because that is
   all there is to do here. The accent glow behind it is the same two radial
   washes the contact section uses, so this does not read as a different site. */
.signin { min-height: 72vh; display: grid; place-items: center; padding: 2rem 0 4rem;
  background:
    radial-gradient(42% 52% at 18% 24%, rgb(226 85 63 / .10), transparent 70%),
    radial-gradient(46% 56% at 84% 72%, rgb(127 184 200 / .07), transparent 70%); }
.signin-card { width: min(26rem, 100%); background: var(--bg-2); border: 1px solid var(--line);
  border-top: 2px solid var(--accent); border-radius: var(--r-m); padding: 2rem 1.9rem 1.7rem;
  display: grid; gap: 1rem; box-shadow: 0 50px 90px -50px #000; }
.signin-card h1 { font: 400 clamp(2rem, 4.4vw, 2.9rem)/1 var(--display); text-transform: uppercase;
  letter-spacing: .005em; color: var(--fog); margin: .5rem 0 0; max-width: none; }
.signin-sub { color: var(--fog-2); font-size: var(--t-m); line-height: 1.6; margin: 0 0 .4rem; }
.signin-card .err:empty { display: none; }
.signin-card .form-actions { margin-top: .2rem; }
.signin-card .btn { width: 100%; }
.signin-foot { margin-top: .4rem; font-size: var(--t-sm); color: var(--fog-2); }

.inbox-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 2rem; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.inbox-stats div { background: var(--bg-2); padding: 1.1rem 1.2rem 1rem; }
.inbox-stats b { display: block; font: 400 var(--d-m)/1 var(--display); color: var(--fog); }
.inbox-stats span { display: block; margin-top: .55rem; font: 600 var(--t-xs)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fog-2); }
.inbox-stats .s-open b { color: var(--accent); }
.inbox-stats .s-done b { color: var(--c-check); }
.inbox-stats .s-week b { color: var(--c-run); }

.inbox-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.inbox-tabs a { display: inline-flex; align-items: center; gap: .5rem; min-height: 38px; padding: 0 .95rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--fog-2); font: 600 var(--t-s)/1 var(--mono); letter-spacing: .06em; transition: border-color .2s, color .2s, background .2s; }
.inbox-tabs a:hover { color: var(--fog); border-color: var(--fog-2); }
.inbox-tabs a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.inbox-tabs a.on { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.inbox-tabs a span { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem; border-radius: 999px; background: var(--bg-3); color: var(--fog); font-size: var(--t-xs); }
.inbox-tabs a.on span { background: var(--bg); color: var(--accent); }

/* Three to a row on a wide screen, so a morning's enquiries are one glance
   instead of one scroll. align-items: start keeps a short card short rather
   than stretching it to match the tallest in its row. */
.inbox-list { margin-top: 1.6rem; list-style: none; padding: 0; display: grid; gap: 1rem; align-items: start;
  grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1240px) { .inbox-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .inbox-list { grid-template-columns: 1fr; } }
.inbox-item { background: var(--bg-2); border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: var(--r-m); padding: 1.3rem 1.4rem 1.4rem; transition: box-shadow .25s, transform .25s; }
.inbox-item:hover { box-shadow: 0 24px 48px -28px #000; transform: translateY(-1px); }
.inbox-item.done { border-left-color: var(--c-check); }
.inbox-item.done .inbox-head, .inbox-item.done h2, .inbox-item.done .inbox-contact, .inbox-item.done .inbox-msg { opacity: .62; }

.inbox-head { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .8rem; }
.inbox-head time { font: 600 var(--t-xs)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fog-2); }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .7rem; border-radius: 999px; font: 600 var(--t-xs)/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.chip-cat { background: #271B1E; color: var(--accent-soft); }
.chip-open, .chip-done { margin-left: auto; }
/* --accent on this tint measured 4.44:1 on 2026-09-28, just under the 4.5 a
   12px label needs. --accent-soft on the same tint measures 6.82:1. */
.chip-open { background: #271B1E; color: var(--accent-soft); }
.chip-done { background: #1F292F; color: var(--c-check); }
.chip-open::before, .chip-done::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }

.inbox-item h2 { font: 600 var(--t-xl)/1.3 var(--body); color: var(--fog); margin-top: .8rem; text-transform: none; letter-spacing: 0; max-width: none; }
.inbox-contact { margin-top: .3rem; font-size: var(--t-m); color: var(--fog-2); }
.inbox-contact span { color: var(--fog); }
.inbox-msg { margin-top: 1rem; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-s); padding: .9rem 1.05rem; color: var(--body-2); font-size: var(--t-l); line-height: 1.7; white-space: pre-line; }

/* Buttons: 44px tall, the smallest a thumb hits without looking. In a narrow
   column they share the width rather than spilling. */
.inbox-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.2rem; }
.inbox-actions form { margin: 0 0 0 auto; }
@media (min-width: 761px) {
  .inbox-actions .act { flex: 1 1 auto; }
  .inbox-actions form { flex: 1 1 100%; margin-left: 0; }
  .inbox-actions form .act { width: 100%; }
}
.act { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 1px solid transparent; background: none; font: 600 var(--t-m)/1 var(--body); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.act svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.act:hover { transform: translateY(-1px); }
.act:active { transform: translateY(0); }
.act:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.act-call { background: var(--accent); color: var(--bg); box-shadow: 0 10px 24px -12px var(--accent); }
.act-call:hover { background: var(--accent-soft); }
.act-wa { border-color: var(--c-check); color: var(--c-check); }
.act-wa:hover { background: #1F292F; }
.act-mail { border-color: var(--fog-2); color: var(--fog); }
.act-mail:hover { border-color: var(--fog); background: var(--bg-3); }
.act-done { border-color: var(--line); color: var(--fog-2); }
.act-done:hover { border-color: var(--c-check); color: var(--c-check); background: #1F292F; }
.inbox-item.done .act-done { border-color: var(--c-check); color: var(--c-check); }

@media (max-width: 640px) {
  .inbox-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inbox-item { padding: 1.1rem 1rem 1.2rem; }
  .chip-open, .chip-done { margin-left: 0; }
  .inbox-actions form { margin-left: 0; flex: 1 1 100%; }
  .act { flex: 1 1 auto; }
  .inbox-actions form .act { width: 100%; }
}

/* The cookie notice, as a strip across the bottom.
   It was a 28rem card floating at bottom left until 2026-10-01, and it sat on
   top of the page: at 390px it covered six lines of the toolkit, and the
   section read as broken. A fixed overlay always covers something, so this one
   is as short as it can be, and JS adds matching padding to the page while it
   is up, so nothing ends up permanently underneath it. */
/* This one line is the whole reason "Got it" did nothing on 2026-10-01. The
   hidden attribute works by setting display:none in the browser's own
   stylesheet, and any display in an author stylesheet beats it. So .cookie's
   display:flex kept the bar on screen however often hidden was set, on the
   first paint and on every click after. Anything given display here needs this
   beside it. */
.cookie[hidden] { display: none; }
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 1.4rem;
  padding: .85rem var(--gutter); background: color-mix(in srgb, var(--bg-2) 94%, transparent);
  border-top: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cookie p { color: var(--body-2); font-size: var(--t-m); line-height: 1.5; margin: 0; }
.cookie b { color: var(--fog); font-weight: 600; }
.cookie-act { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
/* No height or padding override on the buttons. .btn and .btn-2 already centre
   their labels to within a pixel in four engines, measured by
   tests/button_check.mjs in September; setting min-height and clearing the
   vertical padding pushed the label 2.8px off centre in iPhone WebKit. */
@media (max-width: 640px) {
  /* Kept to two lines and about a tenth of the screen. At 390px the first cut
     of this bar ran to 145px, 17% of the phone, which is a lot to give a note
     nobody asked to read. */
  .cookie { justify-content: space-between; gap: .6rem .8rem; padding: .7rem .9rem; }
  .cookie p { flex: 1 1 100%; font-size: var(--t-xs); line-height: 1.45; }
  .cookie-act { flex: 1 1 auto; gap: .6rem; }
  .btn-s { font-size: var(--t-sm); padding: .5rem .9rem; }
  .btn-2.btn-s { padding: calc(.5rem - 1px) calc(.9rem - 1px); }
}
@media (prefers-reduced-motion: no-preference) {
  .cookie { animation: cookie-up .45s var(--ease) both; }
}
@keyframes cookie-up { from { transform: translateY(100%); } to { transform: none; } }

.form-done { margin-top: 1.4rem; background: #1F292F; border: 1px solid var(--line); border-left: 2px solid var(--c-check); border-radius: var(--r-m); padding: 1.2rem 1.3rem; color: var(--fog); font-size: var(--t-l); line-height: 1.6; }

/* The captcha, on the contact form. */
.cap-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; align-items: center; }
.cap-row img { border-radius: var(--r-s); border: 1px solid var(--line); display: block; }
.cap-new { background: none; border: 0; padding: .3rem 0; color: var(--fog-2); font: 400 var(--t-sm)/1.4 var(--body); text-decoration: none; border-bottom: 1px solid var(--fog-2); cursor: pointer; justify-self: start; }
.cap-new:hover { color: var(--accent); border-color: var(--accent); }

/* ===========================================================================
   NEUMORPHISM, 2026-10-14 (Sushil: "neomorphism use karo with deep effect
   boxes ye sab par hi use karna").

   One block, on purpose. Everything here is a box-shadow and nothing else: no
   colour moves, no border is dropped, no size changes. Delete this block and
   the page is exactly v10.2 again.

   Light comes from the top left and stays there. The page already worked that
   way before this layer - .card-glass carried a 1px white inset on its top
   edge and threw its weight downward - so this is the same light source made
   explicit and deepened, not a second grammar laid over the first.

   What is deliberately NOT done, and why:
     * no border is removed. Textbook neumorphism has none, and that is the
       half of it that fails on a near-black surface (see the measurement by
       the tokens). The borders are what make a field findable.
     * the two flat-by-design grids, .stats and .who, keep flat cells. They are
       1px-gap tables; lighting each cell would read as tiles coming loose.
       The outer frame takes the depth instead.
     * nothing animates that did not animate before.
   ======================================================================== */

/* Where the depth lives, and the whole of it.

   2026-10-14, after looking at it on the page: "wo effect sirf form par rahne
   do and baaki sab me se remove kar do". So it is the forms and nothing else,
   which turns out to be the honest home for it anyway. A field is the one thing
   on a page that genuinely is a hole you put something into, and a button is
   the one thing that genuinely goes down when you press it. Everywhere else the
   depth was decoration; here it says what the control does.

   .card-glass is only ever a form in this site (the contact form and setup),
   so scoping to it needs no new selector. Every rule that was removed had only
   ever been an override, so taking it out hands each element straight back to
   the rule underneath. Nothing was restored by hand and nothing was retyped. */

.signin-card { box-shadow: var(--nm-3); }
/* .card-glass takes its depth in the glass block below, where it is declared
   together with the inner bottom line. Two box-shadow rules do not add up, so
   it is written once. */
.form-done { box-shadow: var(--nm-2); }

/* Fields are holes, not bumps. The border stays on top of the shadow, which is
   why the edge contrast the suite measures does not move. */
.form input, .form select, .form textarea { box-shadow: var(--nm-in); }
.form input:focus, .form select:focus, .form textarea:focus { box-shadow: var(--nm-in-deep); }

/* A button is raised until it is pressed, and then it is a hole. Scoped to the
   form: the same .btn in the navigation and the cookie strip stays flat. */
.form .btn, .form .btn-2 { box-shadow: var(--nm-1); }
.form .btn:active, .form .btn-2:active { box-shadow: var(--nm-in); transform: translateY(1px); }

/* Reduced transparency: with no blur to hide behind, the glass has to be a
   solid card. It takes the depth up and drops the rim light, which without a
   blurred backdrop reads as a stray white line rather than an edge. */
@media (prefers-reduced-transparency: reduce) {
  .card-glass { box-shadow: var(--nm-3); background: var(--bg-3); }
  .card-glass::before { display: none; }
}

/* Asked for more contrast, the honest answer is to stop doing this. Depth off,
   edges crisp: a style whose edges top out near 1.2:1 is not the one to serve
   somebody who has just told the browser they cannot see it. */
@media (prefers-contrast: more) {
  .card-glass, .signin-card, .form-done,
  .form input, .form select, .form textarea,
  .form .btn, .form .btn-2 { box-shadow: none; }
  .form input, .form select, .form textarea { border-color: var(--fog-2); }
  .card-glass::before { opacity: .35; }
}

/* ===========================================================================
   THE GLASS, second pass. 2026-10-14: "kya hum glass effect me aur kuch add
   kar sakte hai?"

   Three things, and each one is something real glass does.

   1. COLOUR. A blur alone greys out whatever is behind it. Real frosted glass
      keeps the colour and loses the detail, which is what saturate() does. The
      page behind this card is the fog photograph and the accent, so there is
      colour there worth keeping.

   2. AN EDGE THAT CATCHES THE LIGHT. This is the one that makes glass read as
      glass rather than as a grey box. A pane is brightest where the light hits
      its rim, and that falls off around the curve: a gradient, not a border.
      Drawn as a 1px ring with two masks cancelling in the middle, so it stays a
      hairline on the rounded corners instead of a fat corner blob.

   3. THICKNESS. One dark line inside the bottom edge, so the pane has a near
      face and a far one.

   None of it touches a text colour, so none of it moves the contrast the suite
   measures. The rim is decoration and the 1px border underneath it is still
   what marks the card. Delete this block and the glass is what it was.
   ======================================================================== */

.card-glass {
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--nm-2), inset 0 -1px 0 rgb(0 0 0 / .45);
}

.card-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(135deg,
    rgb(255 255 255 / .30) 0%,
    rgb(255 255 255 / .10) 26%,
    rgb(255 255 255 / .02) 48%,
    transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

/* The form's own children sit above the ring, which is painted on the card. */
.card-glass > * { position: relative; z-index: 1; }

