/* ==========================================================================
   TNT MASONRY AND PAVERS -- "Night Atelier" design system
   Dark cinematic navy identity. Oversized editorial serif (Instrument Serif)
   against a technical sans (Archivo). Scroll-choreographed motion hooks are
   class-based; assets/js/main.js drives them. Strictly ASCII. No nested
   comment terminators inside comments.
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */
:root {
  /* brand anchors */
  --ink: #05101c;            /* blue-black canvas */
  --navy: #053052;           /* brand blue */
  /* extended night palette (tints and shades of the anchors) */
  --ink-2: #071726;
  --ink-3: #0a2033;
  --navy-2: #0a3f6b;
  --navy-3: #11507f;
  --steel: #8fa9c4;          /* secondary text on dark */
  --steel-2: #7490ad;
  --ice: #cfe2f3;            /* cool highlight */
  --sky: #7db4e8;            /* accent on dark */
  --sky-deep: #2f6ea8;
  --white: #f2f7fc;          /* cool white */
  --paper: #edf3f9;          /* light panel */
  --paper-2: #f7fafd;
  --ink-on-paper: #10283d;
  --muted-on-paper: #3e5b76;
  --line: rgba(207, 226, 243, 0.14);
  --line-strong: rgba(207, 226, 243, 0.26);
  --line-paper: rgba(5, 48, 82, 0.14);

  /* type */
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-sans: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --t-hero: clamp(3rem, 9.5vw, 8.2rem);
  --t-huge: clamp(2.4rem, 6vw, 5rem);
  --t-1: clamp(2.1rem, 4.6vw, 3.6rem);
  --t-2: clamp(1.6rem, 3vw, 2.3rem);
  --t-3: clamp(1.25rem, 2vw, 1.5rem);
  --t-lead: clamp(1.05rem, 1.5vw, 1.25rem);
  --t-body: 1rem;
  --t-small: 0.875rem;
  --t-tiny: 0.75rem;

  /* rhythm */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.75rem;
  --sp-4: 2.75rem;
  --sp-5: 4.5rem;
  --sp-6: clamp(4.5rem, 10vw, 8.5rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 62ch;

  /* shape and motion */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --dur: 0.7s;
  --header-h: 84px;
}

/* legacy token aliases so nothing dangles if older markup lingers */
:root {
  --accent-strong: var(--sky);
  --bronze-300: var(--sky);
  --stone-100: var(--paper);
  --stone-900: var(--navy);
  --font-body: var(--font-sans);
  --step-1: var(--t-3);
  --step-2: var(--t-2);
  --space-lg: var(--sp-4);
}

/* ------------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--navy-3); color: var(--white); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--t-hero); }
h2 { font-size: var(--t-1); }
h3 { font-size: var(--t-3); line-height: 1.2; }
h4, h5 { font-family: var(--font-sans); font-weight: 600; line-height: 1.3; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--sky); }
p { max-width: var(--measure); }

/* film grain over the whole canvas */
body::after {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* accessibility helpers */
.skip-link {
  position: absolute;
  top: -60px;
  left: var(--sp-2);
  z-index: 3000;
  padding: 0.7rem 1.2rem;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: var(--sp-2); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ------------------------------------------------------------- primitives */
.container {
  width: min(1240px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.container--narrow { width: min(860px, 100% - 2 * var(--gutter)); }
.container--wide { width: min(1400px, 100% - 2 * var(--gutter)); }

.section { padding-block: var(--sp-6); position: relative; }
.section--tight { padding-block: var(--sp-4); }
.section--flush-top { padding-top: 0; }

/* light "paper" panel floated on the dark canvas */
.panel {
  background: var(--paper);
  color: var(--ink-on-paper);
  border-radius: var(--r-lg);
  width: min(1400px, 100% - 2 * clamp(0.6rem, 2vw, 1.5rem));
  margin-inline: auto;
  padding-block: var(--sp-6);
  position: relative;
  overflow: clip;
}
.panel h1, .panel h2, .panel h3 { color: var(--navy); }
.panel h2 em, .panel h3 em { color: var(--sky-deep); }
.panel .lead, .panel .text-muted { color: var(--muted-on-paper); }
.panel .overline { color: var(--sky-deep); }
.panel .overline::before { background: var(--sky-deep); }
.panel p { color: var(--ink-on-paper); }
.panel .lead { color: var(--muted-on-paper); }

.overline {
  font-size: var(--t-tiny);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: var(--sp-2);
}
.overline::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--sky);
  flex: none;
}
.overline--center { justify-content: center; }
.overline--center::after {
  content: "";
  width: 34px; height: 1px;
  background: currentColor;
  flex: none;
}
.panel .overline--center::after { background: var(--sky-deep); }
.overline--bare::before, .overline--bare::after { display: none; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.6;
  color: var(--steel);
  max-width: 56ch;
}
.text-center { text-align: center; }
.text-center p, .text-center .lead { margin-inline: auto; }
.text-muted { color: var(--steel); }
.mt-sm { margin-top: var(--sp-2); }
.mt-md { margin-top: var(--sp-3); }
.mt-lg { margin-top: var(--sp-4); }
.mb-0 { margin-bottom: 0; }

.section-head { margin-bottom: var(--sp-5); max-width: 800px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head h2 + .lead { margin-top: var(--sp-2); }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Review cards carry a source link back to the Google listing. */
.quote__source { font-size: var(--t-small); }
.quote__source a { color: var(--sky); text-decoration: none; border-bottom: 1px solid transparent; }
.quote__source a:hover { border-bottom-color: currentColor; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

hr.divider { border: 0; border-top: 1px solid var(--line); }
.panel hr.divider { border-top-color: var(--line-paper); }

/* ---------------------------------------------------------------- buttons */
.btn {
  --mx: 0px;
  --my: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid var(--white);
  transform: translate(var(--mx), var(--my));
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--ice); border-color: var(--ice); box-shadow: 0 12px 34px rgba(125, 180, 232, 0.22); }
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: rgba(207, 226, 243, 0.08); border-color: var(--ice); box-shadow: none; color: var(--white); }
.btn--lg { padding: 1.15rem 2.3rem; font-size: 1rem; }
.btn--white { background: var(--white); color: var(--ink); }
.panel .btn { background: var(--navy); color: var(--white); border-color: var(--navy); }
.panel .btn:hover { background: var(--navy-2); border-color: var(--navy-2); box-shadow: 0 12px 30px rgba(5, 48, 82, 0.25); }
.panel .btn--ghost { background: transparent; color: var(--navy); border-color: var(--line-paper); }
.panel .btn--ghost:hover { background: rgba(5, 48, 82, 0.07); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sky);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.link-arrow:hover { gap: 0.85rem; color: var(--ice); }
.panel .link-arrow { color: var(--sky-deep); }
.panel .link-arrow:hover { color: var(--navy); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: var(--sp-3);
}

/* ------------------------------------------------------------------ chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ice);
  font-size: var(--t-small);
  font-weight: 500;
  background: rgba(207, 226, 243, 0.03);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
a.chip:hover, button.chip:hover { color: var(--white); border-color: var(--ice); background: rgba(207, 226, 243, 0.08); }
button.chip[aria-pressed="true"] { background: var(--white); color: var(--ink); border-color: var(--white); }
.panel .chip { border-color: var(--line-paper); color: var(--muted-on-paper); background: rgba(5, 48, 82, 0.04); }
.panel a.chip:hover, .panel button.chip:hover { color: var(--navy); border-color: var(--navy); }
.panel button.chip[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ------------------------------------------------------------------ ticks */
.ticks { display: grid; gap: 0.85rem; }
.ticks li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(207, 226, 243, 0.03);
  color: var(--ice);
}
.ticks li::before {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2305101c' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E")
    center / 11px no-repeat, var(--sky);
}
.ticks strong { color: var(--white); font-weight: 600; }
.panel .ticks li { border-color: var(--line-paper); background: rgba(255, 255, 255, 0.6); color: var(--ink-on-paper); }
.panel .ticks li::before { background-color: var(--navy); }
.panel .ticks strong { color: var(--navy); }

/* ----------------------------------------------------------------- header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: transform 0.45s var(--ease), background 0.35s var(--ease),
              border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(5, 16, 28, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.nav {
  width: min(1400px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.brand-mark img { width: 42px; height: 34px; object-fit: contain; }
.brand-name {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
  display: grid;
}
.brand-name small {
  font-weight: 500;
  font-size: var(--t-tiny);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.nav-menu { display: flex; align-items: center; gap: var(--sp-3); }
.nav-links { display: flex; align-items: center; gap: clamp(0.2rem, 1vw, 0.8rem); }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: inline-block;
  padding: 0.55rem 0.65rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ice);
  border-radius: 8px;
  transition: color 0.25s var(--ease);
}
.nav-links > li > a:hover { color: var(--white); }
.nav-links > li > a[aria-current="page"] { color: var(--white); }
.nav-links > li > a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 2px;
  border-radius: 2px;
  background: var(--sky);
}
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  min-width: 250px;
  display: grid;
  padding: 0.55rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  color: var(--ice);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.dropdown a:hover, .dropdown a:focus-visible { background: rgba(125, 180, 232, 0.12); color: var(--white); }
.dropdown .ico { color: var(--sky); font-size: 0.7rem; }
.nav-cta { display: flex; align-items: center; gap: var(--sp-2); }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ice);
  transition: color 0.25s var(--ease);
}
.nav-phone:hover { color: var(--white); }
.nav-cta .btn { padding: 0.7rem 1.35rem; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 1200;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  place-items: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--white); position: relative; transition: background 0.3s var(--ease); }
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.35s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: grid; }
  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 1100;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: var(--sp-4);
    padding: calc(var(--header-h) + 1.5rem) var(--gutter) 5rem;
    background:
      radial-gradient(80% 60% at 80% 0%, rgba(10, 63, 107, 0.5), transparent 60%),
      var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
    overflow-y: auto;
  }
  body.nav-open .nav-menu { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .nav-links > li > a {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 6.5vw, 3rem);
    padding: 0.12rem 0;
    color: var(--white);
    opacity: 0;
    transform: translateY(24px);
  }
  body.nav-open .nav-links > li > a {
    opacity: 1;
    transform: none;
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
    transition-delay: calc(0.06s * var(--i, 0) + 0.1s);
  }
  .nav-links > li > a[aria-current="page"]::after { display: none; }
  .nav-links > li > a[aria-current="page"] { color: var(--sky); }
  .dropdown {
    position: static;
    translate: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0.25rem 0 0 1rem;
    display: none;
  }
  .has-dropdown:focus-within .dropdown, .has-dropdown:hover .dropdown { display: grid; }
  .nav-cta { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
}

/* thin scroll progress hairline injected by JS */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  z-index: 1300;
  background: linear-gradient(90deg, var(--sky), var(--ice));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 3rem) 0 0;
  overflow: clip;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: -6% 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  transform: scale(1.06);
}
.hero.is-live .hero__media img { animation: hero-drift 22s var(--ease) forwards; }
@keyframes hero-drift {
  from { transform: scale(1.14); }
  to { transform: scale(1.03); }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 16, 28, 0.72) 0%, rgba(5, 16, 28, 0.35) 34%, rgba(5, 16, 28, 0.84) 74%, var(--ink) 100%),
    linear-gradient(100deg, rgba(5, 16, 28, 0.85) 0%, rgba(5, 48, 82, 0.25) 55%, rgba(5, 16, 28, 0.4) 100%);
}
.hero.has-spot .hero__scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px circle at var(--sx, 50%) var(--sy, 40%), rgba(125, 180, 232, 0.13), transparent 62%);
}
.hero__inner {
  display: grid;
  gap: var(--sp-3);
  padding-bottom: clamp(6.5rem, 13vh, 10rem);
}
.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  font-size: var(--t-tiny);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ice);
}
.hero__eyebrow i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sky);
  font-style: normal;
}
.hero h1 { max-width: 12ch; }
.hero .lead { max-width: 46ch; }
.hero__meta {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(1.4rem, 4vh, 2.6rem);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: var(--t-tiny);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.6rem;
  margin-top: var(--sp-2);
  font-size: var(--t-small);
  color: var(--ice);
}
.hero__badges span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__badges svg { color: var(--sky); flex: none; }
.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(1.4rem, 4vh, 2.6rem);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--t-tiny);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
}
.scroll-cue i {
  width: 1px;
  height: 44px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sky);
  animation: cue-fall 2.2s var(--ease) infinite;
}
@keyframes cue-fall {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}
@media (max-width: 720px) {
  .hero__meta { display: none; }
  .hero__inner { padding-bottom: clamp(5rem, 10vh, 7rem); }
}

/* ---------------------------------------------------------------- marquee */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 1.05rem;
  overflow: hidden;
  background: rgba(7, 23, 38, 0.6);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-roll 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-half {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee-half > span {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  padding-right: 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  letter-spacing: 0.02em;
  color: var(--steel);
  white-space: nowrap;
}
.marquee-half > span::after {
  content: "";
  width: 6px; height: 6px;
  rotate: 45deg;
  background: var(--sky-deep);
}
@keyframes marquee-roll {
  to { transform: translateX(-50%); }
}

/* -------------------------------------------------------------- statement */
.statement { padding-block: var(--sp-6); }
.statement__text {
  font-family: var(--font-display);
  font-size: var(--t-huge);
  line-height: 1.14;
  max-width: 24ch;
  color: var(--white);
}
.statement__text.is-live { color: rgba(207, 226, 243, 0.16); }
.statement__text .sw { transition: color 0.35s var(--ease); }
.statement__text .sw.on { color: var(--white); }
.statement__text em { color: var(--sky); font-style: italic; }
.statement__cta { margin-top: var(--sp-4); }

/* ------------------------------------------------- disciplines index list */
.disciplines { position: relative; }
.disc-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.3rem, 3vw, 2rem) clamp(0.5rem, 2vw, 1.5rem);
  border-top: 1px solid var(--line-paper);
  color: inherit;
  transition: background 0.3s var(--ease);
}
.disc-row:last-of-type { border-bottom: 1px solid var(--line-paper); }
.disc-row:hover, .disc-row:focus-visible { background: rgba(5, 48, 82, 0.05); }
.disc-row__no {
  font-size: var(--t-tiny);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted-on-paper);
}
.disc-row__name {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.2vw, 3.1rem);
  line-height: 1.05;
  color: var(--navy);
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}
.disc-row:hover .disc-row__name { transform: translateX(10px); color: var(--sky-deep); }
.disc-row__tag {
  font-size: var(--t-small);
  color: var(--muted-on-paper);
  max-width: 30ch;
  text-align: right;
}
.disc-row__arrow {
  width: 46px; height: 46px;
  border: 1px solid var(--line-paper);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--navy);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), rotate 0.3s var(--ease);
}
.disc-row:hover .disc-row__arrow { background: var(--navy); color: var(--white); rotate: -45deg; }
@media (max-width: 720px) {
  .disc-row { grid-template-columns: auto 1fr auto; }
  .disc-row__tag { display: none; }
}
/* floating hover preview image, driven by JS on fine pointers */
.disc-preview {
  position: fixed;
  z-index: 900;
  width: 250px;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.85) rotate(-3deg);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease-expo);
  box-shadow: 0 30px 70px rgba(5, 16, 28, 0.45);
}
.disc-preview.is-on { opacity: 1; transform: scale(1) rotate(0deg); }
.disc-preview img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.disc-preview img.is-cur { opacity: 1; }

/* --------------------------------- disciplines index grid (homepage tiles) */
.disciplines--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
}
.disc-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: var(--sp-3);
  border-radius: var(--r-md);
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
/* photo sits behind the copy: negative z-index paints over the tile background
   but under the in-flow text, so no extra wrapper is needed */
.disc-tile__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.disc-tile__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 0.7s var(--ease-expo);
}
/* scrim keeps the copy readable once the photo is showing */
.disc-tile__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 48, 82, 0.8) 0%, rgba(5, 48, 82, 0.55) 45%, rgba(5, 16, 28, 0.88) 100%);
}
.disc-tile:hover, .disc-tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(5, 16, 28, 0.32);
}
.disc-tile:hover .disc-tile__media,
.disc-tile:focus-visible .disc-tile__media { opacity: 1; }
.disc-tile:hover .disc-tile__media img,
.disc-tile:focus-visible .disc-tile__media img { transform: scale(1); }
.disc-tile__no {
  font-size: var(--t-tiny);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(242, 247, 252, 0.62);
}
.disc-tile__body { margin-top: auto; }
.disc-tile__name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.05;
  transition: transform 0.4s var(--ease);
}
.disc-tile:hover .disc-tile__name,
.disc-tile:focus-visible .disc-tile__name { transform: translateX(6px); }
.disc-tile__tag {
  display: block;
  margin-top: var(--sp-1);
  max-width: 34ch;
  font-size: var(--t-small);
  color: rgba(242, 247, 252, 0.74);
}
.disc-tile__arrow {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: 42px; height: 42px;
  border: 1px solid rgba(242, 247, 252, 0.28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), rotate 0.3s var(--ease);
}
.disc-tile:hover .disc-tile__arrow,
.disc-tile:focus-visible .disc-tile__arrow {
  background: var(--white);
  color: var(--navy);
  rotate: -45deg;
}
@media (max-width: 720px) {
  .disciplines--grid { grid-template-columns: 1fr; }
  .disc-tile { min-height: 210px; padding: var(--sp-2); }
  .disc-tile__arrow { top: var(--sp-2); right: var(--sp-2); }
}
/* touch devices never hover, so show the work instead of a dark box */
@media (hover: none) {
  .disc-tile__media { opacity: 1; }
  .disc-tile__media img { transform: scale(1); }
}

/* -------------------------------------------------- anatomy: 3D x-section */
.anatomy { position: relative; }
.anatomy__track { position: relative; }
html.js .anatomy__track { height: auto; }
.anatomy__sticky { position: relative; padding-block: var(--sp-6); }
html.js .anatomy__sticky {
  position: relative;
  overflow: clip;
  padding-block: var(--sp-6);
}
.anatomy__grid {
  display: grid;
  grid-template-columns: minmax(320px, 470px) 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.anatomy__head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.anatomy__head .lead { margin-top: var(--sp-2); font-size: clamp(0.98rem, 1.3vw, 1.12rem); }
.anatomy__hint {
  margin-top: var(--sp-2);
  font-size: var(--t-tiny);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel-2);
}

/* layer index: real readable HTML that works without JS */
.strata { display: grid; gap: 0.35rem; margin-top: var(--sp-3); }
.stratum { border: 1px solid transparent; border-radius: var(--r-md); transition: border-color 0.3s var(--ease), background 0.3s var(--ease); }
.stratum__btn {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.72rem 1rem;
  text-align: left;
  color: var(--steel);
  border-radius: var(--r-md);
  transition: color 0.3s var(--ease);
}
.stratum__btn .no {
  font-size: var(--t-tiny);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--steel-2);
}
.stratum__btn .ttl { font-weight: 600; font-size: 0.98rem; color: var(--ice); transition: color 0.3s var(--ease); }
.stratum__btn .spec {
  font-size: var(--t-tiny);
  letter-spacing: 0.08em;
  color: var(--steel-2);
  white-space: nowrap;
}
.stratum__desc {
  padding: 0 1rem 0.9rem 1rem;
  font-size: var(--t-small);
  color: var(--steel);
  max-width: 46ch;
}
html.js .stratum__desc {
  display: grid;
  grid-template-rows: 0fr;
  padding-block: 0;
  overflow: hidden;
  transition: grid-template-rows 0.45s var(--ease), padding 0.45s var(--ease), opacity 0.35s var(--ease);
  opacity: 0;
}
html.js .stratum__desc > p { min-height: 0; overflow: hidden; margin: 0; }
html.js .stratum.is-active .stratum__desc {
  grid-template-rows: 1fr;
  padding-bottom: 0.9rem;
  opacity: 1;
}
.stratum.is-active { border-color: var(--line); background: rgba(207, 226, 243, 0.04); }
.stratum.is-active .stratum__btn .ttl { color: var(--white); }
.stratum.is-active .stratum__btn .no { color: var(--sky); }
.stratum__btn:hover .ttl { color: var(--white); }

/* 3D stage */
.xsec__viewport {
  position: relative;
  min-height: clamp(430px, 62vh, 660px);
  display: grid;
  place-items: center;
  perspective: 1500px;
}
.xsec__stage {
  --explode: 0;
  --rz: -40deg;
  --rx: 62deg;
  position: relative;
  width: min(400px, 68vw);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transform: translateY(6%) rotateX(var(--rx)) rotateZ(var(--rz));
}
.slab {
  --t: 30px;      /* thickness */
  --z: 0px;       /* resting lift */
  --gap: 0px;     /* extra lift when exploded */
  position: absolute;
  inset: 6%;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--z) + var(--gap) * var(--explode)));
  transition: filter 0.35s var(--ease);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  background: transparent;
}
.slab .f {
  position: absolute;
  border-radius: 3px;
  backface-visibility: hidden;
}
.slab .f-top { inset: 0; }
.slab .f-front {
  left: 0; right: 0;
  top: 100%;
  height: var(--t);
  transform-origin: center top;
  transform: rotateX(-90deg);
}
.slab .f-side {
  top: 0; bottom: 0;
  left: 100%;
  width: var(--t);
  transform-origin: left center;
  transform: rotateY(90deg);
}
/* lighting: front face darker, side darkest */
.slab .f-front::after, .slab .f-side::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.slab .f-front::after { background: linear-gradient(180deg, rgba(5,16,28,0.06), rgba(5,16,28,0.28) 60%, rgba(5,16,28,0.56)); }
.slab .f-side::after { background: linear-gradient(180deg, rgba(5,16,28,0.30), rgba(5,16,28,0.62)); }
/* lit top sheen for a dimensional read */
.slab .f-top::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(122deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 44%);
  mix-blend-mode: soft-light;
}
/* soft contact shadow on the ground beneath the stack */
.xsec__stage::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 12%; bottom: 12%;
  border-radius: 14px;
  background: radial-gradient(ellipse at 50% 60%, rgba(0,0,0,0.55), rgba(0,0,0,0) 70%);
  filter: blur(16px);
  transform: translateZ(-46px) scale(1.06);
}
/* dim non-active slabs when one is selected */
.xsec__stage.has-active .slab { filter: brightness(0.45) saturate(0.7); }
.xsec__stage.has-active .slab.is-active { filter: brightness(1.12); }
.slab:focus-visible { outline: 2px solid var(--sky); outline-offset: 8px; }

/* material faces */
.slab--pavers { --t: 26px; --z: 200px; --gap: 46px; }
.slab--pavers .f-top {
  background-color: #b6a488;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.22), rgba(0,0,0,0.18)),
    repeating-linear-gradient(90deg, rgba(5,16,28,0.55) 0 1.5px, transparent 1.5px 25%),
    repeating-linear-gradient(0deg, rgba(5,16,28,0.55) 0 1.5px, transparent 1.5px 33%),
    linear-gradient(135deg, #c6b598, #a6957a);
  background-size: 25% 33%, 100% 100%, 100% 100%, 100% 100%;
}
.slab--pavers .f-front, .slab--pavers .f-side {
  background-color: #a6957a;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(0,0,0,0.26)),
    repeating-linear-gradient(90deg, rgba(5,16,28,0.5) 0 1.5px, transparent 1.5px 16px);
}
.slab--sand { --t: 12px; --z: 160px; --gap: 34px; }
.slab--sand .f-top {
  background-color: #d8c69c;
  background-image:
    radial-gradient(rgba(255,255,255,0.45) 0.5px, transparent 0.8px),
    radial-gradient(rgba(92,68,38,0.4) 0.5px, transparent 0.8px),
    linear-gradient(135deg, #ddcca2, #cab88b);
  background-size: 4px 4px, 5px 5px, 100% 100%;
  background-position: 0 0, 2px 3px, 0 0;
}
.slab--sand .f-front, .slab--sand .f-side {
  background-color: #c7b587;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(0,0,0,0.22)),
    radial-gradient(rgba(80,58,30,0.4) 0.5px, transparent 0.8px);
  background-size: 100% 100%, 4px 4px;
}
.slab--open { --t: 22px; --z: 122px; --gap: 24px; }
.slab--open .f-top {
  background-color: #566069;
  background-image:
    radial-gradient(circle at 34% 32%, #c2c8ce 0 2px, #7e868f 3px 5px, transparent 6px),
    radial-gradient(circle at 68% 58%, #b2b9c0 0 2px, #6f777f 3px 5px, transparent 6px),
    radial-gradient(circle at 50% 82%, #a7aeb5 0 3px, #656d76 4px 6px, transparent 7px),
    radial-gradient(circle at 16% 72%, #b8bec4 0 2px, transparent 4px),
    radial-gradient(circle at 86% 22%, #99a1a9 0 2px, transparent 4px),
    linear-gradient(135deg, #4c545d, #394048);
  background-size: 30px 30px, 40px 40px, 34px 34px, 24px 24px, 44px 44px, 100% 100%;
}
.slab--open .f-front, .slab--open .f-side {
  background-color: #3f4750;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.32)),
    radial-gradient(circle at 30% 30%, #9aa1a8 0 2px, #5b636c 3px 4px, transparent 5px),
    radial-gradient(circle at 72% 66%, #868e96 0 2px, transparent 4px);
  background-size: 100% 100%, 26px 26px, 22px 22px;
}
.slab--agg { --t: 48px; --z: 58px; --gap: 16px; }
.slab--agg .f-top {
  background-color: #4b4740;
  background-image:
    radial-gradient(circle at 30% 36%, #b3ab9d 0 4px, #6f695d 6px 9px, transparent 10px),
    radial-gradient(circle at 68% 62%, #a49c8e 0 4px, #635d52 6px 9px, transparent 10px),
    radial-gradient(circle at 52% 14%, #9c9486 0 3px, #5c574c 5px 7px, transparent 8px),
    radial-gradient(circle at 14% 74%, #aaa294 0 3px, transparent 6px),
    radial-gradient(circle at 88% 30%, #8f8779 0 4px, transparent 7px),
    linear-gradient(135deg, #46423b, #332f29);
  background-size: 54px 54px, 66px 66px, 46px 46px, 40px 40px, 72px 72px, 100% 100%;
}
.slab--agg .f-front, .slab--agg .f-side {
  background-color: #37342e;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(0,0,0,0.34)),
    radial-gradient(circle at 28% 32%, #8d8578 0 3px, #4f4a41 5px 6px, transparent 7px),
    radial-gradient(circle at 66% 66%, #7d766a 0 3px, transparent 6px);
  background-size: 100% 100%, 34px 34px, 30px 30px;
}
/* drain pipe hint on the aggregate front face */
.slab--agg .pipe {
  position: absolute;
  top: 100%;
  right: 14%;
  width: 26px;
  height: var(--t);
  transform-origin: center top;
  transform: rotateX(-90deg);
  display: grid;
  place-items: center;
  z-index: 2;
}
.slab--agg .pipe::before {
  content: "";
  width: 24px; height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 5px, #26331f 5px 6.5px, transparent 6.5px 7.5px, #26331f 7.5px 9px, transparent 9px),
    radial-gradient(circle at 50% 50%, #09141d 0 6px, transparent 6.5px),
    conic-gradient(from 210deg, #8ea3b6, #55697c 40%, #7c93a7 70%, #55697c);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16), 0 1px 3px rgba(0,0,0,0.55);
}
.slab--soil { --t: 34px; --z: 0px; --gap: 8px; }
.slab--soil .f-top {
  background-color: #43372a;
  background-image:
    radial-gradient(circle at 26% 38%, #6a5842 0 3px, transparent 5px),
    radial-gradient(circle at 64% 66%, #574734 0 2px, transparent 4px),
    radial-gradient(rgba(0,0,0,0.32) 0.6px, transparent 0.9px),
    linear-gradient(135deg, #4c3f30, #382d21);
  background-size: 32px 32px, 26px 26px, 5px 5px, 100% 100%;
}
.slab--soil .f-front, .slab--soil .f-side {
  background-color: #322818;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.34)),
    radial-gradient(rgba(0,0,0,0.3) 0.6px, transparent 0.9px);
  background-size: 100% 100%, 5px 5px;
}
/* woven geotextile separation fabric over the subgrade */
.slab--soil .f-top::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, rgba(214,226,240,0.16) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(-45deg, rgba(214,226,240,0.16) 0 1px, transparent 1px 5px);
  opacity: 0.55;
}

/* ---- Solid engineered core: one rotating 3D block ---- */
.core-scene {
  position: relative;
  width: min(300px, 62vw);
  height: min(300px, 62vw);
  transform-style: preserve-3d;
  transform: rotateX(calc(-20deg + var(--ty, 0deg))) rotateY(var(--tx, 0deg));
  transition: transform 0.4s var(--ease);
}
.core-rot {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: coreSpin 26s linear infinite;
}
@keyframes coreSpin { to { transform: rotateY(360deg); } }
.core {
  --cw: min(240px, 52vw);
  --ch: calc(var(--cw) * 0.8);
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.cf {
  position: absolute;
  left: 50%;
  top: 50%;
  overflow: hidden;
  backface-visibility: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
  background: #2a3440;
}
.cf::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.cf-top, .cf-bottom { width: var(--cw); height: var(--cw); }
.cf-front, .cf-back, .cf-left, .cf-right {
  width: var(--cw);
  height: var(--ch);
  display: flex;
  flex-direction: column;
}
.cf-top    { transform: translate(-50%, -50%) rotateX(90deg)  translateZ(calc(var(--ch) / 2)); }
.cf-bottom { transform: translate(-50%, -50%) rotateX(-90deg) translateZ(calc(var(--ch) / 2)); }
.cf-front  { transform: translate(-50%, -50%) translateZ(calc(var(--cw) / 2)); }
.cf-back   { transform: translate(-50%, -50%) rotateY(180deg) translateZ(calc(var(--cw) / 2)); }
.cf-right  { transform: translate(-50%, -50%) rotateY(90deg)  translateZ(calc(var(--cw) / 2)); }
.cf-left   { transform: translate(-50%, -50%) rotateY(-90deg) translateZ(calc(var(--cw) / 2)); }
/* per-face lighting */
.cf-front::after  { background: rgba(5, 16, 28, 0.12); }
.cf-right::after  { background: rgba(5, 16, 28, 0.34); }
.cf-left::after   { background: rgba(5, 16, 28, 0.44); }
.cf-back::after   { background: rgba(5, 16, 28, 0.52); }
.cf-bottom::after { background: rgba(5, 16, 28, 0.62); }
.cf-top::after {
  background: linear-gradient(122deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 50%);
  mix-blend-mode: soft-light;
}
/* top = finished paver surface */
.cf-top {
  background-color: #b6a488;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.18)),
    repeating-linear-gradient(90deg, rgba(5, 16, 28, 0.55) 0 1.5px, transparent 1.5px 20%),
    repeating-linear-gradient(0deg, rgba(5, 16, 28, 0.55) 0 1.5px, transparent 1.5px 20%),
    linear-gradient(135deg, #c6b598, #a6957a);
  background-size: 20% 20%, 100% 100%, 100% 100%, 100% 100%;
}
.cf-bottom { background-color: #322818; }
/* strata bands on the cut faces (heights roughly to scale) */
.band {
  width: 100%;
  position: relative;
  box-shadow: inset 0 -7px 9px -5px rgba(0, 0, 0, 0.5), inset 0 2px 2px -1px rgba(255, 255, 255, 0.08);
}
.b-pavers {
  flex: 0 0 14%;
  background-color: #a6957a;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.26)),
    repeating-linear-gradient(90deg, rgba(5, 16, 28, 0.5) 0 1.5px, transparent 1.5px 14px);
}
.b-sand {
  flex: 0 0 6%;
  background-color: #c7b587;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.2)),
    radial-gradient(rgba(80, 58, 30, 0.4) 0.5px, transparent 0.8px);
  background-size: 100% 100%, 4px 4px;
}
.b-open {
  flex: 0 0 13%;
  background-color: #3f4750;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.3)),
    radial-gradient(circle at 30% 30%, #9aa1a8 0 2px, #5b636c 3px 4px, transparent 5px),
    radial-gradient(circle at 72% 66%, #868e96 0 2px, transparent 4px);
  background-size: 100% 100%, 24px 24px, 20px 20px;
}
.b-agg {
  flex: 0 0 45%;
  background-color: #37342e;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.32)),
    radial-gradient(circle at 26% 28%, #8d8578 0 3px, #4f4a41 5px 6px, transparent 7px),
    radial-gradient(circle at 62% 60%, #7d766a 0 3px, transparent 6px),
    radial-gradient(circle at 44% 84%, #948b7d 0 3px, transparent 6px);
  background-size: 100% 100%, 34px 34px, 30px 30px, 40px 40px;
}
.b-soil {
  flex: 0 0 22%;
  background-color: #322818;
  background-image:
    linear-gradient(180deg, rgba(214, 226, 240, 0.16), rgba(214, 226, 240, 0) 9%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.32)),
    radial-gradient(rgba(0, 0, 0, 0.3) 0.6px, transparent 0.9px);
  background-size: 100% 100%, 100% 100%, 5px 5px;
}
/* perforated drain in the aggregate band */
.b-agg .pipe {
  position: absolute;
  right: 12%;
  top: 50%;
  translate: 0 -50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 5px, #26331f 5px 6.5px, transparent 6.5px 7.5px, #26331f 7.5px 9px, transparent 9px),
    radial-gradient(circle at 50% 50%, #09141d 0 6px, transparent 6.5px),
    conic-gradient(from 210deg, #8ea3b6, #55697c 40%, #7c93a7 70%, #55697c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 1px 3px rgba(0, 0, 0, 0.55);
  z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
  .core-rot { animation: none; transform: rotateY(-26deg); }
  .core-scene { transition: none; }
}

/* depth ruler beside the stage */
.xsec__ruler {
  position: absolute;
  left: clamp(0px, 2vw, 24px);
  top: 50%;
  translate: 0 -50%;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--steel-2);
  font-size: var(--t-tiny);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.xsec__ruler i {
  display: block;
  width: 1px;
  height: clamp(180px, 34vh, 300px);
  background: var(--line-strong);
  position: relative;
}
.xsec__ruler i::before, .xsec__ruler i::after {
  content: "";
  position: absolute;
  left: -4px;
  width: 9px; height: 1px;
  background: var(--line-strong);
}
.xsec__ruler i::after { bottom: 0; }
.xsec__ruler span { writing-mode: vertical-rl; }
/* short desktop viewports: tighten so the pinned scene always fits */
@media (min-width: 1001px) and (max-height: 800px) {
  .anatomy__head .lead { display: none; }
  .xsec__viewport { min-height: clamp(360px, 54vh, 560px); }
  .stratum__btn { padding-block: 0.55rem; }
}
/* small screens: no pinning; the stage still explodes as the section
   scrolls past (JS switches to in-view progress) */
@media (max-width: 1000px) {
  .anatomy__grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .xsec__viewport { min-height: clamp(340px, 44vh, 480px); order: -1; }
  .xsec__stage { width: min(300px, 60vw); }
  html.js .anatomy__track { height: auto; }
  html.js .anatomy__sticky {
    position: static;
    min-height: 0;
    display: block;
    overflow: visible;
    padding-block: var(--sp-6);
  }
  .xsec__ruler { display: none; }
  .stratum__desc, html.js .stratum__desc { max-width: none; }
}

/* ----------------------------------------------------------- work / field */
.work-feature {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: end;
}
.work-feature + .work-feature { margin-top: clamp(2.5rem, 6vw, 5rem); }
.work-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  display: block;
}
.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-expo);
}
.work-card:hover img { transform: scale(1.05); }
.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 45%, rgba(5, 16, 28, 0.78));
}
.work-card__cap {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.1rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.work-card__cap strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--white);
}
.work-card__cap span {
  font-size: var(--t-tiny);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
  white-space: nowrap;
}
.wf-a { grid-column: 1 / span 7; aspect-ratio: 4 / 3; }
.wf-b { grid-column: 8 / span 5; aspect-ratio: 4 / 5; }
.wf-c { grid-column: 1 / span 5; aspect-ratio: 4 / 5; }
.wf-d { grid-column: 6 / span 7; aspect-ratio: 4 / 3; }
@media (max-width: 760px) {
  .wf-a, .wf-b, .wf-c, .wf-d { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
}

/* gallery page grid */
.gallery-item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-item img { transition: transform 0.8s var(--ease-expo); width: 100%; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 50%, rgba(5, 16, 28, 0.8));
}
.gallery-item__cap {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0.9rem;
  z-index: 2;
  display: grid;
  color: var(--white);
}
.gallery-item__cap strong { font-weight: 600; font-size: 0.98rem; }
.gallery-item__cap span {
  font-size: var(--t-tiny);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice);
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(5, 16, 28, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { display: grid; gap: 0.9rem; justify-items: center; max-width: min(1100px, 92vw); }
.lightbox__img {
  max-height: 78vh;
  max-width: 100%;
  width: auto;
  border-radius: var(--r-md);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
.lightbox__cap { color: var(--ice); font-size: var(--t-small); letter-spacing: 0.04em; }
.lightbox__close {
  position: absolute;
  top: clamp(0.8rem, 3vw, 2rem);
  right: clamp(0.8rem, 3vw, 2rem);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.25s var(--ease), rotate 0.25s var(--ease);
}
.lightbox__close:hover { background: rgba(207, 226, 243, 0.12); rotate: 90deg; }

/* ---------------------------------------------------------------- process */
.steps { display: grid; gap: 0; counter-reset: step; position: relative; }
.step-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.3rem;
  padding: 1.4rem 0;
}
.step-item + .step-item { border-top: 1px solid var(--line); }
.step-item__num {
  counter-increment: step;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ice);
  background: rgba(207, 226, 243, 0.05);
}
.step-item__num::before { content: "0" counter(step); }
.step-item h4 { font-size: 1.1rem; color: var(--white); }
.step-item p { color: var(--steel); font-size: 0.95rem; margin-top: 0.25rem; }
.panel .step-item + .step-item { border-top-color: var(--line-paper); }
.panel .step-item__num { border-color: var(--line-paper); color: var(--navy); background: var(--paper-2); }
.panel .step-item h4 { color: var(--navy); }
.panel .step-item p { color: var(--muted-on-paper); }

/* ------------------------------------------------------------------ stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  text-align: center;
}
.stat {
  padding: clamp(1.4rem, 3vw, 2.4rem) 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(207, 226, 243, 0.025);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1;
  color: var(--white);
}
.stat__label {
  margin-top: 0.55rem;
  font-size: var(--t-tiny);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- quotes */
.quote {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(207, 226, 243, 0.03);
  display: grid;
  gap: 0.9rem;
  align-content: start;
}
.quote__mark {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.6;
  color: var(--sky);
}
.quote__stars { color: var(--sky); letter-spacing: 0.2em; font-size: 0.9rem; }
.quote__text {
  font-family: var(--font-display);
  font-size: var(--t-3);
  line-height: 1.35;
  color: var(--ice);
  border: 0;
  padding: 0;
}
.quote__author { display: flex; align-items: center; gap: 0.8rem; }
.quote__author cite { font-style: normal; font-weight: 600; color: var(--white); display: block; }
.quote__author > span:last-child span { font-size: var(--t-small); color: var(--steel); }
.avatar {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--ice);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.placeholder-note {
  margin-top: var(--sp-3);
  text-align: center;
  font-size: var(--t-small);
  color: var(--steel-2);
}
.placeholder-note em { font-style: italic; }
.placeholder-note a { color: var(--sky); text-decoration: underline; }

/* ------------------------------------------------------------------ cards */
.card {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(207, 226, 243, 0.05), rgba(207, 226, 243, 0.015));
  display: grid;
  gap: 0.7rem;
  align-content: start;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.card h3 { color: var(--white); }
.card p { color: var(--steel); font-size: 0.96rem; }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--sky);
  border: 1px solid var(--line);
  background: rgba(125, 180, 232, 0.07);
  margin-bottom: 0.35rem;
}
.panel .card { border-color: var(--line-paper); background: var(--paper-2); }
.panel .card h3 { color: var(--navy); }
.panel .card p { color: var(--muted-on-paper); }
.panel .card__icon { color: var(--sky-deep); border-color: var(--line-paper); background: rgba(5, 48, 82, 0.05); }

/* media frames and placeholders */
.media {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1; }
.media-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 0.8rem 1.1rem;
  border-radius: var(--r-sm);
  background: rgba(5, 16, 28, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  display: grid;
}
.media-badge strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--white); }
.media-badge span { font-size: var(--t-tiny); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ice); }
.ph {
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  background: rgba(207, 226, 243, 0.03);
  min-height: 240px;
}
.ph__label {
  text-align: center;
  color: var(--steel-2);
  font-size: var(--t-small);
  letter-spacing: 0.06em;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding: 1.5rem;
}
.panel .ph { border-color: var(--line-paper); background: rgba(5, 48, 82, 0.03); }
.panel .ph__label { color: var(--muted-on-paper); }

/* -------------------------------------------------------------- accordion */
.accordion { display: grid; gap: 0.6rem; }
.acc-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(207, 226, 243, 0.03);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.acc-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  text-align: left;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--white);
}
.acc-icon {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
  transition: rotate 0.35s var(--ease), background 0.3s var(--ease);
}
.acc-icon::before, .acc-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2px;
  translate: -50% -50%;
  background: var(--ice);
  border-radius: 2px;
}
.acc-icon::after { rotate: 90deg; }
.acc-trigger[aria-expanded="true"] .acc-icon { rotate: 45deg; background: rgba(125, 180, 232, 0.12); }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.acc-panel > div { overflow: hidden; min-height: 0; }
.acc-panel p { padding: 0 1.3rem 1.25rem; color: var(--steel); max-width: 72ch; }
.acc-trigger[aria-expanded="true"] + .acc-panel { grid-template-rows: 1fr; }

/* ------------------------------------------------------------------ forms */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-weight: 600; font-size: var(--t-small); color: var(--ice); }
.field .hint { font-weight: 400; color: var(--steel-2); }
.req { color: var(--sky); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: rgba(5, 16, 28, 0.5);
  color: var(--white);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238fa9c4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field select option { color: var(--ink); background: var(--white); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(125, 180, 232, 0.2);
}
.field input::placeholder, .field textarea::placeholder { color: var(--steel-2); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.6rem; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: block;
  text-align: center;
  padding: 0.65rem 0.5rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  font-size: var(--t-small);
  color: var(--steel);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.choice input:checked + span { background: var(--white); color: var(--ink); border-color: var(--white); font-weight: 600; }
.choice input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.form-note { font-size: var(--t-tiny); color: var(--steel-2); max-width: 60ch; }
.form-note a { color: var(--sky); text-decoration: underline; }
.form-status { display: none; padding: 0.9rem 1.1rem; border-radius: var(--r-sm); font-size: var(--t-small); font-weight: 500; }
.form-status.is-success {
  display: block;
  background: rgba(125, 180, 232, 0.12);
  border: 1px solid rgba(125, 180, 232, 0.4);
  color: var(--ice);
}
.form-status.is-error {
  display: block;
  background: rgba(232, 125, 125, 0.12);
  border: 1px solid rgba(232, 125, 125, 0.45);
  color: #f2b8b8;
}
.form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(10, 63, 107, 0.25), rgba(7, 23, 38, 0.6));
}
.form-card h2, .form-card h3 { color: var(--white); }

/* info list (contact page) */
.info-list { display: grid; gap: 1.1rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-item__ico {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--sky);
  border: 1px solid var(--line);
  background: rgba(125, 180, 232, 0.07);
}
.info-item h4 { font-size: var(--t-tiny); letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); }
.info-item a, .info-item p { color: var(--white); font-weight: 500; }
.info-item a:hover { color: var(--sky); }

/* --------------------------------------------------------------- page hero */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(3.5rem, 9vh, 6.5rem)) 0 clamp(3rem, 8vh, 5.5rem);
  overflow: clip;
  isolation: isolate;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 90% at 85% -10%, rgba(10, 63, 107, 0.55), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(5, 48, 82, 0.4), transparent 60%);
}
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); max-width: 16ch; }
.page-hero .lead { margin-top: var(--sp-2); }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--sp-3);
  font-size: var(--t-tiny);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-2);
}
.breadcrumbs li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--steel-2); }
.breadcrumbs a { color: var(--steel); transition: color 0.2s var(--ease); }
.breadcrumbs a:hover { color: var(--white); }

/* ---------------------------------------------------------------- cta band */
.cta-band {
  position: relative;
  overflow: clip;
  border-radius: var(--r-lg);
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 6vw, 5rem);
  text-align: center;
  border: 1px solid var(--line);
  isolation: isolate;
}
.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(17, 80, 127, 0.55), transparent 70%),
    linear-gradient(160deg, var(--navy) 0%, var(--ink-2) 70%);
}
.cta-band h2 {
  font-size: var(--t-huge);
  max-width: 18ch;
  margin-inline: auto;
  color: var(--white);
}
.cta-band .lead { margin: var(--sp-2) auto 0; color: var(--ice); }
.cta-band .hero-cta { justify-content: center; }
.cta-band .overline { justify-content: center; color: var(--sky); }
.cta-band .overline::before, .cta-band .overline::after { background: var(--sky); }

/* ----------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink) 0%, #030b14 100%);
  padding: var(--sp-5) 0 var(--sp-4);
  position: relative;
  overflow: clip;
}
.footer-word {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10.5vw, 9rem);
  line-height: 0.95;
  color: rgba(207, 226, 243, 0.07);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  margin-bottom: var(--sp-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-about p { color: var(--steel); font-size: var(--t-small); margin-top: var(--sp-2); max-width: 34ch; }
.footer-social { display: flex; gap: 0.6rem; margin-top: var(--sp-3); }
.footer-social a {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ice);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.footer-social a:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.footer-col h5 {
  font-size: var(--t-tiny);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel-2);
  margin-bottom: var(--sp-2);
}
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a { color: var(--ice); font-size: var(--t-small); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-contact li { color: var(--steel); font-size: var(--t-small); }
.footer-bottom {
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--t-tiny);
  color: var(--steel-2);
}
.footer-bottom nav { display: flex; gap: 1.4rem; }
.footer-bottom a { color: var(--steel); }
.footer-bottom a:hover { color: var(--white); }

/* sticky mobile quick bar */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 950;
  display: none;
  grid-template-columns: 1fr 1.4fr;
  border-top: 1px solid var(--line);
  background: rgba(5, 16, 28, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ice);
}
.mobile-bar a.is-primary { background: var(--white); color: var(--ink); }
@media (max-width: 720px) {
  .mobile-bar { display: grid; }
  .site-footer { padding-bottom: 6.5rem; }
}

/* ------------------------------------------------------------ motion layer */
/* Reveal states apply only when JS is present, so no-JS users see content. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: calc(var(--rd, 0) * 90ms);
  will-change: opacity, transform;
}
html.js [data-reveal="left"] { transform: translateX(-34px); }
html.js [data-reveal="right"] { transform: translateX(34px); }
html.js [data-reveal="scale"] { transform: scale(0.94); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* safety net: if scripting dies after the js class is set, content still
   fades in on its own after a beat */
@keyframes reveal-fallback {
  to { opacity: 1; transform: none; }
}
html.js:not(.is-ready) [data-reveal] { animation: reveal-fallback 0.7s 3s var(--ease) forwards; }
[data-reveal-delay="1"] { --rd: 1; }
[data-reveal-delay="2"] { --rd: 2; }
[data-reveal-delay="3"] { --rd: 3; }
[data-reveal-delay="4"] { --rd: 4; }

/* split headline: word masks (built by JS) */
.h-split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.h-split .wi {
  display: inline-block;
  transform: translateY(115%) rotate(2.5deg);
  transition: transform 1s var(--ease-expo);
  will-change: transform;
}
.h-split.is-in .wi { transform: none; }

/* parallax hooks: JS translates [data-parallax] elements */
[data-parallax] { will-change: transform; }

/* page enter veil */
@keyframes veil-out {
  to { opacity: 0; visibility: hidden; }
}
html.js body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2600;
  background: var(--ink);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.7s var(--ease);
  /* safety net if scripting dies before is-ready lands */
  animation: veil-out 0.6s 2.4s var(--ease) forwards;
}
html.js.is-ready body::before { opacity: 0; animation: none; }

/* --------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .h-split .wi { transform: none; }
  html.js body::before { display: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-half:last-child { display: none; }
  .hero__media img, .hero.is-live .hero__media img { animation: none; transform: none; }
  .scroll-cue i::after { animation: none; }
  html.js .anatomy__track { height: auto !important; }
  html.js .anatomy__sticky { position: static; min-height: 0; }
  .statement__text.is-live { color: var(--white); }
  html.js .stratum__desc {
    display: block;
    grid-template-rows: none;
    opacity: 1;
    padding: 0 1rem 0.9rem;
    overflow: visible;
  }
}

/* --------------------------------------------------------------- printing */
@media print {
  body { background: #fff; color: #000; }
  body::after, .site-header, .mobile-bar, .scroll-progress, .scroll-cue { display: none !important; }
}
