/* ============ the walk-through — her paper, her burgundy, real devices ============ */
body.exp {
  --ink: #3B251B;
  --ink-soft: #5A3B2A;
  --wine: #5E1624;
  --wine-deep: #4A0F1B;
  --wine-lt: #8A2436;
  --brass: #B08D57;
  --brass-lt: #E0C68E;
  --paper: #FFFBF3;
  --f-hand: "Caveat", "Bradley Hand", cursive;
  color: var(--ink);
}

/* ---------- acts ---------- */
.act { position: relative; padding: clamp(56px, 9vh, 120px) 24px; }
.act-inner { max-width: 1200px; margin: 0 auto; }
.act--tight { padding-block: clamp(34px, 5vh, 70px); }
/* a burgundy velvet room */
.act--velvet { color: var(--paper); background-color: var(--wine-deep); background-image: linear-gradient(rgba(74, 15, 27, .82), rgba(40, 8, 15, .88)), var(--img-velvet); background-size: auto, 760px; }
.act--velvet .display, .act--velvet .penned-text { color: var(--paper); }
.act--velvet .display em { color: var(--brass-lt); }
.act--velvet .kicker { color: var(--brass-lt); }
.act--velvet .lede { color: rgba(255, 251, 243, .84); }
/* a dark room, only where a screen needs the lights down */
.act--night { color: var(--paper); background-color: #1C120C; background-image: linear-gradient(rgba(18, 11, 7, .78), rgba(18, 11, 7, .88)), url("../assets/photos/leather.jpg"); background-size: auto, 700px; }
.act--night .display { color: var(--paper); }
.act--night .display em { color: var(--brass-lt); }
.act--night .kicker { color: var(--brass-lt); }
.act--night .lede { color: rgba(255, 251, 243, .8); }

.kicker { margin: 0 0 12px; font-size: 11px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--wine-lt); }
.display { margin: 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(42px, 7.6vw, 104px); line-height: .94; letter-spacing: -.012em; color: var(--wine); }
.display em { font-style: italic; color: var(--wine-lt); }
.lede { max-width: 46ch; margin: 16px 0 0; font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.66; color: var(--ink-soft); }

/* reveal */
.up { opacity: 0; transform: translateY(24px); transition: opacity .85s var(--ease), transform .85s var(--ease); transition-delay: var(--d, 0ms); }
.up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .up { opacity: 1; transform: none; } }

/* ---------- handwriting, tape, lace: the things that make it hers ---------- */
.penned {
  position: relative; display: inline-block; max-width: 34ch; padding: 22px 26px 20px;
  background: var(--paper); background-image: var(--grain);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 16px 30px rgba(59, 37, 27, .18);
  transform: rotate(var(--tilt, -1.4deg));
}
.penned::after { content: ""; position: absolute; inset: 7px; border: 1px dashed rgba(94, 22, 36, .22); pointer-events: none; }
.penned-text { margin: 0; font-family: var(--f-hand); font-size: clamp(20px, 2vw, 26px); line-height: 1.38; color: var(--ink); }
.penned-text + .penned-text { margin-top: 10px; }
.penned-sign { display: block; margin-top: 10px; font-family: var(--f-hand); font-size: 20px; color: var(--wine-lt); }
.penned--pink { background: #F9E6E7; }
.penned--butter { background: #FAF2D6; }
.penned .tape {
  position: absolute; top: -13px; left: 50%; width: 96px; height: 26px; transform: translateX(-50%) rotate(-3deg);
  background: repeating-linear-gradient(45deg, rgba(201, 122, 138, .42) 0 7px, rgba(255, 255, 255, .34) 7px 14px);
  box-shadow: 0 2px 5px rgba(59, 37, 27, .14);
}
.penned .tape--r { left: auto; right: -18px; top: 18px; transform: rotate(28deg); width: 78px; }
.scribble { font-family: var(--f-hand); font-size: clamp(21px, 2.3vw, 30px); color: var(--wine-lt); transform: rotate(-2deg); display: inline-block; }
.scribble--arrow::after { content: " ↘"; }
.lace-line { height: 34px; background: var(--img-lace) repeat-x center / auto 100%; opacity: .5; }
.act--velvet .lace-line, .act--night .lace-line { opacity: .3; }

/* ---------- act one ---------- */
.stage-hero { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 40px; min-height: 84vh; }
.hero-name .display { font-size: clamp(52px, 10vw, 150px); }
.hero-sub { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 18px 0 0; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--wine-lt); }
.hero-sub span { display: inline-block; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn-brass, .btn-line { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; font: 500 11.5px/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; transition: transform .35s var(--ease), background-color .35s, color .35s, border-color .35s; }
.btn-brass { background: var(--wine); color: var(--paper); }
.btn-brass:hover { transform: translateY(-3px); background: var(--wine-lt); }
.btn-line { border: 1px solid rgba(94, 22, 36, .45); color: var(--wine); }
.btn-line:hover { transform: translateY(-3px); border-color: var(--wine); background: rgba(94, 22, 36, .07); }
.act--velvet .btn-brass, .act--night .btn-brass { background: var(--brass); color: #2A1A11; }
.act--velvet .btn-line, .act--night .btn-line { border-color: rgba(224, 198, 142, .6); color: var(--brass-lt); }

/* her photographs, pinned up */
.snapboard { position: relative; height: clamp(400px, 46vw, 580px); }
.snap { position: absolute; overflow: hidden; background: var(--paper); padding: 10px 10px 42px; box-shadow: 0 20px 38px rgba(59, 37, 27, .28); transition: transform .7s var(--ease); }
.snap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.snap figcaption { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-family: var(--f-hand); font-size: 19px; color: var(--ink-soft); }
.snap--1 { left: 4%; top: 2%; width: 54%; aspect-ratio: 4/5; transform: rotate(-3deg); z-index: 2; }
.snap--2 { right: 1%; top: 20%; width: 40%; aspect-ratio: 3/4; transform: rotate(4deg); z-index: 3; }
.snap--3 { left: 16%; bottom: 0; width: 38%; aspect-ratio: 1/1; transform: rotate(2deg); z-index: 4; }
.snapboard:hover .snap--1 { transform: rotate(-4.5deg) translateY(-6px); }
.snapboard:hover .snap--2 { transform: rotate(6deg) translateY(-10px); }
.snapboard:hover .snap--3 { transform: rotate(1deg) translateY(-4px); }
.scroll-cue { position: absolute; left: 24px; bottom: 18px; display: flex; align-items: center; gap: 12px; font-family: var(--f-hand); font-size: 20px; color: var(--wine-lt); }
.scroll-cue i { display: block; width: 52px; height: 1px; background: linear-gradient(90deg, var(--wine-lt), transparent); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: scaleX(.4); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } }

/* ---------- project doors ---------- */
.rooms-row { display: grid; gap: 14px; margin-top: 28px; }
.room-link { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: clamp(22px, 3vw, 38px) clamp(20px, 3vw, 36px); background: var(--paper); background-image: var(--grain); border: 1px solid rgba(94, 22, 36, .18); text-decoration: none; color: inherit; overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s; box-shadow: 0 10px 22px rgba(59, 37, 27, .08); }
.room-link:hover { transform: translateY(-4px) rotate(-.3deg); border-color: var(--wine); box-shadow: 0 22px 36px rgba(59, 37, 27, .16); }
.room-link > span, .room-no, .room-title, .room-note, .room-meta { display: block; }
.room-no { font-family: var(--f-hand); font-size: 22px; color: var(--wine-lt); }
.room-title { margin: 2px 0 8px; font-family: var(--f-display); font-weight: 300; font-size: clamp(28px, 4vw, 50px); line-height: 1; color: var(--wine); }
.room-note { margin: 0; max-width: 56ch; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.room-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--wine-lt); }
.room-meta span { display: inline-block; }
.room-go { font-size: 28px; color: var(--wine-lt); transition: transform .45s var(--ease); }
.room-link:hover .room-go { transform: translateX(10px); }

/* ---------- devices ---------- */
.device { position: relative; width: 100%; }
.device img.device-shell { width: 100%; display: block; }
.device .screen { position: absolute; overflow: hidden; background: #0C0804; }
.device .screen img, .device .screen video { width: 100%; display: block; }
.laptop .screen img { will-change: transform; }
.laptop { filter: saturate(.92) contrast(1.03); }
.site-stage { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center; gap: clamp(18px, 3vw, 46px); margin-top: clamp(26px, 4vw, 50px); }
.site-stage > * { min-width: 0; }
.site-stage figcaption { display: grid; gap: 12px; justify-items: start; }
.site-label { font-family: var(--f-display); font-size: clamp(26px, 3vw, 38px); color: var(--wine); }
.act--night .site-label { color: var(--brass-lt); }
.site-note { font-family: var(--f-hand); font-size: 21px; line-height: 1.4; color: var(--ink-soft); }
.act--night .site-note { color: rgba(255, 251, 243, .82); }
.site-scrollcue { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--wine-lt); }

/* the isolated phone, in the camera app */
.phone-device { max-width: 330px; margin-inline: auto; }
.phone-device .screen { background: #000; }
.phone-device .screen video, .phone-device .screen img { height: 100%; object-fit: cover; }
.phone-wrap { position: relative; width: 100%; max-width: 380px; margin-inline: auto; padding-bottom: 10px; }
/* the camera app's own chrome, drawn over the screen */
.cam-ui { position: absolute; inset: 0; pointer-events: none; display: grid; grid-template-rows: auto 1fr auto; padding: 10px 8px 14px; color: #fff; font: 500 9px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
.cam-top { display: flex; justify-content: center; }
.cam-rec { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, .45); }
.cam-rec b { width: 7px; height: 7px; border-radius: 50%; background: #FF3B30; }
.is-recording .cam-rec b { animation: blink 1.1s steps(2, end) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.cam-bottom { display: grid; justify-items: center; gap: 9px; }
.cam-modes { display: flex; gap: 12px; font-size: 8.5px; opacity: .85; }
.cam-modes b { color: #F7D14C; font-weight: 500; }
.cam-shutter { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .9); display: grid; place-items: center; pointer-events: auto; cursor: pointer; background: none; }
.cam-shutter i { width: 26px; height: 26px; border-radius: 50%; background: #FF3B30; transition: border-radius .25s var(--ease), width .25s var(--ease), height .25s var(--ease); }
.is-recording .cam-shutter i { width: 16px; height: 16px; border-radius: 4px; }

/* a text thread on the same phone */
.texts { position: absolute; inset: 0; overflow: hidden; background: #F7F3EE; display: flex; flex-direction: column; }
.texts-bar { padding: 14px 10px 8px; text-align: center; background: rgba(247, 243, 238, .96); border-bottom: 1px solid rgba(59, 37, 27, .12); }
.texts-bar b { display: block; font: 500 12px/1.2 var(--f-body); color: #1B110B; }
.texts-bar span { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: #8C7A6C; }
.texts-list { flex: 1; display: flex; flex-direction: column; gap: 7px; padding: 12px 10px; overflow: hidden; }
.bubble { max-width: 82%; padding: 9px 12px; border-radius: 16px; font: 400 12.5px/1.35 var(--f-body); opacity: 0; transform: translateY(10px); animation: pop-in .45s var(--ease) forwards; animation-delay: var(--d, 0s); }
.bubble--them { align-self: flex-start; background: #E8E3DC; color: #241A12; border-bottom-left-radius: 5px; }
.bubble--me { align-self: flex-end; background: var(--wine); color: #FFF6E6; border-bottom-right-radius: 5px; }
.bubble small { display: block; margin-top: 4px; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
@keyframes pop-in { to { opacity: 1; transform: none; } }

/* likes drifting up */
.likes { position: absolute; inset: 0; max-width: 100%; pointer-events: none; }
.likes i { position: absolute; left: var(--x, 50%); bottom: 14%; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--wine); color: #FFF1DC; opacity: 0; animation: float-up var(--dur, 4.4s) var(--ease) var(--delay, 0s) infinite; box-shadow: 0 8px 16px rgba(0, 0, 0, .28); }
.likes i.alt { background: var(--brass); color: #2A1A11; }
.likes i svg { width: 19px; height: 19px; fill: currentColor; }
@keyframes float-up {
  0% { opacity: 0; transform: translate3d(0, 20px, 0) scale(.6); }
  14% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  72% { opacity: .9; }
  100% { opacity: 0; transform: translate3d(var(--dx, 18px), -210px, 0) scale(.85); }
}

/* ---------- numbers, as receipts not charts ---------- */
.ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-top: 26px; }
.ledger div { position: relative; padding: 26px 22px; background: var(--paper); background-image: var(--grain); box-shadow: 0 14px 26px rgba(59, 37, 27, .14); transform: rotate(var(--tilt, 0deg)); }
.ledger div:nth-child(odd) { --tilt: -1.2deg; }
.ledger div:nth-child(even) { --tilt: 1deg; }
.ledger b { display: block; font-family: var(--f-display); font-weight: 300; font-size: clamp(40px, 5vw, 66px); line-height: 1; color: var(--wine); }
.ledger span { display: block; margin-top: 8px; font-family: var(--f-hand); font-size: 20px; line-height: 1.3; color: var(--ink-soft); }

/* ---------- toolkit ---------- */
.kit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.kit section { padding: 24px 20px; background: var(--paper); background-image: var(--grain); border-top: 3px solid var(--wine); box-shadow: 0 10px 20px rgba(59, 37, 27, .1); }
.kit section:nth-child(2) { border-top-color: var(--wine-lt); }
.kit section:nth-child(3) { border-top-color: var(--brass); }
.kit section:nth-child(4) { border-top-color: var(--brown); }
.kit h3 { margin: 0 0 14px; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--wine-lt); }
.kit ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.kit li { font-size: 15px; line-height: 1.4; color: var(--ink); }
.kit li span { display: block; font-family: var(--f-hand); font-size: 18px; color: var(--ink-soft); }

/* ---------- closing ---------- */
.closing { text-align: center; }
.closing .display { font-size: clamp(40px, 6.4vw, 88px); }
.closing .lede, .closing .penned { margin-inline: auto; }
.closing .hero-cta { justify-content: center; }

/* ---------- the demo row (laptop + words) ---------- */
.demo-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(18px, 3vw, 46px); align-items: center; margin-top: 26px; }
.demo-row > * { min-width: 0; }
.laptop--demo .screen { display: grid; place-items: center; background: #120B07; }
.laptop--demo iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.laptop--demo .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.screen-wait { display: grid; gap: 6px; place-items: center; padding: 16px; text-align: center; font-size: clamp(9px, .9vw, 12px); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 251, 243, .55); }
.screen-wait b { font-family: var(--f-display); font-style: italic; font-size: clamp(17px, 2.2vw, 28px); letter-spacing: 0; text-transform: none; color: var(--brass-lt); }

@media (max-width: 1000px) {
  .stage-hero, .site-stage, .demo-row { grid-template-columns: 1fr; }
  .stage-hero { min-height: auto; gap: 28px; }
  .kit { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .kit { grid-template-columns: 1fr; }
  .room-link { grid-template-columns: 1fr; }
  .room-go { display: none; }
  .act { padding-inline: 18px; }
  .penned { max-width: 100%; }
}

/* two phones side by side: the camera and the inbox */
.demo-row--phones { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
.phone-words { display: grid; justify-items: start; gap: 18px; }
.phone-wrap--texts { max-width: 300px; margin-inline: 0; }
.phone-wrap--texts .phone-device { max-width: 300px; }
@media (max-width: 1000px) { .demo-row--phones { grid-template-columns: 1fr; } .phone-wrap--texts { margin-inline: auto; } }

/* ---------- pinned notes instead of boxes ---------- */
.pinwall { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px 22px; margin-top: 30px; }
.pinwall .penned { max-width: none; width: 100%; }
.pinwall .penned:nth-child(3n) { --tilt: 1.4deg; }
.pinwall .penned:nth-child(3n+2) { --tilt: -2deg; }
.penned-label { display: block; margin-bottom: 6px; font: 500 10.5px/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--wine-lt); }

/* handwritten steps on a ruled page */
.steps { counter-reset: step; display: grid; gap: 16px; margin-top: 26px; }
.steps li { counter-increment: step; position: relative; list-style: none; padding: 18px 22px 18px 64px; background: var(--paper); background-image: repeating-linear-gradient(transparent 0 31px, rgba(94, 22, 36, .1) 31px 32px); box-shadow: 0 10px 20px rgba(59, 37, 27, .1); transform: rotate(var(--tilt, -.4deg)); }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 16px; font-family: var(--f-hand); font-size: 32px; color: var(--wine-lt); }
.steps b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 23px; color: var(--wine); }
.steps span { font-family: var(--f-hand); font-size: 20px; line-height: 1.35; color: var(--ink-soft); }

/* her covers, taped to the wall */
.postwall { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px; margin-top: 28px; }
.postcard { margin: 0; padding: 9px 9px 36px; background: var(--paper); box-shadow: 0 16px 28px rgba(59, 37, 27, .22); transform: rotate(var(--tilt, 0deg)); transition: transform .5s var(--ease); }
.postcard:hover { transform: rotate(0deg) translateY(-6px); }
.postcard img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.postcard figcaption { position: absolute; left: 0; right: 0; bottom: 9px; text-align: center; font-family: var(--f-hand); font-size: 18px; color: var(--ink-soft); }
.postcard { position: relative; }

/* the big story line, handwritten */
.story-line { display: grid; gap: 6px; margin-top: 26px; }
.story-line b { font-family: var(--f-display); font-weight: 300; font-size: clamp(40px, 6vw, 86px); line-height: 1; color: var(--wine); }
.story-line span { font-family: var(--f-hand); font-size: clamp(20px, 2vw, 26px); color: var(--ink-soft); }
.act--velvet .story-line b { color: var(--brass-lt); }
.act--velvet .story-line span, .act--night .story-line span { color: rgba(255, 251, 243, .85); }

/* the match dial, in her colours */
.match-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 290px); gap: 24px; align-items: start; margin-top: 22px; }
.match-controls { display: grid; gap: 18px; padding: 24px; background: var(--paper); background-image: var(--grain); box-shadow: 0 14px 26px rgba(59, 37, 27, .18); }
.match-field { display: grid; gap: 7px; }
.match-field label { display: flex; justify-content: space-between; font-family: var(--f-hand); font-size: 21px; color: var(--ink); }
.match-field input[type="range"] { width: 100%; accent-color: var(--wine); }
.match-score { display: grid; justify-items: center; gap: 8px; padding: 26px 20px; background: var(--wine-deep); color: var(--paper); text-align: center; }
.match-dial { position: relative; width: 150px; height: 150px; }
.match-dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.match-dial .ring-bg { fill: none; stroke: rgba(255, 251, 243, .2); stroke-width: 10; }
.match-dial .ring { fill: none; stroke: var(--brass-lt); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .5s var(--ease); }
.match-pct { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: 40px; color: var(--paper); }
.match-verdict { margin: 0; font-family: var(--f-hand); font-size: 23px; color: var(--brass-lt); }
@media (max-width: 800px) { .match-demo { grid-template-columns: 1fr; } }

/* the film strip stays inside its column */
.phone-words, .act-inner > * { min-width: 0; }
body.exp .filmstrip { max-width: 100%; overflow: hidden; margin-inline: 0; }
body.exp .frames { max-width: 100%; }

/* the header lace hangs over the page — give the first act room to breathe under it */
body.exp main > .act:first-child { padding-top: clamp(76px, 11vh, 130px); }
