/* Wyvern Dev: public site */
@font-face { font-family: 'Zilla Slab'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/zilla-slab-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Zilla Slab'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/zilla-slab-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Libre Franklin'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/libre-franklin-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Libre Franklin'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/libre-franklin-latin-600-normal.woff2') format('woff2'); }

:root {
  /* colour: deep wyvern green, warm paper, one fire accent */
  --ink: #10221b;
  --ink-2: #172e25;
  --ink-3: #24443a;
  --ink-line: #2c4b40;
  --paper: #f3f4ef;
  --paper-2: #e8ebe4;
  --white: #fcfcfa;
  --line: #d4dad2;
  --line-strong: #aab7ad;
  --text: #13231c;
  --muted: #4a5b52;      /* 6.5:1 on paper */
  --fire: #b13f0e;       /* 5.3:1 on paper, white text on it 5.8:1 */
  --fire-dark: #8f3209;
  --flame: #ff8a52;      /* only on the dark green: 7.1:1 */
  --ember: #f5c9a8;
  --on-ink: #eef2ec;
  --on-ink-muted: #b2c3b8; /* 9:1 on ink */
  --ok: #1d6b3f;
  --bad: #a1260c;

  /* type */
  --display: 'Zilla Slab', Rockwell, 'Roboto Slab', Georgia, serif;
  --body: 'Libre Franklin', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.15rem, 1.05rem + .4vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.15rem + .8vw, 1.7rem);
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.9vw, 4.6rem);

  /* space: 4px base */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --section: clamp(72px, 10vw, 128px);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --radius-lg: 12px;

  /* motion: two curves, two speeds, used everywhere */
  --ease: cubic-bezier(.22, 1, .36, 1);      /* settles softly: entrances, reveals, hovers */
  --ease-io: cubic-bezier(.65, 0, .35, 1);   /* symmetric: loops and state changes */
  --ui: 240ms;
  --enter: 820ms;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 var(--step-0)/1.65 var(--body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.06; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.012em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.15; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--fire); text-underline-offset: .2em; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: color var(--ui) var(--ease), text-decoration-color var(--ui) var(--ease); }
a:hover { color: var(--fire-dark); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--fire); outline-offset: 3px; border-radius: 3px; }
.band-dark :focus-visible, .hero :focus-visible, .top :focus-visible, .foot :focus-visible { outline-color: var(--flame); }
::selection { background: var(--ember); color: var(--ink); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: fixed; left: 16px; top: 12px; z-index: 50; background: var(--white); color: var(--ink); padding: 10px 16px; font-weight: 600; border-radius: var(--radius);
  transform: translateY(-160%); transition: transform var(--ui) var(--ease); box-shadow: 0 6px 20px rgb(0 0 0 / .25); }
.skip:focus { transform: none; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border-radius: var(--radius);
  border: 1px solid transparent; font: 600 1rem/1.2 var(--body); letter-spacing: .005em; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--ui) var(--ease), color var(--ui) var(--ease), border-color var(--ui) var(--ease), box-shadow var(--ui) var(--ease), transform var(--ui) var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: 90ms; }
.btn-arrow { display: inline-block; transition: transform var(--ui) var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-fire { background: var(--fire); color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / .18) inset, 0 1px 2px rgb(16 34 27 / .2); }
.btn-fire:hover { background: var(--fire-dark); color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / .14) inset, 0 8px 20px -8px rgb(143 50 9 / .6); }
.hero .btn-fire, .band-dark .btn-fire { box-shadow: 0 1px 0 rgb(255 255 255 / .18) inset; }
.btn-line { border-color: var(--line-strong); color: inherit; background: transparent; }
.btn-line:hover { border-color: currentColor; color: inherit; }
.hero .btn-line { color: var(--on-ink); border-color: rgb(238 242 236 / .35); }
.hero .btn-line:hover { color: var(--on-ink); border-color: var(--on-ink); background: rgb(238 242 236 / .06); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- header: sticky, tightens once the page scrolls ---------- */
.top { position: sticky; top: 0; z-index: 20; height: var(--header-h); color: var(--on-ink); }
.top::before { content: ''; position: absolute; inset: 0; background: var(--ink); transform-origin: top; box-shadow: 0 1px 0 rgb(255 255 255 / 0);
  transition: transform 360ms var(--ease), box-shadow 360ms var(--ease), opacity 360ms var(--ease); }
@supports (backdrop-filter: blur(1px)) {
  .top::before { background: rgb(16 34 27 / .9); backdrop-filter: blur(12px) saturate(1.3); }
}
.top.is-scrolled::before { transform: scaleY(.84); box-shadow: 0 1px 0 rgb(255 255 255 / .08), 0 10px 30px -12px rgb(0 0 0 / .45); }
.top-inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: transform 360ms var(--ease); }
.top.is-scrolled .top-inner { transform: translateY(-6px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-ink); text-decoration: none; font: 700 1.4rem/1 var(--display); letter-spacing: .005em; }
.brand:hover { color: var(--on-ink); }
.brand b { color: var(--flame); font-weight: 700; }
.brand-mark { width: 36px; height: 36px; fill: var(--flame); flex: none; overflow: visible; transition: transform 360ms var(--ease); }
.top.is-scrolled .brand-mark { transform: scale(.88); }
.brand-mark path { transform-box: view-box; }
.brand-mark .wing-l { transform-origin: 30px 27px; }
.brand-mark .wing-r { transform-origin: 34px 27px; }
.brand:hover .wing-l { animation: flap-l 900ms var(--ease-io); }
.brand:hover .wing-r { animation: flap-r 900ms var(--ease-io); }
@keyframes flap-l { 40% { transform: rotate(-9deg); } 70% { transform: rotate(3deg); } }
@keyframes flap-r { 40% { transform: rotate(9deg); } 70% { transform: rotate(-3deg); } }
/* the homepage mark draws itself, then fills */
.brand-mark.draw path { stroke: var(--flame); stroke-width: 1.4; stroke-linejoin: round; stroke-dasharray: 1; animation: mark-draw 1300ms var(--ease-io) both; }
.brand-mark.draw path:nth-child(2) { animation-delay: 80ms; }
.brand-mark.draw path:nth-child(3) { animation-delay: 160ms; }
@keyframes mark-draw { from { stroke-dashoffset: 1; fill-opacity: 0; } 65% { stroke-dashoffset: 0; fill-opacity: 0; } to { stroke-dashoffset: 0; fill-opacity: 1; } }

.nav { display: flex; gap: 4px 28px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a:not(.nav-cta) { position: relative; color: var(--on-ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 0; }
.nav a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--flame); transform: scaleX(0); transform-origin: right; transition: transform var(--ui) var(--ease); }
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav .nav-cta { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); background: var(--flame); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 16px; border-radius: var(--radius);
  transition: background-color var(--ui) var(--ease), transform var(--ui) var(--ease); }
.nav .nav-cta:hover { background: #ffa173; color: var(--ink); transform: translateY(-1px); }
.nav .nav-cta:active { transform: scale(.97); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: var(--on-ink);
  margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(64px, 8vw, 112px); }
.hero::before { /* wyvern-scale texture, drifting very slowly */
  content: ''; position: absolute; left: 0; right: 0; top: -64px; height: calc(100% + 128px); z-index: -2; opacity: .07; pointer-events: none;
  background: url('/img/scales.svg') 0 0 / 40px 20px repeat;
  -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 75%); mask-image: linear-gradient(100deg, transparent 20%, #000 75%);
  animation: drift 40s linear infinite; }
@keyframes drift { to { transform: translate3d(0, 40px, 0); } }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgb(255 255 255 / .08); }
.hero-canvas { position: absolute; z-index: -1; pointer-events: none; right: -6%; top: 8%; width: min(62vw, 760px); height: auto; aspect-ratio: 1; opacity: 0; transition: opacity 1600ms var(--ease); }
.hero-canvas.is-on { opacity: .9; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: var(--step-4); line-height: 1.02; letter-spacing: -.02em; margin-bottom: 24px; max-width: 13.5ch; }
.hero-intro p { font-size: var(--step-1); line-height: 1.6; color: var(--on-ink-muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.area { font-weight: 600; font-size: .95rem; color: var(--ember); margin: 0; display: flex; align-items: center; gap: 10px; }
.area::before { content: ''; flex: none; width: 18px; height: 1px; background: currentColor; }

/* the choreographed entrance (CSS only, so it plays without the script; the base state is visible) */
.enter { animation: rise var(--enter) var(--ease) both; }
.e1 { animation-delay: 120ms; } .e2 { animation-delay: 220ms; } .e3 { animation-delay: 320ms; } .e4 { animation-delay: 420ms; }
.e5 { animation: rise-mock 1100ms var(--ease) 260ms both; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } }
@keyframes rise-mock { from { opacity: 0; transform: translate3d(0, 36px, 0) scale(.97); } }

/* ---------- hero product mock: a staff screen for pickup orders and bookings ---------- */
.hero-visual { margin: 0; position: relative; }
.hero-visual figcaption { margin-top: 14px; font-size: var(--step--1); color: var(--on-ink-muted); text-align: right; }
.mock { --row: 62px; position: relative; background: var(--white); color: var(--text); border-radius: var(--radius-lg); overflow: hidden; font-size: .82rem; line-height: 1.3; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 2px 4px rgb(0 0 0 / .2), 0 30px 60px -20px rgb(0 0 0 / .6); transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); transform-origin: left center; }
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--ink-2); color: var(--on-ink); border-bottom: 1px solid var(--ink-line); }
.mock-mark { width: 18px; height: 18px; fill: var(--flame); }
.mock-title { font: 700 .95rem/1 var(--display); }
.mock-live { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; color: var(--on-ink-muted); text-transform: uppercase; letter-spacing: .08em; }
.mock-live i { width: 7px; height: 7px; border-radius: 50%; background: #5fd38d; position: relative; }
.mock-live i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #5fd38d; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
.mock-clock { margin-left: auto; color: var(--on-ink-muted); font-weight: 600; }
.mock-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.mock-col { padding: 14px 14px 16px; min-width: 0; }
.mock-day { border-left: 1px solid var(--line); background: #f7f8f4; }
.mock-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.mock-head b { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.mock-head span { color: var(--muted); font-size: .76rem; }

.board { height: calc(var(--row) * 4); overflow: hidden; position: relative; }
.board-list { list-style: none; margin: 0; padding: 0; transition: transform 760ms var(--ease); }
.board-list.is-shifting { transform: translate3d(0, calc(var(--row) * -1), 0); transition: none; }
.order { height: var(--row); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-content: center; column-gap: 10px; row-gap: 2px;
  padding: 0 10px; border-bottom: 1px solid var(--line); position: relative; }
.o-no { grid-row: 1 / 3; align-self: center; font-weight: 600; color: var(--muted); font-size: .76rem; }
.o-who { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-what { grid-column: 2; grid-row: 2; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .76rem; }
.o-chip { grid-column: 3; grid-row: 1; justify-self: end; font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-3); }
.o-chip.is-new { background: var(--fire); color: #fff; }
.o-chip.is-ready { background: #dcefe2; color: var(--ok); }
.o-when { grid-column: 3; grid-row: 2; justify-self: end; color: var(--muted); font-size: .72rem; white-space: nowrap; }
.order::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--fire); transform: scaleY(0); transition: transform 500ms var(--ease); }
.order:has(.is-new)::before { transform: scaleY(1); }
.order.is-arriving { animation: order-in 900ms var(--ease) both; }
@keyframes order-in { from { opacity: 0; transform: translate3d(-14px, 0, 0); } }
.order.is-arriving::after { content: ''; position: absolute; inset: 0; background: var(--ember); opacity: 0; animation: flash 1600ms var(--ease) 200ms; pointer-events: none; }
@keyframes flash { 20% { opacity: .45; } to { opacity: 0; } }
.o-chip.is-changing { animation: chip 420ms var(--ease); }
@keyframes chip { from { opacity: 0; transform: scale(.85); } }

.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.slot { display: grid; grid-template-columns: 3.1em minmax(0, 1fr); gap: 8px; align-items: center; height: 42px; }
.s-time { color: var(--muted); font-weight: 600; font-size: .74rem; text-align: right; }
.s-cell { position: relative; display: grid; height: 100%; border-radius: 5px; overflow: hidden; }
.s-cell > span { grid-area: 1 / 1; display: flex; align-items: center; padding: 0 10px; transition: opacity 500ms var(--ease), transform 500ms var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.s-open { border: 1px dashed var(--line-strong); border-radius: 5px; color: var(--muted); }
.s-booked { background: var(--ink-2); color: var(--on-ink); border-radius: 5px; font-weight: 600; gap: 6px; opacity: 0; transform: translate3d(0, 6px, 0); }
.s-booked em { font-style: normal; font-weight: 400; color: var(--on-ink-muted); overflow: hidden; text-overflow: ellipsis; }
.slot.is-booked .s-open { opacity: 0; transform: scale(.97); }
.slot.is-booked .s-booked { opacity: 1; transform: none; }
.slot.is-fresh .s-booked { background: var(--fire); }
.slot.is-fresh .s-booked em { color: #fde3d3; }

/* first appearance of the mock rows */
.order.is-seed, .slot.is-seed { animation: rise 700ms var(--ease) both; }
.order.is-seed:nth-child(1) { animation-delay: 700ms; } .order.is-seed:nth-child(2) { animation-delay: 780ms; }
.order.is-seed:nth-child(3) { animation-delay: 860ms; } .order.is-seed:nth-child(4) { animation-delay: 940ms; }
.slot.is-seed:nth-child(1) { animation-delay: 820ms; } .slot.is-seed:nth-child(2) { animation-delay: 880ms; } .slot.is-seed:nth-child(3) { animation-delay: 940ms; }
.slot.is-seed:nth-child(4) { animation-delay: 1000ms; } .slot.is-seed:nth-child(5) { animation-delay: 1060ms; }

/* ---------- scroll reveals: only armed by the script, so nothing hides without it ---------- */
[data-reveal] { transition: opacity var(--enter) var(--ease) var(--rd, 0ms), transform var(--enter) var(--ease) var(--rd, 0ms); }
.reveal-armed [data-reveal]:not(.is-in) { opacity: 0; transform: translate3d(0, 28px, 0); }

/* ---------- sections ---------- */
.band { padding: var(--section) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px 64px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: var(--step-1); max-width: 34em; }

/* What I build: sticky intro on the left, ruled rows on the right */
.build { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 7vw, 112px); align-items: start; }
.build-head { position: sticky; top: calc(var(--header-h) + 32px); }
.build-head > p { color: var(--muted); font-size: var(--step-1); max-width: 30em; }
.build-head .build-foot { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--text); font-weight: 600; }
.caps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); counter-reset: cap; }
.cap { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 6px 16px; padding: 28px 0 30px; border-bottom: 1px solid var(--line); counter-increment: cap; }
.cap::before { content: counter(cap, decimal-leading-zero); grid-row: 1 / 3; font: 600 .9rem/1.9 var(--display); color: var(--fire); }
.cap::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--fire); transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease); }
.cap:hover::after { transform: scaleX(1); }
.cap h3 { margin: 0 0 6px; font-size: var(--step-2); }
.cap p { margin: 0; max-width: 40em; color: var(--muted); }
.cap .cap-seen { margin-top: 12px; font-size: .92rem; color: var(--text); }
.cap-seen a { font-weight: 600; }

/* Recent work: a numbered register of jobs */
.band-work { background: var(--white); border-block: 1px solid var(--line); }
.work { list-style: none; margin: 0; padding: 0; counter-reset: job; }
.job { counter-increment: job; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.6fr); gap: 10px 32px; padding: 32px 0; border-top: 1px solid var(--line); position: relative; }
.job:last-child { border-bottom: 1px solid var(--line); }
.job::before { content: counter(job, decimal-leading-zero); font: 600 1.4rem/1 var(--display); color: var(--fire); padding-top: 6px; }
.job-head h3 { margin: 0 0 6px; }
.job-kind { margin: 0; color: var(--muted); font-size: .95rem; }
.job-body p { margin: 0 0 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; }
.tags li { font-size: .8rem; font-weight: 600; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-3); background: var(--paper); }
.job-link { margin: 0 !important; }
.job-go { font-weight: 600; overflow-wrap: anywhere; }
.job-soon { display: inline-block; font-weight: 600; font-size: .92rem; color: var(--muted); border-bottom: 1px dashed var(--line-strong); }
.job-shot { grid-column: 2 / -1; margin: 6px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.job-shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 900ms var(--ease); }
.job:hover .job-shot img { transform: scale(1.015); }

/* Going live */
.band-dark { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.band-dark p { color: var(--on-ink-muted); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 7vw, 112px); align-items: start; }
.launch-copy p { font-size: var(--step-1); max-width: 30em; }
.launch-copy p:last-child { color: var(--on-ink); font-weight: 600; margin: 0; }
.specs { margin: 0; border-top: 1px solid var(--ink-line); }
.specs div { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--ink-line); }
.specs dt { display: flex; align-items: center; gap: 12px; font: 700 1.15rem/1.3 var(--display); color: var(--on-ink); }
.specs dd { margin: 0; color: var(--on-ink-muted); }
.tick { width: 22px; height: 22px; flex: none; border-radius: 50%; background: rgb(255 138 82 / .12); }
.tick path { fill: none; stroke: var(--flame); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.reveal-armed .specs div:not(.is-in) .tick path { stroke-dashoffset: 1; }
.specs div .tick path { transition: stroke-dashoffset 600ms var(--ease) calc(var(--rd, 0ms) + 350ms); }

/* Pricing + steps */
.duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 7vw, 112px); }
.duo-main p { font-size: var(--step-1); max-width: 28em; }
.duo-main .btn { margin-top: 8px; }
.duo-side h2 { font-size: var(--step-2); margin-bottom: 24px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.steps li { counter-increment: step; position: relative; padding: 20px 0 24px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 600 .9rem/1 var(--display); color: var(--fire); margin-bottom: 10px; }
.steps li::after { content: ''; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease); }
.duo-side.is-in .steps li::after, html:not(.reveal-armed) .steps li::after { transform: scaleX(1); }
.duo-side.is-in .steps li:nth-child(2)::after { transition-delay: 150ms; }
.duo-side.is-in .steps li:nth-child(3)::after { transition-delay: 300ms; }
.duo-side.is-in .steps li:nth-child(4)::after { transition-delay: 450ms; }
.steps b { display: block; font-weight: 600; }

/* About */
.band-about { background: var(--paper-2); border-block: 1px solid var(--line); }
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(40px, 7vw, 112px); }
.about-text p { font: 600 var(--step-2)/1.4 var(--display); letter-spacing: -.005em; max-width: 30em; color: var(--ink); }

/* Contact */
.band-contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 7vw, 112px); align-items: start; }
.contact-copy { position: sticky; top: calc(var(--header-h) + 32px); }
.contact-copy p { max-width: 28em; font-size: var(--step-1); color: var(--muted); }
.contact-copy .area { color: var(--fire); margin-top: 24px; font-size: .95rem; }
.direct { margin-top: 18px; font-weight: 600; overflow-wrap: anywhere; color: var(--text) !important; font-size: 1rem !important; }

.form { display: grid; gap: 20px; }
#lead-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 40px); box-shadow: 0 1px 2px rgb(16 34 27 / .04), 0 20px 40px -24px rgb(16 34 27 / .18); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 6px; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 11px 13px; min-height: 48px;
  box-shadow: 0 1px 0 rgb(16 34 27 / .03) inset; transition: border-color var(--ui) var(--ease), box-shadow var(--ui) var(--ease); }
input:hover, select:hover, textarea:hover { border-color: #7f9086; }
textarea { resize: vertical; min-height: 150px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--fire); box-shadow: 0 0 0 3px rgb(177 63 14 / .22); }
input[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: var(--bad); }
.checks { border: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.checks legend { padding: 0; margin-bottom: 8px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 400; background: var(--paper);
  transition: border-color var(--ui) var(--ease), background-color var(--ui) var(--ease), transform var(--ui) var(--ease); }
.check:hover { border-color: var(--line-strong); }
.check:active { transform: scale(.985); }
.check input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--fire); flex: none; box-shadow: none; }
.check:has(input:checked) { border-color: var(--fire); background: #fbefe7; }
.check:has(input:focus-visible) { outline: 2px solid var(--fire); outline-offset: 2px; }
.check input:focus-visible { outline: none; box-shadow: none; }
.hint { margin: 0; font-size: .9rem; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: .92rem; color: var(--muted); margin: 0; }
#lead-form .consent { border-top: 1px solid var(--line); padding-top: 20px; }
.submit-row { margin: 0; }
.submit-row .btn { min-width: 170px; }
.form-status { margin: 0; font-weight: 600; min-height: 1.5em; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--bad); }
#lead-form.sent > :not(.form-status) { display: none; }
.form.sent .form-status { display: block; font: 700 1.4rem/1.35 var(--display); color: var(--ink); padding: 8px 0; animation: rise 600ms var(--ease) both; }

/* Footer */
.foot { background: var(--ink); color: var(--on-ink-muted); padding: 48px 0 36px; font-size: .95rem; }
.foot-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 40px; align-items: center; }
.foot p { margin: 0; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--on-ink); font: 700 1.2rem/1 var(--display); }
.foot-brand .brand-mark { width: 28px; height: 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 24px; list-style: none; margin: 0; padding: 0; }
.foot a { color: var(--on-ink); display: inline-block; padding: 8px 0; }
.foot a:hover { color: var(--flame); }
.copy { grid-column: 1 / -1; font-size: .85rem; padding-top: 20px; border-top: 1px solid var(--ink-line); }

/* Legal and message pages */
.page { padding: clamp(48px, 8vw, 96px) 0; }
.prose { max-width: 44em; }
.prose h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.prose h2 { font-size: 1.55rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose .updated { color: var(--muted); }
.msg { max-width: 36em; }
.msg h1 { font-size: var(--step-3); }
.msg .btn { margin: 8px 8px 0 0; }

/* Private invoice page */
.invoice { max-width: 760px; margin-inline: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 5vw, 48px); box-shadow: 0 20px 40px -28px rgb(16 34 27 / .25); }
.inv-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.inv-head h1 { font-size: var(--step-3); margin: 0 0 6px; }
.inv-meta { color: var(--muted); margin: 0 0 6px; }
.inv-status { margin: 0; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; padding: 4px 12px; border-radius: 999px; border: 1px solid currentColor; color: var(--fire); }
.inv-status.is-paid { color: var(--ok); }
.inv-status.is-void { color: var(--muted); }
.inv-table-wrap { overflow-x: auto; margin: 20px 0; }
.inv-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.inv-table th, .inv-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.inv-table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--ink); }
.inv-table .num { text-align: right; white-space: nowrap; }
.inv-table tfoot th, .inv-table tfoot td { font: 700 1.25rem/1.3 var(--display); border-bottom: 0; padding-top: 16px; }
.inv-table tfoot th { text-align: right; }
.inv-notes p { color: var(--muted); }
.inv-action { margin: 24px 0 8px; }
.inv-pay { margin: 0 0 10px; }
.inv-paid { font: 700 1.3rem/1.3 var(--display); color: var(--ok); }
.inv-note { font-weight: 600; }
.inv-notice { padding: 12px 16px; border-left: 4px solid var(--fire); background: #fbefe7; font-weight: 600; }
.inv-small { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .hero-visual { max-width: 620px; }
  .hero-canvas { right: -30%; top: 2%; width: 110vw; }
  .mock { transform: none; }
  .section-head, .split, .duo, .about, .contact-grid, .build { grid-template-columns: 1fr; }
  .build-head, .contact-copy { position: static; }
  .job { grid-template-columns: 3.2rem minmax(0, 1fr); }
  .job-body, .job-shot { grid-column: 2; }
}
@media (max-width: 700px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .nav { gap: 2px 16px; }
  .nav li:not(:last-child) { display: none; }
  .brand { font-size: 1.25rem; }
  .brand-mark { width: 30px; height: 30px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual figcaption { text-align: left; }
  .mock { --row: 58px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-day { border-left: 0; border-top: 1px solid var(--line); }
  .board { height: calc(var(--row) * 3); }
  .slot:nth-child(n+4) { display: none; }
  .job { grid-template-columns: 1fr; gap: 8px; padding: 26px 0; }
  .job::before { font-size: 1.1rem; padding: 0; }
  .job-body, .job-shot { grid-column: 1; }
  .specs div { grid-template-columns: 1fr; }
  .specs dd { padding-left: 34px; }
  .steps { grid-template-columns: 1fr; }
  .field-row, .checks { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr; }
  .cap { grid-template-columns: 2.25rem minmax(0, 1fr); }
}

/* ---------- reduced motion: no movement at all, everything in its final state ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-canvas { opacity: .9; }
}
@media (max-width: 980px) { .hero-canvas.is-on { opacity: .4; } }

/* the hidden attribute always wins over display rules */
[hidden] { display: none !important; }
