/* codegrit.dev — About / The Guide — Stylesheet */
/* Design tokens inherit from the site design system */

:root {
  --bg: #050505;
  --panel: #080808;
  --panel-2: #0d0d0c;
  --line: #2b241f;
  --line-soft: rgba(255, 96, 18, 0.24);
  --accent: #ff6012;
  --accent-2: #ff7a1c;
  --white: #f4f0ec;
  --body: #cbc3bb;
  --muted: #8b837c;
  --green: #42d177;
  --blue: #2784cf;
  --max: 1064px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  background: #000;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 96, 18, 0.095), transparent 230px),
    radial-gradient(circle at 18% 78%, rgba(255, 96, 18, 0.06), transparent 230px),
    var(--bg);
  color: var(--body);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.35;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 3px 3px, 3px 3px;
  mix-blend-mode: screen;
}

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

.site-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 96, 18, 0.082), transparent 250px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 300px);
}

.container {
  width: min(calc(100% - 68px), var(--max));
  margin: 0 auto;
}

/* ── Navigation ────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 96, 18, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  color: var(--white);
  box-shadow: 0 0 13px rgba(255, 96, 18, 0.52), inset 0 0 0 1px rgba(255, 96, 18, 0.2);
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
}

.brand-accent,
.accent { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
  color: #d5cdc5;
  font-size: 12px;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 7px rgba(255, 96, 18, 0.55);
}

/* ── Headings ──────────────────────────── */

h1, h2, h3, h4, p { margin: 0; }

h1, h2, h3, h4 {
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.17;
}

h1 {
  font-size: 32px;
  line-height: 1.23;
}

h2 {
  font-size: 24px;
  line-height: 1.25;
}

h3 {
  font-size: 14px;
  font-weight: 600;
}

h4 {
  font-size: 12px;
  font-weight: 600;
}

/* ── Buttons ───────────────────────────── */

.button-row {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 139px;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(242, 238, 233, 0.45);
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #130b08;
  box-shadow: 0 0 24px rgba(255, 96, 18, 0.24);
}

/* ── Section patterns ──────────────────── */

.content-section {
  padding: 40px 0 44px;
  border-bottom: 1px solid rgba(43, 36, 31, 0.72);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-label::after {
  width: 58px;
  height: 1px;
  content: "";
  background: rgba(255, 96, 18, 0.34);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 0.96fr;
  gap: 58px;
  align-items: end;
  margin-bottom: 25px;
}

.section-head h2 {
  margin-top: 14px;
  max-width: 390px;
}

.section-head p {
  max-width: 410px;
  color: #c7c0b9;
  font-size: 11px;
  line-height: 1.7;
}

.text-link {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.text-link.muted {
  color: var(--muted);
  font-weight: 400;
}

/* ── Hero section ──────────────────────── */

.hero {
  position: relative;
  padding: 40px 0 50px;
}

.hero h1 {
  max-width: 600px;
}

.hero-sub {
  max-width: 480px;
  margin-top: 20px;
  color: #cbc5bd;
  font-size: 12px;
  line-height: 1.72;
}

/* ── Hero two-column layout + stat grid ── */
.hero-two-col {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.hero-left {
  display: flex;
  flex-direction: column;
}

.hero-right {
  padding-top: 32px;
}

.stats-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-square {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px 12px;
  border: 1px solid rgba(255, 96, 18, 0.18);
  border-radius: 4px;
  background: rgba(8, 8, 8, 0.48);
  min-height: 110px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.stat-square:hover {
  border-color: rgba(255, 96, 18, 0.35);
  transform: translateY(-2px);
}

.stat-square strong {
  color: var(--accent);
  font-size: clamp(28px, 2.8vw, 36px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-square span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Guide narrative ───────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

/* ── Section jump nav ──────────────────── */

.page-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 96, 18, 0.12);
}

.page-jump-link {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 160ms ease;
}

.page-jump-link:hover {
  color: var(--accent);
}

.page-jump-sep {
  color: rgba(255, 96, 18, 0.25);
  font-size: 7px;
}

/* ── Guide narrative ───────────────────── */

.guide-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 48px;
  align-items: start;
  margin-top: 24px;
}

.guide-body {
  display: grid;
  gap: 18px;
}

.guide-body p {
  color: #c7beb7;
  font-size: 11px;
  line-height: 1.72;
  max-width: 56ch;
}

.guide-sub {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.guide-hedgehog {
  padding: 24px 28px;
  border: 1px solid rgba(255, 96, 18, 0.18);
  border-radius: 4px;
  background: rgba(8, 8, 8, 0.56);
}

.guide-hedgehog h3 {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hedgehog-circle {
  display: grid;
  gap: 12px;
  counter-reset: hedge;
}

.hedgehog-circle .hh-item {
  position: relative;
  padding: 12px 14px 12px 32px;
  border: 1px solid rgba(255, 96, 18, 0.12);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.32);
  font-size: 10px;
  line-height: 1.6;
  color: #b7aea7;
}

.hedgehog-circle .hh-item strong {
  display: block;
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 3px;
}

/* Hedgehog icon dots per item */
.hh-icon {
  position: absolute;
  left: 10px;
  top: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hh-item:nth-child(1) .hh-icon { opacity: 0.9; box-shadow: 0 0 6px rgba(255, 96, 18, 0.4); }
.hh-item:nth-child(2) .hh-icon { opacity: 0.6; box-shadow: 0 0 4px rgba(255, 96, 18, 0.2); }
.hh-item:nth-child(3) .hh-icon { opacity: 0.3; box-shadow: 0 0 2px rgba(255, 96, 18, 0.1); }

/* ── Approach section — vertical flow ──── */

.approach-two-col {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 48px;
  align-items: start;
  margin-top: 24px;
}

.approach-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.approach-flow-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 18px 0;
}

.approach-flow-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.approach-flow-content strong {
  display: block;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.approach-flow-content p {
  color: #b7aea7;
  font-size: 10px;
  line-height: 1.6;
  margin: 0;
  max-width: 48ch;
}

.approach-connector {
  height: 16px;
  width: 2px;
  margin-left: 21px;
  background: linear-gradient(to bottom, rgba(255, 96, 18, 0.35), rgba(255, 96, 18, 0.05));
}

/* Hide old approach-steps grid (replaced by vertical flow) */
.approach-steps { display: none; }

/* Hide old guide narrative text (replaced by approach section) */
.guide-body { display: none; }

/* ── Org-change quote ──────────────────── */

.org-change-block {
  position: relative;
  margin-top: 32px;
  padding: 28px 36px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 96, 18, 0.06);
  border-radius: 0 4px 4px 0;
}

.org-change-block blockquote {
  margin: 0;
  color: var(--white);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.org-change-block cite {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Proof of the Flywheel ─────────────── */

.flywheel-intro {
  max-width: 560px;
  margin-top: 20px;
  color: #c7c0b9;
  font-size: 11px;
  line-height: 1.7;
}

.flywheel-grid {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

.flywheel-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 28px;
  padding: 24px 28px;
  border: 1px solid rgba(242, 238, 233, 0.1);
  border-radius: 4px;
  background: rgba(8, 8, 8, 0.72);
  transition: border-color 180ms ease, transform 180ms ease;
  align-items: start;
}

/* Alternative card emphasis */
.flywheel-card:nth-child(even) {
  grid-template-columns: 1.2fr 1.4fr;
}

/* R&D cards — visually distinct */

.flywheel-card:hover {
  border-color: rgba(255, 96, 18, 0.35);
  transform: translateY(-2px);
}

.flywheel-card-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.flywheel-card h3 {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
}

.flywheel-card h4 {
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
  color: var(--accent);
}

.card-impact {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  grid-column: 1 / -1;
}

.card-impact h4 {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-impact p {
  color: #b0a89f;
  font-size: 10px;
  line-height: 1.65;
  margin: 0;
}

.flywheel-card p {
  margin-top: 6px;
  color: #b0a89f;
  font-size: 10px;
  line-height: 1.65;
}

.flywheel-phase-group {
  display: grid;
  gap: 0;
  padding: 0;
}

.flywheel-phase {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.flywheel-phase:last-child {
  border-bottom: 0;
}

.flywheel-phase-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.flywheel-phase p {
  margin: 0;
}

.flywheel-card .text-link {
  display: inline-block;
  margin-top: 12px;
}

/* ── CTA / Footer (matches main site) ──── */

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 96, 18, 0.72);
  border-bottom: 1px solid rgba(255, 96, 18, 0.5);
  background: rgba(8, 8, 8, 0.88);
}

.final-cta .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 36px;
  align-items: center;
}

.prompt-box {
  display: grid;
  place-items: center;
  width: 61px;
  height: 61px;
  border: 3px solid var(--accent);
  border-radius: 8px;
  color: var(--white);
  box-shadow: 0 0 13px rgba(255, 96, 18, 0.52), inset 0 0 0 1px rgba(255, 96, 18, 0.2);
  font-size: 33px;
  font-weight: 800;
  line-height: 1;
}

.final-cta h2 {
  max-width: 400px;
  font-size: 18px;
  line-height: 1.25;
}

.final-cta p {
  max-width: 380px;
  margin-top: 4px;
  color: #c6beb6;
  font-size: 10px;
  line-height: 1.6;
}

.final-cta .btn {
  min-width: 200px;
  min-height: 41px;
}

.cta-dots {
  position: absolute;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.43) 1.15px, transparent 1.2px);
  background-size: 10px 10px;
  mask-image: radial-gradient(circle, #000 0 30%, transparent 72%);
}

.cta-dots::after {
  position: absolute;
  inset: 34% 38% 32% 38%;
  content: "";
  background: var(--accent);
  filter: blur(13px);
  opacity: 0.72;
}

.cta-dots {
  top: 13px;
  width: 160px;
  height: 88px;
  opacity: 0.46;
}

.cta-dots.left { left: -40px; }
.cta-dots.right { right: -40px; }

.footer {
  padding: 22px 0 18px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
}

.footer .logo {
  gap: 0;
  color: var(--white);
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
}

/* ── Personal / About section (moved from homepage) ──── */

.about-hero-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(242, 238, 233, 0.14);
}

.about-hero-stat .about-stat-num {
  color: var(--accent);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.about-hero-stat .about-stat-label {
  color: var(--body);
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.about-sidebar-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.track-record-full {
  display: flex;
  gap: 28px;
  align-items: stretch;
}

.track-record-main {
  flex: 1;
  min-width: 0;
}

@keyframes credit-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}



.about-main-column {
  flex: 1;
  min-width: 0;
}

.about-timeline-sidebar {
  width: 270px;
  flex-shrink: 0;
  padding-top: 72px;
}

.tl-masked-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 88%, transparent 100%);
}

.about-timeline-sidebar .section-label {
  margin-bottom: 10px;
}

.about-timeline-sidebar .timeline-strip {
  margin-top: 0;
}

.about-timeline-sidebar .tl-achievement {
  max-width: 100%;
}

.about h2 {
  margin-top: 12px;
}

.bio {
  margin-top: 10px;
  color: #c7beb7;
  font-size: 10px;
  line-height: 1.58;
}

.highlight-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 14px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
  color: #aaa29b;
  font-size: 9px;
}

.highlight-list li::before {
  margin-right: 6px;
  color: var(--accent);
  content: ">";
  font-weight: 800;
}

.about .button-row {
  margin-top: 14px;
}

.about .btn {
  min-width: 118px;
  min-height: 28px;
  padding: 0 12px;
  font-size: 9px;
}

.portrait {
  width: 220px;
  height: 232px;
  border-radius: 3px;
  object-fit: cover;
  object-position: center 20%;
}

.numbers-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(242, 238, 233, 0.14);
}

.number-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.number-item strong {
  color: var(--accent);
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.number-item span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.helped-strip {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(242, 238, 233, 0.14);
}

.helped-strip .section-label {
  margin-bottom: 18px;
}

.helped-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}

.helped-item {
  padding: 18px;
  border: 1px solid rgba(242, 238, 233, 0.1);
  border-radius: 4px;
  background: rgba(8, 8, 8, 0.48);
  display: flex;
  flex-direction: column;
  transition: border-color 180ms ease, transform 180ms ease;
}

.helped-item:hover {
  border-color: rgba(255, 107, 0, 0.35);
  transform: translateY(-2px);
}

.helped-item strong {
  display: block;
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.helped-item p {
  margin-top: 8px;
  color: #b0a89f;
  font-size: 10px;
  line-height: 1.62;
  flex: 1;
}

.citation {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.timeline-strip {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 24px;
}

.timeline-strip::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(255, 96, 18, 0.3);
}

.tl-entry {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0;
}

.tl-dot {
  position: relative;
  height: 44px;
}

.tl-dot::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 22px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255, 96, 18, 0.4);
}

.tl-info {
  padding-bottom: 20px;
}

.tl-year {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}

.tl-title {
  display: block;
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  margin-top: 1px;
}

.tl-company {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 1px;
}

.tl-arr {
  color: var(--accent);
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.7;
}

.tl-achievement {
  display: block;
  color: var(--body);
  font-size: 9px;
  margin-top: 5px;
  line-height: 1.5;
  max-width: 42ch;
}

/* ── CTA / Footer (matches main site) ──── */

@media (max-width: 1100px) {
  .nav-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }
  .nav-links {
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
  }
  .nav-links a {
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  .container { width: 100%; padding: 0 16px; }
  .nav-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }
  .section-head,
  .guide-layout,
  .final-cta .container,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .hero-two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-right {
    padding-top: 0;
    order: 0;
  }
  .stats-grid-2x2 {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat-square {
    min-height: 90px;
    padding: 16px 10px;
  }
  .page-jump {
    gap: 4px 12px;
  }
  .nav-links {
    flex-direction: row;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
  }
  h1 { font-size: 28px; }
  .section-head { gap: 14px; }
  .guide-layout { gap: 24px; }
  .guide-hedgehog { order: -1; }
  .approach-two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .approach-flow-step {
    padding: 14px 0;
  }
  .approach-connector {
    height: 12px;
    margin-left: 21px;
  }
  .flywheel-card { grid-template-columns: 1fr; }
  .flywheel-card:nth-child(even) { grid-template-columns: 1fr; }
  .flywheel-card h3 { margin-top: 4px; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { order: -1; }
  .about-hero-stat { flex-direction: column; gap: 6px; }
  .track-record-full { flex-direction: column; }
  .track-record-full .about-timeline-sidebar {
    width: 100% !important;
  }
  .track-record-full .timeline-strip {
    animation: none !important;
  }
  .track-record-full .tl-masked-wrapper {
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }
  .about-sidebar-layout { flex-direction: column; gap: 32px; }
  .about-timeline-sidebar {
    width: 100%;
    position: static;
    padding-top: 0;
  }
  .tl-masked-wrapper {
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }
  .helped-grid { grid-template-columns: 1fr 1fr; }
  .final-cta .container { gap: 16px; }
  .footer-inner { gap: 16px; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .nav-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .nav-links a {
    white-space: nowrap;
    text-align: center;
    font-size: 11px;
    padding: 6px 0;
  }
}

/* iPhone/Safari hard guard: force two-row header on touch devices
   even when viewport behaves like desktop width */
@media (hover: none) and (pointer: coarse) {
  .nav-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }
  .nav-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .nav-links a {
    white-space: nowrap;
    text-align: center;
    font-size: 11px;
    padding: 6px 0;
  }
}
