/* ==========================================================================
   Interstock Development — styles
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License 1.1) ---------- */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-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: "Hanken Grotesk";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-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;
}

/* ---------- Tokens ---------- */
:root {
  --navy-950: #060f15;
  --navy-900: #09161f;
  --navy-700: #1b3244;

  --ink: #0e1822;
  --slate-700: #36424e;
  --slate-600: #4a5663;
  --slate-500: #5a6674;
  --label: #5f6d80;
  --line: #d8dee4;
  --line-strong: #bfc8d1;

  --ground: #f5f6f8;
  --white: #ffffff;
  --ice-100: #e8eff6;
  --ice-300: #b9cde0;

  --on-dark: #f3f6f9;
  --on-dark-muted: rgb(226 234 242 / 0.74);
  --on-dark-line: rgb(226 234 242 / 0.22);

  --focus: #2c669f;
  --focus-on-dark: #a8c7e6;

  --font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1296px;
  --gutter: clamp(20px, 5.5vw, 80px);
  --header-h: 104px;
  --header-h-solid: 76px;

  --fs-h1: clamp(2.65rem, 1.2rem + 4.45vw, 5.25rem);
  --fs-h2: clamp(2.1rem, 1.05rem + 3.2vw, 4rem);
  --fs-sub: clamp(1.35rem, 0.9rem + 1.6vw, 2.4rem);
  --fs-caption: clamp(1.4rem, 1rem + 1.25vw, 2.25rem);
  --fs-lead: clamp(1rem, 0.94rem + 0.28vw, 1.1875rem);
  --fs-body: 1rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.75rem;

  --section-y: clamp(72px, 2.5rem + 5vw, 136px);
  --block-gap: clamp(56px, 2rem + 5vw, 120px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h-solid);
  scrollbar-color: var(--line-strong) var(--ground);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--focus);
}

img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--ice-300); color: var(--navy-900); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 2px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--white);
  color: var(--ink);
  font-weight: 500;
  border-radius: 3px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: none; }

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

.icon {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-lg { width: 40px; height: 40px; stroke-width: 1.15; }

@media (min-width: 760px) { .br-wide { display: inline; } }
@media (max-width: 759.98px) { .br-wide { display: none; } }

/* ---------- Type ---------- */
.eyebrow {
  margin-bottom: 20px;
  color: var(--label);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.h4 {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
}

.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.lead {
  max-width: 34em;
  color: var(--slate-500);
  font-size: var(--fs-lead);
  line-height: 1.62;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 24px 0 26px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 0.9688rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.45s var(--ease-out); }
.btn:hover .icon:not(.icon-copy):not(.icon-check) { transform: translateX(4px); }

.btn-light { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.2); }
.btn-light:hover { background: var(--ice-100); }
.btn-light:focus-visible { outline-color: var(--focus-on-dark); }

.btn-dark { background: var(--navy-900); color: var(--on-dark); box-shadow: 0 10px 24px -14px rgb(9 22 31 / 0.7); }
.btn-dark:hover { background: var(--navy-700); }

.btn-ghost {
  background: rgb(255 255 255 / 0.72);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--white); border-color: var(--slate-500); }
.btn-ghost .icon-check { display: none; }
.btn-ghost.is-copied .icon-copy { display: none; }
.btn-ghost.is-copied .icon-check { display: block; }
.btn-ghost.is-copied { border-color: var(--slate-600); }

.btn-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.site-header .btn-pill { border-color: var(--slate-600); }
.site-header .btn-pill:hover,
.site-header .btn-pill[aria-current="true"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--on-dark); }
.js .site-header:not(.is-solid) .btn-pill { border-color: rgb(243 246 249 / 0.62); background: transparent; color: inherit; }
.js .site-header:not(.is-solid) .btn-pill:hover { background: var(--on-dark); color: var(--navy-900); border-color: var(--on-dark); }

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex: none;
}
.brand-mark {
  width: 44px; height: 44px;
}
/* Two steel renderings of the mark: lighter steel for dark grounds (#logo-mark), darker steel for
   light ones (#logo-mark-light). The home header stacks both and crossfades with its background. */
.brand-mark-swap { display: grid; flex: none; }
.brand-mark-swap > .brand-mark { grid-area: 1 / 1; transition: opacity 0.45s var(--ease-out); }
.brand-mark-swap > .brand-mark-on-dark { opacity: 0; }
.js .site-header:not(.is-solid) .brand-mark-on-light { opacity: 0; }
.js .site-header:not(.is-solid) .brand-mark-on-dark { opacity: 1; }
.brand-word { display: flex; flex-direction: column; gap: 5px; line-height: 1; }
.brand-word-main {
  font-size: 1.3125rem;
  font-weight: 400;
  letter-spacing: 0.235em;
  text-transform: uppercase;
  margin-right: -0.235em;
}
.brand-word-sub {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  opacity: 0.72;
}

/* ---------- Header ----------
   Solid by default (no-JS safe). With JS, it stays transparent over the hero
   and turns solid once the hero is behind it. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h-solid);
  /* Opaque instead of frosted: a backdrop blur here made Firefox recomposite the whole screen on
     every frame of the canvas animations below it, and without the blur any translucency lets
     the white band captions show through as ghosts */
  background: var(--ground);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  transition: background-color 0.45s var(--ease-out), color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), -webkit-backdrop-filter 0.45s var(--ease-out), backdrop-filter 0.45s var(--ease-out);
}
.js .site-header:not(.is-solid) {
  background: transparent;
  color: var(--on-dark);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
/* Scrolling inside the hero: a dark frosted bar keeps the nav legible over the headline */
.js .site-header.is-scrolled:not(.is-solid) {
  background: rgb(9 22 31 / 0.62);
  box-shadow: 0 1px 0 var(--on-dark-line);
  -webkit-backdrop-filter: saturate(1.2) blur(16px);
  backdrop-filter: saturate(1.2) blur(16px);
}
.js .site-header:not(.is-solid):not(.is-scrolled) .header-inner { transform: translateY(calc((var(--header-h) - var(--header-h-solid)) / 2)); }
.js .site-header:not(.is-solid) :focus-visible { outline-color: var(--focus-on-dark); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 100%;
  transition: transform 0.55s var(--ease-out);
}

.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav-list { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 0;
  font-size: 0.9375rem;
  font-weight: 400;
  opacity: 0.86;
  transition: opacity 0.3s var(--ease-out);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease-out);
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { transform: scaleX(0.35); }
.nav-link[aria-current="true"] { opacity: 1; }
.nav-link[aria-current="true"]::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-right: -12px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-toggle .icon { width: 26px; height: 26px; stroke-width: 1.4; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  width: 100%; max-width: none;
  height: 100%; max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--navy-900);
  color: var(--on-dark);
  overscroll-behavior: contain;
}
.mobile-menu::backdrop { background: var(--navy-900); }
.mobile-menu[open] { display: flex; flex-direction: column; animation: menu-in 0.45s var(--ease-out); }
.mobile-menu :focus-visible { outline-color: var(--focus-on-dark); }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.mobile-menu-top .brand-mark { width: 38px; height: 38px; }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 8vh; }
.mobile-nav a {
  padding: 10px 0;
  font-size: clamp(2rem, 1.4rem + 3vw, 2.75rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--on-dark-muted);
}
.mobile-nav a[aria-current="true"] { color: var(--on-dark); }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: max(660px, 100svh);
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 80% 72%, #0f2638 0%, rgb(9 22 31 / 0) 62%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 38%, #0a1924 100%);
  color: var(--on-dark);
}

.hero-wave {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  /* The fade away from the headline is drawn by hero-wave.js: a CSS mask here made Firefox re-mask the whole canvas every frame */
}

.hero-inner {
  align-self: center;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: clamp(120px, 14vh, 168px);
}

.hero-title {
  font-size: var(--fs-h1);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.022em;
}
.hero-line { display: block; }

.hero-sub {
  max-width: 19em;
  margin-top: clamp(14px, 1.2vw, 22px);
  color: var(--on-dark);
  font-size: var(--fs-sub);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.01em;
  opacity: 0.94;
  text-wrap: balance;
}

.hero-body {
  max-width: 35em;
  margin-top: clamp(24px, 2.4vw, 40px);
  color: var(--on-dark-muted);
  font-size: clamp(1rem, 0.9rem + 0.42vw, 1.25rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-cta { margin-top: clamp(32px, 3.2vw, 52px); }


/* Hero entrance: one orchestrated sequence */
@media (prefers-reduced-motion: no-preference) {
  .hero-line, .hero-sub, .hero-body, .hero-cta {
    animation: hero-rise 1.25s var(--ease-out) both;
    animation-delay: calc(0.18s + var(--i, 0) * 0.11s);
  }
  .hero-wave { animation: fade 2.4s var(--ease-in-out) 0.1s both; }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Sections ---------- */
.section-top { padding-top: var(--section-y); padding-bottom: var(--block-gap); }

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  column-gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.split-head .lead { padding-top: 38px; justify-self: end; }

/* Ruled rows: columns separated by hairlines that draw in */
.ruled { display: grid; }
.ruled > li { position: relative; }
.ruled > li + li::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 1px;
  background: var(--line);
  transform-origin: top;
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.12s + 0.1s);
}

/* Approach steps */
.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--block-gap);
}
.steps > li { padding: 0 clamp(20px, 3vw, 48px); }
.steps > li:first-child { padding-left: 0; }
.step-num {
  display: block;
  margin-bottom: clamp(20px, 2vw, 32px);
  font-size: clamp(2.5rem, 1.9rem + 1.5vw, 3.375rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
}
.steps .h3 { margin-bottom: 12px; }
.steps p { max-width: 22em; color: var(--slate-500); font-size: var(--fs-small); line-height: 1.6; text-wrap: pretty; }

/* Full-bleed photographic bands */
.band {
  position: relative;
  overflow: hidden;
  height: clamp(420px, 58vw, 840px);
  background: var(--navy-900);
  color: var(--on-dark);
}
.band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgb(6 15 21 / 0.72) 0%, rgb(6 15 21 / 0.28) 34%, rgb(6 15 21 / 0) 58%),
    linear-gradient(90deg, rgb(6 15 21 / 0.42) 0%, rgb(6 15 21 / 0) 46%);
  pointer-events: none;
}

/* The lattice canvas draws only geometry; this is its night sky, with the glow centred where
   tech-lattice.js projects its light (see VIEWS there), so keep the two in step */
.band-technology {
  height: clamp(400px, 50vw, 720px);
  background:
    radial-gradient(circle 50vw at 71% 3%, rgb(46 96 160 / 0.08), rgb(30 66 116 / 0.05) 50%, rgb(20 46 84 / 0) 100%),
    radial-gradient(circle 62vw at 71% 3%, rgb(20 48 80 / 0.32), rgb(10 26 44 / 0.14) 45%, rgb(6 14 24 / 0) 100%),
    linear-gradient(180deg, #010305 0%, #030a10 100%);
}
.band-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.band-canvas.is-drawn { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .band-canvas { transition: opacity 1.2s var(--ease-out); }
}
.band-technology::after {
  background:
    linear-gradient(180deg, rgb(1 4 7 / 0.55) 0%, rgb(1 4 7 / 0) 24%),
    linear-gradient(0deg, rgb(1 4 7 / 0.9) 0%, rgb(1 4 7 / 0.58) 28%, rgb(1 4 7 / 0) 58%),
    linear-gradient(90deg, rgb(1 4 7 / 0.68) 0%, rgb(1 4 7 / 0.24) 38%, rgb(1 4 7 / 0) 58%);
}

.band-caption {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(36px, 5.5vw, 88px);
  z-index: 1;
  font-size: var(--fs-caption);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 24px rgb(6 15 21 / 0.35);
  text-wrap: balance;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .band img {
      inset: -7% 0;
      height: 114%;
      animation: band-drift linear both;
      animation-timeline: view();
      animation-range: cover;
    }
    @keyframes band-drift {
      from { transform: translateY(-5%) scale(1.02); }
      to { transform: translateY(5%) scale(1); }
    }
  }
}

/* Approach: anchor the ridge low and crop the empty sky */
.band.band-approach img { top: auto; bottom: -8%; height: 120%; object-position: 50% 100%; }

/* Technology capabilities */
.capabilities-block { margin-top: var(--block-gap); }
.capabilities {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}
.capabilities > li { padding: 8px clamp(20px, 2.6vw, 40px) 4px; }
.capabilities > li:first-child { padding-left: 0; }
.capabilities .icon-lg { width: 38px; height: 38px; margin-bottom: 28px; color: var(--ink); }
.capabilities .h4 { margin-bottom: 10px; }
.capabilities p { max-width: 17em; color: var(--slate-500); font-size: var(--fs-small); line-height: 1.6; text-wrap: pretty; }

/* About */
.about {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: var(--section-y);
  padding-bottom: var(--block-gap);
}
.about-media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  z-index: -1;
  width: 62%;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; }
.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ground) 0%, rgb(245 246 248 / 0.86) 18%, rgb(245 246 248 / 0.35) 42%, rgb(245 246 248 / 0) 66%),
    linear-gradient(180deg, var(--ground) 0%, rgb(245 246 248 / 0) 22%),
    linear-gradient(0deg, var(--ground) 0%, rgb(245 246 248 / 0) 26%);
}
.about-inner { position: relative; }
.about-copy { max-width: 820px; }
.about .h2 { font-size: clamp(2.1rem, 1.05rem + 2.75vw, 3.5rem); }
.about-body {
  max-width: 35em;
  margin-top: clamp(24px, 2.2vw, 36px);
  color: var(--slate-600);
  font-size: var(--fs-lead);
  line-height: 1.66;
  text-wrap: pretty;
}
.values {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin-top: var(--block-gap);
}
.values > li { padding: 2px clamp(18px, 2.4vw, 36px); }
.values > li:first-child { padding-left: 0; }
.values .label { margin-bottom: 10px; }
.values p { max-width: 15em; color: var(--slate-500); font-size: var(--fs-small); line-height: 1.55; }

/* Contact */
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(680px, 88vh, 900px);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.contact-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  z-index: -2;
  width: 70%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 60%;
  filter: saturate(0.85);
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--ground) 0%, rgb(245 246 248 / 0.7) 14%, rgb(245 246 248 / 0) 34%),
    linear-gradient(90deg, var(--ground) 0%, var(--ground) 32%, rgb(245 246 248 / 0.72) 42%, rgb(245 246 248 / 0.2) 56%, rgb(245 246 248 / 0) 68%);
}
.contact-inner { position: relative; }
.contact-inner > * { max-width: 560px; }
.contact .h2 { font-size: clamp(2.5rem, 1.3rem + 3.6vw, 4.5rem); }
.contact-intro {
  margin-top: clamp(18px, 1.6vw, 28px);
  color: var(--slate-700);
  font-size: var(--fs-lead);
  line-height: 1.62;
  text-wrap: pretty;
}
.contact-list {
  display: grid;
  gap: 6px;
  margin-top: clamp(32px, 3vw, 48px);
}
.contact-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 18px;
  align-items: start;
  width: fit-content;
  padding: 7px 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.3s var(--ease-out);
}
.contact-item .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--ink); }
.contact-item:hover { text-decoration-color: currentColor; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 3vw, 44px); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--on-dark-muted);
  font-size: 0.875rem;
}
.site-footer :focus-visible { outline-color: var(--focus-on-dark); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
  padding-block: 40px;
}
.brand-sm { gap: 14px; color: var(--on-dark); margin-right: auto; }
.brand-sm .brand-mark { width: 32px; height: 32px; }
.brand-sm .brand-word-main { font-size: 1rem; }
.brand-sm .brand-word-sub { font-size: 0.5rem; }
.footer-link {
  text-decoration: underline;
  text-decoration-color: var(--on-dark-line);
  text-underline-offset: 5px;
  transition: color 0.3s var(--ease-out), text-decoration-color 0.3s var(--ease-out);
}
.footer-link:hover { color: var(--on-dark); text-decoration-color: currentColor; }

/* ---------- Scroll reveal (JS only; content stays visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(24px); }
  .js [data-reveal] { transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }

  .js [data-reveal-group] > li { transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 0.1s); }
  .js [data-reveal-group]:not(.is-in) > li { opacity: 0; transform: translateY(18px); }
  .js [data-reveal-group]:not(.is-in) > li + li::before { transform: scaleY(0); }
}

/* ---------- Legal & 404 ---------- */
.page-plain .site-header { position: sticky; top: 0; }
.legal { padding-block: clamp(56px, 2rem + 5vw, 120px) var(--section-y); }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 1.3rem + 2.8vw, 3.5rem); font-weight: 300; line-height: 1.08; letter-spacing: -0.018em; }
.legal h2 { margin-top: 56px; margin-bottom: 14px; font-size: 1.375rem; font-weight: 400; line-height: 1.3; }
.legal p, .legal li { color: var(--slate-600); line-height: 1.7; }
.legal p + p { margin-top: 14px; }
.legal ul { display: grid; gap: 10px; margin-top: 16px; }
.legal li { padding-left: 20px; position: relative; }
.legal li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 8px; height: 1px; background: var(--slate-500); }
.legal strong { color: var(--ink); font-weight: 500; }
.legal a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.legal a:hover { text-decoration-color: currentColor; }
.legal .updated { margin-top: 56px; font-size: var(--fs-small); color: var(--slate-500); }
.back-link { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9375rem; font-weight: 500; }
.back-link .icon { width: 18px; height: 18px; transform: scaleX(-1); transition: transform 0.4s var(--ease-out); }
.back-link:hover .icon { transform: scaleX(-1) translateX(4px); }

.not-found {
  display: grid;
  place-items: center;
  min-height: 100svh;
  background: var(--navy-900);
  color: var(--on-dark);
  text-align: center;
}
.not-found .brand { margin-bottom: 56px; }
.not-found h1 { font-size: var(--fs-h2); font-weight: 300; line-height: 1.08; letter-spacing: -0.018em; }
.not-found p { margin-top: 18px; color: var(--on-dark-muted); }
.not-found .btn { margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 1099.98px) {
  :root { --header-h: 88px; }
  .split-head { grid-template-columns: 1fr; }
  .split-head .lead { justify-self: start; padding-top: 28px; }
  .capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .capabilities > li:nth-child(3)::before { display: none; }
  .capabilities > li:nth-child(3) { padding-left: 0; }
  .about-media { width: 70%; }
  .contact-bg { width: 100%; }
  .contact::before {
    background:
      linear-gradient(180deg, var(--ground) 0%, rgb(245 246 248 / 0) 20%),
      linear-gradient(90deg, rgb(245 246 248 / 0.95) 0%, rgb(245 246 248 / 0.8) 40%, rgb(245 246 248 / 0.25) 70%, rgb(245 246 248 / 0) 88%);
  }
}

@media (max-width: 899.98px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .about { padding-top: 0; }
  .about-media { position: relative; width: 100%; height: clamp(300px, 62vw, 460px); z-index: 0; }
  .about-media::after {
    background:
      linear-gradient(0deg, var(--ground) 0%, rgb(245 246 248 / 0) 42%),
      linear-gradient(180deg, var(--ground) 0%, rgb(245 246 248 / 0) 24%);
  }
  .about-inner { margin-top: -40px; }
}

@media (max-width: 759.98px) {
  :root { --header-h: 72px; --header-h-solid: 64px; }
  .brand { gap: 14px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-word-main { font-size: 1.0625rem; }
  .brand-word-sub { font-size: 0.5313rem; }

  .hero { min-height: max(620px, 100svh); }
  .hero-inner { align-self: start; padding-top: calc(var(--header-h) + 9vh); padding-bottom: 160px; }
  .hero-cta { width: 100%; justify-content: space-between; }


  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps > li { padding: 32px 0; }
  .steps > li:first-child { padding-top: 0; }
  .steps > li + li::before { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 1px; transform-origin: left; }
  .js [data-reveal-group].steps:not(.is-in) > li + li::before { transform: scaleX(0); }
  .step-num { margin-bottom: 16px; font-size: 2.5rem; }

  .band { height: clamp(380px, 110vw, 520px); }
  .band-technology {
    height: clamp(360px, 100vw, 480px);
    background:
      radial-gradient(circle 50vw at 59% 7%, rgb(46 96 160 / 0.08), rgb(30 66 116 / 0.05) 50%, rgb(20 46 84 / 0) 100%),
      radial-gradient(circle 62vw at 59% 7%, rgb(20 48 80 / 0.32), rgb(10 26 44 / 0.14) 45%, rgb(6 14 24 / 0) 100%),
      linear-gradient(180deg, #010305 0%, #030a10 100%);
  }
  .band::after {
    background: linear-gradient(0deg, rgb(6 15 21 / 0.78) 0%, rgb(6 15 21 / 0.3) 40%, rgb(6 15 21 / 0) 66%);
  }
  .band-technology::after {
    background:
      linear-gradient(180deg, rgb(1 4 7 / 0.5) 0%, rgb(1 4 7 / 0) 22%),
      linear-gradient(0deg, rgb(1 4 7 / 0.94) 0%, rgb(1 4 7 / 0.8) 32%, rgb(1 4 7 / 0) 62%);
  }

  .capabilities { grid-template-columns: 1fr; row-gap: 0; margin-top: 12px; }
  .capabilities > li {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 20px;
    padding: 24px 0;
  }
  .capabilities > li::before { display: none; }
  .capabilities > li + li { border-top: 1px solid var(--line); }
  .capabilities .icon-lg { grid-row: span 2; width: 32px; height: 32px; margin: 2px 0 0; }
  .capabilities .h4 { margin-bottom: 6px; }

  .values { grid-template-columns: 1fr; row-gap: 0; }
  .values > li { padding: 22px 0; }
  .values > li:first-child { padding-top: 0; }
  .values > li + li::before { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 1px; transform-origin: left; }
  .js [data-reveal-group].values:not(.is-in) > li + li::before { transform: scaleX(0); }

  .contact { --photo-h: clamp(320px, 100vw, 440px); min-height: 0; padding-bottom: var(--photo-h); }
  .contact::before {
    background: linear-gradient(0deg, rgb(245 246 248 / 0) 0, rgb(245 246 248 / 0) calc(var(--photo-h) - 16px), var(--ground) calc(var(--photo-h) + 32px));
  }
  .contact-bg { top: auto; width: 100%; height: calc(var(--photo-h) + 32px); object-position: 42% 50%; }
  .contact-actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .contact-actions .btn-ghost { justify-content: center; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; padding-block: 36px 44px; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
