/* ==========================================================================
   The AI Centre at 1 Mill Street
   Design tokens, base styles and page styles.
   ========================================================================== */

:root {
  /* Surfaces */
  --ink:        #101410; /* primary dark ground */
  --ink-deep:   #0c0f0c; /* footer ground */
  --ink-card:   #141814; /* card ground on dark */
  --paper:      #f4f8f4; /* light section ground */
  --paper-card: #e6ede6; /* card ground on light */

  /* Type on surfaces */
  --text:      #f2f7f2;
  --text-70:   rgba(242, 247, 242, 0.7);
  --text-66:   rgba(242, 247, 242, 0.66);
  --text-60:   rgba(242, 247, 242, 0.6);
  --text-55:   rgba(242, 247, 242, 0.55);
  --text-45:   rgba(242, 247, 242, 0.45);
  --text-42:   rgba(242, 247, 242, 0.42);
  --text-40:   rgba(242, 247, 242, 0.4);
  --text-32:   rgba(242, 247, 242, 0.32);
  --text-12:   rgba(242, 247, 242, 0.12);
  --paper-ink: #0f130f;
  --paper-82:  rgba(15, 19, 15, 0.82);
  --paper-68:  rgba(15, 19, 15, 0.68);
  --paper-62:  rgba(15, 19, 15, 0.62);
  --paper-50:  rgba(15, 19, 15, 0.5);
  --paper-45:  rgba(15, 19, 15, 0.45);

  /* Accent */
  --green:        #2bee4b;
  --green-shadow: rgba(16, 94, 29, 0.45);

  /* Rules */
  --rule-dark:       rgba(242, 247, 242, 0.12);
  --rule-card:       rgba(242, 247, 242, 0.14);
  --rule-field:      rgba(242, 247, 242, 0.16);
  --rule-light:      rgba(15, 19, 15, 0.14);
  --rule-light-card: rgba(15, 19, 15, 0.16);

  /* Type */
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-serif:   "Instrument Serif", Georgia, serif;
  --font-sans:    "Instrument Sans", system-ui, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --shell:  1260px;
  --gutter: 36px;

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --reveal-dur: 1s;
}

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

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

html { background: var(--ink); }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }

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

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

h1, h2, h3, p { margin: 0; }

[hidden] { display: none !important; }

/* Page shell — the dark ground every section sits on. */
.page {
  background: var(--ink);
  color: var(--text);
  overflow: clip;
  position: relative;
}

/* Film-grain overlay, pinned above everything. */
.grain {
  position: fixed;
  inset: 0;
  background: url("assets/grain.gif");
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 9999;
  transform: translateZ(0);
  will-change: opacity;
  contain: strict;
}

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

/* Montserrat 800, uppercase, tight — every headline. */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-wrap: pretty;
}

/* Instrument Serif italic — the counterweight to the display face. */
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.015em;
}

.eyebrow {
  font-size: 9.9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.link-label {
  font-size: 9.9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* The green underscore that punctuates the headlines. */
.tick {
  display: inline-block;
  width: 0.42em;
  height: 0.07em;
  background: var(--green);
  margin-left: 0.14em;
  vertical-align: 0.1em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10.8px;
  padding: 18px 27px;
  background: var(--green);
  color: #000;
  border: none;
  border-radius: 4.5px;
  font-family: inherit;
  font-size: 9.9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--green-shadow) 1px 7.2px 18px 0;
  transition: transform 0.25s ease;
}

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

.btn--nav  { padding: 14.4px 23.4px; }
.btn__short { display: none; }
.btn--wide { padding: 18px 30.6px; }
.btn--tall { padding: 18.9px 30.6px; }
.btn__arrow { font-size: 12.6px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10.8px;
  padding: 18px 27px;
  border: 1px solid rgba(242, 247, 242, 0.3);
  border-radius: 4.5px;
  font-size: 9.9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* --------------------------------------------------------------------------
   Photo tiles
   -------------------------------------------------------------------------- */

.tile {
  position: relative;
  border-radius: 12.6px;
  overflow: hidden;
  border: 1px solid var(--rule-card);
  background: var(--ink-card);
  transition: border-color 0.35s ease;
}

.tile:hover { border-color: var(--green); }

.tile--light {
  border-color: var(--rule-light-card);
  background: var(--paper-card);
}

.tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile__cap {
  position: absolute;
  left: 12.6px;
  bottom: 10.8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

/* --------------------------------------------------------------------------
   Decorative gradient washes
   -------------------------------------------------------------------------- */

/* The <picture> around a wash must not become a layout box itself: the .wash
   inside is absolutely positioned, but a static wrapper would still claim a
   cell in sections that lay their children out directly (.sectors is a grid). */
.wash-wrap { display: contents; }

.wash {
  position: absolute;
  pointer-events: none;
  object-fit: cover;
  backface-visibility: hidden;
  /* These are sized in vw and bleed past the shell. The base img rule caps
     width at 100% of the containing block, which for an absolutely positioned
     element is the --shell-wide section — that would hold the wash off the
     right edge of the window. */
  max-width: none;
}

/* Washes are authored light; invert them to sit on the dark ground. */
.wash--screen {
  filter: invert(1) hue-rotate(180deg);
  mix-blend-mode: screen;
}

.wash--multiply { mix-blend-mode: multiply; }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--reveal-dur) var(--ease-out) var(--reveal-delay, 0s),
    transform var(--reveal-dur) var(--ease-out) var(--reveal-delay, 0s);
}

.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */

@keyframes msMarqueeL {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@keyframes msFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(-1.2deg); }
}

@keyframes msCaret {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes msBars {
  0%, 100% { transform: scaleY(0.45); }
  50%      { transform: scaleY(1); }
}

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

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

.loader.is-done { opacity: 0; pointer-events: none; }

.loader__count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(72px, 14.4vw, 216px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text);
}

.loader__count span { color: var(--green); }

.loader__strip {
  position: absolute;
  bottom: 6vh;
  left: 0;
  right: 0;
  overflow: hidden;
}

.loader__track {
  display: flex;
  width: max-content;
  animation: msMarqueeL 14s linear infinite;
}

.loader__word {
  font-family: var(--font-serif);
  font-size: clamp(43.2px, 8.1vw, 108px);
  padding-right: 43.2px;
  color: var(--text-12);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 21.6px;
  padding: 16.2px var(--gutter);
  background: rgba(16, 20, 16, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(242, 247, 242, 0.1);
}

.nav--static {
  position: relative;
  z-index: 10;
  background: none;
  backdrop-filter: none;
}

.nav__brand { display: flex; align-items: center; gap: 14.4px; }
.nav__brand:hover { color: inherit; }
.nav__logo { height: 41.4px; width: auto; }

.nav__divider {
  width: 1px;
  height: 30.6px;
  background: rgba(242, 247, 242, 0.2);
}

.nav__sub {
  font-family: var(--font-serif);
  font-size: 21.6px;
  font-style: italic;
  letter-spacing: 0.01em;
  color: rgba(242, 247, 242, 0.78);
  line-height: 1;
}

.nav__links { display: flex; align-items: center; gap: 30.6px; }
.nav__link { color: var(--text-60); }

/* Three-bar equaliser mark. */
.bars { display: flex; align-items: flex-end; gap: 3.6px; height: 23.4px; }

.bars span {
  width: 2.7px;
  background: var(--green);
  transform-origin: bottom;
  animation: msBars 1.4s ease-in-out infinite;
}

.bars span:nth-child(1) { height: 60%; }
.bars span:nth-child(2) { height: 100%; animation-delay: 0.18s; }

.bars span:nth-child(3) {
  height: 75%;
  background: rgba(242, 247, 242, 0.5);
  animation-delay: 0.36s;
}

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

.hero {
  position: relative;
  overflow: visible;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 72px var(--gutter) 54px;
}

.hero__wash {
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  top: -73.8px;
  width: 100vw;
  height: calc(100% + 73.8px);
  object-position: right top;
  mask-image: linear-gradient(to left, #000 0%, #000 62%, transparent 97%);
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 62%, transparent 97%);
  opacity: 0.42;
}

.hero__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}

.hero__place { color: var(--text-42); }
.hero__est { color: var(--green); }

.hero__lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(170px, 24vw, 360px);
  gap: clamp(21.6px, 3.6vw, 50.4px);
  align-items: center;
  margin-top: 39.6px;
}

.hero__title {
  font-size: clamp(32px, 5.6vw, 92px);
  line-height: 0.88;
  letter-spacing: -0.045em;
}

.hero__title .serif { letter-spacing: -0.01em; }
.hero__title .serif--tight { letter-spacing: -0.015em; }

.hero__video {
  width: 100%;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: msFloat 9s ease-in-out infinite;
}

.hero__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 50.4px;
}

.hero__tiles .tile { height: 171px; }

/* --------------------------------------------------------------------------
   Opening statement — scroll-driven typewriter
   -------------------------------------------------------------------------- */

.statement {
  border-top: 1px solid var(--rule-dark);
  height: 180vh;
  position: relative;
}

.statement__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.statement__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 54px;
  align-items: center;
  width: 100%;
  max-height: 86vh;
}

.statement__photo {
  position: relative;
  height: min(70vh, 594px);
  aspect-ratio: 3 / 4;
  justify-self: start;
  display: flex;
  align-items: flex-end;
  padding: 19.8px;
}

.statement__photo .tile__cap { left: 19.8px; bottom: 18px; font-size: 9.9px; }

.statement__type {
  font-size: clamp(32.4px, 4.5vw, 77.4px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.statement__type .serif {
  letter-spacing: -0.02em;
  color: var(--text-55);
}

.caret {
  display: none;
  width: 0.09em;
  height: 0.72em;
  background: var(--green);
  margin-left: 0.1em;
  vertical-align: -0.02em;
  animation: msCaret 1s steps(1) infinite;
}

.caret.is-on { display: inline-block; }

.type-tick {
  display: inline-block;
  width: 0.4em;
  height: 0.07em;
  background: var(--green);
  margin-left: 0.14em;
  vertical-align: 0.12em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.type-tick.is-on { opacity: 1; }

/* --------------------------------------------------------------------------
   Light sections
   -------------------------------------------------------------------------- */

.light {
  background: var(--paper);
  color: var(--paper-ink);
  position: relative;
  overflow: clip;
}

.light .eyebrow { color: var(--paper-45); font-weight: 700; }

/* The Builders */
.builders__inner {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 99px var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 54px;
  align-items: center;
}

.builders__copy {
  display: flex;
  flex-direction: column;
  gap: 23.4px;
  align-items: flex-start;
}

.builders__title { font-size: clamp(39.6px, 5.4vw, 82.8px); }

.builders__standfirst {
  max-width: 414px;
  font-family: var(--font-serif);
  font-size: clamp(21.6px, 2.34vw, 32.4px);
  line-height: 1.12;
  color: var(--paper-82);
}

.builders__body {
  max-width: 396px;
  font-size: 16.2px;
  line-height: 1.6;
  color: var(--paper-62);
}

.builders__photo { height: min(64vh, 504px); }

/* --------------------------------------------------------------------------
   Parallax marquees
   -------------------------------------------------------------------------- */

.marquee {
  padding: 72px 0;
  overflow: clip;
  position: relative;
}

.marquee--rule {
  z-index: 1;
  border-bottom: 1px solid var(--rule-dark);
}

.marquee__row {
  display: flex;
  gap: 50.4px;
  width: max-content;
  will-change: transform;
}

.marquee__row + .marquee__row { margin-top: 10.8px; }

.marquee__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(41.4px, 6.66vw, 100.8px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__word--outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 247, 242, 0.45);
}

.marquee__word--green { color: var(--green); }

.marquee__serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(41.4px, 6.66vw, 100.8px);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: rgba(242, 247, 242, 0.85);
}

.marquee__serif--dim { color: var(--text-32); }

/* The closing pair runs a touch smaller. */
.marquee--closing { overflow: hidden; }

.marquee--closing .marquee__word,
.marquee--closing .marquee__serif { font-size: clamp(39.6px, 6.3vw, 93.6px); }

/* --------------------------------------------------------------------------
   Second statement — sectors
   -------------------------------------------------------------------------- */

/* The section is full width so the wash can bleed to the window edge; the
   shell and the grid live on the inner wrapper, as in every other section. */
.sectors {
  position: relative;
  z-index: 2;
}

.sectors__inner {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 99px var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 63px;
  align-items: center;
}

.sectors__wash {
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  top: 0;
  width: 100vw;
  height: 100%;
  object-position: right top;
  mask-image: linear-gradient(to left, #000 0%, #000 40%, transparent 88%);
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 40%, transparent 88%);
  opacity: 0.13;
}

.sectors__copy {
  display: flex;
  flex-direction: column;
  gap: 25.2px;
  align-items: flex-start;
}

.sectors__title {
  /* "New problems" has to hold one line in a column that stops growing once
     the shell caps, so the ceiling is set by the column, not the viewport. */
  font-size: clamp(39.6px, 4.4vw, 64px);
  line-height: 0.88;
  letter-spacing: -0.045em;
}

.sectors__title .serif { color: var(--green); }

.sectors__body {
  max-width: 387px;
  font-size: 16.2px;
  line-height: 1.5;
  color: var(--text-66);
}

.sectors__list { display: flex; flex-direction: column; gap: 16.2px; }

.sector {
  display: flex;
  align-items: center;
  gap: 25.2px;
  padding: 30.6px 28.8px;
  border: 1px solid var(--rule-field);
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.sector:hover {
  background: var(--paper);
  color: var(--paper-ink);
  transform: translateX(6px);
}

.sector__num {
  font-size: 11.7px;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.sector__name {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(16.2px, 1.8vw, 23.4px);
  letter-spacing: -0.02em;
}

.sector__arrow { color: var(--green); font-size: 16.2px; }

/* --------------------------------------------------------------------------
   Three pillars
   -------------------------------------------------------------------------- */

.pillars__grid {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.pillar {
  padding: 72px 27px 79.2px;
  display: flex;
  flex-direction: column;
  gap: 21.6px;
}

.pillar:not(:last-child) { border-right: 1px solid var(--rule-light); }

.pillar__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  color: var(--green);
}

.pillar .tile { height: 207px; width: 100%; }
.pillar .tile__cap { left: 14.4px; bottom: 12.6px; }

.pillar__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(23.4px, 2.61vw, 36px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  /* Reserved height keeps the three Learn / Build / Place kickers on one line. */
  min-height: 2.9em;
}

.pillar__kicker {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 25.2px;
  color: var(--paper-50);
}

/* --------------------------------------------------------------------------
   Things we have built
   -------------------------------------------------------------------------- */

.work { border-top: 1px solid var(--rule-dark); }

.work__head {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 99px var(--gutter) 45px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 63px;
  align-items: start;
}

.work__title { font-size: clamp(36px, 4.68vw, 72px); }

.work__copy { display: flex; flex-direction: column; gap: 21.6px; }

.work__body { font-size: 17.1px; line-height: 1.55; color: var(--text-70); }

.work__pull {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 27px;
  line-height: 1.15;
  color: var(--green);
}

.work__clients {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) 90px;
}

/* A 1px gap over a light ground draws the grid rules. */
.clients {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule-card);
  border: 1px solid var(--rule-card);
}

.client {
  background: var(--ink);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  /* An outline, not a border: it paints over the logo and takes no layout
     space, so the 1px-gap grid rules stay put on hover. */
  outline: 1px solid transparent;
  outline-offset: -1px;
  transition: outline-color 0.3s ease;
}

.client:hover { outline-color: var(--green); }

/* The logos ship as finished lozenges with their own backgrounds. */
.client__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Stats marquee
   -------------------------------------------------------------------------- */

.stats {
  background: var(--ink);
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
  padding: 54px 0;
  overflow: clip;
}

.stats__track {
  display: flex;
  width: max-content;
  animation: msMarqueeL 34s linear infinite;
}

.stat {
  display: inline-flex;
  align-items: baseline;
  gap: 14.4px;
  padding-right: 63px;
  white-space: nowrap;
}

.stat__figure {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34.2px, 4.14vw, 61.2px);
  letter-spacing: -0.04em;
  color: var(--green);
}

.stat__figure--plain {
  color: var(--text);
  font-size: clamp(30.6px, 3.78vw, 55.8px);
}

.stat__figure--serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34.2px, 4.14vw, 61.2px);
  letter-spacing: -0.02em;
  color: var(--text);
}

.stat__figure--serif-green { color: var(--green); }

.stat__label {
  font-size: 10.8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 247, 242, 0.5);
}

/* --------------------------------------------------------------------------
   Submission teaser
   -------------------------------------------------------------------------- */

.submission__wash {
  left: 0;
  right: 0;
  bottom: -20%;
  width: 100%;
  height: 125%;
  object-position: left bottom;
  mask-image: linear-gradient(to right, #000 0%, #000 38%, transparent 86%);
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 38%, transparent 86%);
  opacity: 0.18;
}

.submission__inner {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 99px var(--gutter);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 63px;
  align-items: start;
}

.submission__copy { display: flex; flex-direction: column; gap: 23.4px; }

.submission__title {
  font-size: clamp(36px, 4.86vw, 75.6px);
  letter-spacing: -0.045em;
}

.submission__body {
  max-width: 450px;
  font-size: 17.1px;
  line-height: 1.55;
  color: var(--paper-68);
}

.submission__steps {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule-light-card);
}

.step {
  display: flex;
  gap: 19.8px;
  padding: 23.4px 0;
  border-bottom: 1px solid var(--rule-light-card);
  align-items: baseline;
}

.step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11.7px;
  color: var(--green);
}

.step__text {
  font-family: var(--font-serif);
  font-size: 27px;
  line-height: 1.1;
}

.submission__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 21.6px;
  margin-top: 30.6px;
}

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

.footer {
  border-top: 1px solid var(--rule-dark);
  background: var(--ink-deep);
  position: relative;
  overflow: clip;
}

.footer__wash {
  left: 0;
  right: 0;
  top: -12%;
  width: 100%;
  height: 120%;
  object-position: right top;
  mask-image: linear-gradient(to left, #000 0%, #000 40%, transparent 88%);
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 40%, transparent 88%);
  opacity: 0.15;
}

.footer__inner {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 99px var(--gutter) 63px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 63px;
  align-items: start;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 25.2px;
  align-items: flex-start;
}

.footer__title {
  font-size: clamp(36px, 5.04vw, 79.2px);
  letter-spacing: -0.045em;
}

.footer__email {
  font-family: var(--font-serif);
  font-size: clamp(23.4px, 2.7vw, 37.8px);
  line-height: 1;
  border-bottom: 1px solid var(--green);
  padding-bottom: 5.4px;
}

.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.footer__col { display: flex; flex-direction: column; gap: 14.4px; }
.footer__col .eyebrow { font-weight: 700; color: var(--green); }

.footer__legal {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) 54px;
}

.footer__legal span,
.footer__legal-note { color: var(--text-40); }

/* Compact footer used on the submit page. */
.footer--slim {
  position: relative;
  z-index: 5;
  padding: 39.6px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 21.6px;
}

.footer--slim .footer__email { font-size: 18px; padding-bottom: 2.7px; }

/* --------------------------------------------------------------------------
   Submit page
   -------------------------------------------------------------------------- */

.submit-page { min-height: 100vh; }

.submit__wash {
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  top: 0;
  width: 100vw;
  height: 80vh;
  object-position: right top;
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 95%);
  opacity: 0.3;
}

.submit {
  position: relative;
  z-index: 5;
  max-width: 1116px;
  margin: 0 auto;
  padding: 81px var(--gutter) 117px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(43.2px, 6.3vw, 99px);
  align-items: start;
}

.submit__intro {
  display: flex;
  flex-direction: column;
  gap: 27px;
  position: sticky;
  top: 54px;
}

.submit__intro .eyebrow { color: var(--green); }

.submit__title {
  /* Past the shell cap this column stops growing while the gap keeps widening,
     so the ceiling is set by the column, not the viewport. */
  font-size: clamp(37.8px, 5.04vw, 68px);
  line-height: 0.88;
  letter-spacing: -0.045em;
}

.submit__body {
  max-width: 396px;
  font-size: 16.2px;
  line-height: 1.55;
  color: var(--text-66);
}

.submit__aside {
  display: flex;
  flex-direction: column;
  gap: 12.6px;
  padding-top: 7.2px;
  border-top: 1px solid var(--rule-dark);
  max-width: 378px;
}

.submit__aside span {
  font-size: 10.8px;
  line-height: 1.6;
  color: var(--text-45);
  padding-top: 12.6px;
}

.submit__form { display: flex; flex-direction: column; gap: 36px; }

.field { display: flex; flex-direction: column; gap: 12.6px; }
.field--compact { gap: 9px; }

.field__head { display: flex; align-items: baseline; gap: 14.4px; }

.field__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10.8px;
  color: var(--green);
}

.field__label {
  font-family: var(--font-serif);
  font-size: 26.1px;
  line-height: 1.05;
}

.field__label--small {
  font-size: 9.9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-45);
}

.input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(242, 247, 242, 0.18);
  border-radius: 0;
  padding: 10.8px 0;
  font: inherit;
  font-size: 15.3px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: inherit;
  transition: border-color 0.3s ease;
}

.input:focus { outline: none; border-bottom-color: var(--green); }
.input::placeholder { color: rgba(242, 247, 242, 0.28); }
.input--small { font-size: 14.4px; letter-spacing: normal; }

textarea.input { resize: none; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }

.submit__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 21.6px;
  margin-top: 7.2px;
}

.submit__status {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15.3px;
  color: var(--text-45);
}

.submit__status.is-error { color: var(--green); }

.submit__done {
  position: relative;
  z-index: 5;
  max-width: 738px;
  margin: 0 auto;
  padding: 162px var(--gutter) 180px;
  display: flex;
  flex-direction: column;
  gap: 27px;
  align-items: flex-start;
}

.submit__done .eyebrow { color: var(--green); }

.submit__done-title {
  font-size: clamp(36px, 5.4vw, 79.2px);
  letter-spacing: -0.045em;
}

.submit__done-body {
  max-width: 468px;
  font-size: 17.1px;
  line-height: 1.55;
  color: var(--text-66);
}

/* --------------------------------------------------------------------------
   Responsive
   The design is authored for desktop; these breakpoints collapse the
   two- and three-column grids without changing the desktop rendering.
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .work__head,
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }

  .pillars__grid { grid-template-columns: 1fr; }
  .pillar { padding: 54px 0 61.2px; }

  .pillar:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--rule-light);
  }

  .pillar__title { min-height: 0; }

  .clients { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --gutter: 21.6px; }

  .nav__link,
  .bars { display: none; }

  .hero { padding-top: 50.4px; }
  .hero__lead { grid-template-columns: 1fr; gap: 28.8px; }
  .hero__video { width: min(60%, 270px); margin-inline: auto; }
  .hero__tiles { grid-template-columns: 1fr; }

  /* The typewriter takes the full width once the photo drops away. */
  .statement { height: 160vh; }
  .statement__inner { grid-template-columns: 1fr; gap: 0; }
  .statement__photo { display: none; }

  .builders__inner,
  .sectors__inner,
  .submission__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 72px;
  }

  .builders__photo { height: min(56vh, 378px); }

  .submit { grid-template-columns: 1fr; padding-block: 54px 81px; }
  .submit__intro { position: static; }
}

@media (max-width: 560px) {
  /* The 10% content downscale is a desktop correction — you sit further from a
     monitor than from a phone. Labels go back up to a readable size here. */
  .eyebrow,
  .link-label,
  .btn,
  .btn-ghost { font-size: 11px; }

  .tile__cap { font-size: 10px; }
  .stat__label { font-size: 11px; }
  .sector__num,
  .step__num,
  .field__num { font-size: 12px; }

  .field__label--small { font-size: 11px; }
  .submit__aside span { font-size: 12px; }

  /* 342px of vertical padding for one short message is desktop framing. */
  .submit__done { padding: 90px var(--gutter) 110px; }

  /* Nav: min-height gives the brand a 44px target without a bigger mark,
     which keeps the sticky bar itself short on a phone. */
  .nav { padding: 11px var(--gutter); }
  .nav__logo { height: 34px; }
  .nav__sub { font-size: 17px; }
  .nav__links { gap: 16px; }
  .btn--nav { padding: 15px 18px; letter-spacing: 0.1em; }

  /* "Submit your work" plus the brand lockup overflows 390px and wraps the
     bar onto two lines; the short label keeps both on one. */
  .btn--nav .btn__long { display: none; }
  .btn--nav .btn__short { display: inline; }

  .hero__meta { flex-direction: column; gap: 7.2px; }
  /* The clip carries a lot of its own margin; smaller keeps the hero tight. */
  .hero__video { width: min(54%, 230px); }

  /* 160vh of scroll to deliver three lines is too much on a phone. */
  .statement { height: 130vh; }

  .field-row { grid-template-columns: 1fr; gap: 25.2px; }
  .step__text { font-size: 21.6px; }

  .clients { grid-template-columns: 1fr; }
  /* Each logo ships with generous built-in margins, so a wider cell crops
     dead space rather than the wordmark — 200px less scroll, same legibility. */
  .client { aspect-ratio: 2.4 / 1; }

  .footer__nav { gap: 25.2px; }
  .footer--slim { gap: 16px; }
  .footer--slim .footer__email { font-size: 20px; }
}

/* --------------------------------------------------------------------------
   Touch ergonomics

   Hit areas follow the pointer, not the viewport: a phone in landscape is
   844px wide and misses every width breakpoint, but is still driven by a
   thumb. Layout stays width-based above; only reach and legibility live here.
   -------------------------------------------------------------------------- */

@media (pointer: coarse) {
  .nav__brand { min-height: 44px; }
  .btn--nav { padding-block: 16px; }

  /* 12px-tall links are not a tap target. */
  .footer__col { gap: 0; }
  .footer__col .eyebrow { margin-bottom: 8px; }

  .footer__col a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  /* Asymmetric padding keeps the green rule close under the address. */
  .footer__email {
    display: inline-block;
    padding-top: 18px;
    padding-bottom: 8px;
  }

  /* Matches .footer--slim's specificity so this padding actually wins. */
  .footer--slim .footer__email { padding-bottom: 8px; }

  /* iOS Safari zooms the whole page when a focused field is under 16px. */
  .input,
  .input--small { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video,
  .bars span,
  .loader__track,
  .stats__track { animation: none; }

  .reveal { opacity: 1; transform: none; transition: none; }
}
