/* JJI Construction demo. Tokens come from the approved concept (spec D-05).
   The engine (scrollcraft.css) is untouched; this file only themes and lays out. */

:root {
  --sc-canvas:     #0f1112;
  --sc-surface:    #171a1c;
  --sc-ink:        #efebe3;
  --sc-ink-soft:   #9ea4a6;
  --sc-accent:     #f2a900;
  --sc-accent-ink: #0f1112;
  --sc-font-display: "Big Shoulders Display", Impact, sans-serif;
  --sc-font-text:    "IBM Plex Sans", system-ui, sans-serif;
  --sc-font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --ink3: #22272a;
  --line: #2f3539;
  --amber2: #ffbf2e;
  --tan: #c9a06a;
  --bar-h: 4.25rem;
  --r: 4px;
  --ctl: #6f777b;
}

html { scroll-padding-top: var(--bar-h); }
body { background: var(--sc-canvas); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--sc-accent); color: var(--sc-accent-ink); padding: 0.6rem 1rem; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ------------------------------------------------------------ type -- */
.display {
  font-family: var(--sc-font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.display--hero { font-size: clamp(3.2rem, 1.6rem + 6.4vw, 7.4rem); font-weight: 900; }
.display--lg   { font-size: clamp(2.5rem, 1.6rem + 3.8vw, 5rem); }
.display--sm   { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem); line-height: 1; letter-spacing: 0.01em; }
.amber { color: var(--sc-accent); }
.sc-label { letter-spacing: 0.1em; }
.sc-label + .display { margin-top: 0.9rem; }
.display + .sc-body { margin-top: 1.4rem; }

/* --------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.6rem;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  font-family: var(--sc-font-display); font-weight: 800; font-size: 1.2rem;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--sc-accent); border-radius: var(--r); cursor: pointer;
  transition: background-color 140ms var(--sc-ease-out), color 140ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 2.6rem; padding: 0 1.1rem; font-size: 1.05rem; }
.btn--full { width: 100%; }
.btn--ghost { background: transparent; color: var(--sc-ink); border-color: color-mix(in oklab, var(--sc-ink) 38%, transparent); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--amber2); border-color: var(--amber2); }
  .btn--ghost:hover { background: color-mix(in oklab, var(--sc-ink) 10%, transparent); border-color: var(--sc-ink); }
}

/* ------------------------------------------------------------- bar -- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome);
  height: var(--bar-h); padding-inline: var(--sc-gutter);
  display: flex; align-items: center; gap: 2rem;
  border-bottom: 1px solid transparent;
  transition: background-color 240ms var(--sc-ease-out), border-color 240ms var(--sc-ease-out);
}
.bar.is-solid { background: color-mix(in oklab, var(--sc-canvas) 94%, transparent); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand__mark {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  background: var(--sc-accent); color: var(--sc-accent-ink); border-radius: var(--r);
  font-family: var(--sc-font-display); font-weight: 900; font-size: 1.15rem; letter-spacing: 0.02em;
}
.brand__text { display: grid; line-height: 1.1; }
.brand__text strong { font-family: var(--sc-font-display); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.03em; }
.brand__text span { font-family: var(--sc-font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sc-ink-soft); }
.bar__nav { margin-left: auto; display: flex; gap: 1.6rem; }
.bar__tel { font-family: var(--sc-font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: 0.03em; text-decoration: none; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .bar__tel:hover { color: var(--sc-accent); } }
.bar__nav a { font-size: 0.92rem; font-weight: 500; text-decoration: none; color: var(--sc-ink); padding-block: 0.5rem; }
@media (hover: hover) and (pointer: fine) { .bar__nav a:hover { color: var(--sc-accent); } }
@media (max-width: 1100px) { .bar__nav { display: none; } .bar__tel { margin-left: auto; } }
@media (max-width: 860px) { .bar__tel { display: none; } }

/* ------------------------------------------------------------ hero -- */
.hero__stage { background: #0b0d0e; }
.hero__scene { position: absolute; inset: 0; transform: translate3d(11%, 0, 0) scale(1.24); transform-origin: 50% 74%; }
.plane { position: absolute; inset: 0; transform-origin: 50% 72%; }
.plane img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 62%; }
/* One camera idea: a slow push in. Far plane barely moves, the house grows,
   the foreground comes up and past the lens. */
.plane--back  { transform: scale(calc(1 + var(--sc-p, 0) * 0.03)); }
.plane--house { transform: translate3d(0, calc(var(--sc-p, 0) * 1.2vh), 0) scale(calc(1 + var(--sc-p, 0) * 0.11)); }
.plane--fore  { transform: translate3d(0, calc(var(--sc-p, 0) * 9vh), 0) scale(calc(1 + var(--sc-p, 0) * 0.3)); transform-origin: 50% 100%; }
.plane--haze {
  background:
    radial-gradient(60% 38% at 62% 64%, color-mix(in oklab, var(--sc-accent) 26%, transparent), transparent 70%),
    linear-gradient(to top, color-mix(in oklab, var(--sc-canvas) 40%, transparent), transparent 55%);
  mix-blend-mode: screen; opacity: calc(0.5 + var(--sc-p, 0) * 0.4);
}
.plane--m { display: none; transform: scale(calc(1.02 + var(--sc-p, 0) * 0.1)); transform-origin: 50% 60%; }
.plane--m img { object-position: 50% 50%; }
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, color-mix(in oklab, var(--sc-canvas) 72%, transparent) 0%, transparent 20%),
    linear-gradient(90deg, color-mix(in oklab, var(--sc-canvas) 96%, transparent) 0%, color-mix(in oklab, var(--sc-canvas) 90%, transparent) 26%, color-mix(in oklab, var(--sc-canvas) 58%, transparent) 44%, transparent 62%),
    linear-gradient(to top, color-mix(in oklab, var(--sc-canvas) 80%, transparent) 0%, transparent 34%);
}
.hero__floor { position: absolute; inset: auto 0 0 0; height: 16rem; pointer-events: none; background: linear-gradient(to top, var(--sc-canvas), transparent); opacity: var(--sc-p, 0); }
.hero__copy {
  position: absolute; z-index: var(--sc-z-copy);
  left: var(--sc-gutter); right: var(--sc-gutter); bottom: clamp(2.5rem, 9vh, 6.5rem);
  max-width: 34rem;
}
.hero__eyebrow { color: var(--sc-ink); }
.display--hero { margin-top: 1rem; max-width: 9ch; }
.hero__sub { margin-top: 1.5rem; max-width: 40ch; font-size: var(--sc-t-lg); line-height: 1.5; color: var(--sc-ink); }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }

@media (max-width: 760px) {
  .plane--back, .plane--house, .plane--fore, .plane--haze { display: none; }
  .plane--m { display: block; }
  .hero__scrim { background: linear-gradient(to top, color-mix(in oklab, var(--sc-canvas) 97%, transparent) 0%, color-mix(in oklab, var(--sc-canvas) 92%, transparent) 42%, color-mix(in oklab, var(--sc-canvas) 78%, transparent) 60%, color-mix(in oklab, var(--sc-canvas) 22%, transparent) 78%, color-mix(in oklab, var(--sc-canvas) 55%, transparent) 100%); }
  .hero__copy { bottom: 5.75rem; }
  .hero__sub { font-size: 1rem; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* ----------------------------------------------------------- sheet -- */
.sheet { position: relative; z-index: 2; background: var(--sc-canvas); border-block: 1px solid var(--line); }
.sheet__row { display: grid; grid-template-columns: repeat(4, 1fr); margin-block: 0; }
.sheet__row > div { padding: 1.3rem 1.25rem; border-left: 1px solid var(--line); }
.sheet__row > div:first-child { border-left: 0; padding-left: 0; }
.sheet dt { font-family: var(--sc-font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sc-ink-soft); }
.sheet dd { margin-top: 0.3rem; font-family: var(--sc-font-display); font-weight: 800; font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.05; }
@media (max-width: 760px) {
  .sheet__row { grid-template-columns: 1fr 1fr; }
  .sheet__row > div { padding: 1rem 0.9rem; }
  .sheet__row > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .sheet__row > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* -------------------------------------------------------- services -- */
.services { background: var(--sc-surface); }
.services__stage { background: var(--sc-surface); display: flex; align-items: center; }
.rail { align-items: stretch; gap: clamp(1.25rem, 2.4vw, 2.5rem); padding-inline: var(--sc-gutter); padding-top: var(--bar-h); }
.rail > * { flex: 0 0 auto; }
.rail__lead { width: min(34rem, 82vw); align-self: center; padding-right: clamp(1rem, 4vw, 4rem); }
.svc { width: min(26rem, 78vw); display: flex; flex-direction: column; }
.svc__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--ink3); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; }
.svc .sc-label { margin-top: 1.25rem; color: var(--sc-accent); }
.svc h3 { margin-top: 0.5rem; }
.svc > p:not(.sc-label) { margin-top: 0.8rem; color: var(--sc-ink-soft); font-size: 0.98rem; line-height: 1.55; }
.tags { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li { font-family: var(--sc-font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.34rem 0.6rem; border: 1px solid var(--line); border-radius: var(--r); color: var(--sc-ink); }
.rail__end { width: min(24rem, 78vw); align-self: center; padding-left: clamp(1rem, 3vw, 3rem); border-left: 1px solid var(--line); }
.rail__end .sc-body { margin-top: 0.9rem; }
.rail__end .btn { margin-top: 1.5rem; }
@media (max-height: 760px) and (min-width: 761px) { .svc__img { aspect-ratio: 16 / 9; } }
@media (max-width: 760px) {
  .svc__img { aspect-ratio: 16 / 10; }
  .svc > p:not(.sc-label) { font-size: 0.92rem; }
}

/* -------------------------------------------------------- standard -- */
.standard { background: var(--sc-canvas); position: relative; z-index: 2; }
.standard__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.standard__head { position: sticky; top: calc(var(--bar-h) + 2rem); }
.promises li { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; align-items: baseline; padding-block: 1.9rem; border-top: 1px solid var(--line); }
.promises li:last-child { border-bottom: 1px solid var(--line); }
.promises__term { font-family: var(--sc-font-display); font-weight: 900; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem); line-height: 0.9; text-transform: uppercase; color: var(--sc-accent); }
.promises h3 { font-family: var(--sc-font-display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.05; }
.promises p { margin-top: 0.5rem; color: var(--sc-ink-soft); max-width: 46ch; }
@media (max-width: 860px) {
  .standard__grid { grid-template-columns: 1fr; }
  .standard__head { position: static; }
  .promises li { grid-template-columns: 1fr; gap: 0.6rem; padding-block: 1.5rem; }
}

/* ----------------------------------------------- before and after -- */
.ba { background: #0b0d0e; position: relative; z-index: 2; }
.ba__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.ba__head .sc-body { font-size: var(--sc-t-lg); line-height: 1.5; color: var(--sc-ink); }
.ba__frame {
  position: relative; overflow: hidden; background: var(--ink3);
  width: min(100% - 2 * var(--sc-gutter), 96rem); margin-inline: auto;
  aspect-ratio: 3 / 2; max-height: 86svh; border-radius: calc(var(--r) * 2);
  box-shadow: inset 0 1px 0 rgb(239 235 227 / 0.06), 0 40px 90px -30px rgb(0 0 0 / 0.75);
  user-select: none; -webkit-user-select: none;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; }
/* Before on the left of the handle, after on the right. */
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; pointer-events: none; }
.ba__line span { position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: var(--sc-accent); box-shadow: 0 0 0 1px rgb(15 17 18 / 0.35), 0 0 28px 2px rgb(15 17 18 / 0.45); }
.ba__line span::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 3.5rem; height: 3.5rem; translate: -50% -50%;
  border-radius: 50%; background: var(--sc-accent);
  box-shadow: 0 0 0 4px rgb(15 17 18 / 0.35), 0 8px 26px rgb(15 17 18 / 0.55);
  transition: transform 140ms var(--sc-ease-out);
}
/* the two arrows on the handle */
.ba__line span::after {
  content: "\2039\00a0\00a0\203A"; position: absolute; top: 50%; left: 50%; translate: -50% -54%;
  font-family: var(--sc-font-text); font-weight: 600; font-size: 1.7rem; line-height: 1; white-space: nowrap;
  color: var(--sc-accent-ink);
}
.ba__frame.is-dragging .ba__line span::before { transform: scale(0.93); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; background: transparent; }
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 3.5rem; height: 100vh; cursor: ew-resize; }
.ba__range::-moz-range-thumb { width: 3.5rem; height: 100vh; border: 0; cursor: ew-resize; }
.ba__frame:has(.ba__range:focus-visible) { outline: 2px solid var(--sc-accent); outline-offset: 4px; }
.ba__tag { position: absolute; top: 1.1rem; padding: 0.4rem 0.7rem; border-radius: var(--r); pointer-events: none; }
.ba__tag--before { left: 1.1rem; background: color-mix(in oklab, var(--sc-canvas) 88%, transparent); color: var(--sc-ink); }
.ba__tag--after  { right: 1.1rem; background: var(--sc-accent); color: var(--sc-accent-ink); }
.ba__note { position: absolute; right: 1.1rem; bottom: 1.1rem; padding: 0.35rem 0.6rem; background: color-mix(in oklab, var(--sc-canvas) 88%, transparent); border-radius: var(--r); color: var(--sc-ink); pointer-events: none; }
.ba__hint { margin-top: 1.1rem; text-align: center; }
@media (max-width: 760px) {
  .ba__head { grid-template-columns: 1fr; align-items: start; }
  .ba__frame { width: 100%; border-radius: 0; aspect-ratio: 4 / 5; }
  .ba__line span::before { width: 3rem; height: 3rem; }
}

/* ------------------------------------------------------------ work -- */
.work { background: var(--sc-surface); position: relative; z-index: 2; }
.work__grid { margin-top: clamp(2.5rem, 5vw, 4.5rem); display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2vw, 2rem) clamp(1rem, 2vw, 2rem); align-items: start; }
.work__item--a { grid-column: 1 / span 7; }
.work__item--b { grid-column: 8 / span 5; margin-top: clamp(2rem, 8vw, 8rem); }
.work__item--c { grid-column: 1 / span 5; }
.work__item--d { grid-column: 6 / span 7; margin-top: clamp(2rem, 6vw, 6rem); }
.work__item figure { overflow: hidden; border-radius: var(--r); background: var(--ink3); }
.work__item--a figure, .work__item--d figure { aspect-ratio: 16 / 11; }
.work__item--b figure, .work__item--c figure { aspect-ratio: 4 / 5; }
.work__item img { width: 100%; height: 100%; object-fit: cover; }
.work__cap { margin-top: 0.9rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.work__cap strong { font-family: var(--sc-font-display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.02em; }
.work__next { margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
@media (max-width: 760px) {
  .work__grid { grid-template-columns: 1fr; }
  .work__item { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .work__item--b figure, .work__item--c figure { aspect-ratio: 4 / 4.4; }
}

/* --------------------------------------------------------- process -- */
.process { background: var(--sc-canvas); position: relative; z-index: 2; }
.process__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.process__head { position: sticky; top: calc(var(--bar-h) + 2rem); }
.steps li { display: grid; grid-template-columns: 3.5rem 1fr auto; gap: 1.25rem; align-items: baseline; padding-block: 1.6rem; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps__n { font-family: var(--sc-font-display); font-weight: 900; font-size: 2.6rem; line-height: 0.9; color: var(--sc-accent); }
.steps h3 { font-family: var(--sc-font-display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.05; }
.steps p { margin-top: 0.45rem; color: var(--sc-ink-soft); max-width: 44ch; }
.steps .sc-label { text-align: right; max-width: 11rem; }
@media (max-width: 860px) {
  .process__grid { grid-template-columns: 1fr; }
  .process__head { position: static; }
  .steps li { grid-template-columns: 2.6rem 1fr; }
  .steps .sc-label { grid-column: 2; text-align: left; max-width: none; }
}

/* ---------------------------------------------------------- friday -- */
.friday { position: relative; z-index: 2; background:
    radial-gradient(40% 60% at 74% 50%, color-mix(in oklab, var(--sc-accent) 9%, transparent), transparent 70%),
    var(--sc-surface); }
.friday__stage {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.friday__copy { max-width: 38rem; justify-self: end; }
.phone {
  position: relative; justify-self: start;
  width: min(23rem, 100%); height: min(38rem, calc(100svh - var(--bar-h) - 4rem));
  background: var(--sc-canvas); border: 6px solid #2b3135; border-radius: 2.25rem;
  box-shadow: inset 0 1px 0 rgb(239 235 227 / 0.08), 0 30px 80px -20px rgb(0 0 0 / 0.7), 0 8px 24px rgb(0 0 0 / 0.4);
  display: flex; flex-direction: column; overflow: hidden;
}
.phone__top { display: flex; align-items: center; gap: 0.75rem; padding: 1.4rem 1.25rem 1rem; border-bottom: 1px solid var(--line); background: var(--sc-surface); }
.phone__avatar { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--sc-accent); color: var(--sc-accent-ink); font-family: var(--sc-font-display); font-weight: 900; font-size: 0.95rem; }
.phone__who { display: grid; line-height: 1.2; }
.phone__who strong { font-weight: 600; font-size: 0.95rem; }
.phone__who span { font-size: 0.75rem; color: var(--sc-ink-soft); }
.thread { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 0.5rem; padding: 1rem 1rem 1.25rem; overflow: hidden; }
.thread__day { align-self: center; font-family: var(--sc-font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sc-ink-soft); margin-bottom: 0.4rem; }
.msg {
  max-width: 86%; padding: 0.7rem 0.9rem; border-radius: 1.1rem 1.1rem 1.1rem 0.3rem;
  background: var(--ink3); color: var(--sc-ink); font-size: 0.93rem; line-height: 1.42;
  opacity: 0; transform: translate3d(0, 10px, 0) scale(0.96); transform-origin: 0 100%;
  transition: opacity 260ms var(--sc-ease-out), transform 260ms var(--sc-ease-out);
}
.msg--you { align-self: flex-end; background: var(--sc-accent); color: var(--sc-accent-ink); border-radius: 1.1rem 1.1rem 0.3rem 1.1rem; transform-origin: 100% 100%; font-weight: 500; }
.msg--photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.3rem; padding: 0.3rem; width: 86%; }
.msg--photos img, .msg--photos span { aspect-ratio: 1; width: 100%; height: auto; object-fit: cover; border-radius: 0.6rem; }
.msg--photos span { display: grid; place-items: center; background: var(--line); font-family: var(--sc-font-mono); font-size: 0.8rem; }
.msg.is-on { opacity: 1; transform: none; }
/* Hidden only once the script has armed the thread, so the conversation is
   readable in full if the script never runs. */
.typing { display: none; }
.is-armed .typing.is-on { display: flex; }
.thread:not(.is-armed) .msg { opacity: 1; transform: none; }
.is-armed .msg:not(.is-on), .is-armed .thread__meta:not(.is-on) { position: absolute; visibility: hidden; }
.typing { gap: 0.28rem; padding: 0.85rem 0.9rem; border-radius: 1.1rem 1.1rem 1.1rem 0.3rem; background: var(--ink3); }
.typing i { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--sc-ink-soft); animation: dot 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.thread__meta { align-self: flex-end; font-size: 0.7rem; color: var(--sc-ink-soft); margin-top: -0.2rem; }
.phone__label { position: absolute; top: 1.55rem; right: 1.1rem; font-size: 0.7rem; color: var(--sc-ink-soft); }
@media (max-width: 860px) {
  .friday__stage { grid-template-columns: 1fr; align-content: start; gap: 1.75rem; }
  .friday__copy { justify-self: start; }
  .friday__copy .display--lg { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .phone { justify-self: center; width: min(21rem, 100%); height: min(30rem, calc(100svh - var(--bar-h) - 7rem)); border-radius: 1.75rem; }
  .phone__top { padding: 0.9rem 1rem 0.7rem; }
  .phone__label { top: 1rem; }
  .msg { font-size: 0.86rem; padding: 0.55rem 0.75rem; }
}
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; } .msg { transition-duration: 1ms; } }

/* ------------------------------------------------------------ area -- */
.area { background: var(--sc-canvas); position: relative; z-index: 2; }
.area__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.area__note { margin-top: 1.25rem; padding-left: 1rem; border-left: 2px solid var(--sc-accent); }
.counties > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; align-items: baseline; padding-block: 1.3rem; border-top: 1px solid var(--line); }
.counties > div:last-child { border-bottom: 1px solid var(--line); }
.counties dt { font-family: var(--sc-font-display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; }
.counties dd { color: var(--sc-ink-soft); }
.counties__other dt { color: var(--sc-accent); }
@media (max-width: 860px) {
  .area__grid { grid-template-columns: 1fr; }
  .counties > div { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* ------------------------------------------------------------- bid -- */
.bid { background: var(--sc-surface); position: relative; z-index: 2; }
.bid__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.checks { margin-top: 2rem; display: grid; gap: 0.8rem; }
.checks li { position: relative; padding-left: 1.9rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 1rem; height: 0.55rem; border-left: 3px solid var(--sc-accent); border-bottom: 3px solid var(--sc-accent); transform: rotate(-45deg); transform-origin: 30% 60%; }
.bid__call { margin-top: 2rem; color: var(--sc-ink-soft); }
.bid__call a { color: var(--sc-ink); font-weight: 600; white-space: nowrap; }
.bid__panel { background: var(--sc-canvas); border: 1px solid var(--line); border-radius: calc(var(--r) * 2); padding: clamp(1.4rem, 3vw, 2.25rem); box-shadow: inset 0 1px 0 rgb(239 235 227 / 0.06), 0 24px 60px -24px rgb(0 0 0 / 0.6); }
.form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: 0.45rem; }
.field label, .chips legend { font-family: var(--sc-font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sc-ink-soft); }
.field input, .field select {
  width: 100%; min-height: 3.1rem; padding: 0 0.9rem;
  background: var(--sc-surface); color: var(--sc-ink);
  border: 1px solid var(--ctl); border-radius: var(--r);
  transition: border-color 140ms var(--sc-ease-out);
}
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 1px; border-color: var(--sc-accent); }
.field [aria-invalid="true"] { border-color: #ff8a6b; }
.field__err { color: #ff9c82; font-size: 0.86rem; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips legend { padding: 0; margin-bottom: 0.55rem; width: 100%; float: left; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.chips span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--ctl); border-radius: var(--r); font-weight: 500; font-size: 0.95rem; transition: background-color 140ms var(--sc-ease-out), border-color 140ms var(--sc-ease-out), color 140ms var(--sc-ease-out); }
.chips input:checked + span { background: var(--sc-accent); border-color: var(--sc-accent); color: var(--sc-accent-ink); }
.chips input:focus-visible + span { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .chips label:hover span { border-color: var(--sc-ink-soft); } }
.form__fine { font-size: 0.8rem; color: var(--sc-ink-soft); line-height: 1.5; }
.form__demo { color: var(--tan); }
.form__done { display: grid; gap: 1rem; justify-items: start; }
.form__done[hidden], .form[hidden] { display: none; }
.form__done:focus { outline: none; }
@media (max-width: 860px) { .bid__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- faq -- */
.faq { background: var(--sc-canvas); position: relative; z-index: 2; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.3rem; font-family: var(--sc-font-display); font-weight: 800; font-size: 1.45rem; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sc-font-mono); font-weight: 400; font-size: 1.4rem; color: var(--sc-accent); transition: transform 180ms var(--sc-ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.4rem; color: var(--sc-ink-soft); max-width: 58ch; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ foot -- */
.foot { position: relative; z-index: 2; background: #0b0d0e; border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.foot__brand p { margin-top: 1rem; color: var(--sc-ink-soft); max-width: 30ch; }
.foot h2 { margin-bottom: 0.9rem; }
.foot ul { display: grid; gap: 0.5rem; }
.foot li { overflow-wrap: anywhere; }
.foot a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot ul a:hover { color: var(--sc-accent); } }
.foot__fine { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: grid; gap: 0.5rem; font-size: 0.8rem; color: var(--sc-ink-soft); }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } .foot { padding-bottom: 6rem; } }

/* ------------------------------------------------------------ dock -- */
.dock { display: none; }
@media (max-width: 860px) {
  .dock {
    position: fixed; inset: auto 0 0 0; z-index: var(--sc-z-chrome);
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 0.5rem;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: color-mix(in oklab, var(--sc-canvas) 94%, transparent); border-top: 1px solid var(--line); backdrop-filter: blur(10px);
  }
  .dock a { display: grid; place-items: center; min-height: 3rem; border-radius: var(--r); font-family: var(--sc-font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; border: 1px solid color-mix(in oklab, var(--sc-ink) 38%, transparent); }
  .dock .dock__bid { background: var(--sc-accent); color: var(--sc-accent-ink); border-color: var(--sc-accent); }
  .bar .btn { display: none; }
}

/* -------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .plane { transform: none !important; }
  .hero__floor { opacity: 0; }
}
@media (max-width: 760px) { .hero__scene { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero__scene { transform: translate3d(11%, 0, 0) scale(1.24) !important; } }

@media (max-width: 860px) { html { scroll-padding-bottom: 5rem; } }
@media (max-width: 760px) and (max-height: 720px) {
  .hero__scrim { background: linear-gradient(to top, color-mix(in oklab, var(--sc-canvas) 97%, transparent) 0%, color-mix(in oklab, var(--sc-canvas) 93%, transparent) 60%, color-mix(in oklab, var(--sc-canvas) 82%, transparent) 80%, color-mix(in oklab, var(--sc-canvas) 60%, transparent) 100%); }
  .hero__copy { bottom: 5rem; }
  .hero__sub { margin-top: 1rem; }
  .hero__actions { margin-top: 1.25rem; }
}
