/* Dustin LaChance's Beyond The Sandwich Foundation. Site styles. Built from the approved prototype (The Threshold). */
/* Layout concept: outside the door is ink, beyond it is white. One tall door frame, one red thread, one word (BEYOND) that keeps changing what it goes beyond. */
:root {
  --ink: #0E0E0E; --paper: #FFFFFF; --stone: #F3F1ED; --rule: #DAD6CF; --muted: #5C5853;
  --thread: #DD0033; --thread-on-dark: #FF6B86; --on-dark: #F4F2EE; --on-dark-muted: #A9A49C; --chrome: #191919; --chrome-line: #333333;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --read: 'Source Serif 4', Georgia, serif;
  --ease: cubic-bezier(.2,.7,.1,1);
  color-scheme: light;
}
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; }
:focus-visible { outline: 2px solid var(--thread); outline-offset: 3px; }

/* ---------- shared pieces ---------- */
.pad { padding-left: max(5vw, 20px, env(safe-area-inset-left, 0px)); padding-right: max(5vw, 20px, env(safe-area-inset-right, 0px)); }
.kick { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.dark .kick { color: var(--on-dark-muted); }
.disp { font-family: var(--display); font-weight: 300; letter-spacing: -.015em; line-height: 1.02; text-wrap: balance; }
.thread { display: block; width: 64px; height: 2px; background: var(--thread); }
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; background: var(--thread); color: #FFFFFF; font-weight: 600; font-size: 14px; padding: 14px 24px; overflow: hidden; white-space: nowrap; transition: color .35s; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.btn > span { position: relative; }
.btn:hover::before { transform: scaleX(1); }
.dark .btn::before, .hdr.on-dark .btn::before { background: #FFFFFF; }
.dark .btn:hover, .hdr.on-dark .btn:hover { color: var(--ink); }
.lk { position: relative; font-weight: 600; font-size: 14px; }
.lk::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(.0); transform-origin: left; transition: transform .45s var(--ease); }
.lk.u::after { transform: scaleX(1); }
.lk:hover::after { transform: scaleX(1); background: var(--thread); }
.proof { display: inline-block; font: 600 10.5px/1.35 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--thread); border: 1px dashed var(--thread); padding: 3px 7px; vertical-align: middle; }
.dark .proof { color: var(--thread-on-dark); border-color: var(--thread-on-dark); }
.ph { overflow: hidden; background: #2A2A2A; }
.ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); }
.cap { font-size: 12px; color: var(--muted); margin-top: 10px; }
.dark .cap { color: var(--on-dark-muted); }
.view { display: none; }
.view.is-active { display: block; }
.dark { background: var(--ink); color: var(--on-dark); }

/* reveals */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .rvd { clip-path: inset(0 47% 0 47%); transition: clip-path 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js .rvd.in { clip-path: inset(0 0 0 0); }

/* ---------- header ---------- */
.hdr { position: absolute; top: 0; left: 0; right: 0; height: 72px; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px; transition: background .35s, color .35s; color: var(--ink); }
.hdr.on-light { background: #FFFFFF; box-shadow: 0 1px 0 var(--rule); }
.hdr.on-dark { color: #FFFFFF; background: linear-gradient(180deg, rgba(14,14,14,.62), rgba(14,14,14,0)); }
.logo img { height: 40px; width: auto; }
.hdr.on-dark .logo img { filter: invert(1); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav .lk { font-weight: 500; }
.nav .lk.cur::after { transform: scaleX(1); background: var(--thread); }
.menu-btn { display: none; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.menu-btn i { display: block; width: 26px; height: 9px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; transition: height .35s var(--ease); }
.menu-open .menu-btn i { height: 0; }

/* ---------- full-screen menu ---------- */
.menu { position: absolute; inset: 0; z-index: 40; background: var(--ink); color: var(--on-dark); clip-path: inset(0 50% 0 50%); transition: clip-path .75s var(--ease); pointer-events: none; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 96px; padding-bottom: 6vh; }
.menu-open .menu { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu ul { display: flex; flex-direction: column; gap: 1.2vh; }
.menu li { overflow: hidden; }
.menu a.m { display: inline-block; font-family: var(--display); font-weight: 300; font-size: clamp(34px, 11vw, 76px); line-height: 1.08; letter-spacing: -.015em; transform: translateY(110%); transition: transform .8s var(--ease); transition-delay: calc(.12s + var(--i) * .06s); }
.menu-open .menu a.m { transform: none; }
.menu a.m em { font-style: italic; color: var(--on-dark-muted); font-size: .34em; letter-spacing: .02em; margin-left: .5em; vertical-align: middle; }
.menu-foot { margin-top: 5vh; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; font-size: 13px; color: var(--on-dark-muted); }

/* ---------- page-transition doors ---------- */
.doors { position: absolute; inset: 0; z-index: 70; pointer-events: none; }
.doors i { position: absolute; top: 0; bottom: 0; width: calc(50% + 1px); background: var(--ink); transition: transform .5s var(--ease); }
.doors .dl { left: 0; transform: translateX(-101%); }
.doors .dr { right: 0; transform: translateX(101%); border-left: 1px solid var(--thread); }
.doors.closed { pointer-events: auto; }
.doors.closed .dl, .doors.closed .dr { transform: none; }
.dname { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; color: var(--on-dark); font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(26px, 5vw, 54px); opacity: 0; transition: opacity .25s; z-index: 1; }
.doors.closed .dname { opacity: 1; transition-delay: .3s; }

/* ---------- intro ---------- */
.intro { position: absolute; inset: 0; z-index: 60; background: var(--ink); color: var(--on-dark); transition: opacity .7s ease, clip-path 1.1s var(--ease); display: none; }
.intro.on { display: block; }
.intro.gone { opacity: 0; pointer-events: none; }
.intro p { position: absolute; left: 0; right: 0; text-align: center; font-family: var(--display); font-weight: 300; font-size: clamp(22px, 3.6vw, 46px); letter-spacing: -.01em; opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .9s var(--ease); padding: 0 8vw; }
.intro p.show { opacity: 1; transform: none; }
.intro .l1 { top: 50%; margin-top: -.7em; }
.intro .l2 { bottom: 9vh; }
.intro-skip { position: absolute; right: max(5vw, 20px); top: 26px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }

/* ---------- HOME: hero ---------- */
.hero { position: relative; height: 240vh; background: var(--ink); }
.hero-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; color: var(--on-dark); }
.hero-door { position: absolute; left: 50%; top: 52%; width: var(--dw, 30vh); height: var(--dh, 60vh); transform: translate(-50%, -50%); will-change: width, height; }
.beyond { position: absolute; left: 0; right: 0; top: 47%; transform: translateY(-50%); text-align: center; font-family: var(--display); font-weight: 300; font-size: min(23.5vw, 58vh); line-height: .8; letter-spacing: calc(-.02em + var(--p, 0) * .22em); color: #FFFFFF; mix-blend-mode: difference; opacity: var(--bo, 1); white-space: nowrap; pointer-events: none; user-select: none; }
.beyond span { display: inline-block; overflow: hidden; padding-bottom: .08em; }
.beyond b { display: inline-block; font-weight: 300; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * .07s); }
.hero.is-in .beyond b { transform: none; }
.hero-meta { position: absolute; left: 0; right: 0; bottom: 4.5vh; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; opacity: var(--mo, 1); }
.hero-line { max-width: 21em; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.45; font-weight: 400; }
.hero-line b { font-weight: 600; }
.hero-cue { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.hero-cue i { display: block; width: 1px; height: 38px; background: var(--on-dark-muted); transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero-after { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding-bottom: 9vh; background: linear-gradient(180deg, rgba(14,14,14,0) 35%, rgba(14,14,14,.82) 100%); opacity: var(--ao, 0); }
.hero-after .disp { font-size: clamp(34px, 6.4vw, 96px); color: #FFFFFF; transform: translateY(calc((1 - var(--ao, 0)) * 30px)); }

/* ---------- HOME: beyond the ___ ---------- */
.bt { position: relative; height: 380vh; background: var(--paper); }
.bt-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 4vh; overflow: hidden; }
.bt-big { font-family: var(--display); font-weight: 300; font-size: min(13.5vw, 26vh); line-height: .96; letter-spacing: -.025em; }
.bt-row { display: flex; align-items: baseline; gap: .22em; }
.bt-slot { display: inline-block; box-sizing: content-box; height: 1.12em; padding: .1em .2em .18em; margin: -.1em -.2em -.18em; overflow: hidden; vertical-align: bottom; }
.bt-roll { display: flex; flex-direction: column; transform: translateY(calc(var(--bi, 0) * -1.12em)); transition: transform .85s var(--ease); }
.bt-roll i { display: block; height: 1.12em; line-height: 1.12em; font-style: italic; white-space: nowrap; opacity: 0; transition: opacity .4s ease; }
.bt-roll i.on { opacity: 1; }
.bt-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.bt-notes { position: relative; flex: 1; min-height: 5.2em; max-width: 30em; }
.bt-notes p { position: absolute; left: 0; top: 0; font-size: clamp(18px, 1.9vw, 25px); line-height: 1.4; opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .7s var(--ease); }
.bt-notes p.on { opacity: 1; transform: none; }
.bt-count { font-size: 12px; letter-spacing: .16em; color: var(--muted); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 12px; }
.bt-count u { display: block; width: 90px; height: 2px; background: var(--rule); position: relative; text-decoration: none; }
.bt-count u::after { content: ""; position: absolute; inset: 0; background: var(--thread); transform-origin: left; transform: scaleX(var(--bp, 0)); }

/* ---------- HOME: stance ---------- */
.stance { background: var(--stone); padding-block: 16vh; }
.stance .disp { font-size: clamp(36px, 7vw, 104px); max-width: 12em; }
.strike { position: relative; white-space: nowrap; }
.strike::after { content: ""; position: absolute; left: -2%; right: -2%; top: 56%; height: max(3px, .045em); background: var(--thread); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) .5s; }
.in .strike::after, .rv.in.strike::after { transform: scaleX(1); }
.stance-sub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5vw; margin-top: 7vh; }
.stance-sub p { font-size: clamp(17px, 1.6vw, 21px); max-width: 26em; }
.stance-sub q { quotes: none; font-family: var(--read); font-style: italic; font-size: clamp(19px, 1.9vw, 25px); line-height: 1.4; display: block; }
.stance-sub cite { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 12px; letter-spacing: .04em; }

/* ---------- HOME: three doors ---------- */
.pillars { padding-block: 13vh; }
.pillars-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: 6vh; }
.pillars-head .disp { font-size: clamp(32px, 5vw, 72px); }
.pillars-head p { max-width: 24em; color: var(--on-dark-muted); }
.d3s { display: flex; gap: 12px; height: 64vh; min-height: 380px; }
.d3 { position: relative; flex: 1 1 0; min-width: 0; text-align: left; overflow: hidden; background: #1B1B1B; color: var(--on-dark); transition: flex-grow .9s var(--ease); display: block; }
.d3.is-open { flex-grow: 3.4; }
.d3 .ph { position: absolute; inset: 0; opacity: .0; transition: opacity .9s ease; background: #1B1B1B; }
.d3.is-open .ph { opacity: .5; }
.d3-in { position: absolute; inset: 0; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(180deg, rgba(14,14,14,.05), rgba(14,14,14,.75)); }
.d3-word { font-family: var(--display); font-weight: 300; font-size: clamp(30px, 4.2vw, 62px); line-height: 1; letter-spacing: -.02em; }
.d3-slit { position: absolute; top: 0; bottom: 0; right: 22px; width: 1px; background: var(--on-dark-muted); opacity: .6; transition: opacity .4s; }
.d3.is-open .d3-slit { opacity: 0; }
.d3-body { max-width: 26em; opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .7s var(--ease); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.d3.is-open .d3-body { opacity: 1; transform: none; transition-delay: .3s; }
.d3-body p { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.45; }

/* ---------- HOME: stories strip ---------- */
.strip { padding-block: 13vh 11vh; background: var(--paper); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 30px; margin-bottom: 6vh; }
.sec-head .disp { font-size: clamp(34px, 6vw, 88px); }
.rail { display: flex; gap: 2.4vw; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: max(5vw, 20px); padding-bottom: 18px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.rail::before, .rail::after { content: ""; flex: none; width: max(5vw, 20px); margin-right: -2.4vw; }
.cover { flex: none; width: 17vw; min-width: 190px; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.cover-door { position: relative; aspect-ratio: 1 / 2; overflow: hidden; background: var(--ink); color: var(--on-dark); }
.cover-door .ph { position: absolute; inset: 0; clip-path: inset(0 9% 0 9%); transition: clip-path .8s var(--ease); background: var(--ink); }
.cover:hover .cover-door .ph, .cover:focus-visible .cover-door .ph { clip-path: inset(0 0 0 0); }
.cover-door .ph img { transform: scale(1.06); transition: transform 1.2s var(--ease); }
.cover:hover .cover-door .ph img { transform: scale(1); }
.typo { position: absolute; inset: 0; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.typo::before { content: ""; position: absolute; top: 0; bottom: 0; left: 62%; width: 2px; background: var(--on-dark); transform-origin: left; transition: transform .8s var(--ease), opacity .8s; opacity: .85; }
.cover:hover .typo::before { transform: scaleX(22); opacity: .14; }
.typo small { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); position: relative; }
.typo em { font-family: var(--display); font-weight: 300; font-style: italic; font-size: clamp(19px, 1.9vw, 27px); line-height: 1.16; position: relative; }
.cover-org { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cover-title { font-family: var(--display); font-weight: 400; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.2; letter-spacing: -.005em; }
.cover-go { font-size: 12.5px; font-weight: 600; opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .5s var(--ease); }
.cover:hover .cover-go { opacity: 1; transform: none; }

/* ---------- record ---------- */
.record { padding-block: 12vh; background: var(--stone); }
.rec-grp { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 30px 0 10px; }
.rec-row { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1.25fr) minmax(0, 1.15fr) minmax(0, 1fr) 26px; gap: 4px 22px; align-items: baseline; width: 100%; text-align: left; padding: 17px 0; border-top: 1px solid var(--rule); font-variant-numeric: tabular-nums; transition: padding .45s var(--ease), background .3s; }
.rec-row:last-child { border-bottom: 1px solid var(--rule); }
.rec-row::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.rec-row[data-go]:hover::before { transform: scaleX(1); }
.rec-row[data-go]:hover { padding-left: 12px; }
.rec-d { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.rec-o { font-family: var(--display); font-size: clamp(19px, 1.7vw, 24px); line-height: 1.2; }
.rec-e, .rec-w { font-size: 14.5px; color: var(--muted); }
.rec-a { font-size: 15px; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .45s var(--ease); }
.rec-row[data-go]:hover .rec-a { opacity: 1; transform: none; }
.rec-thumb { position: absolute; z-index: 20; width: 150px; aspect-ratio: 1 / 2; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .3s, transform .45s var(--ease); clip-path: inset(0 30% 0 30%); background: var(--ink); color: var(--on-dark); overflow: hidden; }
.rec-thumb.on { opacity: 1; transform: translate(-50%, -50%) scale(1); clip-path: inset(0 0 0 0); transition: opacity .3s, transform .45s var(--ease), clip-path .6s var(--ease); }
.rec-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); }
.rec-thumb em { position: absolute; inset: 14px; font-family: var(--display); font-style: italic; font-weight: 300; font-size: 17px; line-height: 1.2; display: flex; align-items: flex-end; }

/* ---------- close + footer ---------- */
.close { padding-block: 16vh 12vh; }
.close-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 7vw; align-items: end; }
.close .disp { font-size: clamp(38px, 7.2vw, 112px); }
.close-fine { font-size: 14px; color: var(--on-dark-muted); max-width: 28em; margin-top: 18px; }
.note { border-left: 2px solid var(--thread); padding-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.note q { quotes: none; font-family: var(--read); font-style: italic; font-size: 20px; line-height: 1.4; }
.note span { font-size: 13px; color: var(--on-dark-muted); }
.foot { border-top: 1px solid #2B2B2B; padding-block: 34px 44px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px 40px; font-size: 13.5px; color: var(--on-dark-muted); }
.foot b { display: block; color: var(--on-dark); font-family: var(--display); font-weight: 400; font-size: 20px; margin-bottom: 8px; }
.foot ul { display: flex; flex-direction: column; gap: 8px; }
.foot a:hover { color: #FFFFFF; }

/* ---------- inner pages ---------- */
.top { padding-top: calc(72px + 11vh); padding-bottom: 9vh; }
.top .kick { display: flex; align-items: center; gap: 14px; margin-bottom: 4vh; }
.top .disp { font-size: clamp(42px, 8.6vw, 132px); max-width: 11em; }
.top .lede { font-size: clamp(18px, 1.8vw, 23px); max-width: 30em; margin-top: 5vh; line-height: 1.45; }
.mask { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.mask > span { display: inline-block; }
.js .mask > span { transform: translateY(108%); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .entered .mask > span { transform: none; }

.two { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 7vw; align-items: start; }
.blk { padding-block: 11vh; }
.blk.stone { background: var(--stone); }
.letter .door { aspect-ratio: 1 / 2; max-width: 360px; }
.letter h2 { font-family: var(--display); font-weight: 300; font-size: clamp(30px, 4.2vw, 60px); letter-spacing: -.015em; line-height: 1.05; margin: 14px 0 26px; }
.letter .body { font-family: var(--read); font-size: clamp(18px, 1.65vw, 22px); line-height: 1.6; max-width: 31em; display: flex; flex-direction: column; gap: 20px; }
.sig { margin-top: 30px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--muted); }
.sig i { font-family: var(--display); font-style: italic; font-size: 30px; color: var(--ink); }
.plist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4vw; }
.plist > div { border-top: 1px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.plist h3 { font-family: var(--display); font-weight: 300; font-size: clamp(30px, 3.8vw, 54px); letter-spacing: -.015em; }
.plist p { font-size: 16.5px; max-width: 22em; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5vw; }
.person { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: end; }
.person .door { aspect-ratio: 1 / 2; }
.person h3 { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: -.01em; }
.person small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; }

/* stories archive */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 7vh; }
.chip { font-size: 13px; font-weight: 600; padding: 9px 16px; border: 1px solid var(--rule); border-radius: 99px; transition: background .3s, color .3s, border-color .3s; }
.chip[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6vh 2.6vw; padding-bottom: 12vh; }
.grid .cover { width: auto; min-width: 0; transition: opacity .4s ease, transform .5s var(--ease); }
.grid .cover:nth-child(4n+2) { margin-top: 7vh; }
.grid .cover:nth-child(4n+4) { margin-top: 3.5vh; }
.grid .cover.out { opacity: 0; transform: scale(.96); }

/* story */
.st-top { padding-top: calc(72px + 9vh); padding-bottom: 6vh; }
.st-top .disp { font-size: clamp(36px, 6.6vw, 100px); max-width: 13em; margin: 3vh 0 4vh; }
.st-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 13px; color: var(--muted); align-items: center; }
.st-hero { position: relative; height: 78vh; min-height: 320px; }
.st-hero.typoh { background: var(--ink); color: var(--on-dark); display: flex; align-items: center; justify-content: center; }
.st-hero.typoh::before { content: ""; position: absolute; top: 12%; bottom: 12%; left: 50%; width: 2px; background: var(--on-dark); opacity: .85; }
.st-hero.typoh .proof { position: relative; background: var(--ink); margin-top: 56vh; }
/* an upright photo stands as a door in a dark room, instead of being cropped to a wide band */
.st-hero.tall { height: 92vh; min-height: 420px; background: var(--ink); display: flex; align-items: center; justify-content: center; padding: 6vh 0; }
.st-hero.tall .ph { height: 100%; aspect-ratio: 9 / 16; max-width: 86vw; background: #1B1B1B; }
.st-body { display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1fr) minmax(0, .5fr); gap: 5vw; padding-block: 10vh; }
.st-facts { display: flex; flex-direction: column; gap: 20px; font-size: 14px; position: sticky; top: 96px; align-self: start; }
.st-facts dt { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.st-facts dd { font-family: var(--display); font-size: 19px; line-height: 1.25; }
.st-text { font-family: var(--read); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.62; display: flex; flex-direction: column; gap: 24px; max-width: 32em; }
.st-text p:first-child { font-family: var(--display); font-weight: 300; font-size: clamp(25px, 2.7vw, 38px); line-height: 1.25; letter-spacing: -.01em; }
.st-pull { background: var(--stone); padding-block: 14vh; }
.st-pull blockquote { font-family: var(--display); font-weight: 300; font-style: italic; font-size: clamp(30px, 5vw, 76px); line-height: 1.1; letter-spacing: -.015em; max-width: 14em; }
.st-pull cite { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 28px; }
.st-need { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.next { display: block; width: 100%; text-align: left; padding-block: 13vh; position: relative; overflow: hidden; }
.next .disp { font-size: clamp(32px, 6vw, 92px); max-width: 13em; margin-top: 3vh; transition: transform .7s var(--ease); }
.next:hover .disp { transform: translateX(18px); }
.next::after { content: ""; position: absolute; top: 0; bottom: 0; right: 9vw; width: 2px; background: var(--on-dark); opacity: .7; transform-origin: right; transition: transform .8s var(--ease), opacity .8s; }
.next:hover::after { transform: scaleX(60); opacity: .1; }

/* partners */
.roll { padding-bottom: 12vh; }
.roll li { border-top: 1px solid var(--rule); transition: opacity .35s; }
.roll li:last-child { border-bottom: 1px solid var(--rule); }
.roll.hov li:not(.h) { opacity: .28; }
.pr { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px 4vw; align-items: center; width: 100%; text-align: left; padding: 2.4vh 0; transition: padding .5s var(--ease); }
.pr::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 2px; background: var(--thread); transition: width .5s var(--ease); }
li.h .pr { padding-left: 62px; }
li.h .pr::before { width: 44px; }
.pr-name { font-family: var(--display); font-weight: 300; font-size: clamp(26px, 4.4vw, 66px); line-height: 1.06; letter-spacing: -.02em; }
.pr-what { font-size: 15.5px; color: var(--muted); max-width: 30em; opacity: 0; transform: translateX(-10px); transition: opacity .35s, transform .5s var(--ease); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
li.h .pr-what { opacity: 1; transform: none; }
.pr-what b { color: var(--ink); font-weight: 600; font-size: 13px; }

/* request */
.rq { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 7vw; padding-bottom: 13vh; align-items: start; }
.rq-next { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 100px; }
.rq-next h2 { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.rq-next li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--rule); font-size: 15.5px; }
.rq-next li:last-child { border-bottom: 1px solid var(--rule); }
.rq-next li i { font-family: var(--display); font-style: normal; font-size: 22px; line-height: 1; }
.rq-next .fine { font-size: 14px; color: var(--muted); }
.form { background: var(--stone); padding: clamp(22px, 3.4vw, 48px); }
.prog { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 30px; font-variant-numeric: tabular-nums; }
.prog u { flex: 1; height: 2px; background: var(--rule); position: relative; text-decoration: none; display: block; }
.prog u::after { content: ""; position: absolute; inset: 0; background: var(--thread); transform-origin: left; transform: scaleX(var(--fp, .25)); transition: transform .7s var(--ease); }
.step { display: none; flex-direction: column; gap: 22px; }
.step.on { display: flex; animation: stepin .7s var(--ease); }
@keyframes stepin { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
.step h3 { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3.6vw, 50px); line-height: 1.06; letter-spacing: -.015em; }
.step > p { color: var(--muted); max-width: 30em; }
.fld { display: flex; flex-direction: column; gap: 7px; }
.fld label, .fld legend { font-size: 13px; font-weight: 600; }
.fld input, .fld select, .fld textarea { font: inherit; font-size: 16px; color: var(--ink); background: #FFFFFF; border: 1px solid var(--rule); padding: 0 14px; height: 50px; width: 100%; box-sizing: border-box; border-radius: 0; }
.fld textarea { height: 130px; padding: 12px 14px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.f2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dnote { font-size: 14.5px; padding: 12px 14px; border-left: 2px solid var(--thread); background: #FFFFFF; display: none; }
.dnote.on { display: block; }
.dnote.ok { border-left-color: var(--ink); }
.picks { display: flex; flex-wrap: wrap; gap: 10px; }
.pick { font-size: 14px; font-weight: 500; padding: 11px 16px; border: 1px solid var(--rule); background: #FFFFFF; transition: background .25s, color .25s, border-color .25s; }
.pick[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 8px; }
.review { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px 18px; font-size: 15px; }
.review dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.sent { display: none; flex-direction: column; gap: 18px; }
.sent.on { display: flex; animation: stepin .7s var(--ease); }

/* ---------- phone layout (also applies inside the Phone frame) ---------- */
@media (max-width: 720px) {
  .hdr { height: 62px; }
  .logo img { height: 33px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .beyond { font-size: 25vw; top: 31%; }
  .hero-door { top: 56%; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 14px; bottom: 3vh; }
  .hero-cue i { height: 22px; }
  .bt-big { font-size: 19vw; }
  .bt-row { flex-direction: column; gap: 0; }
  .bt-foot { flex-direction: column; align-items: stretch; gap: 18px; }
  .bt-notes { flex: none; width: 100%; min-height: 8.6em; }
  .menu a.m em { display: block; margin: 2px 0 6px; font-size: 13px; }
  .stance-sub, .close-grid, .two, .rq, .people, .foot { grid-template-columns: minmax(0, 1fr); }
  .d3s { flex-direction: column; height: auto; min-height: 0; gap: 8px; }
  .d3 { flex: none; height: 76px; transition: height .8s var(--ease); }
  .d3.is-open { height: 390px; }
  .d3-in { padding: 20px; }
  .d3-slit { top: auto; bottom: 14px; left: 20px; right: 20px; width: auto; height: 1px; }
  .cover { width: 62vw; }
  .rec-row { grid-template-columns: 64px minmax(0, 1fr); }
  .rec-e, .rec-w { grid-column: 2; }
  .rec-a { display: none; }
  .plist { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .person { grid-template-columns: 110px minmax(0, 1fr); gap: 18px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; }
  .grid .cover:nth-child(n) { margin-top: 0; }
  .grid .cover:nth-child(2n) { margin-top: 34px; }
  .st-body { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .st-facts { position: static; flex-direction: row; flex-wrap: wrap; gap: 18px 30px; }
  .st-hero { height: 52vh; }
  .st-hero.tall { height: 84vh; padding: 4vh 0; }
  .pr { grid-template-columns: minmax(0, 1fr); }
  .pr-what { display: none; }
  li.h .pr-what { display: flex; }
  li.h .pr { padding-left: 0; padding-top: 2.4vh; }
  li.h .pr::before { top: 0; width: 44px; }
  .rq-next { position: static; }
  .f2 { grid-template-columns: minmax(0, 1fr); }
  .review { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .review dd { margin-bottom: 10px; }
  .cover-go { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .rvd, .js .mask > span, .beyond b { transition: none !important; transform: none !important; opacity: 1 !important; clip-path: none !important; }
  .hero-cue i { animation: none; }
  .hero { height: 100vh; } .bt { height: auto; } .bt-pin { position: static; height: auto; padding-block: 12vh; }
  .bt-slot { height: auto; overflow: visible; } .bt-roll { transform: none; } .bt-roll i { opacity: 1; }
  .bt-notes { min-height: 0; } .bt-notes p { position: static; opacity: 1; transform: none; margin-bottom: .7em; } .bt-count { display: none; }
}

/* ===== production additions: the multi-page site ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
body.locked, body.menu-open { overflow: hidden; }
.hdr, .menu, .doors, .intro, .rec-thumb { position: fixed; }
.hero-pin, .bt-pin { height: 100vh; height: 100svh; }
html.arriving .doors .dl, html.arriving .doors .dr { transform: none; transition: none; }
html.arriving .dname { opacity: 1; transition: none; }
a.rec-row:hover::before { transform: scaleX(1); }
a.rec-row:hover { padding-left: 12px; }
a.rec-row:hover .rec-a { opacity: 1; transform: none; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: #FFFFFF; color: var(--ink); padding: 12px 18px; font-weight: 600; }
.skip:focus { left: 12px; top: 12px; }
.ajar { position: relative; background: #1B1B1B; }
.ajar::after { content: ""; position: absolute; top: 0; bottom: 0; left: 62%; width: 2px; background: var(--on-dark); opacity: .85; }
.ferr { display: none; font-size: 14.5px; color: #A8002A; border-left: 2px solid var(--thread); padding: 8px 12px; background: #FFFFFF; }
.ferr.on { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.step h2 { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3.6vw, 50px); line-height: 1.06; letter-spacing: -.015em; }
.step h2:focus { outline: none; }
.sent h2 { font-family: var(--display); font-weight: 300; font-size: clamp(30px, 4vw, 56px); line-height: 1.05; letter-spacing: -.015em; }
.sent [data-mode] { display: none; }
.sent[data-show="sent"] [data-mode="sent"], .sent[data-show="mail"] [data-mode="mail"] { display: block; }
.draft-strip { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--ink); color: var(--on-dark); font-size: 12px; padding: 6px 16px; text-align: center; }
.draft-strip b { color: var(--thread-on-dark); font-weight: 600; }
.lost { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 30px; align-items: flex-start; }
.lost .disp { font-size: clamp(42px, 8.6vw, 132px); }
.plain { padding-top: calc(72px + 11vh); padding-bottom: 12vh; }
.plain .disp { font-size: clamp(38px, 6vw, 88px); margin-bottom: 5vh; }
.plain .txt { font-family: var(--read); font-size: 20px; line-height: 1.6; max-width: 34em; display: flex; flex-direction: column; gap: 20px; }
.plain .txt h2 { font-family: var(--sans, inherit); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 26px; }
.plain .txt > p:first-child { font-family: var(--display); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; }

/* draft build only: keep the bottom strip from covering the last line of a pinned screen */
body[data-draft] .hero-meta { bottom: max(4.5vh, 42px); }
body[data-draft] .hero-after { padding-bottom: max(9vh, 46px); }
body[data-draft] .bt-pin { padding-bottom: 34px; }
body[data-draft] footer { padding-bottom: 30px; }

/* ===== short screens: a phone held sideways, a small window ===== */
.bt-pin { padding-top: 72px; }
@media (max-height: 520px) {
  .bt-pin { gap: 2vh; }
  .bt-notes { min-height: 3.4em; }
  .bt-notes p { font-size: 16px; }
  .hero-cue i { height: 20px; }
  .hero-line { font-size: 14px; max-width: 24em; }
  .beyond { top: 44%; }
  .hero-door { top: 46%; }
  .hero-after { padding-bottom: 12vh; gap: 8px; }
  .hero-after .disp { font-size: clamp(26px, 9vh, 96px); }
  .intro p { font-size: clamp(18px, 7vh, 46px); }
}
/* narrow and short at once: keep the wide composition so the photograph and the words each get room */
@media (max-width: 720px) and (max-height: 520px) {
  .beyond { font-size: min(23.5vw, 58vh); top: 44%; }
  .hero-door { top: 46%; }
  .hero-meta { flex-direction: row; align-items: flex-end; gap: 24px; bottom: 4.5vh; }
  .bt-big { font-size: min(13.5vw, 26vh); }
  .bt-row { flex-direction: row; gap: .22em; }
  .bt-foot { flex-direction: row; align-items: flex-start; gap: 30px; }
  .bt-notes { flex: 1; width: auto; }
}
