/* Home only: the hero with the small plane that docks as a gauge, then ONE returns example built live on a pinned
   stage, the hours rows and the three steps. One number T (scroll through the stage track, negative while the hero is
   on screen) drives render(T) in home-stage.js. The CSS default (no html.live) is the designed still: plane trimmed,
   answer built, hours done, steps laid out, every word of copy visible. It is also the no-script and reduced-motion
   page; html.live is only set by script when motion is allowed. */
:root {
  --oink: #A8411A;   /* orange shade: small orange text on white/paper (AA) */
  --olt: #EE9A75;    /* orange tint: small orange text on navy (AA) */
  --mist: #C9D2DC;   /* body text on navy */
  --navy-2: #2B3C55;
  --fd: var(--f-display);
  --fm: var(--f-mono);
  --gl: max(16px, env(safe-area-inset-left)); --gr: max(16px, env(safe-area-inset-right));
}
html { -webkit-text-size-adjust: 100%; }
body.home { margin: 0; overflow-x: hidden; }
.home :focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.home main .eyebrow { color: var(--oink); }
.home .home-nav .nav { padding-block: 6px; }
.home .home-nav .nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; }
.home .home-nav .logo { min-height: 44px; }
.home .home-nav .nav a:focus-visible { outline-color: var(--paper); }
.shp { width: 26px; height: 26px; flex: none; display: block; overflow: visible; }

/* ---------- hero: words left, the small plane right ---------- */
.hh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; padding-top: 64px; padding-bottom: 40px; align-items: center; }
.hh h1 { font-size: clamp(56px, 6.6vw, 96px); line-height: .88; font-weight: 900; }
.hh h1 .tab { color: var(--orange); }
.hh-sub { margin-top: 24px; font-size: clamp(17px, 1.5vw, 19px); color: var(--slate); max-width: 44ch; }
.hh-btn { min-height: 52px; margin-top: 28px; padding: 12px 22px; }
.hh-btn:focus-visible { outline-color: var(--navy); }
.home .hh-btn { font-size: 20px; }   /* white on orange is 4.2:1, so the label stays large text (AA 3:1) at every width */
.home .copy { min-height: 44px; min-width: 64px; padding: 8px 14px; }
.hslot { position: relative; width: 100%; max-width: 440px; justify-self: end; height: clamp(220px, 19vw, 250px); container-type: inline-size; }
.herorule { color: var(--navy); padding-bottom: 8px; }
.herorule b { background: currentColor; }
.cue { display: none; }

/* ---------- the gauge (the plane as instrument). Still: sits in the hero slot. Live: fixed, docks into the stage. */
.gauge { position: absolute; inset: 0; overflow: hidden; border: 1px solid var(--rule); border-radius: 4px; background: linear-gradient(#FFFFFF, #E9EDEF); --dial: 96px; --fn: 44px; --fl: 12px; }
.gplane { position: absolute; left: 0; top: 8px; width: 100%; height: calc(100% - 130px); overflow: visible; display: block; }
.plate { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; background: var(--navy); border-radius: 4px; }
.dial { width: var(--dial); height: var(--dial); display: block; flex: none; }
.ro { display: grid; line-height: 1; gap: 4px; white-space: nowrap; }
.ro-l { font-family: var(--fm); font-size: var(--fl); letter-spacing: .06em; text-transform: uppercase; color: var(--mist); }
.ro-v { font-family: var(--fd); font-weight: 900; font-size: var(--fn); color: var(--paper); font-variant-numeric: tabular-nums; line-height: .9; }
.ro-lw { display: none; }
.ro-s { font-family: var(--fm); font-size: var(--fl); letter-spacing: .06em; text-transform: uppercase; color: var(--olt); }
.dock { display: none; }

/* ---------- the stage: static still (default; also the no-script and reduced-motion design) ---------- */
section.forge { position: relative; padding: 72px 0 24px; }
.fly { display: none; }
.sgrid { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.scene { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px; row-gap: 24px; align-items: start; padding-bottom: 88px; }
.narr { grid-area: 1 / 1; display: grid; gap: 14px; align-content: start; }
.narr h2 { font-size: clamp(38px, 4.6vw, 60px); line-height: .92; max-width: 15ch; }
.flead { font-size: 18px; color: var(--slate); max-width: 46ch; }
.slots { grid-area: 2 / 1; display: grid; gap: 10px; align-content: start; margin: 0; padding: 0; list-style: none; }
.panel { grid-area: 1 / 2 / span 3 / 3; min-width: 0; }
.pfoot { grid-area: 4 / 2; }
.scene .fpromise { grid-area: 2 / 1; }

.slot { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 10px 14px; background: var(--white); border: 1px solid var(--rule); }
.slot h3 { font-size: 19px; line-height: 1.05; letter-spacing: .06em; }
.slot .d { grid-column: 2; font-size: 14px; line-height: 1.45; color: var(--slate); }
.slot .shp { grid-row: 1 / span 2; align-self: start; margin-top: 2px; }

.fqa { display: grid; gap: 12px; align-content: start; }
.ask { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap-reverse; }
.xtag { font-family: var(--fd); font-weight: 800; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.bubble { margin-left: auto; font-family: var(--f); font-weight: 700; font-size: 18px; line-height: 1.3; background: var(--navy); color: var(--paper); padding: 11px 18px 12px; border-radius: 18px 18px 4px 18px; position: relative; max-width: 100%; }
.bubble .qt { display: inline-block; }
.bubble .caret { display: none; }
.card { background: var(--white); border: 1px solid var(--rule); border-left: 5px solid var(--slate); padding: 14px 20px 17px; display: grid; gap: 8px; }
.card.ours { --tab: 16deg; border-left-color: var(--orange); position: relative; }
.card.ours::after { content: ""; position: absolute; right: 18px; top: -3px; width: 26px; height: 6px; background: var(--orange); transform: rotate(var(--tab)); transform-origin: left center; }
.lab { font-family: var(--fd); font-weight: 800; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.card.ours .lab { color: var(--oink); }
.txt { font-size: 17px; line-height: 1.6; }
.gen .txt { color: var(--slate); }
s.miss { text-decoration: none; color: var(--slate); background: linear-gradient(var(--orange), var(--orange)) no-repeat 0 60% / calc(var(--s, 1) * 100%) 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tag { display: inline-block; vertical-align: baseline; font-size: 13px; line-height: 1.4; color: var(--navy); background: var(--paper); border: 1px solid var(--orange); padding: 2px 8px 3px 22px; margin: 2px 2px; position: relative; max-width: 100%; }
.tags { display: grid; gap: 6px; justify-items: start; margin-top: 6px; }
.tag::before { content: ""; position: absolute; left: 7px; top: .72em; width: 10px; height: 3px; background: var(--orange); transform: rotate(16deg); }
.part { --a: 1; padding: 1px 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.part[data-k="def"] { background: rgb(20 35 58 / calc(.08 * var(--a))); box-shadow: inset 0 -2px 0 rgb(20 35 58 / var(--a)); }
.part[data-k="src"] { background: rgb(90 104 120 / calc(.14 * var(--a))); box-shadow: inset 0 -2px 0 rgb(90 104 120 / var(--a)); }
.part[data-k="jud"] { background: rgb(212 82 28 / calc(.13 * var(--a))); box-shadow: inset 0 -2px 0 rgb(212 82 28 / var(--a)); }
.part[data-k="voi"] { background: rgb(212 82 28 / calc(.05 * var(--a))); box-shadow: inset 0 -2px 0 rgb(212 82 28 / calc(.55 * var(--a))); }
.gl { display: inline-block; width: .92em; height: .92em; vertical-align: -.1em; margin-right: .3em; overflow: visible; }
.why { font-size: 15px; color: var(--slate); padding-left: 16px; border-left: 2px solid var(--orange); }
.mnote { font-size: 14px; color: var(--slate); border-top: 1px dashed var(--rule); padding-top: 10px; }

/* hours */
.hours { display: grid; align-content: start; }
.hrow { display: grid; grid-template-columns: minmax(0, 1.7fr) 58px minmax(0, 1.5fr) 66px minmax(0, .8fr); grid-template-areas: "name bef rail aft yr"; column-gap: 14px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--rule); }
.hrow.head { padding: 10px 0; border-bottom: 2px solid var(--navy); font-family: var(--fd); font-weight: 800; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.hrow > :nth-child(1) { grid-area: name; } .hrow > :nth-child(2) { grid-area: bef; } .hrow > :nth-child(3) { grid-area: rail; }
.hrow > :nth-child(4) { grid-area: aft; } .hrow > :nth-child(5) { grid-area: yr; text-align: right; }
.hname { font-weight: 700; font-size: 17px; line-height: 1.3; }
.hname small { display: block; font-weight: 400; font-size: 14px; color: var(--slate); }
.hn { font-family: var(--fm); font-variant-numeric: tabular-nums; font-size: 17px; white-space: nowrap; }
.bef { --s: 1; color: var(--slate); background: linear-gradient(var(--slate), var(--slate)) no-repeat 0 55% / calc(var(--s) * 100%) 2px; justify-self: start; }
.hy { font-family: var(--fd); font-weight: 800; font-size: 30px; line-height: 1; color: var(--orange); white-space: nowrap; }
.rail { position: relative; height: 12px; }
.rail .ghost, .rail .bar { position: absolute; left: 0; top: 0; height: 12px; width: 100%; transform-origin: left center; }
.rail .ghost { width: calc(var(--b) * 100%); border: 1.5px dashed #9AA6B3; background: transparent; }
.rail .bar { background: var(--navy); transform: scaleX(var(--a)); }
.rail .cur { position: absolute; left: 0; top: -5px; width: 5px; height: 22px; background: var(--orange); transform: translateX(calc(var(--a) * var(--rw, 0px))) skewX(-16deg); display: none; }
.fnote { font-size: 14px; color: var(--slate); margin-top: 14px; }
.fnote a { display: inline-block; padding-block: 12px; margin-block: -12px; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* steps: one compact line */
.fsteps { display: grid; align-content: start; }
.sline { position: relative; height: 22px; margin-bottom: 16px; }
.sline::before { content: ""; position: absolute; left: calc(100% / 6); right: calc(100% / 6); top: 9px; height: 4px; background: var(--rule); }
.sline .lf { position: absolute; left: calc(100% / 6); width: calc(100% * 4 / 6); top: 9px; height: 4px; background: var(--orange); transform-origin: left center; transform: scaleX(var(--lf, 1)); }
.sline .stop { position: absolute; top: 2px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--orange); border: 3px solid var(--orange); }
.sline .stop:nth-of-type(1) { left: calc(100% / 6); } .sline .stop:nth-of-type(2) { left: 50%; } .sline .stop:nth-of-type(3) { left: calc(100% * 5 / 6); }
.slist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.fstep { padding: 0 12px; display: grid; gap: 10px; align-content: start; }
.shead { display: grid; gap: 6px; }
.fstep .n { font-family: var(--fd); font-weight: 900; font-size: 56px; line-height: .8; color: var(--orange); }
.fstep h3 { font-size: 30px; line-height: .95; }
.fmeta { font-family: var(--fd); font-weight: 800; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.sbody { font-size: 15px; color: var(--slate); line-height: 1.55; }
.fpromise { display: flex; gap: 10px 30px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-family: var(--fd); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 20px; }
.fpromise li { display: inline-flex; align-items: center; gap: 10px; }
.fpromise li::before { content: ""; width: 14px; height: 5px; background: var(--orange); transform: rotate(16deg); }

/* ---------- more examples: open in the still page, an expandable region in the live one ---------- */
section.more { padding-block: 0 88px; }
.more-ex { border-top: 2px solid var(--navy); border-bottom: 1px solid var(--rule); }
.more-ex summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; min-height: 56px; padding-block: 10px; padding-right: 40px; position: relative; }
.more-ex summary::-webkit-details-marker { display: none; }
.more-ex summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--fm); font-size: 24px; color: var(--oink); }
.more-ex[open] summary::after { content: "–"; }
.mx-q { font-weight: 700; font-size: 18px; }
.more-ex .fqa { max-width: 760px; margin-left: auto; padding-block: 8px 28px; }

@media (max-width: 899px) {
  .home .home-nav .nav { gap: 0 16px; padding-block: 4px; }
  .home .home-nav .nav ul { gap: 0 14px; }
  .hh { grid-template-columns: 1fr; padding-top: 28px; padding-bottom: 28px; gap: 28px; }
  .hh h1 { font-size: clamp(50px, 14.5vw, 84px); }
  .hh-sub { margin-top: 18px; }
  .hh-btn { margin-top: 22px; }
  .home .hh-btn { font-size: 19px; padding: 12px 16px; }
  .hslot { height: 200px; max-width: 520px; justify-self: start; }
  .gauge { --dial: 72px; --fn: 34px; --fl: 12px; }
  .ro-lw { display: inline; }
  #dialLbl { display: none; }
  .gplane { left: 0; top: 2px; width: calc(100% - 4px); height: calc(100% - 100px); }
  .plate { right: 8px; bottom: 8px; padding: 4px 10px 4px 4px; gap: 8px; }
  .scene { grid-template-columns: minmax(0, 1fr); padding-bottom: 64px; }
  .narr, .slots, .panel, .pfoot, .scene .fpromise { grid-area: auto; }
  .narr h2 { font-size: clamp(34px, 10vw, 48px); }
  .flead { font-size: 16px; }
  .txt { font-size: 16px; }
  .card { padding: 12px 15px 14px; }
  .hrow { grid-template-columns: 58px minmax(0, 1fr) 66px; grid-template-areas: "name name yr" "bef rail aft"; row-gap: 8px; column-gap: 10px; padding: 13px 0; }
  .hrow.head { font-size: 13px; padding: 8px 0; }
  .hrow > :nth-child(4) { text-align: right; justify-self: end; }
  .hname { font-size: 16px; }
  .hname small { display: inline; font-size: 13px; margin-left: 6px; }
  .hy { font-size: 26px; }
  .hn { font-size: 15px; }
  .slist { grid-template-columns: 1fr; gap: 26px; }
  .sline { display: none; }
  .fstep { padding: 0; }
  .fpromise { font-size: 18px; }
  section.more { padding-block: 0 64px; }
}

/* ---------- LIVE MODE: only when the script has run and motion is allowed ---------- */
@media (prefers-reduced-motion: no-preference) {
  .live .hslot { container-type: normal; }
  .live .ganchor { position: sticky; height: 0; z-index: 30; pointer-events: none; }
  .live .gauge { position: absolute; inset: auto; left: 0; top: 0; z-index: 30; will-change: transform; pointer-events: none; }
  .live .cue { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--fm); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); padding-bottom: 10px; }
  .live .cue i { width: 18px; height: 5px; background: var(--orange); transform: rotate(16deg); }
  .live section.forge { height: 640vh; padding: 0; }
  .live .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
  .live .sgrid { flex: 1; min-height: 0; width: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto auto auto; column-gap: 56px; row-gap: 18px; align-content: safe center; padding-top: 24px; padding-bottom: 24px; }
  .live .dock { display: block; grid-area: 1 / 2; align-self: start; height: 140px; }
  .live .scene { display: contents; }
  .live .narr { grid-area: 1 / 1; align-self: start; }
  .live .slots { grid-area: 2 / 1; }
  .live .panel { grid-area: 1 / 2 / 4 / 3; padding-top: 160px; }
  .live .pfoot { grid-area: 2 / 1; align-self: start; }
  .live .scene .fpromise { grid-area: 2 / 1; flex-direction: column; align-self: start; }
  .live .hours, .live .fsteps { align-content: start; }
  .live .hrow { padding: 18px 0; }
  .live .hrow.head { padding: 10px 0; }
  .live #forge .bubble .caret { display: block; position: absolute; left: 18px; top: 12px; width: 2px; height: 1.2em; background: var(--orange); }
  .live .w.cur::after { content: ""; display: inline-block; width: .5em; height: 1em; vertical-align: -.15em; margin-left: .15em; background: var(--slate); opacity: var(--blink, 1); }
  .live .rail .cur { display: block; }
  .live .sline .stop { background: var(--white); border-color: var(--rule); }
  .live .sline .stop.on { background: var(--orange); border-color: var(--orange); }
  .live .fly { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 5; }
  .live .tok { position: absolute; left: 0; top: 0; width: 26px; height: 26px; opacity: 0; will-change: transform; }
  .live .tok .tl { position: absolute; left: 34px; top: 50%; margin-top: -12px; font-family: var(--fd); font-weight: 800; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); background: var(--white); border: 1px solid var(--navy); padding: 3px 8px 2px; white-space: nowrap; box-shadow: 0 6px 18px rgb(20 35 58 / .16); }
  .live .tok.flip .tl { left: auto; right: 34px; }
  .live .tok .shp { transform-origin: 13px 13px; }
  .live section.more { padding-top: 48px; }
  .measuring .card, .measuring .tag, .measuring .gl, .measuring .shp { transform: none !important; }

  @media (min-width: 900px) and (max-height: 820px) {
    .live .narr h2 { font-size: clamp(34px, 3.8vw, 50px); }
    .live .flead { font-size: 16px; }
    .live .slot { padding: 7px 12px; }
    .live .slot .d { font-size: 13px; line-height: 1.38; }
    .live #forge .txt { font-size: 16px; line-height: 1.52; }
    .live #forge .card { padding: 11px 18px 13px; }
    .live .sgrid { row-gap: 14px; padding-top: 18px; padding-bottom: 18px; }
    .live .hrow { padding: 13px 0; }
  }
  @media (min-width: 900px) and (max-height: 720px) {
    .live .slots { grid-template-columns: 1fr 1fr; gap: 8px; }
    .live .slot .d { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .live .slot h3 { font-size: 17px; }
  }

  @media (max-width: 899px) {
    .live section.forge { height: 700vh; }
    .live .sgrid { grid-template-columns: minmax(0, 1fr); grid-template-rows: 72px auto auto minmax(0, 1fr) auto; row-gap: 10px; align-content: stretch; padding-left: var(--gl); padding-right: var(--gr); padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: max(10px, env(safe-area-inset-bottom)); }
    .live .dock { grid-area: 1 / 1; height: 72px; }
    .live .narr { grid-area: 2 / 1; gap: 0; }
    .live .narr .eyebrow { display: none; }
    .live .narr h2 { font-size: clamp(24px, 7vw, 30px); line-height: .95; max-width: none; }
    .live .slots { grid-area: 3 / 1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
    .live .slot { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 7px 3px 6px; row-gap: 4px; }
    .live .slot .shp { grid-row: auto; margin: 0; width: 20px; height: 20px; }
    .live .slot h3 { font-size: 12.5px; letter-spacing: .03em; line-height: 1.05; }
    .live .slot .d { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .live .panel { grid-area: 4 / 1; padding-top: 0; }
    .live .pfoot { grid-area: 5 / 1; }
    .live .scene .fpromise { grid-area: 5 / 1; flex-direction: row; }
    .live .narr .flead, .live #forge .why { position: absolute; left: var(--gl); right: var(--gr); top: var(--top, 0px); }
    .live .narr .flead { font-size: 15px; }
    .live #forge .why { font-size: 14px; line-height: 1.45; background: var(--paper); }
    .live #forge .xtag { font-size: 12px; }
    .live #forge .bubble { font-size: 16px; padding: 9px 15px 10px; }
    .live #forge .bubble .caret { left: 15px; top: 10px; }
    .live #forge .fqa { gap: 10px; }
    .live #forge .card { padding: 10px 13px 12px; gap: 5px; }
    .live #forge .lab { font-size: 14px; }
    .live #forge .txt { font-size: 15px; line-height: 1.52; }
    .live #forge .tag { font-size: 12px; padding: 1px 6px 2px 19px; margin: 1px 0; }
    .live #forge .tag::before { left: 6px; width: 9px; }
    .live .hours { height: 100%; align-content: end; }
    .live .fnote { font-size: 13px; margin-top: 0; }
    .live .fsteps { align-content: start; padding-top: 18px; }
    .live .scene .fpromise { grid-area: 5 / 1; align-self: end; }
    .live .slist { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
    .live .sline { display: block; }
    .live .fstep { display: contents; }
    .live .shead { grid-row: 1; padding: 0 6px; align-content: start; gap: 4px; }
    .live .fstep:nth-child(1) .shead { grid-column: 1; } .live .fstep:nth-child(2) .shead { grid-column: 2; } .live .fstep:nth-child(3) .shead { grid-column: 3; }
    .live .sbody { grid-row: 2; grid-column: 1 / -1; margin-top: 18px; font-size: 15px; padding: 14px 16px; background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--orange); }
    .live .fstep .n { font-size: 40px; }
    .live .fstep h3 { font-size: 20px; }
    .live .fmeta { font-size: 12px; letter-spacing: .04em; }
    .live .fpromise { font-size: 15px; gap: 4px 16px; }
    .live .hrow { padding: 12px 0; }
    .live .hrow.head { padding: 6px 0; }
    .live section.more { padding-top: 32px; }
  }
  @media (max-width: 899px) and (max-height: 760px) {
    .live .narr h2 { font-size: 23px; }
    .live #forge .txt { font-size: 13.5px; line-height: 1.45; }
    .live #forge .tag { font-size: 11px; }
    .live .slot { padding: 5px 2px 4px; }
    .live #forge .why { font-size: 12.5px; }
  }
}
