/* Dalton Shooks site styles
   Visual direction: Touchy Coffee style reference (styles.refero.design), with colors from Cherry LA
   (studio putty, dusty denim, saddle, faded cherry, espresso) and the sage band kept.
   Full-bleed painted section bands, warm ink, cream card surfaces,
   one monospaced typeface, 100px pills for controls, 20px radius for cards.
   No shadows, no gradients, no icon sets. Mobile first. */

/* Self-hosted IBM Plex Mono (SIL Open Font License), latin subset */
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: italic; font-weight: 700; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-700-italic.woff2") format("woff2"); }

:root {
  /* Colors: Cherry LA inspired, sage kept */
  --color-ink: #201d1c;      /* warm near-black: text, borders, filled pills */
  --color-cream: #fffbf6;    /* card surfaces, pills, text on dark bands */
  --color-putty: #b9a89a;    /* studio putty: slider track */
  --color-sage: #788c8c;     /* "Sound familiar" and FAQ bands */
  --color-linen: #f3ead9;    /* How it works band, folder tab */
  --color-denim: #8f94a5;    /* What you get band */
  --color-saddle: #a38a73;   /* About band */
  --color-cherry: #7c3e29;   /* faded cherry: hero and Book bands (bookends) with cream text (7.9:1), small accents */
  --color-espresso: #241a12; /* footer and ticker */
  --color-ochre: #d9b46a;    /* TODO markers only */

  /* Typography: one monospaced family everywhere */
  --font-mono: "IBM Plex Mono", "Apercu Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-body: 1.125rem;      /* 18px */
  --text-subheading: 1.25rem; /* 20px */
  --text-heading-sm: 1.5rem;  /* 24px */
  --text-display: clamp(2rem, 1.2rem + 3.6vw, 3.75rem); /* 32px to 60px */
  --text-hero: clamp(2.125rem, 1rem + 5vw, 4.75rem);    /* 34px to 76px */
  --leading-tight: 1.2;
  --leading-body: 1.5;

  /* Spacing (4px base) */
  --space-20: 20px;
  --space-40: 40px;
  --space-60: 60px;
  --space-80: 80px;
  --space-100: 100px;
  --space-140: 140px;

  /* Shapes */
  --radius-card: 20px;
  --radius-pill: 100px;
  --border: 1px solid var(--color-ink);

  /* Layout */
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --content-max: 1120px;
  --nav-pill-h: 44px;

  /* Paper grain: tiled fractal noise as speckles of ink at low opacity */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.42 -0.17'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23g%29'/%3E%3C/svg%3E");
  --anchor-offset: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
/* keep keyboard focus clear of the fixed corner links */
@media (min-width: 1024px) { html { scroll-padding-bottom: 220px; } }
body {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-ink);
  background: var(--color-sage);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
strong { font-weight: 700; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--color-ink);
  outline-offset: 3px;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -200px;
  z-index: 100; padding: 10px 20px;
  background: var(--color-ink); color: var(--color-cream);
  border-radius: var(--radius-pill); text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Pills and buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--nav-pill-h);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: var(--border);
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.02em;
  background: var(--color-ink); color: var(--color-cream);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.pill:hover { background: var(--color-cream); color: var(--color-ink); }
.pill:active { transform: scale(0.98); }
.pill--ghost { background: transparent; color: var(--color-ink); }
.pill--ghost:hover { background: var(--color-ink); color: var(--color-cream); }
.pill--lg { font-size: var(--text-subheading); padding: 16px 28px; min-height: 56px; }
.tag {
  display: inline-block; padding: 6px 14px;
  border: var(--border); border-radius: var(--radius-pill);
  font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  line-height: 1.2;
}
/* Larger pill used as the "Sound familiar?" heading */
.section-head .tag--lg { line-height: 1.2; font-size: clamp(1.125rem, 0.9rem + 1vw, 1.5rem); padding: 10px 22px; letter-spacing: 0.03em; }
/* Quiet subheading above the Yes / Not for you cards */
.fit__title {
  font-size: var(--text-heading-sm); line-height: var(--leading-tight); font-weight: 700;
  margin-bottom: var(--space-20);
}
.text-link {
  font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px;
}
.text-link:hover { text-decoration-thickness: 3px; }

/* ---------- Corner navigation ---------- */
.nav {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  padding-left: var(--gutter); padding-right: var(--gutter-r);
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
}
.nav > * { pointer-events: auto; position: absolute; }
.nav__name { top: max(12px, env(safe-area-inset-top, 0px)); left: var(--gutter); }
.nav__book { top: max(12px, env(safe-area-inset-top, 0px)); right: var(--gutter-r); }
.nav__links {
  display: none;
  left: var(--gutter); bottom: max(20px, env(safe-area-inset-bottom, 0px));
  flex-direction: column; align-items: flex-start; gap: 6px;
}
.nav__links a {
  display: inline-block; padding: 6px 14px;
  border-radius: var(--radius-pill); border: var(--border);
  background: var(--color-cream); color: var(--color-ink);
  text-decoration: none; text-transform: uppercase; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em;
  transition: background-color 160ms ease, color 160ms ease;
}
.nav__links a:hover, .nav__links a[aria-current="true"] { background: var(--color-ink); color: var(--color-cream); }
/* Over dark bands the corner pills flip to cream */
.nav.is-on-dark .nav__name, .nav.is-on-dark .nav__menu, .nav.is-on-dark .nav__book { background: var(--color-cream); color: var(--color-ink); }
.nav.is-on-dark .nav__name:hover, .nav.is-on-dark .nav__menu:hover, .nav.is-on-dark .nav__book:hover { background: var(--color-ink); color: var(--color-cream); border-color: var(--color-cream); }
/* Phones: Menu pill top-left with a panel of section links */
.nav__menu { display: none; top: max(12px, env(safe-area-inset-top, 0px)); left: var(--gutter); }
.nav__panel {
  top: calc(max(12px, env(safe-area-inset-top, 0px)) + var(--nav-pill-h) + 8px);
  left: var(--gutter); right: var(--gutter-r);
  display: grid; padding: 6px 18px;
  background: var(--color-cream); color: var(--color-ink);
  border: var(--border); border-radius: var(--radius-card); overflow: hidden;
}
.nav__panel[hidden] { display: none; }
.nav__panel a {
  display: flex; align-items: center; min-height: 52px;
  text-decoration: none; text-transform: uppercase; font-weight: 700; font-size: 1.125rem; letter-spacing: 0.04em;
  border-top: var(--border);
}
.nav__panel a:first-child { border-top: 0; }
.nav__panel a[aria-current="true"]::after { content: ""; width: 10px; height: 10px; margin-left: 12px; border-radius: 50%; background: var(--color-cherry); }
@media (max-width: 1023px) {
  .nav__name { display: none; }
  .nav__menu { display: inline-flex; }
}
@media (min-width: 1024px) {
  .nav__panel { display: none !important; }
}
@media (min-width: 1024px) {
  .nav__links { display: flex; }
}
@media (max-width: 420px) {
  .pill { font-size: 0.875rem; padding: 9px 16px; min-height: 40px; }
  .nav__name { max-width: 46vw; }
}

/* ---------- Bands and containers ---------- */
.band {
  padding-block: var(--space-80);
  padding-left: var(--gutter); padding-right: var(--gutter-r);
  scroll-margin-top: var(--anchor-offset);
}
.band--putty { background: var(--color-putty); }
.band--sage { background: var(--color-sage); }
.band--linen { background: var(--color-linen); }
.band--denim { background: var(--color-denim); }
.band--saddle { background: var(--color-saddle); }
.band--cherry { background: var(--color-cherry); color: var(--color-cream); }
.band--espresso { background: var(--color-espresso); color: var(--color-cream); }
.wrap { max-width: var(--content-max); margin-inline: auto; }
.wrap--narrow { max-width: 760px; }
@media (min-width: 768px) {
  .band { padding-block: var(--space-100); }
}
@media (min-width: 1024px) {
  :root {
    --gutter: clamp(170px, 14vw, 220px); /* clears the corner section links */
    --gutter-r: clamp(24px, 8vw, 140px);
    --anchor-offset: 40px;
  }
  .nav__name, .nav__links { left: 24px; }
  .nav__book { right: 24px; }
  .band { padding-block: var(--space-140); }
}

.section-head {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-20);
  margin-bottom: var(--space-40);
}
.section-head h2 { font-size: var(--text-display); line-height: var(--leading-tight); font-weight: 700; text-wrap: balance; letter-spacing: -0.01em; }
@media (min-width: 768px) { .section-head { margin-bottom: var(--space-60); } }

.card {
  background: var(--color-cream);
  border-radius: var(--radius-card);
  padding: var(--space-20);
}
.card--outline { background: transparent; border: var(--border); }
.card--ink { background: var(--color-ink); color: var(--color-cream); }
@media (min-width: 768px) { .card { padding: 28px; } }

.stamp {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  width: 92px; height: 92px; border-radius: 50%;
  padding: 10px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.15;
  background: var(--color-cherry); color: var(--color-cream);
}

.placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 2px dashed var(--color-ink); border-radius: var(--radius-card);
  padding: var(--space-20); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--color-cream); color: var(--color-ink);
}

/* ---------- Hero ---------- */
.hero { padding-top: 0; padding-bottom: 0; text-align: center; overflow: clip; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; gap: var(--space-40); }
/* Phones and tablets: the first screen is the signature, centered, with the headline at the bottom */
.hero__fold {
  width: 100%; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding-top: calc(var(--nav-pill-h) + 28px); padding-bottom: 36px;
}
.hero__fold .mark-spacer { flex: 1; display: flex; align-items: center; justify-content: center; }
.hero__eyebrow {
  font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.4;
  max-width: 40ch; text-wrap: balance; text-align: center;
  background: var(--color-cream); color: var(--color-ink); padding: 8px 18px; border-radius: var(--radius-pill); border: var(--border);
}
/* Name and role label on the photo, low over the jacket */
.hero__photo { position: relative; width: min(100%, 720px); }
.hero__label {
  position: absolute; z-index: 1; bottom: 24px; left: max(var(--gutter), 24px);
  max-width: min(30ch, calc(100% - 2 * var(--gutter)));
  display: grid; justify-items: center; gap: 6px;
}
/* The name starts where the pill's top edge stops curving and runs straight (half the pill's height in from its left) */
.hero__name {
  justify-self: start; margin-left: var(--pill-half, 28px);
  font-weight: 700; font-size: 1.125rem; line-height: 1.1; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--color-cream); text-align: left; white-space: nowrap;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35); /* fallback where the inverting copy can't run */
}
/* The name flips color where it crosses onto the photo */
.hero__ink { display: none; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero__ink .hero__eyebrow { visibility: hidden; }
@supports ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .hero__ink { display: block; }
  .hero__photo > .hero__label .hero__name { opacity: 0; } /* the real name stays for screen readers */
  .hero__ink .hero__name { text-shadow: none; }
  /* hero-light-areas.png marks the light parts of the photo (shirt, skin). Cream everywhere else, ink over those. */
  .hero__ink--band {
    -webkit-mask-image: url("../img/hero-light-areas.png"), linear-gradient(#000, #000);
    -webkit-mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; -webkit-mask-composite: xor;
    mask-image: url("../img/hero-light-areas.png"), linear-gradient(#000, #000);
    mask-size: 100% 100%; mask-repeat: no-repeat; mask-composite: exclude;
  }
  .hero__ink--photo {
    -webkit-mask-image: url("../img/hero-light-areas.png"); -webkit-mask-size: 100% 100%; -webkit-mask-repeat: no-repeat;
    mask-image: url("../img/hero-light-areas.png"); mask-size: 100% 100%; mask-repeat: no-repeat;
  }
  .hero__ink--photo .hero__name { color: var(--color-ink); }
}
.hero h1 {
  font-size: var(--text-hero); line-height: 1.02; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance;
  max-width: 16ch;
}
/* Cut-out portrait: no frame, bleeds off the right edge, stands on the band's bottom edge */
.hero__cutout {
  align-self: stretch; display: flex; justify-content: flex-end;
  margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter-r));
}
.hero__cutout img { display: block; width: 100%; height: auto; }
@media (min-width: 1024px) {
  .hero .wrap {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-areas: "mark mark" "title photo";
    grid-template-rows: auto 1fr;
    gap: 0 var(--space-40); max-width: none;
  }
  .hero__fold { display: contents; }
  .hero .mark-spacer { grid-area: mark; }
  /* The label's bottom and the headline's bottom share one line, which scales with width so the label stays on the jacket */
  .hero { --hero-base: clamp(32px, 9vw - 50px, 96px); }
  .hero__label { left: 6%; bottom: var(--hero-base); width: max-content; max-width: min(32ch, 60%); }
  .hero__name { font-size: clamp(1rem, 1.25vw, 1.5rem); }
  .hero h1 { grid-area: title; align-self: end; text-align: left; padding-bottom: var(--hero-base); font-size: clamp(2.5rem, 3.9vw, 4.5rem); }
  .hero__cutout { grid-area: photo; align-self: end; margin-left: 0; }
  .hero__photo { width: 100%; }
}

/* ---------- Is this for you ---------- */
/* Paced pain points: pinned heading near the top, one statement at a time, progress along the bottom (JS adds .is-paced) */
.familiar-progress { display: none; }
.familiar-stage.is-paced { height: calc(100vh + 3 * 45vh); height: calc(100svh + 3 * 45svh); }
.is-paced .familiar-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-start; gap: var(--space-40);
  padding-top: calc(var(--nav-pill-h) + 32px); padding-bottom: 28px;
}
.is-paced .section-head { margin-bottom: 0; }
.is-paced .familiar { display: grid; margin: 0; }
.is-paced .familiar li {
  grid-area: 1 / 1; align-self: start;
  background: none; border: 0; border-radius: 0; padding: 0; margin: 0 !important;
  font-size: clamp(1.875rem, 0.9rem + 4.3vw, 3.875rem); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; max-width: 18ch;
  opacity: 0; translate: 0 36px; transition: opacity 450ms ease, translate 450ms ease;
}
.is-paced .familiar li.is-active { opacity: 1; translate: 0 0; }
.is-paced .familiar li.is-past { opacity: 0; translate: 0 -36px; }
.is-paced .familiar-progress { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; }
.familiar-arrow {
  width: 56px; height: 56px; border-radius: 50%; border: var(--border); display: grid; place-items: center;
  animation: nudge 1.4s ease-in-out 3; transition: opacity 300ms ease; /* stops after about 4s */
}
.familiar-arrow svg { width: 26px; height: 26px; fill: none; stroke: var(--color-ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.is-last .familiar-arrow { opacity: 0; }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 8px; } }
.familiar-count { display: flex; align-items: baseline; line-height: 0.8; font-weight: 700; }
.familiar-num {
  font-size: clamp(5.5rem, 3rem + 11vw, 10rem); letter-spacing: -0.04em;
  color: var(--color-ink);
}
.familiar-num.is-flip { animation: numflip 450ms ease; }
@keyframes numflip { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
.familiar-of { font-size: clamp(1.25rem, 0.9rem + 1.6vw, 2rem); margin-left: 6px; }
.familiar { display: grid; gap: 12px; margin-bottom: var(--space-60); }
.familiar li {
  font-weight: 700; font-size: var(--text-heading-sm); line-height: var(--leading-tight);
  padding: 18px 24px; border: var(--border); border-radius: var(--radius-pill);
  background: var(--color-cream);
}
@media (min-width: 768px) {
  .familiar li { font-size: 1.75rem; padding: 22px 32px; }
  .familiar li:nth-child(2) { margin-left: 8%; }
  .familiar li:nth-child(3) { margin-left: 16%; }
}
.fit { display: grid; gap: var(--space-20); }
.fit h3, .fit h4 { font-size: var(--text-heading-sm); line-height: var(--leading-tight); margin-bottom: 16px; }
.fit ul { display: grid; gap: 10px; }
.fit li { padding-left: 1.4em; position: relative; }
.fit li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 0.7em; height: 0.7em; border-radius: 50%;
  background: currentColor;
}
.fit--no li::before { background: transparent; border: 2px solid currentColor; box-sizing: border-box; }
@media (min-width: 768px) {
  .fit { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .fit--no { margin-top: var(--space-40); }
}

/* ---------- What you get ---------- */
.closing { font-size: var(--text-heading-sm); font-weight: 700; line-height: var(--leading-tight); }
.sample { margin-top: var(--space-40); }
.sample__sheet {
  position: relative; background: var(--color-cream); border-radius: var(--radius-card);
  padding: 32px 24px 24px; height: 100%; min-height: 300px; display: grid; gap: 14px; align-content: start;
}
.sample__sheet .stamp { position: absolute; top: 12px; right: 12px; }
.sample__row { height: 12px; border-radius: var(--radius-pill); background: var(--color-linen); }
.sample__row--title { height: 28px; width: 60%; background: var(--color-sage); margin-top: 8px; }
.sample__row--w60 { width: 60%; } .sample__row--w85 { width: 85%; } .sample__row--w45 { width: 45%; }
.sample__caption { font-size: 0.9375rem; }
.sample__meta { display: grid; gap: 12px; align-content: start; }
@media (min-width: 768px) {
  .sample__meta { grid-template-columns: 1fr 1fr; gap: var(--space-40); align-items: start; }
}
.need { margin-top: 0; }
.need h3 { font-size: var(--text-heading-sm); line-height: var(--leading-tight); margin-bottom: 12px; }
.todo-inline {
  display: inline-block; background: var(--color-ochre); border: var(--border);
  padding: 2px 10px; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.875rem;
}

.plus {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-ink); color: var(--color-cream);
  display: inline-grid; place-items: center; font-weight: 700; font-size: 1.5rem; line-height: 1;
  transition: transform 200ms ease;
}
.faq__q:hover .plus { background: var(--color-cream); color: var(--color-ink); }
[aria-expanded="true"] .plus { transform: rotate(45deg); }

/* ---------- How it works ---------- */
.steps { display: grid; gap: var(--space-40); counter-reset: step; }
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start;
  opacity: 0.55; transition: opacity 400ms ease;
}
.step.is-active, .no-js .step { opacity: 1; }
.step__num {
  width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--color-ink);
  display: grid; place-items: center; font-weight: 700; font-size: var(--text-heading-sm);
  background: transparent; transition: background-color 300ms ease, color 300ms ease;
}
.step.is-active .step__num, .no-js .step__num { background: var(--color-ink); color: var(--color-cream); }
.step__body { display: grid; gap: 12px; background: var(--color-cream); border-radius: var(--radius-card); padding: var(--space-20); }
.step h3 { font-size: var(--text-heading-sm); line-height: var(--leading-tight); }
.step p { max-width: 62ch; }
@media (min-width: 768px) {
  .step { grid-template-columns: 96px 1fr; gap: 28px; }
  .step__num { width: 96px; height: 96px; font-size: 2rem; }
  .step__body { padding: 32px; }
  .step:nth-child(2) { margin-left: 6%; }
  .step:nth-child(3) { margin-left: 12%; }
}
.how__end { margin-top: var(--space-60); display: grid; gap: var(--space-20); justify-items: start; }
.how__end .pill { justify-self: center; }

/* ---------- About ---------- */
.about { display: grid; gap: var(--space-40); }
.about__media { display: grid; gap: 16px; }
.about__headshot { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-card); }
.about__headshot img { width: 100%; height: 100%; object-fit: cover; }
.about__text { display: grid; gap: 20px; }
.about__text p { max-width: 60ch; }
@media (min-width: 900px) {
  .about { grid-template-columns: 0.8fr 1.2fr; gap: var(--space-60); align-items: start; }
  .about__media { position: sticky; top: 100px; }
}

/* ---------- Results ---------- */
.proof { display: grid; gap: var(--space-20); }
.proof__item { display: grid; gap: 12px; align-content: start; }
.proof__metric { font-weight: 700; font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); line-height: 1; letter-spacing: -0.02em; }
.proof__who { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.875rem; }
.proof__quote { margin: 8px 0 0; padding-top: 12px; border-top: var(--border); display: grid; gap: 6px; font-style: italic; }
.proof__quote footer { font-style: normal; font-size: 0.875rem; }
@media (min-width: 900px) {
  .proof { grid-template-columns: 1.25fr 1fr 1fr; align-items: start; }
  .proof__item:nth-child(2) { margin-top: var(--space-40); }
  .proof__item:nth-child(3) { margin-top: var(--space-80); }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--space-40); }
.faq__group { display: grid; gap: 14px; }
.faq__items { display: grid; gap: 8px; }
.faq__label { justify-self: start; background: var(--color-cream); }
.faq__item { background: var(--color-cream); border-radius: var(--radius-card); overflow: hidden; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; text-align: left; font-weight: 700; font-size: var(--text-subheading); line-height: var(--leading-tight);
}
.faq__q:hover { background: var(--color-ink); color: var(--color-cream); }
.faq__q:focus-visible { outline-offset: -4px; }
.faq__a { padding: 0 20px 20px; max-width: 64ch; }
.faq__a[hidden] { display: none; }
@media (min-width: 768px) {
  .faq__group { grid-template-columns: 200px 1fr; align-items: start; }
  .faq__items { display: grid; gap: 14px; }
  .faq__q { padding: 22px 24px; }
  .faq__a { padding: 0 24px 24px; }
}

/* ---------- Book ---------- */
.book .wrap { display: grid; gap: var(--space-40); }
.book h2 { font-size: var(--text-hero); line-height: 1; font-weight: 700; letter-spacing: -0.02em; }
.book__text { display: grid; gap: 16px; max-width: 52ch; }
.book__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.book__embed { min-height: 0; background: var(--color-cream); border-radius: var(--radius-card); overflow: hidden; }
.book__embed:empty { display: none; }
.book__embed .calendly-inline-widget { min-width: 0 !important; }
@media (min-width: 900px) {
  .book .wrap { grid-template-columns: 1fr 1fr; align-items: end; }
  .book__embed { grid-column: 1 / -1; }
}

/* ---------- Ticker and footer ---------- */
.ticker {
  background: var(--color-espresso); color: var(--color-cream);
  overflow: hidden; white-space: nowrap; padding: 12px 0; border-top: 1px solid var(--color-espresso);
}
.ticker__track { display: inline-flex; gap: 48px; padding-right: 48px; animation: ticker 28s linear infinite; }
.ticker__track span { font-weight: 700; text-transform: uppercase; font-size: var(--text-subheading); letter-spacing: 0.04em; }
.ticker__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--color-cherry); display: inline-block; align-self: center; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.footer { padding-block: var(--space-60) calc(var(--space-60) + env(safe-area-inset-bottom, 0px)); }
.footer .wrap { display: grid; gap: var(--space-40); }
.footer__brand { display: grid; gap: 8px; }
.footer__brand strong { font-size: var(--text-heading-sm); }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__links a {
  display: inline-block; padding: 8px 16px; border: 1px solid var(--color-cream); border-radius: var(--radius-pill);
  color: var(--color-cream); text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 0.875rem; letter-spacing: 0.04em;
}
.footer__links a:hover { background: var(--color-cream); color: var(--color-ink); }
.footer a:focus-visible { outline-color: var(--color-cream); }
/* Focus rings stay visible on the dark bands */
.band--cherry :focus-visible, .band--espresso :focus-visible, .nav.is-on-dark :focus-visible, .ticker-wrap :focus-visible { outline-color: var(--color-cream); }
/* Ticker pause button */
.ticker-wrap { position: relative; }
.ticker__toggle {
  position: absolute; z-index: 2; top: 50%; right: var(--gutter-r); translate: 0 -50%;
  min-height: 32px; padding: 4px 14px; border-radius: var(--radius-pill);
  background: var(--color-cream); color: var(--color-ink); border: 1px solid var(--color-cream);
  font-weight: 700; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.ticker.is-paused .ticker__track, .ticker-wrap:hover .ticker__track { animation-play-state: paused; }
@media (min-width: 1024px) {
  .footer .wrap { grid-template-columns: 1fr auto; align-items: end; }
  .footer { padding-bottom: calc(var(--space-100) + 100px); } /* clears the corner links */
}

/* ---------- Privacy page ---------- */
.prose { display: grid; gap: 20px; }
.prose h1 { font-size: var(--text-display); line-height: var(--leading-tight); letter-spacing: -0.01em; }
.prose h2 { font-size: var(--text-heading-sm); line-height: var(--leading-tight); margin-top: 20px; }
.prose p, .prose li { max-width: 64ch; }
.prose ul { display: grid; gap: 8px; }
.prose li { padding-left: 1.2em; position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.5em; height: 0.5em; border-radius: 50%; background: currentColor; }
.prose .card { display: grid; gap: 16px; }

/* ---------- Touchy-style interactions ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Signature wordmark. Writes itself in left to right, then shrinks with scroll.
   Desktop: fixed top-center, ends as a small black signature with nothing behind it. Phones: shrinks as it scrolls away. */
.mark-spacer { width: 100%; display: flex; justify-content: center; }
.mark {
  display: block; width: min(86vw, 460px); color: var(--color-cream);
  transform-origin: 50% 0; will-change: transform;
  transition: color 200ms ease;
}
.mark.is-on-light { color: var(--color-ink); }
.mark__sig { display: block; width: 100%; height: auto; overflow: visible; }
.sig-dot { fill: currentColor; stroke: none; }
/* Write-on: each stroke is one smooth round-capped line that grows from the pen tip, in writing order.
   Without JS, or with reduced motion, the whole signature shows at once. */
.js .sig-stroke {
  stroke-dasharray: 1 2; stroke-dashoffset: 1.02;
  animation: pen var(--d) cubic-bezier(.35, .1, .25, 1) var(--t) forwards;
}
@keyframes pen { to { stroke-dashoffset: 0; } }
.js .sig-dot { transform-box: fill-box; transform-origin: center; animation: dotpop 220ms ease-out var(--t) both; }
@keyframes dotpop { from { opacity: 0; scale: 0.2; } to { opacity: 1; scale: 1; } }
.mark:focus-visible { outline-offset: 8px; border-radius: 12px; }
@media (min-width: 1024px) {
  .mark-spacer { height: var(--mark-h, 40vh); }
  .mark {
    position: fixed; top: 10px; left: 50%; z-index: 49;
    translate: -50% 0;
    width: min(62vw, 108vh, 980px);
  }
  .has-mark .hero { padding-top: 0; }
  .has-mark .nav__name { display: none; }
}

/* Headline: second half set in bold italic */
.hero h1 em { font-style: italic; font-weight: 700; }

/* Sideways shelf with a pill slider (Touchy's shop carousel) */
.shelf { display: grid; gap: var(--space-20); }
.shelf__track {
  display: flex; gap: var(--space-20); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px;
  margin-inline: -2px;
}
.shelf__track::-webkit-scrollbar { display: none; }
.shelf__track:focus-visible { outline-offset: 4px; border-radius: var(--radius-card); }
.shelf__item {
  flex: 0 0 min(82%, 400px); scroll-snap-align: start;
  display: grid; gap: 12px; align-content: start;
}
/* Slider bar: slider centered; on desktop the 1/4 counter sits to its right */
.shelf__bar { display: grid; grid-template-columns: 1fr; align-items: center; }
.shelf-count { display: none; }
@media (min-width: 1024px) {
  .shelf__bar { grid-template-columns: 1fr auto 1fr; gap: var(--space-20); }
  .shelf__bar .pill-range { grid-column: 2; width: min(520px, 40vw); }
  .shelf-count { display: flex; align-items: baseline; justify-self: end; font-weight: 700; line-height: 0.8; }
  .shelf-num { font-size: 4rem; letter-spacing: -0.04em; }
  .shelf-num.is-flip { animation: numflip 450ms ease; }
  .shelf-of { font-size: 1.25rem; margin-left: 4px; }
  /* JS adds .is-pinned: the heading and row hold still while page scroll moves the row sideways */
  .shelf-stage.is-pinned .shelf-sticky { position: sticky; top: var(--shelf-top, 96px); }
  .shelf-stage.is-pinned .shelf__track { overflow-x: hidden; scroll-snap-type: none; }
}
.shelf__item .stamp { background: var(--color-ink); width: 56px; height: 56px; font-size: 1.125rem; letter-spacing: 0; }
.shelf__item--sample { padding: 0; }
.shelf__item--sample .stamp { width: 84px; height: 84px; font-family: inherit; font-size: 0.75rem; letter-spacing: 0.06em; }
.pill-range {
  --thumb-w: 30%;
  -webkit-appearance: none; appearance: none;
  width: min(100%, 520px); height: 44px; margin: 0 auto;
  background: var(--color-putty); border: var(--border); border-radius: var(--radius-pill);
  padding: 5px; cursor: grab;
}
.pill-range:active { cursor: grabbing; }
.pill-range::-webkit-slider-runnable-track { height: 32px; background: transparent; border-radius: var(--radius-pill); }
.pill-range::-moz-range-track { height: 32px; background: transparent; }
.pill-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: var(--thumb-px, 120px); height: 32px; border-radius: var(--radius-pill);
  background: var(--color-ink); border: 0;
}
.pill-range::-moz-range-thumb {
  width: var(--thumb-px, 120px); height: 32px; border-radius: var(--radius-pill);
  background: var(--color-ink); border: 0;
}
.pill-range:focus-visible { outline: 3px solid var(--color-ink); outline-offset: 3px; }
.no-js .pill-range { display: none; }

/* Underlined terms in About open a small dictionary-style definition (hover, focus or tap) */
.peek { cursor: help; }
.peek:focus-visible { outline-offset: 4px; border-radius: 4px; }
.peek-card {
  position: absolute; left: 0; top: 0; z-index: 60;
  width: min(300px, calc(100vw - 32px)); padding: 16px 18px 18px;
  background: var(--color-cream); color: var(--color-ink);
  border: var(--border); border-radius: var(--radius-card);
  background-image: var(--grain); background-size: 240px 240px;
  display: grid; gap: 8px;
  opacity: 0; translate: 0 6px; transition: opacity 160ms ease, translate 160ms ease;
}
.peek-card.is-on { opacity: 1; translate: 0 0; }
.peek-card__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-bottom: 8px; border-bottom: var(--border); }
.peek-card__term { font-weight: 700; font-size: 1.0625rem; line-height: 1.2; }
.peek-card__pos { font-style: italic; font-size: 0.875rem; }
.peek-card__def { font-size: 0.9375rem; line-height: 1.45; }

/* Folder tab for "What I look at" (Touchy's product-page tab).
   A rounded tab with flared corners sits on a bar of the same color; the panel opens below it in that color. */
.folder { --folder: var(--color-linen); margin-top: var(--space-60); }
.folder__tab {
  margin: 0; text-align: center;
  border-bottom: 28px solid var(--folder);
}
.folder__label {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: min(86%, 600px); padding: 22px 28px 4px;
  background: var(--folder); border-radius: 56px 56px 0 0 / 40px 40px 0 0;
  font-weight: 700; font-size: var(--text-heading-sm); line-height: 1.2; text-transform: uppercase; letter-spacing: 0.02em;
}
/* concave corners that flare the tab into the bar */
.folder__label::before, .folder__label::after {
  content: ""; position: absolute; bottom: 0; width: 28px; height: 28px;
}
.folder__label::before { left: -28px; background: radial-gradient(circle at 0 0, transparent 27.5px, var(--folder) 28px); }
.folder__label::after { right: -28px; background: radial-gradient(circle at 100% 0, transparent 27.5px, var(--folder) 28px); }
@keyframes blinker { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.folder__panel {
  background: var(--folder); border-radius: 0 0 var(--radius-card) var(--radius-card);
  overflow: hidden;
}
.lenses { display: grid; gap: 12px; padding: 4px 16px 20px; align-items: start; }
.lens { display: grid; gap: 0; }
.lens h4 { margin: 0; }
.lens__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px 14px 22px; text-align: left;
  background: var(--color-cream); border: var(--border); border-radius: var(--radius-pill);
  font-weight: 700; font-size: var(--text-subheading); line-height: var(--leading-tight);
  transition: background-color 160ms ease, color 160ms ease, border-radius 200ms ease;
}
.lens__q:hover { background: var(--color-ink); color: var(--color-cream); }
.lens__q:focus-visible { outline-offset: 3px; }
.lens__q[aria-expanded="true"] { border-radius: 24px 24px 0 0; }
.lens__arrow {
  flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%;
  background: var(--color-ink); fill: var(--color-cream); transition: rotate 300ms ease;
}
.lens__q:hover .lens__arrow { background: var(--color-cream); fill: var(--color-ink); animation: blinker 0.5s linear infinite; }
.lens__q[aria-expanded="true"] .lens__arrow { rotate: 180deg; animation: none; }
.lens__a {
  overflow: hidden; background: var(--color-cream);
  border: var(--border); border-top: 0; border-radius: 0 0 24px 24px;
}
.lens__a > * { margin-inline: 22px; }
.lens__a > :first-child { margin-top: 16px; }
.lens__a > :last-child { margin-bottom: 20px; }
.lens__a { display: grid; gap: 10px; }
.lens__a[hidden] { display: none; }
.lens__lead { font-weight: 500; }
.lens ul { display: grid; gap: 6px; font-size: 1rem; }
.lens li { padding-left: 1.2em; position: relative; }
.lens li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--color-ink); }
@media (min-width: 900px) {
  .lenses { grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 8px 20px 24px; }
}

/* Hand-drawn marks */
/* Touchy-style underline: a thin pen line with round ends, a little longer than the words,
   each one set at a slightly different angle so they read as drawn by hand */
.scribble, .peek {
  position: relative; white-space: nowrap; text-decoration: none;
}
.scribble { font-weight: 700; }
.scribble::after, .peek::after {
  content: ""; position: absolute; left: -3%; right: -5%; bottom: -0.1em; pointer-events: none;
  border-bottom: 2px solid currentColor; border-radius: 100px;
  transform: skew(50deg, -1deg);
}
.scribble + .scribble::after { left: -4%; right: -6%; bottom: -0.16em; transform: skew(-50deg, 1.5deg); }
.peek:nth-of-type(2)::after { left: -2%; right: -6%; bottom: -0.16em; transform: skew(-50deg, 1deg); }
.peek:nth-of-type(3)::after { left: -5%; right: -3%; bottom: -0.06em; transform: skew(50deg, -2deg); }
.peek:hover::after, .peek:focus-visible::after { border-bottom-width: 3px; }
/* Very narrow screens (and 400% zoom): let underlined phrases wrap, drawn with a plain underline instead */
@media (max-width: 380px) {
  .scribble, .peek { white-space: normal; text-decoration: underline 2px; text-underline-offset: 5px; }
  .scribble::after, .peek::after { display: none; }
  .step { grid-template-columns: 1fr; }
}
.step__num { position: relative; }
.ring {
  position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px);
  fill: none; stroke: var(--color-ink); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 700ms ease;
}
.step.is-active .ring, .no-js .ring { stroke-dashoffset: 0; }
.oval { position: relative; display: inline-block; padding: 6px 14px; color: var(--color-cream); }
.oval__line {
  position: absolute; inset: -10px -18px; width: calc(100% + 36px); height: calc(100% + 20px);
  fill: none; stroke: var(--color-cream); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 900ms ease 200ms;
  overflow: visible;
}
.oval__line { vector-effect: non-scaling-stroke; max-width: none; }
.is-visible .oval__line, .footer:hover .oval__line, .no-js .oval__line { stroke-dashoffset: 0; }

/* ---------- Paper grain ---------- */
/* Fine grain on the painted bands and paper surfaces, like uncoated card stock */
.band, .card, .step__body, .faq__item, .familiar li, .hero__eyebrow, .sample__sheet, .lens__q, .lens__a {
  background-image: var(--grain);
  background-size: 240px 240px;
}

/* ---------- Motion ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

.js .hero__eyebrow, .js .hero h1, .js .hero__cutout { animation: rise 700ms ease both; }
.js .hero h1 { animation-delay: 80ms; }
.js .hero__cutout { animation-delay: 220ms; }
@keyframes rise { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }

/* Cursor: desktop pointer only, switched on by JS */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--color-ink); border: 2px solid var(--color-ink);
  display: none; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: transparent;
  transition: width 220ms ease, height 220ms ease, margin 220ms ease, background-color 220ms ease, color 220ms ease;
}
.has-cursor .cursor { display: flex; }
.has-cursor .cursor.is-label {
  width: 76px; height: 76px; margin: -38px 0 0 -38px;
  background: var(--color-cream); color: var(--color-ink);
}
.has-cursor .cursor.is-hidden { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker__track, .familiar-arrow { animation: none; }
  .js .sig-stroke { stroke-dashoffset: 0; animation: none; }
  .ring, .oval__line { stroke-dashoffset: 0 !important; }
  .lens__q:hover .lens__arrow { animation: none !important; }
  .has-cursor .cursor { display: none; }
}
