@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/inter-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/inter-latin-800-normal.woff2") format("woff2");
}

:root {
  --ink: #191d21;
  --slate: #333f48;
  --slate-deep: #212529;
  --muted: #55606a;
  --orange: #1e6bb8;
  /* Deep enough to clear AA against the grained tint sheet, which is the
     darkest light surface on the site. */
  --orange-deep: #165690;
  --orange-light: #79b4e4;
  --white: #ffffff;
  --tint: #faf7f6;
  --on-dark: #e8e2de;
  --on-dark-soft: #b0a9a4;
  --line: rgba(51, 63, 72, 0.13);
  --field: #faf8f7;
  --edge: #ded7d3;
  --err: #9a2c22;
  --ok: #1f5c3d;

  /* Paper tooth for the light sheets. The transfer curve squeezes the noise
     into 0.89-1.0 and forces alpha opaque, so multiplying it over a sheet
     gives fine texture instead of the flat grey wash that low-opacity
     turbulence produces. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='0.11' intercept='0.89'/%3E%3CfeFuncG type='linear' slope='0.11' intercept='0.89'/%3E%3CfeFuncB type='linear' slope='0.11' intercept='0.89'/%3E%3CfeFuncA type='linear' slope='0' intercept='1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");

  --gutter: 32px;
}

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

/* The canvas carries the dark ground and the hero glow, which is how the color
   reaches the screen edges without any element having to be viewport-wide. */
html {
  min-height: 100%;
  scroll-behavior: smooth;
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 17px),
    radial-gradient(1500px 600px at 46% 30px, transparent 40%, rgba(0, 0, 0, 0.5) 100%),
    radial-gradient(1250px 700px at 76% 170px, rgba(30, 107, 184, 0.38), transparent 60%),
    radial-gradient(1000px 560px at 2% 30px, rgba(22, 86, 144, 0.42), transparent 66%),
    radial-gradient(1100px 460px at 16% 100%, rgba(30, 107, 184, 0.18), transparent 64%);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
}

body {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--slate);
  counter-reset: sec;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Bands run the full width of the viewport so they can carry their own
   shadows and gradients; this holds the content on a shared centre column. */
.wrap {
  margin: 0 auto;
  max-width: 1040px;
  padding: 0 var(--gutter);
}

::selection {
  background: rgba(30, 107, 184, 0.22);
}

a {
  color: var(--orange-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--slate);
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
}

.skip:focus {
  left: 20px;
  background: var(--white);
  color: var(--slate);
  padding: 10px 14px;
  border: 2px solid var(--orange);
}

/* Hero. Transparent so the canvas glow shows through full width. */
.band-top {
  padding: clamp(48px, 7vw, 84px) 0 clamp(30px, 4vw, 44px);
}

.masthead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 30px);
}

/* The mark ships as a black silhouette, so it is drawn as a mask and tinted
   here. That is what lets it read on the near-black hero. */
.logo-mark {
  flex: 0 0 auto;
  width: clamp(116px, 15vw, 152px);
  aspect-ratio: 512 / 262;
  background-color: var(--white);
  -webkit-mask: url("/logo.png") left center / contain no-repeat;
  mask: url("/logo.png") left center / contain no-repeat;
  filter: drop-shadow(0 3px 11px rgba(0, 0, 0, 0.5));
}

.wordmark {
  display: inline-block;
  color: var(--white);
  font-size: clamp(3.1rem, 9vw, 5.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  /* Room for Inter's y: background-clip:text clips ink outside the box. */
  line-height: 1;
  padding: 0.08em 0.04em 0.28em;
  overflow: visible;
  text-decoration: none;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wordmark:hover {
  color: var(--orange-light);
}

/* Gradient fill gives the display type some modeling. Guarded, because the
   transparent color would hide the text entirely without clipping support. */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .wordmark {
    background-image: linear-gradient(180deg, #ffffff 0%, #e8ecef 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }

  .wordmark:hover {
    background-image: linear-gradient(178deg, #c4ddf5 18%, var(--orange-light) 100%);
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.tagline {
  margin: clamp(14px, 2vw, 20px) 0 0;
  color: var(--orange-light);
  font-size: clamp(0.74rem, 1.5vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* Equal outer tracks put the middle link on the true center line, which
   space-between would miss because the outer labels are not the same width. */
.site-nav {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px clamp(16px, 3vw, 40px);
  margin: clamp(38px, 5vw, 60px) 0 0;
  padding: 0 0 18px;
}

.site-nav > :first-child {
  justify-self: start;
}

.site-nav > :nth-child(2) {
  justify-self: center;
}

.site-nav > :last-child {
  justify-self: end;
}

.site-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--orange), rgba(30, 107, 184, 0.28) 46%, rgba(255, 255, 255, 0.09));
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
}

.site-nav a,
.site-nav span {
  color: var(--on-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a {
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--orange-light);
  border-bottom-color: var(--orange);
}

/* Sections read as stacked sheets: the white ones sit proud of the page and
   the tinted one is recessed between them. Raising the sheets on z-index is
   what lets one cast a shadow onto the band that follows it. */
.panel {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 80px);
  background-color: var(--white);
  background-image: var(--grain);
  background-blend-mode: multiply;
  counter-increment: sec;
}

/* The dark hero above overlaps the first sheet. */
.panel:first-of-type {
  box-shadow: inset 0 15px 26px -16px rgba(0, 0, 0, 0.62);
}

.panel:nth-of-type(2) {
  background-color: var(--tint);
  box-shadow:
    inset 0 17px 24px -18px rgba(33, 37, 41, 0.5),
    inset 0 -17px 24px -18px rgba(33, 37, 41, 0.34);
}

/* The last sheet casts down onto the dark closing band. */
.panel:last-of-type {
  box-shadow: 0 22px 40px -18px rgba(0, 0, 0, 0.6);
}

.panel > .wrap {
  position: relative;
}

/* Oversized index numeral. The empty alt text keeps it out of the a11y tree. */
.panel > .wrap::after {
  content: counter(sec, decimal-leading-zero) / "";
  position: absolute;
  top: clamp(38px, 5vw, 66px);
  right: 0;
  color: rgba(51, 63, 72, 0.07);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.95);
  pointer-events: none;
}

/* Parallax on the numeral. Real depth cue: it tracks the scroll at a
   different rate than the sheet it sits on. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .panel > .wrap::after {
      animation: numeral-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }

    @keyframes numeral-drift {
      from {
        transform: translateY(30px);
      }

      to {
        transform: translateY(-30px);
      }
    }
  }
}

.panel-head {
  margin-bottom: clamp(34px, 4.5vw, 54px);
}

.panel h2 {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 clamp(16px, 2vw, 24px);
  color: var(--orange-deep);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.panel h2::before {
  content: "";
  flex: 0 0 auto;
  width: 36px;
  height: 3px;
  background: var(--orange);
}

.panel-note {
  margin: 0;
  max-width: 20em;
  color: var(--slate);
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.16;
}

/* Same modeling as the wordmark, applied to each section's statement. */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .panel-note {
    background-image: linear-gradient(184deg, var(--slate) 30%, #5a6773 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.panel ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.panel li {
  position: relative;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 6px 36px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

/* The hover surface is a pseudo-element so it can overhang the column without
   pushing the hairlines out of alignment with the list's top border. */
.panel li::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -14px;
  border-radius: 3px;
  background-color: #fdfbfa;
  box-shadow: 0 9px 22px -12px rgba(33, 37, 41, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.panel:nth-of-type(2) li::before {
  background-color: var(--white);
}

.panel li:hover::before {
  opacity: 1;
}

.item-name {
  color: var(--slate);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.item-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Closing block. Transparent, so the canvas ink returns for the last screen. */
.contact-row {
  display: flex;
  margin: 0;
  padding: clamp(64px, 8vw, 104px) 0 clamp(40px, 5vw, 64px);
}

.contact-oval {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 22px 44px;
  border: 0;
  border-radius: 4px;
  background: var(--orange-deep);
  color: var(--white);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.32),
    0 14px 30px -10px rgba(30, 107, 184, 0.5);
  transition: background 0.16s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-oval::after,
.contact-form button[type="submit"]::after {
  content: "";
  width: 22px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M1 6h16M12.5 1.5 17 6l-4.5 4.5' fill='none' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.16s ease;
}

.contact-oval:hover,
.contact-oval:focus-visible {
  background: var(--orange);
}

.contact-oval:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 4px 8px rgba(0, 0, 0, 0.34),
    0 22px 42px -12px rgba(30, 107, 184, 0.62);
}

.contact-oval:hover::after {
  transform: translateX(5px);
}

.contact-oval:focus-visible {
  outline: 2px solid var(--on-dark);
  outline-offset: 4px;
}

.legal {
  position: relative;
  margin: 0;
  padding: clamp(48px, 6vw, 72px) 0 clamp(48px, 6vw, 72px);
  color: var(--on-dark-soft);
  font-size: 0.86rem;
}

/* The band is viewport-wide now, so the hairline is pulled back to the content
   column with the same centring maths the wrapper uses. */
.legal::before {
  content: "";
  position: absolute;
  left: max(var(--gutter), calc(50% - 520px + var(--gutter)));
  right: max(var(--gutter), calc(50% - 520px + var(--gutter)));
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(30, 107, 184, 0.55), rgba(255, 255, 255, 0.11) 40%, rgba(255, 255, 255, 0.06));
}

.legal p {
  margin: 0;
}

.legal a {
  color: var(--on-dark);
}

.legal a:hover {
  color: var(--orange-light);
}

.contact-dialog {
  width: min(600px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 4px;
  background-color: var(--white);
  background-image:
    linear-gradient(90deg, var(--orange), var(--orange-deep) 58%, rgba(22, 86, 144, 0.2)),
    var(--grain),
    linear-gradient(180deg, #ffffff, #fbf8f7);
  background-repeat: no-repeat, repeat, no-repeat;
  background-size: 100% 4px, auto, 100% 100%;
  background-position: top left, top left, top left;
  background-blend-mode: normal, multiply, normal;
  color: inherit;
  box-shadow:
    0 2px 6px rgba(25, 29, 33, 0.22),
    0 18px 40px -8px rgba(25, 29, 33, 0.34),
    0 46px 92px -24px rgba(25, 29, 33, 0.5);
}

/* As close to frosted as this gets: the scrim blurs the page behind it, but
   the panel itself stays opaque so the form never competes with the site. */
.contact-dialog::backdrop {
  background: rgba(25, 29, 33, 0.58);
  backdrop-filter: blur(11px) saturate(115%);
  -webkit-backdrop-filter: blur(11px) saturate(115%);
}

.dialog-inner {
  padding: clamp(26px, 4vw, 40px) clamp(22px, 4vw, 40px) clamp(28px, 4vw, 40px);
}

.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: clamp(24px, 3vw, 34px);
}

.dialog-top h2 {
  margin: 0 0 12px;
  color: var(--slate);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.dialog-top p {
  margin: 0;
  max-width: 36em;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.dialog-close {
  flex: 0 0 auto;
  padding: 8px 15px;
  border: 1px solid var(--edge);
  border-radius: 3px;
  background: var(--white);
  color: var(--slate);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  border-color: var(--orange);
  color: var(--orange-deep);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form label span {
  color: var(--slate);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
  width: 100%;
  min-height: 50px;
  padding: 10px 15px;
  border: 1px solid var(--edge);
  border-radius: 3px;
  background: var(--field);
  color: inherit;
  font: inherit;
  box-shadow: inset 0 2px 4px rgba(33, 37, 41, 0.09);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input[type="text"]:hover,
.contact-form input[type="email"]:hover,
.contact-form input[type="tel"]:hover {
  border-color: #c8bdb7;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
  box-shadow:
    inset 0 2px 4px rgba(33, 37, 41, 0.05),
    0 0 0 3px rgba(30, 107, 184, 0.16);
}

.contact-form fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin: 8px 0 4px;
  padding: 0;
  border: 0;
}

.contact-form legend {
  grid-column: 1 / -1;
  padding: 0;
  margin-bottom: 12px;
  color: var(--slate);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact-form fieldset label {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 3px 0;
  color: var(--slate);
  font-size: 0.96rem;
  cursor: pointer;
}

.contact-form fieldset label:hover,
.contact-form fieldset label:has(input:checked) {
  color: var(--orange-deep);
}

.contact-form fieldset input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--orange-deep);
}

.contact-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
  min-height: 50px;
  padding: 0 30px;
  border: 0;
  border-radius: 4px;
  background: var(--orange-deep);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 2px 4px rgba(25, 29, 33, 0.16),
    0 12px 24px -10px rgba(30, 107, 184, 0.42);
  transition: background 0.16s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-form button[type="submit"]:hover,
.contact-form button[type="submit"]:focus-visible {
  background: var(--orange);
}

.contact-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 4px 8px rgba(25, 29, 33, 0.18),
    0 18px 34px -12px rgba(30, 107, 184, 0.5);
}

.contact-form button[type="submit"]:hover::after {
  transform: translateX(5px);
}

.contact-form button[type="submit"]:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 3px;
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-help,
.form-status,
.form-notice {
  margin: 0;
  font-size: 0.88rem;
}

.form-help {
  color: var(--muted);
}

.form-notice {
  margin-top: 8px;
}

.form-status.err {
  color: var(--err);
}

.form-status.ok {
  color: var(--ok);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.page-copy {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: clamp(52px, 7vw, 88px) 0 clamp(48px, 6vw, 76px);
  background-color: var(--white);
  background-image: var(--grain);
  background-blend-mode: multiply;
  box-shadow:
    inset 0 15px 26px -16px rgba(0, 0, 0, 0.62),
    0 22px 40px -18px rgba(0, 0, 0, 0.6);
}

.page-copy h1 {
  margin: 0 0 clamp(24px, 3vw, 36px);
  max-width: 18em;
  color: var(--slate);
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.page-copy h2 {
  margin: clamp(34px, 4vw, 46px) 0 10px;
  color: var(--slate);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.018em;
}

.page-copy p {
  margin: 0 0 15px;
  max-width: 44em;
  color: var(--slate);
}

.page-copy code {
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--tint);
  color: var(--orange-deep);
  font-size: 0.88em;
}

@media (max-width: 760px) {
  .panel > .wrap::after {
    display: none;
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 20px;
  }

  /* The justified nav cannot wrap, so tighten the labels enough that three
     of them still clear a 320px viewport. */
  .site-nav a,
  .site-nav span {
    font-size: 0.68rem;
    letter-spacing: 0.13em;
  }

  .panel li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-form fieldset {
    grid-template-columns: 1fr;
  }

  .contact-oval,
  .contact-form button[type="submit"] {
    width: 100%;
    justify-content: center;
  }
}

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

  .wordmark,
  .tagline {
    animation: none;
  }

  .site-nav a,
  .contact-oval,
  .contact-oval::after,
  .contact-form button[type="submit"],
  .contact-form button[type="submit"]::after,
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .panel li::before {
    transition: none;
  }

  .contact-oval:hover,
  .contact-oval:hover::after,
  .contact-form button[type="submit"]:hover,
  .contact-form button[type="submit"]:hover::after {
    transform: none;
  }
}
