/* Hallmark v2.0.0 · custom direction · theme: the owner's palette on alabaster (espresso ink, gold hairlines) · shape: pinned story (viewfinder) · signature: the logo's three stacked frames, built big, whose front screen runs idea, script, render and finished film as you scroll · genre: atmospheric */
/* critique: the first screen shows the real result (finished film frames) before any claim; every later section is one idea set big. */
/* waive 24b: spacing set by eye per element at display sizes. waive 11: the product shot zooms on hover. */
/* waive 27: the owner's standing rule is that motion is never switched off by the reduce-motion setting (their own PC has it on). */

:root {
  /* The owner's palette (2026-11-23): alabaster #F7F3EB, espresso #36261E, gold #CE9E43, taupe #9E9082.
     Alabaster is the ground, espresso is the ink and the few solid things, gold is a hairline accent, never a field. */
  --bg: #F7F3EB; --bg-2: #F0EADF; --panel: #FCFAF6; --cream: #E9E1D3; --line: #E3DACB; --line-hi: #CDBFAB;
  --ink: #36261E; --dim: #6A574C; --mute: #8C7E71; --taupe: #9E9082;
  --accent: #CE9E43; --accent-soft: #F1E3C4; --rec: #D9503F; --screen: #24180F; --hud: #F7F3EB; --shade: #36261E;
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --grain: .035;
}
:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --max: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --r: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; transition: none; }
/* Plus Jakarta Sans sets a wide gap before a full stop; at display sizes it reads as a stray space */
.stop { margin-left: -.09em; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; margin: 0; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }

/* Film grain: one fixed layer over everything, strength per theme */
body::after { content: ""; position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: var(--grain); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: overlay; animation: grain 1s steps(6) infinite; }
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; color: var(--ink); transition: background-color .3s; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); background: linear-gradient(var(--bg) 30%, transparent); }
.nav nav { display: flex; gap: 6px; }
.nav nav a { padding: 8px 14px; border-radius: 999px; color: var(--dim); font-weight: 500; font-size: 15px; text-decoration: none; transition: color .2s, background-color .2s; }
.nav nav a:hover { color: var(--ink); background: var(--panel); }
.mark { display: inline-flex; align-items: center; gap: 10px; font: 800 19px var(--display); letter-spacing: -.035em; text-decoration: none; color: var(--ink); }
.logo { width: 34px; height: 27px; flex: none; }
.l-back { fill: var(--taupe); } .l-mid { fill: var(--cream); stroke: var(--bg); stroke-width: 1.2; }
.l-front { fill: var(--ink); stroke: var(--accent); stroke-width: 2.5; } .l-play { fill: var(--hud); }

/* Buttons */
.btn, button[type=submit] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: 700 16px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: 0 12px 24px -14px var(--shade); transition: transform .2s var(--ease), box-shadow .2s, background-color .2s; }
.btn:hover, button[type=submit]:hover { transform: translateY(-1px); box-shadow: 0 18px 30px -14px var(--shade); }
.btn:active, button[type=submit]:active { transform: scale(.97); }
button[type=submit]:disabled { cursor: progress; }
button.busy::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
button.done::before { content: ""; width: 7px; height: 13px; margin: -3px 3px 0 2px; border: solid currentColor; border-width: 0 3px 3px 0; transform: rotate(45deg); animation: tick .35s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tick { from { opacity: 0; transform: rotate(45deg) scale(.3); } to { opacity: 1; transform: rotate(45deg) scale(1); } }

/* The story: one screen per beat, the viewfinder pinned */
.story { position: relative; }
.js .story { height: 520svh; }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(32px, 6vw, 96px); max-width: var(--max); margin: 0 auto; padding: 96px var(--gut) 48px; min-height: 100svh; }
.js .stage { position: sticky; top: 0; height: 100svh; }
.copy { display: grid; }
.js .copy > .beat { grid-area: 1 / 1; }
html:not(.js) .beat + .beat { margin-top: 48px; }
.js .beat { opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.js .beat.on { opacity: 1; transform: none; pointer-events: auto; transition-delay: .08s; }
.beat h1 { font-size: calc(1 * clamp(44px, 6.4vw, 92px)); max-width: 11ch; }
.beat h2 { font-size: calc(1 * clamp(52px, 8vw, 120px)); }
.beat p { max-width: 30ch; margin: 22px 0 0; color: var(--dim); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; }
.beat .lede { color: var(--dim); }
.num { display: inline-block; margin-bottom: 18px; padding-bottom: 6px; border-bottom: 2px solid var(--accent); color: var(--ink); font: 600 15px var(--mono); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 34px; }
.hint { color: var(--mute); font-size: 15px; }
.hint::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(1px) rotate(45deg); } }

/* The viewfinder */
.viewfinder { position: relative; margin: 0; height: min(74svh, 740px); aspect-ratio: 9 / 16; }
/* The logo, built big: a taupe frame and a cream frame stacked behind the gold-edged screen. It stands turned on the
   opening and closing screens, faces you square while the film is being made, and the frames behind fan out and in. */
.rig { position: absolute; inset: 0; transform: perspective(1800px) rotateY(-14deg) rotateX(4deg); transition: transform 1.1s var(--ease); }
.stage[data-beat="1"] .rig, .stage[data-beat="2"] .rig, .stage[data-beat="3"] .rig { transform: perspective(1800px) rotateY(0) rotateX(0); }
.card { position: absolute; inset: 0; border-radius: 28px; transition: transform 1.1s var(--ease); }
.card.back { background: var(--taupe); transform: translate(-22%, -9%) scale(.94); }
.card.mid { background: var(--cream); box-shadow: 0 0 0 1px var(--line-hi); transform: translate(-11%, -4.5%) scale(.97); }
.stage[data-beat="1"] .card.back, .stage[data-beat="2"] .card.back, .stage[data-beat="3"] .card.back { transform: translate(-10%, -5%) scale(.94); }
.stage[data-beat="1"] .card.mid, .stage[data-beat="2"] .card.mid, .stage[data-beat="3"] .card.mid { transform: translate(-5%, -2.5%) scale(.97); }
.screen { position: absolute; inset: 0; isolation: isolate; overflow: hidden; border-radius: 28px; background: var(--screen); box-shadow: 0 0 0 4px var(--accent), 0 50px 80px -40px var(--shade), 0 20px 40px -28px var(--shade); }
.layer { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.stage[data-beat="0"] .film, .stage[data-beat="4"] .film, .stage[data-beat="1"] .idea, .stage[data-beat="2"] .script, .stage[data-beat="3"] .build { opacity: 1; }

/* one film at a time: the next fades in over the last, which then drops away; each one creeps closer while it is up */
.film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.js .film img { opacity: 0; transform: scale(1.001); transition: opacity .9s var(--ease), transform 4.2s linear; }
.js .film img.on { opacity: 1; transform: scale(1.06); z-index: 1; }
.js .film img.was { opacity: 1; transform: scale(1.06); transition: none; }
html:not(.js) .film img + img { display: none; }

.idea { display: grid; place-items: center; padding: 12%; background: var(--panel); }
.typed { margin: 0; font: 800 clamp(28px, 2.8vw, 42px)/1.08 var(--display); letter-spacing: -.035em; color: var(--ink); }
.caret { display: inline-block; width: .09em; height: .95em; margin-left: .06em; vertical-align: -.1em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.script { padding: 22% 11% 0; background: var(--panel); font: 500 clamp(12px, 1vw, 14.5px)/1.6 var(--mono); color: var(--dim); }
.script p { margin: 0 0 1.1em; }
.js .script p { opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.js .script p.on { opacity: 1; transform: none; }
.script .ex { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); }
.script .slug { color: var(--ink); font-weight: 600; }
.script .who { margin: 1.6em 0 .2em 34%; color: var(--ink); }
.script .line { margin-left: 18%; color: var(--ink); }

.build img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.build .clay { filter: grayscale(1) contrast(.85) brightness(1.08); }
.build .paint { clip-path: inset(0 0 var(--left, 100%) 0); }
.sweep { position: absolute; left: 0; right: 0; top: calc(100% - var(--left, 100%)); height: 2px; background: var(--accent); box-shadow: 0 0 18px 3px var(--accent); }
.pct { position: absolute; left: 50%; bottom: 7%; margin: 0; padding: 8px 14px; transform: translateX(-50%); border-radius: 999px; background: var(--screen); color: var(--hud); font: 500 13px var(--mono); white-space: nowrap; }
.pct b { display: inline-block; min-width: 3ch; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.hud { position: absolute; inset: 0; pointer-events: none; color: var(--hud); font: 600 12px var(--mono); }
.hud .c { position: absolute; width: 26px; height: 26px; border: 0 solid currentColor; }
.hud .tl { top: 16px; left: 16px; border-width: 2px 0 0 2px; } .hud .tr { top: 16px; right: 16px; border-width: 2px 2px 0 0; }
.hud .bl { bottom: 16px; left: 16px; border-width: 0 0 2px 2px; } .hud .br { bottom: 16px; right: 16px; border-width: 0 2px 2px 0; }
.rec { position: absolute; top: 24px; left: 52px; display: flex; align-items: center; gap: 7px; text-shadow: 0 1px 4px var(--screen); }
.rec::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--rec); animation: blink 1.2s steps(1) infinite; }
.tc { position: absolute; top: 24px; right: 52px; font-variant-numeric: tabular-nums; text-shadow: 0 1px 4px var(--screen); }
.fmt { position: absolute; bottom: 24px; right: 52px; opacity: .8; text-shadow: 0 1px 4px var(--screen); }
.stage[data-beat="1"] .hud, .stage[data-beat="2"] .hud { color: var(--ink); }
.stage[data-beat="1"] .hud span, .stage[data-beat="2"] .hud span { text-shadow: none; }
.hud, .hud span { transition: color .5s var(--ease); }
.cap { position: absolute; left: 0; right: 0; top: calc(100% + 22px); color: var(--mute); font-size: 13px; text-align: center; }

/* Proof */
.proof { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 72px); max-width: var(--max); margin: 0 auto; padding: clamp(96px, 14vw, 180px) var(--gut); }
.big { margin: 0; padding-bottom: .06em; border-bottom: .07em solid var(--accent); font-family: var(--display); font-weight: 800; letter-spacing: -.06em; color: var(--ink); }
.proof .big { font-size: clamp(120px, 22vw, 300px); line-height: .8; color: var(--ink); }
.proof h2 { font-size: calc(1 * clamp(32px, 4vw, 54px)); max-width: 14ch; }
.proof p { max-width: 44ch; margin: 18px 0 0; color: var(--dim); font-size: 18px; }
.proof .links a { color: var(--ink); text-underline-offset: 3px; }

/* Products */
.products { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) clamp(96px, 12vw, 160px); }
.products > h2 { font-size: calc(1 * clamp(44px, 6vw, 84px)); margin-bottom: 40px; }
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(28px, 5vw, 72px); padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-radius: 32px; background: var(--panel); box-shadow: 0 40px 80px -60px var(--shade); }
.shot { overflow: hidden; max-width: 340px; border-radius: 22px; aspect-ratio: 9 / 16; box-shadow: 0 0 0 3px var(--accent); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.product:hover .shot img { transform: scale(1.04); }
.state { display: inline-block; margin: 0 0 16px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: 14px; font-weight: 700; }
.product h3 { font-size: calc(1 * clamp(40px, 5vw, 72px)); }
.product p:not(.state) { max-width: 34ch; margin: 18px 0 28px; color: var(--dim); font-size: 19px; }

.next { margin-top: clamp(64px, 9vw, 110px); }
.next h3 { font-size: calc(1 * clamp(28px, 3vw, 40px)); margin-bottom: 18px; }
.next ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.next li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: clamp(16px, 2vw, 24px) 0; border-bottom: 1px solid var(--line); }
.next li span { display: inline-block; transition: color .3s, transform .4s var(--ease); }
.next li:hover span { transform: translateX(10px); }
.next li span { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4.4vw, 58px); line-height: 1.1; letter-spacing: -.04em; color: var(--taupe); transition: color .3s; }
.next li:hover span { color: var(--ink); }
.next li em { flex: none; color: var(--mute); font-style: normal; font-size: 15px; }

.signup { display: grid; gap: 12px; max-width: 560px; margin-top: 40px; }
.signup label { font-size: 18px; color: var(--ink); }
.signup .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 6px; border: 1px solid var(--line-hi); border-radius: 999px; background: var(--panel); box-shadow: 0 10px 30px -18px var(--ink); transition: border-color .2s; }
.signup .row:focus-within { border-color: var(--accent); }
.signup input { min-width: 0; height: 48px; padding: 0 18px; border: 0; background: transparent; color: var(--ink); font: 400 17px var(--font); outline: none; }
.signup input::placeholder { color: var(--mute); }
.signup button { height: 48px; }
.signup .msg { min-height: 1.6em; margin: 0; padding-left: 20px; color: var(--dim); font-size: 15px; }
.signup .msg.bad { color: var(--rec); }

/* Contact */
.contact { padding: clamp(80px, 12vw, 150px) var(--gut); border-top: 1px solid var(--line); text-align: center; }
.contact h2 { font-size: calc(1 * clamp(40px, 6vw, 84px)); max-width: 16ch; margin: 0 auto; }
.mail { display: inline-block; margin-top: 30px; padding-bottom: 4px; color: var(--ink); border-bottom: 2px solid var(--accent); font: 700 clamp(22px, 3vw, 36px) var(--font); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.mail:hover { background-size: 100% 2px; }
.contact p { margin: 18px 0 0; color: var(--mute); }

/* Footer */
footer { display: grid; gap: 14px; max-width: var(--max); margin: 0 auto; padding: 40px var(--gut) 48px; border-top: 1px solid var(--line); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.foot-links a { color: var(--dim); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--ink); }
.fine { margin: 0; color: var(--mute); font-size: 14px; }

/* Phones: the viewfinder on top, the words under it */
@media (max-width: 860px) {
  .stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: start; justify-items: center; gap: 22px; padding-top: 76px; padding-bottom: 24px; }
  .js .stage { height: 100svh; }
  .copy { order: 2; width: 100%; max-width: 520px; text-align: center; }
  .beat p { margin: 12px auto 0; font-size: 17px; }
  .beat h1 { font-size: calc(1 * clamp(34px, 9.4vw, 52px)); max-width: none; }
  .beat h2 { font-size: calc(1 * clamp(42px, 12vw, 64px)); }
  .num { margin-bottom: 8px; }
  .actions { justify-content: center; margin-top: 20px; }
  .hint { display: none; }
  .nav { padding-top: 14px; padding-bottom: 14px; }
  .nav nav a { padding: 8px 9px; }
  .proof .big { font-size: 36vw; }
  .viewfinder { order: 1; height: min(50svh, 520px); }
  .cap { display: none; }
  .card.back { transform: translate(-14%, -6%) scale(.94); } .card.mid { transform: translate(-7%, -3%) scale(.97); }
  .hud .c { width: 18px; height: 18px; } .hud .tl, .hud .tr { top: 12px; } .hud .bl, .hud .br { bottom: 12px; }
  .hud .tl, .hud .bl { left: 12px; } .hud .tr, .hud .br { right: 12px; }
  .rec { top: 17px; left: 38px; } .tc { top: 17px; right: 38px; } .fmt { bottom: 17px; right: 38px; }
  .proof { grid-template-columns: minmax(0, 1fr); }
  .product { grid-template-columns: minmax(0, 1fr); }
  .shot { max-width: 260px; }
  .next li { flex-direction: column; gap: 4px; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .viewfinder { height: 44svh; }
  .beat .lede { display: none; }
}
