/* Hallmark · shape: The Thread (content trades sides against Pam's S) · genre: editorial · theme: custom · job: hire · idea: "Pam threads an S down the page and every section steps aside to let her pass" · vibe: "shirt-print pink on burgundy, warm, decisive"
 * paper: oklch(31% 0.105 2) · accent: oklch(81% 0.105 350) · display: Archivo (condensed 800, upper) · body: Onest · hero: headline left, live 3D Pam right who then roams the page in an S on scroll · nav: wordmark left, three links right · footer: mark and wordmark over links, place and year · imagery: none, Pam rendered live, the real Pam app icon on the venture · signature: Pam, furry and blinking, weaving behind the words as you scroll
 * axes: dark/grotesk-heavy/chromatic-pink · posture: dark, two-colour print · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P3 H3 E3 S3 R2 V3 · weakest: R (thin material, no photos by request), carried by Pam live and type set large */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --measure: 34rem;
  --nav-h: 76px;
  --text-hero: clamp(3rem, 7.2vw + 0.5rem, 7.5rem);
  --text-statement: clamp(2.5rem, 5.6vw + 0.5rem, 6.25rem);
  --text-venture: clamp(5rem, 16vw, 15rem);
  --radius-control: 999px;
}

html { background: var(--color-paper); scroll-padding-top: calc(var(--nav-h) + var(--space-lg)); }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; position: relative; z-index: var(--z-raised); }

/* display voice: the shirt print */
.display, h1, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 78%;
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  line-height: 1;
  color: var(--color-accent);
}
h3 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-title); line-height: 1.2; color: var(--color-ink); }

/* ---------- Pam's stage */
.pam-stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.pam-stage canvas { display: block; width: 100%; height: 100%; }
.pam-roams .pam-stage--roam { position: fixed; inset: 0; z-index: 0; }

/* ---------- nav */
.skip { position: absolute; left: var(--space-md); top: -100px; z-index: var(--z-modal); background: var(--color-accent); color: var(--color-accent-ink); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-control); }
.skip:focus-visible { top: var(--space-md); }
.nav { position: relative; z-index: var(--z-sticky-nav); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); text-decoration: none; color: var(--color-accent); border-radius: var(--radius-card); }
.brand img { width: 36px; height: 36px; }
.brand span { font-family: var(--font-display); font-weight: 800; font-stretch: 78%; text-transform: uppercase; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1; }
.nav__links { display: flex; align-items: center; gap: var(--space-xs); list-style: none; margin: 0; padding: 0; }
.nav__links a { display: inline-block; padding: var(--space-xs) var(--space-sm); color: var(--color-ink); text-decoration: none; border-radius: var(--radius-control); transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.nav__links a:hover { background: var(--color-paper-3); }
.nav__links a[aria-current="page"] { color: var(--color-accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
@media (max-width: 30rem) { .brand span { display: none; } .nav__links a { padding-inline: var(--space-xs); } }

/* ---------- buttons and links */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 52px; padding: 0 var(--space-lg);
  background: var(--color-accent); color: var(--color-accent-ink);
  font-weight: 600; text-decoration: none; border: 0; border-radius: var(--radius-control); cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.button:hover { background: var(--color-ink); }
.button:active { transform: scale(0.97); }
.button:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.button[disabled], .button[aria-busy="true"] { background: var(--color-paper-3); color: var(--color-muted); cursor: not-allowed; transform: none; }
.button[aria-busy="true"] { cursor: progress; }
.link { color: var(--color-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; text-decoration-color: var(--color-accent); transition: color var(--dur-short) var(--ease-out); }
.link:hover { color: var(--color-accent); }
.link:active { opacity: 0.7; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-xl); }

/* ---------- the thread: sections take one side */
.beat { position: relative; padding-block: var(--section-gap); }
.beat__body { display: grid; gap: var(--space-lg); max-width: 40rem; }
.beat--right .beat__body { margin-left: auto; }
.beat--wide .beat__body { max-width: 62rem; }
.lead { font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); max-width: var(--measure); }

/* hero */
.hero { position: relative; min-height: calc(100svh - var(--nav-h)); display: grid; align-items: center; padding-block: var(--space-2xl); }
.hero__body { display: grid; gap: var(--space-xl); max-width: 46rem; }
.hero h1 { font-size: var(--text-hero); }
.hero .lead { max-width: 28rem; }
@media (max-width: 52rem) {
  .hero { align-items: start; padding-top: var(--space-xl); min-height: auto; padding-bottom: 46svh; }
}

/* what we do: two practices */
.practices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); margin-top: var(--space-md); }
.practice { display: grid; gap: var(--space-sm); padding-top: var(--space-lg); border-top: 2px solid var(--color-accent); }
.practice p { color: var(--color-ink-2); }
@media (max-width: 40rem) { .practices { grid-template-columns: minmax(0, 1fr); } }
.section-head { font-size: var(--text-section); }

/* the venture */
.venture { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: var(--space-xl); align-items: center; }
.venture__icon { width: clamp(120px, 16vw, 200px); aspect-ratio: 1; border-radius: 22.5%; overflow: hidden; box-shadow: var(--shadow-icon); }
.venture__icon img { width: 100%; height: 100%; object-fit: cover; }
.venture__name { font-size: var(--text-venture); line-height: 1; }
.venture__copy { display: grid; gap: var(--space-md); grid-column: 1 / -1; max-width: 36rem; }
.tag { justify-self: start; display: inline-block; padding: var(--space-2xs) var(--space-sm); border: 1px solid var(--color-accent); border-radius: var(--radius-control); color: var(--color-accent); font-size: var(--text-sm); }
@media (max-width: 40rem) { .venture { grid-template-columns: minmax(0, 1fr); } }

/* the statement */
.statement { font-size: var(--text-statement); max-width: 15ch; }
.beat--right .statement { margin-left: auto; text-align: right; }

/* closing call */
.call { display: grid; gap: var(--space-xl); justify-items: start; max-width: 40rem; }
.beat--right .call { margin-left: auto; }
.call h2 { font-size: var(--text-statement); max-width: 12ch; }

/* ---------- inner pages */
.page-head { padding-block: var(--space-3xl) var(--space-2xl); display: grid; gap: var(--space-lg); }
.beat--flush { padding-top: 0; }
.page-head--lost { min-height: 60vh; align-content: center; }
.page-head h1 { font-size: var(--text-display); max-width: 14ch; }
.prose { display: grid; gap: var(--space-md); max-width: 40rem; padding-bottom: var(--section-gap); color: var(--color-ink-2); }
.prose h2 { font-size: var(--text-2xl); margin-top: var(--space-xl); color: var(--color-accent); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--space-xs); }
.prose a { color: var(--color-ink); text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }
.prose a:hover { color: var(--color-accent); }
.fine { font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- form */
.form { display: grid; gap: var(--space-lg); max-width: 36rem; padding-bottom: var(--section-gap); }
.field { display: grid; gap: var(--space-xs); }
.field label { font-weight: 600; color: var(--color-ink); }
.field .hint { font-size: var(--text-sm); color: var(--color-muted); }
.field input, .field textarea {
  width: 100%; padding: var(--space-sm) var(--space-md);
  background: var(--color-paper-2); color: var(--color-ink);
  border: 1px solid var(--color-rule); border-radius: var(--radius-card);
  transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--color-muted); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-accent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--color-error); }
.field input:disabled, .field textarea:disabled { background: var(--color-paper-3); color: var(--color-muted); border-style: dashed; cursor: not-allowed; }
.field .error { font-size: var(--text-sm); color: var(--color-error); }
.field .error:empty { display: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: var(--space-md); border-radius: var(--radius-card); border: 1px solid currentColor; }
.form-status[data-kind="ok"] { color: var(--color-success); }
.form-status[data-kind="error"] { color: var(--color-error); }
.form-status:empty { display: none; }

/* ---------- footer */
.footer { position: relative; z-index: var(--z-raised); border-top: 1px solid var(--color-rule); padding-block: var(--space-2xl) var(--space-xl); background: var(--color-paper); color: var(--color-ink); }
.footer__inner { display: grid; gap: var(--space-xl); }
.footer__mast { display: flex; align-items: center; gap: var(--space-md); }
.footer__mast img { width: 56px; height: 56px; }
.footer__mast span { font-family: var(--font-display); font-weight: 800; font-stretch: 78%; text-transform: uppercase; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; color: var(--color-accent); letter-spacing: var(--tracking-display); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-lg); align-items: end; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); list-style: none; margin: 0; padding: 0; }
.footer__links a { color: var(--color-ink-2); text-decoration: none; border-radius: var(--radius-card); transition: color var(--dur-short) var(--ease-out); }
.footer__links a:hover { color: var(--color-accent); text-decoration: underline; }
.footer small { color: var(--color-muted); font-size: var(--text-sm); }

/* ---------- the one reveal: hero entrance on load */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__body > * { animation: rise var(--dur-long) var(--ease-out) both; }
  .js .hero__body > :nth-child(2) { animation-delay: 90ms; }
  .js .hero__body > :nth-child(3) { animation-delay: 180ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
