/* Layout: full-bleed hero, then three two-column chapters joined by one
   scroll-drawn line, then a "now" list and a large footer. */
:root {
  --bg: #0c0d10;
  --bg-raise: #14161b;
  --ink: #ecebe6;
  --muted: #9a9890;
  --line: #262830;
  --copper: #d98a4e;
  --copper-soft: #e9a877;
  --signal: #5fd4c8;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 clamp(16px, 1.05vw, 18px)/1.65 var(--body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; border-radius: 4px; }
strong { color: var(--ink); font-weight: 600; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--copper); color: #000; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 16px; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) var(--gutter) 16px;
  background: linear-gradient(to bottom, rgba(12,13,16,.9), rgba(12,13,16,0));
}
.nav__mark { font: 800 18px var(--display); letter-spacing: -0.03em; text-decoration: none; border: 1.5px solid var(--copper); border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; color: var(--copper); }
.nav nav { display: flex; gap: clamp(12px, 2.4vw, 32px); }
.nav nav a { font: 500 13px var(--mono); text-decoration: none; color: var(--muted); letter-spacing: .02em; transition: color .3s; }
.nav nav a span { color: var(--copper); margin-right: 4px; }
.nav nav a:hover, .nav nav a.is-active { color: var(--ink); }
.nav__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: transparent; }
.nav__progress i { display: block; height: 100%; width: 100%; background: var(--copper); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 640px) { .nav nav a:not(:last-child) { display: none; } }

/* Through-line */
.thread { position: absolute; top: 0; left: 0; width: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.thread path { fill: none; stroke: var(--copper); stroke-width: 2; stroke-linecap: round; opacity: .4; }

main, .footer { position: relative; z-index: 1; }

/* Hero */
.hero { position: relative; min-height: min(100svh, 1000px); display: grid; align-items: end; padding: 120px var(--gutter) clamp(48px, 10vh, 110px); overflow: hidden; }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__inner { max-width: var(--max); width: 100%; margin: 0 auto; }
.eyebrow { font: 500 13px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--copper); margin: 0 0 18px; }
.hero__title { font: 800 clamp(48px, min(9.5vw, 15vh), 150px)/.9 var(--display); letter-spacing: -0.05em; margin: 0; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .05em; }
.hero__title .split { display: inline-block; }
.hero__title .char { display: inline-block; will-change: transform; }
.hero__title .line--accent { color: var(--copper); }
.hero__lede { max-width: 44ch; font-size: clamp(19px, 2vw, 26px); line-height: 1.4; color: var(--muted); margin: 28px 0 0; text-wrap: balance; }
.hero__cta { display: inline-flex; align-items: center; gap: 12px; margin-top: 36px; font: 500 14px var(--mono); text-decoration: none; color: var(--ink); }
.hero__cta svg { width: 38px; height: 38px; padding: 8px; border: 1px solid var(--line); border-radius: 50%; fill: none; stroke: var(--copper); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s, border-color .4s; }
.hero__cta:hover svg { transform: translateY(4px); border-color: var(--copper); }

/* Intro */
.intro { padding: clamp(80px, 16vh, 180px) var(--gutter); max-width: var(--max); margin: 0 auto; }
.intro__text { font: 500 clamp(28px, 4.4vw, 64px)/1.12 var(--display); letter-spacing: -0.03em; margin: 0; max-width: 20ch; text-wrap: balance; }
.intro__text em { font-style: normal; color: var(--copper); }
.intro__text .word { display: inline-block; opacity: .18; }

/* Chapters */
.chapter { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 14vh, 160px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.chapter--two { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.chapter--two .chapter__copy { order: 2; }
.chapter__copy { min-width: 0; }
.chapter__num { font: 500 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--copper); margin: 0 0 14px; }
.chapter--three .chapter__num { color: var(--signal); }
.chapter h2 { font: 700 clamp(36px, 5vw, 72px)/1 var(--display); letter-spacing: -0.04em; margin: 0 0 24px; text-wrap: balance; }
.chapter p { color: var(--muted); margin: 0 0 16px; max-width: 52ch; }
.chapter a { color: var(--ink); text-decoration-color: var(--copper); text-underline-offset: 4px; }
.chapter--three a { text-decoration-color: var(--signal); }
.chapter__visual { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-raise); overflow: hidden; position: relative; aspect-ratio: 5 / 3; }

.facts { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.facts li { border-top: 1px solid var(--line); padding-top: 14px; }
.facts b { display: block; font: 700 clamp(24px, 2.6vw, 34px)/1 var(--display); letter-spacing: -0.03em; color: var(--copper-soft); font-variant-numeric: tabular-nums; }
.facts span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.4; }

/* Scope */
.scope__svg { width: 100%; height: 100%; display: block; }
.scope__grid { stroke: rgba(236,235,230,.06); stroke-width: 1; }
.scope__axis { stroke: rgba(236,235,230,.12); stroke-dasharray: 4 6; }
.scope__wave { fill: none; stroke: var(--copper); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(217,138,78,.55)); }
.scope__readout { position: absolute; left: 18px; bottom: 14px; display: flex; gap: 10px; align-items: baseline; font: 500 12px var(--mono); color: var(--muted); letter-spacing: .1em; }
.scope__readout b { color: var(--copper); font-weight: 500; }

/* Loom */
.loom__canvas { width: 100%; height: 100%; display: block; }

/* Flow */
.flow__svg { width: 100%; height: 100%; display: block; }
.flow__track { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 3 7; }
.flow__live { fill: none; stroke: var(--signal); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(95,212,200,.5)); }
.flow__node circle { fill: var(--bg); stroke: var(--line); stroke-width: 2; transition: stroke .4s, fill .4s; }
.flow__node text { fill: var(--muted); font: 600 13px var(--body); text-anchor: middle; transition: fill .4s; }
.flow__node .flow__label { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; fill: var(--muted); opacity: .6; }
.flow__node.is-on circle { stroke: var(--signal); fill: rgba(95,212,200,.12); }
.flow__node.is-on text { fill: var(--ink); }
.flow__node.is-on .flow__label { fill: var(--signal); opacity: 1; }
.flow__node--end.is-on circle { fill: var(--signal); }
.flow__node--end.is-on text:first-of-type { fill: #04110f; }
.flow__packet { fill: var(--ink); filter: drop-shadow(0 0 8px var(--signal)); }

/* Through */
.through { padding: clamp(100px, 18vh, 200px) var(--gutter); text-align: center; }
.through__line { font: 800 clamp(44px, 10vw, 150px)/.95 var(--display); letter-spacing: -0.05em; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .3em; }
.through__line span:nth-child(1) { color: var(--copper); }
.through__line span:nth-child(2) { color: var(--ink); }
.through__line span:nth-child(3) { color: var(--signal); }
.through__sub { color: var(--muted); max-width: 46ch; margin: 28px auto 0; font-size: clamp(17px, 1.4vw, 20px); text-wrap: balance; }

/* Now */
.now { max-width: var(--max); margin: 0 auto; padding: clamp(60px, 10vh, 120px) var(--gutter); }
.now__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.now__head h2 { font: 700 clamp(28px, 3.4vw, 44px)/1 var(--display); letter-spacing: -0.03em; margin: 0; }
.now__date { font: 500 12px var(--mono); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.now__list { list-style: none; padding: 0; margin: 0; }
.now__list li { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); }
.now__tag { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--copper); }
.now__list h3 { font: 700 clamp(20px, 2vw, 26px)/1.2 var(--display); letter-spacing: -0.02em; margin: 0; }
.now__list h3 a { text-decoration: none; background: linear-gradient(var(--copper), var(--copper)) 0 100% / 0 1.5px no-repeat; transition: background-size .4s; }
.now__list h3 a:hover { background-size: 100% 1.5px; }
.now__list p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .now__list li { grid-template-columns: 1fr; gap: 8px; } }

/* Footer */
.footer { padding: clamp(100px, 18vh, 200px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 40px); max-width: var(--max); margin: 0 auto; }
.footer__big { font: 800 clamp(44px, 8vw, 120px)/.95 var(--display); letter-spacing: -0.05em; margin: 0; max-width: 12ch; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; }
.footer__links a { font: 500 15px var(--mono); text-decoration: none; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .3s, color .3s; }
.footer__links a:hover { border-color: var(--copper); color: var(--copper); }
.footer__small { margin: 64px 0 0; font: 400 12px var(--mono); color: var(--muted); }

/* Mobile */
@media (max-width: 860px) {
  .chapter, .chapter--two { grid-template-columns: 1fr; }
  .chapter--two .chapter__copy { order: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 14px var(--body); letter-spacing: .01em; border-radius: 999px; padding: 11px 20px; cursor: pointer; text-decoration: none; border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s, transform .25s; white-space: nowrap; }
.btn--lg { padding: 15px 26px; font-size: 15px; }
.btn--solid { background: var(--copper); color: #160c05; }
.btn--solid:hover { background: var(--copper-soft); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: #3a3c45; }
.btn--ghost:hover { border-color: var(--copper); color: var(--copper); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.nav__book { padding: 10px 18px; font-size: 13.5px; }
@media (max-width: 640px) { .nav nav { display: none; } }

/* Bronxo */
.bronxo { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 14vh, 150px) var(--gutter) clamp(40px, 8vh, 80px); }
.bronxo__head { max-width: 760px; }
.bronxo__head h2 { font: 700 clamp(36px, 5.2vw, 76px)/1 var(--display); letter-spacing: -0.04em; margin: 14px 0 22px; text-wrap: balance; }
.bronxo__lede { color: var(--muted); font-size: clamp(17px, 1.35vw, 20px); max-width: 60ch; margin: 0; }
.bronxo__flow { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(40px, 7vh, 72px); }
.bronxo .flow { margin: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-raise); aspect-ratio: 600 / 380; overflow: hidden; min-width: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; min-width: 0; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps b { font: 500 13px var(--mono); color: var(--signal); padding-top: 4px; }
.steps h3 { margin: 0 0 4px; font: 700 20px var(--display); letter-spacing: -0.02em; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.services__title { font: 700 clamp(24px, 2.6vw, 34px)/1.1 var(--display); letter-spacing: -0.03em; margin: clamp(64px, 10vh, 110px) 0 24px; }
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.service { position: relative; background: var(--bg); padding: 26px 24px 28px; min-height: 210px; min-width: 0; overflow: hidden; transition: background .4s; }
.service::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(260px circle at var(--mx, -300px) var(--my, -300px), rgba(217,138,78,.16), transparent 60%); }
.service:hover { background: var(--bg-raise); }
.service:hover::before { opacity: 1; }
.service__num { font: 500 12px var(--mono); color: var(--copper); }
.service h4 { position: relative; margin: 36px 0 8px; font: 700 19px/1.2 var(--display); letter-spacing: -0.02em; }
.service p { position: relative; margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.cta-band { margin-top: clamp(40px, 7vh, 72px); display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding: clamp(28px, 4vw, 44px); border-radius: 24px; border: 1px solid rgba(217,138,78,.35); background: radial-gradient(120% 140% at 100% 0%, rgba(217,138,78,.16), transparent 55%), var(--bg-raise); }
.cta-band > div { max-width: 56ch; min-width: 0; }
.cta-band h3 { margin: 0 0 8px; font: 700 clamp(24px, 2.6vw, 34px)/1.1 var(--display); letter-spacing: -0.03em; }
.cta-band p { margin: 0; color: var(--muted); }
.intro .eyebrow { margin-bottom: 22px; }
.chapter--solo { grid-template-columns: minmax(0, 1fr); }
.chapter--solo .chapter__copy p { max-width: 64ch; }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .bronxo__flow { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .services { grid-template-columns: 1fr; } .service { min-height: 0; } }
.footer__links .btn { border: 0; }

/* Booking dialog */
.book { width: min(640px, calc(100vw - 32px)); max-height: min(88vh, 860px); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-raise); color: var(--ink); overflow: auto; }
.book::backdrop { background: rgba(6,7,9,.72); backdrop-filter: blur(6px); }
.book__body { padding: clamp(22px, 4vw, 36px); }
.book__close-form { position: sticky; top: 0; height: 0; display: flex; justify-content: flex-end; }
.book__close { margin: 14px 14px 0 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 20px; cursor: pointer; }
.book__title { font: 700 clamp(24px, 3vw, 32px)/1.1 var(--display); letter-spacing: -0.03em; margin: 8px 0 18px; }
.book__label { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.book__tz { text-transform: none; letter-spacing: 0; color: var(--copper); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg button, .days button, .slots button { font: 600 14px var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; text-align: left; transition: border-color .2s, background .2s; }
.seg button small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.seg button[aria-checked="true"], .days button[aria-selected="true"] { border-color: var(--copper); background: rgba(217,138,78,.12); }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.days button { flex: 0 0 auto; text-align: center; min-width: 66px; padding: 10px 8px; }
.days button span { display: block; font: 500 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.days button b { display: block; font: 700 20px var(--display); margin-top: 2px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; min-height: 48px; }
.slots button { text-align: center; font-variant-numeric: tabular-nums; }
.slots button:hover, .days button:hover, .seg button:hover { border-color: var(--copper-soft); }
.muted { color: var(--muted); margin: 0; font-size: 14px; }
.book__form { display: grid; gap: 14px; }
.book__picked { margin: 0 0 4px; padding: 12px 14px; border-radius: 12px; background: rgba(217,138,78,.12); border: 1px solid rgba(217,138,78,.35); font-weight: 600; }
.book__form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.book__form input, .book__form textarea { font: 400 15px var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; resize: vertical; }
.book__form input:focus, .book__form textarea:focus { outline: 2px solid var(--copper); outline-offset: 1px; border-color: transparent; }
.book .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.book__error { margin: 0; color: #ff9b8a; font-size: 14px; }
.book__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.book__done { text-align: center; padding: 10px 0; }
.book__done .book__actions { justify-content: center; margin-top: 18px; }
.book__check { width: 64px; height: 64px; margin: 6px auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--signal); color: #04110f; font-size: 30px; font-weight: 700; }
.book__done h3 { font: 700 28px var(--display); margin: 0 0 8px; }
.book__summary { margin: 0 0 6px; font-weight: 600; }

.book [hidden] { display: none !important; }
