/* =========================================================================
   EntitleOps · Brand · Navy × Gold × Cream
   Themes: light (default) · dark
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Fraunces:ital,opsz,wght,SOFT@0,9..144,300..900,30..100;1,9..144,300..900,30..100&family=Geist:wght@300..700&family=Geist+Mono:wght@300..600&display=swap');

/* -----------------------------
   THEME TOKENS · LIGHT (default)
   ----------------------------- */
:root, [data-theme="light"] {
  /* Surfaces */
  --bg-1:        #F5F1E8;          /* page (cream) */
  --bg-2:        #ECE5D2;           /* section tint */
  --bg-3:        #DFD5BD;           /* deep section / chart bg */

  /* Ink */
  --text-1:      #0F2350;           /* primary (navy) */
  --text-2:      #1E2D4F;           /* body */
  --text-mute:   #5C6580;           /* secondary */
  --text-faint:  #8B92A8;           /* tertiary */

  /* Brand */
  --navy:        #0F2350;
  --navy-deep:   #081634;
  --gold:        #D4A24C;
  --gold-deep:   #A8802A;
  --cream:       #F5F1E8;

  /* Accent role (interactive emphasis) */
  --accent:      #0F2350;           /* navy as primary action */
  --accent-2:    #081634;
  --emphasis:    #D4A24C;           /* italic / accent emphasis */

  /* Rules */
  --rule:        rgba(15, 35, 80, 0.16);
  --rule-strong: rgba(15, 35, 80, 0.34);
  --rule-faint:  rgba(15, 35, 80, 0.07);

  /* Inverted band (always contrasts page) */
  --invert-bg:   #081634;
  --invert-text: #F5F1E8;
  --invert-mute: rgba(245, 241, 232, 0.6);
  --invert-rule: rgba(245, 241, 232, 0.16);

  /* Footer (always dark navy in both modes for brand stamp) */
  --footer-bg:   #081634;
  --footer-text: #F5F1E8;

  /* Button surfaces */
  --btn-primary-bg:   #0F2350;
  --btn-primary-text: #F5F1E8;
  --btn-primary-hover:#D4A24C;
  --btn-primary-hover-text: #0F2350;

  /* Texture */
  --grain-opacity: 0.32;
  --grain-blend:   multiply;

  /* Type */
  --serif:  'Fraunces', 'Times New Roman', serif;
  --sans:   'Geist', -apple-system, system-ui, sans-serif;
  --mono:   'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  --brand:  'Archivo Black', 'Helvetica Neue', sans-serif;

  /* Grid */
  --gutter: 28px;
  --container: 1320px;

  color-scheme: light;
}

/* -----------------------------
   THEME TOKENS · DARK
   ----------------------------- */
[data-theme="dark"] {
  --bg-1:        #081634;
  --bg-2:        #0C1E45;
  --bg-3:        #152D5A;

  --text-1:      #F5F1E8;
  --text-2:      rgba(245, 241, 232, 0.86);
  --text-mute:   rgba(245, 241, 232, 0.58);
  --text-faint:  rgba(245, 241, 232, 0.38);

  --accent:      #D4A24C;
  --accent-2:    #E5BB6B;
  --emphasis:    #D4A24C;

  --rule:        rgba(245, 241, 232, 0.16);
  --rule-strong: rgba(245, 241, 232, 0.34);
  --rule-faint:  rgba(245, 241, 232, 0.07);

  --invert-bg:   #F5F1E8;
  --invert-text: #0F2350;
  --invert-mute: rgba(15, 35, 80, 0.62);
  --invert-rule: rgba(15, 35, 80, 0.18);

  --footer-bg:   #050E26;
  --footer-text: #F5F1E8;

  --btn-primary-bg:   #F5F1E8;
  --btn-primary-text: #0F2350;
  --btn-primary-hover:#D4A24C;
  --btn-primary-hover-text: #0F2350;

  --grain-opacity: 0.18;
  --grain-blend:   screen;

  color-scheme: dark;
}

/* -----------------------------
   RESET + BASE
   ----------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg-1); }

html, body {
  background: var(--bg-1);
  color: var(--text-1);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .4s ease, color .4s ease;
}

/* paper grain texture, adapts per theme */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05  0 0 0 0 0.08  0 0 0 0 0.16  0 0 0 0.045 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: var(--grain-blend);
  transition: opacity .4s ease;
}

main, header, footer, section { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

img, svg { display: block; max-width: 100%; }

/* -----------------------------
   LAYOUT PRIMITIVES
   ----------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.rule { height: 1px; background: var(--rule); width: 100%; }
.rule.strong { background: var(--rule-strong); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--emphasis);
  border-radius: 50%;
  margin: 0 0.6em;
  vertical-align: 2px;
}

/* -----------------------------
   HEADER / NAV
   ----------------------------- */
.site-header {
  position: sticky; top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-1) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: background-color .4s ease, border-color .4s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* Logo: inline SVG mark + Archivo Black wordmark */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-1);
  transition: color .25s ease;
}
.logo:hover { opacity: 0.85; }

.logo-mark {
  width: 36px; height: 36px;
  flex: 0 0 36px;
  display: block;
}
.logo-mark .ink { fill: var(--text-1); }
.logo-mark .ink-stroke { stroke: var(--text-1); }
.logo-mark .gold { fill: var(--gold); }
.logo-mark .gold-stroke { stroke: var(--gold); }

.wordmark {
  font-family: var(--brand);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text-1);
  text-transform: uppercase;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.wordmark em {
  font-style: normal;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-2);
  letter-spacing: -0.005em;
  position: relative;
  padding: 4px 0;
  transition: color .25s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active:not(.btn) { color: var(--gold); }
.nav-links a.active:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
}

/* THEME TOGGLE */
.theme-toggle {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  color: var(--text-1);
  background: transparent;
  cursor: pointer;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.theme-toggle svg {
  width: 16px; height: 16px;
  transition: transform .5s cubic-bezier(0.2, 0.7, 0.2, 1), opacity .3s ease;
}
.theme-toggle .moon { display: none; }
.theme-toggle .sun  { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun  { display: none; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.003em;
  border: 1px solid transparent;
  border-radius: 0;
  transition: all .25s ease;
  cursor: pointer;
  line-height: 1;
}
.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text) !important;
}
.btn-primary:hover {
  background: var(--btn-primary-hover);
  color: var(--btn-primary-hover-text) !important;
}
.btn-primary .arrow { transition: transform .25s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-ghost {
  background: transparent;
  color: var(--text-1) !important;
  border-color: var(--rule-strong);
}
.btn-ghost:hover {
  background: var(--text-1);
  color: var(--bg-1) !important;
  border-color: var(--text-1);
}
.btn-accent {
  background: var(--gold);
  color: var(--navy) !important;
}
.btn-accent:hover {
  background: var(--navy);
  color: var(--gold) !important;
}
.btn-accent .arrow { transition: transform .25s ease; }
.btn-accent:hover .arrow { transform: translateX(3px); }

/* -----------------------------
   HERO
   ----------------------------- */
.hero {
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--rule-faint) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule-faint) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: 0 0;
  pointer-events: none;
  opacity: 0.7;
  mask-image: radial-gradient(ellipse at 30% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, black 30%, transparent 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(48px, 6.6vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--text-1);
  margin-top: 28px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 320;
  color: var(--gold);
  font-feature-settings: 'ss01' on;
}

.hero-lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 540px;
  margin-top: 28px;
  letter-spacing: -0.005em;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}

.hero-meta {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero-meta-item .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.hero-meta-item .v {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 420;
  color: var(--text-1);
  font-feature-settings: 'lnum' on;
}
.hero-meta-item .v em { font-style: italic; color: var(--gold); }

/* Hero abstract */
.hero-art { position: relative; aspect-ratio: 5/6; width: 100%; color: var(--text-1); }
.hero-art svg { width: 100%; height: 100%; overflow: visible; }

/* SVG inside hero — theme-adaptive fills via classes */
.hero-art .a-grid-line { stroke: var(--text-1); opacity: 0.08; }
.hero-art .a-frame { stroke: var(--text-1); opacity: 0.5; }
.hero-art .a-panel { fill: var(--bg-3); }
.hero-art .a-bar { fill: var(--text-1); opacity: 0.92; }
.hero-art .a-bar-accent { fill: var(--gold); }
.hero-art .a-diag { stroke: var(--gold); opacity: 0.7; }
.hero-art .a-rule-top { stroke: var(--gold); }
.hero-art .a-label { fill: var(--text-mute); }
.hero-art .a-label-accent { fill: var(--gold-deep); }
.hero-art .a-caption { fill: var(--text-mute); }
.hero-art .a-italic { fill: var(--gold); }
.hero-art .a-stamp { fill: var(--navy); }
.hero-art .a-stamp-ring { stroke: var(--cream); }
.hero-art .a-stamp-text { fill: var(--gold); }
.hero-art .a-stamp-figure { fill: var(--cream); }
[data-theme="dark"] .hero-art .a-stamp { fill: var(--navy-deep); }
[data-theme="dark"] .hero-art .a-stamp-ring { stroke: var(--gold); opacity: 0.6; }

/* -----------------------------
   SECTION BASE
   ----------------------------- */
section.band {
  padding: 120px 0;
  position: relative;
  transition: background-color .4s ease;
}
section.band + section.band { border-top: 1px solid var(--rule); }
section.band.tinted { background: var(--bg-2); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1;
  letter-spacing: -0.022em;
  color: var(--text-1);
}
.section-head h2 em { font-style: italic; color: var(--gold); font-weight: 320; }
.section-head .lede {
  font-size: 17px;
  color: var(--text-2);
  max-width: 540px;
  line-height: 1.55;
}

/* -----------------------------
   PREMISE
   ----------------------------- */
.premise {
  padding: 140px 0;
  border-top: 1px solid var(--rule);
}
.premise-grid {
  display: grid;
  grid-template-columns: 0.4fr 1.6fr;
  gap: 64px;
  align-items: start;
}
.premise-grid .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding-top: 14px;
}
.premise p {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--text-1);
  max-width: 960px;
}
.premise p em { font-style: italic; color: var(--gold); font-weight: 300; }
.premise p strong { font-weight: 460; font-style: normal; color: var(--text-1); }

/* -----------------------------
   PROOF GRID
   ----------------------------- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.proof-cell {
  padding: 44px 28px 44px 0;
  border-right: 1px solid var(--rule);
  position: relative;
}
.proof-cell:last-child { border-right: 0; padding-right: 0; }
.proof-cell:not(:first-child) { padding-left: 28px; }
.proof-cell .figure {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(48px, 5.2vw, 68px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--text-1);
  font-feature-settings: 'lnum' on;
}
.proof-cell .figure em { font-style: italic; color: var(--gold); font-weight: 320; }
.proof-cell .figure .unit {
  font-size: 0.5em;
  vertical-align: 0.55em;
  margin-left: 4px;
  color: var(--text-mute);
  font-weight: 380;
  font-style: normal;
}
.proof-cell .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 18px;
  line-height: 1.4;
}

/* -----------------------------
   CAPABILITIES (3-col)
   ----------------------------- */
.caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.cap {
  padding: 52px 36px 52px 0;
  border-right: 1px solid var(--rule);
}
.cap:last-child { border-right: 0; padding-right: 0; }
.cap:not(:first-child) { padding-left: 36px; }
.cap .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cap .num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.cap .icon { width: 56px; height: 56px; margin-bottom: 36px; }
.cap .icon .ink { stroke: var(--text-1); fill: none; }
.cap .icon .gold { fill: var(--gold); }
.cap h3 {
  font-family: var(--serif);
  font-weight: 420;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin-bottom: 14px;
  color: var(--text-1);
}
.cap h3 em { font-style: italic; color: var(--gold); font-weight: 380; }
.cap p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 380px;
}

/* -----------------------------
   CASE BLOCK
   ----------------------------- */
.case-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule-strong);
  background: var(--bg-1);
  position: relative;
}
.case-block .left {
  padding: 56px;
  border-right: 1px solid var(--rule);
}
.case-block .right {
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-content: space-between;
}
.case-block .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.case-block h3 {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--text-1);
  margin-bottom: 18px;
}
.case-block h3 em { font-style: italic; color: var(--gold); font-weight: 320; }
.case-block .desc {
  font-size: 15.5px;
  color: var(--text-2);
  line-height: 1.55;
  max-width: 460px;
}
.case-stat .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.case-stat .v {
  font-family: var(--serif);
  font-weight: 380;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.022em;
  color: var(--text-1);
  font-feature-settings: 'lnum' on;
}
.case-stat .v em { font-style: italic; color: var(--gold); font-weight: 340; }
.case-stat .v .unit {
  font-size: 0.45em;
  vertical-align: 0.55em;
  margin-left: 3px;
  color: var(--text-mute);
  font-weight: 400;
  font-style: normal;
}

/* -----------------------------
   GUARANTEE / SEAL
   ----------------------------- */
.guarantee {
  padding: 140px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.guarantee-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 80px;
  align-items: center;
}
.guarantee h2 {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.024em;
  color: var(--text-1);
}
.guarantee h2 em { font-style: italic; color: var(--gold); font-weight: 280; }
.guarantee p {
  font-size: 17px;
  color: var(--text-2);
  max-width: 540px;
  margin-top: 32px;
  line-height: 1.6;
}

.seal {
  width: 360px;
  max-width: 100%;
  margin-left: auto;
  transform: rotate(-6deg);
  filter: drop-shadow(0 8px 24px rgba(15, 35, 80, 0.18));
  animation: sealIn 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
}
.seal .ring-stroke { stroke: var(--navy); }
.seal .disc { fill: var(--navy); }
.seal .inner-stroke { stroke: var(--gold); opacity: 0.55; }
.seal .arc-text { fill: var(--gold); }
.seal .center-text { fill: var(--cream); }
.seal .center-italic { fill: var(--gold); }
.seal .divider { stroke: var(--gold); opacity: 0.65; }
.seal .tick { stroke: var(--gold); opacity: 0.75; }
[data-theme="dark"] .seal { filter: drop-shadow(0 8px 24px rgba(212, 162, 76, 0.18)); }
[data-theme="dark"] .seal .disc { fill: var(--bg-3); }
[data-theme="dark"] .seal .ring-stroke { stroke: var(--gold); }
[data-theme="dark"] .seal .center-text { fill: var(--cream); }

@keyframes sealIn {
  0%   { opacity: 0; transform: rotate(-12deg) scale(0.92); }
  60%  { opacity: 1; transform: rotate(-4deg) scale(1.02); }
  100% { opacity: 1; transform: rotate(-6deg) scale(1); }
}

/* -----------------------------
   CTA CLOSER
   ----------------------------- */
.cta-closer {
  padding: 160px 0 140px;
  border-top: 1px solid var(--rule);
}
.cta-closer .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: end;
}
.cta-closer h2 {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.028em;
  color: var(--text-1);
}
.cta-closer h2 em { font-style: italic; color: var(--gold); font-weight: 280; }
.cta-closer .btn { font-size: 15px; padding: 18px 28px; }

/* -----------------------------
   FOOTER (always dark navy)
   ----------------------------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 80px 0 36px;
  position: relative;
  transition: background-color .4s ease;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 64px;
}
.footer-brand .wordmark {
  font-size: 24px;
  margin-bottom: 18px;
  color: var(--cream);
}
.footer-brand .wordmark em { color: var(--gold); }
.footer-brand p {
  font-size: 14px;
  color: rgba(245, 241, 232, 0.62);
  max-width: 320px;
  line-height: 1.55;
  margin-top: 8px;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.55);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--cream);
  opacity: 0.85;
  transition: opacity .2s, color .2s;
}
.footer-col a:hover { opacity: 1; color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(245, 241, 232, 0.12);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(245, 241, 232, 0.5);
}

/* footer mark variant (always uses cream + gold) */
.site-footer .logo-mark .ink,
.site-footer .logo-mark .ink-stroke { fill: var(--cream); stroke: var(--cream); }
.site-footer .logo-mark rect.ink-stroke { fill: var(--cream); }

/* -----------------------------
   PLATFORM PAGE
   ----------------------------- */
.platform-hero { padding: 96px 0 80px; }
.platform-hero h1 {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.028em;
  color: var(--text-1);
  max-width: 16ch;
  margin-top: 28px;
}
.platform-hero h1 em { font-style: italic; color: var(--gold); font-weight: 300; }
.platform-hero .lede {
  font-size: 18px;
  color: var(--text-2);
  max-width: 620px;
  line-height: 1.55;
  margin-top: 36px;
}

.modules {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.module {
  display: grid;
  grid-template-columns: 100px 1fr 1.2fr;
  gap: 48px;
  padding: 64px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: background .3s ease;
}
.module:last-child { border-bottom: 0; }
.module:hover { background: color-mix(in srgb, var(--gold) 5%, transparent); }
.module .idx {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--gold);
  padding-top: 12px;
}
.module .title h3 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text-1);
}
.module .title h3 em { font-style: italic; color: var(--gold); font-weight: 340; }
.module .title .sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.module .body p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.6;
}
.module .body p + p { margin-top: 14px; }
.module .body .meta {
  display: flex;
  gap: 28px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.module .body .meta .kv { display: flex; flex-direction: column; gap: 4px; }
.module .body .meta .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.module .body .meta .v {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 420;
  font-feature-settings: 'lnum' on;
  color: var(--text-1);
}

/* -----------------------------
   SERVICES PAGE
   ----------------------------- */
.svc-hero { padding: 96px 0 80px; }
.svc-hero h1 {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.028em;
  color: var(--text-1);
  max-width: 18ch;
  margin-top: 28px;
}
.svc-hero h1 em { font-style: italic; color: var(--gold); font-weight: 300; }
.svc-hero .lede {
  font-size: 18px;
  color: var(--text-2);
  max-width: 640px;
  line-height: 1.55;
  margin-top: 36px;
}

.squads {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-strong);
}
.squad {
  padding: 56px 48px 56px 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.squad:nth-child(2n) { border-right: 0; padding-left: 48px; padding-right: 0; }
.squad .ico { width: 44px; height: 44px; margin-bottom: 28px; }
.squad .ico .ink { stroke: var(--text-1); fill: none; }
.squad .ico .gold { fill: var(--gold); }
.squad h3 {
  font-family: var(--serif);
  font-weight: 420;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin-bottom: 12px;
  color: var(--text-1);
}
.squad h3 em { font-style: italic; color: var(--gold); font-weight: 380; }
.squad p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 460px;
}
.squad .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.squad .tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  border: 1px solid var(--rule);
  padding: 4px 10px;
}

/* COMMITMENT BAND — always inverts page */
.commitment {
  padding: 130px 0;
  background: var(--invert-bg);
  color: var(--invert-text);
  position: relative;
  overflow: hidden;
  transition: background-color .4s ease, color .4s ease;
}
.commitment::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--invert-rule) 1px, transparent 1px);
  background-size: 88px 100%;
  pointer-events: none;
}
.commitment .container { position: relative; z-index: 1; }
.commitment .eyebrow { color: var(--gold); }
.commitment .eyebrow .dot { background: var(--gold); }
.commitment h2 {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.024em;
  margin-top: 24px;
  max-width: 22ch;
  color: var(--invert-text);
}
.commitment h2 em { font-style: italic; color: var(--gold); font-weight: 280; }
.commitment .body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--invert-rule);
}
.commitment .body .item h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 500;
}
.commitment .body .item p {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 380;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--invert-text);
  opacity: 0.92;
}

/* -----------------------------
   CONTACT PAGE
   ----------------------------- */
.contact-page { padding: 96px 0 120px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 96px;
  align-items: start;
}
.contact-intro h1 {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  color: var(--text-1);
  margin-top: 28px;
  max-width: 14ch;
}
.contact-intro h1 em { font-style: italic; color: var(--gold); font-weight: 300; }
.contact-intro .lede {
  font-size: 17px;
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.6;
  margin-top: 32px;
}
.contact-aside {
  margin-top: 48px;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}
.contact-aside h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 20px;
}
.contact-aside ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.contact-aside li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--text-1);
  letter-spacing: -0.005em;
  line-height: 1.4;
  align-items: baseline;
}
.contact-aside li .n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
  padding-top: 4px;
}
.contact-aside li em { font-style: italic; color: var(--gold); }

.form-card {
  background: var(--bg-1);
  border: 1px solid var(--rule-strong);
  padding: 48px 44px;
  position: relative;
}
.form-card::before,
.form-card::after {
  content: '';
  position: absolute;
  width: 24px; height: 24px;
}
.form-card::before { top: -1px; left: -1px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.form-card::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.form-card .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-row.full { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text-1);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  padding: 10px 0 12px;
  outline: none;
  transition: border-color .2s ease;
  appearance: none;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 100px; font-family: var(--sans); }
.field select {
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}
[data-theme="light"] .field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%230F2350' stroke-width='1.2'/></svg>"); }
[data-theme="dark"] .field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23F5F1E8' stroke-width='1.2'/></svg>"); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold); }

/* Native dropdown list is OS-rendered — options need explicit colours
   or the open menu shows cream-on-white (invisible) in dark mode. */
.field select option {
  background-color: #FFFFFF;
  color: #0F2350;
}
[data-theme="dark"] .field select option {
  background-color: #0F2350;
  color: #F5F1E8;
}
.field select option:disabled,
.field select option[value=""] {
  color: #8B92A8;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.form-actions .note {
  font-size: 12.5px;
  color: var(--text-mute);
  max-width: 280px;
  line-height: 1.45;
}
.form-success { display: none; text-align: center; padding: 24px 0; }
.form-success.show { display: block; }
.form-success.show ~ .form-row,
.form-success.show ~ .form-actions { display: none; }
.form-success h3 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 380;
  letter-spacing: -0.018em;
  margin-bottom: 12px;
  color: var(--text-1);
}
.form-success h3 em { font-style: italic; color: var(--gold); }
.form-success p { color: var(--text-2); font-size: 15px; }

/* -----------------------------
   RESPONSIVE
   ----------------------------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-art { max-width: 520px; aspect-ratio: 5/5; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .case-block { grid-template-columns: 1fr; }
  .case-block .left { border-right: 0; border-bottom: 1px solid var(--rule); }
  .guarantee-grid { grid-template-columns: 1fr; gap: 48px; }
  .seal { margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .commitment .body { grid-template-columns: 1fr; gap: 28px; }
  .module { grid-template-columns: 80px 1fr; }
  .module .body { grid-column: 1 / -1; padding-left: 128px; padding-top: 16px; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn):not(.theme-toggle) { display: none; }
  .nav-links a:last-child { display: inline-flex; }
  .nav-links .btn { padding: 10px 16px; font-size: 13px; }
  .wordmark { font-size: 15px; }
  .logo-mark { width: 30px; height: 30px; flex-basis: 30px; }
  .hero { padding: 56px 0 64px; }
  .hero-meta { flex-direction: column; gap: 18px; }
  .premise { padding: 80px 0; }
  .premise-grid { grid-template-columns: 1fr; gap: 24px; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-cell { padding: 32px 18px !important; border-bottom: 1px solid var(--rule); }
  .proof-cell:nth-child(2n) { border-right: 0; }
  .proof-cell:nth-last-child(-n+2) { border-bottom: 0; }
  .caps-grid { grid-template-columns: 1fr; }
  .cap { padding: 36px 0 !important; border-right: 0; border-bottom: 1px solid var(--rule); }
  .cap:last-child { border-bottom: 0; }
  .case-block .left, .case-block .right { padding: 32px 24px; }
  .case-block .right { grid-template-columns: 1fr; gap: 24px; }
  .guarantee { padding: 80px 0; }
  .cta-closer { padding: 80px 0; }
  .cta-closer .container { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .module { grid-template-columns: 1fr; padding: 40px 0; }
  .module .body { padding-left: 0; }
  .module .idx { padding-top: 0; }
  .squads { grid-template-columns: 1fr; }
  .squad { padding: 40px 0 !important; border-right: 0; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 32px 24px; }
  .form-actions { flex-direction: column; gap: 20px; align-items: stretch; }
  .seal { width: 240px; }
  .section-head { margin-bottom: 40px; }
  section.band { padding: 64px 0; }
}

/* Entrance animations */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise .9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise.d1 { animation-delay: .06s; }
.rise.d2 { animation-delay: .14s; }
.rise.d3 { animation-delay: .22s; }
.rise.d4 { animation-delay: .30s; }
.rise.d5 { animation-delay: .38s; }

/* Pre-mount: prevent flash by hiding body until theme is set */
html.theme-loading body { visibility: hidden; }
