/* XPRMTS Agency, "Studio". Sibling of xprmts.com and tetraxp.com: ink, bone, Instrument Serif,
   mono labels, grain, light that comes from the work. Tokens follow XPRMTS tokens.css. */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif-normal-400.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif-italic-400.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/inter-normal-400-600.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(fonts/jetbrains-mono-normal-400.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif Fallback"; src: local("Georgia"); size-adjust: 88%; ascent-override: 96%; descent-override: 24%; }

:root {
  --ink: #0a0a0b;
  --ink-2: #111113;
  --ink-3: #18181b;
  --bone: #f6f3ee;
  --bone-2: rgba(246, 243, 238, 0.7);
  --bone-3: rgba(246, 243, 238, 0.58);
  --line: rgba(246, 243, 238, 0.1);
  --line-2: rgba(246, 243, 238, 0.2);
  --signal: #e63946;
  --ember: #ff5a1f;
  --ultra: #4d6bff;
  --amb-a: 230, 57, 70;      /* ambient light, set from the playing work */
  --amb-b: 77, 107, 255;

  --serif: "Instrument Serif", "Instrument Serif Fallback", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --m: clamp(20px, 3.4vw, 56px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--signal); color: var(--bone); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* film grain over everything, like the sibling sites */
.grain {
  position: fixed; inset: -6%; z-index: 90; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%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");
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }

/* ambient light: the colour of the work on screen spills into the room */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; transition: background 1.6s var(--ease); }
.ambient::before, .ambient::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); transition: background-color 1.6s var(--ease); }
.ambient::before { width: 62vw; height: 62vw; right: -14vw; top: -18vw; background: rgba(var(--amb-a), 0.22); }
.ambient::after { width: 48vw; height: 48vw; left: -16vw; bottom: -22vw; background: rgba(var(--amb-b), 0.14); }

.wrap { position: relative; z-index: 1; width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--m); }
.label { font: 500 11px/1.4 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-3); }
.label b { color: var(--bone); font-weight: 500; }
.display { font: 400 clamp(54px, 8.2vw, 148px)/0.92 var(--serif); letter-spacing: -0.02em; }
.display em, .title em { font-style: italic; color: var(--signal); }
.title { font: 400 clamp(40px, 5.2vw, 88px)/0.98 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.lede { font-size: clamp(16px, 1.05vw + 10px, 19px); line-height: 1.6; color: var(--bone-2); max-width: 44ch; }

.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 24px;
  font: 500 11.5px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid var(--line-2); color: var(--bone); background: transparent; cursor: pointer;
  transition: background-color 240ms var(--ease-out), color 240ms var(--ease-out), border-color 240ms var(--ease-out), transform 160ms var(--ease-out), box-shadow 400ms var(--ease-out);
}
.btn:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn:active { transform: scale(0.97); }
.btn-signal { background: #c8202f; border-color: #c8202f; color: #fff; box-shadow: 0 0 40px -8px rgba(230, 57, 70, 0.65); }
.btn-signal:hover { background: #a91a27; border-color: #a91a27; color: #fff; box-shadow: 0 0 60px -6px rgba(230, 57, 70, 0.85); }
.btn .arr { transition: transform 240ms var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color 400ms var(--ease), border-color 400ms var(--ease); border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(10, 10, 11, 0.78); backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.mark { display: inline-flex; align-items: center; gap: 12px; }
.mark svg { width: 22px; height: 22px; }
.mark-name { font: 500 15px/1 var(--mono); letter-spacing: 0.24em; }
.mark-sub { font: 500 11px/1 var(--mono); letter-spacing: 0.2em; color: var(--bone-3); padding-left: 12px; border-left: 1px solid var(--line-2); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { padding-block: 16px; font: 500 11px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-2); transition: color 200ms; }
.motion { padding: 14px 0; background: none; border: 0; cursor: pointer; color: var(--bone-3); }
.motion:hover { color: var(--bone); }
.still .grain { animation: none; }
.nav-links a:not(.btn):hover { color: var(--bone); }
.nav-links a i { font-style: normal; color: var(--bone-3); margin-right: 6px; }
.nav .btn { min-height: 40px; padding: 0 16px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-content: end; padding-top: 120px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px; align-items: center; }
.hero-copy { display: grid; gap: 30px; justify-items: start; padding-bottom: 24px; }
.hero-copy .label { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-copy .label span + span::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--line-2); vertical-align: middle; margin-right: 18px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* the stage: the real sites, playing, in perspective */
.stage { position: relative; height: min(70vh, 640px); perspective: 1600px; }
.win {
  position: absolute; width: 78%; aspect-ratio: 16 / 10.6; background: #050506; border: 1px solid var(--line-2);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6);
  transform-style: preserve-3d; transition: transform 1200ms var(--ease);
}
.win-bar { display: flex; align-items: center; gap: 7px; height: 26px; padding: 0 12px; background: #141416; border-bottom: 1px solid var(--line); }
.win-bar i { width: 8px; height: 8px; border-radius: 50%; background: #2c2c30; }
.win-bar span { margin-left: 10px; font: 500 10px/1 var(--mono); letter-spacing: 0.12em; color: var(--bone-3); }
.win video { width: 100%; height: calc(100% - 26px); object-fit: cover; object-position: top; }
.win-a { right: 0; top: 2%; transform: rotateY(-16deg) rotateX(4deg) translateZ(0); z-index: 2; }
.win-b { left: 0; bottom: 4%; transform: rotateY(-16deg) rotateX(4deg) translateZ(-160px) translateX(-4%); z-index: 1; filter: brightness(0.82); }
.win-cap { position: absolute; left: 0; bottom: -30px; }
.stage:hover .win-a { transform: rotateY(-10deg) rotateX(2deg) translateZ(20px); }

.hero-ledger {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 7vh, 88px);
  border-top: 1px solid var(--line);
}
.hero-ledger > div { padding: 18px 0 26px; display: grid; gap: 6px; }
.hero-ledger > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-ledger .v { font: 400 22px/1.15 var(--serif); color: var(--bone); }
.hero-ledger .v em { color: var(--signal); }

/* entrances: one orchestrated rise on load */
.reveal-ready .rise { opacity: 0; transform: translateY(18px); }
.reveal-ready .is-ready .rise { opacity: 1; transform: none; transition: opacity 1000ms var(--ease), transform 1000ms var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 150ms); }
.reveal-ready .stage { opacity: 0; transform: translateX(40px); }
.reveal-ready .is-ready .stage { opacity: 1; transform: none; transition: opacity 1600ms var(--ease) 350ms, transform 1600ms var(--ease) 350ms; }

/* ---------- section head ---------- */
.sec { position: relative; z-index: 1; padding-block: clamp(80px, 9vw, 140px); }
.head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px; margin-bottom: clamp(44px, 5vw, 80px); }
.head .label { padding-top: 18px; border-top: 1px solid var(--line); }
.head .title { max-width: 16ch; }

/* ---------- selected work ---------- */
.proj { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 72px); align-items: end; }
.proj + .proj { margin-top: clamp(90px, 11vw, 180px); }
.proj:nth-of-type(even) { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.proj:nth-of-type(even) .proj-media { order: 2; }
.proj-media { position: relative; }
.proj-media .win { position: relative; width: 100%; transform: none; }
.proj-media::before { content: ""; position: absolute; inset: 8% -4% -10%; background: radial-gradient(closest-side, rgba(var(--glow), 0.4), transparent); filter: blur(30px); z-index: -1; }
.proj-meta { display: grid; gap: 22px; padding-bottom: 8px; }
.proj-meta h3 { font: 400 clamp(46px, 4.6vw, 80px)/0.95 var(--serif); letter-spacing: -0.015em; }
.proj-meta h3 em { display: block; font-size: 0.5em; color: var(--bone-2); margin-top: 8px; }
.proj-meta p { color: var(--bone-2); max-width: 40ch; }
.ledger { border-top: 1px solid var(--line); }
.ledger div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ledger dt { font: 500 10.5px/1.6 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-3); }
.ledger dd { margin: 0; font-size: 14.5px; color: var(--bone); }
.proj-link { justify-self: start; }

@media (max-width: 980px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { align-content: start; padding-top: 104px; }
  .hero-grid { grid-template-columns: 1fr; }
  .stage { height: 64vw; margin-top: 8px; }
  .hero-ledger { grid-template-columns: 1fr 1fr; }
  .hero-ledger > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-ledger > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .head { grid-template-columns: 1fr; gap: 20px; }
  .proj, .proj:nth-of-type(even) { grid-template-columns: 1fr; }
  .proj:nth-of-type(even) .proj-media { order: 0; }
}
@media (max-width: 560px) {
  .mark-sub { display: none; }
  .stage { height: 78vw; }
  .win-a { width: 86%; }
  .win-b { width: 80%; }
  .ctas .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .reveal-ready .rise, .reveal-ready .stage { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- shared bits ---------- */
.head-r { display: grid; gap: 22px; }
.head-r .lede { max-width: 52ch; }
.link { border-bottom: 1px solid var(--line-2); transition: border-color 200ms, color 200ms; }
.link:hover { border-color: var(--signal); color: var(--bone); }
.nw { white-space: nowrap; }
.reveal-ready .reveal { opacity: 0; transform: translateY(22px); }
.reveal-ready .reveal.is-in { opacity: 1; transform: none; transition: opacity 900ms var(--ease), transform 900ms var(--ease); }

/* ---------- studies ---------- */
.studies { margin-top: clamp(100px, 12vw, 190px); }
.studies-head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px; margin-bottom: 36px; }
.studies-head .label { padding-top: 16px; border-top: 1px solid var(--line); }
.studies-head p:last-child { color: var(--bone-2); max-width: 52ch; }
.study-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.study { display: grid; gap: 10px; }
.study h3 { font: 400 30px/1 var(--serif); margin-top: 6px; }
.study-kind { color: var(--bone-3); font-size: 14px; }

/* ---------- teardown: an editor's proof ---------- */
.td-form { margin-bottom: 40px; }
.td-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 20px; align-items: end; max-width: 980px; }
.td-field { display: grid; gap: 10px; }
.field-input, .input {
  width: 100%; min-height: 52px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  background: transparent; color: var(--bone); font: 400 17px/1.3 var(--sans); appearance: none; transition: border-color 200ms;
}
.field-input:focus, .input:focus { outline: none; border-bottom-color: var(--signal); box-shadow: 0 1px 0 0 var(--signal); }
.field-input::placeholder, .input::placeholder { color: var(--bone-3); }
select.field-input, select.input {
  padding-right: 32px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f6f3ee' stroke-opacity='.6' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 4px center;
}
select option { background: var(--ink-2); color: var(--bone); }
.td-go { min-width: 15ch; justify-content: center; }

.td-stage { --gutter: clamp(150px, 15vw, 240px); position: relative; padding-inline: var(--gutter); }
.td-tag { margin-bottom: 12px; text-align: right; font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-3); }
.td-frame { position: relative; background: #fff; color: #222; container-type: inline-size; box-shadow: 0 60px 140px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line-2); }
.td-chrome { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; background: #1a1a1d; }
.td-chrome i { width: 9px; height: 9px; border-radius: 50%; background: #333338; }
.td-url { flex: 1; margin-left: 8px; height: 22px; display: flex; align-items: center; padding: 0 12px; background: #0f0f11; border-radius: 4px; font: 500 11px/1 var(--mono); letter-spacing: 0.06em; color: var(--bone-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.td-view { position: relative; overflow: hidden; aspect-ratio: 16 / 11; }
.td-before, .td-after { position: absolute; inset: 0; font-size: clamp(9px, 1.55cqi, 15px); }
.td-after { clip-path: inset(0 0 0 var(--split, 100%)); }
.td-markup { position: absolute; inset: 0; pointer-events: none; }
.td-ink { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.td-ink path { fill: none; stroke: var(--signal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.td-ink .pen { stroke-dasharray: var(--len, 1200); stroke-dashoffset: 0; }
.td-ready .td-ink .pen { stroke-dashoffset: var(--len, 1200); transition: stroke-dashoffset 900ms var(--ease); }
.td-ready .td-ink .pen.is-on { stroke-dashoffset: 0; }
.td-hand { position: absolute; width: max-content; font: italic 400 clamp(19px, 1.7vw, 27px)/1.02 var(--serif); color: var(--bone); pointer-events: none; }
.td-hand.is-left { text-align: right; }
.td-ready .td-hand { opacity: 0; transform: translateY(6px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.td-hand, .td-ready .td-hand.is-on { opacity: 1; transform: none; }

/* the dated "before" site and the rebuilt "after" (client brands, not ours) */
.tb { height: 100%; display: flex; flex-direction: column; background: #eef0f2; font-family: Georgia, "Times New Roman", serif; color: #333; }
.tb-top { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 0.7em 1.6em; background: #5a7184; color: #e8eef3; font-size: 0.85em; }
.tb-top b { font-size: 1.15em; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tb-top span { opacity: 0.9; word-spacing: 0.8em; }
.tb-main { flex: 1; display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto 1fr; gap: 1.4em; padding: 1.4em 1.6em; overflow: hidden; min-height: 0; }
.tb-welcome { grid-column: 1 / -1; text-align: center; font-size: 1.9em; font-style: italic; color: #4a5f71; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-slide { position: relative; background: #9aa3aa; min-height: 0; overflow: hidden; }
.tb-slide img { width: 100%; height: 100%; object-fit: cover; }
.tb-slide .arr { position: absolute; top: 50%; transform: translateY(-50%); width: 1.8em; height: 1.8em; display: grid; place-items: center; background: rgba(255,255,255,0.75); font-family: Arial, sans-serif; color: #444; }
.tb-slide .arr.l { left: 0.5em; } .tb-slide .arr.r { right: 0.5em; }
.tb-dots { position: absolute; bottom: 0.6em; left: 0; right: 0; text-align: center; letter-spacing: 0.3em; color: #fff; font-size: 0.8em; }
.tb-text p { font-size: 0.92em; line-height: 1.45; margin-bottom: 0.9em; color: #555; }
.tb-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35em; margin-top: 0.4em; }
.tb-form span { height: 1.35em; background: #fff; border: 1px solid #c3c8cc; }
.tb-form em { grid-column: 1 / -1; font-size: 0.7em; font-style: normal; color: #888; }
.tb-foot { padding: 0.6em 1.6em; background: #d3d8dc; font-size: 0.62em; color: #777; display: flex; justify-content: space-between; gap: 1em; font-family: Arial, sans-serif; }
/* the rebuild: a client site that looks like it came from this studio */
.ta { position: relative; height: 100%; display: grid; grid-template-rows: auto 1fr auto; background: #0d0d0e; color: #f5f2ec; font-family: var(--sans); overflow: hidden; }
.ta-photo { position: absolute; inset: 0; }
.ta-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transform: scale(1.04); }
.ta-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,11,0.92) 0%, rgba(10,10,11,0.7) 38%, rgba(10,10,11,0.1) 72%), linear-gradient(0deg, rgba(10,10,11,0.85) 0%, transparent 34%); }
.ta-top { position: relative; display: flex; align-items: center; gap: 2em; padding: 1.2em 2.2em; font-size: 0.9em; }
.ta-top b { font: 400 1.5em/1 var(--serif); margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ta-links { word-spacing: 1.4em; color: rgba(245,242,236,0.75); white-space: nowrap; }
.ta-call { flex: none; padding: 0.65em 1.2em; border: 1px solid rgba(245,242,236,0.4); font-weight: 600; }
.ta-body { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; min-height: 0; }
.ta-copy { padding: 1em 2.2em; display: flex; flex-direction: column; justify-content: center; gap: 1em; }
.ta-kick { font: 500 0.78em/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ta-accent, #e8743b); }
.ta-copy h3 { font: 400 4.6em/0.92 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }
.ta-copy p { font-size: 1.2em; line-height: 1.45; color: rgba(245,242,236,0.78); max-width: 28ch; }
.ta-ctas { display: flex; flex-wrap: wrap; gap: 0.6em; margin-top: 0.4em; }
.ta-ctas span { padding: 0.95em 1.5em; font-weight: 600; font-size: 1.05em; }
.ta-ctas .p, .ta-quick .go { background: var(--ta-accent, #e8743b); color: #0d0d0e; box-shadow: 0 0 2.4em -0.6em var(--ta-accent, #e8743b); }
.ta-ctas .s { border: 1px solid rgba(245,242,236,0.35); color: #f5f2ec; }
.ta-band { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; border-top: 1px solid rgba(245,242,236,0.14); background: rgba(10,10,11,0.55); backdrop-filter: blur(8px); }
.ta-svc { display: grid; grid-template-columns: repeat(3, 1fr); }
.ta-svc li { padding: 1.2em 2.2em 1.2em 2.2em; font: 400 1.25em/1.1 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ta-svc li + li { border-left: 1px solid rgba(245,242,236,0.12); padding-left: 1.2em; }
.ta-quick { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.5em; padding: 0.9em 1.4em; align-items: center; border-left: 1px solid rgba(245,242,236,0.12); }
.ta-quick span { padding: 0.75em 0.9em; border-bottom: 1px solid rgba(245,242,236,0.3); color: rgba(245,242,236,0.6); font-size: 0.95em; }
.ta-quick .go { border: 0; font-weight: 600; padding: 0.8em 1.1em; }

/* the split handle */
.td-handle { position: absolute; top: 0; bottom: 0; left: var(--split, 100%); z-index: 3; width: 0; pointer-events: none; }
.td-handle i { opacity: var(--edge, 1); }
.td-handle i { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--signal); box-shadow: 0 0 18px rgba(230,57,70,0.8); }
.td-handle span { position: absolute; top: 50%; transform: translateY(-50%); padding: 7px 10px; background: var(--signal); color: #fff; font: 500 10px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.td-handle span:first-child { right: 8px; opacity: var(--lo, 1); transform: translate(calc((1 - var(--lo, 1)) * 14px), -50%) scale(calc(0.9 + var(--lo, 1) * 0.1)); transform-origin: right center; }
.td-handle span:last-child { left: 8px; opacity: var(--ro, 1); transform: translate(calc((var(--ro, 1) - 1) * 14px), -50%) scale(calc(0.9 + var(--ro, 1) * 0.1)); transform-origin: left center; }
.td-split { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.td-split:focus-visible + * , .td-view:has(.td-split:focus-visible) { outline: 2px solid var(--signal); outline-offset: 4px; }
.no-js .td-handle, .no-js .td-split { display: none; }

.td-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: 56px; border-top: 1px solid var(--line); counter-reset: f; }
.td-notes li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); counter-increment: f; }
.td-notes li::before { content: "F." counter(f, decimal-leading-zero); font: 500 11px/1 var(--mono); letter-spacing: 0.14em; color: var(--bone-3); transition: color 400ms; }
.td-notes .mark { display: none; }
.td-notes b { display: block; font: 400 21px/1.2 var(--serif); color: var(--bone); margin-bottom: 6px; }
.td-notes .fix { color: var(--bone-2); font-size: 14.5px; }
.td-ready .td-notes li { opacity: 0.72; transition: opacity 500ms var(--ease); }
.td-ready .td-notes li.is-on { opacity: 1; }
.td-ready .td-notes li.is-on::before { color: var(--signal); }
.td.is-after .td-notes li::before { color: #6ee0a0; }
.no-js .td-view { aspect-ratio: auto; }
.no-js .td-before, .no-js .td-after { position: relative; aspect-ratio: 16 / 11; clip-path: none; visibility: visible; }
.no-js .td-after { margin-top: 12px; }
.no-js .td-form { display: none; }

/* ---------- services: a ledger ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc { position: relative; display: grid; grid-template-columns: 80px minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 24px; align-items: baseline; padding: 34px 0; border-bottom: 1px solid var(--line); transition: padding 500ms var(--ease); }
.svc::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--signal); transition: width 700ms var(--ease); }
.svc:hover::after { width: 100%; }
.svc h3 { font: 400 clamp(32px, 3.2vw, 52px)/1 var(--serif); letter-spacing: -0.01em; transition: transform 500ms var(--ease), color 300ms; }
.svc:hover h3 { transform: translateX(10px); }
.svc p { color: var(--bone-2); max-width: 46ch; }
.svc-t { text-align: right; }

/* ---------- process: chapters ---------- */
.chapters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.ch { display: grid; align-content: start; gap: 16px; padding: 26px 22px 40px 0; }
.ch + .ch { padding-left: 22px; border-left: 1px solid var(--line); }
.ch .label { color: var(--signal); }
.ch h3 { font: 400 clamp(30px, 2.6vw, 42px)/1 var(--serif); }
.ch p { color: var(--bone-2); font-size: 15px; }

/* ---------- pricing: plates ---------- */
.plates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plate { position: relative; display: grid; gap: 24px; align-content: start; padding: clamp(28px, 3.4vw, 52px); background: linear-gradient(180deg, rgba(246, 243, 238, 0.04), rgba(246, 243, 238, 0.01)); border: 1px solid var(--line); }
.plate::before { content: ""; position: absolute; inset: -1px; border: 1px solid transparent; background: linear-gradient(140deg, rgba(var(--amb-a), 0.55), transparent 40%) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plate h3 { font: 400 clamp(34px, 3vw, 48px)/1 var(--serif); }
.price { font: 400 clamp(64px, 6.4vw, 108px)/0.9 var(--serif); letter-spacing: -0.02em; }
.price .from { display: block; font: 500 11px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-3); margin-bottom: 14px; }
.price .per { font-size: 0.34em; color: var(--bone-2); letter-spacing: 0; }
.plate .btn { justify-self: start; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); max-width: 1100px; margin-left: auto; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; cursor: pointer; list-style: none; font: 400 clamp(24px, 2.2vw, 34px)/1.15 var(--serif); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; flex: none; width: 18px; height: 18px; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 1px; background: var(--bone-2); transition: transform 400ms var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: rotate(0deg); }
.qa summary:hover { color: #fff; }
.qa p { padding: 0 0 30px; max-width: 64ch; color: var(--bone-2); font-size: 16.5px; }

/* ---------- inquiry ---------- */
.inq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.inq-side { display: grid; gap: 28px; position: sticky; top: 110px; }
.inq-steps { display: grid; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; }
.inq-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.inq-steps .label { color: var(--signal); }
.inq-steps p { color: var(--bone-2); }
.inq-steps b { color: var(--bone); font-weight: 500; }
.form-panel { padding: clamp(24px, 3.4vw, 52px); background: rgba(246, 243, 238, 0.025); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 28px; }
.f { display: grid; gap: 6px; align-content: start; min-width: 0; }
.f.full, .form-grid > .full, details.more { grid-column: 1 / -1; }
.f label, .f legend { font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-3); }
.f .opt { text-transform: none; letter-spacing: 0.02em; font-family: var(--sans); font-size: 12px; }
fieldset.f { border: 0; margin: 0; padding: 0; }
fieldset.f legend { padding: 0; margin-bottom: 12px; }
textarea.input { min-height: 110px; padding: 12px 2px; resize: vertical; line-height: 1.5; }
.input[aria-invalid="true"] { border-bottom-color: var(--signal); }
fieldset[aria-invalid="true"] .choice span { border-color: var(--signal); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-row { display: flex; gap: 8px; flex-wrap: wrap; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 16px; border: 1px solid var(--line-2); color: var(--bone-2); font-size: 15px; transition: border-color 200ms, color 200ms, background-color 200ms; }
.choice span::before { content: ""; flex: none; width: 12px; height: 12px; border: 1px solid var(--bone-3); transition: background-color 200ms, border-color 200ms; }
.choice input[type=radio] + span::before { border-radius: 50%; }
.choice:hover span { border-color: var(--bone-3); color: var(--bone); }
.choice input:checked + span { border-color: var(--signal); color: var(--bone); background: rgba(230, 57, 70, 0.08); }
.choice input:checked + span::before { background: var(--signal); border-color: var(--signal); }
.choice input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.error { display: none; color: #ff8a93; font-size: 13px; }
.error.is-shown { display: block; }
details.more summary { cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 44px; list-style: none; font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-2); }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+"; font-size: 16px; }
details.more[open] summary::before { content: "\2212"; }
details.more .form-grid { margin-top: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: grid; gap: 14px; margin-top: 36px; }
.form-actions .btn { justify-content: center; min-height: 58px; }
.form-actions .btn:not(.btn-signal) { background: #c8202f; border-color: #c8202f; color: #fff; box-shadow: 0 0 40px -8px rgba(230, 57, 70, 0.65); }
.form-status { min-height: 1.4em; font-size: 14px; }
.form-status.is-error { color: #ff8a93; }
.form-fine { font-size: 13px; color: var(--bone-3); }
.error-summary { display: none; margin-bottom: 28px; padding: 18px 20px; border: 1px solid var(--signal); background: rgba(230, 57, 70, 0.08); }
.error-summary.is-shown { display: block; }
.error-summary h3 { font: 400 22px/1.2 var(--serif); margin-bottom: 8px; }
.error-summary ul { padding-left: 18px; list-style: disc; display: grid; gap: 4px; }
.error-summary a { border-bottom: 1px solid currentColor; }
.form-success { display: none; }
.form-success.is-shown { display: grid; gap: 16px; }
.form-success h3 { font: 400 clamp(34px, 3.4vw, 54px)/1 var(--serif); }
.form-success p { color: var(--bone-2); }
.spinner { display: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite; }
.is-sending .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- end card ---------- */
.end { position: relative; z-index: 1; padding-block: clamp(120px, 14vw, 220px) 40px; border-top: 1px solid var(--line); overflow: hidden; }
.end::before { content: ""; position: absolute; left: 50%; top: 18%; width: 80vw; height: 40vw; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(230, 57, 70, 0.18), transparent); filter: blur(40px); pointer-events: none; }
.end .wrap { display: grid; gap: 34px; }
.end-title { font-size: clamp(54px, 9vw, 168px); }
.end-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.end-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(60px, 8vw, 120px); padding-top: 28px; border-top: 1px solid var(--line); }
.end-meta > div { display: grid; gap: 12px; align-content: start; color: var(--bone-2); font-size: 14.5px; }
.end-meta ul { display: grid; gap: 0; }
.end-meta li a { display: inline-block; padding: 10px 0; }
.end-meta .link { justify-self: start; }
.signoff { margin-top: 28px; }

/* ---------- mobile menu ---------- */
.nav-toggle, .nav-cta { display: none; }
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; background: none; border: 0; font: 500 11px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone); cursor: pointer; }
  .nav.is-open .nav-links { position: fixed; inset: 72px 0 0; display: grid; align-content: start; gap: 0; padding: 24px var(--m); background: var(--ink); border-top: 1px solid var(--line); }
  .nav.is-open .nav-links a:not(.btn) { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); font: 400 40px/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--bone); }
  .nav.is-open .nav-links a i { font: 500 11px/1 var(--mono); letter-spacing: 0.18em; vertical-align: super; }
  .nav.is-open .nav-links .btn { margin-top: 28px; justify-content: center; }
  .nav .wrap > .nav-cta { display: inline-flex; }
  .nav:not(.is-open) .nav-links .btn { display: none; }
  .nav .wrap { gap: 12px; }
  .nav .mark { margin-right: auto; }
  .nav-cta { min-height: 38px !important; padding: 0 12px !important; font-size: 10.5px !important; }
  .nav.is-open { background: var(--ink); }
  .studies-head { grid-template-columns: 1fr; gap: 14px; }
  .study-row { grid-template-columns: 1fr 1fr; }
  .td-stage { padding-inline: 0; }
  .td-notes { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 48px 1fr; gap: 8px 16px; padding: 28px 0; }
  .svc p, .svc-t { grid-column: 2; text-align: left; }
  .chapters { grid-template-columns: 1fr; }
  .ch, .ch + .ch { padding: 24px 0 28px; border-left: 0; border-bottom: 1px solid var(--line); }
  .plates { grid-template-columns: 1fr; }
  .inq-grid { grid-template-columns: 1fr; }
  .inq-side { position: static; }
  .end-meta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .td-row { grid-template-columns: 1fr; }
  .td-go { width: 100%; }
  .td-view { aspect-ratio: 3 / 4.4; }
  .td-before, .td-after { font-size: 3.3cqi; }
  .tb-main { grid-template-columns: 1fr; grid-template-rows: auto 9em auto; }
  .tb-welcome { font-size: 1.45em; }
  .ta-links { display: none; }
  .ta-top { padding: 1em 1.4em; }
  .ta-body { grid-template-columns: 1fr; align-content: end; }
  .ta-photo::after { background: linear-gradient(0deg, rgba(10,10,11,0.95) 0%, rgba(10,10,11,0.6) 55%, rgba(10,10,11,0.2) 100%); }
  .ta-copy { padding: 1em 1.4em 1.4em; }
  .ta-copy h3 { font-size: 3.2em; }
  .ta-band { grid-template-columns: 1fr; }
  .ta-svc li { padding: 0.9em 1.4em; font-size: 1.05em; }
  .ta-svc li + li { padding-left: 0.9em; }
  .ta-quick { padding: 0.8em 1.4em; border-left: 0; border-top: 1px solid rgba(245,242,236,0.12); }
  .td-notes { grid-template-columns: 1fr; }
  .study-row { grid-template-columns: 1fr; }
  .form-grid, .choices { grid-template-columns: 1fr; }
  .end-meta { grid-template-columns: 1fr; }
  .no-js .td-before, .no-js .td-after { aspect-ratio: 3 / 4.4; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
@media print { .grain, .ambient, .nav, .td-form, .inq { display: none; } body { background: #fff; color: #000; } }
.f label.choice { font: 400 15px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: inherit; }
.win img { width: 100%; height: calc(100% - 26px); object-fit: cover; object-position: top; }
.hero--plain { min-height: 86svh; align-content: center; }
.hero--plain .hero-copy { max-width: 900px; }
.study-row--1 { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.study-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .study-row--2 { grid-template-columns: 1fr; } }
.hero--page { align-content: center; padding-bottom: 60px; }


/* ================= the screening room ================= */
.hero--screen { min-height: 100svh; padding-top: 0; align-content: end; isolation: isolate; }
.screen { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #000; }
.reel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1800ms var(--ease), transform 9000ms linear; }
.reel.is-on { opacity: 1; transform: scale(1); }
.scrim { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(10,10,11,0.92) 0%, rgba(10,10,11,0.55) 42%, rgba(10,10,11,0.1) 75%),
  linear-gradient(0deg, rgba(10,10,11,1) 0%, rgba(10,10,11,0.3) 30%, transparent 55%),
  linear-gradient(180deg, rgba(10,10,11,0.7) 0%, transparent 18%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; padding-top: 140px; }
.hero--screen .hero-copy { max-width: 760px; padding-bottom: 0; }
.now { display: grid; gap: 8px; justify-items: end; text-align: right; padding-bottom: 8px; }
.now-site { font: italic 400 clamp(26px, 2.4vw, 38px)/1 var(--serif); border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: border-color 200ms; }
.now-site:hover { border-color: var(--signal); }
.now-pause { margin-top: 8px; padding: 10px 0; background: none; border: 0; cursor: pointer; color: var(--bone-2); }
.now-pause:hover { color: var(--bone); }
.hero--screen .hero-ledger { margin-top: clamp(36px, 6vh, 64px); }
@media (max-width: 980px) {
  .hero--screen { padding-top: 0; align-content: end; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 120px; }
  .now { justify-items: start; text-align: left; }
  .scrim { background: linear-gradient(0deg, rgba(10,10,11,1) 0%, rgba(10,10,11,0.82) 40%, rgba(10,10,11,0.35) 75%, rgba(10,10,11,0.55) 100%); }
  .kick-more { display: none !important; }
}

/* ================= title card (first visit) ================= */
.titlecard { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--ink); color: var(--bone); transition: opacity 900ms var(--ease), visibility 0s linear 900ms; cursor: pointer; }
.titlecard.is-gone { opacity: 0; visibility: hidden; }
.titlecard-in { display: grid; justify-items: center; gap: 22px; text-align: center; }
.titlecard svg { width: 54px; height: 54px; opacity: 0; transform: scale(0.85); animation: tc-mark 1100ms var(--ease) 100ms forwards; }
.titlecard .label { opacity: 0; animation: tc-fade 900ms var(--ease) 600ms forwards; }
.titlecard .tc-line { font: italic 400 clamp(30px, 4vw, 54px)/1 var(--serif); opacity: 0; animation: tc-fade 1000ms var(--ease) 1000ms forwards; }
.titlecard .tc-line em { color: var(--signal); }
.titlecard .tc-skip { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); opacity: 0.6; }
@keyframes tc-mark { to { opacity: 1; transform: none; } }
@keyframes tc-fade { to { opacity: 1; } }

/* ================= interlude ================= */
.interlude { position: relative; z-index: 1; min-height: 78svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.interlude-reel { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.interlude::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--ink) 0%, rgba(10,10,11,0.45) 45%, var(--ink) 100%); }
.interlude-copy { display: grid; gap: 20px; padding-block: 120px 90px; }
.quote { font: 400 clamp(40px, 6vw, 104px)/0.98 var(--serif); letter-spacing: -0.02em; max-width: 15ch; text-wrap: balance; }
.quote em { font-style: italic; color: var(--signal); }

/* ================= head variants ================= */
.head--stack { grid-template-columns: 1fr; gap: 20px; }
.head--stack .label { justify-self: start; padding-right: 60px; }
.head--stack .title { max-width: 20ch; font-size: clamp(48px, 7vw, 120px); }
.head--center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.head--center .label { padding-inline: 40px; }
.head--center .title { max-width: 18ch; }
.faq { max-width: none; margin-left: calc((100% - 32px) * 3 / 12 + 32px); }
@media (max-width: 980px) { .faq { margin-left: 0; } }

/* ================= credits ================= */
.credits { display: grid; gap: 22px; justify-items: center; text-align: center; margin-bottom: clamp(80px, 10vw, 160px); }
.credits li { display: grid; gap: 8px; }
.credits .cr-v { font: 400 clamp(24px, 2.4vw, 36px)/1.1 var(--serif); }
.credits .cr-title span { font: italic 400 clamp(44px, 5.4vw, 88px)/1 var(--serif); color: var(--bone); }
.credits li:first-child .cr-v { font-style: italic; color: var(--bone-2); }
.end .wrap { justify-items: start; }
.end .credits { justify-self: stretch; }

/* small things */
.ch .label { white-space: nowrap; }
.error-summary { border: 0; border-left: 2px solid var(--signal); background: rgba(230, 57, 70, 0.07); }
.error-summary ul { list-style: none; padding-left: 0; }
.error-summary a { border-bottom: 1px solid var(--line-2); }
@media (max-width: 400px) {
  .nav-cta { letter-spacing: 0.12em !important; }
  .mark-name { letter-spacing: 0.16em; }
}

/* code review fixes */
.nav.is-open { -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav-cta { white-space: nowrap; }
.no-js .nav-toggle, .no-js .motion, .no-js [data-motion] { display: none; }
@media (max-width: 980px) {
  .no-js .nav .wrap { height: auto; flex-wrap: wrap; padding-block: 12px; }
  .no-js .nav-links a:not(.btn) { display: inline-block; }
  .no-js .nav-links { flex-wrap: wrap; gap: 4px 18px; }
  .no-js .nav-cta { display: none; }
  .motion { display: none; }
  .nav.is-open .motion { display: block; padding: 20px 0; }
}
.hero--plain a { text-decoration: underline; text-underline-offset: 3px; }
@media print {
  :root { --bone: #000; --bone-2: #333; --bone-3: #555; }
  .reveal-ready :is(.reveal, .rise, .stage) { opacity: 1 !important; transform: none !important; transition: none !important; }
  .screen, .interlude-reel, .titlecard { display: none; }
}
/* the rebuild's photo fills the whole client site, behind its words */
.ta-body { position: static; }
.ta-photo { z-index: 0; }
.ta-top, .ta-copy, .ta-band { position: relative; z-index: 1; }
.ta-kick { font-size: 0.62em; letter-spacing: 0.14em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ta-accent, #e8743b); }
.ta-photo::before { content: ""; position: absolute; inset: 0 0 auto; height: 22%; z-index: 1; background: linear-gradient(180deg, rgba(10,10,11,0.75), transparent); }
.interlude { align-items: center; }

/* ---- 2.0 phase A ---- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--m); top: -100px; z-index: 300; padding: 12px 18px; background: var(--bone); color: var(--ink); font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.skip:focus { top: 12px; }
/* the room is lit only while art is on screen */
.ambient { opacity: 0; transition: opacity 1.4s var(--ease); }
.amb-on .ambient { opacity: 1; }
.ambient::after { display: none; }
.now-pause { display: none; }
@media (max-width: 980px) {
  .now-pause { display: inline-block; }
  /* phone hero: the reel owns the top of the screen, the words sit on ink below it */
  .hero--screen { align-content: start; }
  .screen { bottom: auto; height: 58svh; }
  .scrim { background: linear-gradient(0deg, var(--ink) 0%, rgba(10,10,11,0.4) 22%, transparent 45%), linear-gradient(180deg, rgba(10,10,11,0.75) 0%, transparent 22%); }
  .hero-inner { padding-top: calc(58svh - 72px); }
  .hero--screen .hero-copy { gap: 22px; }
  .hero--screen .label { color: var(--bone-2); }
}
.legal { padding-top: 140px; }
.legal-list { max-width: 980px; margin-left: calc((100% - 32px) * 3 / 12 + 32px); }
.legal-list div { grid-template-columns: 200px 1fr; padding: 22px 0; }
.legal-list dd { color: var(--bone-2); font-size: 16px; line-height: 1.6; }
@media (max-width: 980px) { .legal-list { margin-left: 0; } .legal-list div { grid-template-columns: 1fr; gap: 6px; } }

/* ================= Hold to cut ================= */
.td-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 12px; }
.td-cap .td-tag { margin: 0; }
.td-caption { font: 400 clamp(24px, 2.4vw, 36px)/1.1 var(--serif); }
.td-caption em { color: var(--signal); }
.is-cutting .td-after { clip-path: inset(0 calc(100% - var(--cr, 50%)) 0 var(--cl, 50%)); }
.is-cutting.is-v .td-after { clip-path: inset(var(--ct, 100%) 0 0 0); }
.td-burn { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; }
.is-cutting .td-burn { opacity: 1; }
.td-burn i { position: absolute; display: block; }
.td-burn .bl, .td-burn .br { top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #fff4e8;
  box-shadow: 0 0 6px 2px rgba(255, 220, 190, 0.9), 0 0 22px 7px rgba(230, 57, 70, 0.85), 0 0 60px 18px rgba(230, 57, 70, 0.35); }
.td-burn .bl { left: var(--cl, 50%); }
.td-burn .br { left: var(--cr, 50%); }
.td-burn .bt { display: none; left: 0; right: 0; height: 3px; margin-top: -1.5px; top: var(--ct, 100%); background: #fff4e8;
  box-shadow: 0 0 6px 2px rgba(255, 220, 190, 0.9), 0 0 22px 7px rgba(230, 57, 70, 0.85), 0 0 60px 18px rgba(230, 57, 70, 0.35); }
.is-v .td-burn .bl, .is-v .td-burn .br { display: none; }
.is-v .td-burn .bt { display: block; }
.td-hold { position: absolute; left: 50%; top: 18px; z-index: 4; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px;
  padding: 12px 18px 14px; background: rgba(10, 10, 11, 0.82); border: 1px solid var(--line-2); pointer-events: none;
  opacity: 0; transition: opacity 500ms var(--ease); }
.td-ready.is-marked:not(.is-cut) .td-hold { opacity: 1; }
.is-cutting .td-hold { opacity: 0.35; }
.td-hold-t { font: 500 10.5px/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone); }
.td-hold-bar { position: relative; display: block; width: 120px; height: 1px; background: var(--line-2); overflow: hidden; }
.td-hold-bar i { position: absolute; inset: 0; background: var(--signal); transform-origin: left; transform: scaleX(var(--hold, 0)); }
.td-view { touch-action: pan-y; cursor: crosshair; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.td.is-cut .td-view { cursor: ew-resize; }
.td.is-cut .td-notes b { text-decoration: line-through; text-decoration-color: var(--signal); text-decoration-thickness: 1.5px; }
.td.is-cut .td-notes li::after { content: "Fixed"; grid-column: 2; font: 500 10px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: #6ee0a0; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .td-hold { display: none; } }
@media (max-width: 640px) { .td-cap { flex-direction: column; gap: 6px; } }
.hero--case .display em { display: block; font-size: 0.62em; margin-top: 10px; }

/* first frame of the screening room: painted from CSS before any script runs */
.hero--screen:not(.hero--case) .screen { background: #000 url("media/hero-xp2-poster-1600.webp") center / cover no-repeat; }
@media (max-width: 900px) { .hero--screen:not(.hero--case) .screen { background-image: url("media/hero-xp2-poster-m720.webp"); } }
.hero--case .screen { background: #000 url("media/hero-tx-poster-1600.webp") center / cover no-repeat; }
@media (max-width: 900px) { .hero--case .screen { background-image: url("media/hero-tx-poster-m720.webp"); } }
.price-line { color: var(--bone); font-size: 16.5px; max-width: 40ch; }
.price-line b { font-weight: 600; }
.payback { font: italic 400 clamp(20px, 1.6vw, 24px)/1.25 var(--serif); color: var(--bone-2); max-width: 30ch; }
.plate--minor .price { font-size: clamp(48px, 4.4vw, 72px); }
.plate--minor { background: transparent; }

/* ---- the burn (burn.js): ragged edge, glow, sparks ---- */
.xa-burn { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; overflow: visible; opacity: 0; transition: opacity 200ms; }
.xa-burn path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.xa-burn-glow { stroke: rgba(230, 57, 70, 0.32); stroke-width: 18; }
.xa-burn-core { stroke: #fff1df; stroke-width: 2.2; }
.xa-burn-mid { stroke: rgba(255, 160, 110, 0.7); stroke-width: 6; }
.xa-sparks { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; }
.has-xaburn .td-burn, .has-xaburn .cut-burn { display: none; }

/* hero: the address field is the first thing to do */
.hero-scan { display: flex; gap: 0; width: min(100%, 560px); border: 1px solid var(--line-2); background: rgba(10, 10, 11, 0.55); backdrop-filter: blur(6px); }
.hero-scan-in { flex: 1; min-width: 0; min-height: 58px; padding: 0 18px; border: 0; background: transparent; color: var(--bone); font: 400 17px/1 var(--sans); }
.hero-scan-in::placeholder { color: var(--bone-3); }
.hero-scan-in:focus { outline: none; }
.hero-scan:focus-within { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
.hero-scan .btn { min-height: 58px; border: 0; white-space: nowrap; }
.hero-alt { color: var(--bone-2); font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.no-js .hero-scan { display: none; }
@media (max-width: 560px) {
  .hero-scan { flex-direction: column; }
  .hero-scan .btn { justify-content: center; }
}

/* ================= 2.6: the splice hero ================= */
.hero--splice { position: relative; min-height: 100svh; display: grid; align-content: end; padding-top: 0; overflow: hidden; isolation: isolate; }
.splice { position: absolute; top: 0; bottom: 0; right: 0; width: min(62vw, 1100px); z-index: -1; overflow: hidden; --sx: 56%; }
.sp-frame { position: absolute; top: 52%; right: 0; width: 100%; aspect-ratio: 16 / 11; transform: translateY(-50%); container-type: inline-size; background: #fff; box-shadow: 0 0 0 1px var(--line-2); }
.sp-before, .sp-after { position: absolute; inset: 0; font-size: 1.55cqi; }
.sp-after { clip-path: inset(0 0 0 var(--sx)); }
.splice .tb-welcome { white-space: nowrap; }
.splice::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(10,10,11,0.55) 16%, transparent 34%),
              linear-gradient(0deg, var(--ink) 0%, rgba(10,10,11,0.2) 22%, transparent 40%),
              linear-gradient(180deg, rgba(10,10,11,0.85) 0%, transparent 16%); }
.sp-tags { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.sp-tag { position: absolute; top: 15%; padding: 7px 10px; font: 500 10px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; }
.sp-tag--old { right: calc(100% - var(--sx) + 14px); background: rgba(10,10,11,0.82); color: var(--bone-2); border: 1px solid var(--line-2); }
.sp-tag--new { left: calc(var(--sx) + 14px); background: #c8202f; color: #fff; }
/* the rebuild reads on its own side of the cut */
.splice .ta-body { grid-template-columns: 56% minmax(0, 1fr); }
.splice .ta-copy { grid-column: 2; padding: 1em 2.4em 1em 3.4em; gap: 0.8em; }
.splice .ta-copy h3 { font-size: 3.5em; }
.splice .ta-copy p { font-size: 1.05em; max-width: 24ch; }
.splice .ta-ctas .s { display: none; }
.splice .ta-kick { white-space: normal; line-height: 1.5; }
.splice .ta-photo::after { background: linear-gradient(90deg, transparent 48%, rgba(10,10,11,0.55) 62%, rgba(10,10,11,0.82) 100%), linear-gradient(0deg, rgba(10,10,11,0.85) 0%, transparent 34%); }
.splice .ta-band { grid-template-columns: 56% minmax(0, 1fr); }
.splice .ta-svc { display: none; }
.splice .ta-quick { grid-column: 2; }
.hero--splice .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 150px; }
.hero--splice .hero-copy { max-width: 620px; }
.hero--splice .xa-sparks, .hero--splice .xa-burn { z-index: 3; }
@media (max-width: 980px) {
  .hero--splice { align-content: start; }
  .splice { position: relative; width: 100%; height: 56svh; }
  .sp-frame { left: 50%; right: auto; width: 150vw; transform: translate(-56%, -46%); }
  .splice::after { background: linear-gradient(0deg, var(--ink) 0%, rgba(10,10,11,0.3) 24%, transparent 45%), linear-gradient(180deg, rgba(10,10,11,0.8) 0%, transparent 22%); }
  .sp-tag { top: 15%; }
  .splice .ta-copy { padding-left: 4.5cqi; padding-right: 14cqi; }
  .splice .ta-copy p:not(.ta-kick) { display: none; }
  .splice .ta-copy h3 { font-size: 3em; }
  .hero--splice .hero-inner { padding-top: 8px; }
}

/* ================= 2.6: the ending, cut in two ================= */
.end--cut { padding-top: clamp(100px, 12vw, 180px); }
.end--cut::before { display: none; }
.cutline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.12em 0.22em; margin: 0 0 clamp(36px, 4vw, 56px); font-size: clamp(54px, 9vw, 170px); line-height: 0.95; }
.cl-old { font: italic 400 1em/1 Georgia, "Times New Roman", serif; letter-spacing: -0.01em; color: rgba(246, 243, 238, 0.34);
  text-decoration: underline; text-decoration-color: rgba(120, 150, 210, 0.5); text-decoration-thickness: 0.03em; text-underline-offset: 0.08em; }
.cl-new { font: 400 1em/1 var(--serif); letter-spacing: -0.02em; clip-path: inset(-20% 100% -20% 0); transition: clip-path 1400ms var(--ease) 250ms; }
.cl-new em { font-style: italic; color: var(--signal); }
.cl-line { align-self: stretch; width: 2px; min-height: 1.1em; background: #fff1df; transform: scaleY(0); transform-origin: top; transition: transform 700ms var(--ease);
  box-shadow: 0 0 8px 2px rgba(255, 200, 160, 0.9), 0 0 30px 9px rgba(230, 57, 70, 0.7), 0 0 80px 24px rgba(230, 57, 70, 0.25); }
.cutline.is-cut .cl-line { transform: none; }
.cutline.is-cut .cl-new { clip-path: inset(-20% -5% -20% 0); }
@media (prefers-reduced-motion: reduce) { .cl-new, .cl-line { transition: none; } }
.end-scan { margin-bottom: 18px; }
@media (prefers-reduced-motion: reduce) { .cutline { transition: none; } }

/* the margin notes turn into the fix as the cut passes their marks */
.td-hand { display: grid; }
.td-hand > span { grid-area: 1 / 1; transition: opacity 420ms var(--ease), transform 520ms var(--ease), filter 420ms var(--ease); }
.td-hand .h-now { opacity: 0; transform: translateY(0.3em); filter: blur(3px); font-style: normal; color: var(--bone); }
.td-hand .h-now::before { content: "\2713"; display: inline-block; margin-right: 0.35em; color: #6ee0a0; font: 500 0.7em/1 var(--mono); transform: translateY(-0.15em); }
.td-hand.is-fixed .h-was { opacity: 0; transform: translateY(-0.3em); filter: blur(3px); }
.td-hand.is-fixed .h-now { opacity: 1; transform: none; filter: none; }
.td-ink .pen[data-line] { transition: stroke-dashoffset 900ms var(--ease), opacity 450ms var(--ease); }
.td-ink .pen[data-line].is-fixed { opacity: 0; }
.td-ink .fixline { fill: none; stroke: #6ee0a0; stroke-width: 1.25; stroke-linecap: round; opacity: 0.85; stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); transition: stroke-dashoffset 700ms var(--ease) 180ms; }
.td-ink .fixline.is-fixed { stroke-dashoffset: 0; }
.td-ink .fixdot { fill: #6ee0a0; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.2); transition: opacity 300ms var(--ease) 700ms, transform 400ms var(--ease) 700ms; }
.td-ink .fixdot.is-fixed { opacity: 1; transform: none; box-shadow: none; }
/* below the frame: the problem steps back, the fix steps forward */
.td.is-cut .td-notes b { text-decoration: none; color: var(--bone-3); }
.td.is-cut .td-notes .fix { color: var(--bone); }
.td .ta-kick { white-space: normal; }
[data-td-state] { display: inline-block; }


/* ================= 2.6: studies, the whole page in a window with the phone docked ================= */
.study-row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 40px 22px; }
.study { grid-column: span 2; }
.study.is-lead { grid-column: span 3; }
.study-row--1 .study, .study-row--2 .study { grid-column: auto; }
.study-shot { position: relative; aspect-ratio: 16 / 11.5; overflow: hidden; border: 1px solid var(--line-2); border-radius: 6px; background: #0e0e10; isolation: isolate; transition: border-color 400ms var(--ease), box-shadow 600ms var(--ease); }
.study.is-lead .study-shot { aspect-ratio: 16 / 10.5; }
.sw-bar { position: absolute; inset: 0 0 auto; z-index: 2; height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #141416; border-bottom: 1px solid var(--line); }
.sw-bar i { width: 7px; height: 7px; border-radius: 50%; background: #2c2c30; }
.sw-bar span { margin-left: 8px; font: 500 9.5px/1 var(--mono); letter-spacing: 0.12em; color: var(--bone-3); }
.sw-d { position: absolute; top: 26px; left: 0; width: 100%; height: calc(100% - 26px); object-fit: cover; object-position: 50% 0; transition: object-position 1.4s cubic-bezier(0.6, 0, 0.2, 1); }
.sw-m { position: absolute; right: 5%; bottom: 7%; z-index: 3; width: 22%; aspect-ratio: 390 / 844; overflow: hidden; border: 3px solid #1c1c1f; border-radius: 16% / 7.5%; background: #000;
  box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.07); transition: transform 700ms var(--ease); }
.sw-m img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.study-shot::after { content: ""; position: absolute; inset: 26px 0 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(10, 10, 11, 0.35), transparent 30%); }
/* hover (or, on a phone, scrolling it into view) plays the page: the desktop scrolls top to bottom, the phone lifts */
.study:is(:hover, :focus-visible, .is-peek) .sw-d { object-position: 50% 100%; transition: object-position 9s cubic-bezier(0.45, 0, 0.3, 1); }
.study:is(:hover, :focus-visible, .is-peek) .sw-m { transform: translateY(-8px) rotate(-1.5deg); }
.study:is(:hover, :focus-visible) .study-shot { border-color: rgba(246, 243, 238, 0.28); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.study h3 { transition: color 300ms var(--ease); }
.study:hover h3 { color: #fff; }
@media (prefers-reduced-motion: reduce) { .study .sw-d, .study .sw-m { transition: none; } }
@media (max-width: 980px) { .study-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .study, .study.is-lead { grid-column: auto; } .study.is-lead:first-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .study-row { grid-template-columns: minmax(0, 1fr); } .study.is-lead:first-child { grid-column: auto; } .sw-m { width: 24%; } }
.td-instant :is(.td-hand, .td-hand > span, .td-hand::after, .pen, .fixline, .fixdot) { transition: none !important; }
