:root {
  --dark: #0C1524;
  --dark-mid: #142032;
  --dark-light: #1E2E44;
  --cream: #F5F1E8;
  --cream-dark: #E4DDD0;
  --warm-white: #FAF8F4;
  --charcoal: #1A1A1A;
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-light: #6A6A6A;
  --text-on-dark: #F2EFE8;
  --text-on-dark-muted: #C4C0B8;
  --accent: #2E5A3A;
  --accent-light: #3A7D4E;
  --rule: #D4CFC6;
  --rule-dark: #2A3344;
  --teal: #1A8A7A;
  --green-strong: #2D9A5A;
  --green-safe: #4AAA6A;
  --monitor: #888888;
  --bronze: #A67B5B;
  --red-t2: #944545;
  --red-t3: #722222;
  --conf-vh: #1A3A5C;
  --conf-h: #2D5A7A;
  --conf-m: #4A7A9A;
  --conf-l: #8AABBB;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 48px; }

.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 32px;
}
.label.on-dark { color: var(--text-on-dark-muted); }

h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 24px;
}

.anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.anim.vis {
  opacity: 1;
  transform: translateY(0);
}

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
}
nav.scrolled {
  background: rgba(12, 21, 36, 0.97);
  backdrop-filter: blur(20px);
  padding: 16px 48px;
  border-bottom: 1px solid var(--rule-dark);
}

.nav-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 1.5px;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  text-decoration: none;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent-light);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--cream); }
.nav-links a.active::after { width: 100%; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  width: 22px;
  height: 1.5px;
  background: var(--cream);
  transition: all 0.3s ease;
  display: block;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(12, 21, 36, 0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.3s ease;
}
.mobile-menu a:hover { color: var(--accent-light); }

/* ============ HERO ============ */
.hero {
  background: var(--dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -25%;
  width: 900px; height: 900px;
  background: radial-gradient(ellipse, rgba(46, 90, 58, 0.035) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule-dark), transparent);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 160px 48px 120px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 80px;
}
.hero-content {
  flex: 1;
  min-width: 0;
}
.hero-proof {
  flex: 0 0 320px;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.9s;
  opacity: 0;
}
.hero-proof .card {
  opacity: 1;
  transform: none;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.08;
  margin-bottom: 32px;
  max-width: 700px;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.hero-provocation {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-on-dark);
  line-height: 1.5;
  max-width: 500px;
  margin-bottom: 32px;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.42s;
  opacity: 0;
}

.hero-line {
  width: 60px; height: 1px;
  background: var(--accent);
  margin-bottom: 32px;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.55s;
  opacity: 0;
}

.hero-statement {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-on-dark-muted);
  line-height: 1.85;
  max-width: 520px;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.65s;
  opacity: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 48px; left: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeUp 1s ease forwards;
  animation-delay: 1.2s;
  opacity: 0;
}
.hero-scroll span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}
.scroll-line {
  width: 1px; height: 32px;
  background: var(--rule-dark);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 1px; height: 100%;
  background: var(--accent-light);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0% { top: -100%; }
  100% { top: 100%; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ TRACTION ============ */
.traction {
  padding: 0;
  background: var(--dark);
  border-top: 1px solid var(--rule-dark);
}

.traction-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.traction-item {
  padding: 48px 32px;
  border-right: 1px solid var(--rule-dark);
  text-align: center;
}
.traction-item:last-child { border-right: none; }

.traction-figure {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 500;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 10px;
}
.traction-figure.text {
  font-size: 28px;
}

.traction-desc {
  font-size: 12px;
  color: var(--text-on-dark-muted);
  line-height: 1.5;
  letter-spacing: 0.3px;
}

/* ============ ETYMOLOGY ============ */
.etymology {
  padding: 56px 0;
  background: var(--cream);
}

.etymology-inner { max-width: 680px; margin: 0 auto; }

.etymology-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}
.etymology-word {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
}
.etymology-class {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.etymology-body {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.etymology-oe {
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}
.etymology-oe em {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}
.etymology-oe span {
  font-size: 12px;
  color: var(--text-light);
}

/* ============ POSITION ============ */
.position {
  padding: 140px 0;
  background: var(--warm-white);
}

.position-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.position-text p:not(.label) {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.evidence {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 8px;
}

.evidence-item {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}
.evidence-item:last-child { border-bottom: none; }

.evidence-figure {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 14px;
}

.evidence-source {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.evidence-cite {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ============ INVERSION ============ */
.inversion {
  padding: 120px 0;
  background: var(--dark);
}

.inversion-inner { max-width: none; }

.inversion h2 { color: var(--cream); margin-bottom: 48px; }

.compare-block {
  margin-bottom: 64px;
  padding: 0;
}

.compare-row {
  display: flex;
  align-items: center;
  gap: 28px;
}
.compare-row + .compare-row {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.compare-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  width: 130px;
  flex-shrink: 0;
  line-height: 1.4;
}
.compare-tag.old { color: var(--text-on-dark-muted); opacity: 0.7; }
.compare-tag.new { color: var(--accent-light); }
.compare-tag .compare-tag-sub {
  display: block;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-top: 4px;
  opacity: 0.6;
}

.compare-chain {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.compare-node {
  font-size: 14px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 2px;
  text-align: center;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex: 1;
}
.compare-node.old-start {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  font-weight: 600;
}
.compare-node.old {
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
}
.compare-node.dead {
  color: rgba(255,255,255,0.45);
  background: none;
  border: 1px dashed rgba(255,255,255,0.18);
  font-style: italic;
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.3);
}
.compare-node.new {
  color: var(--cream);
  background: rgba(46, 90, 58, 0.25);
  border: 1px solid rgba(58, 125, 78, 0.4);
}
.compare-node.result {
  color: #fff;
  background: var(--accent);
  border: 1px solid rgba(58, 125, 78, 0.7);
  font-weight: 600;
}

.compare-arrow {
  color: rgba(255,255,255,0.35);
  font-size: 18px;
  padding: 0 12px;
  flex-shrink: 0;
}
.compare-arrow.green {
  color: var(--accent-light);
  opacity: 0.8;
}

.inversion-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-on-dark);
  line-height: 1.6;
  padding-left: 24px;
  border-left: 2px solid var(--accent);
  margin-bottom: 48px;
}

.inversion-body {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-on-dark-muted);
  max-width: 580px;
}

/* ============ APPROACH ============ */
.approach {
  padding: 140px 0;
  background: var(--warm-white);
}

.approach-intro {
  max-width: 560px;
  margin-bottom: 96px;
}
.approach-intro p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 56px;
}
.approach-grid.grid-2x2 {
  grid-template-columns: repeat(2, 1fr);
}

.approach-card {
  padding: 48px 36px;
  background: var(--cream);
  position: relative;
}
.approach-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--rule);
  transition: background 0.3s ease;
}
.approach-card:hover::before { background: var(--accent); }

.approach-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.approach-card .card-role {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.approach-card p:not(.card-role) {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.approach-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  padding-left: 24px;
  border-left: 2px solid var(--accent);
  max-width: 600px;
}
.architecture .approach-note,
.inversion .approach-note {
  color: var(--text-on-dark-muted);
  border-left-color: var(--accent-light);
}

/* ============ ARCHITECTURE ============ */
.architecture {
  padding: 120px 0;
  background: var(--dark);
}

.architecture h2 { color: var(--cream); margin-bottom: 20px; }

.architecture-sub {
  font-size: 15px;
  color: var(--text-on-dark-muted);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 72px;
}

.arch-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-bottom: 0;
}

.arch-division {
  padding: 52px 44px;
}
.arch-division.agency {
  background: rgba(255,255,255,0.03);
}
.arch-division.infrastructure {
  background: var(--dark-mid);
}

.arch-div-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: 20px;
}

.arch-division h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 16px;
}

.arch-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-on-dark-muted);
  margin-bottom: 40px;
}

.arch-items {
  display: table;
  width: 100%;
  border-collapse: collapse;
}

.arch-item {
  display: table-row;
}

.arch-item-name,
.arch-item-desc {
  display: table-cell;
  padding: 14px 0;
  vertical-align: baseline;
  border-bottom: 1px solid var(--rule-dark);
}
.arch-item:last-child .arch-item-name,
.arch-item:last-child .arch-item-desc {
  border-bottom: none;
}

.arch-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
  white-space: nowrap;
  padding-right: 24px;
}

.arch-item-desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-on-dark-muted);
}

/* ============ PHASES ============ */
.phases {
  padding: 140px 0;
  background: var(--warm-white);
}

.phases h2 { margin-bottom: 20px; }

.phases-sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 72px;
}

.phases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.phase-card {
  padding: 48px 36px;
  background: var(--cream);
  position: relative;
}
.phase-card.current {
  background: var(--dark);
}

.phase-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.phase-card.current .phase-tag { color: var(--accent-light); }
.phase-card:not(.current) .phase-tag { color: var(--text-light); }

.phase-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 12px;
}
.phase-card.current h3 { color: var(--cream); }

.phase-card .phase-who {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}
.phase-card.current .phase-who { color: var(--accent-light); }
.phase-card:not(.current) .phase-who { color: var(--accent); }

.phase-card p:not(.phase-who) {
  font-size: 13px;
  line-height: 1.8;
}
.phase-card.current p:not(.phase-who) { color: var(--text-on-dark-muted); }
.phase-card:not(.current) p:not(.phase-who) { color: var(--text-secondary); }

.phase-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.phase-item {
  font-size: 12px;
  line-height: 1.6;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.phase-card.current .phase-item { color: var(--text-on-dark-muted); }
.phase-card:not(.current) .phase-item { color: var(--text-secondary); }

.phase-item::before {
  content: '';
  width: 12px; height: 1px;
  flex-shrink: 0;
  margin-top: 7px;
}
.phase-card.current .phase-item::before { background: var(--rule-dark); }
.phase-card:not(.current) .phase-item::before { background: var(--rule); }

/* ============ ABOUT ============ */
.about {
  padding: 140px 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.about-narrative h2 { margin-bottom: 28px; }

.about-narrative p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.about-origin {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  padding-left: 24px;
  border-left: 2px solid var(--accent);
  margin-bottom: 40px;
}

.founder-photo {
  width: 120px;
  height: 120px;
  border-radius: 2px;
  object-fit: cover;
  margin-bottom: 24px;
  filter: grayscale(100%);
}

.founder-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.founder-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.founder-contact {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}
.founder-contact a {
  font-size: 12px;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s ease;
}
.founder-contact a:hover {
  color: var(--accent);
}

.founder-bio p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.founder-credentials {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
}

.credential {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.credential:last-child { border-bottom: none; padding-bottom: 0; }

.credential-years {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  min-width: 64px;
}

.credential-detail {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.credential-org {
  font-weight: 600;
  color: var(--text-primary);
}

/* ============ CLOSE ============ */
.close-section {
  padding: 160px 0;
  background: var(--dark);
  text-align: center;
  position: relative;
}
.close-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(46, 90, 58, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.close-section h2 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 32px;
  position: relative;
}

.close-line {
  width: 60px; height: 1px;
  background: var(--accent);
  margin: 0 auto 32px;
}

.close-section p {
  font-size: 15px;
  color: var(--text-on-dark-muted);
  margin-bottom: 56px;
  position: relative;
}

.close-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  padding: 16px 44px;
  border: 1px solid var(--cream);
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}
.close-cta:hover {
  background: var(--cream);
  color: var(--dark);
}

/* ============ FOOTER ============ */
footer {
  padding: 48px 0;
  background: var(--dark);
  border-top: 1px solid var(--rule-dark);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 1px;
}

.footer-etym {
  font-size: 11px;
  color: var(--text-on-dark-muted);
  font-style: italic;
  margin-top: 4px;
}

.footer-right p {
  font-size: 11px;
  color: var(--text-on-dark-muted);
  text-align: right;
}
.footer-right p + p { margin-top: 3px; }

/* ============ CARD COMPOSITIONS ============ */
.composition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 900px;
  margin: 72px auto 0;
}

/* card base */
.card {
  background: var(--warm-white);
  border-radius: 3px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: box-shadow 0.3s ease;
  will-change: opacity, transform;
}
.card.dark {
  background: #1A1A1A;
  color: var(--cream);
}
.card.formal {
  background: #FFFFFF;
  border: 1px solid #e0ddd6;
}

.card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.06);
}

.card.entered {
  opacity: 1;
  animation: cardEnter 0.6s ease forwards;
}

/* Full-width card spans both columns */
.card.full-width {
  grid-column: 1 / -1;
}

@keyframes cardEnter {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.card-inner { padding: 24px; }
.card-inner.compact { padding: 18px; }

/* card typography */
.card-label {
  font-size: 9px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: #999; margin-bottom: 10px;
}
.card.dark .card-label { color: #666; }

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 500; color: var(--charcoal, #1A1A1A); margin-bottom: 4px;
}
.card.dark .card-title { color: var(--cream); }

.card-subtitle { font-size: 11px; color: #999; margin-bottom: 16px; }

.card-metric { font-family: 'DM Sans', sans-serif; font-size: 36px; font-weight: 600; line-height: 1; }
.card-metric.large { font-size: 48px; }
.card-metric-unit { font-size: 16px; font-weight: 400; color: #888; margin-left: 2px; }

.card-detail { font-size: 11px; color: #777; line-height: 1.5; margin-top: 8px; }
.card.dark .card-detail { color: #888; }

/* badges */
.conf-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 2px; font-size: 10px; font-weight: 600;
}
.conf-badge.vh { background: var(--conf-vh); color: white; }
.conf-badge.h { background: var(--conf-h); color: white; }
.conf-badge.m { background: var(--conf-m); color: white; }
.conf-badge.l { background: var(--conf-l); color: white; }
.conf-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.6); }

.zone-pill {
  display: inline-block; padding: 5px 14px; border-radius: 2px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase;
}
.zone-pill.sm { font-size: 8px; padding: 2px 8px; }
.zone-pill.critical { background: var(--red-t2); color: white; }
.zone-pill.urgent { background: var(--bronze); color: white; }
.zone-pill.watch { background: var(--monitor); color: white; }
.zone-pill.stable { background: var(--green-safe); color: white; }
.zone-pill.optimal { background: var(--teal); color: white; }

/* mini table */
.mini-row {
  display: flex; align-items: center; padding: 8px 0;
  border-bottom: 1px solid #eee; gap: 12px;
}
.card.dark .mini-row { border-bottom-color: #333; }
.card.formal .mini-row { border-bottom-color: #f0eeea; }
.mini-row:last-child { border-bottom: none; }
.mini-row-label { font-size: 11px; color: #666; flex: 1; }
.card.dark .mini-row-label { color: #888; }
.mini-row-value { font-size: 12px; font-weight: 600; color: var(--charcoal, #1A1A1A); }
.card.dark .mini-row-value { color: var(--cream); }

/* animated elements */
.threshold-vis { position: relative; height: 56px; margin: 16px 0 8px; background: #f5f3ef; border-radius: 2px; overflow: hidden; }

.threshold-fill {
  position: absolute; top: 0; bottom: 0; left: 0;
  border-radius: 2px 0 0 2px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card.entered .threshold-fill { width: var(--fill-w); }

.threshold-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--charcoal, #1A1A1A); z-index: 2; }
.threshold-label-top { position: absolute; top: 6px; font-size: 9px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #999; }
.threshold-label-bottom { position: absolute; bottom: 6px; font-size: 11px; font-weight: 600; }

.threshold-dot {
  position: absolute; top: 50%; transform: translate(-50%,-50%) scale(0);
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid white; box-shadow: 0 1px 4px rgba(0,0,0,0.3); z-index: 3;
  transition: transform 0.5s ease;
  transition-delay: 1s;
}
.card.entered .threshold-dot { transform: translate(-50%,-50%) scale(1); }

.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 100px; margin: 12px 0 8px; }
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.bar {
  width: 100%; border-radius: 2px 2px 0 0; min-height: 0;
  height: 0 !important;
  transition: height 0.8s ease;
}
.card.entered .bar { height: var(--bar-h) !important; }
.bar-label { font-size: 8px; color: #999; letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; }

.headroom-strip {
  display: flex; gap: 1px; height: 8px; border-radius: 2px; overflow: hidden; margin: 12px 0;
}
.headroom-strip .segment {
  min-width: 0; flex: 0;
  transition: flex 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card.entered .headroom-strip .segment { flex: var(--seg-flex); }

.conf-dist-bar {
  display: flex; gap: 2px; height: 28px; border-radius: 2px; overflow: hidden;
}
.conf-dist-bar .seg {
  flex: 0; position: relative;
  transition: flex 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card.entered .conf-dist-bar .seg { flex: var(--seg-flex); }
.conf-dist-bar .seg span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-size: 10px; font-weight: 600; color: white;
  opacity: 0; transition: opacity 0.4s ease; transition-delay: 1.2s;
}
.card.entered .conf-dist-bar .seg span { opacity: 1; }

.progress-track { height: 6px; background: #eee; border-radius: 3px; overflow: hidden; }
.progress-fill {
  height: 100%; width: 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--teal), var(--green-strong));
  transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.5s;
}
.card.entered .progress-fill { width: var(--prog-w); }

.check-row {
  display: flex; align-items: center; gap: 10px; padding: 7px 0;
  font-size: 11px; color: #555;
  opacity: 0; transform: translateX(-12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.card.entered .check-row { opacity: 1; transform: translateX(0); }

.check-icon {
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; flex-shrink: 0;
}
.check-icon.pass { background: var(--teal); color: white; }
.check-icon.flag { background: var(--bronze); color: white; }

.independence-stamp {
  position: relative; padding: 14px 20px;
  border: 2px solid var(--teal); border-radius: 2px; text-align: center;
  opacity: 0; transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.independence-stamp::before {
  content: ''; position: absolute; inset: 3px;
  border: 1px solid rgba(26,138,122,0.3); border-radius: 1px;
}
.card.entered .independence-stamp { opacity: 1; transform: scale(1); }

.stamp-title { font-size: 10px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--teal); }
.stamp-detail { font-size: 9px; color: #999; margin-top: 4px; letter-spacing: 0.5px; }

.step-row {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.card.entered .step-row { opacity: 1; transform: translateY(0); }

.step-num {
  width: 24px; height: 24px; border-radius: 50%;
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; flex-shrink: 0;
  transform: scale(0);
  transition: transform 0.4s ease;
}
.card.entered .step-num { transform: scale(1); }

.timeline-bar {
  display: flex; flex: 1; height: 8px; border-radius: 4px; overflow: hidden; gap: 1px;
}
.timeline-bar .tl-seg {
  flex: 0;
  transition: flex 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card.entered .timeline-bar .tl-seg { flex: var(--tl-flex); }

.cp-tabs { display: flex; gap: 0; }
.cp-tab {
  padding: 8px 16px; font-size: 10px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: #999;
  background: #f0eeea; border-bottom: 2px solid transparent; cursor: default;
}
.cp-tab.active {
  color: var(--charcoal, #1A1A1A); background: white;
  border-bottom: 2px solid var(--teal);
}

.matrix-cell {
  opacity: 0; transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.card.entered .matrix-cell { opacity: 1; transform: scale(1); }

.fund-num {
  font-size: 28px; font-weight: 600; color: var(--cream);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.card.entered .fund-num { opacity: 1; transform: translateY(0); }

/* colour utilities */
.text-positive { color: var(--green-strong); }
.text-negative { color: var(--red-t2); }
.card.dark .mini-row-value.text-positive { color: var(--green-strong); }
.card.dark .mini-row-value.text-negative { color: var(--red-t2); }
.text-teal { color: var(--teal); }
.text-bronze { color: var(--bronze); }

.bg-optimal { background: var(--teal); }
.bg-stable { background: var(--green-safe); }
.bg-watch { background: var(--monitor); }
.bg-urgent { background: var(--bronze); }
.bg-critical { background: var(--red-t2); }


/* ============ CLIENTS ============ */
.clients {
  padding: 140px 0;
  background: var(--warm-white);
}

.clients h2 { margin-bottom: 20px; }

.clients-sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 72px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.client-card {
  padding: 44px 36px;
  background: var(--cream);
  position: relative;
}
.client-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--rule);
  transition: background 0.3s ease;
}
.client-card:hover::before { background: var(--accent); }

.client-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.client-decision {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.client-card p:not(.client-decision) {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ============ COMPACT CLIENT CARDS (landing page) ============ */
.clients-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 48px;
}

.client-card-compact {
  padding: 28px 24px;
  background: var(--cream);
  position: relative;
}
.client-card-compact::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--rule);
  transition: background 0.3s ease;
}
.client-card-compact:hover::before { background: var(--accent); }

.client-card-compact h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.client-card-compact p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ============ LANDING PAGE STYLES ============ */
.section-teaser {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 28px;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid var(--accent);
  transition: all 0.3s ease;
}
.read-more-link:hover {
  background: var(--accent);
  color: white;
  gap: 14px;
}

/* Dark section read more link */
.inversion .read-more-link,
.architecture .read-more-link,
.section-dark .read-more-link {
  color: var(--cream);
  border-color: rgba(240, 235, 224, 0.3);
}
.inversion .read-more-link:hover,
.architecture .read-more-link:hover,
.section-dark .read-more-link:hover {
  background: rgba(240, 235, 224, 0.1);
  border-color: rgba(240, 235, 224, 0.5);
  color: var(--cream);
}

/* Dark section teaser */
.inversion .section-teaser,
.architecture .section-teaser,
.section-dark .section-teaser {
  color: var(--text-on-dark-muted);
}

/* ============ SECTION DARK UTILITY ============ */
.section-dark {
  background: var(--dark) !important;
}
.section-dark h2 {
  color: var(--cream);
}
.section-dark .label {
  color: var(--text-on-dark-muted);
}

/* ============ APPROACH PREVIEW CARDS ============ */
.approach-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.approach-preview-card {
  padding: 32px 28px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 3px;
  border-top: 2px solid var(--rule);
  transition: border-top-color 0.3s ease;
}
.approach-preview-card:hover {
  border-top-color: var(--accent);
}

.approach-preview-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.approach-preview-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ============ DETAIL PAGE HERO ============ */
.page-hero {
  background: var(--dark);
  padding: 160px 0 100px;
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule-dark), transparent);
}
.page-hero h2 {
  color: var(--cream);
  margin-bottom: 0;
}
.page-hero .label {
  margin-bottom: 24px;
}

/* Back link on detail pages */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 40px;
  transition: color 0.3s ease;
}
.back-link:hover {
  color: var(--cream);
}

/* ============ OUTPUT PREVIEW CARDS ============ */
.output-preview {
  margin-top: 56px;
}
.output-preview.light {
  margin-top: 48px;
}

.output-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Default: dark background cards (methodology, architecture) */
.output-card {
  background: var(--dark-mid);
  border-radius: 3px;
  padding: 24px;
  border: 1px solid var(--rule-dark);
}

/* Light variant for approach page */
.output-card.light {
  background: white;
  border: 1px solid var(--rule);
}

.output-card-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 10px;
}
.output-card-label.dark {
  color: #999;
}

.output-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 4px;
}
.output-card-title.dark {
  color: var(--charcoal);
}

.output-card-footer {
  font-size: 11px;
  color: #777;
  line-height: 1.5;
  margin-top: 8px;
}
.output-card-footer.dark {
  color: #999;
}

.output-row {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #333;
  gap: 12px;
}
.output-row:last-child { border-bottom: none; }
.output-row.light {
  border-bottom-color: #eee;
}

.output-row-label {
  font-size: 11px;
  color: #888;
  flex: 1;
}
.output-row-label.dark {
  color: #666;
}

/* Threshold visualisation */
.output-threshold-bar {
  position: relative;
  height: 40px;
  background: rgba(255,255,255,0.04);
  border-radius: 2px;
  overflow: hidden;
}
.output-threshold-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 88%;
  background: linear-gradient(90deg, var(--green-safe) 0%, var(--bronze) 70%, var(--red-t2) 100%);
  opacity: 0.15;
  border-radius: 2px 0 0 2px;
}
.output-threshold-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cream);
  z-index: 2;
}
.output-threshold-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red-t2);
  border: 2px solid white;
  z-index: 3;
}

/* Progress bar */
.output-progress {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.output-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--teal), var(--green-strong));
}

/* Headroom strip */
.output-strip {
  display: flex;
  gap: 1px;
  height: 10px;
  border-radius: 2px;
  overflow: hidden;
}
.output-strip-seg {
  border-radius: 0;
}

/* Step rows (architecture capital planning) */
.output-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-dark);
}
.output-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.output-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

/* ============ BUILD PANEL (TRAJECTORY) ============ */
.build-panel {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 48px;
  background: var(--cream);
  border-radius: 3px;
}

.build-panel .label {
  color: var(--text-light);
  margin-bottom: 24px;
}

.build-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.build-lines {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.build-line {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.build-rule {
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ============ ENGAGE CONTACT ============ */
.engage-contact {
  margin-top: 48px;
}
.engage-contact-prompt {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.engage-email {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.engage-email:hover {
  color: var(--accent);
}

/* ============ SECTION DIVIDER ============ */
.section-divider {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}
.section-divider::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--rule);
}

/* ============ REGULATORY CALLOUT ============ */
.callout {
  background: var(--cream);
  border-left: 3px solid var(--accent);
  padding: 28px 32px;
  margin-top: 48px;
  border-radius: 0 3px 3px 0;
}
.callout p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.callout .callout-cite {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 12px;
  font-style: italic;
}

/* ============ RESPONSIVE ============ */
/* Show hamburger / hide nav links from 1100px down — catches phones where viewport is reported wide (e.g. Samsung Chrome) so links don't overflow and get clipped */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  /* Keep nav inside viewport so hamburger is visible without horizontal scroll */
  nav {
    padding: 20px 24px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  nav.scrolled { padding: 14px 24px; }
  .nav-mark { min-width: 0; }
}

@media (max-width: 1000px) {
  .traction-grid { grid-template-columns: repeat(2, 1fr); }
  .traction-item:nth-child(2) { border-right: none; }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-preview { grid-template-columns: 1fr; }
  .arch-detail { grid-template-columns: 1fr; }
  .phases-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-compact { grid-template-columns: repeat(2, 1fr); }
  .composition { grid-template-columns: 1fr; }
  .composition .card { max-width: 480px; }
  .output-grid { grid-template-columns: 1fr; }
  .panel-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  nav { padding: 20px 24px; }
  nav.scrolled { padding: 14px 24px; }
  /* nav-links / nav-hamburger already handled at 900px */

  .hero-inner { padding: 120px 24px 80px; flex-direction: column; align-items: flex-start; gap: 48px; }
  .hero-proof { flex: 0 0 auto; width: 100%; max-width: 360px; }
  .hero-scroll { display: none; }

  .traction-grid { grid-template-columns: 1fr 1fr; }
  .traction-item { padding: 32px 24px; }
  .traction-item:nth-child(2) { border-right: none; }
  .traction-item:nth-child(3),
  .traction-item:nth-child(4) { border-top: 1px solid var(--rule-dark); }

  .position-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }

  .compare-block { padding: 0; }
  .compare-row { flex-direction: column; align-items: stretch; gap: 16px; }
  .compare-tag { width: auto; }
  .compare-chain { flex-direction: column; align-items: stretch; gap: 0; }
  .compare-node { padding: 12px 20px; font-size: 14px; white-space: normal; text-align: center; flex: none; }
  .compare-arrow { padding: 8px 0; transform: rotate(90deg); text-align: center; font-size: 16px; }

  .arch-detail { grid-template-columns: 1fr; }
  .phases-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .clients-compact { grid-template-columns: 1fr; }
  .clients-output-grid { grid-template-columns: 1fr !important; }
  .composition { grid-template-columns: 1fr; }
  .composition .card { max-width: 480px; }
  .output-grid { grid-template-columns: 1fr; }
  .panel-grid { grid-template-columns: 1fr !important; }
  .build-panel { padding: 40px 28px; }

  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-right p { text-align: center; }
}
