/* Generated by dev/sync-design.mjs from the Next.js design (src/styles). Put WordPress-only rules in css/wp.css. */

/* ===== tokens.css ===== */
/*
 * Design tokens. The navy is the current site's hero colour; the blues are sampled from the
 * phoenix in the logo (cyan wing tips to deep blue tail). Sizes and spacing are website values.
 */
:root {
  /* Navy */
  --navy-950: #000a1e;
  --navy-900: #000e28;
  --navy-850: #031538;
  --navy-800: #071d49;
  --navy-700: #0e2b63;

  /* Phoenix blues */
  --cyan: #29c5f4;
  --sky: #2f91cb;
  --blue: #2d6cf0;
  --blue-deep: #1d4fd6;
  --indigo: #4148c8;

  /* Neutrals */
  --ink: #04112b;
  --white: #ffffff;
  --paper: #f3f6fb;
  --paper-2: #e8eef7;
  --muted-on-dark: #9eabc6;
  --muted-on-light: #4b5976;
  --rule-on-dark: rgba(140, 172, 255, 0.16);
  --rule-on-light: rgba(4, 17, 43, 0.1);

  /* Gradients */
  --grad-brand: linear-gradient(120deg, #29c5f4 0%, #2f8de8 45%, #3e5ce0 100%);
  --grad-button: linear-gradient(120deg, #1f8fe8 0%, #2d6cf0 55%, #3d55dd 100%);
  --grad-text-on-dark: linear-gradient(100deg, #5fd8ff 0%, #45a8ff 48%, #7f93ff 100%);
  --grad-text-on-light: linear-gradient(100deg, #0f8fd2 0%, #2563eb 55%, #4338ca 100%);
  --grad-band: linear-gradient(118deg, #0a2687 0%, #1645c7 46%, #1f6fdc 100%);

  /* Type families (set by next/font in layout.tsx) */
  --font-display: var(--font-grotesk), "Space Grotesk", system-ui, sans-serif;
  --font-body: var(--font-inter), "Inter", system-ui, sans-serif;
  --font-mono: var(--font-jetbrains), "JetBrains Mono", ui-monospace, monospace;
  --font-serif: var(--font-instrument), "Instrument Serif", Georgia, serif;

  /* Type scale */
  --fs-hero: clamp(2.75rem, 1.1rem + 5.1vw, 6.1rem);
  --fs-h1: clamp(2.5rem, 1.3rem + 3.6vw, 4.75rem);
  --fs-h2: clamp(2.05rem, 1.15rem + 2.55vw, 3.6rem);
  --fs-h3: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
  --fs-title: clamp(1.15rem, 1.03rem + 0.38vw, 1.375rem);
  --fs-lead: clamp(1.1rem, 1rem + 0.42vw, 1.35rem);
  --fs-body: 1rem;
  --fs-small: 0.9375rem;
  --fs-mono: 0.75rem;

  --ls-display: -0.042em;
  --ls-title: -0.02em;
  --ls-mono: 0.14em;

  /* Layout */
  --container: 80rem;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --col-gap: clamp(1rem, 2.2vw, 1.75rem);
  --header-h: 5rem;
  --radius-sm: 0.75rem;
  --radius: 1.25rem;
  --radius-lg: 1.75rem;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-ui: 220ms;
  --dur-reveal: 800ms;
}

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

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

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

/*
 * Large screens: every size is in rem, so growing the root font size scales the whole layout
 * in proportion (about 1.2x at 1920px wide, 1.5x at 2560px and above).
 */
@media (min-width: 1440px) {
  html {
    font-size: min(calc(100% + (100vw - 1440px) * 0.0072), 150%);
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  /* Colours that sections re-define for their background */
  --fg: var(--white);
  --muted: var(--muted-on-dark);
  --rule: var(--rule-on-dark);
  --link: #5fd0ff;
  --accent-text: var(--grad-text-on-dark);
}

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(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* In-page links land below the fixed header */
[id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -6rem;
  z-index: 200;
  padding: 0.75rem 1.125rem;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  font-size: var(--fs-small);
}

.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;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ================= Typography ================= */

.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: var(--ls-display);
  text-wrap: balance;
}

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

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

.display--m {
  font-size: var(--fs-h2);
  line-height: 1.04;
}

.display--s {
  font-size: var(--fs-h3);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

/* Accent words: the italic serif echoes the logo's serif wordmark */
.accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  line-height: 0.9;
  letter-spacing: -0.012em;
}

.accent,
.accent .word__in {
  background: var(--accent-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* room for the italic overhang so the gradient isn't clipped */
  padding-inline-end: 0.08em;
  margin-inline-end: -0.04em;
}

/* With split words, each word carries the gradient instead of the wrapper */
.accent:has(.word__in) {
  background: none;
  color: inherit;
  padding-inline-end: 0;
  margin-inline-end: 0;
}

.title-l {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-title);
  line-height: 1.25;
  letter-spacing: var(--ls-title);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65em;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-mono);
  line-height: 1.4;
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "//";
  letter-spacing: 0;
  background: var(--accent-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

.eyebrow--plain::before {
  content: none;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.06em;
}

.index {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  color: var(--muted);
}

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

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

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

/* Arrow text link */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding-block: 0.3rem;
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--link);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 300ms var(--ease-out);
}

.text-link svg {
  width: 1.1em;
  height: 1.1em;
  transition: translate var(--dur-ui) var(--ease-out);
}

.text-link:hover,
.text-link:focus-visible {
  background-size: 100% 1px;
}

.text-link:hover svg,
.text-link:focus-visible svg,
a:hover > .text-link svg {
  translate: 0.25rem 0;
}

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

.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3.25rem;
  padding: 0 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--grad-button);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0.5rem 1.5rem -0.75rem rgba(45, 108, 240, 0.8);
  transition:
    box-shadow 300ms var(--ease-out),
    filter var(--dur-ui) ease,
    background-color var(--dur-ui) ease,
    color var(--dur-ui) ease,
    border-color var(--dur-ui) ease;
}

.button svg {
  width: 1.15em;
  height: 1.15em;
  transition: translate var(--dur-ui) var(--ease-out);
}

.button:hover,
.button:focus-visible {
  filter: brightness(1.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0.75rem 2rem -0.75rem rgba(41, 197, 244, 0.85);
}

.button:hover svg,
.button:focus-visible svg {
  translate: 0.25rem 0;
}

.button--ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--fg) 30%, transparent);
  color: var(--fg);
  box-shadow: none;
}

.button--ghost:hover,
.button--ghost:focus-visible {
  filter: none;
  background: var(--fg);
  border-color: var(--fg);
  color: var(--navy-900);
  box-shadow: none;
}

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

/* On the blue band the main button turns white */
.on-blue .button:not(.button--ghost) {
  background: var(--white);
  color: var(--navy-900);
  box-shadow: 0 0.75rem 2rem -1rem rgba(0, 10, 30, 0.6);
}

.on-blue .button:not(.button--ghost):hover,
.on-blue .button:not(.button--ghost):focus-visible {
  filter: none;
  background: var(--paper);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 0.875rem;
}

/* ================= Reveal motion =================
 * Page headers use a short time-based entrance on load (below). Everywhere else, [data-reveal]
 * blocks play a one-off entrance the first time they scroll into view: see "First-time
 * entrances" in motion.css. `--reveal-i` staggers siblings.
 */

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

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

@media (prefers-reduced-motion: no-preference) {
  .is-hero [data-reveal] {
    animation: reveal-up var(--dur-reveal) var(--ease-out) both;
    animation-timeline: auto;
    animation-delay: calc(var(--hero-delay, 0ms) + 120ms + var(--reveal-i, 0) * 90ms);
  }

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

/* ===== section.css ===== */
/*
 * Section frame: a full-width band with a centred container. Four tones give the page its
 * rhythm: navy (dark), cool paper (light), white, and the blue band (accent).
 */
.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(--navy-900);
  color: var(--fg);
}

.sec--dark {
  --fg: var(--white);
  --muted: var(--muted-on-dark);
  --rule: var(--rule-on-dark);
  --link: #5fd0ff;
  --accent-text: var(--grad-text-on-dark);
  background-color: var(--navy-900);
}

.sec--deep {
  background-color: var(--navy-950);
}

/* Faint blueprint grid on dark bands, fading out towards the edges */
.sec--grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.07) 1px, transparent 1px);
  background-size: 4rem 4rem;
  background-position: center top;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 20%, transparent 80%);
  pointer-events: none;
}

.sec--light,
.sec--white {
  --fg: var(--ink);
  --muted: var(--muted-on-light);
  --rule: var(--rule-on-light);
  --link: var(--blue-deep);
  --accent-text: var(--grad-text-on-light);
  background-color: var(--paper);
  color: var(--ink);
  color-scheme: light;
}

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

.sec--blue {
  --fg: var(--white);
  --muted: rgba(235, 243, 255, 0.82);
  --rule: rgba(255, 255, 255, 0.22);
  --link: var(--white);
  --accent-text: linear-gradient(100deg, #b9ecff 0%, #ffffff 70%);
  background: var(--grad-band);
}

/* Blue band texture: a soft light in the corner and a fine grid */
.sec--blue::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 30rem at 85% 0%, rgba(41, 197, 244, 0.35), transparent 60%),
    radial-gradient(40rem 30rem at 0% 100%, rgba(10, 20, 80, 0.45), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 3.5rem 3.5rem,
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 3.5rem 3.5rem;
  pointer-events: none;
}

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

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

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

.sec__eyebrow {
  margin-bottom: clamp(1rem, 1.6vw, 1.5rem);
}

/* ---------- 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.35fr) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.25rem);
}

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

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

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

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

.sec-head--center .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);
  --fg: var(--white);
  --muted: var(--muted-on-dark);
  transition:
    background-color 300ms ease,
    box-shadow 300ms ease,
    backdrop-filter 300ms ease;
}

.site-header.is-solid {
  background-color: rgba(0, 10, 30, 0.93);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 -1px 0 var(--rule-on-dark);
}

.site-header.is-open {
  background-color: var(--navy-950);
  backdrop-filter: none;
}

.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;
}

.site-header__logo {
  display: block;
  flex: none;
  height: calc(var(--header-h) - 0.6rem);
  margin-right: auto;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition:
    color var(--dur-ui) ease,
    background-color var(--dur-ui) ease;
}

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

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.2rem;
  width: 0.25rem;
  height: 0.25rem;
  margin-left: -0.125rem;
  border-radius: 50%;
  background: var(--cyan);
}

.nav-item--menu .site-nav__link {
  padding-right: 0.35rem;
}

.nav-caret {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-left: -0.15rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.nav-caret svg {
  width: 1rem;
  height: 1rem;
  transition: rotate 250ms var(--ease-out);
}

.nav-item--menu:hover .nav-caret svg,
.nav-caret[aria-expanded="true"] svg {
  rotate: 180deg;
}

/* Services menu */
.mega {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  width: min(44rem, calc(100vw - 2 * var(--gutter)));
  padding: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  border-radius: var(--radius);
  background: rgba(3, 21, 56, 0.97);
  border: 1px solid var(--rule-on-dark);
  box-shadow: 0 2.5rem 5rem -1.5rem rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 0.5rem);
  transition:
    opacity 200ms ease,
    transform 300ms var(--ease-out),
    visibility 0s linear 300ms;
}

/* Hover bridge between the link and the panel */
.mega::before {
  content: "";
  position: absolute;
  inset: -1rem 0 auto;
  height: 1rem;
}

.nav-item--menu:hover .mega,
.nav-item--menu:focus-within .mega,
.mega.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.mega__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.15rem 0.85rem;
  padding: 0.8rem;
  border-radius: 0.9rem;
  transition: background-color var(--dur-ui) ease;
}

.mega__link:hover,
.mega__link:focus-visible,
.mega__link[aria-current="page"] {
  background-color: rgba(255, 255, 255, 0.05);
}

.mega__link .icon-tile {
  grid-row: span 2;
}

.mega__name {
  font-weight: 600;
  font-size: var(--fs-small);
  line-height: 1.3;
  color: var(--white);
}

.mega__desc {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted-on-dark);
}

.mega__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 0.35rem;
  padding: 0.9rem 0.8rem 0.4rem;
  border-top: 1px solid var(--rule-on-dark);
  font-size: 0.8125rem;
  color: var(--muted-on-dark);
}

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

.site-header__toggle-bar {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition:
    transform 300ms var(--ease-out),
    right 300ms var(--ease-out);
}

.site-header__toggle-bar--top {
  top: 1.05rem;
}

.site-header__toggle-bar--bottom {
  top: 1.55rem;
  right: 1.15rem;
  background: var(--cyan);
}

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

.is-open .site-header__toggle-bar--bottom {
  right: 0.7rem;
  transform: translateY(-0.25rem) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.5rem var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: var(--navy-950);
}

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

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

.mobile-menu__link {
  display: inline-block;
  padding-block: 0.3rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 8.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--white);
}

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

.mobile-menu__services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 1rem;
  margin: 0.4rem 0 0.8rem;
  padding-left: 0.15rem;
}

.mobile-menu__services a {
  display: block;
  padding-block: 0.35rem;
  font-size: var(--fs-small);
  color: var(--muted-on-dark);
}

.mobile-menu__services a[aria-current="page"] {
  color: var(--cyan);
}

.mobile-menu__foot {
  margin-top: auto;
  display: grid;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-on-dark);
}

.mobile-menu__contact {
  display: grid;
  gap: 0.35rem;
  font-size: var(--fs-small);
  color: var(--muted-on-dark);
}

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

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

  .site-header__toggle {
    display: block;
  }
}

/* ================= Icon tiles ================= */

.icon-tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, rgba(41, 197, 244, 0.18), rgba(61, 85, 221, 0.14));
  border: 1px solid rgba(95, 208, 255, 0.26);
  color: #86defc;
  transition:
    rotate 450ms var(--ease-out),
    scale 450ms var(--ease-out),
    box-shadow 300ms ease;
}

.icon-tile svg {
  width: 55%;
  height: 55%;
}

.icon-tile--l {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
}

.sec--light .icon-tile,
.sec--white .icon-tile {
  background: linear-gradient(145deg, #e0f4fd, #e5ebfd);
  border-color: rgba(45, 108, 240, 0.16);
  color: var(--blue-deep);
}

.sec--blue .icon-tile {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

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

.sec,
.site-footer {
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  --card-border: rgba(140, 172, 255, 0.15);
  --card-border-hover: rgba(95, 208, 255, 0.5);
  --card-glow: rgba(41, 197, 244, 0.17);
  --card-shadow-hover: 0 1.75rem 3.5rem -2rem rgba(0, 0, 0, 0.75);
}

.sec--light {
  --card-bg: var(--white);
  --card-border: rgba(4, 17, 43, 0.08);
  --card-border-hover: rgba(45, 108, 240, 0.38);
  --card-glow: rgba(45, 108, 240, 0.1);
  --card-shadow-hover: 0 1.75rem 3.5rem -2rem rgba(4, 17, 43, 0.3);
}

.sec--white {
  --card-bg: var(--paper);
  --card-border: rgba(4, 17, 43, 0.06);
  --card-border-hover: rgba(45, 108, 240, 0.38);
  --card-glow: rgba(45, 108, 240, 0.1);
  --card-shadow-hover: 0 1.75rem 3.5rem -2rem rgba(4, 17, 43, 0.3);
}

.sec--blue {
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.2);
  --card-border-hover: rgba(255, 255, 255, 0.6);
  --card-glow: rgba(255, 255, 255, 0.16);
  --card-shadow-hover: 0 1.75rem 3.5rem -2rem rgba(0, 10, 50, 0.6);
}

.card {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition:
    translate 450ms var(--ease-out),
    border-color 300ms ease,
    box-shadow 400ms ease;
}

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

a.card:hover,
a.card:focus-visible,
.card--hover:hover {
  translate: 0 -0.3rem;
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
}

.card:hover::before {
  opacity: 1;
}

.card:hover .icon-tile {
  rotate: -6deg;
  scale: 1.06;
  box-shadow: 0 0 1.75rem -0.25rem rgba(41, 197, 244, 0.45);
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

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

.card__foot {
  margin-top: auto;
  padding-top: 0.5rem;
}

/* 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 250ms var(--ease-out),
    translate 450ms var(--ease-out),
    border-color 300ms ease,
    box-shadow 400ms ease;
}

/* ================= Grids ================= */

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

.grid--2 {
  --cols: 2;
}

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

/* Three columns on six tracks, so a short last row sits centred instead of leaving a hole */
@media (min-width: 1024px) {
  .grid:not(.grid--2):not(.grid--4) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .grid:not(.grid--2):not(.grid--4) > * {
    grid-column: span 2;
  }

  .grid:not(.grid--2):not(.grid--4) > :nth-child(3n + 1):nth-last-child(2),
  .grid:not(.grid--2):not(.grid--4) > :nth-child(3n + 1):nth-last-child(2) + * {
    grid-column: span 3;
  }

  .grid:not(.grid--2):not(.grid--4) > :nth-child(3n + 1):last-child {
    grid-column: 3 / span 2;
  }
}

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

  .grid:not(.grid--2) > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 639px) {
  .grid,
  .grid--2,
  .grid--4 {
    --cols: 1;
  }
}

/* ================= Chips ================= */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--muted);
  transition:
    border-color var(--dur-ui) ease,
    color var(--dur-ui) ease,
    background-color var(--dur-ui) ease;
}

a.chip:hover,
a.chip:focus-visible {
  border-color: var(--link);
  color: var(--fg);
}

.chip svg {
  width: 1rem;
  height: 1rem;
}

/* ================= Breadcrumb ================= */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--rule);
  color: color-mix(in srgb, var(--muted) 50%, transparent);
}

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

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

.breadcrumb [aria-current="page"] {
  color: var(--fg);
}

/* ================= Page header (inner pages) ================= */

.page-hero .breadcrumb {
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.page-hero::after {
  /* soft light behind the headline */
  content: "";
  position: absolute;
  z-index: -1;
  top: -20%;
  right: -10%;
  width: 60rem;
  height: 40rem;
  background: radial-gradient(closest-side, rgba(45, 108, 240, 0.28), transparent);
  pointer-events: none;
}

.page-hero__grid {
  display: grid;
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
}

.page-hero__grid--split {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
}

.page-hero__title {
  max-width: 17ch;
}

.page-hero__lead {
  max-width: 40rem;
  margin-top: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--muted);
}

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

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

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

/* Glass panel used in page headers (contact details, offerings, project facts) */
.panel {
  position: relative;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--rule-on-dark);
  box-shadow: 0 2rem 4rem -2.5rem rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
}

.panel__title {
  margin-bottom: 1rem;
}

/* ================= Lists ================= */

.check-list {
  display: grid;
  gap: 0.7rem;
}

.check-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.check-list svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  color: var(--link);
}

.num-list {
  display: grid;
}

.num-list li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.5rem;
  padding-block: 0.8rem;
  border-top: 1px solid var(--rule);
}

.num-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.num-list .index {
  padding-top: 0.2rem;
}

/* Facts (label / value pairs) */
.facts {
  display: grid;
  gap: 0;
}

.facts > div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.6fr) minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.85rem;
  border-top: 1px solid var(--rule);
}

.facts > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.facts dt {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.2rem;
}

.facts dd {
  font-size: var(--fs-small);
}

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

.facts a:hover,
.facts a:focus-visible {
  border-color: currentColor;
}

/* ================= Client logos ================= */

.clients {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem clamp(2rem, 5vw, 4.5rem);
}

.clients__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem 2.5rem;
}

.clients__logo {
  width: auto;
  height: var(--logo-h, 2.25rem);
  max-width: 9rem;
  object-fit: contain;
  /* one colour on navy, so the mix of logo colours reads as one calm row */
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition:
    opacity 300ms ease,
    filter 300ms ease;
}

.clients__item:hover .clients__logo {
  opacity: 1;
}

.sec--light .clients__logo,
.sec--white .clients__logo {
  filter: grayscale(1);
  opacity: 0.6;
}

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

  .clients__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    gap: 1.75rem 1.25rem;
  }
}

/* Moving strip (home page). The copies that make the loop only show while it moves; with
   reduced motion the strip is the still row above. */
.clients__list--copy {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .clients--moving .clients__window {
    overflow: hidden;
    /* logos fade in and out at the edges */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  }

  .clients--moving .clients__track {
    display: flex;
    width: max-content;
    animation: clients-loop 42s linear infinite;
  }

  .clients--moving:hover .clients__track {
    animation-play-state: paused;
  }

  .clients--moving .clients__list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0 clamp(2.5rem, 4vw, 3.75rem);
    /* the same gap after the last logo, so the join in the loop doesn't show */
    padding-right: clamp(2.5rem, 4vw, 3.75rem);
  }
}

@keyframes clients-loop {
  to {
    transform: translateX(-50%);
  }
}

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

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

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

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

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
}

.field label .muted {
  font-weight: 400;
}

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

.field select {
  appearance: none;
  padding-right: 2.5rem;
  background: var(--white) 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='%232d6cf0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 1rem center / 12px 8px no-repeat;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(45, 108, 240, 0.15);
}

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

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

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

/* ================= Footer ================= */

.site-footer {
  position: relative;
  background: var(--navy-950);
  color: var(--white);
  --fg: var(--white);
  --muted: var(--muted-on-dark);
  --rule: var(--rule-on-dark);
  --link: #5fd0ff;
  --accent-text: var(--grad-text-on-dark);
}

/* A large, faint phoenix on the right of the closing call to action */
.footer-cta__mark {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: max(-4rem, calc((100vw - var(--container)) / 2 - 2rem));
  width: min(31rem, 46vw);
  height: auto;
  translate: 0 -50%;
  opacity: 0.24;
  mix-blend-mode: screen;
  pointer-events: none;
}

.footer-cta .sec__inner {
  z-index: 1;
}

.footer-cta__title {
  max-width: 13ch;
}

.footer-cta__lead {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--muted);
}

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

@media (max-width: 767px) {
  .footer-cta__mark {
    top: auto;
    bottom: -3rem;
    translate: 0 0;
    width: 70vw;
    opacity: 0.16;
  }
}

.footer-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) clamp(2.5rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 4vw, 3.5rem);
}

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

.footer-brand__tag {
  max-width: 19rem;
  margin-top: 1.25rem;
  font-size: var(--fs-small);
  color: var(--muted);
}

.footer-col__title {
  margin-bottom: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.6rem;
}

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

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--cyan);
}

.footer-bottom {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--container) - 2 * var(--gutter));
  margin: 0 auto;
  padding: 1.35rem 0 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  border-top: 1px solid var(--rule-on-dark);
  font-size: 0.8125rem;
  color: var(--muted-on-dark);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.82);
  transition: color var(--dur-ui) ease;
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--cyan);
}

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

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

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

  .footer-col--contact {
    grid-column: 1 / -1;
  }
}

/* ===== hero.css ===== */
/*
 * Home hero (HomeHero.tsx, HeroWall.tsx, HeroParticles.tsx), in two acts.
 *   Opening   a giant THR·V wordmark slices together with the phoenix rising into the Y,
 *             then zooms out and is gone (about 2.3 s)
 *   Hero      the headline on the left; behind everything a curved wall of work keeps
 *             rolling; in front of it, on the right, lights keep building the
 *             idea → product line, turning in 3D toward the pointer
 *
 *   Layers, back to front: glow, wall, shade (veil + a calm pool behind the lights),
 *   lights, then the text.
 *
 *   --hold      a short pause before the opening starts
 *   --open      when the opening zooms out; 0 once the visitor skips it
 *   --open-end  when the opening has gone and the hero comes in
 *   --px/--py   pointer position across the hero, -1 to 1 (set by HomeHero)
 *   data-direct arriving from another page: no opening, the hero comes straight in
 */

.hero {
  --px: 0;
  --py: 0;
  --hold: 0.15s;
  --open: 2.1s;
  --open-end: calc(var(--hold) + var(--open));
  /* the headline, buttons and the idea → product line follow (base.css, effects.css) */
  --hero-delay: calc(var(--open-end) + 0.35s);
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 100svh;
  background: var(--navy-900);
  color: var(--white);
  --fg: var(--white);
  --muted: var(--muted-on-dark);
  --rule: var(--rule-on-dark);
  --accent-text: var(--grad-text-on-dark);
}

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

.hero[data-direct] {
  --hold: 0s;
  --open: 0s;
}

.hero__glow {
  position: absolute;
  inset: -10%;
  z-index: -5;
  background:
    radial-gradient(34% 46% at 72% 44%, rgba(45, 108, 240, 0.32), transparent 70%),
    radial-gradient(30% 40% at 14% 92%, rgba(41, 197, 244, 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 rolling wall (HeroWall) =================== */

.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;
  z-index: -4;
  overflow: clip;
  perspective: calc(var(--R) * 2.55);
  perspective-origin: 50% 46%;
  pointer-events: none;
}

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

.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 */
.wall__spin {
  transform: translateZ(var(--R)) rotateY(0deg);
}

/* ----- Tiles ----- */

.wt {
  --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;
  display: flex;
  flex-direction: column;
  padding: 0.9em 1em;
  border-radius: clamp(0.6rem, 1vw, 1.1rem);
  background: linear-gradient(160deg, #0b2152 0%, #041639 100%);
  border: 1px solid rgba(140, 172, 255, 0.18);
  backface-visibility: hidden;
  transform: rotateY(calc(var(--c) * 360deg / var(--n))) translateZ(calc(var(--R) * -1));
  /* everything inside is sized in em, so it scales with the tile */
  font-size: calc(var(--tw) / 15);
  line-height: 1.2;
  color: var(--white);
}

/* Dimmed with one overlay per tile */
.wt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 10, 30, 0.42);
}

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

/* Project: its preview fills the tile, with the name in a chip */
.wt--project {
  padding: 0;
}

.wt--project svg,
.wt__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* A thumbnail of the live site, from the top of the page */
.wt__shot {
  object-fit: cover;
  object-position: top;
}

.wt__label {
  position: absolute;
  left: 0.75em;
  bottom: 0.75em;
  padding: 0.35em 0.7em;
  border-radius: 999px;
  background: rgba(0, 10, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-mono);
  font-size: 0.62em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Client: the logo in white */
.wt--client {
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #071c47 0%, #020f2e 100%);
}

.wt__logo {
  width: auto;
  max-width: 62%;
  height: 2.6em;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* Service: icon, name and a few text lines */
.wt--service .icon-tile {
  width: 2.6em;
  height: 2.6em;
  border-radius: 0.8em;
}

.wt__title {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15em;
  letter-spacing: -0.02em;
}

.wt__bars {
  display: grid;
  gap: 0.4em;
  margin-top: 0.7em;
}

.wt__bars i {
  display: block;
  height: 0.38em;
  border-radius: 1em;
  background: rgba(255, 255, 255, 0.14);
}

.wt__bars i:nth-child(1) {
  width: 92%;
}

.wt__bars i:nth-child(2) {
  width: 74%;
}

.wt__bars i:nth-child(3) {
  width: 48%;
}

/* Stack: area label, big name, file type */
.wt__kind {
  font-family: var(--font-mono);
  font-size: 0.6em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

.wt__name {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.2em;
  line-height: 1;
  letter-spacing: -0.04em;
}

.wt__ext {
  align-self: flex-end;
  margin-top: 0.3em;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25em;
  background: var(--grad-text-on-dark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.1em;
}

/* Code: an editor with coloured lines */
.wt--code,
.wt--terminal {
  background: #020c24;
}

.wt__dots {
  display: flex;
  gap: 0.35em;
  margin-bottom: 0.8em;
}

.wt__dots i {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.wt__dots i:first-child {
  background: #ff5f57;
}

.wt__dots i:nth-child(2) {
  background: #febc2e;
}

.wt__dots i:nth-child(3) {
  background: #28c840;
}

.wt__code {
  display: grid;
  gap: 0.48em;
}

.wt__line {
  display: flex;
  align-items: center;
  gap: 0.35em;
  padding-left: calc(var(--indent, 0) * 1em);
}

.wt__line b {
  width: 1.2em;
  margin-left: calc(var(--indent, 0) * -1em);
  margin-right: calc(var(--indent, 0) * 1em);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.55em;
  color: rgba(255, 255, 255, 0.3);
}

.wt__line i {
  display: block;
  height: 0.42em;
  border-radius: 1em;
  background: rgba(255, 255, 255, 0.4);
}

.wt__line i[data-c="k"] {
  background: #b39dff;
}

.wt__line i[data-c="v"] {
  background: #5fd8ff;
}

.wt__line i[data-c="f"] {
  background: #7f93ff;
}

.wt__line i[data-c="s"] {
  background: #3ddc97;
}

.wt__line i[data-c="p"] {
  background: rgba(255, 255, 255, 0.35);
}

/* Terminal: a deploy that passes */
.wt__term {
  display: grid;
  gap: 0.3em;
  font-family: var(--font-mono);
  font-size: 0.78em;
  color: #c9d6f2;
}

.wt__term em {
  font-style: normal;
  color: var(--cyan);
}

.wt__term strong {
  font-weight: 400;
  color: #3ddc97;
}

/* Chart */
.wt--chart {
  padding: 0;
}

.wt__chart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* =================== Shade and lights =================== */

/* Over the wall: a veil on the headline side and a calm pool behind the lights, with soft top
   and bottom edges */
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(28% 46% at 75% 45%, rgba(0, 14, 40, 0.62), rgba(0, 14, 40, 0.42) 55%, rgba(0, 14, 40, 0) 100%),
    linear-gradient(90deg, rgba(0, 14, 40, 0.92) 0%, rgba(0, 14, 40, 0.8) 40%, rgba(0, 14, 40, 0.5) 55%, rgba(0, 14, 40, 0) 70%),
    linear-gradient(to bottom, var(--navy-900) 0%, rgba(0, 14, 40, 0) 18%, rgba(0, 14, 40, 0) 78%, var(--navy-900) 100%);
}

/* The lights (HeroParticles draws them), above the shade so they stay bright */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (min-width: 1024px) {
  /* Beside the headline: faded out on the text side (while they scatter, and the drifting dust) */
  .hero-particles {
    -webkit-mask-image: linear-gradient(90deg, transparent 36%, #000 56%);
    mask-image: linear-gradient(90deg, transparent 36%, #000 56%);
  }

  /* The wall slightly out of focus behind the lights, so their shapes read clearly */
  .wall {
    filter: blur(2px);
  }
}

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

.hero__inner {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: start;
  min-height: 100svh;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--header-h) + clamp(1rem, 4vh, 3.5rem)) var(--gutter) 0;
}

.hero__copy {
  align-self: center;
  max-width: 46rem;
}

/* Inline, so the // stays with the words when the label wraps on phones */
.hero__eyebrow {
  display: block;
  color: rgba(214, 226, 255, 0.8);
}

.hero__eyebrow::before {
  margin-right: 0.65em;
}

/* Smaller on short screens (laptops, phones on their side), so the whole hero, down to the
   idea → product line, fits the first screen */
.hero__title {
  max-width: 12.5ch;
  margin-top: clamp(1rem, 2vh, 1.5rem);
  font-size: min(var(--fs-hero), 10svh);
}

.hero__lead {
  max-width: 39rem;
  margin: clamp(1.25rem, 2.5vh, 1.75rem) 0 0;
  color: rgba(225, 233, 255, 0.82);
}

/* Beside the lights: wide enough for three lines, narrow enough to stay clear of them */
@media (min-width: 1024px) {
  .hero__lead {
    max-width: min(44rem, 54vw);
  }
}

.hero__actions {
  margin-top: clamp(1.5rem, 3.5vh, 2.25rem);
}

/* Narrower screens only: the space under the buttons where the lights build (HeroParticles) */
.hero__stage {
  display: none;
}

/* =================== The gap between idea and product, closing =================== */

.gap-track {
  position: relative;
  justify-self: stretch;
  height: calc(4.75rem + clamp(1.5rem, 3.5vh, 2.5rem));
  margin-top: clamp(1.25rem, 4.5vh, 5rem);
  border-top: 1px solid var(--rule-on-dark);
}

.gap-track::before,
.gap-track::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.6rem;
  top: calc(1.6rem + 0.5rem);
  height: 1px;
  background: rgba(140, 172, 255, 0.24);
}

.gap-track::after {
  height: 2px;
  margin-top: -0.5px;
  background: var(--grad-brand);
  box-shadow: 0 0 0.9rem rgba(41, 197, 244, 0.6);
  transform-origin: left;
  transform: scaleX(1);
}

/* Stops sit at even intervals along the line */
.gap-track__step {
  position: absolute;
  top: 1.6rem;
  left: calc(var(--t, 0) * 100%);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.9rem;
  translate: -50% 0;
}

.gap-track__step--start {
  justify-items: start;
  text-align: left;
  translate: 0 0;
}

.gap-track__step--end {
  justify-items: end;
  text-align: right;
  translate: -100% 0;
}

.gap-track__dot {
  position: relative;
  z-index: 1;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: var(--navy-900);
  transition:
    background-color 400ms ease,
    box-shadow 400ms ease,
    scale 400ms var(--ease-out);
}

.gap-track__step--end .gap-track__dot {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: -0.1rem;
  background: var(--cyan);
  box-shadow:
    0 0 0 0.4rem rgba(41, 197, 244, 0.16),
    0 0 1.5rem rgba(41, 197, 244, 0.9);
}

.gap-track__label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--muted-on-dark);
  white-space: nowrap;
  transition: color 400ms ease;
}

.gap-track__step--start .gap-track__label,
.gap-track__step--end .gap-track__label {
  color: var(--white);
}

/* The stop the lights are drawing right now (HomeHero sets is-current) */
.gap-track__step.is-current .gap-track__dot {
  background: var(--cyan);
  scale: 1.2;
  box-shadow:
    0 0 0 0.35rem rgba(41, 197, 244, 0.18),
    0 0 1.2rem rgba(41, 197, 244, 0.9);
}

.gap-track__step.is-current .gap-track__label {
  color: var(--white);
}

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

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

/* Giant wordmark: THR, the phoenix as the Y, V */
.hero-word {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: min(21vw, 38svh);
  line-height: 0.8;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

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

.hero-word__ghost {
  visibility: hidden;
}

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

.hero-word__mark {
  position: relative;
  width: 0.96em;
  height: auto;
  margin: 0 -0.08em 0 -0.04em;
  translate: 0 0.04em;
  filter: drop-shadow(0 0 0.18em rgba(41, 197, 244, 0.55));
}

.hero-sub {
  margin: 0.55em 0 0;
  padding-left: 0.85em;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: min(2.6vw, 4.8svh);
  letter-spacing: 0.85em;
  text-transform: uppercase;
  color: rgba(214, 226, 255, 0.85);
}

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

/* The lights build in their own space under the buttons, so the text stays clear */
@media (max-width: 1023px) {
  .hero__inner {
    grid-template-rows: 1fr auto auto;
  }

  .hero__stage {
    position: relative;
    display: block;
    justify-self: stretch;
    height: clamp(15rem, min(70vw, 60svh), 24rem);
    margin-top: clamp(0.5rem, 2vh, 1.5rem);
  }

  /* A calm pool over the wall, behind the lights (above the shade, below the lights) */
  .hero__stage::before {
    content: "";
    position: absolute;
    inset: -10% -6%;
    z-index: -3;
    background: radial-gradient(closest-side, rgba(0, 14, 40, 0.9), rgba(0, 14, 40, 0.66) 62%, rgba(0, 14, 40, 0));
    pointer-events: none;
  }

  .gap-track {
    margin-top: clamp(0.5rem, 2vh, 1.5rem);
  }

  .hero__glow {
    background:
      radial-gradient(70% 30% at 50% 68%, rgba(45, 108, 240, 0.3), transparent 70%),
      radial-gradient(50% 30% at 10% 20%, rgba(41, 197, 244, 0.1), transparent 70%);
  }

  /* The wall stays a soft texture behind the text */
  .hero__shade {
    background: linear-gradient(
      to bottom,
      var(--navy-900) 0%,
      rgba(0, 14, 40, 0.86) 12%,
      rgba(0, 14, 40, 0.78) 52%,
      rgba(0, 14, 40, 0.5) 70%,
      rgba(0, 14, 40, 0.62) 90%,
      var(--navy-900) 100%
    );
  }

  .wall {
    --tw: 30vw;
    --tg: 2vw;
    --n: 12;
    --rows-mid: 1.5;
  }

  .wt[data-row="3"] {
    display: flex;
  }

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

  /* No blur here (it costs too much on phones), so the tiles are dimmer instead */
  .wt::after {
    background: rgba(0, 10, 30, 0.56);
  }

  /* The hero can run taller than the screen here; the opening keeps to the first screen */
  .hero-open {
    bottom: auto;
    height: 100svh;
  }

  .hero-word {
    font-size: 25vw;
  }

  .hero-sub {
    font-size: 3.4vw;
  }
}

@media (max-width: 767px) {
  .gap-track__step:not(.gap-track__step--start):not(.gap-track__step--end) .gap-track__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

/* Phones: 3 rows of 8 tiles (24 instead of 40), so cheaper phones keep up */
@media (max-width: 599px) {
  .wall {
    --tw: 40vw;
    --n: 8;
    --rows-mid: 1;
  }

  .wt[data-row="3"],
  .wt[data-i="8"],
  .wt[data-i="9"],
  .wt[data-i="10"],
  .wt[data-i="11"] {
    display: none;
  }

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

  .hero-word {
    font-size: 26vw;
  }

  .hero-sub {
    font-size: 4vw;
  }
}

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

/* Reduced motion: no opening; the wall stands still and the lights hold the phoenix */
@media (prefers-reduced-motion: reduce) {
  .hero-open {
    display: none;
  }
}

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

  .hero-word__s {
    animation: hero-slice 1.1s cubic-bezier(0.7, 0, 0.2, 1) backwards;
    animation-delay: calc(var(--hold) + 0.1s + var(--l) * 0.11s + var(--s) * 0.06s);
  }

  .hero-word__mark {
    animation: hero-mark-in 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--hold) + 0.55s) backwards;
  }

  .hero-sub {
    animation: hero-sub-in 1.2s var(--ease-out) calc(var(--hold) + 0.95s) backwards;
  }

  /* ----- The wall rushes in from close up as the opening goes, then keeps rolling ----- */
  .wall {
    animation: wall-in 1.7s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--open-end) + 0.1s) backwards;
  }

  .wall__spin {
    animation: wall-turn 140s linear infinite;
  }

  /* Scrolled out of view: stop rolling (HomeHero sets data-paused) */
  .hero[data-paused] .wall__spin {
    animation-play-state: paused;
  }

  /* ----- The lights fade in just after, in front of it (effects.css adds the scroll-away for
     both) ----- */
  .hero-particles {
    animation: hero-fade 1.4s ease calc(var(--open-end) + 0.5s) backwards;
  }

  /* ----- The idea → product line fades in, then fills, after the headline ----- */
  .gap-track {
    animation: hero-fade 0.8s ease calc(var(--hero-delay) + 0.3s) backwards;
  }

  .gap-track::after {
    animation: track-fill 2.2s var(--ease-in-out) calc(var(--hero-delay) + 0.6s) both;
  }

  .gap-track__dot {
    animation: dot-on 400ms ease calc(var(--hero-delay) + 0.6s + var(--t, 0) * 2000ms) backwards;
  }
}

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

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

@keyframes hero-mark-in {
  from {
    opacity: 0;
    scale: 0.3;
    translate: 0 0.35em;
    rotate: -12deg;
  }
}

@keyframes hero-sub-in {
  from {
    opacity: 0;
    letter-spacing: 1.6em;
  }
}

@keyframes hero-fade {
  from {
    opacity: 0;
  }
}

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

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

@keyframes track-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes dot-on {
  from {
    border-color: rgba(140, 172, 255, 0.55);
    background: var(--navy-900);
    box-shadow: none;
  }
}

/* ===== home.css ===== */
/* ================= Expertise ================= */

.expertise-card .card__top .index {
  padding-top: 0.25rem;
}

.expertise-card .title {
  max-width: 16em;
}

/* ================= Process band (blue) ================= */

.process {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.process__statement {
  max-width: 15ch;
}

.process__body {
  max-width: 34rem;
  margin-top: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--muted);
}

.process__steps {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.process-step .index {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 960px) {
  .process {
    grid-template-columns: 1fr;
  }
}

/* Terminal card */
.term {
  position: relative;
  border-radius: var(--radius);
  background: rgba(0, 10, 30, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 2.5rem 5rem -2rem rgba(0, 8, 40, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
  line-height: 1.75;
  color: #c9d6f2;
}

.term__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.term__bar i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.term__bar i:first-child {
  background: #ff5f57;
}

.term__bar i:nth-child(2) {
  background: #febc2e;
}

.term__bar i:nth-child(3) {
  background: #28c840;
}

.term__title {
  margin-left: auto;
  margin-right: auto;
  padding-right: 2.5rem;
  font-size: 0.75rem;
  color: rgba(201, 214, 242, 0.6);
}

.term__body {
  padding: 1.25rem 1.35rem 1.5rem;
  min-height: 15.5rem;
}

.term__line {
  display: flex;
  gap: 0.75rem;
  white-space: pre-wrap;
}

.term__prompt {
  color: var(--cyan);
}

.term__cmd {
  color: var(--white);
}

.term__ok {
  color: #3ddc97;
}

.term__key {
  flex: none;
  width: 8.5ch;
  color: #8fb3ff;
}

.term__note {
  min-width: 0;
  color: rgba(201, 214, 242, 0.72);
}

@media (max-width: 520px) {
  .term__path {
    display: none;
  }

  .term__body {
    padding: 1rem 1.1rem 1.25rem;
  }

  .term__key {
    width: 8ch;
  }
}

.term__done {
  color: var(--white);
  font-weight: 600;
}

.term__caret {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  vertical-align: text-bottom;
  background: var(--cyan);
  animation: caret-blink 1s steps(1) infinite;
}

.term [data-hidden] {
  visibility: hidden;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

/* ================= Services (cards) ================= */

.service-card .title-l {
  margin-top: 0.4rem;
}

.service-card .chips {
  margin-top: 0.35rem;
}

.service-card .chip {
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
}

.more-services {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--rule);
}

.more-services__label {
  flex: none;
}

/* ================= Work cards ================= */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) var(--col-gap);
}

.work-grid > :first-child {
  grid-column: 1 / -1;
}

/* With an even number of projects the last one would sit alone: it spans the row too */
.work-grid > :nth-child(even):last-child {
  grid-column: 1 / -1;
}

.work-grid > :nth-child(even):last-child .project-card__media {
  aspect-ratio: 21 / 9;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.project-card__media {
  position: relative;
  overflow: clip;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background: var(--navy-850);
}

.work-grid > :first-child .project-card__media {
  aspect-ratio: 21 / 9;
}

.project-card__media svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: scale 800ms var(--ease-out);
}

.project-card:hover .project-card__media svg,
.project-card:focus-visible .project-card__media svg {
  scale: 1.035;
}

.project-card__view {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy-900);
  font-weight: 600;
  font-size: 0.875rem;
  opacity: 0;
  translate: 0 0.6rem;
  transition:
    opacity 300ms ease,
    translate 400ms var(--ease-out);
}

.project-card__view svg {
  width: 1rem;
  height: 1rem;
}

.project-card:hover .project-card__view,
.project-card:focus-visible .project-card__view {
  opacity: 1;
  translate: 0 0;
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-top: 1.25rem;
}

.project-card__title {
  transition: color var(--dur-ui) ease;
}

.project-card:hover .project-card__title {
  color: var(--link);
}

.project-card__summary {
  max-width: 40rem;
  margin-top: 0.5rem;
  color: var(--muted);
}

@media (max-width: 767px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-grid > :first-child .project-card__media,
  .work-grid > :nth-child(even):last-child .project-card__media {
    aspect-ratio: 16 / 10;
  }
}

/* ----- Screenshots of a live site (ProjectShots) -----
 * A desktop browser window with the phone version overlapping it, sized in container units from
 * the box it sits in, so the same picture fits 16:10 cards, wide 21:9 cards and the 4:3 phone
 * header. The group is centred, allowing for the phone sticking out on the right.
 */

.shots {
  position: absolute;
  inset: 0;
  container-type: size;
  overflow: clip;
  background:
    radial-gradient(70% 90% at 82% 8%, rgba(41, 197, 244, 0.32), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(62, 92, 224, 0.28), transparent 62%),
    linear-gradient(150deg, #06204d 0%, var(--navy-900) 75%);
}

/* A fine grid, like the placeholder art */
.shots::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.shots__stage {
  position: absolute;
  left: 50%;
  top: 11cqh;
  width: min(70cqw, 122cqh);
  translate: -57% 0;
  transition: translate 700ms var(--ease-out);
}

.shots__browser {
  overflow: hidden;
  border-radius: max(6px, 0.9cqw);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--white);
  box-shadow:
    0 2.5cqw 5cqw -1.5cqw rgba(0, 6, 24, 0.75),
    0 0 0 1px rgba(0, 0, 0, 0.2);
}

.shots__bar {
  display: flex;
  align-items: center;
  gap: 0.55cqw;
  height: max(14px, 2.6cqw);
  padding: 0 1.1cqw;
  background: #e9edf5;
  border-bottom: 1px solid #d7dde8;
}

.shots__bar i {
  width: max(5px, 0.75cqw);
  height: max(5px, 0.75cqw);
  border-radius: 50%;
  background: #c3cad8;
}

.shots__bar i:nth-child(1) {
  background: #ff6159;
}

.shots__bar i:nth-child(2) {
  background: #ffbd2e;
}

.shots__bar i:nth-child(3) {
  background: #28c941;
}

.shots__url {
  flex: 1;
  max-width: 50%;
  margin: 0 auto;
  padding: 0.15cqw 1cqw;
  overflow: hidden;
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-mono);
  font-size: max(8px, 1.1cqw);
  line-height: 1.6;
  color: #5b6576;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.shots__desktop {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.shots__phone {
  position: absolute;
  right: -14%;
  bottom: -9%;
  height: 92%;
  aspect-ratio: 390 / 844;
  padding: 1.15%;
  border-radius: 13% / 6%;
  background: #0b1222;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 2.5cqw 5cqw -1cqw rgba(0, 6, 24, 0.8);
  transition: translate 700ms var(--ease-out);
}

.shots__mobile {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 11% / 5%;
}

.project-card:hover .shots__stage,
.project-card:focus-visible .shots__stage {
  translate: -57% -2.5cqh;
}

.project-card:hover .shots__phone,
.project-card:focus-visible .shots__phone {
  translate: -3% -3%;
}

/* ================= Stack ================= */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.stack-tile {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.5rem;
  min-height: clamp(9rem, 14vw, 12rem);
  padding: clamp(1.1rem, 2vw, 1.6rem);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background-color 300ms ease;
}

.stack-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(18rem circle at var(--mx, 50%) var(--my, 50%), rgba(41, 197, 244, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 300ms ease;
}

.stack-tile:hover::before {
  opacity: 1;
}

.stack-tile__kind {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--muted);
}

.stack-tile__name {
  align-self: end;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stack-tile__ext {
  justify-self: end;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.35rem);
  line-height: 1;
  background: var(--accent-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.1em;
  transition: translate 400ms var(--ease-out);
}

.stack-tile:hover .stack-tile__ext {
  translate: -0.35rem 0;
}

@media (max-width: 599px) {
  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stack-tile:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .stack-tile {
    min-height: 7.5rem;
    gap: 1rem;
  }
}

/* ===== pages.css ===== */
/* ================= Services index ================= */

.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.jump-links .chip {
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
}

.service-rows {
  display: grid;
}

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

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

.service-row__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.service-row__title {
  max-width: 18ch;
}

.service-row__summary {
  max-width: 34rem;
  margin-top: 1rem;
  color: var(--muted);
}

.service-row__actions {
  margin-top: 1.75rem;
}

.service-row__offers {
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.service-row__offers .eyebrow {
  margin-bottom: 1rem;
}

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

/* ================= Service page ================= */

.offer-list {
  display: grid;
}

.offer-list li {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 0.75rem clamp(1.5rem, 4vw, 3rem);
  align-items: baseline;
  padding-block: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--rule);
}

.offer-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.offer-list .index {
  font-size: 0.8125rem;
}

.offer-list p {
  color: var(--muted);
}

@media (max-width: 767px) {
  .offer-list li {
    grid-template-columns: 2.75rem minmax(0, 1fr);
  }

  .offer-list p {
    grid-column: 2;
  }
}

.statement {
  max-width: 58rem;
}

.statement__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 1.1rem + 2vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.statement .button-row {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: var(--col-gap);
}

.card.mini-card {
  flex-direction: row;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
}

.mini-card .title {
  font-size: 1.02rem;
}

.mini-card__arrow {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: auto;
  color: var(--link);
  transition: translate var(--dur-ui) var(--ease-out);
}

.mini-card:hover .mini-card__arrow,
.mini-card:focus-visible .mini-card__arrow {
  translate: 0.25rem 0;
}

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

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

.story__text {
  display: grid;
  gap: 1.25rem;
  color: var(--muted);
}

.story__text .lead {
  color: var(--fg);
}

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

.facts-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem var(--col-gap);
  margin-top: clamp(3rem, 6vw, 5rem);
}

/* Value above its label (the label stays first in the markup) */
.fact {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.fact__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.fact__label {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: var(--fs-small);
}

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

.values {
  display: grid;
  gap: 0.25rem;
  margin-block: clamp(2rem, 4vw, 3rem);
}

.values__word {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 2vw, 1.75rem);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 1.2rem + 6vw, 7.5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.25px rgba(150, 190, 255, 0.55);
  transition: color 500ms ease;
}

.values__word:hover {
  color: var(--white);
  -webkit-text-stroke-color: transparent;
}

.values__word .index {
  -webkit-text-stroke: 0;
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
}

.values__note {
  max-width: 40rem;
  color: var(--muted);
}

.leaders {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2.5rem clamp(2.5rem, 6vw, 6rem);
  align-items: end;
}

.leaders__lead {
  max-width: 24rem;
  margin-top: 1.25rem;
  color: var(--muted);
}

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

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

.director__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    radial-gradient(80% 60% at 50% 30%, rgba(255, 255, 255, 0.9), transparent 70%),
    linear-gradient(180deg, #dce7f6 0%, #c9d8ef 100%);
}

.director__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: scale 800ms var(--ease-out);
}

.director:hover .director__photo img {
  scale: 1.03;
}

.director__name {
  margin-top: 1.1rem;
}

.director__role {
  margin-top: 0.3rem;
}


.careers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem clamp(2.5rem, 6vw, 6rem);
  align-items: start;
  scroll-margin-top: var(--header-h);
}

.careers__intro {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--muted);
}

.careers .button-row {
  margin-top: 1.75rem;
}

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

/* ================= Work ================= */

.project-hero__media {
  position: relative;
  overflow: clip;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule-on-dark);
  background: var(--navy-850);
}

.project-hero__media svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 767px) {
  .project-hero__media {
    aspect-ratio: 4 / 3;
  }
}

.next-project {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.next-project__link {
  display: grid;
  gap: 0.4rem;
}

.next-project__link .display {
  transition: color var(--dur-ui) ease;
}

.next-project__link:hover .display {
  color: var(--link);
}

.next-project__arrow {
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  vertical-align: -0.05em;
  transition: translate var(--dur-ui) var(--ease-out);
}

.next-project__link:hover .next-project__arrow {
  translate: 0.3rem 0;
}

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

.contact-list {
  display: grid;
  gap: 0.25rem;
}

.contact-list a,
.contact-list p {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.75rem;
  margin-inline: -0.75rem;
  border-radius: 0.85rem;
  transition: background-color var(--dur-ui) ease;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  background-color: rgba(255, 255, 255, 0.05);
}

.contact-list .icon-tile {
  width: 2.5rem;
  height: 2.5rem;
}

.contact-list small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list strong {
  font-weight: 600;
  font-size: var(--fs-small);
  overflow-wrap: anywhere;
}

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

.enquiry__intro {
  margin-top: 1.25rem;
  color: var(--muted);
}

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

.enquiry__steps .eyebrow {
  margin-bottom: 1rem;
}

.enquiry__form {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: 0 2rem 4rem -3rem rgba(4, 17, 43, 0.35);
}

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

/* ================= 404 ================= */

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

/* ===== 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: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

@keyframes progress-grow {
  to {
    transform: scaleX(1);
  }
}

/* ================= Headline word reveal ================= */

.split-reveal .word {
  display: inline-block;
  overflow: clip;
  overflow-clip-margin: 0.12em;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.split-reveal .word__in {
  display: inline-block;
}

@keyframes word-rise {
  from {
    transform: translateY(125%);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

/* ================= Word band ================= */

.word-band {
  overflow: clip;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  background: var(--navy-950);
  border-block: 1px solid var(--rule-on-dark);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 1.4rem + 5.4vw, 7.25rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  white-space: nowrap;
  user-select: none;
  color: var(--white);
}

.word-band__row {
  display: flex;
  width: max-content;
}

.word-band__row--outline {
  margin-left: -30vw;
  color: transparent;
  -webkit-text-stroke: 1.25px rgba(150, 190, 255, 0.5);
}

.word-band__word {
  display: inline-flex;
  align-items: center;
}

.word-band__dot {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin: 0 0.45em;
  border-radius: 50%;
  background: var(--grad-brand);
}

.word-band__row--outline .word-band__dot {
  background: transparent;
  border: 2px solid var(--cyan);
}

@keyframes band-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-28%);
  }
}

@keyframes band-right {
  from {
    transform: translateX(-28%);
  }
  to {
    transform: translateX(0);
  }
}

/* ================= Media reveal ================= */

@keyframes media-rise {
  from {
    clip-path: inset(14% 0 0 0 round var(--radius));
    scale: 0.96;
  }
  to {
    clip-path: inset(0 0 0 0 round var(--radius));
    scale: 1;
  }
}

@keyframes drift-up {
  from {
    translate: 0 3rem;
  }
  to {
    translate: 0 -3rem;
  }
}

@keyframes hero-away {
  to {
    opacity: 0.25;
    translate: 0 -10vh;
    scale: 0.94;
  }
}

/* ================= Wiring: only with motion allowed ================= */

@media (prefers-reduced-motion: no-preference) {
  /* Page-header headlines: words rise in on load */
  .is-hero .split-reveal .word__in,
  .hero .split-reveal .word__in {
    animation: word-rise 1s var(--ease-out) both;
    animation-delay: calc(var(--hero-delay, 0ms) + 100ms + var(--w, 0) * 65ms);
  }

  @supports (animation-timeline: scroll()) {
    .scroll-progress {
      animation: progress-grow linear both;
      animation-timeline: scroll(root block);
    }
  }

  /* Elsewhere, headline words rise the first time the heading scrolls into view: see
     "First-time entrances" in motion.css */

  @supports (animation-timeline: view()) {
    /* 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;
    }

    /* The project page's header image opens up as it scrolls (the cards' images open once, as
       they enter: motion.css) */
    .project-hero__media {
      animation: media-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }

    /* The wall and the lights sink back as the page scrolls on (timeline: the whole hero), after
       their entrances (hero.css). For the wall this runs on the outer .wall: fading the inner 3D
       elements would flatten the ring. */
    .hero {
      view-timeline: --hero block;
    }

    .wall {
      animation:
        wall-in 1.7s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--open-end) + 0.1s) backwards,
        hero-away linear both;
      animation-timeline: auto, --hero;
      animation-range: normal, exit 0% exit 100%;
    }

    .hero-particles {
      animation:
        hero-fade 1.4s ease calc(var(--open-end) + 0.5s) backwards,
        hero-away linear both;
      animation-timeline: auto, --hero;
      animation-range: normal, exit 0% exit 100%;
    }

    /* Decorative glows drift against the scroll */
    .drift {
      animation: drift-up linear both;
      animation-timeline: view();
    }
  }
}

/* ================= Live cards (home "Our expertise") =================
 * Entrance, once, when a card scrolls into view (InViewObserver adds .is-in): the card rises and
 * tilts up, a light runs along its top edge, the icon draws itself and the number slides in.
 * Ongoing: a soft glow passes from icon to icon every few seconds. Hover: a gradient traces the
 * border. --i staggers the entrance by column, --n orders the glow across the grid.
 */

@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.live-grid {
  --stagger: 120ms;
  --live-glow-1: rgba(41, 197, 244, 0.18);
  --live-glow-2: rgba(41, 197, 244, 0.5);
}

.sec--light .live-grid,
.sec--white .live-grid {
  --live-glow-1: rgba(45, 108, 240, 0.14);
  --live-glow-2: rgba(45, 108, 240, 0.38);
}

/* One column on phones: each card enters on its own, without a delay */
@media (max-width: 639px) {
  .live-grid {
    --stagger: 0ms;
  }
}

.card__beam {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 55%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 40%, #3e5ce0 70%, transparent);
  opacity: 0;
  pointer-events: none;
}

/* Gradient that traces the border on hover */
.card--live::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0deg 150deg,
    rgba(41, 197, 244, 0.95) 255deg,
    #3e5ce0 325deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}

.card--live:hover,
.card--live:focus-within {
  border-color: var(--card-border);
}

.card--live:hover::after {
  opacity: 1;
}

/* The glow ring sits on its own layer, so the hover glow on the tile still works */
.icon-draw {
  position: relative;
}

.icon-draw::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  /* the glow is drawn once; the pulses only change its opacity, which needs no repaint */
  box-shadow:
    0 0 0 0.42rem var(--live-glow-1),
    0 0 1.6rem var(--live-glow-2);
  opacity: 0;
  pointer-events: none;
}

@keyframes live-card-in {
  from {
    opacity: 0;
    transform: perspective(70rem) translate3d(0, 3rem, 0) rotateX(18deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes live-beam {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  20%,
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(190%);
  }
}

@keyframes live-draw {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes live-index {
  from {
    opacity: 0;
    translate: 0.75rem 0;
    letter-spacing: 0.45em;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes live-tile-glow {
  0%,
  100% {
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
}

/* Most of the cycle is rest, so the glow reads as a pulse passing through the grid */
@keyframes live-tile-ping {
  0%,
  9%,
  100% {
    opacity: 0;
  }
  4% {
    opacity: 0.9;
  }
}

@keyframes border-spin {
  to {
    --border-angle: 360deg;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .card--live:hover::after {
    animation: border-spin 2.6s linear infinite;
  }

  /* Start state, only once the observer is running (so nothing hides without JavaScript) */
  .js-inview [data-inview]:not(.is-in):not(.is-shown) {
    opacity: 0;
  }

  [data-inview].is-in {
    transform-origin: 50% 100%;
    animation: live-card-in 950ms var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * var(--stagger, 120ms));
  }

  .is-in .card__beam {
    animation: live-beam 1.5s var(--ease-in-out) both;
    animation-delay: calc(var(--i, 0) * var(--stagger, 120ms) + 350ms);
  }

  .is-in .icon-draw svg :is(path, circle, rect) {
    stroke-dasharray: 100;
    animation: live-draw 1.4s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * var(--stagger, 120ms) + 300ms);
  }

  .is-in .card--live .index {
    animation: live-index 800ms var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * var(--stagger, 120ms) + 450ms);
  }

  .is-in .icon-draw::after {
    animation:
      live-tile-glow 1.6s ease calc(var(--i, 0) * var(--stagger, 120ms) + 900ms) both,
      live-tile-ping 9s ease-in-out calc(4s + var(--n, 0) * 0.6s) infinite;
  }
}

/* ===== motion.css ===== */
/*
 * The motion pass: life on every page without changing any layout. Three layers:
 *   always gently alive   drifting light behind sections, a shine through accent words, the
 *                         process steps lighting up in turn, the stack lighting up like a
 *                         live system, cards taking turns being featured,
 *                         embers rising around the closing phoenix
 *   responds to you       dark bands glow where the pointer is, buttons lean toward it with a
 *                         light sweep, cards trace a light around their border and redraw icons
 *   on scroll             section labels decode (MotionEffects.tsx), project screenshots float
 *                         at two depths
 * Ambient pieces only run while on screen (MotionEffects sets data-on). Everything that moves
 * is switched off for reduced motion; the soft light itself stays, still.
 */

/* ================= Drifting light behind sections (Section.tsx, FooterCta.tsx) ================= */

.ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: clip;
  pointer-events: none;
}

.ambient i {
  position: absolute;
  display: block;
  width: var(--size, 44rem);
  height: var(--size, 44rem);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  will-change: transform;
}

.ambient i:nth-child(1) {
  --size: 46rem;
  --glow: rgba(41, 197, 244, 0.15);
  left: -14rem;
  top: -16rem;
}

.ambient i:nth-child(2) {
  --size: 54rem;
  --glow: rgba(45, 108, 240, 0.2);
  right: -20rem;
  top: 16%;
}

.ambient i:nth-child(3) {
  --size: 38rem;
  --glow: rgba(124, 92, 255, 0.12);
  left: 30%;
  bottom: -22rem;
}

/* Light bands: much fainter, just enough to feel the air move */
.sec--light .ambient i:nth-child(1),
.sec--white .ambient i:nth-child(1) {
  --glow: rgba(41, 197, 244, 0.11);
}

.sec--light .ambient i:nth-child(2),
.sec--white .ambient i:nth-child(2) {
  --glow: rgba(45, 108, 240, 0.08);
}

.sec--light .ambient i:nth-child(3),
.sec--white .ambient i:nth-child(3) {
  --glow: rgba(124, 92, 255, 0.07);
}

/* Blue band: white and cyan light, and a darker pool for depth */
.sec--blue .ambient i:nth-child(1) {
  --glow: rgba(255, 255, 255, 0.12);
}

.sec--blue .ambient i:nth-child(2) {
  --glow: rgba(41, 197, 244, 0.22);
}

.sec--blue .ambient i:nth-child(3) {
  --glow: rgba(8, 18, 80, 0.32);
}

@media (max-width: 767px) {
  .ambient i {
    --size: 30rem !important;
  }
}

/* ----- The glow that follows the pointer over dark bands (PointerEffects sets --sx/--sy) ----- */

.ambient__spot {
  position: absolute;
  left: 0;
  top: 0;
  width: 38rem;
  height: 38rem;
  margin: -19rem 0 0 -19rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(41, 197, 244, 0.14), rgba(45, 108, 240, 0.06) 55%, transparent 76%);
  transform: translate3d(var(--sx, -100vw), var(--sy, -100vh), 0);
  opacity: 0;
  transition: opacity 700ms ease;
  will-change: transform;
}

.sec--blue .ambient__spot {
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.15), rgba(155, 231, 255, 0.06) 55%, transparent 76%);
}

[data-spot-on] > .ambient > .ambient__spot {
  opacity: 1;
}

@media (hover: none) {
  .ambient__spot {
    display: none;
  }
}

/* ================= A shine through accent words ================= */

/* The shine's position, animated on the accent and inherited by its words */
@property --shine {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 100%;
}

.accent,
.accent .word__in {
  --shine-color: rgba(255, 255, 255, 0.85);
  background-image: linear-gradient(105deg, transparent 40%, var(--shine-color) 50%, transparent 60%), var(--accent-text);
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: var(--shine) 0, 0 0;
}

.sec--light .accent,
.sec--light .accent .word__in,
.sec--white .accent,
.sec--white .accent .word__in {
  --shine-color: rgba(170, 236, 255, 0.95);
}

/* ================= Buttons: lean toward the pointer, with a light sweep ================= */

.button {
  translate: var(--bx, 0px) var(--by, 0px);
  transition:
    translate 450ms var(--ease-out),
    box-shadow 300ms var(--ease-out),
    filter var(--dur-ui) ease,
    background-color var(--dur-ui) ease,
    color var(--dur-ui) ease,
    border-color var(--dur-ui) ease;
}

.button:not(.button--ghost) {
  overflow: clip;
}

.button:not(.button--ghost)::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -10%;
  bottom: -10%;
  left: 0;
  width: 42%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: translateX(-170%) skewX(-20deg);
  pointer-events: none;
}

.on-blue .button:not(.button--ghost)::after {
  background: linear-gradient(100deg, transparent, rgba(41, 197, 244, 0.38), transparent);
}

/* ================= Cards: a light traces the border on hover ================= */

.service-card::after,
.card--hover:not(.card--live)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0deg 150deg,
    rgba(41, 197, 244, 0.95) 255deg,
    #3e5ce0 325deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}

.on-blue .card--hover:not(.card--live)::after {
  background: conic-gradient(
    from var(--border-angle),
    transparent 0deg 150deg,
    rgba(255, 255, 255, 0.95) 255deg,
    #9be7ff 325deg,
    transparent 360deg
  );
}

.service-card:hover::after,
.service-card:focus-visible::after,
.card--hover:not(.card--live):hover::after {
  opacity: 1;
}

/* ================= The process steps light up in turn ================= */

.process__steps .icon-tile {
  position: relative;
}

.process__steps .icon-tile::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow:
    0 0 0 0.45rem rgba(255, 255, 255, 0.14),
    0 0 1.8rem rgba(155, 231, 255, 0.8);
  opacity: 0;
  pointer-events: none;
}

/* ================= Cards take turns being featured (MotionEffects, data-turns="cycle") =================
 * Every few seconds the next card on screen is featured, like a hover: it lifts, its spotlight
 * comes up and a light runs around its border (the icon redraw and the top-edge sweep are played
 * from the script). The turns pause while a card is hovered.
 */

[data-turns] > li > .card[data-turn] {
  translate: 0 -0.3rem;
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
}

[data-turns] > li > .card[data-turn]::before {
  opacity: 1;
}

[data-turns] > li > .card[data-turn]::after {
  opacity: 1;
}

/* The featured card's icon glows */
[data-turns] > li > .card .icon-tile {
  transition:
    box-shadow 600ms ease,
    rotate 450ms var(--ease-out),
    scale 450ms var(--ease-out);
}

[data-turns] > li > .card[data-turn] .icon-tile {
  box-shadow: 0 0 1.75rem -0.25rem rgba(41, 197, 244, 0.55);
}

.sec--light [data-turns] > li > .card[data-turn] .icon-tile,
.sec--white [data-turns] > li > .card[data-turn] .icon-tile {
  box-shadow: 0 0 1.5rem -0.25rem rgba(45, 108, 240, 0.4);
}

/* ================= The stack as a live system (MotionEffects, data-turns="random") =================
 * Tiles light up at random, like activity on a dashboard: the tile's spotlight comes up, a light
 * runs along its top edge, the name glows and the file type slides in. Behind the grid, a soft
 * light roams slowly.
 */

.stack-tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), #3e5ce0, transparent);
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: 0 50%;
  transition:
    opacity 700ms ease,
    transform 900ms var(--ease-out);
  pointer-events: none;
}

.stack-tile::before {
  transition: opacity 700ms ease;
}

.stack-tile__name {
  transition: text-shadow 700ms ease;
}

.stack-tile[data-turn]::before {
  opacity: 1;
}

.stack-tile[data-turn]::after {
  opacity: 1;
  transform: scaleX(1);
}

.stack-tile[data-turn] .stack-tile__name {
  text-shadow: 0 0 1.4rem rgba(41, 197, 244, 0.55);
}

.stack-tile[data-turn] .stack-tile__ext {
  translate: -0.35rem 0;
}

/* The roaming light: as big as the grid, with its glow in the middle, moved by transform */
.stack-grid {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.stack-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(26rem circle at 50% 50%, rgba(41, 197, 244, 0.12), rgba(45, 108, 240, 0.05) 45%, transparent 70%);
  pointer-events: none;
  will-change: transform;
}

/* ================= Embers rising around the closing phoenix (FooterCta.tsx) ================= */

.embers {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  right: max(-2rem, calc((100vw - var(--container)) / 2));
  width: min(34rem, 48vw);
  pointer-events: none;
}

.embers i {
  position: absolute;
  bottom: -1rem;
  left: var(--x, 50%);
  width: var(--s, 5px);
  height: var(--s, 5px);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 30%, rgba(155, 231, 255, 0.9) 45%, rgba(41, 197, 244, 0) 72%);
  box-shadow: 0 0 14px 3px rgba(155, 231, 255, 0.55);
  opacity: 0;
  will-change: transform, opacity;
}

.embers i:nth-child(1) { --x: 8%; --s: 6px; --d: 11s; --delay: -1s; --drift: 1.5rem; }
.embers i:nth-child(2) { --x: 18%; --s: 8px; --d: 9s; --delay: -6s; --drift: -2rem; }
.embers i:nth-child(3) { --x: 27%; --s: 5px; --d: 13s; --delay: -3s; --drift: 2.5rem; }
.embers i:nth-child(4) { --x: 35%; --s: 7px; --d: 10s; --delay: -8s; --drift: -1rem; }
.embers i:nth-child(5) { --x: 44%; --s: 6px; --d: 12s; --delay: -4.5s; --drift: 2rem; }
.embers i:nth-child(6) { --x: 52%; --s: 9px; --d: 9.5s; --delay: -2s; --drift: -2.5rem; }
.embers i:nth-child(7) { --x: 60%; --s: 5px; --d: 14s; --delay: -10s; --drift: 1rem; }
.embers i:nth-child(8) { --x: 68%; --s: 7px; --d: 10.5s; --delay: -5.5s; --drift: -1.5rem; }
.embers i:nth-child(9) { --x: 75%; --s: 6px; --d: 12.5s; --delay: -0.5s; --drift: 2rem; }
.embers i:nth-child(10) { --x: 83%; --s: 8px; --d: 9s; --delay: -7s; --drift: -2rem; }
.embers i:nth-child(11) { --x: 90%; --s: 5px; --d: 13.5s; --delay: -3.5s; --drift: 1rem; }
.embers i:nth-child(12) { --x: 14%; --s: 6px; --d: 15s; --delay: -11s; --drift: -1rem; }
.embers i:nth-child(13) { --x: 40%; --s: 5px; --d: 16s; --delay: -13s; --drift: 1.5rem; }
.embers i:nth-child(14) { --x: 56%; --s: 7px; --d: 11.5s; --delay: -9s; --drift: -2rem; }
.embers i:nth-child(15) { --x: 72%; --s: 5px; --d: 14.5s; --delay: -12s; --drift: 2.5rem; }
.embers i:nth-child(16) { --x: 95%; --s: 6px; --d: 10s; --delay: -1.5s; --drift: -1.5rem; }

@media (max-width: 767px) {
  .embers {
    right: 0;
    width: 90vw;
  }

  .embers i:nth-child(n + 11) {
    display: none;
  }
}

.footer-cta__mark {
  --mark-o: 0.24;
  --mark-y: -50%;
}

@media (max-width: 767px) {
  .footer-cta__mark {
    --mark-o: 0.16;
    --mark-y: 0%;
  }
}

/* ================= Motion, only when it's welcome ================= */

@media (prefers-reduced-motion: no-preference) {
  /* Drifting light: slow, and only while on screen */
  .ambient i {
    animation: amb-a 28s ease-in-out infinite alternate paused;
  }

  .ambient i:nth-child(2) {
    animation-name: amb-b;
    animation-duration: 34s;
  }

  .ambient i:nth-child(3) {
    animation-name: amb-c;
    animation-duration: 24s;
  }

  .ambient[data-on] i {
    animation-play-state: running;
  }

  /* A shine passes through accent words every few seconds */
  .accent[data-on] {
    animation: accent-shine 6.5s ease-in-out infinite;
  }

  /* Button light sweep */
  .button:not(.button--ghost):hover::after,
  .button:not(.button--ghost):focus-visible::after {
    transform: translateX(320%) skewX(-20deg);
    transition: transform 900ms var(--ease-out);
  }

  /* Card border trace, and the icon draws itself again */
  .service-card:hover::after,
  .service-card:focus-visible::after,
  .card--hover:not(.card--live):hover::after {
    animation: border-spin 2.6s linear infinite;
  }

  .service-card:hover .icon-tile svg :is(path, circle, rect),
  .card--hover:not(.card--live):hover .icon-tile svg :is(path, circle, rect) {
    stroke-dasharray: 100;
    animation: live-draw 1s var(--ease-out) both;
  }

  /* The featured card's border light runs round */
  [data-turns] > li > .card[data-turn]::after {
    animation: border-spin 2.6s linear infinite;
  }

  /* In grids that take turns, the icons don't also pulse on their own (the turns do that job) */
  [data-turns] .is-in .icon-draw::after {
    animation: live-tile-glow 1.6s ease calc(var(--i, 0) * var(--stagger, 120ms) + 900ms) backwards;
  }

  /* The light behind the stack roams slowly */
  .stack-grid[data-on]::before {
    animation: grid-roam 26s ease-in-out infinite;
  }

  /* Process steps: Team, then Strategy & design, then Execution, then round again */
  .process__steps[data-on] .icon-tile::after {
    animation: step-pulse 6s ease-in-out infinite;
  }

  .process__steps[data-on] > li:nth-child(2) .icon-tile::after {
    animation-delay: 1.2s;
  }

  .process__steps[data-on] > li:nth-child(3) .icon-tile::after {
    animation-delay: 2.4s;
  }

  /* Embers */
  .embers i {
    animation: ember-rise var(--d, 10s) linear var(--delay, 0s) infinite paused;
  }

  .embers[data-on] i {
    animation-play-state: running;
  }

  /* The closing phoenix breathes (and keeps its scroll drift where supported) */
  .footer-cta__mark {
    animation: mark-breathe 7s ease-in-out infinite alternate;
  }

  @supports (animation-timeline: view()) {
    .footer-cta__mark {
      animation:
        mark-drift linear both,
        mark-breathe 7s ease-in-out infinite alternate;
      animation-timeline: view(), auto;
    }

    /* Project screenshots float at two depths as they pass */
    .shots__browser {
      animation: float-browser linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }

    .shots__phone {
      animation: float-phone linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}

@keyframes amb-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(14vw, 10vh, 0) scale(1.15);
  }
}

@keyframes amb-b {
  from {
    transform: translate3d(0, 0, 0) scale(1.1);
  }
  to {
    transform: translate3d(-18vw, -8vh, 0) scale(0.9);
  }
}

@keyframes amb-c {
  from {
    transform: translate3d(0, 0, 0) scale(0.95);
  }
  to {
    transform: translate3d(10vw, -14vh, 0) scale(1.2);
  }
}

/* Rest off to the left, then sweep across */
@keyframes accent-shine {
  0%,
  55% {
    --shine: 100%;
  }
  80%,
  100% {
    --shine: 0%;
  }
}

@keyframes step-pulse {
  0%,
  30%,
  100% {
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
}

/* Behind the stack: a slow loop round the grid (percentages of the grid size) */
@keyframes grid-roam {
  0%,
  100% {
    transform: translate(-30%, -26%);
  }
  25% {
    transform: translate(32%, -20%);
  }
  50% {
    transform: translate(26%, 28%);
  }
  75% {
    transform: translate(-28%, 24%);
  }
}

@keyframes ember-rise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.6);
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  70% {
    opacity: 0.6;
  }
  100% {
    transform: translate3d(var(--drift, 2rem), -34rem, 0) scale(1);
    opacity: 0;
  }
}

/* The shared drift, keeping the phoenix centred */
@keyframes mark-drift {
  from {
    translate: 0 calc(var(--mark-y) + 3rem);
  }
  to {
    translate: 0 calc(var(--mark-y) - 3rem);
  }
}

@keyframes mark-breathe {
  from {
    opacity: calc(var(--mark-o) * 0.8);
    scale: 1;
  }
  to {
    opacity: calc(var(--mark-o) * 1.4);
    scale: 1.035;
  }
}

@keyframes float-browser {
  from {
    transform: translateY(5%);
  }
  to {
    transform: translateY(-4%);
  }
}

@keyframes float-phone {
  from {
    transform: translateY(16%);
  }
  to {
    transform: translateY(-12%);
  }
}

/* ================= First-time entrances (InViewObserver adds .is-in) =================
 * The first time something scrolls into view it plays a one-off entrance, in every browser:
 *   headings       words rise out of a mask, one after another (--w is each word's place)
 *   text, buttons  rise and fade in
 *   cards          tilt up into place, one after another along a row (--reveal-i)
 *   project cards  rise, and the screenshot opens up
 *   directors      rise, the photo reveals from the bottom and settles
 *   values words   slide in and briefly fill with light
 *   stack tiles    the tile fades in and its contents rise
 *   chips          pop in one by one
 * Start states only apply once the observer is running (html.js-inview), and never to things that
 * were already on screen when the page opened (.is-shown) or sit in a page header (.is-hero, which
 * has its own load entrance). Fills are "backwards", so once an entrance ends, hover effects work
 * as before.
 */

@media (prefers-reduced-motion: no-preference) {
  /* ----- Waiting to enter ----- */
  .js-inview [data-reveal]:not(.is-in, .is-shown, .is-hero *) {
    opacity: 0;
  }

  .js-inview .split-reveal:not(.is-in, .is-shown, .is-hero *) .word__in {
    opacity: 0;
    transform: translateY(125%);
  }

  /* ----- Headings: the words rise out of their mask ----- */
  .split-reveal.is-in:not(.is-hero *) .word__in {
    animation: word-rise 0.95s var(--ease-out) backwards;
    animation-delay: calc(var(--w, 0) * 55ms);
  }

  /* ----- Text blocks, buttons and labels ----- */
  [data-reveal].is-in:not(.is-hero *) {
    animation: reveal-up 0.9s var(--ease-out) backwards;
    animation-delay: calc(var(--reveal-i, 0) * 100ms);
  }

  [data-reveal="fade"].is-in:not(.is-hero *) {
    animation-name: reveal-fade;
    animation-duration: 0.8s;
  }

  /* ----- Cards tilt up into place ----- */
  [data-reveal].is-in:has(> .card):not(.is-hero *) {
    transform-origin: 50% 100%;
    animation-name: card-in;
    animation-duration: 1s;
    animation-delay: calc(var(--reveal-i, 0) * 120ms);
  }

  /* ...and the light along the top edge sweeps across each card in turn as it lands */
  [data-reveal].is-in > .card > .card__beam {
    animation-delay: calc(var(--reveal-i, 0) * 120ms + 450ms);
  }

  /* ----- Project cards rise, and the screenshot opens up ----- */
  [data-reveal].is-in:has(> .project-card):not(.is-hero *) {
    animation-duration: 1s;
    animation-delay: calc(var(--reveal-i, 0) * 120ms);
  }

  [data-reveal].is-in > .project-card .project-card__media {
    animation: media-open 1.3s var(--ease-out) backwards;
    animation-delay: calc(var(--reveal-i, 0) * 120ms + 120ms);
  }

  /* ----- Directors: the photo reveals from the bottom and settles ----- */
  .director.is-in .director__photo {
    animation: photo-open 1.3s var(--ease-out) backwards;
    animation-delay: calc(var(--reveal-i, 0) * 140ms + 100ms);
  }

  .director.is-in .director__photo img {
    animation: photo-settle 1.8s var(--ease-out) backwards;
    animation-delay: calc(var(--reveal-i, 0) * 140ms + 100ms);
  }

  /* ----- Values: each word slides in and briefly fills with light ----- */
  .values__word[data-reveal].is-in:not(.is-hero *) {
    animation-name: value-in;
    animation-duration: 1.4s;
    animation-delay: calc(var(--reveal-i, 0) * 130ms);
  }

  /* ----- Stack: the tile fades in and its contents rise ----- */
  .stack-tile[data-reveal].is-in > * {
    animation: reveal-up 0.8s var(--ease-out) backwards;
    animation-delay: calc(var(--reveal-i, 0) * 110ms + 120ms);
  }

  .stack-tile[data-reveal].is-in > :nth-child(2) {
    animation-delay: calc(var(--reveal-i, 0) * 110ms + 200ms);
  }

  .stack-tile[data-reveal].is-in > :nth-child(3) {
    animation-delay: calc(var(--reveal-i, 0) * 110ms + 280ms);
  }

  /* ----- Chips pop in one by one ----- */
  .more-services.is-in .chips > li,
  .not-found__links.is-in > li {
    animation: chip-in 0.55s var(--ease-out) backwards;
    animation-delay: calc(250ms + var(--chip, 0) * 55ms);
  }
}

.chips > li:nth-child(2) {
  --chip: 1;
}

.chips > li:nth-child(3) {
  --chip: 2;
}

.chips > li:nth-child(4) {
  --chip: 3;
}

.chips > li:nth-child(5) {
  --chip: 4;
}

.chips > li:nth-child(6) {
  --chip: 5;
}

.chips > li:nth-child(7) {
  --chip: 6;
}

.chips > li:nth-child(n + 8) {
  --chip: 7;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: perspective(70rem) translate3d(0, 2.75rem, 0) rotateX(12deg) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* A narrower, slightly zoomed window that opens out to the full screenshot */
@keyframes media-open {
  from {
    clip-path: inset(16% 5% 0 5% round var(--radius));
    scale: 1.05;
  }
  to {
    clip-path: inset(0 0 0 0 round var(--radius));
    scale: 1;
  }
}

@keyframes photo-open {
  from {
    clip-path: inset(100% 0 0 0 round var(--radius));
  }
  to {
    clip-path: inset(0 0 0 0 round var(--radius));
  }
}

@keyframes photo-settle {
  from {
    scale: 1.18;
  }
  to {
    scale: 1;
  }
}

/* Slides in, fills with light at the midpoint, then returns to its outline */
@keyframes value-in {
  0% {
    opacity: 0;
    transform: translate3d(-3rem, 0, 0);
  }
  50% {
    opacity: 1;
    transform: none;
    color: rgba(255, 255, 255, 0.95);
  }
  100% {
    color: transparent;
  }
}

@keyframes chip-in {
  from {
    opacity: 0;
    transform: translate3d(0, 0.6rem, 0) scale(0.85);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Printing shows everything, including what was never scrolled to */
@media print {
  [data-reveal],
  [data-inview],
  .split-reveal .word__in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
