/* Mehak Ram Garg: shared styles for every page of website/multipage/.
   Part 1 is the one-page funnel's CSS (website/funnel/one-page-funnel.html), unchanged in behaviour.
   Part 2 (from "MULTIPAGE") adds the header tabs, phone menu, footer, page intro and Home teaser helpers.
   Page-only CSS goes in assets/pages/<page>.css, not here. */

/* Tokens taken from Mehak's reference page (funnel/reference-mehak-wall.html) */
:root {
  --white: #ffffff;
  --wall: #dde6d8;
  --mist: #f1f4ef;
  --sage-100: #e1e8dc;
  --sage-300: #b7c5b0;
  --sage-600: #5c7260;
  --sage-800: #3f5043;
  --ink: #26302a;
  --ink-soft: #55615a;
  --highlight: #f6d6bf;
  --needs: #fff4d6;
  --needs-line: #e0b54a;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; } /* multipage: clip (not hidden) so nothing scrolls sideways and sticky still works */
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--sage-600); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
.sensible { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.sensible-text { border-left: 2px solid var(--sage-100); padding-left: clamp(24px, 4vw, 48px); }
.sensible-text .big-line { margin-top: 0; }

h1, h2, .idea { text-wrap: balance; }
p, li { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -.015em; margin: 0; }
h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.08; max-width: 20ch; }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height: 1.2; }
.mark { background: linear-gradient(transparent 58%, var(--highlight) 58%, var(--highlight) 92%, transparent 92%); padding: 0 .06em; }
.eyebrow { font-size: 14.5px; font-weight: 600; color: var(--sage-600); margin: 0 0 14px; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 46ch; margin: 22px 0 0; }
p { margin: 0 0 1em; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15.5px; border: 0; cursor: pointer; font-family: var(--sans);
  background: var(--sage-800); color: var(--white); padding: 13px 24px; border-radius: 999px; transition: background .2s ease;
}
.btn:hover { background: var(--ink); }
.btn.light { background: var(--white); color: var(--sage-800); }
.btn.light:hover { background: var(--sage-100); }
.textlink { font-weight: 600; color: var(--sage-800); text-underline-offset: 4px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.microcopy { font-size: 14.5px; color: var(--ink-soft); }

section { padding: clamp(64px, 9vw, 112px) 0; }
section + section { border-top: 1px solid var(--sage-100); }
section.band, section.wall-sec, section.cta-band, section.band + section, section.wall-sec + section, section.cta-band + section { border-top: 0; }

/* Header: brand + tabs + the action. Layout for the tabs and the phone menu is in "MULTIPAGE: header" below. */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gutter); max-width: var(--max); margin: 0 auto; }
.brand { text-decoration: none; line-height: 1.2; }
.brand strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; }
.brand span { font-size: 14px; color: var(--ink-soft); }
.site-header .btn { padding: 10px 18px; font-size: 14.5px; }

/* 01 Hero */
.hero { padding-top: clamp(28px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.hero h1 { font-size: clamp(2.6rem, 6.6vw, 5rem); line-height: 1.03; letter-spacing: -.025em; max-width: 13ch; animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.proof-strip { display: flex; align-items: center; gap: 14px; margin-top: 36px; }
.proof-strip .stack { display: flex; }
.proof-strip .stack img { width: 46px; height: 58px; object-fit: cover; object-position: top; border-radius: 3px; border: 3px solid var(--white); box-shadow: 0 4px 10px rgba(38,48,42,.18); margin-left: -12px; background: var(--sage-100); }
.proof-strip .stack img:first-child { margin-left: 0; transform: rotate(-4deg); }
.proof-strip .stack img:nth-child(3) { transform: rotate(3deg); }
.proof-strip a { font-size: 15px; }

/* Case video card (phone-shaped, like the reels) */
.reel { position: relative; display: block; width: 100%; max-width: 320px; margin-left: auto; border: 0; padding: 0; background: var(--sage-100); border-radius: 14px; overflow: hidden; cursor: pointer; box-shadow: 0 18px 40px -18px rgba(38,48,42,.45); }
.reel::before { content: ""; display: block; padding-top: 177.78%; } /* 9:16 box that works in every browser, incl. iOS Safari */
.reel img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.play {
  position: absolute; left: 50%; top: 56%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%;
  background: rgba(63,80,67,.92); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(20,30,24,.3);
}
.play::after { content: ""; margin-left: 4px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.reel .reel-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: #fff; font-size: 14px; text-align: left; background: linear-gradient(transparent, rgba(20,28,22,.75)); }

/* 02 Familiar */
.tried { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tried li { display: inline-flex; align-items: center; gap: 7px; font-size: 15.5px; padding: 7px 14px 7px 11px; border: 1px solid var(--sage-300); border-radius: 999px; color: var(--sage-800); background: var(--mist); }
.tried li::before { content: "\2713"; font-size: 13px; font-weight: 700; color: var(--sage-600); }
.big-line { font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.3; max-width: 30ch; margin: 40px 0 0; }
.trial { font-family: var(--serif); color: var(--sage-800); font-size: 1.2rem; margin-top: 22px; }

/* 03 Who it's for: a ruled list, each row ends in a real case */

/* 04 The one idea: full-width sage band */
.band { background: var(--mist); }
.band .idea { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.1; letter-spacing: -.02em; max-width: 18ch; margin: 0; }

/* 05 Story */
.story-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.portrait { position: relative; margin: 0; }
.portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.portrait figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }
@media (min-width: 861px) { .portrait { position: sticky; top: 28px; } }
.story { margin-top: 30px; max-width: 60ch; }
.story p { color: var(--ink-soft); }
.story .phase { font-size: 15px; font-weight: 600; letter-spacing: normal; text-transform: none; color: var(--sage-600); margin: 30px 0 10px; }
.story .phase:first-child { margin-top: 0; }
.story-sum { font-family: var(--serif); font-weight: 300; font-size: 1.6rem; line-height: 1.25; color: var(--ink) !important; margin-top: 30px; }
.fit { margin-top: 34px; padding: 26px 28px; background: var(--mist); border-radius: 8px; max-width: 60ch; }
.fit p { margin: 0; }
.fit ul { margin: 10px 0 14px; padding-left: 20px; color: var(--ink-soft); }
.fit li { margin: 4px 0; }
.fit .sign { margin-top: 18px; font-family: var(--serif); color: var(--ink); font-size: 1.3rem; line-height: 1.35; }

/* Input-needed labels: never invent copy that only Mehak can give */
.needs { display: block; background: var(--needs); border-left: 3px solid var(--needs-line); padding: 12px 16px; font-size: 14.5px; line-height: 1.5; color: #5b4a1b; margin: 18px 0; border-radius: 0 4px 4px 0; }
.needs::before { content: "Input needed · " attr(data-who); display: block; font-weight: 600; font-size: 12.5px; letter-spacing: .02em; color: #8a6d1d; margin-bottom: 3px; }
.needs.inline { display: inline-block; margin: 6px 0; padding: 6px 12px; vertical-align: middle; }

/* 06 Featured case + 07 to 09 the client cases */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 3vw, 40px); margin-top: 40px; }
.area { position: relative; display: block; border-top: 1px solid var(--ink); padding: 18px 28px 6px 0; text-decoration: none; color: inherit; }
.area-n { display: block; font-size: 14.5px; color: var(--sage-600); margin-bottom: 8px; }
.area h3 { font-size: clamp(1.25rem, 2.2vw, 1.4rem); }
.area p { margin: 8px 0 0; font-size: 16px; color: var(--ink-soft); }
.area-go { position: absolute; top: 18px; right: 0; color: var(--sage-600); }
.area:hover h3 { box-shadow: inset 0 -8px 0 var(--highlight); display: inline; }
.areas-note { margin-top: 32px; font-family: var(--serif); font-size: clamp(1.1rem, 2.2vw, 1.25rem); color: var(--ink-soft); }
.hero-media { display: flex; flex-direction: column; align-items: flex-end; }
.hero-media .needs { max-width: 320px; margin: 0 0 12px; }
@media (min-width: 861px) and (max-width: 1060px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(32px, 6vw, 72px); align-items: start; margin-top: 40px; }
.case.flip { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.case.flip .case-media { order: -1; }
.case-media .reel { margin: 0; max-width: 300px; }
.case-media .pins { max-width: 300px; }
.quote-open { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.2; margin: 0 0 22px; max-width: 22ch; }
.result { margin-top: 22px; padding: 16px 18px; background: var(--mist); border-radius: 4px; }
.result b { display: block; font-size: 13.5px; color: var(--sage-600); font-weight: 600; margin-bottom: 4px; }
.belief-head { display: grid; gap: 14px; }
.belief-num { font-size: 14.5px; font-weight: 600; color: var(--sage-600); }
.belief-q { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink-soft); margin: 0; }
.objection { margin-top: 26px; border-top: 1px solid var(--sage-100); padding-top: 18px; }
.objection p:first-child { font-family: var(--serif); color: var(--sage-800); font-size: 1.15rem; margin-bottom: 6px; }

/* Pinned notes, same object as on the wall */
.pins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 44px; align-items: stretch; }
.pin { position: relative; margin: 0; padding: 8px; background: var(--white); border-radius: 3px; transform: rotate(var(--r, 0deg)); filter: drop-shadow(0 1px 1px rgba(38,48,42,.12)) drop-shadow(0 12px 14px rgba(38,48,42,.18)); }
.pin::before { content: ""; position: absolute; z-index: 2; top: -6px; left: 50%; width: 15px; height: 15px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #a9bba9 0 12%, #5c7260 45%, #3a4a3d 100%); box-shadow: 0 3px 3px rgba(20,30,24,.35); }
.pin button { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 300px; overflow: hidden; padding: 0; border: 0; background: var(--white); cursor: zoom-in; text-align: left; font: inherit; color: inherit; }
.pin img { display: block; width: 100%; height: auto; object-fit: cover; object-position: top; border-radius: 1px; background: var(--sage-100); }
.pin.cropped button::after { content: "Click to read"; position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 0 8px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--sage-800); background: linear-gradient(rgba(255,255,255,0), #fff 70%); }
.pin.cropped img { height: 100%; }
.pin:not(.cropped) img { border: 1px solid var(--sage-100); }
.pin figcaption { min-height: 3.6em; padding: 10px 2px 2px; font-size: 14px; line-height: 1.4; color: var(--ink-soft); }
.pin figcaption b { color: var(--ink); font-weight: 600; }

.chain { font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.3; max-width: 30ch; }

/* 10 Wall of Love (from Mehak's reference) */
.wall-sec { padding-top: clamp(56px, 8vw, 96px); }
.wall-intro h2 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -.025em; max-width: 11ch; }
.wall {
  position: relative; overflow-x: clip; margin-top: 40px;
  background-color: var(--wall);
  background-image:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .25  0 0 0 0 .33  0 0 0 0 .27  0 0 0 .08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  padding: 28px var(--gutter) clamp(72px, 9vw, 120px);
  box-shadow: inset 0 14px 24px -18px rgba(38,48,42,.35);
}
.wall-bar { max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto 36px; min-height: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 14.5px; color: var(--sage-800); }
.tidy { font: inherit; font-weight: 600; color: var(--sage-800); background: rgba(255,255,255,.7); border: 1px solid var(--sage-300); border-radius: 999px; padding: 6px 16px; cursor: pointer; }
.tidy[hidden] { display: none; }
.hint-touch { display: none; }
@media (hover: none) { .pin.cropped button::after { content: "Tap to read"; } }
@media (hover: none) { .hint { display: none; } .hint-touch { display: inline; } }
.grid { max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto; columns: 3 250px; column-gap: 44px; }
.note { --x: 0px; --y: 0px; --r: 0deg; position: relative; display: block; break-inside: avoid; margin: 0 0 44px; padding-top: 8px;
  transform: translate(var(--x), var(--y)) rotate(var(--r)); transition: transform .35s cubic-bezier(.2,.8,.2,1);
  filter: drop-shadow(0 1px 1px rgba(38,48,42,.12)) drop-shadow(0 12px 14px rgba(38,48,42,.2)); user-select: none; -webkit-user-select: none; }
.note::before { content: ""; position: absolute; z-index: 2; top: 1px; left: 50%; width: 15px; height: 15px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #a9bba9 0 12%, #5c7260 45%, #3a4a3d 100%); box-shadow: 0 3px 3px rgba(20,30,24,.35); }
.tile { display: block; width: 100%; margin: 0; padding: 9px; border: 0; cursor: grab; text-align: left; background: var(--white); border-radius: 3px; font: inherit; color: inherit; }
.tile img { display: block; width: 100%; height: auto; min-height: 140px; border-radius: 1px; background: var(--sage-100); pointer-events: none; }
.tile .media { position: relative; display: block; }
.cap { display: block; padding: 10px 4px 3px; font-size: 14.5px; line-height: 1.4; color: var(--ink-soft); }
.case-cap { padding-top: 9px; font-weight: 600; color: var(--sage-800); text-align: center; }
@media (hover: hover) { .note:not(.lifting):hover { transform: translate(var(--x), var(--y)) rotate(calc(var(--r) * .25)) scale(1.025); } }
.note.lifting { transition: none; cursor: grabbing; z-index: 60; transform: translate(var(--x), var(--y)) scale(1.04); }
.wall-foot { max-width: var(--max); margin: 32px auto 0; text-align: center; clear: both; }

/* 11 What working together looks like */
.steps { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 20px; padding: 24px 0; border-bottom: 1px solid var(--sage-100); }
.steps .n { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--sage-600); }
.steps h3 { font-size: 1.35rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-soft); }
.formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.formats div { border: 1px solid var(--sage-300); border-radius: 6px; padding: 14px 16px; }
.formats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.formats span { font-size: 15px; color: var(--ink-soft); }
.worth { margin-top: 44px; display: grid; gap: 12px; }
.worth p { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.35; margin: 0; max-width: 40ch; }

/* 12 Two choices */
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid var(--ink); }
.choices > div { padding: 26px 28px 26px 0; }
.choices > div + div { padding: 26px 0 26px 28px; border-left: 1px solid var(--sage-100); }
.choices h3 { margin-bottom: 10px; }
.choices p { color: var(--ink-soft); }
.capacity { margin: 28px 0 0; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.care { margin-top: 36px; font-size: 15px; color: var(--ink-soft); max-width: 62ch; }

/* 13 Application */
.apply-sec { background: var(--mist); }
.apply-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(32px, 6vw, 72px); align-items: start; }
form { background: var(--white); border-radius: 10px; padding: clamp(22px, 4vw, 36px); box-shadow: 0 1px 2px rgba(38,48,42,.06), 0 18px 40px -26px rgba(38,48,42,.35); }
.progress { display: flex; gap: 8px; margin-bottom: 8px; }
.progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--sage-100); }
.progress span.on { background: var(--sage-600); }
.step-label { font-size: 14px; color: var(--sage-600); font-weight: 600; margin-bottom: 18px; }
fieldset { border: 0; padding: 0; margin: 0; }
fieldset[hidden] { display: none; }
.field { margin-bottom: 18px; }
label, .q { display: block; font-weight: 600; font-size: 15.5px; margin-bottom: 6px; }
.hint-t { display: block; font-weight: 400; color: var(--ink-soft); font-size: 14.5px; margin-top: 2px; }
input[type=text], input[type=email], input[type=tel], textarea, select { width: 100%; font: inherit; color: inherit; padding: 11px 13px; border: 1px solid var(--sage-300); border-radius: 6px; background: var(--white); }
textarea { min-height: 96px; resize: vertical; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.radio { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 8px 0; }
.radio input { margin-top: 5px; accent-color: var(--sage-800); }
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.back { background: none; border: 0; font: inherit; font-weight: 600; color: var(--sage-800); cursor: pointer; padding: 8px 0; }
.after h3 { margin-bottom: 14px; }
.after ol { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.after li { margin-bottom: 10px; }
.done { display: none; }
.form-error { margin: 0 0 14px; padding: 10px 14px; border-radius: 6px; background: #fbe9e4; color: #8a3b25; font-size: 14.5px; }
.form-error[hidden] { display: none; }
form.sent fieldset, form.sent .progress, form.sent .step-label, form.sent .form-nav { display: none; }
form.sent .done { display: block; }

/* 14 FAQ */
.faq details { border-bottom: 1px solid var(--sage-100); padding: 4px 0; }
.faq details:first-of-type { border-top: 1px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-family: var(--serif); font-size: 1.25rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--sage-600); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 0 20px; color: var(--ink-soft); max-width: 62ch; }

/* 16 Closing CTA (dark sage band, as in the reference) */
.cta-band { background: var(--sage-800); color: var(--white); }
.cta-band h2 { color: var(--white); max-width: 18ch; }
.cta-band p { color: #dfe7da; max-width: 54ch; font-size: 1.08rem; }
.ps { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2); font-family: var(--serif); font-size: 1.15rem; color: #e6ede2; max-width: 60ch; }
/* Footer: see "MULTIPAGE: footer" below. */


/* Viewer */
dialog { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
dialog::backdrop { background: rgba(28,36,30,.92); }
.lb { height: 100%; display: grid; place-items: center; padding: 56px 64px; }
.stage { display: grid; place-items: center; max-width: 100%; max-height: 100%; }
.stage img { max-width: min(100%, 560px); max-height: calc(100vh - 112px); border-radius: 6px; background: var(--white); }
.stage video { max-width: min(100%, 420px); max-height: calc(100vh - 112px); border-radius: 10px; background: #000; }
.lb button { position: fixed; border: 0; background: rgba(255,255,255,.14); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; cursor: pointer; line-height: 1; }
.lb button:hover { background: rgba(255,255,255,.28); }
.lb .close { top: 16px; right: 16px; }
.lb .prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb .count { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); color: #e8eee5; font-size: 14px; }


@media (max-width: 860px) {
  .story-grid, .apply-grid, .sensible { grid-template-columns: 1fr; }
  .apply-grid .after { order: -1; }
  .sensible-text { border-left: 0; padding-left: 0; }
  .hero-grid, .case { grid-template-columns: minmax(0, 1fr) minmax(0, 240px); gap: 32px; }
  .case.flip { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); }
  .case-media .reel, .hero-media .reel { max-width: 240px; }
  .hero-media .needs { max-width: 240px; }
  .case-media .pins { max-width: 240px; }
  .pins { gap: 20px; }
  .pin button { height: 240px; }
  .pin figcaption { font-size: 13px; }
  .choices { grid-template-columns: 1fr; }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choices > div, .choices > div + div { padding: 22px 0; border-left: 0; }
  .choices > div + div { border-top: 1px solid var(--sage-100); }
  .portrait { max-width: 320px; }
}
@media (max-width: 700px) {
  .hero-grid, .case, .case.flip { grid-template-columns: 1fr; }
  .case.flip .case-media { order: 0; }
  .reel, .case-media .reel, .hero-media .reel { margin: 0; max-width: 260px; }
  .hero-media { align-items: flex-start; }
  .hero-media .needs { max-width: 260px; }
  .case-media .pins { max-width: 260px; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  /* Pinned screenshots: one swipeable row instead of an orphaned third card */
  .pins { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 14px var(--gutter) 36px; margin-bottom: -14px; scrollbar-width: none; }
  .pins::-webkit-scrollbar { display: none; }
  .pin { flex: 0 0 76%; scroll-snap-align: center; padding: 6px; filter: drop-shadow(0 1px 1px rgba(38,48,42,.12)) drop-shadow(0 6px 8px rgba(38,48,42,.16)); }
  .pin button { height: 260px; }
  .case-media .pins { margin: 28px 0 0; padding: 14px 0 22px; overflow: visible; }
  .case-media .pin { flex-basis: 100%; }
  /* 1-2-3 strip stacks instead of wrapping mid-line */
  .steps li { grid-template-columns: 36px minmax(0, 1fr); gap: 4px 14px; }
  .areas { grid-template-columns: 1fr; }
  /* Wall of Love on phones: two notes side by side, tap to enlarge */
  .wall { padding-left: 12px; padding-right: 12px; }
  .wall-bar { margin-bottom: 24px; padding: 0 4px; font-size: 13.5px; }
  .grid { columns: 2; column-gap: 14px; }
  .note { margin-bottom: 26px; filter: drop-shadow(0 1px 1px rgba(38,48,42,.12)) drop-shadow(0 8px 10px rgba(38,48,42,.18)); }
  .note::before { width: 11px; height: 11px; top: 2px; margin-left: -5px; }
  .tile { padding: 5px; }
  .tile img { min-height: 90px; }
  .case-cap { padding: 7px 2px 2px; font-size: 12.5px; line-height: 1.3; }
  .lb { padding: 60px 10px 76px; }
  .stage img { max-height: calc(100vh - 150px); }
  .lb .prev, .lb .next { top: auto; bottom: 14px; transform: none; }
  .lb .prev { left: 16px; } .lb .next { right: 16px; }
  .lb .count { bottom: 26px; }
  .row2, .formats { grid-template-columns: 1fr; }
  .row2 { gap: 0; }
  .lb { padding: 64px 12px; }
  .lb .prev, .lb .next { top: auto; bottom: 10px; transform: none; }
  .lb .count { bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 { animation: none; }
  .note, .btn { transition: none; }
}


/* ==========================================================================
   MULTIPAGE (everything below is new for website/multipage/)
   ========================================================================== */

/* --- Skip link (first thing in <body>, targets <main id="main" tabindex="-1">) --- */
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--sage-800); color: var(--white); padding: 10px 16px; border-radius: 6px; font-weight: 600; font-size: 15px; text-decoration: none; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* --- MULTIPAGE: header -----------------------------------------------------
   DOM order: a.brand, button.menu-btn, nav#site-nav.site-nav (ul > li > a), a.btn.header-apply.
   Above 960px: brand left, tabs + Apply right, all on one line; the menu button is hidden.
   At 960px and below: brand, Apply, Menu; the tabs drop into a full-width panel under the bar.
   The current tab is marked with aria-current="page" (sage underline, not a pill).
   The header scrolls away with the page, as on the funnel (not sticky). */
.site-header { position: relative; flex-wrap: nowrap; gap: 12px clamp(18px, 2.4vw, 36px); }
.brand { flex: 0 0 auto; }
.brand strong, .brand span { white-space: nowrap; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.site-nav a {
  display: block; padding: 8px 0; font-size: 15px; font-weight: 500; letter-spacing: .01em; color: var(--ink-soft); white-space: nowrap;
  text-decoration-line: underline; text-decoration-thickness: 2px; text-decoration-color: transparent; text-underline-offset: 9px; transition: color .2s ease, text-decoration-color .2s ease;
}
.site-nav a:hover { color: var(--ink); text-decoration-color: var(--sage-300); }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration-color: var(--sage-600); }
.header-apply { flex: 0 0 auto; white-space: nowrap; }
.header-apply[aria-current="page"] { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--sage-300); }
.menu-btn { display: none; }

@media (min-width: 961px) {
  /* The nav carries the hidden attribute for the phone menu; on wide screens it always shows. */
  .site-nav, .site-nav[hidden] { display: block; }
}

/* --- MULTIPAGE: phone menu (960px and below) --- */
@media (max-width: 960px) {
  .site-header { padding-top: 14px; padding-bottom: 14px; gap: 10px; }
  .header-apply { order: 2; margin-left: auto; }
  .menu-btn {
    order: 3; display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; min-height: 44px; min-width: 44px; padding: 0 2px 0 8px;
    border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--sage-800); cursor: pointer;
  }
  .menu-icon { position: relative; display: inline-block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: background .2s ease; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; }
  .menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: absolute; z-index: 80; top: 100%; left: 0; right: 0; margin: 0;
    background: var(--white); border-top: 1px solid var(--sage-100); border-bottom: 1px solid var(--sage-300);
    box-shadow: 0 26px 30px -24px rgba(38,48,42,.4);
  }
  .site-nav[hidden] { display: none; }
  .site-nav ul { display: block; padding: 6px var(--gutter) 14px; }
  .site-nav li + li { border-top: 1px solid var(--sage-100); }
  .site-nav a {
    display: flex; align-items: center; min-height: 58px; padding: 12px 0;
    font-family: var(--serif); font-weight: 300; font-size: 1.5rem; letter-spacing: -.01em; color: var(--ink); text-underline-offset: 7px;
  }
}
@media (max-width: 480px) {
  .site-header .header-apply { padding: 10px 16px; }
  .apply-long { display: none; } /* "Apply for a call" -> "Apply" in the phone bar */
}
@media (max-width: 359px) {
  .brand strong { font-size: 20px; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* --- MULTIPAGE: closing CTA band (section.cta-band: h2, p, .cta-row; omitted on apply.html) --- */
.cta-band h2 + p { margin-top: 20px; }

/* --- MULTIPAGE: footer -----------------------------------------------------
   footer.site-footer > .footer-inner > p.footer-brand, nav.footer-nav (ul), ul.footer-social, p.footer-copy.
   Three columns on wide screens; stacks on phones. */
.site-footer { border-top: 1px solid var(--sage-100); color: var(--ink-soft); font-size: 14.5px; }
.cta-band + .site-footer, .apply-sec + .site-footer { border-top: 0; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 44px var(--gutter) 32px; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto); gap: 24px clamp(28px, 5vw, 64px); align-items: start; }
.footer-brand { margin: 0; line-height: 1.25; }
.footer-brand strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--ink); }
.footer-brand span { font-size: 14px; }
.footer-nav ul, .footer-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.footer-social { justify-content: flex-end; }
.site-footer a { color: var(--ink-soft); text-decoration: none; text-underline-offset: 4px; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-nav a, .footer-social a { display: inline-block; padding: 3px 0; }
.footer-copy { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 18px; border-top: 1px solid var(--sage-100); font-size: 13.5px; }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 36px; }
  .footer-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .footer-nav a, .footer-social a { padding: 9px 0; }
  .footer-social { justify-content: flex-start; }
}

/* --- MULTIPAGE: page intro (top of every inner page) ---------------------------
   <section class="page-intro"><div class="wrap"><p class="eyebrow">…</p><h1>…</h1><p class="lead">…</p></div></section>
   Same type family as the hero, one step smaller and shorter. */
.page-intro { padding-top: clamp(28px, 6vw, 72px); padding-bottom: clamp(44px, 6vw, 76px); }
.page-intro h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); line-height: 1.05; letter-spacing: -.022em; max-width: 16ch; animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
.page-intro .lead { max-width: 52ch; }

/* --- MULTIPAGE: Home teaser helpers ------------------------------------------ */

/* .teaser-grid > .teaser (h3, p, a.textlink): ruled blocks like .area, 2 to 3 across, 1 on phones. */
.teaser-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 28px clamp(24px, 3vw, 40px); margin-top: 40px; }
.teaser { border-top: 1px solid var(--ink); padding-top: 18px; }
.teaser h3 { margin-bottom: 8px; }
.teaser p { color: var(--ink-soft); font-size: 16px; }

/* ol.steps-mini > li > span.n + div (h3, p): the 3-step "how it works" teaser. 3 across, a ruled list on phones. */
.steps-mini { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 40px); border-top: 1px solid var(--ink); }
.steps-mini li { padding: 22px 0 6px; }
.steps-mini .n { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--sage-600); margin-bottom: 12px; }
.steps-mini h3 { font-size: 1.35rem; margin-bottom: 6px; }
.steps-mini p { margin: 0; color: var(--ink-soft); font-size: 16px; }
@media (max-width: 700px) {
  .steps-mini { grid-template-columns: minmax(0, 1fr); }
  .steps-mini li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 14px; padding: 20px 0; border-bottom: 1px solid var(--sage-100); }
  .steps-mini .n { margin: 0; }
}

/* .about-teaser > figure.portrait + div: small portrait beside a short intro. Stacks on phones. */
.about-teaser { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-teaser .portrait { position: static; max-width: 260px; }
@media (max-width: 700px) {
  .about-teaser { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .about-teaser .portrait { max-width: 220px; }
}

/* .wall-strip > a.strip-note (style="--r:-1.5deg") > span.strip-img > img, + optional span.strip-cap.
   3 or 4 small pinned notes on a strip of the sage wall, each linking to wall-of-love.html.
   One row on wide screens (columns = number of notes), two per row on phones. */
.wall-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 36px clamp(18px, 2.6vw, 36px);
  margin: 40px 0 0; padding: 40px clamp(20px, 3vw, 40px) 44px; border-radius: 6px;
  background-color: var(--wall);
  background-image:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .25  0 0 0 0 .33  0 0 0 0 .27  0 0 0 .08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  box-shadow: inset 0 14px 24px -18px rgba(38,48,42,.35);
}
.strip-note {
  position: relative; display: block; padding: 8px; background: var(--white); border-radius: 3px; text-decoration: none; color: inherit;
  transform: rotate(var(--r, 0deg)); transition: transform .35s cubic-bezier(.2,.8,.2,1);
  filter: drop-shadow(0 1px 1px rgba(38,48,42,.12)) drop-shadow(0 12px 14px rgba(38,48,42,.2));
}
.strip-note::before { content: ""; position: absolute; z-index: 2; top: -6px; left: 50%; width: 15px; height: 15px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #a9bba9 0 12%, #5c7260 45%, #3a4a3d 100%); box-shadow: 0 3px 3px rgba(20,30,24,.35); }
.strip-img { position: relative; display: block; height: 230px; overflow: hidden; border-radius: 1px; background: var(--sage-100); }
.strip-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.strip-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(rgba(255,255,255,0), #fff 85%); }
.strip-cap { display: block; padding: 6px 2px 2px; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--sage-800); text-align: center; }
@media (hover: hover) { .strip-note:hover { transform: rotate(calc(var(--r, 0deg) * .25)) scale(1.025); } }
@media (max-width: 600px) {
  .wall-strip { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; padding: 30px 14px 30px; margin-left: calc(-1 * var(--gutter) + 4px); margin-right: calc(-1 * var(--gutter) + 4px); }
  .strip-note { padding: 5px; filter: drop-shadow(0 1px 1px rgba(38,48,42,.12)) drop-shadow(0 8px 10px rgba(38,48,42,.18)); }
  .strip-note::before { width: 11px; height: 11px; top: -4px; margin-left: -5px; }
  .strip-img { height: 170px; }
  .strip-cap { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-intro h1 { animation: none; }
  .site-nav a, .strip-note, .menu-icon, .menu-icon::before, .menu-icon::after { transition: none; }
}
