/* ═══════════════════════════════════════════════════════════════
   DevBridge — One-Page Editorial
   Rebuild v2 — section headings raised, dark panel img overlay added
   Monochromatic navy · Trailing-cluster cursor · FG-02 grain
   ═══════════════════════════════════════════════════════════════ */

/* ── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── CUSTOM PROPERTIES ─────────────────────────────────────── */
:root {
  /* Monochromatic navy — all tones derived from #0f172a */
  --color-bg:      #f0f4f8;
  --color-surface: #dce5f0;
  --color-primary: #0f172a;
  --color-accent:  #1e3a6e;
  --color-text:    #0f172a;
  --color-muted:   #4a6080;
  --color-dark:    #050b14;
  --color-cream:   #f0f4f8;

  /* Typography */
  --font-display: 'Inter', 'DM Sans', sans-serif;
  --font-body:    'Inter', 'DM Sans', sans-serif;

  --text-hero:      clamp(5rem, 12vw, 10rem);
  /* REBUILD FIX 1: raised from clamp(3rem, 6vw, 5.5rem) */
  --text-section:   clamp(3.5rem, 7vw, 6.5rem);
  --text-panel-sub: clamp(1.5rem, 3vw, 2.5rem);
  --text-statement: clamp(2rem, 4vw, 3.5rem);
  --text-body:      1rem;
  --text-label:     0.7rem;

  --tracking-display: -0.03em;
  --tracking-section: -0.02em;
  --tracking-label:   0.12em;
  --tracking-number:  0.15em;

  --weight-display: 800;
  --weight-section: 700;
  --weight-body:    400;

  /* Spacing */
  --section-pad:  clamp(12vh, 18vh, 22vh);
  --margin-outer: clamp(4vw, 6vw, 8vw);
  --nav-width:    56px;

  /* Animation */
  --ease-primary:      cubic-bezier(.19, 1, .22, 1);
  --transition-speed:  0.75s;
  --clip-y:            50%;
  --clip-y-reverse:    50%;
  --clip-x:            0%;

  /* Progress */
  --progress-opacity-active:   1;
  --progress-opacity-inactive: 0.25;
}

/* ── FG-02 FILM GRAIN — static, no animation ───────────────── */
body::before {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.09;
  z-index: 9000;
  pointer-events: none;
}

/* ── SCROLLBAR ─────────────────────────────────────────────── */
html { scrollbar-width: thin; scrollbar-color: var(--color-muted) var(--color-bg); }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-muted); }

/* ── BASE ──────────────────────────────────────────────────── */
html { font-size: 16px; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}
@media (hover: none) { body { cursor: auto; } }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── CLIP-PATH REVEAL SYSTEM (Pattern 3) ───────────────────── */
.reveal-clip {
  clip-path: inset(var(--clip-y, 50%) var(--clip-x, 0%) var(--clip-y-reverse, 50%));
  transition:
    clip-path var(--transition-speed) var(--ease-primary),
    opacity   var(--transition-speed) var(--ease-primary);
  opacity: 0;
}
.reveal-clip.is-visible {
  --clip-y:         0%;
  --clip-x:         0%;
  --clip-y-reverse: 0%;
  opacity: 1;
}

/* ── TRAILING-CLUSTER CURSOR ───────────────────────────────── */
.cursor-trail {
  position: fixed;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-text);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: background 0.25s ease;
  will-change: transform;
}
.cursor-trail.is-light { background: #ffffff; }
.cursor-trail[data-trail="0"] { opacity: 1;    z-index: 10000; }
.cursor-trail[data-trail="1"] { opacity: 0.65; }
.cursor-trail[data-trail="2"] { opacity: 0.4;  }
.cursor-trail[data-trail="3"] { opacity: 0.2;  }
@media (hover: none) { .cursor-trail { display: none; } }

/* ── LOADER (clip-path wipe dismiss) ────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: var(--color-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  clip-path: inset(0% 0% 0% 0%);
  transition: clip-path 0.9s var(--ease-primary);
}
.loader.is-dismissed { clip-path: inset(0% 0% 100% 0%); }
.loader__wordmark {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-cream);
}
.loader__sub {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240, 244, 248, 0.4);
}
.loader__progress {
  margin-top: 1.5rem;
  width: 48px;
  height: 1px;
  background: rgba(240, 244, 248, 0.2);
  overflow: hidden;
}
.loader__progress::after {
  content: '';
  display: block;
  width: 0%;
  height: 100%;
  background: rgba(240, 244, 248, 0.7);
  animation: loader-fill 1.4s var(--ease-primary) forwards;
}
@keyframes loader-fill { to { width: 100%; } }

/* ── VERTICAL LEFT-EDGE NAV ─────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-width);
  height: 100vh;
  z-index: 8000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(240, 244, 248, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.4s ease, background 0.4s ease;
}
.site-nav.on-dark {
  border-right-color: rgba(240, 244, 248, 0.08);
  background: rgba(5, 11, 20, 0.88);
}
.nav__wordmark {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.5;
  transition: opacity 0.3s ease, color 0.4s ease;
}
.site-nav.on-dark .nav__wordmark { color: var(--color-cream); }
.nav__wordmark:hover { opacity: 1; }
.nav__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.nav__link {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  opacity: 0.6;
  transition: opacity 0.3s ease, color 0.4s ease;
}
.site-nav.on-dark .nav__link { color: rgba(240, 244, 248, 0.5); }
.nav__link:hover { opacity: 1; color: var(--color-text); }
.site-nav.on-dark .nav__link:hover { color: var(--color-cream); }
.nav__link.is-active { opacity: 1; color: var(--color-accent); }
.site-nav.on-dark .nav__link.is-active { color: var(--color-cream); opacity: 1; }

/* ── MAIN CONTENT OFFSET ────────────────────────────────────── */
.site-main { margin-left: var(--nav-width); }

/* ── SECTION NUMBERS ────────────────────────────────────────── */
.section-num {
  position: absolute;
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-number);
  text-transform: uppercase;
  z-index: 20;
}
.section-num--tl { top: var(--section-pad); left: var(--margin-outer); }
.section-num--br { bottom: 2.5rem; right: 2rem; }
.section-num--muted { color: var(--color-muted); opacity: 0.6; }
.section-num--cream { color: var(--color-cream); opacity: 0.5; }

/* ── SECTION HEADING (REBUILD FIX 1: raised scale floor) ───── */
.section-heading {
  font-size: var(--text-section); /* clamp(3.5rem, 7vw, 6.5rem) */
  font-weight: var(--weight-section);
  letter-spacing: var(--tracking-section);
  line-height: 1.05;
  color: var(--color-text);
}
.panel--dark .section-heading { color: var(--color-cream); }

/* ── EDITORIAL HAIRLINE LIST ────────────────────────────────── */
.editorial-list { margin-top: 2rem; }
.editorial-list__item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0 1rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}
.editorial-list__item:first-child { border-top: 1px solid rgba(15, 23, 42, 0.12); }
.editorial-list__num {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-accent);
  padding-top: 0.15rem;
}
.editorial-list__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  display: block;
}
.editorial-list__desc {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin-top: 0.25rem;
  grid-column: 2;
  display: block;
}
/* Dark overrides */
.panel--dark .editorial-list__item { border-bottom-color: rgba(240,244,248,0.12); }
.panel--dark .editorial-list__item:first-child { border-top-color: rgba(240,244,248,0.12); }
.panel--dark .editorial-list__num  { color: rgba(240,244,248,0.4); }
.panel--dark .editorial-list__name { color: var(--color-cream); }
.panel--dark .editorial-list__desc { color: rgba(240,244,248,0.55); }

/* ── SECTION 01: HERO ───────────────────────────────────────── */
.section-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-dark);
}
.section-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.section-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 11, 20, 0.72);
  z-index: 1;
}
.section-hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 var(--margin-outer);
  width: 100%;
}
.section-hero__sublabel {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgba(240, 244, 248, 0.55);
  margin-bottom: 1.5rem;
}
.section-hero__headline {
  font-size: var(--text-hero);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-display);
  line-height: 1.0;
  color: var(--color-cream);
  text-transform: uppercase;
  width: 100%;
}
.section-hero__body {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(240, 244, 248, 0.6);
  max-width: 560px;
  margin: 1.5rem auto 0;
}
.section-hero__meta {
  position: absolute;
  bottom: 2.5rem;
  left: calc(var(--margin-outer) + var(--nav-width));
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgba(240, 244, 248, 0.5);
  z-index: 10;
}

/* Scroll progress — 6 dashes */
.scroll-progress {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.progress-dash {
  font-size: 0.9rem;
  color: var(--color-cream);
  opacity: var(--progress-opacity-inactive);
  transition: opacity 0.4s ease;
}
.progress-dash.is-active { opacity: var(--progress-opacity-active); }

/* ── MARQUEE (Pattern 14) ───────────────────────────────────── */
.marquee {
  overflow: hidden;
  background: var(--color-bg);
  border-top:    1px solid rgba(15, 23, 42, 0.1);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  padding: 0.9rem 0;
  position: relative;
  z-index: 10;
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee-track span {
  white-space: nowrap;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding-right: 1rem;
}

/* ── SECTION 02: SERVICES ───────────────────────────────────── */
.section-services {
  position: relative;
  min-height: 100vh;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.section-services__grid {
  display: grid;
  grid-template-columns: 35% 65%;
  flex: 1;
  min-height: 75vh;
}
.section-services__left {
  padding: var(--section-pad) var(--margin-outer);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section-services__right {
  position: relative;
  overflow: hidden;
}
.section-services__right img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cert-strip {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  opacity: 0.6;
}
.section-services__bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  padding: 0 var(--margin-outer);
}
.capabilities-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.capabilities-strip__item {
  padding: 1.75rem 1.5rem 1.75rem 0;
  border-right: 1px solid rgba(15, 23, 42, 0.1);
}
.capabilities-strip__item:last-child { border-right: none; }
.capabilities-strip__item:not(:first-child) { padding-left: 1.5rem; }
.capabilities-strip__name {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.capabilities-strip__body {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--color-muted);
}

/* ── PANELS (Portfolio & Products) ─────────────────────────── */
.section-portfolio,
.section-products { position: relative; }

.panel {
  position: relative;
  min-height: 100vh;
  display: grid;
  overflow: hidden;
}
.panel--split-img-left  { grid-template-columns: 40% 60%; }
.panel--split-img-right { grid-template-columns: 60% 40%; }
.panel--light { background: var(--color-bg);   color: var(--color-text);  }
.panel--dark  { background: var(--color-dark);  color: var(--color-cream); }

/* Image column */
.panel__img-col {
  position: relative;
  overflow: hidden;
}
.panel__img-col img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* REBUILD FIX 2: darkening overlay on image columns inside dark panels */
.panel--dark .panel__img-col::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 11, 20, 0.2);
  pointer-events: none;
  z-index: 2;
}

/* Content column */
.panel__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-pad) var(--margin-outer);
}
.panel__label {
  display: block;
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}
.panel__badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  border: 1px solid rgba(240, 244, 248, 0.25);
  padding: 0.25rem 0.5rem;
  margin-bottom: 1rem;
}
.panel--light .panel__badge { border-color: rgba(15, 23, 42, 0.25); }
.panel__subhead {
  font-size: var(--text-panel-sub);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: inherit;
}
.panel__body {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(240, 244, 248, 0.75);
  max-width: 48ch;
}
.panel--light .panel__body { color: var(--color-muted); }

/* Tag strip */
.tag-strip {
  margin-top: 1.5rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  line-height: 1.8;
}

/* Feature list */
.feature-list { display: flex; flex-direction: column; margin-top: 1.5rem; }
.feature-list__item {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(240, 244, 248, 0.12);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 244, 248, 0.65);
}
.feature-list__item:first-child { border-top: 1px solid rgba(240, 244, 248, 0.12); }
.feature-list--light .feature-list__item {
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--color-muted);
}
.feature-list--light .feature-list__item:first-child { border-top-color: rgba(15, 23, 42, 0.12); }

.deploy-strip {
  margin-top: 1.5rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 244, 248, 0.4);
}

/* Panel number markers */
.panel-num {
  position: absolute;
  top: var(--section-pad);
  left: var(--margin-outer);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-number);
  text-transform: uppercase;
  z-index: 20;
}
.panel-num--muted { color: var(--color-muted); opacity: 0.6; }
.panel-num--cream { color: var(--color-cream); opacity: 0.5; }

/* Statement panel */
.panel--statement {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.panel__img-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: 1;
}
.panel__statement-text {
  font-size: var(--text-statement);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-cream);
  max-width: 680px;
  padding: 0 var(--margin-outer);
  position: relative;
  z-index: 5;
}
.panel__statement-body {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(240, 244, 248, 0.6);
  max-width: 560px;
  padding: 0 var(--margin-outer);
  margin-top: 1.5rem;
  position: relative;
  z-index: 5;
}

/* ── WILDCARD "6" ───────────────────────────────────────────── */
.section-wildcard {
  position: relative;
  min-height: 100vh;
  background: var(--color-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-wildcard__number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(12rem, 28vw, 32rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-primary);
  user-select: none;
  will-change: transform;
}

/* ── SECTION 05: COMMUNITY ─────────────────────────────────── */
.section-community {
  position: relative;
  min-height: 100vh;
  background: var(--color-bg);
  display: grid;
  grid-template-columns: 55% 45%;
  overflow: hidden;
}
.section-community__left {
  padding: var(--section-pad) var(--margin-outer);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section-community__right {
  position: relative;
  overflow: hidden;
}
.section-community__right img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.process-list { margin-top: 2rem; }
.process-list .editorial-list__desc { display: none; }
.audience-strip {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.technical-note {
  margin-top: 1.5rem;
  font-size: 0.72rem;
  font-family: monospace;
  color: var(--color-muted);
  opacity: 0.7;
  line-height: 1.8;
}

/* ── SECTION 06: CONTACT ────────────────────────────────────── */
.section-contact {
  position: relative;
  min-height: 100vh;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
}
.section-contact__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-pad) var(--margin-outer);
}
.contact-address {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}
.contact-links { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-link {
  font-size: clamp(1.5rem, 3.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text);
  display: inline-block;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.contact-link:hover { border-bottom-color: rgba(15, 23, 42, 0.2); }
.contact-link--muted { color: var(--color-muted); }

/* Closing dark block (colour-block requirement #9) */
.contact-close {
  position: relative;
  background: var(--color-dark);
  padding: clamp(8vh, 12vh, 16vh) var(--margin-outer);
  overflow: hidden;
}
.contact-close__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.06;
  z-index: 0;
}
.contact-close__inner { position: relative; z-index: 5; }
.contact-close__tagline {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-cream);
  max-width: 680px;
  margin-bottom: 1rem;
}
.contact-close__services {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 244, 248, 0.4);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem var(--margin-outer);
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  background: var(--color-bg);
}
.footer__copy,
.footer__location {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  opacity: 0.6;
}

/* ── PREFERS-REDUCED-MOTION ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal-clip { transition: none; clip-path: inset(0%); opacity: 1; }
  .reveal-clip.is-visible { opacity: 1; }
  .loader { display: none; }
  .cursor-trail { display: none; }
}

/* ── RESPONSIVE 1024px ─────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --nav-width: 0px; }

  .site-nav {
    width: 100%;
    height: 56px;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 1.5rem;
    border-right: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }
  .site-nav.on-dark {
    border-right: none;
    border-bottom-color: rgba(240,244,248,0.08);
  }
  .nav__wordmark { writing-mode: horizontal-tb; transform: none; font-size: 0.65rem; }
  .nav__links    { flex-direction: row; gap: 1.5rem; }
  .nav__link     { writing-mode: horizontal-tb; transform: none; }

  .site-main { margin-left: 0; padding-top: 56px; }

  .section-services__grid { grid-template-columns: 1fr; }
  .section-services__right { height: 50vh; }
  .section-services__right img { position: static; }

  .capabilities-strip { grid-template-columns: repeat(2, 1fr); }
  .capabilities-strip__item:nth-child(2) { border-right: none; }
  .capabilities-strip__item:nth-child(3) { border-top: 1px solid rgba(15,23,42,0.1); }

  .panel--split-img-left,
  .panel--split-img-right {
    grid-template-columns: 1fr;
    grid-template-rows: 50vh auto;
  }
  .panel--split-img-right .panel__content { order: -1; }
  .panel--split-img-right .panel__img-col  { order:  0; }
  .panel__img-col { height: 50vh; }
  .panel__img-col img { position: static; }

  .section-community { grid-template-columns: 1fr; }
  .section-community__right { height: 50vh; }
  .section-community__right img { position: static; }
}

/* ── RESPONSIVE 768px ──────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-pad:  clamp(8vh, 12vh, 16vh);
    --margin-outer: clamp(5vw, 7vw, 10vw);
  }
  .nav__links { display: none; }
  .section-hero__headline { font-size: clamp(3rem, 12vw, 6rem); }
  .section-wildcard__number { font-size: clamp(8rem, 28vw, 14rem); }
  .capabilities-strip { grid-template-columns: 1fr; }
  .capabilities-strip__item {
    border-right: none;
    border-bottom: 1px solid rgba(15,23,42,0.1);
    padding-left: 0;
  }
  .capabilities-strip__item:last-child { border-bottom: none; }
  .panel--statement .panel__statement-text { font-size: clamp(1.5rem, 6vw, 2.5rem); }
}

/* ── RESPONSIVE 480px ──────────────────────────────────────── */
@media (max-width: 480px) {
  .section-hero__meta { display: none; }
  .contact-link { font-size: clamp(1rem, 5vw, 1.75rem); }
}
