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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; }

:focus-visible {
  outline: 0.125rem solid var(--accent);
  outline-offset: 0.1875rem;
  border-radius: var(--radius-btn);
}

body {
  background: var(--body-bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

}

.page { width: 100%; background: var(--bg-page); }

.wrap {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--band { padding-inline: var(--gutter-band); }

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

.measure { max-width: var(--measure); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  line-height: 1.667;
  color: var(--text-muted);
}

.mono--inverse { color: rgba(255, 255, 255, 0.72); }
.mono--accent  { color: var(--accent); }

.display {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-h1);
  letter-spacing: var(--tracking-h1);
  color: var(--text-strong);
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-flat);
  letter-spacing: var(--tracking-section);
  color: var(--text-strong);
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  line-height: 0.95;
  letter-spacing: normal;
  color: var(--text-strong);
}

.statement {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-statement);
  color: var(--text-strong);
  text-wrap: pretty;
}

.lead {
  font-size: var(--text-md);
  font-weight: var(--weight-regular);
  line-height: var(--leading-lead);
  letter-spacing: normal;
  color: var(--text-strong);
  text-wrap: pretty;
}

.body { font-size: var(--text-base); line-height: var(--leading-body); color: var(--text-body); }
.muted { color: var(--text-muted); }

/* The operative phrase is the one piece of wordplay on the page, so
   hovering it should feel like the rest of the site rather than like a
   link. Every dark surface here is a panel, so the phrase becomes one:
   a navy block fills upward from the baseline and the words knock out
   to white.

   Painted as backgrounds rather than a pseudo-element so a phrase that
   wraps gets its own block on each line fragment.

   The colour flip is delayed on the way in so it lands once the block
   has nearly finished rising - otherwise the text turns white while the
   block is still short and briefly disappears against the paper. On the
   way out the delay is dropped so the ink returns before the block
   drops away. */
.term {
  color: inherit;
  text-decoration: none;
  padding: 0.04em 0.1em;
  margin-inline: -0.1em;
  border-radius: 0.05em;
  background-image:
    linear-gradient(var(--navy), var(--navy)),
    linear-gradient(rgba(12, 21, 36, 0.07), rgba(12, 21, 36, 0.07));
  background-size: 100% 0%, 100% 100%;
  background-position: 0 100%, 0 0;
  background-repeat: no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition:
    background-size 300ms var(--ease-out),
    color 140ms var(--ease-out);
}

.term:hover,
.term:focus-visible {
  color: var(--white);
  background-size: 100% 100%, 100% 100%;
  transition:
    background-size 300ms var(--ease-out),
    color 140ms var(--ease-out) 130ms;
}

@media (prefers-reduced-motion: reduce) {
  .term, .term:hover, .term:focus-visible { transition: color 120ms linear; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-btn);
  line-height: 0.875;
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-btn);
  border-radius: var(--radius-btn);
  padding: 0.875rem var(--space-5);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.btn__arrow {
  width: 0.875rem;
  height: 0.875rem;
  margin-left: var(--space-2);
  flex: none;
  transition: transform var(--duration-base) var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(0.1875rem); }

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

.btn--dark  { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--accent); }

.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--tint); }

.btn--ghost-inverse {
  background: transparent;
  color: var(--white);
  border: var(--hairline) solid rgba(255, 255, 255, 0.8);
}
.btn--ghost-inverse:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: var(--hairline) solid var(--light);
}
.btn--ghost:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }

/* Outlined variants shed 1px of padding per side so their 1px border
   lands them on the same 42px height as the filled ones. */
.btn--ghost, .btn--ghost-inverse { padding: 0.8125rem 1.1875rem; }

.btn--block { width: 100%; }

.btn--sm {
  font-size: var(--text-btn-sm);
  font-weight: var(--weight-regular);
  padding: 0.375rem var(--space-3);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg-page) 88%, transparent);
  backdrop-filter: blur(0.875rem);
  -webkit-backdrop-filter: blur(0.875rem);
  border-bottom: var(--hairline) solid transparent;
  transition: border-color var(--duration-base) var(--ease-out);
}

/* Zero-height probe just above the header. Once it leaves the viewport
   the header is stuck, and the rule fades in. Only the border COLOUR
   changes, so nothing reflows. */
.header-sentinel { height: var(--hairline); margin-bottom: calc(var(--hairline) * -1); }

.site-header.is-stuck { border-bottom-color: var(--rule-faint); }

.site-header:has(.site-menu:not([hidden]))  { background: var(--bg-page); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: var(--weight-bold);
  letter-spacing: -0.04em;
  color: var(--text-strong);
  text-decoration: none;
  line-height: 1;
}

.wordmark__mark {
  width: auto;
  height: 1.375rem;
  flex: none;
}

.nav-toggle {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.28125rem;
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}
.nav-toggle i {
  display: block;
  width: 1.25rem;
  height: 0.125rem;
  border-radius: 0.0625rem;
  background: var(--navy);
  transform-origin: center;
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out);
}

.nav-toggle[aria-expanded="true"] i:nth-of-type(1) {
  transform: translateY(0.40625rem) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] i:nth-of-type(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] i:nth-of-type(3) {
  transform: translateY(-0.40625rem) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle i { transition: none; }
}

.site-menu {
  border-top: var(--hairline) solid var(--rule-faint);
  background: var(--bg-page);
  height: calc(100dvh - var(--header-h) - var(--frame-offset));
  display: flex;
  flex-direction: column;
  padding-block: var(--space-2) var(--space-6);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-menu[hidden] { display: none; }

.site-menu__links { display: flex; flex-direction: column; }

.site-menu__links a {
  display: flex;
  align-items: center;
  min-height: var(--menu-row);
  font-family: var(--font-display);
  font-size: var(--menu-item);
  font-weight: var(--weight-medium);
  line-height: 1.15;
  letter-spacing: -0.033em;
  color: var(--text-strong);
  text-decoration: none;
  border-bottom: var(--hairline) solid var(--rule-faint);
  transition: color var(--duration-fast) var(--ease-out);
}
.site-menu__links a:hover { color: var(--accent); }

.site-menu__actions {
  margin-top: auto;
  padding-top: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.site-menu__actions .btn { width: 100%; }

.site-nav { display: none; }

.hero { padding-top: var(--hero-top); padding-bottom: var(--hero-bottom); }

.hero__inner { display: grid; gap: var(--space-6); }

.hero__lead { max-width: var(--measure); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.panel {
  position: relative;
  min-height: var(--panel-min);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-10) var(--space-6);
  isolation: isolate;
}

.field {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--navy);
}
.field canvas { width: 100%; height: 100%; }

.field::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 21, 36, 0.92) 0%,
    rgba(12, 21, 36, 0.6) 30%,
    rgba(12, 21, 36, 0) 62%
  );
  pointer-events: none;
}

.panel__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.panel__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-flat);
  letter-spacing: var(--tracking-panel);
  color: var(--white);
  text-wrap: balance;
}

.panel__note {
  font-size: var(--text-base);
  line-height: 1.45;
  letter-spacing: var(--tracking-body);
  color: var(--white);
  max-width: var(--measure);
}

.band { background: var(--bg-band); }

.band__inner { display: grid; gap: var(--space-6); }

.cards { margin-top: var(--space-8); display: grid; gap: var(--space-5); }

.card {
  position: relative;
  min-height: var(--card-min);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  padding: var(--space-8) var(--space-6);
  isolation: isolate;
}

.card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-card);
  color: var(--white);
}

.card__text {
  font-size: var(--text-base);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  color: var(--white);
  max-width: var(--measure);
}

.card__foot { margin-top: var(--space-6); }

.card .field::after {
  background: linear-gradient(
    to bottom,
    rgba(12, 21, 36, 0.9) 0%,
    rgba(12, 21, 36, 0.55) 34%,
    rgba(12, 21, 36, 0.1) 62%,
    rgba(12, 21, 36, 0.35) 100%
  );
}

.rail {
  margin-top: var(--space-8);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 76%;
  gap: var(--space-5);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y pinch-zoom;
  scroll-snap-type: x proximity;
  padding-block-end: var(--space-2);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }

.tile { scroll-snap-align: start; display: flex; flex-direction: column; gap: var(--space-4); }

.tile__media {
  position: relative;
  height: var(--tile-media);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
}
.tile__media .field::after { display: none; }

.tile__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-medium);
  line-height: 1.28;
  letter-spacing: -0.064em;
  color: var(--text-strong);
}

.tile__body {
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--text-body);
}

.list { margin-top: var(--space-8); border-top: var(--hairline) solid var(--rule-faint); }

.list__row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-bottom: var(--hairline) solid var(--rule-faint);
}

.list__row > .list__title,
.list__row > .list__text { grid-column: 2; }

.list__index {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: var(--tracking-mono);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-top: 0.5em;
}

.list__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  letter-spacing: -0.04em;
  color: var(--text-strong);
  margin-bottom: var(--space-2);
}

.list__text { font-size: var(--text-base); line-height: var(--leading-body); color: var(--text-body); }

.site-footer {
  background: var(--footer-grad);
  color: var(--white);
  padding-block: var(--space-10) var(--space-16);
}

.site-footer .wordmark { color: var(--white); }
.site-footer .wordmark__mark { height: 1.75rem; }

.footer__grid { display: grid; gap: var(--space-10); }

.footer__block { margin-bottom: 0; }

.footer__text {
  font-size: var(--text-base);
  line-height: 1.45;
  color: var(--white);
  margin-top: var(--space-4);
}

.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-10) var(--space-6); }

.footer__col h3 {
  font-family: var(--font-body);
  font-size: var(--text-mono);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: var(--space-4);
}

.footer__col a {
  display: block;
  font-size: var(--text-base);
  color: var(--white);
  text-decoration: none;
  padding-block: var(--space-1);
  transition: opacity var(--duration-fast) var(--ease-out);
}
.footer__col a:hover { opacity: 0.68; }

.footer__legal {
  margin-top: var(--space-12);
  font-size: var(--text-xs);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(1.25rem);
    transition:
      opacity var(--duration-slow) var(--ease-out),
      transform var(--duration-slow) var(--ease-out);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

.panel-section { padding-bottom: var(--space-8); }

.panel--quiet .field::after {
  background: linear-gradient(
    to top,
    var(--navy) 0%,
    rgba(12, 21, 36, 0.99) 48%,
    rgba(12, 21, 36, 0.94) 60%,
    rgba(12, 21, 36, 0.6) 72%,
    rgba(12, 21, 36, 0.16) 85%,
    rgba(12, 21, 36, 0) 95%
  );
}

.panel--quiet.card .field::after,
.card.panel--quiet .field::after {
  background: linear-gradient(
    to bottom,
    var(--navy) 0rem,
    rgba(12, 21, 36, 0.99) 16rem,
    rgba(12, 21, 36, 0.94) 17.5rem,
    rgba(12, 21, 36, 0.55) 19rem,
    rgba(12, 21, 36, 0.18) 20.5rem,
    rgba(12, 21, 36, 0.1) 22rem
  );
}

.panel--card .field::after {
  background: linear-gradient(
    to top,
    rgba(12, 21, 36, 0.62) 0%,
    rgba(12, 21, 36, 0.28) 45%,
    rgba(12, 21, 36, 0) 78%
  );
}

.panel--card .panel__body,
.panel--card .card__body {
  background: rgba(12, 21, 36, 0.78);
  backdrop-filter: blur(1rem) saturate(130%);
  -webkit-backdrop-filter: blur(1rem) saturate(130%);
  border: var(--hairline) solid rgba(255, 255, 255, 0.14);
  border-radius: 0.75rem;
  padding: var(--space-6);
}

.panel--card .card__body { height: auto; }
.panel--card .card__foot { padding-top: var(--space-6); }

.panel--split .field {
  inset: 0 0 auto 0;
  height: 46%;
}

.panel--split .field::after {
  background: linear-gradient(
    to bottom,
    rgba(12, 21, 36, 0) 30%,
    rgba(12, 21, 36, 0.5) 62%,
    rgba(12, 21, 36, 0.92) 86%,
    var(--navy) 100%
  );
}

.panel--split .panel__body,
.panel--split .card__body {
  background: var(--navy);
  padding-top: var(--space-5);
}

.panel--split.card { justify-content: flex-end; }
.panel--split.card .card__body { height: auto; }

@media (min-width: 30rem) {
  .hero__actions { flex-direction: row; }
  .hero__actions .btn--block { width: auto; }
}

@media (min-width: 48rem) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
  .rail  { grid-auto-columns: 44%; }
  .footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nav-toggle, .site-menu { display: none !important; }
  .site-nav { display: flex; align-items: center; gap: var(--space-8); }
  .site-nav a:not(.btn) {
    font-size: var(--text-sm);
    color: var(--text-strong);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
  }
  .site-nav a:not(.btn):hover { color: var(--accent); }
  .panel__body { padding: var(--space-10); gap: var(--space-5); }
}

@media (min-width: 64rem) {
  .site-header__inner { height: 4rem; }
  .wordmark { font-size: 1.1875rem; }
  .wordmark__mark { height: 1.5rem; }

  /* Grid items baseline-align in their row, so the lead's first line
     sits on the headline's first baseline - no magic padding. */
  .hero__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-8);
    align-items: baseline;
  }
  .hero__inner > .display { grid-column: 1 / 8; }
  /* The lead sits in the track directly beside the headline rather than
     leaving an empty column between them. The grid's own 2rem gutter is
     the only separation. */
  .hero__inner > div      { grid-column: 8 / 13; }

  .panel__body { padding: var(--space-16); max-width: 52rem; }

  .band__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-8);
    align-items: start;
  }
  .band__inner > :first-child { grid-column: 1 / 6; }
  .band__inner > :last-child  { grid-column: 7 / 13; }

  /* Cards alternate 7/5 and 5/7 so the grid reads as an editorial
     rhythm rather than four identical tiles. */
  .cards { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-8); }
  .cards > :nth-child(1) { grid-column: 1 / 8; }
  .cards > :nth-child(2) { grid-column: 8 / 13; }
  .cards > :nth-child(3) { grid-column: 1 / 6; }
  .cards > :nth-child(4) { grid-column: 6 / 13; }

  /* A horizontal rail is a small-screen affordance. With room, the
     engagement models become a real grid. */
  .rail {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-columns: auto;
    gap: var(--space-8);
    overflow: visible;
    scroll-snap-type: none;
    margin-inline: 0;
    padding-inline: 0;
    padding-block-end: 0;
  }
  .tile__media { height: 16rem; }

  .list__row {
    grid-template-columns: 5rem minmax(0, 0.8fr) minmax(0, 1.4fr);
    gap: var(--space-10);
    align-items: start;
    padding-block: var(--space-8);
  }
  .list__title { margin-bottom: 0; }

  .close__inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-8);
    align-items: start;
  }
  .close__inner > .h2   { grid-column: 1 / 7; }
  .close__inner > .lead { grid-column: 8 / 13; margin-top: 0; }
  .close__inner > .hero__actions { grid-column: 8 / 13; }

  .footer__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-8);
  }
  .footer__block { grid-column: 1 / 5; margin-bottom: 0; }
  .footer__cols  { grid-column: 6 / 13; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__legal { grid-column: 1 / 13; }
}

@media (min-width: 80rem) {
  .hero__inner > .display { grid-column: 1 / 8; }
  /* The lead sits in the track directly beside the headline rather than
     leaving an empty column between them. The grid's own 2rem gutter is
     the only separation. */
  .hero__inner > div      { grid-column: 8 / 13; }
  .tile__media { height: 18rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(1.25rem);
    transition:
      opacity var(--duration-slow) var(--ease-out),
      transform var(--duration-slow) var(--ease-out);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
