/* ==========================================================================
   maharshis.tech / home only. Tokens, nav, buttons and footer live in
   assets/site/site.css.
   The homepage is a claim and its receipt: a hero of live type ("I build
   things people actually pay for"), then a thermal printer that prints the
   proof, itemised, from live data. Then the line items themselves.
   ========================================================================== */

/* ---------- intro: boot log + uptime ---------- */
.intro { display: none; }
.has-intro .intro {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: #050506; color: #E9E8E2; overflow: hidden;
  clip-path: inset(0 0 0 0);
}
.boot {
  position: absolute; left: var(--gx); bottom: 34px; right: var(--gx);
  font-family: var(--mono); font-size: clamp(10px, 1vw, 12px); line-height: 1.7; color: #8A8E9B; overflow: hidden;
}
.boot li { white-space: pre; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(4px); }
.boot li.is-on { opacity: 1; transform: none; transition: opacity .15s linear, transform .25s var(--ease); }
.boot b { font-weight: 500; }
.boot b::before { content: '['; color: #8A8E9B; } .boot b::after { content: ']'; color: #8A8E9B; }
.boot .ok { color: #3ED97E; }
.boot .wait { color: #FF7A45; }
.boot em { font-style: normal; color: #E9E8E2; }
.intro-inner { text-align: center; padding: 0 var(--gx); }
.intro-k { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8A8E9B; margin-bottom: 14px; }
.intro-num {
  font-family: var(--mono); font-weight: 500; letter-spacing: -0.04em;
  font-size: clamp(2.6rem, 11vw, 9rem); line-height: 1; color: #FF5B1F;
  font-variant-numeric: tabular-nums;
}
.intro-num::after { content: ' yrs'; font-size: .26em; letter-spacing: 0; color: #8A8E9B; }
.intro-label { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: #A09F97; word-break: break-all; }
.intro-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(233,232,226,.1); }
.intro-bar i { display: block; height: 100%; width: 100%; background: #FF5B1F; transform: scaleX(0); transform-origin: left; }
.has-intro body { overflow: hidden; }

/* small shared bits */
.section-k {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: clamp(16px, 2.4vh, 26px);
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink);
}
.section-k::before { content: ''; width: 22px; height: 1px; background: currentColor; }

/* ---------- hero ----------
   The hero is exactly one viewport (small-viewport units, so mobile browser
   chrome never pushes the name below the fold). Type scales with whichever of
   width or height runs out first. */
.hero {
  height: 100svh; min-height: 600px; display: flex; flex-direction: column;
  padding-top: calc(var(--nav-h) + clamp(16px, 5svh, 64px)); overflow: hidden;
}
.hero-grid {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center;
}
.hero-lede {
  font-weight: 750; font-stretch: 100%; letter-spacing: -0.04em; line-height: .9;
  font-size: clamp(2.2rem, min(5.3vw, 8.4svh), 5.8rem);
}
/* Each line is fitted to the column width by home.js (--hs), so the line
   reads as a poster, not a paragraph. "pay for." is the punchline. */
.hl { display: block; white-space: nowrap; font-size: var(--hs, 1em); overflow: hidden; padding-bottom: .06em; margin-bottom: -.02em; }
.hl-in { display: inline-block; }
.hl-pay { color: var(--accent-ink); font-weight: 900; font-stretch: 125%; letter-spacing: -0.055em; }

/* The things, inside the sentence: a pill of real screenshots that cycles
   (home.js) and links to the work. */
.reel {
  position: relative; display: inline-block; width: 1.6em; height: .74em; margin: 0 .04em;
  vertical-align: .02em; border-radius: 999px; overflow: hidden; background: var(--screen);
  box-shadow: inset 0 0 0 1px var(--line); transition: width .6s var(--ease);
}
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; clip-path: inset(0 0 0 100%); transition: clip-path .8s var(--ease); }
.reel img.is-on { clip-path: inset(0 0 0 0); }
.reel img.is-out { clip-path: inset(0 100% 0 0); }
.reel .reel-center { object-position: 50% 55%; }
.reel .reel-logo { object-fit: cover; object-position: 12% 50%; transform: scale(1.9); transform-origin: 12% 50%; background: #0B0C10; }
@media (hover: hover) { .reel:hover { width: 2.1em; } }
.reel:focus-visible { outline-offset: 4px; }
.is-fitting .reel { transition: none; }

/* Right now: what's being built, what just shipped, availability, the time. */
.now {
  flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(14px, 2.4svh, 28px);
  border-top: 1px solid var(--line);
}
.now li { padding: 10px 14px 0 0; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.now li + li { padding-left: 14px; border-left: 1px solid var(--line); }
.now span { font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.now b { font-size: 14.5px; font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.now-open b::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: .1em; animation: pulse 2.4s var(--ease-io) infinite; }
.hero-sub { margin-top: clamp(12px, 2.6svh, 22px); max-width: 40ch; color: var(--ink-2); font-size: clamp(15px, 1.25vw, 18px); }
.hero-ctas { margin-top: clamp(16px, 3.4svh, 30px); display: flex; flex-wrap: wrap; gap: 12px; }

.age {
  justify-self: end; align-self: end; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  padding: 8px 0; border-radius: 4px; color: var(--ink); max-width: 100%;
}
.age-num {
  display: inline-flex; font-family: var(--mono); font-weight: 500; letter-spacing: -0.05em; line-height: 1;
  font-size: clamp(2.2rem, min(5.6vw, 9svh), 6rem); font-variant-numeric: tabular-nums; color: var(--accent-ink);
  height: 1em; overflow: hidden; max-width: 100%;
}
.age-num .dig { display: inline-block; height: 1em; overflow: hidden; }
.age-num .strip { display: flex; flex-direction: column; transition: transform .5s var(--ease); }
.age-num .strip.snap { transition: none; }
.age-num .strip > span { height: 1em; line-height: 1; }
.age-label { font-size: 15px; font-weight: 500; }
.age-sync { font-family: var(--mono); font-size: 12px; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.age-sync::after { content: '\2197'; transition: transform .4s var(--ease); }
.age:hover .age-sync { color: var(--ink); }
.age:hover .age-sync::after { transform: translate(2px, -2px); }

.name {
  flex: none; margin-top: clamp(16px, 3svh, 40px);
  font-weight: 800; font-stretch: 125%; letter-spacing: -0.04em; line-height: .76;
  font-size: var(--name-size, 16.4vw); white-space: nowrap; user-select: none;
  padding-bottom: .02em; overflow: hidden; max-width: 100%;
}
.name { display: flex; justify-content: space-between; }
.name-row { display: contents; }
.name .ch { display: inline-block; will-change: transform; transition: font-variation-settings .6s var(--ease); font-variation-settings: 'wght' var(--w, 800); }
/* The live name paints over the DOM letters, which stay for layout, fitting
   and screen readers (assets/site/livetype.js). */
.name { position: relative; }
.name.is-live { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.name.is-live .ch { color: transparent; transition: none; }

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .hero { min-height: 520px; padding-top: calc(var(--nav-h) + 2svh); }
  .hero-grid { display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; gap: 2svh; padding-bottom: 2.4svh; }
  .hero-lede { line-height: .92; }
  .hero-sub { font-size: clamp(14px, min(4.2vw, 2.3svh), 17px); margin-top: 1.8svh; max-width: 34ch; }
  .hero-ctas { margin-top: 2.6svh; gap: 10px; }
  .hero-ctas .btn { height: clamp(42px, 6.2svh, 50px); padding: 0 20px; }
  .age { justify-self: start; align-self: flex-start; text-align: left; align-items: flex-start; gap: .8svh; padding: 0; }
  .age-num { font-size: min(11.2vw, 6.6svh); }
  .age-label { font-size: clamp(13px, 2svh, 15px); }
  .age-sync { font-size: 11px; }
  .name { margin-top: 0; display: block; line-height: .78; }
  /* Phones: copy on top, the live name fills everything left over, and the
     age sits under it like a caption. */
  .hero-grid { display: contents; }
  .hero-copy { order: 1; }
  .now { order: 2; }
  .name { order: 3; }
  .name.is-live { flex: 1 1 auto; min-height: 140px; margin: 2.4svh 0 1.6svh; }
  .age { order: 4; padding-bottom: 2.4svh; }
  /* One line on a phone: the rail rotates through its items. */
  .now { display: block; position: relative; height: 32px; margin-top: 1.6svh; }
  .now li, .now li + li { position: absolute; left: 0; right: 0; top: 0; padding: 9px 0 0; border: 0; flex-direction: row; align-items: baseline; gap: 10px; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .now li.is-on { opacity: 1; transform: none; }
  .name-row { display: flex; justify-content: space-between; }
  .name-row + .name-row { margin-top: .02em; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .hero-sub { display: none; }
  .name.is-live { min-height: 112px; }
}

/* ==========================================================================
   THE RECEIPT: proof of purchase, printed live
   The orange is the page; the printer, the paper and its shadow live in one
   transparent WebGL canvas over it (assets/home/receipt.js). The words on the
   left fill in as you read while the paper prints on the right.
   ========================================================================== */
.bill {
  --ink: #0D0E0C; --ink-2: rgba(13,14,12,.72); --line: rgba(13,14,12,.2); --accent-ink: #0D0E0C;
  position: relative; background: #FF5B1F; color: #0D0E0C;
  height: 380vh;
}
.bill ::selection { background: #0D0E0C; color: #FF5B1F; }
.bill :focus-visible { outline-color: #0D0E0C; }
.bill-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.bill-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; opacity: 0; transition: opacity .8s var(--ease); }
.has-gl .bill-gl { opacity: 1; }
.bill-gl.is-grab { cursor: grab; }
.bill-gl.is-held { cursor: grabbing; }
.bill-gl.is-link { cursor: pointer; }

.bill-copy {
  position: absolute; left: var(--gx); top: calc(var(--nav-h) + clamp(28px, 9svh, 110px));
  width: min(52vw, 860px); pointer-events: none;
}
.bill-copy a, .bill-copy button { pointer-events: auto; }
.bill-k { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.bill-k::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.bill-text {
  font-weight: 700; font-stretch: 100%; letter-spacing: -0.04em; line-height: 1;
  font-size: clamp(2rem, min(4.6vw, 7.6svh), 5.4rem); max-width: 17ch;
}
.bill-text .mw { opacity: var(--o, 1); transition: opacity .2s linear; }
.js .bill-text .mw { --o: .2; }
.bill-hint {
  margin-top: clamp(20px, 4svh, 40px); font-family: var(--mono); font-size: 12px; color: var(--ink-2);
  display: none; align-items: center; gap: 10px; transition: opacity .6s var(--ease);
}
.bill-hint::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #0D0E0C; animation: pulse 1.6s var(--ease-io) infinite; }
.has-gl .bill-hint { display: flex; }
.bill-hint-m { display: none; }
@media (hover: none) { .bill-hint-d { display: none; } .bill-hint-m { display: inline; } }
.bill-note {
  position: absolute; left: var(--gx); right: var(--gx); bottom: clamp(28px, 5vh, 56px);
  font-family: var(--mono); font-size: 12px; color: var(--ink-2); max-width: 62ch;
}

/* ---- the paper as HTML: the source of truth ----
   With WebGL it is kept for screen readers and keyboard users (it tracks the
   focus: tab into it and it shows). Without WebGL, or with reduced motion, it
   is the receipt. */
.paper {
  --paper: #F6F3EC; --print: #1B1A18;
  position: absolute; right: calc(var(--gx) + 4vw); top: calc(var(--nav-h) + 24px);
  width: min(380px, 34vw); max-height: calc(100svh - var(--nav-h) - 48px); overflow: auto;
  padding: 28px 24px 34px; background: var(--paper); color: var(--print);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.55; letter-spacing: 0;
  box-shadow: 0 30px 60px -20px rgba(80, 20, 0, .45);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 100% repeat-x;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 100% repeat-x;
  transform: rotate(1.4deg);
}
.has-gl .paper {
  clip-path: inset(50%); opacity: 0; pointer-events: none;
}
.has-gl .paper:focus-within { clip-path: none; opacity: 1; pointer-events: auto; z-index: 3; }
.paper a, .paper button { color: inherit; text-decoration: none; }
.paper a:hover, .paper button:hover { background: var(--print); color: var(--paper); }
.paper-head { text-align: center; padding-bottom: 14px; border-bottom: 1.5px dashed currentColor; }
.paper-brand { font-family: var(--sans, inherit); font-weight: 800; font-stretch: 112%; font-size: 17px; letter-spacing: -0.02em; text-transform: uppercase; }
.paper-rows { padding: 12px 0; border-bottom: 1.5px dashed currentColor; }
.paper-rows div { display: flex; justify-content: space-between; gap: 16px; }
.paper-rows dt { text-transform: uppercase; }
.paper-rows dd { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.paper-who .who { display: inline; text-align: right; font: inherit; }
.paper-who .who b { font-weight: 600; }
.paper-who .who-cta { font-size: inherit; color: inherit; opacity: .65; }
.paper-items { padding: 10px 0; border-bottom: 1.5px dashed currentColor; }
.paper-items a { display: grid; grid-template-columns: 3ch minmax(0, 1fr) auto; gap: 10px; padding: 3px 0; }
.paper-items .i { display: flex; flex-direction: column; font-weight: 600; }
.paper-items small { font-size: 11px; font-weight: 400; opacity: .7; }
.paper-items .s { text-transform: uppercase; font-size: 11px; }
.paper-total { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; font-weight: 700; text-transform: uppercase; border-bottom: 1.5px dashed currentColor; }
.paper-total span:last-child { text-align: right; max-width: 18ch; }
.paper-foot { text-align: center; padding-top: 16px; display: grid; gap: 10px; position: relative; }
.paper-code {
  height: 54px; color: transparent; font-size: 0;
  background: repeating-linear-gradient(90deg, var(--print) 0 2px, transparent 2px 4px, var(--print) 4px 5px, transparent 5px 8px, var(--print) 8px 11px, transparent 11px 12px);
}
.paper-paid {
  position: absolute; right: 6px; top: -28px; transform: rotate(-14deg);
  font-family: var(--sans, inherit); font-weight: 900; font-stretch: 125%; font-size: 34px; letter-spacing: .02em; text-transform: uppercase;
  color: #E2401A; border: 3px solid currentColor; border-radius: 8px; padding: 0 10px; opacity: .85; mix-blend-mode: multiply;
}

/* No WebGL, reduced motion: the section is just the copy and the paper. */
.no-gl .bill, .bill.is-static { height: auto; }
.no-gl .bill-stage, .bill.is-static .bill-stage { position: relative; height: auto; min-height: 100svh; overflow: visible; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: start; padding: calc(var(--nav-h) + 9svh) var(--gx) 140px; }
.no-gl .bill-copy, .no-gl .paper, .bill.is-static .bill-copy, .bill.is-static .paper { position: relative; left: auto; right: auto; top: auto; width: auto; max-height: none; }
@media (prefers-reduced-motion: reduce) {
  .bill { height: auto; }
  .bill-stage { position: relative; height: auto; min-height: 100svh; overflow: visible; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: start; padding: calc(var(--nav-h) + 9svh) var(--gx) 140px; }
  .bill-gl { display: none; }
  .bill-copy, .paper, .has-gl .paper { position: relative; left: auto; right: auto; top: auto; width: auto; max-height: none; clip-path: none; opacity: 1; pointer-events: auto; }
  .js .bill-text .mw { --o: 1; }
}

@media (max-width: 860px) {
  .bill { height: 400vh; }
  .bill-copy { width: auto; right: var(--gx); top: calc(var(--nav-h) + 3svh); }
  .bill-k { margin-bottom: 14px; }
  .bill-text { font-size: clamp(1.45rem, min(6.6vw, 4.4svh), 2.4rem); max-width: 22ch; }
  .has-gl .bill-hint { display: none; }
  .bill-note { bottom: 20px; font-size: 11px; }
  .paper { width: auto; left: var(--gx); right: var(--gx); }
  .no-gl .bill-stage, .bill.is-static .bill-stage { grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + 4svh); }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .bill-stage { grid-template-columns: 1fr; }
}

/* ==========================================================================
   THE WORK: sticky stack
   ========================================================================== */
.work { padding-top: clamp(120px, 20vh, 240px); padding-bottom: clamp(60px, 10vh, 120px); }
.work-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 34ch); align-items: end; gap: 16px 48px; margin-bottom: clamp(36px, 6vh, 72px); }
.work-head .section-k { grid-column: 1 / -1; margin-bottom: 0; }
.work-sub { color: var(--ink-2); font-size: 17px; padding-bottom: .6em; }
@media (max-width: 860px) { .work-head { grid-template-columns: 1fr; } }
.stack { position: relative; }
.card {
  position: sticky; top: calc(var(--nav-h) + var(--i, 0) * 16px);
  min-height: min(calc(100svh - var(--nav-h) - 40px), 860px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px);
  padding: clamp(24px, 3.4vw, 48px); margin-bottom: 20vh;
  background: var(--bg-2); border-top: 1px solid var(--line);
  transform-origin: 50% 0; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--accent);
  transform: scaleX(var(--k, 0)); transform-origin: left; transition: transform 1.4s var(--ease);
}
.card.is-in { --k: 1; }
.card:last-child { margin-bottom: 0; }
.card:nth-child(1) { --i: 0; }
.card:nth-child(2) { --i: 1; background: var(--bg-3); }
.card:nth-child(3) { --i: 2; }
.card-copy { display: flex; flex-direction: column; min-width: 0; position: relative; }
.card-top { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.card-idx { font-family: var(--mono); font-size: 13px; color: var(--accent-ink); padding-right: 14px; border-right: 1px solid var(--line); }
.card-logo { width: 44px; height: 44px; object-fit: contain; }
.card-status { font-family: var(--mono); font-size: 12px; padding: 5px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); display: inline-flex; align-items: center; gap: 8px; }
.card-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #3ED97E; box-shadow: 0 0 10px #3ED97E; }
.card-tl .card-status::before { background: #FFB020; box-shadow: 0 0 10px #FFB020; }
.card-status-building::before { background: currentColor; box-shadow: none; animation: pulse 1.2s var(--ease-io) infinite; }
.card-name {
  margin-top: auto; padding-top: 32px;
  font-weight: 800; font-stretch: 100%; letter-spacing: -0.05em; line-height: .92;
  font-size: clamp(2.4rem, 4.3vw, 5.2rem); transition: font-stretch .8s var(--ease);
}
.card:hover .card-name { font-stretch: 118%; }
.card-tag { margin-top: 18px; font-weight: 600; font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -0.015em; line-height: 1.25; max-width: 26ch; }
.card-body { margin-top: 14px; color: var(--ink-2); max-width: 44ch; }
.card-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.card-media { position: relative; min-width: 0; min-height: 320px; }

.shots { height: 100%; display: flex; flex-direction: column; gap: 14px; }
.shots-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.shots-tabs button {
  font-family: var(--mono); font-size: 12.5px; padding: 7px 14px; border-radius: 999px; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line); transition: color .3s var(--ease), background-color .3s var(--ease);
}
.shots-tabs button:hover { color: var(--ink); }
.shots-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.shots-frame { position: relative; flex: 1; min-height: 260px; background: var(--screen); overflow: hidden; }
.shots-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top;
  opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform 1.2s var(--ease);
}
.shots-frame img.is-on { opacity: 1; transform: none; }
.frame-scan { position: absolute; left: 0; right: 0; top: 0; height: 30%; pointer-events: none; background: linear-gradient(to bottom, transparent, rgba(255,91,31,.08) 80%, rgba(255,91,31,.5) 100%); transform: translateY(-110%); }
.card.is-in .frame-scan { animation: scan 5s var(--ease-io) 1s infinite; }
@keyframes scan { 0% { transform: translateY(-110%); } 45%, 100% { transform: translateY(380%); } }
.shots-cap { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }

.card-points { margin-top: 18px; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.card-points b { color: var(--ink); font-weight: 650; margin-right: 6px; }
.tl-media { display: flex; flex-direction: column; gap: 10px; }
.tl-stage {
  position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--screen); color: var(--screen-ink);
  padding: clamp(16px, 2.4vw, 32px); display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  background-image:
    linear-gradient(rgba(233,232,226,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233,232,226,.045) 1px, transparent 1px);
  background-size: 32px 32px;
}
.tl-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tl-logo { width: 190px; height: 48px; object-fit: cover; object-position: 0 50%; margin-left: -24px; }
.tl-hint { font-family: var(--mono); font-size: 11.5px; color: #A09F97; text-align: right; }
.tl-docwrap { position: relative; align-self: center; width: min(430px, 100%); --lx: 72%; --ly: 58%; --lr: clamp(58px, 7vw, 84px); }
.tl-doc {
  position: relative; background: #F4F3EE; color: #121310; padding: 24px 24px 72px; font-family: var(--mono); font-size: 13px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45); transform: rotate(-1.2deg);
}
.tl-doc-h { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dashed rgba(18,19,16,.3); padding-bottom: 10px; }
.tl-doc-h b { font-family: var(--sans); font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.tl-doc-h span { font-size: 11px; opacity: .6; }
.tl-doc-meta { display: flex; justify-content: space-between; font-size: 11px; opacity: .6; margin: 10px 0 14px; }
.tl-row { display: flex; justify-content: space-between; padding: 6px 0; }
.tl-total { border-top: 1px solid rgba(18,19,16,.8); margin-top: 8px; padding-top: 10px; font-weight: 700; font-size: 14px; }
.tl-stamp {
  position: absolute; left: 22px; bottom: 16px; transform: rotate(-9deg); font-family: var(--sans); font-weight: 900; font-stretch: 125%;
  font-size: 26px; letter-spacing: .06em; text-transform: uppercase; color: #C8341A; border: 3px solid #C8341A; padding: 2px 10px; opacity: .8;
}
.tl-xray {
  position: absolute; inset: 0; background: #14161D; color: #8D93A5; box-shadow: none;
  clip-path: circle(var(--lr) at var(--lx) var(--ly));
}
.tl-xray .tl-doc-h, .tl-xray .tl-total { border-color: rgba(141,147,165,.35); }
.tl-xray .tl-doc-h span, .tl-xray .tl-doc-meta { opacity: .9; }
.tl-xray .hot { color: #FF7A45; text-shadow: 0 0 12px rgba(255,91,31,.8); outline: 1px dashed rgba(255,122,69,.8); outline-offset: 3px; }
.tl-xray .tl-stamp { color: transparent; border-color: #FF7A45; border-style: dashed; opacity: 1; text-shadow: none; outline: 0;
  background: repeating-linear-gradient(45deg, rgba(255,91,31,.35) 0 4px, transparent 4px 8px); }
.tl-lens {
  position: absolute; left: var(--lx); top: var(--ly); width: calc(var(--lr) * 2); height: calc(var(--lr) * 2);
  transform: translate(-50%, -50%); border-radius: 50%; cursor: grab; touch-action: none;
  box-shadow: 0 0 0 2px #FF5B1F, 0 0 0 7px rgba(255,91,31,.18), 0 20px 50px rgba(0,0,0,.35);
}
.tl-lens::after { content: ''; position: absolute; right: -16px; bottom: -16px; width: 26px; height: 5px; border-radius: 3px; background: #FF5B1F; transform: rotate(45deg); transform-origin: left; }
.tl-lens:active { cursor: grabbing; }
.tl-lens:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
.tl-readout { font-family: var(--mono); font-size: 12px; color: #C7CAD3; min-height: 3em; max-width: 52ch; }
.tl-readout b { color: #FF7A45; font-weight: 500; margin-right: 8px; }
.tl-cap { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }

.card-syn { background: var(--accent); color: var(--on-accent); }
.card-syn .card-body { color: rgba(13, 14, 12, .84); }
.card-syn .card-status { box-shadow: inset 0 0 0 1px rgba(13,14,12,.3); }
.card-syn .card-idx { color: var(--on-accent); border-color: rgba(13,14,12,.3); }
.card-syn::before { background: var(--on-accent); }
.syn-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.syn-query {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 2px;
  font-family: var(--mono); font-size: 14px; padding: 10px 16px; border-radius: 999px;
  background: var(--on-accent); color: #FF5B1F; min-width: 200px;
}
.syn-query::before { content: 'search'; color: #A09F97; margin-right: 10px; }
.syn-query i { width: 8px; height: 16px; background: currentColor; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 960px) {
  .card { position: relative; top: 0; grid-template-columns: 1fr; min-height: 0; margin-bottom: 16px; }
  .card-name { margin-top: 12px; }
  .card-media { min-height: 0; aspect-ratio: 4 / 3.4; }
  .shots { aspect-ratio: auto; }
  .shots-frame { aspect-ratio: 1366 / 1088; flex: none; }
  .card-fcfo .card-media { aspect-ratio: auto; }
  .card-tl .card-media { aspect-ratio: auto; }
  .tl-stage { min-height: 520px; }
}

/* ---------- client ---------- */
.client { padding-top: clamp(120px, 20vh, 240px); padding-bottom: clamp(60px, 10vh, 120px); }
.client-head { margin-bottom: clamp(24px, 4vh, 44px); }
.client-name { font-weight: 800; font-stretch: 125%; letter-spacing: -0.05em; line-height: .86; font-size: clamp(3rem, 11vw, 11.5rem); }
.client-scripts { margin-top: 18px; display: flex; gap: 24px; flex-wrap: wrap; font-size: clamp(18px, 2.2vw, 30px); font-weight: 600; color: var(--ink-2); }
.client-scripts span + span::before { content: '/'; margin-right: 24px; color: var(--line); }
.client-media {
  display: block; position: relative; overflow: hidden; max-width: 1280px; margin: 0 auto;
  aspect-ratio: 16 / 10; background: var(--screen);
}
.client-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transform-origin: 50% 0; }
.client-cta {
  position: absolute; right: 20px; bottom: 20px; display: inline-flex; gap: 10px; align-items: center;
  padding: 12px 20px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 650; font-size: 15px;
  transform: translateY(12px); opacity: 0; transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.client-media:hover .client-cta, .client-media:focus-visible .client-cta { opacity: 1; transform: none; }
.client-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; max-width: 1280px; margin: 32px auto 0; }
.client-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.client-steps li { font-size: 15.5px; line-height: 1.4; padding-top: 14px; border-top: 1px solid var(--line); }
.client-steps b { display: block; font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--accent-ink); margin-bottom: 8px; }
@media (max-width: 960px) { .client-foot { grid-template-columns: 1fr; } .client-steps { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   AFTER HOURS: the desk mat
   ========================================================================== */
.afterhours { padding-top: clamp(120px, 20vh, 240px); padding-bottom: clamp(60px, 10vh, 120px); }
.ah-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 34ch); gap: 16px 48px; align-items: end; margin-bottom: clamp(28px, 5vh, 56px); }
.ah-head .section-k { grid-column: 1 / -1; margin-bottom: 0; }
.ah-sub { color: var(--ink-2); font-size: 17px; padding-bottom: .6em; }
.desk {
  position: relative; height: clamp(720px, 92vh, 940px); border-radius: 0;
  background:
    radial-gradient(70% 60% at 30% 30%, rgba(255,255,255,.04), transparent 70%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.018) 0 2px, transparent 2px 7px),
    #17171A;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 40px 120px rgba(0,0,0,.45);
  color: #ECEBE5; overflow: hidden; touch-action: pan-y;
  --line: rgba(236,235,229,.14);
}
.desk::before {
  content: ''; position: absolute; inset: 18px; border: 1px dashed rgba(255,255,255,.07); pointer-events: none;
}
.desk::after {
  content: 'drag anything'; position: absolute; right: 26px; bottom: 22px; font-family: var(--mono); font-size: 11px; color: rgba(236,235,229,.4); letter-spacing: .08em; text-transform: uppercase;
}
.obj {
  position: absolute; left: var(--x); top: var(--y); transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(calc(var(--r) + var(--tilt, 0deg))) scale(var(--s, 1));
  cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; text-align: left;
  box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.35);
  transition: box-shadow .4s var(--ease);
  will-change: transform; color: inherit; font: inherit;
}
.obj.is-held { cursor: grabbing; --s: 1.04; box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 4px 12px rgba(0,0,0,.4); }
.obj:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.obj img { pointer-events: none; }
.obj small { display: block; font-family: var(--mono); font-size: 11px; opacity: .7; margin-top: 8px; line-height: 1.4; }

.obj-photo { width: clamp(220px, 30vw, 380px); background: #F2F0EA; color: #121310; padding: 12px 12px 14px; margin: 0; }
.obj-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.obj-photo figcaption { margin-top: 10px; font-family: var(--mono); font-size: 11.5px; line-height: 1.45; }

.obj-arch { background: #1793D1; color: #fff; padding: 16px 22px 14px; border-radius: 999px 999px 999px 999px / 60% 60% 60% 60%; text-align: center; min-width: 210px; }
.arch-big { display: block; font-weight: 850; font-stretch: 112%; letter-spacing: -0.03em; font-size: clamp(26px, 2.6vw, 36px); line-height: 1; }
.arch-btw { display: inline-block; margin-top: 4px; font-family: var(--mono); font-size: 14px; background: #fff; color: #1793D1; padding: 1px 10px; border-radius: 999px; font-weight: 600; }
.obj-arch small { color: rgba(255,255,255,.85); }

.obj-ssd { width: clamp(220px, 22vw, 290px); background: linear-gradient(160deg, #3B3D42, #26272B); padding: 16px 16px 14px; border-radius: 6px; }
.ssd-top { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.12); }
.ssd-top b { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: #8BD450; }
.ssd-top span { font-family: var(--mono); font-size: 11px; opacity: .7; }
.ssd-bar { height: 22px; margin: 10px 0; background: repeating-linear-gradient(90deg, #ECEBE5 0 2px, transparent 2px 4px, #ECEBE5 4px 5px, transparent 5px 8px); opacity: .8; }
.obj-ssd p { font-size: 13.5px; line-height: 1.4; }
.ssd-warn { display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; background: #E9D44A; color: #121310; }

.obj-bhajan { width: clamp(230px, 24vw, 300px); background: radial-gradient(120% 90% at 50% 0%, #2A2016, #120E0A); padding: 18px; border-radius: 22px; display: grid; gap: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.5), inset 0 0 0 1px rgba(232,182,92,.25); }
.obj-bhajan b { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; color: #F4D58A; }
.obj-bhajan > span:last-child { font-size: 13.5px; line-height: 1.45; color: rgba(244,232,210,.8); }
.halo { position: relative; width: 74px; height: 74px; border-radius: 50%; margin-bottom: 6px; background: radial-gradient(circle, #5a3a14 0 46%, transparent 47%); }
.halo::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(from 0deg, transparent, #F4D58A, transparent 40%, #E8B65C 60%, transparent); filter: blur(2px); animation: spin 6s linear infinite; mask: radial-gradient(circle, transparent 55%, #000 57%); -webkit-mask: radial-gradient(circle, transparent 55%, #000 57%); }
.halo i { position: absolute; inset: 18px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #F4D58A, #B07A2A); box-shadow: 0 0 30px rgba(244,213,138,.6); }
@keyframes spin { to { transform: rotate(360deg); } }

.obj-chat { width: clamp(240px, 22vw, 290px); background: #0E0F12; padding: 16px; border-radius: 22px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08); }
.bub { max-width: 80%; padding: 8px 12px; border-radius: 16px; font-size: 13.5px; line-height: 1.3; }
.bub-l { align-self: flex-start; background: #26272D; border-bottom-left-radius: 4px; }
.bub-r { align-self: flex-end; background: #FF5B1F; color: #0D0E0C; border-bottom-right-radius: 4px; font-weight: 600; }
.bub-typing { display: inline-flex; gap: 4px; padding: 11px 14px; }
.bub-typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(236,235,229,.7); animation: typing 1.2s var(--ease-io) infinite; }
.bub-typing i:nth-child(2) { animation-delay: .15s; } .bub-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

.obj-note { width: 230px; background: #FFE36E; color: #1A1708; padding: 22px 18px 16px; border-radius: 2px; box-shadow: 0 18px 30px rgba(0,0,0,.4); }
.obj-note code { display: block; font-family: var(--mono); font-size: 15px; font-weight: 600; }
.obj-note small { opacity: .7; }
.note-pin { position: absolute; left: 50%; top: -8px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FF8A5C, #C8341A); box-shadow: 0 3px 4px rgba(0,0,0,.4); }

.obj-who { width: 200px; background: #0B0C10; padding: 16px; border-radius: 4px; font-family: var(--mono); display: grid; gap: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.5), inset 0 0 0 1px rgba(62,217,126,.25); }
.obj-who b { color: #3ED97E; font-weight: 600; font-size: 15px; }
.obj-who b::before { content: '$ '; color: #8A8E9B; }
.obj-who span { font-size: 12px; color: #C7CAD3; line-height: 1.45; }
.obj-who i { font-style: normal; font-size: 11px; color: #FF7A45; animation: blink 1.2s steps(1) infinite; }

.obj-verdict { width: 250px; background: #F2F0EA; color: #121310; padding: 14px 16px; border-radius: 8px; display: grid; gap: 8px; }
.obj-verdict b { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.chips { display: flex; gap: 6px; }
.chips i { font-style: normal; font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 999px; }
.chips .ok { background: #1F8F4E; color: #fff; } .chips .rv { background: #E9B12E; color: #121310; } .chips .no { background: #C8341A; color: #fff; }
.obj-lev { width: 220px; background: #2B2EFF; color: #fff; padding: 16px; border-radius: 6px; }
.obj-lev b { font-size: 22px; font-weight: 850; letter-spacing: -0.03em; }

.ah-foot { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.ah-foot p { color: var(--ink-2); max-width: 60ch; }
@media (max-width: 860px) {
  .ah-head { grid-template-columns: 1fr; }
  .desk { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 28px 18px; touch-action: auto; }
  .desk::after { display: none; }
  .obj { position: relative; left: auto; top: auto; width: auto !important; min-width: 0; touch-action: auto; cursor: default; }
  .obj-photo, .obj-bhajan, .obj-chat { grid-column: 1 / -1; }
  .obj-arch { border-radius: 24px; }
}

/* ---------- repos ---------- */
.repos { padding-top: clamp(120px, 20vh, 240px); padding-bottom: clamp(60px, 10vh, 120px); }
.repos-head { margin-bottom: clamp(28px, 5vh, 56px); }
.repos-head .section-h { font-family: var(--mono); font-weight: 600; font-stretch: 100%; letter-spacing: -0.06em; font-size: clamp(2.2rem, 8.4vw, 9rem); }
.repos-sub { margin-top: 18px; color: var(--ink-2); max-width: 46ch; font-size: 18px; }
.repo-list { border-top: 1px solid var(--line); counter-reset: r; }
.repo-list > li { border-bottom: 1px solid var(--line); counter-increment: r; }
.repo {
  position: relative; display: grid; grid-template-columns: 3.4em minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 24px; align-items: center;
  padding: clamp(18px, 2.6vw, 30px) 0; isolation: isolate; transition: padding .55s var(--ease), color .45s var(--ease);
}
.repo::after { content: counter(r, decimal-leading-zero); grid-column: 1; grid-row: 1; font-family: var(--mono); font-size: 12px; color: var(--accent-ink); transition: color .45s var(--ease); }
.repo::before {
  content: ''; position: absolute; inset: 0 calc(var(--gx) * -1); z-index: -1; background: var(--accent);
  transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease);
}
.repo-name { grid-column: 2; font-weight: 750; font-stretch: 110%; letter-spacing: -0.04em; line-height: 1; font-size: clamp(1.7rem, 4.2vw, 4rem); overflow-wrap: anywhere; }
.repo-desc { color: var(--ink-2); font-size: 15.5px; transition: color .45s var(--ease); }
.repo-meta { font-family: var(--mono); font-size: 12px; color: var(--ink-2); text-align: right; white-space: nowrap; transition: color .45s var(--ease); }
.repo-meta b { display: block; font-weight: 500; color: var(--ink); transition: color .45s var(--ease); }
@media (hover: hover) {
  .repo:hover { color: var(--on-accent); padding-left: 16px; padding-right: 16px; }
  .repo:hover::before { transform: scaleY(1); }
  .repo:hover::after, .repo:hover .repo-desc, .repo:hover .repo-meta, .repo:hover .repo-meta b { color: var(--on-accent); }
}
.repo-skel { height: clamp(76px, 9vw, 124px); position: relative; overflow: hidden; }
.repo-skel::after {
  content: ''; position: absolute; left: 0; top: 30%; height: 40%; width: 46%; background: var(--bg-2);
  animation: breathe 1.6s var(--ease-io) infinite;
}
.repo-empty { padding: 28px 0; color: var(--ink-2); font-family: var(--mono); font-size: 13px; }
.repo-note { margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); min-height: 1.5em; }
@media (max-width: 760px) {
  .repo { grid-template-columns: 2.4em 1fr; gap: 8px 12px; }
  .repo-desc, .repo-meta { grid-column: 2; text-align: left; }
  .repo-meta b { display: inline; margin-right: 8px; }
}

/* ---------- services ---------- */
.services { padding-top: clamp(120px, 20vh, 240px); padding-bottom: clamp(60px, 10vh, 120px); }
.services .section-h { font-size: clamp(2.6rem, 7.5vw, 8rem); max-width: 12ch; margin-bottom: clamp(32px, 6vh, 64px); }
.svc-list { border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 24px;
  padding: clamp(18px, 2.4vw, 28px) 0;
}
.svc summary::-webkit-details-marker { display: none; }
.svc-n { font-family: var(--mono); font-size: 12px; color: var(--accent-ink); width: 3em; flex: none; }
.svc-t {
  flex: 1; font-weight: 700; font-stretch: 100%; letter-spacing: -0.035em; line-height: 1.02; font-size: clamp(1.7rem, 4.2vw, 4.2rem);
  transition: font-stretch .6s var(--ease), color .4s var(--ease);
}
@media (hover: hover) { .svc summary:hover .svc-t { font-stretch: 116%; } }
.svc[open] .svc-t { color: var(--accent-ink); }
.svc summary i { position: relative; flex: none; width: 44px; height: 44px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease), background-color .4s var(--ease); }
.svc summary i::before, .svc summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.svc summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease); }
.svc[open] summary i { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.svc[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.svc-body { padding: 0 0 clamp(20px, 2.6vw, 32px) calc(3em + 24px); }
.svc-body p { max-width: 52ch; color: var(--ink-2); font-size: clamp(17px, 1.3vw, 19px); }
@supports (interpolate-size: allow-keywords) {
  .svc { interpolate-size: allow-keywords; }
  .svc::details-content { height: 0; overflow: clip; transition: height .6s var(--ease), content-visibility .6s allow-discrete; }
  .svc[open]::details-content { height: auto; }
}
@media (max-width: 600px) { .svc-n { display: none; } .svc-body { padding-left: 0; } }

/* ---- take a number: the dispenser beside the list ----
   The canvas is taller than the column so a dropped ticket has room to fall
   before it dissolves. */
.svc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 28%); gap: clamp(32px, 5vw, 80px); align-items: start; }
.svc-wrap .svc-list { min-width: 0; }
.take { position: sticky; top: calc(var(--nav-h) + 16px); height: min(640px, calc(100svh - var(--nav-h) - 40px)); }
.take-gl { position: absolute; left: -12%; right: -12%; top: 0; height: calc(100% + 30svh); width: 124%; display: block; touch-action: pan-y; opacity: 0; transition: opacity .8s var(--ease); pointer-events: none; }
.has-take .take-gl { opacity: 1; pointer-events: auto; }
.take-gl.is-grab { cursor: grab; }
.take-gl.is-held { cursor: grabbing; }
.take-ui { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 12px; justify-items: start; z-index: 1; pointer-events: none; }
.take-ui > * { pointer-events: auto; }
.take-k { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.take-note { font-size: 15px; line-height: 1.45; min-height: 2.9em; max-width: 30ch; }
.take-note b { font-family: var(--mono); font-weight: 600; color: var(--accent-ink); }
.take-note a { text-decoration: underline; text-underline-offset: 3px; }
/* the button is the dispenser for keyboards, screen readers and no-WebGL */
.has-take .take-btn { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.has-take .take-btn:focus-visible { position: static; width: auto; height: auto; clip-path: none; }
@media (max-width: 960px) {
  .svc-wrap { grid-template-columns: 1fr; }
  .take { position: relative; top: auto; height: 460px; }
  .take-gl { left: 0; right: 0; width: 100%; height: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .take { height: auto; }
  .take-gl { display: none; }
  .take-ui { position: static; }
}

/* ---------- writing ---------- */
.writing { padding-top: clamp(120px, 20vh, 240px); padding-bottom: clamp(100px, 16vh, 200px); }
.post { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.post-media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-kicker { font-family: var(--mono); font-size: 12px; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .08em; }
.post-title { margin-top: 14px; font-weight: 800; font-stretch: 108%; letter-spacing: -0.045em; line-height: .95; font-size: clamp(2.4rem, 5.4vw, 5.6rem); }
.post-body { margin: 18px 0 26px; color: var(--ink-2); max-width: 40ch; }
.writing-all { margin-top: 36px; }
@media (max-width: 760px) { .post { grid-template-columns: 1fr; } }

/* ---------- reduced motion: everything lands at its end state ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .manifesto-text .mw { --o: 1; }
  .marquee-track { transform: none !important; }
}

/* very narrow phones: keep the nav on one line */
@media (max-width: 360px) { .sound-btn { display: none; } }

/* the sun texture credit in the footer */
.foot-meta a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.foot-meta a:hover { color: var(--accent); }
