:root {
  --blue: #014baa;
  --blue-deep: #013a85;
  --cream: #f8f3f0;
  /* the frames' background was recoloured to white, so the stage has no edge */
  --stage-bg: #ffffff;
  --ink: #0b1f3f;
  --gutter: clamp(16px, 3.2vw, 48px);
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --text: "Archivo", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--stage-bg);
  color: var(--blue);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

/* logo: the two-shape mark on its own (assets/logo/george-symbol.svg) */
.brand-mark {
  display: block;
  height: 22px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 2.6vw, 40px);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 1; }

/* the page you're on, on every page */
.nav-links a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

.pill {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  border: 1px solid color-mix(in srgb, var(--blue) 35%, transparent);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: color-mix(in srgb, var(--cream) 45%, transparent);
  backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pill:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
}

.stage {
  position: absolute;
  inset: 0;
}

.stage canvas,
.stage-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage-fallback {
  object-fit: cover;
  object-position: 50% 30%;
}

/* hide the static image once the canvas is drawing */
.is-live .stage-fallback { visibility: hidden; }

/* decorative halftone dots, bottom-right. They sit over the background but
   under the text (DOM order). */
.pattern {
  position: absolute;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.pattern-dots {
  right: 0;
  bottom: 0;
  width: min(24vw, 360px);
  aspect-ratio: 400 / 320;
}

/* dots.js draws the animated version on the canvas; the SVG is the fallback */
.pattern-dots img,
.pattern-dots canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pattern-dots canvas { visibility: hidden; }
.hero-dots-sm { display: none; } /* phones only, see the 760px rules */
.dots-live canvas { visibility: visible; }
.dots-live img { visibility: hidden; }

/* page transition (transition.js): the arriving colour covers the page until
   the script takes over, then a canvas of bubbles floods or uncovers it */
html.arriving::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--arrive, #014baa);
}

/* full-screen flood between pages */
.flood {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  left: var(--gutter);
  top: 22%;
  max-width: 34vw;
}

/* the line under the headline that answers whatever you're doing */
.caption {
  margin: 22px 0 0;
  min-height: 1.4em;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

.headline {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(44px, 5.2vw, 104px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-cta {
  position: absolute;
  right: var(--gutter);
  bottom: 34%; /* clear of the halftone dots in the corner */
  width: min(300px, 24vw);
}

.lede {
  margin: 0 0 22px;
  text-wrap: pretty;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--cream);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px -14px rgb(11 31 63 / 0.35); /* neutral ink shadow, not a blue glow */
  transition: background 0.25s, transform 0.25s;
}

.cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s;
}

.cta:hover,
.cta:focus-visible { background: var(--blue-deep); }

.cta:hover svg,
.cta:focus-visible svg { transform: translateX(3px); }

.cta:focus-visible,
.pill:focus-visible,
.nav-links a:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- mid widths: keep text clear of the character ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .hero-copy { top: 16%; max-width: 38vw; }
  .hero-cta { width: min(280px, 30vw); bottom: 30%; }
  .hero .pattern-dots { width: min(26vw, 300px); }
}

/* ---------- phones: stack ---------- */
@media (max-width: 760px) {
  .nav { padding-block: 14px; }
  .pill { height: 34px; padding: 0 14px; font-size: 13px; }
  .caption { margin-top: 14px; font-size: 16px; }
  .headline { font-size: clamp(38px, 11.5vw, 60px); }
  .lede { font-size: 15px; }
}

/* ---------- phones and portrait tablets: the stacked home page ----------
   On a tall screen the picture fills the height, so George's head lands
   behind the headline; stack instead, as on phones. */
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  /* one screen, like desktop: title, line and intro at the top; George
     fills whatever is left below them, his shirt running off the bottom of
     the screen (no fade, no cut edge); the button sits on the shirt with
     Duchess beside it */
  .hero {
    height: 100svh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 72px var(--gutter) 0;
  }
  .hero-copy, .hero-cta { display: contents; }
  .hero .headline, .hero .caption, .hero .lede { position: relative; z-index: 2; }
  .hero .headline { order: 1; }
  .hero .caption { order: 2; }
  .hero .lede { order: 3; margin: 12px 0 0; max-width: 34ch; }

  .stage {
    position: relative;
    inset: auto;
    order: 4;
    flex: 1 0 auto;
    min-height: 62svh;  /* on short phones he runs further off the bottom
                            instead of shrinking, so the shirt still fills */
    margin: 4px calc(var(--gutter) * -1) 0;
    /* only the top edge melts into the page; the bottom is the screen edge */
    -webkit-mask-image: linear-gradient(transparent, #000 10%);
    mask-image: linear-gradient(transparent, #000 10%);
  }

  .hero .cta {
    position: absolute;
    z-index: 2;
    left: var(--gutter);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
    background: #fff;
    color: var(--blue);
    border: 1.5px solid rgb(1 75 170 / 0.22); /* still reads if it meets the white */
    box-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.35);
  }

  /* the dots stay in the bottom-right corner, as on desktop */
  .stage .pattern-dots { display: none; }
  .hero .hero-dots-sm { display: block; width: 44vw; right: 0; bottom: 0; opacity: 0.55; }
}

/* portrait tablets: the same stack, with type and spacing for the bigger screen */
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  .hero { padding-top: 104px; }
  .hero .headline { font-size: clamp(72px, 10.5vw, 112px); }
  .hero .caption { margin-top: 18px; font-size: 22px; }
  .hero .lede { margin-top: 16px; font-size: 20px; max-width: 32ch; }
  .stage { min-height: 56svh; margin-top: 10px; }
  .hero .cta { bottom: calc(env(safe-area-inset-bottom, 0px) + 40px); }
  .hero .hero-dots-sm { width: 34vw; }
}

@media (prefers-reduced-motion: reduce) {
  .cta, .cta svg, .pill { transition: none; }
}

/* ---------- blue pages (Work): same layout language, colours inverted ---------- */
body.on-blue {
  background: var(--blue);
  color: #fff;
}

.on-blue .pill {
  border-color: rgb(255 255 255 / 0.45);
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}

.on-blue .pill:hover { background: #fff; border-color: #fff; color: var(--blue); }



.on-blue .pill:focus-visible,
.on-blue .nav-links a:focus-visible,
.on-blue .brand:focus-visible,
.on-blue .work-back:focus-visible,
.on-blue .rail-btn:focus-visible,
.on-blue .work-rail:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Work: one screen, projects slide sideways ---------- */
.work {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  /* cover height drives the whole layout so everything fits one screen */
  --cover-h: min(46vh, 30vw);
  --hang: min(12vh, 9vw); /* how far every second project hangs down */
}

/* white version of the static fallback while the canvas starts */
.work-dots img { filter: brightness(0) invert(1); }

/* quieter here than on the home page: the projects sit on top of it */
.work-dots-br { right: 0; bottom: 0; width: min(32vw, 440px); opacity: 0.5; }

/* same cloud turned around so it grows from the top-left corner */
.work-dots-tl {
  left: 0;
  top: 0;
  width: min(26vw, 360px);
  transform: rotate(180deg);
  opacity: 0.55;
  /* keep the logo clear: fade the dots out around the corner it sits in
     (the box is turned 180deg, so its far corner is the screen's top-left) */
  -webkit-mask-image: radial-gradient(circle at 100% 100%, transparent 90px, #000 170px);
  mask-image: radial-gradient(circle at 100% 100%, transparent 90px, #000 170px);
}

/* the sideways rail: intro first, then the projects */
.work-rail {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  gap: clamp(28px, 3vw, 56px);
  padding: calc(50vh - var(--cover-h) * 0.62 - var(--hang) / 2) var(--gutter) 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}

.work-rail::-webkit-scrollbar { display: none; }
.work-rail.is-dragging { cursor: grabbing; user-select: none; }
.work-rail.is-dragging a { pointer-events: none; }

/* room at the end so the last project can reach the middle */
.work-rail::after { content: ""; flex: 0 0 max(1px, calc(var(--gutter) * 2)); }

.work-intro {
  flex: 0 0 auto;
  width: min(38vw, 560px);
  align-self: center;
  margin-top: calc(var(--hang) / -2);
}

.work .headline { font-size: clamp(40px, 4.8vw, 92px); }

.work-lede {
  margin: 22px 0 28px;
  max-width: 30ch;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.45;
  color: rgb(255 255 255 / 0.85);
}

.work-count { margin: 0; font-size: 14px; font-weight: 500; color: #c4d4f5; }
.work-count span { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- project cards: one cover format for every project ---------- */
.project {
  flex: 0 0 auto;
  width: calc(var(--cover-h) * 1.2785); /* the Behance cover shape, 808 x 632 */
}

/* the hanging rhythm: every second card drops */
.project:nth-of-type(even) { margin-top: var(--hang); }

.project-cover {
  position: relative;
  display: block;
  height: var(--cover-h);
  border-radius: 20px;
  overflow: hidden;
  background: #0b56b9; /* same tile colour halftone.js paints */
  border: 1px solid rgb(255 255 255 / 0.14); /* hairline edge against the page blue */
  -webkit-user-drag: none;
}

.project-cover img,
.project-cover canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* whole picture, never cropped or stretched */
  -webkit-user-drag: none;
}

/* the canvas takes over once halftone.js has drawn it */
.project-cover canvas { visibility: hidden; }
.project-cover.is-halftone canvas { visibility: visible; }
.project-cover.is-halftone img { visibility: hidden; }
/* with scripts on, never flash the raw photo before the dots are drawn
   (the tile colour shows instead); without scripts the photo stays */
.intro .project-cover:not(.is-halftone) img,
.js .project-cover:not(.is-halftone) img { visibility: hidden; }

/* the brand mark signs every cover */
.project-mark {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 20px;
  height: 20px;
  padding: 7px;
  box-sizing: content-box;
  border-radius: 10px;
  background: #fff;
}

/* a mark drawn as a picture (no SVG of it exists) */
.project-cover .project-mark img {
  /* not the cover picture: keep it out of the cover's hide-until-drawn rules */
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  visibility: visible !important;
}

/* the mark reveals with the cover: at rest it sits in the dots (white on a
   soft tile), then pops onto a white tile in its own colours */
.project-mark { transition: background-color 0.5s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.project-mark > * { transition: filter 0.5s ease; }
.project-cover.is-halftone:not(.is-revealed) .project-mark { background: rgb(255 255 255 / 0.16); transform: scale(0.88); }
.project-cover.is-halftone:not(.is-revealed) .project-mark > * { filter: brightness(0) invert(1); }
@media (prefers-reduced-motion: reduce) { .project-mark, .project-mark > * { transition: none; } }

.project-cover:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.project-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: baseline;
  margin-top: 18px;
}

.project-num { font-size: 14px; font-weight: 600; color: #c4d4f5; font-variant-numeric: tabular-nums; }

.project-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(22px, 2.2vw, 38px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.project-info,
.project-line { grid-column: 2; margin: 8px 0 0; font-size: 15px; line-height: 1.45; }
.project-info { color: #c4d4f5; font-weight: 500; } /* 5.4:1 on royal blue */
.project-line { margin-top: 2px; color: rgb(255 255 255 / 0.85); max-width: 40ch; }

/* ---------- progress + buttons: show there's more to the right ---------- */
.rail-ui {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(20px, 3.6vh, 36px);
  display: flex;
  align-items: center;
  gap: 18px;
  pointer-events: none;
}

.rail-ui > * { pointer-events: auto; }

.rail-hint { font-size: 13px; font-weight: 500; color: #c4d4f5; white-space: nowrap; }

.rail-track {
  flex: 0 1 240px;
  height: 2px;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.25);
  overflow: hidden;
}

.rail-fill {
  height: 100%;
  background: #fff;
  transform-origin: left center;
  transform: scaleX(0);
}

.rail-btns { display: flex; gap: 8px; }

.rail-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.45);
  background: rgb(1 75 170 / 0.6);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.rail-btn svg { width: 18px; height: 18px; }
.rail-btn:hover { background: #fff; color: var(--blue); }
.rail-btn[aria-disabled="true"] { opacity: 0.35; pointer-events: none; }

/* ---------- Work page entrance (work.js) ---------- */
/* headline lines rise out of a mask */
.work .headline .line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.04em; }
.work .headline .line > span { display: inline-block; }

/* hidden until work.js has set the starting poses */
.intro .work-rail,
.intro .work-dots,
.intro .rail-ui,
.intro .nav { visibility: hidden; }

@media (max-width: 760px) {
  .work {
    --cover-h: min(52vw, 34vh);
    --hang: 7vh;
  }
  /* the title stays put at the top; the projects slide sideways below it */
  .work-intro {
    position: fixed;
    top: 72px;
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    margin: 0;
    z-index: 2;
  }
  .work .headline { font-size: clamp(30px, 9vw, 42px); }
  .work-lede { margin: 10px 0 8px; font-size: 15px; }
  .work-count { font-size: 13px; }
  .work-rail { padding-top: clamp(250px, 34svh, 300px); }
  .rail-hint { display: none; }
  .work-dots-br { width: 78vw; }
  .work-dots-tl {
    width: 56vw;
    -webkit-mask-image: radial-gradient(circle at 100% 100%, transparent 56px, #000 110px);
    mask-image: radial-gradient(circle at 100% 100%, transparent 56px, #000 110px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rail-btn { transition: none; }
}

/* ---------- cursor label on the rail (mouse only) ---------- */
.rail-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.3);
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .has-cursor .work-rail,
  .has-cursor .work-rail * { cursor: none; }
  .has-cursor .work-intro,
  .has-cursor .work-intro * { cursor: auto; }
}

@media (hover: none), (pointer: coarse) {
  .rail-cursor { display: none; }
}

/* ---------- George between the cards (perch.js) ---------- */
.project { position: relative; }
.project-cover { z-index: 1; } /* both neighbouring cards hide part of him */

.perch {
  position: absolute; /* placed in the rail's scrolling content by perch.js */
  top: 0;
  left: 0;
  z-index: 0;
  width: clamp(130px, 14vw, 240px);
  aspect-ratio: 454 / 381;
  pointer-events: none;
  /* nothing of him shows below the card edge, so he can't peek through the gap
     while ducked (the bubble above and beside him is left alone) */
  clip-path: inset(-300px -500px 37% -500px);
  visibility: hidden; /* until perch.js has found a spot */
}
.perch.is-placed { visibility: visible; }

.perch-pop, .perch-body { width: 100%; height: 100%; }
.perch-body { transform-origin: 50% 64%; }
.perch canvas { display: block; width: 100%; height: 100%; }

.perch-say {
  position: absolute;
  left: 86%;
  top: 4%;
  margin: 0;
  padding: 9px 14px;
  border-radius: 16px 16px 16px 4px;
  background: #fff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  opacity: 0;
  transform-origin: 0 100%;
  box-shadow: 0 8px 18px -10px rgb(11 31 63 / 0.45);
}
/* near the right edge the bubble flips to his other side */
.perch.say-left .perch-say {
  left: auto;
  right: 86%;
  border-radius: 16px 16px 4px 16px;
  transform-origin: 100% 100%;
}

@media (max-width: 760px) {
  .perch { width: 110px; }
  .perch-say { font-size: 12px; padding: 7px 11px; }
}

/* ======================================================================
   Services: pick what you need, and the brief builds itself
   ====================================================================== */
.services {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.72fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
  padding: clamp(96px, 13vh, 140px) var(--gutter) 72px;
  --gw: clamp(200px, 18vw, 290px); /* George's width (at his desk) */
}

/* fixed so it stays in the corner however long the list gets */
.svc-dots { position: fixed; right: 0; bottom: 0; width: min(26vw, 380px); opacity: 0.7; }

.svc-pick { position: relative; z-index: 1; }
.services .headline { font-size: clamp(40px, 4.8vw, 92px); }
.services .headline .line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.04em; }
.services .headline .line > span { display: inline-block; }

.svc-lede {
  margin: 20px 0 clamp(24px, 4vh, 40px);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.45;
  color: var(--ink);
}

/* ---------- the list ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc { border-top: 1px solid rgb(1 75 170 / 0.16); }
.svc:last-child { border-bottom: 1px solid rgb(1 75 170 / 0.16); }

.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 2.6em auto 1fr auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 6px 0;
  padding: clamp(12px, 1.8vh, 18px) clamp(14px, 1.4vw, 22px);
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--blue);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

/* the picked look: a white-on-blue copy of the row (made by services.js),
   shown through blue bubbles that grow from where you clicked */
.svc-fill {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: inherit;
  align-items: center;
  gap: inherit;
  padding: inherit;
  border-radius: inherit;
  background: var(--blue);
  color: #fff;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
}

.svc-row:hover { background: rgb(1 75 170 / 0.05); }
.svc-row:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* the service's 3D icon, between the number and the name */
.svc-icon { display: block; width: clamp(40px, 3.6vw, 60px); height: auto; }

.svc-num { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

.svc-name {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(28px, 3.6vw, 62px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* round tick: empty ring, white disc with a blue check when picked */
.svc-tick {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid currentColor;
}
.svc-tick::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  width: 6px;
  height: 11px;
  border: solid var(--blue);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.25s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.svc-fill .svc-tick { background: #fff; border-color: #fff; }
.svc-row[aria-pressed="true"] .svc-fill .svc-tick::after { transform: rotate(45deg) scale(1); }

/* what's included: opens under a picked row (height animated by services.js) */
.svc-more {
  height: 0;
  overflow: hidden;
  padding-left: calc(2.6em + 16px + clamp(14px, 1.4vw, 22px) + clamp(40px, 3.6vw, 60px) + 16px);
  color: var(--ink);
}
.svc-more > :first-child { margin-top: 6px; }
.svc-more p { margin: 0 0 12px; font-size: 16px; line-height: 1.45; }
.svc-more ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.svc-more li {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgb(1 75 170 / 0.08);
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
}
.svc-time { display: inline-block; margin-bottom: 18px; font-size: 14px; font-weight: 600; color: var(--blue); }

/* ---------- George and the brief ---------- */
.svc-side {
  position: sticky;
  top: 96px;
  z-index: 1;
  /* room for the part of George that shows above the card */
  padding-top: var(--gw); /* the take is square; its bottom edge sits on the card */
}

.svc-george {
  position: absolute;
  top: 0;
  left: calc(50% - var(--gw) / 2);
  width: var(--gw);
  aspect-ratio: 1;
}
/* the visible window: down to where the brief starts. Anything of him below
   that line is cut off here, whatever the brief is doing */
.svc-george-clip { position: absolute; inset: -40px -40px 0 -40px; overflow: hidden; }
.svc-george-clip canvas {
  position: absolute;
  top: 40px;
  left: 40px;
  display: block;
  width: calc(100% - 80px);
  height: calc(100% - 40px);
  /* the take's studio backdrop melts into the page: soft fade at the sides and top */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 7%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 7%);
  mask-composite: intersect;
}

.svc-say {
  position: absolute;
  right: 78%;
  top: 0;
  margin: 0;
  padding: 9px 14px;
  border-radius: 16px 16px 4px 16px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  opacity: 0;
  transform-origin: 100% 100%;
}

.brief {
  position: relative;
  z-index: 1;
  padding: clamp(22px, 2vw, 30px);
  border-radius: 22px;
  background: var(--blue);
  color: #fff;
}

.brief-title {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(20px, 1.6vw, 26px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.brief-empty { margin: 0 0 18px; font-size: 15px; color: #c4d4f5; }
.brief-list { list-style: none; margin: 0; padding: 0; }
.brief-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgb(255 255 255 / 0.18);
  font-size: 16px;
  font-weight: 600;
}
.brief-list li span { font-size: 13px; font-weight: 500; color: #c4d4f5; }
.brief-time { margin: 0; padding: 12px 0 18px; border-top: 1px solid rgb(255 255 255 / 0.18); font-size: 15px; }
.brief-time:empty { display: none; }
.brief-time strong { font-weight: 700; }

.brief-send {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}
.brief-send:hover { transform: translateY(-2px); }
/* not ready yet: an outline with readable light text, rather than a faded button */
.brief-send[aria-disabled="true"] {
  background: transparent;
  border: 1px solid rgb(255 255 255 / 0.45);
  color: #c4d4f5; /* 5.4:1 on royal blue */
  pointer-events: none;
}
.brief-send:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* hidden until services.js has set the starting poses */
.intro .svc-pick,
.intro .svc-side,
.intro .svc-dots { visibility: hidden; }

/* this page scrolls, so the fixed nav needs a backing to stay readable */
.services-page .nav {
  background: rgb(255 255 255 / 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; gap: 40px; padding-top: 88px; --gw: 170px; }
  .svc-side { position: relative; top: 0; }
  /* George moves to the right of the card so his bubble has room on the left */
  .svc-george { left: auto; right: 10%; }
  .svc-say { white-space: normal; width: max-content; max-width: min(210px, 52vw); }
  .svc-dots { width: 60vw; opacity: 0.45; }
}

@media (max-width: 760px) {
  .svc-row { grid-template-columns: 2em auto 1fr auto; gap: 10px; }
  .svc-icon { width: 34px; }
  .svc-more { padding-left: calc(2em + 10px + 14px + 34px + 10px); }
  .svc-tick { width: 26px; height: 26px; }
  .svc-tick::after { left: 7px; top: 3px; }
  .svc-say { font-size: 12px; padding: 7px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-tick::after, .brief-send { transition: none; }
}

/* ======================================================================
   About: George assembles out of the brand dots, then reads along
   ====================================================================== */
.about { position: relative; }

/* this page scrolls: back the nav so text passing under it stays clear */
.about-page .nav {
  background: rgb(1 75 170 / 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* George stays put on the right while the story scrolls past on the left */
.about-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.about-george {
  position: absolute;
  right: max(0px, calc(var(--gutter) - 2vw));
  bottom: -2px; /* his cut-off edge sits just below the screen */
  width: min(52vw, calc(88svh * 1.196));
  aspect-ratio: 914 / 764;
}
.about-george canvas { display: block; width: 100%; height: 100%; }

.about-say {
  position: absolute;
  right: 66%;
  top: 9%;
  margin: 0;
  padding: 10px 16px;
  border-radius: 18px 18px 4px 18px;
  background: #fff;
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform-origin: 100% 100%;
}

.about-flow {
  position: relative;
  z-index: 1;
  width: min(46vw, 640px);
  margin-left: var(--gutter);
}

.about-open {
  position: relative; /* holds the scroll hint */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 60px;
}

.about .headline { font-size: clamp(44px, 6vw, 112px); }
.about .headline .line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.04em; }
.about .headline .line > span { display: inline-block; }

.about-lede { margin: 24px 0 0; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.45; color: rgb(255 255 255 / 0.85); }

.about-hint {
  position: absolute;
  left: 0;
  bottom: clamp(20px, 4vh, 40px);
  font-size: 13px;
  font-weight: 500;
  color: #c4d4f5;
}
.about-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 36px;
  margin: 10px 0 0 4px;
  background: linear-gradient(#c4d4f5, transparent);
}

/* the story: each paragraph lights up word by word as it's read */
.about-story { padding: 10vh 0 6vh; }
.story {
  margin: 0 0 22vh;
  font-size: clamp(26px, 2.6vw, 46px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.story:last-child { margin-bottom: 0; }
.story .w { opacity: 0.2; }

.about-h2 {
  margin: 0 0 28px;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(26px, 2.6vw, 44px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.about-facts { padding: 18vh 0 10vh; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin: 0; }
.facts div { padding-top: 14px; border-top: 1px solid rgb(255 255 255 / 0.25); }
.fact-icon { display: block; width: 52px; height: auto; margin-bottom: 10px; }
.facts dt { font-size: 14px; font-weight: 500; color: #c4d4f5; }
.facts dd { margin: 6px 0 0; font-size: clamp(20px, 1.7vw, 28px); font-weight: 700; }

.about-end { min-height: 70vh; padding: 14vh 0 18vh; }
.about-bye { font-size: clamp(36px, 4.4vw, 80px); }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.about-btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 26px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.about-btn:hover { transform: translateY(-2px); }
.about-btn-line { background: transparent; color: #fff; }
.about-btn-line:hover { background: #fff; color: var(--blue); }
.about-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.intro .about-flow,
.intro .about-stage { visibility: hidden; }

/* phones: George assembles under the headline, then the story carries on
   below without him */
@media (max-width: 900px) {
  /* he stays pinned to the bottom of the screen while he assembles (the
     first 75% of a screen of scrolling), then scrolls away with this block */
  .about-stage {
    position: absolute;
    top: 0;
    bottom: auto;
    height: 175svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    overflow: clip;
  }
  .about-george { position: sticky; bottom: -2px; right: auto; width: min(110vw, 62svh * 1.196); }
  .about-flow { width: auto; margin: 0 var(--gutter); }
  .about-open { justify-content: flex-start; min-height: 175svh; padding-top: 104px; }
  .about-hint { display: none; }
  .about-say { right: auto; left: 8%; top: 4%; font-size: 13px; }
  .facts { grid-template-columns: 1fr; }
  .story { margin-bottom: 14vh; }
}

@media (prefers-reduced-motion: reduce) {
  .about-btn { transition: none; }
}

/* ======================================================================
   Duchess, the chat buddy (chat.js), on every page
   ====================================================================== */
.buddy {
  position: fixed;
  right: clamp(10px, 1.6vw, 24px);
  bottom: clamp(8px, 1.4vh, 18px);
  z-index: 50; /* above the page, below the page-transition flood */
  font-family: var(--text);
}

.buddy-dog {
  display: block;
  width: clamp(112px, 9.6vw, 156px); /* the take's frame has room around her */
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.buddy-body { display: block; transform-origin: 50% 100%; }
.buddy-dog canvas { display: block; width: 100%; height: auto; }
.buddy-dog:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 16px; }
.on-blue .buddy-dog:focus-visible { outline-color: #fff; }

.buddy-hint {
  position: absolute;
  right: 78%;
  top: 4%;
  padding: 8px 13px;
  border-radius: 16px 16px 4px 16px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px) scale(0.9);
  transform-origin: 100% 100%;
  transition: opacity 0.25s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.on-blue .buddy-hint { background: #fff; color: var(--blue); }
.buddy-hint.is-on { opacity: 1; transform: none; }

.buddy-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(360px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  max-height: min(560px, calc(100svh - 170px));
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgb(1 75 170 / 0.14);
  box-shadow: 0 24px 50px -28px rgb(11 31 63 / 0.4);
  overflow: hidden;
  transform-origin: 90% 100%;
}
.buddy-panel[hidden] { display: none; }

.buddy-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  background: var(--blue);
  color: #fff;
}
.buddy-head img { width: 40px; height: auto; }
.buddy-head div { display: grid; flex: 1; }
.buddy-head strong { font-size: 16px; }
.buddy-head span { font-size: 12px; color: #c4d4f5; }
.buddy-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.14);
  color: #fff;
  cursor: pointer;
}
.buddy-close svg { width: 16px; height: 16px; }
.buddy-close:hover { background: rgb(255 255 255 / 0.26); }
.buddy-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.buddy-log {
  flex: 1;
  min-height: 120px;
  overflow-y: auto;
  padding: 16px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.buddy-msg {
  max-width: 85%;
  margin: 0;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
}
.buddy-msg.from-dog { align-self: flex-start; border-bottom-left-radius: 4px; background: #eef3fc; }
.buddy-msg.from-you { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--blue); color: #fff; }
.buddy-msg a { color: var(--blue); font-weight: 600; }

.buddy-typing { font-style: italic; color: #4a6a9c; } /* 4.9:1 on the bubble */

.buddy-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 10px; }
.buddy-chips button {
  padding: 8px 12px;
  border: 1px solid rgb(1 75 170 / 0.3);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.buddy-chips button:hover { background: var(--blue); color: #fff; }
.buddy-chips button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.buddy-form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid rgb(1 75 170 / 0.12); }
.buddy-form input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgb(1 75 170 / 0.25);
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}
.buddy-form input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.buddy-form button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
}
.buddy-form button svg { width: 18px; height: 18px; }
.buddy-form button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

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

/* About: George sits bottom-right too, so he moves over for Duchess */
.about-page .about-george { right: calc(clamp(112px, 9.6vw, 156px) * 0.45); }

@media (max-width: 760px) {
  .buddy-panel { position: fixed; left: 12px; right: 12px; bottom: 112px; width: auto; }
  /* room at the bottom so Duchess never sits on top of the brief's button */
  .services { padding-bottom: 130px; }
  /* and the Works slider controls stop short of her corner */
  .rail-ui { right: calc(var(--gutter) + 100px); }
  .about-page .about-george { right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .buddy-hint, .buddy-chips button { transition: none; }
}

/* ======================================================================
   About: "Two of us." George and Duchess stay on stage, the story scrolls
   ====================================================================== */
.team { position: relative; }

.team-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* George: the head-turn take, cut off at the bottom of the screen */
.team-george {
  position: absolute;
  right: max(0px, calc(var(--gutter) - 2vw));
  bottom: -2px;
  width: min(40vw, calc(74svh * 1.196));
  aspect-ratio: 914 / 764;
}
.team-george canvas { display: block; width: 100%; height: 100%; }

/* Duchess sits on the floor line beside him, a little in front */
.team-dog {
  position: absolute;
  right: calc(max(0px, var(--gutter) - 2vw) + min(40vw, 74svh * 1.196) * 0.74);
  bottom: 0;
  width: min(19vw, 40svh * 0.943);
  aspect-ratio: 314 / 333;
  z-index: 1;
}
.team-dog canvas { display: block; width: 100%; height: 100%; }

.team-say {
  position: absolute;
  right: 62%;
  top: 6%;
  margin: 0;
  padding: 10px 16px;
  border-radius: 18px 18px 4px 18px;
  background: #fff;
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform-origin: 100% 100%;
}

.team-flow {
  position: relative;
  z-index: 2;
  width: min(40vw, 560px);
  margin-left: var(--gutter);
}

.team-open {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 60px;
}
.team .headline { font-size: clamp(56px, 8vw, 150px); }
.team .headline .line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.04em; }
.team .headline .line > span { display: inline-block; }
.team-lede { margin: 26px 0 0; max-width: 28ch; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.45; color: rgb(255 255 255 / 0.88); }

/* chapters: one idea each, given a screen's worth of room */
.team-ch {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.team-num { font-size: 14px; font-weight: 600; color: #c4d4f5; font-variant-numeric: tabular-nums; }
.team-ch h2 {
  margin: 10px 0 14px;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(30px, 3.2vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.team-ch p { margin: 0; max-width: 32ch; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.5; color: rgb(255 255 255 / 0.9); }

.team-h2 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(30px, 3.2vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.team-cards { padding: 16vh 0 10vh; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.team-card {
  padding: 20px;
  border-radius: 20px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.18);
}
.team-card img { display: block; width: 56px; height: auto; margin-bottom: 14px; }
.team-card h3 { margin: 0; font-size: 22px; font-weight: 800; }
.team-role { margin: 4px 0 10px; font-size: 14px; font-weight: 600; color: #c4d4f5; }
.team-card p:last-child { margin: 0; font-size: 15px; line-height: 1.5; color: rgb(255 255 255 / 0.88); }

.team-end { min-height: 80vh; padding: 14vh 0 22vh; }
.team-bye { font-size: clamp(40px, 4.8vw, 86px); }
.team-actions { display: flex; flex-wrap: wrap; gap: 12px; }
button.about-btn { font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }

.intro .team-flow,
.intro .team-stage { visibility: hidden; }

/* the corner chat Duchess hides on About (she's in the story) */
.buddy.is-quiet .buddy-dog,
.buddy.is-quiet .buddy-hint { display: none; }

/* phones: the two of them sit in a band at the top; the story scrolls below */
@media (max-width: 900px) {
  .team-stage {
    position: sticky;
    top: 0;
    height: 44svh;
    z-index: 3;
    background: var(--blue);
    border-bottom: 1px solid rgb(255 255 255 / 0.16);
  }
  .team-george { right: 4vw; width: min(70vw, 44svh * 1.196); }
  .team-dog { right: calc(4vw + min(70vw, 44svh * 1.196) * 0.7); width: min(34vw, 30svh * 0.943); }
  .team-say { right: 55%; top: 22%; font-size: 13px; padding: 8px 12px; }
  .team-flow { width: auto; margin: 0 var(--gutter); }
  .team-open { min-height: 56svh; padding-top: 32px; justify-content: flex-start; }
  .team-ch { min-height: 60svh; }
  .team-grid { grid-template-columns: 1fr; }
  .about-page .nav { z-index: 11; }
}

/* ======================================================================
   About: "The longer version." A reading panel like the reference: the
   story slides past a reading line; near lines sharp, the rest blurred
   ====================================================================== */
.read { position: relative; }

.read-stage { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }

/* the scene: a two-colour print of George's studio, sharp-edged like a
   printed photo, with a small caption underneath */
.read-scene {
  position: absolute;
  right: calc(var(--gutter) + clamp(112px, 9.6vw, 156px) * 0.3);
  top: 50%;
  height: min(76svh, 44vw * 4 / 3);
  aspect-ratio: 3 / 4;
  margin: 0;
  transform: translateY(-50%);
  background: #062a66;
  cursor: crosshair;
}
.read-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.6s; }
.read-scene.is-live canvas { opacity: 1; }

/* fine print grain over the image, drifting a little so it feels like film */
.read-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(3) infinite;
}
@keyframes grain { 0% { background-position: 0 0; } 33% { background-position: -40px 25px; } 66% { background-position: 30px -35px; } }

.read-scene figcaption {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 12px);
  display: flex;
  gap: 14px;
  font-size: 13px;
  font-weight: 500;
  color: #c4d4f5;
}
.read-scene figcaption span { color: rgb(255 255 255 / 0.85); }
@media (hover: none) { .read-scene figcaption span { display: none; } }
@media (prefers-reduced-motion: reduce) { .read-grain { animation: none; } }

.read-open {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(48vw, 680px);
  margin-left: var(--gutter);
  padding-top: 60px;
}
.read .headline { font-size: clamp(48px, 6.4vw, 120px); }
.read .headline .line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.04em; }
.read .headline .line > span { display: inline-block; }
.read-lede { margin: 24px 0 0; font-size: clamp(17px, 1.4vw, 21px); color: rgb(255 255 255 / 0.85); }

/* the story: pinned for as long as it takes to read (height set by about.js) */
.read-story { position: relative; z-index: 1; pointer-events: none; } /* lets the scene behind take hovers */
.read-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  /* soft top and bottom edges, so lines drift in and out rather than cut */
  -webkit-mask-image: linear-gradient(transparent 0, #000 18%, #000 80%, transparent 100%);
  mask-image: linear-gradient(transparent 0, #000 18%, #000 80%, transparent 100%);
}
.read-text {
  position: relative; /* word positions are measured against this */
  width: min(46vw, 640px);
  margin-left: var(--gutter);
  will-change: transform;
}
.read-text p {
  margin: 0 0 0.9em;
  font-size: clamp(22px, 2.1vw, 36px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: rgb(255 255 255 / 0.72); /* about 4.7:1 on the blue, readable at the phone size */
  text-wrap: pretty;
}
.read-text .w { display: inline-block; }
.read-text .w-strong { color: #fff; font-weight: 700; }

.read-facts { position: relative; z-index: 1; width: min(46vw, 640px); margin-left: var(--gutter); padding: 14vh 0 8vh; }
.read-end { position: relative; z-index: 1; width: min(46vw, 640px); margin-left: var(--gutter); min-height: 70vh; padding: 12vh 0 20vh; }

.intro .read-open,
.intro .read-story,
.intro .read-stage { visibility: hidden; }

@media (max-width: 900px) {
  /* phones: the scene is a band across the top; the story reads beneath it */
  .read-stage { z-index: 2; }
  .read-scene {
    right: auto;
    left: 50%;
    top: 68px;
    transform: translateX(-50%);
    height: 38svh;
    width: auto;
    aspect-ratio: 3 / 4;
  }
  .read-scene figcaption { top: calc(100% + 8px); font-size: 12px; }
  .read-open { width: auto; margin: 0 var(--gutter); justify-content: flex-start; padding-top: calc(40svh + 90px); }
  .read-pin {
    -webkit-mask-image: linear-gradient(transparent 0, transparent calc(40svh + 60px), #000 calc(40svh + 110px), #000 86%, transparent 100%);
    mask-image: linear-gradient(transparent 0, transparent calc(40svh + 60px), #000 calc(40svh + 110px), #000 86%, transparent 100%);
  }
  .read-text, .read-facts, .read-end { width: auto; margin: 0 var(--gutter); }
  .read-text p { font-size: 22px; }
  .read-facts, .read-end { padding-top: calc(40svh + 50px); }
}

/* ======================================================================
   About, set as type: big sentences with small living things inline
   ====================================================================== */
.sent { position: relative; padding: 0 var(--gutter); }

.sent-big {
  margin: 0;
  max-width: 21ch;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: clamp(38px, 6.2vw, 112px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.sent .keep { white-space: nowrap; } /* a word and its picture never split across lines */

/* inline pictures: pills that sit on the line like words */
.inl {
  display: inline-block;
  position: relative;
  vertical-align: -0.12em;
  height: 0.86em;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 0 0.04em; /* punctuation can sit right against it */
}
.inl canvas, .inl img { display: block; width: 100%; height: 100%; }

/* bubbly: they pop in like the page's bubbles, then float and gently swell;
   hover squishes them */
.inl {
  transform: scale(0.2);
  opacity: 0;
  transform-origin: 50% 60%;
  transition: transform 0.6s cubic-bezier(0.34, 1.9, 0.5, 1), opacity 0.25s;
}
.inl.is-in { transform: scale(1); opacity: 1; animation: inl-float var(--bob-time, 3.4s) ease-in-out var(--bob-delay, 0s) infinite; }
@keyframes inl-float {
  0%, 100% { transform: translateY(0) scale(1); }
  30%      { transform: translateY(-0.05em) scale(1.045, 1.03); }
  60%      { transform: translateY(0.02em) scale(0.985, 1.015); }
}
.inl.is-in:hover { animation: inl-squish 0.55s cubic-bezier(0.34, 1.6, 0.5, 1); }
@keyframes inl-squish {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.18, 0.86); }
  55%  { transform: scale(0.92, 1.1); }
  80%  { transform: scale(1.04, 0.97); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .inl, .inl.is-in { transform: none; opacity: 1; animation: none; transition: none; }
}
.inl-head { width: 1.34em; background: #2f66d6; }
.inl-icon {
  width: 1.05em;
  background: rgb(255 255 255 / 0.12);
  /* the icon sits smaller, dead centre in its bubble */
}
.inl.inl-icon img { position: absolute; left: 50%; top: 50%; width: 64%; height: 64%; object-fit: contain; translate: -50% -50%; }
.inl-dog {
  width: 1.1em;
  height: 1.16em;
  vertical-align: -0.28em;
  border-radius: 0.34em;
  background: rgb(255 255 255 / 0.12);
}

.sent-open {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
}
.sent-hint {
  margin-top: clamp(28px, 6vh, 64px);
  font-size: 13px;
  font-weight: 500;
  color: #c4d4f5;
}

/* the rest of the story: one paragraph, set as an editorial block offset to
   the right of the big sentences */
.sent-story {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  padding: 14vh 0 18vh;
  border-top: 1px solid rgb(255 255 255 / 0.2);
}
.sent-story p {
  grid-column: 6 / 13;
  margin: 0;
  max-width: 34ch;
  font-size: clamp(22px, 2.3vw, 40px);
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: -0.015em;
  color: rgb(255 255 255 / 0.86);
  text-wrap: pretty;
}
.sent-story strong { color: #fff; font-weight: 800; }

.sent-dog { min-height: 90vh; display: flex; align-items: center; padding: 6vh 0; }

.sent-facts { padding: 14vh 0 8vh; max-width: 760px; }
.sent-end { min-height: 60vh; padding: 10vh 0 20vh; }

.intro .sent { visibility: hidden; }

/* George's speech bubble on About: hangs above his head in the sentence
   (positioned by about.js), the same bubble as on Works */
.sent-say {
  position: fixed;
  z-index: 40;
  margin: 0;
  padding: 9px 14px;
  border-radius: 16px 16px 16px 4px;
  background: #fff;
  color: var(--blue);
  font-family: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  translate: 0 -100%;
  transform-origin: 0 100%;
}

@media (max-width: 900px) {
  .sent-big { max-width: none; font-size: clamp(34px, 10.4vw, 60px); }
  .sent-story { display: block; padding: 8vh 0 12vh; }
  .sent-dog { min-height: 70vh; }
}

/* ======================================================================
   Phone menu (nav.js): a round button, and a full-screen menu that bubbles
   out of it in the opposite colour to the page
   ====================================================================== */
.menu-btn {
  display: none;
  position: relative;
  z-index: 61;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--blue) 35%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, #fff 60%, transparent);
  color: var(--blue);
  cursor: pointer;
}
.on-blue .menu-btn { border-color: rgb(255 255 255 / 0.45); background: rgb(1 75 170 / 0.6); color: #fff; }
.menu-btn span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), top 0.35s;
}
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 24px; }
.menu-open .menu-btn span:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 20px; transform: rotate(-45deg); }
.menu-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.on-blue .menu-btn:focus-visible { outline-color: #fff; }
/* over the open menu the button takes the menu's colours */
.menu-open .menu-btn { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.45); }
.on-blue.menu-open .menu-btn,
.menu-open .on-blue .menu-btn { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 35%, transparent); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px var(--gutter) 48px;
  background: var(--blue);
  color: #fff;
}
.menu[hidden] { display: none; }
.on-blue .menu { background: #fff; color: var(--blue); }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.menu li a {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(44px, 13vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-decoration: none;
}
.menu li a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }
.menu-hello {
  align-self: flex-start;
  margin-top: 36px;
  padding: 14px 26px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.on-blue .menu-hello { background: var(--blue); color: #fff; }
.menu a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* the nav sits above the open menu; the page underneath doesn't scroll */
.menu-open .nav { z-index: 61; }
.menu-open body { overflow: hidden; }

@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .nav { gap: 12px; }
  .nav > .pill { margin-left: auto; }
}
@media (max-width: 760px) {
  .nav > .pill { display: none; } /* Say hello lives in the menu on phones */
}
/* the logo over the open menu: white on the blue menu, out of the way on the white one */
.menu-open body:not(.on-blue) .brand-mark { filter: brightness(0) invert(1); }
.menu-open body.on-blue .nav .brand { visibility: hidden; }

/* ======================================================================
   Case study template (project.html, filled by project.js)
   ====================================================================== */
.case { padding: 0 var(--gutter); }
.case-page .nav { background: rgb(255 255 255 / 0.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

.case-hero { padding: clamp(110px, 16vh, 170px) 0 clamp(28px, 5vh, 56px); max-width: 1200px; }
.case-back { display: inline-block; margin-bottom: 28px; font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none; }
.case-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.case-meta { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: #3b5b8f; font-variant-numeric: tabular-nums; }
.case-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(44px, 8.4vw, 150px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.case-summary { margin: 22px 0 0; max-width: 36ch; font-size: clamp(18px, 1.6vw, 26px); line-height: 1.4; color: var(--ink); }

/* the cover: dots that bubble into colour on arrival */
.case-cover {
  position: relative;
  margin: 0;
  aspect-ratio: 1616 / 1264; /* same shape as the cover, so it shows whole */
  width: min(100%, calc(82vh * 1.2785));
  margin-inline: auto;
  border-radius: 24px;
  overflow: hidden;
  background: #0b56b9;
}
.case-cover img, .case-cover canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.case-cover canvas { visibility: hidden; }
.case-cover.is-live canvas { visibility: visible; }
.case-cover.is-live img { visibility: hidden; }

.case-facts { padding: clamp(32px, 6vh, 64px) 0; border-bottom: 1px solid rgb(1 75 170 / 0.16); }
.case-facts dl { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 24px; margin: 0; }
.case-facts dt { font-size: 13px; font-weight: 600; color: #3b5b8f; }
.case-facts dd { margin: 6px 0 0; font-size: clamp(17px, 1.4vw, 21px); font-weight: 600; color: var(--blue); }

.case-h2 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(24px, 2.4vw, 40px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.case-brief { display: grid; grid-template-columns: repeat(12, 1fr); padding: clamp(56px, 12vh, 120px) 0; }
.case-brief .case-h2 { grid-column: 1 / 5; }
.case-brief p { grid-column: 5 / 13; margin: 0; max-width: 34ch; font-size: clamp(22px, 2.2vw, 38px); font-weight: 600; line-height: 1.34; letter-spacing: -0.015em; color: var(--blue); }

.case-steps { padding: 0 0 clamp(56px, 12vh, 120px); }
.case-step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.case-step-list li { padding-top: 18px; border-top: 2px solid var(--blue); }
.case-step-num { font-size: 13px; font-weight: 700; color: #3b5b8f; font-variant-numeric: tabular-nums; }
.case-step-list h3 { margin: 8px 0 8px; font-size: clamp(20px, 1.8vw, 28px); font-weight: 800; color: var(--blue); }
.case-step-list p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink); }

/* detail images (placeholder: crops of the cover) */
/* the whole project: every picture and video, in order, never cropped */
.case-gallery { display: grid; gap: clamp(10px, 1.6vw, 20px); padding-bottom: clamp(40px, 8vh, 80px); }
.case-row { display: flex; gap: clamp(10px, 1.6vw, 20px); align-items: flex-start; }
.case-piece { margin: 0; min-width: 0; border-radius: 16px; overflow: hidden; }
/* a named piece: picture, then its name in small type */
.case-named { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.case-label { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: #3b5b8f; }
@media (max-width: 760px) { .case-group .case-named { flex-basis: 100% !important; } }

/* a set of pictures under one heading (Mockups), two to a row, with room between rows */
.case-group { display: grid; gap: clamp(24px, 3vw, 48px) clamp(10px, 1.6vw, 20px); padding-block: clamp(8px, 2vh, 24px); }
.case-group > .case-cap { padding-bottom: 4px; }
@media (max-width: 760px) { .case-group .case-row { flex-wrap: wrap; } .case-group .case-piece { flex-basis: 100% !important; } }
/* a picture with our own caption beside it */
.case-captioned { flex: 1 1 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: clamp(16px, 3vw, 48px); align-items: end; padding-block: clamp(8px, 2vh, 24px); }
.case-cap h3 { margin: 10px 0 10px; font-family: var(--display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 40px); line-height: 0.95; letter-spacing: -0.02em; color: var(--blue); }
.case-cap p { margin: 0; max-width: 30ch; font-size: 16px; line-height: 1.5; color: var(--ink); }
/* tall pages (posters, shelves) sit narrower so they don't tower */
.case-captioned.is-tall { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.case-captioned.is-tall .case-piece { max-width: 560px; justify-self: end; width: 100%; }
@media (max-width: 760px) { .case-captioned, .case-captioned.is-tall { grid-template-columns: 1fr; } .case-captioned.is-tall .case-piece { justify-self: stretch; } }
.case-piece img, .case-piece video { display: block; width: 100%; height: 100%; object-fit: contain; }

.case-results { padding: clamp(56px, 12vh, 120px) 0; }
.case-result-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-result-list strong {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(44px, 6vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--blue);
}
.case-result-list strong.is-quote { font-size: clamp(28px, 3vw, 48px); line-height: 1; }
.case-result-list span { display: block; margin-top: 10px; max-width: 22ch; font-size: 16px; line-height: 1.45; color: var(--ink); }

.case-more { margin: 0 0 clamp(40px, 8vh, 80px); display: flex; flex-wrap: wrap; gap: 12px 32px; }
.case-more a { font-weight: 700; color: var(--blue); text-underline-offset: 4px; }

/* next project: one big link that floods to the next case study */
.case-next {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 24px;
  margin: 0 calc(var(--gutter) * -1);
  padding: clamp(48px, 10vh, 100px) var(--gutter) clamp(56px, 12vh, 120px);
  background: var(--blue);
  color: #fff;
  text-decoration: none;
}
.case-next-label { grid-column: 1 / -1; font-size: 14px; font-weight: 600; color: #c4d4f5; }
.case-next-title {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(40px, 8vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.case-next-arrow { font-size: clamp(36px, 5vw, 80px); line-height: 1; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.case-next:hover .case-next-arrow { transform: translateX(12px); }
.case-next:focus-visible { outline: 3px solid var(--blue); outline-offset: -8px; }

.intro .case { visibility: hidden; }

@media (max-width: 900px) {
  .case-facts dl { grid-template-columns: 1fr 1fr; }
  .case-scope { grid-column: 1 / -1; }
  .case-brief { display: block; }
  .case-step-list, .case-result-list { grid-template-columns: 1fr; }
  .case-cover { border-radius: 18px; }
}

/* About: the white dot cloud in the bottom-right corner, behind the text */
.about-dots { position: fixed; right: 0; bottom: 0; width: min(30vw, 420px); opacity: 0.45; z-index: 0; }
.about-dots img { filter: brightness(0) invert(1); }
.sent { position: relative; z-index: 1; }
.intro .about-dots { visibility: hidden; }
@media (max-width: 900px) { .about-dots { width: 70vw; opacity: 0.35; } }

/* ---------- worked with: brands from George's CV ----------
   one colour at rest so different brand colours don't clash; on Services
   each fills in with its own colours on hover, like the Works covers */
.brands { margin-top: clamp(36px, 6vh, 64px); }
.brands-title { margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #3b5b8f; }
.brands-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 26px 40px; }
.brand-logo { display: grid; width: var(--w); height: var(--h); }
.brand-logo img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.brand-m { opacity: 0.72; }
.brand-c { opacity: 0; transform: scale(0.94); }
@media (hover: hover) {
  .brand-logo:hover .brand-m { opacity: 0; }
  .brand-logo:hover .brand-c { opacity: 1; transform: scale(1); }
}
/* About is blue: the logos turn white */
.on-blue-brands .brand-m { filter: brightness(0) invert(1); opacity: 0.85; }
.sent-brands { padding: 4vh 0 8vh; max-width: 900px; }
.sent-brands .about-h2 { margin-bottom: 28px; }
@media (max-width: 760px) { .brands-list { gap: 22px 30px; } }
@media (prefers-reduced-motion: reduce) { .brand-logo img { transition: none; } }

/* ---------- nothing shows before its page's entrance ----------
   While a page waits to arrive (the "intro" class), its sections are
   visibility:hidden. Some pieces inside them set visibility:visible for
   themselves (the halftone canvases, the dot clouds, the corner marks), and
   a visible child shows even inside a hidden parent, so they used to flash
   on screen for a frame or two before the entrance hid them and slid them
   in. Hide everything inside until the entrance takes over. */
.intro .work-rail *, .intro .work-dots *, .intro .rail-ui *,
.intro .svc-pick *, .intro .svc-side *, .intro .svc-dots *,
.intro .about-dots *, .intro .sent *, .intro .case * { visibility: hidden !important; }
.intro .work-rail .project-mark img { visibility: hidden !important; }

/* ---------- Services: "Rather DM?" under the brief ---------- */
.brief-dm { margin: 14px 0 0; font-size: 14px; color: #c4d4f5; text-align: center; }
.brief-dm a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.brief-dm a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Services: the check-before-sending dialog ---------- */
.send-dlg {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  overflow: auto;
  box-shadow: 0 30px 80px -20px rgb(11 31 63 / 0.45);
}
.send-dlg::backdrop { background: rgb(1 75 170 / 0.55); backdrop-filter: blur(3px); }
.send-dlg[open] { animation: send-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
@keyframes send-in { from { opacity: 0; transform: translateY(18px) scale(0.97); } }
.send-form { padding: clamp(22px, 4vw, 34px); }
.send-step[hidden] { display: none; }
.send-title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--blue);
  outline: none;
}
.send-lede { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: #3b5b8f; }
.send-picks { list-style: none; margin: 0; padding: 0; }
.send-picks li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-top: 1px solid #e3eaf5;
  font-size: 15px; font-weight: 600;
}
.send-picks li span { font-size: 13px; font-weight: 500; color: #3b5b8f; }
.send-time { margin: 0 0 18px; padding: 10px 0 0; border-top: 1px solid #e3eaf5; font-size: 14px; color: #3b5b8f; }
.send-time:empty { display: none; }
.send-field { display: grid; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.send-field em { font-style: normal; font-weight: 500; color: #4a5f85; }
.send-field input, .send-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #c9d6ea;
  border-radius: 12px;
  background: #f6f9fd;
  font: inherit;
  font-size: 16px; /* 16px stops iPhones zooming in on focus */
  font-weight: 400;
  color: var(--ink);
  resize: vertical;
}
.send-field input:focus, .send-field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; background: #fff; }
.send-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send-error { margin: 0 0 10px; font-size: 14px; color: #b42318; }
.send-error:empty { display: none; }
.send-error a { color: inherit; font-weight: 600; }
.send-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.send-actions button {
  height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.send-back { border: 1px solid #c9d6ea; background: #fff; color: var(--blue); }
.send-go, .send-close { border: 0; background: var(--blue); color: #fff; }
.send-actions button:hover:not(:disabled) { transform: translateY(-2px); }
.send-actions button:disabled { opacity: 0.7; cursor: progress; }
.send-actions button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.send-tick {
  width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: #fff;
}
.send-tick svg { width: 36px; height: 36px; }
.send-dlg[open] [data-step="sent"]:not([hidden]) .send-tick { animation: send-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes send-pop { from { transform: scale(0.3); opacity: 0; } }
.send-ig { margin: 0 0 22px; font-size: 15px; color: var(--ink); }
.send-ig a { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 480px) {
  .send-actions button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .send-dlg[open], .send-dlg[open] .send-tick { animation: none; }
  .send-actions button { transition: none; }
}

/* ---------- About: find me ---------- */
.find-me { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.find-me a { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
.find-me a span { text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.4); text-underline-offset: 4px; }
.find-me a:hover span { text-decoration-color: #fff; }
.find-me svg { width: 20px; height: 20px; flex: none; }
.find-me a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }

/* ---------- phone menu: Instagram ---------- */
.menu-ig { display: inline-flex; align-items: center; gap: 9px; align-self: flex-start; margin-top: 18px; color: inherit; font-size: 15px; font-weight: 600; text-decoration: none; opacity: 0.9; }
.menu-ig svg { width: 20px; height: 20px; }
.req { color: #b42318; font-weight: 700; }
/* Instagram glyph beside the handle */
.brief-dm a, .send-ig a { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.brief-dm a svg, .send-ig a svg { width: 18px; height: 18px; flex: none; }
.send-field input[aria-invalid="true"] { border-color: #b42318; }
.send-fix { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
