/* ==========================================================================
   style.css
   Code Pixel Breaker website: design system and all page styles.
   Responsive rules live in responsive.css (loaded after this file).

   Contents
     1. Fonts
     2. Design tokens (colours, type, spacing)
     3. Reset and base
     4. Layout helpers
     5. Header and navigation
     6. Buttons, tags and shared bits
     7. Home: hero
     8. Home: services ("Four ways we build.")
     9. Home: selected work
    10. Contact panels (home and about)
    11. About: introduction
    12. About: how we work
    13. Footer
    14. Coming-soon page
    15. Page transition, progress bar and motion helpers
   ========================================================================== */


/* ==========================================================================
   1. Fonts (self-hosted, latin subset)
   Anton           headlines
   Schibsted Grotesk  body text, navigation, buttons
   JetBrains Mono  small labels such as "01 / GAMES"
   ========================================================================== */
@font-face {
  font-family: "Anton";
  src: url("../assets/fonts/Anton.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../assets/fonts/SchibstedGrotesk.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/JetBrainsMono.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}


/* ==========================================================================
   2. Design tokens
   Change a value here and it updates everywhere.
   ========================================================================== */
:root {
  /* --- Dark navy / teal (dark sections, header, footer) --- */
  --navy-950: #010e16;
  --navy-900: #031821;
  --navy-800: #05242f;
  --navy-700: #083444;
  --navy-ink: #0b2b3b;          /* text on light backgrounds */

  /* --- Cream (light sections) --- */
  --cream: #eff0ea;
  --cream-deep: #e4e7df;

  /* --- Accents --- */
  --turquoise: #14d4c8;         /* headline highlight, eyebrow on dark */
  --cyan: #2aa6d9;
  --sky: #5ccbe3;
  --blue-label: #2a9bbd;        /* eyebrow on cream */
  --green: #38d170;
  --orange: #f5b349;            /* CTA buttons, contact panel */
  --orange-hover: #ffc45f;

  /* --- Text --- */
  --text-on-dark: #eef7f9;
  --text-on-dark-muted: #b9ced5;
  --text-on-light: #0b2b3b;
  --text-on-light-muted: #4b6371;

  /* --- Type --- */
  --font-display: "Anton", "Impact", sans-serif;
  --font-body: "Schibsted Grotesk", "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  /* --- Layout --- */
  --container: 1490px;
  --gutter: clamp(20px, 5.2vw, 80px);
  --header-height: clamp(76px, 5.8vw, 112px);
  --section-space: clamp(4.5rem, 9vw, 9rem);

  /* --- Shape and motion --- */
  --cut: clamp(26px, 2.4vw, 44px);   /* clipped top-right corner on cards */
  --ease-out: cubic-bezier(0.22, 0.8, 0.2, 1);
  --transition: 0.25s var(--ease-out);
}


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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.05vw, 1.25rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  height: auto; /* keeps pictures in proportion when only a width is set in CSS */
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

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

/* "Skip to content" link for keyboard users */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 0.6rem 1rem;
  background: var(--orange);
  color: var(--navy-ink);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Lenis smooth scrolling (rules recommended by the Lenis docs) */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* Small inline SVG icons (see assets/icons/sprite.svg) */
.icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ==========================================================================
   4. Layout helpers
   ========================================================================== */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* Small mono label above a heading, e.g. "WHAT WE DO" */
.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 0.8vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise);
}

.eyebrow--on-light {
  color: var(--blue-label);
}

/* Big heavy headline used for section titles */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.section-title {
  font-size: clamp(2.8rem, 4.9vw, 5.8rem);
}

/* Dark sections carry a faint technical grid */
.has-grid {
  background-color: var(--navy-900);
  background-image:
    linear-gradient(rgba(60, 190, 190, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 190, 190, 0.06) 1px, transparent 1px),
    radial-gradient(ellipse at 85% 0%, rgba(12, 96, 112, 0.4), transparent 60%);
  background-size: 56px 56px, 56px 56px, auto;
}

/* The stepped "pixel" edge where a dark section meets a cream one above it.
   Add .pixel-edge to the dark section (it needs position: relative). */
.pixel-edge {
  position: relative;
}

.pixel-edge::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: clamp(18px, 1.9vw, 36px);
  background: var(--navy-900);
  clip-path: polygon(
    0 100%, 8.3% 100%, 8.3% 0, 17.3% 0, 17.3% 50%, 25.3% 50%, 25.3% 100%,
    36.3% 100%, 36.3% 0, 44.3% 0, 44.3% 50%, 55.3% 50%, 55.3% 100%,
    66.3% 100%, 66.3% 28%, 75.3% 28%, 75.3% 0, 86.2% 0, 86.2% 67%, 100% 67%, 100% 100%
  );
}


/* ==========================================================================
   5. Header and navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(2, 21, 30, 0.97), rgba(6, 36, 48, 0.96));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  transition: transform 0.5s var(--ease-out);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.brand__mark {
  width: clamp(80px, 3.4vw, 0px);
  height: auto;
}

.brand__name {
  display: block;
  font-size: clamp(1rem, 1.05vw, 1.25rem);
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.brand__tagline {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 0.65vw, 0.78rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  white-space: nowrap;
}

/* The pill-shaped main menu */
.main-nav__list {
  display: flex;
  gap: 0.15rem;
  padding: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.main-nav__link {
  display: block;
  padding: 0.7rem clamp(0.9rem, 1.3vw, 1.5rem);
  border-radius: 999px;
  font-size: clamp(0.9rem, 0.95vw, 1.15rem);
  font-weight: 500;
  color: var(--text-on-dark-muted);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}

.main-nav__link:hover {
  color: #fff;
}

.main-nav__link[aria-current="page"] {
  background: #eaf4f4;
  color: var(--navy-ink);
}

.site-header__actions {
  display: flex;
  gap: 0.7rem;
  flex-shrink: 0;
}

/* Hamburger button (shown on small screens; see responsive.css) */
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: transparent;
}

.nav-toggle .icon {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* The mobile menu panel's own call-to-action row is hidden on desktop */
.main-nav__mobile-actions {
  display: none;
}


/* ==========================================================================
   6. Buttons, tags and shared bits
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85em 1.7em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 0.98vw, 1.15rem);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform var(--transition), background var(--transition),
    color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--gold {
  background: var(--orange);
  color: var(--navy-ink);
}

.btn--gold:hover {
  background: var(--orange-hover);
  box-shadow: 0 10px 28px rgba(245, 179, 73, 0.3);
}

.btn--outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--navy {
  background: var(--navy-ink);
  color: #fff;
}

.btn--navy:hover {
  background: #0f5870;
}

.btn--large {
  padding: 1.05em 2.1em;
  font-size: clamp(1rem, 1.1vw, 1.3rem);
}

/* "Placeholder" / "Description to be written" label, used where content is still to come.
   Delete the element (or this class) once the real content is in. */
.tag-placeholder {
  display: inline-block;
  padding: 0.35em 0.7em;
  background: var(--navy-950);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.tag-placeholder--gold {
  background: var(--orange);
  color: var(--navy-ink);
  font-size: clamp(0.7rem, 0.75vw, 0.85rem);
}

.text-link {
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--transition);
}

.text-link:hover {
  color: var(--orange);
}


/* ==========================================================================
   7. Home: hero
   ========================================================================== */
.hero {
  position: relative;
  /* Slightly taller than the screen, as in the reference, so the artwork sits low in the first view */
  min-height: max(calc(100vh + 7vw), 640px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 5vw) 0 6vw;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 72% 50%, rgba(16, 112, 122, 0.32), transparent 60%),
    linear-gradient(180deg, #04202e 0%, #031822 55%, #02171f 100%);
}

/* Glowing tiled floor. main.js fills it with tiles. */
.hero__floor-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 15%, transparent 92%);
  mask-image: linear-gradient(to top, #000 15%, transparent 92%);
}

.hero__floor {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(60, 200, 190, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 200, 190, 0.14) 1px, transparent 1px);
  background-size: 90px 90px;
  transform: perspective(520px) rotateX(60deg);
  transform-origin: bottom;
  transform-style: preserve-3d;
}

.hero__cell {
  --lift: 0px;
  position: absolute;
  left: calc(var(--column) * 90px);
  top: calc(var(--row) * 90px);
  width: 90px;
  height: 90px;
  pointer-events: auto;
  transform-style: preserve-3d;
  transform: translateZ(var(--lift));
  transition: transform 1s var(--ease-out);
}

.hero__cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tile-color);
  opacity: var(--tile-opacity, 0);
  transition: opacity 1s var(--ease-out);
}

.hero__cell::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: var(--lift);
  background: var(--tile-color);
  filter: brightness(0.55);
  opacity: 0;
  transform-origin: top;
  transform: rotateX(-90deg);
  transition: height 1s var(--ease-out), opacity 1s var(--ease-out);
}

.hero__cell.is-high {
  --lift: 46px;
  transition-duration: 0.15s;
}

.hero__cell.is-low {
  --lift: 16px;
  transition-duration: 0.25s;
}

.hero__cell.is-high::before {
  opacity: 0.85;
  transition-duration: 0.15s;
}

.hero__cell.is-low::before {
  opacity: 0.35;
  transition-duration: 0.15s;
}

.hero__cell.is-high::after,
.hero__cell.is-low::after {
  opacity: 1;
  transition-duration: 0.15s;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 4rem);
}

.hero__eyebrow {
  margin-bottom: clamp(1.2rem, 2vw, 2.2rem);
}

.hero__title {
  font-size: clamp(3.2rem, 5.6vw, 6.8rem);
  color: #f0fafc;
}

.hero__title-line,
.hero__title-accent {
  display: block;
}

.hero__title-accent {
  color: var(--turquoise);
}

.hero__text {
  max-width: 34em;
  margin-top: clamp(1.5rem, 2.4vw, 2.8rem);
  font-size: clamp(1.1rem, 1.5vw, 1.8rem);
  line-height: 1.5;
  color: var(--text-on-dark-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(1.8rem, 3vw, 3.2rem);
}

/* Logo artwork on the right. It floats gently; animations.js adds mouse movement. */
.hero__art {
  justify-self: end;
  width: min(100%, clamp(320px, 40vw, 800px));
}

.hero__emblem {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.45));
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}


/* ==========================================================================
   8. Home: services ("Four ways we build.")
   ========================================================================== */
.services {
  padding: var(--section-space) 0;
  background: var(--cream);
  color: var(--text-on-light);
}

.services__title {
  margin-top: 0.8rem;
  color: var(--navy-ink);
}

.services__lead {
  max-width: 40em;
  margin-top: clamp(1rem, 1.6vw, 1.8rem);
  font-size: clamp(1.05rem, 1.3vw, 1.55rem);
  color: var(--text-on-light-muted);
}

/* Two rows of two cards with different widths: 7/5 on the first row, 5/7 on the second */
.services__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 1.9vw, 2.2rem);
  margin-top: clamp(2.5rem, 4.5vw, 5rem);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(420px, 30vw, 580px);
  padding: clamp(1.6rem, 2.5vw, 3rem);
  padding-bottom: calc(clamp(1.6rem, 2.5vw, 3rem) + 18px);
  color: var(--navy-ink);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: transform 0.45s var(--ease-out);
}

/* Dark bar along the bottom of every card */
.service-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: clamp(10px, 0.9vw, 18px);
  background: var(--navy-900);
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-card--game {
  grid-column: span 7;
  background: linear-gradient(135deg, #66d0e6 0%, #2fa9db 100%);
}

.service-card--web {
  grid-column: span 5;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0 14px, transparent 14px 34px),
    var(--green);
}

.service-card--xr {
  grid-column: span 5;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0 14px, transparent 14px 34px),
    #00d6cb;
}

.service-card--assets {
  grid-column: span 7;
  background: var(--orange);
}

.service-card__label {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 0.8vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-card__title {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.2vw, 5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.service-card__text {
  max-width: 21em;
  margin-top: clamp(0.8rem, 1.2vw, 1.4rem);
  font-size: clamp(1rem, 1.25vw, 1.5rem);
  line-height: 1.45;
}

.service-card__link {
  margin-top: auto;
  padding-top: clamp(1.5rem, 2.4vw, 3rem);
  font-size: clamp(0.85rem, 0.95vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-card__link .icon {
  margin-left: 0.4em;
  vertical-align: -0.12em;
  transition: transform var(--transition);
}

.service-card:hover .service-card__link .icon {
  transform: translateX(6px);
}

/* Stepped translucent squares in the lower corner of the XR and Interactive cards */
.service-card__blocks {
  position: absolute;
  right: 5%;
  bottom: 9%;
  width: 36%;
  aspect-ratio: 1;
  pointer-events: none;
}

.service-card__blocks span {
  position: absolute;
  background: rgba(8, 60, 70, 0.16);
}

.service-card__blocks span:nth-child(1) {
  right: 0;
  top: 0;
  width: 46%;
  height: 46%;
}

.service-card__blocks span:nth-child(2) {
  right: 8%;
  top: 30%;
  width: 62%;
  height: 62%;
}

.service-card__blocks span:nth-child(3) {
  right: 58%;
  bottom: 0;
  width: 40%;
  height: 40%;
}

/* Games card: text on the left, a screenshot on the right */
.service-card__media {
  position: absolute;
  right: clamp(1.4rem, 2.5vw, 3rem);
  bottom: calc(clamp(1.6rem, 2.5vw, 3rem) + 40px);
  width: min(38%, 400px);
  box-shadow: 0 18px 40px rgba(6, 40, 70, 0.35);
  transform: rotate(-1.2deg);
  transition: transform 0.45s var(--ease-out);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.service-card--game:hover .service-card__media {
  transform: rotate(0deg) scale(1.03);
}

.service-card--game .service-card__text {
  max-width: 13em;
}

/* Custom Solutions card */
.service-card--assets .service-card__text {
  max-width: 19em;
}

.service-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 24em;
  margin-top: clamp(1rem, 1.5vw, 1.8rem);
}

.service-card__chips li {
  padding: 0.55em 1em;
  border: 2px solid var(--navy-ink);
  font-size: clamp(0.8rem, 0.95vw, 1.1rem);
  font-weight: 600;
}




/* ==========================================================================
   9. Home: selected work (featured slider)
   ========================================================================== */
.work {
  padding: var(--section-space) 0 calc(var(--section-space) * 0.9);
  color: var(--text-on-dark);
}

.work__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 4.5rem);
}

.work__title {
  color: #fff;
}

.showcase__slide {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  min-height: clamp(360px, 26vw, 520px);
}

.showcase__slide[hidden] {
  display: none;
}

.showcase__eyebrow {
  margin-bottom: clamp(0.8rem, 1.4vw, 1.6rem);
}

.showcase__title {
  font-size: clamp(3.2rem, 5.7vw, 6.9rem);
  color: #fff;
}

.showcase__summary {
  max-width: 24em;
  margin-top: clamp(1rem, 1.8vw, 2rem);
  font-size: clamp(1.05rem, 1.4vw, 1.7rem);
  line-height: 1.5;
  color: var(--text-on-dark-muted);
}

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

.showcase__cta {
  margin-top: clamp(1.4rem, 2.2vw, 2.4rem);
}

/* The picture, with a clipped corner and a tilted teal block peeking out behind it */
.showcase__media {
  position: relative;
}

.showcase__media::before {
  content: "";
  position: absolute;
  top: -14%;
  right: -4%;
  width: 20%;
  height: 33%;
  background: rgba(14, 110, 128, 0.6);
  transform: rotate(3deg);
}

.showcase__media img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: transform 0.9s var(--ease-out);
}

.showcase__media:hover img {
  transform: scale(1.025);
}

/* Tab row: number + name + progress bar, then arrows */
.showcase__controls {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2vw, 2.4rem);
  margin-top: clamp(2.5rem, 4.5vw, 5rem);
}

.showcase__tabs {
  position: relative;
  flex: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: clamp(1rem, 1.8vw, 2.2rem);
}

.showcase__tab-item {
  position: relative;
}

.showcase__tab {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.7rem;
  width: 100%;
  padding: 0 0 0.9rem;
  border: 0;
  background: none;
  text-align: left;
  color: var(--text-on-dark-muted);
  transition: color var(--transition);
}

.showcase__tab:hover,
.showcase__tab.is-active {
  color: #fff;
}

.showcase__tab-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--turquoise);
}

.showcase__tab-title {
  font-size: clamp(1rem, 1.2vw, 1.45rem);
  font-weight: 600;
  white-space: nowrap;
}

.showcase__progress {
  grid-column: 1 / -1;
  height: 4px;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.18);
}

.showcase__progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange);
}

.showcase__tab.is-done .showcase__progress-fill {
  width: 100%;
}

/* White preview card that appears above a tab on hover or keyboard focus */
.showcase__preview {
  position: absolute;
  left: 0;
  bottom: calc(100% + 14px);
  z-index: 5;
  width: clamp(250px, 19.5vw, 375px);
  padding: 0.7rem 0.7rem 1.2rem;
  background: #fff;
  color: var(--navy-ink);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.25s;
  pointer-events: none;
}

.showcase__tab-item:hover .showcase__preview,
.showcase__tab-item:focus-within .showcase__preview {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.showcase__preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.showcase__preview-type {
  margin: 0.8rem 0.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7f8a;
}

.showcase__preview-title {
  margin: 0.1rem 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
}

.showcase__preview-text {
  margin: 0.4rem 0.5rem 0;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-on-light-muted);
}

.showcase__preview-link {
  display: block;
  margin: 0.8rem 0.5rem 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showcase__arrows {
  display: flex;
  gap: 0.8rem;
}

.showcase__arrow {
  display: grid;
  place-items: center;
  width: clamp(46px, 3.2vw, 60px);
  height: clamp(46px, 3.2vw, 60px);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.showcase__arrow .icon {
  width: 1.3rem;
  height: 1.3rem;
}

.showcase__arrow:hover {
  background: #fff;
  color: var(--navy-ink);
  border-color: #fff;
}


/* ==========================================================================
   10. Contact panels ("Let our team help you.")
   ========================================================================== */
.contact {
  padding: var(--section-space) 0;
  background: var(--cream);
  color: var(--text-on-light);
}

.contact__title {
  margin-top: 0.8rem;
  color: var(--navy-ink);
}

.contact__panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 1.9vw, 2.2rem);
  margin-top: clamp(2.5rem, 4.5vw, 5rem);
}

.panel {
  min-height: clamp(260px, 17vw, 330px);
  padding: clamp(1.6rem, 3vw, 3.5rem);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}


.panel--meeting {
  background: var(--orange);
}

.panel__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--navy-ink);
}

.panel__text {
  max-width: 28em;
  margin-top: 0.9rem;
  font-size: clamp(1.02rem, 1.3vw, 1.55rem);
  line-height: 1.5;
}

.panel .btn {
  margin-top: clamp(1.2rem, 2vw, 2.2rem);
}



/* ==========================================================================
   11. About: introduction ("Are you ready to create?")
   ========================================================================== */
.about-intro {
  padding: calc(var(--header-height) + clamp(4rem, 8vw, 9rem)) 0 var(--section-space);
  background: var(--cream);
  color: var(--text-on-light);
}

.about-intro__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 8rem);
  align-items: start;
}

.about-intro__title {
  max-width: 5.7em; /* breaks the line after "ready", as in the reference */
  margin-top: 1rem;
  font-size: clamp(3rem, 5.7vw, 6.9rem);
  color: var(--navy-ink);
}

.about-intro__body {
  padding-top: clamp(0rem, 2.5vw, 3.5rem);
  font-size: clamp(1.05rem, 1.38vw, 1.65rem);
  line-height: 1.6;
  color: var(--text-on-light-muted);
}

.about-intro__body p + p {
  margin-top: 1.9em;
}

.about-intro__body .lead {
  color: var(--navy-ink);
  font-weight: 500;
}

.about-intro__body strong {
  color: var(--navy-ink);
  font-weight: 700;
}


/* ==========================================================================
   12. About: how we work
   ========================================================================== */
.process {
  padding: var(--section-space) 0;
  color: var(--text-on-dark);
}

.process__title {
  margin-top: 0.8rem;
  color: #fff;
}

.process__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 2.4vw, 3rem);
  margin-top: clamp(3rem, 5.5vw, 6.5rem);
}

/* The horizontal timeline line */
.process__steps::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  transform: scaleX(var(--line, 1));
  transform-origin: left center;
}

.process-step {
  position: relative;
  padding-top: clamp(2.8rem, 4.3vw, 5rem);
}

/* Diamond marker sitting on the line; colour comes from --step-color */
.process-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--step-color);
  transform: rotate(45deg);
}

.process-step__number {
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 0.85vw, 1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

.process-step__title {
  margin: 0.9rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.9vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
}

.process-step__text {
  max-width: 17em;
  font-size: clamp(1rem, 1.18vw, 1.4rem);
  line-height: 1.5;
  color: var(--text-on-dark-muted);
}

.process__quote {
  margin-top: clamp(3.5rem, 7vw, 8rem);
  padding-top: clamp(2.5rem, 4.5vw, 5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #a9c9d4;
}


/* ==========================================================================
   13. Footer
   ========================================================================== */
.site-footer {
  padding: clamp(3.5rem, 6vw, 6.5rem) 0 clamp(2rem, 3vw, 3rem);
  color: var(--text-on-dark-muted);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 5rem);
  padding-bottom: clamp(2.5rem, 4vw, 4.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__about {
  max-width: 24em;
  margin: clamp(1.2rem, 2vw, 2rem) 0 1.4rem;
  font-size: clamp(1rem, 1.18vw, 1.4rem);
  line-height: 1.55;
  color: var(--text-on-dark);
}

.site-footer__heading {
  margin-bottom: clamp(1rem, 1.6vw, 1.8rem);
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 0.85vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark);
}

.site-footer__list {
  display: grid;
  gap: clamp(0.7rem, 1.2vw, 1.3rem);
  font-size: clamp(1rem, 1.18vw, 1.4rem);
}

.site-footer__list a {
  color: var(--text-on-dark);
  transition: color var(--transition);
}

.site-footer__list a:hover {
  color: var(--orange);
}

.site-footer__contact p + p {
  margin-top: 1rem;
}

.site-footer__contact {
  font-size: clamp(1rem, 1.18vw, 1.4rem);
  color: var(--text-on-dark);
}

.site-footer__social {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.site-footer__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--text-on-dark);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.site-footer__social a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy-ink);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: clamp(1.5rem, 2.4vw, 2.6rem);
  font-size: clamp(0.88rem, 0.98vw, 1.15rem);
}

.site-footer__bottom p {
  color: var(--text-on-dark);
}

.site-footer__legal {
  max-width: 62em;
  margin-top: 0.9rem;
  color: var(--text-on-dark-muted) !important;
}

.site-footer__policies {
  display: flex;
  gap: 1.6rem;
  align-self: flex-start;
}


/* ==========================================================================
   14. Coming-soon page (used for pages that are not built yet)
   ========================================================================== */
.soon {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 3rem) 0 4rem;
}

.soon__title {
  margin: 1rem 0 1.4rem;
  font-size: clamp(3rem, 6vw, 7rem);
  color: #fff;
}

.soon__text {
  max-width: 34em;
  margin-bottom: 2.2rem;
  font-size: clamp(1.05rem, 1.4vw, 1.7rem);
  color: var(--text-on-dark-muted);
}


/* ==========================================================================
   15. Page transition, progress bar and motion helpers
   ========================================================================== */

/* Navy curtain that wipes across when moving between pages (animations.js drives it).
   Hidden unless JavaScript is running, so it can never trap a visitor. */
.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  background: var(--navy-900);
  pointer-events: none;
}

.js .page-curtain {
  display: block;
  pointer-events: none; /* visual only: it must never block clicks */
}

.page-curtain.is-finished {
  display: none !important;
}

/* Thin progress bar along the top of the screen */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: 3px;
  background: linear-gradient(90deg, var(--turquoise), var(--cyan), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* Masked headline lines (animations.js wraps lines and words in these) */
.mask-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.mask-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.mask-inner {
  display: inline-block;
  will-change: transform;
}

.mask-line > .mask-inner {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .page-curtain {
    display: none !important;
  }
}

/* ==========================================================================
   Additions (10/23 notes)
   ========================================================================== */

/* "Add-on" mark next to optional services (XR and Assets Development) */
.addon-tag {
  display: inline-block;
  margin-left: 0.5em;
  padding: 0.2em 0.7em;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
}

.site-footer__list .addon-tag {
  margin-left: 0.4em;
  font-size: 0.62em;
  color: var(--text-on-dark-muted);
}

/* Site mockup reels (under the project slider) */
.reels {
  margin-top: clamp(3.5rem, 7vw, 8rem);
  padding-top: clamp(2.2rem, 4vw, 4.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.reels__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.reels__title {
  margin-top: 0.6rem;
  font-size: clamp(2.2rem, 3.6vw, 4.4rem);
  color: #fff;
}

.reels__row {
  display: grid;
  max-width: 1020px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2.4rem);
  margin-top: clamp(1.6rem, 3vw, 3rem);
}

/* Phone-shaped frames. Swap the <div class="reel__frame"> for a <video> when the files arrive. */
.reel__frame,
.reel video {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 70vh;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.reel__frame {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  color: var(--text-on-dark-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reel__caption {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-on-dark-muted);
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-hero {
  padding: calc(var(--header-height) + clamp(4rem, 8vw, 9rem)) 0 clamp(2.5rem, 5vw, 5rem);
  background: var(--cream);
  color: var(--text-on-light);
}

.contact-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 6vw, 8rem);
  align-items: end;
}

.contact-hero__title {
  max-width: 7em;
  margin-top: 1rem;
  font-size: clamp(3rem, 5.7vw, 6.9rem);
  color: var(--navy-ink);
}

.contact-hero__text {
  max-width: 30em;
  margin-top: clamp(1.2rem, 2vw, 2.2rem);
  font-size: clamp(1.05rem, 1.38vw, 1.65rem);
  color: var(--text-on-light-muted);
}

/* Email, hours and social links beside the heading */
.contact-details {
  padding-left: clamp(1.2rem, 2vw, 2.4rem);
  border-left: 3px solid var(--navy-ink);
  font-size: clamp(1rem, 1.2vw, 1.4rem);
}

.contact-details__heading {
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 0.85vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-label);
}

.contact-details p + p {
  margin-top: 0.8rem;
}

.contact-details .text-link {
  font-weight: 600;
}

.contact-embeds {
  padding: 0 0 var(--section-space);
  background: var(--cream);
  color: var(--text-on-light);
}

.contact-embeds .contact__panels {
  margin-top: 0;
}

/* The two panels hold the GoHighLevel form and calendar */
.contact-embeds .panel {
  min-height: 0;
}

.embed-slot {
  margin-top: clamp(1.2rem, 2vw, 2rem);
}

/* White backing once a live embed is in place (the orange panel would otherwise show through) */
.embed-slot.is-live {
  background: #fff;
}

/* Shown until an embed is connected: a clear message plus a working email link */
.embed-fallback {
  padding: clamp(1.1rem, 1.8vw, 1.8rem);
  border: 2px dashed rgba(11, 43, 59, 0.4);
  font-size: clamp(0.98rem, 1.15vw, 1.3rem);
}

.embed-fallback p {
  max-width: 30em;
}

.embed-fallback .btn {
  margin-top: 1.1rem;
}

.embed-fallback .btn + .btn {
  margin-left: 0.6rem;
}

/* "Thank you" page reuses the coming-soon layout; see section 14 */

/* ==========================================================================
   Hide the page scroll bar (scrolling itself still works with wheel, touch, keys)
   ========================================================================== */
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}


/* ==========================================================================
   YouTube videos (click-to-play: no YouTube code loads until a visitor presses play)
   ========================================================================== */
.yt {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--navy-950);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.yt img,
.yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.yt img {
  transition: transform 0.8s var(--ease-out), filter 0.4s;
}

.yt:hover img {
  transform: scale(1.05);
  filter: brightness(0.8);
}

.yt__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(56px, 5vw, 84px);
  height: clamp(56px, 5vw, 84px);
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy-ink);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease-out), background 0.3s;
}

.yt__play .icon {
  width: 38%;
  height: 38%;
  margin-left: 6%;
  fill: currentColor;
}

.yt:hover .yt__play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--orange-hover);
}

/* Home page reels row: three videos side by side */
.reels__row {
  max-width: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reel__caption {
  font-weight: 600;
  color: var(--text-on-dark);
}


/* ==========================================================================
   Inner page heroes and the closing call-to-action band
   ========================================================================== */
.page-hero {
  padding: calc(var(--header-height) + clamp(3.5rem, 7vw, 8rem)) 0 clamp(3rem, 6vw, 7rem);
}

.page-hero--dark {
  color: var(--text-on-dark);
}

.page-hero--light {
  background: var(--cream);
  color: var(--text-on-light);
}

.page-hero__title {
  margin-top: 1rem;
  font-size: clamp(3rem, 6vw, 7.4rem);
}

.page-hero--dark .page-hero__title {
  color: #fff;
}

.page-hero--light .page-hero__title {
  color: var(--navy-ink);
}

.page-hero__lead {
  max-width: 34em;
  margin-top: clamp(1.2rem, 2vw, 2.2rem);
  font-size: clamp(1.1rem, 1.5vw, 1.8rem);
  line-height: 1.5;
}

.page-hero--dark .page-hero__lead {
  color: var(--text-on-dark-muted);
}

.page-hero--light .page-hero__lead {
  color: var(--text-on-light-muted);
}

/* Slim banner at the foot of the Services and Projects pages (not the big contact panels) */
.cta-band {
  padding: clamp(3rem, 6vw, 6.5rem) 0;
  background: var(--orange);
  color: var(--navy-ink);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}

.cta-band__title {
  font-size: clamp(2.2rem, 3.8vw, 4.6rem);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.cta-band .btn--outline {
  border-color: var(--navy-ink);
  color: var(--navy-ink);
}

.cta-band .btn--outline:hover {
  background: rgba(11, 43, 59, 0.1);
  border-color: var(--navy-ink);
}


/* ==========================================================================
   Services page
   ========================================================================== */
.services-page {
  padding: var(--section-space) 0;
  background: var(--cream);
  color: var(--text-on-light);
}

.service-group + .service-group {
  margin-top: clamp(3.5rem, 7vw, 8rem);
}

.service-group__label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin-bottom: clamp(1.5rem, 2.6vw, 3rem);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--navy-ink);
}

.service-group__label h2 {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 0.95vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-group__label p {
  color: var(--text-on-light-muted);
}

/* One service: big number and title, a short lead, then what is included */
.service-block {
  --accent: var(--sky);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 5rem);
  padding: clamp(1.6rem, 3vw, 3.5rem);
  background: #fff;
  border-left: clamp(8px, 0.8vw, 14px) solid var(--accent);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.service-block + .service-block {
  margin-top: clamp(1rem, 1.9vw, 2.2rem);
}

.service-block--game { --accent: #2fa9db; }
.service-block--web { --accent: var(--green); }
.service-block--xr { --accent: #00d6cb; }
.service-block--assets { --accent: var(--orange); }

.service-block__number {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 0.9vw, 1.05rem);
  letter-spacing: 0.14em;
  color: var(--blue-label);
}

.service-block__title {
  margin-top: 0.6rem;
  font-size: clamp(2.4rem, 4.2vw, 5rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--navy-ink);
}

.service-block__lead {
  max-width: 24em;
  margin-top: clamp(1rem, 1.6vw, 1.8rem);
  font-size: clamp(1.05rem, 1.3vw, 1.55rem);
  line-height: 1.5;
  color: var(--text-on-light-muted);
}

.service-block__sub {
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: clamp(0.76rem, 0.82vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-label);
}

.check-list {
  display: grid;
  gap: 0.7rem;
  font-size: clamp(1rem, 1.2vw, 1.4rem);
  font-weight: 500;
}

.check-list li {
  position: relative;
  padding-left: 1.5em;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.65em;
  height: 0.65em;
  background: var(--accent);
}

.service-block__related {
  margin-top: clamp(1.4rem, 2.2vw, 2.4rem);
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.related-list a,
.related-list span {
  padding: 0.5em 1em;
  border: 2px solid var(--navy-ink);
  font-size: clamp(0.85rem, 0.98vw, 1.15rem);
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}

.related-list a:hover {
  background: var(--navy-ink);
  color: #fff;
}

.service-block__note {
  color: var(--text-on-light-muted);
}


/* ==========================================================================
   Our Projects page
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: clamp(1.8rem, 3vw, 3.2rem);
}

.filter-bar button {
  padding: 0.65em 1.4em;
  border: 2px solid var(--navy-ink);
  border-radius: 999px;
  background: transparent;
  font-size: clamp(0.9rem, 1vw, 1.15rem);
  font-weight: 600;
  color: var(--navy-ink);
  transition: background var(--transition), color var(--transition);
}

.filter-bar button:hover,
.filter-bar button[aria-pressed="true"] {
  background: var(--navy-ink);
  color: #fff;
}

.projects-page {
  padding: 0 0 var(--section-space);
  background: var(--cream);
  color: var(--text-on-light);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.2vw, 2.6rem) clamp(1rem, 1.9vw, 2.2rem);
}

/* The first project is larger; the rest sit three to a row */
.project-tile {
  grid-column: span 2;
}

.project-tile:first-child {
  grid-column: span 4;
}

.project-tile[hidden] {
  display: none;
}

.project-tile__image {
  overflow: hidden;
  background: var(--navy-900);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.project-tile__image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

.project-tile:hover .project-tile__image img {
  transform: scale(1.06);
}

.project-tile__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
}

.project-tile__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.8vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--navy-ink);
}

.project-tile__type {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 0.8vw, 0.92rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-label);
  white-space: nowrap;
}

.project-tile__text {
  max-width: 32em;
  margin-top: 0.7rem;
  font-size: clamp(1rem, 1.15vw, 1.35rem);
  color: var(--text-on-light-muted);
}

.project-tile__link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: clamp(0.85rem, 0.95vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Videos from the YouTube channel */
.watch {
  padding: var(--section-space) 0;
  color: var(--text-on-dark);
}

.watch__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 4.5rem);
}

.watch__title {
  margin-top: 0.8rem;
  color: #fff;
}

.watch-item {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 5rem);
}

.watch-item + .watch-item {
  margin-top: clamp(2.5rem, 5vw, 6rem);
}

/* Every second video flips sides */
.watch-item:nth-child(even) {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
}

.watch-item:nth-child(even) .watch-item__video {
  order: 2;
}

.watch-item__type {
  font-family: var(--font-mono);
  font-size: clamp(0.76rem, 0.85vw, 1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise);
}

.watch-item__title {
  margin-top: 0.6rem;
  font-size: clamp(2rem, 3.4vw, 4.2rem);
  color: #fff;
}

.watch-item__text {
  max-width: 28em;
  margin-top: 1rem;
  font-size: clamp(1rem, 1.25vw, 1.5rem);
  color: var(--text-on-dark-muted);
}

/* ==========================================================================
   Individual service and project pages
   ========================================================================== */
.accent-game { --accent: #2fa9db; }
.accent-web { --accent: var(--green); }
.accent-xr { --accent: #00d6cb; }
.accent-assets { --accent: var(--orange); }
.accent-project { --accent: var(--turquoise); }

/* Hero: dark, with the page's accent colour as a bar and a picture or block art on the right */
.detail-hero {
  padding: calc(var(--header-height) + clamp(3rem, 6vw, 7rem)) 0 clamp(3rem, 6vw, 7rem);
  color: var(--text-on-dark);
}

.detail-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: clamp(0.76rem, 0.85vw, 1rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

.crumbs a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.crumbs a:hover {
  color: var(--orange);
}

.detail-hero__title {
  margin-top: clamp(1rem, 1.6vw, 1.8rem);
  padding-left: clamp(0.9rem, 1.2vw, 1.4rem);
  border-left: clamp(8px, 0.8vw, 14px) solid var(--accent);
  font-size: clamp(3rem, 5.8vw, 7rem);
  color: #fff;
}

.detail-hero__badge {
  margin-top: 1rem;
  color: var(--accent);
}

.detail-hero__lead {
  max-width: 28em;
  margin-top: clamp(1.2rem, 2vw, 2.2rem);
  font-size: clamp(1.1rem, 1.5vw, 1.8rem);
  line-height: 1.5;
  color: var(--text-on-dark-muted);
}

.detail-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: clamp(1.6rem, 2.6vw, 3rem);
}

.detail-hero__media {
  position: relative;
}

.detail-hero__media::before {
  content: "";
  position: absolute;
  top: -8%;
  right: -3%;
  width: 22%;
  height: 34%;
  background: var(--accent);
  opacity: 0.35;
  transform: rotate(3deg);
}

.detail-hero__media img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

/* For pages without a picture: stepped blocks in the accent colour */
.detail-hero__blocks {
  position: relative;
  aspect-ratio: 16 / 10;
}

.detail-hero__blocks span {
  position: absolute;
  background: var(--accent);
}

.detail-hero__blocks span:nth-child(1) { right: 6%; top: 8%; width: 30%; height: 38%; opacity: 0.95; }
.detail-hero__blocks span:nth-child(2) { right: 30%; top: 36%; width: 40%; height: 50%; opacity: 0.55; }
.detail-hero__blocks span:nth-child(3) { right: 62%; top: 62%; width: 26%; height: 32%; opacity: 0.8; }
.detail-hero__blocks span:nth-child(4) { right: 0; top: 56%; width: 18%; height: 22%; opacity: 0.35; }

/* Body sections on cream */
.detail-body {
  padding: var(--section-space) 0;
  background: var(--cream);
  color: var(--text-on-light);
}

.detail-intro {
  max-width: 34em;
  margin-top: 1rem;
  font-size: clamp(1.3rem, 2.1vw, 2.6rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--navy-ink);
}

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

.detail-copy p {
  font-size: clamp(1.05rem, 1.3vw, 1.55rem);
  line-height: 1.6;
  color: var(--text-on-light-muted);
}

.detail-copy p + p {
  margin-top: 1.4em;
}

/* What is included: four cards with the accent colour on top */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2.8rem) clamp(1.5rem, 3.4vw, 4rem);
  margin-top: clamp(2rem, 4vw, 4.5rem);
}

.feature {
  padding-top: 1.3rem;
  border-top: 4px solid var(--accent);
}

.feature__number {
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 0.85vw, 1rem);
  letter-spacing: 0.14em;
  color: var(--blue-label);
}

.feature__title {
  margin: 0.6rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.6vw, 3.1rem);
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--navy-ink);
}

.feature__text {
  max-width: 26em;
  font-size: clamp(1rem, 1.2vw, 1.4rem);
  color: var(--text-on-light-muted);
}

/* "At a glance" facts on project pages */
.facts {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.4rem, 2.2vw, 2.4rem);
  background: #fff;
  border-left: clamp(8px, 0.8vw, 14px) solid var(--accent);
}

.facts dt {
  font-family: var(--font-mono);
  font-size: clamp(0.74rem, 0.82vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-label);
}

.facts dd {
  margin: 0.25rem 0 0;
  font-size: clamp(1.05rem, 1.25vw, 1.5rem);
  font-weight: 500;
  color: var(--navy-ink);
}

.facts dd a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.facts dd a:hover {
  color: var(--blue-label);
}

/* Previous / next links (services and projects): outlined cards with a coloured arrow */
.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2.6rem);
  margin-top: clamp(2.5rem, 5vw, 5.5rem);
}

.pager--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pager .pager__link {
  --accent: var(--navy-ink);
  --accent-ink: #fff;
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.6vw, 1.6rem);
  padding: clamp(1.1rem, 1.8vw, 1.9rem) clamp(1.2rem, 2vw, 2.2rem);
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--navy-ink);
  box-shadow: 6px 6px 0 var(--navy-ink);
  color: var(--navy-ink);
  text-decoration: none;
  transform: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.pager .pager__link:hover {
  background: #fff;
  color: var(--navy-ink);
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--navy-ink);
}

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

/* A coloured edge on the side the arrow points to */
.pager__link::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10px;
  background: var(--accent);
}

.pager__link--prev::before { left: 0; }
.pager__link--next::before { right: 0; }
.pager__link--prev { padding-left: calc(clamp(1.2rem, 2vw, 2.2rem) + 10px); }
.pager__link--next { padding-right: calc(clamp(1.2rem, 2vw, 2.2rem) + 10px); flex-direction: row-reverse; text-align: right; }

.pager .pager__link--game   { --accent: #66d0e6; }
.pager .pager__link--web    { --accent: var(--green); }
.pager .pager__link--xr     { --accent: #00d6cb; }
.pager .pager__link--assets { --accent: var(--orange); }
.pager .pager__link--game, .pager .pager__link--web, .pager .pager__link--xr, .pager .pager__link--assets { --accent-ink: var(--navy-ink); }

.pager__arrow {
  display: grid;
  flex: none;
  place-items: center;
  width: clamp(2.6rem, 3.2vw, 3.4rem);
  height: clamp(2.6rem, 3.2vw, 3.4rem);
  border: 2px solid var(--navy-ink);
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.3s var(--ease-out);
}

.pager__link--prev:hover .pager__arrow { transform: translateX(-4px); }
.pager__link--next:hover .pager__arrow { transform: translateX(4px); }

.pager__text {
  display: block;
  min-width: 0;
}

.pager__label {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 0.8vw, 0.86rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-light-muted);
}

.pager__title {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.8rem);
  line-height: 1.02;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.detail-heading {
  margin-top: 0.6rem;
  font-size: clamp(2.4rem, 4vw, 4.8rem);
  color: var(--navy-ink);
}

.detail-body + .detail-body {
  padding-top: 0;
}

.project-tile__title a:hover {
  color: var(--blue-label);
}

/* Rows of project cards on the individual pages, and the "Learn more" link on the Services page */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1.2rem, 2.2vw, 2.6rem) clamp(1rem, 1.9vw, 2.2rem);
  margin-top: clamp(2rem, 4vw, 4.5rem);
}

.service-block__more {
  display: inline-block;
  margin-top: clamp(1rem, 1.6vw, 1.8rem);
  font-size: clamp(0.9rem, 1vw, 1.15rem);
  font-weight: 700;
  color: var(--navy-ink);
}

/* ==========================================================================
   Blogs and articles
   ========================================================================== */
.blog-page { padding: 0 0 var(--section-space); background: var(--cream); color: var(--text-on-light); }

/* Cover artwork: the same crisp CSS scenes as the service cards, on a coloured panel */
.post-art { position: relative; overflow: hidden; container-type: inline-size; aspect-ratio: 16 / 10; border-bottom: 2px solid var(--navy-ink); }
.post-art--games { background: linear-gradient(135deg, #66d0e6 0%, #2fa9db 100%); }
.post-art--xr { background: #00d6cb; }
.post-art--web { background: var(--green); }
.post-art--assets { background: var(--orange); }
.post-art::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0 14px, transparent 14px 34px); -webkit-mask-image: linear-gradient(to top left, #000 10%, transparent 70%); mask-image: linear-gradient(to top left, #000 10%, transparent 70%); }
.post-art .viz { position: absolute; margin: 0; right: auto; bottom: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: calc(70cqw / 20); opacity: 1; }
.post-art--xr { --cardbg: #00d6cb; }

/* Article cards (blogs page and "More articles") */
.post-grid--cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.6rem, 2.4vw, 2.8rem); align-items: stretch; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--navy-ink); box-shadow: 6px 6px 0 var(--navy-ink); transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out); }
.post-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--navy-ink); }
.post-card[hidden] { display: none; }
.post-card__art { display: block; }
.post-card__art .post-art { border-bottom: 2px solid var(--navy-ink); }
.post-card__body { display: flex; flex: 1; flex-direction: column; padding: clamp(1.1rem, 1.6vw, 1.7rem); }
.post-card__meta { display: flex; align-items: center; gap: 0.9rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-on-light-muted); }
.post-card__cat { display: inline-block; padding: 0.4em 0.8em; background: var(--navy-ink); color: var(--cream); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.post-card__title { margin-top: 0.9rem; font-family: var(--font-display); font-size: clamp(1.7rem, 2.1vw, 2.4rem); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; text-transform: uppercase; color: var(--navy-ink); }
.post-card__title a:hover { color: var(--blue-label); }
.post-card__text { margin-top: 0.8rem; font-size: 1rem; line-height: 1.55; color: var(--text-on-light-muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__link { margin-top: auto; padding-top: 1.2rem; align-self: flex-start; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; color: var(--navy-ink); }
.post-card__link::after { content: " \2192"; transition: margin-left 0.3s var(--ease-out); }
.post-card__link:hover::after { margin-left: 0.4em; }

/* One article: dark header with the artwork, then a contents list beside the text */
.article-hero { padding: calc(var(--header-height) + clamp(2.5rem, 5vw, 5.5rem)) 0 clamp(2.5rem, 5vw, 5.5rem); background: var(--navy-900); color: var(--text-on-dark); }
.article-hero__layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.article-hero .crumbs { color: var(--text-on-dark-muted); }
.article-hero .crumbs a:hover { color: var(--turquoise); }
.article__cat { margin-top: clamp(1.2rem, 2vw, 2rem); background: var(--turquoise); color: var(--navy-900); }
.article__title { max-width: 13em; margin-top: 1rem; font-size: clamp(2.6rem, 5vw, 5.8rem); color: #fff; }
.article__lead { max-width: 32em; margin-top: clamp(1rem, 1.8vw, 2rem); font-size: clamp(1.1rem, 1.45vw, 1.6rem); line-height: 1.55; color: var(--text-on-dark-muted); }
.article__meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 1.6rem; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--turquoise); }
.post-art--hero { border: 3px solid var(--navy-ink); box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.45); }

.article-body { padding: clamp(3rem, 6vw, 6rem) 0 var(--section-space); background: var(--cream); color: var(--text-on-light); }
.article-layout { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 46rem); justify-content: center; column-gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.article-toc { position: sticky; top: calc(var(--header-height) + 2rem); padding: 1.3rem 1.4rem; background: #fff; border: 2px solid var(--navy-ink); box-shadow: 5px 5px 0 var(--navy-ink); }
.article-toc__label { margin: 0 0 0.8rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-on-light-muted); }
.article-toc ol { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.article-toc li { counter-increment: toc; display: grid; grid-template-columns: 1.8em 1fr; gap: 0.4em; font-size: 0.95rem; line-height: 1.35; }
.article-toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.72rem; padding-top: 0.2em; color: var(--blue-label); }
.article-toc a { color: var(--navy-ink); }
.article-toc a:hover { color: var(--blue-label); }
.article-toc__back { display: inline-block; margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid rgba(11, 43, 59, 0.2); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy-ink); }

.article__text { counter-reset: section; scroll-margin-top: 6rem; }
.article__text h2 { counter-increment: section; margin: 2.4em 0 0.6em; padding-top: 1.1em; border-top: 3px solid var(--navy-ink); font-family: var(--font-display); font-size: clamp(1.8rem, 2.6vw, 3rem); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; text-transform: uppercase; color: var(--navy-ink); scroll-margin-top: 6rem; }
.article__text h2::before { content: counter(section, decimal-leading-zero); display: block; margin-bottom: 0.5em; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; color: var(--blue-label); }
.article__text h2:first-child { margin-top: 0; }
.article__text p, .article__text li { font-size: clamp(1.08rem, 1.25vw, 1.4rem); line-height: 1.75; color: var(--text-on-light-muted); }
.article__text p + p { margin-top: 1.1em; }
.article__text ul { display: grid; gap: 0.7rem; margin-top: 1rem; padding-left: 1.3em; list-style: square; }
.article__text a { color: var(--navy-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.article__text a:hover { color: var(--blue-label); }

.article-more { padding: 0 0 var(--section-space); background: var(--cream); color: var(--text-on-light); }
.article-more__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.6rem, 2.4vw, 2.8rem); margin-top: clamp(1.6rem, 3vw, 3.2rem); }

@media (max-width: 1000px) {
  .post-grid--cards, .article-more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .article-hero__layout { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-toc { position: static; margin-bottom: 2.4rem; }
}
@media (max-width: 640px) {
  .post-grid--cards, .article-more__grid { grid-template-columns: 1fr; }
  .post-card { box-shadow: 4px 4px 0 var(--navy-ink); }
}
/* ==========================================================================
   Sitewide fixes from the descriptions document
   ========================================================================== */

/* Buttons: text always sits in the middle, even when it wraps */
.btn {
  justify-content: center;
  text-align: center;
}

/* Footer logo (the logo picture already contains the company name) */
.brand__mark--footer {
  width: clamp(110px, 9vw, 170px);
  height: auto;
}

.site-footer__contact-links {
  margin-top: 1.2rem;
  font-size: inherit;
}

/* ==========================================================================
   Contact page: one card, message form on the left, "Schedule meeting" calendar on the right
   ========================================================================== */
.schedule {
  padding: clamp(7.5rem, 11vw, 9.5rem) 0 var(--section-space);
  background: var(--cream);
  color: var(--text-on-light);
}

.schedule__card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  background: #fff;
  border: 3px solid var(--navy-ink);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.schedule__col {
  padding: clamp(1.4rem, 2.6vw, 3rem);
}

.schedule__col + .schedule__col {
  border-left: 1px solid rgba(11, 43, 59, 0.18);
}

.schedule__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--navy-ink);
}

.schedule__text {
  max-width: 28em;
  margin-top: 0.8rem;
  font-size: clamp(1.02rem, 1.25vw, 1.5rem);
  color: var(--text-on-light-muted);
}

.schedule .embed-slot.is-live {
  background: transparent;
}
/* ---- Loading screen content (inside the page curtain) ---- */
.page-curtain {
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 56px 56px,
    radial-gradient(ellipse at 50% 40%, #0d3347 0%, var(--navy-900) 65%);
}

.curtain__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.5rem;
  text-align: center;
  color: #fff;
}

.curtain__logo {
  width: clamp(110px, 16vw, 170px);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(34, 211, 238, 0.35));
  animation: curtain-float 2.4s ease-in-out infinite;
}

.curtain__name {
  margin: 0.4rem 0 0;
  font-family: var(--font-display, "Anton", sans-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.curtain__tagline {
  margin: 0;
  max-width: 30ch;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.curtain__pixels {
  display: flex;
  gap: 8px;
  margin-top: 1.2rem;
}

.curtain__pixels span {
  width: 14px;
  height: 14px;
  background: var(--turquoise);
  animation: curtain-pixel 1.2s ease-in-out infinite;
}

.curtain__pixels span:nth-child(2) { animation-delay: 0.1s; background: var(--cyan); }
.curtain__pixels span:nth-child(3) { animation-delay: 0.2s; }
.curtain__pixels span:nth-child(4) { animation-delay: 0.3s; background: var(--cyan); }
.curtain__pixels span:nth-child(5) { animation-delay: 0.4s; }
.curtain__pixels span:nth-child(6) { animation-delay: 0.5s; background: var(--orange); }

.curtain__bar {
  width: min(260px, 60vw);
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.curtain__bar-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--turquoise), var(--cyan), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
}

.curtain__count {
  margin: 0;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
}

@keyframes curtain-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes curtain-pixel {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(-10px); opacity: 1; }
}

/* ==========================================================================
   Redesign: selected work (3 projects) and footer
   ========================================================================== */
.work { padding-bottom: var(--section-space); }
.work__heading { align-items: center; margin-bottom: clamp(2rem, 3.5vw, 3.5rem); }

/* One tidy card: text on the left, picture or video on the right, same height */
.showcase__stage {
  padding: clamp(1.2rem, 2.4vw, 2.6rem);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

.showcase__slide {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.8rem, 4vw, 4.5rem);
  min-height: 0;
}

.showcase__title { font-size: clamp(2.6rem, 4.4vw, 5rem); }
.showcase__summary { font-size: clamp(1rem, 1.2vw, 1.35rem); max-width: 26em; }
.showcase__media::before { display: none; }
.showcase__media { min-width: 0; }
.showcase__media img,
.showcase__media .yt { aspect-ratio: 16 / 9; width: 100%; }
.showcase__media img { clip-path: none; }
.showcase__media .yt { clip-path: none; }

/* Tabs: three equal columns, arrows on the right, everything on one line */
.showcase__controls { margin-top: clamp(1.4rem, 2.4vw, 2.4rem); gap: clamp(1rem, 2vw, 2rem); }
.showcase__tabs { grid-auto-columns: minmax(0, 1fr); }
.showcase__tab-title { white-space: normal; }
.showcase__preview { display: none; }

@media (max-width: 900px) {
  .showcase__slide { grid-template-columns: 1fr; }
  .showcase__tab-title { font-size: 0.95rem; }
}

/* ---- Footer ---- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #041a26 0%, #03121b 100%);
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--turquoise), var(--cyan), var(--orange)) 1;
  padding-top: clamp(3rem, 5vw, 5rem);
}

.site-footer__top {
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  align-items: start;
  gap: clamp(2rem, 4vw, 4.5rem);
}

.site-footer__brand .brand__mark--footer { width: clamp(96px, 8vw, 130px); }

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
  max-width: none;
}

.site-footer__social a { width: 40px; height: 40px; border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.04); }
.site-footer__social .icon { width: 18px; height: 18px; }

.site-footer__heading {
  padding-bottom: 0.9rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cyan);
}

.site-footer__list { font-size: 1rem; gap: 0.85rem; }
.site-footer__contact { font-size: 1rem; }
.site-footer__contact p { color: var(--text-on-dark-muted); }
.site-footer__contact p:first-of-type a { color: #fff; }

.site-footer__bottom { align-items: center; font-size: 0.88rem; }
.site-footer__legal { margin-top: 0.4rem; font-size: 0.82rem; }

@media (max-width: 900px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .site-footer__top { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact page v2: full-width calendar on top, message form in a card below
   ========================================================================== */
.schedule__intro { margin-bottom: clamp(1.4rem, 2.4vw, 2.4rem); }
.schedule__card--calendar { display: block; padding: clamp(0.6rem, 1.4vw, 1.4rem); }
.schedule__side .schedule__text { max-width: 22em; }
.schedule__contact { margin-top: 1.6rem; line-height: 1.7; color: var(--text-on-light-muted); }
.schedule__contact a { color: var(--navy-ink); font-weight: 600; }

/* ---- Contact page v3: dark intro like the other pages, calendar card overlaps into the cream area ---- */
.schedule--dark {
  padding: calc(var(--header-height) + clamp(2.5rem, 5vw, 5rem)) 0 0;
  color: var(--text-on-dark);
}
.schedule--dark .schedule__intro { margin-bottom: clamp(1.8rem, 3vw, 3rem); }
.schedule--dark .page-hero__title { color: #fff; }
.schedule--dark .page-hero__lead { color: var(--text-on-dark-muted); max-width: 34em; }

.schedule__card--calendar {
  position: relative;
  z-index: 2;
  margin-bottom: clamp(-7rem, -6vw, -4rem);
  padding: 0;
  border: 0;
  background: #fff;
  box-shadow: none;
}
.schedule__card--calendar .embed-slot { padding: clamp(0.4rem, 1vw, 1rem); }
.schedule__card--calendar .embed-fallback { padding: 2rem; color: var(--navy-ink); }

.schedule.schedule--dark {
  background-color: var(--navy-900);
  background-image:
    linear-gradient(rgba(60, 190, 190, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 190, 190, 0.06) 1px, transparent 1px),
    radial-gradient(ellipse at 85% 0%, rgba(12, 96, 112, 0.4), transparent 60%);
  background-size: 56px 56px, 56px 56px, auto;
}
.schedule__card--calendar iframe { margin-top: -2.5rem; margin-bottom: -2rem; }

/* ---- Contact page v4: the whole page uses the dark theme ---- */
.schedule.schedule--dark { padding-bottom: clamp(2rem, 3vw, 3rem); }
.schedule__card--calendar { margin-bottom: 0; }

/* Seven social icons on one line */
.site-footer__top { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; }
.site-footer__social { gap: 0.5rem; }
.site-footer__social a { width: 38px; height: 38px; }

/* ---- Small-screen fixes found in testing ---- */
.project-tile__type { white-space: normal; overflow-wrap: anywhere; }
.project-tile { min-width: 0; }
.facts dd, .detail-hero__badge { overflow-wrap: anywhere; }
/* ==========================================================================
   Home: "What we build" list + pixel-block page transition
   ========================================================================== */
.build__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.build__lead { max-width: 28rem; margin: 0 0 .6rem; color: rgba(11,43,59,.75); }
.build__list { list-style: none; margin: 2.4rem 0 0; padding: 0; border-top: 1px solid rgba(11,43,59,.18); }
.build__list li { border-bottom: 1px solid rgba(11,43,59,.18); }
.build-row { --accent: var(--cyan); position: relative; display: grid; grid-template-columns: 4.5rem 1fr auto 3.2rem; align-items: center; gap: 1.6rem; padding: 1.7rem .6rem; color: var(--navy-900); text-decoration: none; transition: background .35s, padding .35s; }
.build-row--web { --accent: var(--turquoise); }
.build-row--xr { --accent: #7c6cf0; }
.build-row--assets { --accent: var(--orange); }
.build-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease-out, ease); }
.build-row:hover { background: rgba(255,255,255,.65); padding-left: 1.6rem; }
.build-row:hover::before { transform: scaleY(1); }
.build-row__num { font-family: var(--font-display, "Anton", sans-serif); font-size: 2.4rem; line-height: 1; color: var(--accent); }
.build-row__body { display: grid; gap: .35rem; min-width: 0; }
.build-row__title { font-family: var(--font-display, "Anton", sans-serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); text-transform: uppercase; letter-spacing: .01em; }
.build-row__text { max-width: 36rem; color: rgba(11,43,59,.75); }
.build-row__tags { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.build-row__tags i { font-style: normal; font-size: .78rem; padding: .35em .8em; border: 1px solid rgba(11,43,59,.25); border-radius: 999px; white-space: nowrap; }
.build-row__go { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--navy-900); color: #fff; transition: background .3s, transform .3s; }
.build-row__go .icon { width: 1.1rem; height: 1.1rem; }
.build-row:hover .build-row__go { background: var(--accent); color: var(--navy-900); transform: translateX(4px); }
.build__more { margin: 2.2rem 0 0; font-size: 1.05rem; }
.build__more .text-link { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) {
  .build-row { grid-template-columns: 3rem 1fr 2.6rem; gap: 1rem; padding: 1.4rem .2rem; }
  .build-row__tags { display: none; }
  .build-row:hover { padding-left: .8rem; }
  .build-row__num { font-size: 1.8rem; }
  .build-row__go { width: 2.6rem; height: 2.6rem; }
}

/* Page transition: grid of pixel blocks (built by animations.js) */
.pixel-wipe { position: fixed; inset: 0; z-index: 1001; display: grid; pointer-events: none; }
.pixel-wipe span { display: block; background: var(--navy-900); margin: -1px; transform: scale(0); will-change: transform; }
.pixel-wipe span.is-cyan { background: #0c4a63; }
.pixel-wipe span.is-orange { background: #1b3a4b; }
.page-curtain.is-nav .curtain__inner { display: none; }

/* Footer opening hours: one line per day with a dotted guide on the left */
.site-footer__hours { margin: .9rem 0 0; padding-left: 1rem; border-left: 2px dotted rgba(255,255,255,.35); display: grid; gap: .35rem; }
.site-footer__hours p { margin: 0; }
.site-footer__hours strong { color: #fff; font-weight: 700; }
.site-footer__hours em { font-style: italic; }

/* ==========================================================================
   Animated icon scenes for the four service cards (pure CSS, no images or JS).
   Everything is sized in em, so each scene scales with the screen.
   Only transform and opacity are animated. The resting state is the finished picture,
   so with reduced motion the scene simply stays still.
   ========================================================================== */
.service-card__label,
.service-card__title,
.service-card__text,
.service-card__chips,
.service-card__link { position: relative; z-index: 1; }

.viz {
  --ink: var(--navy-ink);
  --paper: rgba(255, 255, 255, 0.78);
  --tone: rgba(8, 60, 70, 0.2);
  position: absolute;
  right: 4%;
  bottom: 13%;
  z-index: 0;
  width: 20em;
  height: 16em;
  font-size: clamp(9px, 1.05vw, 15px);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}
.service-card:hover .viz { opacity: 0.95; transform: translateY(-0.4em) scale(1.03); }

.viz i, .viz b, .viz .tag { position: absolute; display: block; box-sizing: border-box; font-style: normal; }
.viz-game   { --hue: #66d0e6; }
.viz-web    { --hue: var(--green); }
.viz-xr     { --hue: #00d6cb; }
.viz-assets { --hue: var(--orange); }
.viz .tag { padding: 0.45em 0.8em; background: var(--ink); color: var(--hue); font: 700 1em/1 var(--font-mono); letter-spacing: 0.1em; }

/* Shared look for all four scenes: 3px navy outline, flat light fill, one hard offset shadow */
.viz { --lw: 0.24em; --sh: 0.4em 0.4em 0 var(--ink); --lit: #ffe07a; }

/* 1. Game: a gamepad whose buttons light up one after another while the d-pad presses */
.viz-game .pad { left: 1.6em; top: 3.8em; width: 16.8em; height: 9em; border: var(--lw) solid var(--ink); border-radius: 4.2em / 4.6em; background: var(--paper); box-shadow: var(--sh); }
.viz-game .pad::before, .viz-game .pad::after { content: ""; position: absolute; top: -1.6em; width: 4.2em; height: 1.9em; border: var(--lw) solid var(--ink); border-bottom: 0; border-radius: 1em 1em 0 0; background: var(--paper); z-index: -1; }
.viz-game .pad::before { left: 1.6em; }
.viz-game .pad::after { right: 1.6em; }
.viz-game .dp { left: 4.4em; top: 6.3em; width: 4em; height: 4em; animation: viz-dpad 2.4s ease-in-out infinite; }
.viz-game .dp::before, .viz-game .dp::after { content: ""; position: absolute; background: var(--ink); border-radius: 0.3em; }
.viz-game .dp::before { left: 0; right: 0; top: 1.35em; height: 1.3em; }
.viz-game .dp::after { top: 0; bottom: 0; left: 1.35em; width: 1.3em; }
.viz-game .bt { width: 1.9em; height: 1.9em; border: var(--lw) solid var(--ink); border-radius: 50%; background: var(--paper); --d: 0s; animation: viz-press 2.4s ease-in-out var(--d) infinite backwards; }
.viz-game .bt::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--lit); opacity: 0; animation: viz-lit 2.4s ease-in-out var(--d) infinite backwards; }
.viz-game .bt::after { position: absolute; inset: 0; text-align: center; font: 700 1em/1.55em var(--font-mono); color: var(--ink); }
.viz-game .ba { left: 13.45em; top: 8.9em; --d: 0s; }
.viz-game .ba::after { content: "A"; }
.viz-game .bb { left: 15.35em; top: 7em; --d: 0.6s; }
.viz-game .bb::after { content: "B"; }
.viz-game .bx { left: 11.55em; top: 7em; --d: 1.2s; }
.viz-game .bx::after { content: "X"; }
.viz-game .by { left: 13.45em; top: 5.1em; --d: 1.8s; }
.viz-game .by::after { content: "Y"; }
.viz-game .tag { right: 0; top: 0; }

/* 2. Web: a browser window; blocks load top to bottom, then the cursor clicks the button */
.viz-web .win { left: 1.4em; top: 2.4em; width: 16.8em; height: 12.2em; border: var(--lw) solid var(--ink); border-radius: 0.6em; background: linear-gradient(var(--ink), var(--ink)) 0 2em / 100% var(--lw) no-repeat, var(--paper); box-shadow: var(--sh); }
.viz-web .win::before { content: ""; position: absolute; left: 0.8em; top: 0.6em; width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--ink); box-shadow: 1.1em 0 var(--ink), 2.2em 0 var(--ink); }
.viz-web .blk { border: var(--lw) solid var(--ink); border-radius: 0.3em; background: var(--tone); transform-origin: left center; animation: viz-load-1 4s ease-in-out infinite; }
.viz-web .k1 { left: 2.8em; top: 5.5em; width: 14em; height: 2.8em; }
.viz-web .k2 { left: 2.8em; top: 8.9em; width: 9.6em; height: 1em; animation-name: viz-load-2; }
.viz-web .k3 { left: 2.8em; top: 10.5em; width: 12em; height: 1em; animation-name: viz-load-3; }
.viz-web .go { left: 11.8em; top: 11.7em; width: 5em; height: 1.7em; border-radius: 0.4em; background: var(--ink); animation: viz-click 4s ease-in-out infinite; }
.viz-web .go::after { content: ""; position: absolute; inset: -0.45em; border: 0.18em solid var(--ink); border-radius: 0.8em; opacity: 0; animation: viz-ring 4s ease-in-out infinite; }
.viz-web .cur { left: 14.6em; top: 12.4em; width: 1.8em; height: 2.2em; background: var(--ink); clip-path: polygon(0 0, 0 100%, 35% 76%, 58% 100%, 80% 90%, 56% 66%, 100% 66%); animation: viz-cursor 4s ease-in-out infinite; }
.viz-web .tag { right: 0; top: 0; }

/* 3. XR: a front view of a VR headset with a scrolling grid horizon in each lens */
.viz-xr { --cardbg: #00d6cb; }
.viz-xr .orb { left: 2.5em; top: 0.6em; width: 15em; height: 15em; border: 0.16em solid rgba(11, 43, 59, 0.28); border-radius: 50%; }
.viz-xr .orb2 { border-color: transparent; border-top-color: var(--ink); border-width: 0.24em; animation: viz-orbit 3.6s linear infinite; }
.viz-xr .rig { left: 0; top: 0; width: 20em; height: 16em; animation: viz-bob 3s ease-in-out infinite; }
.viz-xr .st { top: 6.3em; width: 2.2em; height: 3.6em; border: var(--lw) solid var(--ink); border-radius: 1em; background: var(--paper); box-shadow: var(--sh); }
.viz-xr .s1 { left: 1.5em; }
.viz-xr .s2 { left: 16.3em; }
.viz-xr .hs { left: 3.2em; top: 4.6em; width: 13.6em; height: 6.6em; border: var(--lw) solid var(--ink); border-radius: 3.3em; background: var(--paper); box-shadow: var(--sh); }
.viz-xr .ln { top: 5.8em; width: 4.2em; height: 4.2em; border: var(--lw) solid var(--ink); border-radius: 50%; background: #06303b; overflow: hidden; }
.viz-xr .l1 { left: 4.8em; }
.viz-xr .l2 { left: 11em; }
.viz-xr .ln::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 0.14em; background: var(--hue); z-index: 1; }
.viz-xr .gr { left: -50%; width: 200%; top: 50%; height: 100%; overflow: hidden; transform-origin: 50% 0; transform: perspective(4em) rotateX(58deg); }
.viz-xr .gr i { left: 0; right: 0; top: -1.2em; bottom: 0; background: repeating-linear-gradient(0deg, var(--hue) 0 0.12em, transparent 0.12em 1.2em), repeating-linear-gradient(90deg, var(--hue) 0 0.12em, transparent 0.12em 1.2em); animation: viz-grid 1.6s linear infinite; }
.viz-xr .nose { left: 9em; top: 9.9em; width: 2em; height: 1.7em; border: var(--lw) solid var(--ink); border-bottom: 0; border-radius: 1em 1em 0 0; background: var(--cardbg); }
.viz-xr .tag { right: 0; top: 0; }

/* 4. Assets: a wireframe cube that fills in face by face, with a pen-tool anchor point on a corner */
.viz-assets .sc { left: 0; top: 0; width: 20em; height: 16em; perspective: 60em; filter: drop-shadow(0.4em 0.4em 0 var(--ink)); }
.viz-assets .fl { left: 6em; top: 4.4em; width: 8em; height: 8em; transform-style: preserve-3d; animation: viz-breathe 4s ease-in-out infinite; }
.viz-assets .cube { inset: 0; transform-style: preserve-3d; transform: rotateX(-30deg) rotateY(-38deg); }
.viz-assets .cube b { inset: 0; border: var(--lw) solid var(--ink); border-radius: 0.2em; }
.viz-assets .cube b::before { content: ""; position: absolute; inset: 0; background: var(--fill); opacity: 1; animation: viz-fill 4s ease-in-out var(--d) infinite backwards; }
.viz-assets .cube b:nth-child(1) { transform: translateZ(4em); --fill: rgba(255, 255, 255, 0.62); --d: 0s; }
.viz-assets .cube b:nth-child(2) { transform: rotateY(180deg) translateZ(4em); --fill: rgba(255, 255, 255, 0.3); --d: 1.5s; }
.viz-assets .cube b:nth-child(3) { transform: rotateY(90deg) translateZ(4em); --fill: rgba(11, 43, 59, 0.2); --d: 0.5s; }
.viz-assets .cube b:nth-child(4) { transform: rotateY(-90deg) translateZ(4em); --fill: rgba(11, 43, 59, 0.12); --d: 1.25s; }
.viz-assets .cube b:nth-child(5) { transform: rotateX(90deg) translateZ(4em); --fill: rgba(255, 255, 255, 0.9); --d: 1s; }
.viz-assets .cube b:nth-child(6) { transform: rotateX(-90deg) translateZ(4em); --fill: rgba(11, 43, 59, 0.16); --d: 1.75s; }
.viz-assets .pt { left: calc(50% - 0.7em); top: calc(50% - 0.7em); width: 1.4em; height: 1.4em; border: 0.2em solid var(--ink); background: #fff; transform: translate3d(4em, -4em, 4em); animation: viz-blink 2s ease-in-out infinite; }
.viz-assets .tag { right: 0; top: 0; }

@keyframes viz-dpad { 0% { transform: scale(1); } 6%, 18% { transform: scale(0.86); } 26%, 50% { transform: scale(1); } 56%, 68% { transform: scale(0.86); } 76%, 100% { transform: scale(1); } }
@keyframes viz-press { 0% { transform: scale(1); } 6%, 20% { transform: scale(0.88); } 30%, 100% { transform: scale(1); } }
@keyframes viz-lit { 0% { opacity: 0; } 6%, 20% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes viz-load-1 { 0%, 4% { transform: scaleX(0); opacity: 0; } 14%, 88% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes viz-load-2 { 0%, 16% { transform: scaleX(0); opacity: 0; } 26%, 88% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes viz-load-3 { 0%, 28% { transform: scaleX(0); opacity: 0; } 38%, 88% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes viz-cursor {
  0%, 38% { transform: translate(-6em, -6em); opacity: 0; }
  46% { opacity: 1; }
  62% { transform: translate(0, 0); }
  68% { transform: translate(0, 0) scale(0.82); }
  74% { transform: translate(0, 0) scale(1); }
  92% { transform: translate(0, 0); opacity: 1; }
  100% { transform: translate(0, 0); opacity: 0; }
}
@keyframes viz-click { 0%, 66% { transform: scale(1); } 70% { transform: scale(0.9); } 78%, 100% { transform: scale(1); } }
@keyframes viz-ring { 0%, 66% { transform: scale(0.8); opacity: 0; } 70% { opacity: 0.8; } 84%, 100% { transform: scale(1.35); opacity: 0; } }
@keyframes viz-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.6em); } }
@keyframes viz-orbit { to { transform: rotate(360deg); } }
@keyframes viz-grid { from { transform: translateY(0); } to { transform: translateY(1.2em); } }
@keyframes viz-fill { 0% { opacity: 0; } 14%, 70% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes viz-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes viz-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

@media (prefers-reduced-motion: reduce) {
  .viz, .viz *, .viz *::before, .viz *::after { animation: none !important; transition: none !important; }
}
/* The two narrower cards: a smaller, fainter scene so it never crowds the text */
.viz-web, .viz-xr { font-size: clamp(8px, 0.9vw, 13px); opacity: 0.42; bottom: 12%; }
.service-card:hover .viz-web, .service-card:hover .viz-xr { opacity: 0.85; }

/* ==========================================================================
   Services grid v2: two equal columns, equal-height cards, aligned rows.
   Each card is a flex column: label, title (two lines reserved), text, tags, spacer, Explore.
   The illustration has its own zone in the bottom-right corner; text and tags stop before it.
   ========================================================================== */
.services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: clamp(1rem, 1.9vw, 2.2rem); }
.service-card--game, .service-card--web, .service-card--xr, .service-card--assets { grid-column: auto; }

.service-card { container-type: inline-size; min-height: 0; --zone: 36cqw; }

.service-card__label { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em 0.8em; min-height: 1.6em; }
.service-card__title { margin-top: clamp(1rem, 1.6vw, 1.8rem); min-height: calc(2 * 0.98em); }
.service-card__text,
.service-card--game .service-card__text,
.service-card--assets .service-card__text { max-width: none; padding-right: calc(var(--zone) + 1rem); }
.service-card__chips { max-width: none; padding-right: calc(var(--zone) + 1rem); gap: 0.6rem; }
.service-card__chips li { padding: 0.55em 1em; line-height: 1.2; }
.service-card__link { margin-top: auto; }

/* Stripes only behind the illustration, fading out before they reach the text */
.service-card--web { background: var(--green); }
.service-card--xr { background: #00d6cb; }
.service-card--web::before, .service-card--xr::before {
  content: ""; position: absolute; right: 0; bottom: 0; width: 52%; height: 62%; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0 14px, transparent 14px 34px);
  -webkit-mask-image: linear-gradient(to top left, #000 25%, transparent 92%);
  mask-image: linear-gradient(to top left, #000 25%, transparent 92%);
}

/* The illustration fills its zone (about 36% of the card) and never reaches the text */
.service-card .viz { right: clamp(1rem, 2.5vw, 3rem); bottom: calc(clamp(1.6rem, 2.5vw, 3rem) + 1.2rem); opacity: 0.85; font-size: clamp(8px, 1.1vw, 15px); }
@supports (width: 1cqw) {
  .service-card .viz { font-size: calc(var(--zone) / 20); }
}
.service-card:hover .viz { opacity: 1; }

.service-card__label .addon-tag { margin-left: 0; }

/* Project pages: screenshot gallery (same outline and hard shadow as the rest of the site) */
.shots { display: grid; grid-template-columns: 1fr 1fr 0.55fr; gap: clamp(1.2rem, 2.2vw, 2.4rem); margin-top: clamp(1.6rem, 3vw, 3rem); align-items: start; }
.shots__item { margin: 0; }
.shots__item img { display: block; width: 100%; height: auto; border: 3px solid var(--navy-ink); background: var(--navy-900); box-shadow: 8px 8px 0 var(--navy-ink); }
.shots__item--wide { grid-column: 1 / -1; }
.shots__item:not(.shots__item--wide):not(.shots__item--phone) img { aspect-ratio: 2 / 1; object-fit: cover; object-position: top; }
.shots__item--phone img { border-radius: 1.4rem; }
.shots__item figcaption { margin-top: 1rem; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-on-light-muted); }
@media (max-width: 900px) {
  .shots { grid-template-columns: 1fr 1fr; }
  .shots__item--phone { grid-column: 1 / -1; max-width: 260px; justify-self: center; }
}
@media (max-width: 600px) {
  .shots { grid-template-columns: 1fr; }
  .shots__item img { box-shadow: 5px 5px 0 var(--navy-ink); }
}

/* Our Projects: one uniform grid that scales to many projects (filter tabs + "Show more") */
.project-grid--cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.6rem, 2.4vw, 2.8rem); align-items: stretch; }
.project-grid--cols3 .project-tile,
.project-grid--cols3 .project-tile:first-child { grid-column: auto; display: flex; flex-direction: column; background: #fff; border: 2px solid var(--navy-ink); box-shadow: 6px 6px 0 var(--navy-ink); transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out); }
.project-grid--cols3 .project-tile[hidden] { display: none; }
.project-grid--cols3 .project-tile:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--navy-ink); }
.project-grid--cols3 .project-tile__image { position: relative; clip-path: none; border-bottom: 2px solid var(--navy-ink); }
.project-grid--cols3 .project-tile > :not(.project-tile__image) { margin-left: clamp(1.1rem, 1.6vw, 1.6rem); margin-right: clamp(1.1rem, 1.6vw, 1.6rem); }
.project-grid--cols3 .project-tile__meta { margin-top: 1.2rem; }
.project-grid--cols3 .project-tile__title { font-size: clamp(1.7rem, 2.1vw, 2.4rem); }
.project-grid--cols3 .project-tile__type { margin-top: 0.3rem; }
.project-grid--cols3 .project-tile__text { margin-top: 0.8rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-grid--cols3 .project-tile__link { margin-top: auto; margin-bottom: clamp(1.1rem, 1.6vw, 1.6rem); padding-top: 1rem; align-self: flex-start; text-decoration: none; font-weight: 700; letter-spacing: 0.08em; }
.project-grid--cols3 .project-tile__link::after { content: " \2192"; transition: margin-left 0.3s var(--ease-out); }
.project-grid--cols3 .project-tile__link:hover::after { margin-left: 0.4em; }
.project-tile__cat { position: absolute; left: 0.8rem; top: 0.8rem; padding: 0.4em 0.8em; background: var(--navy-ink); color: var(--cream); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.filter-count { margin-left: 0.35em; opacity: 0.6; font-weight: 500; }
.projects-status { margin: 0 0 1.4rem; min-height: 1.2em; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-on-light-muted); }
.projects-more { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 4rem); }
.projects-more[hidden] { display: none; }
@media (max-width: 1000px) { .project-grid--cols3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .project-grid--cols3 { grid-template-columns: 1fr; } .project-grid--cols3 .project-tile { box-shadow: 4px 4px 0 var(--navy-ink); } }

/* ==========================================================================
   About page: exact layout of the supplied design (colours, sizes and spacing follow it)
   ========================================================================== */
.ab-hero, .ab-process, .ab-pixels { --a-darkest: #08171c; --a-dark: #0b1f26; --a-light: #f4f3ee; --a-emerald: #00c471; --a-teal: #14b8a6; --a-amber: #f5a623; --a-amber-hover: #d98e14; --a-slate: #334155; }

.ab-wrap { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .ab-wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .ab-wrap { padding: 0 2rem; } }

.ab-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.ab-eyebrow i { display: inline-block; width: 0.5rem; height: 0.5rem; background: var(--a-emerald); transform: rotate(45deg); }
.ab-eyebrow span { font-family: var(--font-mono); font-size: 0.75rem; line-height: 1rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--a-teal); }

/* 1. Hero and story on the dotted light canvas */
.ab-hero { background-color: var(--a-light); background-image: radial-gradient(rgba(11, 31, 38, 0.09) 1px, transparent 1px); background-size: 20px 20px; color: var(--a-dark); padding: calc(var(--header-height) + 2rem) 0 5rem; }
@media (min-width: 640px) { .ab-hero { padding: calc(var(--header-height) + 3rem) 0 7rem; } }
@media (min-width: 1024px) { .ab-hero { padding: calc(var(--header-height) + 3.5rem) 0 7rem; } }
.ab-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .ab-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5rem; } .ab-left { grid-column: span 5 / span 5; } .ab-right { grid-column: span 7 / span 7; padding-top: 2rem; } }

.ab-title { margin: 0 0 2.5rem; font-family: var(--font-display); font-size: 3rem; line-height: 0.95; letter-spacing: -0.025em; text-transform: uppercase; font-weight: 400; color: var(--a-dark); }
@media (min-width: 640px) { .ab-title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .ab-title { font-size: 4.75rem; } }
.ab-title span { position: relative; display: inline-block; }
.ab-title span::after { content: ""; display: block; width: 5rem; height: 0.375rem; margin-top: 0.875rem; background: var(--a-amber); }

.ab-caps { padding-top: 0.5rem; }
.ab-caps__label { margin-bottom: 0.75rem; font-family: var(--font-mono); font-size: 11px; line-height: 1rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(51, 65, 85, 0.75); }
.ab-caps__list { border-top: 1px solid rgba(11, 31, 38, 0.12); border-bottom: 1px solid rgba(11, 31, 38, 0.12); }
.ab-cap { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid rgba(11, 31, 38, 0.12); transition: padding-left 0.2s; }
.ab-cap:last-child { border-bottom: 0; }
.ab-cap:hover { padding-left: 0.5rem; }
.ab-cap__main { display: flex; align-items: baseline; gap: 1rem; }
.ab-cap__num { font-family: var(--font-mono); font-size: 0.75rem; line-height: 1rem; font-weight: 700; }
.ab-cap__title { margin: 0; font-size: 1rem; line-height: 1.5rem; font-weight: 700; color: var(--a-dark); transition: color 0.2s; }
.ab-cap:hover .ab-cap__title { color: var(--a-emerald); }
.ab-cap__sub { margin: 0.125rem 0 0; font-size: 0.75rem; line-height: 1rem; color: var(--a-slate); }
.ab-cap__arrow { font-family: var(--font-mono); font-size: 0.75rem; line-height: 1rem; color: rgba(11, 31, 38, 0.3); transition: color 0.2s, transform 0.2s; }
.ab-cap:hover .ab-cap__arrow { color: var(--a-emerald); transform: translateX(0.25rem); }

.ab-right > * + * { margin-top: 2rem; }
.ab-lead { margin: 0; font-size: 1.25rem; line-height: 1.375; font-weight: 600; letter-spacing: -0.025em; color: var(--a-dark); }
@media (min-width: 640px) { .ab-lead { font-size: 1.5rem; line-height: 2rem; } }
.ab-lead u { text-decoration: underline; text-decoration-color: var(--a-emerald); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ab-mission { margin: 0; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 3px solid var(--a-emerald); }
@media (min-width: 640px) { .ab-mission { padding-left: 1.5rem; } }
.ab-mission__label { display: block; margin-bottom: 0.375rem; font-family: var(--font-mono); font-size: 11px; line-height: 1rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--a-emerald); }
.ab-mission p { margin: 0; font-size: 1.125rem; line-height: 1.625; font-weight: 500; color: var(--a-dark); }
@media (min-width: 640px) { .ab-mission p { font-size: 1.25rem; line-height: 1.75rem; } }
.ab-closing-p { margin: 0; font-size: 1rem; line-height: 1.625; color: var(--a-slate); }
@media (min-width: 640px) { .ab-closing-p { font-size: 1.125rem; line-height: 1.75rem; } }

.ab-metrics { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2rem; border-top: 1px solid rgba(11, 31, 38, 0.12); }
@media (min-width: 640px) { .ab-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; } .ab-metrics > div + div { border-left: 1px solid rgba(11, 31, 38, 0.12); } .ab-metrics > div:nth-child(1) { padding-right: 1.5rem; } .ab-metrics > div:nth-child(2) { padding: 0 1.5rem; } .ab-metrics > div:nth-child(3) { padding-left: 1.5rem; } }
.ab-metrics__value { font-family: var(--font-display); font-size: 1.875rem; line-height: 2.25rem; letter-spacing: -0.025em; }
@media (min-width: 640px) { .ab-metrics__value { font-size: 2.25rem; line-height: 2.5rem; } }
.ab-metrics__label { margin-top: 0.25rem; font-size: 0.75rem; line-height: 1rem; font-weight: 500; color: var(--a-slate); }
@media (min-width: 640px) { .ab-metrics__label { font-size: 0.875rem; line-height: 1.25rem; } }

/* 2. Pixel-art stepped divider */
.ab-pixels { position: relative; width: 100%; overflow: hidden; line-height: 1; background: var(--a-light); user-select: none; }
.ab-pixels__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); width: 100%; }
.ab-pixels__row--a { height: 1.5rem; }
.ab-pixels__row--b { height: 1rem; background: var(--a-dark); }
@media (min-width: 640px) { .ab-pixels__row--a { height: 2.25rem; } .ab-pixels__row--b { height: 1.5rem; } }
.ab-pixels .d { background: var(--a-dark); }
.ab-pixels .l { background: var(--a-light); }
.ab-pixels .s1 { grid-column: span 1 / span 1; }
.ab-pixels .s2 { grid-column: span 2 / span 2; }
.ab-pixels .s3 { grid-column: span 3 / span 3; }
.ab-pixels .s5 { grid-column: span 5 / span 5; }
.ab-pixels .y2 { transform: translateY(0.5rem); }
.ab-pixels .y1 { transform: translateY(0.25rem); }
@media (min-width: 640px) { .ab-pixels .y2 { transform: translateY(0.75rem); } .ab-pixels .y1 { transform: translateY(0.375rem); } }
.ab-pixels .em { background: rgba(0, 196, 113, 0.3); }
.ab-pixels .am { background: rgba(245, 166, 35, 0.3); }

/* 3. How we work (dark) */
.ab-process { position: relative; color: #fff; padding: 5rem 0; background-color: var(--a-darkest); background-image: linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px), radial-gradient(circle at 82% 22%, rgba(20, 184, 166, 0.14) 0%, rgba(11, 31, 38, 0.96) 55%, #08171c 100%); background-size: 48px 48px, 48px 48px, auto; }
@media (min-width: 640px) { .ab-process { padding: 7rem 0; } }
.ab-process__head { margin-bottom: 3.5rem; }
@media (min-width: 640px) { .ab-process__head { margin-bottom: 5rem; } }
.ab-process__head .ab-eyebrow { margin-bottom: 0.75rem; }
.ab-process__head .ab-eyebrow span { letter-spacing: 0.22em; color: var(--a-emerald); }
.ab-process__title { margin: 0; font-family: var(--font-display); font-size: 2.25rem; line-height: 1; letter-spacing: -0.025em; text-transform: uppercase; font-weight: 400; color: var(--a-light); }
@media (min-width: 640px) { .ab-process__title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .ab-process__title { font-size: 4.5rem; } }

.ab-timeline { position: relative; }
.ab-timeline__line { display: none; position: absolute; top: 11px; left: 0; right: 0; height: 1px; background: rgba(255, 255, 255, 0.15); z-index: 0; }
@media (min-width: 1024px) { .ab-timeline__line { display: block; } }
.ab-timeline__progress { display: block; width: 100%; height: 100%; background: linear-gradient(to right, var(--a-amber), var(--a-emerald), var(--a-teal)); transform-origin: left center; transform: scaleX(0.25); transition: transform 0.5s; }
.ab-steps { position: relative; z-index: 10; display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .ab-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ab-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }
.ab-step { cursor: pointer; outline: none; }
.ab-step__top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.ab-step__node { display: flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 9999px; background: var(--a-dark); }
.ab-step__node i { display: inline-block; width: 0.875rem; height: 0.875rem; background: var(--c); box-shadow: 0 0 14px var(--glow); transform: rotate(45deg); transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.ab-step:hover .ab-step__node i, .ab-step.is-active .ab-step__node i { transform: rotate(225deg) scale(1.25); }
.ab-step__rule { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.15); }
@media (min-width: 1024px) { .ab-step__rule { display: none; } }
.ab-step__num { display: block; margin-bottom: 0.5rem; font-family: var(--font-mono); font-size: 11px; line-height: 1rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c); }
.ab-step__title { margin: 0 0 0.75rem; font-family: var(--font-display); font-size: 1.875rem; line-height: 2.25rem; letter-spacing: 0.025em; font-weight: 400; color: #fff; transition: color 0.2s; }
@media (min-width: 640px) { .ab-step__title { font-size: 2.15rem; line-height: 2.5rem; } }
.ab-step:hover .ab-step__title { color: var(--c); }
.ab-step__text { margin: 0; font-size: 0.875rem; line-height: 1.625; color: #d1d5db; }
@media (min-width: 640px) { .ab-step__text { font-size: 15px; } }
.ab-step--1 { --c: #f5a623; --glow: rgba(245, 166, 35, 0.85); }
.ab-step--2, .ab-step--3 { --c: #00c471; --glow: rgba(0, 196, 113, 0.65); }
.ab-step--4 { --c: #14b8a6; --glow: rgba(20, 184, 166, 0.65); }

/* 4. Closing manifesto and actions */
.ab-closing { margin-top: 5rem; padding-top: 3rem; border-top: 1px solid rgba(255, 255, 255, 0.15); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
@media (min-width: 640px) { .ab-closing { margin-top: 6rem; padding-top: 4rem; } }
@media (min-width: 1024px) { .ab-closing { flex-direction: row; align-items: center; } }
.ab-closing h2 { margin: 0; font-family: var(--font-display); font-size: 2.25rem; line-height: 1; letter-spacing: -0.025em; text-transform: uppercase; font-weight: 400; }
@media (min-width: 640px) { .ab-closing h2 { font-size: 3rem; } }
@media (min-width: 1024px) { .ab-closing h2 { font-size: 3.75rem; } }
.ab-closing h2 span:first-child { color: var(--a-light); }
.ab-closing h2 span:last-child { display: block; color: var(--a-teal); }
@media (min-width: 640px) { .ab-closing h2 span:last-child { display: inline; margin-left: 0.5rem; } }
.ab-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; flex-shrink: 0; }
.ab-btn { display: inline-block; border-radius: 9999px; text-align: center; text-decoration: none; transition: all 0.2s; }
.ab-btn--primary { padding: 0.875rem 1.75rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 700; background: var(--a-amber); color: var(--a-darkest); box-shadow: 0 10px 15px -3px rgba(245, 166, 35, 0.2), 0 4px 6px -4px rgba(245, 166, 35, 0.2); }
.ab-btn--primary:hover { background: var(--a-amber-hover); transform: translateY(-0.125rem); }
.ab-btn--ghost { padding: 0.875rem 1.5rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); }
.ab-btn--ghost:hover { border-color: var(--a-emerald); background: rgba(0, 196, 113, 0.1); }
@media (min-width: 640px) { .ab-btn--primary, .ab-btn--ghost { font-size: 1rem; line-height: 1.5rem; } }
/* About: capability rows are links */
a.ab-cap { color: inherit; text-decoration: none; cursor: pointer; }
a.ab-cap:focus-visible { outline: 2px solid var(--a-emerald); outline-offset: 2px; }
.ab-step { -webkit-tap-highlight-color: transparent; }

/* Contact page: it now ends with the calendar, so leave room above the footer */
.schedule.schedule--dark { padding-bottom: clamp(3rem, 6vw, 6rem); }

/* ==========================================================================
   Legal pages (Privacy Policy, Terms of Service): same look as the articles, plain numbered headings
   ========================================================================== */
.legal-hero .article__title { max-width: 14em; }
.legal-toc { max-height: calc(100vh - var(--header-height) - 4rem); overflow-y: auto; }
.legal-toc li { grid-template-columns: 1fr; }
.legal-toc li::before { content: none; }
.legal-toc a { font-size: 0.9rem; }
.legal__text { max-width: 46rem; }
.legal__text h2 { margin: 2.2em 0 0.6em; padding-top: 1em; border-top: 2px solid var(--navy-ink); font-family: var(--font-display); font-size: clamp(1.4rem, 1.9vw, 2rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.005em; text-transform: uppercase; color: var(--navy-ink); scroll-margin-top: 6rem; }
.legal__text h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal__text p { font-size: clamp(1rem, 1.12vw, 1.2rem); line-height: 1.75; color: var(--text-on-light-muted); }
.legal__text p + p { margin-top: 1em; }
.legal__text a { color: var(--navy-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.legal__text a:hover { color: var(--blue-label); }
.legal__text strong { color: var(--navy-ink); font-weight: 700; }
.legal__text .legal__copyright { margin-top: 3em; padding-top: 1.2em; border-top: 1px solid rgba(11, 43, 59, 0.2); font-size: 0.9rem; }
@media (max-width: 900px) { .legal-toc { max-height: none; } }