@font-face {
  font-family: "Chivo";
  src: url("/assets/fonts/chivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f1f1ef;
  --surface: #e4e3de;
  --ink: #1c1c1c;
  --muted: #4e4f4a;
  --accent: #8fa68e;
  --accent-ink: #1c1c1c;
  --dark: #1c1c1c;
  --dark-surface: #2a2a2a;
  --dark-ink: #f1f1ef;
  --concrete: #c8c5ba;
  --margin: clamp(16px, 2.6vw, 40px);
  --gap: clamp(96px, 12vw, 200px);
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);
  --step-display: clamp(2.6rem, 9.6vw, 9.25rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/1.5 "Chivo", system-ui, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[data-field="dark"] :focus-visible { outline-color: var(--accent); }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.skip { position: absolute; left: var(--margin); top: -60px; z-index: 20; background: var(--ink); color: var(--bg); padding: 10px 14px; }
.skip:focus { top: 10px; }

/* buttons: one shape (square), one fill */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 22px;
  background: var(--accent); color: var(--accent-ink);
  font: 700 1rem/1 "Chivo", sans-serif; letter-spacing: -0.01em;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.btn:hover { background: #a3b8a2; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-small { min-height: 44px; padding: 0 16px; }

/* top bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px var(--margin);
  background: var(--bg);
}
.wordmark { font-weight: 700; font-size: 1rem; text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.wordmark span { font-weight: 900; }
.bar ul { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); list-style: none; }
.bar a[data-nav]:not(.btn) { font-weight: 700; font-size: 0.9375rem; text-decoration: none; padding: 12px 0; }
.bar a[data-nav]:not(.btn):hover, .bar a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-thickness: 2px; }
.menu-toggle { display: none; }

/* layout helpers */
.wrap { padding: 0 var(--margin); }
.section { padding: var(--gap) var(--margin) 0; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.lead { font-size: var(--step-lead); line-height: 1.35; }
.muted { color: var(--muted); }
.h2 { font-size: var(--step-head); }

/* hero */
.hero { min-height: calc(100svh - 64px); display: flex; flex-direction: column; justify-content: space-between; padding: 9vh var(--margin) 40px; }
.hero h1 { font-size: clamp(2rem, 8.6vw, 8.5rem); text-transform: uppercase; letter-spacing: -0.05em; line-height: 0.88; }
.hero h1 .line { white-space: nowrap; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero h1 .line { perspective: 900px; }
.hero h1 .line > span { display: block; transform-origin: 50% 100%; }
.hero h1 .line + .line { color: #6f8a6e; }
.hero-foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: end; margin-top: 48px; }
.hero-foot p { grid-column: 1 / span 6; font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.hero-foot .actions { grid-column: 9 / span 4; justify-self: end; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.hero-foot .actions a:not(.btn) { font-weight: 700; padding: 12px 0; }

/* the front desk figure section */
.desk { background: var(--surface); padding: var(--gap) var(--margin); }
.desk-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: end; margin-bottom: 56px; }
.desk-head h2 { grid-column: 1 / span 7; font-size: var(--step-head); }
.desk-head p { grid-column: 9 / span 4; }
.desk-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
.desk-body .fd { grid-column: 1 / span 8; }
.desk-side { grid-column: 9 / span 4; display: grid; gap: 28px; }
.desk-side ol { list-style: none; display: grid; gap: 18px; counter-reset: s; }
.desk-side li { padding-left: 1.6em; position: relative; }
.desk-side li::before { counter-increment: s; content: counter(s) "."; position: absolute; left: 0; font-weight: 700; }
.desk-side strong { font-weight: 700; }
.video-slot { margin-top: 64px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: center; }
.video-slot .video-fig { grid-column: 1 / span 8; margin: 0; }
.video-slot video { width: 100%; aspect-ratio: 16 / 10; background: var(--dark); }
.h3 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 10px; }
.video-slot .video-note { grid-column: 9 / span 4; }

/* real screens from the demo */
.screens { margin-top: 64px; display: grid; grid-template-columns: 5fr 5fr 2fr; gap: 16px; align-items: start; }
.screens figure, .shot { margin: 0; }
.screens img, .shot img { width: 100%; background: var(--dark); }
.screens figcaption, .shot figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.shot { margin: 8px 0 28px; }

/* the kit's figure, tuned to the page */
.fd.iso[data-theme="light"] { --anatomy-paper: #f7f7f5; }
.fd .iso-figure { margin: 0; }
.fd .iso-plate { background: #f7f7f5; box-shadow: none; } /* taste-skill-ignore: removes the kit's outline */
.fd .iso-plate-corner, .fd .iso-plate-corner[data-corner] { font-family: "Chivo", sans-serif; text-transform: none; letter-spacing: 0; font-size: 0.875rem; color: var(--muted); }
.fd .iso-legend, .fd .iso-key, .fd .iso-caption { font-family: "Chivo", sans-serif; font-size: 0.9375rem; color: var(--muted); letter-spacing: 0; text-transform: none; }
.fd-choose { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.fd-choose button {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--bg); color: var(--ink); font: 700 0.9375rem/1 "Chivo", sans-serif;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
.fd-choose button:hover { background: #fff; }
.fd-choose button:active { transform: scale(0.98); }
.fd-choose button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.fd-status { margin-top: 14px; min-height: 3em; font-size: var(--step-body); }

/* services as colour fields */
.fields { margin-top: var(--gap); }
.field {
  min-height: 74svh; padding: 32px var(--margin);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px;
  grid-template-rows: auto 1fr auto;
}
.field:nth-child(1) { background: var(--dark); color: var(--dark-ink); }
.field:nth-child(2) { background: var(--concrete); }
.field:nth-child(3) { background: var(--accent); }
.field .field-text { grid-column: 8 / span 4; grid-row: 1; display: grid; gap: 14px; max-width: 36ch; }
.field .field-text a { font-weight: 700; }
.field h2, .field h3 { grid-column: 1 / span 9; grid-row: 3; font-size: clamp(3rem, 8.4vw, 8.5rem); text-transform: uppercase; letter-spacing: -0.05em; line-height: 0.88; }
.field:nth-child(2) .field-text { grid-column: 2 / span 4; }
.field:nth-child(2) h3 { grid-column: 4 / span 9; text-align: right; }

/* stages as one bar */
.stages h2 { font-size: var(--step-head); margin-bottom: 64px; }
.bar-stages { display: flex; gap: 6px; list-style: none; }
.bar-stages li { flex-basis: 0; min-width: 12%; display: grid; grid-template-rows: 22vh auto; gap: 18px; }
.bar-stages .seg { padding: 20px; font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.875rem); line-height: 1.1; letter-spacing: -0.03em; }
.bar-stages .clause { max-width: 24ch; font-size: 1.0625rem; }
.bar-stages li:nth-child(1) .seg { background: var(--accent); }
.bar-stages li:nth-child(2) .seg { background: var(--concrete); }
.bar-stages li:nth-child(3) .seg { background: var(--surface); }
.bar-stages li:nth-child(4) .seg { background: var(--dark); color: var(--dark-ink); }
.bar-stages li:nth-child(5) .seg { background: #3d4a3c; color: var(--dark-ink); }

/* quote menu */
.menu { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
.menu-head { grid-column: 1 / span 4; display: grid; gap: 20px; align-content: start; }
.menu-head h2 { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); }
.menu dl { grid-column: 6 / span 7; margin: 0; }
.menu dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; padding: 22px 0; }
.menu dl > div:nth-child(odd) { background: var(--surface); margin: 0 -16px; padding: 22px 16px; }
.menu dt { font-weight: 700; font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.02em; }
.menu dd { margin: 0; }

/* faq as reading text */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
.faq h2 { grid-column: 1 / span 3; font-size: clamp(1.75rem, 1.4rem + 1vw, 2rem); letter-spacing: -0.03em; }
.faq-text { grid-column: 5 / span 8; columns: 2; column-gap: 56px; }
.faq-text p { break-inside: avoid; margin-bottom: 22px; line-height: 1.55; }
.faq-text p b { font-weight: 700; }
.faq-text.one { columns: 1; max-width: 70ch; }

/* contact band */
.contact-band { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; padding-bottom: var(--gap); }
.contact-band .prompt { grid-column: 1 / span 7; font-size: var(--step-head); }
.contact-band .rows { grid-column: 9 / span 4; display: grid; gap: 20px; align-content: end; }
.rows dl { margin: 0; display: grid; gap: 14px; }
.rows dt { font-size: var(--step-small); color: var(--muted); }
.rows dd { margin: 0 0 6px; font-weight: 700; overflow-wrap: anywhere; }

/* footer */
.foot { background: var(--dark); color: var(--dark-ink); padding: clamp(64px, 9vw, 120px) var(--margin) 0; overflow: hidden; }
.foot-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
.foot-invite { grid-column: 1 / span 7; display: grid; gap: 32px; justify-items: start; }
.foot-line { font-size: clamp(2.4rem, 5vw, 4.75rem); font-weight: 900; letter-spacing: -0.045em; line-height: 0.95; max-width: 12ch; }
.foot-contact { grid-column: 9 / span 4; list-style: none; display: grid; gap: 12px; align-content: start; }
.foot-contact a { font-weight: 700; padding: 6px 0; display: inline-block; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: clamp(64px, 9vw, 120px); font-size: var(--step-small); color: #c9c9c4; }
.foot-legal ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; }
.foot-legal a { display: inline-block; padding: 8px 0; color: var(--dark-ink); }
.foot-name { font-weight: 900; font-size: 25vw; letter-spacing: -0.06em; line-height: 0.8; white-space: nowrap; text-transform: uppercase; margin: 16px 0 -0.2em; color: #74746e; }

/* inner pages */
.page-head { padding: clamp(48px, 9vh, 120px) var(--margin) clamp(48px, 7vw, 96px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: end; }
.page-head h1 { grid-column: 1 / span 8; font-size: var(--step-head); }
.page-head p { grid-column: 9 / span 4; }
.prose-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; padding: 0 var(--margin) var(--gap); }
.prose-side { grid-column: 1 / span 3; font-size: var(--step-small); display: grid; gap: 10px; align-content: start; position: sticky; top: 88px; }
.prose-side a { display: inline-block; padding: 4px 0; }
.prose { grid-column: 5 / span 7; max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.03em; line-height: 1.1; margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1875rem; letter-spacing: -0.02em; line-height: 1.2; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin-bottom: 16px; line-height: 1.6; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose table { border-collapse: collapse; width: 100%; margin-bottom: 20px; font-size: 1rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--concrete); }
.prose th { font-weight: 700; }
.note { background: var(--surface); padding: 18px 20px; margin-bottom: 28px; }

/* contact form */
.form { display: grid; gap: 22px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form label { display: grid; gap: 8px; font-weight: 700; font-size: 1rem; }
.form label small { font-weight: 400; color: var(--muted); font-size: var(--step-small); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 0; border-radius: 0;
  background: #fff; color: var(--ink); font: 400 1rem/1.4 "Chivo", sans-serif;
  box-shadow: inset 0 0 0 1px var(--concrete); /* taste-skill-ignore: form field edge */
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); } /* taste-skill-ignore: form focus ring */
.form .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.form .check input { width: 22px; min-height: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--ink); box-shadow: none; } /* taste-skill-ignore: checkbox */
.form .warn { background: var(--concrete); padding: 14px 16px; font-weight: 700; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: honeypot, never visible */
.form-status { min-height: 1.5em; font-weight: 700; }
.form-status[data-state="error"] { color: #8a1c1c; }

/* motion helpers: hidden only once the script has taken over */
.js-motion [data-reveal] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .js-motion [data-reveal] { opacity: 1; }
  * { transition-duration: 0ms !important; }
}

/* tablet */
@media (max-width: 960px) {
  .desk-head h2, .desk-head p, .desk-body .fd, .desk-side, .video-slot .video-fig, .video-slot .video-note,
  .menu-head, .menu dl, .faq h2, .faq-text, .contact-band .prompt, .contact-band .rows,
  .page-head h1, .page-head p, .prose-side, .prose, .foot-invite, .foot-contact { grid-column: 1 / -1; }
  .desk-head p, .desk-side, .video-slot .video-note, .menu dl, .faq-text, .contact-band .rows, .page-head p, .prose, .foot-contact { margin-top: 32px; }
  .prose-side { position: static; grid-auto-flow: row; }
  .field .field-text, .field:nth-child(2) .field-text { grid-column: 1 / span 9; }
  .field h2, .field h3, .field:nth-child(2) h3 { grid-column: 1 / -1; text-align: left; }
}

/* phone */
@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 0; border-radius: 0;
    background: var(--ink); color: var(--bg); font: 700 0.9375rem/1 "Chivo", sans-serif; cursor: pointer;
  }
  .bar ul { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); padding: 8px var(--margin) 20px; }
  .bar ul.open { display: flex; }
  .bar ul a[data-nav] { display: block; padding: 14px 0; font-size: 1.125rem; }
  .bar ul .btn { margin-top: 8px; }
  .hero { min-height: 0; padding-top: 10vh; padding-bottom: 56px; }
  .hero-foot { margin-top: 18vh; }
  .hero-foot p, .hero-foot .actions { grid-column: 1 / -1; justify-self: start; }
  .hero-foot .actions { margin-top: 24px; }
  .field { min-height: 64svh; }
  .field h2, .field h3 { font-size: 12.5vw; }
  .bar-stages { flex-direction: column; }
  .bar-stages li { flex: none; grid-template-rows: auto; gap: 10px; }
  .bar-stages .seg { min-height: 72px; }
  .faq-text { columns: 1; }
  .screens { grid-template-columns: 1fr; }
  .screens .tall img { max-width: 60%; }
  .menu dl > div { grid-template-columns: 1fr; gap: 6px; }
  .form .two { grid-template-columns: 1fr; }
  .foot-name { font-size: 32vw; }
}
