/* =========================================================
   StudentFind.Z: site styles
   Tokens come from StudentFindZ_Brand_Handoff.pdf (section 2)
   plus #FBF6EA / #7D9564 sampled from the hero loop video.
   ========================================================= */

@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  /* surfaces */
  --paper: #FBF6EA;        /* hero video background, page base */
  --cream: #F3ECE2;        /* brand background */
  --note: #F7F4EF;         /* cream note card */
  --panel: #EDE8E4;        /* warm grey cards / panels */
  --status-bg: #F0E9DE;    /* status cards in the hero loop */
  --line: #E0D5C7;         /* cream gradient stop, used as hairline */
  --line-strong: #D3C3AE;

  /* ink */
  --ink: #4A2C1A;          /* chocolate brown, primary */
  --body: #5A3A27;         /* body text soft brown */
  --soft: #6B4A35;         /* italic tagline brown */
  --hand: #8A6040;         /* hand accent, eyebrows */

  /* accents */
  --accent: #B8936F;       /* dusty beige: rules, doodles */
  --accent-2: #C4A283;     /* dusty beige light */
  --done: #7D9564;         /* "done" check from the hero loop */

  /* dark band */
  --brown-1: #583219;
  --brown-2: #4A2A14;
  --brown-3: #3B200E;
  --on-brown: #F3ECE2;
  --on-brown-soft: #E0D5C7;

  /* type */
  --font-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-tagline: "Cormorant Garamond", Georgia, serif;
  --font-hand: "Caveat", "Bradley Hand", cursive;

  /* layout */
  --header-h: 64px;
  --gutter: 16px;
  --maxw: 1200px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 1px 0 rgba(74, 44, 26, .04), 0 24px 48px -28px rgba(59, 32, 14, .28);
  --shadow-print: 0 18px 36px -18px rgba(59, 32, 14, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* pixel dither edge (paper squares dissolving into the brown band) */
  --dither: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='32' viewBox='0 0 192 32'%3E%3Cpath fill='%23FBF6EA' d='M0 0h32v8H0zM40 0h48v8H40zM96 0h40v8H96zM144 0h24v8h-24zM176 0h16v8h-16zM0 8h16v8H0zM24 8h8v8h-8zM48 8h16v8H48zM72 8h8v8h-8zM96 8h16v8H96zM120 8h8v8h-8zM144 8h8v8h-8zM160 8h8v8h-8zM176 8h16v8h-16zM8 16h8v8H8zM56 16h8v8h-8zM104 16h8v8h-8zM152 16h8v8h-8zM80 24h8v8h-8zM176 24h8v8h-8z'/%3E%3C/svg%3E");
}

@media (min-width: 640px) { :root { --gutter: 32px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--hand);
}
.eyebrow--light { color: var(--accent-2); }

.section { padding-block: clamp(72px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--tint { background: var(--cream); }

.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h1,
.section-head h2,
.closing h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.25rem + 3vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.012em;
}
.section-lede { margin-top: 18px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--soft); }
.section-head:not(.section-head--left) .section-lede { max-width: 600px; margin-inline: auto; }

.underlined { position: relative; white-space: nowrap; }
.underlined svg {
  position: absolute; left: 0; bottom: -.14em; width: 100%; height: .3em;
  color: var(--accent); overflow: visible;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-sans); font-size: .9375rem; font-weight: 600; letter-spacing: .005em;
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--brown-3); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(74, 44, 26, .04); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(251, 246, 234, .86);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -.01em;
  color: var(--ink); line-height: 1;
}
.primary-nav { display: none; }
.primary-nav ul { display: flex; gap: 32px; }
.primary-nav a { font-size: .9375rem; font-weight: 500; color: var(--soft); transition: color .2s; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--ink); }
.primary-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cta { display: none; }
.menu-toggle, .icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink);
}
@media (min-width: 640px) { .header-cta { display: inline-flex; } }
@media (min-width: 960px) {
  .primary-nav { display: block; }
  .menu-toggle { display: none; }
}

/* mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 100; }
.mobile-menu[hidden] { display: none; }
.mobile-menu-backdrop { position: absolute; inset: 0; background: rgba(59, 32, 14, .32); animation: fade .25s var(--ease); }
.mobile-menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 380px);
  background: var(--paper); padding: 14px 20px calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 28px;
  box-shadow: -24px 0 48px -24px rgba(59, 32, 14, .35);
  animation: slide-in .32s var(--ease);
}
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; min-height: 36px; }
.mobile-menu-links { display: grid; gap: 4px; }
.mobile-menu-links a {
  display: block; padding: 10px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; font-size: 1.625rem; color: var(--ink);
}
.mobile-menu-tagline { margin-top: auto; font-family: var(--font-tagline); font-style: italic; font-size: 1.375rem; color: var(--soft); text-align: center; }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }

/* =========================================================
   Hero
   Phone: stacked copy + tall crop. Tablet: two columns.
   Desktop: copy laid over the wide loop, aligned to the
   wordmark baked into the video (x = 150/1920 = 7.81%).
   ========================================================= */
.hero { position: relative; }
.hero-stage {
  position: relative;
  display: grid; gap: 28px;
  padding: 28px var(--gutter) 8px;
}
.hero-video--wide { display: none; }
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 13.5vw, 5.25rem); line-height: .98; letter-spacing: -.015em;
}
.hero-rule { display: block; width: 48px; height: 2px; background: var(--accent); margin: 18px 0 14px; border-radius: 2px; }
.hero-tagline { font-size: .8125rem; font-weight: 500; letter-spacing: .38em; text-transform: uppercase; color: var(--soft); }
.hero-lede { margin-top: 20px; max-width: 30em; font-size: 1.125rem; line-height: 1.55; color: var(--body); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-tall {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 720 / 904; max-height: 72svh; width: 100%;
  background: var(--status-bg) url("../video/hero-mobile-poster.jpg") center / cover;
  box-shadow: var(--shadow-card);
}
.hero-video--tall { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.video-toggle {
  position: absolute; right: calc(var(--gutter) + 12px); bottom: 20px; z-index: 2;
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(251, 246, 234, .9); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }

.video-toggle--wide { display: none; }
.hero-tall .video-toggle { right: 14px; bottom: 14px; }

@media (min-width: 640px) and (max-width: 1119.98px) {
  .hero-stage { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding-block: 56px 32px; }
  .hero-title { font-size: clamp(2.75rem, 7.1vw, 4.75rem); }
  .hero-tall { max-height: 620px; }
}

@media (min-width: 1120px) {
  .hero-stage {
    display: block; padding: 0;
    container-type: inline-size;
    /* fill the screen under the header, never taller than the 16:9 video */
    height: min(56.25vw, max(600px, calc(100svh - var(--header-h))));
    overflow: hidden;
  }
  .hero-video--wide {
    display: block; position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 45%;
  }
  .hero-tall { display: none; }

  /* wordmark + tagline are in the video; keep them for screen readers and SEO */
  .hero-title, .hero-rule, .hero-tagline {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .hero-copy {
    position: absolute; z-index: 1;
    left: 7.81cqw;
    /* 49% down the video, corrected for object-position cropping */
    top: calc((100% - 56.25cqw) * .45 + 27.56cqw);
    width: 30cqw;
  }
  .hero-lede { margin-top: 0; font-size: clamp(15px, 1.25cqw, 24px); color: var(--soft); max-width: none; }
  .hero-actions { margin-top: clamp(16px, 1.6cqw, 32px); gap: clamp(10px, .7cqw, 14px); flex-wrap: nowrap; }
  .hero-actions .btn { height: clamp(44px, 3.3cqw, 62px); padding-inline: clamp(18px, 1.55cqw, 30px); font-size: clamp(14px, 1.02cqw, 19px); }
  .hero-actions .btn-ghost { background: rgba(251, 246, 234, .6); }
  .video-toggle--wide { display: inline-grid; right: 24px; bottom: 24px; }
}

/* follow strip */
.follow-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px;
  padding: 22px 0; margin-top: 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.follow-links { display: flex; gap: 24px; }
.follow-links a { font-weight: 600; font-size: .9375rem; color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 1px; transition: border-color .2s; }
.follow-links a:hover { border-bottom-color: var(--ink); }
.follow-note { font-size: .9375rem; color: var(--soft); }
@media (min-width: 1120px) { .follow-strip { margin-top: 0; border-top: 0; } }

/* =========================================================
   Finds board (product mockup, à la app preview)
   ========================================================= */
.board {
  background: var(--note);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.board-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--paper);
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--hand); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.store-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--panel); }
.store-switch button {
  border: 0; background: transparent; padding: 6px 12px; border-radius: 999px;
  font-size: .8125rem; font-weight: 600; color: var(--soft); transition: background-color .2s, color .2s;
}
.store-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.board-tools { display: grid; gap: 14px; padding: 18px; border-bottom: 1px solid var(--line); }
.search {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; color: var(--hand);
  transition: border-color .2s;
}
.search:focus-within { border-color: var(--ink); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 1rem; color: var(--ink); }
.search input::placeholder { color: #9A7C63; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -18px; padding-inline: 18px; scroll-padding-inline: 18px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  font-size: .875rem; font-weight: 500; color: var(--soft);
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.board-body { display: grid; gap: 24px; padding: 22px 18px 24px; }
.board-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 16px; }
.board-title h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; white-space: nowrap; }
.hand-note { font-family: var(--font-hand); font-weight: 600; font-size: 1.375rem; color: var(--hand); transform: rotate(-3deg); white-space: nowrap; }

.products { display: grid; gap: 14px; }
.product {
  display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start;
  padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md);
}
.product[hidden] { display: none; }
.product-media { border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--status-bg); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-tag { font-size: .6875rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--hand); }
.product-name { margin-top: 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; line-height: 1.2; color: var(--ink); }
.product-price { margin-top: 4px; font-size: .875rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.product-why { margin-top: 6px; font-size: .875rem; line-height: 1.5; color: var(--soft); }
.btn-shop {
  margin-top: 12px; width: 100%; height: 44px;
  background: var(--ink); color: var(--paper); font-size: .9375rem;
}
.btn-shop:hover { background: var(--brown-3); }
.board-empty { padding: 28px 8px; text-align: center; color: var(--soft); }

.board-side { padding-top: 4px; }
.board-side .eyebrow { margin-bottom: 12px; }
.status-list { display: grid; gap: 8px; }
.status {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--status-bg); border: 1px solid rgba(224, 213, 199, .7);
  font-size: .9375rem; font-weight: 600; color: var(--ink); line-height: 1.3;
}
.status-label { display: block; font-size: .625rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--hand); margin-bottom: 1px; }
.status-icon { flex: none; width: 18px; height: 18px; border-radius: 50%; position: relative; }
.status--done .status-icon { background: var(--done); }
.status--done .status-icon::after {
  content: ""; position: absolute; left: 6px; top: 3.5px; width: 4px; height: 8px;
  border: solid var(--paper); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.status--new .status-icon { border: 4px solid var(--accent); background: var(--paper); }
.status--progress .status-icon { border: 2px solid var(--accent); background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); }

@media (min-width: 640px) {
  .board-bar, .board-tools, .board-body { padding-inline: 24px; }
  .chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product { display: flex; flex-direction: column; grid-template-columns: none; }
  .product-media { aspect-ratio: 4 / 3; }
  .product-body { display: flex; flex-direction: column; flex: 1; }
  .btn-shop { margin-top: auto; }
  .product-why { margin-bottom: 14px; }
}
@media (min-width: 1024px) {
  .board-body { grid-template-columns: minmax(0, 1fr) 272px; gap: 28px; padding-block: 28px; }
  .board-side { border-left: 1px solid var(--line); padding-left: 28px; padding-top: 6px; }
}

.features { display: grid; gap: 28px; margin-top: clamp(40px, 5vw, 64px); }
.feature { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.feature h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.feature p { margin-top: 8px; color: var(--soft); }
@media (min-width: 800px) { .features { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* =========================================================
   Series: numbered stages 1.0 / 2.0 / 3.0
   ========================================================= */
.stage {
  display: grid; gap: 32px; align-items: center;
  padding-block: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.stage:first-of-type { border-top: 0; padding-top: 0; }
.stage-num { font-size: .8125rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--hand); }
.stage-num span { color: var(--ink); font-weight: 600; letter-spacing: .04em; margin-right: 10px; font-variant-numeric: tabular-nums; }
.stage h3,
.stage--head h1 {
  margin-top: 14px; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.625rem, 1.15rem + 1.5vw, 2.375rem); line-height: 1.14; letter-spacing: -.01em;
}
.stage-copy > p:not(.stage-num) { margin-top: 14px; color: var(--soft); max-width: 34em; }
.step-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.step-chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
  font-size: .875rem; font-weight: 500; color: var(--ink);
}
.step-chips span { color: var(--hand); font-variant-numeric: tabular-nums; font-weight: 600; }
.soon { font-style: normal; font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--hand); }

.stage-visual {
  position: relative; aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line);
  overflow: hidden;
}
.stage-visual img { border-radius: 10px; box-shadow: var(--shadow-print); }
.fan {
  position: absolute; top: 50%; left: 50%; width: 38%;
  transition: transform .5s var(--ease);
}
.fan-1 { transform: translate(-112%, -48%) rotate(-7deg); }
.fan-2 { transform: translate(-50%, -52%); z-index: 1; }
.fan-3 { transform: translate(12%, -48%) rotate(7deg); }
.stage:hover .fan-1 { transform: translate(-118%, -49%) rotate(-9deg); }
.stage:hover .fan-3 { transform: translate(18%, -49%) rotate(9deg); }
.stage-visual--posts .fan { width: 40%; }

.stage-visual--reset .reset-pin { position: absolute; width: 38%; left: 12%; top: 50%; transform: translateY(-48%) rotate(-6deg); }
.phone {
  position: absolute; right: 13%; top: 50%; transform: translateY(-50%);
  width: 34%; aspect-ratio: 9 / 16;
  border: 7px solid var(--ink); border-radius: 30px; overflow: hidden;
  background: var(--cream) url("../video/weekly-reset-poster.jpg") center / cover;
  box-shadow: var(--shadow-print);
}
.phone video { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) {
  .stage { grid-template-columns: 5fr 7fr; gap: 64px; }
  .stage--flip { grid-template-columns: 7fr 5fr; }
  .stage--flip .stage-copy { order: 2; }
}

/* =========================================================
   Study kit library (brown band)
   ========================================================= */
.kits {
  position: relative;
  padding-block: clamp(96px, 11vw, 152px);
  background: linear-gradient(180deg, var(--brown-1), var(--brown-2) 55%, var(--brown-3));
  color: var(--on-brown);
  overflow: hidden;
}
.kits::before, .kits::after, .site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; height: 32px;
  background: var(--dither) repeat-x 0 0 / 192px 32px;
  pointer-events: none;
}
.kits::before, .site-footer::before { top: 0; }
.kits::after { bottom: 0; transform: scaleY(-1); background-position: 96px 0; }
.kits h2, .kits h3 { color: var(--on-brown); }
.kits .section-lede { color: var(--on-brown-soft); }
.kits-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.kits-head .section-head { margin-bottom: 0; max-width: 620px; }
.kits-nav { display: none; gap: 10px; }
.round-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid rgba(243, 236, 226, .35); background: transparent; color: var(--on-brown);
  transition: background-color .2s, border-color .2s, opacity .2s;
}
.round-btn:hover { background: rgba(243, 236, 226, .1); border-color: rgba(243, 236, 226, .6); }
.round-btn:disabled { opacity: .3; cursor: default; background: transparent; }
.kits :focus-visible { outline-color: var(--on-brown); }
@media (min-width: 900px) { .kits-nav { display: flex; } }

.kits-track {
  --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 62vw, 290px); gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 8px var(--edge) 20px;
  scrollbar-width: none;
}
.kits-track::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .kits-track { grid-auto-columns: clamp(240px, 22vw, 290px); gap: 24px; } }
.kit { scroll-snap-align: start; }
.kit img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 14px; box-shadow: 0 28px 48px -28px rgba(0, 0, 0, .6); transition: transform .4s var(--ease); }
.kit:hover img { transform: translateY(-4px); }
.kit-num { margin-top: 16px; font-size: .6875rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.kit-name { margin-top: 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; line-height: 1.2; }

/* =========================================================
   Categories
   ========================================================= */
#categories { padding-top: 0; }
.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 20px 0; margin-bottom: clamp(72px, 9vw, 120px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee-track span {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-size: .8125rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--hand);
}
.marquee-track span::after { content: "✦"; margin: 0 28px; color: var(--accent); letter-spacing: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

.cats { display: grid; gap: 12px; }
@media (min-width: 640px) { .cats { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .cats { grid-template-columns: repeat(3, 1fr); } }
.cat {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 24px 24px 26px; min-height: 184px;
  background: var(--note); border: 1px solid var(--line); border-radius: var(--radius-md);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.cat:hover { background: var(--cream); border-color: var(--line-strong); transform: translateY(-2px); }
@media (max-width: 639.98px) {
  .cat { min-height: 0; padding: 20px 56px 20px 20px; }
  .cat h3 { padding-top: 10px; font-size: 1.25rem; }
  .cat-arrow { top: 20px; right: 20px; }
}
.cat-num { font-size: .8125rem; font-weight: 600; color: var(--hand); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.cat h3 { margin-top: auto; padding-top: 28px; font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; }
.cat p { margin-top: 6px; font-size: .9375rem; line-height: 1.5; color: var(--soft); }
.cat-arrow { position: absolute; top: 22px; right: 22px; width: 22px; height: 22px; color: var(--accent); transition: transform .25s var(--ease), color .25s; }
.cat:hover .cat-arrow { transform: translate(2px, -2px); color: var(--ink); }

/* =========================================================
   Closing / newsletter
   ========================================================= */
.closing {
  display: grid; gap: 32px; align-items: center;
  padding: clamp(28px, 5vw, 64px);
  background: var(--cream); border: 1px solid var(--line); border-radius: 32px;
}
.closing .eyebrow { margin-bottom: 16px; }
.closing .section-lede { max-width: 30em; }
.signup { display: grid; gap: 10px; margin-top: 28px; max-width: 520px; }
.signup input {
  height: 52px; padding: 0 20px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line-strong); outline: none;
  font-size: 1rem; color: var(--ink); transition: border-color .2s;
}
.signup input::placeholder { color: #9A7C63; }
.signup input:focus { border-color: var(--ink); }
.signup input[aria-invalid="true"] { border-color: #A4552F; }
.signup .btn { height: 52px; }
.signup-msg { min-height: 1.5em; font-size: .9375rem; font-weight: 500; color: var(--ink); }
.signup-msg.is-error { color: #8F4524; }
.signup.is-done input, .signup.is-done .btn { display: none; }
.fine-print { margin-top: 4px; font-size: .8125rem; color: var(--hand); }
.closing-visual img { width: 100%; max-height: 380px; object-fit: cover; object-position: 50% 25%; border-radius: 20px; box-shadow: var(--shadow-card); }
@media (min-width: 560px) { .signup { grid-template-columns: 1fr auto; } .signup-msg { grid-column: 1 / -1; } }
@media (min-width: 900px) {
  .closing { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .closing-visual img { max-height: 520px; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--brown-2), var(--brown-3));
  color: var(--on-brown-soft);
  padding: clamp(88px, 10vw, 128px) 0 calc(32px + env(safe-area-inset-bottom));
}
.footer-top { display: grid; gap: 48px; }
.footer-mark { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.75rem, 7vw, 5rem); line-height: 1; letter-spacing: -.015em; color: var(--on-brown); }
.footer-tagline { margin-top: 10px; font-family: var(--font-tagline); font-style: italic; font-size: 1.5rem; color: var(--accent-2); }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
.footer-cols h3 { font-family: var(--font-sans); font-size: .75rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.footer-cols ul { display: grid; gap: 10px; }
.footer-cols a { font-size: .9375rem; color: #EEE7DD; transition: color .2s; }
.footer-cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.site-footer :focus-visible { outline-color: var(--on-brown); }
.footer-bottom {
  display: grid; gap: 8px; margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(243, 236, 226, .16);
  font-size: .8125rem; color: var(--accent-2);
}
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1.2fr; align-items: start; }
  .footer-bottom { grid-template-columns: 1fr auto; gap: 24px; }
}

/* =========================================================
   Bottom nav (phones) + toast
   ========================================================= */
.bottom-nav { display: none; }
@media (max-width: 639.98px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: repeat(4, 1fr);
    height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(251, 246, 234, .94);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .bottom-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: .6875rem; font-weight: 500; color: var(--soft);
  }
  .bottom-nav a.is-active { color: var(--ink); font-weight: 600; }
  .bottom-nav svg { width: 22px; height: 22px; }
}

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: .9375rem; font-weight: 500;
  box-shadow: var(--shadow-card);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 639.98px) { .toast { bottom: calc(80px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); text-align: center; } }

/* =========================================================
   Motion
   ========================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .fan, .kit img, .cat, .cat-arrow { transition: none; }
  .mobile-menu-panel, .mobile-menu-backdrop { animation: none; }
}

/* =========================================================
   CMS build additions: logo, pages, blog, posts
   ========================================================= */

/* logo: SF.Z monogram badge (from the Instagram / Pinterest profile picture) + wordmark */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-badge {
  flex: none; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--panel); box-shadow: inset 0 0 0 1px rgba(224, 213, 199, .8);
}
.brand-badge img { width: 80%; height: auto; }
.nowrap { white-space: nowrap; }
@media (max-width: 379.98px) { .brand .wordmark { font-size: 1.1875rem; } .brand-badge { width: 34px; height: 34px; } }

/* page sections */
.section--page { padding-top: clamp(40px, 6vw, 88px); }
.section--cats { padding-top: 0; }
.crumbs--page { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 36px); font-size: .875rem; color: var(--hand); }
.crumbs--page a { color: var(--hand); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.crumbs--page a:hover { color: var(--ink); }
.crumbs--page [aria-current] { color: var(--ink); font-weight: 600; }
.crumbs--page span[aria-hidden] { color: var(--line-strong); }
.hero-actions--center { justify-content: center; margin-top: 32px; }

/* stage used as a page header (blog category + post) */
.stage--head { padding: 0; border-top: 0; }
.stage--head .stage-num a { color: inherit; }
.stage--head .stage-num a:hover { color: var(--ink); }
.stage--head h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); line-height: 1.08; }
.stage-count { margin-top: 18px !important; font-size: .875rem; font-weight: 500; color: var(--hand) !important; font-variant-numeric: tabular-nums; }
.stage-visual--single .single {
  position: absolute; left: 50%; top: 50%; width: 42%;
  transform: translate(-50%, -50%) rotate(-2deg);
}
.stage-visual--fan .fan-1:only-child { transform: translate(-50%, -50%); }

/* finds board extras */
.board-body--full { grid-template-columns: 1fr !important; }
.board-more { margin-top: 20px; text-align: center; }
.board-more a, .board-more-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; font-size: .9375rem; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}
.board-more a:hover, .board-more-link:hover { text-decoration-color: var(--ink); }

/* blog chips (links) */
.blog-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) clamp(28px, 4vw, 44px); padding: 2px var(--gutter); }
.blog-chips::-webkit-scrollbar { display: none; }
.blog-chips .chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.blog-chips .chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip-count { font-size: .75rem; font-weight: 600; opacity: .7; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) { .blog-chips { flex-wrap: wrap; justify-content: center; overflow: visible; margin-inline: 0; padding-inline: 0; } }

/* post grid + card */
.post-grid { display: grid; gap: 32px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; } }
@media (min-width: 1200px) { .post-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.post-card { display: block; height: 100%; }
.post-card-media {
  aspect-ratio: 3 / 4; overflow: hidden; border-radius: 14px; background: var(--panel);
  box-shadow: 0 22px 40px -28px rgba(59, 32, 14, .55);
}
.post-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform .5s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.03); }
.post-card-cat { margin-top: 14px; font-size: .6875rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--hand); }
.post-card-title {
  margin-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.22;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card:hover .post-card-title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.post-card-excerpt {
  margin-top: 6px; font-size: .875rem; line-height: 1.5; color: var(--soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 479.98px) { .post-card-excerpt { display: none; } }

/* post body */
.prose { max-width: 680px; margin-inline: auto; font-size: 1.0625rem; line-height: 1.7; color: var(--body); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.9em; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); line-height: 1.2; }
.prose h3 { margin-top: 1.6em; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose > :first-child { margin-top: 0; font-size: 1.1875rem; color: var(--soft); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; }
.prose ul li::before { content: "✦"; position: absolute; left: -1.35em; top: .05em; font-size: .8em; color: var(--accent); }
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--hand); font-weight: 600; font-variant-numeric: tabular-nums; }
.prose li + li { margin-top: .4em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose img { border-radius: 14px; box-shadow: var(--shadow-card); margin-block: 1.4em; }
.prose blockquote { margin: 1.4em 0; padding-left: 1em; border-left: 3px solid var(--accent); font-family: var(--font-tagline); font-style: italic; font-size: 1.375rem; color: var(--soft); }

/* post carousel */
.post-gallery { margin-top: clamp(48px, 6vw, 80px); }
.gallery-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.gallery-nav { display: none; }
@media (min-width: 900px) { .gallery-nav { display: flex; } }
.round-btn--ink { color: var(--ink); border-color: var(--line-strong); }
.round-btn--ink:hover { background: rgba(74, 44, 26, .05); border-color: var(--ink); }
.round-btn--ink:disabled { background: transparent; }
.gallery-track {
  --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 66vw, 300px); gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 4px var(--edge) 24px; scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track li { scroll-snap-align: start; }
.gallery-track img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; box-shadow: 0 22px 40px -28px rgba(59, 32, 14, .55); }

/* shop the post + related */
.shop-the-post { background: var(--cream); }
.stp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.stp-head .eyebrow { margin-bottom: 10px; }
.stp-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.1; }
.disclosure-line { margin: -8px 0 20px; font-size: .8125rem; color: var(--hand); }
.disclosure-line a { text-decoration: underline; text-underline-offset: 3px; }
.products--post .product { background: var(--paper); }
.related { border-top: 1px solid var(--line); }

/* mobile menu: blog categories */
.mobile-menu-sub { display: grid; gap: 2px; margin-top: -12px; padding-left: 2px; }
.mobile-menu-sub a { display: block; padding: 6px 0; font-size: 1rem; font-weight: 500; color: var(--soft); }
.mobile-menu-sub a::before { content: "✦"; margin-right: 10px; font-size: .75em; color: var(--accent); }
.mobile-menu-panel { overflow-y: auto; }
