/* demystified.ai — styles.css
   1:1 reproduction of the Claude Design export "Demystified Homepage.dc.html"
   as rendered: palette "Cobalt and clay", site font "Instrument Sans".
   Every value the design uses is declared once as a custom property below. */

/* =========================================================================
   1. Design tokens
   ========================================================================= */
:root {
  /* --- palette: cobalt and clay (the export's rendered palette) --- */
  --p-paper: #F6F4EF;
  --p-warm: #ECEAE3;
  --p-ink: #242529;
  --p-accent: #354FC4;
  --p-accent-ink: #C9846B;
  --p-on-accent: #F6F4EF;
  --p-red: #A55D3D;        /* export: #A85F3E (4.37:1 on paper, under AA). Darkened to 4.51:1 */
  --p-link: #354FC4;
  --p-text2: #45464D;
  --p-text3: #686971;      /* export: #6B6C74 (4.34:1 on warm, under AA). Darkened to 4.53:1 */
  --p-underline: #C9846B;
  --k-teal: #1D7481;       /* export: #1F7E8C (3.95:1 on warm, under AA). Darkened to 4.51:1 */

  /* --- fixed colours, not palette-driven in the export --- */
  --c-html-bg: #F7F3EA;
  --c-html-ink: #141214;
  --c-link-default: #225683;
  --c-focus: #141214;
  --c-white: #FFFFFF;
  --c-step-text: #C9C4C9;
  --c-footer-muted: #B4AFB4;
  --c-rule-on-ink: rgba(247, 243, 234, .18);
  --c-rule-proof: rgba(20, 18, 20, .25);
  --c-footnote: rgba(20, 18, 20, .7);
  --c-price-soft: #242529CC;
  --c-price-softer: #24252999;
  --c-scrim: rgba(20, 18, 20, .55);
  --c-placeholder: rgba(20, 18, 20, .4);

  /* --- type --- */
  --font-sans: 'Instrument Sans', sans-serif;
  --fs-body: 18px;        --lh-body: 1.6;
  --fs-h1: 52px;          --lh-h1: 1.08;        --ls-h1: -.03em;
  --fs-h1-contact: 52px;  --lh-h1-contact: 1.05;
  --fs-h2: 42px;          --lh-h2: 1.05;        --ls-h2: -.025em;
  --fs-h2-small: 18px;    --lh-h2-small: 1.6;
  --fs-h2-form: 28px;
  --fs-h3-card: 17px;     --lh-h3-card: 1.4;
  --fs-h3-modal: 32px;    --lh-h3-modal: 1.08;
  --fs-quote: 46px;       --lh-quote: 1.08;
  --fs-price: 46px;       --lh-price: 1;        --ls-price: -.03em;
  --fs-close: 46px;       --lh-close: 1.05;     --ls-close: -.03em;
  --fs-wordmark: 20px;    --ls-wordmark: -.02em;
  --fs-nav: 16px;
  --fs-button: 17px;      --fs-button-sm: 16px; --lh-button: 1.2;  --ls-button: -.01em;
  --fs-note: 16px;        --lh-note: 1.5;
  --fs-card-body: 15px;   --lh-card-body: 1.5;
  --fs-eyebrow: 11px;     --ls-eyebrow: .12em;
  --fs-eyebrow-lg: 13px;
  --fs-meta: 13px;        --lh-meta: 1.4;
  --fs-small: 16px;
  --fs-numeral: 20px;     --ls-numeral: -.02em;
  --fs-label: 14px;
  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;
  --ls-heading: -.02em;   /* site-font rule: h1/h2/h3/blockquote/dd/strong without inline tracking */
  --ls-logo: -.01em;
  --ls-tight: -.01em;

  /* --- layout --- */
  --min-width: 0;             /* export: 1080px, dropped with the breakpoints re-enabled */
  --wrap-wide: 1280px;    --pad-wide: 48px;
  --wrap-narrow: 1080px;  --pad-narrow: 32px;
  --nav-height: 80px;
  --measure-body: 58ch;
  --measure-prose: 70ch;
  --measure-lab: 60ch;
  --measure-h2-build: 24ch;
  --measure-close: 24ch;
  --measure-contact-h1: 14ch;
  --measure-contact-p: 48ch;

  /* --- shape --- */
  --radius: 0;
  --border-w: 2px;
  --border: 2px solid var(--p-ink);
  --shadow-3: 3px 3px 0;
  --shadow-4: 4px 4px 0;
  --shadow-6: 6px 6px 0;
  --shadow-10: 10px 10px 0;

  /* --- motion --- */
  --dur-hover: 120ms;
  --dur-reveal: 400ms;
  --ease-reveal: ease-out;
  --reveal-stagger: 60ms;
  --reveal-offset: 12px;
  --hover-lift: -2px;
  --hover-lift-sm: -1px;
}

/* =========================================================================
   2. Fonts (self-hosted; same subsets and unicode ranges Google serves)
   ========================================================================= */
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/InstrumentSans-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/InstrumentSans-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/InstrumentSans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/InstrumentSans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================================
   3. Base
   ========================================================================= */
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--c-html-bg); color: var(--c-html-ink); }
body {
  min-width: var(--min-width);
  overflow-x: auto;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
/* The export's "Instrument Sans" site-font rule: these become 600 with -.02em tracking
   unless the element carried its own tracking inline (reproduced per class below). */
h1, h2, h3, blockquote, dd, strong, .close__line {
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-heading);
}
a {
  color: var(--c-link-default);
  text-decoration: none;
  transition: text-decoration-color var(--dur-hover);
  text-decoration-color: transparent;
}
a:hover { text-decoration: underline; text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
}
p, h1, h2, h3, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
picture { display: contents; }
source { display: none; }
img, button, input, textarea, select { border-radius: var(--radius); }
input, textarea, select { font: inherit; color: inherit; }
input::placeholder, textarea::placeholder { color: var(--p-text3); opacity: 1; }

.page { background: var(--p-paper); color: var(--p-ink); min-height: 100vh; }
.page--column { display: flex; flex-direction: column; }

.wrap { max-width: var(--wrap-wide); margin: 0 auto; padding: 0 var(--pad-wide); }
.wrap--narrow { max-width: var(--wrap-narrow); padding: 0 var(--pad-narrow); }
.wrap--full { width: 100%; box-sizing: border-box; }
.wrap--relative { position: relative; }

.mark { position: relative; display: inline-block; }
.mark--z { z-index: 0; }
.mark--isolate { isolation: isolate; }
.accent { pointer-events: none; }
.ink { color: var(--p-ink); }
.link { color: var(--p-link); }

/* =========================================================================
   4. Buttons
   ========================================================================= */
.btn {
  display: inline-block;
  background: var(--p-accent);
  color: var(--p-on-accent);
  border: var(--border);
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-button);
  letter-spacing: var(--ls-button);
  line-height: var(--lh-button);
  box-shadow: var(--shadow-4) var(--p-ink);
  transition: transform var(--dur-hover), box-shadow var(--dur-hover);
  cursor: pointer;
}
.btn:hover {
  transform: translate(var(--hover-lift), var(--hover-lift));
  box-shadow: var(--shadow-6) var(--p-ink);
  text-decoration: none;
}
.btn--sm { padding: 10px 18px; font-size: var(--fs-button-sm); white-space: nowrap; flex-shrink: 0; }
.btn--nowrap { white-space: nowrap; }
.btn--paper-shadow { box-shadow: var(--shadow-4) var(--p-paper); }
.btn--paper-shadow:hover { box-shadow: var(--shadow-6) var(--p-paper); }
.btn--ink { background: var(--p-ink); color: var(--p-paper); }
.btn--ink-accent-shadow { background: var(--p-ink); color: var(--p-paper); box-shadow: var(--shadow-4) var(--p-accent); }
.btn--ink-accent-shadow:hover { box-shadow: var(--shadow-6) var(--p-accent); }

/* =========================================================================
   5. Nav
   ========================================================================= */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-height);
  border-bottom: var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: var(--fw-bold);
  font-size: var(--fs-wordmark);
  letter-spacing: var(--ls-wordmark);
  color: var(--p-ink);
}
.brand__mark { width: 51px; height: 55px; display: block; }
.brand__name { font-weight: var(--fw-semibold); letter-spacing: var(--ls-logo); }
.nav__right { display: flex; align-items: center; gap: 28px; }
.nav__links { display: flex; gap: 28px; font-size: var(--fs-nav); white-space: nowrap; }
.nav__links a { color: var(--p-ink); }

/* =========================================================================
   6. Hero
   ========================================================================= */
.hero { padding: 80px 0 88px; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: 24px;
  align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero__h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
  margin: 0 0 4px;
  max-width: 720px;
  white-space: nowrap;
}
.hero__underline {
  position: absolute;
  left: -1%;
  bottom: .04em;
  width: 102%;
  height: .3em;
  z-index: -1;
  overflow: visible;
}
.hero__underline-path { stroke: var(--p-underline); }
.hero__lead { max-width: var(--measure-body); color: var(--p-text2); }
.hero__note {
  max-width: var(--measure-body);
  margin-top: -12px;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-note);
  line-height: var(--lh-note);
  letter-spacing: var(--ls-tight);
  color: var(--p-text3);
}
.hero__note-last { letter-spacing: var(--ls-tight); }
.hero__cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero__alt { color: var(--p-link); font-size: var(--fs-button); }
.hero__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  justify-self: start;
  margin: -48px 0 -48px -40px;
}

/* hand-drawn rules between bands */
.rule { display: block; width: 100%; height: 14px; overflow: visible; }
.rule__path { stroke: var(--p-ink); }

/* torn edges */
.tear {
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 22px;
  display: block;
  z-index: 3;
  pointer-events: none;
}
.tear--tall { height: 38px; }
.tear__fill--paper { fill: var(--p-paper); }
.tear__fill--ink { fill: var(--p-ink); }
.tear__fill--warm { fill: var(--p-warm); }
.tear__fill--accent { fill: var(--p-accent); }

/* =========================================================================
   7. Fit
   ========================================================================= */
.fit { padding: 88px 0 104px; }
.fit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.fit__col { display: flex; flex-direction: column; gap: 16px; }
.fit__col--no { color: var(--p-red); }
.fit__head { display: flex; align-items: center; gap: 20px; }
.fit__icon { object-fit: contain; display: block; }
.fit__icon--yes { width: 113px; height: 128px; }
.fit__icon--no { width: 89px; height: 124px; }
.fit__h2 {
  font-size: var(--fs-h2-small);
  line-height: var(--lh-h2-small);
  position: relative;
  display: inline-block;
}
.fit__accent { position: absolute; height: auto; }
.fit__accent--yes { left: -4px; bottom: -14px; width: 104%; }
.fit__accent--no { left: -2px; bottom: -8px; width: 102%; }
.fit__list { display: flex; flex-direction: column; gap: 12px; max-width: var(--measure-body); }
.fit__list--yes { color: var(--p-text2); }
.fit__list li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; }

/* =========================================================================
   8. How it works
   ========================================================================= */
.how {
  padding: 112px 0 104px;
  background: var(--p-ink);
  color: var(--p-paper);
  position: relative;
}
.how__stack { display: flex; flex-direction: column; gap: 36px; }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
.how__h2 { color: var(--p-paper); }
.how__accent-right { position: absolute; right: -20px; top: -18px; height: 72px; width: auto; }
.how__accent-left { position: absolute; left: 18px; top: -17px; height: 64px; width: auto; }
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--c-rule-on-ink);
}
.step {
  padding: 24px 0;
  border-bottom: 1px solid var(--c-rule-on-ink);
  color: var(--c-step-text);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;
  align-items: center;
}
.step__img { width: 140px; height: 140px; display: block; object-fit: contain; }
.step__title { color: var(--p-paper); letter-spacing: var(--ls-tight); }
.step__hl { color: var(--p-accent-ink); }
.how__note { color: var(--c-step-text); }

/* =========================================================================
   9. What I build
   ========================================================================= */
.build { padding: 112px 0 104px; position: relative; }
.build__wrap { display: flex; flex-direction: column; gap: 44px; }
.build__h2 { max-width: var(--measure-h2-build); }
.build__accent { position: absolute; left: -4%; top: -14%; width: 108%; height: 132%; z-index: -1; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card {
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--p-ink);
  background: var(--p-warm);
  border: var(--border);
  box-shadow: var(--shadow-4) var(--p-ink);
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-hover), box-shadow var(--dur-hover);
}
.card:hover {
  transform: translate(var(--hover-lift), var(--hover-lift));
  box-shadow: var(--shadow-6) var(--p-ink);
}
.card__well {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-bottom: var(--border);
  background: var(--p-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--p-text3);
}
.card__title { font-size: var(--fs-h3-card); line-height: var(--lh-h3-card); }
.card__text {
  font-size: var(--fs-card-body);
  line-height: var(--lh-card-body);
  color: var(--p-text2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* scroll reveal: main.js adds this at load and removes it when the card enters view */
.is-unrevealed { opacity: 0; transform: translateY(var(--reveal-offset)); }

/* modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--c-scrim);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.modal[hidden] { display: none; }
.modal__panel {
  position: relative;
  width: min(1040px, 100%);
  max-height: calc(100vh - 80px);
  background: var(--p-paper);
  color: var(--p-ink);
  border: var(--border);
  box-shadow: var(--shadow-10) var(--p-ink);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  overflow: hidden;
}
.modal__well {
  background: var(--p-warm);
  border-right: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  overflow: hidden;
}
.modal__img { display: block; width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: left top; }
.modal__body { padding: 44px 44px 40px; display: flex; flex-direction: column; gap: 20px; overflow: hidden; }
.modal__title { font-size: var(--fs-h3-modal); line-height: var(--lh-h3-modal); letter-spacing: var(--ls-h2); padding-right: 32px; }
.modal__text { color: var(--p-text2); }
.modal__aside {
  font-style: italic;
  font-size: var(--fs-card-body);
  color: var(--p-text3);
  border-top: 1px solid var(--p-ink);
  padding-top: 16px;
}
.modal__aside[hidden] { display: none; }
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: var(--p-paper);
  color: var(--p-ink);
  border: var(--border);
  box-shadow: var(--shadow-3) var(--p-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform var(--dur-hover), box-shadow var(--dur-hover);
}
.modal__close:hover {
  transform: translate(var(--hover-lift-sm), var(--hover-lift-sm));
  box-shadow: var(--shadow-4) var(--p-ink);
}

/* =========================================================================
   10. Proof
   ========================================================================= */
.proof { padding: 96px 0 104px; background: var(--p-warm); }
.proof__wrap { display: flex; flex-direction: column; gap: 52px; position: relative; }
.proof__top { display: flex; flex-direction: column; gap: 40px; }
.proof__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.proof__accent-right { position: absolute; top: -5px; height: 56px; width: auto; left: 2px; }
.proof__accent-left { position: absolute; left: 19px; top: -4px; height: 54px; width: auto; }
.proof__eyebrow {
  font-size: var(--fs-eyebrow-lg);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--k-teal);
  padding-bottom: 6px;
}
.proof__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: var(--border); }
.proof__item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-rule-proof);
  color: var(--p-text2);
}
.proof__num {
  font-weight: var(--fw-bold);
  font-size: var(--fs-numeral);
  letter-spacing: var(--ls-numeral);
  color: var(--p-red);
}
.proof__item strong { color: var(--p-ink); }
.quote { margin: 0; padding: 24px 0 0; max-width: 760px; display: flex; flex-direction: column; gap: 28px; }
.quote__box {
  position: relative;
  background: var(--c-white);
  border: var(--border);
  box-shadow: var(--shadow-6) var(--p-ink);
  padding: 40px 44px;
  width: 636px;
  height: 205px;
}
.quote__text { margin: 0; font-size: var(--fs-quote); line-height: var(--lh-quote); letter-spacing: var(--ls-h2); }
.quote__tail {
  position: absolute;
  left: 48px;
  bottom: -15px;
  width: 26px;
  height: 26px;
  background: var(--c-white);
  border-right: var(--border);
  border-bottom: var(--border);
  transform: rotate(45deg);
  box-shadow: var(--shadow-4) var(--p-ink);
}
.quote__cite { font-size: var(--fs-small); color: var(--p-text3); padding-left: 52px; }

/* =========================================================================
   11. What it costs
   ========================================================================= */
.cost { padding: 96px 0 104px; }
.cost__inner { max-width: var(--measure-prose); margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.cost__accent { position: absolute; left: -10%; top: -48%; width: 120%; height: 200%; z-index: -1; }
.prices { display: flex; flex-direction: column; border-top: 1px solid var(--p-ink); }
.price {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--p-ink);
}
.price__val { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.price__num {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-price);
  line-height: var(--lh-price);
  letter-spacing: var(--ls-price);
  font-variant-numeric: tabular-nums;
}
.price__val--plain {
  font-size: var(--fs-price);
  line-height: var(--lh-price);
  letter-spacing: var(--ls-price);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.price__num--soft { color: var(--c-price-soft); }
.price__num--softer { color: var(--c-price-softer); }
.price__note { font-size: var(--fs-meta); color: var(--c-footnote); line-height: var(--lh-meta); }
.cost__foot { font-size: var(--fs-small); color: var(--c-footnote); }

/* =========================================================================
   12. About
   ========================================================================= */
.about { padding: 96px 0 104px; background: var(--p-warm); }
.about__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
.about__copy { display: flex; flex-direction: column; gap: 24px; max-width: var(--measure-body); }
.about__p { color: var(--p-text2); }
.about__sub { font-size: var(--fs-label); color: var(--p-text3); }
.about__accent-inline { display: inline-block; height: 46px; width: 18px; margin-left: 8px; vertical-align: -6px; }
.about__accent-left { position: absolute; left: 5px; top: -27px; height: 58px; width: auto; }
.about__frame {
  border: var(--border);
  box-shadow: var(--shadow-4) var(--p-ink);
  background: var(--p-warm);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.about__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 26%; }

/* =========================================================================
   13. Build Lab
   ========================================================================= */
.lab { background: var(--p-accent); color: var(--p-on-accent); position: relative; }
.lab__wrap { padding: 104px var(--pad-narrow) 96px; }
.lab__grid { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: center; }
.lab__copy { display: flex; flex-direction: column; gap: 24px; max-width: var(--measure-lab); }
.lab__h2 { width: 554px; height: 89px; }
.lab__accent { position: absolute; left: 0; bottom: -20px; width: 100%; height: auto; z-index: -1; }
.lab__text { color: var(--p-on-accent); }
.lab__cover {
  display: block;
  width: 100%;
  height: auto;
  border: var(--border);
  box-shadow: var(--shadow-4) var(--p-ink);
  background: var(--p-paper);
}

/* =========================================================================
   14. Questions and close
   ========================================================================= */
.faq { padding: 128px 0 120px; position: relative; }
.faq__wrap { display: flex; flex-direction: column; gap: 96px; }
.faq__block { max-width: var(--measure-prose); display: flex; flex-direction: column; gap: 36px; }
.faq__accent { position: absolute; left: -2%; bottom: -22px; width: 104%; height: auto; z-index: -1; }
.faq__list { display: flex; flex-direction: column; border-top: 1px solid var(--p-ink); }
.faq__item {
  padding: 24px 0;
  border-bottom: 1px solid var(--p-ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.faq__q { font-weight: var(--fw-bold); }
.faq__a { color: var(--p-text2); }
.faq__a span { font-weight: var(--fw-regular); }
.close {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
  padding: 48px 0 72px;
}
.close__line {
  font-size: var(--fs-close);
  line-height: var(--lh-close);
  letter-spacing: var(--ls-close);
  max-width: var(--measure-close);
  width: 711px;
  height: 93px;
}
.close__accent { position: absolute; left: 0; bottom: -10px; width: 100%; height: auto; z-index: -1; }
.close__cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.close__alt { color: var(--p-text2); }

/* =========================================================================
   15. Footer
   ========================================================================= */
.footer { background: var(--p-ink); color: var(--p-paper); }
.footer__wrap {
  max-width: var(--wrap-narrow);
  margin: 0 auto;
  padding: 40px var(--pad-narrow) 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: var(--fs-small);
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__mark { width: 20px; height: auto; display: block; }
.footer__name { font-weight: var(--fw-bold); font-size: var(--fs-wordmark); letter-spacing: var(--ls-wordmark); }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; white-space: nowrap; }
.footer__links a { color: var(--p-paper); }
.footer__copy { color: var(--c-footer-muted); }

/* =========================================================================
   16. Contact page
   ========================================================================= */
.contact { flex: 1; padding: 88px var(--pad-wide) 120px; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 80px; align-items: start; }
.contact__copy { display: flex; flex-direction: column; gap: 40px; }
.contact__h1 {
  font-size: var(--fs-h1-contact);
  line-height: var(--lh-h1-contact);
  letter-spacing: var(--ls-h1);
  max-width: var(--measure-contact-h1);
}
.contact__lead { color: var(--p-text2); max-width: var(--measure-contact-p); }
.contact__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.contact__cta p { color: var(--p-text2); }
.contact__dl { display: flex; flex-direction: column; border-top: var(--border); margin-top: 8px; }
.contact__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--p-ink);
  align-items: baseline;
}
.contact__dt {
  font-size: var(--fs-eyebrow-lg);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--p-text3);
}
.contact__row dd a { color: var(--p-ink); }
.contact__row dd.text2 { color: var(--p-text2); }
.form {
  background: var(--p-warm);
  border: var(--border);
  box-shadow: var(--shadow-6) var(--p-ink);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form__head { display: flex; flex-direction: column; gap: 6px; }
.form__h2 { font-size: var(--fs-h2-form); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
.form__intro { font-size: var(--fs-small); color: var(--p-text2); }
.form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__field { display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-label); font-weight: var(--fw-bold); }
.form__input {
  border: var(--border);
  background: var(--p-paper);
  padding: 12px 14px;
  font-size: var(--fs-button);
  font-weight: var(--fw-regular);
  line-height: 1.3;
  width: 100%;
  box-sizing: border-box;
}
.form__input--textarea { line-height: 1.5; resize: vertical; min-height: 130px; }
.form__input--select { -webkit-appearance: none; appearance: none; }
.form__fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.form__legend { font-size: var(--fs-label); font-weight: var(--fw-bold); padding: 0; margin-bottom: 8px; }
.form__radios { display: flex; gap: 20px; font-size: var(--fs-small); }
.form__radio { display: flex; align-items: center; gap: 8px; }
.form__radio input { accent-color: var(--p-ink); width: 18px; height: 18px; margin: 0; }
.form__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 4px; }
.form__sent { font-size: var(--fs-small); color: var(--p-text2); }
.form__sent[hidden] { display: none; }
.form__hp { display: none; }
.btn:disabled { cursor: wait; opacity: .7; }

/* =========================================================================
   17. Breakpoints (900 tablet, 600 phone)
   The export shipped these paused ("Change 99999 → 900 / 600 to re-enable") and
   only covered the elements it tagged. Re-enabled here at the widths the note names,
   and extended to the parts the export never wrote rules for: the 3-column cards,
   the 2-column proof list, the fixed-width quote / Build Lab heading / closing line,
   the nowrap h1, the modal, and the nav at phone width.
   ========================================================================= */
@media (max-width: 900px) {
  .hero__grid, .fit__grid, .about__grid, .lab__grid, .contact__grid { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .hero__cta { flex-direction: column; align-items: flex-start; }
  .hero__h1 { white-space: normal; }
  .hero__img { margin: 0; max-height: 480px; }
  .step { grid-template-columns: 72px 1fr; gap: 16px; }
  .step .step__img { width: 72px; height: 72px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab__h2, .close__line { width: auto; height: auto; }
  .lab__cover { max-width: 380px; }
  .modal__panel { grid-template-columns: 1fr; overflow: auto; }
  .modal__well { border-right: 0; border-bottom: var(--border); min-height: 260px; }
  .modal__img { min-height: 260px; max-height: 320px; }
  .proof__head { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .about__frame { max-width: 480px; }
}
@media (max-width: 600px) {
  .hero, .fit, .how, .build, .proof, .cost, .about, .faq { padding-top: 56px; padding-bottom: 56px; }
  .wrap, .wrap--narrow { padding-left: 22px; padding-right: 22px; }
  .lab__wrap { padding: 56px 22px; }
  .footer__wrap { padding: 32px 22px 40px; }
  .contact { padding: 56px 22px 88px; }
  .hero__h1 { font-size: 34px; }
  .h2 { font-size: 28px; }
  .close__line { font-size: 30px; }
  .nav { gap: 12px; }
  .brand__mark { width: 40px; height: 43px; }
  .btn--sm { padding: 8px 12px; }
  .cards { grid-template-columns: 1fr; }
  .proof__list { grid-template-columns: 1fr; }
  .quote__box { width: auto; height: auto; padding: 24px; }
  .quote__text { font-size: 30px; }
  .quote__cite { padding-left: 32px; }
  .quote__tail { left: 28px; }
  .price__num, .price__val--plain { font-size: 36px; }
  .fit__grid, .about__grid, .lab__grid { gap: 40px; }
  .faq__wrap { gap: 56px; }
  .close { padding: 24px 0 40px; }
  .modal { padding: 16px; }
  .modal__panel { max-height: calc(100vh - 32px); }
  .modal__body { padding: 24px 24px 28px; }
  .modal__title { font-size: 24px; padding-right: 40px; }
  .form { padding: 24px; }
  .form__two { grid-template-columns: 1fr; }
  .contact__h1 { font-size: 34px; }
  /* phone: keep the hand-drawn brackets and strokes clear of the first letter */
  .proof__h2 { padding-left: 16px; }
  .proof__accent-left { left: 4px; top: -8px; height: 40px; }
  .proof__accent-right { height: 40px; top: -6px; }
  .about__h2 { padding-left: 14px; }
  .about__accent-left { left: 2px; top: -18px; height: 46px; }
}

/* =========================================================================
   18. Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .is-unrevealed { opacity: 1; transform: none; }
}
