/* ==========================================================================
   Empyreal — Home page
   Built from Figma "EMPYREAL BRAND BOOK" / Page 1 / Home page (1920 wide).
   Sizing: 1rem = 10 design px at a 1920px viewport, so every value below is
   the Figma pixel value divided by 10. The page scales proportionally on
   desktop; below 1200px a stacked layout takes over.
   ========================================================================== */

@font-face { font-family: "Geist"; src: url("../fonts/Geist-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist Pixel"; src: url("../fonts/GeistPixel-Square.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --black: #010101;
  --surface: #101010;
  --line: #676767;
  --muted: #a1a1a1;
  --muted-2: #858585;     /* paragraph grey */
  --white: #ffffff;
  --accent: #72e3b7;      /* mint */
  --lavender: #9e99ff;
  --grid: #1c1c1c;

  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --pixel: "Geist Pixel", "Geist Mono", ui-monospace, monospace;

  --gutter: 10rem;          /* 100px section padding */
  --grid-cell: 6.6rem;      /* 66px hero grid */
}

/* --sbw = classic scrollbar width, set by script so 192rem equals the page width exactly */
html { font-size: calc((100vw - var(--sbw, 0px)) / 192); }

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 2.4rem;
  letter-spacing: 0;               /* body copy; headings and display text set their own */
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  /* clip, not hidden: `hidden` turns body into a scroll container, which stops
     every position: sticky on the page from ever engaging */
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }
button { font: inherit; letter-spacing: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
/* no grey flash on a tap: links and buttons show their own pressed state
   (.is-pressed, js/hero.js) instead of the browser's tap highlight */
a, button { -webkit-tap-highlight-color: transparent; }

.accent { color: var(--accent); }
.pixel { font-family: var(--pixel); }

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

/* ---------- Line wrapping ----------
   Headings, titles and tags break into even lines, and running text never
   ends on one stranded word, at every screen width. These rules sit above
   every component rule on purpose: a later `white-space: nowrap` still wins,
   so nothing designed to stay on one line starts wrapping. */
h1, h2, h3, h4, h5, h6, .tag, [class*="__title"] { text-wrap: balance; }
p, li, [class*="__desc"] { text-wrap: pretty; }

/* ---------- Shared bits ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1.4rem;
  background: var(--white);
  color: var(--black);
  font-size: 2rem;
  white-space: nowrap;
}
h1.tag { font-weight: 400; } /* homepage H1 sits in the hero eyebrow */
.tag__dot { width: 0.6rem; height: 0.6rem; background: var(--accent); flex: none; }

.meta { color: var(--muted); font-size: 2.4rem; white-space: nowrap; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.heading {
  display: flex;
  flex-direction: column;
  font-size: 8.2rem;
  font-weight: 400;
  letter-spacing: -0.06em;
  color: var(--white);
}
.heading__sans { font-family: var(--sans); margin-bottom: -1.4rem; }
.heading__pixel { font-family: var(--pixel); white-space: nowrap; }

.lede { color: var(--muted-2); font-size: 2.4rem; }

.icon-box {
  display: grid;
  place-items: center;
  width: 5.2rem;
  height: 5.2rem;
  background: var(--white);
  flex: none;
}
.icon-box img { width: 2.4rem; height: 2.4rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 60rem;
  overflow: hidden;
  background-color: var(--black);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  /* js/tetris.js stretches the squares slightly so the hero holds whole squares only */
  background-size: var(--hero-cell-w, var(--grid-cell)) var(--hero-cell-h, var(--grid-cell));
  background-position: -1px -1px;
}

.menu-tab {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 33rem;
  height: 6.6rem;
  color: #000;
  letter-spacing: -0.04em;
}
/* docked: the tab (and the panel it opens) ride at the top of the window past the
   hero, and stay in view the whole way down */
.menu-tab.is-docked, .menu-panel.is-docked {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
}
.menu-tab.is-docked {
  animation: none !important;      /* the hero reveal keyframes would pin transform and move the docked tab */
}

.menu-tab__body {
  position: absolute;
  inset: 0 auto 0 0;
  width: 26.4rem;
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding-left: 6.6rem;
  font-size: 2.4rem;
}
.menu-tab__body img { width: 2rem; height: 2rem; margin-top: 0.4rem; }
.menu-tab__step { position: absolute; background: var(--white); }
.menu-tab__step--1 { left: 26.3rem; top: 3.3rem; width: 3.3rem; height: 3.3rem; }
.menu-tab__step--2 { left: 29.5rem; top: 5rem; width: 3.3rem; height: 1.6rem; }


.hero__logo {
  position: absolute;
  top: 4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.hero__logo img { width: 32.1rem; height: 4.271rem; }


.hero__content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}
/* The headline's caps overflow the fixed 10.4rem line box, so a 3.2rem gap
   left the tag sitting on them. Smaller type plus 4.8rem opens it up. */
.hero__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4.8rem;
  width: 100%;
}
.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  font-weight: 400;
  color: var(--white);
  white-space: nowrap;
}
.hero__line { display: block; height: 10.4rem; line-height: 10.4rem; text-align: center; }
.hero__line--sans { font-family: var(--sans); font-size: 13.2rem; letter-spacing: -0.06em; }
.hero__line--pixel { font-family: var(--pixel); font-size: 13.2rem; letter-spacing: -0.06em; }
.hero__char { display: inline-block; }

/* Wider than .hero__content on purpose, like the headline above it: at 69rem
   the lede ran to four short lines. 104rem keeps it to three balanced ones. */
.hero__bottom {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  width: 104rem;
}
.hero__lede { color: var(--muted-2); font-size: 2.4rem; text-align: center; text-wrap: balance; }

.hero__actions { display: flex; gap: 2rem; align-items: flex-end; justify-content: center; }

.btn { display: inline-flex; gap: 0.6rem; font-weight: 500; font-size: 2.4rem; letter-spacing: -0.06em; white-space: nowrap; }
.btn__label, .btn__icon {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 5.5rem;
}
.btn__label { padding: 0 2.4rem; }
.btn__icon { width: 5.5rem; }
.btn__icon img { width: 2.4rem; height: 2.4rem; }
.btn--solid .btn__label, .btn--solid .btn__icon { background: var(--white); color: var(--black); }
.btn--outline .btn__label, .btn--outline .btn__icon { border: 1px solid var(--white); color: var(--white); }
/* hover styles live in the "CTA" block at the end of this file */

/* ---------- Stats ---------- */

.stats {
  position: relative;
  padding-bottom: 5rem;              /* Figma gap under the video panel */
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
/* vertical rules at x=65.5 and x=1854.5, horizontal rule under the band */
.stats::before, .stats::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.stats::before { left: 6.55rem; }
.stats::after { right: 6.55rem; }

.stats__band {
  position: relative;
  margin-left: 6.7rem;
  width: 178.7rem;
  height: 42rem;
  background: var(--surface);
}
.stats__band::after { /* the rule runs the full page width */
  content: "";
  position: absolute;
  left: -6.7rem;
  width: 192rem;
  bottom: -1px;
  height: 1px;
  background: var(--line);
}

.stat {
  position: absolute;
  top: 50%;
  width: 28.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.stat--left { left: 10rem; transform: translateY(-50%); }
.stat--center { left: calc(50% - 0.05rem); transform: translate(-50%, -50%); }
.stat--right { right: 3.7rem; transform: translateY(-50%); }

.stat__label { display: flex; align-items: center; gap: 1.2rem; font-size: 2.4rem; white-space: nowrap; }

.stat__value {
  font-family: var(--pixel);
  font-size: 12rem;
  letter-spacing: -0.06em;
  line-height: 15.6rem;
  white-space: nowrap;
  background: linear-gradient(to bottom, var(--white), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: max-content;
}

.stats__stage {
  /* Figma 222:1001: media panel under the numbers — the showreel */
  position: relative;
  width: 168.7rem;
  height: 100vh;                     /* the showreel fills one screen */
  height: 100svh;
  margin: 5.1rem 0 0 11.7rem;
  overflow: hidden;
  background: var(--surface);
}
.stats__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ---------- Clients ---------- */

.clients {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: var(--gutter) 0;
  display: flex;
  flex-direction: column;
  gap: 6.1rem;
  overflow: hidden;
}
.clients .section-head { padding: 0 var(--gutter); }

.marquee { overflow: hidden; width: 100%; }
.marquee__track {
  display: flex;
  width: max-content;
  font-family: var(--pixel);
  white-space: nowrap;
  transform: translateX(var(--gutter));
}
.marquee__track li { display: flex; }
.marquee__track li::after { content: "/"; color: var(--accent); }
.marquee.is-ready .marquee__track { animation: marquee var(--marquee-duration, 60s) linear infinite; will-change: transform; }
.marquee.is-offscreen .marquee__track { animation-play-state: paused; will-change: auto; }
.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(var(--gutter)); }
  to   { transform: translateX(calc(-50% + var(--gutter))); }
}

.marquee--lg .marquee__track { font-size: 7.2rem; letter-spacing: -0.04em; line-height: 9.4rem; }
.marquee--lg .marquee__track li { gap: 4.4rem; padding-right: 4.4rem; }
.marquee--sm { --marquee-duration: 70s; }
.marquee--sm .marquee__track { font-size: 3.2rem; letter-spacing: -0.04em; line-height: 4.2rem; }
.marquee--sm .marquee__track li { gap: 4.4rem; padding-right: 4.4rem; }

/* ---------- Process ---------- */

.process {
  position: relative;
  height: 120.4rem;
  padding: var(--gutter) var(--gutter) 0;
  border-bottom: 1px solid var(--line);
}
.process__intro .lede { color: var(--muted); }   /* Figma keeps #A1A1A1 here */
.process__intro {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  width: 171.9rem;
}

.steps {
  position: absolute;
  top: 50.4rem;
  left: 10.15rem;
  width: 171.7rem;
  height: 60rem;
}
.step {
  position: absolute;
  width: 43rem;
  height: 48rem;
  background: var(--surface);
  border: 1px solid var(--muted-2);
  overflow: hidden;
}
.step--1 { left: 0;       top: 0; }
.step--2 { left: 42.9rem;  top: 4rem; }
.step--3 { left: 85.8rem;  top: 8rem; }
.step--4 { left: 128.7rem; top: 12rem; }

.step__head {
  position: absolute;
  top: 3.1rem;
  left: 3.1rem;
  width: 36.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.step__head > div { display: flex; flex-direction: column; gap: 0.6rem; height: 8rem; white-space: nowrap; }
.step__week { color: var(--muted-2); font-size: 2rem; }
.step__title { font-size: 3.6rem; font-weight: 400; letter-spacing: -0.06em; }
.step__icon { width: 5.2rem; height: 5.2rem; }

.step__body {
  position: absolute;
  left: 3.1rem;
  bottom: 3.1rem;
  width: 36.6rem;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  font-size: 2rem;
  letter-spacing: 0;
}
.step--1 .step__body { top: 25.9rem; bottom: auto; }

.arrow-list { display: flex; flex-direction: column; gap: 0.8rem; }
.arrow-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-weight: 300;
  font-size: 2rem;
}
.arrow-list li::before {
  content: "";
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  background: url("../assets/icons/arrow-right-grey.svg") center / contain no-repeat;
}

/* ---------- Beliefs ---------- */

.beliefs {
  padding: var(--gutter);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6rem;
}
.beliefs__head { display: flex; flex-direction: column; gap: 2rem; }

.beliefs__grid { display: flex; }
.belief {
  position: relative;
  height: 76rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-right: 0;
  overflow: hidden;
  flex: none;
}
.belief--1 { width: 57rem; }
.belief--2 { width: 58rem; }
.belief--3 { width: 57rem; border-right: 1px solid var(--line); }

.belief__num {
  position: absolute;
  top: 5.1rem;
  left: 5.1rem;
  color: var(--muted);
  font-size: 2rem;
}
.belief__text {
  position: absolute;
  left: 5.1rem;
  width: 46.6rem;
  font-size: 2rem;
  color: var(--white);
}
.belief--1 .belief__text,
.belief--3 .belief__text { top: 60.5rem; }
.belief--2 .belief__text { top: 15.9rem; }

.belief__shape { position: absolute; top: -1px; pointer-events: none; }
.belief--1 .belief__shape { right: -0.05rem; width: 33rem; height: 21.05rem; transform: rotate(180deg); }
.belief--3 .belief__shape { right: -0.15rem; width: 39.1rem; height: 21.8rem; transform: scaleY(-1); }

.belief__photo {
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 33.25rem;
  height: 44.2rem;
}

/* ---------- Strip ---------- */

.strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 4rem 0;
  overflow: hidden;
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  .marquee.is-ready .marquee__track { animation: none; }
  .btn__icon img, .step { transition: none; }
}

/* ==========================================================================
   Tablet / mobile — below 1200px the 1920 canvas no longer scales legibly,
   so sections restack. 1rem is pinned to 10px here.
   ========================================================================== */

@media (max-width: 1199px) {
  html { font-size: 10px; }
  :root { --gutter: 2rem; --grid-cell: 3.3rem; }

  body { font-size: 1.6rem; letter-spacing: 0; }
  .tag { font-size: 1.3rem; white-space: normal; padding: 0.5rem 1rem; }
  .meta { font-size: 1.4rem; white-space: normal; }
  .section-head { flex-wrap: wrap; gap: 1.2rem; }
  .heading { font-size: clamp(3.2rem, 9vw, 5.6rem); }
  .heading__sans { margin-bottom: -0.2em; }
  .heading__pixel { white-space: normal; }
  .lede { font-size: 1.6rem; }

  /* hero */
  .hero { height: auto; min-height: 100svh; padding: 14rem var(--gutter) 22rem; display: flex; align-items: center; }
  .menu-tab { width: 18rem; height: 4.4rem; }
  .menu-tab__body { width: 14.4rem; padding-left: 2rem; gap: 1rem; font-size: 1.6rem; }
  .menu-tab__body img { width: 1.6rem; height: 1.6rem; margin-top: 0.2rem; }
  .menu-tab__step--1 { left: 14.3rem; top: 2.2rem; width: 2.2rem; height: 2.2rem; }
  .menu-tab__step--2 { left: 16.4rem; top: 3.3rem; width: 1.6rem; height: 1.1rem; }
  .hero__logo { top: 1.2rem; left: auto; right: var(--gutter); transform: none; }
  .hero__logo img { width: 14rem; height: 1.86rem; }
  .hero__content { position: relative; top: auto; left: auto; transform: none; width: 100%; gap: 3.2rem; }
  .hero__top { gap: 2rem; }
  .hero__title { gap: 1.2rem; white-space: normal; }
  .hero__line { height: auto; line-height: 1.1; }
  .hero__line--sans, .hero__line--pixel { font-size: clamp(4.4rem, 14.5vw, 10rem); }
  .hero__bottom { width: 100%; max-width: 60rem; gap: 2.4rem; }
  .hero__lede { font-size: 1.6rem; text-align: center; }
  .hero__actions { flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
  /* a long label (the mailto button carries the whole address) must wrap
     rather than push the page sideways */
  .btn { font-size: 1.6rem; max-width: 100%; }
  .btn__label, .btn__icon { height: 4.6rem; }
  .btn__label { padding: 0 1.6rem; min-width: 0; white-space: normal; }
  .btn__icon { width: 4.6rem; }
  .btn__icon img { width: 2rem; height: 2rem; }

  /* stats */
  .stats { height: auto; padding-bottom: 0; }
  .stats::before, .stats::after { display: none; }
  .stats__band { margin: 0; width: auto; height: auto; padding: 4rem var(--gutter); display: grid; gap: 3.2rem; }
  .stats__band::after { display: none; }
  .stat, .stat--left, .stat--center, .stat--right { position: static; transform: none; width: auto; }
  .stat__label { font-size: 1.6rem; }
  .icon-box { width: 4rem; height: 4rem; }
  .icon-box img { width: 2rem; height: 2rem; }
  .stat__value { font-size: clamp(6.4rem, 18vw, 9.6rem); line-height: 1.2; }
  .stats__stage { width: auto; height: auto; aspect-ratio: 16 / 9; margin: 0 var(--gutter) 4rem; }

  /* clients + strip */
  .clients { padding: 5.6rem 0; gap: 3.2rem; }
  .marquee--lg .marquee__track { font-size: 4rem; line-height: 5.2rem; }
  .marquee--lg .marquee__track li, .marquee--sm .marquee__track li { gap: 2.4rem; padding-right: 2.4rem; }
  .strip { padding: 2.4rem 0; }
  .marquee--sm .marquee__track { font-size: 2.2rem; line-height: 3rem; }

  /* process */
  .process { height: auto; padding: 5.6rem var(--gutter); }
  .process__intro { width: auto; gap: 1.6rem; margin-top: 1.6rem; }
  .steps { position: static; width: auto; height: auto; margin-top: 4rem; display: grid; gap: 1.6rem; }
  .step, .step--1, .step--2, .step--3, .step--4 {
    position: static; width: auto; height: auto; min-height: 0;
    display: flex; flex-direction: column; gap: 4rem; padding: 2.4rem;
  }
  .step__head, .step__body, .step--1 .step__body { position: static; width: auto; }
  .step__head { gap: 1.6rem; align-items: flex-start; }
  .step__head > div { height: auto; white-space: normal; }
  .step__week { font-size: 1.4rem; }
  .step__title { font-size: 2.6rem; }
  .step__icon { width: 4rem; height: 4rem; }
  .step__body { font-size: 1.6rem; gap: 1.6rem; }
  .arrow-list li { font-size: 1.5rem; }
  .arrow-list li::before { width: 1.2rem; height: 1.2rem; }

  /* beliefs */
  .beliefs { padding: 5.6rem var(--gutter); gap: 3.2rem; }
  .beliefs__head { gap: 1.6rem; }
  .beliefs__grid { flex-direction: column; }
  .belief, .belief--1, .belief--2, .belief--3 {
    width: auto; height: auto; min-height: 36rem;
    border: 1px solid var(--line); border-bottom: 0;
    display: flex; flex-direction: column; justify-content: space-between; gap: 4rem;
    padding: 2.4rem;
  }
  .belief--3 { border-bottom: 1px solid var(--line); }
  .belief__num, .belief__text,
  .belief--1 .belief__text, .belief--2 .belief__text, .belief--3 .belief__text {
    position: relative; top: auto; left: auto; width: auto; z-index: 1;
  }
  .belief__num { font-size: 1.4rem; }
  .belief__text { font-size: 1.6rem; max-width: 46rem; }
  .belief--1 .belief__shape { width: min(18rem, 45%); height: auto; aspect-ratio: 330 / 210.5; }
  .belief--3 .belief__shape { width: min(20rem, 45%); height: auto; aspect-ratio: 391 / 218; }
  .belief--2 { min-height: 52rem; justify-content: flex-start; }
  .belief__photo { width: 22rem; height: 29.25rem; }
}

@media (max-width: 379px) {
  .menu-tab { width: 13.2rem; }
  .menu-tab__body { width: 10.4rem; padding-left: 1.4rem; gap: 0.8rem; font-size: 1.4rem; }
  .menu-tab__step--1 { left: 10.3rem; }
  .menu-tab__step--2 { left: 12.4rem; width: 0.8rem; }
  .hero__logo { top: 1.4rem; }
  .hero__logo img { width: 10.4rem; height: 1.38rem; }
}

/* ==========================================================================
   Hero Tetris blocks (js/tetris.js)
   .hero__blocks  canvas with the corner shapes and clicked pieces, drawn on
                  the hero grid above the grid lines and below the copy.
   .hero__invert  black copy of the hero text + logo, clipped by script to the
                  squares covered by blocks, so text stays readable on top.
   ========================================================================== */

/* the tetris blocks are a bonus, not the point: the hero keeps the plain
   arrow so it does not read as a canvas waiting to be drawn on */
.hero { cursor: default; }
.hero a, .hero button { cursor: pointer; }

.hero__blocks {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}
.hero__cell-probe {
  position: absolute;
  width: var(--grid-cell);
  height: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero__invert {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  user-select: none;
  clip-path: path("M0 0");
}
/* On the lime blocks: copy, logo and menu go black; the tag and white button stay as they are. */
.hero__invert .hero__line,
.hero__invert .hero__lede,
.hero__invert .accent { color: var(--black); }
.hero__invert .btn--outline .btn__label,
.hero__invert .btn--outline .btn__icon { border-color: var(--black); color: var(--black); }
.hero__invert .btn--outline .btn__icon img,
.hero__invert .hero__logo img,
.hero__invert .menu-tab img { filter: invert(1); }
.hero__invert .menu-tab { color: var(--white); }
.hero__invert .menu-tab__body,
.hero__invert .menu-tab__step { background: var(--black); }

@media (max-width: 1199px) {
  /* mirror the stacked hero so the copy lines up with the real text */
  .hero__invert { display: flex; align-items: center; padding: 14rem var(--gutter) 22rem; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Loader (js/loader.js)
   ========================================================================== */

html.is-loading { overflow: hidden; }
html:not(.js) .loader { display: none; }

.loader {
  --loader-cell: 4.4rem;
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--black);
  color: var(--white);
}
.loader__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
  transition: opacity .2s ease, transform .3s cubic-bezier(.5, 0, .75, 0);
}
.loader__count {
  display: flex;
  align-items: flex-start;
  font-family: var(--pixel);
  font-size: 12rem;
  line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.loader__count [data-loader-count] {
  background: linear-gradient(to bottom, var(--white), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.loader__pct { font-size: 0.35em; color: var(--accent); margin: 0.2em 0 0 0.15em; }
.loader__well {
  display: block;
  width: calc(var(--loader-cell) * 12);
  height: calc(var(--loader-cell) * 2);
}
.loader__label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 2rem;
}
.loader__label .tag__dot { animation: loader-blink .8s steps(2, jump-none) infinite; }
.loader__wipe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.loader.is-exiting { background: transparent; pointer-events: none; }
.loader.is-exiting .loader__inner { opacity: 0; transform: scale(.92); }
.loader.is-fading { opacity: 0; transition: opacity .3s ease; }

@keyframes loader-blink { 50% { opacity: 0; } }

@media (max-width: 1199px) {
  .loader { --loader-cell: 2.4rem; }
  .loader__count { font-size: 8rem; }
  .loader__label { font-size: 1.4rem; }
}

/* ==========================================================================
   Hero reveal (js/hero.js adds .is-revealed after the loader)
   The same classes exist on the black copy in .hero__invert, so both layers
   animate together.
   ========================================================================== */

html.js .hero:not(.is-revealed) .menu-tab,
html.js .hero:not(.is-revealed) .hero__logo,
html.js .hero:not(.is-revealed) .tag,
html.js .hero:not(.is-revealed) .hero__char,
html.js .hero:not(.is-revealed) .hero__lede,
html.js .hero:not(.is-revealed) .hero__actions { opacity: 0; }

.hero.is-revealed .menu-tab { animation: rv-menu .8s cubic-bezier(.22, 1, .36, 1) both; }
.hero.is-revealed .hero__logo { animation: rv-drop .9s cubic-bezier(.34, 1.56, .64, 1) .1s both; }
/* Stepped animations use jump-none, never end: iOS Safari can hold a steps(n, end)
   animation on its second-to-last frame (a tag cut short, half-faded letters).
   jump-none shows the final frame for the whole last step, so a held frame is
   already the end state. steps(n + 1, jump-none) keeps the same frames. */
.hero.is-revealed .tag { animation: rv-print .45s steps(8, jump-none) .25s both; }
.hero.is-revealed .hero__line--sans .hero__char {
  animation: rv-pop .9s cubic-bezier(.34, 1.56, .64, 1) both;
  animation-delay: calc(.35s + var(--i) * 32ms);
}
.hero.is-revealed .hero__line--pixel .hero__char {
  animation: rv-pixel .36s steps(4, jump-none) both;
  animation-delay: calc(.8s + var(--i) * 45ms);
}
.hero.is-revealed .hero__lede { animation: rv-rise .9s cubic-bezier(.22, 1, .36, 1) 1.35s both; }
.hero.is-revealed .hero__actions { animation: rv-rise .9s cubic-bezier(.22, 1, .36, 1) 1.5s both; }
/* Inner pages (no letter-by-letter headline): the title lines, intro and buttons
   rise in one after another, the same easing as the homepage hero. */
html.js .hero:not(.is-revealed):not(:has(.hero__line)) h1 [class*="__line--"],
html.js .hero:not(.is-revealed):not(:has(.hero__line)) h1:not(:has([class*="__line--"])),
html.js .hero:not(.is-revealed):not(:has(.hero__line)) [class*="__lede"]:not([class*="__lede-"]) { opacity: 0; }
.hero.is-revealed:not(:has(.hero__line)) h1 [class*="__line--"] { display: block; animation: rv-rise .8s cubic-bezier(.22, 1, .36, 1) .12s both; }
.hero.is-revealed:not(:has(.hero__line)) h1 [class*="__line--pixel"] { animation-delay: .26s; }
.hero.is-revealed:not(:has(.hero__line)) h1:not(:has([class*="__line--"])) { animation: rv-rise .8s cubic-bezier(.22, 1, .36, 1) .12s both; }
.hero.is-revealed:not(:has(.hero__line)) [class*="__lede"]:not([class*="__lede-"]) { animation: rv-rise .8s cubic-bezier(.22, 1, .36, 1) .4s both; }
.hero.is-revealed:not(:has(.hero__line)) .hero__actions { animation-duration: .8s; animation-delay: .54s; }
@media (prefers-reduced-motion: reduce) {
  .hero.is-revealed:not(:has(.hero__line)) h1 [class*="__line--"],
  .hero.is-revealed:not(:has(.hero__line)) h1,
  .hero.is-revealed:not(:has(.hero__line)) [class*="__lede"] { animation: none; opacity: 1; }
}

@keyframes rv-menu {
  from { transform: translateX(-100%); }
  to   { transform: none; }
}
@keyframes rv-drop {
  from { opacity: 0; translate: 0 -3rem; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes rv-print {
  from { opacity: 1; clip-path: inset(0 100% 0 0); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes rv-pop {
  from { opacity: 0; transform: translateY(.45em) rotate(8deg) scale(.9); }
  40%  { opacity: 1; }
  to   { opacity: 1; transform: none; }
}
/* Each letter arrives whole. A clip wipe cuts the pixel face mid-module, so
   the word reads as loose dashes while it animates; stepping the whole glyph
   up instead keeps every frame a readable letter and still looks pixelled. */
@keyframes rv-pixel {
  from { opacity: 0; transform: translateY(.14em); }
  to   { opacity: 1; transform: none; }
}
@keyframes rv-rise {
  from { opacity: 0; transform: translateY(2rem); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   CTA + menu interactions (state classes set by js/hero.js)
   - pixel-step fill wipes in on hover
   - arrow loops out and back in
   - magnetic pull toward the pointer, squash on press
   ========================================================================== */

.btn {
  transform: translate(var(--mx, 0px), var(--my, 0px)) scale(1);
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.btn.is-press { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(.95); transition-duration: .12s; }

/* Hover fill: js/motion.js puts a filled copy of the label / arrow on top of each
   part and slides its clip open, so text and arrow change colour exactly at the
   moving edge (same technique as the contact email). */
.btn__fill {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: inherit;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .6s cubic-bezier(.65, 0, .35, 1);
  pointer-events: none;
}
.btn__icon .btn__fill { transition-delay: .08s; }
.btn.is-hover .btn__fill { clip-path: inset(0 0 0 0); }
.btn.is-hover .btn__icon .btn__fill { transition-delay: .1s; }
.btn:not(.is-hover) .btn__label .btn__fill { transition-delay: .06s; }   /* retract arrow first, then label */
.btn:not(.is-hover) .btn__icon .btn__fill { transition-delay: 0s; }

.btn--solid .btn__fill { background: linear-gradient(90deg, var(--lavender), var(--accent)); color: var(--black); }
.btn--outline .btn__fill { inset: -1px; background: var(--white); color: var(--black); }
.btn--outline .btn__fill img { filter: invert(1); }
/* touch: a tap starts the next page at once, so the wipe only got part way and
   read as a grey flash; a press (js/hero.js) shows the fill whole at once */
.btn.is-pressed .btn__fill { clip-path: inset(0 0 0 0); transition: none; }
.btn.is-pressed .arrow-roll img { transition: none; }
.btn.is-pressed .arrow-roll img:first-child { transform: translateX(260%); }
.btn.is-pressed .arrow-roll img:last-child { transform: none; }

.arrow-roll { display: grid; place-items: center; }
.arrow-roll img {
  grid-area: 1 / 1;
  transition: transform .5s cubic-bezier(.65, 0, .35, 1);
}
.arrow-roll img:last-child { transform: translateX(-260%); }
.btn.is-hover .arrow-roll img:first-child { transform: translateX(260%); }
.btn.is-hover .arrow-roll img:last-child { transform: none; }

/* On the black copy the outline button fills black instead of white. */
.hero__invert .btn--outline .btn__fill { background: var(--black); color: var(--white); }
.hero__invert .btn--outline .btn__fill img { filter: none; }

@media (prefers-reduced-motion: reduce) {
  .hero.is-revealed .menu-tab,
  .hero.is-revealed .hero__logo,
  .hero.is-revealed .tag,
  .hero.is-revealed .hero__char,
  .hero.is-revealed .hero__lede,
  .hero.is-revealed .hero__actions { animation: none; opacity: 1; }
  .btn, .btn__fill { transition: none; }
  .arrow-roll img { transition: none; }
  .btn.is-hover .arrow-roll img:first-child { transform: none; }
  .arrow-roll img:last-child { display: none; }
}

/* ==========================================================================
   Menu panel (Figma "Menu Open", 328 x 363) — js/hero.js animates it
   Same width and header position as the Menu tab; the body extends down and
   the tab's stepped corner travels down with the bottom edge.
   ========================================================================== */

.menu-panel {
  --panel-w: 26.4rem;
  /* Figma draws the panel at 363 for eight entries; Contact makes nine, so it
     grows by one row (2.3) plus its gap (1.2). */
  --panel-h: 39.8rem;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  width: calc(var(--panel-w) + 6.4rem);
  height: var(--panel-h);
  color: var(--black);
  cursor: default;
}
.menu-panel[hidden] { display: none; }
.hero > .menu-tab.is-covered,
.article-head > .menu-tab.is-covered { visibility: hidden; }

.menu-panel__body {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--panel-w);
  height: var(--panel-h);
  padding: 2rem 3.6rem 2rem 6.6rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
/* same geometry as the Menu tab's steps, anchored to the bottom edge */
.menu-panel__step { position: absolute; background: var(--white); }
.menu-panel__step--1 { left: 26.3rem; top: calc(var(--panel-h) - 3.3rem); width: 3.3rem; height: 3.3rem; }
.menu-panel__step--2 { left: 29.5rem; top: calc(var(--panel-h) - 1.6rem); width: 3.3rem; height: 1.6rem; }

.menu-panel__close {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 1.6rem;
  height: 3.1rem;
  color: var(--black);
  font-size: 2.4rem;
  letter-spacing: -0.04em;
}
.menu-panel__close img {
  width: 2rem;
  height: 2rem;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.menu-panel__close:hover img,
.menu-panel__close:focus-visible img { transform: rotate(90deg); }
/* no mint focus ring on the menu: opening it moves focus to the close button and
   closing it moves focus back to the tab, so the ring showed on every open. The
   menu's own focus states stay (the x turns, a link fills black, the tab lifts) */
.menu-tab:focus-visible,
.menu-panel__close:focus-visible,
.menu-panel__link:focus-visible { outline: none; }

.menu-panel__list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.menu-panel__list li {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  height: 2.3rem;
}
.menu-panel__num {
  flex: none;
  width: 3.8rem;
  color: var(--line);
  font-size: 1.6rem;
  letter-spacing: -0.06em;
  white-space: pre;
}
.menu-panel__link {
  position: relative;
  isolation: isolate;
  display: inline-block;
  margin: 0 -0.4rem;
  padding: 0 0.4rem;
  color: var(--black);
  font-size: 1.8rem;
  letter-spacing: -0.06em;
  white-space: nowrap;
  transition: color .15s steps(2);
}
/* hover: black highlight wipes in, in pixel steps */
.menu-panel__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--black);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .24s steps(5, end);
}
.menu-panel__link:hover,
.menu-panel__link:focus-visible { color: var(--white); }
.menu-panel__link:hover::before,
.menu-panel__link:focus-visible::before { clip-path: inset(0 0 0 0); }
/* touch: a tap starts the next page at once, so the wipe never got past its
   first step. A press (js/hero.js) fills the highlight straight away instead,
   and it holds while the next page loads */
.menu-panel__link { -webkit-tap-highlight-color: transparent; }
.menu-panel__link.is-pressed { color: var(--white); transition: none; }
.menu-panel__link.is-pressed::before { clip-path: inset(0 0 0 0); transition: none; }

@media (max-width: 1199px) {
  /* The nine rows were 2rem on a 1rem gap inside a 30rem panel, which is 26
     taller than the panel: Blog rendered below the white, black on black. The
     rows are now a 4.4rem touch target each, and the panel is the height that
     holds them: 1 + 2.4 close + 1.6 gap + 9 x 4.4 + 1.6. */
  .menu-panel { --panel-w: 18rem; --panel-h: 46.2rem; width: calc(var(--panel-w) + 4.4rem); }
  .menu-panel__body { padding: 1rem 1.2rem 1.6rem 2rem; gap: 1.6rem; }
  .menu-panel__close { height: 2.4rem; gap: 1rem; font-size: 1.6rem; }
  .menu-panel__close img { width: 1.6rem; height: 1.6rem; }
  .menu-panel__list { gap: 0; }
  .menu-panel__list li { gap: 1rem; height: 4.4rem; }
  .menu-panel__num { width: 3rem; font-size: 1.3rem; }
  .menu-panel__link { font-size: 1.5rem; }
  .menu-panel__step--1 { left: calc(var(--panel-w) - 0.1rem); top: calc(var(--panel-h) - 2.2rem); width: 2.2rem; height: 2.2rem; }
  .menu-panel__step--2 { left: calc(var(--panel-w) + 2rem); top: calc(var(--panel-h) - 1.1rem); width: 1.6rem; height: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-panel__link::before,
  .menu-panel__close img { transition: none; }
}

/* ==========================================================================
   Capabilities (Figma 222:1149) — five staggered cluster cards that run off
   the right edge; the track scrolls sideways (drag, wheel, or swipe).
   ========================================================================== */

.capabilities {
  position: relative;
  height: 133.4rem;          /* Figma: later cards run under the section edge */
  padding: var(--gutter) 0 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* With the agenda motion (js/motion.js) the section grows to hold the pin.
   overflow-x: clip keeps sideways overflow hidden without breaking position: sticky. */
@media (min-width: 1200px) {
  html.js .capabilities:has(.clusters-pin) { height: auto; overflow: visible; overflow-x: clip; }
}
.capabilities__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  padding: 0 var(--gutter);
}
.capabilities__copy { display: flex; flex-direction: column; gap: 2.4rem; }

.clusters {
  margin-top: 6.1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  cursor: grab;
  overscroll-behavior-x: contain;
}
.clusters::-webkit-scrollbar { display: none; }
.clusters.is-dragging { cursor: grabbing; user-select: none; }
.clusters__track {
  display: flex;
  align-items: flex-start;
  width: max-content;
  padding: 0 var(--gutter) 0;
  height: 93.6rem;
}

.cluster {
  --step: 4.4rem;
  position: relative;
  flex: none;
  width: 41.5rem;
  height: 76rem;
  margin-top: calc(var(--i) * var(--step));
  background: var(--black);
  border-left: 1px solid var(--line);
}
.cluster__num {
  position: absolute;
  top: 0;
  left: -1px;
  padding: 0.6rem 1.4rem;
  background: var(--white);
  color: var(--black);
  font-size: 2rem;
  white-space: nowrap;
}
.cluster__body {
  position: absolute;
  top: 3.8rem;
  left: -1px;
  width: 41.5rem;
  height: 72.2rem;
  display: flex;
  flex-direction: column;
}
.cluster__head {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  padding: 3.2rem;
  border-bottom: 1px solid var(--line);
}
.cluster__title {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: 4.2rem;
  line-height: 1;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.cluster__desc { color: var(--muted-2); font-size: 1.8rem; letter-spacing: 0; }

.cluster__stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.cluster__stack li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3.2rem 0.8rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.8rem;
  letter-spacing: 0;
  white-space: nowrap;
}
.cluster__stack li:nth-child(odd) { border-right: 1px solid var(--line); }
.cluster__stack li::before {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--white);
}

.cluster__shipped {
  padding: 3.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: 0;
}
.cluster__shipped b { font-family: var(--pixel); font-weight: 400; }

.cluster__cta { flex: 1; padding: 3.2rem 3.2rem 2.8rem; }
.btn--sm { font-size: 2rem; }
.btn--sm .btn__label,
.btn--sm .btn__icon { height: 5rem; }
.btn--sm .btn__icon { width: 5rem; }
.btn--sm .btn__icon img { width: 2rem; height: 2rem; }

/* ==========================================================================
   Selected work (Figma 222:1345) — stepped lavender→mint block and its dark
   counterpart, sized in design pixels.
   ========================================================================== */

.work {
  /* the image + panel block fills one screen (Figma draws it at 935px) */
  --work-stage: 93.5rem;
  --work-count: 5;
  position: relative;
  padding: var(--gutter) 0 10rem;
  border-bottom: 1px solid var(--line);
  overflow-x: clip;                  /* clip, not hidden: the stage is sticky */
}
.work__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  padding: 0 var(--gutter);
}
.work__copy { display: flex; flex-direction: column; gap: 2.4rem; }
@media (min-width: 1200px) {
  .work { --work-stage: 100vh; --work-stage: 100svh; }
}
/* the pin is as tall as one screen per project; the stage sticks while js/motion.js swaps projects */
.work__pin {
  position: relative;
  margin-top: 6.2rem;                /* stage starts 473px into the section, as in Figma */
  height: calc(var(--work-stage) * var(--work-count));
}
.work__stage {
  position: sticky;
  top: 0;
  width: 192rem;
  height: var(--work-stage);
  overflow: hidden;
}
.work__visual {
  position: absolute;
  top: 0;
  left: 0;
  width: 109.5rem;
  height: 100%;
}
/* stepped gradient shape: steps keep their Figma size, the height follows the screen */
.work__shape {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(to bottom, var(--lavender), var(--accent));
  clip-path: polygon(
    0 0, 80.5rem 0, 80.5rem 12.9rem, 96rem 12.9rem,
    96rem calc(100% - 9.5rem), 100% calc(100% - 9.5rem), 100% 100%, 0 100%
  );
}
.work__image { position: absolute; inset: 0; overflow: hidden; }
/* one photo per project, placed with its Figma crop: height + top as % of the block,
   horizontal centre as % of the block width; the width follows the photo's ratio */
.work__img {
  position: absolute;
  top: var(--img-t);
  left: var(--img-cx);
  height: var(--img-h);
  width: auto;
  aspect-ratio: var(--img-ar);
  max-width: none;
  translate: -50% 0;
}
.work__frame { position: absolute; inset: 0; visibility: hidden; }
.work__frame.is-active { visibility: visible; }
/* dark stepped panel sits over the right edge of the image */
.work__panel-shape {
  position: absolute;
  top: 0;
  left: 80.5rem;
  width: 111.5rem;
  height: 100%;
  display: block;
  background: var(--surface);
  clip-path: polygon(
    0 12.9rem, 0 0, 100% 0, 100% 100%, 29rem 100%,
    29rem calc(100% - 9.5rem), 15.5rem calc(100% - 9.5rem), 15.5rem 12.9rem
  );
}
/* right half: content block centred, CTA aligned right (Figma 222:1743) */
.work__panel { position: absolute; top: 0; left: 96rem; width: 96rem; height: 100%; }
.work__content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80rem;
  transform: translate(-50%, -50%);
  display: grid;                     /* slides share one cell; only the active one shows */
}
.work__slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(3.2rem, calc(var(--work-stage) - 76.9rem), 16.6rem);   /* tighter on short screens */
  visibility: hidden;
}
.work__slide.is-active { visibility: visible; }
.work__slide-img { display: none; }
.work__project { display: flex; flex-direction: column; gap: 6rem; width: 100%; }
.work__summary { display: flex; flex-direction: column; align-items: flex-start; gap: 4rem; }
.work__meta { display: flex; flex-direction: column; gap: 1.2rem; width: 100%; white-space: nowrap; }
.work__num { font-size: 2.4rem; }
.work__title-row { display: flex; align-items: center; justify-content: space-between; }
.work__title { font-family: var(--pixel); font-weight: 400; font-size: 6.2rem; letter-spacing: -0.06em; }
.work__sector { color: var(--muted-2); font-size: 2rem; }
.work__desc { color: var(--muted-2); font-size: 2.8rem; }
.work__rule { width: 100%; height: 1px; margin: 0; border: 0; background: var(--line); }
.work__metric {
  padding: 0.6rem 1.4rem;
  background: var(--white);
  color: var(--black);
  font-size: 3.2rem;
  white-space: nowrap;
}
.work__tech { display: flex; flex-direction: column; gap: 2.4rem; }
.work__tech-label { color: var(--muted-2); font-family: var(--pixel); font-size: 2.4rem; line-height: 1; }
.work__tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 28rem);
  width: max-content;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.work__tech-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3.2rem 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 2.4rem;
  white-space: nowrap;
}
.work__tech-grid li::before { content: ""; width: 0.6rem; height: 0.6rem; background: var(--white); flex: none; }
/* a stack with more than four items runs to three rows; tighten them so the CTA still fits */
.work__tech-grid--dense li { padding: 2rem 1rem; }
.work__footer {
  position: relative;
  margin-top: 4rem;
  /* the button ends 8rem in, under the panel copy and its "Read the case study"
     (an 80rem column centred in the 96rem half), not at the 10rem gutter */
  padding: 0 8rem 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.work__footer .meta { color: var(--muted-2); }

@media (max-width: 1199px) {
  .capabilities { height: auto; padding: 5.6rem 0; }
  .capabilities__intro { gap: 1.6rem; }
  .clusters { margin-top: 3.2rem; }
  .clusters__track { height: auto; padding-bottom: 2rem; }
  .cluster { --step: 2rem; width: 30rem; height: auto; min-height: 60rem; }
  .cluster__body { position: relative; top: 3.4rem; width: 30rem; height: auto; padding-bottom: 3.4rem; }
  .cluster__num { font-size: 1.4rem; }
  .cluster__head { padding: 2rem; gap: 1.4rem; }
  .cluster__title { font-size: 2.8rem; }
  .cluster__desc, .cluster__stack li, .cluster__shipped { font-size: 1.4rem; }
  .cluster__stack li { padding: 2rem 0.6rem; }
  .cluster__shipped { padding: 2rem; line-height: 1.3; }
  .cluster__cta { padding: 2rem; }
  .btn--sm { font-size: 1.5rem; }
  .btn--sm .btn__label, .btn--sm .btn__icon { height: 4.2rem; }
  .btn--sm .btn__icon { width: 4.2rem; }

  /* phones: no pin, the five projects simply stack, each with its own photo */
  .work { padding: 5.6rem 0 0; }
  .work__pin { height: auto; margin-top: 3.2rem; }
  .work__stage { position: static; width: auto; height: auto; overflow: visible; }
  .work__visual, .work__panel-shape { display: none; }
  .work__panel, .work__content, .work__footer { position: static; width: auto; height: auto; transform: none; }
  .work__content { display: flex; flex-direction: column; gap: 1.6rem; }
  .work__slide {
    visibility: visible;
    align-items: flex-start;
    gap: 2.4rem;
    padding-bottom: 3.2rem;
    background: var(--surface);
  }
  .work__slide-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1095 / 935;
    object-fit: cover;
    object-position: 50% 0;
    background: linear-gradient(to bottom, var(--lavender), var(--accent));
  }
  .work__slide .work__project, .work__slide .work__cta { margin: 0 var(--gutter); }
  .work__slide .work__project { width: auto; align-self: stretch; }
  .work__project { gap: 2.4rem; }
  .work__summary { gap: 2rem; }
  .work__meta { white-space: normal; }
  .work__num { font-size: 1.6rem; }
  .work__title-row { flex-wrap: wrap; gap: 0.8rem 1.6rem; }
  .work__title { font-size: 4rem; }
  .work__sector { font-size: 1.4rem; }
  .work__desc { font-size: 1.8rem; }
  /* the break shapes two lines on the wide desktop card; on a narrower screen
     the first half wraps by itself and the break strands its last word */
  .work__desc br { display: none; }
  .work__metric { font-size: 2rem; }
  .work__tech-label { font-size: 1.6rem; }
  .work__tech-grid { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .work__tech-grid li { padding: 1.6rem 0.8rem; font-size: 1.6rem; }
  .work__footer { flex-wrap: wrap; padding: 3.2rem var(--gutter) 4rem; }
  .work__footer .meta { font-size: 1.4rem; }
}

/* ==========================================================================
   Scroll & interaction motion (js/motion.js) — Tenora-style patterns.
   Loader, hero reveal and the loader's exit wipe are not affected.
   Hidden start states only apply with JS on and motion allowed.
   ========================================================================== */

/* ---- 1. Section headings: highlight box stretches while letters type in, then clears ---- */
.hl { position: relative; display: inline-block; }
.hl__box {
  position: absolute;
  inset: 0.04em -0.12em 0.02em -0.12em;
  background: var(--white);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
}
.hl__text { position: relative; }
.hl__char { display: inline-block; --final: var(--white); }
.split-word { display: inline-block; white-space: nowrap; }
.accent .hl__char { --final: var(--accent); }

html.js .reveal-heading:not(.is-in) .hl__char { opacity: 0; }
.reveal-heading.is-in .hl__box {
  animation: hl-box 1.35s cubic-bezier(.65, 0, .35, 1) var(--line-delay) both;
}
.reveal-heading.is-in .hl__char {
  animation:
    hl-char .18s steps(3, jump-none) calc(var(--line-delay) + 0.08s + var(--i) * var(--step)) both,
    hl-char-final .3s ease calc(var(--line-delay) + 1s) forwards;
}
/* Once the line has settled (js/motion.js adds .hl-done) each letter holds its
   final look as a plain style instead of hundreds of finished animations. */
.reveal-heading.hl-done .hl__char { animation: none; opacity: 1; color: var(--final); }
.reveal-heading.hl-done .hl__box { animation: none; visibility: hidden; }
@keyframes hl-box {
  0%   { transform: scaleX(var(--s0, 0.06)); clip-path: inset(0 0 0 0); }
  55%  { transform: scaleX(1); clip-path: inset(0 0 0 0); }
  74%  { transform: scaleX(1); clip-path: inset(0 0 0 0); }
  100% { transform: scaleX(1); clip-path: inset(0 0 0 100%); }
}
@keyframes hl-char {
  from { opacity: 0; color: #676767; }
  to   { opacity: 1; color: var(--hl-ink, var(--black)); }
}
@keyframes hl-char-final {
  from { color: var(--hl-ink, var(--black)); }
  to   { color: var(--final); }
}

/* ============================================================
   THREE SITUATIONS / PROBLEMS (Figma 385:3686 and 324:2439)
   Head + three 560x618 cards, each with its own pixel artwork.
   Used by both the startups and the agencies page.
   ============================================================ */
.situations {
  padding: var(--gutter);
  border-bottom: 1px solid var(--line);
}
.situations__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 6rem;
}
.situations__head .heading { gap: 0; }
.situations__head .lede { margin-top: 0.4rem; max-width: 172rem; }

/* the agencies page puts a line of proof opposite the tag */
.situations__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 172rem;
}
.situations__meta { color: var(--muted); font-size: 2.4rem; letter-spacing: 0; white-space: nowrap; }

.situations__list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.situation {
  position: relative;
  flex: none;
  width: 56rem;
  height: 61.8rem;
  background-color: var(--surface);
  border: 1px solid var(--muted-2);
  overflow: hidden;
}
.situation__num {
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  background: var(--white);
  color: var(--black);
  font-size: 2rem;
  letter-spacing: 0;
  white-space: nowrap;
}
.situation__art { position: absolute; display: block; }
.situation--1 .situation__art { left: 5rem; top: 13.3rem; width: 46rem; height: 20.4624rem; }
.situation--2 .situation__art { left: 4.9rem; top: 11.9rem; width: 46rem; height: 23rem; }
.situation--3 .situation__art { left: 4.9rem; top: 15.4rem; width: 46rem; height: 15.9291rem; }

.situation__title {
  position: absolute;
  left: 3.2rem;
  top: 47.5rem;
  width: 49.6rem;
  font-size: 4.2rem;
  letter-spacing: -0.06em;
  color: var(--white);
}
.situation__title .accent { font-family: var(--pixel); font-style: normal; color: var(--accent); }

/* ============================================================
   FOUNDER PRICING (Figma 390:4156)
   Three stacked rows: copy on the left, two bordered figure
   cells on the right.
   ============================================================ */
.pricing {
  padding: var(--gutter);
  border-bottom: 1px solid var(--line);
}
.pricing__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 6rem;
}
.pricing__head .lede { margin-top: 0.4rem; }

.pricing__table { list-style: none; }

/* ---- reveal (js/startups.js adds .is-in) ----
   A black cover slides off each row in turn, then the name, the copy and the
   two figure cells settle in behind it. Everything moves on transform/opacity
   so the browser can composite the whole thing. */
.price-row__wipe {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--black);
  transform: translate3d(0, 0, 0);
  pointer-events: none;
  will-change: transform;
}
html.js .pricing__table:not(.is-in) .price-row__copy,
html.js .pricing__table:not(.is-in) .price-cell > * { opacity: 0; }

.pricing__table.is-in .price-row__wipe {
  animation: price-wipe .6s cubic-bezier(.65, 0, .35, 1) both;
  animation-delay: calc(var(--t) * 130ms);
}
.pricing__table.is-in .price-row__copy {
  animation: price-rise-centred .55s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(var(--t) * 130ms + .2s);
}
.pricing__table.is-in .price-cell > * {
  animation: price-rise .55s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(var(--t) * 130ms + .28s + var(--c, 0) * .07s);
}
@keyframes price-wipe {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(101%, 0, 0); }
}
@keyframes price-rise {
  from { opacity: 0; transform: translate3d(0, 1.4rem, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
/* the copy block is vertically centred, so its rise has to keep the -50% */
@keyframes price-rise-centred {
  from { opacity: 0; transform: translate3d(0, calc(-50% + 1.4rem), 0); }
  to   { opacity: 1; transform: translate3d(0, -50%, 0); }
}

.price-row {
  position: relative;
  height: 18.8rem;
  background-color: var(--surface);
  border: 1px solid var(--muted-2);
  overflow: hidden;
}
.price-row + .price-row { border-top: 0; }

.price-row__copy {
  position: absolute;
  left: 4.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 91.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  color: var(--white);
}
.price-row__name {
  font-family: var(--pixel);
  font-size: 4.2rem;
  line-height: 1;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.price-row__text { font-size: 1.6rem; letter-spacing: 0; }

.price-row__cells {
  position: absolute;
  /* anchored to the right edge so the last cell's border lands on the row's own
     border instead of sitting a hair inside it and reading as a double line */
  right: -1px;
  top: -1px;
  display: flex;
  height: 18.8rem;
}
.price-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 36rem;
  height: 100%;
  padding: 4rem;
  border: 1px solid var(--line);
  overflow: hidden;
}
.price-cell__value {
  font-family: var(--pixel);
  font-size: 3.6rem;
  letter-spacing: -0.06em;
  color: var(--white);
  white-space: nowrap;
}
.price-cell__label { color: var(--muted-2); font-size: 2rem; letter-spacing: 0; white-space: nowrap; }


/* ============================================================
   FOUNDER NOTE CTA (Figma 437:310)
   Gradient panel with the notched corners from the Figma shape.
   ============================================================ */
.note {
  position: relative;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
}
.note::before,
.note::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.note::before { left: var(--gutter); }
.note::after { right: var(--gutter); }

.note__panel {
  position: relative;
  width: 171.9rem;
  height: 64.7rem;
  padding: 10rem;
  background: url("../assets/startups/cta-panel.svg") no-repeat 0 0 / 100% 100%;
}
.note__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 2rem; width: 151.9rem; }
.note__lines { display: flex; flex-direction: column; gap: 1.2rem; }
.note__heading { color: var(--black); white-space: nowrap; }
.note__heading .heading__pixel { color: var(--black); }
.note__lede { color: var(--surface); font-size: 2.4rem; letter-spacing: 0; }

.note__actions { display: flex; gap: 2rem; margin-top: 6rem; }

/* the email row inside the closing panel */
.note__mail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap;
  width: 100%;
}
.note__write { display: flex; align-items: center; gap: 1.2rem; }
.note__addr {
  /* the hover copy is positioned against this box; the wipe itself is the
     rule the contact band uses, shared below */
  position: relative;
  display: inline-block;
  background: var(--white);
  color: var(--black);
  font-family: var(--pixel);
  font-size: 5.2rem;
  letter-spacing: -0.06em;
  padding: 0.2rem 0.8rem;
  text-decoration: none;
}
.note__meta { color: #101010; font-size: 2.4rem; letter-spacing: 0; }


@media (max-width: 1199px) {
  .note__write { flex-wrap: wrap; }
  .note__addr { font-size: clamp(1.4rem, 4.4vw, 3.2rem); padding: 1rem 0.8rem; max-width: 100%; word-break: break-all; }
  .note__meta { font-size: 1.6rem; }
}


/* the heading reveal runs dark on the gradient panel */
.note .reveal-heading { --hl-ink: var(--white); }
.note .hl__char { --final: var(--black); }
.note .hl__box { background: var(--black); }

/* black buttons sitting on the gradient */
.btn--ink .btn__label,
.btn--ink .btn__icon { background: #020202; color: var(--white); border-color: #020202; }
.btn--ink-outline .btn__label,
.btn--ink-outline .btn__icon { background: transparent; color: #020202; border: 1px solid #020202; }
/* its arrow is already the dark one, so the white hover fill must not invert it
   (inverted it turned white and vanished on the white fill) */
.btn--ink-outline .btn__fill img { filter: none; }

/* black pill on the gradient panel (Figma 437:317) */
.tag--invert { background: var(--black); color: var(--white); }

/* the agencies panel is shorter and sets its heading on one line */
.note--agencies .note__panel {
  height: 55.4rem;
  background-image: url("../assets/agencies/cta-panel.svg");
}
.note--agencies .note__heading { display: flex; flex-direction: row; align-items: center; gap: 2.4rem; }
.note--agencies .note__heading .heading__sans { margin-bottom: 0; }

/* ============================================================
   CARD HOVER
   The card fills with the brand gradient, wiping up from the bottom, and the
   copy inverts to dark. Done with background-size on the element itself, so
   the content needs no stacking context and nothing reflows.
   Replaces the old border recolour, which lit unevenly wherever two cards
   shared an edge.
   ============================================================ */
.situation,
.sprint-card,
.sector,
.turndown,
.stack,
.rhythm,
.price-row,
.prop,
.disc,
.pain,
.vert,
.kit,
.plan,
.beat,
.artefact {
  background-color: var(--surface);
  background-image: linear-gradient(180deg, var(--lavender) 0%, var(--accent) 100%);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0;
  transition: background-size .7s cubic-bezier(.22, 1, .36, 1);
}
.situation:hover,
.sprint-card:hover,
.sector:hover,
.turndown:hover,
.stack:hover,
.rhythm:hover,
.price-row:hover,
.prop:hover,
.disc:hover,
.pain:hover,
.vert:hover,
.kit:hover,
.plan:hover,
.beat:hover,
.artefact:hover { background-size: 100% 100%; }

/* ---- the copy goes dark on the fill ---- */
.situation:hover .situation__title,
.situation:hover .situation__title .accent,
.sprint-card:hover .sprint-card__week,
.sprint-card:hover .sprint-card__title,
.sprint-card:hover .sprint-card__text,
.sector:hover .sector__title,
.sector:hover .sector__sub,
.turndown:hover .turndown__title,
.turndown:hover .turndown__title .accent,
.turndown:hover .turndown__text,
.stack:hover .stack__title,
.stack:hover .stack__sub,
.stack:hover .stack__tool,
.rhythm:hover .rhythm__label,
.rhythm:hover .rhythm__title,
.rhythm:hover .rhythm__text,
.rhythm:hover .rhythm__tool,
.price-row:hover .price-row__name,
.price-row:hover .price-row__text,
.price-row:hover .price-cell__value,
.price-row:hover .price-cell__label,
.artefact:hover .artefact__title,
.artefact:hover .artefact__title em,
.prop:hover .prop__num,
.prop:hover .prop__title,
.prop:hover .prop__text,
.disc:hover .disc__title,
.disc:hover .disc__text,
.pain:hover .pain__n,
.pain:hover .pain__title,
.pain:hover .pain__quote,
.pain:hover .pain__label,
.pain:hover .pain__fix,
.pain:hover .pain__detail,
.vert:hover .vert__title,
.vert:hover .vert__text,
.kit:hover .kit__title,
.kit:hover .kit__sub,
.kit:hover .kit__tool,
.plan:hover .plan__title,
.plan:hover .plan__sub,
.plan:hover .plan__feat,
.beat:hover .beat__title,
.beat:hover .beat__text,
.artefact:hover .artefact__text { color: var(--surface); }

/* dividers and dots inside a filled card read as dark too */
.stack:hover .stack__tool,
.kit:hover .kit__tool,
.rhythm:hover .rhythm__tool + .rhythm__tool,
.price-row:hover .price-cell { border-color: rgba(1, 1, 1, 0.25); }
.stack:hover .stack__dot,
.kit:hover .kit__dot,
.plan:hover .plan__dot,
.prop:hover .prop__art i,
.rhythm:hover .rhythm__dot { background: var(--black); }

/* touch screens: there is no hover, so js/sections.js lights the card crossing
   the middle of the screen with .is-lit while the page scrolls (iOS only did it
   by accident, through the finger's hover; Android never did). Same look. */
.situation.is-lit,
.sprint-card.is-lit,
.sector.is-lit,
.turndown.is-lit,
.stack.is-lit,
.rhythm.is-lit,
.price-row.is-lit,
.prop.is-lit,
.disc.is-lit,
.pain.is-lit,
.vert.is-lit,
.kit.is-lit,
.plan.is-lit,
.beat.is-lit,
.artefact.is-lit { background-size: 100% 100%; }
.situation.is-lit .situation__title,
.situation.is-lit .situation__title .accent,
.sprint-card.is-lit .sprint-card__week,
.sprint-card.is-lit .sprint-card__title,
.sprint-card.is-lit .sprint-card__text,
.sector.is-lit .sector__title,
.sector.is-lit .sector__sub,
.turndown.is-lit .turndown__title,
.turndown.is-lit .turndown__title .accent,
.turndown.is-lit .turndown__text,
.stack.is-lit .stack__title,
.stack.is-lit .stack__sub,
.stack.is-lit .stack__tool,
.rhythm.is-lit .rhythm__label,
.rhythm.is-lit .rhythm__title,
.rhythm.is-lit .rhythm__text,
.rhythm.is-lit .rhythm__tool,
.price-row.is-lit .price-row__name,
.price-row.is-lit .price-row__text,
.price-row.is-lit .price-cell__value,
.price-row.is-lit .price-cell__label,
.artefact.is-lit .artefact__title,
.artefact.is-lit .artefact__title em,
.prop.is-lit .prop__num,
.prop.is-lit .prop__title,
.prop.is-lit .prop__text,
.disc.is-lit .disc__title,
.disc.is-lit .disc__text,
.pain.is-lit .pain__n,
.pain.is-lit .pain__title,
.pain.is-lit .pain__quote,
.pain.is-lit .pain__label,
.pain.is-lit .pain__fix,
.pain.is-lit .pain__detail,
.vert.is-lit .vert__title,
.vert.is-lit .vert__text,
.kit.is-lit .kit__title,
.kit.is-lit .kit__sub,
.kit.is-lit .kit__tool,
.plan.is-lit .plan__title,
.plan.is-lit .plan__sub,
.plan.is-lit .plan__feat,
.beat.is-lit .beat__title,
.beat.is-lit .beat__text,
.artefact.is-lit .artefact__text { color: var(--surface); }
.stack.is-lit .stack__tool,
.kit.is-lit .kit__tool,
.rhythm.is-lit .rhythm__tool + .rhythm__tool,
.price-row.is-lit .price-cell { border-color: rgba(1, 1, 1, 0.25); }
.stack.is-lit .stack__dot,
.kit.is-lit .kit__dot,
.plan.is-lit .plan__dot,
.prop.is-lit .prop__art i,
.rhythm.is-lit .rhythm__dot { background: var(--black); }
.situation.is-lit .situation__art,
.sprint-card.is-lit .sprint-card__icon { filter: brightness(0); }
.turndown.is-lit .turndown__art { opacity: 0.9; }
.stack:hover .stack__tool:hover,
.kit:hover .kit__tool:hover,
.rhythm:hover .rhythm__tool:hover { background: var(--white); color: var(--black); }
.stack:hover .stack__tool:hover .stack__dot,
.kit:hover .kit__tool:hover .kit__dot,
.rhythm:hover .rhythm__tool:hover .rhythm__dot { background: var(--black); }


/* the copy, rules and dots inside a card ease with the fill instead of
   flipping the moment the pointer arrives or leaves */
.situation *,
.sprint-card *,
.sector *,
.turndown *,
.stack *,
.rhythm *,
.price-row *,
.prop *,
.disc *,
.pain *,
.vert *,
.kit *,
.plan *,
.beat *,
.artefact * {
  transition: color .7s cubic-bezier(.22, 1, .36, 1),
              background-color .7s cubic-bezier(.22, 1, .36, 1),
              border-color .7s cubic-bezier(.22, 1, .36, 1);
}

/* cards that are already carrying the gradient keep their own surface */
.artefact.is-active { background-image: none; }

/* The artwork is drawn in the same mint/lavender as the fill, so it vanishes
   into it. Invert it to dark on hover, the way the copy does. */
.situation__art,
.sprint-card__icon,
.stack__dot,
.svc a img { transition: filter .35s ease, transform .5s cubic-bezier(.22, 1, .36, 1), opacity .3s ease; }
.situation:hover .situation__art,
.sprint-card:hover .sprint-card__icon { filter: brightness(0); }
.turndown:hover .turndown__art { opacity: 0.9; }

@media (prefers-reduced-motion: reduce) {
.situation,
.sprint-card,
.sector,
.turndown,
.stack,
.rhythm,
.onboard,
.price-row,
.prop,
.disc,
.pain,
.vert,
.kit,
.plan,
.beat,
.artefact { transition: none; }
.situation *,
.sprint-card *,
.sector *,
.turndown *,
.stack *,
.rhythm *,
.price-row *,
.prop *,
.disc *,
.pain *,
.vert *,
.kit *,
.plan *,
.beat *,
.artefact * { transition: none; }
}

/* ---- 1b. Card groups: rise and fade in, one after another ---- */
.su-stagger > * {
  /* longhand, because the hover fill must not inherit the reveal's delay */
  transition-property: opacity, transform, background-size;
  transition-duration: .6s, .85s, .7s;
  transition-timing-function: ease, cubic-bezier(.22, 1, .36, 1), cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--t, 0) * 110ms), calc(var(--t, 0) * 110ms), 0s;
  will-change: opacity, transform;
}
html.js .su-stagger:not(.is-in) > * { opacity: 0; transform: translate3d(0, 3.2rem, 0); }

.su-fade > * {
  transition-property: opacity, background-size;
  transition-duration: .6s, .7s;
  transition-timing-function: ease, cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--t, 0) * 90ms), 0s;
}
html.js .su-fade:not(.is-in) > * { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .su-stagger > *, .su-fade > * { transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* ---- 2. Paragraphs: words blur in ---- */
.reveal-words .w {
  display: inline-block;
  transition: opacity .7s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(0.35s + var(--i) * 16ms);
}
/* no blur here: a blur filter on every word made long paragraphs stutter */
html.js .reveal-words:not(.is-in) .w { opacity: 0; transform: translateY(0.5em); }

/* ---- 3. Tags + badge: print in ---- */
html.js .reveal-print:not(.is-in) { clip-path: inset(0 100% 0 0); }
.reveal-print.is-in { animation: rv-print .5s steps(8, jump-none) both; }   /* jump-none: see the hero tag */

/* ---- 5. Cards rise in ---- */
.reveal-cards > * {
  transition: opacity .6s ease, translate .9s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--card) * 110ms);
}
html.js .reveal-cards:not(.is-in) > * { opacity: 0; translate: 0 8rem; }

/* ---- 6. Beliefs: stepped white-block wipe ---- */
/* :where keeps this at zero specificity so absolutely placed blocks (work image) stay put */
:where(.reveal-wipe) { position: relative; }
/* the work image box runs under the dark panel: keep the bars in its own layer so the panel stays on top */

.pixel-wipe {
  position: absolute;
  inset: -1px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.pixel-wipe i {
  flex: 1;
  display: block;
  background: var(--white);
  transform-origin: right center;
  transition: transform .6s cubic-bezier(.76, 0, .24, 1);
  transition-delay: calc(var(--col) * 120ms + var(--r) * 55ms);
}
.reveal-wipe.is-in .pixel-wipe i { transform: scaleX(0); }
html:not(.js) .pixel-wipe { display: none; }

/* scroll-lit quote words */
.scroll-lit .w { color: #3a3a3a; transition: color .35s ease; }
.scroll-lit .w.is-lit { color: var(--white); }
.scroll-lit .accent.w.is-lit { color: var(--accent); }

/* ---- 7. Capabilities pinned while the cards move sideways (desktop) ---- */
.clusters-pin { position: relative; }
@media (min-width: 1200px) { .clusters-pin { margin-top: 6.1rem; } }
@media (min-width: 1200px) {
  .clusters-pin > .clusters.is-pinned {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    margin-top: 0;
    padding-top: max(4rem, calc((100vh - 93.6rem) / 2));
    overflow: hidden;
    cursor: default;
  }
  .clusters.is-pinned .clusters__track,
  .clusters.is-pinned .cluster { will-change: transform; }
  .clusters.is-pinned .clusters__track { transform-origin: 0 0; }
}

/* ---- 8. Selected work: floating image + cursor label ---- */
.work__img { will-change: transform; transform: scale(1.06); }

/* project change (js/motion.js): the photos are cut-outs, so they must not stack.
   The old photo fades away quickly; the new one rises in behind a soft feathered edge
   (a gradient mask, no hard line) while it settles from a slight zoom. */
@property --work-reveal {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 100%;
}
.work__frame.is-active { z-index: 1; }
.work__frame.is-leaving { visibility: visible; z-index: 0; animation: work-img-out .4s ease both; }
.work__frame.is-entering {
  -webkit-mask-image: linear-gradient(to top, #000 calc(var(--work-reveal) - 25%), transparent var(--work-reveal));
  mask-image: linear-gradient(to top, #000 calc(var(--work-reveal) - 25%), transparent var(--work-reveal));
  animation: work-img-in 1s cubic-bezier(.45, 0, .2, 1) .12s both;
}
.work__frame.is-entering .work__img { animation: work-img-zoom 1.2s cubic-bezier(.22, 1, .36, 1) .12s both; }
@keyframes work-img-in {
  from { --work-reveal: 0%; opacity: 0; }
  30%  { opacity: 1; }
  to   { --work-reveal: 125%; opacity: 1; }
}
@keyframes work-img-out { to { opacity: 0; } }
@keyframes work-img-zoom { from { scale: 1.08; } to { scale: 1; } }
.work__slide.is-leaving { visibility: visible; pointer-events: none; }
.work__slide.is-leaving [data-k] { animation: work-text-out .35s ease both; }
.work__slide.is-entering [data-k] {
  animation: work-text-in .75s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(.22s + var(--k) * 55ms);
}
@keyframes work-text-out { to { opacity: 0; translate: 0 -1.6rem; } }
@keyframes work-text-in { from { opacity: 0; translate: 0 2.4rem; } }
@media (min-width: 1200px) {        /* desktop only: on smaller screens the stage is not pinned */
  html.js .work__stage:not(.is-in) .work__frame.is-active { opacity: 0; }
  html.js .work__stage:not(.is-in) .work__slide.is-active [data-k] { opacity: 0; }
}

.cursor-label {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 900;
  margin: 1.6rem 0 0 1.6rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  color: var(--black);
  font-family: var(--pixel);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.cursor-label.is-visible { opacity: 1; }
.work__visual { cursor: none; }

/* ---- 9. Buttons: letters roll up on hover (Tenora), gradient fill ---- */
.roll-text { display: inline-flex; }
.roll {
  display: inline-block;
  height: 1.4em;                 /* room for the whole glyph, so letters are never shaved */
  line-height: 1.4em;
  overflow-x: visible;           /* letters overhang their slot sideways; only the roll is clipped */
  overflow-y: clip;
  vertical-align: top;
}
.roll > span {
  display: block;
  transition: transform .5s cubic-bezier(.65, 0, .35, 1);
}
.btn.is-hover .roll > span { transform: translateY(-100%); }

/* ---- 10. Menu: dim the page behind the open panel ---- */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 15;
  background: rgba(1, 1, 1, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.hero.is-menu-open::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hl__box, .pixel-wipe { display: none; }
  .reveal-heading .hl__char, .reveal-print { animation: none !important; opacity: 1 !important; clip-path: none !important; }
  .reveal-words .w, .reveal-cards > * { transition: none; opacity: 1; filter: none; transform: none; translate: none; }
  .trial__viewport { overflow-x: auto; scrollbar-width: none; }
  .roll > span { transition: none; }
  .btn.is-hover .roll > span { transform: none; }
  .work__img { transform: none; }
  .work__frame, .work__img, .work__slide [data-k] { animation: none !important; clip-path: none !important; opacity: 1 !important; }
}

/* ==========================================================================
   No-strings-attached trial (Figma 222:1755) — three full-width cards in a
   row; on desktop js/motion.js pins the row and slides it with scroll.
   ========================================================================== */

.trial {
  position: relative;
  padding: var(--gutter) 0;
  border-bottom: 1px solid var(--line);
  overflow-x: clip;
}
.trial__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  padding: 0 var(--gutter);
}
.trial__copy { display: flex; flex-direction: column; gap: 2.4rem; }
.trial__viewport { margin-top: 6rem; overflow: hidden; }
.trial__frame { transform-origin: 0 0; }

.trial__controls {
  margin-top: 6rem;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
.trial__progress { position: relative; height: 0.6rem; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.trial__progress-fill {
  position: absolute;
  inset: 0;
  background: var(--white);
  transform-origin: 0 50%;
  transform: scaleX(0.2);             /* first of five cards */
}
.trial__arrows { display: flex; gap: 0.6rem; }
.trial__arrow {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  background: var(--white);
  transition: background-color .25s steps(2);
}
.trial__arrow img { width: 2rem; height: 2rem; transition: filter .25s steps(2), translate .3s cubic-bezier(.22, 1, .36, 1); }
.trial__arrow--prev img { rotate: 180deg; }
.trial__arrow:disabled { background: rgba(255, 255, 255, 0.1); cursor: default; }
.trial__arrow:disabled img { filter: invert(1); }
.trial__arrow:not(:disabled):hover { background: var(--accent); }
.trial__arrow--next:not(:disabled):hover img { translate: 0.4rem 0; }
.trial__arrow--prev:not(:disabled):hover img { translate: -0.4rem 0; }
.trial__track { display: flex; gap: 2rem; width: max-content; padding: 0 var(--gutter); }

.trial-card {
  position: relative;
  flex: none;
  width: 172rem;
  height: 93.5rem;
  background: var(--surface);
  overflow: hidden;
}
.trial-card__photo {
  position: absolute;
  inset: 0 -4rem;                    /* a little wider than the card for the sideways drift */
  width: calc(100% + 8rem);
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.trial-card::after {                 /* Figma: #101010 at 70% over the photo */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 16, 0.7);
}
.trial-card__head,
.trial-card__text,
.trial-card__checks { z-index: 1; }
.trial-card__title .pixel { font-weight: 400; }
.trial-card__head {
  position: absolute;
  top: 6rem;
  left: 6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
}
.trial-card__tag {
  padding: 0.6rem 1.4rem;
  background: var(--white);
  color: var(--black);
  font-size: 2rem;
  white-space: nowrap;
}
.trial-card__title {
  font-weight: 400;
  font-size: 8.2rem;
  line-height: 1.2;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.trial-card__text {
  position: absolute;
  top: 73.1rem;
  left: 6rem;
  width: 60rem;
  font-size: 2.8rem;
  letter-spacing: 0;
}
.trial-card__text--muted { color: var(--muted-2); }
.trial-card__checks {
  position: absolute;
  top: 73.1rem;
  right: 6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}
.trial-card__checks li { display: flex; align-items: center; gap: 1.2rem; }
.trial-card__checks img { width: 2.4rem; height: 2.4rem; flex: none; }
.trial-card__checks span {
  padding: 0.2rem 0.1rem;
  background: var(--white);
  color: var(--black);
  font-size: 2rem;
  white-space: nowrap;
}

.trial-pin { position: relative; }
@media (min-width: 1200px) {
  .trial-pin > .trial__viewport.is-pinned {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    margin-top: 0;
    padding-top: max(3rem, calc((100vh - 107.5rem) / 2));   /* js/motion.js sets the exact value */
  }
  .trial-pin { margin-top: 6rem; }
  .trial__viewport.is-pinned .trial__track { will-change: transform; }
}

@media (max-width: 1199px) {
  .trial { padding: 5.6rem 0; }
  .trial__intro { gap: 1.6rem; }
  .trial__viewport { margin-top: 3.2rem; }
  .trial__track { flex-direction: column; width: auto; gap: 1.6rem; }
  .trial-card { width: auto; height: auto; padding: 2.4rem; display: flex; flex-direction: column; gap: 2.4rem; }
  /* the card here is only as tall as its copy, so on a tablet it is far wider
     than the 16:9 photo and the photo is cropped top and bottom; the faces sit
     in the top third, so the crop comes off the desk instead of the head */
  .trial-card__photo { object-position: 50% 0%; }
  .trial-card__head, .trial-card__text, .trial-card__checks { position: relative; top: auto; left: auto; right: auto; width: auto; }
  .trial__controls { display: none; }
  .trial-card__tag { font-size: 1.4rem; }
  .trial-card__title { font-size: 3.2rem; white-space: normal; }
  .trial-card__title br { display: none; }
  .trial-card__text { font-size: 1.6rem; }
  .trial-card__checks span { font-size: 1.4rem; white-space: normal; }
  .trial-card__checks img { width: 1.8rem; height: 1.8rem; }
}

/* ==========================================================================
   In their words (Figma 247:128) — grid background, three quote cards laid
   out as a staggered collage; the last card runs off the right edge.
   ========================================================================== */

.voices {
  position: relative;
  height: 140rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background-color: var(--black);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: var(--grid-cell) var(--grid-cell);
  background-position: -1px -1px;
}
.voices__shape {
  position: absolute;
  top: 0;
  right: 0;
  width: 39.1rem;
  height: 21.8rem;
  transform: rotate(180deg);
}
.voices__intro {
  position: absolute;
  top: var(--gutter);
  left: var(--gutter);
  width: 172rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}
.voices__copy { display: flex; flex-direction: column; gap: 2.4rem; width: 100%; }

.voice {
  position: absolute;
  margin: 0;
  width: 85.8rem;
  height: 39.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.voice::after {                      /* gradient foot */
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 0.8rem;
  background: linear-gradient(to right, var(--lavender), var(--accent));
  transform-origin: 0 50%;
  transition: transform 1.1s cubic-bezier(.65, 0, .35, 1) .35s, height .3s ease;
}
html.js .voice:not(.is-in)::after { transform: scaleX(0); }
@media (min-width: 1200px) {
  .voice {
    cursor: grab;
    will-change: transform;
    user-select: none;
    transition: background .3s ease, box-shadow .3s ease;
  }
  /* same as the cards elsewhere: lift the surface, don't recolour the edge */
  .voice:hover { background: #151515; }
  .voice:hover::after { height: 1.2rem; }
  .voice.is-held {
    cursor: grabbing;
    background: #171717;
    box-shadow: 0 3rem 8rem rgba(0, 0, 0, 0.6);
  }
  .voice:hover, .voice.is-held { cursor: none; }
}
.voice--1 { left: -32.4rem; top: 52.8rem; }   /* runs off the left edge, mirroring card 3 on the right */
.voice--2 { left: 52.8rem;  top: 92.4rem; z-index: 1; }
.voice--3 { left: 138.6rem; top: 66rem; }

.voice__head {
  position: absolute;
  top: 3.1rem;
  left: 3.1rem;
  width: 79.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
}
.voice__value { font-family: var(--pixel); font-size: 6.2rem; }
.voice__label { color: var(--muted-2); font-size: 2rem; }
.voice__body {
  position: absolute;
  left: 3.1rem;
  bottom: 4rem;
  width: 79.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3.2rem;
}
.voice__quote { margin: 0; width: 100%; font-size: 2rem; letter-spacing: 0; }
.voice__who { display: flex; flex-direction: column; gap: 0.4rem; }
.voice__name { font-family: var(--pixel); font-size: 2.6rem; line-height: 1; color: var(--accent); }
.voice__role { color: var(--muted-2); font-size: 1.4rem; }

/* ==========================================================================
   Common questions (Figma 249:301) — accordion
   ========================================================================== */

.faq {
  padding: var(--gutter);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6rem;
}
.faq__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 2rem; }
.faq__copy { display: flex; flex-direction: column; gap: 2.4rem; }
.faq__list { display: flex; flex-direction: column; gap: 2.4rem; }

.faq-item { position: relative; background: var(--surface); }
.faq-item__q { font-weight: 400; font-size: inherit; }
.faq-item__q button {
  width: 100%;
  display: block;
  padding: 3.1rem 11.6rem 0 2.4rem;          /* closed rows are 98px tall */
  text-align: left;
  transition: padding-top .5s cubic-bezier(.65, 0, .35, 1);
}
.faq-item.is-open .faq-item__q button { padding-top: 2.4rem; }
.faq-item__text {
  display: block;
  font-family: var(--pixel);
  font-size: 2.8rem;
  line-height: 3.6rem;
  letter-spacing: -0.06em;
}
/* icon stays centred on the whole row (Figma), also while the answer opens */
.faq-item__icon {
  position: absolute;
  top: 50%;
  right: 2.4rem;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  flex: none;
  width: 5rem;
  height: 5rem;
  background: var(--white);
  transition: background-color .25s steps(2);
}
.faq-item__icon img {
  width: 2.4rem;
  height: 2.4rem;
  transition: transform .45s cubic-bezier(.65, 0, .35, 1);
}
.faq-item.is-open .faq-item__icon img { transform: rotate(135deg); }
.faq-item__q button:hover .faq-item__icon { background: var(--accent); }

.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 11.6rem 3.1rem 2.4rem;          /* answer stops before the icon column */
  transition: grid-template-rows .5s cubic-bezier(.65, 0, .35, 1), padding-bottom .5s cubic-bezier(.65, 0, .35, 1);
}
.faq-item.is-open .faq-item__a { padding-bottom: 2.4rem; }
.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }
.faq-item__a > div { overflow: hidden; min-height: 0; }
.faq-item__a p {
  padding-top: 0.8rem;
  color: var(--muted-2);
  font-size: 2.4rem;
  letter-spacing: 0;
  opacity: 0;
  translate: 0 1.2rem;
  transition: opacity .35s ease, translate .5s cubic-bezier(.22, 1, .36, 1);
}
.faq-item.is-open .faq-item__a p { opacity: 1; translate: 0 0; transition-delay: .12s; }
.faq-item__a a { color: var(--white); text-decoration: underline; text-underline-offset: 0.2em; }

/* ==========================================================================
   Start here (Figma 249:575) — stepped gradient panel between two rules
   ========================================================================== */

.contact {
  position: relative;
  height: 57.1rem;
  border-bottom: 1px solid var(--line);
}
.contact::before,
.contact::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.contact::before { left: var(--gutter); }
.contact::after { right: var(--gutter); }

.contact__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10.1rem;
  right: var(--gutter);
  padding: var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--black);
  background: linear-gradient(to bottom, var(--lavender), var(--accent));
  clip-path: polygon(
    0 0, calc(100% - 27.85rem) 0, calc(100% - 27.85rem) 7.85rem, 100% 7.85rem,
    100% 100%, 6.6rem 100%, 6.6rem calc(100% - 8.65rem), 0 calc(100% - 8.65rem)
  );
}
.contact__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 2rem; }
.contact__copy { display: flex; flex-direction: column; gap: 1.2rem; }
.contact .heading { color: var(--black); }
.contact .reveal-heading { --hl-ink: var(--white); }
.contact .hl__char { --final: var(--black); }
.contact .hl__box { background: var(--black); }
.heading--row { flex-direction: row; align-items: baseline; gap: 2.4rem; white-space: nowrap; }
.heading--row .heading__sans { margin-bottom: 0; }
.contact .lede { color: var(--surface); }

.tag--dark { background: var(--black); color: var(--white); }

.contact__row {
  height: 7.2rem;
  margin-bottom: 0.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.contact__write { display: flex; align-items: center; gap: 1.2rem; }
/* the label beside the big address ("Write to", "Contact us at") is set at the
   row's own text size, not the 2rem tag size, which looked lost next to it */
@media (min-width: 1200px) {
  .contact__write .tag,
  .note__write .tag { font-size: 2.4rem; padding: 0.8rem 1.6rem; }
}
.contact__email {
  position: relative;
  display: inline-block;
  padding: 0.2rem 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--pixel);
  font-size: 5.2rem;
  white-space: nowrap;
}
/* hover: a white-on-black copy of the address slides in over the black-on-white one,
   so every letter flips colour exactly where the fill edge passes */
.contact__email::after,
.note__addr::after {
  content: attr(data-text);
  content: attr(data-text) / "";      /* decorative copy: screen readers skip it */
  position: absolute;
  inset: 0;
  padding: inherit;
  background: var(--black);
  color: var(--white);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .6s cubic-bezier(.65, 0, .35, 1);
  pointer-events: none;
}
.contact__email:hover::after,
.contact__email:focus-visible::after,
.note__addr:hover::after,
.note__addr:focus-visible::after { clip-path: inset(0 0 0 0); }
.contact__note { font-size: 2.4rem; color: var(--surface); white-space: nowrap; }

/* ==========================================================================
   Proof band — label + figure trio, used by the case studies and pricing pages
   ========================================================================== */
.cases-proof {
  position: relative;
  height: 42.1rem;
  background: var(--black);
  /* ruled top and bottom, so with the side rules below the panel reads as a
     closed box (the hero above it has no rule of its own) */
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
/* Figma fills the 1720 panel between the gutter rules a shade lighter,
   and rules it on both sides (Line 202 at x100, Line 203 at x1821) */
.cases-proof::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10rem;
  width: 172rem;
  background: var(--surface);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.cases-proof__item {
  position: absolute;
  z-index: 1;
  top: 10.1rem;
  width: 34rem;
  height: 22rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
}
.cases-proof__item:nth-child(1) { left: 20rem; }
.cases-proof__item:nth-child(2) { left: 75.7rem; }
.cases-proof__item:nth-child(3) { left: 141.3rem; }

.cases-proof__row { display: flex; align-items: center; gap: 1.2rem; height: 5.2rem; }
.cases-proof__icon {
  width: 5.2rem;
  height: 5.2rem;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--white);
}
.cases-proof__icon img { width: 2.4rem; height: 2.4rem; }
/* Figma lets the longer label run past the 340 item box rather than wrap */
.cases-proof__label { color: var(--white); font-size: 2.4rem; white-space: nowrap; }

.cases-proof__figure {
  font-family: var(--pixel);
  font-size: 12rem;
  line-height: 1.3;
  white-space: nowrap;          /* Figma lets a long figure run past the 340 box */
  /* Figma fills the numeral with a white -> mint vertical gradient */
  background: linear-gradient(180deg, var(--white) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* The gradient block is clipped to the stepped shape but .work__image is a plain
   rectangle, so a photo keeps painting across the dark panel to its right. The
   real shots are dark up there so it never showed; anything lighter covers the
   panel text. Clip the photo to the same steps as the shape. */
.page-cases .work__image {
  clip-path: polygon(
    0 0, 80.5rem 0, 80.5rem 12.9rem, 96rem 12.9rem,
    96rem calc(100% - 9.5rem), 100% calc(100% - 9.5rem), 100% 100%, 0 100%
  );
}

/* Shots exported straight from the frame already come out at the 1095x935 block
   size, so they fill it instead of using the per-photo Figma crop. */
.page-cases .work__frame--fill .work__img {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  translate: none;
}


@media (max-width: 1199px) {
  .cases-proof { height: auto; background: var(--surface); }
  .cases-proof::before { display: none; }
  .cases-proof__item {
    position: static;
    width: auto;
    height: auto;
    padding: 3.2rem var(--gutter);
  }
  .cases-proof__item + .cases-proof__item { border-top: 1px solid var(--line); }
  .cases-proof__row { height: auto; }
  .cases-proof__icon { width: 4rem; height: 4rem; }
  .cases-proof__icon img { width: 2rem; height: 2rem; }
  .cases-proof__label { font-size: 1.6rem; }
  .cases-proof__figure { font-size: 6.4rem; }
}

/* ==========================================================================
   Footer (Figma 249:669) + bottom bar (Figma 249:848)
   ========================================================================== */

.footer {
  position: relative;
  height: 83.9rem;
  border-bottom: 1px solid var(--line);
}
.footer::before {                    /* full-height column rules at 520 / 892 / 1362 */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--line), var(--line)) 52rem 0 / 1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) 89.2rem 0 / 1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) 136.2rem 0 / 1px 100% no-repeat;
}

.footer__brand {
  position: absolute;
  top: var(--gutter);
  left: var(--gutter);
  width: 32rem;
  display: flex;
  flex-direction: column;
  gap: 38.3rem;
}
.footer__about { display: flex; flex-direction: column; gap: 1.4rem; }
.footer__logo img { width: 32.1rem; height: 4.27rem; }
.footer__tagline { font-size: 2rem; white-space: nowrap; }
.footer__where { display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; }
.footer__places { width: 100%; display: flex; flex-direction: column; gap: 0.2rem; }
.footer__places li { display: flex; align-items: center; justify-content: space-between; white-space: nowrap; }
.footer__city { font-family: var(--pixel); font-size: 2.4rem; }
.footer__country { color: var(--muted-2); font-size: 2rem; }

.footer__col {
  position: absolute;
  top: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3.2rem;
}
.footer__col--company  { left: 62rem; }
.footer__col--services { left: 99.2rem; }
.footer__col--contact  { left: 146.2rem; }
.footer__col--socials  { left: 146.2rem; top: 39.9rem; }
.footer__title { font-family: var(--pixel); color: var(--muted-2); font-size: 2rem; letter-spacing: 0; }
.footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  font-size: 2.2rem;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
}
.footer__links a {
  position: relative;
  display: inline-block;
  transition: color .2s ease, translate .3s cubic-bezier(.22, 1, .36, 1);
}
.footer__links a::before {           /* mint square appears on hover */
  content: "";
  position: absolute;
  top: 50%;
  left: -1.8rem;
  width: 0.8rem;
  height: 0.8rem;
  margin-top: -0.4rem;
  background: var(--accent);
  opacity: 0;
  transition: opacity .2s steps(2);
}
.footer__links a:hover { color: var(--accent); translate: 1.8rem 0; }
.footer__links a:hover::before { opacity: 1; }
.footer__socials { display: flex; align-items: center; gap: 2.4rem; }
.footer__socials a { display: block; transition: translate .3s cubic-bezier(.22, 1, .36, 1); }
.footer__socials a:hover { translate: 0 -0.6rem; }
.footer__socials img { width: 4.8rem; height: 4.8rem; }

.footer-bar {
  height: 11.8rem;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.footer-bar__top .arrow-roll { rotate: -90deg; }   /* arrows point and travel upward */

@media (max-width: 1199px) {
  .voices { height: auto; padding: 5.6rem var(--gutter); display: flex; flex-direction: column; gap: 3.2rem; }
  .voices__shape { width: 16rem; height: 9rem; }
  .voices__intro { position: relative; top: auto; left: auto; width: auto; gap: 1.6rem; }
  .voices__cards { display: flex; flex-direction: column; gap: 1.6rem; }
  .voice { position: relative; left: auto; top: auto; width: auto; height: auto; padding: 2.4rem 2.4rem 3.2rem; display: flex; flex-direction: column; gap: 3.2rem; }
  .voice__head, .voice__body { position: static; width: auto; }
  .voice__head { gap: 1.2rem; }
  .voice__value { font-size: 4rem; }
  .voice__label { font-size: 1.4rem; white-space: normal; text-align: right; }
  .voice__body { gap: 2rem; }
  .voice__quote { font-size: 1.6rem; }
  .voice__name { font-size: 2rem; }
  .voice__role { font-size: 1.3rem; }

  .faq { padding: 5.6rem var(--gutter); gap: 3.2rem; }
  .faq__intro { gap: 1.6rem; }
  .faq__list { gap: 1.2rem; }
  .faq-item__q button, .faq-item.is-open .faq-item__q button { padding: 1.6rem 7.2rem 0 1.6rem; }
  .faq-item__text { font-size: 1.8rem; line-height: 1.3; min-height: 4rem; display: flex; align-items: center; }
  .faq-item__icon { right: 1.6rem; }
  .faq-item__icon { width: 4rem; height: 4rem; }
  .faq-item__icon img { width: 2rem; height: 2rem; }
  .faq-item__a, .faq-item.is-open .faq-item__a { padding: 0 7.2rem 1.6rem 1.6rem; }
  .faq-item__a p { font-size: 1.5rem; }

  .contact { height: auto; padding: 0 var(--gutter); }
  .contact::before, .contact::after { display: none; }
  .contact__panel {
    position: relative;
    left: auto;
    right: auto;
    padding: 5.6rem 2rem 6.4rem;
    gap: 4rem;
    clip-path: polygon(
      0 0, calc(100% - 10rem) 0, calc(100% - 10rem) 3rem, 100% 3rem,
      100% 100%, 3rem 100%, 3rem calc(100% - 3.6rem), 0 calc(100% - 3.6rem)
    );
  }
  .heading--row { flex-wrap: wrap; gap: 0 1.2rem; white-space: normal; }
  .contact__row { height: auto; flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  .contact__write { flex-wrap: wrap; }
  .contact__email { font-size: clamp(1.8rem, 6vw, 3.2rem); }
  .contact__note { font-size: 1.4rem; white-space: normal; }

  .footer { height: auto; padding: 5.6rem var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 4rem 2rem; }
  .footer::before { display: none; }
  .footer__brand { position: static; width: auto; grid-column: 1 / -1; gap: 3.2rem; }
  .footer__logo img { width: 20rem; height: 2.66rem; }
  .footer__tagline, .footer__country { font-size: 1.4rem; }
  .footer__places { max-width: 32rem; }
  .footer__city { font-size: 1.8rem; }
  .footer__col, .footer__col--socials { position: static; gap: 1.6rem; }
  .footer__col--contact { grid-column: 1 / -1; }
  .footer__title { font-size: 1.4rem; }
  .footer__links { font-size: 1.8rem; gap: 1.2rem; white-space: normal; word-break: break-word; }
  .footer__links a:hover { translate: 1.4rem 0; }
  .footer__socials { gap: 1.6rem; }
  .footer__socials img { width: 4rem; height: 4rem; }
  .footer-bar { height: auto; padding: 2.4rem var(--gutter); flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Tablet refinements (600–1199px): wider gutters, headings sized to the
   screen, and multi-column grids where there is room.
   ========================================================================== */
@media (min-width: 600px) and (max-width: 1199px) {
  :root { --gutter: 4rem; --grid-cell: 4.4rem; }
  .heading { font-size: clamp(3.2rem, 6.2vw, 7rem); }
  .lede { font-size: 1.8rem; }
  .stats__band { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stat__value { font-size: clamp(4.8rem, 7.5vw, 8.4rem); }
  /* company · services · contact (wide enough for the email) · socials underneath */
  .footer { grid-template-columns: 1fr 1fr 1.7fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col--contact { grid-column: auto; }
  .footer__col--contact .footer__links { word-break: normal; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .voices__cards { display: grid; grid-template-columns: repeat(2, 1fr); }
  .voice--3 { grid-column: 1 / -1; }
  .voices--agent .voice--3 { grid-column: auto; }
  /* projects: photo left, details right */
  .work__slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    column-gap: 4rem;
    align-items: center;
    padding-bottom: 0;
  }
  .work__slide-img { grid-column: 1; grid-row: 1 / 3; height: 100%; }
  .work__slide .work__project { grid-column: 2; grid-row: 1; margin: 3.2rem var(--gutter) 0 0; }
  .work__slide .work__cta { grid-column: 2; grid-row: 2; margin: 2.4rem 0 3.2rem; justify-self: start; }
}

/* ==========================================================================
   Shared sections below 1200px
   Under this width the root font-size is a flat 10px, so every fixed rem
   measurement is a literal pixel value. These blocks unpick the absolute
   positioning the desktop layouts rely on and let the cards flow instead.
   ========================================================================== */
@media (max-width: 1199px) {
  /* ---- three situations / problems ---- */
  .situations { padding: 5.6rem var(--gutter); }
  .situations__head { margin-bottom: 3.2rem; }
  .situations__row { width: 100%; flex-wrap: wrap; gap: 1.2rem; }
  .situations__meta { white-space: normal; font-size: 1.6rem; }
  .situations__list { flex-direction: column; gap: 1.6rem; }
  .situation { width: 100%; height: auto; padding: 5.6rem 2.4rem 2.4rem; }
  .situation__art {
    position: static;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto 2.4rem;
  }
  .situation__title { position: static; width: 100%; font-size: clamp(2.4rem, 5.5vw, 3.4rem); }

  /* ---- pricing table ---- */
  .pricing { padding: 5.6rem var(--gutter); }
  .pricing__head { margin-bottom: 3.2rem; }
  .price-row { height: auto; }
  .price-row__copy {
    position: static;
    transform: none;
    width: 100%;
    padding: 2.4rem;
    gap: 1.2rem;
  }
  .price-row__name { font-size: clamp(2.8rem, 6vw, 3.6rem); white-space: normal; }
  .price-row__text { font-size: 1.5rem; }
  .price-row__cells { position: static; height: auto; }
  .price-cell { width: 50%; height: auto; padding: 2rem; border-left: 0; border-right: 0; }
  .price-cell + .price-cell { border-left: 1px solid var(--line); }
  .price-cell__value { font-size: clamp(2.2rem, 5vw, 2.8rem); }
  .price-cell__label { font-size: 1.5rem; }
  .price-row__wipe { display: none; }
  html.js .pricing__table:not(.is-in) .price-row__copy,
  html.js .pricing__table:not(.is-in) .price-cell > * { opacity: 1; }
  /* no reveal here at all: the copy's rise keeps the -50% that centres it on
     desktop, and an animation outranks the transform: none above, so it lifted
     the name and first line out of the card */
  .pricing__table.is-in .price-row__copy,
  .pricing__table.is-in .price-cell > * { animation: none; }

  /* ---- the gradient CTA panel ---- */
  .note { padding: 0 var(--gutter); }
  .note::before, .note::after { display: none; }
  .note__panel {
    width: 100%;
    height: auto;
    padding: 4rem 2.4rem;
    /* the notched Figma shape crops badly at phone width, so drop to a plain fill */
    background-image: linear-gradient(160deg, var(--lavender) 0%, var(--accent) 100%);
    background-size: 100% 100%;
  }
  .note--agencies .note__panel { height: auto; background-image: linear-gradient(160deg, var(--lavender) 0%, var(--accent) 100%); }
  .note__copy { width: 100%; }
  .note__heading, .note--agencies .note__heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    white-space: normal;
    font-size: clamp(3rem, 8vw, 5.2rem);
  }
  .note__lede { font-size: 1.8rem; }
  .note__actions { flex-wrap: wrap; margin-top: 3.2rem; }
}

/* ---- the closing CTA on a phone ----
   "Write to mohit@empyrealinfotech.com" is the longest label on the site and
   ran past the panel edge at 1.6rem. */
@media (max-width: 480px) {
  .note__actions { width: 100%; }
  .note__actions .btn { font-size: 1.3rem; }
  .note__actions .btn__label { padding: 0 1.2rem; }
  .note__actions .btn__label,
  .note__actions .btn__icon { height: 4.2rem; }
  .note__actions .btn__icon { width: 4.2rem; }
  .note__actions .btn__icon img { width: 1.8rem; height: 1.8rem; }
}

/* Selected text: solid white highlight with black text (clear on the black sections and the light panels) */
::selection { background: #ffffff; color: #010101; }
::-moz-selection { background: #ffffff; color: #010101; }

/* Privacy Policy link inside the cookie banner */
.emp-consent-desc a { color: #ffffff; text-decoration: underline; text-underline-offset: 2px; }
