/* Hallmark · the showcase (kind "build"), PASS 4 · macrostructure: Premiere (opening → film → full-bleed
 * chapters → statement → offer → close) · tone: the business's own brand, cinematic, quiet chrome
 * theme: per-business tokens from /b/<slug>.css (paper, ink, accent + derived AA-checked text colours)
 * motion: Ken Burns drift on photos and screens (CSS), once-only reveals + gentle screen parallax
 * (GSAP ScrollTrigger, no pins), Lenis wheel smoothing; everything off under prefers-reduced-motion
 * Hallmark · pre-emit critique: P5 H5 E4 S5 R4 V5
 * PASS 5 · product pages share this sheet: + the Try it yourself band (accent field, the one
 * place the product's colour fills a whole section) and the opening's "by" as a link home.
 */
:root {
  --display: 'Brand Display', Georgia, serif;
  --body: 'Brand Body', system-ui, sans-serif;
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 4rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 50px 120px -50px var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body.show { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.show a { color: inherit; text-underline-offset: 3px; }
.show :focus-visible { outline: 2px solid var(--accent-on-ink); outline-offset: 3px; }
.on-paper :focus-visible { outline-color: var(--accent-on-paper); }
.show h1, .show h2, .show h3 { font-family: var(--display); font-weight: 400; font-style: normal; margin: 0; letter-spacing: -0.02em; text-wrap: balance; overflow-wrap: anywhere; }
.show em { font-style: normal; }

.k { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-on-ink); }
.on-paper .k { color: var(--accent-on-paper); }

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 52px; padding: 0 1.6rem; border-radius: 999px; border: 1px solid var(--button); background: var(--button); color: var(--button-text) !important; font: 500 1rem/1 var(--body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: transform 160ms var(--ease), opacity 160ms var(--ease); }
.pill svg { width: 13px; height: 14px; }
.pill--quiet { background: transparent; color: inherit !important; border-color: currentColor; }
.pill:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) { .pill:hover { opacity: 0.88; } }
.pill[data-state='ok'] { opacity: 0.88; }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* 1 · opening: their photos, drifting */
.open { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; isolation: isolate; overflow: hidden; }
.open__photos { position: absolute; inset: 0; z-index: -2; background: var(--ink); }
.open__photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2.4s var(--ease); animation: drift 26s var(--ease) infinite alternate; }
.open__photos img.is-on { opacity: 1; }
.open__photos img:nth-child(2) { animation-delay: -9s; }
.open__photos img:nth-child(3) { animation-delay: -17s; }
@keyframes drift { from { transform: scale(1.12) translate(1.5%, 1%); } to { transform: scale(1.02) translate(-1.5%, -1%); } }
.open::after { content: ''; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, color-mix(in srgb, var(--ink) 55%, transparent) 0%, transparent 30%),
  linear-gradient(15deg, var(--ink) 8%, color-mix(in srgb, var(--ink) 80%, transparent) 42%, color-mix(in srgb, var(--ink) 15%, transparent) 78%); }
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 1rem; padding: 1.4rem var(--gutter); }
.brand { display: flex; align-items: center; gap: 0.75rem; font-family: var(--display); font-size: 1.35rem; white-space: nowrap; min-width: 0; }
.brand__logo { height: 40px; width: auto; max-width: 220px; object-fit: contain; }
.brand__mono { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--button); color: var(--button-text); display: grid; place-items: center; font-size: 1.2rem; }
.by { text-decoration: none; display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-on-ink); white-space: nowrap; }
.open__body { align-self: end; padding: 0 var(--gutter) clamp(2.5rem, 6vw, 5.5rem); max-width: 1200px; }
.open h1 { font-size: clamp(3.2rem, 1.6rem + 7.5vw, 8.5rem); line-height: 0.92; margin: 1rem 0 1.4rem; }
.open h1 em { color: var(--accent-on-ink); }
.open__lede { max-width: 40ch; margin: 0; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); color: var(--muted-on-ink); }
.open .row { margin-top: 2rem; }
@media (max-width: 560px) { .by { flex-basis: 100%; font-size: 0.68rem; } }

/* 2 · the film */
.film { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }
.film__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding: 0 var(--gutter); margin-bottom: 1.5rem; }
.film h2, .plans-wrap h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 4.2rem); line-height: 1; margin-top: 0.6rem; }
.film__len { color: var(--muted-on-ink); font-size: 0.95rem; white-space: nowrap; }
.screen { margin: 0 var(--gutter); border-radius: 22px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.player { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.tiles { list-style: none; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 1.5rem var(--gutter) 0.5rem; scrollbar-width: none; }
.tiles::-webkit-scrollbar { display: none; }
.tiles li { scroll-snap-align: start; min-width: 0; }
.tile { display: grid; gap: 0.35rem; width: 100%; padding: 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tile img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-on-ink); transition: transform 400ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.02); } }
.tile__t { display: flex; gap: 0.6rem; margin-top: 0.35rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__n { color: var(--accent-on-ink); font-family: var(--display); font-weight: 400; }
.tile__at { color: var(--muted-on-ink); font-size: 0.875rem; }
.tile[aria-current='true'] .tile__t { color: var(--accent-on-ink); }
@media (max-width: 700px) {
  .film__head { flex-direction: column; align-items: start; }
  .screen { margin: 0; border-radius: 0; }
  .tiles { grid-auto-columns: 72%; }
}

/* 3 · what we built: one full-bleed chapter per group, their screen running off the edge */
.built__intro { padding: clamp(4rem, 9vw, 8rem) var(--gutter) clamp(1rem, 3vw, 2rem); max-width: 1200px; }
.built__intro h2 { font-size: clamp(2.8rem, 1.6rem + 5vw, 6rem); line-height: 0.95; margin-top: 0.8rem; }
.chap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; min-height: 100svh; gap: clamp(2rem, 4vw, 4rem); padding: clamp(2rem, 5vw, 4rem) 0; }
.chap__body { padding-left: var(--gutter); max-width: 620px; }
.chap__shot { position: relative; height: min(82svh, 760px); overflow: hidden; border-radius: 22px 0 0 22px; box-shadow: var(--shadow); background: var(--paper); }
.chap__shot picture, .chap__shot img { position: absolute; inset: 0; width: 100%; height: 100%; }
.chap__shot img { object-fit: cover; object-position: top left; transform: scale(1.06); animation: drift-soft 30s var(--ease) infinite alternate; }
@keyframes drift-soft { from { transform: scale(1.06) translate(0.8%, 0.6%); } to { transform: scale(1.01) translate(-0.8%, -0.6%); } }
.chap--r { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.chap--r .chap__shot { order: -1; border-radius: 0 22px 22px 0; }
.chap--r .chap__shot img { object-position: top right; }
.chap--r .chap__body { padding: 0 var(--gutter) 0 0; }
.chap__n { font-family: var(--display); font-size: 1.25rem; color: var(--accent-on-ink); }
.chap h3 { font-size: clamp(2.6rem, 1.6rem + 4vw, 5.25rem); line-height: 0.95; margin: 0.5rem 0 1.6rem; }
.chap ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-on-ink); }
.chap li { padding: 1rem 0; border-bottom: 1px solid var(--line-on-ink); font-size: clamp(1.05rem, 1rem + 0.35vw, 1.3rem); overflow-wrap: anywhere; }
@media (max-width: 800px) {
  .chap, .chap--r { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 2rem; padding: 1.5rem 0 3.5rem; }
  .chap__shot, .chap--r .chap__shot { order: -1; height: auto; aspect-ratio: 4 / 5; margin-left: var(--gutter); border-radius: 16px 0 0 16px; }
  .chap--r .chap__shot { margin: 0 var(--gutter) 0 0; border-radius: 0 16px 16px 0; }
  .chap__shot img, .chap--r .chap__shot img { object-position: top center; }
  .chap__body, .chap--r .chap__body { padding: 0 var(--gutter); }
}

/* product pages: try it yourself — the accent fills the band, the button inverts to ink */
.try { padding: clamp(5rem, 11vw, 10rem) var(--gutter); background: var(--button); color: var(--button-text); }
.try .k { color: inherit; }
.try h2 { font-size: clamp(3.2rem, 1.8rem + 7vw, 8.5rem); line-height: 0.9; letter-spacing: -0.03em; margin: 0.8rem 0 1.4rem; }
.try__lede { max-width: 44ch; margin: 0; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); }
.try .row { margin-top: 2.2rem; }
.try .pill { background: var(--ink); border-color: var(--ink); color: var(--paper) !important; }
.try :focus-visible { outline-color: currentColor; }
@media (hover: hover) and (pointer: fine) { .by:hover { color: var(--paper); } }

/* 4 · it's yours */
.on-paper { background: var(--paper); color: var(--ink); }
.yours { padding: clamp(5rem, 12vw, 11rem) var(--gutter); }
.yours h2 { font-size: clamp(4rem, 2rem + 11vw, 12rem); line-height: 0.85; letter-spacing: -0.03em; }
.yours h2 em { color: var(--accent-on-paper); }
.yours p { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.75rem); max-width: 28ch; margin: 2rem 0 0; color: var(--muted-on-paper); }

/* 5 · after launch */
.plans-wrap { padding: clamp(4rem, 8vw, 7rem) var(--gutter); background: var(--paper-soft); }
.plans-wrap .lede { color: var(--muted-on-paper); font-size: 1.15rem; margin: 0.8rem 0 0; }
.plans { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.25rem; }
.plan { display: flex; flex-direction: column; gap: 0.4rem; padding: 2rem 1.75rem; border-radius: 20px; background: var(--card); border: 1px solid var(--line-on-paper); min-width: 0; }
.plan p { margin: 0; }
.plan__name { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-on-paper); }
.plan__price { font-size: 0.95rem; color: var(--muted-on-paper); }
.plan__amt { font-family: var(--display); font-size: 3.25rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan__head { font-family: var(--display); font-size: 1.5rem; margin-top: 0.6rem !important; }
.plan__lines { list-style: none; margin: 0.75rem 0 0; padding: 0; color: var(--muted-on-paper); font-size: 0.95rem; }
.plan__lines li { padding: 0.3rem 0; }
.plan__save { font-size: 0.95rem; margin-top: 0.5rem !important; }
.plan__save s { opacity: 0.7; }
.plan__link { margin-top: auto; padding-top: 1.25rem; font-weight: 500; color: var(--accent-on-paper) !important; white-space: nowrap; }
.plan--lit { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan--lit .plan__name, .plan--lit .plan__link { color: var(--accent-on-ink) !important; }
.plan--lit .plan__price, .plan--lit .plan__lines { color: var(--muted-on-ink); }
.plan--lit .plan__amt { color: var(--paper); }
.plans__note { color: var(--muted-on-paper); margin: 1.5rem 0 0; font-size: 0.95rem; max-width: 60ch; }

/* 6 · let's talk */
.talk { min-height: 80svh; display: grid; align-content: center; padding: clamp(5rem, 10vw, 9rem) var(--gutter); }
.talk h2 { font-size: clamp(4rem, 2rem + 10vw, 11rem); line-height: 0.88; margin: 0.8rem 0 1.5rem; letter-spacing: -0.03em; }
.talk__lede { color: var(--muted-on-ink); font-size: 1.2rem; max-width: 38ch; margin: 0; }
.talk .row { margin-top: 2.2rem; }
.talk__addr { color: var(--muted-on-ink); margin: 1rem 0 0; font-size: 0.95rem; overflow-wrap: anywhere; }
.note { min-height: 1.5em; margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--muted-on-ink); }
.note__box { width: 100%; max-width: 520px; margin-top: 0.5rem; padding: 0.75rem; background: transparent; color: inherit; border: 1px solid var(--line-on-ink); border-radius: 12px; font: 0.8rem/1.5 ui-monospace, monospace; }

.sig { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.5rem var(--gutter); border-top: 1px solid var(--line-on-ink); color: var(--muted-on-ink); font-size: 0.875rem; }
.sig__by { display: flex; align-items: center; gap: 0.6rem; }
.sig__by img { flex: none; }
.sig__end { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.sig__copy { background: none; border: 0; padding: 0.5rem 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.stamp { font-size: 0.7rem; letter-spacing: 0.08em; opacity: 0.6; }

/* reveals: visible by default; the script hides them only when it can animate them back in */
.js-motion .reveal { opacity: 0; transform: translateY(28px); }

@media (prefers-reduced-motion: reduce) {
  .open__photos img, .chap__shot img { animation: none; transform: none; transition: none; }
  .pill, .tile img { transition: none; }
}
