/* Bartlett Schenk — go-to-market consultancy.
   Sections follow page order: base, header, hero, intro, dark sections,
   our work, company, contact band, footer, then inner pages and case studies. */

:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ink: #0b0b0d;
  --text: #2a2a2f;
  --body: #6c6c74;
  --muted: #94949c;
  --fade: #b8b8c0;
  --line: #e6e6ea;
  --soft: #f4f4f6;

  --dark: #0a0a0b;
  --dark-card: #131316;
  --dark-raise: #1c1c20;
  --dark-line: #26262b;
  --dark-body: #9d9da7;

  /* Brand orange, as in the favicon. Text on orange is ink; small orange text
     on white uses the deeper --accent-ink so it stays readable. */
  --accent: #f05a22;
  --accent-ink: #c8410b;
  --on-accent-soft: rgba(11, 11, 13, 0.8);

  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1320px;
  --section: clamp(84px, 9vw, 136px);
  --radius: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

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

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}

.dark :focus-visible,
.footer :focus-visible {
  outline-color: var(--accent);
}

.together :focus-visible {
  outline-color: var(--ink);
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform 0.2s;
}

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

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

.h2 {
  font: 600 clamp(32px, 3.5vw, 50px)/1.06 var(--display);
  letter-spacing: -0.03em;
}

.h3 {
  font: 600 clamp(24px, 2.2vw, 30px)/1.15 var(--display);
  letter-spacing: -0.02em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 500;
  transition: gap 0.3s var(--ease), color 0.2s;
}

.text-link .i-arrow {
  width: 15px;
  height: 15px;
}

.text-link:hover {
  gap: 12px;
  color: var(--ink);
}

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

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 14.5px/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.pill .i-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}

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

.pill:hover .i-arrow {
  transform: translate(2px, -2px);
}

.pill--light {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.pill--light:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.pill--accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

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

.pill--dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

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

/* Outlined, for photos and dark sections. */
.pill--ghost {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

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

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  transition: border-color 0.3s, background-color 0.3s;
}

.header.is-scrolled {
  border-bottom-color: var(--line);
}

/* Over a dark section (site.js decides), the header turns dark too. */
.header.is-dark {
  border-bottom-color: transparent;
  background: rgba(10, 10, 11, 0.86);
}

.header.is-dark .header__brand img {
  filter: invert(1);
}

.header.is-dark .nav a {
  color: rgba(255, 255, 255, 0.72);
}

.header.is-dark .nav a:hover,
.header.is-dark .nav a[aria-current] {
  color: #fff;
}

.header.is-dark .header__cta {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

.header.is-dark .header__cta:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 84px;
}

.header__brand {
  flex: none;
}

.header__brand img {
  width: 94px;
}

/* Text links to the left of the "Get in touch" pill (case study pages). */
.nav {
  margin-left: auto;
}

.nav a {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--accent-ink);
}

.header__cta {
  margin-left: auto;
  height: 42px;
  padding: 0 18px;
}

.nav ~ .header__cta {
  margin-left: 0;
}

@media (max-width: 980px) {
  .header__inner {
    height: 72px;
  }

  /* On phones Home sits closer to the "Get in touch" pill. */
  .header__inner:has(.nav) {
    gap: 16px;
  }
}

/* The smallest phones can't fit the logo, Home and the pill on one line.
   The logo already links home, so Home makes way. */
@media (max-width: 359px) {
  .nav {
    display: none;
  }

  .nav ~ .header__cta {
    margin-left: auto;
  }
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 40px;
  align-items: start;
  padding-block: clamp(56px, 7.5vw, 112px) clamp(64px, 8vw, 120px);
}

.hero__side {
  max-width: 330px;
  padding-top: 0.5em;
}

.hero__lead {
  margin-bottom: 24px;
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.6;
}

.hero__title {
  max-width: 11em;
  font: 600 clamp(44px, 6vw, 88px)/1 var(--display);
  letter-spacing: -0.042em;
}

.hero--home {
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: clamp(40px, 5vw, 72px);
}

/* "Go-to-market" stays on one line: it sets at about 5.7em, so 14vw always fits. */
.hero--home .hero__title {
  max-width: 7.4em;
  font-size: clamp(40px, 14vw, 128px);
  line-height: 0.96;
}

.hero--wide .hero__title {
  max-width: 15em;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.dot {
  color: var(--accent);
}

.nobreak {
  white-space: nowrap;
}

/* Each piece of the home title rises out of its own mask. The padding lets
   ascenders and descenders show; the negative margin keeps the line height. */
.rise,
.word {
  display: inline-block;
  overflow: hidden;
  padding: 0.16em 0.04em 0.2em 0;
  margin: -0.16em -0.04em -0.2em 0;
  vertical-align: top;
}

.rise > span,
.word > span {
  display: inline-block;
  transform-origin: 0 100%;
}

.hero--home .dot {
  display: inline-block;
  vertical-align: top;
  transform-origin: 50% 78%;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero__title {
    order: -1;
  }

  .hero__side {
    padding-top: 0;
  }
}

/* ---------- Story (home opening) ----------
   The title with a heavy line under it, then two sentences set full size.
   Without .is-live (no JavaScript, or reduced motion) the three panels stack:
   white, dark, white. site.js adds .is-live and the section becomes a tall
   scroll track with a sticky 100svh stage, the panels layered inside it. The
   track height sets how long the story lasts; the beats are in site.js. */

.story {
  --head: 84px;
}

.story__rule {
  height: 3px;
  background: var(--dark);
}

.story__panel--dark {
  background: var(--dark);
  color: #fff;
}

.story__panel--light {
  background: #fff;
}

.story__panel--dark,
.story__panel--light {
  padding-block: var(--section);
}

.story__line {
  max-width: 13.6em;
  font: 500 clamp(34px, min(6.4vw, 12svh), 100px)/1.02 var(--display);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

/* An orange bar behind part of a sentence. As an inline background it follows
   the text across a line break; live, it sweeps in once the words land.
   White text on the dark panel, ink on the white one.
   The lines are set so tight that a full-height bar reaches into the line
   above, so the bar starts at its own line's top (--bar-height trims the
   font's extra room above), and the words are positioned so they paint over
   it: a descender from the line above always shows. */
.story__line .highlight {
  --bar-height: calc(100% - 0.09em);
  padding-right: 0.06em;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 100% var(--bar-height);
  color: #fff;
}

.story__line .word {
  position: relative;
}

.story__panel--light .story__line .highlight {
  color: var(--ink);
}
.story.is-live {
  height: 400vh;
  height: 400svh;
  margin-top: calc(-1 * var(--head));
}

.story.is-live .story__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* Each panel fills the stage and centres its content in the space under the header. */
.story.is-live .story__panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: var(--head) 0 0;
}

.story.is-live .story__hero {
  padding-block: 0;
}

/* site.js clips these as you scroll: the dark panel opens out of the line,
   the light one wipes up from the bottom. These are their resting states. */
.story.is-live .story__panel--dark {
  visibility: hidden;
}

.story.is-live .story__panel--light {
  clip-path: inset(100% 0 0 0);
}

/* Words wait below their masks, rise in when the panel .is-shown, and leave
   upwards when it .is-past. Scrolling back reverses each step.
   will-change keeps each word drawn the same way at rest as while it moves.
   Without it, the browser redraws the words snapped to whole pixels the
   moment the rise ends, and the whole line visibly twitches. */
.story.is-live .story__line .word > span {
  translate: 0 140%;
  rotate: 7deg;
  transition: translate 0.55s var(--ease) calc(var(--i, 0) * 10ms), rotate 0.55s var(--ease) calc(var(--i, 0) * 10ms);
  will-change: transform;
}

.story.is-live .is-shown .story__line .word > span {
  translate: none;
  rotate: none;
  transition-duration: 1.1s;
  transition-delay: calc(80ms + var(--i, 0) * 38ms);
}

.story.is-live .is-past .story__line .word > span {
  translate: 0 -140%;
  rotate: -4deg;
}

.story.is-live .story__line .highlight {
  background-size: 0% var(--bar-height);
  transition: background-size 0.4s var(--ease);
}

.story.is-live .is-shown .story__line .highlight {
  background-size: 100% var(--bar-height);
  transition: background-size 1s var(--ease) 1.2s;
}

/* On the white panel the bar holds off until every word has landed, then
   waits --highlight-pause more: change that to tune the gap. The last word
   starts at 80ms + (--words - 1) × 38ms and takes 1.1s (the word timings
   above); site.js sets --words on the line. */
.story.is-live .story__panel--light.is-shown .story__line .highlight {
  --highlight-pause: 0s;
  transition-delay: calc(80ms + (var(--words, 15) - 1) * 38ms + 1.1s + var(--highlight-pause));
}

/* Descenders hang below a word's box, so a mask alone can leave slivers of
   letters behind. The words are hidden outright whenever they're off stage:
   at once while waiting, and once the exit has played when leaving. (Only the
   visible copy; the sr-only sentence stays for screen readers.) */
.story.is-live .story__line > [aria-hidden] {
  visibility: hidden;
  transition: visibility 0s 0.9s;
}

.story.is-live .is-shown .story__line > [aria-hidden] {
  visibility: visible;
  transition-delay: 0s;
}

/* The title leaves the same way. Its rise on load uses transform, so the
   exit uses translate and rotate and the two never fight. */
.story.is-live .story__hero .rise > span {
  transition: translate 0.7s var(--ease) calc(var(--d, 0ms) * 0.4), rotate 0.7s var(--ease) calc(var(--d, 0ms) * 0.4);
}

.story.is-live .story__hero .dot {
  transition: scale 0.4s var(--ease);
}

.story.is-live .story__hero .hero__title > [aria-hidden] {
  transition: visibility 0s;
}

.story.is-live .is-past .story__hero .rise > span {
  translate: 0 -140%;
  rotate: -4deg;
}

.story.is-live .is-past .story__hero .dot {
  scale: 0;
}

.story.is-live .is-past .story__hero .hero__title > [aria-hidden] {
  visibility: hidden;
  transition-delay: 0.9s;
}

@media (max-width: 980px) {
  .story {
    --head: 72px;
  }
}

/* ---------- Film: the home video box with one play button ---------- */

/* Wide like the photo, so the play button lands in the first screen; 16:9 once a video plays. */
.film__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius);
  background: var(--dark);
}

/* While the film plays the frame is never taller than the screen below the
   sticky header, so the whole film and its controls fit in view. */
.film.is-playing .film__frame {
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 100px);
  max-height: calc(100svh - 100px);
}

.film__poster,
.film__frame iframe,
.film__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.film__poster {
  object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.86);
}

/* Centred with margins, not a transform, so the load animation can own transform. */
.film__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: clamp(84px, 9vw, 132px);
  height: clamp(84px, 9vw, 132px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: scale 0.5s var(--ease), background-color 0.3s;
}

.film__play svg {
  width: 30%;
  height: 30%;
  margin-left: 6%;
}

.film__play::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  pointer-events: none;
}

.film__play:hover {
  background: var(--accent);
  scale: 1.06;
}

.film__note {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 3vw, 32px);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.72);
  color: #fff;
  font-size: 13.5px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.3s;
}

.film.is-pending .film__note {
  opacity: 1;
}

@media (max-width: 700px) {
  .film__frame {
    aspect-ratio: 4 / 3;
  }

  /* Phones: an upright, story-shaped frame, so words and drawings both have room. */
  .film.is-playing .film__frame {
    aspect-ratio: 9 / 16;
    max-height: calc(100vh - 88px);
    max-height: calc(100svh - 88px);
  }
}

/* Pressing play: the photo falls away and the button shrinks into the orange
   dot the film opens on. js/film.js sets --dot-scale to match. */
.film.is-starting .film__play {
  scale: var(--dot-scale, 0.1);
  background: var(--accent);
  pointer-events: none;
  transition: scale 0.75s var(--ease), background-color 0.35s;
}

.film.is-starting .film__play svg {
  opacity: 0;
  transition: opacity 0.15s;
}

.film.is-starting .film__play::before {
  opacity: 0;
  animation: none;
}

.film.is-starting .film__poster {
  opacity: 0;
  scale: 1.08;
  transition: opacity 0.7s var(--ease), scale 1.2s var(--ease);
}

.film__frame:fullscreen {
  border-radius: 0;
  animation: none;
  clip-path: none;
}

/* ---------- Reel: the animated film (js/film.js) ----------
   A stage of stacked layers: background light, scenes, the travelling dot,
   film texture, then the HUD and controls. Sizes follow the stage through
   container units, and a narrow stage stacks each scene's drawing above
   its words. */

.reel {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  container: reel / size;
  background: var(--dark);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.35s;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  --dot: 12px;
  /* The logo top left, and the clear space kept below it on every scene. */
  --hud-top: 5cqh;
  --hud-logo: clamp(52px, 6.4cqw, 96px);
  --hud-gap: clamp(40px, 6.5cqh, 56px);
}

.reel.is-on {
  opacity: 1;
}

.reel.is-idle {
  cursor: none;
}

.reel :focus-visible {
  outline-color: var(--accent);
}

.reel__layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Background: a fine dot grid, brighter around the travelling dot. */
.reel__grid,
.reel__lit-grid {
  position: absolute;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1.5px);
  background-size: 32px 32px;
}

.reel__grid {
  inset: -32px;
  will-change: transform;
}

.reel__lit {
  position: absolute;
  top: 0;
  left: 0;
  width: 56cqw;
  height: 56cqw;
  margin: -28cqw 0 0 -28cqw;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
  will-change: transform;
}

.reel__lit-grid {
  top: 0;
  left: 0;
  width: calc(100cqw + 64px);
  height: calc(100cqh + 64px);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1.6px);
  will-change: transform;
}

.reel__vignette {
  background: radial-gradient(ellipse 120% 95% at 50% 45%, transparent 52%, rgba(0, 0, 0, 0.5));
}

.reel__grain-wrap {
  overflow: hidden;
}

.reel__grain {
  position: absolute;
  inset: -12%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.06;
  animation: reel-grain 0.8s steps(5) infinite;
}

.reel.is-paused .reel__grain {
  animation-play-state: paused;
}

@keyframes reel-grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-6%, 4%); }
  40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 8%); }
  80% { transform: translate(7%, 2%); }
  100% { transform: translate(0, 0); }
}

/* Scenes */
.reel__scene {
  position: absolute;
  inset: 0;
  display: grid;
  /* Top: the logo's offset and height (it's 0.43 as tall as wide), then the gap. */
  padding: calc(var(--hud-top) + var(--hud-logo) * 0.43 + var(--hud-gap)) 7cqw max(17cqh, 66px);
  visibility: hidden;
  pointer-events: none;
}

.reel__scene--split {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 5cqw;
}

.reel__scene--stack {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 4cqh;
}

.reel__scene--center,
.reel__outro {
  align-content: center;
  justify-items: center;
  gap: clamp(10px, 3.2cqh, 30px);
  text-align: center;
}

.reel__outro {
  display: grid;
}

.reel__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(10px, 2.8cqh, 26px);
  min-width: 0;
}

.reel__visual {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.reel__visual svg,
.reel__icons svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.reel__icons {
  position: relative;
  width: min(62cqw, 760px);
  aspect-ratio: 770 / 132;
  margin-top: 1cqh;
}

/* Words */
.reel .m {
  display: inline-block;
  overflow: hidden;
  padding: 0.14em 0.04em 0.2em 0;
  margin: -0.14em -0.04em -0.2em 0;
  vertical-align: top;
}

.reel .m > span,
.reel .w {
  display: inline-block;
  transform-origin: 0 100%;
}

.reel .is-soft {
  color: rgba(255, 255, 255, 0.36);
}

.reel__nobr {
  white-space: nowrap;
}

/* Where the dot lands as a full stop: sized like one, never painted. */
.reel__stop {
  display: inline-block;
  width: 0.19em;
  height: 0.19em;
  margin-left: 0.03em;
}

.reel__title {
  max-width: 11em;
  font: 600 clamp(22px, 4.4cqw, 68px)/1.02 var(--display);
  letter-spacing: -0.035em;
}

.reel__lead,
.reel__sub {
  max-width: 30em;
  color: var(--dark-body);
  font-size: clamp(12px, 1.5cqw, 20px);
  line-height: 1.5;
}

.reel__sub {
  max-width: 34em;
}

.reel__statements {
  display: grid;
}

.reel__statement {
  grid-area: 1 / 1;
  max-width: 22em;
  font: 500 clamp(17px, 3cqw, 46px)/1.16 var(--display);
  letter-spacing: -0.024em;
}

.reel__headline {
  max-width: 12em;
  font: 600 clamp(28px, 6.2cqw, 96px)/1 var(--display);
  letter-spacing: -0.042em;
}

.reel__headline--md {
  max-width: 14em;
  font-size: clamp(24px, 4.6cqw, 72px);
  line-height: 1.04;
}

.reel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reel__chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6em 1em 0.6em 0.8em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  font: 500 clamp(10.5px, 1.05cqw, 14px)/1 var(--font);
}

.reel__chip s {
  position: absolute;
  inset: -1px;
  border: 1px solid var(--accent);
  border-radius: inherit;
  background: rgba(240, 90, 34, 0.14);
  opacity: 0;
}

.reel__chip b {
  position: relative;
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.reel__chip u {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
}

/* The chapter number, huge and hollow behind each service. */
.reel__big {
  position: absolute;
  right: -1cqw;
  bottom: -9cqh;
  color: transparent;
  font: 600 56cqh/0.8 var(--display);
  letter-spacing: -0.06em;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.reel__scene.is-on .reel__big {
  will-change: transform, opacity;
}

/* Drawings. --u is one screen pixel in the drawing's units, so hairlines
   and labels hold their size however large the drawing is shown. */
.reel svg {
  --u: 1;
  overflow: visible;
}

.reel .ln {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: max(calc(var(--u) * 1.5px), 2px);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reel .ln--soft {
  stroke: rgba(255, 255, 255, 0.5);
}

.reel .ln--faint {
  stroke: rgba(255, 255, 255, 0.18);
}

.reel .ln--accent {
  stroke: var(--accent);
}

.reel .ln--bold {
  stroke-width: max(calc(var(--u) * 2.4px), 3px);
}

.reel .ln--handle {
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: max(calc(var(--u) * 5px), 7px);
}

.reel .ln--icon {
  stroke: currentColor;
  stroke-width: max(calc(var(--u) * 1px), 1.25px);
}

.reel .ln--dash {
  stroke-dasharray: 6 9;
}

.reel .f-dark {
  fill: var(--dark);
}

.reel .f-raise {
  fill: var(--dark-raise);
}

.reel .f-white {
  fill: rgba(255, 255, 255, 0.9);
}

.reel .f-faint {
  fill: rgba(255, 255, 255, 0.14);
}

.reel .f-accent {
  fill: var(--accent);
}

.reel .f-tint {
  fill: rgba(240, 90, 34, 0.16);
  stroke: var(--accent);
}

.reel .f-band {
  fill: rgba(255, 255, 255, 0.05);
}

.reel .hatch {
  stroke: rgba(255, 255, 255, 0.13);
  stroke-width: 2;
}

.reel .lbl {
  fill: rgba(255, 255, 255, 0.6);
  font-family: var(--font);
  font-size: max(calc(var(--u) * 12.5px), 19px);
  font-weight: 500;
}

.reel .lbl--caps {
  font-size: max(calc(var(--u) * 10.5px), 16px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reel .lbl--accent {
  fill: var(--accent);
}

.reel .lbl--hub {
  fill: #fff;
  font-family: var(--display);
  font-size: max(calc(var(--u) * 15px), 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* The travelling dot, its comet trail and its ping. The dot and trail are
   drawn at twice their size and scaled down by the script, so as GPU layers
   they stay crisp when they grow. */
.reel__dot,
.reel__ghost,
.reel__ring {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--dot);
  height: var(--dot);
  margin: calc(var(--dot) / -2) 0 0 calc(var(--dot) / -2);
  border-radius: 50%;
  opacity: 0;
}

.reel__dot,
.reel__ghost {
  width: calc(var(--dot) * 2);
  height: calc(var(--dot) * 2);
  margin: calc(var(--dot) * -1) 0 0 calc(var(--dot) * -1);
  background: var(--accent);
  will-change: transform, opacity;
}

.reel__dot {
  box-shadow: 0 0 calc(var(--dot) * 3.6) rgba(240, 90, 34, 0.6);
}

.reel__ring {
  border: 1.5px solid var(--accent);
}

/* Stats and the closing card */
.reel__stats {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 6cqw, 88px);
  margin-top: 1cqh;
}

.reel__stat {
  display: grid;
  gap: 8px;
  padding-left: clamp(12px, 1.4cqw, 18px);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  text-align: left;
}

.reel__stat strong {
  font: 600 clamp(26px, 5cqw, 76px)/1 var(--display);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.reel__stat span {
  max-width: 13em;
  color: var(--dark-body);
  font-size: clamp(11px, 1.2cqw, 15px);
  line-height: 1.4;
}

.reel__wipe {
  position: absolute;
  inset: 0;
  display: none;
  background: var(--accent);
}

.reel__end {
  position: absolute;
  inset: 0;
  display: none;
  align-content: center;
  justify-items: start;
  gap: clamp(12px, 3.2cqh, 28px);
  padding: 10cqh 9cqw 18cqh;
  color: var(--ink);
  cursor: default;
}

.reel__end :focus-visible {
  outline-color: var(--ink);
}

.reel__end-title {
  max-width: 12em;
  font: 600 clamp(26px, 5.4cqw, 84px)/1 var(--display);
  letter-spacing: -0.04em;
}

.reel__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  pointer-events: none;
}

.reel__end .pill {
  height: clamp(36px, 6.4cqh, 46px);
  padding: 0 clamp(14px, 2cqw, 22px);
  font-size: clamp(12.5px, 1.3cqw, 14.5px);
}

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

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

.reel__email {
  border-bottom: 1px solid rgba(11, 11, 13, 0.4);
  font-size: clamp(12px, 1.25cqw, 14.5px);
  font-weight: 500;
}

/* HUD */
.reel__hud {
  position: absolute;
  top: var(--hud-top);
  left: 7cqw;
  pointer-events: none;
}

.reel__hud img {
  width: var(--hud-logo);
  height: auto;
  opacity: 0.9;
}

.reel__flash {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.55);
  opacity: 0;
  pointer-events: none;
}

.reel__flash svg {
  width: 22px;
  height: 22px;
}

.reel__flash.is-on {
  animation: reel-flash 0.6s var(--ease);
}

@keyframes reel-flash {
  from {
    opacity: 1;
    transform: scale(0.85);
  }

  to {
    opacity: 0;
    transform: scale(1.3);
  }
}

/* Controls: one glass bar that steps aside while the film plays. */
.reel__controls {
  position: absolute;
  right: clamp(10px, 2cqw, 24px);
  bottom: clamp(10px, 2.4cqh, 22px);
  left: clamp(10px, 2cqw, 24px);
  display: flex;
  align-items: center;
  gap: clamp(4px, 1cqw, 12px);
  padding: 5px 8px 5px 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  color: #fff;
  cursor: default;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.reel.is-idle .reel__controls {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.reel__btn {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.reel__btn[hidden] {
  display: none;
}

.reel__btn--toggle {
  background: #fff;
  color: var(--ink);
}

@media (hover: hover) {
  .reel__btn:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .reel__btn--toggle:hover {
    background: var(--accent);
  }

  .reel__bar:hover .reel__track {
    height: 6px;
  }

  .reel__bar:hover .reel__tip {
    opacity: 1;
  }
}

.reel__btn svg {
  width: 16px;
  height: 16px;
}

.reel__btn > span {
  display: grid;
}

.reel .i-pause,
.reel .i-replay,
.reel .i-muted,
.reel .i-exit,
.reel.is-playing .i-play,
.reel.is-ended .i-play,
.reel.is-muted .i-sound,
.reel.is-full .i-full {
  display: none;
}

.reel.is-playing .i-pause,
.reel.is-ended .i-replay,
.reel.is-muted .i-muted,
.reel.is-full .i-exit {
  display: grid;
}

.reel__bar {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  height: 30px;
  cursor: pointer;
  touch-action: none;
}

.reel__bar:focus-visible {
  outline-offset: 2px;
  border-radius: 4px;
}

.reel__track {
  display: flex;
  gap: 3px;
  width: 100%;
  height: 4px;
  transition: height 0.2s var(--ease);
}

.reel__bar.is-dragging .reel__track {
  height: 6px;
}

.reel__seg {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.reel__seg i {
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.reel__seg.is-current i {
  background: var(--accent);
}

/* On the orange closing card an orange fill would vanish. */
.reel.is-ended .reel__seg.is-current i {
  background: #fff;
}

.reel__tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  padding: 7px 10px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: 500 12px/1.2 var(--font);
  white-space: pre;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.15s;
}

.reel__bar.is-dragging .reel__tip {
  opacity: 1;
}

.reel__tip:empty {
  display: none;
}

.reel__time {
  flex: none;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.75);
  font: 500 12px/1 var(--font);
  font-variant-numeric: tabular-nums;
}

@container reel (max-width: 520px) {
  .reel__time {
    display: none;
  }

  .reel__btn {
    width: 32px;
    height: 32px;
  }
}

/* Phones: drop the costliest decoration (film grain, the lit grid and the
   blurred glass behind the controls) to keep every frame cheap. */
@container reel (max-width: 600px) {
  .reel__grain-wrap,
  .reel__lit {
    display: none;
  }

  .reel__controls {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(10, 10, 11, 0.8);
  }
}

/* Fingers need bigger targets: 40px buttons and a taller scrub area. Touch
   screens also skip the blurred glass, which redraws every frame. */
@media (pointer: coarse) {
  .reel__controls {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(10, 10, 11, 0.8);
  }

  .reel .reel__btn {
    width: 40px;
    height: 40px;
  }

  .reel__bar {
    height: 40px;
  }
}

/* A short, wide stage (a phone on its side): no logo, tighter type. */
@container reel (max-height: 420px) and (min-aspect-ratio: 5 / 4) {
  .reel__hud {
    display: none;
  }

  .reel__scene {
    padding-top: 6cqh;
  }

  .reel__copy {
    gap: 10px;
  }

  .reel__title {
    font-size: clamp(20px, 3.7cqw, 68px);
  }

  .reel__headline {
    font-size: clamp(24px, 4.6cqw, 96px);
  }

  .reel__headline--md {
    font-size: clamp(22px, 4cqw, 72px);
  }

  .reel__icons {
    width: 46cqw;
  }

  .reel__scene--center,
  .reel__outro {
    gap: 10px;
  }

  .reel__end {
    padding-bottom: 72px;
  }
}

/* Shorter still: the chips give way to the title and summary. */
@container reel (max-height: 300px) {
  .reel__chips {
    display: none;
  }
}

/* A narrow or square stage stacks each scene: drawing above, words below. */
@container reel (max-aspect-ratio: 5 / 4) {
  .reel__scene,
  .reel__hud {
    --hud-top: 4cqh;
  }

  .reel__scene {
    padding-right: 7cqw;
    padding-bottom: calc(56px + 3cqh);
    padding-left: 7cqw;
  }

  /* The statement above already names them. */
  .reel .lbl--ob {
    display: none;
  }

  .reel__scene--split {
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 3cqh;
  }

  .reel__scene--split .reel__visual {
    order: -1;
  }

  /* A fixed height, so each title sits in the same place from one service
     to the next however long its summary runs. */
  .reel__copy {
    gap: 2cqh;
    min-height: calc(54cqw + 4cqh);
  }

  .reel__title {
    font-size: max(20px, 7.2cqw);
  }

  .reel__lead,
  .reel__sub {
    font-size: max(12.5px, 3.5cqw);
  }

  .reel__statement {
    font-size: max(17px, 5.6cqw);
  }

  .reel__chips {
    gap: 6px;
  }

  .reel__chip {
    gap: 6px;
    padding: 0.55em 0.85em 0.55em 0.7em;
    font-size: max(10px, 2.9cqw);
  }

  .reel .lbl {
    font-size: max(calc(var(--u) * 11px), 19px);
  }

  .reel .lbl--caps {
    font-size: max(calc(var(--u) * 9.5px), 16px);
  }

  .reel__headline {
    font-size: 9.6cqw;
  }

  .reel__headline--md {
    font-size: 7.6cqw;
  }

  .reel__icons {
    width: 88cqw;
  }

  .reel__big {
    top: 7cqh;
    bottom: auto;
    font-size: 40cqw;
  }

  .reel__end-title {
    font-size: 8.6cqw;
  }

  .reel__stat strong {
    font-size: 9cqw;
  }

  .reel__stat span {
    font-size: max(11px, 3cqw);
  }
}

/* ---------- Intro statement ---------- */

.intro {
  padding-block: var(--section);
}

.hero + .intro {
  padding-top: 0;
}

.statement {
  max-width: 23em;
  font: 500 clamp(26px, 2.75vw, 40px)/1.22 var(--display);
  letter-spacing: -0.024em;
}

.statement .fade {
  color: var(--fade);
}

/* ---------- Dark sections, tiles ---------- */

.dark {
  position: relative;
  overflow: hidden;
  padding-block: var(--section);
  background: var(--dark);
  color: #fff;
}

.dark > .wrap {
  position: relative;
}

/* Our work (home): a big title, a short lead, then one wide photo card per case study. */

.work__head {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.work__title {
  font: 500 clamp(56px, 8.4vw, 120px)/0.95 var(--display);
  letter-spacing: -0.045em;
}

.work__lead {
  padding-top: 12px;
  font-size: 15.5px;
  line-height: 1.5;
}

.cases {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
}

/* The "Case study" link stretches over the whole card, so the photo is clickable too. */
.case {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  padding: 32px var(--gutter);
  border-radius: var(--radius);
  background: var(--dark-card);
  text-align: center;
}

.case__image {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.2s var(--ease);
}

.case::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 10, 11, 0.4);
  transition: background-color 0.5s var(--ease);
}

.case__name {
  max-width: 18em;
  margin: 0 auto 24px;
  font: 500 clamp(24px, 3.2vw, 46px)/1.1 var(--display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.case__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.case:hover .case__image {
  scale: 1.04;
}

.case:hover::after {
  background-color: rgba(10, 10, 11, 0.28);
}

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

.case:hover .pill--ghost .i-arrow {
  transform: translate(2px, -2px);
}

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

/* Phones: the card grows with its title instead of holding a fixed shape. */
@media (max-width: 700px) {
  .case {
    aspect-ratio: auto;
    min-height: 380px;
    padding-block: 48px;
  }

  .case__name {
    margin-bottom: 18px;
  }
}

/* ---------- Company + stats ---------- */

.company {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  padding-block: var(--section);
}

/* Centred against the stats column beside it. */
.company__text {
  align-self: center;
  padding-right: clamp(32px, 6vw, 96px);
}

.company__title {
  max-width: 12em;
  margin-bottom: 28px;
  color: var(--ink);
  font: 600 clamp(32px, 3.5vw, 50px)/1.08 var(--display);
  letter-spacing: -0.03em;
}

.company__text > p {
  max-width: 34em;
  color: var(--body);
  font-size: 15.5px;
}

.stats {
  display: grid;
  align-content: center;
  padding-left: clamp(32px, 6vw, 96px);
  border-left: 1px solid var(--line);
}

.stat {
  padding-block: 30px;
}

.stat + .stat {
  border-top: 1px solid var(--line);
}

.stat dt {
  margin-bottom: 14px;
  color: var(--accent);
  font: 500 clamp(64px, 7vw, 104px)/1 var(--display);
  letter-spacing: -0.05em;
}

.stat dd {
  max-width: 24em;
  color: var(--body);
  font-size: 14.5px;
}

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

  .company__text {
    padding-right: 0;
  }

  .stats {
    margin-top: 40px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

/* ---------- Contact band ---------- */

.together {
  padding-block: clamp(72px, 8vw, 120px);
  background: #fff;
  color: var(--ink);
}

.together__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(40px, 7vw, 120px);
}

.together h2 {
  max-width: 11em;
  margin-bottom: 22px;
  font: 600 clamp(32px, 3.4vw, 50px)/1.08 var(--display);
  letter-spacing: -0.03em;
}

.together__email {
  border-bottom: 1px solid rgba(200, 65, 11, 0.4);
  color: var(--accent-ink);
  font-weight: 500;
  transition: border-color 0.2s;
}

.together__email:hover {
  border-bottom-color: var(--accent-ink);
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 32px;
  align-content: start;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.field label {
  color: var(--body);
  font-size: 13px;
}

.field input,
.field textarea {
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--ink);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  align-items: center;
  gap: 20px;
}

.form__note {
  font-size: 14px;
}

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

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

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

.footer {
  border-top: 1px solid var(--dark-line);
  background: var(--dark);
  color: #fff;
}

.footer__top {
  padding-block: clamp(56px, 6vw, 88px) clamp(48px, 5vw, 72px);
}

.footer__brand img {
  width: 94px;
  margin-bottom: 14px;
}

.footer__brand p {
  color: var(--dark-body);
  font-size: 13.5px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--dark-line);
  color: var(--dark-body);
  font-size: 13px;
}

.footer__legal a {
  transition: color 0.2s;
}

.footer__legal a:hover {
  color: #fff;
}

/* ---------- Content rows, prose ---------- */

.rows {
  padding-bottom: var(--section);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 40px;
  padding-block: clamp(36px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.row__title {
  font: 600 20px/1.3 var(--display);
  letter-spacing: -0.01em;
}

@media (max-width: 800px) {
  .row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.prose {
  max-width: 680px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 1.8em;
  color: var(--ink);
  font: 600 clamp(22px, 2vw, 28px)/1.25 var(--display);
  letter-spacing: -0.015em;
}

.prose h3 {
  margin-top: 1.4em;
  color: var(--ink);
  font: 600 19px/1.35 var(--display);
}

.prose a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--ink);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose blockquote {
  padding-left: 22px;
  border-left: 2px solid var(--accent);
  color: var(--ink);
  font: 500 21px/1.5 var(--display);
  letter-spacing: -0.01em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose li::marker {
  color: var(--accent);
}

.placeholder-note {
  padding: 14px 18px;
  border-left: 2px solid var(--accent);
  background: var(--soft);
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- Case study pages ----------
   Laid out after case_study_template.png: a light label and title, the story
   in the right two-thirds, then previous/next links above the footer. */

.cs-hero {
  padding-block: clamp(64px, 9vw, 136px) clamp(64px, 7vw, 104px);
}

.cs-hero__label {
  margin-bottom: 8px;
  color: var(--text);
  font: 300 clamp(20px, 1.9vw, 26px)/1.2 var(--font);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.cs-hero__title {
  max-width: 20em;
  font: 500 clamp(30px, 3vw, 42px)/1.16 var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.cs-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 40px;
}

.cs-copy {
  grid-column: 2;
  color: #4d4d55;
  font: 300 17px/1.75 var(--font);
}

.cs-copy p + p {
  margin-top: 1.1em;
}

.cs-copy h2 {
  margin: 2.4em 0 0.8em;
  color: var(--ink);
  font: 500 clamp(22px, 2vw, 27px)/1.25 var(--display);
  letter-spacing: -0.015em;
}

.cs-copy h3 {
  margin: 1.7em 0 0.5em;
  color: var(--ink);
  font: 600 18px/1.4 var(--font);
  letter-spacing: -0.01em;
}

.cs-copy h2 + h3 {
  margin-top: 0;
}

.cs-num {
  margin-right: 0.55em;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

.cs-meta {
  display: grid;
  gap: 2px;
}

.cs-meta div {
  display: flex;
  gap: 16px;
}

.cs-meta dt {
  flex: none;
  width: 6.5em;
  color: var(--ink);
  font-weight: 500;
}

.cs-pager {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(64px, 7vw, 104px) clamp(72px, 8vw, 112px);
}

.cs-pager a {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--body);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s, gap 0.3s var(--ease);
}

.cs-pager a:hover {
  gap: 24px;
  color: var(--ink);
}

.cs-pager svg {
  flex: none;
  width: 34px;
  height: 12px;
}

@media (max-width: 800px) {
  .cs-body {
    grid-template-columns: 1fr;
  }

  .cs-copy {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .cs-pager__long {
    display: none;
  }

  .cs-copy {
    font-size: 16px;
  }
}

/* ---------- Page-load motion (home) ----------
   The animations wait on their first frame until html.is-loaded, which site.js
   adds once the display font is ready (so the words don't reflow mid-rise). */

html.js .rise > span {
  animation: rise 1.1s var(--ease) var(--d, 0ms) both paused;
}

html.js .hero--home .dot {
  animation: pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.72s both paused;
}

/* The line under the title draws in from the left as the title lands. */
html.js .story__rule {
  transform-origin: 0 50%;
  animation: draw 1.2s var(--ease) 0.7s both paused;
}

html.js .film__frame {
  animation: film-in 1.5s var(--ease) 0.3s both paused;
}

html.js .film__poster {
  animation: film-zoom 2.2s var(--ease) 0.3s both paused;
}

html.js .film__play {
  animation: pop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both paused;
}

html.js .film__play::before {
  animation: ring 2.6s ease-out 2s infinite paused;
}

html.is-loaded :is(.rise > span, .hero--home .dot, .story__rule, .film__frame, .film__poster, .film__play),
html.is-loaded .film__play::before {
  animation-play-state: running;
}

@keyframes rise {
  from {
    transform: translateY(112%) rotate(7deg);
  }

  to {
    transform: none;
  }
}

@keyframes draw {
  from {
    transform: scaleX(0);
  }

  to {
    transform: none;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes film-in {
  from {
    opacity: 0;
    transform: translateY(96px);
    clip-path: inset(6% 9% round 28px);
  }

  35% {
    opacity: 1;
  }

  to {
    opacity: 1;
    transform: none;
    clip-path: inset(0 round 8px);
  }
}

@keyframes film-zoom {
  from {
    transform: scale(1.25);
  }

  to {
    transform: none;
  }
}

@keyframes ring {
  from {
    opacity: 0.8;
    transform: scale(1);
  }

  70%,
  to {
    opacity: 0;
    transform: scale(1.6);
  }
}

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

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease) var(--delay, 0ms), transform 0.9s var(--ease) var(--delay, 0ms);
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

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

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html.js :is(.rise > span, .hero--home .dot, .story__rule, .film__frame, .film__poster, .film__play),
  html.js .film__play::before,
  .reel__grain {
    animation: none;
  }

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