/* ==========================================================================
   CHASTECH v2 DESIGN SYSTEM
   Quiet editorial, after the Tinker Click site: one ink, one accent,
   hairlines and whitespace. The one accent is red. Light theme by default; html[data-theme="dark"] (set by
   the header's theme button, see v2/head.njk) switches to dark.
   ========================================================================== */

:root {
  /* Palette */
  --bg: #eee9e2;
  --bg-raised: #e5dfd6;
  --ink: #121212;
  --ink-2: #4b4842;
  --muted: #8b867d;
  --line: rgba(18, 18, 18, 0.14);
  /* One accent, red-orange, used for the dot, fills, highlighted words and links. --accent-on-ink is how it
     reads on an ink background. --hi and --title-hi (text highlights) follow it. */
  --accent: #d4420c;
  --accent-on-ink: #ec5320;
  --hi: var(--accent);
  --hi-on-ink: var(--accent-on-ink);
  --title-hi: var(--accent);
  /* Pale sand: a quiet second colour (no longer used on the homepage) */
  --sand: #ecdcb9;
  --on-ink: #eee9e2;
  --danger: #c8321e;

  /* Type */
  --font-display: 'Anton', 'Impact', sans-serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --gutter: clamp(16px, 3vw, 40px);
  --header-h: 76px;
  --radius: 20px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.7, 0, 0.2, 1);
}

:root[data-theme="dark"] {
  --bg: #121212;
  --bg-raised: #1c1c1c;
  --ink: #eee9e2;
  --ink-2: #b3aea6;
  --muted: #77736c;
  --line: rgba(238, 233, 226, 0.14);
  --accent: #ec5320;
  --accent-on-ink: #d4420c;
  --on-ink: #121212;
  --danger: #ff7a66;
}

/* Switching theme: colours cross-fade for a moment (html.theme-switching, from site.js) */
html.theme-switching,
html.theme-switching * {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, fill 0.4s ease, stroke 0.4s ease !important;
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

html.drawer-open {
  overflow: hidden;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* clip, not hidden: hidden makes the body a scroll container in mobile Safari, and then every
     sticky section sticks to the body instead of the screen (hidden stays as the fallback) */
  overflow-x: hidden;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

img, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* Accessibility Utilities */
.sr-only, .hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Shared Type */
.eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
}

.text-accent {
  color: var(--title-hi);
}

.text-hi {
  color: var(--hi);
}

.nowrap {
  white-space: nowrap;
}

.index-num {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn svg {
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  color: #fff;
}

/* The red on hover is a circle that grows out of where the pointer came in and shrinks back towards where
   it left (--x / --y from site.js 1c; the middle without them). It's 230% of the button's width across, so
   from any point on the edge it covers the far corner. --btn-fill sets its colour. */
.btn-primary,
.header-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary::before,
.header-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: 230%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--btn-fill, var(--accent));
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s var(--ease);
  pointer-events: none;
}

.btn-primary:not(:disabled):hover::before,
.header-cta:hover::before {
  transform: translate(-50%, -50%) scale(1);
  /* Growing in is slower and evenly paced so it can be seen spreading; shrinking back stays quick */
  transition: transform 1.2s cubic-bezier(0.45, 0, 0.25, 1);
}

.btn-lg {
  height: 56px;
  padding: 0 28px;
  font-size: 1.0625rem;
}

/* ==========================================================================
   WORDMARK & HEADER
   ========================================================================== */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  /* site.js sets --wm-size so CHASTECH spans the full container width; this is the fallback */
  font-size: var(--wm-size, calc((min(100vw, 1440px) - 2 * var(--gutter)) / 3.9));
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  user-select: none;
}

.wordmark .ltr,
.wordmark .ltr > span {
  display: inline-block;
}

/* Title reveal (.is-ready, from site.js): the word opens from its centre in step with the intro's
   brackets, while its letters, gathered towards the middle, spread out into place */
.js .hero-wordmark {
  clip-path: inset(-20% 50% -20% 50%);
}

.js .hero-wordmark.is-ready {
  clip-path: inset(-20% -2% -20% -2%);
  transition: clip-path 1.1s var(--ease-in-out);
}

.js .hero-wordmark .ltr > span {
  transform: translateX(calc(var(--o) * -0.14em));
}

.js .hero-wordmark.is-ready .ltr > span {
  transform: none;
  transition: transform 1.4s var(--ease);
}

/* Bar that fades in behind the header once the hero wordmark has scrolled away */
.site-header-bar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 900;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.brand-open .site-header-bar {
  opacity: 1;
}

/* Header brand: < • > at rest; with html.brand-open the dot drops out and the brackets part around CHASTECH */
.header-brand {
  position: fixed;
  top: calc((var(--header-h) - 26px) / 2);
  left: var(--gutter);
  z-index: 1001;
  display: flex;
  align-items: center;
  height: 26px;
  color: var(--ink);
  transition: opacity 0.2s ease;
}

.header-brand:hover {
  opacity: 0.7;
}

.hb-br {
  flex: none;
  height: 100%;
  width: auto;
  aspect-ratio: 12 / 20;
  overflow: visible;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hb-dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin-inline: 4px;
  border-radius: 50%;
  background: var(--accent);
  transition: scale 0.3s var(--ease-in-out) 0.25s, width 0.5s var(--ease-in-out) 0.2s, margin 0.5s var(--ease-in-out) 0.2s;
}

/* Collapsed to nothing between the brackets until the brand opens (0fr → 1fr) */
.hb-word {
  display: grid;
  grid-template-columns: 0fr;
  margin-inline: 0;
  transition: grid-template-columns 0.6s var(--ease-in-out), margin 0.6s var(--ease-in-out);
}

.hb-word > span {
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.brand-open .hb-dot {
  scale: 0;
  width: 0;
  margin-inline: 0;
  transition-delay: 0s;
}

.brand-open .hb-word {
  grid-template-columns: 1fr;
  margin-inline: 7px;
  transition-delay: 0.15s;
}

.brand-open .hb-word > span {
  opacity: 1;
  transition: opacity 0.5s ease 0.35s;
}

@media (max-width: 767px) {
  .header-brand { top: calc((var(--header-h) - 22px) / 2); height: 22px; }
  .hb-word > span { font-size: 21px; }
}

/* Top right: theme button, then the contact CTA */
.header-actions {
  position: fixed;
  top: calc((var(--header-h) - 40px) / 2);
  right: var(--gutter);
  z-index: 1001;
  display: flex;
  gap: 8px;
}

/* The portfolio link: an outlined pill beside the CTA, its edge warming to the accent on hover */
.header-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.header-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* phones: both pills tighter, so they sit clear of the logo */
@media (max-width: 480px) {
  .header-actions { gap: 6px; }
  .header-link, .header-actions .header-cta { padding: 0 12px; font-size: 0.8125rem; }
  .header-actions .header-cta .cta-icon { display: none; }
}

/* while the contact drawer is open, only its close button stays */
.drawer-open .header-link { opacity: 0; pointer-events: none; }

.header-cta {
  height: 40px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.875rem;
}

.header-cta:hover {
  color: #fff;
}

.header-cta .label-close {
  display: none;
}

.header-cta .cta-icon {
  transition: transform 0.45s var(--ease);
}

.header-cta:hover svg {
  transform: none;
}

.header-cta[aria-expanded="true"] {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.header-cta[aria-expanded="true"]::before {
  display: none;
}

.header-cta[aria-expanded="true"] .label-open { display: none; }
.header-cta[aria-expanded="true"] .label-close { display: inline; }
.header-cta[aria-expanded="true"] .cta-icon { transform: rotate(45deg); }

/* ==========================================================================
   CONTACT DRAWER
   ========================================================================== */
.contact-drawer {
  position: fixed;
  inset: 0;
  z-index: 950;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.32);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.drawer-panel {
  position: absolute;
  inset: 0 0 auto 0;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: calc(var(--header-h) + clamp(32px, 5vw, 72px)) 0 clamp(40px, 6vw, 72px);
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease-in-out);
}

.contact-drawer.is-open .drawer-backdrop { opacity: 1; }
.contact-drawer.is-open .drawer-panel { transform: none; }

.drawer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px var(--gutter);
}

.drawer-grid > * {
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.5s ease, transform 0.6s var(--ease);
}

.contact-drawer.is-open .drawer-grid > * {
  opacity: 1;
  transform: none;
  transition-delay: 0.25s;
}

.contact-drawer.is-open .drawer-grid > *:nth-child(2) {
  transition-delay: 0.33s;
}

.drawer-intro {
  grid-column: 1 / span 2;
  display: flex;
  flex-direction: column;
}

.drawer-title {
  margin-top: 16px;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.drawer-copy {
  margin-top: 24px;
  color: var(--ink-2);
  max-width: 40ch;
}

/* Direct lines, pinned to the bottom of the intro column */
.drawer-direct {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 32px;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.drawer-direct a {
  width: fit-content;
  transition: color 0.2s ease;
}

.drawer-direct a:hover {
  color: var(--hi);
}

.drawer-form-col {
  grid-column: 3 / -1;
}

.contact-form {
  display: grid;
  gap: 28px;
}

/* Underlined fields, like the Tinker composer */
.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s ease;
}

.field:focus-within label {
  color: var(--hi);
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
  outline: 0;
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  letter-spacing: -0.02em;
  padding: 6px 0 10px;
  transition: border-color 0.25s ease;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.4;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--hi);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* The spam check runs out of sight (interaction-only); it only takes space, on its own row above the
   button, when Cloudflare asks for a manual check */
.cf-turnstile:not(.is-interactive) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile.is-interactive {
  flex-basis: 100%;
  min-height: 65px;
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: progress;
}

.status {
  min-height: 1.5em;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.status.error { color: var(--danger); }

.status.ok {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.status.ok::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.8em;
}

.contact-form.done > :not(.status) {
  display: none;
}

.drawer-fine {
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.drawer-fine a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .drawer-intro, .drawer-form-col { grid-column: 1 / -1; }
  .drawer-direct { padding-top: 24px; }
}

/* ==========================================================================
   HERO: masthead labels, the wordmark, then the title with the lede and actions beside it
   ========================================================================== */
.hero {
  padding: calc(var(--header-h) + clamp(8px, 1.5vw, 24px)) 0 clamp(64px, 9vw, 120px);
}

/* Phones: the hero sits a little lower, with more room under the header */
@media (max-width: 760px) {
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero .hero-meta { margin-bottom: 26px; }
}

.hero-meta {
  /* Above the cursor dot's layer (.hero-cursor), so its blend never tints the labels */
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(10px, 1.4vw, 20px);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.hero-wordmark-wrap {
  position: relative;
  display: flex;
}

/* Brand dot under the cursor (site.js 2b). Its layer blends with lighten (darken in dark mode), so the red
   only shows over the letters and loses to the page everywhere else. It reaches well past the word's line
   box, which the capitals overshoot (about 0.023em at the top) and more once lifted (another 0.035em);
   the labels above sit over it (.hero-meta) */
.hero-cursor {
  position: absolute;
  inset: -0.1em 0;
  overflow: hidden;
  font-size: var(--wm-size);
  pointer-events: none;
  mix-blend-mode: lighten;
}

:root[data-theme="dark"] .hero-cursor { mix-blend-mode: darken; }

.hero-cursor-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 0.3em;
  height: 0.3em;
  margin: -0.15em 0 0 -0.15em;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  will-change: transform;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px var(--gutter);
  padding-top: clamp(32px, 4.5vw, 64px);
}

.hero-title {
  grid-column: 1 / span 3;
  max-width: 15em;
  font-size: clamp(2rem, 4.4vw, 4.25rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
  word-spacing: -0.04em;
  text-wrap: balance;
}

/* Lede and actions in the last column, sitting on the title's baseline */
.hero-aside {
  grid-column: 4;
  align-self: end;
}

.hero-lede {
  max-width: 40ch;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 24px;
}

.hero-next {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.hero-next svg {
  transition: transform 0.4s var(--ease);
}

.hero-next:hover svg {
  transform: translateY(4px);
}

/* Hero entrance (html.hero-ready, set by site.js as the wordmark opens): the title comes into
   focus word by word, then the labels, lede and actions fade up */
.js .hero-title .w {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(0.2em);
}

.hero-ready .hero-title .w {
  opacity: 1;
  filter: none;
  transform: none;
  transition: opacity 0.9s ease, filter 0.9s ease, transform 1s var(--ease);
  transition-delay: calc(0.55s + var(--wi) * 0.05s);
}

/* The highlighted phrase: ink type on a red box, one box per line when it wraps. With the script, the box
   sweeps in from the left once the words have arrived. An inline box is as tall as its font's full line, so
   the box is set at 0.8 of the title size (a shorter box) and the words inside are scaled back up to full size */
.hero-hi {
  font-size: 0.8em;
  padding: 0 0.0625em;
  margin: 0 -0.025em;
  border-radius: 0.075em;
  color: #121212;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 0 / 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-hi > span { font-size: 1.25em; }

/* Once scrolling starts the highlight's colour leaves as the bar (site.js 9c): the words settle into the
   page's ink (--hi-k, 0 to 1) */
/* the headline sits above the bar, so the bar slides out from under its words */
.hero-title { position: relative; z-index: 6; }
.hero-hi-off .hero-hi { background: none; color: color-mix(in srgb, var(--ink) calc(var(--hi-k, 1) * 100%), #121212); }
.hero-hi-bar {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 5;
  width: 100px;
  height: 100px;
  background: var(--accent);
  transform-origin: 0 0;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}

.js .hero-hi { background-size: 0% 100%; }

.hero-ready .hero-hi {
  background-size: 100% 100%;
  transition: background-size 0.9s var(--ease) 1.05s;
}

.js .hero-meta,
.js .hero-aside {
  opacity: 0;
  transform: translateY(12px);
}

.hero-ready .hero-meta,
.hero-ready .hero-aside {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s ease 1s, transform 1s var(--ease) 1s;
}

.hero-ready .hero-meta { transition-delay: 0.7s; }

@media (max-width: 1100px) {
  .hero-title { grid-column: 1 / span 2; }
  .hero-aside { grid-column: 3 / -1; }
}

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-title, .hero-aside { grid-column: 1; }
}

/* ==========================================================================
   INTRO: the logo's brackets sit where the wordmark will be while a counter runs to 100,
   then the dot drops out and the brackets slide apart, opening CHASTECH between them (site.js)
   ========================================================================== */
.intro {
  display: none;
}

html.has-intro {
  overflow: hidden;
}

html.has-intro .intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.intro-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
  transition: opacity 0.6s ease 0.15s;
}

/* Centred on the wordmark's spot; site.js sets --cy (its middle) and --h (its height) */
.intro-mark {
  position: absolute;
  left: 50%;
  top: var(--cy, 30vh);
  height: var(--h, 200px);
  display: flex;
  align-items: center;
  gap: calc(var(--h, 200px) * 0.14);
  transform: translate(-50%, -50%);
}

.intro-br {
  height: 100%;
  width: auto;
  aspect-ratio: 12 / 20;
  overflow: visible;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 1.1s var(--ease-in-out), opacity 0.5s ease 0.55s;
  animation: intro-br-in 0.9s var(--ease) backwards;
}

.intro-br-l { --from: 40%; }
.intro-br-r { --from: -40%; }

@keyframes intro-br-in {
  from { opacity: 0; transform: translateX(var(--from)); }
}

.intro-dot {
  width: calc(var(--h, 200px) * 0.16);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  animation: intro-dot 1.2s var(--ease) 0.3s backwards;
  transition: scale 0.35s var(--ease-in-out);
}

/* Grows in between the brackets */
@keyframes intro-dot {
  from { scale: 0; }
}

.intro-foot {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(var(--gutter) + 12px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  transition: opacity 0.3s ease;
}

.intro-count {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.intro-label {
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: right;
  color: var(--muted);
}

.intro-progress {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--gutter);
  height: 2px;
  background: var(--ink);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  transition: opacity 0.3s ease;
}

/* Counted in: the counter clears and the dot drops out */
.intro.is-done .intro-foot,
.intro.is-done .intro-progress { opacity: 0; }
.intro.is-done .intro-dot { scale: 0; }

/* Open: the brackets travel to the wordmark's edges (--l / --r from site.js) as the background clears */
.intro.is-open .intro-bg { opacity: 0; }
.intro.is-open .intro-br { opacity: 0; }
.intro.is-open .intro-br-l { transform: translateX(calc(-1 * var(--l, 40vw))); }
.intro.is-open .intro-br-r { transform: translateX(var(--r, 40vw)); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
  padding: clamp(80px, 11vw, 160px) 0 0;
  scroll-margin-top: calc(var(--header-h) - 20px);
}

.section-head {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px var(--gutter);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(48px, 7vw, 96px);
}

.section-title {
  font-size: clamp(2rem, 4.6vw, 4.25rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 17em;
  text-wrap: balance;
}

.section-lede {
  margin-top: 24px;
  max-width: 48ch;
  font-size: 1.125rem;
  color: var(--ink-2);
}

/* Split heading: title on the left, lede on the right lined up with the title's last line */
.section-head-split {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  column-gap: clamp(32px, 5vw, 96px);
  align-items: end;
}

.section-head-split .section-title {
  max-width: none;
}

.section-head-split .section-lede {
  justify-self: end;
  max-width: 52ch;
  margin-top: 0;
}

/* Small label above a split heading, e.g. "(01) Work" */
.section-label {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head-split .section-lede { justify-self: start; }
}

/* Last section before the footer keeps breathing room above it */
.section-last {
  padding-bottom: clamp(80px, 11vw, 160px);
}

/* ==========================================================================
   WORK: a bento wall of framed tiles (a white mount and a black frame), on
   12 columns: a large tile and a tall one, then a tall one beside two stacked landscapes.
   Each tile's size comes from projects.json (.is-big, .is-tall, .is-portrait, .is-landscape).
   ========================================================================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 15vw, 230px);
  gap: 12px;
}

.work-tile {
  --mount: #fff;
  --frame: #121212;
  position: relative;
  isolation: isolate;
  display: block;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--mount);
  transition: translate 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

:root[data-theme="dark"] .work-tile {
  --mount: var(--bg-raised);
  --frame: var(--ink);
}

.work-tile::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2.5px solid var(--frame);
  border-radius: calc(var(--radius) - 10px);
  pointer-events: none;
}

.work-media {
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--radius) - 10px);
  background: var(--bg-raised);
}

.work-media video,
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

/* Name and kind over a dark fade along the bottom of the picture (the bottom 60%, at most 220px) */
.work-cap {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  height: min(60%, 220px);
  padding: 0 20px 18px;
  border-radius: 0 0 calc(var(--radius) - 10px) calc(var(--radius) - 10px);
  background: linear-gradient(rgba(18, 18, 18, 0), rgba(18, 18, 18, 0.5) 45%, rgba(18, 18, 18, 0.9));
  color: #eee9e2;
}

.work-cap h3 {
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.work-cap small {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  opacity: 0.75;
}

/* The relay: each caption ends in a ring, and once the portfolio is in view they fill red one at a time
   and stay filled (.is-lit, from site.js), ending on the last tile's. When the travelling dot takes off from the last tile for
   the map (.is-launched on .about-run) its ring empties again. Lit in the page's own red, so the hand-off to
   the travelling dot doesn't change colour. */
.work-dot {
  flex: none;
  width: 12px;
  height: 12px;
  margin-bottom: 4px;
  border: 1.5px solid rgba(238, 233, 226, 0.55);
  border-radius: 50%;
  scale: 0.75;
  transition: background-color 0.45s ease, border-color 0.45s ease, scale 0.6s var(--ease);
}

.work-dot.is-lit {
  border-color: var(--accent);
  background: var(--accent);
  scale: 1;
}

.about-run.is-launched .work-tile:last-child .work-dot {
  border-color: rgba(238, 233, 226, 0.55);
  background: transparent;
  scale: 0.75;
  transition: none;
}

.work-tile.is-big { grid-column: span 8; grid-row: span 2; }
.work-tile.is-big .work-cap h3 { font-size: clamp(1.5rem, 2.6vw, 2.5rem); }
.work-tile.is-tall { grid-column: span 4; grid-row: span 2; }
.work-tile.is-portrait { grid-column: span 3; grid-row: span 2; }
.work-tile.is-landscape { grid-column: span 8; }

@media (hover: hover) {
  .work-tile:hover {
    translate: 0 -8px;
    box-shadow: 0 30px 50px -24px rgba(18, 18, 18, 0.45);
  }

  .work-tile:hover .work-media video,
  .work-tile:hover .work-media img {
    transform: scale(1.04);
  }
}

/* Phones: the bento in two columns: Murtaza wide across the top, then MOPS and Wilderness Kennels side by
   side, then Whmis Wise beside the Mortgage Broker */
@media (max-width: 760px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 40vw, 200px); gap: 10px; }
  .work-tile.is-big { grid-column: span 2; grid-row: span 2; }
  .work-tile.is-tall, .work-tile.is-portrait { grid-column: span 1; grid-row: span 2; }
  .work-tile.is-landscape { grid-column: span 1; grid-row: span 1; }
  .work-cap { padding: 0 12px 12px; }
  .work-cap h3, .work-tile.is-big .work-cap h3 { font-size: 1rem; }
  .work-tile.is-big .work-cap h3 { font-size: 1.5rem; }
  .work-cap small { font-size: 0.75rem; }
}

/* ==========================================================================
   WORK: the curved wall. The sites hang round the inside of a gentle curve, like prints round a
   gallery wall; the section pins and site.js (7b) turns the wall (--rot) to bring each to the front,
   the others dimming as they turn away. The red dot glides along a plain line beneath, and once the
   wall lets go it's the dot that drops onto the map (9d).
   ========================================================================== */
.work-wall {
  position: relative;
  /* 96 screens' worth of scroll per site (--cards, set from projects.json in index.html) */
  height: calc(var(--cards, 5) * 96vh);
  height: calc(var(--cards, 5) * 96svh);
}

.work-wall-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  /* The heading's row is empty except on phones, where the heading rides in the pin */
  grid-template-rows: auto 1fr auto;
  padding: calc(var(--header-h) + 8px) 0 clamp(24px, 5vh, 56px);
}

.work-wall-stage {
  position: relative;
  perspective: 1700px;
}

/* The ring sits one radius (--R) in front of its centre, so the card facing you sits flat at z = 0 */
.work-wall-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
  transform: translateZ(var(--R, 900px)) rotateY(var(--rot, 0deg));
}

.work-wall-card {
  --w: clamp(300px, 40vw, 620px);
  position: absolute;
  left: calc(var(--w) / -2);
  top: calc(var(--w) * -0.3125);
  width: var(--w);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  background: var(--bg-raised);
  box-shadow: 0 50px 90px -40px rgba(18, 18, 18, 0.55);
  transform: rotateY(var(--a, 0deg)) translateZ(calc(var(--R, 900px) * -1));
  backface-visibility: hidden;
  opacity: var(--o, 1);
}

/* Branded photo: the site's hero photo (or film) in grey, its brand tone multiplied in and a deeper pool
   of its colour at the centre for the logo to sit in. --brand-deep / --brand-tone come from projects.json */
.work-wall-card {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand-deep);
  isolation: isolate;
  container-type: inline-size;
}

.work-wall-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.work-wall-media img,
.work-wall-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}

/* No clean photo for this one yet (its still is a screenshot), so it goes soft until one arrives */
.work-wall-media.is-soft img {
  filter: blur(7px);
  transform: scale(1.08);
}

@media (hover: hover) {
  .work-wall-card:hover .work-wall-media img,
  .work-wall-card:hover .work-wall-media video { transform: scale(1.05); }
  .work-wall-card:hover .work-wall-media.is-soft img { transform: scale(1.12); }
}

/* Stand-in logos (v2/brand-logo.njk), sized to the card's width so they scale with the wall */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 5.6cqi;
  line-height: 1;
  white-space: nowrap;
}

.brand-logo svg { flex: none; width: auto; height: 1.25em; }
/* A real logo file: white, sized by width so wide and tall marks sit at a similar weight */
.brand-logo.is-image img { display: block; width: 46cqi; height: auto; }
/* A round badge in full colour reads big at that width */
.brand-logo-amp.is-image img { width: 24cqi; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.35)); }
.brand-logo-murtaza { font-family: 'Plus Jakarta Sans', sans-serif; }
.brand-logo-murtaza span { display: grid; gap: 0.2em; }
/* A brokerage mark beside the name, a hairline between them */
.brand-logo-mark { flex: none; width: auto; height: 2.1em; }
.brand-logo-mark + span { padding-left: 0.55em; border-left: 1px solid rgba(255, 255, 255, 0.4); }
.brand-logo-murtaza b { font-weight: 800; letter-spacing: 0.02em; }
.brand-logo-murtaza small { font-size: 0.36em; font-weight: 800; letter-spacing: 0.62em; }
.brand-logo-mops { gap: 0.3em; font-family: 'Oswald', sans-serif; }
.brand-logo-mops b { font-size: 1.2em; font-weight: 700; letter-spacing: -0.01em; }
.brand-logo-mops small { align-self: flex-start; padding: 0.32em 0.5em; border-radius: 99px; background: #fff; color: var(--brand-tone); font-size: 0.38em; font-weight: 700; }
.brand-logo-kennels { font-family: 'Yellowtail', cursive; font-size: 8.2cqi; }
.brand-logo-kennels b { font-weight: 400; }
.brand-logo-whmis { font-family: 'Nunito', sans-serif; font-weight: 900; }
.brand-logo-whmis span { display: grid; line-height: 0.92; }
.brand-logo-whmis em { font-style: normal; }
.brand-logo-broker { flex-direction: column; gap: 0.45em; font-family: 'Instrument Serif', serif; font-size: 7cqi; }
.brand-logo-broker b { font-weight: 400; letter-spacing: -0.01em; }
.brand-logo-broker small { font-family: var(--font-body); font-size: 0.24em; letter-spacing: 0.5em; opacity: 0.8; }

.work-wall-foot {
  display: grid;
  justify-items: center;
}

/* Captions: the one for the site at the front rises out of a mask, the last one leaving above */
.work-wall-caps {
  position: relative;
  width: min(520px, 100%);
  height: 100px;
  text-align: center;
}

.work-wall-cap {
  position: absolute;
  inset: 0 0 auto;
  /* The captions are stacked, so only the one on show takes clicks (the others would cover its link) */
  pointer-events: none;
}

.work-wall-cap.is-on { pointer-events: auto; }

.work-wall-cap > * { overflow: hidden; }
.work-wall-cap > * > span { display: block; transform: translateY(105%); transition: transform 0.8s var(--ease); }
.work-wall-cap > :nth-child(2) > span { transition-delay: 0.05s; }
.work-wall-cap > :nth-child(3) > span { transition-delay: 0.1s; }
.work-wall-cap.is-past > * > span { transform: translateY(-105%); transition-duration: 0.45s; transition-delay: 0s; }
.work-wall-cap.is-on > * > span { transform: none; }

.work-wall-cap h3 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.work-wall-cap small {
  display: block;
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--muted);
}

.work-wall-cap > div { margin-top: 10px; font-size: 0.9375rem; color: var(--muted); }

.work-wall-cap a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 500;
  transition: color 0.3s ease;
}

.work-wall-cap a:hover { color: var(--ink); }
.work-wall-cap a svg { width: 12px; height: 12px; }

/* The line: drawn in behind the dot as the wall turns */
.work-wall-line {
  position: relative;
  width: min(720px, 100%);
  height: 2px;
  margin-top: 26px;
  background: var(--line);
}

.work-wall-line span {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--x, 0px);
  height: 2px;
  background: var(--ink);
}

.work-wall-dot {
  position: absolute;
  top: 1px;
  left: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(var(--x, 0px));
}

/* Once the travelling dot takes off for the map, this one is it */
.about-run.is-launched .work-wall-dot { opacity: 0; }

.work-head-in { display: none; }

/* Phones: the proof is one full pinned screen: the heading at the top, the cards filling the middle
   (landscape, nearly the full width) and the caption and the line at the bottom */
@media (max-width: 760px) {
  .work-head-out { display: none; }
  #work { padding-top: clamp(56px, 12vw, 96px); }
  .work-wall { height: 420svh; }
  .work-wall-pin {
    --cw: min(84vw, 420px);
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: calc(var(--header-h) + 20px) 0 28px;
  }
  .work-head-in { display: grid; margin-bottom: 0; row-gap: 14px; }
  .work-head-in .section-lede { font-size: 1rem; }
  .work-wall-card { --w: var(--cw); border-radius: 14px; }
  .work-wall-caps { height: 92px; }
  .work-wall-cap h3 { font-size: 1.75rem; }
  .work-wall-line { margin-top: 18px; }
}

/* Phones: no pinned wall. The cards are a plain list that scrolls by, each with its caption under it
   (the cards and the captions are two lists in the markup: the boxes in between give way, and --i
   interleaves them). The line and its dot close the list: the dot reaches the end of the line as the
   list ends, and is the one that drops onto the map (9d) as before. */
@media (max-width: 760px) {
  .work-head-out { display: block; }
  .work-head-in { display: none; }
  .work-wall { height: auto; }
  .work-wall-pin { position: relative; height: auto; overflow: visible; display: flex; flex-direction: column; padding: 8px var(--gutter) 0; }
  .work-wall-pin > .container:first-child, .work-wall-stage, .work-wall-ring, .work-wall-foot, .work-wall-caps { display: contents; }
  .work-wall-card {
    position: relative; left: auto; top: auto; order: calc(var(--i) * 2);
    width: 100%; transform: none; opacity: 1 !important; filter: none !important;
    /* clip to the rounded corners outright: Safari doesn't round children on layers of their own
       (the film, the photo) with border-radius and overflow alone */
    border-radius: 14px; clip-path: inset(0 round 14px);
  }
  .work-wall-cap {
    position: relative; inset: auto; order: calc(var(--i) * 2 + 1);
    margin: 16px 0 44px; text-align: left; pointer-events: auto;
  }
  .work-wall-cap > * > span, .work-wall-cap.is-past > * > span { transform: none; transition: none; }
  .work-wall-cap h3 { font-size: 1.75rem; }
  .work-wall-line { order: 999; width: 100%; margin: 0 0 8px; }
}

/* Short phones: drop the lede so the cards keep their room */
@media (max-width: 760px) and (max-height: 720px) {
  .work-head-in .section-lede { display: none; }
}

/* ==========================================================================
   PROOF → ABOUT: the dot drops from the last project onto a map of Belleville in paper relief
   (depth bands in the bay, land casting a shadow on the water), seen from straight above. The dot lands
   on top of a pin standing up off the map (ripples on the ground, a framed label); the map then zooms
   out to all of Canada, and the dot carries on to the About heading's full stop, trailing a dashed line
   that fades away behind it. site.js drives it with --map on the map and .is-landed / .is-tagged /
   .is-home on .about-run; without it, everything simply shows.
   ========================================================================== */
.about-run {
  position: relative;
}

/* The track the map holds still in (sticky, its middle at the screen's) while it zooms out to Canada,
   about a screen's worth of scroll. Without the script, or with reduced motion, it's just the map */
.about-map-track {
  --map-h: clamp(480px, 74vh, 720px);
  margin-top: clamp(56px, 8vw, 96px);
}

/* --mp: how far the map has faded in (0–1) */
.about-map {
  --mp: 1;
  position: relative;
  height: var(--map-h);
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  .js .about-map-track { height: calc(var(--map-h) + 110vh); }
  .js .about-map { position: sticky; top: calc(50vh - var(--map-h) / 2); }
}

.js .about-map { --mp: var(--map, 0); }

/* The map fades out towards its edges, so it reads as a place rather than a picture. The pin sits in a
   second scene, unfaded, whose plane moves just like the map's, so it stays on the same spot */
.about-map-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 50%, transparent 100%);
}

.about-map-scene.is-pin {
  z-index: 2;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

/* The ground plane, wider than the map (the scene crops it), north up to line up with Canada. --zx / --zy
   carry Belleville across the screen as the map zooms out; --zs shrinks the streets (set on their scene
   only, so the pin keeps its size) */
.about-map-plane {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(118%, 900px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) translate(var(--zx, 0px), var(--zy, 0px)) scale(calc(1.12 * var(--zs, 1)));
  will-change: transform;
}

/* Canada, flat, drawn in by site.js (canada-map.svg, inlined so it stays sharp at any zoom) */
.about-map-scene.is-canada {
  z-index: 1;
  visibility: hidden;
}

.about-map-scene.is-canada svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.about-map-scene.is-canada path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.cm-land { opacity: 0.55; }
.cm-us { opacity: 0.18; }
.cm-provinces { stroke-dasharray: 2 4; opacity: 0.25; }
.about-map-scene.is-canada .cm-lakes { fill: var(--bg-raised); stroke-width: 0.75; opacity: 0.4; }

/* The line across Canada once it's all in view (.is-wide), set like the headings with Canada in red and
   a halo in the page colour so the map's lines never run through the letters */
.about-map-line {
  position: absolute;
  left: 50%;
  top: 47%;
  z-index: 3;
  width: max-content;
  font-size: clamp(1.75rem, 4.6vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-align: center;
  color: var(--ink);
  -webkit-text-stroke: 0.16em var(--bg);
  paint-order: stroke fill;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.about-map-line span { color: var(--accent); }

/* Narrow screens: the country fills only the middle band of the map (--board-h, from site.js), so the line
   sits just above it, and the US outline below is left out so the open space doesn't read as the States */
@media (max-width: 560px) {
  .about-map-line { top: calc(50% - var(--board-h, 240px) / 2 + 4px); transform: translate(-50%, -100%); }
  .js .about-map-line { transform: translate(-50%, calc(-100% + 14px)); }
  .js .about-run.is-wide .about-map-line { transform: translate(-50%, -100%); }
  .cm-us { display: none; }
}

.js .about-map-line {
  opacity: 0;
  transform: translate(-50%, calc(-50% + 14px));
  transition: opacity 0.8s ease, transform 1s var(--ease);
}

.js .about-run.is-wide .about-map-line {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* The label's two readings, near (on the streets) and far (on Canada), stacked and crossfaded */
.at-swap { display: grid; }
.at-swap > span { grid-area: 1 / 1; transition: opacity 0.4s ease; }
.about-tag .at-far,
.about-run.is-wide .about-tag .at-near { opacity: 0; }
.about-run.is-wide .about-tag .at-far { opacity: 1; }

/* It comes in two colourings; the theme picks one */
.about-map img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: min(1, calc(var(--mp) * 2.5));
}

.about-map-dark { display: none; }
:root[data-theme="dark"] .about-map-light { display: none; }
:root[data-theme="dark"] .about-map-dark { display: block; }

/* The pin's foot, on the ground, where its ripples spread */
.about-pin {
  position: absolute;
  left: 50%;
  top: 50%;
}

.about-pin > i {
  position: absolute;
  left: -9px;
  top: -9px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
}

.about-run.is-landed .about-pin > i { animation: about-ripple 2.6s var(--ease) infinite; }
.about-run.is-landed .about-pin > i:nth-child(2) { animation-delay: 0.85s; }
.about-run.is-landed .about-pin > i:nth-child(3) { animation-delay: 1.7s; }

@keyframes about-ripple {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(7); opacity: 0; }
}

/* The stand: the dot lands in its head, a halo at the top of the stem; the stem then draws down to the
   ground, and both stay once the dot moves on */
.about-stand {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
}

.about-stem {
  position: absolute;
  left: -1px;
  bottom: 0;
  width: 2px;
  height: 72px;
  background: var(--ink);
  transform-origin: 50% 0;
  transition: transform 0.5s var(--ease);
}

.about-head {
  position: absolute;
  left: -7px;
  bottom: 65px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
  transition: opacity 0.4s ease;
}

/* With the script, the travelling dot is the head's red */
.js .about-head { background: none; }
.js .about-run:not(.is-tagged) .about-stem { transform: scaleY(0); }
.js .about-run:not(.is-tagged) .about-head { opacity: 0; }

/* Map label: a framed card (the portfolio tiles' white mount and black frame), joined to the head by a
   short line that draws first */
.about-tag {
  --mount: #fff;
  --frame: #121212;
  position: absolute;
  left: 0;
  bottom: 72px;
  display: flex;
  align-items: center;
  transform: translateY(50%);
}

:root[data-theme="dark"] .about-tag {
  --mount: var(--bg-raised);
  --frame: var(--ink);
}

.about-tag-line {
  width: clamp(28px, 4vw, 56px);
  height: 2px;
  margin-left: 10px;
  background: var(--frame);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease);
}

.about-tag-card {
  position: relative;
  padding: 6px;
  border-radius: 16px;
  background: var(--mount);
  box-shadow: 0 24px 40px -24px rgba(18, 18, 18, 0.5);
  transform-origin: 0 50%;
  transition: opacity 0.45s ease 0.2s, transform 0.6s var(--ease) 0.2s;
}

.about-tag-card > span {
  display: grid;
  gap: 4px;
  padding: 14px 20px 14px 18px;
  border: 2.5px solid var(--frame);
  border-radius: 11px;
  white-space: nowrap;
}

.about-tag b {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.about-tag b::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.about-tag small {
  padding-left: 20px;
  font-size: 0.8125rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.js .about-run:not(.is-tagged) .about-tag-line { transform: scaleX(0); }
.js .about-run:not(.is-tagged) .about-tag-card { opacity: 0; transform: translateX(-10px) scale(0.96); }

/* Narrow screens: the label hangs centred below the pin's foot, the line dropping down to it, so on the
   zoomed-out map it sits under Belleville rather than over the country */
@media (max-width: 560px) {
  .about-tag { flex-direction: column; top: 14px; bottom: auto; transform: translateX(-50%); transition: transform 0.6s var(--ease); }
  /* On the whole country Belleville sits right of centre (by 107 of the board's 1000 at 1.3× the map's
     width, about 13.9vw less the gutters), so the card moves back to the middle of the screen and its line
     shifts the other way to stay under the pin */
  .about-run.is-wide .about-tag { transform: translateX(calc(-50% - 13.9vw + 4px)); }
  .about-tag-line { transition: transform 0.45s var(--ease), translate 0.6s var(--ease); }
  .about-run.is-wide .about-tag-line { translate: calc(13.9vw - 4px) 0; }
  .about-tag-line { width: 2px; height: 22px; margin: 0; transform-origin: 50% 0; }
  .js .about-run:not(.is-tagged) .about-tag-line { transform: scaleY(0); }
  .about-tag-card { transform-origin: 50% 0; }
  .js .about-run:not(.is-tagged) .about-tag-card { transform: translateY(-8px) scale(0.96); }
  .about-tag-card > span { padding: 10px 14px 10px 12px; }
  .about-tag small { font-size: 0.75rem; }
}

/* The About heading's full stop: a red dot on the baseline, the size of the type's own period. It shows
   once the travelling dot has landed there */
.title-dot {
  display: inline-block;
  width: 0.13em;
  height: 0.13em;
  margin-left: 0.03em;
  border-radius: 50%;
  background: currentColor;
}

.js .about-run:not(.is-home) .title-dot { opacity: 0; }

/* The travelling dot, placed by site.js with a transform in .about-run's coordinates */
.about-dot {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}

/* The dashed travel line, like a route on an old cartoon map */
.about-trail {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.about-trail path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-dasharray: 9 8;
}

.about-trail [data-about-reveal] { stroke: #fff; stroke-width: 10; stroke-dasharray: none; }
.about-trail .about-measure { stroke: none; }

/* ==========================================================================
   BRIDGE (hero → problem): the brand's dot rises in with the page, pins in the middle of the screen
   and grows into a dark field, turning from accent to ink; then the sentence on it lights up word
   by word. site.js sets --r (the dot's radius), --k (0 accent → 1 ink) and .is-on on each word.
   ========================================================================== */
.bridge {
  position: relative;
  /* Above the hero path's line (z-index 3), so the growing field covers it */
  z-index: 4;
  height: 320vh;
  height: 320svh;
}

.bridge-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.bridge-field {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--ink) calc(var(--k, 0) * 100%), var(--accent));
  clip-path: circle(var(--r, 5px) at 50% 50%);
}

.bridge-text {
  max-width: 19em;
  font-size: clamp(1.75rem, 4.6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.045em;
  word-spacing: -0.04em;
  text-align: center;
  text-wrap: balance;
  color: var(--bg);
}

/* Phones: bigger, filling more of the dark field */
@media (max-width: 760px) {
  .bridge-text { font-size: clamp(2rem, 9.4vw, 2.75rem); }
}

.bridge-accent {
  color: var(--hi-on-ink);
}

/* Header over the grown field (html.header-on-ink, from site.js): bar, brand and button invert */
.site-header-bar {
  transition: opacity 0.5s ease, background-color 0.4s ease;
}

.header-brand {
  transition: opacity 0.2s ease, color 0.4s ease;
}

.header-on-ink .site-header-bar {
  background: color-mix(in srgb, var(--ink) 86%, transparent);
}

.header-on-ink .header-brand {
  color: var(--bg);
}

.header-on-ink .theme-btn {
  color: var(--bg);
  border-color: color-mix(in srgb, var(--bg) 30%, transparent);
}

.header-on-ink .header-cta:not([aria-expanded="true"]) {
  --btn-fill: var(--accent-on-ink);
  background: var(--bg);
  color: var(--ink);
}

.header-on-ink .header-cta:not([aria-expanded="true"]):hover {
  color: #fff;
}

.js .bridge-text .w {
  opacity: 0.14;
  transition: opacity 0.35s ease;
}

.js .bridge-text .w.is-on {
  opacity: 1;
}

/* Without JS, or with reduced motion: a plain dark band with the sentence */
html:not(.js) .bridge,
.bridge.is-flat {
  height: auto;
  margin-top: clamp(40px, 6vw, 80px);
}

html:not(.js) .bridge-pin,
.bridge.is-flat .bridge-pin {
  position: static;
  height: auto;
}

html:not(.js) .bridge-field,
.bridge.is-flat .bridge-field {
  position: static;
  padding-block: clamp(96px, 14vw, 200px);
  background: var(--ink);
  clip-path: none;
}

.bridge.is-flat .bridge-text .w {
  opacity: 1;
}

/* ==========================================================================
   PROBLEM: the section pins (.problem-pin) and scrolling down slides the track of four panels
   sideways (--x and --p from site.js). Open panels split by hairlines, with a ghosted number
   behind each; the last is a black card with a red inner frame. Each panel has a large drawing
   of its problem: .is-drawn draws its outlines in, .is-on (the panel in front) runs its loop.
   Without the script the track simply scrolls sideways.
   ========================================================================== */
.problem-scroll { position: relative; }
.js .problem-scroll { height: 400svh; }
.problem-pin { display: flex; flex-direction: column; justify-content: center; }
.js .problem-pin { position: sticky; top: 0; height: 100svh; padding-top: var(--header-h); overflow: hidden; }
.problem-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: clamp(20px, 3vw, 40px); font-size: 0.8125rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.problem-track { display: flex; padding: 0 var(--gutter); overflow-x: auto; }
.js .problem-track { overflow: visible; transform: translate3d(var(--x, 0px), 0, 0); will-change: transform; }

.problem-panel {
  --ic: var(--accent); --card-bg: var(--bg);
  position: relative; flex: 0 0 min(78vw, 1040px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 4vw, 72px);
  min-height: min(60svh, 560px); padding: 0 clamp(24px, 4vw, 72px);
  border-left: 1px solid var(--line);
}
.problem-ghost { position: absolute; right: clamp(16px, 3vw, 48px); bottom: -0.12em; font-family: var(--font-display); font-size: clamp(8rem, 22vw, 20rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line); pointer-events: none; }
.problem-panel h3 { font-size: clamp(1.75rem, 3.4vw, 3.5rem); font-weight: 500; line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
.problem-panel p { margin-top: 18px; max-width: 32ch; font-size: clamp(1rem, 1.3vw, 1.25rem); opacity: 0.7; }

/* The last panel: a black card, inset red frame, red drawing in its on-ink shade */
.problem-panel:last-child {
  --ic: var(--accent-on-ink); --card-bg: var(--ink);
  margin-left: clamp(16px, 2vw, 32px); padding: clamp(40px, 5vw, 80px);
  border: 0; border-radius: var(--radius); background: var(--ink); color: var(--bg); overflow: hidden;
}
.problem-panel:last-child::before { content: ""; position: absolute; inset: 10px; border: 2.5px solid var(--accent-on-ink); border-radius: calc(var(--radius) - 10px); pointer-events: none; }
.problem-panel:last-child .problem-ghost { -webkit-text-stroke-color: color-mix(in srgb, var(--bg) 16%, transparent); }

html:not(.js) .problem-progress, html:not(.js) [data-problem-count] { display: none; }
.problem-progress { position: relative; height: 2px; margin-top: clamp(24px, 4vw, 48px); background: var(--line); }
.problem-progress i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
/* The brand's red dot rides the head of the line: a full-width runner slides by the same fraction, and the
   dot sits on its left edge */
.problem-progress b { position: absolute; inset: 0; transform: translate3d(calc(var(--p, 0) * 100%), 0, 0); pointer-events: none; }
.problem-progress b::before { content: ""; position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); }

/* The drawing: smaller and faded until its panel comes to the front */
.problem-art { justify-self: center; width: min(100%, 340px); transition: transform 1s var(--ease), opacity 0.6s ease; }
.js .problem-panel:not(.is-on) .problem-art { transform: scale(0.86); opacity: 0.35; }
.problem-ic {
  display: block; width: 100%; height: auto; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  color: var(--ic);
}
.problem-ic * { transform-box: view-box; animation-play-state: paused; }
.problem-panel.is-on .problem-ic * { animation-play-state: running; }
/* Phones and tablets: the drawings pause while the page scrolls (html.is-scrolling, from site.js), so the
   moving track isn't redrawn every frame */
@media (max-width: 1023px) {
  .is-scrolling .problem-panel.is-on .problem-ic * { animation-play-state: paused; }
}
.problem-ic .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-in-out); }
.problem-panel.is-drawn .problem-ic .draw { stroke-dashoffset: 0; }

/* 01 clock: hands spin backwards, the dotted ring turns slowly */
.ic-clock .ring { stroke-width: 3; transform-origin: 100px 100px; animation: problem-spin 40s linear infinite reverse; }
.ic-clock .hand { transform-origin: 100px 100px; }
.ic-clock .hand-m { animation: problem-spin 1.6s linear infinite reverse; }
.ic-clock .hand-h { stroke-width: 5; animation: problem-spin 19.2s linear infinite reverse; }

/* 02 copies: the placeholder card clones itself, the copies slide out, then fold back */
.ic-copies rect { fill: var(--card-bg); }
.ic-copies .x { stroke-width: 2; opacity: 0.4; }
.ic-copies .cp1 { animation: problem-copy1 4.2s var(--ease-in-out) infinite; }
.ic-copies .cp2 { animation: problem-copy2 4.2s var(--ease-in-out) infinite; }

/* 03 hourglass: sand drains through a falling stream, then the glass flips */
.ic-glass .hg { transform-origin: 100px 100px; animation: problem-flip 4.5s var(--ease-in-out) infinite; }
.ic-glass .sand-top { fill: currentColor; stroke: none; transform-origin: 100px 92px; animation: problem-drain 4.5s linear infinite; }
.ic-glass .sand-bot { fill: currentColor; stroke: none; transform-origin: 100px 154px; animation: problem-fill 4.5s linear infinite; }
.ic-glass .stream { stroke-width: 2.5; stroke-dasharray: 4 7; animation: problem-stream 4.5s linear infinite; }

/* 04 phone: the page is too wide, so it keeps sliding sideways; a crack draws across the screen */
.ic-phone .blk { fill: currentColor; stroke: none; opacity: 0.28; }
.ic-phone .slide { animation: problem-slide 4s var(--ease-in-out) infinite; }
.ic-phone .sb-track { stroke-width: 3; opacity: 0.25; }
.ic-phone .sb-thumb { stroke-width: 3; animation: problem-thumb 4s var(--ease-in-out) infinite; }
.ic-phone .crack { stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: problem-crack 4s var(--ease-in-out) infinite; }

@keyframes problem-spin { to { transform: rotate(1turn); } }
@keyframes problem-copy1 { 0%, 12% { transform: none; } 32%, 78% { transform: translate(18px, 18px); } 92%, 100% { transform: none; } }
@keyframes problem-copy2 { 0%, 24% { transform: none; } 44%, 72% { transform: translate(36px, 36px); } 88%, 100% { transform: none; } }
@keyframes problem-flip { 0%, 80% { transform: none; } 100% { transform: rotate(180deg); } }
@keyframes problem-drain { 0% { transform: none; } 78%, 100% { transform: scale(0); } }
@keyframes problem-fill { 0% { transform: scale(0); } 78%, 100% { transform: none; } }
@keyframes problem-stream { 0% { opacity: 1; stroke-dashoffset: 0; } 76% { opacity: 1; stroke-dashoffset: -44; } 80%, 100% { opacity: 0; stroke-dashoffset: -44; } }
@keyframes problem-slide { 0%, 10% { transform: none; } 45%, 60% { transform: translateX(-56px); } 92%, 100% { transform: none; } }
@keyframes problem-thumb { 0%, 10% { transform: none; } 45%, 60% { transform: translateX(32px); } 92%, 100% { transform: none; } }
@keyframes problem-crack { 0%, 15% { stroke-dashoffset: 1; opacity: 1; } 45%, 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

@media (max-width: 760px) {
  /* One column per panel: the drawing above the words */
  .problem-panel { flex-basis: 86vw; grid-template-columns: 1fr; align-content: center; gap: 24px; min-height: 66svh; padding: 0 20px; }
  .problem-panel:last-child { padding: 40px 28px; }
  .problem-art { width: 52%; }
}

/* ==========================================================================
   SOLUTION: steps scroll on the left; on the right a sticky phone acts each one out on a
   concept site. site.js sets data-state (pre, 0, 1, 2) and data-size (desktop, tablet,
   phone) on .fix-stage.
   ========================================================================== */
.fix {
  --fix-gap: clamp(32px, 5vw, 96px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--fix-gap);
  align-items: start;
  /* A black rule under the heading, with a vertical one dropping from it between the steps and the browser */
  border-top: 2px solid var(--ink);
  padding-top: clamp(32px, 4vw, 56px);
}

.fix::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  /* the middle of the gap: past the first column (1 of the 2.1 shares) plus half the gap */
  left: calc((100% - var(--fix-gap)) / 2.1 + var(--fix-gap) / 2);
  width: 2px;
  margin-left: -1px;
  background: var(--ink);
}

/* Desktop: the brand's red dot rides the vertical rule (site.js sets --y and .is-on). It appears once the
   browser sticks and reaches the bottom just before the booking card's date lifts off on the path */
.fix-dot {
  position: absolute;
  top: 0;
  left: calc((100% - var(--fix-gap)) / 2.1 + var(--fix-gap) / 2);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate3d(0, var(--y, 0px), 0);
  scale: 0;
  transition: scale 0.4s var(--ease);
  pointer-events: none;
}

.fix-dot.is-on {
  scale: 1;
}

/* Room under the last step, so the browser holds step 03 for a while before the section moves on */
.fix-steps {
  padding-bottom: 24vh;
}

.fix-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 78vh;
  min-height: 78svh;
}

.fix-num {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}

/* Each step's proof figure, like a magazine pull-stat: a big number in the display face over a rule */
.fix-proof {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin: 4px 0 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.fix-stat {
  font-family: var(--font-display);
  font-size: clamp(6rem, 13vw, 12rem);
  line-height: 0.82;
  letter-spacing: -0.01em;
  color: var(--c-text);
}

.fix-stat-label {
  max-width: 12ch;
  padding-bottom: 0.4em;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
}

.fix-step h3 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

/* The key word of each step's title wears the step's colour */
.fix-key {
  color: var(--c-text);
}

.fix-step p {
  max-width: 34ch;
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}

.fix-solves {
  align-self: flex-start;
  margin-top: 28px;
  padding: 8px 14px;
  border: 1px solid var(--c-text);
  border-radius: 999px;
  color: var(--c-text);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* --c is the step's colour; --c-text is the same hue tuned to read on the page */
.fix-step { --c-text: var(--c); }

:root[data-theme="dark"] .fix-step { --c-text: var(--c-lite); }

.fix-stage-col {
  position: sticky;
  top: calc(var(--header-h) + 8svh);
}

/* The stage is a container, so everything on it scales with it. A phone on the left tells each step,
   with the point made beside it. In step 02 (data-state 1) it moves to the top middle, with the point made
   under it, and becomes each screen in turn (data-size; the tablet is landscape, so it still gets the
   site's tablet layout at that height): --pw, --ph and --pr are its width, height and corner radius,
   and --top the room the notch needs at the top of the screen */
.fix-stage {
  --pw: 30%;
  --ph: 92%;
  --pr: 5cqw;
  --top: 4cqw;
  position: relative;
  width: min(100%, 60svh * 4 / 3);
  aspect-ratio: 4 / 3;
  margin-inline: auto;
  container-type: inline-size;
}

.fix-stage[data-state="1"] { --pw: 100%; --ph: 72%; --pr: 1.6cqw; --top: 0cqw; }
.fix-stage[data-state="1"][data-size="tablet"] { --pw: 64%; --pr: 3cqw; }
.fix-stage[data-state="1"][data-size="phone"] { --pw: 26%; --pr: 5cqw; --top: 4cqw; }

.fx-caption {
  margin-top: 16px;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

/* Each step's parts ([data-s] lists the steps a part shows in; site.js marks the current ones .is-on).
   The [data-in] parts of a scene come in after it, each after its own --d */
.js .fix-stage [data-s] {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.js .fix-stage [data-s].is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease 0.15s, visibility 0s;
}

.js .fix-stage [data-in] {
  opacity: 0;
  transform: translateY(2.4cqw);
  transition: opacity 0.4s ease, transform 0.6s var(--ease);
}

.js .fix-stage .is-on [data-in] {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease var(--d, 0.2s), transform 1s var(--ease) var(--d, 0.2s);
}

/* Without JS: just the finished design */
html:not(.js) .fix-stage [data-s]:not([data-s~="0"]) { display: none; }

/* The device: a phone, or in step 02 a tablet or a desktop */
.fx-device {
  position: absolute;
  left: 4%;
  top: calc((100% - var(--ph)) / 2);
  width: var(--pw);
  height: var(--ph);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0.9cqw solid #161616;
  border-radius: var(--pr);
  background: #161616;
  box-shadow: 0 40px 80px -40px rgba(18, 18, 18, 0.55);
  transition: left 0.9s var(--ease-in-out), top 0.9s var(--ease-in-out), width 0.9s var(--ease-in-out), height 0.9s var(--ease-in-out), border-radius 0.9s var(--ease-in-out);
}

.fix-stage[data-state="1"] .fx-device {
  left: calc((100% - var(--pw)) / 2);
  top: 0;
}

/* On the dark page a faint outline keeps the black bezel from disappearing */
:root[data-theme="dark"] .fx-device {
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}

.fx-notch {
  position: absolute;
  top: 1cqw;
  left: 50%;
  z-index: 3;
  width: 8cqw;
  height: 2cqw;
  translate: -50% 0;
  border-radius: 99px;
  background: #161616;
  transition: opacity 0.3s ease;
}

.fix-stage[data-state="1"]:not([data-size="phone"]) .fx-notch { opacity: 0; }

/* Desktop: a browser bar across the top */
.fx-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.8cqw;
  height: 0;
  padding: 0 1.4cqw;
  overflow: hidden;
  background: #e4dfd6;
  transition: height 0.9s var(--ease-in-out);
}

.fix-stage[data-state="1"][data-size="desktop"] .fx-bar { height: 3.4cqw; }

.fx-bar i {
  flex: none;
  width: 1cqw;
  height: 1cqw;
  border-radius: 50%;
  background: #c9c2b6;
}

.fx-url {
  margin-inline: auto;
  padding: 0.3cqw 1.8cqw;
  border-radius: 999px;
  background: #f3efe7;
  color: #6f6a62;
  font-size: clamp(8px, 1.4cqw, 11px);
  white-space: nowrap;
}

.fx-screen {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: calc(var(--pr) - 0.9cqw);
  background: #fff;
}

.fix-stage[data-state="1"][data-size="desktop"] .fx-screen { border-top-left-radius: 0; border-top-right-radius: 0; }

.fx-tpl,
.fx-site,
.fx-lock {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* The template and the site lay themselves out by the screen's width */
.fx-tpl,
.fx-site {
  container-type: inline-size;
}

/* Room for the notch at the top of the phone's screen */
.fx-screen > .fx-tpl { padding-top: var(--top); }
.fx-screen > .fx-site { padding-top: calc(3cqw + var(--top)); }

/* --- Template: system fonts, grey boxes, placeholder images --- */
.fx-tpl {
  display: flex;
  flex-direction: column;
  gap: 3cqw;
  background: #fff;
  color: #444;
  font-family: Arial, Helvetica, sans-serif;
}

.tp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2cqw 4cqw;
  background: #dcdcdc;
  font-size: 1.8cqw;
}

.tp-logo {
  padding: 0.6cqw 1.6cqw;
  border: 1px solid #999;
  font-weight: 700;
}

.tp-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8cqw;
  margin: 0 4cqw;
  padding: 5cqw 4cqw;
  background: #cfcfcf;
  text-align: center;
}

.tp-h {
  font-family: "Times New Roman", Times, serif;
  font-size: 4.6cqw;
  color: #333;
}

.tp-sub {
  font-size: 1.8cqw;
  color: #666;
}

.tp-btn {
  padding: 1cqw 3cqw;
  background: #3b6fd8;
  color: #fff;
  font-size: 1.7cqw;
}

.tp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2cqw;
  margin: 0 4cqw;
  font-size: 1.7cqw;
  text-align: center;
}

.tp-ph {
  display: block;
  aspect-ratio: 16 / 10;
  margin-bottom: 1cqw;
  background:
    linear-gradient(to top right, transparent calc(50% - 0.5px), #bbb, transparent calc(50% + 0.5px)),
    linear-gradient(to bottom right, transparent calc(50% - 0.5px), #bbb, transparent calc(50% + 0.5px)),
    #e6e6e6;
}

/* --- Concept site: a renovation company's own design --- */
.fx-site {
  display: flex;
  flex-direction: column;
  gap: 4cqw;
  padding: 3cqw 5cqw;
  background: #f3efe7;
  color: #1d2a22;
  font-family: var(--font-body);
}

.cs-nav {
  display: flex;
  align-items: center;
  gap: 3cqw;
}

.cs-logo {
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 2.8cqw;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cs-links {
  display: flex;
  gap: 2.4cqw;
}

.cs-links i,
.cs-lines i,
.cs-cards i {
  display: block;
  height: 0.9cqw;
  border-radius: 99px;
  background: rgba(29, 42, 34, 0.25);
}

.cs-links i { width: 6cqw; }

.cs-btn,
.cs-cta {
  padding: 1cqw 2.4cqw;
  border-radius: 99px;
  background: #1d4d3a;
  color: #f3efe7;
  font-size: 1.6cqw;
  font-weight: 500;
  white-space: nowrap;
}

.cs-burger {
  display: none;
  flex-direction: column;
  gap: 1.6cqw;
}

.cs-burger i {
  display: block;
  width: 7cqw;
  height: 1cqw;
  border-radius: 99px;
  background: #1d2a22;
}

.cs-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4cqw;
  align-items: center;
}

.cs-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.6cqw;
}

.cs-h {
  font-family: var(--font-display);
  font-size: 7.2cqw;
  line-height: 0.92;
  text-transform: uppercase;
}

.cs-h em {
  font-style: normal;
  color: #c8643b;
}

.cs-lines {
  display: grid;
  gap: 1.2cqw;
  width: 80%;
}

.cs-lines i:last-child { width: 70%; }

/* Illustration: a house under the sun on a deep green ground */
.cs-art {
  position: relative;
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  border-radius: 1.6cqw;
  background: linear-gradient(165deg, #2f6b52, #1d4d3a 70%);
}

.cs-art::before {
  content: "";
  position: absolute;
  top: 14%;
  right: 14%;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e8b86a;
}

.cs-art::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
  height: 50%;
  background: #f3efe7;
  clip-path: polygon(0 42%, 50% 0, 100% 42%, 100% 100%, 64% 100%, 64% 66%, 36% 66%, 36% 100%, 0 100%);
}

.cs-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2cqw;
}

.cs-cards > div {
  display: grid;
  gap: 1.2cqw;
  padding: 2.2cqw;
  border-radius: 1.4cqw;
  background: #fff;
}

.cs-cards b {
  width: 3.4cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #c8643b;
}

.cs-cards i:last-child { width: 60%; }

/* Tablet width: the cards go to two */
@container (max-width: 460px) {
  .cs-cards { grid-template-columns: repeat(2, 1fr); }
  .cs-cards > div:nth-child(3) { display: none; }
  .cs-logo { font-size: 4cqw; }
  .cs-btn, .cs-cta { font-size: 2.6cqw; }
}

/* Phone width: menu button, stacked hero, one card */
@container (max-width: 300px) {
  .fx-site { padding: 5cqw 6cqw; gap: 6cqw; }
  .cs-logo { font-size: 7cqw; }
  .cs-links, .cs-btn { display: none; }
  .cs-burger { display: flex; }
  .cs-hero { grid-template-columns: 1fr; gap: 6cqw; }
  .cs-copy { gap: 4cqw; }
  .cs-h { font-size: 13cqw; }
  .cs-lines { gap: 2.4cqw; }
  .cs-links i, .cs-lines i, .cs-cards i { height: 2cqw; }
  .cs-cta { padding: 2.4cqw 5cqw; font-size: 4.6cqw; }
  .cs-art { aspect-ratio: 16 / 11; border-radius: 3cqw; }
  .cs-cards { grid-template-columns: 1fr; }
  .cs-cards > div:nth-child(n + 2) { display: none; }
  .cs-cards > div { padding: 4cqw; gap: 2.4cqw; border-radius: 3cqw; }
  .cs-cards b { width: 7cqw; }
}

/* --- Step 03: the phone's lock screen fills with notifications --- */
.fx-lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1cqw;
  padding: 7cqw 1.4cqw 0;
  background: linear-gradient(170deg, #2f6b52, #1d4d3a 55%, #153629);
  color: #f3efe7;
}

.fx-time {
  font-size: 8cqw;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.fx-date {
  margin-bottom: 2.4cqw;
  font-size: clamp(8px, 1.4cqw, 11px);
  opacity: 0.8;
}

.fx-ntf {
  display: flex;
  align-items: center;
  gap: 1cqw;
  width: 100%;
  padding: 1.1cqw;
  border-radius: 2cqw;
  background: rgba(243, 239, 231, 0.94);
  color: #1d2a22;
  font-size: clamp(8px, 1.3cqw, 11px);
  line-height: 1.25;
}

.fx-ntf small {
  display: block;
  opacity: 0.65;
}

.fx-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 3cqw;
  height: 3cqw;
  border-radius: 50%;
  background: #1d4d3a;
  color: #f3efe7;
}

.fx-ico svg { width: 50%; height: 50%; }

/* --- Beside the phone: the point of each step, in big type --- */
.fx-side {
  position: absolute;
  left: 42%;
  right: 0;
  top: 50%;
  translate: 0 -50%;
}

.fx-side .eyebrow {
  display: block;
  margin-bottom: 1.6cqw;
  font-size: clamp(10px, 1.5cqw, 13px);
}

.fx-big {
  display: block;
  font-family: var(--font-display);
  font-size: 15cqw;
  font-weight: 400;
  line-height: 0.9;
  color: var(--muted);
}

.fx-side p {
  max-width: 38cqw;
  margin-top: 2cqw;
  color: var(--ink-2);
  font-size: clamp(11px, 2cqw, 16px);
  line-height: 1.4;
}

.fx-wm {
  display: block;
  font-family: var(--font-display);
  font-size: 7.4cqw;
  line-height: 0.92;
  text-transform: uppercase;
  color: #1d4d3a;
}

:root[data-theme="dark"] .fx-wm { color: #e8b86a; }

.fx-swatches {
  display: flex;
  gap: 1.2cqw;
  margin-top: 2.4cqw;
}

.fx-swatches i {
  width: 4.4cqw;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.fx-side-03 {
  position: absolute;
  inset: 0;
}

/* Step 03: the week's bookings, right-aligned so the first one's bullet is the booking card's red date
   (--dx, --dy: its centre, --dd: its size, from site.js) */
.fx-week {
  position: absolute;
  right: calc(100% - var(--dx, 81%) - var(--dd, 3cqw) / 2);
  top: calc(var(--dy, 19%) - var(--dd, 3cqw) / 2);
  display: grid;
  gap: 1.8cqw;
  list-style: none;
}

.fx-week li {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.4cqw;
  height: var(--dd, 3cqw);
  color: var(--ink-2);
  font-size: clamp(10px, 1.8cqw, 14px);
  white-space: nowrap;
}

.fx-week li:first-child {
  color: var(--ink);
  font-weight: 500;
}

.fx-week li i {
  flex: none;
  width: var(--dd, 3cqw);
  height: var(--dd, 3cqw);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.fx-week li:first-child i { border-style: dashed; }

.fx-say {
  position: absolute;
  left: 42%;
  right: 0;
  bottom: 8%;
  font-family: var(--font-display);
  font-size: 6.4cqw;
  line-height: 0.92;
  text-transform: uppercase;
}

.fx-say em {
  font-style: normal;
  color: var(--accent);
}

/* Step 02's line, centred under the device */
.fx-say.is-under {
  left: 0;
  bottom: 0;
  text-align: center;
}

.fx-say.is-under > span { display: block; }

/* The booking card stays (invisible) so its red date is where the Process path picks the dot up;
   only the date shows, as the first booking of the week */
.fx-widget {
  position: absolute;
  z-index: 2;
  display: flex;
  gap: 1.4cqw;
  padding: 1.8cqw 2cqw;
  border: 1px solid transparent;
  font-size: clamp(10px, 1.9cqw, 14px);
  line-height: 1.3;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.5s ease, transform 0.8s var(--ease);
  pointer-events: none;
  visibility: hidden;
}

.fix-stage[data-state="2"] .fx-widget {
  opacity: 1;
  transform: none;
  transition-delay: 0.7s;
}

.fx-book {
  top: 4%;
  right: 0;
  width: 30%;
  flex-direction: column;
}

.fw-title {
  font-weight: 500;
}

.fw-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.8cqw;
}

.fw-cal i {
  aspect-ratio: 1;
  border-radius: 50%;
}

.fw-cal i.is-on {
  visibility: visible;
  background: var(--accent);
}

.fw-btn {
  padding: 0.8cqw 0;
  font-size: 0.9em;
}

/* Phones: the browser stays at the top of the screen while the steps scroll up beneath it */
@media (max-width: 860px) {
  .fix { grid-template-columns: 1fr; gap: 0; border-top: 0; padding-top: 0; }
  .fix::before, .fix-dot { display: none; }
  /* Here the line sits along the bottom of the pinned browser, between it and the text scrolling below */
  .fix-stage-col { border-bottom: 2px solid var(--ink); }
  .fix-stage-col {
    order: -1;
    top: var(--header-h);
    z-index: 2;
    padding: 12px 0 8px;
    background: var(--bg);
  }
  /* Steps fade out as they slide up under the browser, rather than meeting a hard edge */
  .fix-stage-col::after {
    content: "";
    position: absolute;
    /* just below the line (100% is the inside of the border, so the fade would cover it) */
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(var(--bg), transparent);
    pointer-events: none;
  }
  .fix-stage { width: min(100%, 42svh * 4 / 3); }
  .fx-caption { margin-top: 8px; }
  .fix-step { min-height: 62svh; }
}

/* Without JS: no sticky stage, the steps simply read in turn under the finished site */
html:not(.js) .fix-stage-col { position: static; }
html:not(.js) .fix-step { min-height: 0; padding: 32px 0; }

/* ==========================================================================
   METHOD: four phases along a timeline; each comes up as the path's dot reaches it
   (.is-reached, from site.js)
   ========================================================================== */
/* Extra room above the process, where the path's dot crosses from the right margin to the left */
#method {
  padding-top: clamp(200px, 36vh, 380px);
}

.method {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px var(--gutter);
  list-style: none;
}

.method-step {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* The number, set huge in the display face, waits below the timeline in a mask and rises into place when
   the dot reaches its step */
.method-num-mask {
  display: block;
  overflow: hidden;
  padding: 0.04em 0 0.02em;
  font-size: clamp(6rem, 12vw, 11rem);
}

.method-num {
  --num-ink: var(--ink);
  display: block;
  font-family: var(--font-display);
  font-size: 1em;
  font-weight: 400;
  /* A full line box, so the mask doesn't clip the tops and feet of the figures */
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--num-ink);
}

.js .method-num {
  transform: translateY(102%);
  transition: transform 1s var(--ease);
}

.js .method-step.is-reached .method-num {
  transform: none;
}

/* Where the dot lands: a ring opens off the timeline */
.method-step::before {
  content: "";
  position: absolute;
  left: -6px;
  top: -6px;
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.js .method-step.is-reached::before {
  animation: method-ring 1.1s var(--ease) both;
}

@keyframes method-ring {
  from { opacity: 1; scale: 1; }
  to { opacity: 0; scale: 4.5; }
}

/* Stacked, the dot zigzags in from either side, so the ring is left to the single row */
@media (max-width: 960px) {
  .method-step:not(:first-child)::before { display: none; }
}

/* What the phase hands you: chips that tick in one after another once it's reached */
.method-get {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  list-style: none;
}

.method-get li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 10px;
  border-radius: 99px;
  background: var(--bg-raised);
  font-size: 0.8125rem;
  color: var(--ink);
}

.method-get li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 7.2 2 2 4-4.4'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.js .method-get li {
  opacity: 0;
  translate: 0 10px;
  transition: opacity 0.5s ease, translate 0.7s var(--ease);
}

.js .method-step.is-reached .method-get li {
  opacity: 1;
  translate: none;
}

.js .method-step.is-reached .method-get li:nth-child(1) { transition-delay: 0.35s; }
.js .method-step.is-reached .method-get li:nth-child(2) { transition-delay: 0.5s; }
.js .method-step.is-reached .method-get li:nth-child(3) { transition-delay: 0.65s; }

/* Ink pour: each number waits as a faint ghost, and when the path's dot reaches its step (.is-reached)
   ink pours down into it from the top behind a pink edge. The ink is a second copy of the number in a
   curtain that slides down while the copy inside it slides the other way, so it stays in place. The
   edge is a third, pink copy seen through a thin window that rides the curtain's edge the same way.
   Only transforms move, nothing is repainted. */
.method-num { position: relative; }
.method-ink, .method-band { display: none; }
.js .method-num { color: color-mix(in srgb, var(--num-ink) 14%, transparent); }
.js .method-ink { display: block; position: absolute; inset: 0; overflow: hidden; transform: translateY(-101%); transition: transform 1.1s var(--ease-in-out); }
.js .method-ink > span { display: block; color: var(--num-ink); transform: translateY(101%); transition: transform 1.1s var(--ease-in-out); }
.js .method-step.is-reached .method-ink, .js .method-step.is-reached .method-ink > span { transform: none; }
/* the window is 7% of the number's height: it starts just above it and ends just below it (1430% of its
   own height), while the pink copy inside moves the opposite way, in its own (the number's) height */
.js .method-band { display: block; position: absolute; left: 0; right: 0; top: 0; height: 7%; overflow: hidden; transform: translateY(-100%); transition: transform 1.1s var(--ease-in-out); }
.js .method-band > span { display: block; color: var(--accent); transform: translateY(7%); transition: transform 1.1s var(--ease-in-out); }
.js .method-step.is-reached .method-band { transform: translateY(1430%); }
.js .method-step.is-reached .method-band > span { transform: translateY(-100%); }

.method-step h3 {
  margin: 14px 0 12px;
  font-size: clamp(1.5rem, 2.3vw, 2.125rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.method-step p {
  max-width: 34ch;
  font-size: clamp(1.0625rem, 1.25vw, 1.25rem);
  line-height: 1.45;
  color: var(--ink-2);
}

.js .method-step > * {
  opacity: 0.25;
  transition: opacity 0.6s ease, color 0.5s ease;
}

/* The number isn't dimmed: its ghost fill already reads as "not reached yet"; nor are the chips, which
   come in on their own */
.js .method-step > .method-num-mask,
.js .method-step > .method-get {
  opacity: 1;
}

.js .method-step.is-reached > * {
  opacity: 1;
}

/* ==========================================================================
   PATH (solution → process): an overlay in page coordinates holding the trail the dot draws
   and the dot itself; site.js sizes it to the page, shapes the path and moves the dot
   ========================================================================== */
.path-layer {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  overflow: visible;
  pointer-events: none;
}

.path-layer.is-ready {
  display: block;
}

.path-trail {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.path-dot {
  fill: var(--accent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.path-layer.is-flying .path-dot {
  opacity: 1;
}

/* The dot, as its own element above the line (site.js moves it by transform) */
.path-dot-el {
  position: absolute;
  left: -6px;
  top: -6px;
  z-index: 4;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
  will-change: transform;
  transition: opacity 0.25s ease;
}

.path-dot-el.is-flying {
  opacity: 1;
}

/* the full path, undrawn: it only gives the dot its position */
.path-geom {
  fill: none;
  stroke: none;
}

/* Once the dot has lifted off, the booking card's date gives up its own */
.fw-cal i.is-on {
  transition: opacity 0.2s ease;
}

.fix-stage.is-dot-gone .fw-cal i.is-on {
  opacity: 0;
}

.method-step:nth-child(4) .method-num { --num-ink: var(--title-hi); }

@media (max-width: 960px) {
  .method { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .method { grid-template-columns: 1fr; gap: 40px; }
  .method-step h3 { margin-top: 20px; }
}

/* ==========================================================================
   ABOUT: a portrait holds on the left (sticky) while the statement and the reviews scroll past on
   the right
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px clamp(32px, 5vw, 96px);
  align-items: start;
}

.about-side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 14px;
}

.about-side {
  justify-items: start;
}

/* Sized to fit the screen under the header, caption included */
.about-photo {
  width: min(88%, (100svh - var(--header-h) - 120px) * 0.8);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-raised);
  aspect-ratio: 4 / 5;
}

.about-side .about-caption {
  width: min(88%, (100svh - var(--header-h) - 120px) * 0.8);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

.about-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.about-copy {
  display: grid;
  gap: clamp(48px, 6vw, 80px);
  min-width: 0;
}

.about-statement {
  font-size: clamp(1.5rem, 2.6vw, 2.375rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}

.about-statement .muted {
  color: var(--muted);
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-side { position: static; }
  .about-photo, .about-side .about-caption { width: 100%; }
  .about-photo { aspect-ratio: 4 / 3; }
  .about-photo img { object-position: 50% 38%; }
}

/* ==========================================================================
   REVIEWS: one quote at a time, cross-fading
   ========================================================================== */
.reviews {
  display: grid;
  gap: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.reviews-side {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.reviews-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reviews-count {
  margin-right: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.round-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.round-btn:hover {
  border-color: var(--ink);
}

.reviews-stack {
  display: grid;
}

.review {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.8s var(--ease);
}

.review.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition-delay: 0.15s;
}

html:not(.js) .review { position: static; opacity: 1; transform: none; grid-area: auto; }
html:not(.js) .review + .review { margin-top: 48px; }

.review p {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.review p::before { content: "“"; }
.review p::after { content: "”"; }

.review cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px var(--gutter);
}

.section-head-stack {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* FAQ heading stays in view, just under the header, while the questions scroll past */
.faq-layout .section-head-stack {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
}

.section-head-stack .section-title {
  margin-top: 24px;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
}

.faq-list {
  grid-column: 2 / -1;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px 0;
  text-align: left;
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  transition: color 0.2s;
}

.faq-question-btn:hover {
  color: var(--ink-2);
}

.faq-icon {
  position: relative;
  flex: 0 0 14px;
  height: 14px;
  transition: transform 0.4s var(--ease);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 28px;
  max-width: 64ch;
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-layout .section-head-stack { position: static; }
  .faq-list { grid-column: 1; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: 0 0 32px;
}

.footer-statement {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 4px solid var(--ink);
}

.footer-headline {
  font-size: clamp(2.25rem, 6vw, 5.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

/* The brand mark, < • >, as big as the headline beside it: ink brackets around the red dot */
.footer-mark {
  --h: clamp(56px, 10vw, 150px);
  flex: none;
  display: flex;
  align-items: center;
  gap: calc(var(--h) * 0.14);
  height: var(--h);
}

.footer-br {
  height: 100%;
  width: auto;
  aspect-ratio: 12 / 20;
  overflow: visible;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-dot {
  width: calc(var(--h) * 0.16);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
}

.footer-cta {
  margin-top: clamp(24px, 3vw, 40px);
}

.footer-blurb {
  max-width: 62ch;
  margin-top: clamp(56px, 8vw, 112px);
  font-size: clamp(1.125rem, 1.7vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink-2);
  text-wrap: pretty;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a:hover {
  color: var(--hi);
}

@media (max-width: 760px) {
  .footer-bottom { flex-direction: column; }
}

/* FAQ → footer: once the FAQ is all but read and the footer mark is on screen, the FAQ heading's full stop
   drops onto the footer's thick rule, bounces on it twice like a trampoline (the rule is redrawn while it
   bends) and is flung into the mark as its brackets close, then swells once. site.js (13) drives it on a
   layer in page coordinates; without it the mark simply shows whole. */
.fd-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: 30;
  pointer-events: none;
}

.fd-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  will-change: transform;
}

.fd-rule {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  overflow: visible;
}

.fd-rule path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
}

/* Landing: the dot swells a little and settles back */
.footer-mark.is-home .footer-dot { animation: fd-pop 0.8s both; }

@keyframes fd-pop {
  0% { transform: scale(1); animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
  35% { transform: scale(1.45); animation-timing-function: cubic-bezier(0.5, 0, 0.2, 1); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   CASE STUDY (work/*.html): the name with a red full stop, the facts along a hairline, the project's
   branded cover (the work wall's card, full width), then the story in numbered sections. A hairline
   under the header draws itself across as the page is read, the red dot riding its head (site.js 14).
   ========================================================================== */
.case-progress {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 901; /* over the header bar (900), so the dot shows whole on its bottom edge; under the drawer (950) */
  height: 1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.case-progress.is-on { opacity: 1; }

.case-progress span {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

.case-progress b {
  position: absolute;
  top: -3.5px;
  left: 0;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(calc(var(--p, 0) * 100vw));
}

.case-hero {
  padding-top: calc(var(--header-h) + clamp(32px, 6vw, 88px));
}

/* All work and Home, side by side above the title */
.case-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.case-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.25s var(--ease);
}

.case-back svg { transition: transform 0.3s var(--ease); }
.case-back:hover { color: var(--ink); }
.case-back:hover svg { transform: translateX(-3px); }

.case-head { margin-bottom: clamp(32px, 4vw, 56px); }

/* The name, set big, ending in the brand's red dot for a full stop */
.case-title {
  font-size: clamp(3.25rem, 10vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.case-stop {
  display: inline-block;
  width: 0.15em;
  height: 0.15em;
  margin-left: 0.05em;
  border-radius: 50%;
  background: var(--accent);
}

.js .case-stop { animation: cs-stop-in 0.9s 0.35s var(--ease) both; }

@keyframes cs-stop-in {
  from { transform: translateY(-1.2em) scale(0.4); opacity: 0; }
  60% { transform: translateY(0.06em) scale(1.12, 0.88); opacity: 1; }
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px var(--gutter);
  padding: 20px 0 clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.case-facts dt {
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.case-facts dd { font-size: 1rem; line-height: 1.45; }

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.case-link svg { width: 12px; height: 12px; }
.case-link:hover { color: var(--accent); border-color: currentColor; }

/* The cover: the work wall's branded card (toned film and logo), across the page */
.case-cover {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  background: var(--brand-deep);
  isolation: isolate;
  container-type: inline-size;
}

.case-cover .brand-logo { font-size: 3.6cqi; }
/* The script wordmark reads small at the same size, as it does on the wall (8.2cqi there) */
.case-cover .brand-logo-kennels { font-size: 6cqi; }
.case-cover .brand-logo.is-image img { width: 28cqi; }
.case-cover .brand-logo-amp.is-image img { width: 15cqi; }

@media (max-width: 760px) {
  .case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-cover { aspect-ratio: 4 / 5; }
  .case-cover .brand-logo { font-size: 7cqi; }
  .case-cover .brand-logo.is-image img { width: 50cqi; }
  .case-cover .brand-logo-amp.is-image img { width: 32cqi; }
}

/* The brief: two columns of prose */
.case-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px clamp(32px, 5vw, 96px);
}

.case-cols p {
  max-width: 60ch;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.case-sub {
  margin-bottom: 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

@media (max-width: 760px) {
  .case-cols { grid-template-columns: 1fr; }
}

/* The orange bands (the numbers, and the next case study): full width, burnt orange, big black type.
   The ink is fixed, so the bands read the same in the dark theme. */
.case-band { background: var(--accent); color: #121212; }
.case-band a { color: inherit; }

/* The numbers, set huge in the display face */
.case-stats-wrap { margin-top: clamp(64px, 8vw, 120px); padding: clamp(24px, 3vw, 40px) 0; }

.case-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.case-stats li {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 28px);
}

.case-stats li:first-child { padding-left: 0; }
.case-stats li + li { border-left: 1px solid rgba(18, 18, 18, 0.28); }

.case-stats b {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 400;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
}

.case-stats small { margin-left: 0.06em; font-size: 0.42em; vertical-align: 0.95em; }
.case-stats span { max-width: 22ch; font-size: 1rem; font-weight: 500; line-height: 1.35; }

@media (max-width: 760px) {
  .case-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .case-stats li:nth-child(n + 3) { border-top: 1px solid rgba(18, 18, 18, 0.28); }
}

/* What we built: text and a framed screenshot side by side, swapping sides each row */
.case-features {
  display: grid;
  gap: clamp(72px, 10vw, 160px);
  list-style: none;
}

.case-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 32px clamp(32px, 5vw, 96px);
  align-items: center;
}

.case-feature:nth-child(even) .case-feature-text { order: 2; }

.case-feature-text h3 {
  margin: 12px 0 16px;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.case-feature-text p {
  max-width: 48ch;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  list-style: none;
}

.case-tags li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

/* A browser window: a quiet bar with the address, then the page */
.case-shot { position: relative; }

.case-browser {
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -48px rgba(18, 18, 18, 0.5);
}

.case-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.case-browser-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.case-browser-bar span {
  flex: 1;
  margin-right: 30px;
  overflow: hidden;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-browser img { width: 100%; }

/* A second page tucked in front of the first, lower right */
.case-shot.has-second { padding: 0 12% 18% 0; }

.case-browser-second {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  box-shadow: 0 40px 80px -30px rgba(18, 18, 18, 0.6);
}

@media (max-width: 860px) {
  .case-feature { grid-template-columns: 1fr; }
  .case-feature:nth-child(even) .case-feature-text { order: 0; }
  .case-browser-bar { height: 26px; padding: 0 10px; }
  .case-browser-bar i { width: 7px; height: 7px; }
  .case-browser-bar span { font-size: 0.6875rem; }
}

/* On the phone: three phones in a row, the middle one a little lower */
.case-phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 48px);
  /* Each phone keeps its own height: stretched to the row (which the lowered middle one makes taller), the
     outer frames grew an empty strip of bezel below the screen */
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

.case-phone {
  overflow: hidden;
  padding: 7px;
  border-radius: clamp(24px, 3.4vw, 46px);
  background: #121212;
  box-shadow: 0 40px 80px -40px rgba(18, 18, 18, 0.55);
}

:root[data-theme="dark"] .case-phone { box-shadow: 0 0 0 1px rgba(238, 233, 226, 0.14); }

.case-phone img { border-radius: clamp(18px, 2.8vw, 40px); }
.case-phone:nth-child(2) { margin-top: clamp(32px, 6vw, 96px); }

@media (max-width: 600px) {
  .case-phones {
    grid-template-columns: repeat(3, 72%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 24px;
    scrollbar-width: none;
  }
  .case-phones::-webkit-scrollbar { display: none; }
  .case-phone { scroll-snap-align: center; }
  .case-phone:nth-child(2) { margin-top: 0; }
}

/* Under the hood: a numbered list on hairlines */
.case-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 96px);
  list-style: none;
}

.case-stack li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 16px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
}

.case-stack .index-num { grid-row: span 2; padding-top: 6px; }

.case-stack h3 {
  margin-bottom: 10px;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.case-stack p { max-width: 52ch; color: var(--ink-2); }

@media (max-width: 760px) {
  .case-stack { grid-template-columns: 1fr; }
}

/* Close: the next case study, set huge on the orange band */
.case-next-wrap { margin-top: clamp(64px, 8vw, 120px); padding: clamp(28px, 3vw, 40px) 0 clamp(56px, 7vw, 104px); }
.case-next-meta { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid rgba(18, 18, 18, 0.28); font-size: 0.9375rem; font-weight: 500; }
.case-next-back { display: inline-flex; align-items: center; gap: 8px; }
.case-next-back svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.case-next-back:hover svg { transform: translateX(-4px); }
.case-next { display: grid; gap: 14px; padding-top: clamp(32px, 5vw, 64px); }
.case-next small { font-size: 0.9375rem; font-weight: 600; }
.case-next-name { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.2em; font-family: var(--font-display); font-weight: 400; font-size: clamp(3.5rem, 11vw, 11rem); line-height: 0.88; text-transform: uppercase; }
.case-next-name svg { flex: none; width: 0.42em; height: 0.42em; margin-bottom: 0.1em; transition: transform 0.4s var(--ease); }
.case-next:hover .case-next-name svg { transform: translateX(0.12em); }
.case-next-kind { font-size: 1rem; color: rgba(18, 18, 18, 0.72); }
.case-band :is(a, small, span) { color: #121212; }
.case-band .case-next-kind { color: rgba(18, 18, 18, 0.72); }
@media (max-width: 560px) {
  .case-next-meta { flex-direction: column; gap: 8px; }
}

/* ==========================================================================
   WORK INDEX (work/index.html): every project as the wall's branded card, two to a row, with its name,
   kind and summary beneath. The wall's last card (.work-wall-all) leads here.
   ========================================================================== */
.work-index { padding-top: calc(var(--header-h) + clamp(32px, 6vw, 88px)); }

.wi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(56px, 7vw, 104px) var(--gutter);
  list-style: none;
}

/* Every other card sits a little lower, so the grid reads as a wall rather than a table */
@media (min-width: 761px) {
  .wi-item:nth-child(even) { margin-top: clamp(48px, 8vw, 128px); }
}

.wi-link { display: grid; gap: 22px; }

.wi-card {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  background: var(--brand-deep);
  isolation: isolate;
  container-type: inline-size;
  box-shadow: 0 40px 80px -48px rgba(18, 18, 18, 0.55);
  /* Keeps a playing film inside the rounded corners (some browsers let a video layer escape the radius) */
  clip-path: inset(0 round 18px);
}

.wi-card .brand-logo { transition: transform 0.8s var(--ease); }

.wi-text {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.wi-text .index-num { padding-top: 8px; }

.wi-text h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.wi-text small { display: block; margin-top: 6px; font-size: 0.875rem; color: var(--muted); }
.wi-text p { max-width: 46ch; margin-top: 14px; color: var(--ink-2); }

.wi-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
}

.wi-more svg { width: 12px; height: 12px; transition: transform 0.3s var(--ease); }

@media (hover: hover) {
  .wi-link:hover .work-wall-media img,
  .wi-link:hover .work-wall-media video { transform: scale(1.05); }
  .wi-link:hover .work-wall-media.is-soft img { transform: scale(1.12); }
  .wi-link:hover .brand-logo { transform: scale(1.04); }
  .wi-link:hover .wi-more svg { transform: translateX(3px); }
}

@media (max-width: 760px) {
  .wi-grid { grid-template-columns: 1fr; }
}

/* The wall's last card: an ink card that leads to the portfolio, its title ending in the red dot */
.work-wall-card.work-wall-all {
  grid-template: "count count" auto "title arrow" 1fr / 1fr auto;
  place-items: stretch;
  /* In px: cqi on the card itself would measure the stage, not the card */
  padding: clamp(22px, 2.6vw, 40px);
  background: #121212;
  color: #eee9e2;
}


/* Dark theme: the card turns white, its type ink */
:root[data-theme="dark"] .work-wall-card.work-wall-all { background: #eee9e2; color: #121212; }
:root[data-theme="dark"] .work-wall-all .wwa-count { color: rgba(18, 18, 18, 0.55); }

.wwa-count { grid-area: count; font-size: 3cqi; color: rgba(238, 233, 226, 0.6); }

.wwa-title {
  grid-area: title;
  align-self: end;
  font-size: 13cqi;
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.wwa-title i {
  display: inline-block;
  width: 0.15em;
  height: 0.15em;
  margin-left: 0.05em;
  border-radius: 50%;
  background: var(--accent);
}

.wwa-arrow {
  grid-area: arrow;
  align-self: end;
  width: 10cqi;
  height: 10cqi;
  margin-bottom: 1cqi;
  transition: transform 0.4s var(--ease);
}

@media (hover: hover) {
  .work-wall-all:hover .wwa-arrow { transform: translateX(1.5cqi); }
}


/* ==========================================================================
   LEGAL (privacy_statement.html) and NOT FOUND (404.html): the case study's head, then plain reading text
   ========================================================================== */
.legal, .notfound { padding-top: calc(var(--header-h) + clamp(32px, 6vw, 88px)); }
.notfound .case-title { font-size: clamp(3rem, 8vw, 7.5rem); }
/* The 404's two ways out: big links on a hairline, back home and on to the work */
.notfound .case-end { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(40px, 6vh, 72px); border-top: 1px solid var(--line); }
.notfound .case-end-link { display: grid; gap: 10px; padding: 24px 0 8px; }
.notfound .case-end-link.is-out { justify-items: end; text-align: right; }
.notfound .case-end-link small { font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.notfound .case-end-link span { display: inline-flex; align-items: center; gap: 0.3em; font-size: clamp(1.75rem, 4vw, 3.5rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.045em; transition: color 0.25s var(--ease); }
.notfound .case-end-link svg { width: 0.6em; height: 0.6em; flex: none; transition: transform 0.3s var(--ease); }
.notfound .case-end-link:hover span { color: var(--accent); }
.notfound .case-end-link:hover svg { transform: translateX(-4px); }
.notfound .case-end-link.is-out:hover svg { transform: translateX(4px); }
@media (max-width: 560px) {
  .notfound .case-end { grid-template-columns: 1fr; }
  .notfound .case-end-link.is-out { justify-items: start; text-align: left; border-top: 1px solid var(--line); margin-top: 24px; }
}

.legal-body {
  max-width: 68ch;
  margin-left: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.legal-body h2 {
  margin: 40px 0 12px;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.legal-body h2:first-child { margin-top: 12px; }
.legal-body p + p, .legal-body p + ul, .legal-body ul + p { margin-top: 12px; }
.legal-body ul { padding-left: 1.2em; }
.legal-body li + li { margin-top: 4px; }
.legal-body strong { color: var(--ink); font-weight: 500; }
.legal-body a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 1s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   THANKS PAGE (where the contact form lands without JavaScript)
   ========================================================================== */
.thanks {
  min-height: 70vh;
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 120px));
}

/* ==========================================================================
   SOLUTION, full screen ("Cuts"): a sticky frame plays one chapter per stretch of scroll
   (v2/solution.js): 00 a theme marketplace, 01 the client's site on a laptop, 02 one device per
   panel, 03 the accent field with what came in. Past the last chapter the field closes down onto
   the booked notification's icon, which shrinks into the dot that the Process path (site.js,
   section 10) lifts off from. The track is [data-fix], the frame the sticky .fix-stage-col and the
   dot [data-fix-stage] .fw-cal i.is-on, the hooks site.js looks for.
   ========================================================================== */

  /* ============================ The track and frame ============================ */
  .sol { position: relative; height: calc(280vh + 100vh); }
  /* The frame is the sticky column site.js measures; undo the homepage stage column's own styling */
  .sol .cut.fix-stage-col { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; border: 0; background: #eee9e2; order: 0; z-index: auto; }
  .sol .cut.fix-stage-col::after { display: none; }
  .cut { --bar: clamp(84px, 12svh, 124px); overflow: hidden; container-type: size; isolation: isolate; color: #121212; }
  .cut * { box-sizing: border-box; }
  /* every scene sits above the chapter bar, so the bar never covers anything */
  .cut .sc { position: absolute; left: 0; right: 0; top: 0; bottom: var(--bar); visibility: hidden; overflow: hidden; }
  .cut .sc > * { position: absolute; }
  .disp { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: 0.86; }
  .grain { inset: -50%; position: absolute; z-index: 40; pointer-events: none; opacity: 0.05; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: sol-grain 0.9s steps(4) infinite; }
  @keyframes sol-grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

  /* ---------- The chapter bar ---------- */
  .bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 50; height: var(--bar); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 2.6cqw, 44px); padding: 0 clamp(18px, 3cqw, 48px); background: #121212; color: #f3efe7; }
  .bar .slot { display: grid; }
  .bar .slot > * { grid-area: 1 / 1; opacity: 0; }
  .bar-n { font-family: var(--font-display); font-size: clamp(40px, 6.4svh, 68px); line-height: 0.85; color: var(--accent); }
  .bar-t b { display: block; font-size: clamp(18px, 1.7cqw, 28px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
  .bar-t span { display: block; margin-top: 4px; font-size: clamp(13px, 1.05cqw, 17px); line-height: 1.4; color: rgba(243, 239, 231, 0.68); }
  .bar-rail { display: flex; gap: clamp(10px, 1.2cqw, 18px); }
  .bar-rail > span { width: clamp(56px, 7cqw, 120px); }
  .bar-rail i { display: block; height: 3px; border-radius: 2px; background: rgba(243, 239, 231, 0.2); overflow: hidden; }
  .bar-rail i::after { content: ""; display: block; height: 100%; background: var(--accent); transform-origin: 0 0; transform: scaleX(var(--f, 0)); }
  .bar-rail small { display: block; margin-top: 8px; font-size: 11px; font-weight: 500; color: rgba(243, 239, 231, 0.45); white-space: nowrap; transition: color 0.4s var(--ease); }
  .bar-rail .on small { color: #f3efe7; }
  @container (max-width: 900px) { .bar-rail { display: none; } }

  /* ---------- 00: a theme marketplace. Deliberately none of our brand. ---------- */
  .mk-bg { inset: 0; background: #f4f5f7; }
  .mk-grid { left: -8cqw; top: -6cqh; display: grid; gap: 2.2cqmin; transform: rotate(-6deg); }
  .mk-row { display: flex; gap: 2.2cqmin; }
  .th { flex: none; width: clamp(130px, 21cqw, 300px); }
  .th-in { container-type: inline-size; aspect-ratio: 16 / 11; overflow: hidden; border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 4px 14px rgba(0, 0, 0, 0.06); font-family: Arial, Helvetica, sans-serif; color: #444; }
  .th-nav { display: flex; justify-content: space-between; align-items: center; padding: 4cqw 6cqw; border-bottom: 1px solid #eee; color: #888; }
  .th-nav b { padding: 1cqw 2cqw; background: #eee; color: #999; letter-spacing: 0.15em; font-size: 3.6cqw; }
  .th-nav span { font-size: 3.4cqw; }
  .th-hero { display: grid; justify-items: center; gap: 2.4cqw; padding: 7cqw 6cqw 5cqw; text-align: center; }
  .th-hero b { font-size: 7.4cqw; font-weight: 700; color: #333; }
  .th-hero span { font-size: 3.6cqw; color: #999; }
  .th-hero i { font-style: normal; padding: 2cqw 5cqw; border-radius: 2px; background: #2f6fde; color: #fff; font-size: 3.6cqw; }
  .th-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; padding: 0 6cqw; }
  .th-cards span { aspect-ratio: 16 / 10; background: #ececec; }
  .th-cap { display: flex; justify-content: space-between; margin-top: 6px; font: 11px/1.2 Arial, Helvetica, sans-serif; color: #888; }
  .th-cap span:first-child { color: #333; font-weight: 700; }
  .mk-bar { left: 50%; top: calc(var(--header-h) + 3cqh); translate: -50% 0; z-index: 3; display: flex; align-items: center; gap: 2cqmin; padding: 1.4cqmin 1.4cqmin 1.4cqmin 2.4cqmin; border-radius: 6px; background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14); font: clamp(11px, 2cqmin, 16px)/1 Arial, Helvetica, sans-serif; color: #333; white-space: nowrap; }
  .mk-search { display: flex; align-items: center; gap: 1.2cqmin; min-width: 34cqmin; padding: 1.2cqmin 1.6cqmin; border: 1px solid #ccc; border-radius: 3px; }
  .mk-search svg { width: 1.2em; height: 1.2em; color: #777; }
  .mk-count { padding: 1.2cqmin 1.8cqmin; border-radius: 3px; background: #2f6fde; color: #fff; font-weight: 700; }
  .mk-stamp { left: 50%; top: 56%; translate: -50% -50%; z-index: 3; display: grid; justify-items: center; gap: 1.4cqmin; padding: 3.4cqmin 5cqmin; background: #fff; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18); font-family: Arial, Helvetica, sans-serif; white-space: nowrap; }
  .mk-stamp b { font-size: clamp(22px, 7cqmin, 64px); font-weight: 900; letter-spacing: -0.03em; color: #222; }
  .mk-stamp span { font-size: clamp(12px, 2.4cqmin, 20px); color: #777; }

  /* ---------- 01: ink, and their site on a laptop ---------- */
  .ct-ink { inset: 0; background: radial-gradient(70% 60% at 50% 55%, #1d1c1b, #0e0e0e 70%); clip-path: inset(100% 0 0 0); }
  /* the laptop: a lid with the screen, and the base below; sized to fit the space above the bar */
  .lap { --lw: min(62cqw, (100cqh - var(--bar) - var(--header-h) - 10cqh) / 0.7); left: 50%; top: calc(var(--header-h) + (100% - var(--header-h)) / 2); width: var(--lw); translate: -50% -50%; opacity: 0; will-change: transform, opacity; }
  .lap-lid { position: relative; padding: calc(var(--lw) * 0.022) calc(var(--lw) * 0.022) calc(var(--lw) * 0.03); border-radius: calc(var(--lw) * 0.024) calc(var(--lw) * 0.024) calc(var(--lw) * 0.006) calc(var(--lw) * 0.006); background: linear-gradient(#2b2b2d, #1b1b1d); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 calc(var(--lw) * 0.05) calc(var(--lw) * 0.12) rgba(0, 0, 0, 0.6); }
  .lap-lid::before { content: ""; position: absolute; left: 50%; top: calc(var(--lw) * 0.009); width: calc(var(--lw) * 0.006); height: calc(var(--lw) * 0.006); margin-left: calc(var(--lw) * -0.003); border-radius: 50%; background: #3c3c40; }
  .lap-scr { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: calc(var(--lw) * 0.006); background: #050505; }
  .lap-on { position: absolute; inset: 0; }
  .lap-feed { display: block; will-change: transform; }
  /* screenshots are background images, not <img>: Chrome can leave an <img> unpainted when its
     hidden scene comes back on screen mid-animation */
  .lap-feed .shot { display: block; width: 100%; aspect-ratio: 16 / 10; background: #141414 50% 0 / cover no-repeat; }
  .lap-glass { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 38%); }
  .lap-base { position: relative; left: -8%; width: 116%; height: calc(var(--lw) * 0.036); border-radius: 0 0 calc(var(--lw) * 0.03) calc(var(--lw) * 0.03) / 0 0 calc(var(--lw) * 0.02) calc(var(--lw) * 0.02); background: linear-gradient(#5b5b60, #2c2c30 40%, #18181a); box-shadow: 0 calc(var(--lw) * 0.03) calc(var(--lw) * 0.06) rgba(0, 0, 0, 0.55); }
  .lap-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 15%; height: 34%; translate: -50% 0; border-radius: 0 0 calc(var(--lw) * 0.01) calc(var(--lw) * 0.01); background: #1f1f22; }
  .lap-glow { left: 50%; top: calc(var(--header-h) + (100% - var(--header-h)) / 2 + 6cqh); width: 90cqw; height: 40cqh; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(225, 160, 63, 0.18), transparent); opacity: 0; }
  .ct-tag { right: 3cqmin; top: calc(var(--header-h) + 2cqmin); z-index: 2; display: flex; align-items: center; gap: 1cqmin; padding: 1cqmin 1.8cqmin; border-radius: 99px; background: rgba(243, 239, 231, 0.1); color: #f3efe7; font-size: clamp(11px, 1.6cqmin, 14px); font-weight: 600; white-space: nowrap; opacity: 0; box-shadow: inset 0 0 0 1px rgba(243, 239, 231, 0.14); }
  .ct-tag i { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--accent); }

  /* ---------- 02: three panels sized by screen, one device each, scaled to fit ---------- */
  .ct-pan { top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3.4cqh; padding: calc(var(--header-h) + 1cqh) 0 3cqh; background: #eee9e2; border-right: 1px solid rgba(18, 18, 18, 0.1); transform: translateY(100%); }
  .ct-pan:nth-child(2) { background: #e7e1d6; }
  .pan-h { font-size: clamp(22px, 5.4cqw, 84px); }
  .pan-px { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: clamp(10px, 1.6cqmin, 14px); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(18, 18, 18, 0.6); }
  .dev { position: relative; flex: none; background: #121212; box-shadow: 0 2cqmin 5cqmin rgba(0, 0, 0, 0.22); }
  .dev-scr { position: relative; overflow: hidden; background: #141414; }
  .dev-scr > .shot { display: block; width: 100%; height: 100%; background: #141414 50% 0 / cover no-repeat; }
  .dev-d { border-radius: 8px; overflow: hidden; }
  .dev-bar { display: flex; align-items: center; gap: 5px; height: var(--bar-h, 14px); padding-left: 8px; background: #2a2a2a; }
  .dev-bar i { width: 5px; height: 5px; border-radius: 50%; background: #5a5a5a; }
  .dev-t { padding: var(--bz, 8px); border-radius: calc(var(--bz, 8px) * 2.2); }
  .dev-t .dev-scr { border-radius: calc(var(--bz, 8px) * 0.8); }
  .dev-p { padding: var(--bz, 6px); border-radius: calc(var(--bz, 6px) * 5.4); }
  .dev-p .dev-scr { border-radius: calc(var(--bz, 6px) * 4.4); }

  /* AMP's hero at tablet width (834 × 1112), in their style, from their own imagery */
  .amp-tab { position: absolute; left: 0; top: 0; width: 834px; height: 1112px; transform-origin: 0 0; overflow: hidden; background: #141414; color: #f3efe7; font-family: var(--font-body); }
  .amp-col { position: absolute; left: 0; right: 0; top: 0; height: 640px; background: url("/work/amp-visual-media/home.jpg") 100% 0 / 1520px auto no-repeat; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
  .amp-nav { position: absolute; left: 50%; top: 26px; translate: -50% 0; display: flex; align-items: center; width: 560px; height: 66px; padding: 0 40px; border-radius: 22px; background: rgba(20, 18, 16, 0.88); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); font-size: 18px; font-weight: 500; }
  .amp-nav span:last-child { margin-left: auto; }
  .amp-nav img { position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; translate: -50% -50%; border-radius: 50%; }
  .amp-txt { position: absolute; left: 56px; right: 56px; top: 500px; }
  .amp-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1.5px solid rgba(243, 239, 231, 0.7); border-radius: 99px; font: 15px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.14em; }
  .amp-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #d4442c; }
  .amp-h { margin-top: 26px; font-size: 68px; font-weight: 700; line-height: 1.02; letter-spacing: -0.045em; }
  .amp-h mark { display: inline-block; margin-top: 8px; padding: 0 14px 6px; background: #e1a03f; color: #141414; }
  .amp-p { margin-top: 26px; font-size: 21px; line-height: 1.5; color: rgba(243, 239, 231, 0.88); }
  .amp-cta { display: inline-flex; gap: 12px; margin-top: 28px; padding: 18px 26px; border-radius: 4px; background: #c4472b; font-size: 19px; font-weight: 600; }

  /* ---------- 03: the accent field, the line, what came in ---------- */
  .ct-close { inset: 0; }
  .ct-acc { position: absolute; inset: 0; background: var(--accent); clip-path: inset(100% 0 0 0); }
  .ct-content { inset: 0; }
  .ct-words { position: absolute; left: 5cqw; top: calc(50% + var(--header-h) / 2); translate: 0 -50%; display: grid; gap: 0.12em; font-size: clamp(56px, 9.6cqw, 170px); line-height: 0.92; letter-spacing: 0.005em; color: #121212; }
  .ct-words > span { display: block; opacity: 0; }
  .ct-stack { position: absolute; right: 5cqw; top: calc(50% + var(--header-h) / 2); translate: 0 -50%; display: grid; gap: 1.6cqmin; }
  .ntf { display: flex; align-items: center; gap: 1.6cqmin; padding: 1.7cqmin 2.1cqmin; border-radius: 2cqmin; background: #121212; color: #fff; font-size: clamp(12px, 1.9cqmin, 17px); white-space: nowrap; box-shadow: 0 2cqmin 5cqmin rgba(0, 0, 0, 0.25); opacity: 0; }
  .ntf .i { flex: none; display: grid; place-items: center; width: 4.6cqmin; height: 4.6cqmin; border-radius: 50%; background: #f3efe7; color: #141414; }
  .ntf .i svg { width: 55%; height: 55%; }
  .ntf .t { display: grid; }
  .ntf small { opacity: 0.65; font-size: 0.86em; margin-top: 0.15em; }
  .ntf.on .i { background: var(--accent); color: #fff; }
  /* narrow screens: the line at the top, what came in stacked below it */
  @container (max-width: 700px) {
    .ct-words { top: calc(var(--header-h) + 5cqh); translate: none; font-size: 17cqw; }
    .ct-stack { top: auto; bottom: 5cqh; left: 5cqw; right: 5cqw; translate: none; }
  }


  @media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* Phones: no sticky frame and no timed sequence. The four chapters are plain sections that scroll by
   normally, each with its caption above it and shown as it ends. The last one carries the dot (on the
   booked notification's icon) that the Process path lifts off from; solution.js makes that section the
   column site.js measures. */
.sc-cap { display: none; }
@media (max-width: 860px) {
  .sol { height: auto; }
  .sol .cut, .sol .cut.fix-stage-col { position: relative; top: auto; height: auto; overflow: visible; container-type: inline-size; }
  .sol .cut .sc { position: relative; inset: auto; height: calc(100svh - var(--header-h) - 24px); min-height: 520px; visibility: visible; z-index: auto; }
  .sol .bar, .sol .grain { display: none; }
  .sc-cap { display: flex; align-items: flex-start; gap: 16px; padding: 28px 20px 22px; background: #121212; color: #f3efe7; }
  .sc-cap b { font-family: var(--font-display); font-weight: 400; font-size: 52px; line-height: 0.82; color: var(--accent); }
  .sc-cap strong { display: block; font-size: 22px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
  .sc-cap span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.45; color: rgba(243, 239, 231, 0.7); }
  /* each scene as it ends */
  .sol .ct-ink, .sol .ct-acc { clip-path: none; }
  .sol .lap, .sol .lap-glow, .sol .ct-tag, .sol .ct-words > span, .sol .ntf { opacity: 1; }
  .sol .ct-pan { transform: none; }
  /* the header is not over these, so the layouts that made room for it don't need to */
  .sol .mk-bar { top: 3cqh; }
  .sol .ct-tag { top: 2cqmin; }
  .sol .ct-pan { padding-top: 2cqh; }
  .sol .lap, .sol .lap-glow { top: 50%; }
  .sol .ct-words { top: 5cqh; }
  /* the last section is the column site.js measures: undo the homepage stage column's own styling */
  .sol .sc.fix-stage-col { position: relative; top: auto; order: 0; padding: 0; border: 0; background: transparent; }
  .sol .sc.fix-stage-col::after { display: none; }
}

/* ==========================================================================
   PAGE TRANSITIONS: between the work (the homepage wall, /work/) and the case studies, the card a
   visitor opens morphs into the case study's cover and its name into the title (view-transition-name
   card-<slug> and title-<slug>, set where each is drawn); the rest of the page cross-fades. Browsers
   without cross-page view transitions simply load the page.
   ========================================================================== */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 0.7s; animation-timing-function: cubic-bezier(0.7, 0, 0.2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }
/* the picture keeps its crop while its box changes shape, and the old one gives way quickly */
::view-transition-old(.vt-card), ::view-transition-new(.vt-card) { width: 100%; height: 100%; object-fit: cover; overflow: clip; }
::view-transition-old(.vt-card) { animation-duration: 0.25s; }
@media (max-width: 760px) { ::view-transition-group(*) { animation-duration: 0.5s; } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ==========================================================================
   CHAPTER BREAK (before the FAQ; site.js 16): the orange field, big black words, then a dot
   ========================================================================== */
.chap-break { position: relative; height: 200vh; height: 200svh; }
.cb-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.cb-acc { position: absolute; inset: 0; background: var(--accent); clip-path: inset(100% 0 0 0); }
.cb-words { position: absolute; left: var(--gutter); top: calc(var(--header-h) + 6vh); display: grid; gap: 0.08em; margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(64px, 14vw, 230px); line-height: 0.88; text-transform: uppercase; color: #121212; }
/* each line rises out of a mask; the mask reaches past the letters (the Q's tail, the ? ) so nothing is
   trimmed, and the negative margins keep the lines where they were */
.cb-words > span { display: block; overflow: hidden; padding: 0.06em 0 0.24em; margin: -0.06em 0 -0.24em; }
/* waiting fully below its mask (the line plus the mask's room underneath); once the field is up
   (.is-in, site.js 16) the lines rise on their own, one after the other, and reset at once if you go back */
.cb-words > span > span { display: block; transform: translateY(140%); will-change: transform; }
.chap-break.is-in .cb-words > span > span { transform: none; transition: transform 0.9s var(--ease); }
.chap-break.is-in .cb-words > span:nth-child(2) > span { transition-delay: 0.14s; }
.cb-dot { position: fixed; left: 0; top: 0; z-index: 5; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); opacity: 0; pointer-events: none; will-change: transform; }
/* the FAQ heading's full stop waits for the dot */
.title-dot.is-waiting { visibility: hidden; }
/* phones: not pinned; the sequence plays on its own once the block is on screen */
@media (max-width: 760px) {
  .chap-break { height: auto; }
  .cb-pin { position: relative; height: 88svh; }
  .cb-words { font-size: 21vw; }
}
/* reduced motion: a plain orange band with the words */
@media (prefers-reduced-motion: reduce) {
  .chap-break { height: auto; }
  .cb-pin { position: relative; height: 70vh; }
  .cb-acc { clip-path: none; }
  .cb-words > span > span { transform: none; }
}

