/* ============================================
   Сергей Воробьев — Design System
   ============================================ */

:root {
  --paper: #F2EBDB;
  --ink: #000000;
  --ink-soft: #3A3530;
  --paper-line: #DDD5C0;
  --depth: #000000;
  --depth-soft: #1F1A14;
  --accent: #B53A26;
  --ochre: #C9A57A;

  --container: 1200px;
  --pad: 32px;
}

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

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  font-feature-settings: "ss01", "ss02", "cv01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--paper); }

a {
  color: var(--depth);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--depth-soft); }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ---------- Navbar ---------- */
.nav {
  border-bottom: 1px solid var(--paper-line);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark { height: 28px; width: auto; display: block; }
.brand-name { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }

.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-menu a {
  font-size: 15px;
  color: var(--ink);
  font-weight: 400;
}
.nav-menu a:hover { color: var(--accent); }
.nav-menu a.active { color: var(--depth); }

.hamburger { display: none; }

/* ---------- Hero (main) ---------- */
.hero {
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
}
.hero-inner { position: relative; z-index: 2; }
.hero-whale {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  opacity: 0.95;
  justify-self: end;
  align-self: end;
  margin-bottom: 12px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.display {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
  margin-top: 32px;
}
.hero-sub {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 600px;
  margin-top: 32px;
  line-height: 1.55;
}

/* ---------- Filters ---------- */
.filters {
  margin-top: 80px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.filters-label {
  font-size: 13px;
  color: var(--ink-soft);
  margin-right: 4px;
}
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  padding: 8px 16px;
  border: 1px solid var(--paper-line);
  border-radius: 4px;
  background: var(--paper);
  font-size: 14px;
  color: var(--ink-soft);
  font-family: inherit;
  transition: border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.chip:hover { border-color: var(--ink-soft); }
.chip.active {
  border-color: var(--depth);
  color: var(--depth);
}

/* ---------- Case grid ---------- */
.case-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  padding: 32px;
  color: var(--ink);
  min-height: 380px;
  transition: border-color 0.2s ease;
}
.case-card:hover { border-color: var(--depth); color: var(--ink); }
.case-card[hidden] { display: none; }
.cc-cat {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.cc-title {
  margin-top: 14px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.2;
}
.cc-sub {
  margin-top: 10px;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.cc-divider {
  height: 1px;
  background: var(--paper-line);
  margin: 24px 0;
}
.cc-metric {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}
.cc-metric-label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}
.cc-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
}
.cc-arrow {
  font-size: 18px;
  color: var(--ink-soft);
  transition: transform 0.2s ease, color 0.2s ease;
}
.case-card:hover .cc-arrow {
  color: var(--accent);
  transform: translateX(4px);
}
.cc-tag-focus {
  display: inline-block;
  background: var(--ochre);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* ---------- Intermediate "failures" section ---------- */
.fail-section {
  margin-top: 120px;
  text-align: center;
}
.fail-section .center {
  max-width: 700px;
  margin: 0 auto;
}
.fail-section h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 16px;
  line-height: 1.1;
}
.fail-section p {
  margin-top: 20px;
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.btn-outline {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 28px;
  border: 1px solid var(--depth);
  border-radius: 6px;
  color: var(--depth);
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-outline:hover { background: var(--depth); color: var(--paper); }

.fail-list {
  margin-top: 36px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  counter-reset: fail-i;
}
.fail-list li {
  font-size: 17px;
  color: var(--ink);
  line-height: 1.6;
  padding-left: 36px;
  position: relative;
  counter-increment: fail-i;
}
.fail-list li::before {
  content: counter(fail-i, decimal-leading-zero);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ochre);
  letter-spacing: 0.02em;
  position: absolute;
  left: 0;
  top: 6px;
}
.fail-list li strong {
  font-weight: 500;
  color: var(--ink);
}
.fail-foot {
  margin-top: 28px;
  font-size: 14px;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- NDA explainer block ---------- */
.nda-block {
  margin-top: 100px;
  border: 1px solid var(--paper-line);
  border-radius: 6px;
  padding: 32px;
  max-width: 800px;
}
.nda-block h3 {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nda-block p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.6;
  max-width: 700px;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 120px;
  border-top: 1px solid var(--paper-line);
  padding: 64px 0 32px;
}
.footer-whale {
  height: 72px;
  width: auto;
  display: block;
  margin-bottom: 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
}
.footer-left .f-name {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}
.footer-left .f-sub {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer-right {
  text-align: right;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer-bottom {
  margin-top: 48px;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ============================================
   CASE DETAIL PAGE
   ============================================ */

.breadcrumbs {
  padding: 24px 0;
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--paper-line);
}
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 8px; }

.case-hero {
  padding-top: 80px;
  padding-bottom: 60px;
}
.case-hero .cat {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.case-hero h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-top: 16px;
  line-height: 1.05;
}
.case-hero .sub {
  font-size: 22px;
  color: var(--ink-soft);
  margin-top: 24px;
  max-width: 740px;
  line-height: 1.45;
}
.case-meta {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.case-meta .dot { color: var(--ink-soft); opacity: 0.5; }

.nda-banner {
  margin-top: 32px;
  border: 1px solid var(--paper-line);
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 700px;
  line-height: 1.55;
}

/* Main metrics grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.metric-card {
  padding: 32px;
  border: 1px solid var(--paper-line);
  border-radius: 6px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
}
.metric-card.ochre {
  background: var(--ochre);
  border-color: var(--ochre);
}
.metric-card .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 48px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.metric-card.ochre .num { color: var(--ink); }
.metric-card .lbl {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.metric-card.ochre .lbl { color: var(--ink); }

/* Section blocks */
.section { padding-top: 80px; }
.label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.section h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 16px;
  max-width: 800px;
  line-height: 1.15;
}
.section h2.small {
  font-size: 28px;
}

.pain-list {
  margin-top: 32px;
  max-width: 720px;
  counter-reset: pain-i;
}
.pain-list li {
  font-size: 18px;
  color: var(--ink);
  line-height: 1.6;
  padding: 10px 0 10px 36px;
  position: relative;
  counter-increment: pain-i;
}
.pain-list li::before {
  content: counter(pain-i, decimal-leading-zero);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ochre);
  letter-spacing: 0.02em;
  position: absolute;
  left: 0;
  top: 14px;
}

.solution-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.sol-card {
  padding: 24px;
  border: 1px solid var(--paper-line);
  border-radius: 6px;
}
.sol-card .t {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}
.sol-card .d {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.tech-row {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech {
  padding: 8px 16px;
  border: 1px solid var(--paper-line);
  border-radius: 4px;
  font-size: 14px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.compare {
  margin-top: 32px;
  width: 100%;
  border-collapse: collapse;
}
.compare th {
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding: 16px 0;
  border-bottom: 1px solid var(--paper-line);
}
.compare th:last-child { text-align: right; }
.compare td {
  font-size: 17px;
  color: var(--ink);
  padding: 20px 0;
  border-bottom: 1px solid var(--paper-line);
  vertical-align: top;
}
.compare td.num { font-family: 'JetBrains Mono', monospace; }
.compare td:last-child {
  color: var(--accent);
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
}
.compare tr:last-child td { border-bottom: none; }

.lesson {
  padding-top: 100px;
}
.lesson p {
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 700px;
  margin-top: 24px;
  font-weight: 400;
}

.period {
  padding-top: 60px;
}
.period p {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 700px;
  line-height: 1.7;
  margin-top: 16px;
}
.period p + p { margin-top: 12px; }

/* CTA at bottom */
.cta-row {
  padding-top: 120px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.related h3 {
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.related-list { display: flex; flex-direction: column; gap: 12px; }
.related-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--paper-line);
  border-radius: 6px;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.related-card:hover { border-color: var(--depth); color: var(--ink); }
.related-card .rc-cat {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.related-card .rc-title {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}
.related-card .rc-sub {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-soft);
}

.contact-card {
  padding: 32px;
  border: 1px solid var(--depth);
  border-radius: 6px;
}
.contact-card h3 {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.contact-card p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.btn-primary {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 28px;
  background: var(--depth);
  color: var(--paper);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  transition: background 0.2s ease;
}
.btn-primary:hover { background: var(--depth-soft); color: var(--paper); }

/* Two-part solution sections (case 6) */
.split-header { margin-top: 24px; max-width: 760px; }
.split-header .sub {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.part-block { padding-top: 56px; }
.part-block .num-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0;
}
.part-block h3 {
  margin-top: 12px;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 760px;
}
.part-block .part-sub {
  margin-top: 14px;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 700px;
  line-height: 1.6;
}

.essay {
  padding-top: 80px;
  max-width: 720px;
}
.essay h3 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.essay p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  margin-top: 20px;
}

/* Product cases ("Где сейчас") */
.status-block {
  padding-top: 80px;
}
.status-block .body {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 700px;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-hero {
  padding-top: 160px;
  padding-bottom: 100px;
}
.about-hero .display {
  font-size: 72px;
  margin-top: 24px;
  max-width: 1000px;
}
.about-hero .sub {
  margin-top: 36px;
  font-size: 22px;
  color: var(--ink-soft);
  max-width: 650px;
  line-height: 1.5;
}

.about-section {
  padding-top: 100px;
}
.about-section h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 16px;
  max-width: 820px;
  line-height: 1.1;
}
.about-section .sub {
  margin-top: 20px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 700px;
  line-height: 1.55;
}
.about-body {
  margin-top: 32px;
  max-width: 720px;
}
.about-body p {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
}
.about-body p + p { margin-top: 20px; }
.about-body strong { font-weight: 500; }

.callout {
  margin-top: 36px;
  padding: 24px 28px;
  border-left: 3px solid var(--ochre);
  background: rgba(201, 165, 122, 0.18);
  font-size: 17px;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
  max-width: 720px;
  border-radius: 0 4px 4px 0;
}
.callout strong { font-style: normal; font-weight: 500; }

.principles { margin-top: 40px; }
.principle {
  padding: 40px 0;
  border-bottom: 1px solid var(--paper-line);
  max-width: 820px;
}
.principle:last-child { border-bottom: none; }
.principle .num-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--ink-soft);
}
.principle h3 {
  margin-top: 12px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.principle p {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 720px;
}

.directions { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.direction {
  display: block;
  padding: 32px;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.direction:hover { border-color: var(--depth); color: var(--ink); }
.direction .d-lbl {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.direction .d-title {
  margin-top: 10px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.direction .d-sub {
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 680px;
}
.direction .d-link {
  margin-top: 20px;
  font-size: 15px;
  color: var(--accent);
  font-weight: 500;
  transition: transform 0.2s ease;
  display: inline-block;
}
.direction:hover .d-link { transform: translateX(4px); }

.places { margin-top: 40px; }
.place {
  padding: 32px 0;
  max-width: 720px;
  border-bottom: 1px solid var(--paper-line);
}
.place:last-child { border-bottom: none; }
.place h3 {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.place p {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
}
.place p strong { font-weight: 500; }

.contacts-list {
  margin-top: 32px;
  max-width: 600px;
}
.contacts-list .row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--paper-line);
  align-items: baseline;
}
.contacts-list .row:last-child { border-bottom: none; }
.contacts-list .k {
  font-size: 15px;
  color: var(--ink-soft);
}
.contacts-list .v {
  font-size: 18px;
  color: var(--accent);
}
.contacts-list .v.muted {
  color: var(--ink-soft);
  font-style: italic;
  font-size: 15px;
}
.contacts-list a.v { text-decoration: none; }
.contacts-list a.v:hover { color: var(--depth-soft); }

@media (max-width: 700px) {
  .about-hero { padding-top: 80px; padding-bottom: 60px; }
  .about-hero .display { font-size: 36px; }
  .about-hero .sub { font-size: 17px; }
  .about-section h2 { font-size: 28px; }
  .principle h3 { font-size: 22px; }
  .direction .d-title { font-size: 22px; }
  .place h3 { font-size: 19px; }
  .contacts-list .row { grid-template-columns: 1fr; gap: 4px; }
}



/* ============================================
   HOME PAGE (root landing)
   ============================================ */

.home-hero {
  padding-top: 140px;
  padding-bottom: 100px;
}
.home-hero .container {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 56px;
  align-items: center;
}
.home-hero-text { max-width: 720px; }
.home-hero .display {
  margin-top: 24px;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
}
.home-hero .sub {
  margin-top: 32px;
  font-size: 22px;
  color: var(--ink-soft);
  max-width: 600px;
  line-height: 1.5;
}
.home-hero-whale {
  width: 100%;
  max-width: 280px;
  height: auto;
  justify-self: end;
  display: block;
}

.focus-block {
  position: relative;
  margin-top: 80px;
  border: 1px solid var(--depth);
  border-radius: 12px;
  padding: 64px;
  background: var(--paper);
}
.focus-tag {
  position: absolute;
  top: -14px;
  left: 32px;
  background: var(--ochre);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 4px;
  white-space: nowrap;
}
.focus-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
}
.focus-name {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.focus-tagline {
  margin-top: 16px;
  font-size: 26px;
  color: var(--ink-soft);
  letter-spacing: -0.015em;
}
.focus-body {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 520px;
}
.focus-features {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 540px;
  counter-reset: ff-i;
}
.focus-features li {
  font-size: 17px;
  color: var(--ink);
  line-height: 1.6;
  padding-left: 36px;
  position: relative;
  counter-increment: ff-i;
}
.focus-features li::before {
  content: counter(ff-i, decimal-leading-zero);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  color: var(--ochre);
  letter-spacing: 0.02em;
  position: absolute;
  left: 0;
  top: 4px;
}
.focus-features li strong {
  font-weight: 500;
  color: var(--ink);
}
.focus-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  justify-self: end;
  text-align: left;
}
.focus-right .small-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 280px;
}

.who-block {
  padding-top: 120px;
}
.who-block .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.who-block h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 500px;
  margin-top: 16px;
  line-height: 1.15;
}
.who-block .body p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 500px;
}
.who-block .link {
  display: inline-block;
  margin-top: 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.who-block .link:hover { transform: translateX(4px); }

.others-block {
  padding-top: 120px;
}
.others-block h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 16px;
  line-height: 1.15;
}
.others-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.other-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.other-card:hover { border-color: var(--depth); color: var(--ink); }
.other-card .oc-lbl {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.other-card .oc-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.other-card .oc-body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.other-card .oc-link {
  margin-top: auto;
  padding-top: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}
.other-card:hover .oc-link { color: var(--depth-soft); }

.home-flagship-block {
  padding-top: 120px;
}
.home-flagship-block h2.label-like {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.final-cta {
  padding-top: 160px;
  padding-bottom: 120px;
  text-align: center;
}
.final-cta-inner {
  max-width: 720px;
  margin: 0 auto;
}
.final-cta h2 {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.05;
}
.final-cta .sub {
  margin-top: 28px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}
.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  margin-top: 40px;
  padding: 20px 32px;
  background: var(--depth);
  color: var(--paper);
  border-radius: 6px;
  font-size: 18px;
  font-weight: 500;
  font-family: inherit;
  line-height: 1;
  transition: background 0.2s ease;
}
.btn-primary-lg:hover { background: var(--depth-soft); color: var(--paper); }
.final-cta .signoff {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .home-hero .container { grid-template-columns: 1fr; gap: 32px; }
  .home-hero-whale { max-width: 220px; justify-self: start; order: -1; }
  .focus-inner { grid-template-columns: 1fr; gap: 36px; }
  .focus-right { justify-self: start; }
  .who-block .container { grid-template-columns: 1fr; gap: 24px; }
  .others-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .home-hero { padding-top: 80px; padding-bottom: 60px; }
  .home-hero .display { font-size: 40px; }
  .home-hero .sub { font-size: 17px; }
  .focus-block { padding: 40px 28px; }
  .focus-name { font-size: 44px; }
  .focus-tagline { font-size: 20px; }
  .who-block h2 { font-size: 26px; }
  .others-block h2 { font-size: 26px; }
  .other-card { padding: 28px; }
  .other-card .oc-title { font-size: 28px; }
  .final-cta h2 { font-size: 40px; }
  .final-cta .sub { font-size: 17px; }
  .btn-primary-lg { padding: 16px 28px; font-size: 16px; }
}



.products-hero {
  padding-top: 140px;
  padding-bottom: 80px;
}
.products-hero .display {
  font-size: 64px;
  margin-top: 24px;
  max-width: 960px;
  line-height: 1.05;
}
.products-hero .sub {
  margin-top: 32px;
  font-size: 22px;
  color: var(--ink-soft);
  max-width: 720px;
  line-height: 1.5;
}

.format-block {
  padding-top: 80px;
  border-top: 1px solid var(--paper-line);
}
.format-block h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 800px;
  margin-top: 16px;
  line-height: 1.15;
}
.format-block .body {
  margin-top: 28px;
  max-width: 720px;
}
.format-block .body p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
}
.format-block .body p + p { margin-top: 18px; }

.products-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.product-card {
  padding: 36px;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.2s ease;
}
.product-card:hover { border-color: var(--depth); }
.product-card .pc-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--ink-soft);
}
.product-card .pc-title {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.2;
  margin-top: -8px;
}
.product-card .pc-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.product-card .pc-proof {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--paper-line);
}
.product-card .pc-proof-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.product-card .pc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-card .pc-chip {
  font-size: 13px;
  color: var(--accent);
  padding: 5px 10px;
  border: 1px solid var(--paper-line);
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.product-card .pc-chip:hover {
  border-color: var(--depth);
  background: rgba(181, 58, 38, 0.06);
}

.products-cta {
  margin-top: 80px;
  padding: 48px;
  border: 1px solid var(--depth);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 32px;
  align-items: center;
}
.products-cta h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}
.products-cta p {
  margin-top: 14px;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 540px;
}
.products-cta .cta-right { justify-self: end; }

@media (max-width: 900px) {
  .products-grid { grid-template-columns: 1fr; }
  .products-cta { grid-template-columns: 1fr; }
  .products-cta .cta-right { justify-self: start; }
}
@media (max-width: 700px) {
  .products-hero { padding-top: 80px; padding-bottom: 60px; }
  .products-hero .display { font-size: 36px; }
  .products-hero .sub { font-size: 17px; }
  .format-block h2 { font-size: 26px; }
  .product-card { padding: 28px; }
  .product-card .pc-title { font-size: 22px; }
  .products-cta { padding: 32px; }
  .products-cta h2 { font-size: 24px; }
}


.flagship {
  margin-top: 60px;
  margin-bottom: 0;
}
.flagship-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 48px;
  row-gap: 36px;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  padding: 56px 64px;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.flagship-card:hover { border-color: var(--depth); color: var(--ink); }
.flagship-left { grid-column: 1; grid-row: 1; }
.flagship-right { grid-column: 2; grid-row: 1; align-self: end; }
.flagship-metrics { grid-column: 1 / -1; grid-row: 2; }
.flagship-left .f-cat {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.flagship-left .f-title {
  margin-top: 16px;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.flagship-left .f-sub {
  margin-top: 20px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 600px;
  line-height: 1.5;
}
.flagship-metrics {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 56px;
  padding-top: 32px;
  border-top: 1px solid var(--paper-line);
}
.flagship-metrics .fm {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.flagship-metrics .fm-n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;
}
.flagship-metrics .fm-l {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.flagship-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  text-align: right;
}
.flagship-right .f-cta {
  font-size: 22px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.015em;
  transition: transform 0.2s ease;
}
.flagship-card:hover .f-cta { transform: translateX(4px); }
.flagship-right .f-note {
  font-size: 14px;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .flagship-card {
    grid-template-columns: 1fr;
    padding: 40px;
    gap: 32px;
  }
  .flagship-right { align-items: flex-start; text-align: left; }
  .flagship-left .f-title { font-size: 40px; }
  .flagship-metrics { gap: 28px; }
}

/* ============================================
   MPSHINE FLAGSHIP DETAIL PAGE
   ============================================ */

.mpshine-hero {
  padding-top: 100px;
  padding-bottom: 80px;
}
.mpshine-hero .cat {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.mpshine-hero h1 {
  margin-top: 18px;
  font-size: 80px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.mpshine-hero .sub {
  margin-top: 28px;
  font-size: 22px;
  color: var(--ink-soft);
  max-width: 750px;
  line-height: 1.45;
}
.mpshine-hero .meta {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.mpshine-hero .meta .dot { color: var(--ink-soft); opacity: 0.5; }

.metric-card .num-sub {
  margin-top: 8px;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.45;
}
.metric-card.ochre .num-sub { color: var(--ink); opacity: 0.85; }

.long-body {
  margin-top: 32px;
  max-width: 760px;
}
.long-body p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
}
.long-body p + p { margin-top: 18px; }
.long-body strong { font-weight: 500; }

.section-sub {
  margin-top: 18px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 700px;
  line-height: 1.55;
}

.role-block {
  padding-top: 80px;
}
.role-block .num-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--ink-soft);
}
.role-block h3 {
  margin-top: 12px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.role-block .role-sub {
  margin-top: 8px;
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 700px;
  line-height: 1.45;
}
.role-block .long-body { margin-top: 28px; }
.role-block .solution-grid { margin-top: 28px; }

.turning-point {
  padding-top: 48px;
  max-width: 780px;
}
.turning-point .num-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--ink-soft);
}
.turning-point h3 {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.3;
}
.turning-point .tp-body {
  margin-top: 16px;
  max-width: 760px;
}
.turning-point .tp-body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
}
.turning-point .tp-body p + p { margin-top: 14px; }
.turning-point .tp-body strong { font-weight: 500; }

.reflection-block {
  padding-top: 100px;
}
.reflection-block .body {
  margin-top: 24px;
  max-width: 760px;
}
.reflection-block .body p {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.reflection-block .body p + p { margin-top: 22px; }

@media (max-width: 700px) {
  .mpshine-hero h1 { font-size: 44px; }
  .mpshine-hero .sub { font-size: 18px; }
  .role-block h3 { font-size: 24px; }
  .role-block .role-sub { font-size: 17px; }
  .turning-point h3 { font-size: 20px; }
  .reflection-block .body p { font-size: 18px; }
}



.lessons-hero {
  padding-top: 140px;
  padding-bottom: 100px;
}
.lessons-hero .display {
  font-size: 72px;
}
.lessons-hero .sub {
  margin-top: 28px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 700px;
  line-height: 1.55;
}

.project-block {
  padding-top: 80px;
}
.project-head .period-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--ink-soft);
}
.project-head .cat {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.project-head h2 {
  margin-top: 14px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
  max-width: 820px;
}
.project-head .nda-line {
  margin-top: 14px;
  font-size: 17px;
  color: var(--ink-soft);
}

.subblock {
  padding-top: 40px;
}
.subblock.large { padding-top: 60px; }
.subblock h3 {
  margin-top: 14px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 820px;
  line-height: 1.2;
}

.solution-grid.lessons-cards { margin-top: 24px; }

.reason-body {
  margin-top: 20px;
  max-width: 720px;
}
.reason-body p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
}
.reason-body p + p { margin-top: 18px; }

.ochre-mark {
  background: transparent;
  color: var(--accent);
  padding: 0;
  font-weight: inherit;
}

.reflection {
  margin-top: 24px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  max-width: 720px;
  letter-spacing: -0.005em;
}

.project-divider {
  padding: 120px 0;
  display: flex;
  justify-content: center;
}
.project-divider .line {
  width: 80px;
  height: 1px;
  background: var(--paper-line);
}

.finale {
  padding-top: 160px;
  padding-bottom: 100px;
  text-align: center;
}
.finale .center {
  max-width: 720px;
  margin: 0 auto;
}
.finale h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 16px;
  line-height: 1.15;
}
.finale .body {
  margin-top: 28px;
}
.finale .body p {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  text-align: left;
}
.finale .body p + p { margin-top: 18px; }

.dual-cta {
  padding-top: 60px;
  padding-bottom: 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.dual-cta .cta-cell {
  padding: 32px;
  border: 1px solid var(--paper-line);
  border-radius: 6px;
}
.dual-cta .cta-cell.accent { border-color: var(--depth); }
.dual-cta h3 {
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.dual-cta p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .dual-cta { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .lessons-hero { padding-top: 80px; padding-bottom: 60px; }
  .lessons-hero .display { font-size: 40px; }
  .project-head h2 { font-size: 28px; }
  .subblock h3 { font-size: 22px; }
  .finale h2 { font-size: 28px; }
  .reflection { font-size: 18px; }
}

@media (max-width: 900px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-row { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  :root { --pad: 20px; }
  .nav-menu { display: none; }
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .hamburger span {
    width: 22px;
    height: 1.5px;
    background: var(--ink);
  }
  .hero { padding: 80px 0 60px; }
  .hero .container { grid-template-columns: 1fr; gap: 16px; }
  .hero-inner { max-width: 100%; order: 2; }
  .hero-whale { max-width: 200px; justify-self: start; margin: 0 0 12px; order: 1; }
  .display { font-size: 40px; }
  .hero-sub { font-size: 17px; }
  .case-grid { grid-template-columns: 1fr; }
  .case-hero h1 { font-size: 36px; }
  .case-hero .sub { font-size: 18px; }
  .metric-card .num { font-size: 36px; }
  .section h2 { font-size: 28px; }
  .lesson p { font-size: 18px; }
  .essay h3 { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-right { text-align: left; }
  .compare th, .compare td { font-size: 14px; }
}


/* ============================================
   v2 ENHANCEMENTS — soc proof, stats, footer, etc.
   ============================================ */

/* Reset default <mark> styling — use .ochre-mark only */
mark { background: transparent; color: inherit; }

/* Hero meta line (mono, sits above H1) */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.hero-meta .sep { color: var(--accent); opacity: 1; font-weight: 700; padding: 0 2px; }
.hero-meta { gap: 0 16px; font-size: 13px; }

/* Hero CTA row (primary + secondary side by side) */
.hero-cta-row {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.hero-cta-row .btn-primary-lg { margin-top: 0; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 20px 32px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  font-family: inherit;
  line-height: 1;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent)
}

/* Whale watermark behind hero text */
.home-hero { position: relative; overflow: hidden; }
.hero-watermark {
  position: absolute;
  top: 50%;
  right: -80px;
  transform: translateY(-50%);
  width: 640px;
  height: auto;
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
  filter: grayscale(1);
}
.home-hero .container { position: relative; z-index: 1; }

/* Social proof strip */
.social-proof {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding-top: 8px;
  padding-bottom: 32px;
  flex-wrap: wrap;
}
.social-proof .sp-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.social-proof .sp-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  font-size: 16px;
  color: var(--ink);
}
.social-proof .sp-list span { white-space: nowrap; }
.social-proof .sp-dot { color: var(--accent); opacity: 1; font-weight: 700; padding: 0 2px; }
.social-proof .sp-nda {
  color: var(--ink-soft);
  font-style: italic;
}

/* Cases summary stats */
.cases-stats {
  padding-top: 36px;
  padding-bottom: 8px;
}
.cs-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 36px;
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  padding: 28px 0;
}
.cs-item {
  padding: 0;
  border-right: none;
  flex: 0 1 auto;
  min-width: 140px;
}
/* cs-item: simplified spacing */
.cs-item .cs-n {
  font-size: 32px;
  font-weight: 400;
  color: var(--ochre);
  letter-spacing: -0.02em;
  line-height: 1;
}
.cs-item .cs-l {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* Case card additions: number + date + base comparison */
.cc-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.cc-num {
  color: var(--ochre);
  font-weight: 400;
}
.cc-date { color: var(--ink-soft); }
.cc-metric-base {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* Flagship accent variant — ochre top bar */
.flagship-card.accent {
  position: relative;
  border-color: var(--depth);
}
.flagship-card.accent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ochre);
  border-radius: 12px 12px 0 0;
}
.flagship-card.accent .f-num {
  color: var(--ochre);
  background: transparent;
  padding-right: 4px;
}

/* Filter chip count */
.chip-count {
  margin-left: 6px;
  font-size: 11px;
  color: var(--ink-soft);
  opacity: 0.7;
}
.chip.active .chip-count {
  color: var(--ochre);
  opacity: 1;
}

/* ---- Footer rich ---- */
.footer-grid-rich {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  align-items: stretch;
  padding-bottom: 48px;
}
.fr-col {
  display: flex;
  flex-direction: column;
}
.fr-col-end { text-align: right; }
.fr-name {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}
.fr-tag {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 260px;
}
.fr-tag-mono {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.fr-lbl {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.fr-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fr-list a {
  font-size: 15px;
  color: var(--ink);
}
.fr-list a:hover { color: var(--accent); }
.fr-quote {
  font-size: 16px;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  max-width: 260px;
  margin-left: auto;
}
.fr-attr {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--paper-line);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* Hamburger open + mobile menu drop */
.hamburger {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.hamburger span { transition: transform 0.2s ease, opacity 0.2s ease; }

/* Larger Display heading on home hero */
.home-hero .display {
  font-size: 64px;
}

/* Responsive overrides for new sections */
@media (max-width: 1000px) {
  .footer-grid-rich {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .fr-col-end { text-align: left; }
  .fr-quote { margin-left: 0; }
  .cs-row { grid-template-columns: repeat(3, 1fr); }
  .cs-item:nth-child(3) { border-right: none; }
  .cs-item { margin-bottom: 20px; }
}

@media (max-width: 700px) {
  .hero-watermark { display: none; }
  .home-hero .display { font-size: 38px; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn-primary-lg,
  .hero-cta-row .btn-secondary { text-align: center; }
  .social-proof { gap: 12px; padding-bottom: 24px; }
  .social-proof .sp-list { font-size: 14px; }
  .cs-row {
    grid-template-columns: 1fr 1fr;
    padding: 20px 0;
    gap: 20px 0;
  }
  .cs-item {
    padding: 0 16px;
    border-right: 1px solid var(--paper-line);
    margin-bottom: 0;
  }
  .cs-item:nth-child(2n) { border-right: none; }
  .cs-item:nth-child(3) { border-right: 1px solid var(--paper-line); }
  .cs-item:last-child { border-right: none; }
  .cs-item .cs-n { font-size: 24px; }
  .footer-grid-rich { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; align-items: flex-start; }

  /* Mobile dropdown menu */
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--paper-line);
    padding: 20px var(--pad);
    gap: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.04);
  }
  .nav-menu.open a {
    font-size: 17px;
    width: 100%;
    padding: 6px 0;
  }
}


/* ============================================
   v3 REVISION — typography hierarchy + native details
   ============================================ */

/* Hero-level displays bumped to 800 (max weight available) */
.home-hero .display,
.case-hero h1,
.mpshine-hero h1,
.about-hero .display,
.products-hero .display,
.lessons-hero .display { font-weight: 800; }

/* Card titles bumped from 500 to 600 for slight hierarchy */
.cc-title { font-weight: 600; }
.product-card .pc-title { font-weight: 600; }
.direction .d-title { font-weight: 600; }

/* Hover state — cards lift slightly */
.case-card,
.other-card,
.product-card,
.flagship-card,
.direction,
.related-card,
.metric-card {
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.case-card:hover,
.other-card:hover,
.product-card:hover,
.flagship-card:hover,
.direction:hover,
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Section ornament: editorial * * * separator */
.ornament {
  text-align: center;
  padding: 72px 0 56px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.6em;
  font-weight: 500;
}

/* Navigation numbers */
.nav-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  margin-right: 6px;
  opacity: 0.7;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-menu a:hover .nav-num,
.nav-menu a.active .nav-num { opacity: 1; }

/* Sidenote — marginal annotation */
.sidenote {
  margin-top: 28px;
  padding-left: 14px;
  border-left: 2px solid var(--ochre);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 420px;
}
.sidenote::before {
  content: "† ";
  font-style: normal;
  color: var(--accent);
  margin-right: 2px;
}

/* Final CTA big whale signature */
.final-cta { position: relative; overflow: hidden; }
.final-cta .cta-signature {
  margin-top: 64px;
  text-align: center;
  pointer-events: none;
}
.final-cta .cta-signature img {
  width: 280px;
  height: auto;
  opacity: 0.18;
  filter: grayscale(1);
}
.final-cta .cta-signature .sig-line {
  display: block;
  margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 1;
}

/* Featured case card — spans 2 columns with bigger metric */
.case-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
  padding: 36px 40px;
  min-height: auto;
}
.case-card.featured .cc-featured-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid var(--paper-line);
  padding-right: 40px;
}
.case-card.featured .cc-featured-right {
  display: flex;
  flex-direction: column;
}
.case-card.featured .cc-top { margin-bottom: 0; }
.case-card.featured .cc-metric {
  font-size: 64px;
  line-height: 1;
  margin-top: 8px;
}
.case-card.featured .cc-metric-label { font-size: 14px; }
.case-card.featured .cc-metric-base { font-size: 13px; }
.case-card.featured .cc-title {
  font-size: 30px;
  line-height: 1.15;
  margin-top: 0;
}
.case-card.featured .cc-sub {
  font-size: 17px;
  margin-top: 12px;
  max-width: none;
}
.case-card.featured .cc-divider { display: none; }
.case-card.featured .cc-foot { margin-top: 20px; }

/* SVG-style arrow class, applied to existing → spans */
.arr {
  display: inline-block;
  transition: transform 0.2s ease;
}
a:hover > .arr,
a:hover .arr,
.case-card:hover .arr,
.other-card:hover .arr,
.product-card:hover .arr,
.flagship-card:hover .arr,
.direction:hover .arr,
button:hover .arr {
  transform: translateX(6px);
}

/* Body responsive */
@media (max-width: 700px) {
  html, body { font-size: 16px; line-height: 1.6; }
  .ornament { padding: 48px 0 32px; font-size: 13px; letter-spacing: 0.4em; }
  .final-cta .cta-signature img { width: 200px; }
  .case-card.featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .case-card.featured .cc-featured-left { border-right: none; padding-right: 0; }
}


/* v4 polish — paddings + density */
.ornament + section.container,
.ornament + .container,
section.container + section.container > .focus-block { padding-top: 0; }
.who-block,
.others-block,
.home-flagship-block { padding-top: 0; }
.ornament { padding: 56px 0 40px; }
.focus-block { margin-top: 0; }
.final-cta { padding-top: 120px; }


/* Mono for uppercase labels — typographic role marker */
.eyebrow,
.label,
.oc-lbl,
.focus-tag,
.f-cat,
.cat,
.d-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.focus-tag {
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Featured grid auto-flow dense */
.case-grid {
  grid-auto-flow: dense;
}


/* ============================================
   v5 PREMIUM — texture, shadows, dark moment, alive data
   ============================================ */

/* 1. Paper grain overlay — subtle texture on body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' seed='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* 2. Multi-layer shadows on card hover */
.case-card:hover,
.other-card:hover,
.product-card:hover,
.flagship-card:hover,
.direction:hover,
.related-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 8px rgba(0,0,0,0.04),
    0 12px 24px rgba(0,0,0,0.06),
    0 24px 48px rgba(0,0,0,0.05);
}

/* 3. Drop cap helper class */
.dropcap::first-letter {
  float: left;
  font-family: 'Onest', sans-serif;
  font-weight: 800;
  font-size: 5.5em;
  line-height: 0.85;
  padding: 6px 14px 0 0;
  margin-top: 4px;
  color: var(--accent);
}

/* 4. Hanging punctuation + tabular numerals */
html { hanging-punctuation: first; }
.mono, .cs-n, .cc-metric, .fm-n, .metric-card .num,
.cc-num, .cc-date, .cc-metric-base, .hero-meta {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "ss01";
}

/* 5. Dark final CTA */
.final-cta.dark {
  background: var(--ink);
  color: var(--paper);
  padding: 140px 0 100px;
  margin-top: 56px;
  position: relative;
  overflow: hidden;
}
.final-cta.dark::before {
  /* subtle vertical gradient for depth */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 165, 122, 0.06), transparent 70%);
  pointer-events: none;
}
.final-cta.dark .final-cta-inner { position: relative; z-index: 1; }
.final-cta.dark h2 { color: var(--paper); }
.final-cta.dark .sub { color: rgba(242, 235, 219, 0.7); }
.final-cta.dark .signoff { color: rgba(242, 235, 219, 0.55); }
.final-cta.dark .btn-primary-lg {
  background: var(--paper);
  color: var(--ink);
}
.final-cta.dark .btn-primary-lg:hover {
  background: var(--ochre);
  color: var(--ink);
}
.final-cta.dark .cta-signature img {
  opacity: 0.32;
  filter: grayscale(1) invert(1);
}
.final-cta.dark .cta-signature .sig-line {
  color: var(--ochre);
  opacity: 1;
}

/* 6. Animated counter — set up styling, JS does work */
.cs-n[data-target] { display: inline-block; min-width: 2ch; }

/* 7. Parallax watermark — class is applied via JS on scroll */

/* 8. Hero radial halo */
.home-hero {
  background:
    radial-gradient(ellipse 60% 50% at 30% 50%, rgba(201, 165, 122, 0.08), transparent 70%),
    var(--paper);
}

/* 9. Gradient text on featured metric */
.case-card.featured .cc-metric {
  background: linear-gradient(180deg, var(--accent) 0%, #7A1F11 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(181, 58, 38, 0.08));
}

/* 10. Brick stripe at top of page */
.top-stripe {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 40%, #7A1F11 70%, var(--accent) 100%);
  z-index: 60;
  pointer-events: none;
}


/* ============================================
   Reduced motion preference
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-watermark { transform: translateY(-50%) !important; }
  .case-card:hover,
  .other-card:hover,
  .product-card:hover,
  .flagship-card:hover,
  .direction:hover,
  .related-card:hover {
    transform: none !important;
  }
  .cs-n[data-target] {
    /* Counter animation off — show final value via JS detection */
  }
}

/* Smooth scrolling globally */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
