@font-face {
  font-family: "La Femme Makita";
  src: url("assets/LaFemmeMakita.otf") format("opentype");
  font-display: swap;
}

:root {
  --ink: #000000;
  --white: #ffffff;
  --navy: #10284c;      /* logo */
  --wordmark: #1c385c;  /* logo_text.png */
  --boot: #1e1e1e;      /* loading screen grey */
  --sun: #f4e27c;       /* centre of the hero's light */
  --steel-dark: linear-gradient(135deg, #4a6587 0%, #233a5c 45%, #182a45 70%, #36507a 100%);
  --steel-lo: #a9bccf;
  --gutter: clamp(16px, 1.6vw, 28px);
  --pill-h: 36px;
  /* How far the menu and Let's chat buttons lean */
  --lean: -14deg;
  /* Space the fixed scroll bar and menu row take up; page text starts below it */
  --chrome-h: 78px;
  --grotesk: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.65, 0, .35, 1);
}

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

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: #b9cde6;
  color: var(--ink);
  font-family: var(--grotesk);
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
}

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
[data-tone="dark"] :focus-visible { outline-color: var(--sun); }

/* Sky: mirrored copies of the painting side by side, slid by main.js */

.sky {
  position: fixed;
  inset: 0;
  display: flex;
  will-change: transform;
}
.sky img {
  flex: none;
  height: 100%;
  width: auto;
}
.sky img:nth-child(even) { transform: scaleX(-1); }

/* Loading screen */

.boot { display: none; }
.js .boot {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: block;
  pointer-events: none;
}
.boot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--boot);
  transition: opacity 1s ease;
}
.boot.is-done::before { opacity: 0; }

.boot-count {
  position: absolute;
  right: var(--gutter);
  bottom: 3vh;
  color: var(--white);
  font-size: clamp(48px, 5vw, 84px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: opacity .3s;
}
.boot.is-done .boot-count { opacity: 0; }

.boot-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(46vw, 600px);
  aspect-ratio: 5 / 1;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
}
.boot-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.boot-back { transform: rotateY(180deg); }
.boot-back img { display: block; height: 100%; width: auto; }

.boot-word {
  color: var(--white);
  font-family: "La Femme Makita", var(--grotesk);
  font-weight: 400;
  font-size: calc(min(46vw, 600px) / 5.1);
  line-height: 1;
  white-space: nowrap;
  transition: color 1s ease;
  animation: thump .56s cubic-bezier(.2, .7, .3, 1) infinite;
}
.boot.is-done .boot-word { color: var(--wordmark); animation: none; }

/* A speaker cone: a hard push out, a small rebound, then rest */
@keyframes thump {
  0% { transform: scale(1); }
  14% { transform: scale(1.09); }
  32% { transform: scale(.975); }
  48% { transform: scale(1.025); }
  70%, 100% { transform: scale(1); }
}

/* The page waits behind the loading screen */
.is-booting .chrome,
.is-booting .opening { opacity: 0; }
.chrome, .opening { transition: opacity .8s ease; }
.is-booting .logo,
.is-handing .logo { opacity: 0; transition: none; }

/* Fixed top chrome: scroll bar, then the menu row */

.chrome {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.chrome > * { pointer-events: auto; }

.rail {
  height: 26px;
  display: flex;
  align-items: center;
  cursor: grab;
  touch-action: none;
}
.rail.is-dragging { cursor: grabbing; }
.rail:focus-visible { outline-offset: -2px; }

.rail-line {
  --rail: 16, 40, 76;
  position: relative;
  width: 100%;
  height: 1px;
  background: rgba(var(--rail), .35);
  transition: background-color .35s;
}
[data-tone="dark"] .rail-line { --rail: 255, 255, 255; background: rgba(var(--rail), .4); }

.rail-tick, .rail-dot {
  position: absolute;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: background-color .35s;
}
.rail-tick { width: 5px; height: 5px; background: rgba(var(--rail), .6); }
.rail-dot { z-index: 1; width: 11px; height: 11px; background: rgb(var(--rail)); }

.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}
.bar > * { pointer-events: auto; }

.menu { justify-self: start; position: relative; }

.menu-list {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pill.menu-toggle { display: none; }

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--pill-h);
  padding: 0 18px;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  font: 700 14px/1 var(--grotesk);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  /* A parallelogram: the button leans, the words inside stand upright */
  transform: skewX(var(--lean));
  transition: color .3s .1s;
  /* Keeps the scribble clipped to the pill in Safari */
  isolation: isolate;
}
.pill > span { position: relative; z-index: 1; transform: skewX(calc(-1 * var(--lean))); }
.pill:hover, .pill:focus-visible { color: var(--white); }

.pill-scribble {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: url(#steel-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 0;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .5s ease-in-out, stroke-width .5s ease-in-out;
}
.pill:hover .pill-scribble,
.pill:focus-visible .pill-scribble {
  stroke-width: 26;
  stroke-dashoffset: 0;
}

.logo { justify-self: center; position: relative; display: block; line-height: 0; }
.logo img { display: block; width: auto; height: 46px; transition: opacity .35s; }
.logo .logo-light { position: absolute; inset: 0; opacity: 0; }
[data-tone="dark"] .logo .logo-light { opacity: 1; }
[data-tone="dark"] .logo .logo-dark { opacity: 0; }
/* While the carpet ripples (logo-wave.js), a canvas copy of the logo stands in for the pictures */
.logo .logo-wave { position: absolute; left: 0; width: 100%; display: none; pointer-events: none; }
.logo.is-waving .logo-wave { display: block; }
.logo.is-waving img { visibility: hidden; }

.cta {
  justify-self: end;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: var(--pill-h);
  padding: 0 52px 0 20px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  font: 700 14px/1 var(--grotesk);
  white-space: nowrap;
  text-decoration: none;
  transition: color .3s;
  isolation: isolate;
}
/* Leans like the menu buttons, with the words upright */
.cta { transform: skewX(var(--lean)); }
.cta > span:first-child { transform: skewX(calc(-1 * var(--lean))); }

/* Dark metallic blue fades in over the white */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--steel-dark);
  opacity: 0;
  transition: opacity .3s;
}
.cta:hover, .cta:focus-visible { color: var(--white); }
.cta:hover::before, .cta:focus-visible::before { opacity: 1; }

.cta-arrow {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  transition: background-color .3s, color .3s;
}
.cta:hover .cta-arrow, .cta:focus-visible .cta-arrow { background: var(--white); color: var(--navy); }
.cta-arrow svg {
  position: absolute;
  inset: 9px;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .4s var(--ease);
}
.cta-arrow svg:last-child { transform: translate(-24px, 24px); }

/* The theme switch and Let's chat share the right end of the menu row */
.bar-end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Theme switch, after carterogunsola.com: sun and moon, with a dark highlight that
   slides to the chosen one. It leans like the other buttons; the icons stand upright. */
.theme-toggle {
  position: relative;
  display: inline-flex;
  height: var(--pill-h);
  padding: 2px;
  border-radius: 6px;
  background: var(--white);
  transform: skewX(var(--lean));
  isolation: isolate;
}
.theme-toggle button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(16, 40, 76, .55);
  cursor: pointer;
  transition: color .3s, scale .2s;
}
.theme-toggle button:hover { color: var(--navy); }
.theme-toggle button[aria-pressed="true"] { color: var(--white); }
.theme-toggle button:active { scale: .92; }
.theme-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: skewX(calc(-1 * var(--lean)));
}
.theme-toggle-bg {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  z-index: -1;
  width: 34px;
  border-radius: 4px;
  background: var(--steel-dark);
  transition: transform .4s var(--ease);
}
[data-theme="dark"] .theme-toggle-bg { transform: translateX(100%); }
/* On phones the switch moves into the menu */
.menu-theme { display: none; }

/* In Let's chat, the arrow sits in a navy triangle filling the button's top-right corner */
.cta .cta-arrow {
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 100%;
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.cta .cta-arrow svg { inset: 6px 7px auto auto; width: 12px; height: 12px; }
.cta:hover .cta-arrow svg:first-child,
.cta:focus-visible .cta-arrow svg:first-child { transform: translate(24px, -24px); }
.cta:hover .cta-arrow svg:last-child,
.cta:focus-visible .cta-arrow svg:last-child { transform: none; }

/* Left-to-right track */

.track {
  position: relative;
  display: flex;
  height: 100vh;
  height: 100dvh;
  overflow-x: auto;
  overflow-y: hidden;
  outline: none;
  overscroll-behavior: none;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }

/* Opening screen: one statement whose letters change weight under the cursor,
   then a short line about Letamedia */

.opening {
  position: relative;
  flex: 0 0 100vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  gap: clamp(18px, 4.5vh, 52px);
  /* Room for the menu row above and the scroll hint below */
  padding: var(--chrome-h) 0 calc(var(--band-h) + 2vh + 110px);
}
.weighted {
  width: min(76vw, 1160px);
  margin: 0;
  font-size: clamp(28px, min(5.1vw, 8.2vh), 94px);
  font-weight: 580;
  color: var(--navy);
  line-height: 1.02;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
}
.weighted b { font-weight: 700; }
.weighted .w { display: inline-block; white-space: nowrap; }
/* Space Grotesk stops at 700, so an outline in the same colour adds weight past that */
.weighted .ch {
  --stroke: .016em;
  display: inline-block;
  text-align: center;
  -webkit-text-stroke: var(--stroke) currentColor;
  paint-order: stroke fill;
}

.tagline {
  max-width: 34em;
  margin: 0;
  color: var(--navy);
  font-size: clamp(16px, 1.4vw, 24px);
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}
.tagline-name {
  font-family: "La Femme Makita", var(--grotesk);
  font-weight: 400;
  font-size: 1.15em;
}

/* Scroll hint at the foot of the opening screen */

.hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--band-h) + 2vh);
  height: 130px;
  overflow: hidden;
  pointer-events: none;
}
.hint-text {
  position: absolute;
  left: 50%;
  bottom: 44px;
  margin: 0;
  color: #eceff3;
  font-size: 15px;
  letter-spacing: .02em;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(16, 40, 76, .35);
  transform: translateX(-50%);
  clip-path: inset(0 100% 0 0);
}
.hint-cloud {
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(200px, 22vw, 320px);
  height: auto;
  transform: translateX(-100%);
}

/* Banner along the foot of the opening screen, the same size as the scroll hint */
.opening { --band-h: 26px; }
.human-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  height: var(--band-h);
  margin: 0;
  overflow: hidden;
  background: var(--white);
  color: #4f86c9;
  font-size: 15px;
  font-style: italic;
  letter-spacing: .02em;
  white-space: nowrap;
}
.human-roll {
  display: flex;
  width: max-content;
  animation: band-roll 60s linear infinite;
}
.human-half { display: flex; }
.human-half span { padding-right: 4em; }
@keyframes band-roll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Services, laid out like endcap.design's list */

.services {
  position: relative;
  flex: 0 0 100vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  padding: var(--chrome-h) 4vw 3vh;
  color: var(--navy);
}
.services-inner { transform-origin: left top; }
.services-title {
  margin: 0 0 clamp(14px, 3vh, 40px) 84px;
  font-size: clamp(32px, min(5.4vw, 8.6vh), 78px);
  line-height: .91;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.service {
  display: grid;
  grid-template-columns: 60px minmax(0, 1.35fr) clamp(90px, 10vw, 150px) minmax(0, 1fr);
  column-gap: 24px;
  align-items: start;
  padding: clamp(6px, 2.3vh, 30px) 0;
  border-top: 1px solid var(--navy);
}
.service-link { color: inherit; text-decoration: none; }
.service-link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.service-index { font-size: 14px; line-height: 1.55; padding-top: .7em; }
.service h3 {
  margin: 0;
  font-size: clamp(22px, min(3.35vw, 5.3vh), 48px);
  line-height: 1.04;
  letter-spacing: -.055em;
}
.service-icon {
  width: 100%;
  height: clamp(40px, 7.5vh, 80px);
  fill: none;
  stroke: var(--navy);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-icon .fill { fill: rgba(255, 255, 255, .55); }
.service p {
  max-width: 30em;
  margin: 0;
  font-size: clamp(13px, 1.8vh, 16px);
  line-height: 1.55;
}

/* List and wheel views: names placed by main.js inside the area under the title line */

.services[data-mode="list"], .services[data-mode="wheel"] {
  justify-content: flex-start;
  padding-bottom: calc(3vh + 64px); /* room for the view switcher */
}
.services[data-mode="list"] .services-inner,
.services[data-mode="wheel"] .services-inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.services[data-mode="list"] .svc-views,
.services[data-mode="wheel"] .svc-views { flex: 1; min-height: 0; }
.svc-views { position: relative; }

.svc-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-top: 1px solid var(--navy);
  transition: opacity .4s ease, visibility .4s;
}
.services[data-mode="table"] .svc-stage { opacity: 0; visibility: hidden; }
.service-list { transition: opacity .4s ease, visibility .4s; }
.services:not([data-mode="table"]) .service-list {
  position: absolute;
  inset: 0 0 auto;
  opacity: 0;
  visibility: hidden;
}

.svc-item {
  position: absolute;
  top: 0;
  left: var(--svc-inset, 84px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: rgba(16, 40, 76, .3);
  font: 700 clamp(34px, min(6vw, 8.5vh), 64px) / 1.05 var(--grotesk);
  letter-spacing: -.04em;
  white-space: nowrap;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transform-origin: 0 50%;
  will-change: transform, opacity;
  transition: color .3s cubic-bezier(.25, .46, .45, .94);
}
.svc-item:hover, .svc-item.is-active { color: var(--navy); }
.svc-item:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; border-radius: 4px; }
/* The service's drawing slides in beside the name it belongs to */
.svc-meta {
  display: inline-flex;
  opacity: 0;
  translate: 6px 0;
  transition: opacity .3s cubic-bezier(.25, .46, .45, .94), translate .3s cubic-bezier(.16, 1, .3, 1);
}
.svc-item.is-active .svc-meta { opacity: 1; translate: 0; }
.svc-meta .service-icon { width: auto; height: .72em; }

.services[data-mode="wheel"] .svc-stage { cursor: grab; touch-action: none; user-select: none; }
.services[data-mode="wheel"] .svc-stage.is-dragging,
.services[data-mode="wheel"] .svc-stage.is-dragging .svc-item { cursor: grabbing; }

/* Pushing-hand cursor (fine pointers only; main.js shows it over the names) */
.services.has-hand .svc-stage,
.services.has-hand .svc-stage * { cursor: none !important; }

.svc-hand {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 30px;
  height: 36px;
  /* The fingertip is the hotspot */
  margin: -2px 0 0 -11px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
}
.svc-hand.is-on { opacity: 1; }
.svc-hand svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .35));
}
.svc-hand .finger, .svc-hand .palm, .svc-hand .thumb {
  fill: var(--white);
  stroke: #111;
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.svc-hand .thumb { stroke-linecap: round; }
.svc-hand .knuckles { fill: none; stroke: #111; stroke-width: 1; stroke-linecap: round; opacity: .6; }

/* At rest it is a pointing hand: index out, the other three folded */
.svc-hand .finger {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(.34);
}
.svc-hand .f1 { transform: none; }

/* While shown, the fingers sweep out and fold in, again and again */
.svc-hand.is-on .hand-body { animation: hand-push 1.15s cubic-bezier(.45, 0, .25, 1) infinite; }
.svc-hand.is-on .finger { animation: finger-push 1.15s cubic-bezier(.45, 0, .25, 1) infinite; }
.svc-hand.is-on .f2 { animation-delay: .04s; }
.svc-hand.is-on .f3 { animation-delay: .08s; }
.svc-hand.is-on .f4 { animation-delay: .12s; }
.svc-hand.is-on .f1 { animation-name: index-push; }
.svc-hand.is-pushing .hand-body,
.svc-hand.is-pushing .finger { animation-duration: .6s; }
/* Holding the wheel to drag it: fingers stay folded in a grip */
.svc-hand.is-holding .hand-body, .svc-hand.is-holding .finger { animation: none; }
.svc-hand.is-holding .finger { transform: scaleY(.34); }

@keyframes finger-push {
  0%, 100% { transform: scaleY(.34); }
  35% { transform: scaleY(1); }
  70% { transform: scaleY(.3); }
}
@keyframes index-push {
  0%, 100% { transform: scaleY(1); }
  35% { transform: scaleY(1.04); }
  70% { transform: scaleY(.3); }
}
@keyframes hand-push {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(-3px); }
  70% { transform: translateY(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .svc-hand.is-on .hand-body, .svc-hand.is-on .finger { animation: none; }
}

/* View switcher */
.svc-mode {
  position: absolute;
  left: 50%;
  bottom: 3vh;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 2px;
  border: 1px solid rgba(16, 40, 76, .14);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 6px 22px rgba(16, 40, 76, .16);
  isolation: isolate;
  translate: -50% 0;
}
.svc-mode button {
  height: 100%;
  padding: 0 14px;
  border: 0;
  background: none;
  color: rgba(16, 40, 76, .5);
  font: 700 12px / 1 var(--grotesk);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .3s, scale .2s;
}
.svc-mode button:hover { color: var(--navy); }
.svc-mode button[aria-pressed="true"] { color: var(--white); }
.svc-mode button:active { scale: .96; }
.svc-mode-bg {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  z-index: -1;
  width: 0;
  border-radius: 8px;
  background: var(--steel-dark);
  transition: transform .45s cubic-bezier(.65, 0, .35, 1), width .45s cubic-bezier(.65, 0, .35, 1);
}

/* Zoom sections: width and positions come from main.js */

.zoom {
  position: relative;
  flex: 0 0 auto;
  width: 200vw;
  height: 100%;
}
.stage {
  position: sticky;
  left: 0;
  width: 100vw;
  height: 100%;
  overflow: hidden;
}

.plate {
  --full: 0;
  position: absolute;
  top: 22vh;
  left: 20vw;
  width: 60vw;
  height: 56vh;
  margin: 0;
  overflow: hidden;
  background: var(--steel-lo);
}
.plate img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Shade under the chrome, only once the photo fills the screen */
.plate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Darkens the band as words are cut out of it, so they read as lifted off */
  background: rgba(8, 10, 28, .72);
  opacity: var(--dim, 0);
  pointer-events: none;
}
.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: var(--full);
  background: linear-gradient(to bottom, rgba(16, 20, 56, .45), rgba(16, 20, 56, 0) 22%);
  pointer-events: none;
}

/* The photo inside the letters: the heading covers the whole stage, so its
   background lines up with the full-screen photo underneath */
.fill-title {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: var(--chrome-h) 3vw 4vh;
  color: transparent;
  font-family: "La Femme Makita", var(--grotesk);
  font-weight: 400;
  font-size: clamp(40px, min(9.2vw, 17vh), 190px);
  line-height: .98;
  text-align: center;
  text-wrap: balance;
  /* A thin navy edge keeps pale parts of a photo from melting into the sky */
  filter: drop-shadow(0 0 1px rgba(16, 40, 76, .7)) drop-shadow(0 6px 18px rgba(16, 40, 76, .22));
  opacity: 0;
  pointer-events: none;
  transform-origin: 0 0;
}
/* Each word carries its own piece of the photo (sized and placed by main.js),
   so it can lift out of the picture on its own */
/* A word keeps its letters together on one line */
.fill-title .fw { display: inline-block; white-space: nowrap; }
/* Each letter carries its own piece of the photo (sized and placed by main.js) */
.fill-title .fl {
  /* The metal's colours, top to bottom (black by default) */
  --m1: 58, 62, 70;
  --m2: 24, 26, 31;
  --m3: 78, 84, 94;
  --m4: 14, 15, 19;
  --m5: 36, 39, 45;
  --m6: 8, 9, 12;
  display: inline-block;
  color: transparent;
  /* On top, black metal that main.js fades in (--metal) as the photo falls away; under it,
     a light navy tint that keeps the photo's brightest parts readable */
  background-image:
    linear-gradient(175deg,
      rgba(var(--m1), var(--metal, 0)) 0%,
      rgba(var(--m2), var(--metal, 0)) 36%,
      rgba(var(--m3), var(--metal, 0)) 50%,
      rgba(var(--m4), var(--metal, 0)) 62%,
      rgba(var(--m5), var(--metal, 0)) 84%,
      rgba(var(--m6), var(--metal, 0)) 100%),
    linear-gradient(rgba(16, 40, 76, .24), rgba(16, 40, 76, .24)),
    var(--img);
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  /* Room around each letter so its slanted strokes keep their photo; the margins cancel it out */
  margin: 0 -.12em;
  padding: 0 .12em;
  transform-origin: 50% 50%;
  opacity: 0;
}
/* Lilac silver, with only a gentle sheen */
.metal-lilac .fl {
  --m1: 172, 162, 208;
  --m2: 156, 146, 196;
  --m3: 190, 182, 220;
  --m4: 148, 138, 190;
  --m5: 164, 154, 202;
  --m6: 140, 130, 182;
}

/* Pale photos get a deeper shadow so the letters stand off the sky */
.fill-title-light {
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, .85)) drop-shadow(0 4px 10px rgba(0, 0, 0, .35)) drop-shadow(0 14px 34px rgba(16, 40, 76, .45));
}

.side {
  position: absolute;
  top: 22vh;
  left: 52vw;
  width: 40vw;
  max-width: 36em;
  margin: 0;
  color: var(--navy);
  font-size: clamp(18px, 1.7vw, 28px);
  line-height: 1.36;
  opacity: 0;
  visibility: hidden;
}
.side-last { font-size: clamp(17px, 1.4vw, 22px); line-height: 1.45; }
/* Key phrases: once their line is in, a bright white marker stroke sweeps across them
   (like the quote on the Digital ads page) and each letter thickens as the stroke
   reaches it. Letters and their numbers (--i) come from main.js; 30ms per letter. */
.side mark {
  background: linear-gradient(#fff, #fff) 0 92% / 0 .5em no-repeat;
  color: inherit;
  transition: background-size 0s;
}
.side mark.is-lit {
  background-size: 100% .5em;
  transition: background-size calc(var(--len) * 30ms) linear calc(var(--start) * 30ms);
}
/* Space Grotesk stops at 700, so a matching outline adds the extra weight */
.side .mc {
  -webkit-text-stroke: 0 currentColor;
  transition: -webkit-text-stroke-width 0s;
}
.side mark.is-lit .mc {
  -webkit-text-stroke-width: .035em;
  transition: -webkit-text-stroke-width .25s ease calc(var(--i) * 30ms);
}
@media (prefers-reduced-motion: reduce) {
  .side mark.is-lit, .side mark.is-lit .mc { transition: none; }
}
/* Wide screens: twice the size (main.js shrinks it only if it would outgrow the screen) */
@media (min-width: 760px) and (orientation: landscape) {
  .side { font-size: clamp(36px, 3.4vw, 56px); font-weight: 700; line-height: 1.26; }
  /* One line of side text (made by main.js), faded in one after another */
  .side .sl { display: block; white-space: nowrap; }
  .side-last { font-size: clamp(34px, 2.8vw, 44px); line-height: 1.3; }
}
.side-last p { margin: 0 0 28px; }
.side-last .cta { justify-self: auto; }

/* Privacy policy, in the last frame's bottom-right corner, shown with the closing text */
.privacy-link {
  position: absolute;
  right: var(--gutter);
  bottom: 18px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-underline-offset: 3px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
[data-cta="page"] .privacy-link { opacity: 1; visibility: visible; }

/* Once the closing text is on screen, its own button takes over from the top one */
[data-cta="page"] .chrome .cta { opacity: 0; visibility: hidden; }
.chrome .cta { transition: color .3s, opacity .35s, visibility .35s; }

/* Three long pills no longer fit beside the logo: fold them into a menu */
@media (max-width: 1180px) {
  .pill.menu-toggle { display: inline-flex; }
  .menu-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }
  .menu.is-open .menu-list { display: flex; }

  /* Open menu: just the names; the oval and its fill only appear under the cursor */
  .chrome .menu-list .pill {
    background-color: transparent;
    box-shadow: none;
    transition: color .3s .1s, background-color .3s, box-shadow .3s;
  }
  .chrome .menu-list .pill:hover,
  .chrome .menu-list .pill:focus-visible {
    background-color: var(--white);
    box-shadow: 0 0 0 1px rgba(16, 40, 76, .14);
  }
  /* A soft, edgeless patch of paper behind the names keeps them readable over the page */
  .menu-list::before {
    content: "";
    position: absolute;
    inset: -4px -8px;
    z-index: -1;
    border-radius: 22px;
    background: rgba(245, 243, 238, .92);
    box-shadow: 0 0 22px 16px rgba(245, 243, 238, .92);
    pointer-events: none;
  }

  /* Narrower screens: drop the drawings so names and descriptions keep room */
  .service { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.25fr); }
  .service-icon { display: none; }
  .services-title { margin-left: 72px; }
}

@media (max-width: 760px) {
  :root { --pill-h: 34px; }
  .logo img { height: 38px; }
  .pill, .cta { font-size: 13px; }
  .bar-end .theme-toggle { display: none; }
  .menu.is-open .menu-theme { display: block; padding: 6px 0 0 4px; }
  .pill { padding: 0 14px; }

  /* The Menu button becomes a small button with three upright bars, the middle one
     longest, which fold into a cross when open */
  .pill.menu-toggle { justify-content: center; width: var(--pill-h); padding: 0; }
  .menu-toggle > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .menu-toggle::before,
  .menu-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), box-shadow .3s;
  }
  /* The long middle bar */
  .menu-toggle::before { height: 16px; margin: -8px 0 0 -1px; }
  /* A short bar hidden behind it, whose two shadows are the outer bars */
  .menu-toggle::after {
    height: 11px;
    margin: -5.5px 0 0 -1px;
    box-shadow: -6px 0 0 currentColor, 6px 0 0 currentColor;
  }
  /* The skew cancels the button's lean, so the bars stand upright */
  .menu-toggle::before,
  .menu-toggle::after { transform: skewX(calc(-1 * var(--lean))); }
  .menu.is-open .menu-toggle::before { transform: skewX(calc(-1 * var(--lean))) rotate(45deg); }
  .menu.is-open .menu-toggle::after {
    height: 16px;
    margin: -8px 0 0 -1px;
    box-shadow: 0 0 0 transparent, 0 0 0 transparent;
    transform: skewX(calc(-1 * var(--lean))) rotate(-45deg);
  }
  .cta { gap: 10px; padding-left: 14px; padding-right: 46px; }
  .cta-arrow { width: 28px; height: 28px; }
  .cta-arrow svg { inset: 8px; }
  .boot-mark { width: 78vw; }
  .boot-word { font-size: calc(78vw / 5.1); }
  .weighted { width: calc(100vw - 2 * var(--gutter)); font-size: clamp(26px, min(10vw, 6.8vh), 60px); }
  .tagline { padding: 0 var(--gutter); font-size: 16px; }
  .services { padding: var(--chrome-h) var(--gutter) 2vh; }
  .services-title { margin-left: 0; font-size: 40px; }
  .service { grid-template-columns: 28px 1fr; column-gap: 10px; padding: 10px 0; }
  .service-index { font-size: 12px; padding-top: .4em; }
  .service h3 { font-size: 24px; }
  .service-icon { display: none; }
  .service p { grid-column: 2; margin-top: 4px; font-size: 13px; line-height: 1.4; }
  .hint-text, .human-band { font-size: 13px; }
  .side { font-size: 17px; }
  .side-last { font-size: 16px; }
  .fill-title { font-size: clamp(34px, min(13vw, 11vh), 72px); padding: var(--chrome-h) var(--gutter) 4vh; }
}

@media (prefers-reduced-motion: reduce) {
  .boot-word { animation: none; }
  .human-roll { animation: none; }
  .pill-scribble, .cta-arrow svg { transition: none; }
}
