/* Moonshot Studio */

/* Fonts are served from this site (no third-party requests). Both are SIL Open Font License; see assets/fonts/LICENSES.md */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../assets/fonts/urbanist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../assets/fonts/urbanist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Cobalt & Cream */
  --paper: #f4efe6;
  --paper-2: #e9e2d6;
  --white: #ffffff;
  --surface: #faf7f1;
  --ink: #10182b;
  --ink-2: #151d30;
  --muted: #646b7d;
  --line: rgba(16, 24, 43, 0.1);
  --space: #0b1122;

  --accent: #2450ff;
  --accent-2: #1a3bd6;
  --on-accent: #ffffff;
  --silver: #8ea8ff;
  --mist: #e5eaf8;
  --fog: #e9ecf6;
  --cloud: #dce4ff;

  /* Hero spray paint: a soft pass and a strong pass, read by js/main.js */
  --spray-soft-1: #bccaff;
  --spray-soft-2: #a9bbff;
  --spray-strong-1: #2450ff;
  --spray-strong-2: #1a3bd6;

  --font: "Urbanist", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: clamp(16px, 3.4vw, 48px);
  --radius: clamp(18px, 2vw, 26px);
}

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

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

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

html.is-loading {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

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

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

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 6px;
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus {
  transform: none;
}

/* ---------------------------------------------------------------- Loader */

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 43%, #18224a 0%, var(--space) 62%);
  color: var(--paper);
}
.js .loader {
  display: block;
}

.loader-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.loader.is-on .loader-stars {
  opacity: 1;
}

.loader-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  overflow: visible;
  fill: var(--paper);
  color: var(--paper);
}

.ld-spark {
  stroke: #ffffff;
  transition: opacity 0.7s ease;
}
.ld-spark.is-done {
  opacity: 0;
}

.loader-word {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.4s ease;
}
.ld-word-svg {
  width: 100%;
  height: auto;
}
.ld-word-svg .wm-l {
  transform: translateY(210px);
  transition: transform 0.75s var(--ease-out);
  transition-delay: calc(var(--i) * 24ms);
}
.loader.is-word .ld-word-svg .wm-l {
  transform: none;
}
.loader.is-leaving .ld-word-svg .wm-l {
  transform: translateY(-210px);
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.84, 0);
  transition-delay: calc(var(--i) * 10ms);
}

@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

.loader.is-gone {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* ---------------------------------------------------------------- Cursor & grain */

.cursor {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .js .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1500;
    pointer-events: none;
  }
  .js body,
  .js a,
  .js button,
  .js label,
  .js input,
  .js textarea {
    cursor: none;
  }
}
.cursor-dot,
.cursor-ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  will-change: transform;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--accent);
  transition: opacity 0.2s ease, background-color 0.3s ease;
}
.cursor-ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(84, 84, 84, 0.45);
  transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out), margin 0.45s var(--ease-out), background-color 0.35s ease,
    border-color 0.35s ease;
}
.cursor.is-hover .cursor-ring {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(84, 84, 84, 0.08);
  border-color: rgba(84, 84, 84, 0.25);
}
.cursor.is-hover .cursor-dot {
  opacity: 0;
}
.cursor.on-dark .cursor-dot {
  background: var(--paper);
}
.cursor.on-dark .cursor-ring {
  border-color: rgba(244, 244, 244, 0.4);
}
.cursor.is-hidden .cursor-dot,
.cursor.is-hidden .cursor-ring {
  opacity: 0;
}

.grain {
  position: fixed;
  inset: -90px;
  z-index: 900;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-40px, 30px); }
  40% { transform: translate(30px, -60px); }
  60% { transform: translate(-60px, -15px); }
  80% { transform: translate(45px, 45px); }
  100% { transform: translate(0, 0); }
}

/* ---------------------------------------------------------------- Rolling link text */

.roll {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  vertical-align: top;
}
.roll > span {
  display: block;
  transition: transform 0.55s var(--ease-out);
}
.roll > span + span {
  position: absolute;
  left: 0;
  top: 100%;
}
a:hover .roll > span,
button:hover .roll > span,
a:focus-visible .roll > span {
  transform: translateY(-100%);
}

/* ---------------------------------------------------------------- Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px var(--gutter);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: transform 0.7s var(--ease-out), color 0.4s ease, opacity 0.6s ease;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(244, 244, 244, 0.86), rgba(244, 244, 244, 0));
  mask-image: linear-gradient(180deg, #000000 55%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000000 55%, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.site-header.is-scrolled::before {
  opacity: 1;
}
.site-header.on-dark {
  color: var(--paper);
}
.site-header.on-dark::before {
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.8), rgba(8, 8, 8, 0));
}
.site-header.is-hidden {
  transform: translateY(-120%);
}
.js .site-header {
  opacity: 0;
  transform: translateY(-60%);
}
.is-revealing .site-header {
  opacity: 1;
  transform: none;
  transition-delay: 0.55s, 0s, 0.55s;
}
.is-revealing .site-header.is-hidden {
  transform: translateY(-120%);
  transition-delay: 0s;
}

.nav {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
}
.nav-r {
  justify-content: flex-end;
}
.nav a {
  padding: 6px 0;
}

.brand {
  display: block;
  color: var(--ink);
  transition: color 0.4s ease;
}
.on-dark .brand {
  color: var(--paper);
}
.brand svg {
  height: 26px;
  width: auto;
  overflow: visible;
}
.brand .mk-moon {
  transition: transform 0.9s var(--ease-out);
  transform-box: fill-box;
  transform-origin: center;
}
.brand .mk-planet,
.brand .mk-moon {
  fill: var(--accent);
}
.on-dark .brand .mk-planet,
.on-dark .brand .mk-moon {
  fill: var(--silver);
}
/* the satellite carries on along its orbit */
.brand:hover .mk-moon {
  transform: translate(34px, 12px) scale(1.15);
}
.js .brand-text {
  display: none;
}

.menu-btn {
  display: none;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 96px var(--gutter) 36px;
  background: var(--space);
  color: var(--paper);
  clip-path: circle(0 at calc(100% - 36px) 36px);
  transition: clip-path 0.8s var(--ease-in-out);
}
.menu[hidden] {
  display: flex;
  visibility: hidden;
}
.menu.is-open {
  visibility: visible;
  clip-path: circle(150% at calc(100% - 36px) 36px);
}
.menu nav {
  display: grid;
  gap: 4px;
}
.menu nav a {
  overflow: hidden;
  font-size: clamp(48px, 15vw, 88px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.menu nav a span {
  display: block;
  transform: translateY(105%);
  transition: transform 0.8s var(--ease-out);
}
.menu.is-open nav a span {
  transform: none;
}
.menu.is-open nav a:nth-child(2) span { transition-delay: 0.06s; }
.menu.is-open nav a:nth-child(3) span { transition-delay: 0.12s; }
.menu.is-open nav a:nth-child(4) span { transition-delay: 0.18s; }
.menu-foot {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 244, 244, 0.5);
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: auto 1fr;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .nav {
    display: none;
  }
  .brand {
    grid-column: 1;
  }
  .brand svg {
    height: 22px;
  }
  .menu-btn {
    display: grid;
    gap: 6px;
    justify-self: end;
    width: 44px;
    height: 44px;
    place-content: center;
    border-radius: 50%;
    background: var(--ink);
  }
  .menu-btn span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--paper);
    transition: transform 0.5s var(--ease-out);
  }
  .menu-btn[aria-expanded="true"] span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }
  .menu-btn[aria-expanded="true"] span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }
  .menu-open .site-header {
    color: var(--paper);
  }
  .menu-open .brand {
    color: var(--paper);
  }
  .site-header.on-dark .menu-btn,
  .menu-open .menu-btn {
    background: var(--paper);
  }
  .site-header.on-dark .menu-btn span {
    background: var(--ink);
  }
  .menu-open .menu-btn span {
    background: var(--ink);
  }
}

/* ---------------------------------------------------------------- Buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.6s var(--ease-out);
}
.btn:hover::before {
  transform: none;
}
.btn-ghost {
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(13, 13, 13, 0.04);
}
.btn-ghost::before {
  background: var(--ink);
}
.btn-ghost:hover {
  color: var(--white);
  transition: color 0.3s ease 0.08s, transform 0.5s var(--ease-out);
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 30px -10px rgba(36, 80, 255, 0.6);
}
.btn-primary::before {
  background: var(--accent-2);
}
.btn-arrow {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.55s var(--ease-out);
}
.btn:hover .btn-arrow {
  transform: translateX(4px);
}
/* Pulses are a scaling ring (transform + opacity), which the GPU animates without repainting */
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  animation: ping 2.2s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.55; }
  75%, 100% { transform: scale(3.4); opacity: 0; }
}

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

.hero {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(124px, 16vh, 176px) var(--gutter) clamp(196px, 21vh, 220px);
  overflow: hidden;
}

.hero-spray,
.hero-mist {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-spray {
  will-change: transform;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  will-change: transform;
}

.hero-title {
  font-size: clamp(40px, 8.4vw, 138px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--ink-2);
  text-align: center;
}
.ht-line {
  display: block;
  white-space: nowrap;
}
.ht-w {
  display: inline-block;
  overflow: hidden;
  padding: 0.04em 0.02em 0.12em;
  margin: -0.04em -0.02em -0.12em;
  vertical-align: bottom;
}
.ht-w > span {
  display: inline-block;
}
.js .ht-w > span {
  transform: translateY(112%) rotate(4deg);
  transform-origin: left bottom;
}
.is-revealing .ht-w > span {
  transform: none;
  transition: transform 1.25s var(--ease-out);
  transition-delay: calc(0.12s + var(--i, 0) * 70ms);
}

.chip {
  --r: 0deg;
  position: relative;
  display: inline-block;
  width: 1.5em;
  height: 0.94em;
  margin: 0 0.1em;
  vertical-align: -0.1em;
  transform: rotate(var(--r));
  z-index: 1;
}
.js .chip {
  transform: scale(0) rotate(calc(var(--r) * 3));
}
.is-revealing .chip {
  transform: rotate(var(--r));
  transition: transform 1s var(--ease-back);
  transition-delay: calc(0.55s + var(--i, 0) * 110ms);
}
.chip-a { --r: 7deg; }
.chip-c { --r: -8deg; width: 1.36em; }
.chip-p2 { --r: 5deg; width: 1.6em; }

.chip-in {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0.14em;
  box-shadow: 0 0.12em 0.3em -0.08em rgba(13, 13, 13, 0.35), 0 0 0 0.012em rgba(13, 13, 13, 0.08);
  transition: transform 0.7s var(--ease-out), box-shadow 0.5s ease;
}
.chip:hover .chip-in {
  transform: scale(1.12) rotate(calc(var(--r) * -1));
  box-shadow: 0 0.25em 0.6em -0.15em rgba(13, 13, 13, 0.45);
}

.chip-a .chip-in {
  background: radial-gradient(90% 90% at 60% 40%, #1b1b1b, var(--space));
}
.chip-a img {
  position: absolute;
  inset: -8% 0 0 2%;
  width: 96%;
  height: auto;
  animation: drift 7s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(-3%, 2%) rotate(-4deg); }
  to { transform: translate(3%, -3%) rotate(3deg); }
}
/* The type-sample tile ("Aa") */
.chip-c .chip-in {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--fog), #d6d6d6);
}
/* Light and bold "Aa" cross-fade: an opacity animation, so it never triggers layout */
.type-spec {
  display: grid;
  font-size: 0.56em;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.type-spec b {
  grid-area: 1 / 1;
  text-align: center;
  font-weight: 300;
}
.type-spec b + b {
  font-weight: 800;
  opacity: 0;
  animation: weight 3.2s var(--ease-in-out) infinite alternate;
}
@keyframes weight {
  to {
    opacity: 1;
  }
}
.type-swatches {
  position: absolute;
  right: 0.08em;
  bottom: 0.08em;
  display: flex;
}
.type-swatches i {
  width: 0.09em;
  height: 0.09em;
  border-radius: 50%;
  margin-left: -0.025em;
  border: 0.01em solid rgba(255, 255, 255, 0.9);
  background: var(--ink);
}
.type-swatches i:nth-child(2) { background: var(--accent); }
.type-swatches i:nth-child(3) { background: var(--silver); }
.type-swatches i:nth-child(4) { background: var(--paper); }

/* Project miniature next to "websites": a slow drift keeps it feeling alive without costing layout */
.chip-p .chip-in {
  background: var(--space);
}
.chip-p img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: chip-pan 9s ease-in-out infinite alternate;
}
@keyframes chip-pan {
  from { transform: scale(1.02) translate(-1.5%, 0); }
  to { transform: scale(1.1) translate(1.5%, -1%); }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(40px, 7vh, 88px);
}
.js .hero-ctas > * {
  opacity: 0;
  transform: translateY(24px);
}
.is-revealing .hero-ctas > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease, transform 1s var(--ease-out);
  transition-delay: 0.85s;
}
.is-revealing .hero-ctas > * + * {
  transition-delay: 0.95s;
}

.hero-foot {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 96px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.js .hero-foot {
  opacity: 0;
}
.is-revealing .hero-foot {
  opacity: 1;
  transition: opacity 1s ease 1.2s;
}
.hero-foot b {
  color: var(--accent);
  font-weight: 500;
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.scroll-cue i {
  position: relative;
  width: 1px;
  height: 28px;
  overflow: hidden;
  background: var(--line);
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  animation: cue 1.8s var(--ease-in-out) infinite;
}
@keyframes cue {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

@media (max-width: 760px) {
  .hero {
    padding-bottom: 150px;
  }
}
@media (max-width: 600px) {
  .hero-title {
    font-size: 9.4vw;
    line-height: 1.12;
  }
  .hero-foot {
    bottom: 78px;
  }
  .hero-disciplines {
    display: none;
  }
}

/* ---------------------------------------------------------------- Work */

.work {
  position: relative;
  z-index: 3;
}
.work-sheet {
  position: relative;
  padding: clamp(80px, 10vw, 140px) var(--gutter) clamp(56px, 7vw, 96px);
  background: var(--surface);
}

.work-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 32px;
  max-width: 1320px;
  margin: 0 auto;
}
.work-title {
  font-size: clamp(42px, 5.4vw, 84px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--ink-2);
}
.wt-row {
  display: block;
}
.badge {
  display: inline-grid;
  place-items: center;
  width: 0.82em;
  height: 0.82em;
  margin: 0 0.06em;
  vertical-align: -0.06em;
  border-radius: 0.2em;
  background: var(--accent);
  color: var(--on-accent);
  transform: rotate(-8deg);
  box-shadow: 0 0.15em 0.3em -0.1em rgba(36, 80, 255, 0.5);
  animation: wobble 4s var(--ease-in-out) infinite;
}
.badge svg {
  width: 62%;
  height: auto;
}
@keyframes wobble {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(6deg) translateY(-0.04em); }
}
.work-intro {
  justify-self: end;
  max-width: 36ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* Projects: full-bleed cinematic mockups stacked edge to edge */
.cases {
  position: relative;
  display: grid;
  gap: 4px;
  background: var(--space);
}
.case {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%; /* in a grid, aspect-ratio + max-height would otherwise shrink the width to match */
  aspect-ratio: var(--ar, 2400 / 1400);
  max-height: 92vh;
  background: var(--space);
}
.case-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.case-media > img,
.case-media > video {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  max-width: none;
  object-fit: cover;
  transform: translate3d(0, var(--py, 0), 0) scale(var(--ps, 1.04));
  will-change: transform;
}
.case-tag {
  position: absolute;
  left: clamp(10px, 1.4vw, 20px);
  bottom: clamp(10px, 1.4vw, 20px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  background: var(--space);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
}
.case-tag b {
  font-weight: 500;
}
.case-tag i {
  font-style: normal;
  color: rgba(244, 244, 244, 0.45);
}
.case-tag em {
  font-style: normal;
  color: var(--silver);
}
a.case .case-tag {
  transition: padding 0.5s var(--ease-out), background-color 0.4s ease;
}
a.case:hover .case-tag {
  padding-right: 18px;
  background: var(--paper);
  color: var(--ink);
}
/* Small arrow on cards that open a live site in a new tab */
.case-ext {
  width: 12px;
  height: 12px;
  margin-left: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.5s var(--ease-out);
}
a.case:hover .case-ext {
  transform: translate(2px, -2px);
}
a.case:hover .case-tag em {
  color: var(--ink);
}

.cases-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  padding: clamp(28px, 4vw, 44px) var(--gutter);
  background: var(--space);
  color: rgba(244, 244, 244, 0.7);
  font-size: 15px;
  text-align: center;
}
.cases-note .mono {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--silver);
}
.cases-note a {
  color: var(--paper);
  font-weight: 600;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  position: relative;
  background: currentColor;
}

@media (max-width: 760px) {
  .case {
    aspect-ratio: 16 / 10.5;
  }
  .case-tag {
    font-size: 9.5px;
    padding: 6px 9px;
  }
}

@media (max-width: 860px) {
  .work-head {
    grid-template-columns: 1fr;
  }
  .work-intro {
    justify-self: start;
  }
}

/* ---------------------------------------------------------------- Marquee */

.marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px) 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}
.marquee-track span {
  padding: 0 0.42em;
  font-size: clamp(36px, 5.6vw, 88px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink-2);
}
.marquee-track span:nth-of-type(3n + 2) {
  color: transparent;
  -webkit-text-stroke: 1px var(--ink-2);
}
.marquee-track i {
  flex: none;
  position: relative;
  width: clamp(26px, 3vw, 44px);
  height: clamp(26px, 3vw, 44px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7d95ff, var(--accent) 45%, #0c1660);
}
.marquee-track i::after {
  content: "";
  position: absolute;
  inset: 32% -28%;
  border: 1.5px solid var(--silver);
  border-radius: 50%;
  transform: rotate(-22deg);
}

/* ---------------------------------------------------------------- Services */

/* First sheet after the hero: rounded top that slides over the hero, like the reference */
.services {
  position: relative;
  z-index: 3;
  margin-top: -64px;
  padding: clamp(80px, 10vw, 140px) var(--gutter) clamp(120px, 14vw, 200px);
  border-radius: var(--radius) var(--radius) 0 0;
  background:
    radial-gradient(60% 280px at 82% 0%, rgba(220, 228, 255, 0.85), transparent 70%),
    radial-gradient(70% 300px at 18% 0%, rgba(236, 228, 214, 0.95), transparent 72%),
    var(--surface);
  box-shadow: 0 -24px 60px -30px rgba(13, 13, 13, 0.18);
}
.services-title {
  text-align: center;
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink-2);
}

.svc-stack {
  position: relative;
  max-width: 1180px;
  margin: clamp(56px, 7vw, 96px) auto 0;
}
.svc {
  position: relative;
  width: min(660px, 60%);
  padding: clamp(24px, 2.6vw, 36px) clamp(24px, 2.8vw, 40px) clamp(28px, 3vw, 40px);
  border-radius: var(--radius);
  will-change: transform;
  transition: box-shadow 0.5s ease;
}
.svc-1 {
  z-index: 1;
  margin-left: 2%;
  background: var(--cloud);
}
.svc-2 {
  z-index: 2;
  margin: -34px 0 0 22%;
  background: var(--white);
  box-shadow: 0 30px 60px -30px rgba(13, 13, 13, 0.25), inset 0 0 0 1px var(--line);
}
.svc-3 {
  z-index: 3;
  margin: -34px 0 0 38%;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 40px 80px -30px rgba(26, 59, 214, 0.55);
}
.svc:hover {
  z-index: 5;
}
.svc-name {
  font-size: clamp(28px, 3.3vw, 48px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.svc-num {
  font-variant-numeric: tabular-nums;
  margin-right: 0.14em;
}
.svc-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  margin-top: clamp(28px, 3.2vw, 48px);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.svc-3 .svc-body {
  color: var(--on-accent);
  opacity: 0.9;
}
.svc-body p {
  max-width: 34ch;
}
.svc-body ul {
  font-size: 12.5px;
  line-height: 1.6;
  font-weight: 500;
}
.svc-body li {
  position: relative;
  padding-left: 14px;
}
.svc-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.6;
}

.svc-art {
  position: absolute;
  pointer-events: auto;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Brand board, card 01 */
.art-brand {
  top: -12px;
  right: max(-230px, -38%);
  width: clamp(170px, 19vw, 250px);
  aspect-ratio: 1.3;
}
.ab-card {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 40px -18px rgba(13, 13, 13, 0.45);
  transition: transform 0.8s var(--ease-out);
}
.ab-dark {
  z-index: 3;
  display: grid;
  place-items: center;
  background: radial-gradient(90% 90% at 70% 20%, #232323, var(--space));
  color: var(--paper);
  transform: rotate(8deg);
}
.ab-dark span {
  width: 44%;
}
.ab-dark svg {
  width: 100%;
  height: auto;
}
.ab-light {
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px;
  background: var(--paper);
  transform: rotate(-4deg) translate(-26%, 8%);
}
.ab-light b {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.ab-sw {
  display: flex;
  gap: 4px;
}
.ab-sw i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
}
.ab-sw i:nth-child(2) { background: var(--accent); }
.ab-sw i:nth-child(3) { background: var(--silver); }
.ab-blue {
  z-index: 1;
  background: var(--accent);
  transform: rotate(-14deg) translate(-38%, -2%);
}
.ab-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 14px 14px;
}
.svc-1:hover .ab-dark { transform: rotate(2deg) translate(6%, -6%); }
.svc-1:hover .ab-light { transform: rotate(-9deg) translate(-36%, 10%); }
.svc-1:hover .ab-blue { transform: rotate(-20deg) translate(-56%, -4%); }

/* Code window, card 03 */
.art-dev {
  top: -26px;
  left: max(-250px, -42%);
  width: clamp(200px, 22vw, 280px);
}
.code-win {
  position: relative;
  z-index: 2;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #0e1530;
  box-shadow: 0 30px 50px -20px rgba(13, 13, 13, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotate(-7deg);
  transition: transform 0.8s var(--ease-out);
}
.cw-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.04);
}
.cw-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5f57;
}
.cw-bar i:nth-child(2) { background: #febc2e; }
.cw-bar i:nth-child(3) { background: #28c840; }
.cw-bar em {
  margin-left: 8px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.45);
}
.cw-code {
  display: block;
  min-height: 132px;
  padding: 10px 12px 14px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
  white-space: pre;
  color: #c9d1ff;
}
.cw-code .k { color: #7d95ff; }
.cw-code .f { color: var(--silver); }
.cw-code .s { color: #f4efe6; }
.cw-code .n { color: #ffcf8a; }
.cw-code .c { color: rgba(255, 255, 255, 0.35); }
.cw-caret {
  display: inline-block;
  width: 6px;
  height: 11px;
  vertical-align: -2px;
  background: var(--silver);
  animation: pulse 0.9s steps(1) infinite;
}
.dev-preview {
  position: absolute;
  z-index: 3;
  left: -14%;
  bottom: -24%;
  display: grid;
  gap: 5px;
  width: 52%;
  padding: 10px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 20px 36px -14px rgba(13, 13, 13, 0.5);
  transform: rotate(6deg);
  transition: transform 0.8s var(--ease-out);
}
.dp-orb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #93a6ff, var(--accent) 50%, #0c1660);
  animation: float 3s ease-in-out infinite alternate;
}
@keyframes float {
  to { transform: translateY(-4px); }
}
.dev-preview b {
  height: 5px;
  border-radius: 3px;
  background: var(--paper-2);
}
.dev-preview b + b {
  width: 60%;
}
.svc-3:hover .code-win { transform: rotate(-3deg) translateY(-6px); }
.svc-3:hover .dev-preview { transform: rotate(0deg) translate(8px, -4px); }

@media (min-width: 901px) {
  .art-dev {
    top: auto;
    bottom: -48px;
  }
}
@media (max-width: 900px) {
  .svc {
    width: 100%;
    margin-left: 0;
  }
  .svc-2,
  .svc-3 {
    margin-top: -18px;
  }
  .svc-1 {
    padding-top: 30px;
  }
  .svc-1,
  .svc-2 {
    padding-bottom: 46px;
  }
  .svc-body {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .svc-1 {
    margin-top: 56px;
  }
  .art-brand {
    top: -62px;
    right: 4px;
    width: 104px;
  }
  .ab-light b {
    font-size: 22px;
  }
  .ab-sw i {
    width: 8px;
    height: 8px;
  }
  .art-dev {
    top: auto;
    bottom: 24px;
    left: auto;
    right: 18px;
    width: 150px;
  }
  .svc-3 {
    padding-bottom: 150px;
  }
  .cw-code {
    min-height: 90px;
    font-size: 7.5px;
  }
}

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

.process {
  position: relative;
  z-index: 3;
  background: var(--paper);
}
.process-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 104px);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(96px, 12vw, 168px) var(--gutter) clamp(96px, 11vw, 160px);
}
.process-head {
  position: sticky;
  top: 120px;
  align-self: start;
}
.eyebrow {
  color: var(--accent);
  margin-bottom: 18px;
}
.process-title {
  max-width: 11ch;
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--ink-2);
}

/* Step index: a line fills and the current step lights up as the cards stack */
.process-index {
  position: relative;
  display: grid;
  gap: 6px;
  margin-top: clamp(36px, 5vw, 72px);
  padding-left: 24px;
}
.process-index::before,
.process-index::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.process-index::after {
  left: -0.5px;
  width: 2px;
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(var(--p, 0));
}
.process-index li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: rgba(21, 29, 48, 0.28);
  transition: color 0.5s ease, transform 0.7s var(--ease-out);
}
.process-index i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.process-index li.is-active {
  color: var(--ink-2);
  transform: translateX(10px);
}
.process-index li.is-active i {
  color: var(--accent);
}

/* Cards pin near the top and the next one slides over them. Each deepens in colour toward launch. */
.steps {
  display: block;
}
/* Keeps the finished stack pinned for a beat before the section scrolls away */
.steps::after {
  content: "";
  display: block;
  height: 22vh;
}
.step {
  --q: 0;
  position: sticky;
  top: calc(112px + var(--n) * 22px);
  display: flex;
  flex-direction: column;
  min-height: min(480px, 64vh);
  margin-bottom: 20px;
  padding: clamp(26px, 2.8vw, 40px);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink-2);
  background: var(--surface);
  box-shadow: 0 -14px 44px -20px rgba(16, 24, 43, 0.3), inset 0 0 0 1px var(--line);
  transform-origin: 50% 0;
  will-change: transform;
}
/* The card underneath darkens slightly as the next one covers it */
.step::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--space);
  opacity: calc(var(--q) * 0.14);
  pointer-events: none;
}
.step:nth-child(2) {
  background: var(--cloud);
}
.step:nth-child(3) {
  background: var(--accent);
  color: var(--on-accent);
}
.step:nth-child(4) {
  margin-bottom: 0;
  background: var(--space);
  color: var(--paper);
}
.step-num {
  position: relative;
  z-index: 1;
  opacity: 0.6;
}
.step-big {
  position: absolute;
  top: 8px;
  right: clamp(16px, 2vw, 28px);
  font-size: clamp(110px, 12vw, 190px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.06em;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px currentColor;
  opacity: 0.4;
}
.step h3 {
  position: relative;
  margin: auto 0 12px;
  padding-top: 64px;
  font-size: clamp(38px, 4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: inherit;
}
.step p {
  position: relative;
  max-width: 38ch;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
  opacity: 0.85;
}
.step-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.step-tags li {
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px currentColor;
  opacity: 0.8;
}

@media (max-width: 960px) {
  .process-inner {
    display: block;
    padding-top: 96px;
    padding-bottom: 96px;
  }
  .process-head {
    position: static;
    margin-bottom: 28px;
  }
  .process-title {
    max-width: none;
  }
  .process-index {
    display: none;
  }
  .step {
    top: calc(84px + var(--n) * 14px);
    min-height: min(380px, 56vh);
    margin-bottom: 18px;
    padding: 26px 24px 24px;
  }
  .step h3 {
    padding-top: 56px;
    font-size: 40px;
  }
  .step-big {
    right: 18px;
    font-size: 120px;
  }
}

/* ---------------------------------------------------------------- Launch */

.launch {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: clamp(88px, 9vw, 140px) var(--gutter);
  overflow: hidden;
  background: var(--space);
  color: var(--paper);
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: calc(var(--radius) * -1);
}
.launch-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.launch-planet {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1100px, 120vw);
  max-width: none;
  height: auto;
  margin: calc(min(1100px, 120vw) * -0.4) 0 0 calc(min(1100px, 120vw) * -0.5);
  opacity: 0.55;
  will-change: transform;
  pointer-events: none;
}
.launch-inner {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
}
.launch .eyebrow {
  color: var(--silver);
}
.launch-title {
  font-size: clamp(46px, 8.6vw, 148px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  text-shadow: 0 10px 60px rgba(8, 8, 8, 0.6);
}
.launch-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(40px, 6vh, 64px);
}
.btn-lg {
  height: 58px;
  padding: 0 32px;
  font-size: 16px;
}
.btn-outline {
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(244, 239, 230, 0.35);
}
.btn-outline::before {
  background: var(--paper);
}
.btn-outline:hover {
  color: var(--ink);
  transition: color 0.3s ease 0.08s, transform 0.5s var(--ease-out);
}

/* ---------------------------------------------------------------- Footer */

.footer {
  position: relative;
  z-index: 3;
  padding: 72px var(--gutter) 28px;
  background: var(--space);
  color: rgba(244, 244, 244, 0.72);
  font-size: 15px;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(244, 244, 244, 0.07) 1px, transparent 1px);
  background-size: calc((100% - var(--gutter) * 2) / 4) 100%;
  background-position: var(--gutter) 0;
  mask-image: linear-gradient(180deg, #000000, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000000, transparent 85%);
}
.footer-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  color: rgba(244, 244, 244, 0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 32px;
  padding-top: 36px;
  border-top: 1px solid rgba(244, 244, 244, 0.12);
}
.footer-col {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
}
.footer-col a {
  color: var(--paper);
}
.footer-k {
  margin-bottom: 8px;
  color: rgba(244, 244, 244, 0.4);
}
.to-top {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(244, 244, 244, 0.25);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.to-top svg {
  width: 20px;
  fill: none;
  stroke: var(--paper);
  stroke-width: 1.6;
}
.to-top:hover svg {
  stroke: var(--ink);
}
.to-top:hover {
  background: var(--paper);
  border-color: var(--paper);
}
.footer-word {
  margin: clamp(56px, 8vw, 120px) 0 22px;
  color: var(--paper);
}
.footer-word svg {
  width: 100%;
  height: auto;
}
.footer-word .wm-l {
  transform: translateY(190px);
  transition: transform 1.2s var(--ease-out);
  transition-delay: calc(var(--i) * 34ms);
}
.footer-word.is-in .wm-l {
  transform: none;
}
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(244, 244, 244, 0.45);
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-top {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .footer-base {
    flex-direction: column;
  }
}

/* ---------------------------------------------------------------- Scroll reveals */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s ease, transform 1.2s var(--ease-out);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.split-w {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
  vertical-align: bottom;
}
.split-w > span {
  display: inline-block;
}
.js [data-split] .split-w > span {
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i) * 60ms);
}
.js [data-split].is-in .split-w > span {
  transform: none;
}
.js [data-split] .badge {
  transform: scale(0) rotate(-30deg);
  animation: none;
  transition: transform 0.9s var(--ease-back) 0.3s;
}
.js [data-split].is-in .badge {
  transform: rotate(-8deg);
  animation: wobble 4s var(--ease-in-out) 1.3s infinite;
}

/* ---------------------------------------------------------------- Contact page */

.contact {
  position: relative;
  min-height: 100vh;
  padding: clamp(120px, 16vh, 168px) var(--gutter) clamp(72px, 10vw, 120px);
  overflow: hidden;
}
.contact .hero-spray,
.contact .hero-mist {
  position: absolute;
}
.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr minmax(0, 620px);
  gap: clamp(40px, 6vw, 96px);
  max-width: 1320px;
  margin: 0 auto;
}
.contact-title {
  font-size: clamp(44px, 6.6vw, 104px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--ink-2);
}
.contact-title {
  text-align: left;
}
.contact-title .chip {
  width: 1.3em;
}
.contact-lede {
  max-width: 40ch;
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}
.contact-meta {
  display: grid;
  gap: 22px;
  margin-top: 48px;
}
.contact-meta div {
  display: grid;
  gap: 4px;
}
.contact-meta .mono {
  color: var(--muted);
}
.contact-meta a,
.contact-meta span:not(.mono) {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.form {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 80px -40px rgba(13, 13, 13, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 0 1px var(--line);
}
.js .form {
  opacity: 0;
  transform: translateY(40px);
}
.is-revealing .form {
  opacity: 1;
  transform: none;
  transition: opacity 1s ease 0.6s, transform 1.2s var(--ease-out) 0.6s;
}
/* Three short steps with a progress bar. Without scripts every step shows at once. */
.steps-bar {
  display: flex;
  gap: 18px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.steps-bar li {
  transition: color 0.4s ease;
}
.steps-bar li > span:first-child {
  margin-right: 4px;
  opacity: 0.6;
}
.steps-bar .is-current,
.steps-bar .is-done {
  color: var(--ink);
}
.steps-track {
  height: 2px;
  margin-bottom: 30px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.steps-track span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(var(--p, 0.3333));
  transform-origin: left;
  transition: transform 0.7s var(--ease-out);
}
.js .form-step:not(.is-active) {
  display: none;
}
.js .form-step.is-active {
  animation: step-in 0.6s var(--ease-out);
}
.form-step.is-back {
  animation-name: step-back;
}
@keyframes step-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
}
@keyframes step-back {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
}
.step-title {
  margin: 0 0 26px;
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  outline: none;
}
.fieldset legend em,
.field label em {
  margin-left: 6px;
  font-style: normal;
  opacity: 0.55;
}
.field-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.field-error {
  display: none;
  margin-top: 8px;
  font-size: 12px;
  color: #c62828;
}
.is-invalid > .field-error {
  display: block;
}
.fieldset.is-invalid .pill span {
  box-shadow: inset 0 0 0 1px rgba(229, 72, 77, 0.55);
}
.fieldset-last {
  margin: 26px 0 0;
}
.form-step .fields + .fieldset {
  margin-top: 26px;
}
.fieldset {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}
.fieldset legend,
.field label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  position: relative;
}
.pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pill span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.4s var(--ease-back);
}
.pill span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.25;
  transition: opacity 0.3s ease, transform 0.4s var(--ease-back);
}
.pill:hover span {
  box-shadow: inset 0 0 0 1px rgba(13, 13, 13, 0.3);
}
.pill input:checked + span {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 20px -8px rgba(84, 84, 84, 0.7);
}
.pill input:checked + span::before {
  opacity: 1;
  transform: scale(1.3);
}
.pill input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
}
.field {
  position: relative;
}
.field-wide {
  grid-column: 1 / -1;
}
.field input,
.field textarea {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(13, 13, 13, 0.18);
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  resize: none;
}
.field textarea {
  min-height: 92px;
  line-height: 1.5;
}
.field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out);
}
.field:focus-within::after {
  transform: none;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(13, 13, 13, 0.28);
}
.field.is-invalid input,
.field.is-invalid textarea {
  border-bottom-color: #e5484d;
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
}
/* hidden from people; bots that fill it in are ignored */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-error {
  margin-top: 26px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(214, 48, 48, 0.08);
  color: #b3261e;
  font-size: 14px;
}
.form-error[hidden] {
  display: none;
}
.form-error + .form-foot {
  margin-top: 18px;
}
.form-note {
  max-width: 32ch;
  font-size: 13px;
  color: var(--muted);
}
.send {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 10px 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  isolation: isolate;
}
.send::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease-out);
}
.send:hover::before {
  transform: none;
}
.send-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  overflow: hidden;
}
.send-orb svg {
  width: 16px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  transition: transform 0.6s var(--ease-out);
}
.send:hover .send-orb svg {
  transform: rotate(45deg);
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px;
  font-weight: 600;
  transition: box-shadow 0.3s ease;
}
.btn-back:hover {
  box-shadow: inset 0 0 0 1px rgba(13, 13, 13, 0.35);
}
.btn-back svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.btn-back[hidden],
.form-note[hidden] {
  display: none;
}
.form-foot .send {
  margin-left: auto;
}
.send:disabled {
  cursor: progress;
}
.send.is-launching .send-orb svg {
  transform: translate(160%, -160%);
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.84, 0);
}

.form-done {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 32px;
  border-radius: inherit;
  background: var(--space);
  color: var(--paper);
  text-align: center;
  clip-path: circle(0 at 85% 90%);
  transition: clip-path 1s var(--ease-in-out);
}
.form-done img {
  width: 180px;
  height: auto;
  animation: drift 6s ease-in-out infinite alternate;
}
.form-done h2 {
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.form-done p {
  max-width: 34ch;
  color: rgba(244, 244, 244, 0.65);
}
.form-done .btn {
  margin-top: 10px;
}
.form.is-sent .form-done {
  clip-path: circle(150% at 85% 90%);
}

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .fields {
    grid-template-columns: 1fr;
  }
  .send {
    width: 100%;
    justify-content: space-between;
  }
  .form-foot .send {
    flex: 1;
    width: auto;
  }
  .form-note {
    order: -1;
    flex-basis: 100%;
  }
  .steps-bar li:not(.is-current) .lbl {
    display: none;
  }
}

.contact-footer {
  padding-top: 28px;
}

/* Decorative loops stop while their section is off-screen */
.is-paused,
.is-paused *,
.is-paused *::before,
.is-paused *::after {
  animation-play-state: paused !important;
}

/* ---------------------------------------------------------------- Case study page */

/* Same-origin page changes cross-fade, and the project render morphs from the work card into the page cover */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
}
::view-transition-group(*) {
  animation-duration: 0.85s;
  animation-timing-function: cubic-bezier(0.7, 0, 0.2, 1);
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-timing-function: ease;
}
/* Every project render shares one class, so a new project needs no extra transition CSS */
.case-media,
.project-cover {
  view-transition-class: project;
}
::view-transition-old(*.project),
::view-transition-new(*.project) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Case-study pages are Moonshot navy with cobalt as the feature colour; only the tile images carry a client's colours */
.project {
  background: var(--space);
  color: var(--paper);
  padding-bottom: var(--radius); /* the closing section's rounded top overlaps this strip, not the last tiles */
}
body:has(.project) {
  background: var(--space); /* no cream flash when the page overscrolls */
}
.project-intro {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(116px, 15vh, 168px) var(--gutter) clamp(36px, 5vw, 64px);
}
.project-back {
  display: inline-flex;
  margin-bottom: clamp(24px, 3vw, 40px);
  color: rgba(244, 239, 230, 0.6);
}
.project-title {
  font-size: clamp(52px, 10vw, 168px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.96;
  color: var(--paper);
}
.project-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
  margin: clamp(36px, 5vw, 72px) 0 0;
  border-top: 1px solid rgba(244, 239, 230, 0.18);
}
.project-meta div {
  padding: 16px 0 0;
}
.project-meta dt {
  color: rgba(244, 239, 230, 0.55);
}
.project-meta dd {
  margin: 6px 0 0;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--paper);
}

.project-cover {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: var(--ar, 2400 / 1400);
  max-height: 92vh;
  background: var(--space);
}
.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px clamp(32px, 6vw, 104px);
  padding: clamp(64px, 9vw, 128px) max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter)));
  background: var(--accent);
  color: var(--on-accent);
}
.project-about-label {
  color: rgba(255, 255, 255, 0.7);
}
.project-about-body {
  display: grid;
  gap: 20px;
  max-width: 62ch;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}
.project-lede {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--on-accent);
}

/* Brand and website tiles, edge to edge with hairline gaps */
.board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--space);
}
.tile {
  grid-column: span 1;
  margin: 0;
  overflow: hidden;
  background: var(--space); /* a Moonshot colour while the image loads, never a client's */
}
.tile-wide {
  grid-column: 1 / -1;
}
.tile-btn {
  display: block;
  width: 100%;
}
.tile img {
  width: 100%;
  height: auto;
  transition: transform 1.4s var(--ease-out), opacity 0.9s ease;
}
.js .tile img {
  opacity: 0;
  transform: scale(1.06);
}
.js .tile.is-in img {
  opacity: 1;
  transform: none;
}
.js .tile.is-in .tile-btn:hover img {
  transform: scale(1.025);
}

/* "Next project": fills the last empty half-slot, or spans its own row; Moonshot cobalt */
.tile-next {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(10px, 1.6vw, 24px);
  padding: clamp(12px, 2.4vw, 40px);
  background: var(--accent);
  color: var(--on-accent);
  overflow: hidden;
}
.tile-next-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "label media" "title media";
  column-gap: clamp(24px, 5vw, 80px);
}
.tile-next-label {
  grid-area: label;
  color: rgba(255, 255, 255, 0.7);
}
.tile-next-media {
  grid-area: media;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: clamp(8px, 1vw, 14px);
  background: var(--space);
  view-transition-class: project;
}
.tile-next-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.tile-next:hover .tile-next-media img {
  transform: scale(1.05);
}
.tile-next-title {
  grid-area: title;
  align-self: end;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: clamp(17px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.tile-next-wide .tile-next-title {
  font-size: clamp(30px, 5.4vw, 92px);
  justify-content: flex-start;
  gap: 0.3em;
}
.tile-next-title i {
  font-style: normal;
  color: var(--on-accent);
  transition: transform 0.6s var(--ease-out);
}
.tile-next:hover .tile-next-title i {
  transform: translateX(8px);
}

/* Full-screen viewer, so the small tiles can be read on a phone */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: rgba(11, 17, 34, 0.96);
  color: var(--paper);
}
.lb-open {
  overflow: hidden;
}
/* The viewer sits above the custom cursor, so give it the native one */
.js .lightbox,
.js .lightbox .lb-figure {
  cursor: zoom-out;
}
.js .lightbox .lb-img {
  cursor: default;
}
.js .lightbox button {
  cursor: pointer;
}
.lightbox::backdrop {
  background: rgba(11, 17, 34, 0.7);
}
.lightbox[open] {
  display: grid;
  grid-template-rows: 1fr auto;
  animation: lb-in 0.4s var(--ease-out);
}
@keyframes lb-in {
  from { opacity: 0; }
}
.lb-figure {
  display: grid;
  place-items: center;
  min-height: 0;
  margin: 0;
  padding: clamp(56px, 8vh, 80px) clamp(12px, 3vw, 48px) 8px;
}
.lb-img {
  max-width: 100%;
  max-height: calc(100vh - 176px);
  max-height: calc(100dvh - 176px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}
.lb-close {
  position: absolute;
  top: 18px;
  right: clamp(16px, 3vw, 40px);
  z-index: 2;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.12);
  color: var(--paper);
}
.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px clamp(16px, 3vw, 40px) max(18px, env(safe-area-inset-bottom));
}
.lb-nav {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.12);
  color: var(--paper);
}
.lb-close:hover,
.lb-nav:hover {
  background: var(--paper);
  color: var(--ink);
}
.lb-caption {
  display: flex;
  gap: 12px;
  margin: 0;
  color: rgba(244, 239, 230, 0.6);
  text-align: center;
}
.lb-caption b {
  font-weight: 500;
  color: var(--paper);
}

@media (max-width: 760px) {
  .tile-next-label {
    font-size: 9px;
  }
  .tile-next-wide {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: "label" "media" "title";
    row-gap: 14px;
  }
  .project-meta {
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }
  .project-meta div:last-child {
    grid-column: 1 / -1;
    padding-bottom: 4px;
  }
  .project-cover {
    aspect-ratio: 16 / 10.5;
  }
  .project-about {
    grid-template-columns: 1fr;
  }
  .lb-caption {
    flex-direction: column;
    gap: 2px;
  }
}

/* ---------------------------------------------------------------- Legal pages and 404 */

.legal {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 104px);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(120px, 16vh, 168px) var(--gutter) clamp(72px, 9vw, 128px);
}
.legal-head {
  position: sticky;
  top: 112px;
  align-self: start;
}
.legal-title {
  font-size: clamp(44px, 5.4vw, 84px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink-2);
}
.legal-updated {
  margin-top: 18px;
  color: var(--muted);
}
.legal-toc {
  margin-top: clamp(28px, 4vw, 56px);
}
.legal-toc ol {
  display: grid;
  gap: 8px;
  font-size: 14px;
  counter-reset: toc;
}
.legal-toc li {
  counter-increment: toc;
}
.legal-toc li::before {
  content: counter(toc, decimal-leading-zero);
  margin-right: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
}
.legal-toc a {
  color: var(--muted);
  transition: color 0.3s ease;
}
.legal-toc a:hover {
  color: var(--accent);
}
.legal-body {
  max-width: 68ch;
}
.legal-body section {
  scroll-margin-top: 110px;
}
.legal-body section + section {
  margin-top: clamp(32px, 4vw, 56px);
}
.legal-body h2 {
  margin-bottom: 14px;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink-2);
}
.legal-body p,
.legal-body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}
.legal-body p + p {
  margin-top: 14px;
}
.legal-body ul {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-left: 1.2em;
  list-style: disc;
}
.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-body code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--cloud);
  font-family: var(--mono);
  font-size: 0.9em;
}
.legal-summary {
  margin-bottom: clamp(32px, 4vw, 56px);
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--radius);
  background: var(--cloud);
}
.legal-summary .mono {
  margin-bottom: 8px;
  color: var(--accent);
}
.legal-summary ul {
  margin-top: 0;
}

.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  color: rgba(244, 239, 230, 0.7);
}
.footer-legal a:hover {
  color: var(--paper);
}

.notfound {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 120px var(--gutter) 80px;
  overflow: hidden;
  background: var(--space);
  color: var(--paper);
  text-align: center;
}
.notfound-planet {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(980px, 120vw);
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.45;
  pointer-events: none;
}
.notfound-inner {
  position: relative;
  display: grid;
  justify-items: center;
}
.notfound .eyebrow {
  color: var(--silver);
}
.notfound-title {
  font-size: clamp(52px, 11vw, 168px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.96;
  text-shadow: 0 10px 60px rgba(8, 8, 8, 0.6);
}
.notfound-copy {
  max-width: 36ch;
  margin-top: 22px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgba(244, 239, 230, 0.7);
}

@media (max-width: 960px) {
  .legal {
    display: block;
  }
  .legal-head {
    position: static;
    margin-bottom: 36px;
  }
}

/* ---------------------------------------------------------------- Reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .loader {
    display: none !important;
  }
  .grain {
    animation: none;
  }
  @view-transition {
    navigation: none;
  }
}
