/* AWE skin analysis landing page.
   Brand tokens: the 9/24 proposal palette (their brand board, warm half).
   Motion tokens: BLANK web brain MOTION-CONTRACT.md, copied exactly. */

@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/cormorant-400.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/cormorant-500.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("assets/fonts/cormorant-400i.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/montserrat-400.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/montserrat-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/montserrat-600.woff2") format("woff2"); }

:root {
  /* brand */
  --ground: #111506;
  --deep: #2f2b12;
  --forest: #1d3422;
  --olive: #4d5641;
  --sage: #838d6a;
  --pale: #c7d0cb;
  --taupe: #49433d;
  --tan: #dcb69f;
  --rust: #9a4d1f;
  --rust-deep: #7d3d17;
  --paper: #ece5dc;
  --paper-raised: #f4efe7;
  --ink: #2b2a20;
  --ink-soft: #645f52;
  --rule: rgba(43, 42, 32, 0.15);
  --rule-light: rgba(236, 229, 220, 0.22);
  --display: "Cormorant Garamond", Georgia, serif;
  --grotesque: "Montserrat", "Helvetica Neue", system-ui, sans-serif;

  /* durations */
  --d-instant: 150ms;
  --d-snap: 250ms;
  --d-brisk: 400ms;
  --d-sweep: 600ms;
  --d-measured: 900ms;
  --d-reveal: 1200ms;
  --d-curtain: 1400ms;
  --d-fill: 2000ms;
  --d-stroke: 3000ms;
  --d-cine-short: 1600ms;
  --d-cine-long: 2800ms;
  --d-cine-held: 4200ms;

  /* eases */
  --e-linear: cubic-bezier(0.25, 0.25, 0.75, 0.75);
  --e-out: cubic-bezier(0.215, 0.61, 0.355, 1);
  --e-sharp: cubic-bezier(0.165, 0.84, 0.44, 1);
  --e-glide: cubic-bezier(0.19, 1, 0.22, 1);
  --e-swing: cubic-bezier(0.77, 0, 0.175, 1);
  --e-signature: cubic-bezier(0.87, 0, 0.13, 1);
  --e-gentle: cubic-bezier(0.39, 0.575, 0.565, 1);
  --e-breath: cubic-bezier(0.32, 0, 0.36, 1);
  --e-ember: cubic-bezier(0.22, 1, 0.36, 1);
  --e-tide: cubic-bezier(0.65, 0, 0.35, 1);

  /* staggers */
  --s-tight: 50ms;
  --s-normal: 100ms;
  --s-wide: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
/* html carries the dark ground so the phone's status bar strip and the overscroll match the opener and footer */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--ground); }
/* Body is the dark ground too: Safari on iPhone tints the status bar strip from the body colour. main carries the paper. */
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--grotesque); font-size: 1rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ol { margin: 0; }
ol { padding: 0; list-style: none; }

main { background: var(--paper); }
.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
section { padding-block: clamp(4rem, 9vw, 7.5rem); }

h2 { font-family: var(--grotesque); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; color: var(--forest); }
h3 { font-family: var(--grotesque); font-weight: 600; font-size: 1rem; letter-spacing: 0.01em; }
.eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; }
.fine { font-size: 0.8rem; color: var(--ink-soft); }

/* Buttons. Rust is the one accent on the page and it lives here. */
.btn { display: inline-block; background: var(--rust); color: var(--paper-raised); font-family: var(--grotesque); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; padding: 1.15rem 2rem; border: 0; border-radius: 2px; cursor: pointer; transition: background-color var(--d-snap) var(--e-out), transform var(--d-snap) var(--e-out); }
.btn:hover { background: var(--rust-deep); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }
.btn--full { width: 100%; }
.btn--small { padding: 0.8rem 1.1rem; font-size: 0.72rem; }

/* Reveals: section heads, media and tiles only. Body copy stays still. */
/* Hidden only when JS is running, so the page is complete without it. The opener never waits on JS. */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity var(--d-reveal) var(--e-out), transform var(--d-reveal) var(--e-out); transition-delay: calc(var(--i, 0) * var(--s-normal)); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* 1. OPENER */
.opener { position: relative; background: var(--ground); color: var(--paper); padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(3.5rem, 7vw, 6rem); }
.opener__grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.mark { display: inline-block; width: clamp(7.5rem, 12vw, 10rem); margin-bottom: clamp(2rem, 5vw, 4rem); }
.opener .eyebrow { color: var(--sage); margin-bottom: 1.4rem; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(3.2rem, 9vw, 6.25rem); line-height: 0.98; letter-spacing: -0.015em; margin-bottom: 1.8rem; }
h1 em { font-style: italic; color: var(--tan); }
.deck { font-size: clamp(1.02rem, 1.5vw, 1.15rem); max-width: 34rem; }
.deck--soft { color: var(--pale); margin-top: 1rem; }
.opener__ask { margin-top: 2.4rem; }
.assure { margin-top: 1rem; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--sage); }
.opener__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.opener__media figcaption, .witness__media figcaption { margin-top: 0.7rem; font-size: 0.75rem; letter-spacing: 0.06em; color: var(--sage); }

/* 2. INLINE FORM */
.request { background: var(--paper); }
.request__grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.request__intro p { margin-top: 1rem; max-width: 26rem; color: var(--ink-soft); }
.person { display: flex; align-items: center; gap: 1rem; margin-top: 2.2rem; }
.person img { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; }
.person figcaption { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.5; }
.person strong { display: block; font-weight: 600; color: var(--ink); }
.form, .form__done { background: var(--paper-raised); border: 1px solid var(--rule); padding: clamp(1.5rem, 3.5vw, 2.6rem); }
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
.form label { display: grid; gap: 0.4rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form select { width: 100%; font: 400 1rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0; text-transform: none; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 2px; padding: 0.85rem 0.9rem; transition: border-color var(--d-snap) var(--e-out); }
.form input:hover, .form select:hover { border-color: var(--olive); }
.form [aria-invalid="true"] { border-color: var(--rust); }
.form .consent { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; font-size: 0.8rem; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.5; }
.consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; accent-color: var(--forest); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__error { color: var(--rust); font-size: 0.85rem; }
.form__done h3 { font-family: var(--display); font-weight: 400; font-size: 2.2rem; text-transform: none; letter-spacing: 0; color: var(--forest); }
.form__done p { margin-top: 0.6rem; }

/* 3. STEPPED PROCESS */
.steps { background: var(--paper-raised); }
.steps__grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); }
.steps__list { position: relative; display: grid; gap: 2.4rem; padding-left: 3.4rem; }
.steps__list::before { content: ""; position: absolute; left: 1.05rem; top: 0.4rem; bottom: 0.4rem; width: 1px; background: var(--olive); transform-origin: top; }
.steps__list li { position: relative; }
.steps .n { position: absolute; left: -3.4rem; top: -0.45rem; width: 2.15rem; height: 2.15rem; display: grid; place-items: center; background: var(--paper-raised); font-family: var(--display); font-size: 1.9rem; font-variant-numeric: lining-nums; line-height: 1; color: var(--olive); }
.steps h3 { font-size: 1.05rem; color: var(--forest); }
.steps p { margin-top: 0.35rem; max-width: 34rem; color: var(--ink-soft); }
/* The one Tier 2: the rule draws as the list scrolls through. Transform only, no scroll listener. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps__list::before { animation: rule-draw var(--e-linear) both; animation-timeline: view(); animation-range: entry 20% cover 55%; }
  }
}
@keyframes rule-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* 4. BENTO */
.looks h2 { margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.bento { display: grid; gap: 0.9rem; }
.tile { background: var(--paper-raised); border: 1px solid var(--rule); padding: clamp(1.4rem, 2.6vw, 2rem); display: flex; flex-direction: column; justify-content: flex-end; min-height: 9.5rem; }
.tile h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.1; letter-spacing: 0; color: var(--forest); }
.tile p { margin-top: 0.4rem; color: var(--ink-soft); font-size: 0.95rem; }
.tile--lead { padding: 0; justify-content: flex-start; }
.tile--lead img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tile--lead div { padding: clamp(1.4rem, 2.6vw, 2rem); }
.tile--dark { background: var(--forest); border-color: var(--forest); }
.tile--dark h3 { color: var(--paper); }
.tile--dark p { color: var(--pale); }

/* 5. WITNESS */
.witness { background: var(--paper-raised); }
.witness__grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.witness__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.witness__media figcaption { color: var(--ink-soft); }
.witness__type p { margin-top: 1.1rem; max-width: 32rem; color: var(--ink-soft); }
.witness blockquote { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); font-family: var(--display); font-style: italic; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; color: var(--olive); max-width: 22ch; }

/* 6. ACCORDION */
.faq__grid { display: grid; gap: clamp(1.5rem, 4vw, 4.5rem); }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; font-weight: 500; transition: color var(--d-snap) var(--e-out); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--olive); transition: transform var(--d-snap) var(--e-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--forest); }
.faq details p { padding-bottom: 1.4rem; max-width: 36rem; color: var(--ink-soft); }

/* 7. SINGLE ASK */
.ask { background: var(--forest); color: var(--paper); text-align: center; padding-block: clamp(5rem, 12vw, 9.5rem); }
.ask h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5.5vw, 3.6rem); line-height: 1.08; color: var(--paper); max-width: 18ch; margin: 0 auto 2.4rem; }

/* FOOTER */
.foot { background: var(--ground); color: var(--pale); padding-block: 2.5rem 6rem; font-size: 0.85rem; }
.foot__grid { display: grid; gap: 1.2rem; }
.foot strong { color: var(--paper); font-weight: 600; }
.foot .fine { color: var(--sage); }

/* STICKY ASK, phones only */
.sticky { position: fixed; inset: auto 0 0 0; z-index: 20; display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px)); background: var(--ground); color: var(--paper); font-size: 0.8rem; transform: translateY(105%); transition: transform var(--d-sweep) var(--e-glide); }
.sticky.is-up { transform: none; }
.sticky span { flex: 1; min-width: 0; }
.sticky__x { background: none; border: 0; color: var(--sage); font: inherit; font-size: 0.72rem; text-decoration: underline; cursor: pointer; padding: 0.4rem 0; }

.draft-flag { position: fixed; top: 0.5rem; right: 0.5rem; z-index: 30; background: var(--tan); color: var(--ink); font-size: 0.55rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.35rem 0.6rem; border-radius: 2px; }

/* Single column until lg, then asymmetric spans (5/7, 4/8), never 6/6. */
@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; }
  .form__row--uneven { grid-template-columns: 1fr 2fr; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile { grid-column: span 3; }
  .tile--lead { grid-column: span 6; }
  .tile--wide { grid-column: span 4; }
  .tile--dark { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .opener__grid { grid-template-columns: 7fr 5fr; }
  .request__grid { grid-template-columns: 5fr 7fr; }
  .steps__grid { grid-template-columns: 4fr 8fr; }
  .witness__grid { grid-template-columns: 5fr 7fr; }
  .faq__grid { grid-template-columns: 4fr 8fr; }
  .foot__grid { grid-template-columns: 7fr 5fr; align-items: end; }
  .foot { padding-bottom: 2.5rem; }
  .bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(10.5rem, auto); }
  .tile { grid-column: span 5; }
  .tile--lead { grid-column: 1 / span 7; grid-row: span 2; }
  .tile--wide { grid-column: 1 / span 8; }
  .tile--dark { grid-column: span 4; }
  .sticky { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .sticky { transition: none; }
}
