/* shramankumar.com · design v2 "The first 90 frames" (see site/DESIGN-v2.md).
   Light "daylight" on bare :root, dark "edit bay" under prefers-color-scheme and [data-theme="dark"].
   One family (Archivo, variable wdth + wght). One signal colour (--key, chroma-key blue).
   Contrast (WCAG, measured with site/contrast.py):
     light: ink/alu 16.9  graphite/alu 5.6  graphite/panel 6.0  key/alu 6.1  white/key 7.1
     dark:  ink/alu 16.6  graphite/alu 6.3  graphite/panel 5.8  key/alu 6.0  alu/key 6.0 */
:root {
  --alu: #E7E8EB;
  --panel: #F4F5F7;
  --ink: #101216;
  --graphite: #555B66;
  --key: #1F3BFF;
  --tally: #E5372B;
  --on-key: #FFFFFF;
  --ink-rgb: 16, 18, 22;
  --key-rgb: 31, 59, 255;
  --rule: rgba(16, 18, 22, .14);
  --rule-2: rgba(16, 18, 22, .26);
  --wash: rgba(31, 59, 255, .08);
  --frame-bg: #D3D5DA;
  --bar-bg: rgba(231, 232, 235, .86);
  --drop: 0 40px 80px -48px rgba(16, 18, 22, .55);
  color-scheme: light;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --max: 1240px;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --bar-h: 60px;
  --sec: clamp(88px, 13vh, 168px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --alu: #0A0C10; --panel: #12151B; --ink: #E7E9ED; --graphite: #8E95A2; --key: #7088FF; --tally: #FF5A4F; --on-key: #0A0C10;
    --ink-rgb: 231, 233, 237; --key-rgb: 112, 136, 255;
    --rule: rgba(231, 233, 237, .12); --rule-2: rgba(231, 233, 237, .24); --wash: rgba(112, 136, 255, .10);
    --frame-bg: #1A1E26; --bar-bg: rgba(10, 12, 16, .84); --drop: 0 40px 90px -40px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --alu: #0A0C10; --panel: #12151B; --ink: #E7E9ED; --graphite: #8E95A2; --key: #7088FF; --tally: #FF5A4F; --on-key: #0A0C10;
  --ink-rgb: 231, 233, 237; --key-rgb: 112, 136, 255;
  --rule: rgba(231, 233, 237, .12); --rule-2: rgba(231, 233, 237, .24); --wash: rgba(112, 136, 255, .10);
  --frame-bg: #1A1E26; --bar-bg: rgba(10, 12, 16, .84); --drop: 0 40px 90px -40px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--bar-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--alu); color: var(--ink); font: 400 17px/1.55 var(--font); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--key); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--key); color: var(--on-key); padding: 10px 14px; }
.skip:focus { left: 8px; }
.link { color: var(--key); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { text-decoration-thickness: 2px; }
.fine { font-size: 14px; color: var(--graphite); max-width: 68ch; }

/* type scale: 14 / 17 / 20 / 28 / 44 / 72+ */
h1, h2, .totals b, .r-price, .st-n { font-stretch: 118%; }
h2 { font-size: clamp(32px, 5.4vw, 60px); line-height: .98; font-weight: 760; letter-spacing: -.022em; text-wrap: balance; max-width: 18ch; }
h3 { font-size: 20px; line-height: 1.2; font-weight: 650; letter-spacing: -.005em; text-wrap: balance; }
.lede { font-size: 20px; line-height: 1.5; color: var(--graphite); max-width: 56ch; text-wrap: pretty; }
.sec { padding-block: var(--sec); }
.sec + .sec { border-top: 1px solid var(--rule); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 6px;
  font-weight: 620; font-size: 16px; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14.5px; }
.btn-key { background: var(--key); color: var(--on-key); }
.btn-key:hover { background: color-mix(in srgb, var(--key) 86%, var(--ink)); }
.btn-ink { background: var(--ink); color: var(--alu); }
.btn-line { border: 1px solid var(--rule-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }

/* ---- bar ---- */
.bar { position: sticky; top: 0; z-index: 40; background: var(--bar-bg); border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding-top: env(safe-area-inset-top, 0px); }
.bar-in { max-width: var(--max); margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); height: var(--bar-h);
  display: flex; align-items: center; gap: 12px; }
.mark { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 760; font-stretch: 112%; font-size: 16px; letter-spacing: -.01em; margin-right: auto; }
.mark svg { width: 13px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.5; }
.mark .mark-hook { fill: var(--key); stroke: none; }
.nav { display: none; gap: 26px; margin-right: 10px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--graphite); }
.nav a:hover { color: var(--ink); }
.theme { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--rule); }
.theme svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.theme .fill { fill: var(--ink); stroke: none; }
.theme g { display: none; }
.theme[data-mode="system"] .i-sys, .theme[data-mode="light"] .i-sun, .theme[data-mode="dark"] .i-moon { display: inline; }
@media (min-width: 980px) { .nav { display: flex; } }
@media (max-width: 380px) { .mark span { display: none; } }

/* ---- hero ---- */
.hero { padding-block: clamp(36px, 7vh, 96px) clamp(64px, 10vh, 120px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.hero h1 { font-weight: 780; font-size: clamp(34px, 10.2vw, 112px); line-height: .92; letter-spacing: -.03em; --w: 112; font-variation-settings: "wdth" var(--w); font-stretch: normal; }
.hero h1 span { display: block; white-space: nowrap; }
.sub { margin-top: 28px; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; color: var(--graphite); max-width: 46ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 520px) { .ctas .btn { flex: 1 1 100%; } }
@media (min-width: 980px) {
  .hero { min-height: calc(100svh - var(--bar-h)); display: grid; align-items: center; }
  .hero-in { grid-template-columns: minmax(0, 1fr) 340px; align-items: center; gap: 64px; }
  .hero h1 { font-size: clamp(56px, 6.1vw, 104px); --w: 118; }
}

/* ---- the viewer: a bare 9:16 frame with crop marks, safe zones and live timecode ---- */
.viewer { width: min(100%, 340px); justify-self: center; }
.viewer-lg { width: min(100%, 380px); }
.vf { position: relative; aspect-ratio: 9 / 16; max-width: 100%; background: var(--frame-bg); box-shadow: var(--drop); }
.vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .12s linear; }
.vid.on { opacity: 1; }
.safe { position: absolute; left: 0; right: 0; border: 0 dashed rgba(255, 255, 255, .5); pointer-events: none; mix-blend-mode: difference; }
.safe-t { top: 14%; border-top-width: 1px; }
.safe-b { bottom: 20%; border-bottom-width: 1px; }
.crop i { position: absolute; width: 14px; height: 14px; border: 0 solid var(--ink); }
.crop i:nth-child(1) { left: -10px; top: -10px; border-left-width: 1px; border-top-width: 1px; }
.crop i:nth-child(2) { right: -10px; top: -10px; border-right-width: 1px; border-top-width: 1px; }
.crop i:nth-child(3) { left: -10px; bottom: -10px; border-left-width: 1px; border-bottom-width: 1px; }
.crop i:nth-child(4) { right: -10px; bottom: -10px; border-right-width: 1px; border-bottom-width: 1px; }
.rec { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px 5px 8px; border-radius: 4px;
  background: rgba(10, 12, 16, .62); color: #fff; font-size: 12px; font-weight: 560; }
.rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--tally); opacity: .35; }
.viewer.playing .rec i { opacity: 1; }
.phone-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(10, 12, 16, .7); display: grid; place-items: center; }
.phone-play svg { width: 26px; height: 26px; fill: #fff; }
.vmeta { display: grid; gap: 10px; margin-top: 18px; }
.tc { font-size: 26px; font-weight: 640; font-stretch: 100%; letter-spacing: .01em; }
.hw { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; font-size: 13px; color: var(--graphite); }
.hw-bar { position: relative; height: 6px; background: var(--rule); overflow: hidden; }
.hw-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--key); }
.viewer.in-body .hw-lbl { color: var(--graphite); }
.viewer:not(.in-body) .hw-lbl { color: var(--key); }
.vcap { font-size: 14px; color: var(--graphite); }

/* ---- hook swapper ---- */
.swap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.swap-copy { display: grid; gap: 28px; align-content: start; }
.swap-copy h2 { max-width: 12ch; }
.opts { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.opts legend { font-size: 14px; font-weight: 620; color: var(--graphite); padding: 0 0 12px; }
.opt { display: grid; gap: 2px; text-align: left; min-height: 64px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--rule); position: relative; transition: background-color .2s; }
.opt b { font-weight: 640; font-size: 17px; }
.opt span { font-size: 14.5px; color: var(--graphite); }
.opt::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; background: transparent; }
.opt:hover { background: var(--wash); }
.opt[aria-pressed="true"] { background: var(--wash); }
.opt[aria-pressed="true"]::before { background: var(--key); }
.opt[aria-pressed="true"] b { color: var(--key); }
.tests { display: grid; gap: 6px; }
.tests-h { font-size: 14px; font-weight: 620; color: var(--graphite); }
.tests-q { font-size: 20px; line-height: 1.4; max-width: 40ch; text-wrap: pretty; }
.swap-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; justify-items: center; }
.nle { width: 100%; max-width: 560px; font-size: 12.5px; color: var(--graphite); }
.nle-ruler { display: flex; position: relative; margin-left: 34px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.nle-ruler span { border-left: 1px solid var(--rule-2); padding-left: 5px; }
.nle-ruler em { position: absolute; right: 0; font-style: normal; }
.nle-track { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.nle-k { width: 24px; flex: none; font-weight: 620; }
.nle-clips { display: flex; gap: 2px; flex: 1; min-width: 0; }
.tl-seg { position: relative; height: 34px; background: var(--rule); overflow: hidden; display: flex; align-items: center; padding: 0 8px; min-width: 0; }
.tl-seg span { position: relative; z-index: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-weight: 560; }
.tl-seg i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--rule-2); }
.tl-hook { background: var(--wash); box-shadow: inset 0 0 0 1px var(--key); }
.tl-hook i { background: rgba(var(--key-rgb), .32); }
.tl-hook span { color: var(--key); }
.tl-cap { height: 22px; flex: 1; display: flex; align-items: center; padding: 0 8px; border: 1px dashed var(--rule-2); color: var(--graphite); }
@media (min-width: 980px) { .swap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; } }

/* ---- how it works ---- */
.pipe-head { display: grid; gap: 22px; }
.totals { font-size: clamp(22px, 2.8vw, 34px); line-height: 1.32; font-weight: 450; max-width: 30ch; text-wrap: pretty; }
.totals b { font-weight: 780; color: var(--key); font-size: 1.18em; letter-spacing: -.02em; }
.pipe { display: grid; gap: 36px; margin-top: 64px; }
.rail { display: none; }
.stages { display: grid; gap: 0; min-width: 0; }
.stage { display: grid; gap: 18px; padding-block: 44px; border-top: 1px solid var(--rule); min-width: 0; }
.stage:first-child { border-top: 0; padding-top: 0; }
.st-n { font-size: 15px; font-weight: 700; color: var(--key); }
@media (min-width: 980px) { .st-n { display: none; } }
.stage h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 720; font-stretch: 110%; letter-spacing: -.015em; max-width: 24ch; }
.stage-p { color: var(--graphite); max-width: 60ch; }
.stage-p b { color: var(--ink); font-weight: 680; }
.stage-viz { min-width: 0; margin-top: 8px; }
.idea { display: grid; gap: 4px; padding-left: 16px; border-left: 2px solid var(--key); max-width: 62ch; }
.idea-h { font-size: 14px; font-weight: 640; color: var(--key); }
@media (min-width: 980px) {
  .pipe { grid-template-columns: 200px minmax(0, 1fr); gap: 64px; }
  .rail { display: block; position: sticky; top: calc(var(--bar-h) + 40px); align-self: start; }
  .rail ol { display: grid; gap: 2px; }
  .rail a { display: flex; align-items: baseline; gap: 14px; padding: 9px 0 9px 18px; text-decoration: none; color: var(--graphite); font-size: 16px; position: relative; }
  .rail a b { font-weight: 700; font-size: 13px; width: 12px; }
  .rail a:hover { color: var(--ink); }
  .rail li.on a { color: var(--ink); font-weight: 640; }
  .rail li.on a b, .rail li.seen a b { color: var(--key); }
  .rail-line { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--rule); }
  .rail-line i { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--key); transition: height .5s var(--ease); }
  .stage { padding-block: 72px; }
}

/* artefacts */
.scan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.ad { background: var(--alu); padding: 16px; display: grid; gap: 12px; align-content: space-between; min-width: 0; }
.ad q { font-size: 15.5px; line-height: 1.4; quotes: "\201C" "\201D"; }
.ad .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--graphite); }
.ad .meta b { color: var(--ink); font-weight: 650; }
.table { border-top: 1px solid var(--ink); font-size: 15px; }
.tr { display: grid; grid-template-columns: minmax(0, 1.6fr) .6fr .6fr minmax(0, 1.4fr); align-items: center; gap: 10px; padding: 0 2px; border-bottom: 1px solid var(--rule); }
.th { height: 44px; font-size: 13px; font-weight: 640; color: var(--graphite); }
.tbody { position: relative; }
.tbody .tr { position: absolute; left: 0; right: 0; top: 0; }
.tr .dom { font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr.out .dom { text-decoration: line-through; text-decoration-color: var(--graphite); color: var(--graphite); }
.tr .why { color: var(--graphite); font-size: 13.5px; }
.tier { display: inline-grid; place-items: center; width: 28px; height: 24px; border-radius: 4px; font-style: normal; font-weight: 700; font-size: 13px; border: 1px solid var(--rule-2); }
.tier.A { background: var(--key); color: var(--on-key); border-color: var(--key); }
.tier.B { color: var(--key); border-color: var(--key); }
.td dl { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.td dl > div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.td dt { font-size: 13px; font-weight: 640; color: var(--graphite); }
.td dd { font-size: 17px; line-height: 1.45; min-height: 1.45em; }
.td .gap dd { color: var(--key); font-weight: 560; }
.td dd.typing::after { content: ""; display: inline-block; width: .5em; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--key); }
@media (min-width: 720px) { .td dl > div { grid-template-columns: 150px minmax(0, 1fr); gap: 20px; } }
.hook-deck { display: grid; gap: 12px; }
.hook-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.hook-card:first-child { border-top: 1px solid var(--ink); }
.hook-card span { font-weight: 700; color: var(--key); font-size: 14px; }
.hook-card p { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.3; font-weight: 540; letter-spacing: -.01em; }
.gen { display: grid; gap: 18px; }
.frames { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.frame { aspect-ratio: 9 / 16; background: var(--frame-bg); position: relative; display: flex; align-items: flex-end; padding: 8px; font-size: 12.5px; color: var(--graphite); }
.frame.f1 { box-shadow: inset 0 0 0 2px var(--key); color: var(--key); font-weight: 640; }
.clip { display: grid; gap: 8px; font-size: 13px; color: var(--graphite); }
.clip-bar { height: 6px; background: var(--rule); position: relative; overflow: hidden; }
.clip-bar i { position: absolute; inset: 0; background: var(--key); transform-origin: left; }
.asm { display: grid; gap: 8px; font-size: 13px; }
.asm-ruler { display: grid; grid-template-columns: 30px 3fr 8fr 8fr; color: var(--graphite); }
.asm-ruler span:first-child { grid-column: 2; }
.asm-ruler span { border-left: 1px solid var(--rule-2); padding-left: 5px; }
.asm-ruler span:last-child { text-align: right; border: 0; }
.asm-track { display: grid; grid-template-columns: 30px 3fr 16fr; gap: 2px; align-items: center; }
.t-k { font-weight: 640; color: var(--graphite); }
.blk { height: 34px; display: flex; align-items: center; padding: 0 8px; white-space: nowrap; overflow: hidden; }
.blk.hk { background: var(--key); color: var(--on-key); font-weight: 620; }
.blk.bd { background: var(--rule); }
.blk.cc { grid-column: 2 / -1; border: 1px dashed var(--rule-2); color: var(--graphite); height: 24px; }
.ops { border-top: 1px solid var(--ink); }
.ops li { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.ops time { font-weight: 700; color: var(--key); grid-row: span 2; }
.ops b { font-weight: 620; }
.ops span { color: var(--graphite); font-size: 15px; }
.human { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-weight: 680; font-size: 19px; }
.human i { width: 9px; height: 9px; border-radius: 50%; background: var(--tally); }

/* ---- services: a rate card ---- */
.services h2 { max-width: 16ch; }
.rates { margin-top: 48px; border-top: 1px solid var(--ink); }
.rate { display: grid; gap: 8px 32px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.rate-h { display: none; }
.r-name { font-size: 24px; font-weight: 740; font-stretch: 112%; letter-spacing: -.01em; display: grid; gap: 2px; }
.r-name small { font-size: 14px; font-weight: 500; font-stretch: 100%; color: var(--graphite); letter-spacing: 0; }
.r-what { color: var(--graphite); max-width: 58ch; }
.r-pace { font-size: 15px; }
.r-price { white-space: nowrap; font-size: 30px; font-weight: 780; letter-spacing: -.02em; color: var(--key); }
.r-price small { font-size: 14px; font-weight: 520; font-stretch: 100%; color: var(--graphite); letter-spacing: 0; }
.services .fine { margin-top: 18px; }
.lab-h { margin-top: 64px; font-size: 16px; font-weight: 640; color: var(--graphite); }
.lab { margin-top: 12px; display: grid; border-top: 1px solid var(--rule); }
.lab li { padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--graphite); }
@media (min-width: 980px) {
  .rate { grid-template-columns: 240px minmax(0, 1fr) 170px 210px; align-items: baseline; padding: 30px 0; }
  .rate-h { display: grid; padding: 12px 0; font-size: 13px; font-weight: 640; color: var(--graphite); }
  .r-price, .rate-h span:last-child { text-align: right; }
  .lab { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
}

/* ---- engineering: the graph hub (js/graph.js) ---- */
.engineer { padding-bottom: 0; }
.eng-head { display: grid; gap: 22px; }
.eng-head h2 { max-width: 15ch; }
.eng-stage { position: relative; height: min(86svh, 860px); min-height: 520px; margin-top: 24px; overflow: hidden; touch-action: pan-y; }
.eng-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.eng-canvas.grab { cursor: grabbing; }
.g-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.g-label { position: absolute; left: 0; top: 0; white-space: nowrap; font: 500 12px/1.2 var(--font); color: var(--ink); opacity: 0; transition: opacity .25s; }
.g-label.k-hub { font-size: 15px; font-weight: 720; font-stretch: 112%; }
.g-label.k-cap { font-size: 12.5px; font-weight: 560; }
.g-label.k-leaf { font-size: 12px; font-weight: 400; color: var(--graphite); }
.g-label.g-studio.k-hub, .g-label.g-studio.k-cap { color: var(--key); }
.g-label.k-operator, .g-label.k-flow { padding: 5px 8px; background: var(--alu); border: 1px solid var(--rule); border-radius: 4px; }
.g-label.k-operator b { font-weight: 720; margin-right: 6px; }
.g-label.k-operator span { color: var(--graphite); }
.g-label.k-flow { color: var(--key); font-size: 13px; }
.g-label.is-active { opacity: 1; }
.g-hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); font-size: 13px; color: var(--graphite); pointer-events: none; white-space: nowrap; transition: opacity .4s; }
.g-hint.is-done { opacity: 0; }
.g-flat { position: absolute; inset: 0; width: 100%; height: 100%; }
.gcard { position: absolute; z-index: 5; left: 12px; right: 12px; bottom: 12px; max-height: 70%; overflow: auto; display: flex; flex-direction: column; gap: 10px;
  padding: 20px 20px 18px; background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; box-shadow: var(--drop); }
.gcard[hidden] { display: none; }
.gcard-k { font-size: 13px; font-weight: 620; color: var(--graphite); }
.gcard-t { font-size: 24px; font-weight: 740; font-stretch: 110%; letter-spacing: -.01em; padding-right: 44px; }
.gcard-b { color: var(--graphite); font-size: 16px; }
.gcard-s { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.gcard-s li { padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.gcard-s[hidden], .gcard-l:empty { display: none; }
.gcard-l { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.gcard-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 6px; display: grid; place-items: center; color: var(--graphite); }
.gcard-x svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.gcard-x:hover { color: var(--ink); background: var(--wash); }
.g-kbd { position: absolute; left: 8px; top: 8px; z-index: 6; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.g-kbd:focus-within { width: min(280px, calc(100% - 16px)); height: auto; max-height: 60%; overflow: auto; clip-path: none; padding: 8px; background: var(--panel); border: 1px solid var(--rule-2); border-radius: 8px; }
.g-kbd button { display: block; width: 100%; text-align: left; min-height: 36px; padding: 0 10px; font-size: 14px; border-radius: 4px; }
.g-kbd button:focus-visible { background: var(--wash); }
@media (min-width: 980px) { .gcard { left: auto; right: 24px; top: 24px; bottom: auto; width: 360px; max-height: calc(100% - 48px); } }
.eng-below { display: grid; gap: 36px; padding-block: 48px var(--sec); }
.eng-lines { display: grid; border-top: 1px solid var(--ink); max-width: 820px; }
.eng-lines > div { display: grid; gap: 2px 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.eng-lines dt { font-weight: 680; }
.eng-lines dd { color: var(--graphite); }
@media (min-width: 720px) { .eng-lines > div { grid-template-columns: 200px minmax(0, 1fr); } }
.eng-links { display: flex; flex-wrap: wrap; gap: 12px; }
.eng-close { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.3; font-weight: 560; max-width: 32ch; letter-spacing: -.01em; }

/* ---- send your brand ---- */
.ask h2 { font-size: clamp(44px, 10vw, 120px); max-width: none; letter-spacing: -.03em; }
.ask .lede { margin-top: 22px; }
.ask-form { display: grid; gap: 14px; margin-top: 40px; max-width: 940px; }
.fld { display: grid; gap: 6px; font-size: 14px; font-weight: 620; color: var(--graphite); }
.fld input { width: 100%; min-height: 56px; padding: 0 16px; font: 400 18px var(--font); color: var(--ink); background: var(--panel);
  border: 1px solid var(--rule-2); border-radius: 6px; }
.fld input::placeholder { color: var(--graphite); opacity: .8; }
.fld input:focus { outline: 2px solid var(--key); outline-offset: 0; border-color: transparent; }
.fld input[aria-invalid="true"] { border-color: var(--tally); }
.ask-form .btn { min-height: 56px; }
.form-msg { margin-top: 12px; font-size: 15px; min-height: 1.5em; }
.form-msg.err { color: var(--tally); }
.ask .fine { margin-top: 4px; }
.addr { color: var(--ink); user-select: all; }
.or { margin-top: 20px; font-size: 17px; }
@media (min-width: 820px) { .ask-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; } }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--rule); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: grid; gap: 14px; }
.foot-name { font-weight: 740; font-stretch: 112%; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
