/*
  The EMC Group
  Pine on bone, with the stone and sage of the brand palette.
  Every color, size and rhythm is a custom property below.
*/

/* fonts:start
   Self-hosted, subset to Latin and Latin Extended, variable weight 400 to 600
   for the upright faces. The README covers replacing them. Keep the start and
   end markers: the single-file preview build strips this block. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-sans-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-sans-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/instrument-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* fonts:end */

:root {
  /* Brand palette */
  --pine: #1F4136;
  --slate: #808987;
  --sage: #B4C4B9;
  --stone: #D8D9CC;
  --bone: #F2F2F0;

  /* Derived tones */
  --pine-soft: #4E5F58;
  --pine-deep: #16302A;
  --hairline: var(--sage);
  --hairline-dark: #35564B;
  --bone-rgb: 242, 242, 240;
  --hero-scrim: 31, 65, 54;
  --signal: #7A2B1F;

  --font-display: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --text-mark: clamp(4.5rem, 2.5rem + 9vw, 10rem);
  --text-hero: clamp(2.25rem, 1.4rem + 3.2vw, 4.25rem);
  --text-h2: clamp(1.875rem, 1.25rem + 2.2vw, 3.25rem);
  --text-h3: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem);
  --text-title: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem);
  --text-chapter: clamp(1rem, 0.94rem + 0.3vw, 1.1875rem);
  --text-lead: clamp(1.125rem, 1.02rem + 0.4vw, 1.375rem);
  --text-body: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  --text-ui: 0.8125rem;
  --text-eyebrow: clamp(0.6875rem, 0.65rem + 0.15vw, 0.75rem);
  --text-label: 0.75rem;
  --text-fine: 0.8125rem;

  --header-h: 4.5rem;
  --max-w: 1320px;
  --gutter: clamp(1.25rem, 5vw, 6rem);
  --col-gap: clamp(1rem, 2vw, 2rem);
  --section-pad: clamp(5rem, 12vw, 11rem);
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);

  /* Height of the scroll-scrubbed hero. The scrub travels --hero-h minus one
     viewport; the contact section reads this to overlap the hero's last
     frames. */
  --hero-h: 420vh;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bone);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--pine);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, dl, dd {
  margin: 0;
}

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

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

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

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

::selection {
  background: var(--pine);
  color: var(--bone);
}

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

[id] {
  scroll-margin-top: var(--header-h);
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--pine);
  color: var(--bone);
  font-size: var(--text-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(-200%);
}

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

/* ------------------------------------------------------------------
   Type roles
------------------------------------------------------------------ */
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h2);
  line-height: 1.1;
  letter-spacing: -0.005em;
  max-width: 20ch;
  text-wrap: balance;
}

.lead {
  font-size: var(--text-lead);
  line-height: 1.55;
  max-width: 34ch;
  color: var(--pine-soft);
  text-wrap: pretty;
}

/* ------------------------------------------------------------------
   Buttons
------------------------------------------------------------------ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.875rem 1.75rem;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: var(--text-ui);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}

.button--ghost:hover {
  background: var(--pine);
  color: var(--bone);
  border-color: var(--pine);
}

.button--light {
  color: var(--bone);
  border-color: rgba(var(--bone-rgb), 0.8);
}

.button--light:hover {
  background: var(--bone);
  color: var(--pine);
  border-color: var(--bone);
}

.button--solid {
  background: var(--pine);
  color: var(--bone);
  border-color: var(--pine);
}

.button--solid:hover {
  background: var(--pine-deep);
  border-color: var(--pine-deep);
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--pine);
  background: rgba(var(--bone-rgb), 0.96);
  box-shadow: inset 0 -1px 0 var(--hairline);
  transition: background-color 220ms var(--ease), color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.site-header.is-over-hero {
  color: var(--bone);
  background: transparent;
  box-shadow: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 100%;
}

.site-header .button--ghost {
  min-height: 2.5rem;
  padding: 0.625rem 1.25rem;
}

.site-header.is-over-hero .button--ghost:hover {
  background: var(--bone);
  color: var(--pine);
  border-color: var(--bone);
}

.site-header.is-over-hero :focus-visible {
  outline-color: var(--bone);
}

/* ------------------------------------------------------------------
   Hero: scroll-scrubbed forest
------------------------------------------------------------------ */
.hero {
  position: relative;
  height: var(--hero-h);
  background: var(--stone);
}

/* Scroll targets for the footer links, placed at a chapter's progress. */
.hero__anchor {
  position: absolute;
  left: 0;
  top: calc((100% - 100vh) * var(--at, 0));
  width: 1px;
  height: 1px;
  scroll-margin-top: 0;
  pointer-events: none;
}

.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--stone);
}

.hero__poster,
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__poster {
  object-fit: cover;
  object-position: 50% 42%;
}

.hero__canvas {
  opacity: 0;
  transition: opacity 400ms var(--ease);
}

.hero.is-canvas-live .hero__canvas {
  opacity: 1;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* A touch deeper than the footage alone, so the chapter text and the
     lockup hold against the lightest fog. The flat layer is the overall
     darkening; the gradient protects the text band at the bottom. */
  background:
    linear-gradient(to top,
      rgba(var(--hero-scrim), 0.66) 0%,
      rgba(var(--hero-scrim), 0.36) 42%,
      rgba(var(--hero-scrim), 0.12) 70%,
      rgba(var(--hero-scrim), 0.34) 100%),
    rgba(var(--hero-scrim), 0.26);
}

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

.hero__chapter {
  position: absolute;
  bottom: clamp(5rem, 18vh, 12rem);
  left: var(--gutter);
  width: min(100% - 2 * var(--gutter), 36rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  color: var(--bone);
  opacity: 0;
  visibility: hidden;
  will-change: opacity, transform;
}

.hero__chapter.is-active {
  visibility: visible;
}

.hero__chapter .hero__cta {
  pointer-events: auto;
}

/* Starts at the center line and never crosses the right gutter: between 900
   and about 1280px the full 36rem would run off screen. */
.hero__chapter--right {
  left: max(var(--gutter), 50%);
  width: min(50% - var(--gutter), 36rem);
}

/* Brand lockup: the opening chapter. The supplied logo image, white with
   its own soft shadow; the width clamp is the mark's rendered size. */
.lockup {
  display: block;
  color: var(--bone);
}

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

.lockup__img {
  display: block;
  width: clamp(15rem, 6rem + 20vw, 26rem);
  height: auto;
}

/* Chapter text */
.hero__title {
  font-size: var(--text-title);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* A second heading inside a chapter (Our principle under How we work) sits a
   little further from the paragraph above it than the chapter's own gap. */
.hero__title--follow {
  margin-top: 0.75rem;
}

.hero__text {
  font-size: var(--text-chapter);
  line-height: 1.7;
  max-width: 34rem;
  text-wrap: pretty;
}

.hero__text--line {
  max-width: 40rem;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-hero);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 14ch;
  text-wrap: balance;
}

.hero__support {
  font-size: var(--text-lead);
  line-height: 1.5;
  max-width: 40ch;
  opacity: 0.92;
}

/* Closing chapter: the invitation, centered in the frame. It holds until the
   hero releases, dissolving with the wash, so no empty frame sits between it
   and the contact section. */
.hero__chapter--closing {
  inset: 0;
  width: auto;
  display: block;
}

.hero__block {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin-inline: auto;
  width: min(100% - 2 * var(--gutter), 40rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.hero__block .hero__cta {
  margin-top: 0.5rem;
}

/* The centered block sits over open fog, so it carries its own soft shade. */
.hero__block::before {
  content: "";
  position: absolute;
  inset: -90% -60%;
  z-index: -1;
  background: radial-gradient(ellipse at center,
    rgba(var(--hero-scrim), 0.5) 0%,
    rgba(var(--hero-scrim), 0.28) 38%,
    rgba(var(--hero-scrim), 0) 68%);
  pointer-events: none;
}

.hero__block .hero__headline,
.hero__block .hero__support {
  max-width: 26ch;
}

/* Deepens the forest over the last few percent of scroll while the contact
   section slides up over it. A darkening rather than a wash to stone: the
   frames scrolling away after the hero releases stay something to look at,
   never a blank screen. */
.hero__wash {
  position: absolute;
  inset: 0;
  background: rgba(var(--hero-scrim), 0.6);
  opacity: 0;
  pointer-events: none;
}

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--bone);
  font-size: var(--text-eyebrow);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
  pointer-events: none;
}

.hero__cue::after {
  content: "";
  width: 1px;
  height: 2.5rem;
  background: rgba(var(--bone-rgb), 0.6);
}

@media (max-width: 899px) {
  :root {
    --hero-h: 340vh;
  }

  .hero__chapter,
  .hero__chapter--right {
    left: var(--gutter);
    bottom: clamp(4rem, 14vh, 9rem);
    width: calc(100% - 2 * var(--gutter));
  }

  .hero__chapter--closing {
    inset: 0;
    width: auto;
  }
}

/* Short viewports: a phone held sideways, or a small browser window. The
   chapters sit closer to the edges and the type tightens so every chapter
   fits between the header and the bottom edge. */
@media (max-height: 520px) {
  .hero__chapter,
  .hero__chapter--right {
    bottom: 1.5rem;
    gap: 0.75rem;
  }

  /* The closing chapter must keep its full height: its block is positioned
     against the bottom edge. */
  .hero__chapter--closing {
    bottom: 0;
  }

  .hero__title--follow {
    margin-top: 0.5rem;
  }

  .hero__title {
    font-size: 0.875rem;
  }

  .hero__text {
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .lockup__img {
    width: clamp(11rem, 32vh, 18rem);
  }

  .hero__block {
    gap: 0.625rem;
  }

  .hero__block .hero__cta {
    margin-top: 0.25rem;
    min-height: 2.5rem;
    padding: 0.5rem 1.25rem;
  }

  .hero__headline {
    font-size: clamp(1.625rem, 6vh, 2.5rem);
  }

  .hero__support {
    font-size: 1rem;
  }

  .hero__cue {
    display: none;
  }
}

/* JavaScript unavailable: show the poster with the chapters stacked below. */
.no-js .hero {
  height: auto;
}

.no-js .section--contact {
  margin-top: 0;
}

.no-js .hero__anchor {
  display: none;
}

.no-js .hero__sticky {
  position: relative;
  height: auto;
  min-height: 0;
}

.no-js .hero__poster {
  position: relative;
  height: 70vh;
}

.no-js .hero__canvas,
.no-js .hero__scrim,
.no-js .hero__wash,
.no-js .hero__cue,
.no-js .hero__block::before {
  display: none;
}

.no-js .hero__chapters {
  position: relative;
  display: grid;
  gap: 3rem;
  padding-block: 3rem;
  background: var(--pine);
}

.no-js .hero__chapter,
.no-js .hero__chapter--right,
.no-js .hero__chapter--closing,
.no-js .hero__block {
  position: relative;
  inset: auto;
  width: auto;
  margin: 0;
  transform: none;
  opacity: 1;
  visibility: visible;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.no-js .hero__chapter--closing {
  gap: 3rem;
}

/* ------------------------------------------------------------------
   Contact
------------------------------------------------------------------ */
.section {
  position: relative;
  padding-block: var(--section-pad);
}

.section--contact {
  /* Tighter than the general section rhythm: the form is tall on its own. */
  padding-block: clamp(3.5rem, 8vw, 7rem);
  background: var(--stone);
  /* Slides up over the hero's final 6% of scroll, the same span in which the
     wash dissolves the forest (data-wash-start="0.94" in index.html), so the
     page never shows an empty frame between the invitation and the form.
     The 0.06 here and the 0.94 there must move together. */
  position: relative;
  z-index: 1;
  margin-top: calc(-0.06 * (var(--hero-h) - 100vh));
}

.section__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: clamp(2.5rem, 5vw, 4rem);
}

.section__head {
  grid-column: 1 / 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.section__body {
  grid-column: 7 / 13;
}

@media (max-width: 899px) {
  .section__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2.5rem;
  }

  .section__head,
  .section__body {
    grid-column: 1 / -1;
  }
}

.form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--col-gap);
  row-gap: 1.75rem;
  max-width: 34rem;
}

/* Pair the short recalled-from-memory fields once the track is wide enough to
   halve. Email and Message stay full width: a typo in an address silently
   kills the reply, so it gets the room to be read back. The breakpoint is
   derived from --max-w, --gutter and --col-gap; recompute it if those change. */
@media (min-width: 1180px) {
  .form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form > .field--full,
  .form > .form__legend,
  .form > .form__status,
  .form > .form__actions,
  .form > .form__fine {
    grid-column: 1 / -1;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field__label {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine);
}

/* The asterisk is decoration: it is aria-hidden, and the required attribute is
   what a screen reader announces. --pine-soft on --stone measures 4.74:1. Do
   not use --slate here: it measures 2.52:1 and fails the 4.5:1 text minimum. */
.field__required {
  margin-left: 0.1em;
  color: var(--pine-soft);
}

.form__legend {
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine-soft);
}

.field__input {
  width: 100%;
  padding: 0.5rem 0;
  border: 0;
  /* The underline is the only visual boundary identifying the control, so the
     3:1 non-text contrast minimum applies. --slate measured 2.52:1 on --stone
     and failed; --pine-soft measures 4.74:1 and keeps the hairline look. */
  border-bottom: 1px solid var(--pine-soft);
  border-radius: 0;
  background: transparent;
  color: var(--pine);
  font-size: 1.125rem;
  line-height: 1.4;
  transition: border-color 220ms var(--ease);
}

.field__input:focus {
  outline: none;
  border-bottom-color: var(--pine);
}

.field__input:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 6px;
}

.field__input[aria-invalid="true"] {
  border-bottom-color: var(--signal);
}

.field__input--area {
  resize: vertical;
  min-height: 6rem;
}

.field__error {
  font-size: var(--text-fine);
  color: var(--signal);
}

.field--honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* The status region stays in the accessibility tree at all times and collapses
   when empty. A live region that is toggled with the hidden attribute is not
   in the tree when its text changes, so screen readers announce nothing. */
.form__status {
  font-size: var(--text-body);
  color: var(--pine);
}

.form__status:empty {
  display: none;
}

.form__status:not(:empty) {
  padding: 1rem 0;
  border-top: 1px solid var(--pine-soft);
}

.form__status[data-kind="error"] {
  color: var(--signal);
}

.form__status[data-kind="success"] {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  line-height: 1.3;
}

.form.is-sending .button--solid {
  cursor: progress;
  opacity: 0.7;
}

/* Form disclosure, sitting under the button. */
.form__fine {
  font-size: var(--text-fine);
  line-height: 1.6;
  color: var(--pine-soft);
  max-width: 52ch;
}

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.site-footer {
  background: var(--pine);
  color: var(--bone);
  padding-block: clamp(4rem, 8vw, 7rem) 2rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 3rem;
}

.site-footer__brand {
  grid-column: 1 / 6;
}

.wordmark--footer {
  font-size: var(--text-h3);
  font-weight: 500;
}

.site-footer__nav {
  grid-column: 7 / 10;
}

.site-footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer__nav a,
.site-footer__top a {
  position: relative;
  display: inline-block;
  font-size: var(--text-ui);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
}

.site-footer__nav a::after,
.site-footer__top a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms var(--ease);
}

.site-footer__nav a:hover::after,
.site-footer__nav a:focus-visible::after,
.site-footer__top a:hover::after,
.site-footer__top a:focus-visible::after {
  transform: scaleX(1);
}

.site-footer__top {
  grid-column: 11 / 13;
  justify-self: end;
}

.site-footer :focus-visible {
  outline-color: var(--sage);
}

.site-footer__legal {
  display: grid;
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline-dark);
  font-size: var(--text-fine);
  color: var(--sage);
}

.site-footer__disclosure {
  max-width: 92ch;
  line-height: 1.7;
}

@media (max-width: 899px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2.5rem;
  }

  .site-footer__brand,
  .site-footer__nav,
  .site-footer__top {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* ------------------------------------------------------------------
   Reveal on scroll
------------------------------------------------------------------ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

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

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

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

  .hero__canvas,
  .site-footer__nav a::after,
  .site-footer__top a::after,
  .button,
  .site-header {
    transition: none;
  }
}
