/* ============================================================
   Saha Enterprises — global trade and applied intelligence
   ============================================================ */

:root {
  --ink: #0c1a35;
  --ink-2: #1a2847;
  --ink-3: #233456;
  --paper: #f5f1ea;
  --paper-2: #ece5d8;
  --rule: rgba(245, 241, 234, 0.14);
  --rule-strong: rgba(245, 241, 234, 0.28);
  --rule-ink: rgba(12, 26, 53, 0.12);
  --steel: #6e85b0;
  --steel-bright: #9fb7df;
  --brass: #b08a4a;
  --brass-bright: #d6b074;
  --brass-deep: #8a6a35;

  --serif: "Lora", "Fraunces", "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "DejaVu Sans Mono", monospace;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-2: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

/* Skip-to-content for accessibility (also helps crawlers) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 200;
  text-decoration: none;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ----- Scroll progress (top hairline) ----- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 1px;
  width: 0%;
  background: linear-gradient(90deg, var(--brass), var(--brass-bright));
  z-index: 100;
  transition: width 0.05s linear;
  box-shadow: 0 0 12px rgba(208, 162, 88, 0.55);
}

/* ----- Layout primitives ----- */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.rule { height: 1px; background: var(--rule); width: 100%; }
.rule-ink { height: 1px; background: var(--rule-ink); width: 100%; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel-bright);
  font-weight: 500;
}
.eyebrow.dark { color: var(--brass-deep); }

/* ----- Reveal-on-scroll baseline ----- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }
.reveal[data-delay="6"] { transition-delay: 0.48s; }
.reveal[data-delay="7"] { transition-delay: 0.56s; }
.reveal[data-delay="8"] { transition-delay: 0.64s; }

/* ----- Top nav ----- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 26, 53, 0.72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--rule);
  transition: background 0.4s ease, border-color 0.4s ease;
}
header.nav.scrolled { background: rgba(12, 26, 53, 0.94); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand img { width: 38px; height: 38px; transition: transform 0.6s var(--ease-out); display: block; }
.brand:hover img { transform: rotate(12deg); }
.brand .name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.02em;
}
.brand .name em {
  font-style: normal;
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  color: var(--steel);
  margin-top: 2px;
}
nav.links { display: flex; gap: 28px; align-items: center; }
nav.links a {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--paper);
  text-decoration: none;
  opacity: 0.78;
  transition: opacity 0.25s ease, color 0.25s ease;
  letter-spacing: 0.01em;
  position: relative;
}
nav.links a:not(.contact-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s var(--ease-out);
}
nav.links a:hover { opacity: 1; }
nav.links a:not(.contact-cta):hover::after,
nav.links a.active:not(.contact-cta)::after {
  transform: scaleX(1);
  transform-origin: left center;
}
nav.links a.active { opacity: 1; color: var(--steel-bright); }
nav.links a.contact-cta {
  border: 1px solid var(--steel);
  padding: 9px 18px;
  border-radius: 1px;
  opacity: 1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
nav.links a.contact-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: translateY(100%);
  transition: transform 0.45s var(--ease-out);
  z-index: -1;
}
nav.links a.contact-cta:hover { color: var(--ink); border-color: var(--paper); }
nav.links a.contact-cta:hover::before { transform: translateY(0); }
nav.links a.contact-cta.active { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ----- Mobile nav toggle (hamburger) ----- */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule-strong);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  position: relative;
  border-radius: 1px;
  align-items: center;
  justify-content: center;
  z-index: 70;
  transition: border-color 0.25s ease;
}
.nav-toggle:hover { border-color: var(--paper); }
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--paper);
  position: absolute;
  left: 50%;
  margin-left: -9px;
  transition: transform 0.4s var(--ease-out), opacity 0.3s ease, top 0.4s var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
body.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ----- Hero (homepage) ----- */
section.hero {
  padding: clamp(72px, 12vh, 140px) 0 clamp(80px, 14vh, 160px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 72px);
  position: relative;
  z-index: 2;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 6vh, 56px);
}
.hero-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brass);
  display: inline-block;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.78); }
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 18ch;
  color: var(--paper);
}
.hero h1 em {
  font-style: italic;
  color: var(--steel-bright);
  font-weight: 300;
}
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(36px);
  filter: blur(8px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out), filter 1.1s var(--ease-out);
}
.hero h1.in .word { opacity: 1; transform: translateY(0); filter: blur(0); }
.hero h1 .word:nth-child(1) { transition-delay: 0.05s; }
.hero h1 .word:nth-child(2) { transition-delay: 0.13s; }
.hero h1 .word:nth-child(3) { transition-delay: 0.21s; }
.hero h1 .word:nth-child(4) { transition-delay: 0.29s; }
.hero h1 .word:nth-child(5) { transition-delay: 0.37s; }
.hero h1 .word:nth-child(6) { transition-delay: 0.45s; }
.hero h1 .word:nth-child(7) { transition-delay: 0.53s; }
.hero h1 .word:nth-child(8) { transition-delay: 0.61s; }
.hero h1 .word:nth-child(9) { transition-delay: 0.69s; }
.hero h1 .word:nth-child(10) { transition-delay: 0.77s; }
.hero h1 .word:nth-child(11) { transition-delay: 0.85s; }

.hero .lede {
  margin-top: 36px;
  max-width: 58ch;
  font-size: clamp(16.5px, 1.5vw, 19px);
  line-height: 1.65;
  color: rgba(245, 241, 234, 0.78);
  font-weight: 400;
}
.hero-stats {
  margin-top: clamp(56px, 8vh, 90px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}
.hero-stats .stat .num {
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.015em;
  display: inline-block;
  color: var(--paper);
  position: relative;
}
.hero-stats .stat .num small {
  font-size: 0.55em;
  margin-left: 4px;
  color: var(--steel-bright);
  font-family: var(--mono);
  letter-spacing: 0.06em;
  vertical-align: top;
  margin-top: 0.4em;
  display: inline-block;
}
.hero-stats .stat .label {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}

/* Decorative orbital diagram behind hero */
.hero-orb {
  position: absolute;
  right: -8vw;
  top: 50%;
  width: 78vw;
  max-width: 980px;
  height: 78vw;
  max-height: 980px;
  pointer-events: none;
  opacity: 0.22;
  z-index: 1;
  transform: translate(0, -50%) translate3d(var(--orb-x, 0), var(--orb-y, 0), 0);
  transition: transform 1.6s var(--ease-out);
}
.hero-orb .ring-outer,
.hero-orb .ring-mid,
.hero-orb .ring-inner,
.hero-orb .ellipse-flat,
.hero-orb .ellipse-tilt {
  transform-origin: 300px 300px;
}
.hero-orb .ring-outer { animation: spin-cw 90s linear infinite; }
.hero-orb .ring-mid   { animation: spin-ccw 70s linear infinite; }
.hero-orb .ring-inner { animation: spin-cw 50s linear infinite; }
.hero-orb .ellipse-flat { animation: spin-cw 60s linear infinite; }
.hero-orb .ellipse-tilt { animation: spin-ccw 80s linear infinite; }
.hero-orb .node { animation: node-pulse 4s ease-in-out infinite; }
.hero-orb .node-2 { animation-delay: 1.1s; }
.hero-orb .node-3 { animation-delay: 2.2s; }

@keyframes spin-cw {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes spin-ccw {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
@keyframes node-pulse {
  0%, 100% { opacity: 0.4; r: 2; }
  50%      { opacity: 1;   r: 3.4; }
}

/* ----- Page header (non-home pages) ----- */
section.page-header {
  padding: clamp(70px, 12vh, 130px) 0 clamp(40px, 6vh, 64px);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.page-header .crumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 28px;
}
.page-header .crumb a { color: var(--steel-bright); text-decoration: none; }
.page-header .crumb a:hover { color: var(--paper); }
.page-header h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 16ch;
}
.page-header h1 em { font-style: italic; color: var(--steel-bright); font-weight: 300; }
.page-header .sub {
  margin-top: 24px;
  max-width: 58ch;
  font-size: clamp(16px, 1.4vw, 18.5px);
  line-height: 1.65;
  color: rgba(245, 241, 234, 0.78);
}

/* ----- Standard section ----- */
section.light {
  background: var(--paper);
  color: var(--ink);
}
section.section {
  padding: clamp(72px, 12vh, 130px) 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
section.light.section { border-bottom: 1px solid var(--rule-ink); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: clamp(32px, 6vw, 80px);
  margin-bottom: clamp(48px, 8vh, 84px);
  align-items: end;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 12px 0 0;
  max-width: 18ch;
}
.section-head h2 em { font-style: italic; color: var(--brass); font-weight: 300; }
.light .section-head h2 em { color: var(--brass-deep); }
.light .section-head h2 { color: var(--ink); }
.section-head .lede {
  font-size: clamp(15.5px, 1.3vw, 18px);
  line-height: 1.65;
  color: rgba(245, 241, 234, 0.78);
  max-width: 60ch;
}
.light .section-head .lede { color: rgba(12, 26, 53, 0.72); }

/* ----- Bridge concept (home only) ----- */
section.bridge {
  padding: clamp(80px, 14vh, 150px) 0 clamp(72px, 12vh, 130px);
  background: var(--ink);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.bridge .caption {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 6vw, 80px);
  margin-bottom: clamp(56px, 8vh, 88px);
  align-items: end;
}
.bridge .caption h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 12px 0 0;
  max-width: 18ch;
}
.bridge .caption h2 em { font-style: italic; color: var(--brass); font-weight: 300; }
.bridge .caption .lede {
  font-size: clamp(15.5px, 1.3vw, 18px);
  line-height: 1.65;
  color: rgba(245, 241, 234, 0.78);
  max-width: 56ch;
}
.bridge-diagram {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: block;
  height: auto;
}
.bridge-diagram .ring-spin {
  transform-origin: 550px 160px;
  animation: spin-cw 30s linear infinite;
}
.bridge-diagram .ring-spin-2 {
  transform-origin: 550px 160px;
  animation: spin-ccw 50s linear infinite;
}
.bridge-diagram .node-stroke {
  animation: stroke-pulse 4s ease-in-out infinite;
}
.bridge-diagram .node-stroke.delay { animation-delay: 2s; }
@keyframes stroke-pulse {
  0%, 100% { stroke-opacity: 0.55; }
  50%      { stroke-opacity: 1; }
}
.bridge-legend {
  margin-top: clamp(36px, 5vh, 56px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.bridge-legend .col {
  padding: clamp(24px, 4vw, 36px) clamp(20px, 3vw, 32px);
  border-right: 1px solid var(--rule);
}
.bridge-legend .col:last-child { border-right: none; }
.bridge-legend .tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel-bright);
  margin-bottom: 12px;
}
.bridge-legend .label {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--paper);
  margin-bottom: 8px;
}
.bridge-legend .desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(245, 241, 234, 0.62);
  margin: 0;
}

/* ----- Manifesto (home only) ----- */
section.manifesto {
  padding: clamp(96px, 16vh, 180px) 0;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--rule-ink);
}
.manifesto-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.manifesto .signature-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.manifesto .signature-tag::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--brass-deep);
}
.manifesto h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 56px;
  max-width: 26ch;
}
.manifesto .essay p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 28px;
}
.manifesto .essay p:last-child { margin-bottom: 0; }
.manifesto .essay strong {
  font-weight: 400;
  color: var(--brass-deep);
}
.manifesto .sign-off {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-ink);
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(12, 26, 53, 0.55);
}
.manifesto .sign-off img { width: 22px; height: 22px; opacity: 0.6; }

/* ----- Two-pillar (Trade / Advise) ----- */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.pillar {
  padding: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 48px);
  border-right: 1px solid var(--rule);
  position: relative;
  transition: background 0.4s ease;
}
.pillar:last-child { border-right: none; }
.pillar:hover { background: rgba(245, 241, 234, 0.025); }
.pillar .place {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel-bright);
  margin-bottom: 18px;
}
.pillar h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 2.4vw, 32px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  line-height: 1.18;
}
.pillar .role {
  color: rgba(245, 241, 234, 0.7);
  margin: 0 0 28px;
  font-size: 15.5px;
  line-height: 1.6;
}
.pillar dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 14px 28px;
  margin: 0;
  font-size: 14.5px;
}
.pillar dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  padding-top: 3px;
}
.pillar dd { margin: 0; color: var(--paper); }

/* ----- Division teaser cards (homepage) ----- */
.teasers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-ink);
  border-top: 1px solid var(--rule-ink);
  border-bottom: 1px solid var(--rule-ink);
}
.teaser {
  background: var(--paper);
  padding: clamp(36px, 5vw, 52px) clamp(28px, 4vw, 40px);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 0.4s ease, transform 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.teaser::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--brass-deep);
  transition: width 0.7s var(--ease-out);
}
.teaser:hover { background: var(--paper-2); transform: translateY(-2px); }
.teaser:hover::after { width: 100%; }
.teaser .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--brass-deep);
}
.teaser h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--ink);
}
.teaser p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(12, 26, 53, 0.72);
}
.teaser .arrow {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.4s var(--ease-out), color 0.3s ease;
}
.teaser:hover .arrow { gap: 14px; color: var(--ink); }

/* ----- Divisions list (full detail) ----- */
.divisions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule-ink);
}
.division {
  display: grid;
  grid-template-columns: 110px 1.1fr 1.4fr;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(36px, 6vh, 56px) 0;
  border-bottom: 1px solid var(--rule-ink);
  align-items: start;
  transition: background 0.4s ease;
  position: relative;
}
.division::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width 0.7s var(--ease-out);
}
.division:hover::before { width: 110px; }
.division .num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--brass-deep);
  padding-top: 14px;
  transition: color 0.35s ease, transform 0.35s var(--ease-out);
}
.division:hover .num {
  color: var(--brass);
  transform: translateX(6px);
}
.division h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
  max-width: 14ch;
  transition: color 0.35s ease;
}
.division:hover h3 { color: var(--ink-2); }
.division .copy { color: rgba(12, 26, 53, 0.78); }
.division .copy p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.65;
}
.division .copy p:last-child { margin-bottom: 0; }
.division .copy ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
}
.division .copy li {
  padding-left: 16px;
  position: relative;
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.3s ease, transform 0.3s ease;
}
.division .copy li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 1px;
  background: var(--brass);
  transition: width 0.4s var(--ease-out), background 0.4s ease;
}
.division .copy li:hover::before { width: 14px; background: var(--brass-deep); }
.division .copy li:hover { color: var(--ink); transform: translateX(3px); }

/* ----- Product catalog ----- */
.catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.product {
  background: var(--ink);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  transition: background 0.4s ease, transform 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.product::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--brass), var(--brass-bright), transparent);
  transition: width 0.6s var(--ease-out);
}
.product:hover {
  background: var(--ink-2);
  transform: translateY(-2px);
}
.product:hover::after { width: 100%; }
.product .code {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--brass);
  transition: color 0.3s ease;
}
.product:hover .code { color: var(--brass-bright); }
.product h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.005em;
  color: var(--paper);
}
.product p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(245, 241, 234, 0.65);
}
.product .skus {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--steel);
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

/* ----- Markets ----- */
.markets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.market {
  padding: clamp(36px, 5vw, 52px) clamp(28px, 4vw, 44px);
  border-right: 1px solid var(--rule);
  position: relative;
  transition: background 0.4s ease;
}
.market:last-child { border-right: none; }
.market:hover { background: rgba(245, 241, 234, 0.025); }
.market .region {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel-bright);
  margin-bottom: 18px;
}
.market h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 28px);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.market p {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(245, 241, 234, 0.7);
  margin: 0 0 24px;
}
.market .served {
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.market .served .h {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}
.market .served ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.market .served li {
  font-size: 13.5px;
  color: var(--paper);
  letter-spacing: 0.005em;
  padding-left: 14px;
  position: relative;
}
.market .served li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 1px;
  background: var(--brass);
}

/* ----- Approach ----- */
.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule-ink);
  border-top: 1px solid var(--rule-ink);
}
.principle {
  background: var(--paper);
  padding: clamp(36px, 5vw, 52px);
  transition: background 0.4s ease, transform 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.principle::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 0;
  height: 1px;
  background: var(--brass-deep);
  transition: width 0.7s var(--ease-out);
}
.principle:hover { background: var(--paper-2); }
.principle:hover::after { width: 100%; }
.principle .marker {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--brass-deep);
  font-weight: 300;
  margin-bottom: 16px;
  transition: transform 0.5s var(--ease-out);
}
.principle:hover .marker { transform: translateX(4px); }
.principle h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 28px);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}
.principle p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(12, 26, 53, 0.74);
}

/* ----- Clients ----- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.client {
  background: var(--ink);
  padding: clamp(40px, 5vw, 56px) clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease, transform 0.4s var(--ease-out);
  min-height: 360px;
}
.client::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--brass), var(--brass-bright));
  transition: width 0.6s var(--ease-out);
}
.client:hover { background: var(--ink-2); transform: translateY(-2px); }
.client:hover::after { width: 100%; }
.client .tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel-bright);
}
.client .wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 4px 0 6px;
}
.client .wordmark em {
  font-style: italic;
  color: var(--steel-bright);
  font-weight: 300;
}
.client .domain {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--brass);
}
.client .desc {
  font-size: 14.5px;
  line-height: 1.62;
  color: rgba(245, 241, 234, 0.72);
  margin: 8px 0 0;
}
.client .meta {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

/* Wordmark-strip variant for homepage (subtler) */
.client-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.client-strip .pad {
  padding: clamp(32px, 5vh, 56px) clamp(28px, 4vw, 44px);
  border-right: 1px solid var(--rule);
  text-align: left;
  transition: background 0.4s ease;
}
.client-strip .pad:last-child { border-right: none; }
.client-strip .pad:hover { background: rgba(245, 241, 234, 0.03); }
.client-strip .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 14px;
}
.client-strip .mark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  color: var(--paper);
  letter-spacing: -0.005em;
}
.client-strip .role {
  margin-top: 10px;
  font-size: 13.5px;
  color: rgba(245, 241, 234, 0.6);
}

/* ----- Contact ----- */
section.contact {
  padding: clamp(80px, 14vh, 150px) 0 clamp(60px, 10vh, 110px);
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.contact-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 80px);
  margin-bottom: clamp(56px, 8vh, 90px);
  align-items: end;
}
.contact-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 12px 0 0;
  max-width: 14ch;
}
.contact-head h2 em { font-style: italic; color: var(--steel-bright); font-weight: 300; }
.contact-head .lede {
  font-size: clamp(15.5px, 1.3vw, 17.5px);
  line-height: 1.65;
  color: rgba(245, 241, 234, 0.78);
  max-width: 56ch;
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.contact-card {
  padding: clamp(36px, 5vw, 52px) clamp(28px, 4vw, 44px);
  border-right: 1px solid var(--rule);
  position: relative;
  transition: background 0.4s ease;
}
.contact-card:last-child { border-right: none; }
.contact-card:hover { background: rgba(245, 241, 234, 0.025); }
.contact-card .where {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel-bright);
  margin-bottom: 18px;
}
.contact-card h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.contact-card .line {
  margin: 0 0 8px;
  font-size: 15px;
  color: rgba(245, 241, 234, 0.82);
}
.contact-card .line a {
  color: var(--paper);
  text-decoration: none;
  position: relative;
  display: inline-block;
}
.contact-card .line a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--steel-bright);
  transform: scaleX(0.35);
  transform-origin: left center;
  transition: transform 0.45s var(--ease-out), background 0.3s ease;
}
.contact-card .line a:hover::after {
  transform: scaleX(1);
  background: var(--brass-bright);
}
.contact-card .meta {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--steel);
  text-transform: uppercase;
}

/* ----- CTA strip ----- */
.cta-strip {
  padding: clamp(72px, 10vh, 120px) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cta-strip .row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
}
.cta-strip h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 22ch;
}
.cta-strip h2 em { font-style: italic; color: var(--steel-bright); font-weight: 300; }
.cta-strip a.btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--steel);
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: gap 0.4s var(--ease-out), background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-strip a.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: translateY(100%);
  transition: transform 0.45s var(--ease-out);
  z-index: -1;
}
.cta-strip a.btn:hover { color: var(--ink); border-color: var(--paper); gap: 18px; }
.cta-strip a.btn:hover::before { transform: translateY(0); }

/* ----- Footer ----- */
footer.foot {
  padding: 56px 0 40px;
  background: var(--ink);
  color: rgba(245, 241, 234, 0.55);
  font-size: 13px;
  border-top: 1px solid var(--rule);
}
footer.foot .row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
footer.foot .row .mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  color: var(--paper);
  font-size: 15px;
}
footer.foot .row .mark img { width: 22px; height: 22px; }
footer.foot .sitemap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
footer.foot .sitemap a {
  color: var(--steel);
  text-decoration: none;
  transition: color 0.25s ease;
}
footer.foot .sitemap a:hover { color: var(--paper); }
footer.foot .legal-row {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .word { opacity: 1; transform: none; filter: none; }
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .bridge .caption { grid-template-columns: 1fr; gap: 16px; }
  .bridge-legend { grid-template-columns: 1fr; }
  .bridge-legend .col { border-right: none; border-bottom: 1px solid var(--rule); }
  .bridge-legend .col:last-child { border-bottom: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .division { grid-template-columns: 90px 1fr; }
  .division .copy { grid-column: 2; }
  .division h3 { grid-column: 2; }
  .catalog { grid-template-columns: repeat(2, 1fr); }
  .markets-grid { grid-template-columns: 1fr; }
  .market { border-right: none; border-bottom: 1px solid var(--rule); }
  .market:last-child { border-bottom: none; }
  .teasers { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .client { border-right: none; }
  .client-strip { grid-template-columns: 1fr; }
  .client-strip .pad { border-right: none; border-bottom: 1px solid var(--rule); }
  .cta-strip .row { grid-template-columns: 1fr; align-items: start; gap: 28px; }
}
/* ----- Tablet (<=820px) — narrow tablets and large phones in landscape ----- */
@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--rule); }
  .pillar:last-child { border-bottom: none; }
}

/* ----- Phone (<=720px) ----- */
@media (max-width: 720px) {
  /* Mobile nav: show hamburger, hide inline links until opened */
  .nav-toggle { display: inline-flex; }
  /* Promote header above the overlay so the hamburger (close X) always stays tappable */
  header.nav { z-index: 90; }
  .nav-toggle { z-index: 95; }
  nav.links {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(12, 26, 53, 0.985);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    /* Switch from flex column to block layout — avoids the flex centering clip on short viewports */
    display: block;
    gap: 0;
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease-out);
    z-index: 80;
    padding: 96px var(--gutter) 48px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open nav.links { transform: translateY(0); }
  nav.links a {
    display: block;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    opacity: 1;
    color: var(--paper);
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
    transition: color 0.3s ease, padding-left 0.4s var(--ease-out);
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(208, 162, 88, 0.2);
  }
  nav.links a:hover,
  nav.links a:focus,
  nav.links a:active { color: var(--brass-bright); padding-left: 6px; outline: none; }
  nav.links a:not(.contact-cta)::after { display: none; }
  nav.links a.contact-cta {
    border: 1px solid var(--steel);
    text-align: center;
    margin-top: 28px;
    padding: 18px 24px;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 500;
  }
  nav.links a.active { color: var(--brass-bright); }

  /* Content responsive shifts */
  .division { grid-template-columns: 1fr; }
  .division .num { padding-top: 0; }
  .division h3, .division .copy { grid-column: 1; }
  .division .copy ul { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .contact-head { grid-template-columns: 1fr; gap: 20px; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .contact-card:last-child { border-bottom: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 24px; }
  footer.foot .row { grid-template-columns: 1fr; }
  footer.foot .legal-row { flex-direction: column; align-items: flex-start; }

  /* Hide the wide bridge diagram on phones; the 3-column legend below carries the message */
  .bridge-diagram { display: none; }
  .bridge .caption { margin-bottom: 36px; }

  /* Hero refinement */
  .hero { padding: 60px 0 56px; }
  .hero h1 { font-size: clamp(34px, 9vw, 48px); max-width: none; }

  /* Manifesto refinement */
  section.manifesto { padding: 64px 0 64px; }
  .manifesto h2 { font-size: 26px; line-height: 1.22; margin-bottom: 40px; }
  .manifesto .essay p { font-size: 18px; line-height: 1.5; margin-bottom: 22px; }

  /* Section padding tighter */
  section.section { padding: 64px 0; }
  section.bridge { padding: 60px 0 56px; }
  section.contact { padding: 64px 0 48px; }

  /* Section heads */
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: clamp(26px, 7vw, 36px); }

  /* Page header tighter */
  section.page-header { padding: 56px 0 32px; }
  .page-header h1 { font-size: clamp(34px, 9vw, 52px); }
  .page-header .sub { font-size: 15.5px; }

  /* CTA strip */
  .cta-strip { padding: 48px 0; }
  .cta-strip h2 { font-size: clamp(24px, 6vw, 32px); }

  /* Clients */
  .client { min-height: 0; padding: 32px 24px; }
}

/* ----- Small phone (<=480px) ----- */
@media (max-width: 480px) {
  :root { --gutter: 18px; }
  .hero { padding: 48px 0 44px; }
  .hero h1 { font-size: 32px; line-height: 1.08; }
  .hero .lede { font-size: 15.5px; margin-top: 24px; }
  .hero-stats { gap: 18px; padding-top: 28px; margin-top: 40px; }
  .hero-stats .stat .num { font-size: 30px; }
  .hero-stats .stat .label { font-size: 9.5px; letter-spacing: 0.14em; }
  .hero-meta { gap: 16px; margin-bottom: 22px; }
  .eyebrow { font-size: 10.5px; }
  section.manifesto { padding: 56px 0; }
  .manifesto h2 { font-size: 23px; }
  .manifesto .essay p { font-size: 16.5px; }
  .section-head h2 { font-size: 26px; }
  .page-header h1 { font-size: 32px; }
  .product { min-height: 0; padding: 26px 22px; }
  .product h4 { font-size: 18px; }
  .principle { padding: 32px 24px; }
  .principle h3 { font-size: 22px; }
  .contact-card { padding: 28px 22px; }
  .contact-card h3 { font-size: 24px; }
  footer.foot .sitemap { gap: 6px 18px; font-size: 10.5px; }
}
