/* ---------- Work & Stats page (builds on intro.css tokens, brand + menu) ---------- */
@property --ex { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --er { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --mono: "SFMono-Regular", Menlo, Consolas, monospace;
}

.page { position: relative; z-index: 1; padding: 0 var(--pad); overflow-x: clip; background: var(--white); }
/* The intro stays put while Work rises over it (work.js sets top for tall intros) */
body { height: auto; min-height: 100%; }
.intro { position: sticky; top: 0; z-index: 0; }

/* ---------- Page heading ---------- */
.head {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 0 96px;
  max-width: 1100px;
  margin: 0 auto;
}
/* Right under the intro desk: no need for a full-screen heading */
.label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.title {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.sub { margin-top: 20px; max-width: 360px; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---------- Scenes: pinned, sliding sideways as you scroll (work.js sets the height) ---------- */
.hscroll { position: relative; margin: 0 calc(var(--pad) * -1); border-top: 1px solid var(--line); }
.hscroll__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.scenes { display: flex; height: 100%; will-change: transform; transition: transform 0.7s var(--ease); }
.hscroll__pin { touch-action: pan-y; display: flex; flex-direction: column; transform-origin: 50% 30%; }
/* Heading sits inside the pinned area, above the sliding panels */
.hscroll__pin .head {
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 48px max(var(--pad), (100% - 1100px) / 2) 0;
}
.hscroll__pin .title { font-size: clamp(36px, 5vw, 64px); }
.hscroll__pin .sub { margin-top: 12px; }
.scenes { flex: 1; min-height: 0; }
.scene {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  align-content: center;
  gap: clamp(40px, 8vw, 120px);
  padding: 24px max(var(--pad), (100% - 1100px) / 2) 48px;
}
.scene:nth-child(even) .scene__object { order: 2; }
.scene__object {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 340px;
}
.scene__text { max-width: 380px; }
.scene__client {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.scene__result {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.scene__desc { font-size: 13px; line-height: 1.6; color: var(--soft); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tags span { font-size: 10px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); }

/* Objects move with parallax (--py) and slide in on reveal (--ex, --er) */
.obj {
  position: relative;
  --r: 0deg;
  transform: translate3d(var(--ex), var(--py, 0px), 0) rotate(calc(var(--r) + var(--er)));
  transition: --ex 1.1s var(--ease), --er 1.1s var(--ease), opacity 0.9s var(--ease);
  will-change: transform;
}
.js .obj:not(.is-in) { --ex: -90px; --er: -8deg; opacity: 0; }
.js .scene:nth-child(even) .obj:not(.is-in) { --ex: 90px; --er: 8deg; }

.note {
  position: absolute;
  font-family: var(--hand);
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
  pointer-events: none;
}
.note svg { display: block; overflow: visible; }

/* 1. Receipt */
.receipt {
  --r: -4deg;
  width: 270px;
  padding: 28px 24px 36px;
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x;
          mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x;
}
.receipt h4 { font-family: var(--helvetica); font-size: 14px; letter-spacing: -0.03em; text-align: center; }
.receipt .center { text-align: center; color: var(--muted); font-size: 10px; }
.receipt hr { border: 0; border-top: 1px dashed rgba(0, 0, 0, 0.35); margin: 12px 0; }
.receipt .row { display: flex; justify-content: space-between; }
.receipt .total { position: relative; font-size: 22px; font-weight: 700; text-align: center; margin: 8px 0 4px; letter-spacing: -0.02em; }
.receipt .total svg { position: absolute; inset: -12px -6px; width: calc(100% + 12px); height: calc(100% + 24px); overflow: visible; }
.receipt .barcode { height: 34px; margin-top: 16px; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 11px, transparent 11px 12px); }

/* 2. Clipboard */
.clipboard {
  --r: 3deg;
  width: 290px;
  padding: 38px 16px 20px;
  background: #2a2724;
  border-radius: 10px;
}
.clipboard::before {
  content: "";
  position: absolute;
  top: -12px; left: 50%;
  width: 96px; height: 34px;
  margin-left: -48px;
  background: linear-gradient(#d9d9d9, #9d9d9d);
  border-radius: 6px 6px 10px 10px;
  border: 1px solid #8a8a8a;
}
.clipboard__sheet { background: var(--paper); background-image: var(--grain); padding: 18px 16px 22px; }
.clipboard h4 { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.log { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.log th { text-align: left; font-size: 8.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; }
.log td { font-family: var(--hand); font-size: 14px; padding: 4px 0; border-top: 1px solid var(--line); }
.log td:first-child { width: 48%; }
.log td + td, .log th + th { padding-left: 8px; }
.log td:last-child { text-align: right; }
.log tr.sum td { border-top: 1.5px solid var(--ink); font-size: 17px; }

/* 3. YouTube prints */
.prints { --r: 0deg; width: 440px; height: 360px; }
.print {
  position: absolute;
  background: var(--white);
  padding: 6px 6px 22px;
  border: 1px solid var(--line);
}
.print img { display: block; width: 100%; height: auto; }
.print--t1 img,
.print--t2 img,
.print--t3 img { aspect-ratio: 16 / 9; object-fit: cover; }
.print--channel { width: 320px; top: 0; left: 30px; transform: rotate(-3deg); padding-bottom: 6px; background: #0f0f0f; border-color: #0f0f0f; }
.print--t1 { width: 190px; top: 120px; left: 0; transform: rotate(-7deg); }
.print--t2 { width: 190px; top: 150px; left: 150px; transform: rotate(4deg); }
.print--t3 { width: 200px; top: 112px; left: 250px; transform: rotate(9deg); z-index: 2; }
.print figcaption { position: absolute; left: 8px; bottom: 4px; font-family: var(--hand); font-size: 12px; }
.tape {
  position: absolute;
  width: 70px; height: 20px;
  background: rgba(225, 222, 214, 0.85);
  clip-path: polygon(2% 0, 98% 6%, 100% 50%, 97% 100%, 3% 94%, 0 50%);
  z-index: 3;
}

/* 4. Production flow: PhasorSync screens cascading like steps on the desk */
.flow { position: relative; width: 440px; height: 400px; }
/* each step has its place in the cascade (--x, --y) and its tilt (--t) */
.flow__step {
  --t: 0deg;
  position: absolute;
  left: var(--x); top: var(--y);
  width: 72%;
  padding: 5px 5px 6px;
  background: var(--white);
  border: 1px solid rgba(20, 20, 20, 0.18);
  border-radius: 6px;
  opacity: 0;
  transform: translate3d(40px, 26px, 0) rotate(calc(var(--t) + 6deg));
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease), border-color 0.3s;
}
.flow__step:nth-child(1) { --x: 0;   --y: 0;     --t: -2deg; }
.flow__step:nth-child(2) { --x: 7%;  --y: 40px;  --t: 1.5deg; transition-delay: 0.25s; }
.flow__step:nth-child(3) { --x: 14%; --y: 80px;  --t: -1deg;  transition-delay: 0.5s; }
.flow__step:nth-child(4) { --x: 21%; --y: 120px; --t: 2deg;   transition-delay: 0.75s; }
.flow__step:nth-child(5) { --x: 28%; --y: 160px; --t: -0.5deg; transition-delay: 1s; }
/* dealt onto the desk one by one, brief first */
.flow.is-in .flow__step { opacity: 1; transform: translate3d(0, 0, 0) rotate(var(--t)); }
/* then a highlight walks the steps in order (work.js): the current one lifts and straightens */
.flow.is-playing .flow__step { transition-delay: 0s; }
.flow__step.is-active { z-index: 6; border-color: var(--ink); transform: translate3d(0, -8px, 0) rotate(0deg) !important; }
.flow__step.is-active figcaption b { background: var(--ink); color: var(--white); border-radius: 3px; padding: 0 4px; }
.flow__step figcaption { padding: 2px 4px 6px; font-size: 10px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.flow__step figcaption b { font-family: var(--mono); font-weight: 400; color: var(--muted); margin-right: 3px; }
.flow__step img { display: block; width: 100%; height: auto; border-radius: 3px; }

/* ---------- Stats: face radar (squeezes on its own once on screen) ---------- */
.stats { position: relative; z-index: 1; height: 100vh; height: 100svh; border-top: 1px solid var(--line); background: var(--white); }
.stats__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 40px;
}
.stats__text { align-self: center; max-width: 300px; }
.stats__text .title { font-size: clamp(36px, 5vw, 64px); }
.stats__status { margin-top: 18px; font-family: var(--hand); font-size: 18px; min-height: 48px; }
.radar { width: min(760px, 62vw); aspect-ratio: 1.3; touch-action: pan-y; }
.radar.is-live { cursor: grab; }
.radar.is-grabbing { cursor: grabbing; }

/* ---------- Words from clients: pinned like Work (work.js slides it). 1 case study video, 2 more videos, 3 chat polaroids ---------- */
.words { z-index: 1; background: var(--white); } /* rises over the pinned Work panels */

/* Video case study: a print on the desk with the video in it */
.reel {
  --r: -2deg;
  width: min(480px, 100%);
  padding: 8px 8px 0;
  background: var(--white);
  border: 1px solid var(--line);
}
.reel .tape { top: -10px; left: 50%; margin-left: -35px; transform: rotate(-3deg); }
.reel__screen { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #141414; }
.reel__screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.3s var(--ease);
}
.reel__play svg { width: 68px; height: 68px; transition: transform 0.3s var(--ease); }
.reel__play:hover svg { transform: scale(1.08); }
.reel__play:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }
.reel.is-playing .reel__play { opacity: 0; pointer-events: none; }
.reel figcaption { padding: 8px 4px 10px; font-family: var(--hand); font-size: 15px; color: var(--ink); }
.reel--soon .reel__screen { display: grid; place-items: center; }
.reel__soon { font-family: var(--hand); font-size: 16px; color: rgba(255, 255, 255, 0.65); }

/* Three smaller prints, overlapping in a loose cascade */
.reels { display: flex; flex-direction: column; width: min(440px, 100%); }
.reels .reel { width: min(270px, 64%); }
.reels .reel + .reel { margin-top: -34px; }
.reels .reel:nth-child(1) { z-index: 3; } /* each print lies on the next one, so every caption stays readable */
.reels .reel:nth-child(2) { align-self: flex-end; z-index: 2; }
.reels .reel:nth-child(3) { align-self: center; }
.reels .obj:nth-child(2) { transition-delay: 0.15s; }
.reels .obj:nth-child(3) { transition-delay: 0.3s; }

/* Chat polaroids: one panel, the pile centred under a small label */
.scene--pile { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 4px; }
.pile__hint { display: none; }

/* Polaroids lying on the desk, overlapping. Side padding leaves room for the doodle arrows. */
.pile {
  touch-action: pan-x pan-y; /* on phones it's a swipeable row inside the pinned panel */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 80px 8px;
}
.word__shot {
  --r: 4deg;
  position: relative;
  flex: none;
  width: min(240px, 22vw);
  padding: 7px 7px 0; /* polaroid: thin sides, caption strip at the bottom */
  background: var(--white);
  border: 1px solid var(--line);
  z-index: 2;
}
.word__shot--wide { --r: -2.5deg; width: min(460px, 38vw); z-index: 1; }
.word__shot--mid { --r: -1.5deg; width: min(260px, 23vw); }
.word__shot + .word__shot { margin-left: -48px; } /* the overlap */
.word__shot:hover { z-index: 3; } /* pick a photo up off the pile */
/* slide in from opposite sides (--from), one after the other */
.js .pile .obj:not(.is-in) { --ex: var(--from, 0px); --er: 0deg; }
.js .pile .word__shot--mid:not(.is-in) { --er: -10deg; } /* the middle one drops onto the pile */
.pile .obj:nth-child(2) { transition-delay: 0.2s; }
.pile .obj:nth-child(3) { transition-delay: 0.4s; }
.word__img { position: relative; display: block; }
.word__img img { display: block; width: 100%; height: auto; }
.word__shot .tape { top: -10px; left: 50%; margin-left: -35px; transform: rotate(-3deg); }

/* Doodle arrow beside the polaroid, pointing at the best line (--at = its height in the screenshot) */
.word__arrow {
  position: absolute;
  top: calc(var(--at, 50%) - 26px); /* 26px = arrowhead height inside the svg */
  right: -74px;
  width: 64px; height: 36px;
  color: var(--ink);
  overflow: visible;
}
.word__img--arrow-left .word__arrow { right: auto; left: -74px; transform: scaleX(-1); }
/* Pen underline drawn on the photo itself (white, on a dark chat screenshot) */
.word__mark { position: absolute; inset: 0; width: 100%; height: 100%; color: #fff; overflow: visible; pointer-events: none; }

/* Polaroid strip: the client's comment, what I did, who they are */
.word__shot figcaption {
  padding: 10px 4px 12px;
  font-family: var(--hand);
  color: var(--ink);
}
.word__shot--wide figcaption,
.word__shot--mid figcaption { padding-right: 52px; } /* keep text clear of the overlapping polaroid */
.word__quote { display: block; font-size: 19px; line-height: 1.2; }
.word__did { display: block; margin: 6px 0 8px; font-size: 14px; line-height: 1.35; color: #3a3a3a; }
.word__who { display: block; font-size: 13px; line-height: 1.25; }
.word__who i { display: block; font-style: normal; color: #6a6a6a; overflow-wrap: anywhere; }

/* ---------- PhasorSync: a window on the desk showing the board, then what it does for clients ---------- */
.phasor {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 0 72px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.phasor__intro {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.phasor__head .title { font-size: clamp(36px, 5vw, 64px); }
.phasor__logo { display: block; width: 150px; height: auto; margin: 0 0 18px -6px; }
.phasor__head .sub { max-width: 340px; }
.phasor__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.phasor__btn {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
}
.phasor__btn:hover { opacity: 0.85; }
.phasor__btn--line { background: transparent; color: var(--ink); }
.phasor__btn--line:hover { background: var(--ink); color: var(--white); }

/* A stack of app windows: the top one shows the screen, two ghosts behind hint there's more */
.phasor__show { min-width: 0; }
.stack { position: relative; }
.stack__ghost {
  position: absolute;
  inset: 0;
  background: var(--white);
  border: 1px solid rgba(20, 20, 20, 0.16);
  border-radius: 10px;
}
.stack__ghost:nth-child(1) { transform: translate(18px, 14px) rotate(4deg); opacity: 0.6; }
.stack__ghost:nth-child(2) { transform: translate(9px, 7px) rotate(2.5deg); }

.screen {
  --r: 1deg;
  position: relative;
  background: var(--white);
  border: 1px solid rgba(20, 20, 20, 0.22);
  border-radius: 10px;
}
.screen__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.screen__bar i { flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(20, 20, 20, 0.3); }
.screen__tabs { display: flex; align-items: center; margin-left: 10px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.screen__tabs::-webkit-scrollbar { display: none; }
.screen__tabs button {
  position: relative;
  flex: none;
  padding: 4px 10px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  font: inherit;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}
/* thin dividers between tabs so each screen reads as its own thing */
.screen__tabs button + button { margin-left: 9px; }
.screen__tabs button + button::before {
  content: "";
  position: absolute;
  left: -5px; top: 50%;
  width: 1px; height: 12px;
  background: rgba(20, 20, 20, 0.18);
  transform: translateY(-50%);
}
.screen__tabs button b { font-family: var(--mono); font-weight: 400; font-size: 9px; margin-right: 5px; opacity: 0.7; }
.screen__tabs button:hover { color: var(--ink); }
.screen__tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.screen__tabs button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.screen__view {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0 0 9px 9px;
  touch-action: pan-y;
}
.screen__track { display: flex; height: 100%; transition: transform 0.6s var(--ease); }
.screen__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* arrows + the doodle pointing at them */
.stack__controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}
.stack__hint {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 4px;
  font-family: var(--hand);
  font-size: 18px;
  transform: rotate(-3deg);
  transition: opacity 0.4s var(--ease);
}
.stack__hint svg { width: 46px; height: 28px; overflow: visible; }
.stack__hint.is-gone { opacity: 0; }
.stack__arrow {
  width: 40px; height: 40px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.stack__arrow:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.stack__arrow:disabled { opacity: 0.3; cursor: default; }
.stack__arrow--next { background: var(--ink); color: var(--white); }
.stack__arrow--next:hover:not(:disabled) { opacity: 0.85; }

/* the text under the window follows the screen */
.phasor__now { margin-top: 8px; max-width: 520px; min-height: 96px; }
.phasor__step { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-bottom: 8px; }
.phasor__now h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.phasor__now p:last-child { font-size: 12.5px; line-height: 1.55; color: var(--soft); }
.phasor__now.is-changing { animation: now-in 0.4s var(--ease); }
@keyframes now-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Commission: the offers as desk objects (ticket, invoice, agreement) ---------- */
.commission {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 0 56px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.commission__head { margin-bottom: 40px; }
.commission__head .title { font-size: clamp(36px, 5vw, 64px); }
.offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(20px, 3vw, 44px);
}
.offer {
  position: relative;
  padding: 24px 22px 22px;
  background-color: var(--sheet);
  background-image: var(--grain-light);
  border: 1px solid var(--line);
}
.offer:nth-child(1) { --r: -2deg; margin-top: 30px; }
.offer:nth-child(2) { --r: 1deg; }
.offer:nth-child(3) { --r: 2.5deg; margin-top: 44px; }
.offers .obj:nth-child(2) { transition-delay: 0.12s; }
.offers .obj:nth-child(3) { transition-delay: 0.24s; }

.offer__kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.offer__kicker--split { display: flex; justify-content: space-between; }
.offer__name { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.offer__pitch { margin: 8px 0 16px; font-size: 12px; line-height: 1.5; color: #4a4a4a; }
.offer__list { list-style: none; font-size: 11.5px; line-height: 1.45; }
.offer__list li { position: relative; padding-left: 16px; margin-bottom: 7px; }
.offer__list li::before { content: "✓"; position: absolute; left: 0; }
.offer__price { font-size: 34px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.offer__price--small { font-size: 20px; letter-spacing: -0.03em; }
.offer__price small { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; }
/* the $599 ticket: PayPal adds 18% tax at checkout (Rohit's choice), so say so under the price */
.offer__tax {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.offer__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.offer__total .offer__price { font-family: var(--helvetica); text-transform: none; letter-spacing: -0.05em; }
.offer__total .offer__price--small { letter-spacing: -0.03em; }
.offer__cta {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.offer__cta--ink {
  padding: 11px 18px;
  background: var(--ink);
  color: var(--white);
  border-radius: 100px;
  text-decoration: none;
}
.offer__cta--ink:hover { background: #333; }

/* 1. Ticket: perforated tear-off stub with notches */
.offer--ticket { padding: 0; }
.ticket__main { padding: 24px 22px 18px; }
.ticket__stub {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding: 18px 22px 20px;
  border-top: 2px dashed var(--line);
}
.ticket__stub::before,
.ticket__stub::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--page);
  border: 1px solid var(--line);
}
.ticket__stub::before { left: -9px; clip-path: inset(0 0 0 50%); }
.ticket__stub::after { right: -9px; clip-path: inset(0 50% 0 0); }
.ticket__stub .offer__cta { margin-top: 0; }

/* 2. Invoice: dotted line items + an ink stamp */
.offer__list--lines li { padding-bottom: 7px; border-bottom: 1px dotted rgba(20, 20, 20, 0.25); }
.stamp {
  position: absolute;
  top: -13px; right: -10px; /* stamped over the top corner, half off the paper */
  background: var(--sheet);
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(6deg);
}

/* 3. Agreement: numbered clauses */
.offer__list--clauses { counter-reset: clause; }
.offer__list--clauses li { counter-increment: clause; padding-left: 20px; }
.offer__list--clauses li::before { content: counter(clause) "."; font-family: var(--mono); font-size: 10px; top: 1px; }


/* ---------- FAQ: simple open/close questions ---------- */
.faq {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 0 120px; /* room for the sticky call button */
  border-top: 1px solid var(--line);
  background: var(--white);
}
.faq__head .title { font-size: clamp(32px, 4vw, 48px); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  position: relative;
  padding: 18px 32px 18px 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.25s var(--ease);
}
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__list details p { max-width: 560px; padding: 0 32px 20px 0; font-size: 13px; line-height: 1.6; color: var(--soft); }
.faq__list details a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .faq { grid-template-columns: 1fr; gap: 24px; padding: 64px 0 110px; } /* room for the sticky call button */
}

/* ---------- Sticky "Book a call" button, bottom right ---------- */
.float-cta {
  position: fixed;
  right: var(--pad);
  bottom: calc(var(--pad) - 6px);
  z-index: 50;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--white);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.float-cta:hover { opacity: 0.88; transform: translateY(-2px); }
.float-cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 480px) {
  .float-cta { right: 16px; bottom: 16px; padding: 11px 18px; }
}

/* ---------- Reveal animations (work.js adds the classes, so nothing hides without JS) ---------- */
/* titles: each word rises out of its own line */
.rise .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.rise .w > span { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 0.9s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.rise.is-seen .w > span { transform: none; }
/* supporting text fades up */
.fade { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.fade.is-seen { opacity: 1; transform: none; }
.faq__list details.fade:nth-child(2) { transition-delay: 0.08s; }
.faq__list details.fade:nth-child(3) { transition-delay: 0.16s; }
.faq__list details.fade:nth-child(4) { transition-delay: 0.24s; }
/* section dividers draw left to right */
.line { border-top-color: transparent !important; }
.line::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.4s var(--ease);
  z-index: 2;
}
.line.is-seen::before { transform: scaleX(1); }
/* doodles draw like ink */
svg.draw path { transition: stroke-dashoffset 1.3s var(--ease) 0.2s; }
svg.draw.is-seen path { stroke-dashoffset: 0 !important; }
/* the sticky call button slides in once the page has loaded */
.js .float-cta { transform: translate3d(0, 140%, 0); }
.is-loaded .float-cta { transform: none; transition: transform 0.8s var(--ease) 1.2s, opacity 0.2s; }
.is-loaded .float-cta:hover { transform: translateY(-2px); transition-delay: 0s; }
/* menu links: a thin underline grows on hover */
.menu a:not(.cta) { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color 0.2s, background-size 0.3s var(--ease); }
.menu a:not(.cta):hover { background-size: 100% 1px; }

/* ---------- Contact me (in the menu): a highlighted pill that opens a small card ---------- */
.contact-wrap { position: relative; align-self: center; }
.contact { position: relative; }
.contact summary {
  display: block;
  margin: -4px 0;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.contact summary::-webkit-details-marker { display: none; }
.contact summary:hover { opacity: 0.85; }
.contact summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.contact__card {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  width: 240px;
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.menu .contact__card a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: -0.01em;
}
.menu .contact__card a:last-child { border-bottom: 0; }
.menu .contact__card a:hover { opacity: 0.6; }
.contact__card span {
  display: block;
  margin-bottom: 2px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* the doodle under the pill: small handwriting with an arrow curling up to it */
.contact__ask {
  position: absolute;
  top: calc(100% + 14px);
  right: 60px;
  font-family: var(--hand);
  font-size: 13px;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  transform: rotate(-4deg);
  pointer-events: none;
  z-index: 60; /* on mid-size screens it can reach the corner of the intro desk */
  opacity: 0;
  transition: opacity 0.6s var(--ease) 1.4s;
}
.contact__ask svg { position: absolute; right: -30px; top: -12px; width: 30px; height: 22px; overflow: visible; }
.is-loaded .contact__ask { opacity: 1; }
.contact[open] + .contact__ask { opacity: 0; transition-delay: 0s; }
/* phones: the menu is a column, so the doodle sits to the left of the pill, pointing right */
@media (max-width: 640px) {
  /* the stacked menu: give the pill room under "Book a call" (its underline sat on the pill) */
  .contact summary { margin: 6px 0 0; }
  .contact__ask { top: 50%; right: calc(100% + 30px); margin-top: -6px; transform: rotate(-3deg); }
  .contact__ask svg { right: -29px; top: -8px; transform: rotate(38deg); }
}


@media (prefers-reduced-motion: reduce) {
  .flow__step { opacity: 1; transform: rotate(var(--t)); transition: none; }
  .obj, .scenes { transition: none; }
  .phasor__now.is-changing { animation: none; }
  .screen__track { transition: none; }
  .js .obj:not(.is-in) { --ex: 0px; --er: 0deg; opacity: 1; }
}

/* ---------- Tall desktop screens: bigger objects so panels don't feel empty ---------- */
@media (min-width: 861px) and (min-height: 820px) {
  .scene__object { zoom: 1.2; }
}

/* ---------- Words: shorter desktop screens shrink the pile and the video prints so they fit the pinned panel ---------- */
@media (min-width: 901px) and (max-height: 860px) { .scene--pile .pile, .reels { zoom: 0.84; } }
@media (min-width: 901px) and (max-height: 720px) { .scene--pile .pile, .reels { zoom: 0.7; } }

/* ---------- Words on narrow screens: the polaroids become a swipeable row (each sized to fit the screen height) ---------- */
@media (max-width: 900px) {
  .scene--pile { padding-left: 0; padding-right: 0; padding-bottom: 84px; } /* keeps the swipe hint clear of the call button */
  .pile {
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    padding: 14px var(--pad) 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .pile::-webkit-scrollbar { display: none; }
  .word__shot { width: min(62vw, 260px, calc((100svh - 330px) / 1.75)); scroll-snap-align: center; }
  .word__shot--wide { width: min(84vw, 480px); }
  .word__shot--mid { width: min(66vw, 300px, calc((100svh - 380px) / 1.2)); }
  .word__shot + .word__shot { margin-left: 0; }
  .word__shot--wide figcaption,
  .word__shot--mid figcaption { padding-right: 4px; }
  .word__arrow { display: none; } /* the row clips anything outside the polaroids */
  .pile__hint { display: block; font-family: var(--hand); font-size: 15px; color: var(--ink); }
  .reels { width: min(340px, 100%); }
  .reels .reel { width: 62%; }
  .reels .reel + .reel { margin-top: -26px; }
}

/* ---------- PhasorSync on narrow screens ---------- */
@media (max-width: 900px) {
  .phasor__intro { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .phasor__show { width: 100%; }
}
@media (max-width: 560px) {
}

/* ---------- Commission: always side by side. Tighter on tablets, a swipeable row on phones ---------- */
@media (max-width: 1023px) {
  .offers { gap: 18px; }
  .offer, .ticket__main { padding-left: 16px; padding-right: 16px; }
  .ticket__stub { padding-left: 16px; padding-right: 16px; }
  .offer__price { font-size: 28px; }
}
@media (max-width: 720px) {
  .offers {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 0 calc(var(--pad) * -1);
    padding: 8px var(--pad) 36px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .offers::-webkit-scrollbar { display: none; }
  .offer { flex: 0 0 min(300px, 80vw); scroll-snap-align: center; }
  .offer:nth-child(n) { margin-top: 0; }
  .offer:nth-child(2) { margin-top: 20px; }
  .commission { padding-top: 64px; }
}

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .scene { grid-template-columns: 1fr; gap: 24px; padding-top: 16px; padding-bottom: 24px; }
  .hscroll__pin .head { padding-top: 28px; }
  .hscroll__pin .label { margin-bottom: 8px; }
  .hscroll__pin .sub { display: none; }
  .scene__result { font-size: 22px; margin-bottom: 10px; }
  .scene__desc { font-size: 12px; line-height: 1.5; }
  .tags { margin-top: 14px; }
  .scene:nth-child(even) .scene__object { order: 0; }
  .scene__object { min-height: 0; }
  .prints { zoom: 0.78; }
  .flow { zoom: 0.8; }
  .stats__pin { grid-template-columns: 1fr; align-content: center; justify-items: center; gap: 12px; text-align: center; }
  .stats__text { max-width: none; }
  .stats__status { min-height: 0; }
  .radar { width: 100vw; max-width: 600px; aspect-ratio: 1.05; margin: 0 calc(var(--pad) * -1); }
}
/* Phones: Proof of concept and Words aren't pinned (work.js `stacked`); the panels stack and scroll normally */
@media (max-width: 860px) {
  .hscroll { height: auto !important; }
  .hscroll__pin { position: relative; height: auto; overflow: visible; touch-action: auto; transform: none !important; opacity: 1 !important; }
  .scenes { display: block; transform: none !important; transition: none; will-change: auto; }
  .scene { padding-top: 28px; padding-bottom: 44px; }
  .scene + .scene { border-top: 1px dashed var(--line); }
  .hscroll__pin .sub { display: block; }
  .scene--pile { padding-bottom: 56px; }
}
@media (max-width: 480px) {
  .word__arrow { width: 50px; height: 28px; right: -58px; top: calc(var(--at, 50%) - 20px); }
  .prints { zoom: 0.72; }
  .flow { zoom: 0.7; }
}

/* ---------- Phones and tablets (touch): calmer, steadier motion ---------- */
@media (hover: none) and (pointer: coarse) and (prefers-reduced-motion: no-preference) {
  /* objects don't drift on touch screens, so they don't need their own GPU layer */
  .obj { will-change: auto; }
  /* shorter slide-ins: less sideways travel on a narrow screen */
  .js .obj:not(.is-in) { --ex: -36px; --er: -4deg; }
  .js .scene:nth-child(even) .obj:not(.is-in) { --ex: 36px; --er: 4deg; }
  .js .pile .obj:not(.is-in) { --ex: calc(var(--from, 0px) * 0.4); --er: 0deg; }
  .obj { transition: --ex 0.8s var(--ease), --er 0.8s var(--ease), opacity 0.6s var(--ease); }
  /* pinned panels slide over a little quicker */
  .scenes { transition-duration: 0.5s; }
}
