/* ============== Tokens ============== */
:root {
  --ink: #0f1d24;
  --ink-soft: #2c4150;
  --muted: #6b7d87;
  --line: #e3dfd6;
  --line-soft: #ece8df;
  --paper: #f5f1e8;
  --paper-warm: #efe9dc;
  --paper-deep: #e8e1d1;
  --white: #ffffff;
  --brand: #1f4b5d;
  --brand-deep: #14323f;
  --brand-soft: #2f6b82;
  --accent: #c9a96a;     /* warm gold for accents */
  --accent-soft: #d9c194;

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1240px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ============== Layout helpers ============== */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--brand);
  display: inline-block;
}
.eyebrow.no-rule::before { display:none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(44px, 5vw, 72px); line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.12; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }

.section { padding: 120px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 72px;
}
.section-head .eyebrow { margin-bottom: 14px; display: inline-flex; }
.section-head p.lead {
  font-family: var(--serif);
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 16px 0 0;
  max-width: 56ch;
  font-style: italic;
}

/* ============== Top bar ============== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 232, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark .monogram {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.02em;
}
.brand-mark .name {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-mark .name small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 400;
}
.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  font-size: 13.5px;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
}
.nav a:hover { color: var(--brand); }
.nav a:hover::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--brand);
  color: var(--paper);
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.005em;
  border: 1px solid var(--brand);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--brand-deep); }
.btn.ghost {
  background: transparent;
  color: var(--brand);
}
.btn.ghost:hover { background: var(--brand); color: var(--paper); }
.btn .arrow { width: 14px; height: 14px; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============== Hero ============== */
.hero {
  position: relative;
  padding: 80px 0 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: end;
  min-height: 78vh;
}
.hero-copy {
  padding-bottom: 80px;
  position: relative;
  z-index: 2;
}
.hero h1 {
  margin-top: 28px;
}
.hero h1 .accent {
  font-style: italic;
  color: var(--brand);
  font-weight: 400;
}
.hero .deck {
  margin-top: 40px;
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.hero-meta {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-meta .pill {
  font-size: 12.5px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
}
.hero-cta {
  margin-top: 44px;
  display: flex; gap: 14px; flex-wrap: wrap;
}

.hero-portrait {
  position: relative;
  aspect-ratio: 4/5;
  width: 100%;
  align-self: end;
  justify-self: end;
  max-width: 480px;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.02);
  border-radius: 2px;
}
.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--brand);
  z-index: -1;
  pointer-events: none;
}
.hero-portrait .credential {
  position: absolute;
  left: -40px;
  bottom: 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  box-shadow: 0 14px 40px -20px rgba(20,50,63,0.25);
}
.hero-portrait .credential strong {
  display:block;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 2px;
  font-weight: 500;
}

/* Decorative spine */
.spine-deco {
  position: absolute;
  right: 8%;
  top: 6%;
  width: 200px;
  height: 60%;
  opacity: 0.08;
  pointer-events: none;
}

.hero-marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 60px;
  padding: 22px 0;
  overflow: hidden;
  background: var(--paper-warm);
}
.hero-marquee .row {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--ink-soft);
  align-items: center;
}
.hero-marquee .row span.dot {
  width: 6px; height: 6px; background: var(--brand); border-radius: 50%; flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============== Stats ============== */
.stats {
  background: var(--brand);
  color: var(--paper);
  padding: 96px 0;
}
.stats .wrap { color: var(--paper); }
.stats .head {
  display: flex; justify-content: space-between; align-items: end; gap: 48px;
  margin-bottom: 64px;
}
.stats .head .eyebrow { color: var(--accent-soft); }
.stats .head .eyebrow::before { background: var(--accent-soft); }
.stats h2 { color: var(--paper); max-width: 18ch; }
.stats .head p {
  max-width: 38ch;
  color: rgba(245,241,232,0.78);
  font-size: 15.5px;
  margin: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(245,241,232,0.18);
}
.stat {
  padding: 36px 28px 0 28px;
  border-right: 1px solid rgba(245,241,232,0.18);
}
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--serif);
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.stat .num .plus { color: var(--accent); font-style: italic; }
.stat .label {
  margin-top: 14px;
  font-size: 13.5px;
  color: rgba(245,241,232,0.78);
  line-height: 1.45;
  max-width: 22ch;
}

/* ============== About ============== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-grid .left p {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.4;
  color: var(--ink);
  font-style: italic;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.about-grid .left p:not(:first-child) {
  font-style: normal;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.about-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px;
  position: relative;
}
.about-card h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
  margin-bottom: 20px;
}
.about-card ul {
  list-style: none;
  padding: 0; margin: 0;
}
.about-card ul li {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
  gap: 16px;
}
.about-card ul li:last-child { border-bottom: 0; }
.about-card ul li .k { color: var(--ink); }
.about-card ul li .v { color: var(--brand); font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; }

/* ============== Specializations ============== */
.specs {
  background: var(--paper-warm);
}
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.spec {
  background: var(--paper);
  padding: 40px 36px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 280px;
}
.spec-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.spec .num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--brand);
  flex-shrink: 0;
}
.spec h3 {
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0;
}
.spec ul {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 10px;
}
.spec li {
  font-size: 14.5px;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.spec li::before {
  content: "";
  position: absolute; left: 0; top: 10px;
  width: 8px; height: 1px;
  background: var(--brand);
}

/* ============== Problems list ============== */
.problems {
  background: var(--paper);
}
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.problems-grid li {
  padding: 22px 24px 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  list-style: none;
}
.problems-grid li .idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brand);
  margin-top: 5px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  width: 28px;
}
.problems-grid li:nth-child(3n+1) { padding-left: 0; }
.problems-grid li:nth-child(3n+2),
.problems-grid li:nth-child(3n+3) { padding-left: 24px; border-left: 1px solid var(--line); }

/* ============== Services ============== */
.services .services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.service {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service .tag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
}
.service h3 { font-size: 26px; }
.service p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.service ul {
  list-style: none; padding: 0; margin: 6px 0 0;
  display: grid; gap: 6px;
}
.service ul li {
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 16px;
  position: relative;
}
.service ul li::before {
  content: "›";
  position: absolute; left: 0;
  color: var(--brand);
  font-weight: 600;
}
.service.feature {
  background: var(--brand);
  color: var(--paper);
  border-color: var(--brand);
  grid-column: span 2;
  flex-direction: row;
  gap: 48px;
  align-items: stretch;
}
.service.feature h3, .service.feature p { color: var(--paper); }
.service.feature p { color: rgba(245,241,232,0.82); }
.service.feature .left { flex: 1; }
.service.feature .right { flex: 1; border-left: 1px solid rgba(245,241,232,0.2); padding-left: 48px; }
.service.feature .tag { color: var(--accent); border-color: rgba(245,241,232,0.3); background: transparent; }
.service.feature ul li { color: rgba(245,241,232,0.82); }
.service.feature ul li::before { color: var(--accent); }

/* ============== Timeline / Experience ============== */
.timeline {
  background: var(--paper-warm);
}
.timeline-list {
  display: grid;
  gap: 28px;
  position: relative;
}
.timeline-list::before {
  content: "";
  position: absolute;
  left: 140px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: linear-gradient(to bottom, var(--brand), var(--brand-soft));
  opacity: 0.3;
}
.tl-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 48px;
  align-items: start;
  position: relative;
}
.tl-yr {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  position: relative;
  padding-top: 6px;
  padding-right: 32px;
}
.tl-yr::after {
  content: "";
  position: absolute;
  right: -38px;
  top: 16px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--brand);
  z-index: 1;
}
.tl-yr .yr-num {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: -0.02em;
}
.tl-yr .yr-now {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--paper-warm);
  padding: 4px 8px;
  border-radius: 2px;
}
.tl-body {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  padding: 24px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tl-body:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -22px rgba(20,39,52,0.18); }
.tl-tag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--paper-warm);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 6px;
}
.tl-body h4 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
}
.tl-body .role {
  font-size: 14px;
  color: var(--brand-soft);
  font-weight: 500;
  margin: 0;
}
.tl-body p {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.tl-stats {
  display: flex;
  gap: 32px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.tl-stats div { display: flex; flex-direction: column; gap: 2px; }
.tl-stats strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: -0.01em;
}
.tl-stats span {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
@media (max-width: 880px) {
  .timeline-list::before { left: 8px; }
  .tl-row { grid-template-columns: 1fr; gap: 16px; }
  .tl-yr { flex-direction: row; align-items: baseline; gap: 12px; }
  .tl-yr::after { display: none; }
  .tl-yr .yr-num { font-size: 30px; }
}

/* ============== Innovations & affiliations ============== */
.innovations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.innov-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 40px;
  position: relative;
}
.innov-card .num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--brand);
  font-size: 22px;
}
.innov-card h3 { font-size: 26px; margin-bottom: 12px; }
.innov-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin: 0 0 20px; }
.innov-card .meta {
  display: flex; gap: 24px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.affiliations {
  margin-top: 80px;
}
.aff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.aff {
  background: var(--paper);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 140px;
  justify-content: space-between;
}
.aff .country {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}
.aff .org {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.2;
  color: var(--ink);
}
.aff .kind {
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* ============== Press ============== */
.press {
  background: var(--paper);
}
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.press-card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.press-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(20,50,63,0.25);
}
.press-card .src {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  display: flex; align-items: center; gap: 10px;
}
.press-card .src::before {
  content: ""; width: 18px; height: 1px; background: var(--brand);
}
.press-card h4 {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  flex: 1;
}
.press-card .read {
  font-size: 13px;
  color: var(--brand);
  display: flex; align-items: center; gap: 8px;
  margin-top: auto;
}
.press-card .read .arrow { width: 14px; height: 14px; transition: transform .2s ease; }
.press-card:hover .read .arrow { transform: translateX(3px); }

.podcast {
  margin-top: 40px;
  background: var(--brand-deep);
  color: var(--paper);
  padding: 40px 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
}
.podcast .icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--brand-deep);
  display: grid; place-items: center;
}
.podcast .meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 6px;
}
.podcast h4 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--paper);
  margin: 0;
  font-style: italic;
}

/* ============== Contact ============== */
.contact {
  background: var(--brand-deep);
  color: var(--paper);
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}
.contact .bg-mark {
  position: absolute;
  right: -120px; top: -80px;
  font-family: var(--serif);
  font-size: 480px;
  line-height: 0.8;
  color: rgba(245, 241, 232, 0.04);
  font-style: italic;
  pointer-events: none;
  user-select: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  position: relative;
}
.contact h2 { color: var(--paper); max-width: 14ch; }
.contact .lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  color: rgba(245,241,232,0.85);
  margin: 28px 0 40px;
  max-width: 38ch;
}
.contact-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.contact .btn { background: var(--paper); color: var(--brand-deep); border-color: var(--paper); }
.contact .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--brand-deep); }
.contact .btn.ghost { background: transparent; color: var(--paper); border-color: rgba(245,241,232,0.4); }
.contact .btn.ghost:hover { background: var(--paper); color: var(--brand-deep); border-color: var(--paper); }

.contact-info {
  border-left: 1px solid rgba(245,241,232,0.2);
  padding-left: 48px;
  display: flex; flex-direction: column; gap: 28px;
}
.contact-info .row .lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 8px;
}
.contact-info .row .val {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--paper);
  line-height: 1.3;
}
.contact-info .row .val small {
  display: block;
  font-family: var(--sans);
  font-size: 13.5px;
  color: rgba(245,241,232,0.7);
  margin-top: 4px;
}

/* ============== Footer ============== */
.footer {
  background: var(--ink);
  color: rgba(245,241,232,0.7);
  padding: 36px 0;
  font-size: 13px;
}
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer a:hover { color: var(--paper); }

/* ============== Responsive ============== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 420px; margin-top: 40px; }
  .about-grid, .innovations-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid rgba(245,241,232,0.18); padding-bottom: 24px; }
  .specs-grid, .services .services-grid, .press-grid, .aff-grid { grid-template-columns: 1fr 1fr; }
  .service.feature { grid-column: span 2; flex-direction: column; gap: 24px; }
  .service.feature .right { border-left: 0; padding-left: 0; border-top: 1px solid rgba(245,241,232,0.2); padding-top: 24px; }
  .problems-grid { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .tl-row { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  html, body { overflow-x: hidden; }
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; gap: 18px; grid-template-columns: 1fr; }
  .section-head p.lead { font-size: 17px; }
  h1 { font-size: 38px; line-height: 1.1; }
  h2 { font-size: 28px !important; line-height: 1.15; }
  h3 { font-size: 22px; }

  .topbar .wrap { height: 64px; }
  .nav { display: none; }
  .brand-mark .name { font-size: 16px; }
  .brand-mark .name small { font-size: 9px; letter-spacing: 0.12em; }
  .brand-mark .monogram { width: 34px; height: 34px; font-size: 16px; }

  .hero { padding: 48px 0 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
  .hero-copy { padding-bottom: 32px; }
  .hero h1 { margin-top: 20px; }
  .hero .deck { margin-top: 24px; font-size: 16px; }
  .hero-meta { margin-top: 28px; gap: 8px; }
  .hero-meta .pill { font-size: 11.5px; padding: 6px 11px; }
  .hero-cta { margin-top: 32px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-portrait { max-width: 100%; margin: 0; }
  .hero-portrait::after { display: none; }
  .hero-portrait .credential { left: 12px; bottom: 12px; padding: 10px 14px; font-size: 10px; }
  .hero-portrait .credential strong { font-size: 16px; }
  .hero-marquee { margin-top: 40px; padding: 16px 0; }
  .hero-marquee .row { font-size: 16px; gap: 36px; }

  .stats { padding: 64px 0; }
  .stats .head { flex-direction: column; gap: 16px; margin-bottom: 32px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 14px 0 14px !important; border-right: 1px solid rgba(245,241,232,0.18); border-bottom: 1px solid rgba(245,241,232,0.18); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .stat .num { font-size: 48px; }
  .stat .label { font-size: 12.5px; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-grid .left p { font-size: 19px; }
  .about-card { padding: 24px; }
  .about-card ul li { font-size: 13px; flex-wrap: wrap; gap: 4px; }
  .about-card ul li .v { font-size: 11.5px; }

  .specs-grid { grid-template-columns: 1fr; gap: 1px; }
  .spec { padding: 28px 22px; min-height: 0; }
  .spec h3 { font-size: 22px; }

  .problems-grid { grid-template-columns: 1fr; }
  .problems-grid li { padding: 16px 0 !important; border-left: 0 !important; font-size: 14.5px; }

  .services .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service { padding: 24px; }
  .service.feature { flex-direction: column; gap: 24px; padding: 28px; }
  .service.feature .right { border-left: 0; padding-left: 0; border-top: 1px solid rgba(245,241,232,0.2); padding-top: 24px; }

  .timeline-list { gap: 20px; }
  .timeline-list::before { display: none; }
  .tl-row { grid-template-columns: 1fr; gap: 14px; }
  .tl-yr { flex-direction: row; align-items: baseline; gap: 12px; padding: 0; }
  .tl-yr::after { display: none; }
  .tl-yr .yr-num { font-size: 28px; }
  .tl-body { padding: 20px 22px; }
  .tl-body h4 { font-size: 19px; }
  .tl-stats { gap: 20px; flex-wrap: wrap; }
  .tl-stats strong { font-size: 20px; }

  .innovations-grid { grid-template-columns: 1fr; gap: 16px; }
  .innov-card { padding: 28px 24px; }
  .innov-card h3 { font-size: 22px; }
  .aff-grid { grid-template-columns: 1fr 1fr; }
  .aff { padding: 18px 16px; min-height: 110px; }
  .aff .org { font-size: 15px; }
  .aff .country { font-size: 9.5px; }

  .press-grid { grid-template-columns: 1fr; gap: 14px; }
  .press-card { padding: 22px; min-height: 0; }
  .press-card h4 { font-size: 18px; }
  .podcast { grid-template-columns: 1fr; gap: 16px; padding: 24px; text-align: left; }
  .podcast h4 { font-size: 19px; }

  .contact { padding: 72px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact .lead { font-size: 18px; margin: 20px 0 28px; }
  .contact-cta { flex-direction: column; }
  .contact-cta .btn { width: 100%; justify-content: center; }
  .contact-info { border-left: 0; padding-left: 0; border-top: 1px solid rgba(245,241,232,0.2); padding-top: 28px; }
  .contact-info .row .val { font-size: 18px; }
  .contact .bg-mark { font-size: 200px; right: -40px; top: -20px; }

  .footer .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer .wrap > div:last-child { flex-wrap: wrap; }

  .theme-switch { bottom: 12px; right: 12px; padding: 6px; flex-direction: row; }
  .ts-btn { min-width: 0; padding: 6px 8px; }
  .ts-label small { display: none; }
  .ts-dot { width: 14px; height: 14px; }
}

/* ============== Theme switcher UI ============== */
.theme-switch {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px;
  box-shadow: 0 18px 50px -20px rgba(20,39,52,0.35);
  border-radius: 4px;
}
.ts-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 14px 8px 10px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  border-radius: 2px;
  text-align: left;
  min-width: 200px;
}
.ts-btn:hover { background: var(--line-soft); }
.ts-btn.is-active {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--paper-warm);
}
.ts-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.08);
}
.ts-label {
  display: flex; flex-direction: column; gap: 2px;
  line-height: 1;
}
.ts-label small {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: none;
  font-family: var(--sans);
}

  --ink: #142734;
  --ink-soft: #2c4250;
  --muted: #697d87;
  --line: #d6d6d4;
  --line-soft: #e5e4e3;
  --paper: #f4f3f0;
  --paper-warm: #e5e4e3;
  --paper-deep: #d8d7d4;
  --white: #ffffff;
  --brand: #142734;
  --brand-deep: #0a1822;
  --brand-soft: #697d87;
  --accent: #9fd6e7;
  --accent-soft: #9fd6e7;

  --serif: "Source Serif 4", "Charter", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

  font-weight: 500;
  letter-spacing: -0.015em;
}

@media (max-width: 640px) {
  .theme-switch { bottom: 12px; right: 12px; padding: 6px; }
  .ts-btn { min-width: 0; padding: 6px 10px 6px 8px; }
  .ts-label small { display: none; }
}

/* ============== Color richness layer ============== */
:root {
  --coral: #c46a4a;
  --coral-soft: #e8b8a4;
  --sage: #6e8a76;
  --sage-soft: #c2d0c4;
  --gold: #c9a96a;
  --gold-soft: #e8d9b8;
}

/* V1 accents */
body[data-theme="v1"] {
  --accent: #c9a96a;
  --accent-soft: #e8d9b8;
  --accent-strong: #c46a4a;
}
body[data-theme="v1"] .stats { background: linear-gradient(180deg, #1f4b5d 0%, #143542 100%); }
body[data-theme="v1"] .stat:nth-child(2) .num .plus,
body[data-theme="v1"] .hero h1 .accent { color: #c46a4a; font-style: italic; }
body[data-theme="v1"] .stat:nth-child(2) .num { color: #f0c89a; }
body[data-theme="v1"] .stat:nth-child(3) .num { color: #c2d0c4; }
body[data-theme="v1"] .stat:nth-child(4) .num { color: #e8d9b8; }
body[data-theme="v1"] .spec:nth-child(1) { background: linear-gradient(180deg, var(--paper) 0%, #fbf6ed 100%); }
body[data-theme="v1"] .spec:nth-child(1) h3 { color: #1f4b5d; }
body[data-theme="v1"] .spec:nth-child(1) li::before { background: #c9a96a; }
body[data-theme="v1"] .spec:nth-child(2) li::before { background: #c46a4a; }
body[data-theme="v1"] .spec:nth-child(3) li::before { background: #6e8a76; }
body[data-theme="v1"] .spec:nth-child(4) li::before { background: #1f4b5d; }
body[data-theme="v1"] .innov-card:nth-child(2) .num { color: #c46a4a; }

  --accent-strong: #c46a4a;
}

body[data-theme="v1"] .tl-row:nth-child(1) .tl-body { border-left-color: #1f4b5d; }
body[data-theme="v1"] .tl-row:nth-child(2) .tl-body { border-left-color: #c9a96a; }
body[data-theme="v1"] .tl-row:nth-child(3) .tl-body { border-left-color: #6e8a76; }
body[data-theme="v1"] .tl-row:nth-child(4) .tl-body { border-left-color: #c46a4a; }
body[data-theme="v1"] .tl-row:nth-child(5) .tl-body { border-left-color: #143542; }
body[data-theme="v1"] .tl-row:nth-child(2) .tl-yr::after { border-color: #c9a96a; background: #c9a96a; }
body[data-theme="v1"] .tl-row:nth-child(3) .tl-yr::after { border-color: #6e8a76; }
body[data-theme="v1"] .tl-row:nth-child(4) .tl-yr::after { border-color: #c46a4a; }


/* ============== Testimonials ============== */
.testimonials { background: var(--paper-warm); }
.rev-summary {
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  padding: 28px 0 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.rev-stat { display: flex; flex-direction: column; gap: 4px; }
.rev-stat strong {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -0.02em;
}
.rev-stat span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.rev-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid var(--brand);
  padding-bottom: 4px;
}
.rev-link .arrow { width: 14px; height: 14px; transition: transform .2s ease; }
.rev-link:hover .arrow { transform: translate(2px,-2px); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.review {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 36px 36px 30px;
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.review .quote-mark {
  font-family: var(--serif);
  font-size: 80px;
  line-height: 0.6;
  color: var(--accent);
  font-style: italic;
}
.review blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 400;
}
.review figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.review .author { font-size: 14px; font-weight: 500; color: var(--brand); }
.review .meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
@media (max-width: 880px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .rev-summary { gap: 28px; }
  .rev-link { margin-left: 0; width: 100%; padding-top: 16px; border-top: 1px solid var(--line); border-bottom: 0; }
}
@media (max-width: 640px) {
  .review { padding: 28px 22px; }
  .review blockquote { font-size: 17px; }
  .rev-stat strong { font-size: 32px; }
}
