/* ═══════════════════════════════════════════════════════════════
   CLYMORA — Unified Editorial Stylesheet
   Design language inspired by the Clymora developer docs portal:
   Newsreader (serif) · Libre Franklin (sans) · IBM Plex Mono (mono)
   Warm cream paper, espresso-dark brand panels, brick + rose accents.
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  /* Paper / light surfaces */
  --paper:      #FBF8F3;
  --paper-2:    #F5EFE6;
  --paper-3:    #EFE7DA;
  --card:       #FFFFFF;

  /* Ink / text */
  --ink:        #211A17;
  --ink-2:      #4A3F39;
  --ink-soft:   #8A7F78;

  /* Dark brand */
  --espresso:   #1C100E;
  --espresso-2: #24140F;
  --wine:       #3A0F0F;

  /* Accents */
  --brick:      #7B2020;
  --brick-2:    #B22222;
  --rose:       #E7A6A6;
  --rose-2:     #E39A9A;

  /* Text on dark */
  --cream:      #F5EFE6;
  --cream-soft: rgba(245,239,230,0.62);
  --cream-mute: rgba(245,239,230,0.42);

  /* Lines */
  --line:       rgba(33,26,23,0.10);
  --line-2:     rgba(33,26,23,0.16);
  --line-dark:  rgba(245,239,230,0.12);

  /* Type */
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Libre Franklin', system-ui, -apple-system, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --nav-h: 74px;
  --maxw:  1220px;
  --radius: 14px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 3px rgba(33,26,23,0.06);
  --shadow:    0 18px 50px -24px rgba(33,26,23,0.28);
  --shadow-lg: 0 40px 90px -40px rgba(33,26,23,0.42);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
::selection { background: var(--brick); color: var(--cream); }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Shared containers ── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.section { padding: clamp(72px, 9vw, 132px) 0; }
.section--tight { padding: clamp(54px, 6vw, 88px) 0; }

/* ── Eyebrow / kicker ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brick);
}
.eyebrow::before {
  content: ''; width: 22px; height: 1px; background: currentColor; opacity: 0.6;
}
.eyebrow.on-dark { color: var(--rose); }
.eyebrow.center::before { display: none; }

/* ── Headlines ── */
.h-serif {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.h-serif em { font-style: italic; color: var(--brick); }
h1.display { font-family: var(--serif); font-weight: 500; letter-spacing: -0.025em; line-height: 1.03; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.08; letter-spacing: -0.02em;
  margin-top: 18px; color: var(--ink);
}
.section-head h2 em { font-style: italic; color: var(--brick); }
.section-head p {
  margin-top: 18px; font-size: 1.05rem; color: var(--ink-2);
  max-width: 60ch; line-height: 1.7;
}
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ═══════════ BUTTONS ═══════════ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 0.94rem;
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.22s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.22s ease; }
.btn-primary { background: var(--brick); color: var(--cream); }
.btn-primary:hover { background: var(--wine); transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(58,15,15,0.7); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-dark { background: var(--espresso); color: var(--cream); }
.btn-dark:hover { background: #2c1a15; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--brick); color: var(--brick); background: rgba(123,32,32,0.04); }
.btn-light { background: var(--cream); color: var(--espresso); }
.btn-light:hover { background: #fff; transform: translateY(-2px); }
.btn-ghost-light { background: transparent; color: var(--cream); border-color: var(--cream-mute); }
.btn-ghost-light:hover { border-color: var(--cream); background: rgba(245,239,230,0.06); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.92rem; color: var(--brick);
  transition: gap 0.2s ease;
}
.link-arrow svg { width: 15px; height: 15px; }
.link-arrow:hover { gap: 13px; }

/* ═══════════ NAVBAR (full dark) ═══════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; z-index: 1000;
  background: rgba(23,13,11,0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(245,239,230,0.08);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
#navbar.scrolled {
  background: rgba(18,10,8,0.95);
  border-bottom-color: rgba(245,239,230,0.13);
  box-shadow: 0 12px 36px -20px rgba(0,0,0,0.75);
}
.nav-logo { display: flex; align-items: center; gap: 11px; }
.nav-logo .logo-img { height: 36px; width: auto; display: block; filter: drop-shadow(0 2px 7px rgba(0,0,0,0.45)); }
.nav-logo .logo-mark { width: 30px; height: auto; }
.nav-logo .logo-mark polygon { fill: var(--rose); }
.nav-logo .wordmark {
  font-family: var(--sans); font-weight: 600; font-size: 1.32rem;
  letter-spacing: -0.02em; color: var(--cream);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: rgba(245,239,230,0.72);
  position: relative; padding: 6px 0; transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px; background: var(--rose); transition: width 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-docs {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.04em; color: rgba(245,239,230,0.74);
  padding: 8px 14px; border: 1px solid rgba(245,239,230,0.2); border-radius: 999px;
  transition: all 0.2s;
}
.nav-docs:hover { border-color: var(--rose); color: var(--cream); }
.nav-cta {
  background: var(--cream); color: var(--espresso);
  padding: 10px 20px; border-radius: 999px;
  font-size: 0.88rem; font-weight: 600; transition: all 0.2s;
}
.nav-cta:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(0,0,0,0.5); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; color: var(--cream); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ═══════════ FOOTER ═══════════ */
footer {
  background: var(--espresso); color: var(--cream);
  padding: 84px 0 34px; position: relative; overflow: hidden;
}
footer::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 12% 0%, rgba(58,15,15,0.55), transparent 60%);
  pointer-events: none;
}
.footer-inner { position: relative; z-index: 1; }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px;
  padding-bottom: 54px; border-bottom: 1px solid var(--line-dark);
}
.footer-brand .flogo { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.footer-brand .flogo .logo-mark { width: 30px; }
.footer-brand .flogo .logo-mark polygon { fill: var(--rose); }
.footer-brand .flogo span { font-weight: 600; font-size: 1.3rem; color: var(--cream); letter-spacing: -0.02em; }
.footer-brand p { color: var(--cream-soft); font-size: 0.95rem; max-width: 34ch; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--rose); margin-bottom: 18px; font-weight: 500;
}
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul a { color: var(--cream-soft); font-size: 0.92rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--cream); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 26px; flex-wrap: wrap; gap: 14px;
}
.footer-bottom p { color: var(--cream-mute); font-size: 0.82rem; font-family: var(--mono); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px; border: 1px solid var(--line-dark); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--cream-soft);
  transition: all 0.2s;
}
.footer-social a:hover { border-color: var(--rose); color: var(--rose); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }

/* ═══════════ HERO (home) ═══════════ */
#hero {
  position: relative; padding: calc(var(--nav-h) + 70px) 0 0;
  background: var(--paper);
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(120% 80% at 70% 10%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 80% at 70% 10%, #000 30%, transparent 75%);
  opacity: 0.6;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding-bottom: 72px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brick);
  padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255,255,255,0.5); margin-bottom: 26px;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brick-2); box-shadow: 0 0 0 4px rgba(178,34,34,0.16); }
.hero-h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.9rem, 6vw, 5rem); line-height: 1.0; letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-h1 em { font-style: italic; color: var(--brick); }
.hero-sub {
  margin: 26px 0 34px; font-size: 1.14rem; line-height: 1.7; color: var(--ink-2);
  max-width: 46ch;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-right { position: relative; }
.hero-photo-wrap {
  position: relative; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.hero-photo-wrap img { width: 100%; height: 520px; object-fit: cover; filter: saturate(0.92) contrast(1.02); }
.hero-photo-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(28,16,14,0.5));
}
.hero-float-card {
  position: absolute; z-index: 2; background: rgba(251,248,243,0.92);
  backdrop-filter: blur(10px); border: 1px solid var(--line);
  border-radius: 14px; padding: 15px 18px; box-shadow: var(--shadow);
}
.hero-float-card.card-1 { top: 26px; left: -26px; }
.hero-float-card.card-2 { bottom: 26px; right: -22px; }
.fc-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.fc-val { font-family: var(--serif); font-size: 1.85rem; font-weight: 600; color: var(--brick); line-height: 1.1; margin: 3px 0; }
.fc-sub { font-size: 11.5px; color: var(--ink-soft); }

.hero-stats-row {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.hero-stat { padding: 30px 24px; border-right: 1px solid var(--line); }
.hero-stat:last-child { border-right: 0; }
.hero-stat .num { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.hero-stat .lbl { font-size: 0.86rem; color: var(--ink-soft); margin-top: 4px; }

/* ═══════════ TICKER ═══════════ */
.ticker {
  background: var(--espresso); color: var(--cream);
  padding: 15px 0; overflow: hidden; white-space: nowrap; position: relative;
}
.ticker-inner { display: inline-flex; gap: 0; animation: ticker 32s linear infinite; }
.ticker-item {
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.06em;
  padding: 0 34px; display: inline-flex; align-items: center; gap: 34px; color: var(--cream-soft);
}
.ticker-item::after { content: '✦'; color: var(--rose); font-size: 0.7rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ═══════════ CARDS / GRIDS ═══════════ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card .icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--paper-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
  color: var(--brick);
}
.card .icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.card h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin-bottom: 11px; letter-spacing: -0.01em; }
.card p { color: var(--ink-2); font-size: 0.96rem; line-height: 1.65; }
.card .card-link { margin-top: 18px; display: inline-flex; }
.card .card-num {
  position: absolute; top: 22px; right: 26px;
  font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); opacity: 0.7;
}

/* Feature card with top accent */
.card--accent::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brick), var(--rose)); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.card--accent:hover::before { transform: scaleX(1); }

/* ═══════════ PAGE HERO (inner pages) ═══════════ */
.page-hero {
  position: relative; background: var(--espresso); color: var(--cream);
  padding: calc(var(--nav-h) + 88px) 0 92px; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(150deg, var(--wine), var(--espresso) 62%);
}
.page-hero .brand-texture {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.12; mix-blend-mode: luminosity; filter: grayscale(1) contrast(1.1);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--rose); }
.page-hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.03; letter-spacing: -0.025em;
  margin: 20px 0 22px; color: var(--cream); max-width: 16ch;
}
.page-hero h1 em { font-style: italic; color: var(--rose); }
.page-hero p { font-size: 1.14rem; line-height: 1.7; color: var(--cream-soft); max-width: 56ch; }
.page-hero .hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ═══════════ STAT STRIP ═══════════ */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.stat-strip .stat { padding: 8px 34px; border-left: 1px solid var(--line); }
.stat-strip .stat:first-child { border-left: 0; padding-left: 0; }
.stat-big { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 600; color: var(--brick); letter-spacing: -0.02em; line-height: 1; }
.stat-strip .stat p { color: var(--ink-2); font-size: 0.96rem; margin-top: 12px; max-width: 30ch; }

/* ═══════════ TESTIMONIALS ═══════════ */
.quote-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; display: flex; flex-direction: column; gap: 20px;
  transition: box-shadow .28s, transform .28s;
}
.quote-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.quote-mark { font-family: var(--serif); font-size: 3.4rem; line-height: 0.5; color: var(--rose); height: 26px; }
.quote-stars { color: var(--brick-2); letter-spacing: 2px; font-size: 0.9rem; }
.quote-card blockquote { font-size: 1.05rem; line-height: 1.7; color: var(--ink); font-family: var(--serif); font-weight: 400; }
.quote-author { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.quote-avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--espresso);
  color: var(--cream); display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.95rem; flex-shrink: 0;
}
.quote-author .qa-name { font-weight: 600; font-size: 0.95rem; }
.quote-author .qa-role { font-size: 0.84rem; color: var(--ink-soft); }

/* ═══════════ TIMELINE ═══════════ */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 20px; }
.tl-item { position: relative; padding: 34px 26px 0; border-top: 2px solid var(--line-2); }
.tl-item::before {
  content: ''; position: absolute; top: -7px; left: 26px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--brick);
  box-shadow: 0 0 0 5px var(--paper);
}
.tl-year { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--brick); line-height: 1; }
.tl-item h4 { font-size: 1.02rem; font-weight: 600; margin: 12px 0 6px; }
.tl-item p { color: var(--ink-soft); font-size: 0.9rem; }

/* ═══════════ CTA BANNER ═══════════ */
.cta-banner {
  background: var(--espresso); color: var(--cream);
  border-radius: 22px; padding: clamp(44px, 6vw, 74px); position: relative; overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(90% 120% at 50% -10%, rgba(58,15,15,0.7), transparent 60%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 16px; max-width: 20ch; margin-inline: auto;
}
.cta-banner h2 em { font-style: italic; color: var(--rose); }
.cta-banner p { color: var(--cream-soft); max-width: 52ch; margin: 0 auto 30px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ═══════════ FORMS ═══════════ */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink-2); font-family: var(--mono); letter-spacing: 0.03em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 0.98rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--card); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brick); box-shadow: 0 0 0 3px rgba(123,32,32,0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ═══════════ MISC ═══════════ */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.03em;
  padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--ink-2); background: var(--card); cursor: pointer; transition: all 0.2s;
}
.pill:hover, .pill.active { border-color: var(--brick); color: var(--brick); background: rgba(123,32,32,0.04); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.badge-line { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--ink-soft); font-family: var(--mono); }
.badge-line svg { width: 15px; height: 15px; color: var(--brick); }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo-wrap img { height: 420px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip .stat { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0; }
  .stat-strip .stat:first-child { border-top: 0; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 22px; }
  #navbar { padding: 0 22px; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(18,10,8,0.98); border-bottom: 1px solid rgba(245,239,230,0.12);
    padding: 12px 22px 20px; transform: translateY(-140%); transition: transform 0.3s ease;
    box-shadow: 0 24px 50px -20px rgba(0,0,0,0.7);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 13px 0; border-bottom: 1px solid rgba(245,239,230,0.1); }
  .nav-toggle { display: block; }
  .nav-docs { display: none; }
  .hero-stats-row { grid-template-columns: 1fr 1fr; }
  .hero-stat:nth-child(2) { border-right: 0; }
  .hero-stat:nth-child(1), .hero-stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .hero-float-card.card-1 { left: 8px; }
  .hero-float-card.card-2 { right: 8px; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO CAROUSEL (dark, auto-advancing)
   ═══════════════════════════════════════════════════════════════ */
.hero-carousel {
  position: relative; background: var(--espresso); color: var(--cream);
  overflow: hidden; padding-top: var(--nav-h);
}
.hero-carousel::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(150deg, var(--wine), var(--espresso) 60%);
}
.hc-texture {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.1; mix-blend-mode: luminosity; filter: grayscale(1) contrast(1.1);
}
.hc-viewport { position: relative; z-index: 1; overflow: hidden; width: 100%; }
.hc-track { position: relative; width: 100%; }
.hc-slide { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0.6s ease; }
.hc-slide.is-active { position: relative; opacity: 1; visibility: visible; z-index: 1; }
.hc-inner {
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 52px; align-items: center;
  padding: clamp(44px, 5.5vw, 80px) 0; min-height: clamp(400px, 54vh, 480px);
}
/* content entrance on the active slide */
@keyframes hcRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hc-slide.is-active .hc-inner > div > * { animation: hcRise 0.6s cubic-bezier(.2,.7,.2,1) backwards; }
.hc-slide.is-active .hc-inner > div > *:nth-child(2) { animation-delay: 0.06s; }
.hc-slide.is-active .hc-inner > div > *:nth-child(3) { animation-delay: 0.12s; }
.hc-slide.is-active .hc-inner > div > *:nth-child(4) { animation-delay: 0.18s; }
.hc-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rose); padding: 7px 14px; border: 1px solid rgba(245,239,230,0.18);
  border-radius: 999px; background: rgba(245,239,230,0.05); margin-bottom: 24px;
}
.hc-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 4px rgba(231,166,166,0.18); }
.hc-slide h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.5rem, 5.2vw, 4.4rem); line-height: 1.02; letter-spacing: -0.03em;
  color: #F7F1E8;
}
.hc-slide h2 em { font-style: italic; color: var(--rose); }
.hc-sub { margin: 22px 0 30px; font-size: 1.12rem; line-height: 1.7; color: var(--cream-soft); max-width: 46ch; }
.hc-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hc-visual { position: relative; }
.hc-photo {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(245,239,230,0.12); box-shadow: var(--shadow-lg);
}
.hc-photo img { width: 100%; height: 440px; object-fit: cover; filter: saturate(0.95); }
.hc-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(28,16,14,0.55)); }
.hc-statcard {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.hc-stat {
  background: rgba(245,239,230,0.06); border: 1px solid rgba(245,239,230,0.12);
  border-radius: 14px; padding: 22px 20px;
}
.hc-stat .n { font-family: var(--serif); font-size: 2.5rem; font-weight: 600; color: var(--rose); line-height: 1; letter-spacing: -0.02em; }
.hc-stat .l { font-size: 0.86rem; color: var(--cream-soft); margin-top: 8px; }
.hc-stat.wide { grid-column: 1 / -1; }

/* Controls */
.hc-controls { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 0 30px; }
.hc-progress { flex: 1; max-width: 240px; height: 3px; background: rgba(245,239,230,0.15); border-radius: 999px; overflow: hidden; }
.hc-bar-fill { display: block; height: 100%; width: 0; background: var(--rose); border-radius: 999px; }
.hc-bar-fill.run { animation: hcbar 6.5s linear forwards; }
.hero-carousel:hover .hc-bar-fill.run { animation-play-state: paused; }
@keyframes hcbar { from { width: 0; } to { width: 100%; } }
.hc-dots { display: flex; gap: 9px; }
.hc-dot { width: 32px; height: 4px; border-radius: 999px; background: rgba(245,239,230,0.22); border: 0; cursor: pointer; padding: 0; transition: background 0.25s; }
.hc-dot.active { background: var(--rose); }
.hc-arrows { display: flex; gap: 10px; }
.hc-arrow {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: rgba(245,239,230,0.06); border: 1px solid rgba(245,239,230,0.2);
  color: var(--cream); display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.hc-arrow:hover { background: var(--rose); border-color: var(--rose); color: var(--espresso); }
.hc-arrow svg { width: 20px; height: 20px; }
.hero-carousel .hero-stats-row { border-top-color: rgba(245,239,230,0.12); border-bottom: 0; }
.hero-carousel .hero-stat { border-right-color: rgba(245,239,230,0.12); }
.hero-carousel .hero-stat .num { color: var(--cream); }
.hero-carousel .hero-stat .lbl { color: var(--cream-soft); }

/* ═══════════════════════════════════════════════════════════════
   TCS-OF-AI COMPARISON + GROWTH CHART
   ═══════════════════════════════════════════════════════════════ */
.tcs-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; position: relative; }
.tcs-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-sm); }
.tcs-card.left { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.tcs-card.right { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.tcs-head { padding: 22px 26px; color: #fff; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tcs-head.navy { background: var(--espresso); }
.tcs-head.green { background: #1f6b52; }
.tcs-head h3 { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em; text-transform: uppercase; color: #fff; }
.tcs-head .sub { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-top: 3px; }
.tcs-tag { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,0.16); color: #fff; white-space: nowrap; }
.tcs-body { padding: 8px 26px 20px; }
.tcs-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tcs-row:last-child { border-bottom: 0; }
.tcs-row .k { font-size: 0.92rem; color: var(--ink-soft); }
.tcs-row .v { font-weight: 700; font-size: 1rem; color: var(--ink); text-align: right; }
.tcs-vs {
  align-self: center; z-index: 3; width: 54px; height: 54px; border-radius: 50%;
  background: #E0A020; color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 800; font-size: 0.85rem; margin: 0 -27px;
  box-shadow: 0 8px 22px -8px rgba(224,160,32,0.7); border: 4px solid var(--paper);
}
.tcs-banner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--espresso); color: var(--cream); border-radius: 14px;
  padding: 22px 30px; margin-top: 26px; border-left: 5px solid #E0A020;
}
.tcs-banner h4 { font-family: var(--sans); font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; font-size: 1.05rem; margin-bottom: 6px; }
.tcs-banner p { color: var(--cream-soft); font-size: 0.95rem; max-width: 80ch; }

.growth-wrap { margin-top: 30px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px,3vw,36px); box-shadow: var(--shadow-sm); }
.growth-wrap h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; margin-bottom: 6px; }
.growth-wrap h3 em { font-style: italic; color: var(--brick); }
.growth-wrap .gc-sub { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 20px; }
.growth-chart { width: 100%; height: auto; display: block; overflow: visible; }
.gc-area { opacity: 0; transition: opacity 1s ease 0.3s; }
.gc-line { stroke: #1f6b52; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 900; stroke-dashoffset: 900; }
.growth-wrap.in .gc-line { transition: stroke-dashoffset 1.9s ease 0.15s; stroke-dashoffset: 0; }
.growth-wrap.in .gc-area { opacity: 1; }
.gc-dot { fill: #1f6b52; opacity: 0; transition: opacity 0.4s ease; }
.growth-wrap.in .gc-dot { opacity: 1; }
.gc-axis { stroke: var(--line-2); stroke-width: 1; }
.gc-grid { stroke: var(--line); stroke-width: 1; }
.gc-lbl { font-family: var(--sans); font-size: 12px; fill: var(--ink-soft); }
.gc-val { font-family: var(--sans); font-size: 13px; font-weight: 700; fill: var(--brick); }
.gc-aim { font-family: var(--sans); font-size: 12px; font-weight: 700; fill: #E0A020; }

/* ═══════════════════════════════════════════════════════════════
   EMBEDDED DOCS PREVIEW (careers)
   ═══════════════════════════════════════════════════════════════ */
.docs-embed { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: var(--card); }
.docs-embed-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--espresso); border-bottom: 1px solid var(--line-dark); }
.docs-embed-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.docs-embed-bar .url { margin-left: 12px; font-family: var(--mono); font-size: 0.76rem; color: var(--cream-mute); }
.docs-embed-bar .live { margin-left: auto; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: #9FCF9F; display: inline-flex; align-items: center; gap: 6px; }
.docs-embed-bar .live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #6fbf6f; box-shadow: 0 0 0 3px rgba(111,191,111,0.25); }
.docs-embed-body { display: grid; grid-template-columns: 210px 1fr; min-height: 340px; }
.de-nav { border-right: 1px solid var(--line); padding: 18px 12px; background: var(--paper); }
.de-nav h6 { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); padding: 0 10px; margin: 0 0 8px; }
.de-tab { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 8px; font-family: var(--sans); font-size: 0.88rem; color: var(--ink-2); cursor: pointer; transition: all 0.15s; margin-bottom: 2px; }
.de-tab svg { width: 15px; height: 15px; opacity: 0.7; }
.de-tab:hover { background: var(--paper-2); color: var(--ink); }
.de-tab.active { background: rgba(123,32,32,0.08); color: var(--brick); font-weight: 600; }
.de-content { padding: 26px 28px; }
.de-pane { display: none; animation: docfade 0.35s ease; }
.de-pane.active { display: block; }
.de-pane .bc { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft); margin-bottom: 10px; }
.de-pane .bc b { color: var(--brick); font-weight: 500; }
.de-pane h4 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; margin-bottom: 12px; }
.de-pane p { color: var(--ink-2); font-size: 0.94rem; line-height: 1.7; margin-bottom: 14px; }
.de-code { background: var(--espresso); border-radius: 10px; padding: 16px 18px; overflow-x: auto; }
.de-code code { font-family: var(--mono); font-size: 0.8rem; line-height: 1.75; color: var(--cream); white-space: pre; display: block; }
.de-code .k { color: var(--rose); } .de-code .s { color: #E0B25A; } .de-code .f { color: #9FCF9F; }
.de-list { margin: 4px 0 14px; }
.de-list li { position: relative; padding-left: 20px; margin-bottom: 9px; color: var(--ink-2); font-size: 0.92rem; }
.de-list li::before { content: ''; position: absolute; left: 3px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--brick); }
.de-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 28px; border-top: 1px solid var(--line); background: var(--paper); flex-wrap: wrap; }
.de-foot p { margin: 0; font-size: 0.86rem; color: var(--ink-soft); }

@media (max-width: 820px) {
  .hc-inner { grid-template-columns: 1fr; gap: 30px; text-align: left; }
  .hc-photo img { height: 300px; }
  .tcs-compare { grid-template-columns: 1fr; gap: 16px; }
  .tcs-card.left, .tcs-card.right { border-radius: 16px; }
  .tcs-vs { margin: -34px auto; }
  .docs-embed-body { grid-template-columns: 1fr; }
  .de-nav { border-right: 0; border-bottom: 1px solid var(--line); display: flex; gap: 6px; overflow-x: auto; }
  .de-nav h6 { display: none; }
  .de-tab { white-space: nowrap; }
}
