/* =========================================================================
   Farag & Co. — Design System
   Single stylesheet for every page. Tokens, reset, type scale, components.
   Source of truth: DESIGN.md. Apple-grade, original, restrained motion.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */
:root {
  /* Color */
  --text:          #1d1d1f;
  --text-muted:    #6e6e73;
  --text-faint:    #6d6d72;
  --bg:            #ffffff;
  --bg-gray:       #f5f5f7;
  --bg-black:      #000000;
  --text-on-black: #f5f5f7;
  --text-on-black-muted: #a1a1a6;
  --accent:        #0066cc;
  --accent-hover:  #0077ed;
  --hairline:      #d2d2d7;
  --hairline-on-black: rgba(255, 255, 255, 0.18);

  /* Radius */
  --radius:        18px;
  --radius-sm:     12px;
  --radius-pill:   980px;

  /* Layout */
  --maxw:          980px;
  --maxw-wide:     1200px;
  --gutter:        22px;

  /* Type */
  --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
          "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Spacing scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Section rhythm */
  --section-pad: clamp(60px, 9vw, 120px);

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 18px 50px -12px rgba(0, 0, 0, 0.18);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 200ms;

  /* Nav */
  --nav-h: 48px;
  --subnav-h: 52px;
}

/* Sections land below both the sticky nav and an opt-in sticky sub-nav. */
:root:has(.subnav) {
  scroll-padding-top: calc(var(--nav-h) + var(--subnav-h) + 16px);
}

/* -------------------------------------------------------------------------
   2. Modern reset
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img, picture, svg, video, canvas {
  display: block;
  max-width: 100%;
}

img, video { height: auto; }

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button { background: none; border: none; cursor: pointer; }

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

ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4, h5, h6 { font-weight: 600; }

:where(h1, h2, h3, h4, h5, h6, p) { overflow-wrap: break-word; }

/* Accessible focus ring */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(0, 102, 204, 0.16);
}

/* -------------------------------------------------------------------------
   3. Layout primitives
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide { max-width: var(--maxw-wide); }

.section {
  padding-block: var(--section-pad);
}

.section--gray { background: var(--bg-gray); }

.section--black {
  background: var(--bg-black);
  color: var(--text-on-black);
}

.section--tight { padding-block: clamp(40px, 6vw, 72px); }

/* -------------------------------------------------------------------------
   4. Typography scale
   ------------------------------------------------------------------------- */
.eyebrow {
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

/* Accent is reserved for headlines; opt in when an eyebrow must pop. */
.eyebrow--accent { color: var(--accent); }
.eyebrow--muted { color: var(--text-muted); }

.headline {
  font-size: clamp(40px, 7.2vw, 80px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

.headline--section {
  font-size: clamp(32px, 4.6vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.subhead {
  font-size: clamp(22px, 2.7vw, 28px);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.2;
}

.lead {
  font-size: clamp(19px, 2.1vw, 21px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-muted);
  text-wrap: pretty;
}

.body {
  font-size: 17px;
  line-height: 1.5;
}

.caption {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-faint);
}

/* Muted helpers honoring surface context */
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.section--black .lead,
.section--black .text-muted { color: var(--text-on-black-muted); }
.section--black .text-faint { color: var(--text-on-black-muted); }
.section--black .eyebrow { color: #5aa9ff; }

.measure { max-width: 40em; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* -------------------------------------------------------------------------
   5. Hero
   ------------------------------------------------------------------------- */
.hero {
  text-align: center;
  padding-block: clamp(72px, 12vw, 140px);
}

.hero .lead {
  margin-top: var(--space-6);
  margin-inline: auto;
  max-width: 36em;
}

.hero .eyebrow { display: block; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  justify-content: center;
  align-items: center;
  margin-top: var(--space-10);
}

/* Decorative hero backdrop layer; positioning lives here, the page supplies
   its own gradient. JS gently parallaxes it via [data-parallax]. */
.hero__parallax {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

/* Reusable hero backdrop: soft stacked auras behind centered hero copy.
   Add `hero--aura` to the hero's section (or container). */
.hero--aura {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero--aura::before {
  content: "";
  position: absolute;
  inset: -25% -10% auto -10%;
  height: 150%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 52% at 50% 0%, rgba(0, 102, 204, 0.10), transparent 70%),
    radial-gradient(34% 42% at 82% 12%, rgba(90, 200, 250, 0.10), transparent 70%),
    radial-gradient(32% 40% at 14% 22%, rgba(10, 132, 255, 0.08), transparent 70%);
}

/* Parallax art layer hook (JS applies a capped transform). */
[data-parallax] { will-change: transform; }

/* -------------------------------------------------------------------------
   6. Links & buttons
   ------------------------------------------------------------------------- */
.link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 17px;
  font-weight: 400;
  min-height: 44px;
  transition: color var(--dur) var(--ease);
}

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

.link svg,
.link .chev {
  width: 18px;
  height: 18px;
  transition: transform var(--dur) var(--ease);
}

.link:hover svg,
.link:hover .chev { transform: translateX(3px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #ffffff;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), transform 120ms var(--ease);
}

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

.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: #ffffff;
}

.btn--lg { padding: 15px 30px; font-size: 19px; }
.btn--block { display: flex; width: 100%; }

.section--black .btn--outline {
  color: var(--text-on-black);
  border-color: var(--hairline-on-black);
}
.section--black .btn--outline:hover {
  background: var(--text-on-black);
  color: var(--bg-black);
}

/* -------------------------------------------------------------------------
   7. Navigation
   ------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--hairline);
  background: rgba(255, 255, 255, 0.86);
}

.nav-inner {
  max-width: var(--maxw-wide);
  margin-inline: auto;
  height: var(--nav-h);
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.nav-logo__mark {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  margin-inline: auto;
}

.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 150ms var(--ease);
  padding-block: 6px;
}

.nav-link:hover { color: var(--text); }

/* Active/hover indicator: scaled underline (no font-weight width shift). */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease);
}

.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

.nav-link.is-active { color: var(--text); }

/* Mega-menu trigger: top-level link that reveals a flyout. */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-link--mega { gap: 4px; }

.nav-link__caret {
  width: 14px;
  height: 14px;
  transition: transform var(--dur) var(--ease);
}

.nav-item--mega:hover .nav-link__caret,
.nav-item--mega:focus-within .nav-link__caret { transform: rotate(180deg); }

.nav-item--mega.is-collapsed .nav-link__caret { transform: none; }

.mega {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 101;
  min-width: 320px;
  padding: var(--space-2);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              visibility var(--dur) var(--ease);
}

/* Invisible bridge so the cursor can cross the gap without closing. */
.mega::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-item--mega:hover .mega,
.nav-item--mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Esc collapses the flyout even while focus/hover persists. */
.nav-item--mega.is-collapsed .mega {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
}

.mega__grid { display: grid; gap: 2px; }

.mega__link {
  display: block;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  transition: background 150ms var(--ease);
}

.mega__link:hover { background: var(--bg-gray); }

.mega__link-title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.mega__link-desc {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  transition: background 150ms var(--ease);
}

.nav-cta:hover { background: var(--accent-hover); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding: var(--space-8) var(--gutter) var(--space-16);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              visibility var(--dur) var(--ease);
  overflow-y: auto;
}

.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-menu .nav-link {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--hairline);
}

.mobile-menu .nav-link.is-active { color: var(--accent); }
.mobile-menu .nav-link::after { content: none; }

.mobile-menu .nav-cta {
  align-self: flex-start;
  min-height: 44px;
  padding: 12px 24px;
  font-size: 17px;
  margin-top: var(--space-6);
}

/* Lock body scroll when menu open */
body.menu-open { overflow: hidden; }

/* -------------------------------------------------------------------------
   7b. Sticky sub-nav (opt-in, for long pages)
   ------------------------------------------------------------------------- */
.subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--hairline);
}

.subnav__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  height: var(--subnav-h);
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav__inner::-webkit-scrollbar { display: none; }

.subnav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 6px;
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 150ms var(--ease);
}

.subnav__link:hover { color: var(--text); }
.subnav__link.is-active { color: var(--text); }

.subnav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* -------------------------------------------------------------------------
   8. Tiles
   ------------------------------------------------------------------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.tiles--single { grid-template-columns: 1fr; }

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-gray);
  min-height: 460px;
  display: flex;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.tile--full { grid-column: 1 / -1; }

.tile--dark {
  background: var(--bg-black);
  color: var(--text-on-black);
}

.tile--gray { background: var(--bg-gray); }

.tile--accent {
  background: linear-gradient(150deg, #0066cc 0%, #0a84ff 100%);
  color: #ffffff;
}

/* Copy-only tiles: shorter box, body anchored to the bottom. */
.tile--compact { min-height: 300px; }
.tile--compact .tile__body { justify-content: flex-end; }

/* Art-only tiles (decorative SVG, no copy): no tall empty band. */
.tile--art-only { min-height: 200px; }

.tile__body {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.tile--full .tile__body {
  text-align: center;
  align-items: center;
  margin-inline: auto;
  max-width: 720px;
  padding-block: clamp(48px, 7vw, 88px);
}

.tile__body .link,
.tile__body .lead { margin-top: var(--space-2); }

.tile--dark .lead { color: rgba(255, 255, 255, 0.82); }
.tile--accent .lead { color: #ffffff; }

.tile--dark .link,
.tile--accent .link { color: #5aa9ff; }
.tile--accent .link { color: #ffffff; }

/* Stretched-link overlay: makes the whole card a single click/tap target.
   Put on the tile's primary link; tile must be position:relative (it is). */
.tile__stretch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* Decorative CSS/SVG visual layer inside tiles */
.tile__art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}

/* Hover lift only on pointer devices; keyboard focus gets parity. */
@media (hover: hover) {
  .tile.is-interactive:hover,
  .tile.is-interactive:focus-within {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }
}

/* -------------------------------------------------------------------------
   9. 3-up columns
   ------------------------------------------------------------------------- */
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}

.col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.col__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--bg-gray);
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.col__icon svg { width: 24px; height: 24px; }

.section--black .col__icon {
  background: rgba(255, 255, 255, 0.08);
  color: #5aa9ff;
}

/* -------------------------------------------------------------------------
   10. Stat strip
   ------------------------------------------------------------------------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.stat__value {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}

.section--black .stat__value { color: var(--text-on-black); }

.stat__label {
  font-size: 15px;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------
   11. Quote / testimonial
   ------------------------------------------------------------------------- */
.quote {
  max-width: 22em;
  margin-inline: auto;
  text-align: center;
}

.quote p {
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.18;
  text-wrap: balance;
}

.quote__cite {
  display: block;
  margin-top: var(--space-6);
  font-size: 17px;
  font-weight: 400;
  font-style: normal;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------
   12. Footer
   ------------------------------------------------------------------------- */
.footer {
  background: var(--bg-gray);
  color: var(--text-muted);
  border-top: 1px solid var(--hairline);
  padding-block: var(--space-12) var(--space-10);
  font-size: 12px;
  line-height: 1.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-10) var(--space-8);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--hairline);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
}

.footer-col a {
  color: var(--text-muted);
  transition: color 150ms var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
}

.footer-col a:hover { color: var(--text); }
.footer-col a svg { width: 13px; height: 13px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-6);
}

.footer-legal {
  color: var(--text-faint);
}

.footer .social-links { margin-right: -10px; }

/* -------------------------------------------------------------------------
   13. Scroll reveal
   ------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Stagger helper: set --reveal-delay inline on children */
.reveal[style*="--reveal-delay"] {
  transition-delay: var(--reveal-delay, 0ms);
}

/* -------------------------------------------------------------------------
   14. Utilities
   ------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: #ffffff;
  font-size: 14px;
  transition: top 150ms var(--ease);
}

.skip-link:focus { top: 10px; }

.stack > * + * { margin-top: var(--space-6); }
.stack-sm > * + * { margin-top: var(--space-3); }

/* -------------------------------------------------------------------------
   15. Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 834px) {
  .cols-3 { grid-template-columns: 1fr; gap: var(--space-10); }

  /* Collapse tiles at the same breakpoint as cols-3 + the hamburger,
     so 735–834px never shows a cramped 2-up. */
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 380px; }
  .tile--compact { min-height: 260px; }
  .tile--art-only { min-height: 180px; }
}

@media (max-width: 734px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-social { display: none; }
  .nav-toggle { display: flex; }

  .stat-strip { grid-template-columns: 1fr; gap: var(--space-10); }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }

  /* Comfortable tap targets in the footer on touch screens. */
  .footer-col { gap: var(--space-1); }
  .footer-col a { min-height: 44px; }
}

/* -------------------------------------------------------------------------
   15b. Contact (form + direct details)
   ------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(var(--space-10), 6vw, var(--space-24));
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field__label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.field__input,
.field__textarea {
  width: 100%;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  min-height: 48px;
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.field__textarea {
  min-height: 160px;
  resize: vertical;
}

.field__input::placeholder,
.field__textarea::placeholder { color: var(--text-faint); }

.field__input:focus-visible,
.field__textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.18);
}

.form-note { margin-top: var(--space-2); }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.detail {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.detail__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-gray);
  color: var(--accent);
}

.detail__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.detail__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-1);
}

.detail__body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
}

.detail__body a { color: var(--accent); }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   15c. Social links (nav, mobile menu, footer)
   ------------------------------------------------------------------------- */
.social-links {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: color 150ms var(--ease), background 150ms var(--ease);
}

.social-link:hover { color: var(--text); background: rgba(0, 0, 0, 0.06); }
.social-link svg { width: 20px; height: 20px; }

/* Tighter footprint inside the slim sticky nav. */
.nav-social .social-link { width: 36px; height: 36px; }
.nav-social .social-link svg { width: 19px; height: 19px; }

.mobile-menu__social { margin-top: var(--space-8); }

.section--black .social-link,
.footer .social-link { color: var(--text-muted); }
.section--black .social-link:hover { color: var(--text-on-black); background: rgba(255, 255, 255, 0.12); }

/* -------------------------------------------------------------------------
   15d. Venture card (name + value-prop + person + outcome + tier badge)
   ------------------------------------------------------------------------- */
.venture-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
  padding: clamp(24px, 3vw, 36px);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

@media (hover: hover) {
  .venture-card.is-interactive:hover,
  .venture-card.is-interactive:focus-within {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }
}

.venture-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.venture-card__name {
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.15;
}

.venture-card__value { color: var(--text-muted); }

.venture-card__tier {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-gray);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.venture-card__tier::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.venture-card__tier--operating::before { background: #1d8f4e; }
.venture-card__tier--building::before { background: var(--accent); }
.venture-card__tier--exploring::before { background: var(--text-faint); }

.venture-card__outcome {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-top: var(--space-4);
  border-top: 1px solid var(--hairline);
}

.venture-card__outcome-value {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}

.venture-card__outcome-label {
  font-size: 14px;
  color: var(--text-muted);
}

.venture-card__person {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
}

.venture-card__avatar {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(150deg, var(--accent), #0a84ff);
}

.venture-card__person-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.venture-card__person-role {
  font-size: 13px;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------
   15e. Proof strip (big number + label)
   ------------------------------------------------------------------------- */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.proof {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: center;
}

.proof__value {
  font-size: clamp(40px, 5.6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}

.proof__label {
  font-size: 15px;
  color: var(--text-muted);
  text-wrap: balance;
}

.section--black .proof__value { color: var(--text-on-black); }

/* -------------------------------------------------------------------------
   15f. Pillars (max 3 thesis pillars)
   ------------------------------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 44px);
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 2px solid var(--text);
}

.pillar__index {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.pillar__title {
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.18;
}

.pillar__body { color: var(--text-muted); }

.section--black .pillar { border-top-color: var(--text-on-black); }

/* -------------------------------------------------------------------------
   15g. FAQ accordion (accessible)
   ------------------------------------------------------------------------- */
.faq {
  max-width: 760px;
  margin-inline: auto;
  border-top: 1px solid var(--hairline);
}

.faq-item { border-bottom: 1px solid var(--hairline); }

.faq-item__q { margin: 0; font-size: inherit; }

.faq-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  min-height: 44px;
  padding: var(--space-5) 0;
  text-align: left;
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 150ms var(--ease);
}

.faq-item__trigger:hover { color: var(--accent); }

.faq-item__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  transition: transform var(--dur) var(--ease);
}

.faq-item__trigger[aria-expanded="true"] .faq-item__icon { transform: rotate(180deg); }

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows var(--dur) var(--ease),
              visibility var(--dur) var(--ease);
}

.faq-item.is-open .faq-item__panel {
  grid-template-rows: 1fr;
  visibility: visible;
}

.faq-item__panel-inner { overflow: hidden; min-height: 0; }

.faq-item__a {
  padding-bottom: var(--space-5);
  max-width: 62ch;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------
   15h. Inquiry select (segmented radiogroup for contact)
   ------------------------------------------------------------------------- */
.inquiry-select {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.inquiry-select__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 150ms var(--ease), background 150ms var(--ease),
              border-color 150ms var(--ease);
}

.inquiry-select__option:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.inquiry-select__option[aria-checked="true"] {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

/* -------------------------------------------------------------------------
   15i. Founder (portrait placeholder block + bio)
   ------------------------------------------------------------------------- */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.founder__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 20% 12%, rgba(90, 200, 250, 0.22), transparent 60%),
    linear-gradient(150deg, #e9eef5 0%, #dde6f1 100%);
  display: flex;
  align-items: flex-end;
}

.founder__portrait::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(56px, 12vw, 96px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: rgba(29, 29, 31, 0.16);
}

.founder__portrait-note {
  position: relative;
  z-index: 1;
  margin: var(--space-4);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  color: var(--text-faint);
}

.founder__bio {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

@media (max-width: 834px) {
  .pillars { grid-template-columns: 1fr; gap: var(--space-10); }
}

@media (max-width: 820px) {
  .founder { grid-template-columns: 1fr; }
  .founder__portrait { max-width: 320px; }
}

/* -------------------------------------------------------------------------
   16. Reduced motion
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  [data-parallax] { transform: none !important; }
}
