/* Matt Halvorson — portfolio. Mobile first. Soft warm dark theme: DM Sans, tan accent #d6b08a, deep brown #4a3326 contact band, thin rules. */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/dm-sans-latin.woff2) format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #26221f;          /* page: warm charcoal, not black */
  --surface: #2f2a26;     /* cards, proof bar */
  --surface-2: #38322d;   /* hover */
  --brown: #4a3326;       /* contact band */
  --accent: #d6b08a;      /* warm tan: links, numbers, buttons */
  --accent-dark: #e6c6a4; /* hover (lighter on dark) */
  --on-accent: #26221f;
  --tint: var(--surface);
  --ink: #eee8e1;
  --muted: #b9afa5;
  --line: #433c36;
  --radius: 12px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--on-accent); }

.kicker {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1.5px solid var(--accent); transition: background-color .15s, color .15s;
}
.btn--solid { background: var(--accent); color: var(--on-accent); }
.btn--solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--on-accent); }
.btn--line { background: transparent; color: var(--accent); }
.btn--line:hover { background: var(--surface-2); color: var(--accent-dark); }
.btn--light { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--light:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--on-accent); }

/* ── Header ── */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top__in { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; padding-bottom: 6px; }
.top__name { font-weight: 700; font-size: 1.0625rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.top__nav {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  margin-inline: -10px; -webkit-overflow-scrolling: touch;
}
.top__nav::-webkit-scrollbar { display: none; }
.top__nav a {
  flex: none; padding: 8px 10px; font-size: 0.9375rem; color: var(--muted); text-decoration: none; border-radius: 6px;
}
.top__nav a:hover { color: var(--accent); background: var(--surface-2); }

/* ── Hero ── */
.hero { display: grid; gap: 36px; padding-top: 40px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(2.125rem, 8.5vw, 4rem); font-weight: 700; max-width: 15ch; }
.hero__lede { margin-top: 20px; font-size: 1.125rem; color: var(--muted); max-width: 36rem; }
.hero__lede strong { color: var(--ink); font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__clip { margin: 0; width: min(68vw, 300px); justify-self: center; }
.hero__clip figcaption { margin-top: 10px; font-size: 0.9375rem; color: var(--muted); text-align: center; }
.hero__clip figcaption strong { color: var(--accent); }

/* ── Sections ── */
.section { padding-top: 64px; padding-bottom: 8px; }
.section + .section { border-top: 1px solid var(--line); margin-top: 56px; }
.section h2 { font-size: clamp(1.75rem, 5.5vw, 2.5rem); font-weight: 700; max-width: 22ch; }
.section__lede { margin-top: 12px; color: var(--muted); max-width: 40rem; }

/* ── Vertical video cards (click-to-load facade) ── */
.vid { margin: 0; min-width: 0; position: relative; } /* keeps .sr text inside the swipe rows (it widened the page on phones) */
.vid__play, .vid__frame {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16;
  border-radius: var(--radius); overflow: hidden; background: #3a342f;
}
.vid__play { padding: 0; border: 0; cursor: pointer; font: inherit; }
.vid__play img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.vid__play:hover img { transform: scale(1.03); }
.vid__icon {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(20, 17, 15, .72); box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.vid__icon::after {
  content: ''; position: absolute; left: 22px; top: 17px;
  border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff;
}
.vid__play:hover .vid__icon, .vid__play:focus-visible .vid__icon { background: var(--brown); }
.vid__frame iframe, .vid__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.vid figcaption { margin-top: 8px; font-size: 0.875rem; color: var(--muted); line-height: 1.4; }
.vid figcaption strong { color: var(--accent); }
/* "High" flag next to a strong rate: soft green pill that reads on the warm dark theme */
.hi { display: inline-block; margin-left: 2px; padding: 1px 6px; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.5; vertical-align: 1px; color: #9bdcaa; background: rgba(110, 200, 130, 0.14); box-shadow: inset 0 0 0 1px rgba(155, 220, 170, 0.35); white-space: nowrap; }
.vid__views { margin-top: 10px; font-weight: 700; font-size: 1.125rem; color: var(--accent); line-height: 1.2; }
.vid__meta { font-size: 0.875rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.vid__link { display: inline-block; margin-top: 4px; font-size: 0.875rem; padding-block: 4px; }
.vid--hero .vid__play, .vid--hero .vid__frame { border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); }

.grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 14px; }

/* ── Contact ── */
.contact { position: relative; isolation: isolate; overflow: hidden; background: var(--brown); color: #f3ebe3; }
.contact__icons { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; }

.contact__in { padding-block: 40px; display: grid; gap: 12px; justify-items: start; }

.contact p { color: #ddcfc2; font-size: 1.125rem; }
.contact .btn { margin-top: 12px; }
.contact :focus-visible { outline-color: #f3ebe3; }
.contact__where { font-size: 0.9375rem !important; margin-top: 8px; }
.contact__links { list-style: none; padding: 0; margin: 4px 0 0; display: flex; gap: 20px; }
.contact__links a { color: #f3ebe3; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 20px; font-size: 0.875rem; color: var(--muted); }

/* ── Tablet ── */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid--two { grid-template-columns: repeat(2, minmax(0, 260px)); }
}

/* ── Desktop ── */
@media (min-width: 960px) {
  .top { position: sticky; top: 0; z-index: 20; background: rgba(38, 34, 31, .92); backdrop-filter: saturate(1.4) blur(8px); }
  .top__in { flex-direction: row; align-items: center; justify-content: space-between; padding-block: 12px; }
  .top__nav { margin: 0; }
  .hero { grid-template-columns: 1fr 300px; align-items: center; gap: 64px; padding-top: 72px; padding-bottom: 80px; }
  .hero__clip { width: 100%; }
  .section { padding-top: 88px; }
  .section + .section { margin-top: 80px; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 36px 20px; }
  .contact__in { padding-block: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.hero__roles span { white-space: nowrap; }
@media (max-width: 959px) { .hero__clip { width: min(56vw, 280px); } }
.nw { white-space: nowrap; }
@media (min-width: 960px) {
  .hero { grid-template-columns: 1fr 270px; padding-top: 56px; padding-bottom: 56px; }
}

/* ── 16:9 YouTube video (grant application) ── */
.wide { margin: 0; grid-column: 1 / -1; }
.wide__play, .vid__frame--wide { aspect-ratio: 16 / 9; background: #1a1714; }
.wide figcaption { margin-top: 8px; font-size: 0.875rem; color: var(--muted); line-height: 1.4; }
.wide figcaption strong { color: var(--accent); }

.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 0.9375rem; }

/* Instagram embed: taller than 9:16 to fit Instagram's header and footer around the video */
.vid__frame--ig { aspect-ratio: 9 / 22; background: #fff; }

/* ═════════ Stage: hero + desk over a field of platform icons (assets/hero-fx.js) ═════════ */
.stage { position: relative; overflow-x: clip; }
.stage__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.stage__icons { position: sticky; top: 0; display: block; width: 100%; height: 100vh; height: 100lvh; }
.stage > section { position: relative; z-index: 1; }

/* ── Desk: three monitors. Without JS only the Premiere screen shows, centred. ── */
.desk { --mw: min(90vw, 1080px); padding-block: 8px 40px; }
.desk__pin { position: relative; display: flex; align-items: center; justify-content: center; overflow: clip; }
.desk__monitors { position: relative; width: 100%; height: calc(var(--mw) * 0.72 + 48px); }
.mon {
  position: absolute; left: 50%; top: 50%; width: var(--mw);
  transform: translate(-50%, -54%); transform-origin: 50% 50%; will-change: transform;
}
.mon--s, .mon--b { display: none; }
.mon__inner {
  position: relative; padding: calc(var(--mw) * 0.009); border-radius: calc(var(--mw) * 0.014);
  background: linear-gradient(#1b1917, #0f0e0d); border: 1px solid #3d3732;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(0, 0, 0, .4) inset;
}
/* Screen + stand tilt together (JS sets rotateY on this wrapper). */
.mon__tilt { transform-origin: 50% 50%; will-change: transform; }
.mon__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: calc(var(--mw) * 0.004); background: #111; }
.mon__stand { position: relative; height: calc(var(--mw) * 0.06); }
.mon__stand::before { /* neck */
  content: ''; position: absolute; left: 50%; top: 0; width: 9%; height: 82%; transform: translateX(-50%);
  background: linear-gradient(90deg, #191715, #34302c 50%, #191715);
}
.mon__stand::after { /* foot */
  content: ''; position: absolute; left: 50%; bottom: 0; width: 26%; height: 18%; transform: translateX(-50%);
  border-radius: 6px 6px 3px 3px; background: linear-gradient(#3a3531, #1d1b19);
}

.desk__tag {
  position: absolute; left: 50%; bottom: 0; margin: 0; white-space: nowrap;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  transform: translateX(-50%);
}
.desk__tag span { color: var(--accent); margin-right: 6px; }
.desk__tag--s, .desk__tag--b { display: none; }

/* JS on: pin the stage while it plays. */

.desk.is-live { height: calc(var(--pin-h) + var(--travel) + var(--recede, 0px)); padding: 0; --travel: 110vh; }
.desk.is-live .desk__monitors { transform-origin: 50% 40%; will-change: transform, opacity; }
.desk.is-live .desk__pin { position: sticky; top: var(--pin-top, 0px); height: var(--pin-h); }
.desk.is-live .desk__monitors { height: 100%; }
.desk.is-live .mon--s, .desk.is-live .mon--b, .desk.is-live .desk__tag--s, .desk.is-live .desk__tag--b { display: block; }
.desk.is-live .mon { transform: none; left: 0; top: 0; }
.desk.is-live .desk__tag { left: 0; bottom: auto; top: 0; transform: none; }
@media (max-width: 899px) { .desk.is-live { --travel: 150vh; } }
/* Reduced motion: no pinning, both screens shown in their end positions. */
.desk.is-static { height: auto; }
.desk.is-static .desk__pin { position: relative; top: 0; height: var(--static-h, 70vh); }

/* ═════════ Mock UI: drawn at 1280 × 800, scaled to the screen by --ui-s ═════════ */
.ui {
  position: absolute; left: 0; top: 0; width: 1280px; height: 800px;
  transform: scale(var(--ui-s, 0.5)); transform-origin: 0 0;
  font: 12px/1.35 'DM Sans', system-ui, sans-serif; letter-spacing: 0; overflow: hidden;
  user-select: none;
}
.ui p { margin: 0; }
.ui img { max-width: none; }
.ui i, .ui em, .ui b { font-style: normal; }

/* ── Premiere Pro ── */
.pr { background: #101010; color: #b6b6b6; display: grid; grid-template-rows: 34px 452px 1fr; gap: 3px; padding: 0 3px 3px; font-size: 11.5px; }
.pr__bar { display: flex; align-items: center; gap: 18px; padding: 0 10px; background: #1b1b1b; margin: 0 -3px; }
.pr__logo { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: #00005b; color: #9999ff; font-weight: 700; font-size: 12px; border: 1px solid #9999ff; }
.pr__menu { display: flex; gap: 4px; }
.pr__menu b { padding: 3px 12px; border-radius: 4px; font-weight: 500; color: #9a9a9a; }
.pr__menu b.on { background: #303030; color: #f0f0f0; }
.pr__title { flex: 1; text-align: center; color: #d0d0d0; font-weight: 500; }
.pr__dots { display: flex; gap: 6px; } .pr__dots i { width: 14px; height: 14px; border-radius: 3px; background: #2e2e2e; }
.pr__top { display: grid; grid-template-columns: 330px 1fr 300px; gap: 3px; min-height: 0; }
.pr__bot { display: grid; grid-template-columns: 238px 30px 1fr 34px; gap: 3px; min-height: 0; }
.pp { background: #1f1f1f; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; position: relative; }
.pp__tabs { display: flex; gap: 2px; padding: 0 6px; height: 28px; align-items: flex-end; flex: none; border-bottom: 1px solid #2c2c2c; }
.pp__tabs b { padding: 6px 10px; font-weight: 500; color: #8a8a8a; white-space: nowrap; }
.pp__tabs b.on { color: #e8e8e8; box-shadow: inset 0 -2px 0 #2d8ceb; }

.fx { padding: 10px 12px; display: grid; gap: 7px; }
.fx p { display: flex; align-items: center; gap: 12px; padding-left: 18px; }
.fx span { width: 92px; color: #a8a8a8; }
.fx em { color: #4ea1f3; min-width: 44px; }
.fx .kf { width: 7px; height: 7px; margin-left: auto; transform: rotate(45deg); border: 1px solid #8a8a8a; }
.fx .kf--on { background: #8a8a8a; }
.fx .fx__grp { padding-left: 0; color: #dcdcdc; font-weight: 600; margin-top: 6px; }
.fx .fx__clip { padding: 0 0 6px; color: #8a8a8a; border-bottom: 1px solid #2c2c2c; }

.pp--prog { background: #191919; }
.prog { flex: 1; display: grid; place-items: center; background: #0b0b0b; margin: 6px; border-radius: 2px; min-height: 0; }
.prog__frame { position: relative; height: 352px; aspect-ratio: 9 / 16; overflow: hidden; background: #222; }
.prog__frame img { width: 100%; height: 100%; object-fit: cover; }
.prog__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.prog__vid.is-ready { opacity: 1; }
.prog__bar { display: flex; align-items: center; gap: 14px; padding: 0 12px 8px; }
.tc { color: #3c97f0; font-variant-numeric: tabular-nums; font-weight: 500; }
.prog__fit { color: #9a9a9a; }
.prog__ctl { flex: 1; display: flex; justify-content: center; gap: 12px; }
.prog__ctl i { width: 12px; height: 12px; border-radius: 2px; background: #555; }
.prog__ctl i.play { width: 0; height: 0; border-radius: 0; background: none; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #d8d8d8; }
.prog__dur { color: #d8d8d8; font-variant-numeric: tabular-nums; }

.caps { padding: 10px 12px; display: grid; gap: 4px; }
.caps__h { color: #dcdcdc; font-weight: 600; margin-bottom: 6px !important; }
.caps p:not(.caps__h) { display: flex; gap: 12px; padding: 7px 8px; border-radius: 4px; background: #262626; color: #d4d4d4; }
.caps p span { color: #7d7d7d; font-variant-numeric: tabular-nums; }
.caps p.on { background: #233a56; box-shadow: inset 0 0 0 1px #2d8ceb; }

.bin { list-style: none; margin: 0; padding: 8px 10px; display: grid; gap: 6px; }
.bin li { display: flex; align-items: center; gap: 8px; color: #c9c9c9; white-space: nowrap; }
.bin li::before { content: ''; width: 14px; height: 10px; border-radius: 2px; flex: none; }
.bin--seq::before { background: #2fa37e; } .bin--v::before { background: #8b86d9; }
.bin--a::before { background: #3aa37c; } .bin--g::before { background: #d6799f; }

.tools { background: #1f1f1f; border-radius: 4px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 12px; }
.tools i { width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid #7a7a7a; }
.tools i.on { border-color: #2d8ceb; background: rgba(45, 140, 235, .25); }

.pp--tl { background: #1b1b1b; }
.tl { position: relative; flex: 1; display: grid; grid-template-rows: 30px 20px 1fr; min-height: 0; }
.tl__head { display: flex; align-items: center; padding-left: 10px; }
.tc--big { font-size: 17px; }
.tl__ruler { position: relative; margin-left: 116px; color: #7d7d7d; font-size: 10px; border-bottom: 1px solid #2c2c2c; background: repeating-linear-gradient(90deg, #3a3a3a 0 1px, transparent 1px 22px) bottom / 100% 5px no-repeat; }
.tl__tracks { display: grid; grid-auto-rows: 1fr; gap: 2px; padding: 4px 0; min-height: 0; }
.trk { display: grid; grid-template-columns: 112px 1fr; gap: 4px; min-height: 0; }
.trk > b { display: flex; align-items: center; padding-left: 10px; margin-left: 4px; background: #242424; border-radius: 3px; color: #c9c9c9; font-weight: 600; font-size: 11px; }
.trk--v > b, .trk--a:nth-child(5) > b { box-shadow: inset 3px 0 0 #2d8ceb; }
.lane { position: relative; background: #202020; }
.lane i {
  position: absolute; top: 1px; bottom: 1px; border-radius: 3px; padding: 2px 6px; overflow: hidden; white-space: nowrap;
  font-size: 10px; color: rgba(0, 0, 0, .78); font-weight: 600; border: 1px solid rgba(0, 0, 0, .35);
}
.trk--c i { background: #c9a6e8; }
.trk--g i { background: #d6799f; }
.trk--v2 i { background: #a9a4ec; }
.trk--v i { background: #8b86d9; }
.trk--a i, .trk--m i { background: #3aa37c; }
.trk--m i { background: #2e8a6a; }
.wave { background-image: none; }
.wave svg { position: absolute; inset: 2px 0; width: 100%; height: calc(100% - 4px); }
.tl__head-line { position: absolute; top: 30px; bottom: 0; left: 0; width: 1px; background: #2d8ceb; margin-left: 116px; pointer-events: none; }
.tl__head-line::before { content: ''; position: absolute; top: 2px; left: -6px; width: 13px; height: 13px; background: #2d8ceb; clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }

.meters { background: #1f1f1f; border-radius: 4px; display: flex; gap: 4px; justify-content: center; padding: 34px 0 10px; }
.meters i { width: 8px; background: linear-gradient(to top, #2fa84f 0 70%, #e6c53a 70% 88%, #e0483b 88%); clip-path: inset(38% 0 0 0); animation: meter 0.9s ease-in-out infinite alternate; }
.meters i + i { animation-duration: 0.7s; animation-delay: -.3s; }
@keyframes meter { 0% { clip-path: inset(46% 0 0 0); } 40% { clip-path: inset(30% 0 0 0); } 100% { clip-path: inset(40% 0 0 0); } }

/* ── Buffer ── */
.bf { background: #fff; color: #3d3d3d; display: grid; grid-template-columns: 236px 1fr; grid-template-rows: 58px 1fr; font-size: 13px; }
.bf__nav { grid-column: 1 / -1; display: flex; align-items: center; gap: 26px; padding: 0 22px; border-bottom: 1px solid #e8e8e8; }
.bf__logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: #1c1c1c; width: 190px; }
.bf__logo svg { width: 22px; height: 22px; fill: #1c1c1c; }
.bf__links { display: flex; gap: 6px; flex: 1; }
.bf__links b { padding: 7px 12px; border-radius: 6px; font-weight: 500; color: #636363; }
.bf__links b.on { background: #eef0ff; color: #2c4bff; }
.bf__new { padding: 9px 16px; border-radius: 8px; background: #2c4bff; color: #fff; font-weight: 600; }
.bf__me { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #d6b08a; color: #26221f; font-weight: 700; font-size: 12px; }

.bf__side { background: #fafafa; border-right: 1px solid #ececec; padding: 16px 12px; display: grid; align-content: start; gap: 4px; }
.bf__side p { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: #3d3d3d; font-weight: 500; }
.bf__side em { margin-left: auto; color: #8c8c8c; font-size: 12px; }
.bf__all.on { background: #eef0ff; color: #2c4bff !important; font-weight: 600 !important; }
.bf__grp { color: #8c8c8c !important; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600 !important; margin-top: 10px; padding-bottom: 2px !important; }

.av { position: relative; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 10.5px; }
.av--tp { background: #3f7d4f; } .av--ps { background: #7a4b33; }
.nb { position: absolute; right: -4px; bottom: -3px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #fff; }
.nb svg { width: 8px; height: 8px; fill: #fff; }
.nb--tiktok { background: #111; } .nb--instagram { background: #e1306c; } .nb--youtube { background: #ff0000; } .nb--facebook { background: #0866ff; }

.bf__main { padding: 20px 28px 0; min-width: 0; }
.bf__head { display: flex; align-items: center; justify-content: space-between; }
.bf__head h4 { margin: 0; font-size: 22px; font-weight: 700; color: #1c1c1c; letter-spacing: -.01em; }
.bf__view { display: flex; padding: 3px; border-radius: 8px; background: #f1f1f1; }
.bf__view b { padding: 5px 12px; border-radius: 6px; font-weight: 500; color: #636363; }
.bf__view b.on { background: #fff; color: #1c1c1c; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.bf__tabs { display: flex; gap: 24px; margin-top: 14px; border-bottom: 1px solid #e8e8e8; }
.bf__tabs b { padding: 10px 0; font-weight: 500; color: #636363; }
.bf__tabs b.on { color: #2c4bff; box-shadow: inset 0 -2px 0 #2c4bff; }
.bf__tabs em { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: #eef0ff; font-size: 11px; }
.bf__cols { display: grid; grid-template-columns: 1fr 280px; gap: 28px; }

.q { padding-top: 14px; display: grid; gap: 10px; align-content: start; }
.q__day { font-weight: 700; font-size: 15px; color: #1c1c1c; margin-top: 2px !important; }
.q__day span { font-weight: 400; color: #8c8c8c; margin-left: 6px; font-size: 13px; }
.post { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: start; }
.post__time { padding-top: 14px; font-weight: 600; color: #636363; font-size: 12.5px; }
.post__card {
  position: relative; display: grid; grid-template-columns: 1fr 58px; column-gap: 16px; row-gap: 8px;
  padding: 12px 14px; border: 1px solid #e6e6e6; border-radius: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); background: #fff;
}
.post__who { display: flex; align-items: center; gap: 10px; }
.post__who b { font-weight: 600; color: #1c1c1c; }
.post__card p { grid-column: 1; color: #3d3d3d; font-size: 13.5px; }
.post__card img { grid-column: 2; grid-row: 1 / span 3; width: 58px; height: 103px; object-fit: cover; border-radius: 6px; }
.pill { grid-column: 1; justify-self: start; padding: 3px 10px; border-radius: 999px; background: #e7f6ec; color: #237a43; font-size: 11.5px; font-weight: 600; }
.post--empty .post__card { display: block; border-style: dashed; color: #8c8c8c; box-shadow: none; font-weight: 500; }

.cal { padding-top: 16px; }
.cal__h { font-weight: 700; color: #1c1c1c; margin-bottom: 10px !important; }
.cal__h + .cal__grid { margin-bottom: 22px; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal__grid b { font-size: 11px; color: #8c8c8c; font-weight: 600; }
.cal__grid b.on { color: #2c4bff; }
.cal__grid span { height: 54px; border-radius: 8px; background: #f6f6f6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.cal__grid span.on { background: #eef0ff; box-shadow: inset 0 0 0 1.5px #2c4bff; }
.cal__grid i { width: 18px; height: 6px; border-radius: 3px; }
.d-tt { background: #111; } .d-ig { background: #e1306c; } .d-yt { background: #ff0000; } .d-fb { background: #0866ff; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.slots li { padding: 8px 12px; border: 1px solid #ececec; border-radius: 8px; color: #3d3d3d; font-weight: 500; }

/* ── Google Docs ── */
.gd { background: #f9fbfd; color: #1f1f1f; display: grid; grid-template-rows: 64px 44px 1fr; font-size: 13px; }
.gd__top { display: flex; align-items: center; gap: 12px; padding: 6px 18px 0 14px; }
.gd__logo { position: relative; flex: none; width: 30px; height: 40px; border-radius: 3px; background: #4285f4; clip-path: polygon(0 0, 70% 0, 100% 24%, 100% 100%, 0 100%); }
.gd__logo::after { content: ''; position: absolute; right: 0; top: 0; width: 30%; height: 24%; background: #a1c2fa; }
.gd__logo i { position: absolute; left: 22%; right: 22%; top: 44%; height: 3px; background: #fff; box-shadow: 0 6px 0 #fff, 0 12px 0 #fff; }
.gd__name { flex: 1; min-width: 0; }
.gd__title { font-size: 18px; color: #1f1f1f; line-height: 1.3; }
.gd__star { color: #5f6368; font-size: 16px; margin-left: 6px; }
.gd__menu { display: flex; gap: 2px; margin-top: 1px !important; }
.gd__menu b { padding: 2px 7px; border-radius: 4px; font-weight: 400; font-size: 14px; color: #1f1f1f; }
.gd__chat { width: 22px; height: 18px; border: 2px solid #444746; border-radius: 4px; }
.gd__share { padding: 10px 22px; border-radius: 999px; background: #c2e7ff; color: #001d35; font-weight: 600; font-size: 14px; }
.gd__me { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #d6b08a; color: #26221f; font-weight: 700; font-size: 12px; }

.gd__tools { display: flex; align-items: center; gap: 10px; margin: 4px 14px 6px; padding: 0 16px; border-radius: 999px; background: #edf2fa; color: #444746; }
.gd__tools i { width: 16px; height: 16px; border-radius: 3px; background: #c4c7c5; }
.gd__sep { width: 1px; height: 20px; background: #c7c7c7; }
.gd__dd { font-weight: 500; font-size: 13px; padding-right: 14px; position: relative; }
.gd__dd::after { content: ''; position: absolute; right: 0; top: 7px; border: 4px solid transparent; border-top-color: #444746; }
.gd__num { padding: 1px 8px; border: 1px solid #747775; border-radius: 4px; font-weight: 500; }
.gd__fmt { width: 18px; text-align: center; font-weight: 700; font-size: 15px; color: #444746; }
.gd__fmt--i { font-style: italic !important; font-weight: 500; font-family: Georgia, serif; }
.gd__fmt--u { text-decoration: underline; font-weight: 500; }
.gd__fmt--a { font-weight: 500; box-shadow: inset 0 -3px 0 #1f1f1f; }

.gd__body { display: grid; grid-template-columns: 196px 1fr 236px; min-height: 0; overflow: hidden; }
.gd__side { padding: 22px 0 0 24px; display: grid; align-content: start; gap: 2px; }
.gd__side p { padding: 6px 12px; border-radius: 999px 0 0 999px; color: #444746; font-size: 13px; }
.gd__side p.on { background: #c2e7ff; color: #001d35; font-weight: 600; }
.gd__side .gd__side-h { padding-left: 0; font-weight: 600; color: #1f1f1f; font-size: 14px; margin-bottom: 6px !important; }
.gd__desk { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.gd__ruler {
  width: 612px; height: 18px; flex: none; margin-top: 2px; border-bottom: 1px solid #dadce0;
  background: repeating-linear-gradient(90deg, #9aa0a6 0 1px, transparent 1px 12px) left bottom / 100% 5px no-repeat,
              repeating-linear-gradient(90deg, #5f6368 0 1px, transparent 1px 48px) left bottom / 100% 9px no-repeat;
}
.gd__page {
  width: 612px; flex: 1; margin-top: 8px; padding: 54px 64px 0; background: #fff;
  box-shadow: 0 1px 3px rgba(60, 64, 67, .15), 0 1px 1px rgba(60, 64, 67, .1);
  font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.5; color: #202124;
}
.gd__page > p { margin: 0 0 6px; }
.gd__h1 { font-size: 30px; line-height: 1.2; color: #202124; letter-spacing: -.005em; }
.gd__sub { font-size: 14px; color: #5f6368; margin-bottom: 14px !important; }
.gd__h2 { font-size: 17px; color: #202124; margin-top: 14px !important; margin-bottom: 4px !important; }
.gd__page mark { background: #fde293; color: inherit; border-bottom: 2px solid #fbbc04; }
.gd__ul { margin: 0; padding-left: 22px; }
.gd__ul li { margin: 1px 0; }
.gd__table { display: grid; grid-template-columns: 1.4fr 1fr 1fr; border-top: 1px solid #c7c7c7; border-left: 1px solid #c7c7c7; margin-top: 4px; }
.gd__table > * { padding: 5px 8px; border-right: 1px solid #c7c7c7; border-bottom: 1px solid #c7c7c7; }
.gd__table b { background: #f1f3f4; font-weight: 700; }
.gd__chip { display: inline-block; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; font-family: 'DM Sans', system-ui, sans-serif; }
.gd__chip--edit { background: #d3e3fd; color: #0842a0; }
.gd__chip--shot { background: #fde293; color: #594300; }
.gd__check { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.gd__check li { display: flex; align-items: center; gap: 10px; }
.gd__check li::before { content: ''; flex: none; width: 12px; height: 12px; border: 1.5px solid #5f6368; border-radius: 2px; }
.gd__check li.on { color: #80868b; text-decoration: line-through; }
.gd__check li.on::before { border-color: #1a73e8; background: #1a73e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") center / 100% no-repeat; }

.gd__notes { padding: 232px 18px 0 14px; }
.gd__note { padding: 14px; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(60, 64, 67, .3), 0 4px 8px 3px rgba(60, 64, 67, .15); display: grid; gap: 8px; }
.gd__who { display: flex; align-items: center; gap: 10px; }
.gd__who b { font-weight: 600; font-size: 13px; color: #1f1f1f; }
.gd__av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #d6b08a; color: #26221f; font-weight: 700; font-size: 10.5px; }
.gd__note > p:nth-child(2) { color: #1f1f1f; font-size: 13.5px; }
.gd__reply { padding: 8px 12px; border: 1px solid #747775; border-radius: 999px; color: #5f6368; font-size: 12px; }

/* ── Viewer: full writing samples (e.g. the Klaviyo newsletter) in an in-page dialog ── */
.viewer {
  width: min(700px, calc(100vw - 24px)); height: min(92vh, 1200px); max-width: none; max-height: none;
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink);
  overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
}
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: rgba(20, 17, 15, .78); backdrop-filter: blur(3px); }
.viewer__bar { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-bottom: 1px solid var(--line); flex: none; }
.viewer__title { flex: 1; min-width: 0; font-weight: 600; font-size: 0.9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer__open { font-size: 0.875rem; white-space: nowrap; padding: 8px 4px; }
.viewer__close {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 1.75rem; line-height: 1; cursor: pointer;
}
.viewer__close:hover { background: var(--surface-2); }
.viewer__frame { flex: 1; width: 100%; border: 0; background: #fff; }
html:has(.viewer[open]) { overflow: hidden; }
@media (max-width: 639px) {
  .viewer { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .viewer__open { display: none; }
}

.tl__ruler span { position: absolute; top: 2px; transform: translateX(-50%); }
.tl__ruler span:first-child { transform: none; }
.trk--c i.on { box-shadow: inset 0 0 0 2px #fff; }

/* ═════════ Below the desk (motion in assets/page-fx.js) ═════════ */
/* Reveal on scroll. Only when JS is on and motion is allowed (html.motion), so nothing is ever hidden otherwise.
   Parallax and drift use the separate `translate` property, so they stack with this transform. */
.motion .rv {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), transform .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s);
}
.motion .rv.is-in { opacity: 1; transform: none; }

/* ── Stage: the icon field fades out under the results board ── */
.stage__bg {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 520px), transparent calc(100% - 80px));
          mask-image: linear-gradient(to bottom, #000 calc(100% - 520px), transparent calc(100% - 80px));
}

/* ── Results board (.proof): rises over the desk as its screens recede ── */
.stage > .proof { z-index: 2; }
.desk.is-live:not(.is-static) + .proof { margin-top: calc(var(--recede, 0px) * -1); }
.proof {
  background: linear-gradient(to bottom, rgba(38, 34, 31, 0), rgba(38, 34, 31, .8) 240px, rgba(38, 34, 31, .92));
  padding-bottom: 72px;
}
.proof__in { padding-top: 150px; text-align: center; }
.proof__kicker { margin-bottom: 4px; }
.proof__grid { display: grid; margin: 0; }
.proof__grid > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; align-items: center; }
.proof dd { margin: 0; font-weight: 700; color: var(--accent); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.proof dt { margin-top: 8px; font-size: 0.9375rem; color: var(--muted); line-height: 1.35; }
.proof__lead dd {
  font-size: clamp(5.5rem, 21vw, 13.5rem); line-height: .86; letter-spacing: -0.05em;
  transform: scale(calc(.82 + .18 * var(--pr, 1))); transform-origin: 50% 80%;
}
.proof__lead dt { margin-top: 14px; font-size: clamp(1.0625rem, 2vw, 1.375rem); color: var(--ink); }
.proof__grid > div:not(.proof__lead) { padding: 28px 8px; border-top: 1px solid var(--line); }
.proof__grid > .proof__lead { padding-bottom: 40px; }
.proof__grid > div:not(.proof__lead) dd { font-size: clamp(2.5rem, 11vw, 3.75rem); }
.proof__bench { display: block; white-space: nowrap; }
.proof__verify {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px;
  margin-top: 28px; font-size: 0.875rem; color: var(--muted);
}

/* $0.36 against the $0.50–1.00 benchmark, on a $0–1.00 scale */
.bench { order: -1; position: relative; width: min(240px, 100%); height: 46px; margin-top: 16px; --cpc: .36; } /* order: shows under the label in the reversed column */
.bench::before { content: ''; position: absolute; left: 0; right: 0; top: 18px; height: 6px; border-radius: 3px; background: var(--line); }
.bench__band { position: absolute; left: 50%; right: 0; top: 18px; height: 6px; border-radius: 0 3px 3px 0; background: #6f655b; }
.bench__band em { position: absolute; right: 0; bottom: 10px; font-style: normal; font-size: 0.6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bench__mark {
  position: absolute; top: 13px; left: calc(var(--cpc) * 100%); width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(214, 176, 138, .22);
}
.bench__ticks { position: absolute; left: 0; right: 0; top: 30px; font-size: 0.75rem; color: var(--muted); }
.bench__ticks i { position: absolute; font-style: normal; transform: translateX(-50%); }
.bench__ticks i:nth-child(1) { left: 0; transform: none; }
.bench__ticks i:nth-child(2) { left: 50%; }
.bench__ticks i:nth-child(3) { right: 0; transform: none; }

/* ── Case studies: open chapters ── */
.work { padding-top: 104px; }
.work__head h2 { font-size: clamp(2.25rem, 5.5vw, 4rem); letter-spacing: -0.025em; line-height: 1.05; max-width: 16ch; }

.chapters {
  position: sticky; top: 0; z-index: 15; margin-top: 40px;
  background: rgba(38, 34, 31, .92); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
  border-block: 1px solid var(--line);
}
.chapters__in { position: relative; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.chapters__in::-webkit-scrollbar { display: none; }
.chapters a {
  flex: none; padding: 13px 10px; font-size: 0.875rem; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap;
}
.chapters a:first-child { margin-left: -10px; }
.chapters a span { color: var(--accent); margin-right: 6px; font-variant-numeric: tabular-nums; }
.chapters a:hover, .chapters a[aria-current] { color: var(--ink); }
.chapters__bar {
  position: absolute; bottom: -1px; left: 0; width: 0; height: 2px; opacity: 0; pointer-events: none;
  background: rgba(214, 176, 138, .25); transition: left .35s, width .35s, opacity .2s;
}
.chapters__bar::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--cp, 0)); transform-origin: 0 50%; }

.ch { padding-top: 88px; scroll-margin-top: calc(var(--head-h, 0px) + 48px); }
.ch:first-of-type { padding-top: 64px; }
.ch__meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; font-size: 0.9375rem; color: var(--muted); }
.ch__num { font-weight: 700; color: var(--accent); letter-spacing: .04em; font-variant-numeric: tabular-nums; padding-right: 14px; border-right: 1px solid var(--line); }
.ch__title { margin-top: 14px; font-size: clamp(1.75rem, 4.2vw, 3rem); letter-spacing: -0.02em; max-width: 26ch; }
.ch__big { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: baseline; align-items: last baseline; gap: 4px 22px; } /* the sentence's last line sits on the big figure's baseline */
.ch__big b { font-size: clamp(3.25rem, 10vw, 7rem); font-weight: 700; color: var(--accent); line-height: .95; letter-spacing: -0.045em; white-space: nowrap; }
.ch__big span { font-size: clamp(1.0625rem, 1.8vw, 1.375rem); line-height: 1.35; max-width: 28ch; }
.ch__chips { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ch__chips li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(47, 42, 38, .7); font-size: 0.875rem; color: var(--muted); line-height: 1.4; }
.ch__chips b { color: var(--accent); }

.ch__media { margin-top: 48px; }
/* Tennis PEI: three vertical videos. Phones: a swipe row; wider: three big columns. */
.ch__media--reels {
  display: flex; align-items: start; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  padding-bottom: 6px; scroll-padding-inline: var(--gutter);
}
.ch__media--reels > .vid { flex: 0 0 62%; margin-top: 0; scroll-snap-align: start; } /* all three share one top line */
/* PEI Symphony: the 16:9 film with the two reels beside it, all the same height (3.16 : 1 : 1). */
.ch__media--film { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 14px; align-items: start; }
.ch__media--film .wide { grid-column: 1 / -1; }
/* Maritime Tennis: the desktop page in a browser frame, the phone version overlapping it. */
.ch__media--web { position: relative; padding-bottom: 24px; }
.shot { margin: 0; }
.shot figcaption { margin-top: 8px; font-size: 0.875rem; color: var(--muted); }
.shot--desktop { width: 88%; }
.shot--desktop img { border-radius: 0 0 10px 10px; border: 1px solid var(--line); border-top: 0; }
.browser {
  display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 10px 10px 0 0;
  background: #3a342f; border: 1px solid var(--line); border-bottom: 0;
}
.browser i { width: 8px; height: 8px; border-radius: 50%; background: #5c534a; }
.browser span { margin-left: 10px; padding: 1px 12px; border-radius: 999px; background: #2a2521; font-size: 0.6875rem; color: var(--muted); }
.shot--phone { position: absolute; right: var(--gutter); bottom: 0; width: 30%; }
.shot--phone img { border-radius: 18px; border: 5px solid #161412; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .8); }
.shot--phone figcaption { text-align: right; }

.ch__cols {
  display: grid; gap: 28px; margin-top: 52px; padding-top: 28px;
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - var(--gutter) * 2) 1px no-repeat; /* rule within the text column */
}
.ch__cols h4 { margin: 0 0 8px; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.ch__cols p { max-width: 40rem; }
.results { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }
.results b { font-weight: 700; }

/* Case-study details (Goal / What I did / Results): collapsed by default behind one pill button. */
.ch__more { margin-top: 44px; }
.ch__toggle {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 20px;
  border: 1.5px solid var(--accent); border-radius: 999px; color: var(--accent);
  font-weight: 600; font-size: 0.9375rem; cursor: pointer; user-select: none; list-style: none;
  transition: background-color .15s, color .15s;
}
.ch__toggle::-webkit-details-marker { display: none; }
.ch__toggle:hover { background: var(--surface-2); color: var(--accent-dark); }
.ch__toggle i {
  width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .25s;
}
.ch__more[open] .ch__toggle i { transform: translateY(2px) rotate(-135deg); }
.ch__toggle-close, .ch__more[open] .ch__toggle-open { display: none; }
.ch__more[open] .ch__toggle-close { display: inline; }
.ch__more .ch__cols { margin-top: 28px; background-position: 0 0; background-size: 100% 1px; }
@media (prefers-reduced-motion: no-preference) {
  .ch__more { interpolate-size: allow-keywords; }
  .ch__more::details-content { block-size: 0; overflow: clip; transition: block-size .4s cubic-bezier(.2, .7, .2, 1), content-visibility .4s allow-discrete; }
  .ch__more[open]::details-content { block-size: auto; }
}

/* Contact prompt after the case studies */
.work__cta {
  margin-top: 96px; padding: 32px 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface);
  display: grid; gap: 20px; justify-items: start;
}
.work__cta-text { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.work__cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 960px) {
  .work__cta { grid-template-columns: 1fr auto; align-items: center; padding: 36px 40px; }
}

/* ── Creator work: a full-width band ── */
.reel { margin-top: 128px; padding-block: 88px 96px; background: var(--surface); border-block: 1px solid var(--line); overflow: hidden; }
.reel__head { display: grid; gap: 14px; }
.reel__head h2 { font-size: clamp(2.25rem, 5.5vw, 4rem); letter-spacing: -0.025em; line-height: 1.05; }
/* One line at every width: the size follows the screen (the heading is ~10.6em wide). */
#creators-h { white-space: nowrap; font-size: min(4rem, calc((100vw - var(--gutter) * 2) / 11)); }
.embed { display: block; width: 100%; height: 560px; margin-top: 40px; border: 0; background: transparent; }
/* First guess at the embed's height before it reports its own (so little shifts when it does):
   phones stack a 16:9 video and a 9:16 one at 62% width; wider screens put them side by side (3.16fr 1fr). */
.embed-wrap { container-type: inline-size; }
.embed { height: calc(166.5cqi + 280px); }
@container (min-width: 640px) { .embed { height: calc((100cqi - 28px) * 0.4273 + 103px); } } /* the embed switches layout at its own 640px */
/* Creator work: one long-form video beside one short, both the same height on wider screens */
.duo { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 40px; align-items: start; }
.duo > .vid:not(.duo__wide) { width: 62%; }
.duo .vid__views { margin-top: 14px; font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -0.025em; line-height: 1.05; }
.vid__credits { margin-top: 6px; font-size: 0.875rem; color: var(--ink); line-height: 1.4; }

/* ── Email marketing: big rates beside an inbox frame the email scrolls through ── */
.mailer { padding-block: 120px 128px; --view-h: 460px; }
.mailer__in { display: grid; gap: 48px; align-items: center; }
.mailer h2 { font-size: clamp(2.25rem, 5.5vw, 4rem); letter-spacing: -0.025em; line-height: 1.05; max-width: 14ch; }
.mailer__type { margin-top: 36px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.mailer h3 { margin-top: 6px; font-size: 1.375rem; }
.mailer__lede { margin-top: 6px; color: var(--muted); }
/* Three stats on one row. The copy column is a size container, so nothing inside it can widen the column
   (wider numbers used to squeeze the email frame, which made the email jump while they counted up).
   The numbers (~5.1em wide together) size themselves to the column; a long label breaks onto two lines. */
.mailer__copy { container-type: inline-size; }
.mailer__stats { display: flex; gap: clamp(20px, 5vw, 44px); gap: clamp(20px, 6cqi, 44px); margin: 28px 0 32px; }
.mailer__stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; } /* numbers stay top-aligned when a label wraps */
.mailer__stats dd { margin: 0; white-space: nowrap; font-size: min(clamp(3.5rem, 9vw, 6rem), calc((100vw - var(--gutter) * 2 - 44px) / 5.4)); font-size: min(6rem, calc((100cqi - 2 * clamp(20px, 6cqi, 44px)) / 5.3)); font-weight: 700; color: var(--accent); line-height: .95; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.mailer__stats dt { margin-top: 8px; font-size: 0.9375rem; color: var(--muted); }
.inbox {
  display: block; position: relative; overflow: hidden; border-radius: 16px; background: #fff; text-decoration: none;
  border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .75); transition: box-shadow .3s;
}
.inbox:hover { box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .85), 0 0 0 1px var(--accent); }
.inbox__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; background: #efe9e2; border-bottom: 1px solid #ddd4ca; }
.inbox__bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfc5ba; }
.inbox__view { display: block; height: var(--view-h); overflow: hidden; }
.inbox__view picture { display: block; }
.inbox__view img { width: 100%; will-change: transform; }

/* ── Contact ── */
.contact h2 { font-size: clamp(2.5rem, 9vw, 4.5rem); font-weight: 700; letter-spacing: -0.03em; }

@media (min-width: 640px) {
  .proof__grid { grid-template-columns: repeat(3, 1fr); }
  .proof__lead { grid-column: 1 / -1; }
  .proof__grid > div:not(.proof__lead) + div:not(.proof__lead) { border-left: 1px solid var(--line); }
  .chapters a { padding-inline: 14px; font-size: 0.9375rem; }
  .chapters a:first-child { margin-left: -14px; }
  .ch__media--reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; padding-bottom: 0; }
  .ch__media--film { grid-template-columns: 1fr 1fr; }
  .duo { grid-template-columns: 3.16fr 1fr; gap: 28px; }
  .duo > .vid:not(.duo__wide) { width: auto; }
  .mailer { --view-h: min(66vh, 620px); }
}

@media (min-width: 960px) {
  .chapters { top: var(--head-h, 0px); }
  .ch { padding-top: 128px; }
  .ch__media--reels { grid-template-columns: repeat(3, minmax(0, 330px)); gap: 40px; }
  .ch__media--film { grid-template-columns: 3.16fr 1fr 1fr; gap: 20px; }
  .ch__media--film .wide { grid-column: auto; }
  .shot--desktop { width: 80%; }
  .shot--phone { width: 20%; right: calc(var(--gutter) + 2%); }
  .ch__cols { grid-template-columns: 0.8fr 1.25fr 1.25fr; gap: 48px; }
  .reel__head { grid-template-columns: 1fr auto; align-items: end; }
  .mailer__in { grid-template-columns: 1fr minmax(0, 440px); gap: 96px; }
  .contact__in { grid-template-columns: 1fr auto; align-items: center; column-gap: 40px; }
  .contact h2 { grid-row: 1 / span 2; }
  .contact__in > .btn { grid-column: 2; grid-row: 1; margin-top: 0; }
  .contact__where { grid-column: 2; grid-row: 2; justify-self: end; }
}

/* Reduced motion: final states, nothing pinned or drifting (see also the global rule above). */
@media (prefers-reduced-motion: reduce) {
  .proof__lead dd { transform: none; }
}
