:root{
  --bg: #14212B;
  --bg-deep: #0E1922;
  --surface: #1C303C;
  --surface-2: #223947;
  --brass: #E0A458;
  --brass-bright: #F0BE7B;
  --sage: #7C9885;
  --signal: #6FC4D6;
  --ember: #C97B4A;
  --teal-deep: #4E8C93;
  --text: #EDE6D6;
  --text-dim: #A9B7BE;
  --line: rgba(237,230,214,0.14);
  --radius: 3px;
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --ease-spring: cubic-bezier(.34,1.2,.4,1);
  --shadow-soft:
    0 6px 18px rgba(0,0,0,0.2),
    0 1px 3px rgba(0,0,0,0.14);
  --shadow-mid:
    0 14px 36px rgba(0,0,0,0.28),
    0 4px 12px rgba(0,0,0,0.18),
    0 0 0 1px rgba(237,230,214,0.04);
  --shadow-deep:
    0 28px 70px rgba(0,0,0,0.4),
    0 10px 28px rgba(0,0,0,0.24),
    0 0 0 1px rgba(237,230,214,0.05),
    inset 0 1px 0 rgba(237,230,214,0.06);
  --shadow-glow:
    0 16px 40px rgba(224,164,88,0.12),
    0 0 48px rgba(78,140,147,0.08);
  --shadow-header:
    0 10px 32px rgba(0,0,0,0.24),
    0 2px 8px rgba(0,0,0,0.14);
}

*{ box-sizing: border-box; margin:0; padding:0; }

html{ scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

html.has-smooth-scroll{
  scroll-behavior: auto;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

body{
  background: var(--bg-deep);
  color: var(--text);
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- atmosphere ---------- */

.page-atmosphere{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(78,140,147,0.18), transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 5%, rgba(224,164,88,0.12), transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 42%, var(--bg-deep) 100%);
}

.glow{
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: drift 18s var(--ease-out) infinite alternate;
}

.glow-a{
  width: 42vw;
  height: 42vw;
  top: -12%;
  left: -8%;
  background: rgba(78,140,147,0.35);
}

.glow-b{
  width: 36vw;
  height: 36vw;
  top: 18%;
  right: -12%;
  background: rgba(224,164,88,0.22);
  animation-delay: -6s;
  animation-duration: 22s;
}

.glow-c{
  width: 50vw;
  height: 30vw;
  bottom: 5%;
  left: 25%;
  background: rgba(111,196,214,0.12);
  animation-delay: -11s;
  animation-duration: 26s;
}

.grain{
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

@keyframes drift{
  from{ transform: translate3d(0,0,0) scale(1); }
  to{ transform: translate3d(3%, 4%, 0) scale(1.08); }
}

@media (prefers-reduced-motion: reduce){
  .glow{ animation: none; }
}

h1, h2, h3{
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

a{ color: inherit; }

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* ---------- reveal ---------- */

.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-in{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- header ---------- */

header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14,25,34,0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

header.is-scrolled{
  background: rgba(10,18,24,0.88);
  box-shadow: var(--shadow-header), 0 0 40px rgba(224,164,88,0.06);
  border-bottom-color: rgba(224,164,88,0.16);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 16px;
}

.logo{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: 4px;
}

.logo:focus-visible{ outline: 2px solid var(--brass); outline-offset: 6px; }

.logo span{ color: var(--brass); }

.mark{
  width: 46px;
  height: 38px;
  flex-shrink: 0;
  overflow: visible;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35)) drop-shadow(0 0 12px rgba(224,164,88,0.18));
}

.mark rect{
  transition:
    x 0.7s cubic-bezier(.34,1.1,.4,1),
    y 0.7s cubic-bezier(.34,1.1,.4,1),
    width 0.7s cubic-bezier(.34,1.1,.4,1),
    height 0.7s cubic-bezier(.34,1.1,.4,1),
    rx 0.6s ease,
    transform 0.7s cubic-bezier(.34,1.1,.4,1);
  transform-box: fill-box;
  transform-origin: center;
}

.mark .ground{
  transition: stroke 0.6s ease, opacity 0.6s ease;
}

.mark .spark{
  opacity: 0;
  transform: translateY(8px) scale(0.5);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.5s ease 0.2s, transform 0.5s cubic-bezier(.34,1.4,.4,1) 0.2s;
}

.shape-cargo{ x: 14px; y: 40px; width: 54px; height: 28px; rx: 2px; fill: var(--sage); }
.shape-cab{ x: 68px; y: 28px; width: 24px; height: 40px; rx: 1px; fill: var(--brass); }
.shape-hood{ x: 90px; y: 52px; width: 14px; height: 16px; rx: 1px; fill: var(--brass-bright); }
.shape-exhaust{ x: 20px; y: 30px; width: 4px; height: 10px; rx: 1px; fill: var(--text-dim); }
.shape-wheel-rear{ x: 24px; y: 76px; width: 16px; height: 16px; rx: 8px; fill: var(--bg-deep); }
.shape-wheel-front{ x: 86px; y: 76px; width: 20px; height: 20px; rx: 10px; fill: var(--bg-deep); }

.logo.is-robot .shape-cab{ x: 48px; y: 8px; width: 24px; height: 20px; rx: 4px; }
.logo.is-robot .shape-cargo{ x: 40px; y: 30px; width: 40px; height: 32px; rx: 3px; }
.logo.is-robot .shape-hood{
  x: 25px; y: 32px; width: 10px; height: 28px; rx: 3px;
  transform: rotate(-14deg);
}
.logo.is-robot .shape-exhaust{
  x: 85px; y: 32px; width: 10px; height: 28px; rx: 3px;
  transform: rotate(14deg);
}
.logo.is-robot .shape-wheel-rear{ x: 45px; y: 62px; width: 11px; height: 28px; rx: 3px; }
.logo.is-robot .shape-wheel-front{ x: 64px; y: 62px; width: 11px; height: 28px; rx: 3px; }
.logo.is-robot .ground{ stroke: var(--brass); opacity: 0.9; }
.logo.is-robot .spark{ opacity: 1; transform: translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce){
  .mark rect, .mark .spark, .mark .ground{ transition: none; }
}

nav{
  position: relative;
}

nav ul{
  list-style: none;
  display: flex;
  gap: 8px;
  counter-reset: nav-item;
}

nav li{
  counter-increment: nav-item;
  opacity: 0;
  transform: translateY(-10px);
  animation: nav-in 0.55s var(--ease-out) forwards;
  animation-delay: calc(0.08s * var(--i, 1) + 0.15s);
}

nav li:nth-child(1){ --i: 1; }
nav li:nth-child(2){ --i: 2; }
nav li:nth-child(3){ --i: 3; }
nav li:nth-child(4){ --i: 4; }

@keyframes nav-in{
  to{ opacity: 1; transform: translateY(0); }
}

nav a{
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-dim);
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s ease;
  isolation: isolate;
}

nav a::before{
  content: counter(nav-item, decimal-leading-zero);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--brass);
  opacity: 0.55;
  transition: opacity 0.25s ease, transform 0.3s var(--ease-spring);
}

nav a::after{
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  box-shadow: 0 0 12px rgba(224,164,88,0.45);
  transition: left 0.3s var(--ease-out), right 0.3s var(--ease-out), opacity 0.25s ease;
  opacity: 0;
  z-index: -1;
}

nav a:hover,
nav a:focus-visible{
  color: var(--text);
  background: rgba(224,164,88,0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

nav a:hover::before,
nav a:focus-visible::before{
  opacity: 1;
  transform: translateY(-1px);
}

nav a:hover::after,
nav a:focus-visible::after{
  left: 16px;
  right: 16px;
  opacity: 1;
}

nav a[aria-current="page"]{
  color: var(--text);
  background: rgba(224,164,88,0.12);
  box-shadow:
    inset 0 0 0 1px rgba(224,164,88,0.28),
    0 0 24px rgba(224,164,88,0.08);
}

nav a[aria-current="page"]::before{
  opacity: 1;
}

nav a[aria-current="page"]::after{
  left: 16px;
  right: 16px;
  opacity: 1;
  background: var(--brass);
  box-shadow: 0 0 14px rgba(224,164,88,0.55);
}

nav a:active{
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  nav li{
    opacity: 1;
    transform: none;
    animation: none;
  }
  nav a{ transition: color 0.15s ease, background 0.15s ease; }
  nav a:hover, nav a:focus-visible{ transform: none; }
}

.nav-toggle{
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-toggle:hover{
  border-color: rgba(224,164,88,0.45);
  background: rgba(224,164,88,0.08);
  box-shadow: var(--shadow-mid), 0 0 20px rgba(224,164,88,0.12);
}

.nav-toggle:focus-visible{
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.nav-toggle-bars{
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background 0.2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after{
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}

.nav-toggle-bars::before{ top: -6px; }
.nav-toggle-bars::after{ top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars{ background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before{
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after{
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- hero (asymmetric / limen-style rearrange) ---------- */

.hero{
  padding: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
  min-height: min(84vh, 820px);
  display: block;
  border-bottom: 1px solid var(--line);
}

.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(8.333% - 1px),
    rgba(237,230,214,0.035) calc(8.333% - 1px),
    rgba(237,230,214,0.035) 8.333%
  );
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
}

.hero-shell{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 34%) minmax(0, 1fr);
  min-height: min(84vh, 820px);
  max-width: 1400px;
  margin: 0 auto;
  align-items: stretch;
}

.hero-visual{
  grid-column: 1;
  grid-row: 1;
  position: relative;
  min-height: 100%;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 40% 35%, rgba(224,164,88,0.14), transparent 55%),
    radial-gradient(ellipse at 60% 70%, rgba(111,196,214,0.1), transparent 50%),
    rgba(14,25,34,0.72);
  overflow: hidden;
}

#heroScene{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#heroScene canvas, #heroScene svg{
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

#heroScene canvas{
  image-rendering: auto;
}

.hero-main{
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(240px, 34%) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-content: stretch;
  padding: 40px 40px 48px;
  pointer-events: none;
  z-index: 2;
  gap: 0 0;
}

.hero-main a,
.hero-main .btn{
  pointer-events: auto;
}

.hero-display{
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  justify-self: stretch;
  margin: 0;
  margin-top: clamp(120px, 22vh, 250px);
  padding: 0 20px 0 12px;
  font-size: clamp(3.2rem, 8.5vw, 6.8rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.04em;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 0.02em;
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
  z-index: 3;
}

.hero-display.is-in{
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.hero-display-line{
  display: block;
  background:
    linear-gradient(
      90deg,
      var(--brass-bright) 0%,
      var(--brass) 22%,
      var(--text) 42%,
      var(--text) 100%
    );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  opacity: 0;
  transform: translateY(16px);
}

.hero-display.is-in .hero-display-line{
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

.hero-display.is-in .hero-display-line:nth-child(1){
  transition-delay: 0.05s;
}

.hero-display.is-in .hero-display-line:nth-child(2){
  transition-delay: 0.22s;
}

.hero-right{
  grid-column: 2;
  grid-row: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  grid-template-rows: auto auto;
  gap: 18px 36px;
  align-content: center;
  align-items: start;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px 8px 8px 40px;
  justify-self: stretch;
  animation: rise-in 1s var(--ease-out) 0.18s both;
}

.hero-aside{
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: start;
  width: 100%;
  max-width: 34rem;
  margin: 0;
  padding: 0;
}

.hero-kicker{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
}

.hero-brand{
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 0;
  animation: none;
}

.hero-brand::first-letter{
  color: var(--brass);
}

.hero-brand::after{ display: none; }

.hero-sub{
  margin-top: 14px;
  font-family: 'Fraunces', serif;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--brass);
}

.hero-lede{
  margin-top: 18px;
  max-width: 42ch;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.55;
  animation: none;
}

.hero-actions{
  margin-top: 22px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  animation: none;
}

.hero-rail{
  margin-top: 20px;
  height: 3px;
  width: 100%;
  max-width: 220px;
  background: rgba(237,230,214,0.12);
  border-radius: 2px;
  overflow: hidden;
}

.hero-rail span{
  display: block;
  height: 100%;
  width: 38%;
  background: var(--brass);
  border-radius: 2px;
}

.hero-figure{
  grid-column: 2;
  grid-row: 1 / 3;
  margin: 0;
  min-height: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(237,230,214,0.12);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(224,164,88,0.12), transparent 55%),
    rgba(14,25,34,0.55);
  box-shadow: var(--shadow-deep), var(--shadow-glow);
  align-self: center;
}

.hero-figure img{
  display: block;
  width: 100%;
  height: auto;
  max-height: min(48vh, 400px);
  object-fit: cover;
  object-position: center;
  aspect-ratio: 16 / 10;
}

.hero-stats{
  grid-column: 1;
  grid-row: 2;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  align-self: start;
}

.hero-stats li{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  padding: 2px 14px 2px 0;
  border-right: 1px solid var(--line);
}

.hero-stats li:last-child{
  border-right: none;
  padding-right: 0;
}

.hero-stats span{
  display: block;
  color: var(--brass);
  margin-bottom: 6px;
  font-size: 0.7rem;
}

/* legacy unused pillar list kept inert if present */
.hero-pillars{ display: none; }
.hero-stage, .hero-stage-ring, .hero-figure-old, .hero-grid, .hero-copy{ /* superseded */ }

@keyframes rise-in{
  from{ opacity: 0; transform: translateY(22px); }
  to{ opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce){
  .hero-display,
  .hero-display-line{
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-right{ animation: none; }
}

.btn{
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary{
  background: var(--brass);
  color: #1A140B;
  box-shadow:
    0 8px 22px rgba(224,164,88,0.22),
    0 2px 6px rgba(0,0,0,0.2);
}

.btn-primary:hover{
  background: var(--brass-bright);
  transform: translateY(-1px);
  box-shadow:
    0 14px 34px rgba(224,164,88,0.32),
    0 4px 12px rgba(0,0,0,0.22);
}

.btn-ghost{
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(28,48,60,0.35);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-soft);
}

.btn-ghost:hover{
  border-color: var(--text-dim);
  box-shadow: var(--shadow-mid);
}

/* ---------- section shell ---------- */

section{
  padding: 96px 0;
  position: relative;
  z-index: 1;
}

.section-kicker{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--brass);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-head{
  max-width: 58ch;
  margin-bottom: 56px;
}

.section-head h2{ font-size: clamp(1.9rem, 3.2vw, 2.7rem); }

.section-head p{
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 1.04rem;
}

/* ---------- capabilities / pipeline ---------- */

.capabilities{
  background: linear-gradient(180deg, transparent, rgba(28,48,60,0.35) 40%, transparent);
  padding-top: 40px;
}

.approach-section{
  padding-top: 40px;
  padding-bottom: 24px;
  position: relative;
  z-index: 1;
}

.pipeline{
  position: relative;
  height: 0;
}

.pipeline-rail{
  display: none;
}

.stages{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.stages::before{
  content: "";
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
  pointer-events: none;
}

.stage{
  padding: 0 28px 8px;
  position: relative;
  transition: transform 0.3s var(--ease-out);
}

.stage:hover{ transform: translateY(-4px); }

.stage-top{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.stage-index{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--brass);
  letter-spacing: 0.04em;
}

.stage-orb{
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--stage-accent, var(--brass));
  box-shadow: 0 0 0 6px rgba(20,33,43,0.9), 0 0 18px color-mix(in srgb, var(--stage-accent, var(--brass)) 55%, transparent);
}

.stage h3{
  font-size: 1.55rem;
}

.stage p{
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 0.97rem;
  max-width: 34ch;
}

.stage-mark{
  margin-top: 22px;
  width: 40px;
  height: 2px;
  background: var(--stage-accent, var(--sage));
  transform-origin: left center;
  transition: width 0.35s var(--ease-out);
}

.stage:hover .stage-mark{ width: 72px; }

/* ---------- product spotlight ---------- */

.boq-section{ padding-top: 40px; }

.spotlight{
  background:
    linear-gradient(145deg, rgba(34,57,71,0.92), rgba(28,48,60,0.75));
  border: 1px solid rgba(237,230,214,0.1);
  border-radius: 10px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-deep), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.spotlight::before{
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(224,164,88,0.12), transparent 70%);
  pointer-events: none;
}

.spotlight-tag{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--sage);
  letter-spacing: 0.03em;
}

.spotlight h3{
  margin-top: 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
}

.spotlight-sub{
  margin-top: 8px;
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  color: var(--brass-bright);
  font-weight: 400;
}

.spotlight p{
  margin-top: 16px;
  color: var(--text-dim);
  max-width: 44ch;
}

.spotlight-actions{
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.spotlight-status{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 10px rgba(224,164,88,0.7);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink{
  0%, 100%{ opacity: 1; }
  50%{ opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce){
  .dot{ animation: none; }
}

.boq-diagram{
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.boq-row{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
  padding: 12px 14px;
  background: rgba(14,25,34,0.55);
  border-radius: 4px;
  border-left: 2px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.boq-row:not(.head):hover{
  border-left-color: var(--sage);
  transform: translateX(3px);
}

.boq-row.head{
  color: var(--text);
  border-left-color: var(--brass);
  font-weight: 500;
  background: rgba(224,164,88,0.08);
}

/* ---------- approach ---------- */

.approach{
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 48px 56px;
  align-items: start;
}

.approach-quote{
  font-family: 'Fraunces', serif;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.35;
}

.approach-quote em{
  font-style: normal;
  color: var(--brass);
}

.approach-lead{
  display: grid;
  gap: 22px;
  align-content: start;
}

.approach-illus{
  margin: 0;
  max-width: 18.5rem;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.approach-list{
  display: grid;
  gap: 0;
  align-content: start;
}

.approach-item{
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.approach-item:first-child{
  border-top: none;
}

.approach-item:last-child{ border-bottom: 1px solid var(--line); }

.approach-item h4{
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
}

.approach-item p{
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.96rem;
}

/* ---------- footer / contact ---------- */

footer{
  background: rgba(8,14,20,0.85);
  padding: 22px 0;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
  box-shadow:
    0 -18px 48px rgba(0,0,0,0.28),
    0 -4px 14px rgba(0,0,0,0.12);
}

.footer-top{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-top h2{
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  max-width: 14ch;
}

.contact-line{
  margin-top: 26px;
  display: grid;
  gap: 10px;
  font-size: 0.98rem;
}

.contact-line a{
  text-decoration: none;
  color: var(--brass-bright);
  transition: color 0.2s ease;
}

.contact-line a:hover{ color: var(--brass); }

.footer-globe-wrap{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.globe{
  width: 150px;
  height: 150px;
  perspective: 500px;
  position: relative;
}

.globe::before{
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(111,196,214,0.16), rgba(111,196,214,0) 68%);
}

.globe-inner{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: globe-spin 16s linear infinite;
}

.globe-inner .meridian{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(111,196,214,0.55);
}

.globe-inner .latitude{
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(111,196,214,0.4);
}

@keyframes globe-spin{
  from{ transform: rotateY(0deg) rotateX(8deg); }
  to{ transform: rotateY(360deg) rotateX(8deg); }
}

.footer-globe-caption{
  margin-top: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce){
  .globe-inner{ animation: none; transform: rotateY(24deg) rotateX(8deg); }
}

.footer-meta{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0;
  border-top: none;
  color: var(--text-dim);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-meta .build{
  font-family: 'IBM Plex Mono', monospace;
}

/* ---------- responsive ---------- */

@media (max-width: 880px){
  .hero{
    min-height: auto;
  }
  .hero-shell{
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-visual{
    grid-column: 1;
    grid-row: 1;
    min-height: min(48vh, 360px);
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .hero-main{
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 28px 20px 48px;
    gap: 24px;
  }
  .hero-display{
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    margin-top: 0;
    padding: 0;
    font-size: clamp(3.4rem, 18vw, 5.2rem);
  }
  .hero-right{
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 0;
    max-width: none;
    gap: 20px;
  }
  .hero-aside{
    grid-column: 1;
    grid-row: auto;
    margin-left: 0;
    width: 100%;
    justify-self: start;
  }
  .hero-figure{
    grid-column: 1;
    grid-row: auto;
  }
  .hero-figure img{
    min-height: 0;
    max-height: 220px;
  }
  .hero-stats{
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero-stats li{
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
  }
  .hero-stats li:last-child{ border-bottom: none; }
  .stages{ grid-template-columns: 1fr; gap: 36px; }
  .stages::before{ display: none; }
  .stage{ padding: 0 0 28px; border-bottom: 1px solid var(--line); }
  .stage:last-child{ border-bottom: none; padding-bottom: 0; }
  .spotlight{ grid-template-columns: 1fr; padding: 36px; }
  .approach{ grid-template-columns: 1fr; gap: 40px; }
  .footer-top{ grid-template-columns: 1fr; }
  nav ul{ gap: 20px; }
  .header-inner{ padding: 16px 20px; }
  .wrap{ padding: 0 20px; }
}

@media (max-width: 560px){
  .nav-toggle{ display: inline-flex; }

  nav{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(14,25,34,0.96);
    backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid var(--line);
    padding: 14px 16px 20px;
    display: none;
    box-shadow: var(--shadow-deep), 0 12px 40px rgba(224,164,88,0.08);
  }

  nav.is-open{ display: block; }

  nav ul{
    display: grid;
    gap: 6px;
  }

  nav li{
    opacity: 0;
    transform: translateX(-12px);
    animation: none;
  }

  nav.is-open li{
    animation: nav-drawer-in 0.4s var(--ease-out) forwards;
    animation-delay: calc(0.05s * var(--i, 1));
  }

  @keyframes nav-drawer-in{
    to{ opacity: 1; transform: translateX(0); }
  }

  nav a{
    display: flex;
    width: 100%;
    padding: 14px 16px;
    font-size: 1.02rem;
    border-radius: 10px;
  }

  nav a::after{
    display: block;
    bottom: 10px;
    left: 16px;
    right: auto;
    width: 0;
    opacity: 0;
    background: var(--brass);
  }

  nav a:hover::after,
  nav a:focus-visible::after,
  nav a[aria-current="page"]::after{
    width: 28px;
    opacity: 1;
    left: 16px;
    right: auto;
  }

  header{ position: sticky; }

  .header-inner{ position: relative; }

  .hero h1,
  .hero-display{ font-size: clamp(3rem, 16vw, 4.2rem); }
}

/* ---------- multi-page shell ---------- */

.logo{
  text-decoration: none;
  color: inherit;
}

nav a[aria-current="page"]{
  color: var(--text);
}

/* active underline handled in main nav styles */

.page-hero{
  padding: 72px 0 48px;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--line);
}

.page-hero .section-kicker{ margin-bottom: 18px; }

.page-hero h1{
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  max-width: 16ch;
}

.page-hero .lede{
  margin-top: 20px;
  max-width: 48ch;
  color: var(--text-dim);
  font-size: 1.08rem;
}

/* Desktop: page intro reads as a clear two-column band (label | content) */
@media (min-width: 881px){
  .page-hero{
    padding: 88px 0 56px;
  }

  .page-hero .wrap{
    display: grid;
    grid-template-columns: 11rem minmax(0, 38rem);
    column-gap: 48px;
    row-gap: 14px;
    align-items: start;
  }

  .page-hero .section-kicker{
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    padding-top: 0.55em;
  }

  .page-hero h1{
    grid-column: 2;
    grid-row: 1;
    max-width: none;
  }

  .page-hero .lede{
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
  }
}

.chapter{
  padding: 56px 0;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
}

.chapter:first-of-type{
  border-top: none;
}

.chapter-grid{
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 12px 36px;
  align-items: start;
}

.chapter-num{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: var(--brass);
  letter-spacing: 0.08em;
  padding-top: 8px;
}

.chapter-body h2{
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  max-width: 18ch;
}

.chapter-body .lede{
  margin-top: 16px;
  color: var(--text-dim);
  max-width: 52ch;
}

.chapter-actions{
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Desktop: home chapters share one reading column with a vertical spine */
@media (min-width: 881px){
  .chapter{
    padding: 48px 0;
  }

  .chapter-grid{
    grid-template-columns: 5.5rem minmax(0, 40rem);
    gap: 0 48px;
    max-width: 52rem;
  }

  .chapter-num{
    position: relative;
    padding-top: 10px;
    text-align: right;
    padding-right: 28px;
  }

  .chapter-num::after{
    content: "";
    position: absolute;
    top: 0.55em;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brass);
    box-shadow: 0 0 0 4px rgba(14,25,34,0.9);
  }

  .chapter-body{
    padding-left: 36px;
    border-left: 1px solid var(--line);
    padding-bottom: 4px;
  }

  .chapter-body .section-kicker{
    margin-bottom: 10px;
  }

  .chapter-grid-media{
    grid-template-columns: 5.5rem minmax(240px, 0.95fr) minmax(0, 1.15fr);
    max-width: 70rem;
    gap: 0 36px;
    align-items: center;
  }

  .chapter-grid-media .chapter-num{ grid-column: 1; grid-row: 1; }
  .chapter-grid-media .chapter-illus{ grid-column: 2; grid-row: 1; }
  .chapter-grid-media .chapter-body{ grid-column: 3; grid-row: 1; }

  .chapter-grid-media.is-flip .chapter-body{ grid-column: 2; }
  .chapter-grid-media.is-flip .chapter-illus{ grid-column: 3; }

  .chapter-grid-media .chapter-illus{
    margin: 0;
    max-width: none;
  }

  .chapter-grid-media .chapter-body{
    padding-left: 36px;
  }

  .chapter-grid-media.is-flip .chapter-body{
    padding-left: 36px;
    padding-right: 8px;
  }
}

.text-link{
  font-size: 0.95rem;
  color: var(--brass-bright);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.text-link:hover{
  color: var(--brass);
  border-bottom-color: rgba(224,164,88,0.5);
}

.discipline-block{
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.discipline-block:first-of-type{ border-top: none; padding-top: 0; }

.discipline-block .stage-top{ margin-bottom: 16px; }

.discipline-block h2{
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.discipline-block p{
  margin-top: 14px;
  color: var(--text-dim);
  max-width: 54ch;
  font-size: 1.02rem;
}

/* Site illustrations */
.illus-frame{
  margin: 0 0 22px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(237,230,214,0.1);
  background: rgba(14,25,34,0.55);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-mid), var(--shadow-glow);
}

.illus-frame img,
.illus-panel img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.illus-frame-flush{
  margin-bottom: 14px;
}

.illus-band{
  padding: 8px 0 28px;
  position: relative;
  z-index: 1;
}

.illus-panel{
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(237,230,214,0.1);
  background: rgba(14,25,34,0.55);
  box-shadow: var(--shadow-deep), var(--shadow-glow);
}

.illus-panel-wide{
  aspect-ratio: 16 / 9;
}

.spotlight-visual{
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.chapter-illus{
  margin-top: 28px;
  max-width: 28rem;
}

@media (max-width: 880px){
  .chapter-grid-media .chapter-illus{
    margin-top: 8px;
    margin-bottom: 4px;
    max-width: none;
  }
}

/* Desktop: three disciplines sit as equal columns, same content */
@media (min-width: 881px){
  .capabilities{
    padding-top: 56px;
    padding-bottom: 40px;
  }

  .capabilities .wrap{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 0;
    position: relative;
  }

  .capabilities .wrap::before{
    display: none;
  }

  .discipline-block{
    border-top: none;
    padding: 0 28px 12px;
    max-width: none;
  }

  .discipline-block:first-of-type{
    padding-top: 0;
    padding-left: 0;
  }

  .discipline-block:last-child{
    padding-right: 0;
  }

  .discipline-block + .discipline-block{
    border-left: 1px solid var(--line);
  }

  .discipline-block p{
    max-width: 34ch;
  }

  .discipline-block .stage-top{
    position: relative;
    z-index: 1;
  }

  .discipline-block .illus-frame{
    margin-bottom: 20px;
  }
}

.page-cta{
  width: 100%;
  margin-top: 24px;
  margin-bottom: 80px;
  /* keep wrap's horizontal auto margins for centering */
  position: relative;
  z-index: 1;
}

.page-cta-panel{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(237,230,214,0.1);
  border-radius: 10px;
  padding: 40px;
  background: linear-gradient(145deg, rgba(34,57,71,0.7), rgba(28,48,60,0.45));
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-deep), var(--shadow-glow);
}

.page-cta-panel h2{
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  max-width: 16ch;
  margin: 0;
  line-height: 1.2;
}

.page-cta-panel .chapter-actions{
  margin-top: 0;
  align-items: center;
}

.page-cta-panel .text-link{
  display: inline-flex;
  align-items: center;
  line-height: 1;
  min-height: 1.2em;
  border-bottom-width: 1px;
  border-bottom-style: solid;
}

@media (min-width: 881px){
  .page-cta-panel{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 40px;
    row-gap: 20px;
    padding: 32px 40px;
  }

  .page-cta-panel h2{
    max-width: 18ch;
    justify-self: start;
  }

  .page-cta-panel .chapter-actions{
    margin-top: 0;
    justify-self: end;
    justify-content: flex-end;
    align-items: center;
  }

  .approach{
    gap: 48px 64px;
    align-items: start;
  }

  .approach-quote{
    padding-right: 4px;
    border-right: none;
  }

  .approach-lead{
    padding-right: 32px;
    border-right: 1px solid var(--line);
  }

  .approach-illus{
    max-width: 17.5rem;
  }

  .approach-list{
    border: 1px solid rgba(237,230,214,0.1);
    border-radius: 10px;
    padding: 8px 28px;
    background: rgba(28,48,60,0.28);
    align-self: stretch;
  }

  .approach-item{
    padding: 24px 0;
  }

  .approach-item:last-child{
    border-bottom: none;
  }

  .contact-panel{
    border: 1px solid rgba(237,230,214,0.1);
    border-radius: 10px;
    padding: 40px 44px;
    background: linear-gradient(145deg, rgba(34,57,71,0.7), rgba(28,48,60,0.45));
  }

  .contact-panel .footer-top{
    padding-bottom: 0;
  }
}

/* Contact: copy and globe share one band on desktop */
.contact-hero{
  border-bottom: none;
  min-height: min(70vh, 640px);
  display: flex;
  align-items: center;
}

.contact-hero .contact-hero-layout{
  display: grid;
  width: 100%;
  gap: 40px;
}

.contact-hero .contact-hero-main .lede{
  margin-top: 20px;
}

.contact-hero .contact-line{
  margin-top: 32px;
}

@media (min-width: 881px){
  .contact-hero .contact-hero-layout.wrap{
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
    column-gap: 56px;
    row-gap: 0;
    align-items: center;
  }

  /* Undo the generic page-hero label|content grid on this page */
  .contact-hero .section-kicker,
  .contact-hero h1,
  .contact-hero .lede{
    grid-column: auto;
    grid-row: auto;
  }

  .contact-hero .section-kicker{
    margin-bottom: 18px;
    padding-top: 0;
  }

  .contact-hero h1{
    max-width: 14ch;
  }

  .contact-hero-globe{
    justify-self: center;
    align-self: center;
  }
}

@media (max-width: 880px){
  .contact-hero{
    min-height: 0;
    display: block;
    padding-bottom: 56px;
  }

  .contact-hero-globe{
    margin-top: 12px;
  }

  .chapter-grid{ grid-template-columns: 1fr; gap: 12px; }
  .page-cta-panel{ padding: 28px; }
  .chapter{ padding: 48px 0; }
}
