/* Growth OS public site: the homepage's styles, shared by the homepage and the
   partner pages so they keep one palette, typography, spacing and visual
   language. Colours come from palette.css. */

:root {
  --max: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--sans);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; }

.wrap { position: relative; width: min(100%, var(--max)); margin: 0 auto; padding-inline: var(--gutter); }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; height: 80px; border-bottom: 1px solid transparent; transition: height 400ms var(--ease), background-color 400ms ease, border-color 400ms ease; }
.nav.solid { height: 64px; border-color: var(--line); background: color-mix(in srgb, var(--canvas) 92%, transparent); backdrop-filter: blur(16px) saturate(1.2); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 18.5px; font-weight: 600; }
.mark { position: relative; display: inline-block; width: 23px; height: 23px; }
.mark i { position: absolute; bottom: 0; width: 3px; border-radius: 2px; }
.mark i:nth-child(1) { left: 0; height: 15px; background: var(--strategy); }
.mark i:nth-child(2) { left: 5px; height: 21px; background: var(--value); }
.mark i:nth-child(3) { left: 10px; height: 12px; background: var(--story); }
.mark i:nth-child(4) { left: 15px; height: 18px; background: var(--engine); }
.mark i:nth-child(5) { left: 20px; height: 23px; background: var(--growth); }
.nav-links { display: flex; align-items: center; gap: clamp(22px, 2.5vw, 36px); color: var(--slate); font-size: 14px; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.home-menu { position: relative; display: none; margin-left: auto; }
.home-menu summary { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; list-style: none; }
.home-menu summary::-webkit-details-marker { display: none; }
.home-menu-panel { position: absolute; top: calc(100% + 12px); right: 0; width: min(300px, calc(100vw - 40px)); padding: 8px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 24px 60px -38px color-mix(in srgb, var(--ink) 60%, transparent); }
.home-menu-panel a { display: flex; min-height: 48px; align-items: center; border-bottom: 1px solid var(--line-2); color: var(--slate); font-size: 15px; }
.home-menu-panel a:last-child { border-bottom: 0; }

.button, .nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border: 1px solid var(--ink); border-radius: 100px;
  background: var(--ink); color: var(--paper);
  font-size: 14.5px; font-weight: 500; white-space: nowrap;
  transition: transform 220ms var(--ease), box-shadow 280ms ease, background-color 220ms ease, color 220ms ease;
}
.nav-cta { min-height: 42px; padding-inline: 20px; background: transparent; color: var(--ink); font-size: 13.5px; }
.button.secondary { border-color: var(--line); background: transparent; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -18px color-mix(in srgb, var(--ink) 55%, transparent); }
  .nav-cta:hover { background: var(--ink); color: var(--paper); }
}
.button:active, .nav-cta:active { transform: scale(.98); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.018em; text-wrap: balance; }
h1 em, h2 em { color: var(--accent); font-style: italic; font-weight: 500; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 24px; color: var(--accent); font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .55; }
.section { padding: clamp(80px, 10vw, 136px) 0; }
.paper { background: var(--paper); }
.soft { background: var(--paper-2); }
.section-title { max-width: 22ch; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.section-copy { max-width: 60ch; margin-top: 20px; color: var(--slate); font-size: clamp(15.5px, 1.3vw, 17px); line-height: 1.72; }

.reveal { transition: opacity 900ms ease, transform 900ms var(--ease); }
.motion-ready .reveal:not(.in) { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; }

/* Hero */
.hero { padding-top: clamp(128px, 16vh, 168px); overflow: clip; }
.hero h1 { max-width: 19ch; font-size: clamp(38px, 5.2vw, 66px); line-height: 1.05; }
.hero-sub { max-width: 58ch; margin-top: 26px; color: var(--slate); font-size: clamp(16px, 1.35vw, 18px); line-height: 1.68; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.strata { height: 220px; margin-top: 40px; }
.strata canvas { display: block; width: 100%; height: 100%; }

/* Example */
.example { margin-top: 44px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 30px 70px -52px color-mix(in srgb, var(--ink) 40%, transparent); overflow: hidden; }
.example-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.example-head strong { font-size: 15px; font-weight: 600; }
.example-tag { color: var(--slate); font-size: 12.5px; }
.example-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.example-focus { padding: 26px 24px; border-right: 1px solid var(--line); background: var(--accent-tint); }
.example-focus span, .example-grid dt, .example-actions h3 { color: var(--slate); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-family: var(--sans); }
.example-focus p { margin-top: 10px; font-family: var(--serif); font-size: 23px; line-height: 1.25; }
.example-focus small { display: block; margin-top: 12px; color: var(--slate); font-size: 14.5px; line-height: 1.6; }
.example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; padding: 24px; }
.example-grid dd { margin-top: 4px; font-size: 15px; line-height: 1.5; }
.example-actions { padding: 0 24px 24px; }
.example-actions ol { margin-top: 10px; padding-left: 20px; color: var(--ink); font-size: 15px; line-height: 1.6; }
.example-actions li + li { margin-top: 6px; }

/* Stories */
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.story { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.story-sector { color: var(--slate); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.story h3 { margin-top: 12px; font-size: 22px; line-height: 1.25; }
.story dl { margin-top: 16px; }
.story dt { margin-top: 14px; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.story dd { margin-top: 4px; color: var(--slate); font-size: 15px; line-height: 1.65; }
.story details { margin-top: 18px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.story summary { display: flex; min-height: 44px; align-items: center; cursor: pointer; color: var(--ink); font-size: 14.5px; font-weight: 500; }
.story details ul { padding-left: 18px; color: var(--slate); font-size: 14.5px; line-height: 1.65; }
.story details li + li { margin-top: 6px; }
.stories-note { margin-top: 20px; max-width: 72ch; color: var(--muted); font-size: 14px; }

/* Stages */
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 44px; border-top: 1px solid var(--ink); }
.stage { padding: 26px 26px 6px 0; }
.stage + .stage { padding-left: 26px; border-left: 1px solid var(--line); }
.stage span { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .14em; }
.stage h3 { margin-top: 12px; font-size: 23px; line-height: 1.2; }
.stage p { margin-top: 10px; color: var(--slate); font-size: 15.5px; line-height: 1.68; }
.stages-note { margin-top: 28px; color: var(--muted); font-size: 14.5px; }
.stages-note a, .principle a, .founder-line a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Fit */
.fit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.fit-list { border-top: 1px solid var(--ink); }
.fit-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.fit-item span { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.fit-item p { margin-top: 8px; color: var(--ink); font-size: 16px; line-height: 1.6; }

/* Trust */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 40px; }
.principle { padding: 24px 0; border-top: 1px solid var(--line); }
.principle h3 { font-size: 20px; }
.principle p { margin-top: 8px; max-width: 52ch; color: var(--slate); font-size: 15.5px; line-height: 1.7; }
.founder-line { display: flex; align-items: center; gap: 18px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.founder-line img { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.founder-line p { max-width: 64ch; color: var(--slate); font-size: 15px; line-height: 1.6; }
.founder-line strong { color: var(--ink); font-weight: 600; }

/* Questions */
.faq-list { max-width: 860px; margin-top: 48px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; gap: 24px; min-height: 64px; align-items: center; padding: 18px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 500; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 auto; color: var(--accent); font-size: 22px; font-weight: 400; transition: transform 250ms var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { max-width: 68ch; padding-bottom: 22px; color: var(--slate); font-size: 15.5px; line-height: 1.72; }

/* Close */
.close { padding: clamp(84px, 10vw, 128px) 0; border-top: 1px solid var(--line); background: var(--paper); text-align: center; }
.close h2 { max-width: 20ch; margin: 0 auto; font-size: clamp(32px, 4vw, 50px); line-height: 1.1; }
.close p { max-width: 54ch; margin: 20px auto 0; color: var(--slate); font-size: 16.5px; }
.close .button { margin-top: 32px; }

/* Footer */
footer { padding: 64px 0 40px; border-top: 1px solid var(--line); background: var(--canvas); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.footer-grid > div > p { max-width: 32ch; margin-top: 14px; color: var(--muted); font-size: 14px; }
.footer-col h2 { margin-bottom: 12px; color: var(--muted); font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.footer-col a { display: flex; min-height: 36px; align-items: center; color: var(--slate); font-size: 14px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .home-menu { display: block; }
  .stories { grid-template-columns: 1fr; max-width: 680px; }
  .fit { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .nav { height: 68px; }
  .nav-cta { display: none; }
  .hero { padding-top: 112px; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 48px); }
  .hero-actions .button { width: 100%; }
  .strata { height: 150px; margin-top: 28px; }
  .example-body, .example-grid { grid-template-columns: 1fr; }
  .example-focus { border-right: 0; border-bottom: 1px solid var(--line); }
  .stages { grid-template-columns: 1fr; }
  .stage, .stage + .stage { padding: 22px 0 4px; border-left: 0; }
  .stage + .stage { border-top: 1px solid var(--line); }
  .principles { grid-template-columns: 1fr; }
  .founder-line { align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .strata, .hero-actions, .close .button { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Partners: the homepage section and the two partner pages, built from the
   components above (eyebrow, section title and copy, stages, cards, questions,
   close) with these few additions. */
.partner-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.partner-card { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 34px); border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.partner-card .story-sector { color: var(--accent); }
.partner-card h3 { margin-top: 12px; font-size: clamp(22px, 2.2vw, 27px); line-height: 1.2; }
.partner-card p { margin-top: 12px; color: var(--slate); font-size: 15.5px; line-height: 1.7; }
.partner-card ul { margin-top: 14px; padding-left: 18px; color: var(--slate); font-size: 15px; line-height: 1.65; }
.partner-card li + li { margin-top: 6px; }
.partner-card .text-link { margin-top: auto; padding-top: 22px; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; color: var(--accent); font-size: 14.5px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

.partner-hero { padding-bottom: clamp(64px, 9vw, 120px); }
.partner-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(36px, 6vw, 84px); align-items: center; }
.partner-hero .hero-note { margin-top: 14px; color: var(--muted); font-size: 14px; }
.journey-card { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 30px 70px -52px color-mix(in srgb, var(--ink) 40%, transparent); overflow: hidden; }
.journey-card header { padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--accent-tint); }
.journey-card header span { color: var(--slate); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.journey-card header p { margin-top: 6px; font-family: var(--serif); font-size: 21px; line-height: 1.25; }
.journey-card ol { list-style: none; counter-reset: step; padding: 6px 24px 10px; }
.journey-card li { counter-increment: step; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.journey-card li:last-child { border-bottom: 0; }
.journey-card li::before { content: "0" counter(step); grid-row: span 2; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .14em; padding-top: 3px; }
.journey-card strong { font-size: 15.5px; font-weight: 600; }
.journey-card li span { color: var(--slate); font-size: 14.5px; line-height: 1.6; }

.callout { margin-top: 36px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: 14px; background: var(--accent-tint); }
.callout h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.25; }
.callout p { max-width: 68ch; margin-top: 10px; color: var(--slate); font-size: 15.5px; line-height: 1.7; }
.callout small { display: block; margin-top: 14px; color: var(--muted); font-size: 13.5px; }
.steps-list { max-width: 860px; margin-top: 36px; border-top: 1px solid var(--ink); counter-reset: step; list-style: none; }
.steps-list li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps-list li::before { content: "0" counter(step); grid-row: span 2; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .14em; padding-top: 4px; }
.steps-list strong { font-size: 17px; font-weight: 600; }
.steps-list span { color: var(--slate); font-size: 15.5px; line-height: 1.7; }
.section-copy + .section-copy { margin-top: 14px; }
.partner-audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }

@media (max-width: 1040px) {
  .partner-hero-grid { grid-template-columns: 1fr; }
  .partner-audiences { grid-template-columns: 1fr; max-width: 680px; }
}
@media (max-width: 720px) {
  .partner-cards { grid-template-columns: 1fr; }
  .steps-list li { grid-template-columns: 34px minmax(0, 1fr); }
}
