/* ==========================================================================
   STORYMATTERS — v0, iteration 2
   Same approved positioning/narrative as before. This pass: fixed real
   implementation bugs, reworked vertical rhythm so section height follows
   content instead of a uniform padding value, and removed the repeated
   "label -> heading -> paragraph -> hairline -> boxed grid" formula that
   made every section look component-generated. See git log for the full
   before/after per section.
   ========================================================================== */
:root{
  --ink:#2b2a29;
  --paper:#f4f1ea;
  --paper-soft:#faf7f0;
  --red:#e31e24;
  --muted:#6b6a62;
  --line:#ddd7c8;
  --sans:"Manrope",Arial,sans-serif;
  --mono:"DM Mono",monospace;
  --nav-h:82px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);line-height:1.5;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}
em{font-style:normal;font-weight:600;color:var(--muted)}
del{text-decoration:line-through;text-decoration-color:var(--red);text-decoration-thickness:2px;opacity:.55;font-weight:inherit}
::selection{background:var(--red);color:#fff}

/* every anchor-jump target needs this, or the sticky nav covers the
   heading when a nav link scrolls to it */
section[id],#top{scroll-margin-top:calc(var(--nav-h) + 14px)}

/* nav — logo, three plain links, one CTA. a hamburger only appears
   below 900px, where it opens a simple link list, not a mega-menu. */
.nav{display:flex;align-items:center;justify-content:space-between;height:var(--nav-h);padding:0 5vw;position:sticky;top:0;background:rgba(244,241,234,.9);backdrop-filter:blur(10px);z-index:20;border-bottom:1px solid var(--line)}
.brand-logo{height:38px;width:auto;display:block}
.footer-top .brand-logo{height:30px}
.nav-links{display:flex;align-items:center;gap:28px}
.nav-links a{font-size:13px;font-weight:600;color:var(--muted)}
.nav-links a:hover{color:var(--ink)}
.nav-right{display:flex;align-items:center;gap:18px}
.menu-btn{display:none;border:0;background:none;font-size:20px;color:var(--ink);padding:4px;line-height:1}
.mobile-menu{display:none;position:fixed;inset:var(--nav-h) 0 0 0;background:var(--paper);z-index:19;flex-direction:column;padding:34px 5vw;gap:26px}
body.menu-open .mobile-menu{display:flex}
body.menu-open{overflow:hidden}
.mobile-menu a{font-size:19px;font-weight:700}
.mobile-menu .btn{align-self:flex-start;margin-top:6px}

/* buttons */
.btn{display:inline-flex;align-items:center;gap:10px;padding:14px 22px;font:600 13px var(--sans);border:1.5px solid var(--ink);white-space:nowrap}
.btn-primary{background:var(--ink);color:var(--paper)}
.btn-primary:hover{background:var(--red);border-color:var(--red)}
.btn-secondary{background:transparent;color:var(--ink)}
.btn-secondary:hover{border-color:var(--red);color:var(--red)}
.nav .btn{padding:10px 16px;font-size:12px}

/* section rhythm — padding now varies by how much a section actually
   holds, instead of one value applied everywhere regardless of content. */
.section{padding:88px 5vw}
.section.roomy{padding:120px 5vw}
.section.tight{padding:64px 5vw}
.section.dark{background:var(--ink);color:var(--paper)}
.section.dark .muted{color:#9c9a92}
.eyebrow{font:600 11px var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin:0 0 14px}
.eyebrow::after{content:"";display:block;width:26px;height:2px;background:var(--red);margin-top:9px}
.section.dark .eyebrow{color:#8f8d84}
h1,h2,h3{margin:0;letter-spacing:-.02em}
.muted{color:var(--muted)}
.accent{color:var(--red)}

/* hero: content-driven height (min-height, not a fixed vh block), so it
   doesn't leave a gap on unusual viewport ratios. still the one section
   allowed to feel near-full-screen. */
.hero{min-height:min(84vh,760px);padding:calc(var(--nav-h) + 56px) 5vw 56px;display:grid;grid-template-columns:1fr 320px;gap:60px;align-items:center}
.hero-main{max-width:800px}
.hero h1{font:700 clamp(38px,5.6vw,74px)/1.12 var(--sans);letter-spacing:-.03em;max-width:1000px;margin:0 0 32px}
.hero .lede{font-size:19px;line-height:1.55;color:var(--muted);max-width:560px;margin:0 0 40px}
.hero .actions{display:flex;gap:18px;flex-wrap:wrap}
.hero-insight{padding:26px 24px;border:1px solid var(--line);background:var(--paper-soft)}
.hero-insight .quote-mark{display:block;font:800 36px/1 var(--sans);color:var(--red);margin:0 0 8px}
.hero-insight h3{font-size:17px;margin:0 0 10px;letter-spacing:-.01em;line-height:1.3}
.hero-insight p{margin:0;font-size:14px;line-height:1.6;color:var(--muted)}

/* problem + insight: paired side by side (symptom / mechanism) instead
   of two stacked full-width sections, matching the solution/how-we-
   think pairing below it. */
.problem-insight-pair{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:start}
.problem-list{margin-top:40px;display:flex;flex-direction:column;gap:28px}
.item-title{font-size:clamp(19px,2.3vw,23px);font-weight:700;letter-spacing:-.01em;margin:0 0 8px}
.item-desc{margin:0;font-size:15px;line-height:1.6;color:var(--muted)}

/* insight: the signature framework as one flowing, shrinking sentence
   instead of a bordered grid — the sizing alone carries the "meaning
   fades at each stage" idea, so no numbers are needed to label it.
   stacked vertically (arrows dropped) since it now lives in a column
   narrow enough that the horizontal chain never fit. */
.funnel{margin:40px 0 28px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.funnel .stage{font-weight:700;letter-spacing:-.01em}
.funnel .stage:nth-child(1){font-size:clamp(22px,3vw,27px);color:var(--ink)}
.funnel .stage:nth-child(3){font-size:clamp(20px,2.6vw,24px);color:#3a3934}
.funnel .stage:nth-child(5){font-size:clamp(18px,2.3vw,21px);color:#54524a}
.funnel .stage:nth-child(7){font-size:clamp(16px,2vw,19px);color:var(--muted)}
.funnel .stage:nth-child(9){font-size:clamp(15px,1.8vw,17px);color:var(--muted);opacity:.7}
.funnel .chain-arrow{display:none}
.insight-note{font-size:16px;line-height:1.6;color:var(--muted);border-left:3px solid var(--red);padding-left:18px;max-width:520px}

/* solution (dark): paired with "how we think" as a bordered card
   alongside it, so the two read as one what-we-do/how-we-think unit
   instead of two separate stacked sections. the four interventions
   stay text-only (no icons) — deliberately, to avoid turning into a
   generic icon-grid "service card" pattern. */
.solution-pair{display:grid;grid-template-columns:1.15fr 1fr;gap:64px;align-items:start}
.not-just{font-size:20px;line-height:1.5;color:#b7b4aa;margin:24px 0 40px;max-width:640px}
.not-just del{color:#8f8d84}
.solution-grid{display:grid;grid-template-columns:1fr 1fr;gap:34px 48px}
.section.dark .item-desc{color:#9c9a92}
.key-line{font-size:clamp(22px,2.8vw,32px);font-weight:700;letter-spacing:-.02em;margin-top:48px;max-width:640px}
.key-note{margin:14px 0 0;font-size:14px;color:#8f8d84;max-width:480px}

/* proof: honest, not oversold, and no fake "SaaS metrics row" grid
   lines around numbers that are still blank. */
.proof-note{font-size:16px;color:var(--muted);max-width:520px;margin:18px 0 40px}
.proof-stats{display:flex;flex-wrap:wrap;gap:34px 52px}
.stat{display:flex;flex-direction:column;gap:8px}
.stat-value{font-weight:700;font-size:32px;color:var(--line)}
.stat-label{font:600 11px var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.proof-footnote{font-size:13px;color:var(--muted);margin-top:24px}

/* how we think: a bordered card sitting inside the dark solution
   section (see .solution-pair), not its own section. */
.case-card{padding:40px 36px;border:1px solid #423f3a;border-radius:10px}
.case-card .eyebrow{margin-bottom:14px}
.case-card h3{font-size:26px;margin:0 0 20px;letter-spacing:-.02em}
.case-card p{margin:0 0 14px;font-size:16px;line-height:1.6;color:#b7b4aa}
.case-card p:last-of-type{margin-bottom:26px}
.case-card .case-highlight{color:var(--red);font-weight:700}
.case-quote{display:flex;align-items:flex-start;gap:14px;margin:4px 0 28px}
.case-quote .quote-mark{font:800 30px/1 var(--sans);color:var(--red);flex-shrink:0}
.case-quote blockquote{margin:0;border-left:2px solid var(--red);padding-left:16px;font-size:17px;font-weight:700;color:var(--paper);line-height:1.5}

/* experience: a bento layout — start-here intro top-left, featured
   experience card top-right, how-we-work panel stretched full-width
   below both, all as one section instead of three stacked ones. */
.experience-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-areas:"intro featured" "how how";gap:40px}
.experience-intro{grid-area:intro;display:flex;flex-direction:column;justify-content:center}
.experience-lede{font-size:19px;color:var(--muted);margin:18px 0 0}
.experience-how{grid-area:how}
.featured-experience{grid-area:featured;background:var(--ink);color:var(--paper);display:grid;grid-template-columns:1fr 1fr;align-items:stretch;overflow:hidden;border-radius:20px}
.featured-experience-text{padding:38px 36px;display:flex;flex-direction:column;justify-content:center}
.featured-experience .eyebrow{color:#8f8d84;margin-bottom:8px}
.featured-experience h3{font-size:30px;margin:0 0 12px;letter-spacing:-.02em}
.featured-experience p{margin:0 0 24px;font-size:16px;color:#b7b4aa;max-width:480px}
.featured-experience .btn{background:var(--paper);color:var(--ink);border-color:var(--paper);align-self:flex-start}
.featured-experience .btn:hover{background:var(--red);border-color:var(--red);color:#fff}
.featured-experience-media{min-height:280px}
.featured-experience-media img{width:100%;height:100%;object-fit:cover;display:block;filter:grayscale(1) contrast(1.05)}
.sessions{display:flex;flex-wrap:wrap;gap:34px 52px;margin:0 0 36px}
.session .num{font:600 12px var(--mono);color:var(--red);letter-spacing:.06em;text-transform:uppercase}
.session h3{font-size:24px;margin-top:12px;letter-spacing:-.02em}
.experience-footnote{font-size:14px;color:var(--muted)}
.experience-footnote a{border-bottom:1px solid var(--ink);font-weight:600;color:var(--ink)}

/* sessions modal: reuses .sessions/.session/.experience-footnote as-is,
   just recolored for the dark modal body. */
.modal-overlay{position:fixed;inset:0;background:rgba(20,19,18,.72);display:flex;align-items:center;justify-content:center;padding:24px;z-index:30}
.modal-overlay[hidden]{display:none}
.modal{position:relative;background:var(--ink);color:var(--paper);max-width:640px;width:100%;max-height:86vh;overflow-y:auto;padding:48px 40px 40px;border-radius:14px}
.modal .eyebrow{color:#8f8d84;margin-bottom:14px}
.modal h3#sessionsModalTitle{font-size:28px;margin:0 0 12px;letter-spacing:-.02em}
.modal-lede{color:#b7b4aa;font-size:16px;line-height:1.6;margin:0 0 32px;max-width:460px}
.modal .experience-footnote{color:#9c9a92}
.modal .experience-footnote a{color:var(--paper);border-bottom-color:var(--paper)}
.modal-close{position:absolute;top:16px;right:16px;width:34px;height:34px;border-radius:50%;border:1px solid #4c4a45;background:transparent;color:var(--paper);font-size:20px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.modal-close:hover{border-color:var(--red);color:var(--red)}
body.modal-open{overflow:hidden}

/* how we work: a dark card stretched full-width beneath start-here +
   featured experience (see .experience-grid), so it doesn't repeat
   solution/cta's full-bleed dark treatment. split layout — intro + CTA
   on the left, the four numbered steps on the right (the one section
   allowed a numbered list: this sequence is literally an ordered
   process, not decorative counting). */
.how-panel{background:var(--ink);color:var(--paper);border-radius:20px;padding:56px 56px 60px;display:grid;grid-template-columns:1fr 1.1fr;gap:60px}
.how-intro h2{font-size:clamp(32px,3.6vw,44px);margin:0 0 18px}
.how-lede{color:#b7b4aa;font-size:16px;line-height:1.6;max-width:400px;margin:0 0 30px}
.btn-pill{display:inline-flex;align-items:center;padding:15px 28px;border-radius:999px;background:var(--paper);color:var(--ink);font:700 12px var(--sans);letter-spacing:.06em;text-transform:uppercase}
.btn-pill:hover{background:var(--red);color:#fff}
.how-note{margin:20px 0 0;font-size:14px;color:#8f8d84;max-width:340px}
.how-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:32px}
.how-steps li{display:flex;gap:20px;align-items:flex-start}
.step-num{flex-shrink:0;width:38px;height:38px;border-radius:50%;background:var(--paper);color:var(--ink);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px}
.how-steps h3{font-size:19px;margin:0 0 6px;letter-spacing:-.01em}
.how-steps p{margin:0;color:#9c9a92;font-size:15px;line-height:1.55}

/* final cta (dark) — oversized headline, minimal underlined fields
   instead of boxed ones. .btn-primary is fixed here specifically:
   it was rendering background:var(--ink) on a var(--ink) section, so
   the submit button was invisible except for its floating text. */
.cta h2{font-size:clamp(38px,6.2vw,72px);line-height:1.05;margin:16px 0 22px}
.cta > p{color:#b7b4aa;font-size:18px;max-width:520px}
.cta .btn-primary{background:var(--paper);color:var(--ink);border-color:var(--paper)}
.cta .btn-primary:hover{background:var(--red);border-color:var(--red);color:#fff}
form{margin-top:48px;max-width:620px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:0 28px}
input,textarea{width:100%;margin-bottom:26px;background:transparent;border:none;border-bottom:1px solid #4c4a45;color:var(--paper);padding:10px 0;font:15px var(--sans);outline:none;border-radius:0}
input::placeholder,textarea::placeholder{color:#8a887f}
input:focus,textarea:focus{border-bottom-color:var(--red)}
textarea{resize:vertical}
.form-note{font-size:12px;color:#9c9a92;margin-top:8px}

/* footer: identity, real navigation, a way to start a conversation,
   copyright — not a corporate sitemap. Dark, matching the CTA section
   directly above it with no divider between them, so contact + footer
   read as one continuous closing block instead of a dark section
   handing off to a separate light one. */
footer{background:var(--ink);color:var(--paper);padding:46px 5vw 22px}
.footer-top{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.footer-brand{display:flex;align-items:center;gap:14px}
.footer-brand p{font-size:13px;color:#9c9a92;margin:0}
.footer-links{display:flex;align-items:center;gap:22px;flex-wrap:wrap;font-size:13px;font-weight:600}
.footer-links a:hover{color:var(--red)}
.footer-bottom{margin-top:36px;padding-top:16px;border-top:1px solid #3a3835;display:flex;justify-content:space-between;align-items:center;color:#8f8d84;font:11px var(--mono)}
.social-links{display:flex;align-items:center;gap:16px}
.social-links svg{width:18px;height:18px;display:block}
.social-links a:hover{color:var(--red)}

@media(max-width:900px){
  .nav-links{display:none}
  .menu-btn{display:block}
  .hero{grid-template-columns:1fr;gap:36px;min-height:auto;padding:calc(var(--nav-h) + 40px) 5vw 40px}
  .problem-insight-pair{grid-template-columns:1fr;gap:44px}
  .solution-pair{grid-template-columns:1fr;gap:44px}
  .solution-grid{grid-template-columns:1fr}
  .experience-grid{grid-template-columns:1fr;grid-template-areas:"intro" "featured" "how";gap:32px}
  .featured-experience{grid-template-columns:1fr}
  .featured-experience-media{min-height:200px;order:-1}
  .how-panel{grid-template-columns:1fr;padding:44px 32px;gap:40px}
}
@media(max-width:600px){
  .section{padding:64px 5vw}
  .section.roomy{padding:80px 5vw}
  .section.tight{padding:52px 5vw}
  .form-row{grid-template-columns:1fr}
  .footer-top{align-items:flex-start}
  .footer-bottom{display:block}
  .footer-bottom span{display:block;margin-top:6px}
  .social-links{margin-top:14px}
}
