/* Updraft landing page.
   Tokens come from Iris's C4 · Marker + Ember board (design canvas, Oct 2026).
   TODO(brand): replace with Iris's Design System tokens once the brand guidelines are final.
   Two additions approved on the page by Viv, Oct 22, pending Iris: --text-on-dark-muted and
   yellow (--mark) used as a text colour on dark backgrounds. */

@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader.woff') format('woff');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('../fonts/hanken-grotesk.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Primitives */
  --paper: #fcfaf7;
  --sand: #f5f0ea;
  --ink: #1b1b1b;
  --ink-body: #3e3a36;
  --ink-muted: #5c5752;
  --line: #e3dcd2;
  --ember: #b4431b;
  --mark: #ffd24d;
  --sky-tint: #eadbc6;
  --white: #ffffff;
  --on-dark-body: #d6d6d6;
  --on-dark-muted: #a39d96;
  --on-dark-line: #3a3a3a;

  /* Semantics */
  --surface: var(--paper);
  --surface-alt: var(--sand);
  --text: var(--ink);
  --text-body: var(--ink-body);
  --text-muted: var(--ink-muted);
  --action: var(--ember);
  --on-action: var(--white);
  --band: var(--ink);

  /* Type */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --max: 1200px;
  --gutter: 40px;
  --radius: 8px;
  --radius-card: 16px;
  --radius-band: 18px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
}
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 500; text-wrap: balance; }
img { max-width: 100%; display: block; }
a { color: var(--action); }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--text); color: var(--white); padding: 12px 16px; border-radius: var(--radius); }
.skip:focus { top: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.h2 { font-size: 44px; line-height: 1.1; }
.muted { color: var(--text-muted); }
.mark { background: linear-gradient(transparent 58%, var(--mark) 58%); padding: 0 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; min-height: 44px;
  background: var(--action); color: var(--on-action); text-decoration: none;
  padding: 12px 20px; border-radius: var(--radius); font-weight: 600; font-size: 15px;
}
.btn:hover { background: #9c3815; }
.btn--lg { padding: 18px 30px; font-size: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.reassure { font-size: 15px; color: var(--text-muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }

/* Hero */
.hero { display: flex; flex-direction: column; gap: 28px; padding-top: 80px; padding-bottom: 88px; }
.strap { font-size: 18px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--action); }
.hero h1 { font-size: clamp(48px, 8vw, 104px); line-height: 1.02; letter-spacing: -0.02em; }
.hero h1 .sweep { background-repeat: no-repeat; background-size: 0% 100%; animation: sweep 900ms 400ms cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes sweep { to { background-size: 100% 100%; } }
.hero-sub { max-width: 640px; font-size: 21px; color: var(--text-body); }

/* Proof strip */
.proof { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof .wrap { display: flex; flex-direction: column; gap: 18px; padding-top: 32px; padding-bottom: 32px; }
.proof-line { font-family: var(--font-display); font-size: 24px; line-height: 1.3; }
.logos { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.logos img { height: var(--h); width: auto; opacity: 0.38; }

/* Dark problem band */
.band-dark { position: relative; overflow: hidden; background: var(--band); color: var(--white); }
.band-dark svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.band-dark .wrap { position: relative; display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; padding-top: 72px; padding-bottom: 80px; }
.band-dark h2 { flex: 1 1 560px; min-width: 0; font-size: 46px; line-height: 1.08; letter-spacing: -0.01em; }
.band-dark h2 span { color: var(--mark); }
.band-dark p { flex: 1 1 320px; min-width: 0; padding-top: 16px; border-top: 2px solid var(--mark); color: var(--on-dark-body); font-size: 19px; line-height: 1.5; }

/* Sections */
.sec { padding-top: 96px; padding-bottom: 96px; }
.sec--tight { padding-top: 72px; padding-bottom: 72px; }

/* What we do */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 20px; margin-top: 56px; }
.card { background: var(--surface-alt); border-radius: var(--radius-card); padding: 32px; min-height: 240px; display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--action); }
.card-proof { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.3; }
.card-claim { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text-body); font-weight: 500; }

/* How we work */
.how { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how h2 { margin-bottom: 48px; }
.rise { position: relative; }
.rise svg { position: absolute; left: 0; top: 0; width: 100%; height: 200px; overflow: visible; }
.rise path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1600ms cubic-bezier(.3,.6,.2,1); }
.rise.is-risen path { stroke-dashoffset: 0; }
.steps { position: relative; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step:nth-child(1) { margin-top: 160px; }
.step:nth-child(2) { margin-top: 120px; }
.step:nth-child(3) { margin-top: 80px; }
.step:nth-child(4) { margin-top: 40px; }
.step-num { width: 48px; height: 48px; border-radius: 999px; background: var(--surface); border: 3px solid var(--mark); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.step:last-child .step-num { background: var(--mark); }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1; }
.step p { color: var(--text-body); font-size: 15px; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 13px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-muted); }

/* Team */
.team-head { display: flex; flex-wrap: wrap; gap: 16px 64px; align-items: flex-end; margin-bottom: 48px; }
.team-head h2 { flex: 1 1 380px; }
.team-head p { flex: 1 1 460px; color: var(--text-body); font-size: 21px; line-height: 1.4; }
.bios { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 40px 56px; }
.bio { display: flex; flex-direction: column; gap: 18px; border-top: 1px solid var(--line); padding-top: 28px; }
.bio-head { display: flex; align-items: center; gap: 20px; }
.bio-head img { flex: none; width: 112px; height: 112px; border-radius: 999px; object-fit: cover; }
.bio h3 { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.1; }
.bio-loc { font-size: 15px; color: var(--text-muted); margin-top: 6px; }
.bio-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; }
.bio p { color: var(--text-body); }

/* Offer */
.offer { background: var(--band); color: var(--white); border-radius: var(--radius-band); padding: 56px; display: flex; flex-wrap: wrap; gap: 40px 56px; }
.offer-main { flex: 1 1 480px; display: flex; flex-direction: column; gap: 18px; }
.offer h2 { font-size: 48px; line-height: 1.05; }
.offer-lead { font-size: 21px; line-height: 1.4; }
.offer .reassure { color: var(--on-dark-body); }
.offer-list { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.offer-list h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mark); }
.offer-list ul { list-style: none; padding: 0; }
.offer-list li { padding: 12px 0; border-top: 1px solid var(--on-dark-line); }
.offer-list li:last-child { border-bottom: 1px solid var(--on-dark-line); }
.then { margin-top: 20px; background: var(--surface-alt); border-radius: var(--radius-band); padding: 48px 56px; display: flex; flex-direction: column; gap: 36px; }
.then-head { display: flex; flex-wrap: wrap; gap: 16px 56px; align-items: flex-start; }
.then h3 { flex: 1 1 320px; font-family: var(--font-display); font-weight: 500; font-size: 40px; line-height: 1.1; }
.then p { flex: 1 1 460px; color: var(--text-body); font-size: 19px; }
.blocks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.block { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.block:last-child { opacity: 0.45; }
.block-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.block-bar span { height: 14px; background: var(--ink); }
.block-bar span:first-child { background: var(--mark); border-radius: 999px 0 0 999px; }
.block-bar span:last-child { border-radius: 0 999px 999px 0; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--text-body); }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 22px; height: 10px; border-radius: 999px; background: var(--ink); }
.legend i.y { background: var(--mark); }

/* Fit */
.fit { display: flex; flex-direction: column; gap: 40px; }
.fit h2 { max-width: 780px; }
.fit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 20px; }
.fit-for { background: var(--mark); color: var(--ink); border-radius: var(--radius-band); padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.fit-not { border: 1.5px solid var(--line); border-radius: var(--radius-band); padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.fit-label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.fit-not .fit-label { color: var(--text-muted); }
.fit-for p:first-of-type { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.3; }
.fit-for p:last-of-type { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(27,27,27,0.2); font-size: 19px; font-weight: 500; }
.fit-not ul { list-style: none; padding: 0; }
.fit-not li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text-body); font-size: 19px; }
.fit-not li:last-child { border-bottom: 1px solid var(--line); }
.fit-not svg { flex: none; }

/* FAQ */
.faq h2 { margin-bottom: 32px; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); column-gap: 56px; align-items: start; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 19px; min-height: 44px; display: flex; align-items: center; }
.faq details p { margin-top: 12px; color: var(--text-body); }

/* Closing */
.closing { position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.closing .sky { position: absolute; inset: 0; background: url('../img/sky.webp') center bottom / cover no-repeat; }
.closing .tint { position: absolute; inset: 0; background: var(--sky-tint); mix-blend-mode: multiply; }
.closing .wash { position: absolute; inset: 0; background: var(--surface); opacity: 0.72; }
.closing .wrap { position: relative; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; padding-top: 104px; padding-bottom: 128px; }
.closing h2 { max-width: 820px; font-size: clamp(40px, 5.5vw, 64px); line-height: 1.08; }
.closing p { max-width: 620px; color: var(--text-body); font-size: 19px; }
.closing .reassure { color: var(--text-body); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; padding-top: 32px; padding-bottom: 32px; font-size: 15px; color: var(--text-muted); }
.site-footer .logo { font-size: 20px; }
.credit { font-size: 13px; }

/* Phone */
@media (max-width: 960px) {
  .rise svg { display: none; }
  .step:nth-child(n) { margin-top: 0; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .wrap { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
  .strap { font-size: 14px; }
  .hero { padding-top: 44px; padding-bottom: 52px; gap: 20px; }
  .hero-sub { font-size: 19px; }
  .logos { justify-content: flex-start; gap: 18px 28px; }
  .logos img { height: calc(var(--h) * 0.85); }
  .sec, .sec--tight { padding-top: 56px; padding-bottom: 56px; }
  .h2, .band-dark h2 { font-size: 34px; }
  .band-dark .wrap { padding-top: 56px; padding-bottom: 56px; }
  .card { padding: 24px; min-height: 0; }
  .card-proof, .fit-for p:first-of-type { font-size: 22px; }
  .offer { padding: 32px 24px; }
  .offer h2 { font-size: 34px; }
  .then { padding: 24px; }
  .then h3 { font-size: 30px; }
  .fit-for, .fit-not { padding: 24px; }
  .closing .wrap { padding-top: 64px; padding-bottom: 72px; }
  .bio-head img { width: 88px; height: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 .sweep { animation: none; background-size: 100% 100%; }
  .rise path { transition: none; stroke-dashoffset: 0; }
}
