/* Brandon Antony One-Sheet (test build, /pluto)
   Translated from the Claude Design v2 mockup. Dark theme, orange accent, carousel media.
   Tokens live on :root so the look can be changed in one place. */

:root {
  --bg: #0c0c0d;
  --ink: #ece7dc;
  --mute: #a09a8e;
  --line: rgba(236, 231, 220, .16);
  --panel: #18181a;
  --accent: #0b4f33;         /* British racing green (was the mockup's orange #ff4f18) */
  --accent-lift: #1f7a50;    /* brighter green for thin marks on the dark background */
  --on-accent: #ece7dc;      /* text on the green: the ink colour, not black */
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --display: Archivo, "Archivo Narrow", Impact, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "DM Serif Display", Georgia, serif;
  --ga: 0deg;                 /* pill gradient angle: each .pill gets its own value from JS */
  --gp: 50%;
  --wip-h: 0px;                /* height of the temporary .wip marquee; set by .has-wip */                  /* pill sheen position: each .pill gets its own value from JS */
}
/* Paper theme from the mockup, kept for experiments:
:root { --bg:#e9e4d8; --ink:#0c0c0d; --mute:#575349; --line:rgba(12,12,13,.2); --panel:#d9d3c4; }
*/

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Page-wide: no double-tap zoom anywhere (rapid taps beside a button would otherwise zoom the page).
   Pinch zoom and scrolling are unaffected. */
html, body { touch-action: manipulation; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.media, .work-toggle, .menu-open, .menu-close { -webkit-user-select: none; user-select: none; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-lift); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.display { font-family: var(--display); font-stretch: 62%; font-weight: 900; text-transform: uppercase; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 2000;
  padding: 10px 14px; background: var(--accent); color: var(--on-accent);
  font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.skip:focus { top: 12px; }

/* Signature logo (same SVGs the homepage uses) */
.logo { display: block; width: 150px; height: auto; }
.logo--foot { width: 64px; margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Pills (award / record tags). Three-layer background: moving sheen, solid fill, conic border. */
.pill {
  display: inline-flex; align-items: center;
  padding: 8px 13px; border: 2px solid transparent; border-radius: 10px;
  color: var(--ink);
  background:
    linear-gradient(110deg, transparent 20%, color-mix(in srgb, var(--accent) 45%, transparent) 50%, transparent 80%) padding-box,
    linear-gradient(var(--bg), var(--bg)) padding-box,
    conic-gradient(from var(--ga), var(--accent), #ffd60a, #3ddc84, #6ea8ff, var(--accent)) border-box;
  background-size: 220% 100%, auto, auto;
  background-position: var(--gp) 0, 0 0, 0 0;
  font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* Section headings */
.sec-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 12px 32px; margin-bottom: clamp(24px, 3vw, 40px);
}
.sec-title {
  margin: 0; font-family: var(--display); font-stretch: 62%; font-weight: 900;
  font-size: clamp(44px, 7vw, 104px); line-height: .86; text-transform: uppercase;
}

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 1000;
  width: 100vw; height: 100dvh;
  background: var(--bg); color: var(--ink);
  display: flex; flex-direction: column;
  padding: 0 var(--gutter) env(safe-area-inset-bottom);
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu-bar { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; flex: none; }
/* Same 48px box as the hamburger, with the X hugging the right edge so both line up exactly */
.menu-close {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative;
  width: 48px; height: 48px; display: block;
}
.menu-close span { position: absolute; right: 0; top: 50%; width: 26px; height: 2px; margin-top: -1px; background: var(--ink); transform: rotate(45deg); }
.menu-close span + span { transform: rotate(-45deg); }
.menu-nav {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 12px 0 max(24px, env(safe-area-inset-bottom));
}
.menu-nav a {
  display: block; padding: .06em 0; border-top: 1px solid var(--line);
  font-family: var(--display); font-stretch: 62%; font-weight: 900;
  font-size: clamp(56px, min(15vw, 17vh), 190px); line-height: .9; letter-spacing: -.01em;
  text-transform: uppercase; transition: padding .25s;
}
body.menu-is-open { overflow: hidden; }

/* ---------- Work-in-progress marquee (temporary; remove with the .wip block in the HTML) ---------- */
.has-wip { --wip-h: 34px; }
.wip {
  position: relative; overflow: hidden; height: var(--wip-h);
  display: flex; align-items: center;
  background: var(--accent); color: var(--on-accent);
  font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.wip-static { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wip-track { display: flex; width: max-content; animation: wip-scroll 48s linear infinite; }
.wip-group { display: flex; flex: none; }
.wip-item { display: flex; align-items: center; flex: none; padding-right: 48px; white-space: nowrap; }
.wip-item::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 48px; border-radius: 50%; background: var(--accent-lift); }
@keyframes wip-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .wip { -webkit-mask-image: none; mask-image: none; justify-content: center; padding: 0 var(--gutter); }
  .wip-track { display: none; }
  .wip-static { position: static; width: auto; height: auto; margin: 0; clip: auto; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- Hero: full-height video ---------- */
.hero {
  position: relative; overflow: hidden;
  /* 100vh is the large viewport on phones, so the hero also runs under Safari's floating bar
     and nothing else shows on the first screen. */
  height: calc(100vh - var(--wip-h)); min-height: 480px;
  background: #000; border-bottom: 1px solid var(--line);
}
.bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none; background: #000;
}
.video-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .2); pointer-events: none; }
.hero-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 22px 0; }
.menu-open {
  all: unset; box-sizing: border-box; cursor: pointer;
  width: 48px; height: 48px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
  gap: 6px; transition: gap .2s;
}
.menu-open span { width: 26px; height: 2px; background: #fff; }
.hero-content {
  position: absolute; left: 0; right: 0; z-index: 2;
  bottom: clamp(32px, 8vh, 88px);
}
.hero-lead {
  margin: 0; max-width: 24em; color: #fff;
  font-size: clamp(22px, 1.9vw, 30px); line-height: 1.25; font-weight: 400; letter-spacing: -.01em;
  text-shadow: 0 1px 24px rgba(0, 0, 0, .35);
}

/* ---------- Roles: ticker and blurb under the hero ---------- */
.roles { border-bottom: 1px solid var(--line); }
.roles .wrap { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(40px, 6vw, 80px); }

/* Split-flap role ticker */
.flap-wrap { container-type: inline-size; overflow-x: auto; scrollbar-width: none; }
.flap-wrap::-webkit-scrollbar { display: none; }
.flap {
  display: flex; flex-direction: column; gap: .07em;
  font-family: var(--display); font-stretch: 62%; font-weight: 800;
  font-size: clamp(11px, 4.3cqw, 64px); line-height: 1;
  min-height: 1.5em;
}
.flap-row { display: flex; gap: .07em; }
.flap-cell {
  position: relative; flex: 1 1 0; min-width: 0; height: 1.5em; /* cells share the full content width */
  display: flex; align-items: center; justify-content: center;
  background: var(--panel); color: var(--ink); border-radius: 2px; overflow: hidden;
}
.flap-cell::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--bg); opacity: .9; }

.roles-body {
  margin: clamp(24px, 3vw, 48px) 0 0; max-width: none; /* same width as the ticker above */
  font-size: clamp(16px, 1.5vw, 22px); line-height: 1.5; color: var(--mute);
}

/* ---------- The record (inverted) ---------- */
.record { background: var(--ink); color: var(--bg); }
.record .wrap { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(56px, 8vw, 112px); }
.record-hero {
  background: var(--accent); color: var(--on-accent);
  padding: clamp(20px, 3vw, 40px);
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px clamp(24px, 5vw, 72px);
}
.record-big {
  font-family: var(--display); font-stretch: 62%; font-weight: 900;
  font-size: clamp(120px, 24vw, 320px); line-height: .76; white-space: nowrap;
}
.record-hero-copy { flex: 1 1 260px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.record-hero-title { font-size: clamp(24px, 2.8vw, 40px); font-weight: 600; line-height: 1.05; letter-spacing: -.01em; }
.record-hero-body { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; }

.stat-rows { border-top: 1px solid color-mix(in srgb, var(--bg) 26%, transparent); margin-top: clamp(20px, 3vw, 40px); }
.stat-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px clamp(20px, 4vw, 56px);
  padding: clamp(16px, 2vw, 26px) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--bg) 26%, transparent);
}
.stat-row:last-child { border-bottom: 0; }
.stat-num {
  flex: 0 0 clamp(200px, 31vw, 440px);
  font-family: var(--display); font-stretch: 62%; font-weight: 900;
  font-size: clamp(64px, 10vw, 150px); line-height: .84; white-space: nowrap;
}
.stat-row--word .stat-num { text-transform: uppercase; }
.stat-copy { flex: 1 1 280px; display: flex; flex-direction: column; gap: 8px; }
.stat-title { font-size: clamp(20px, 2.2vw, 30px); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.stat-body { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; }

/* ---------- Selected work ---------- */
.work { padding-top: clamp(72px, 10vw, 140px); }
.work-list { border-top: 1px solid var(--line); }
.work-item { border-bottom: 1px solid var(--line); }
.work-h { margin: 0; font: inherit; }
.work-toggle {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(12px, 2.5vw, 32px);
  align-items: center; padding: 20px 0; transition: padding .25s;
}
.work-toggle:focus-visible { outline: 2px solid var(--accent-lift); outline-offset: 3px; }
.work-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; min-width: 0; }
.work-title {
  font-family: var(--display); font-stretch: 62%; font-weight: 800;
  font-size: clamp(30px, 5vw, 64px); line-height: .92; text-transform: uppercase;
}
.work-meta { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.work-sign { display: flex; align-items: center; justify-content: flex-end; width: 26px; height: 26px; transition: transform .3s ease; }
.work-sign svg { display: block; }
.work-item.is-open .work-sign { transform: rotate(180deg); }

.work-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s ease; }
.work-panel[hidden] { display: none; }
.work-panel.is-closing, .work-panel.is-opening-start { grid-template-rows: 0fr; }
.work-panel-inner { overflow: hidden; min-height: 0; }
.work-body { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 36px); padding: 6px 0 44px; }

/* Media carousel */
.media { display: flex; flex-direction: column; gap: 12px; }
.media-strip {
  position: relative;
  display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.media-strip::-webkit-scrollbar { display: none; }
.media-strip.is-sliding { scroll-snap-type: none; }
.media-tile {
  flex: 0 0 min(84%, 780px); aspect-ratio: 16 / 10; scroll-snap-align: start;
  background: var(--panel); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.media-tile > img, .media-tile > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-ph {
  font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute);
  padding: 0 16px; text-align: center;
}
.media-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.media-btn {
  all: unset; box-sizing: border-box; cursor: pointer;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--ink); border-radius: 10px; color: var(--ink);
  font: 400 18px/1 var(--mono); transition: background .2s, color .2s;
}
.media-btn:focus-visible { outline: 2px solid var(--accent-lift); outline-offset: 3px; }

.work-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px clamp(24px, 5vw, 80px); align-items: start;
}
.work-desc { margin: 0; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; }
.tiles { display: flex; flex-wrap: wrap; gap: 20px clamp(16px, 3vw, 44px); }
.tile { flex: 1 1 0; min-width: 0; container-type: inline-size; display: flex; flex-direction: column; gap: 8px; }
.tile-num {
  font-family: var(--display); font-stretch: 62%; font-weight: 800;
  font-size: clamp(34px, min(30cqw, 150cqw / var(--n, 4)), 112px); line-height: .88;
}
.tile-label { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }

/* Outbound link under a row's figures: wrap .tiles and the link in .work-side so both sit in the figures column */
.work-side { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; min-width: 0; }
.work-side .tiles { width: 100%; }
.work-link {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px;
  border: 1.5px solid var(--ink); border-radius: 10px; color: var(--ink); text-decoration: none;
  font: 500 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  transition: background .2s, color .2s;
}
.work-link svg { width: 14px; height: 14px; flex: none; }
.work-link:focus-visible { outline: 2px solid var(--accent-lift); outline-offset: 3px; }
@media (hover: hover) { .work-link:hover { background: var(--ink); color: var(--bg); } }
@media (max-width: 480px) { .work-link { width: 100%; justify-content: center; } }

/* ---------- Timeline ---------- */
.timeline { padding-top: clamp(72px, 10vw, 140px); padding-bottom: clamp(72px, 10vw, 140px); }
.tl-axis, .tl-row {
  display: grid; grid-template-columns: minmax(118px, 230px) minmax(0, 1fr); gap: 16px; align-items: center;
}
.tl-axis { padding-bottom: 8px; }
.tl-years { position: relative; height: 16px; font: 500 12px/1 var(--mono); color: var(--mute); }
.tl-years span { position: absolute; top: 0; }
.tl-rows { border-bottom: 1px solid var(--line); }
.tl-row { padding: 10px 0; border-top: 1px solid var(--line); }
.tl-label { display: flex; flex-direction: column; gap: 3px; }
.tl-name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.tl-role { font: 400 12px/1.35 var(--mono); color: var(--mute); }
.tl-track {
  position: relative; height: 16px;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 19.048%);
}
.tl-bar { position: absolute; top: 0; bottom: 0; background: var(--ink); transform-origin: left center; }
.tl-rows.will-animate .tl-bar { transform: scaleX(0); transition: transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 110ms); }
.tl-rows.will-animate.is-in .tl-bar { transform: scaleX(1); }
.tl-bar--now { background: var(--accent-lift); }
.tl-legend { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--mute); }
.tl-swatch { width: 18px; height: 8px; background: var(--accent-lift); }

/* ---------- Contact ---------- */
.contact { background: var(--accent); color: var(--on-accent); }
.contact .wrap { container-type: inline-size; padding-top: clamp(56px, 8vw, 112px); padding-bottom: max(28px, env(safe-area-inset-bottom)); }
/* The quote is sized to the footer width so it stays on one line, and only wraps once the floor size is reached */
.contact-quote { width: 100%; }
.contact-title {
  margin: 0; font-family: var(--display); font-stretch: 62%; font-weight: 900;
  font-size: clamp(44px, 13.4cqw, 260px); line-height: .82; letter-spacing: -.01em;
  text-transform: uppercase; text-wrap: balance;
}
.contact-cite { margin: 18px 0 0; text-align: right; opacity: .85; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: clamp(32px, 5vw, 64px); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 1 340px; height: 52px; padding: 0 26px; white-space: nowrap;
  border: 2px solid var(--on-accent); border-radius: 10px;
  font: 500 14px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--ghost { color: var(--on-accent); }
.btn:focus-visible { outline: 2px solid var(--on-accent); outline-offset: 3px; }
.contact-foot {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 16px; margin-top: clamp(32px, 5vw, 64px); padding-top: 24px; border-top: 2px solid var(--on-accent);
}
/* Copyright line: sized to the footer width so it stays on one line on every device (59 mono characters at .64em each) */
.contact-copy { margin: 0; white-space: nowrap; font-size: clamp(9px, 2.55cqw, 12px); letter-spacing: .04em; }
@media (max-width: 345px) { .contact-copy { white-space: normal; } }

/* Follow and Visit links, carried over from the previous homepage */
.contact-links {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 36px clamp(24px, 5vw, 80px); margin-top: clamp(32px, 5vw, 64px);
}
.links-label { margin: 0 0 12px; }
.social-links { display: flex; flex-wrap: wrap; gap: 2px; margin-left: -10px; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; font-size: 15px; color: var(--on-accent); border-radius: 10px;
}
.visit-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.3; }
.visit-links a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .2s; }

/* Desktop footer: Visit right-justified beside Follow, the contact button and its form span both columns */
@media (min-width: 1024px) {
  .contact-links { grid-template-columns: 1fr auto; }
  .visit { text-align: right; }
  .contact-actions .btn { flex: 1 1 100%; height: 64px; font-size: 15px; }
  /* Contact form steps run gutter to gutter: three pills per row and three fields per row */
  .contact .cf-form fieldset { padding: 0; }
  .contact .cf-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .contact .cf-chip { display: block; }
  .contact .cf-chip span { display: block; text-align: center; padding: 14px 18px; }
  .contact .cf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
}

/* Contact form (shared /css/contact-form.css is built for a dark page, so it sits in a dark shell) */
.btn.cf-toggle { cursor: pointer; }
.cf-toggle .cf-hide, .cf-toggle[aria-expanded="true"] .cf-show { display: none; }
.cf-toggle[aria-expanded="true"] .cf-hide { display: inline; }
.contact .cf-toggle[aria-expanded="true"] { border-color: var(--ink); }
.cf-shell { margin-top: 28px; color: var(--ink); }
/* The empty status line under the form kept a blank row open; it only takes space once it has a message */
.contact .cf-status:empty { min-height: 0; margin-top: 0; }
/* The shared form stylesheet is tuned for black; these re-tune it for the green footer */
.contact .cf-back, .contact .cf-step-title, .contact .cf-form legend, .contact .cf-field label,
.contact .cf-status, .contact .cf-success h3, .contact .cf-success p { color: var(--ink); }
.contact .cf-count, .contact .cf-optional, .contact .cf-note { color: rgba(236, 231, 220, .72); }
.contact .cf-chip span { border-color: rgba(236, 231, 220, .45); color: var(--ink); }
.contact .cf-chip input:hover + span { border-color: var(--ink); }
.contact .cf-chip input:checked + span { background-color: var(--ink); border-color: var(--ink); color: var(--bg); }
.contact .cf-field input, .contact .cf-field textarea, .contact .cf-field select {
  border-color: rgba(236, 231, 220, .45); background-color: rgba(0, 0, 0, .22); color: var(--ink);
}
.contact .cf-field input:focus, .contact .cf-field textarea:focus, .contact .cf-field select:focus { border-color: var(--ink); }
.contact .cf-field input::placeholder, .contact .cf-field textarea::placeholder { color: rgba(236, 231, 220, .55); }
.contact .cf-next { background-color: var(--ink); border-color: var(--ink); color: var(--bg); }
.contact .cf-next[aria-disabled="true"] { background-color: transparent; border-color: rgba(236, 231, 220, .4); color: rgba(236, 231, 220, .6); }
.contact .cf-hold { border-color: var(--ink); color: var(--ink); background-image: linear-gradient(var(--ink), var(--ink)); }
.contact .cf-hold-label { mix-blend-mode: normal; color: var(--ink); }
.contact .cf-hold.is-holding .cf-hold-label, .contact .cf-hold.is-done .cf-hold-label { color: var(--bg); }
.contact .cf-again { border-color: var(--ink); color: var(--ink); }
.contact .cf-again:hover, .contact .cf-again:focus-visible { background-color: rgba(236, 231, 220, .12); }
.cf-noscript { margin: 20px 0 0; }

/* Carousel arrows at the start or end of the strip */
.media-btn.is-disabled { opacity: .3; cursor: default; }

/* Back to top: fixed in the lower right, same 44px outlined square as the carousel arrows, on a panel fill so it reads on dark and green */
.to-top {
  all: unset; box-sizing: border-box; cursor: pointer;
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 900;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--ink); border-radius: 10px; color: var(--ink); background: rgba(24, 24, 26, .82);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .25s, transform .25s, background .2s, color .2s;
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { display: block; }
.to-top:focus-visible { outline: 2px solid var(--accent-lift); outline-offset: 3px; }
@media (hover: hover) { .to-top:hover { background: var(--ink); color: var(--bg); } }
@media (pointer: coarse) and (max-width: 900px) { .to-top { bottom: max(20px, env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; transform: none; } }

/* ---------- Hover (pointer devices only) ---------- */
@media (hover: hover) {
  a:hover { color: var(--mute); }
  .menu-close:hover span { background: var(--accent-lift); }
  .menu-nav a:hover { padding-left: .12em; color: var(--ink); }
  .menu-open:hover { gap: 9px; }
  .work-toggle:hover { padding-left: 14px; }
  .media-btn:not(.is-disabled):hover { background: var(--ink); color: var(--bg); }
  .btn--solid:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); color: var(--bg); }
  .contact-links a:hover { color: var(--on-accent); }
  .social-links a:hover { opacity: .65; }
  .visit-links a:hover { text-decoration-color: currentColor; }
  .btn--ghost:hover { background: var(--on-accent); color: var(--ink); }
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .work-toggle { align-items: start; }
  .work-sign { align-self: center; }
}

/* Touch phones: Safari and Chrome keep a thin strip of page visible under their minimised bar that no
   viewport unit covers. Let the hero run 80px past the screen edge and lift the lead line by the same
   amount, so only video shows on the first screen. */
@media (pointer: coarse) and (max-width: 900px) {
  .hero { height: calc(100vh + 80px - var(--wip-h)); }
  .hero-content { bottom: calc(clamp(32px, 8vh, 88px) + 80px); }
}

/* ---------- Phones and small tablets ---------- */
@media (max-width: 600px) {
  .hero { min-height: 420px; }
  .logo { width: 110px; }
  .topbar, .menu-bar { padding: 16px 0; }
  .roles-body { font-size: 15px; }
  /* Stat figures: one row of equal columns, however many there are */
  .tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
  .tile { border-top: 1px solid var(--line); padding-top: 10px; }
  .tile-num { font-size: clamp(22px, min(30cqw, 150cqw / var(--n, 4)), 112px); }
  .tile-label { font-size: 11px; letter-spacing: .06em; text-wrap: balance; }
  /* Ticker: two rows of 16 cells, sized to fill the gutter width (JS builds the rows) */
  .flap { font-size: clamp(14px, 6.9cqw, 40px); }

  .tl-axis, .tl-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tl-axis > span:first-child { display: none; }
  .tl-row { padding: 12px 0; }
}

/* ---------- Phones ---------- */
@media (max-width: 480px) {
  .stat-row { gap: 6px 16px; }
  .stat-num { flex-basis: 100%; }
  .btn { flex: 1 1 100%; }
  .pill { white-space: normal; line-height: 1.3; }
}
@media (max-width: 360px) {
  .record-big { font-size: clamp(96px, 32vw, 120px); }
  .stat-num { font-size: clamp(52px, 17vw, 64px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
