/* Generated by dev/sync-css.mjs from the Next.js design. Edit css/wp.css for WordPress-only rules. */

/* ===== tokens.css ===== */
/*
 * Design tokens. Colours and type families come from the XOXO Social brand profile
 * deck (see REFERENCE_SPEC.md); sizes and spacing are set for a website.
 */
:root {
  /* Colour (measured from the deck) */
  --red: #cc2b3e;
  --red-dark: #b32435;
  --red-headline: #d92d41;
  --ink: #000000;
  --white: #ffffff;
  --muted-light: #75736d;
  --muted-dark: #8a8880;
  --muted-soft: #b4b4b4;

  /* Surfaces */
  --surface-dark: #0b0b0b;
  --surface-dark-2: #141414;
  --surface-light: #ebeae7;
  --surface-paper: #f4f3f0;
  --rule-light: rgba(0, 0, 0, 0.12);
  --rule-dark: rgba(255, 255, 255, 0.14);
  --rule-red: rgba(255, 255, 255, 0.3);

  /* Type families (set by next/font in layout.tsx) */
  --font-display: var(--font-montserrat), "Montserrat", Arial, sans-serif;
  --font-body: var(--font-inter), "Inter", Arial, sans-serif;

  /* Type scale */
  --fs-hero: clamp(2.5rem, 1rem + 3.7vw, 4.4rem);
  --fs-h1: clamp(2.2rem, 1.1rem + 3vw, 3.75rem);
  --fs-h2: clamp(1.9rem, 1.1rem + 2vw, 3rem);
  --fs-h3: clamp(1.5rem, 1.1rem + 1.3vw, 2.25rem);
  --fs-stat: clamp(2.6rem, 1.6rem + 3vw, 4.5rem);
  --fs-title-l: clamp(1.2rem, 1rem + 0.6vw, 1.5rem);
  --fs-title: clamp(1.02rem, 0.95rem + 0.25vw, 1.15rem);
  --fs-label: 0.8125rem;
  --fs-eyebrow: 0.75rem;
  --fs-lead: clamp(1.08rem, 1rem + 0.35vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  --ls-display: -0.035em;
  --ls-eyebrow: 0.22em;
  --ls-label: 0.16em;
  --ls-index: 0.06em;

  /* Layout */
  --container: 77.5rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 7vw, 7rem);
  --col-gap: clamp(1.25rem, 2.4vw, 2rem);
  --header-h: 4.5rem;
  /* Distance from the container's content edge to the viewport edge */
  --edge: calc((100vw - min(100vw, var(--container))) / 2 + var(--gutter));

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-reveal: 700ms;
  --dur-ui: 220ms;
}

@media (max-width: 1023px) {
  :root {
    --header-h: 4rem;
  }
}

/* ===== base.css ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/*
 * Large screens: every size in the stylesheets is in rem, so growing the root font
 * size scales the whole layout in proportion (about 1.23x at 1920px wide, 1.6x at
 * 2560px and above). Percentages keep the visitor's browser font setting.
 */
@media (min-width: 1440px) {
  html {
    font-size: min(calc(100% + (100vw - 1440px) * 0.0078), 160%);
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface-dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

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

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

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 0.1875rem;
}

::selection {
  background: var(--red);
  color: var(--white);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -6.25rem;
  z-index: 100;
  padding: 0.75rem 1.125rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skip-link:focus {
  top: 1rem;
}

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

/* ---------- Typography (brand styles from the deck, website sizes) ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  text-wrap: balance;
}

.display--xl {
  font-size: var(--fs-hero);
}

.display--l {
  font-size: var(--fs-h1);
}

.display--m,
.display--s {
  font-size: var(--fs-h2);
}

.display--heading {
  font-size: var(--fs-h3);
  letter-spacing: -0.02em;
}

.display--title-case {
  text-transform: none;
}

.title-l {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-title-l);
  line-height: 1.2;
  text-transform: uppercase;
}

.title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-title);
  line-height: 1.25;
  text-transform: uppercase;
}

.label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-label);
  line-height: 1.3;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--red);
}

.index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-label);
  line-height: 1.3;
  letter-spacing: var(--ls-index);
  color: var(--red);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-eyebrow);
  line-height: 1.4;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
}

.lead--l {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.45;
}

.body {
  font-size: var(--fs-body);
  line-height: 1.6;
}

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

.text-red-headline {
  color: var(--red-headline);
}

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

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

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

.hover-red {
  transition: color var(--dur-ui) ease;
}

.hover-red:hover,
.hover-red:focus-visible {
  color: var(--red);
}

/* Arrow text link */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--red);
  padding-block: 0.375rem;
}

.text-link__arrow {
  display: inline-block;
  transition: transform var(--dur-ui) var(--ease-out);
}

.text-link:hover .text-link__arrow,
.text-link:focus-visible .text-link__arrow,
a:hover .text-link .text-link__arrow {
  transform: translateX(0.3125rem);
}

.on-red .text-link {
  color: var(--white);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3.25rem;
  padding: 0 1.75rem;
  border: 2px solid var(--red);
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur-ui) ease,
    border-color var(--dur-ui) ease,
    color var(--dur-ui) ease;
}

.button:hover,
.button:focus-visible {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.button--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.sec--light .button--ghost:hover,
.sec--light .button--ghost:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.button--small {
  min-height: 2.625rem;
  padding: 0 1.25rem;
}

.on-red .button {
  background: var(--white);
  border-color: var(--white);
  color: var(--red);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

/* ---------- Reveal motion ----------
 * One quiet entrance, CSS only: scroll-driven where supported, otherwise content
 * is simply visible. Page heroes use a short time-based entrance on load.
 * `--reveal-i` staggers siblings.
 */

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translate3d(0, 1.5rem, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes reveal-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes reveal-wipe {
  from {
    opacity: 0;
    transform: translate3d(2.5rem, 0, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    [data-reveal] {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry calc(var(--reveal-i, 0) * 5%) entry calc(55% + var(--reveal-i, 0) * 5%);
    }

    [data-reveal="fade"] {
      animation-name: reveal-fade;
    }

    [data-reveal="wipe"] {
      animation-name: reveal-wipe;
    }
  }

  .sec--hero [data-reveal] {
    animation: reveal-up var(--dur-reveal) var(--ease-out) both;
    animation-timeline: auto;
    animation-delay: calc(100ms + var(--reveal-i, 0) * 90ms);
  }

  .sec--hero [data-reveal="fade"] {
    animation-name: reveal-fade;
  }
}

/* ===== section.css ===== */
/*
 * Section frame: a full-width band with a centred container. Tones follow the
 * deck's three slide backgrounds (dark silk, light silk, brand red).
 */
.sec {
  position: relative;
  isolation: isolate;
  /* clip, not hidden: hidden would make the section a scroll container and break
     the view() timelines used by the reveal animations */
  overflow: clip;
  padding-block: var(--section-y);
  background-color: var(--surface-dark);
  background-position: center;
  background-size: cover;
  color: var(--white);
  --muted: var(--muted-dark);
  --rule: var(--rule-dark);
}

.sec--dark {
  background-image: url("../assets/bg/silk-dark.webp");
}

.sec--plain {
  background-image: none;
  background-color: var(--surface-dark);
}

.sec--light {
  background-color: var(--surface-light);
  background-image: url("../assets/bg/silk-light.webp");
  color: var(--ink);
  --muted: var(--muted-light);
  --rule: var(--rule-light);
}

.sec--paper {
  background-image: none;
  background-color: var(--surface-paper);
}

.sec--red {
  background-color: var(--red);
  --muted: rgba(255, 255, 255, 0.86);
  --rule: var(--rule-red);
}

/* Red band with the dark silk folds showing through (deck slide 7) */
.sec--silk::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../assets/bg/silk-dark.webp") center / cover;
  mix-blend-mode: multiply;
  opacity: 0.22;
}

.sec--compact {
  padding-block: clamp(2.5rem, 4vw, 4rem);
}

/* Page header: clears the fixed site header */
.sec--hero {
  padding-top: calc(var(--header-h) + clamp(3.5rem, 7vw, 6.5rem));
  padding-bottom: clamp(3.5rem, 6vw, 6rem);
}

/* Greyscale photo at 19% over red (deck section dividers) */
.sec__photo,
.sec__cover {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.sec__photo {
  opacity: 0.19;
}

.sec__photo img,
.sec__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sec__photo img {
  filter: grayscale(1);
}

.sec__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.sec__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: clamp(1rem, 1.6vw, 1.375rem);
  color: var(--muted);
}

.sec__eyebrow::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 2px;
  background: var(--red);
}

.sec--red .sec__eyebrow {
  color: var(--white);
}

.sec--red .sec__eyebrow::before {
  background: var(--ink);
}

.sec__note {
  margin-top: clamp(2.25rem, 4vw, 3.5rem);
  padding-top: 1.125rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.sec__note--accent {
  color: var(--red);
}

.sec--red .sec__note {
  color: var(--white);
}

/* ---------- Shared section layouts ---------- */

/* Heading row: title on the left, intro or link on the right */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.25rem var(--col-gap);
  align-items: end;
  margin-bottom: clamp(2.25rem, 4.5vw, 4rem);
}

.sec-head > :only-child {
  grid-column: 1 / -1;
}

.sec-head__aside {
  display: grid;
  gap: 1.125rem;
  justify-items: start;
  color: var(--muted);
}

.sec-head--stack {
  grid-template-columns: 1fr;
  max-width: 51.25rem;
}

.sec-head--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  max-width: 53.75rem;
  margin-inline: auto;
}

.sec-head--center .sec__eyebrow {
  justify-content: center;
}

@media (max-width: 860px) {
  .sec-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* ===== components.css ===== */
/* ================= Header ================= */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--white);
  transition:
    background-color var(--dur-ui) ease,
    box-shadow var(--dur-ui) ease;
}

.site-header.is-solid {
  background-color: rgba(11, 11, 11, 0.97);
  box-shadow: inset 0 -1px 0 var(--rule-dark);
}

.site-header__bar {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
}

/* WhatsApp: round green button, the colour people recognise */
.site-header__wa {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #1fae53;
  color: var(--white);
  transition:
    scale var(--dur-ui) var(--ease-out),
    background-color var(--dur-ui) ease;
}

.site-header__wa:hover,
.site-header__wa:focus-visible {
  scale: 1.08;
  background: #189447;
}

.mobile-menu__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: #1fae53;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-small);
}

.footer-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-cta__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Outline version of the white button on the red strip */
.on-red .footer-cta__wa {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.on-red .footer-cta__wa:hover,
.on-red .footer-cta__wa:focus-visible {
  background: var(--white);
  color: var(--red);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 0.4rem;
}

.site-header__logo {
  display: block;
  margin-right: auto;
  flex: none;
  width: 7.75rem;
}

.site-header__logo img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.25rem);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.125rem, 2.2vw, 2rem);
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding-block: 0.625rem;
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--dur-ui) ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 1.375rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-ui) var(--ease-out);
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link[aria-current="page"] {
  color: var(--white);
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-header__toggle {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.625rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-header__toggle-bar {
  position: absolute;
  left: 0.625rem;
  right: 0.625rem;
  height: 2px;
  background: var(--white);
  transition: transform var(--dur-ui) var(--ease-out);
}

.site-header__toggle-bar:first-of-type {
  top: 1.0625rem;
}

.site-header__toggle-bar:last-of-type {
  top: 1.5625rem;
  right: 1.125rem;
  background: var(--red);
}

.is-open .site-header__toggle-bar:first-of-type {
  transform: translateY(0.25rem) rotate(45deg);
}

.is-open .site-header__toggle-bar:last-of-type {
  right: 0.625rem;
  transform: translateY(-0.25rem) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  padding: 2rem var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  background: var(--surface-dark) url("../assets/bg/silk-dark.webp") center / cover;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__list {
  display: grid;
  gap: 0.375rem;
}

.mobile-menu__link {
  display: inline-block;
  padding-block: 0.375rem;
  font-size: clamp(2rem, 9vw, 3.25rem);
  color: var(--white);
}

.mobile-menu__link[aria-current="page"] {
  color: var(--red);
}

.mobile-menu__foot {
  margin-top: 2.5rem;
  color: var(--muted-dark);
}

html.menu-open,
html.menu-open body {
  overflow: hidden;
}

@media (max-width: 1023px) {
  .site-nav {
    display: none;
  }

  .site-header__toggle {
    display: block;
  }
}

/* ================= Red callout bar with 3D icon (deck slides 4, 6, 8, 32) ================= */

.callout {
  position: relative;
  z-index: 1;
  min-height: 5.5rem;
  margin-right: calc(-1 * var(--edge));
  padding: 1.25rem var(--edge) 1.25rem 7.75rem;
  display: flex;
  align-items: center;
  background: var(--red);
  color: var(--white);
}

.callout__icon {
  position: absolute;
  left: 0.25rem;
  top: 50%;
  width: 6.75rem;
  height: 8rem;
  object-fit: contain;
  transform: translateY(-56%);
}

.callout__text {
  max-width: 30em;
  font-size: var(--fs-body);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .callout {
    margin-top: 0.75rem;
    padding-left: 6.5rem;
  }

  .callout__icon {
    width: 5.5rem;
    height: 6.5rem;
  }
}

/* ================= Column grids with top rules ================= */

.cols {
  --n: 3;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem) var(--col-gap);
}

.cols--3 {
  --n: 3;
}

.cols--4 {
  --n: 4;
}

.col {
  position: relative;
  padding-top: 1.125rem;
  border-top: 1px solid var(--rule);
}

.col__title,
.index + .title-l,
.index + .title {
  margin-top: 0.75rem;
}

.col__body {
  margin-top: 0.625rem;
  color: var(--muted);
  max-width: 30em;
}

.sec--red .col__body {
  color: var(--white);
}

@media (max-width: 1023px) {
  .cols,
  .cols--3,
  .cols--4 {
    --n: 2;
  }
}

@media (max-width: 599px) {
  .cols,
  .cols--3,
  .cols--4 {
    --n: 1;
  }
}

/* ================= Service cards ================= */

.service-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--col-gap);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem 1.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--rule);
  transition:
    background-color var(--dur-ui) ease,
    transform var(--dur-ui) var(--ease-out);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 0.1875rem;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease-out);
}

.service-card:hover,
.service-card:focus-visible {
  background: var(--white);
  transform: translateY(-0.1875rem);
}

.service-card:hover::before,
.service-card:focus-visible::before {
  transform: scaleX(1);
}

.service-card__name {
  margin-top: 1.125rem;
}

.service-card__list {
  margin: 1rem 0 1.5rem;
  color: var(--muted);
  line-height: 1.9;
}

.service-card__more {
  margin-top: auto;
}

@media (max-width: 1023px) {
  .service-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 559px) {
  .service-cards {
    grid-template-columns: 1fr;
  }
}

/* ================= Case study cards ================= */

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.25rem, 4vw, 3.5rem) var(--col-gap);
}

.case-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.case-card__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(127, 127, 127, 0.12);
}

.case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.case-card__link:hover .case-card__media img,
.case-card__link:focus-visible .case-card__media img {
  transform: scale(1.04);
}

.case-card__group {
  margin-top: 1.125rem;
  color: var(--muted);
}

.case-card__title {
  margin-top: 0.5rem;
  transition: color var(--dur-ui) ease;
}

.case-card__link:hover .case-card__title {
  color: var(--red);
}

.case-card__summary {
  margin-top: 0.5rem;
  color: var(--muted);
}

.case-card__more {
  margin-top: auto;
  padding-top: 0.875rem;
}

@media (max-width: 1023px) {
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* ================= Client logo marquee ================= */

.clients {
  background: var(--surface-dark);
  border-block: 1px solid var(--rule-dark);
  padding-block: 1.75rem;
  color: var(--white);
}

.clients__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}

.clients__title {
  max-width: 11em;
  color: var(--muted-dark);
}

.marquee {
  position: relative;
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  flex: none;
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding-right: 3.5rem;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  flex: none;
}

.marquee__logo {
  width: auto;
  height: 2.75rem;
  max-width: 10.625rem;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity var(--dur-ui) ease;
}

.marquee__item:hover .marquee__logo {
  opacity: 1;
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    mask-image: none;
  }

  .marquee__track {
    animation: none;
    flex-wrap: wrap;
    row-gap: 1.25rem;
  }

  .marquee__track[aria-hidden] {
    display: none;
  }
}

@media (max-width: 767px) {
  .clients__inner {
    grid-template-columns: 1fr;
    gap: 1.125rem;
  }

  .clients__title {
    max-width: none;
  }
}

/* ================= Contact columns ================= */

.contact-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem var(--col-gap);
}

.contact-cols__item dt {
  margin-bottom: 0.5rem;
}

.contact-cols__item dd {
  line-height: 1.55;
}

.contact-cols__link {
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-ui) ease;
}

.contact-cols__link:hover,
.contact-cols__link:focus-visible {
  border-color: currentColor;
}

.contact-cols--compact {
  grid-template-columns: 1fr;
}

@media (max-width: 1179px) {
  .contact-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* ================= "Let's build something thoughtful." (deck slide 40) ================= */

.thoughtful {
  position: relative;
  max-width: 61.25rem;
}

.thoughtful__title {
  position: relative;
  z-index: 1;
}

.thoughtful__spin {
  position: absolute;
  z-index: 2;
  right: -38%;
  top: -64%;
  width: 92%;
  max-width: none;
  height: auto;
  pointer-events: none;
}

.thoughtful__outline {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto 0;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--white);
  pointer-events: none;
}

.thoughtful__outline-accent {
  -webkit-text-stroke-color: var(--red);
}

@media (max-width: 767px) {
  .thoughtful__spin {
    right: -30%;
    top: -55%;
    width: 100%;
  }
}

/* Contact page header */
.next-step__contact {
  position: relative;
  z-index: 4;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-dark);
}

/* ================= Reels ================= */

.reel-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(9.375rem, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}

.reel {
  scroll-snap-align: start;
}

.reel__tile {
  aspect-ratio: 9 / 14;
  display: grid;
  place-items: center;
  padding: 16%;
  background: var(--surface-dark-2);
  border: 1px solid var(--rule-dark);
  transition: border-color var(--dur-ui) ease;
}

.reel:hover .reel__tile {
  border-color: var(--red);
}

.reel__logo {
  width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

.reel__category {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-small);
}

.reel__client {
  font-size: var(--fs-small);
  color: var(--muted-dark);
}

/* ================= Industries ================= */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--col-gap);
}

.industry {
  display: block;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  transition:
    border-color var(--dur-ui) ease,
    background-color var(--dur-ui) ease;
}

.industry:hover,
.industry:focus-visible {
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.03);
}

.industry__icon {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  object-position: left bottom;
}

.industry__name {
  margin-top: 1.125rem;
}

.industry__focus {
  margin-top: 0.375rem;
}

@media (max-width: 1023px) {
  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .industry {
    padding: 1.125rem;
  }
}

/* ================= Stats (deck slide 39) ================= */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem var(--col-gap);
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  padding-top: 1.125rem;
  border-top: 1px solid var(--rule);
}

.stat dt {
  margin-top: 0.375rem;
  color: var(--muted);
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-stat);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.stat--red .stat__value {
  color: var(--red);
}

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

/* ================= Process stages (deck slide 6) ================= */

.stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2rem var(--col-gap);
}

.stages::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0.375rem;
  height: 1px;
  background: var(--rule);
}

.stage__marker {
  position: relative;
  display: block;
  width: 0.8125rem;
  height: 0.8125rem;
  margin-bottom: 1.375rem;
  background: var(--red);
}

.stage .title {
  margin-top: 0.5rem;
}

.stage ul {
  margin-top: 0.625rem;
  color: var(--muted);
  line-height: 1.9;
}

@media (max-width: 1023px) {
  .stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stages::before {
    display: none;
  }
}

@media (max-width: 599px) {
  .stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ================= Red corner bracket (deck slide 3) ================= */

.bracket {
  position: absolute;
  pointer-events: none;
  border: 0 solid var(--red);
}

.bracket--tl {
  left: -0.5rem;
  top: -0.5rem;
  width: 2.75rem;
  height: 5.75rem;
  border-left-width: 0.3125rem;
  border-top-width: 0.3125rem;
}

/* ================= Forms ================= */

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem var(--col-gap);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  font-size: var(--fs-body);
  line-height: 1.5;
  transition: border-color var(--dur-ui) ease;
}

.field select {
  appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23cc2b3e' stroke-width='2'/%3E%3C/svg%3E") right 4px center / 12px 8px no-repeat;
}

.field select option {
  color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 8.75rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--red);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

.form__note {
  flex: 1 1 16.25rem;
  font-size: var(--fs-small);
}

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

/* ================= Site footer ================= */

.site-footer {
  background: var(--surface-dark);
  color: var(--white);
}

/* Red call-to-action strip */
.footer-cta {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--red);
}

.footer-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../assets/bg/silk-dark.webp") center / cover;
  mix-blend-mode: multiply;
  opacity: 0.22;
}

.footer-cta__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(2.5rem, 4vw, 3.5rem) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}

.footer-cta__title {
  font-size: clamp(1.75rem, 1.1rem + 2vw, 2.75rem);
}

/* Logo, links and contact on one row */
.footer-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(2.5rem, 4vw, 3.5rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.footer-brand__logo {
  width: 9rem;
  height: auto;
}

.footer-brand__tag {
  margin-top: 1rem;
  color: var(--muted-dark);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0 clamp(2rem, 4vw, 3.5rem);
}

.footer-links ul,
.footer-contact {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.footer-links a,
.footer-contact a {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.82);
  transition: color var(--dur-ui) ease;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--red);
}

.footer-contact a:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--white);
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.25rem var(--gutter) 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  color: var(--muted-dark);
  border-top: 1px solid var(--rule-dark);
}

.footer-bottom__top {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--dur-ui) ease;
}

.footer-bottom__top:hover,
.footer-bottom__top:focus-visible {
  color: var(--red);
}

@media (max-width: 860px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 479px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
}

/* ===== home.css ===== */
/* ================= Home: belief ================= */

.belief__sub {
  margin-top: 1rem;
}

.questions .col {
  padding-bottom: 0.25rem;
}

/* Phones get four featured case studies instead of six */
@media (max-width: 599px) {
  .case-grid--featured > :nth-child(n + 5) {
    display: none;
  }
}

/* Two text links side by side */
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
}

/* ===== pages.css ===== */
/* Layouts for the inner pages. */

/* ================= Page header ================= */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.625rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.625rem;
  opacity: 0.6;
}

.breadcrumb a {
  transition: color var(--dur-ui) ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--red);
}

.sec--red .breadcrumb ol {
  color: rgba(255, 255, 255, 0.85);
}

.sec--red .breadcrumb a:hover {
  color: var(--ink);
}

.page-hero__grid {
  max-width: 57.5rem;
}

.page-hero__grid--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem var(--col-gap);
  align-items: center;
}

.page-hero__lead {
  max-width: 38em;
  margin-top: clamp(1.125rem, 2vw, 1.625rem);
  color: var(--muted);
}

.sec--red .page-hero__lead {
  color: var(--white);
}

.page-hero__actions {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.page-hero__cols,
.page-hero__stats,
.page-hero__stages,
.page-hero__industries,
.page-hero__reels {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.page-hero__callout {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  margin-left: auto;
  max-width: 40rem;
}

.page-hero__note {
  margin-top: 1.125rem;
}

.filter-count {
  opacity: 0.6;
}

.sec-actions {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.cols--1 {
  --n: 1;
}

@media (max-width: 860px) {
  .page-hero__grid--split {
    grid-template-columns: 1fr;
  }
}

/* ================= Two-column split ================= */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.split--center {
  align-items: center;
}

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

/* ================= About ================= */

.traits-list {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  gap: 1.25rem;
}

.studio__photos {
  position: relative;
  padding: 0 0 18% 0;
}

.studio__photo {
  position: relative;
}

.studio__photo img {
  width: 100%;
  height: auto;
}

.studio__photo--small {
  position: absolute;
  right: -6%;
  bottom: 0;
  width: 58%;
  border: 0.375rem solid var(--surface-light);
}

@media (max-width: 860px) {
  .studio__photo--small {
    right: 0;
  }
}

/* ================= Services overview ================= */

.practice-rows {
  display: grid;
}

.practice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 2rem clamp(2rem, 6vw, 5.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.practice-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.practice-row:last-child {
  padding-bottom: 0;
}

.practice-row:nth-child(even) .practice-row__media {
  order: -1;
}

.practice-row__name {
  margin-top: 0.75rem;
}

.practice-row__intro {
  margin-top: 0.875rem;
  max-width: 34em;
}

.practice-row__services {
  margin: 1.375rem 0 1.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--col-gap);
}

.practice-row__services li {
  padding-block: 0.5625rem;
  border-top: 1px solid var(--rule);
}

.practice-row__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.practice-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.practice-row:hover .practice-row__media img {
  transform: scale(1.03);
}

@media (max-width: 860px) {
  .practice-row {
    grid-template-columns: 1fr;
  }

  .practice-row:nth-child(even) .practice-row__media {
    order: 0;
  }
}

@media (max-width: 479px) {
  .practice-row__services {
    grid-template-columns: 1fr;
  }
}

/* ================= Practice pages ================= */

.service-list {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.25rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.service-list__intro {
  margin: 1rem 0 1.75rem;
}

.service-list__items {
  border-bottom: 1px solid var(--rule);
}

.service-list__item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  align-items: baseline;
  padding-block: 1.125rem;
  border-top: 1px solid var(--rule);
}

.practice-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem clamp(1.5rem, 4vw, 3.5rem);
}

.practice-switch ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem clamp(1.5rem, 4vw, 3.5rem);
}

.practice-switch__link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding-block: 0.375rem;
  transition: color var(--dur-ui) ease;
}

.practice-switch__link:hover,
.practice-switch__link:focus-visible {
  color: var(--red);
}

.practice-switch__link:hover .text-link__arrow {
  transform: translateX(0.3125rem);
}

.mark-anatomy__logo {
  max-width: 28.75rem;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  background: #f4f1ea;
}

.note-list {
  display: grid;
  gap: 1.25rem;
  margin-block: 1.75rem;
}

.note {
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.note .title + p {
  margin-top: 0.5rem;
}

.wide-figure {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.wide-figure img {
  width: 100%;
  height: auto;
}

.page-hero__reels {
  grid-auto-columns: minmax(9.375rem, 1fr);
}

@media (max-width: 860px) {
  .service-list {
    grid-template-columns: 1fr;
  }
}

/* ================= House of Ikkansh lock-up ================= */

.ikkansh-logo {
  position: relative;
  width: 100%;
  aspect-ratio: 382 / 436;
}

.ikkansh-logo img {
  position: absolute;
  max-width: none;
}

/* ================= Process ================= */

.page-hero__stages .stage a {
  display: inline-block;
  margin-top: 0.5rem;
}

.stage-rows {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.stage-row {
  display: grid;
  grid-template-columns: 8.75rem minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 0.625rem var(--col-gap);
  align-items: baseline;
  padding-block: clamp(1.375rem, 3vw, 2rem);
  border-top: 1px solid var(--rule);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.stage-row__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  color: var(--muted);
}

.stage-row__gate {
  margin-top: 0.625rem;
}

@media (max-width: 860px) {
  .stage-row {
    grid-template-columns: 1fr;
  }
}

/* ================= Case study ================= */

.case-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 2.25rem clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.case-hero__grid--single {
  grid-template-columns: minmax(0, 53.75rem);
}

.case-hero__summary {
  max-width: 36em;
  margin-top: 1.25rem;
}

.case-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.125rem clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.case-facts dt {
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.case-facts dd {
  font-weight: 700;
}

.case-hero__identity {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  background: var(--white);
  border: 1px solid var(--rule);
}

.case-hero__logo {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.case-hero__composite {
  max-width: 18.75rem;
}

.case-hero__figure {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.case-hero__figure {
  overflow: hidden;
  aspect-ratio: 21 / 9;
}

.case-hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 599px) {
  .case-hero__figure {
    aspect-ratio: 4 / 3;
  }
}

.case-block__body {
  margin-top: 0.875rem;
  color: var(--muted);
}

.case-blocks--single .case-block__body {
  max-width: 44em;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: var(--col-gap);
}

.gallery__item {
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.gallery__item:hover img {
  transform: scale(1.03);
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item--tall {
  grid-row: span 2;
}

.case-notes__intro {
  margin-top: 1.125rem;
  max-width: 34em;
}

.case-notes__figure {
  margin-top: 2rem;
}

.case-notes__figure img {
  width: 100%;
  height: auto;
}

.case-notes__figure--mark {
  max-width: 21.25rem;
  padding: 1.75rem;
  background: #f4f1ea;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 1.125rem 1.375rem;
  margin-top: 1.75rem;
}

.swatch {
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
}

.swatch__chip {
  display: block;
  width: 4rem;
  aspect-ratio: 1;
  border: 1px solid var(--rule);
}

.case-next__summary {
  margin: 1rem 0 1.75rem;
  max-width: 32em;
}

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

  .case-hero__identity {
    aspect-ratio: auto;
    max-width: 26.25rem;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .gallery__item--wide {
    grid-column: auto;
  }

  .gallery__item--tall {
    grid-row: auto;
  }
}

/* ================= Industries ================= */

.industry-rows {
  display: grid;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.industry-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1.25rem var(--col-gap);
  align-items: start;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--rule);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.industry-row__icon {
  width: 100%;
  height: auto;
}

.industry-row__focus {
  margin-top: 0.375rem;
}

.industry-row__work {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem var(--col-gap);
}

.industry-row__work .eyebrow {
  margin-bottom: 0.375rem;
}

.industry-row__clients {
  color: var(--muted);
}

@media (max-width: 767px) {
  .industry-row {
    grid-template-columns: 3.5rem 1fr;
  }

  .industry-row__work {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }
}

/* ================= Contact ================= */

.enquiry__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.enquiry__intro {
  margin-top: 1.125rem;
  max-width: 30em;
}

.enquiry__contact {
  margin-top: clamp(1.75rem, 3vw, 2.75rem);
}

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

/* ===== effects.css ===== */
/*
 * Scroll and interaction effects. Scroll-linked effects use CSS scroll timelines
 * (animation-timeline), so they cost no JavaScript and simply don't run in browsers
 * without support. Everything decorative is switched off for prefers-reduced-motion.
 */

/* ================= Scroll progress bar ================= */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

@keyframes progress-grow {
  to {
    transform: scaleX(1);
  }
}

/* ================= Cards ================= */

.sec {
  --card-bg: rgba(255, 255, 255, 0.035);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-glow: rgba(204, 43, 62, 0.28);
  --card-num: rgba(255, 255, 255, 0.16);
}

.sec--light {
  --card-bg: rgba(255, 255, 255, 0.62);
  --card-border: rgba(0, 0, 0, 0.08);
  --card-glow: rgba(204, 43, 62, 0.14);
  --card-num: rgba(0, 0, 0, 0.12);
}

.sec--red {
  --card-bg: rgba(255, 255, 255, 0.09);
  --card-border: rgba(255, 255, 255, 0.24);
  --card-glow: rgba(255, 255, 255, 0.22);
  --card-num: rgba(255, 255, 255, 0.32);
}

.cards {
  gap: var(--col-gap);
}

.cards > *,
.stack__card {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 1.75rem 1.5rem 1.6rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition:
    translate 0.4s var(--ease-out),
    border-color 0.25s ease,
    background-color 0.25s ease;
}

/* Pointer spotlight (position set by PointerEffects.tsx) */
.cards > *::before,
.stack__card::before,
.service-card::after,
.industry::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 0%), var(--card-glow), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cards > *:hover,
.cards > *:focus-within {
  translate: 0 -0.35rem;
  border-color: var(--red);
}

.sec--red .cards > *:hover,
.sec--red .cards > *:focus-within {
  border-color: var(--white);
}

.cards > *:hover::before,
.stack__card:hover::before,
.service-card:hover::after,
.industry:hover::after {
  opacity: 1;
}

/* Large outline number in the corner */
.cards--numbered > * {
  padding-top: 2.25rem;
}

.cards--numbered .index {
  position: absolute;
  top: 0.75rem;
  right: 1.1rem;
  font-size: 3.25rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--card-num);
  transition: -webkit-text-stroke-color 0.3s ease;
}

.cards--numbered > *:hover .index {
  -webkit-text-stroke-color: var(--red);
}

.sec--red .cards--numbered > *:hover .index {
  -webkit-text-stroke-color: var(--white);
}

.cards--numbered .index + .col__title,
.cards--numbered .index + .title,
.cards--numbered .index + .title-l {
  margin-top: 0;
  padding-right: 4.75rem;
}

/* Tilt toward the pointer (inner elements only, so it never fights a reveal animation) */
[data-tilt] {
  transform: perspective(60rem) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition:
    transform 0.25s var(--ease-out),
    background-color var(--dur-ui) ease,
    border-color var(--dur-ui) ease;
}

/* ================= Service cards ================= */

.service-card__icon {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 4.25rem;
  height: 4.25rem;
  object-fit: contain;
  transition:
    translate 0.5s var(--ease-out),
    rotate 0.5s var(--ease-out);
}

.service-card:hover .service-card__icon,
.service-card:focus-visible .service-card__icon {
  translate: 0 -0.4rem;
  rotate: -8deg;
}

/* ================= Case card overlay ================= */

.case-card__media {
  position: relative;
}

.case-card__view {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6rem 1rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  opacity: 0;
  translate: 0 0.75rem;
  transition:
    opacity 0.3s ease,
    translate 0.4s var(--ease-out);
}

.case-card__link:hover .case-card__view,
.case-card__link:focus-visible .case-card__view {
  opacity: 1;
  translate: 0 0;
}

/* ================= Sticky stacked cards ================= */

.stack-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.stack-split__intro {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
}

.stack-split__intro .callout {
  margin: 1.75rem 0 0;
  padding-right: 1.5rem;
}

.stack {
  display: grid;
  gap: 1.25rem;
}

.stack__card {
  position: sticky;
  top: calc(var(--header-h) + 2rem + var(--i, 0) * 1.25rem);
  min-height: 15rem;
  padding: 2rem 2rem 1.75rem;
  background: var(--white);
  box-shadow: 0 -0.75rem 2rem rgba(0, 0, 0, 0.06);
}

.stack__card .index {
  font-size: 0.875rem;
}

.stack__card .title-l {
  margin-top: 0.75rem;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem);
}

.stack__card .col__body {
  font-size: var(--fs-lead);
  max-width: 28em;
}

.stack__num {
  position: absolute;
  right: 1.5rem;
  bottom: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 6rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(204, 43, 62, 0.35);
}

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

  .stack-split__intro,
  .stack__card {
    position: relative;
    top: auto;
  }
}

/* ================= Word band ================= */

.word-band {
  overflow: clip;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  background: var(--surface-dark);
  border-block: 1px solid var(--rule-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 1.5rem + 5vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

.word-band__row {
  display: flex;
  width: max-content;
}

.word-band__row--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55);
  margin-left: -30vw;
}

.word-band__word {
  display: inline-flex;
  align-items: center;
}

.word-band__dot {
  display: inline-block;
  width: 0.22em;
  height: 0.22em;
  margin: 0 0.45em;
  background: var(--red);
  border-radius: 50%;
}

.word-band__row--outline .word-band__dot {
  background: transparent;
  border: 2px solid var(--red);
}

@keyframes band-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-28%);
  }
}

@keyframes band-right {
  from {
    transform: translateX(-28%);
  }
  to {
    transform: translateX(0);
  }
}

/* ================= Headline word reveal ================= */

.split-reveal .word {
  display: inline-block;
  overflow: clip;
  overflow-clip-margin: 0.08em;
  vertical-align: top;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.split-reveal .word__in {
  display: inline-block;
}

@keyframes word-rise {
  from {
    transform: translateY(105%);
  }
  to {
    transform: none;
  }
}

/* ================= Image wipe ================= */

@keyframes media-wipe {
  from {
    clip-path: inset(18% 0 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes media-iris {
  from {
    clip-path: circle(12% at 50% 50%);
  }
  to {
    clip-path: circle(75% at 50% 50%);
  }
}

@keyframes media-settle {
  from {
    scale: 1.16;
  }
  to {
    scale: 1;
  }
}

/* ================= Backgrounds and parallax ================= */

@keyframes bg-drift {
  from {
    background-position: 50% 0%;
  }
  to {
    background-position: 50% 100%;
  }
}

/* ================= Buttons ================= */

.button span[aria-hidden="true"] {
  display: inline-block;
  transition: translate var(--dur-ui) var(--ease-out);
}

.button:hover span[aria-hidden="true"],
.button:focus-visible span[aria-hidden="true"] {
  translate: 0.3rem 0;
}

/* ================= Wiring: only with motion allowed ================= */

@media (prefers-reduced-motion: no-preference) {
  /* Page-header headlines: words rise in on load */
  .sec--hero .split-reveal .word__in {
    animation: word-rise 0.9s var(--ease-out) both;
    animation-delay: calc(120ms + var(--w, 0) * 70ms);
  }

  .marquee__track {
    will-change: transform;
  }

  @supports (animation-timeline: scroll()) {
    .scroll-progress {
      animation: progress-grow linear both;
      animation-timeline: scroll(root block);
    }
  }

  @supports (animation-timeline: view()) {
    /* Elsewhere, headline words rise as the heading scrolls in */
    .split-reveal .word__in {
      animation: word-rise linear both;
      animation-timeline: view();
      animation-range: entry calc(5% + var(--w, 0) * 4%) entry calc(70% + var(--w, 0) * 4%);
    }

    .sec--hero .split-reveal .word__in {
      animation: word-rise 0.9s var(--ease-out) both;
      animation-timeline: auto;
      animation-delay: calc(120ms + var(--w, 0) * 70ms);
    }

    /* Silk backgrounds drift slowly against the scroll */
    .sec--dark,
    .sec--light {
      animation: bg-drift linear both;
      animation-timeline: view();
    }

    /* Case photos open out of a circle as they enter */
    .case-card__media,
    .case-hero__figure {
      animation: media-iris linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }

    /* Other photos wipe up and settle as they enter */
    .practice-row__media,
    .gallery__item,
    .studio__photo {
      animation: media-wipe linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }

    .case-card__media img,
    .practice-row__media img,
    .gallery__item img,
    .case-hero__figure img {
      animation: media-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 50%;
    }

    /* Word bands slide in opposite directions */
    .word-band__row {
      animation: band-left linear both;
      animation-timeline: view();
    }

    .word-band__row--outline {
      animation-name: band-right;
    }
  }
}

/* ===== hero.css ===== */
/*
 * Home hero (HomeHero.tsx), in two acts.
 *   Opening   a giant XOXO wordmark slices together in the middle of the screen, then
 *             zooms out and is gone (about 3s)
 *   Hero      a curved wall of work photos turns slowly behind the headline
 *
 *   --hold    waits for the intro screen on a full page load
 *   --open    when the opening zooms out; 0 once the visitor skips it
 *   --px/--py pointer position across the hero, -1 to 1 (set by HomeHero)
 */

.xh {
  --px: 0;
  --py: 0;
  --hold: 0.15s;
  --open: 2.1s;
  --wall-at: calc(var(--hold) + var(--open));
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 100svh;
  background: var(--surface-dark) url("../assets/bg/silk-dark.webp") center / cover;
  color: var(--white);
}

html:not([data-intro]) .xh,
.xh[data-held] {
  --hold: 2.15s;
}

.xh[data-skip] {
  --open: 0s;
}

.xh__glow {
  position: absolute;
  inset: -10%;
  z-index: -1;
  background:
    radial-gradient(38% 46% at 55% 42%, rgba(204, 43, 62, 0.3), transparent 70%),
    radial-gradient(30% 40% at 18% 90%, rgba(204, 43, 62, 0.12), transparent 70%);
  translate: calc(var(--px) * 2.5%) calc(var(--py) * 2.5%);
  transition: translate 1.2s var(--ease-out);
  pointer-events: none;
}

/* =================== The curved wall =================== */

.xh-wall {
  /* tile width, gap, tiles round the ring, and the ring's radius */
  --tw: 17vw;
  --tg: 1.1vw;
  --n: 14;
  --rows-mid: 1;
  --R: calc((var(--tw) + var(--tg)) * var(--n) / 6.2832);
  position: absolute;
  inset: 0;
  overflow: clip;
  perspective: calc(var(--R) * 2.55);
  perspective-origin: 50% 46%;
}

.xh-wall__tilt,
.xh-wall__spin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
}

.xh-wall__tilt {
  transform: rotateX(calc(var(--py) * -3deg)) rotateY(calc(var(--px) * 5deg));
  transition: transform 1.4s var(--ease-out);
}

/* The ring's centre sits in front of the screen, so the near side of the ring wraps toward you */
.xh-wall__spin {
  transform: translateZ(var(--R)) rotateY(0deg);
}

.xh-tile {
  --th: calc(var(--tw) * 0.72);
  --row: calc(var(--r) - var(--rows-mid));
  position: absolute;
  left: calc(var(--tw) / -2);
  top: calc(var(--th) / -2 + var(--row) * (var(--th) + var(--tg)));
  width: var(--tw);
  height: var(--th);
  overflow: hidden;
  border-radius: clamp(0.6rem, 1vw, 1.1rem);
  background: var(--surface-dark-2);
  backface-visibility: hidden;
  transform: rotateY(calc(var(--c) * 360deg / var(--n))) translateZ(calc(var(--R) * -1));
}

.xh-tile img {
  object-fit: cover;
}

/* Dimmed with one overlay per tile, which is cheaper to draw than a filter on each photo */
.xh-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.4);
}

/* Desktop shows three rows; the fourth is for taller tablet and phone screens */
.xh-tile[data-row="3"] {
  display: none;
}

/* Darkness in the middle so the headline reads, and soft top and bottom edges */
.xh__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 40% at 50% 50%, rgba(8, 8, 8, 0.86), rgba(8, 8, 8, 0.55) 62%, rgba(8, 8, 8, 0) 100%),
    linear-gradient(to bottom, var(--surface-dark) 0%, rgba(11, 11, 11, 0) 22%, rgba(11, 11, 11, 0) 70%, var(--surface-dark) 100%);
}

/* =================== Headline =================== */

.xh__inner {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(2rem, 4vw, 3.5rem)) var(--gutter) clamp(1.25rem, 2.5vw, 2rem);
  text-align: center;
}

.xh__copy {
  align-self: center;
  max-width: 54rem;
}

.xh__eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.xh__title {
  margin-top: 1.25rem;
  font-size: clamp(2.5rem, 0.9rem + 4.4vw, 5.75rem);
  line-height: 1;
}

.xh__lead {
  max-width: 34em;
  margin: clamp(1.1rem, 1.8vw, 1.6rem) auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.xh__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 2.6vw, 2.25rem);
}

.xh__pill {
  border-radius: 999px;
}

.xh__foot {
  margin-top: 2.5rem;
}

.xh-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem clamp(2rem, 5vw, 4.5rem);
}

.xh-stat {
  display: flex;
  flex-direction: column-reverse;
}

.xh-stat dt {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.6);
}

.xh-stat dd {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 0.9rem + 1.3vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.xh__note {
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.42);
}

/* =================== Opening =================== */

.xh-open {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--header-h) var(--gutter) 0;
  pointer-events: none;
  transform-origin: 50% 50%;
}

/* Giant wordmark */
.xh-word {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: min(24vw, 46svh);
  line-height: 0.82;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.xh-word__l {
  position: relative;
  display: inline-block;
}

.xh-word__ghost {
  visibility: hidden;
}

/* Each letter is four stacked horizontal slices */
.xh-word__s {
  position: absolute;
  inset: 0;
  clip-path: inset(calc(var(--s) * 25% - 1px) 0 calc(75% - var(--s) * 25% - 1px) 0);
}

.xh-word__mark {
  width: 0.3em;
  height: auto;
  margin: 0.06em 0 0 0.08em;
}

/* =================== Smaller screens =================== */

@media (max-width: 1023px) {
  .xh-wall {
    --tw: 30vw;
    --tg: 2vw;
    --n: 12;
    --rows-mid: 1.5;
  }

  .xh-tile[data-row="3"] {
    display: block;
  }

  .xh-tile[data-i="12"],
  .xh-tile[data-i="13"] {
    display: none;
  }

  .xh-word {
    font-size: 27vw;
  }
}

@media (max-width: 599px) {
  .xh-wall {
    --tw: 40vw;
    --n: 10;
  }

  .xh-tile[data-i="10"],
  .xh-tile[data-i="11"] {
    display: none;
  }

  .xh-tile {
    --th: calc(var(--tw) * 1.05);
  }

  .xh-tile::after {
    background: rgba(8, 8, 8, 0.3);
  }

  .xh__shade {
    background:
      radial-gradient(ellipse 80% 42% at 50% 46%, rgba(8, 8, 8, 0.72), rgba(8, 8, 8, 0.35) 70%, rgba(8, 8, 8, 0) 100%),
      linear-gradient(to bottom, var(--surface-dark) 0%, rgba(11, 11, 11, 0) 16%, rgba(11, 11, 11, 0) 76%, var(--surface-dark) 100%);
  }

  .xh-stats {
    gap: 1rem 1.5rem;
  }

  .xh-stat dt {
    font-size: 0.625rem;
    letter-spacing: 0.12em;
  }
}

/* =================== Motion =================== */

/* Reduced motion: no opening, the wall stands still */
@media (prefers-reduced-motion: reduce) {
  .xh-open {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* ----- Opening ----- */
  .xh-open {
    animation: xh-open-out 0.95s cubic-bezier(0.7, 0, 0.25, 1) var(--wall-at) forwards;
  }

  .xh-word__s {
    animation: xh-slice 1.15s cubic-bezier(0.7, 0, 0.2, 1) backwards;
    animation-delay: calc(var(--hold) + 0.15s + var(--l) * 0.12s + var(--s) * 0.06s);
  }

  .xh-word__mark {
    animation:
      xh-mark-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--hold) + 0.85s) backwards,
      xh-spin 6s linear calc(var(--hold) + 1.7s) infinite;
  }

  /* ----- Wall: rushes in from close up as the opening leaves, then turns ----- */
  .xh-wall,
  .xh__shade {
    animation: xh-wall-in 1.7s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--wall-at) + 0.15s) backwards;
  }

  .xh-wall__spin {
    animation: xh-turn 120s linear infinite;
  }

  /* ----- Headline ----- */
  .xh .split-reveal .word__in {
    animation: word-rise 0.9s var(--ease-out) both;
    animation-timeline: auto;
    animation-delay: calc(var(--wall-at) + 0.55s + var(--w, 0) * 70ms);
  }

  .xh__eyebrow,
  .xh__lead,
  .xh__actions,
  .xh__foot {
    animation: xh-rise 0.9s var(--ease-out) backwards;
  }

  .xh__eyebrow {
    animation-delay: calc(var(--wall-at) + 0.45s);
  }

  .xh__lead {
    animation-delay: calc(var(--wall-at) + 0.95s);
  }

  .xh__actions {
    animation-delay: calc(var(--wall-at) + 1.1s);
  }

  .xh__foot {
    animation-delay: calc(var(--wall-at) + 1.3s);
  }
}

@keyframes xh-open-out {
  to {
    opacity: 0;
    scale: 0.42;
    filter: blur(10px);
    visibility: hidden;
  }
}

@keyframes xh-wall-in {
  from {
    opacity: 0;
    scale: 1.9;
  }
}

@keyframes xh-turn {
  from {
    transform: translateZ(var(--R)) rotateY(0deg);
  }
  to {
    transform: translateZ(var(--R)) rotateY(-360deg);
  }
}

@keyframes xh-rise {
  from {
    opacity: 0;
    translate: 0 1.25rem;
  }
}

@keyframes xh-slice {
  0% {
    opacity: 0;
    translate: var(--fx) 0;
    color: var(--red);
  }
  55% {
    opacity: 1;
    color: var(--red);
  }
  100% {
    translate: 0 0;
  }
}

@keyframes xh-mark-in {
  from {
    opacity: 0;
    scale: 0.2;
    rotate: -180deg;
  }
}

@keyframes xh-spin {
  to {
    rotate: 1turn;
  }
}

/* ===== intro.css ===== */
/*
 * Intro loading screen (IntroLoader.tsx). One CSS timeline of about 2.9s:
 *   0.1s   the red mark spins and sharpens into place
 *   0.5s   X O X O rise letter by letter, SOCIAL settles its letter-spacing
 *   0.2s–1.8s  the red line fills and the counter runs 00 → 100
 *   1.95s  the content lifts away, the dark panel wipes up, then the red curtain
 * Hero animations are held back until the intro has gone (see bottom of file).
 */

@property --intro-p {
  syntax: "<integer>";
  inherits: false;
  initial-value: 0;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  cursor: pointer;
  animation: intro-done 0.01s linear 2.9s forwards;
}

.intro__curtain,
.intro__panel {
  position: absolute;
  inset: 0;
}

.intro__curtain {
  background: var(--red);
  animation: intro-wipe 0.65s cubic-bezier(0.76, 0, 0.24, 1) 2.2s forwards;
}

.intro__panel {
  display: grid;
  place-items: center;
  background: var(--surface-dark) url("../assets/bg/silk-dark.webp") center / cover;
  color: var(--white);
  animation: intro-wipe 0.7s cubic-bezier(0.76, 0, 0.24, 1) 2s forwards;
}

.intro__center {
  display: grid;
  justify-items: center;
  animation: intro-lift 0.45s var(--ease-out) 1.9s forwards;
}

.intro__mark {
  width: clamp(4.5rem, 9vw, 7rem);
  height: auto;
  animation: intro-mark 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.intro__word {
  display: flex;
  margin-top: clamp(1rem, 2vw, 1.5rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 2rem + 6vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.intro__letter {
  display: inline-block;
  overflow: clip;
  padding-inline: 0.01em;
}

.intro__letter > span {
  display: inline-block;
  animation: intro-letter 0.7s var(--ease-out) both;
}

.intro__social {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.85rem, 0.6rem + 1vw, 1.35rem);
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  animation: intro-social 0.9s var(--ease-out) 0.9s both;
}

.intro__bottom {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(1.75rem, 4vh, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  color: var(--muted-dark);
  animation: intro-fade-out 0.3s ease 1.9s forwards;
}

.intro__count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 2vw, 3.5rem);
  line-height: 1;
  color: var(--white);
  animation: intro-count 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.2s both;
  counter-reset: intro var(--intro-p);
}

.intro__count::before {
  content: counter(intro, decimal-leading-zero);
}

.intro__count::after {
  content: "%";
  font-size: 0.45em;
  color: var(--red);
  vertical-align: top;
}

.intro__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.intro__bar span {
  display: block;
  height: 100%;
  background: var(--red);
  transform-origin: 0 50%;
  animation: intro-bar 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.2s both;
}

/* Skipped: the whole screen fades out at once */
.intro--skip {
  animation: intro-skip 0.35s ease forwards;
}

.intro--skip * {
  animation-play-state: paused;
}

@keyframes intro-mark {
  from {
    opacity: 0;
    transform: scale(0.3) rotate(-200deg);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes intro-letter {
  from {
    transform: translateY(110%);
  }
  to {
    transform: none;
  }
}

@keyframes intro-social {
  from {
    opacity: 0;
    letter-spacing: 1.4em;
  }
  to {
    opacity: 1;
    letter-spacing: 0.55em;
  }
}

@keyframes intro-count {
  from {
    --intro-p: 0;
  }
  to {
    --intro-p: 100;
  }
}

@keyframes intro-bar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes intro-lift {
  to {
    opacity: 0;
    transform: translateY(-2.5rem);
  }
}

@keyframes intro-fade-out {
  to {
    opacity: 0;
  }
}

@keyframes intro-wipe {
  to {
    clip-path: inset(0 0 100% 0);
  }
}

@keyframes intro-done {
  to {
    visibility: hidden;
    pointer-events: none;
  }
}

@keyframes intro-skip {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* Reduced motion: a short, still splash that fades away */
@media (prefers-reduced-motion: reduce) {
  .intro,
  .intro * {
    animation: none !important;
  }

  .intro {
    animation: intro-skip 0.4s ease 0.5s forwards !important;
  }

  .intro__count::before {
    content: "100";
  }
}

/* Hold the page-header entrance until the intro has lifted */
@media (prefers-reduced-motion: no-preference) {
  html:not([data-intro]) .sec--hero [data-reveal] {
    animation-delay: calc(2.25s + var(--reveal-i, 0) * 90ms);
  }

  html:not([data-intro]) .sec--hero .split-reveal .word__in {
    animation-delay: calc(2.25s + var(--w, 0) * 70ms);
  }
}
