/* ============ TOKENS ============ */
:root {
  --bg-void: #040b11;
  --bg-panel: #0a1720;
  --bg-panel-2: #0e1e2a;
  --gold: #c9a35e;
  --gold-bright: #e0bb73;
  --white: #eef4f5;
  --grey: #8d9da7;
  --grey-dim: #5a6b77;
  --border-soft: rgba(201,163,94,0.18);
  --border-strong: rgba(201,163,94,0.4);
  --sea: #5f9fae;
  --sea-deep: #173f4f;
  --foam: #b4d8df;
  --bubble: rgba(150,205,216,.22);
  --bubble-strong: rgba(150,205,216,.42);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* the dive: the further down the page, the deeper and darker the water */
  background: linear-gradient(180deg, #0a1a25 0, #061119 100vh, #030a0f 55%, #010406 100%) var(--bg-void);
  min-height: 100%;
}

body {
  background: transparent;
  color: var(--white);
  font-family: "Source Sans 3", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ============ AMBIENT BACKGROUND ============ */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
/* light from the surface — script.js fades it out as you scroll down */
.bg-noise::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: var(--surface, 1);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(95,159,174,0.14), transparent 62%),
    radial-gradient(circle at 12% 18%, rgba(201,163,94,0.04), transparent 36%),
    radial-gradient(circle at 88% 70%, rgba(50,105,125,0.07), transparent 44%);
}

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  background: rgba(7,17,25,0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--grey);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--white); } }
.nav-links a.active { color: var(--gold-bright); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--white);
  display: block;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 73px; left: 0; right: 0;
  z-index: 49;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-soft);
  flex-direction: column;
  padding: 8px 24px 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 0;
  font-weight: 600;
  font-size: 15px;
  color: var(--grey);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-nav a.active { color: var(--gold-bright); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 2px;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .16s var(--ease-out), box-shadow .2s ease;
  cursor: pointer;
  border: none;
}
.btn-gold {
  background: var(--gold);
  color: #1a1208;
}
@media (hover: hover) and (pointer: fine) { .btn-gold:hover { background: var(--gold-bright); transform: translateY(-1px); } }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.22);
}
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); } }

.btn-gold-sm, .btn-ghost-sm {
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 2px;
}
.btn-gold-sm { background: var(--gold); color: #1a1208; }
@media (hover: hover) and (pointer: fine) { .btn-gold-sm:hover { background: var(--gold-bright); } }
.btn-ghost-sm { border: 1px solid rgba(255,255,255,0.22); color: var(--white); }
@media (hover: hover) and (pointer: fine) { .btn-ghost-sm:hover { border-color: var(--gold); color: var(--gold-bright); } }

/* ============ TYPE HELPERS ============ */
.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.gold-italic {
  color: var(--gold-bright);
  font-style: italic;
}

/* ============ BUBBLE MOTIF ============ */
/* class names kept from the old diamond motif; shapes are now orca bubbles */
.diamond-divider {
  display: flex;
  justify-content: center;
  margin: 0 auto 64px;
}
.diamond-divider span {
  position: relative;
  width: 11px; height: 11px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
}
.diamond-divider span::before,
.diamond-divider span::after {
  content: "";
  position: absolute;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  opacity: .8;
}
.diamond-divider span::before { width: 7px; height: 7px; left: 11px; top: -9px; }
.diamond-divider span::after  { width: 4px; height: 4px; left: 4px; top: -17px; opacity: .6; }

.hero-diamond-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-diamond-field .d {
  position: absolute;
  border: 1px solid var(--bubble);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(214,238,243,.13), rgba(214,238,243,0) 38%);
  animation: bubbleDrift 14s ease-in-out infinite;
}
.d1 { width: 120px; height: 120px; top: 12%; left: 8%; }
.d2 { width: 60px; height: 60px; top: 64%; left: 16%; border-color: var(--bubble-strong); animation-duration: 11s; animation-delay: -3s; }
.d3 { width: 180px; height: 180px; top: 8%; right: 6%; animation-duration: 18s; animation-delay: -6s; }
.d4 { width: 40px; height: 40px; top: 70%; right: 18%; border-color: rgba(201,163,94,.35); animation-duration: 9s; animation-delay: -2s; }
.d5 { width: 90px; height: 90px; bottom: 6%; left: 42%; animation-duration: 16s; animation-delay: -8s; }
@keyframes bubbleDrift {
  0%, 100% { translate: 0 0; }
  33%      { translate: 10px -18px; }
  66%      { translate: -8px -30px; }
}

.uc-diamond, .tl-diamond {
  width: 10px; height: 10px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero .eyebrow { margin-bottom: 22px; }

.brand-mega {
  font-size: clamp(56px, 11vw, 140px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(180deg, var(--white) 0%, var(--white) 60%, var(--gold) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-mega .brand-os {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--gold-bright);
}

.hero-title {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 880px;
}
.hero-title .accent { color: var(--gold-bright); }

.hero-sub {
  margin-top: 28px;
  max-width: 620px;
  font-size: 18px;
  color: #c4d0d5;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-cue span {
  display: block;
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ============ SECTION SHARED ============ */
section {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 110px 48px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ============ BRIEF ============ */
.brief-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}
.brief-lead {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 24px;
  color: var(--white);
}
.brief-content p:not(.brief-lead) {
  font-size: 16px;
  color: #c4d0d5;
  max-width: 640px;
}

/* ============ USE CASES — MARQUEE CAROUSEL ============ */
.uc-marquee-wrap {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.uc-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: ucMarquee 48s linear infinite;
}
@media (hover: hover) and (pointer: fine) { .uc-marquee-wrap:hover .uc-marquee-track {
  animation-play-state: paused;
} }
@keyframes ucMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.uc-card {
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid var(--gold);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 360px;
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) { .uc-card:hover { background: var(--bg-panel-2); } }
.uc-role {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.uc-quote {
  font-size: 14.5px;
  font-style: italic;
  color: #c4d0d5;
  line-height: 1.6;
}
.uc-attribution {
  font-size: 13px;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 12px;
}
.uc-name {
  font-weight: 700;
  color: var(--gold-bright);
}
.uc-sep { color: var(--grey-dim); }
.uc-position { color: var(--grey); }

/* ============ USE CASES — CTA BLOCK ============ */
.uc-cta {
  max-width: 560px;
  margin: 40px auto 0;
  text-align: center;
}
.uc-cta-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}
.uc-cta-text {
  font-size: 14.5px;
  color: var(--grey);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ============ TIMELINE — INTERACTIVE LINE ============ */
.tl-line-wrap {
  position: relative;
  margin-bottom: 0;
  padding: 60px 20px 100px;
}
.tl-line-track {
  position: relative;
  height: 2px;
  background: rgba(255,255,255,0.12);
}
.tl-line-fill {
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--gold);
  transition: width 1.2s ease;
}
.tl-line-track.animated .tl-line-fill { width: 100%; }

.tl-stop {
  position: absolute;
  top: 0;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
}
.tl-stop-dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg-void);
  border: 2px solid var(--gold);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s var(--ease-out), box-shadow .25s ease;
}
.tl-stop.active .tl-stop-dot {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(201,163,94,0.18);
  transform: scale(1.15);
}
@media (hover: hover) and (pointer: fine) { .tl-stop:hover .tl-stop-dot {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(201,163,94,0.18);
  transform: scale(1.15);
} }
.tl-stop-end .tl-stop-dot { border-color: var(--gold-bright); }

.tl-stop-label {
  position: absolute;
  top: 26px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: var(--grey);
  text-align: center;
  transition: color 0.25s ease;
}
.tl-stop-label em {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  color: var(--grey-dim);
  margin-top: 2px;
}
.tl-stop.active .tl-stop-label { color: var(--gold-bright); }
@media (hover: hover) and (pointer: fine) { .tl-stop:hover .tl-stop-label { color: var(--gold-bright); } }

/* ============ TIMELINE — DETAIL CARD ============ */
.tl-detail { position: relative; min-height: 60px; }
.tl-detail-card {
  display: none;
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 2px solid var(--gold);
  padding: 36px 40px;
  max-width: 720px;
  margin: 0 auto;
  animation: cardIn 0.4s ease;
}
.tl-detail-card.active { display: block; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.tl-empty {
  text-align: center;
  color: var(--grey);
  font-size: 14px;
  font-style: italic;
  padding: 8px 0 0;
}
.tl-empty.hidden { display: none; }

.tl-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.tl-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-bright);
  flex: 1;
}
.tl-time {
  font-size: 12px;
  color: var(--grey);
}
.tl-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}
.tl-desc {
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 18px;
  line-height: 1.55;
}
.tl-list li {
  font-size: 13.5px;
  color: #c4d0d5;
  padding: 7px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  padding-left: 16px;
}
.tl-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
}
.tl-footnote {
  margin-top: 40px;
  text-align: center;
  font-size: 15px;
  color: var(--grey);
}

/* ============ FOOTER ============ */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 56px 48px 36px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
}
.footer-tag {
  color: var(--grey);
  font-size: 14px;
  font-style: italic;
  margin-top: 6px;
}
.footer-ctas { display: flex; gap: 12px; }

.footer-lang-row {
  position: relative;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-lang-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--grey);
  font-family: "Source Sans 3", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.footer-lang-trigger:hover { color: var(--white); }
.footer-lang-flag { font-size: 15px; }
.footer-lang-caret {
  font-size: 10px;
  margin-left: 2px;
  transition: transform 0.2s ease;
}
.footer-lang-trigger[aria-expanded="true"] .footer-lang-caret {
  transform: rotate(180deg);
}
.footer-lang-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 2px solid var(--gold);
  min-width: 200px;
  z-index: 30;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.footer-lang-option {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--white);
  font-family: "Source Sans 3", sans-serif;
  font-size: 13.5px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.footer-lang-option:hover:not(:disabled) {
  background: var(--bg-panel-2);
  color: var(--gold-bright);
}
.footer-lang-option:disabled {
  color: var(--grey-dim);
  cursor: not-allowed;
  opacity: 0.55;
}

.footer-legal p {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--grey-dim);
  max-width: 980px;
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
  .uc-marquee-track { animation: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .brief-grid { grid-template-columns: 1fr; gap: 20px; }
  .tl-stop-label { font-size: 11px; }
  .tl-detail-card { padding: 28px 24px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .site-header { padding: 20px 24px; }
  section { padding: 70px 24px; }
  .uc-card { width: 280px; padding: 26px 22px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .tl-line-wrap { padding: 50px 4px 130px; }
  .tl-stop-label { white-space: normal; width: 70px; font-size: 10.5px; }
}

/* ============ PAGE HERO (secondary pages) ============ */
.page-hero {
  position: relative;
  text-align: center;
  padding: 130px 24px 80px;
  overflow: hidden;
}
.page-title {
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.12;
  max-width: 760px;
  margin: 0 auto;
}
.page-title .accent { color: var(--gold-bright); }
.page-sub {
  margin: 24px auto 0;
  max-width: 540px;
  font-size: 17px;
  color: #c4d0d5;
}
.page-emphasis {
  margin: 30px auto 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

/* ============ PROBLEM DEEP DIVE ============ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 40px;
}
.stat-card {
  background: var(--bg-panel);
  padding: 32px 26px;
}
.stat-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 14px;
}
.stat-num span {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  margin-left: 3px;
}
.stat-label {
  font-size: 14.5px;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 14px;
}
.stat-why {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.5;
  margin-bottom: 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 12px;
}
.stat-src {
  font-size: 11px;
  color: var(--grey-dim);
}
.problem-conclusion {
  text-align: center;
  font-size: 19px;
  font-weight: 600;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ============ FLOW DIAGRAM (global-card style) ============ */
.flow-stage {
  margin-bottom: 36px;
}
.flow-stage:last-child { margin-bottom: 0; }
.flow-stage-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-dim);
  margin-bottom: 18px;
}
.flow-simple-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.flow-simple-row-quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.flow-simple-card {
  flex: 1;
  min-width: 0;
}
.flow-card-pivot {
  border-top-color: var(--gold-bright);
  background: var(--bg-panel-2);
}
.flow-card-parallel {
  border-top-color: var(--gold);
}
.flow-card-outcome {
  border-top: 2px solid var(--gold-bright);
  background: var(--bg-panel-2);
  max-width: 620px;
  flex: none;
  width: 100%;
}

/* ============ GLOBAL SECTION ============ */
.global-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.global-card {
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 2px solid var(--gold);
  padding: 30px 26px;
}
.global-title {
  font-size: 18px;
  font-weight: 700;
  margin: 14px 0 10px;
}
.global-desc {
  font-size: 14.5px;
  color: var(--grey);
  line-height: 1.6;
}

/* ============ ECOSYSTEM SECTION ============ */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.eco-block {
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.eco-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 10px;
}
.eco-desc {
  font-size: 14.5px;
  color: var(--grey);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .global-grid, .eco-grid { grid-template-columns: 1fr; }
  .flow-simple-row-quad { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr; }
  .flow-simple-row-quad { grid-template-columns: 1fr; }
  .flow-simple-row { flex-direction: column; }
}

/* ============ MODULES SECTION ============ */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}
.mod-card {
  background: var(--bg-panel);
  padding: 32px 28px;
  transition: background 0.3s ease;
}
@media (hover: hover) and (pointer: fine) { .mod-card:hover { background: var(--bg-panel-2); } }
.mod-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.mod-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.mod-desc {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.55;
}
.mod-card-link {
  background: var(--bg-panel-2);
}
.mod-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}
@media (hover: hover) and (pointer: fine) { .mod-link:hover { color: var(--gold-bright); } }

/* ============ OFFICE SUITE SECTION ============ */
.office-sub {
  margin-top: 14px;
  font-size: 15px;
  color: var(--grey);
}
.office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.office-card {
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 2px solid var(--gold);
  padding: 26px 24px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--white);
  transition: grid-column 0.4s ease, background 0.3s ease, border-color 0.3s ease;
  grid-column: span 1;
}
@media (hover: hover) and (pointer: fine) { .office-card:hover {
  background: var(--bg-panel-2);
  border-top-color: var(--gold-bright);
} }
.office-card.expanded {
  grid-column: span 3;
  background: var(--bg-panel-2);
  border-top-color: var(--gold-bright);
  cursor: pointer;
}
.office-grid.has-expanded .office-card:not(.expanded) {
  display: none;
}
.office-title {
  font-size: 16px;
  font-weight: 700;
  margin: 12px 0 8px;
}
.office-desc {
  font-size: 13.5px;
  color: var(--grey);
  line-height: 1.55;
}
.office-more {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}
.office-card.expanded .office-more {
  max-height: 600px;
  opacity: 1;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}
.office-more .mod-process {
  margin-top: 16px;
}
.office-more-text {
  font-size: 14.5px;
  color: #c4d0d5;
  line-height: 1.65;
}

/* ============ INTEGRATES SECTION ============ */
.integrates-body {
  max-width: 760px;
  margin: 0 auto;
}
.integrates-lead {
  font-size: 19px;
  font-weight: 600;
  text-align: center;
  line-height: 1.55;
  margin-bottom: 24px;
}
.integrates-example {
  font-size: 15px;
  color: var(--grey);
  line-height: 1.65;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
}

/* ============ AI DECISION LAYER ============ */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.ai-card {
  background: var(--bg-panel-2);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--gold-bright);
  padding: 30px 30px;
}
.ai-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 10px;
}
.ai-desc {
  font-size: 14.5px;
  color: #c4d0d5;
  line-height: 1.6;
}

/* ============ SECURITY SECTION ============ */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sec-card {
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 2px solid var(--gold);
  padding: 28px 24px;
}
.sec-card-feature {
  grid-column: span 1;
  background: var(--bg-panel-2);
  border-top: 2px solid var(--gold-bright);
}
.sec-title {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 10px;
}
.sec-desc {
  font-size: 13.5px;
  color: var(--grey);
  line-height: 1.6;
}

/* ============ DEPLOYMENT SECTION ============ */
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.deploy-card {
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 2px solid var(--gold);
  padding: 36px 32px;
}
.deploy-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}
.deploy-desc {
  font-size: 15px;
  color: var(--grey);
  line-height: 1.6;
  margin-bottom: 20px;
}
.deploy-list li {
  font-size: 13.5px;
  color: #c4d0d5;
  padding: 9px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  position: relative;
  padding-left: 18px;
}
.deploy-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

@media (max-width: 900px) {
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid, .deploy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sec-grid { grid-template-columns: 1fr; }
}

/* ============ MODULES ZIGZAG ============ */
.mod-zigzag {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mod-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.06);
}
.mod-row-rev { grid-template-columns: 1fr 280px; }
.mod-row-rev .mod-detail { order: 1; }
.mod-row-rev .mod-card-zz { order: 2; }

.mod-card-zz {
  background: var(--bg-panel-2);
  border-top: 2px solid var(--gold);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mod-card-zz .mod-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.mod-card-zz .mod-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
}
.mod-card-desc {
  font-size: 13.5px;
  color: var(--grey);
  line-height: 1.5;
}

.mod-detail {
  background: var(--bg-panel);
  border-top: 2px solid rgba(255,255,255,0.1);
  padding: 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.mod-detail-text {
  font-size: 15px;
  color: #c4d0d5;
  line-height: 1.6;
}
.mod-process {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.mod-process span:not(.mp-arrow) {
  background: rgba(201,163,94,0.1);
  border: 1px solid var(--border-soft);
  color: var(--gold-bright);
  padding: 6px 12px;
  border-radius: 2px;
}
.mp-arrow { color: var(--grey-dim); }

/* ============ SDK SECTION ============ */
.sdk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.sdk-card {
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 2px solid var(--gold);
  padding: 32px 28px;
}
.sdk-title {
  font-size: 19px;
  font-weight: 700;
  margin: 14px 0 10px;
}
.sdk-desc {
  font-size: 14.5px;
  color: var(--grey);
  line-height: 1.6;
}

/* ============ INTRO PARAGRAPHS ============ */
.ai-intro, .sec-intro {
  margin-top: 18px;
  font-size: 16px;
  color: #c4d0d5;
  line-height: 1.65;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .office-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .mod-row, .mod-row-rev {
    grid-template-columns: 1fr;
  }
  .mod-row-rev .mod-detail { order: 2; }
  .mod-row-rev .mod-card-zz { order: 1; }
  .sdk-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .office-grid { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr; }
}

/* ============ PRICING HERO VARIANT ============ */
.brand-mega-sm {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.brand-os-sm { color: var(--grey-dim); }

/* ============ PRICING CALCULATOR ============ */
.pricing-calc {
  padding-top: 0;
}
.calc-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-bottom: 48px;
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 28px 32px;
}
.calc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
}
.calc-field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
}
.calc-field select {
  background: var(--bg-void);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-family: "Source Sans 3", sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 2px;
  cursor: pointer;
}
.calc-field select:focus { outline: none; border-color: var(--gold); }

.billing-toggle {
  display: flex;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}
.bt-option {
  background: var(--bg-void);
  color: var(--grey);
  border: none;
  font-family: "Source Sans 3", sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s var(--ease-out), box-shadow .25s ease;
  position: relative;
}
.bt-option.active {
  background: var(--gold);
  color: #1a1208;
}
.bt-save {
  display: block;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.8;
}

.calc-cubes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 24px;
}
.cube {
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid var(--gold);
  padding: 40px 36px;
  text-align: center;
}
.cube-server { border-top-color: var(--gold-bright); }
.cube-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 18px;
}
.cube-total {
  font-size: 46px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.cube-period {
  font-size: 13px;
  color: var(--grey);
  margin-top: 4px;
  margin-bottom: 18px;
}
.cube-perseat {
  font-size: 14px;
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cube-list {
  text-align: left;
}
.cube-list li {
  font-size: 13.5px;
  color: var(--grey);
  padding: 8px 0;
  position: relative;
  padding-left: 18px;
}
.cube-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.calc-footnote {
  text-align: center;
  font-size: 13px;
  color: var(--grey-dim);
}
.calc-footnote a { color: var(--gold); }
@media (hover: hover) and (pointer: fine) { .calc-footnote a:hover { color: var(--gold-bright); } }

/* ============ TWO COLUMN SECTION (Operating Globally / No Internal Purchases) ============ */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: start;
}
.two-col-item {
  padding: 0 40px;
}
.two-col-grid .two-col-item:first-child { padding-left: 0; }
.two-col-grid .two-col-item:last-child { padding-right: 0; }
.two-col-divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  align-self: stretch;
}
.two-col-h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 14px 0 18px;
  text-align: left;
}
.two-col-item .eyebrow { text-align: left; }
.global-pledge-text {
  font-size: 15.5px;
  color: #c4d0d5;
  line-height: 1.65;
  text-align: left;
}
.included-lead {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 16px;
  text-align: left;
}
.included-detail {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.6;
  text-align: left;
}

@media (max-width: 900px) {
  .two-col-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .two-col-divider {
    width: auto;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
  }
  .two-col-item, .two-col-grid .two-col-item:first-child, .two-col-grid .two-col-item:last-child {
    padding: 0;
  }
}

/* ============ ALWAYS WITH GROWTH SECTION ============ */
.always-head {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.aw-image {
  max-width: 100%;
  height: auto;
  width: 600px;
}
.always-sub {
  text-align: center;
  font-style: italic;
  color: var(--grey);
  font-size: 16px;
  margin-bottom: 48px;
}
.always-grid-img {
  display: flex;
  justify-content: center;
}
.afry-image {
  max-width: 100%;
  height: auto;
  width: 100%;
  display: block;
}

@media (max-width: 900px) {
  .calc-cubes { grid-template-columns: 1fr; }
  .aw-image { width: 100%; }
}
@media (max-width: 560px) {
  .calc-controls { flex-direction: column; align-items: stretch; }
}

/* ============ CONTACT METHODS ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card {
  display: block;
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 2px solid var(--gold);
  padding: 32px 28px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.25s ease;
}
@media (hover: hover) and (pointer: fine) { .contact-card:hover {
  background: var(--bg-panel-2);
  border-top-color: var(--gold-bright);
  transform: translateY(-3px);
} }
.contact-title {
  font-size: 19px;
  font-weight: 700;
  margin: 14px 0 10px;
}
.contact-desc {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.55;
  margin-bottom: 18px;
}
.contact-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}
@media (hover: hover) and (pointer: fine) { .contact-card:hover .contact-link { color: var(--gold-bright); } }

/* ============ INTENT SECTIONS ============ */
.intent-section {
  max-width: 680px;
}
.intent-text {
  font-size: 16px;
  color: #c4d0d5;
  line-height: 1.65;
}

/* ============ FEEDBACK PLACEHOLDER ============ */
.feedback-placeholder {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: 15px;
  color: var(--grey);
  line-height: 1.6;
  font-style: italic;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============ DOWNLOADS SECTION ============ */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.download-card {
  display: block;
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 2px solid var(--gold);
  padding: 30px 26px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.25s ease;
}
@media (hover: hover) and (pointer: fine) { .download-card:hover {
  background: var(--bg-panel-2);
  border-top-color: var(--gold-bright);
  transform: translateY(-3px);
} }
.download-title {
  font-size: 18px;
  font-weight: 700;
  margin: 12px 0 8px;
}
.download-desc {
  font-size: 13.5px;
  color: var(--grey);
  line-height: 1.55;
  margin-bottom: 16px;
}

/* ============ MARKET SECTION ============ */
.market-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}
.market-stat {
  background: var(--bg-panel);
  padding: 30px 24px;
}
.market-num {
  font-size: 38px;
  font-weight: 800;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 12px;
}
.market-num span {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}
.market-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.market-note {
  font-size: 12.5px;
  color: var(--grey);
  line-height: 1.5;
}

/* ============ SCENARIOS SECTION ============ */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.scenario-card {
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 3px solid var(--gold);
  padding: 32px 28px;
}
.scenario-card-mid {
  border-top-color: var(--gold-bright);
  background: var(--bg-panel-2);
  transform: translateY(-8px);
}
.scenario-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.scenario-tag-conservative { background: rgba(255,255,255,0.08); color: var(--grey); }
.scenario-tag-realistic { background: rgba(201,163,94,0.18); color: var(--gold-bright); }
.scenario-tag-optimistic { background: rgba(201,163,94,0.1); color: var(--gold); }
.scenario-clients {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
}
.scenario-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 14px;
}
.scenario-list li span { color: var(--grey); }
.scenario-list li strong { color: var(--white); font-size: 16px; }
.scenarios-footnote {
  text-align: center;
  font-size: 13px;
  color: var(--grey-dim);
  margin-top: 32px;
}

/* ============ BUDGET SECTION ============ */
.budget-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.budget-phase {
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 2px solid var(--gold);
  padding: 26px 22px;
}
.budget-phase-total {
  border-top-color: var(--gold-bright);
  background: var(--bg-panel-2);
}
.budget-phase-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.budget-phase-amount {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}
.budget-phase-desc {
  font-size: 12.5px;
  color: var(--grey);
  line-height: 1.5;
}

/* ============ INVEST CTA ============ */
.invest-cta-section {
  text-align: center;
}
.invest-cta-section .intent-text {
  margin: 0 auto 28px;
  text-align: center;
}
.invest-cta-wrap {
  display: inline-flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
}
.invest-cta-actions {
  display: flex;
  gap: 16px;
}
.btn-founder {
  flex: 1;
  justify-content: center;
}

@media (max-width: 900px) {
  .downloads-grid { grid-template-columns: 1fr; }
  .scenarios-grid { grid-template-columns: 1fr; }
  .scenario-card-mid { transform: none; }
  .budget-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .market-grid { grid-template-columns: 1fr; }
  .budget-grid { grid-template-columns: 1fr; }
  .invest-cta-wrap { width: 100%; }
  .invest-cta-actions { flex-direction: column; }
}

/* ============ CATEGORY BREAKDOWN ============ */
.category-breakdown {
  margin-top: 40px;
}
.category-breakdown-label {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 20px;
}
.category-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}
.category-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  background: var(--bg-panel);
  padding: 14px 22px;
}
.category-name {
  font-size: 14.5px;
  color: var(--white);
  font-weight: 600;
}
.category-size {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-bright);
  min-width: 70px;
  text-align: right;
}
.category-cagr {
  font-size: 13px;
  font-weight: 700;
  color: #7fbf7f;
  min-width: 60px;
  text-align: right;
}
.category-sources {
  margin-top: 18px;
  text-align: center;
  font-size: 11.5px;
  color: var(--grey-dim);
}
.category-sources a { color: var(--gold); }
@media (hover: hover) and (pointer: fine) { .category-sources a:hover { color: var(--gold-bright); } }

@media (max-width: 560px) {
  .category-row { grid-template-columns: 1fr; gap: 6px; text-align: left; }
  .category-size, .category-cagr { text-align: left; min-width: 0; }
}

/* ============ LOI LANGUAGE MODAL ============ */
.loi-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.loi-modal-overlay.open {
  display: flex;
}
.loi-modal {
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--gold);
  padding: 40px 36px;
  max-width: 480px;
  width: 100%;
  position: relative;
  animation: loiModalIn 0.25s ease;
}
.loi-modal.loi-modal-wide {
  max-width: 680px;
}
@keyframes loiModalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.loi-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--grey);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  font-family: "Source Sans 3", sans-serif;
  transition: color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) { .loi-modal-close:hover { color: var(--gold-bright); } }
.loi-modal-heading {
  font-size: 24px;
  font-weight: 800;
  margin: 10px 0 8px;
}
.loi-modal-sub {
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 24px;
}
.loi-lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.loi-lang-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-void);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  font-family: "Source Sans 3", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .16s var(--ease-out);
  text-align: left;
}
@media (hover: hover) and (pointer: fine) { .loi-lang-btn:hover {
  border-color: var(--gold);
  background: var(--bg-panel-2);
  color: var(--gold-bright);
} }
.loi-flag {
  font-size: 18px;
}

@media (max-width: 480px) {
  .loi-lang-grid { grid-template-columns: 1fr; }
}

/* ---- LOI modal: choice step ---- */
.loi-choice-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.loi-choice-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: var(--bg-void);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  font-family: "Source Sans 3", sans-serif;
  padding: 16px 18px;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .16s var(--ease-out);
  text-align: left;
  width: 100%;
}
@media (hover: hover) and (pointer: fine) { .loi-choice-btn:hover {
  border-color: var(--gold);
  background: var(--bg-panel-2);
} }
.loi-choice-btn-title {
  font-size: 15px;
  font-weight: 700;
}
@media (hover: hover) and (pointer: fine) { .loi-choice-btn:hover .loi-choice-btn-title { color: var(--gold-bright); } }
.loi-choice-btn-sub {
  font-size: 13px;
  color: var(--grey);
}
.loi-back-btn {
  background: none;
  border: none;
  color: var(--grey);
  font-family: "Source Sans 3", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) { .loi-back-btn:hover { color: var(--gold-bright); } }

/* ---- LOI modal: form step ---- */
.loi-modal-form {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 4px;
}
.loi-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.loi-form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.loi-form-row .loi-form-field { margin-bottom: 0; }
.loi-form-field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey);
}
.loi-form-field .ff-optional {
  text-transform: none;
  font-weight: 400;
  color: var(--grey-dim);
  letter-spacing: 0;
}
.loi-form-field input[type="text"],
.loi-form-field input[type="email"],
.loi-form-field input[type="tel"],
.loi-form-field input[type="number"],
.loi-form-field select {
  background: var(--bg-void);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-family: "Source Sans 3", sans-serif;
  font-size: 14px;
  padding: 10px 13px;
  border-radius: 2px;
}
.loi-form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 32px;
}
.loi-form-field input:focus,
.loi-form-field select:focus {
  outline: none;
  border-color: var(--gold);
}
.loi-industry-other {
  margin-top: 8px;
}
.loi-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 22px 0;
  padding: 0;
  border: none;
}
.loi-checkbox-group legend {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey);
  padding: 0;
  margin-bottom: 6px;
}
.loi-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 10px 12px;
  background: var(--bg-void);
  border: 1px solid rgba(255,255,255,0.1);
  transition: border-color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) { .loi-checkbox-item:hover { border-color: rgba(212,175,90,0.4); } }
.loi-checkbox-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  margin: 1px 0 0 0;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
  background: var(--bg-void);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 3px;
  position: relative;
  transition: background-color .15s ease, border-color .15s ease;
}
@media (hover: hover) and (pointer: fine) { .loi-checkbox-item input[type="checkbox"]:hover {
  border-color: var(--gold);
} }
.loi-checkbox-item input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.loi-checkbox-item input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #1a1208;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.loi-checkbox-item span {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--white);
}
.loi-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  bottom: 0;
  background: var(--bg-panel);
  padding-top: 6px;
}
.loi-form-status {
  font-size: 13px;
  font-weight: 600;
}
.loi-form-status.success { color: #7fbf7f; }
.loi-form-status.error { color: #d97a7a; }
.loi-form-status.sending { color: var(--grey); }

@media (max-width: 480px) {
  .loi-form-row { grid-template-columns: 1fr; }
}

/* ============ FEEDBACK FORM ============ */
.feedback-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid var(--gold);
  padding: 36px 36px;
}
.ff-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.ff-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ff-field-full { margin-bottom: 20px; }
.ff-field label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey);
}
.ff-optional {
  text-transform: none;
  font-weight: 400;
  color: var(--grey-dim);
  letter-spacing: 0;
}
.ff-field input[type="text"],
.ff-field input[type="email"],
.ff-field select,
.ff-field textarea {
  background: var(--bg-void);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-family: "Source Sans 3", sans-serif;
  font-size: 15px;
  padding: 11px 14px;
  border-radius: 2px;
}
.ff-field input[type="text"]:focus,
.ff-field input[type="email"]:focus,
.ff-field select:focus,
.ff-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.ff-field textarea {
  resize: vertical;
  font-family: "Source Sans 3", sans-serif;
}
.ff-field input[type="file"] {
  background: var(--bg-void);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--grey);
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 2px;
}
.ff-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.ff-status {
  font-size: 14px;
  font-weight: 600;
}
.ff-status.success { color: #7fbf7f; }
.ff-status.error { color: #d97a7a; }
.ff-status.sending { color: var(--grey); }

@media (max-width: 640px) {
  .feedback-form { padding: 28px 22px; }
  .ff-row { grid-template-columns: 1fr; }
}

/* ============ CONTACT TWO-COLUMN LAYOUT ============ */
.contact-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 2px solid var(--gold);
  padding: 14px 18px;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
@media (hover: hover) and (pointer: fine) { .contact-pill:hover {
  background: var(--bg-panel-2);
  border-left-color: var(--gold-bright);
  transform: translateX(2px);
} }
.contact-pill-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,163,94,0.12);
  border-radius: 2px;
  font-size: 16px;
  font-weight: 800;
  color: var(--gold-bright);
}
.contact-pill-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-pill-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--white);
}
.contact-pill-sub {
  font-size: 12px;
  color: var(--grey);
}
.contact-two-col .feedback-form {
  max-width: none;
  padding: 0;
  background: none;
  border: none;
}
.contact-two-col .two-col-item:first-child {
  padding-right: 40px;
}

/* ============ FOUNDER PAGE ============ */
.founder-hero {
  padding-top: 80px;
}
.founder-photo-wrap {
  width: 140px;
  height: 140px;
  margin: 0 auto 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  background: var(--bg-panel);
}
.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 44px;
}
.founder-proof-card {
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid var(--gold);
  padding: 32px 30px;
}
.founder-proof-amount {
  font-size: 36px;
  font-weight: 800;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 14px;
}
.founder-proof-amount span {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  margin-left: 4px;
}
.founder-proof-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}
.founder-proof-desc {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.6;
}
.founder-summary {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  font-style: italic;
  color: #c4d0d5;
}

.founder-structure-section .intent-text {
  max-width: 680px;
  margin: 0 auto 32px;
  text-align: center;
}
.founder-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

@media (max-width: 900px) {
  .founder-proof-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .founder-cta-actions { flex-direction: column; }
}

/* ============ FOUNDER PAGE — CONTACT ACTIONS ============ */
.founder-contact-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.founder-contact-actions .contact-pill {
  padding: 10px 18px;
}
.founder-contact-actions .contact-pill-icon {
  width: 30px;
  height: 30px;
  font-size: 14px;
}

/* ============ FOUNDER PAGE — BIO SECTION ============ */
.founder-bio-section {
  max-width: 760px;
  margin: 0 auto;
}
.founder-bio-lead {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--white);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.founder-bio-text {
  font-size: 15.5px;
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 18px;
}

/* ============ FOUNDER PAGE — RESUME GRID ============ */
.founder-resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 56px;
  text-align: left;
}
.founder-resume-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 28px 0 12px;
}
.founder-resume-col .founder-resume-heading:first-child {
  margin-top: 0;
}
.founder-job {
  margin-bottom: 24px;
}
.founder-job-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}
.founder-job-meta {
  font-size: 12.5px;
  color: var(--grey-dim);
  margin: 4px 0 10px;
}
.founder-job-list li {
  font-size: 13.5px;
  color: var(--grey);
  line-height: 1.55;
  padding: 6px 0;
  position: relative;
  padding-left: 16px;
}
.founder-job-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
}
.founder-resume-text {
  font-size: 13.5px;
  color: var(--grey);
  line-height: 1.65;
}
.founder-resume-list li {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.55;
  padding: 5px 0;
  position: relative;
  padding-left: 16px;
}
.founder-resume-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

@media (max-width: 900px) {
  .founder-resume-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 560px) {
  .founder-contact-actions { flex-direction: column; align-items: center; }
}


/* =====================================================================
   CLARITY OS v2 — Apple HIG layer (2026-10-26)
   Functional layer (header, menu, modals) = Liquid Glass.
   Content layer (cards, grids) = solid materials, hairlines, soft depth.
   ===================================================================== */
:root {
  color-scheme: dark;
  --grey-dim: #85857f;              /* was #5a6b77 (2.9:1) → 5.3:1 on void */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --r-xs: 8px; --r-sm: 12px; --r-md: 18px; --r-lg: 26px; --r-pill: 999px;
  --hairline: rgba(255,255,255,.08);
  --hairline-strong: rgba(255,255,255,.14);
  --gold-rim: rgba(201,163,94,.55);
  --rim: inset 0 1px 0 rgba(255,255,255,.05);
  --shadow-1: 0 1px 2px rgba(0,0,0,.35), 0 12px 28px -16px rgba(0,0,0,.7);
  --shadow-2: 0 2px 6px rgba(0,0,0,.4), 0 28px 56px -20px rgba(0,0,0,.8);
  --glass-bg: rgba(13,28,39,.58);
  --glass-bg-strong: rgba(12,25,35,.82);
  --glass-rim: inset 0 1px 0 rgba(255,255,255,.10), inset 0 0 0 1px rgba(255,255,255,.07);
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 60px;
  --header-top: 12px;
}

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--header-top) + 24px);
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }

body { text-rendering: optimizeLegibility; font-optical-sizing: auto; }
button, input, select, textarea { font-family: inherit; }
body.is-locked { overflow: hidden; }
::selection { background: rgba(201,163,94,.35); color: #fff; }

h1, h2, h3, .page-title, .hero-title, .section-head h2, .two-col-h2,
.tl-title, .uc-cta-title, .problem-conclusion, .brief-lead { text-wrap: balance; }
p, li { text-wrap: pretty; }

a, button, label, select, summary, [role="button"] { touch-action: manipulation; }
.btn, .nav-links a, .mobile-nav a, .nav-toggle, .logo, .tl-stop, .bt-option,
.loi-choice-btn, .loi-lang-btn, .loi-back-btn, .loi-modal-close, .office-card,
.contact-pill, .download-card, .contact-card, .mod-link {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: var(--r-xs); }
.btn:focus-visible, .bt-option:focus-visible { border-radius: var(--r-pill); }

.skip-link {
  position: fixed; left: 12px; top: -64px; z-index: 400;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--gold); color: #1a1208; font-weight: 700; font-size: 14px;
  transition: top .2s var(--ease-out);
}
.skip-link:focus-visible { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------- Header: floating Liquid Glass capsule ---------- */
.site-header {
  top: var(--header-top);
  width: min(calc(var(--maxw) + 48px), calc(100% - 24px));
  height: var(--header-h);
  margin: var(--header-top) auto 0;
  padding: 0 10px 0 24px;
  border: 0;
  border-radius: 20px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  box-shadow: var(--glass-rim), 0 10px 30px -14px rgba(0,0,0,.7);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  background: rgba(11,24,34,.72);
  box-shadow: var(--glass-rim), 0 18px 44px -16px rgba(0,0,0,.9);
}
.site-header .logo { font-size: 17px; letter-spacing: .08em; display: inline-block; padding: 9px 0; line-height: 26px; }
.mod-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; }

.nav-links { gap: 2px; }
.nav-links a {
  display: flex; align-items: center;
  min-height: 40px; padding: 0 14px;
  border-radius: var(--r-pill);
  letter-spacing: .02em;
  transition: color .2s ease, background-color .2s ease;
}
.nav-links a.active::after { content: none; }
.nav-links a.active { color: var(--gold-bright); background: rgba(201,163,94,.12); }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:not(.active):hover { background: rgba(255,255,255,.06); }
}
.nav-links a:active { background: rgba(255,255,255,.1); }

/* burger → close, 44pt target */
.nav-toggle {
  width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center; gap: 0;
  position: relative; border-radius: 14px;
  transition: background-color .2s ease, transform .16s var(--ease-out);
}
.nav-toggle:active { transform: scale(.92); background: rgba(255,255,255,.08); }
.nav-toggle span {
  position: absolute; left: 50%; top: 50%;
  width: 20px; height: 1.5px; margin: -0.75px 0 0 -10px;
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s ease;
}
.nav-toggle span:nth-child(1) { transform: translateY(-6px); }
.nav-toggle span:nth-child(3) { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

/* mobile menu: glass sheet that grows from the toggle */
.mobile-nav {
  display: flex;
  position: fixed;
  top: calc(var(--header-top) + var(--header-h) + 8px);
  left: 8px; right: 8px;
  z-index: 49;
  padding: 8px;
  gap: 2px;
  border: 0;
  border-radius: 22px;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  backdrop-filter: blur(30px) saturate(170%);
  box-shadow: var(--glass-rim), var(--shadow-2);
  transform-origin: top right;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px) scale(.97);
  transition: opacity .18s ease, transform .2s var(--ease-out), visibility 0s linear .2s;
}
.mobile-nav.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: none;
  transition: opacity .2s ease, transform .32s var(--ease-drawer), visibility 0s;
}
.mobile-nav a {
  display: flex; align-items: center;
  min-height: 50px; padding: 0 16px;
  border: 0; border-radius: 14px;
  font-size: 17px; font-weight: 600; letter-spacing: 0;
  color: var(--white);
  transition: background-color .15s ease;
}
.mobile-nav a.active { color: var(--gold-bright); background: rgba(201,163,94,.12); }
.mobile-nav a:active { background: rgba(255,255,255,.08); }
@media (min-width: 721px) { .mobile-nav { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  min-height: 46px;
  padding: 0 26px;
  gap: 8px;
  border-radius: var(--r-pill);
  letter-spacing: .01em;
  white-space: nowrap;
}
.btn-gold, .btn-gold-sm {
  background: linear-gradient(180deg, #d8b46f 0%, var(--gold) 100%);
  color: #1a1208;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 1px 2px rgba(0,0,0,.4), 0 10px 24px -10px rgba(201,163,94,.5);
}
.btn-ghost, .btn-ghost-sm {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.btn-gold-sm, .btn-ghost-sm { min-height: 40px; padding: 0 20px; border-radius: var(--r-pill); }
@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover, .btn-gold-sm:hover {
    background: linear-gradient(180deg, #e7c27f 0%, var(--gold-bright) 100%);
    transform: translateY(-1px);
  }
  .btn-ghost:hover, .btn-ghost-sm:hover { background: rgba(201,163,94,.08); }
}
.btn:active, .btn-gold-sm:active, .btn-ghost-sm:active { transform: scale(.97); transition-duration: .1s; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }

/* ---------- Content layer: cards ---------- */
.uc-card, .tl-detail-card, .global-card, .office-card, .ai-card, .sec-card,
.deploy-card, .sdk-card, .cube, .contact-card, .download-card, .scenario-card,
.budget-phase, .founder-proof-card, .feedback-form, .calc-controls {
  border: 1px solid var(--hairline);
  border-top-color: var(--gold-rim);
  border-radius: var(--r-md);
  background-image: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,0) 45%);
  box-shadow: var(--rim), var(--shadow-1);
}
.calc-controls { border-top-color: var(--hairline); }
.cube-server, .scenario-card-mid, .flow-card-pivot, .flow-card-outcome, .sec-card-feature,
.budget-phase-total, .office-card.expanded, .ai-card { border-top-color: var(--gold-bright); }
.ai-card { border-left-color: var(--hairline); }
.tl-detail-card { border-left-color: var(--hairline); animation: cardIn .32s var(--ease-out); }

/* hairline-gap grids → rounded tiles */
.stat-grid, .mod-grid, .market-grid, .category-grid, .mod-row {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.mod-card-zz { border-top-width: 1px; border-top-color: var(--gold-rim); }
.mod-detail { border-top-width: 1px; }
.mod-process span:not(.mp-arrow), .scenario-tag { border-radius: var(--r-pill); }

.contact-pill {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  min-height: 64px;
  box-shadow: var(--rim);
}
.contact-pill-icon { border-radius: 11px; }
.founder-contact-actions .contact-pill { min-height: 52px; }

/* press feedback on every pressable card */
.contact-pill, .contact-card, .download-card, .office-card, .loi-choice-btn, .loi-lang-btn {
  transition: background-color .25s ease, border-color .25s ease, transform .2s var(--ease-out), box-shadow .25s ease;
}
.contact-pill:active, .contact-card:active, .download-card:active, .office-card:active,
.loi-choice-btn:active, .loi-lang-btn:active { transform: scale(.98); transition-duration: .1s; }

/* ---------- Typography ---------- */
.brand-mega { letter-spacing: -.01em; }
.hero-title { letter-spacing: -.03em; line-height: 1.04; }
.page-title { letter-spacing: -.025em; line-height: 1.08; }
.section-head h2 { letter-spacing: -.02em; line-height: 1.15; }
.two-col-h2 { letter-spacing: -.015em; }
.stat-num, .market-num, .cube-total, .budget-phase-amount, .founder-proof-amount,
.scenario-list strong, .category-size, .category-cagr { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
/* HIG minimum legible size (11pt) — nothing below 12px on the web */
.tl-stop-label em, .bt-save, .stat-src, .category-sources, .footer-legal p { font-size: 12px; }
.tl-stop-label { letter-spacing: .01em; }

/* ---------- Motion ---------- */
.reveal {
  transform: translateY(16px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.tl-line-fill {
  width: 100%;
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1.2s var(--ease-in-out);
}
.tl-line-track.animated .tl-line-fill { transform: scaleX(1); }
.tl-stop-dot { transition: background-color .25s ease, box-shadow .25s ease, transform .25s var(--ease-out); }
.tl-stop:active .tl-stop-dot { transform: scale(.9); }

/* ---------- Segmented control (billing) ---------- */
.billing-toggle {
  gap: 2px; padding: 3px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.04);
}
.bt-option {
  min-height: 40px; padding: 4px 18px;
  border-radius: var(--r-pill);
  background: transparent;
  line-height: 1.15;
}
.bt-option.active {
  background: linear-gradient(180deg, #d8b46f, var(--gold));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 3px rgba(0,0,0,.4);
}
.bt-option:not(.active):active { background: rgba(255,255,255,.06); }

/* ---------- Forms ---------- */
.ff-field input[type="text"], .ff-field input[type="email"], .ff-field select, .ff-field textarea,
.ff-field input[type="file"],
.loi-form-field input[type="text"], .loi-form-field input[type="email"], .loi-form-field input[type="tel"],
.loi-form-field input[type="number"], .loi-form-field select, .calc-field select {
  min-height: 46px;
  border-radius: var(--r-sm);
  background-color: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.14);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.ff-field textarea { min-height: 120px; padding-top: 12px; }
.contact-two-col .feedback-form { border: 0; box-shadow: none; background-image: none; border-radius: 0; }
.calc-field select, .ff-field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23c9a35e' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.ff-field input:focus, .ff-field select:focus, .ff-field textarea:focus,
.loi-form-field input:focus, .loi-form-field select:focus, .calc-field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,163,94,.18);
  background-color: rgba(255,255,255,.05);
}
.ff-field input::placeholder, .ff-field textarea::placeholder, .loi-form-field input::placeholder { color: var(--grey-dim); }
.loi-checkbox-item { border-radius: var(--r-sm); min-height: 46px; align-items: center; padding: 11px 14px; }
.loi-checkbox-item input[type="checkbox"] { width: 20px; height: 20px; margin: 0; border-radius: 6px; }
.loi-checkbox-item input[type="checkbox"]:checked::after { left: 6px; top: 2px; }
.loi-choice-btn, .loi-lang-btn { border-radius: var(--r-sm); min-height: 48px; }
.loi-back-btn { min-height: 44px; margin-bottom: 8px; }
@media (max-width: 720px), (pointer: coarse) {
  input, select, textarea { font-size: 16px !important; }  /* stops iOS zoom-on-focus */
}

/* ---------- Modals: glass panel; bottom sheet on phones ---------- */
.loi-modal-overlay {
  background: rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  overscroll-behavior: contain;
  animation: scrimIn .2s ease;
}
@keyframes scrimIn { from { opacity: 0; } to { opacity: 1; } }
.loi-modal {
  border: 1px solid var(--hairline-strong);
  border-top-color: var(--gold-rim);
  border-radius: var(--r-lg);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  box-shadow: var(--glass-rim), 0 40px 90px -24px rgba(0,0,0,.9);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: loiModalIn .26s var(--ease-out);
}
@keyframes loiModalIn {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.loi-modal-close {
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  font-size: 22px;
  transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out);
}
.loi-modal-close::before { content: ""; position: absolute; inset: -4px; }   /* 44pt hit area */
.loi-modal-close:active { transform: scale(.9); }
@media (hover: hover) and (pointer: fine) { .loi-modal-close:hover { background: rgba(255,255,255,.12); } }
.loi-modal-form { max-height: none; overflow: visible; padding-right: 0; }
.loi-form-field, .ff-field { min-width: 0; }
.loi-form-field select, .loi-form-field input, .ff-field select, .ff-field input, .ff-field textarea { width: 100%; max-width: 100%; min-width: 0; text-overflow: ellipsis; }
.loi-modal-heading { line-height: 1.2; letter-spacing: -.01em; }
.loi-form-actions {
  background: linear-gradient(180deg, rgba(12,25,35,0), rgba(12,25,35,.96) 30%);
  padding: 16px 0 4px; margin-top: 4px;
}

@media (max-width: 560px) {
  .loi-modal-overlay { align-items: flex-end; padding: 0; }
  .loi-modal, .loi-modal.loi-modal-wide {
    max-width: none;
    border-radius: 26px 26px 0 0;
    border-bottom: 0;
    padding: 34px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 16px);
    animation: sheetIn .42s var(--ease-drawer);
  }
  .loi-modal::before {   /* grabber */
    content: ""; position: absolute; top: 8px; left: 50%;
    width: 36px; height: 5px; margin-left: -18px;
    border-radius: 3px; background: rgba(255,255,255,.22);
  }
  .loi-modal-heading { font-size: 22px; padding-right: 36px; }
  .loi-form-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .loi-form-actions .btn { width: 100%; }
  .ff-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .ff-actions .btn { width: 100%; }
}
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Footer ---------- */
.site-footer { padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Layout fixes ---------- */
@media (max-width: 900px) {
  .contact-two-col .two-col-item:first-child { padding-right: 0; }
}

/* =====================================================================
   MOBILE (≤720px) — rebuilt
   ===================================================================== */
@media (max-width: 720px) {
  :root { --header-h: 54px; --header-top: 8px; }

  .site-header {
    top: calc(env(safe-area-inset-top, 0px) + var(--header-top));
    margin-top: calc(env(safe-area-inset-top, 0px) + var(--header-top));
    width: calc(100% - 16px);
    padding: 0 5px 0 18px;
    border-radius: 18px;
  }
  .mobile-nav { top: calc(env(safe-area-inset-top, 0px) + var(--header-top) + var(--header-h) + 8px); }

  section { padding: 64px 20px; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: 28px; }

  .hero {
    min-height: calc(100svh - 70px - env(safe-area-inset-top, 0px));
    padding: 56px 20px 96px;
  }
  .brand-mega { font-size: clamp(48px, 15vw, 72px); }
  .hero-title { font-size: clamp(36px, 10.5vw, 48px); }
  .hero-sub { font-size: 17px; margin-top: 22px; }
  .hero-actions, .founder-cta-actions, .invest-cta-actions {
    flex-direction: column; align-items: stretch;
    width: 100%; max-width: 360px; margin-left: auto; margin-right: auto;
  }
  .hero-actions .btn, .founder-cta-actions .btn, .invest-cta-actions .btn { width: 100%; }
  .hero-diamond-field .d1, .hero-diamond-field .d3 { opacity: .5; }

  .page-hero { padding: 64px 20px 48px; }
  .page-title { font-size: clamp(32px, 9vw, 42px); }
  .page-sub { font-size: 17px; }

  .brief-lead { font-size: 20px; }
  .diamond-divider { margin-bottom: 40px; }

  /* readable body copy on phones (iOS default 17pt) */
  .brief-content p:not(.brief-lead), .intent-text, .global-pledge-text, .founder-bio-text,
  .mod-detail-text, .office-more-text, .ai-intro, .sec-intro, .integrates-example { font-size: 16px; }
  .uc-quote, .global-desc, .eco-desc, .mod-desc, .ai-desc, .sec-desc, .deploy-desc, .sdk-desc,
  .contact-desc, .download-desc, .office-desc, .mod-card-desc, .stat-label, .tl-desc,
  .founder-proof-desc, .included-detail, .tl-list li, .deploy-list li, .cube-list li,
  .founder-job-list li, .founder-resume-list li, .founder-resume-text, .budget-phase-desc { font-size: 15px; }
  .stat-why, .market-note, .uc-attribution, .contact-pill-sub, .loi-modal-sub { font-size: 14px; }

  .uc-card { width: 300px; padding: 26px 22px; }
  .uc-cta { margin-top: 32px; }

  .stat-card, .market-stat { padding: 26px 22px; }
  .tl-detail-card, .global-card, .ai-card, .sec-card, .deploy-card, .sdk-card, .cube,
  .scenario-card, .budget-phase, .founder-proof-card, .download-card, .contact-card,
  .mod-card-zz, .mod-detail, .office-card, .mod-card { padding: 26px 22px; }
  .cube-total { font-size: 40px; }
  .calc-controls { padding: 20px; gap: 18px; }
  .billing-toggle { width: 100%; }
  .bt-option { flex: 1; }

  /* timeline: vertical list on phones (no colliding labels) */
  .tl-line-wrap { padding: 0 0 28px; }
  .tl-line-track {
    height: auto; width: 2px; margin-left: 10px;
    display: flex; flex-direction: column;
  }
  .tl-line-fill { width: 2px; height: 100%; transform: scaleY(0); transform-origin: center top; }
  .tl-line-track.animated .tl-line-fill { transform: scaleY(1); }
  .tl-stop {
    position: relative; left: 0 !important; transform: none;
    flex-direction: row; align-items: center; gap: 16px;
    width: calc(100vw - 72px); min-height: 56px;
    padding: 0; margin-left: -5.5px;
  }
  .tl-stop-label {
    position: static; width: auto; white-space: nowrap;
    text-align: left; font-size: 16px; line-height: 1.3;
  }
  .tl-stop-label br { display: none; }
  .tl-stop-label em { display: inline; margin-left: 8px; font-size: 14px; }

  .two-col-grid { gap: 28px; }
  .footer-top { gap: 20px; margin-bottom: 28px; }
  .footer-ctas { width: 100%; flex-direction: column; }
  .footer-ctas .btn { width: 100%; min-height: 46px; }
  .site-footer { padding-left: 20px; padding-right: 20px; }
  .founder-contact-actions { align-items: stretch; }
  .founder-contact-actions .contact-pill { width: 100%; max-width: 360px; margin: 0 auto; }
}

@media (pointer: coarse) {
  .btn-gold-sm, .btn-ghost-sm { min-height: 44px; }
  .uc-marquee-wrap:active .uc-marquee-track { animation-play-state: paused; }
}

/* =====================================================================
   Accessibility preferences
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  .tl-line-fill { transition: none; }
  .tl-detail-card, .loi-modal, .loi-modal-overlay { animation: none; }
  .mobile-nav, .mobile-nav.open { transform: none; transition: opacity .15s ease, visibility 0s; }
  .btn:active, .contact-pill:active, .contact-card:active, .download-card:active,
  .office-card:active, .loi-choice-btn:active, .loi-lang-btn:active, .nav-toggle:active { transform: none; }
  /* marquee becomes a swipeable rail instead of disappearing motion */
  .uc-marquee-wrap {
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-mask-image: none; mask-image: none;
    padding: 0 20px 8px; scrollbar-width: none;
  }
  .uc-marquee-track { animation: none; }
  .uc-card[aria-hidden="true"] { display: none; }
  .uc-card { scroll-snap-align: center; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header, .mobile-nav, .loi-modal, .loi-modal-overlay {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .site-header, .mobile-nav, .loi-modal { background: #0e1d29; }
  .loi-modal-overlay { background: rgba(0,0,0,.8); }
}
@media (prefers-contrast: more) {
  :root { --hairline: rgba(255,255,255,.28); --hairline-strong: rgba(255,255,255,.4); --grey: #b4b4ae; --grey-dim: #a2a29c; }
  .site-header, .mobile-nav, .loi-modal { box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
}

/* =====================================================================
   FLOW GRAPH — "One event" node map (about.html)
   Nodes = buttons; wires are drawn by script.js from live node positions.
   ===================================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.flow-graph { position: relative; max-width: 1000px; margin: 0 auto; }
.flow-wires {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none; z-index: 0;
}
.flow-level { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.flow-level + .flow-level { margin-top: 96px; }
.flow-level-chain { gap: 44px; }
.flow-level-label {
  align-self: flex-start;
  margin: 0 0 -20px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--grey);
}
.flow-level-chain .flow-level-label { margin-bottom: -24px; }
.flow-fan-row { display: flex; align-items: flex-start; gap: 18px; width: 100%; margin-top: 40px; }
.flow-level-outcome .fnode { margin-top: 40px; }

/* wires */
.flow-wires .wire {
  fill: none; stroke: rgba(201,163,94,.32); stroke-width: 1.5;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset 1s var(--ease-in-out), stroke .3s ease, stroke-width .3s ease;
}
.flow-graph.wired .wire { stroke-dashoffset: 0; }
.flow-wires .wire.is-hot { stroke: rgba(224,187,115,.9); stroke-width: 2; }
.flow-wires .pulse {
  fill: none; stroke: var(--gold-bright); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 3 97; stroke-dashoffset: 100; opacity: 0;
}
.flow-graph.wired .pulse { opacity: .9; animation: wirePulse 2.6s linear infinite; }
@keyframes wirePulse { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.flow-wires .wire-dot { fill: var(--gold); opacity: 0; transition: opacity .4s ease .8s; }
.flow-graph.wired .wire-dot { opacity: .85; }

/* node */
.fnode {
  position: relative;
  display: block;
  width: min(100%, 340px);
  padding: 14px 16px 14px 14px;
  text-align: left; color: var(--white); cursor: pointer;
  background-color: var(--bg-panel);
  background-image: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 50%);
  border: 1px solid var(--hairline);
  border-top-color: var(--gold-rim);
  border-radius: 18px;
  box-shadow: var(--rim), var(--shadow-1);
  transition:
    width .55s var(--ease-out), flex-grow .55s var(--ease-out),
    background-color .3s ease, border-color .3s ease, box-shadow .4s ease,
    transform .16s var(--ease-out);
  -webkit-user-select: none; user-select: none;
}
.fnode-head { display: flex; align-items: center; gap: 14px; min-height: 32px; }
.fnode-num {
  flex: none; width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  transform: scale(.92);
  transition: background-color .3s ease, border-color .3s ease, transform .5s cubic-bezier(.34,1.56,.64,1);
}
.fnode-num span {
  transform: none;
  font-size: 13px; font-weight: 800; color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  transition: color .3s ease;
}
.fnode-pivot .fnode-num { background: var(--gold); border-color: var(--gold); }
.fnode-pivot .fnode-num span { color: #1a1208; }
.fnode-title { flex: 1; font-size: 16px; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.fnode-toggle {
  flex: none; position: relative; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  transition: background-color .3s ease, transform .45s var(--ease-out);
}
.fnode-toggle::before, .fnode-toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; border-radius: 2px;
  background: var(--grey);
  transition: background-color .3s ease;
}
.fnode-toggle::after { transform: rotate(90deg); }

/* expand: grid-rows 0fr → 1fr = smooth height, no measuring */
.fnode-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.fnode-inner { overflow: hidden; min-height: 0; }
.fnode-meta, .fnode-desc {
  display: block;
  opacity: 0; transform: translateY(-6px); filter: blur(3px);
  transition: opacity .25s ease, transform .35s var(--ease-out), filter .25s ease;
}
.fnode-meta {
  margin: 14px 0 6px 44px; padding-top: 12px;
  border-top: 1px solid rgba(201,163,94,.2);
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold);
}
.fnode-desc { margin-left: 44px; font-size: 15px; line-height: 1.6; color: #c4d0d5; text-wrap: pretty; }

.fnode[aria-expanded="true"] {
  width: min(100%, 540px);
  background-color: var(--bg-panel-2);
  border-color: rgba(201,163,94,.38);
  border-top-color: var(--gold-bright);
  box-shadow: var(--rim), 0 0 0 4px rgba(201,163,94,.07),
              0 28px 60px -24px rgba(0,0,0,.95), 0 0 48px -14px rgba(201,163,94,.4);
  z-index: 2;
}
.fnode[aria-expanded="true"] .fnode-body { grid-template-rows: 1fr; }
.fnode[aria-expanded="true"] .fnode-meta,
.fnode[aria-expanded="true"] .fnode-desc { opacity: 1; transform: none; filter: none; }
.fnode[aria-expanded="true"] .fnode-meta { transition-delay: .08s; }
.fnode[aria-expanded="true"] .fnode-desc { transition-delay: .14s; }
.fnode[aria-expanded="true"] .fnode-num { transform: scale(1.04); background: var(--gold); border-color: var(--gold-bright); }
.fnode[aria-expanded="true"] .fnode-num span { transform: none; color: #1a1208; }
.fnode[aria-expanded="true"] .fnode-toggle { transform: rotate(135deg); background: rgba(201,163,94,.18); }
.fnode[aria-expanded="true"] .fnode-toggle::before,
.fnode[aria-expanded="true"] .fnode-toggle::after { background: var(--gold-bright); }
.fnode.is-pop { animation: fnodePop .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes fnodePop { 0% { transform: scale(.97); } 55% { transform: scale(1.025); } 100% { transform: scale(1); } }

.fnode:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .fnode:hover { background-color: var(--bg-panel-2); border-color: rgba(201,163,94,.28); }
  .fnode:hover .fnode-toggle { background: rgba(201,163,94,.14); }
  .fnode:hover .fnode-toggle::before, .fnode:hover .fnode-toggle::after { background: var(--gold-bright); }
}
.fnode:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; border-radius: 18px; }

/* the fan row: the opened card widens, siblings give way */
.flow-fan-row .fnode { width: auto; flex: 1 1 0; min-width: 0; }
.flow-fan-row .fnode[aria-expanded="true"] { width: auto; flex-grow: 2.1; }
.flow-fan-row .fnode-title { font-size: 15px; }
.flow-level-outcome .fnode { width: min(100%, 400px); }
.flow-level-outcome .fnode[aria-expanded="true"] { width: min(100%, 600px); }

@media (max-width: 900px) and (min-width: 721px) {
  .flow-fan-row { gap: 12px; }
  .flow-fan-row .fnode { padding: 12px; }
  .flow-fan-row .fnode-head { gap: 10px; }
  .flow-fan-row .fnode-meta, .flow-fan-row .fnode-desc { margin-left: 0; }
}

/* phone: single column, fan hangs off a side rail (drawn by script) */
@media (max-width: 720px) {
  .flow-level + .flow-level { margin-top: 64px; }
  .flow-level-chain { gap: 36px; }
  .flow-level-label { margin-bottom: -16px; }
  .flow-fan-row { flex-direction: column; gap: 14px; margin-top: 32px; padding-left: 30px; }
  .flow-fan-row .fnode, .flow-fan-row .fnode[aria-expanded="true"] { flex: none; width: 100%; }
  .fnode, .fnode[aria-expanded="true"],
  .flow-level-outcome .fnode, .flow-level-outcome .fnode[aria-expanded="true"] { width: 100%; }
  .flow-level-outcome .fnode { margin-top: 48px; }
  .flow-level-fan .flow-level-label, .flow-level-outcome .flow-level-label { padding-left: 30px; }
  .fnode { padding: 13px 14px 13px 12px; }
  .fnode-title, .flow-fan-row .fnode-title { font-size: 16px; }
  .fnode-meta, .fnode-desc { margin-left: 0; }
  .fnode-desc { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-wires .wire { transition: none; stroke-dashoffset: 0; }
  .flow-graph.wired .pulse { animation: none; opacity: 0; }
  .fnode.is-pop { animation: none; }
  .fnode, .fnode-body, .fnode-num, .fnode-toggle { transition-duration: .01ms; }
  .fnode-meta, .fnode-desc { filter: none; transform: none; transition: opacity .2s ease; }
}

/* ============ KOSATCA BRAND (2026-10-28) — mark + the same wordmark type as before ============ */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 32px; height: auto; flex: none; color: var(--white); }
.brand-lockup { display: flex; flex-direction: column; align-items: center; }
.brand-mark { width: clamp(76px, 9vw, 124px); height: auto; color: var(--white); margin-bottom: clamp(10px, 1.6vw, 18px); }
.welcome-brand .brand-mark { width: clamp(64px, 8vw, 104px); }
.brand-mark { width: clamp(152px, 18vw, 248px); margin-bottom: clamp(14px, 2vw, 24px); }
.welcome-brand .brand-mark { width: clamp(128px, 16vw, 208px); }
/* the three rising bubbles between T and C, from the KOSATCA logo */
.wm-bubbles { display: inline-block; width: .3em; height: .53em; margin: 0 .02em 0 .04em; vertical-align: baseline; color: var(--white); overflow: visible; }
.brand-mega .wm-bubbles { width: .34em; height: .6em; color: var(--white); }
.logo .wm-bubbles { width: .42em; height: .72em; margin: 0 .06em 0 .02em; }
.brand-tagline {
  margin-top: clamp(10px, 1.4vw, 16px);
  font-size: clamp(12px, 1.5vw, 18px); font-weight: 600; line-height: 1;
  letter-spacing: .42em; margin-right: -.42em; text-transform: uppercase; color: var(--white);
}
.welcome-brand .brand-tagline { margin-bottom: 18px; }
.hero .brand-lockup { margin-bottom: clamp(22px, 3vw, 36px); }
/* header/footer lockup: the tail is exactly cap-height and sits on the text baseline */
.logo { align-items: baseline; gap: .55em; }
.logo .logo-mark { width: auto; height: .653em; align-self: baseline; }
/* footer: the full KOSATCA wordmark (no tail) + tagline, at the original footer-logo size */
.footer-lockup { display: inline-flex; flex-direction: column; align-items: center; }
.footer-lockup .logo { display: block; }
.footer-lockup .brand-tagline { font-size: 9px; letter-spacing: .38em; margin-right: -.38em; margin-top: 7px; color: var(--grey); }
/* footer: wordmark left-aligned, language switch beside it, tighter rules */
.site-footer { padding-top: 32px; }
.footer-top { margin-bottom: 20px; }
.footer-brand { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-lockup { align-items: flex-start; }
.footer-lockup .brand-tagline { margin-right: 0; }
.footer-brand .footer-lang-row { margin: 0; padding: 0; border: 0; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 16px; }
.invest-cta-section .intent-text { max-width: 680px; }

@media (prefers-reduced-motion: reduce) {
  .hero-diamond-field .d { animation: none; }
}

/* ---- rising bubbles (generated by script.js / welcome.js) ---- */
.rb {
  position: absolute;
  bottom: -24px;
  border-radius: 50%;
  border: 1px solid rgba(160,212,222,.38);
  background: radial-gradient(circle at 32% 28%, rgba(225,244,248,.28), rgba(225,244,248,0) 45%);
  opacity: 0;
  will-change: transform, opacity;
  animation: bubbleRise var(--dur, 12s) linear var(--delay, 0s) infinite;
}
.rb.rb-gold { border-color: rgba(201,163,94,.45); background: none; }
@keyframes bubbleRise {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  8%   { opacity: var(--o, .7); }
  30%  { transform: translate3d(var(--sway, 8px), calc(var(--rise) * -.3), 0); }
  55%  { transform: translate3d(calc(var(--sway, 8px) * -1), calc(var(--rise) * -.55), 0); }
  80%  { transform: translate3d(var(--sway, 8px), calc(var(--rise) * -.8), 0); opacity: var(--o, .7); }
  100% { transform: translate3d(0, calc(var(--rise) * -1), 0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rb { display: none; }
}

/* ============ ACROSTIC (home) ============ */
.acro { padding-top: 40px; }
.acro-list {
  list-style: none;
  width: fit-content;
  margin: 0 auto;
  padding-right: clamp(0px, 22vw, 320px); /* room for the popovers on the right */
}
.acro-row {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: .16em;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.04;
}
.acro-letter {
  width: .9em;
  text-align: center;
  font-weight: 900;
  background: linear-gradient(180deg, var(--white) 0%, var(--white) 55%, var(--gold) 150%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.acro-row.is-os .acro-letter {
  background: none;
  color: var(--gold-bright);
}
.acro-word {
  appearance: none;
  background: none;
  border: 0;
  padding: 4px 0;
  margin: 0;
  cursor: default;
  font: inherit;
  font-size: .36em;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--grey);
  text-align: left;
  touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color .3s ease, text-shadow .4s ease, transform .3s var(--ease-out);
}
.acro-pop {
  position: absolute;
  left: calc(100% + 28px);
  top: 50%;
  width: min(300px, 26vw);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
  color: #c4d0d5;
  background: rgba(10,22,32,.94);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: var(--glass-rim), var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-6px, -50%) scale(.97);
  transform-origin: left center;
  transition: opacity .18s ease-out, transform .22s var(--ease-out), visibility 0s linear .22s;
  z-index: 5;
}
/* row hugs its word, so the popover sits right after it */
.acro-row.has-word { width: max-content; }

.acro-row.is-open .acro-word,
.acro-word:focus-visible {
  color: var(--white);
  text-shadow: 0 0 14px rgba(224,187,115,.6), 0 0 36px rgba(224,187,115,.25), 0 0 60px rgba(95,159,174,.35);
  transform: translateY(-3px);
}
.acro-row.is-open .acro-pop,
.acro-word:focus-visible + .acro-pop {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%) scale(1);
  transition: opacity .18s ease-out, transform .22s var(--ease-out), visibility 0s;
}
@media (hover: hover) and (pointer: fine) {
  .acro-row.has-word:hover .acro-word {
    color: var(--white);
    text-shadow: 0 0 14px rgba(224,187,115,.6), 0 0 36px rgba(224,187,115,.25), 0 0 60px rgba(95,159,174,.35);
    transform: translateY(-3px);
  }
  .acro-row.has-word:hover .acro-pop {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%) scale(1);
    transition: opacity .18s ease-out, transform .22s var(--ease-out), visibility 0s;
  }
}
.acro-word:focus-visible { outline: none; }
.acro-hint {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  color: var(--grey-dim);
  letter-spacing: .04em;
}
@media (max-width: 760px) {
  /* phones: the explanation opens inline under its word instead of floating */
  .acro-list { padding-right: 0; margin: 0; width: 100%; }
  .acro-row { font-size: clamp(40px, 13vw, 56px); flex-wrap: wrap; }
  .acro-row.has-word { width: 100%; }
  .acro-row.has-word .acro-pop {
    position: static;
    display: none;
    flex-basis: 100%;
    width: auto;
    margin: 6px 0 10px;
    transform: none;
    opacity: 1;
    visibility: visible;
    animation: acroPopIn .22s var(--ease-out);
  }
  .acro-row.is-open .acro-pop { display: block; }
  .acro-word:focus-visible + .acro-pop { display: block; transform: none; }
}
@keyframes acroPopIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .acro-word, .acro-pop { transition: opacity .15s ease, color .15s ease; }
  .acro-row.is-open .acro-word, .acro-word:focus-visible { transform: none; }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  .acro-row.has-word:hover .acro-word { transform: none; }
}

/* ============ WHAT KOSAT.CA STANDS FOR (about) ============ */
.stands-grid {
  max-width: 860px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.07);
}
.stands-row {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.stands-letters {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1;
  white-space: nowrap;
  color: var(--white);
}
.stands-letters span { color: var(--gold-bright); }
.stands-phrase {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--white);
}
.stands-phrase b { color: var(--gold-bright); font-weight: 800; }
.stands-sub {
  margin-top: 8px;
  font-size: 16px;
  color: var(--grey);
}
@media (max-width: 760px) {
  .stands-row { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
}
