/* ============================================================
   story.css — Our Story page
   All shared tokens (colors, fonts, .section, .container,
   .card, .pull-quote, .teal-line, .eyebrow, .gap-grid,
   .page-hero, .cta-band, .btn, .reveal) come from styles.css.
   Only story-specific components are defined here.
============================================================ */

/* ── Background canvas ── */
#story-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
#story-canvas {
  position: absolute;
  top: 0; left: 0;
}

/* ── Reading progress ── */
#story-rp {
  position: fixed;
  top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, rgba(62,207,207,.3), #3ecfcf);
  z-index: 999;
  transition: width .08s linear;
  pointer-events: none;
}

/* ── Hero ──
   Atmosphere handled entirely by the fixed #story-canvas below —
   previously had a ::before with two radial gradients, but that
   composited with the canvas caustics + particles to create three
   stacked semi-transparent cyan layers. Canvas alone is enough. */
.story-hero {
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.story-hero .container { position: relative; z-index: 1; }

.story-hero h1 {
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: .92;
  letter-spacing: -.03em;
  position: relative;
  display: block;
  margin-bottom: 2rem;
}
.story-hero h1 em { font-style: italic; color: #3ecfcf; }
/* Hero underline removed — the eyebrow + lede carry enough presence.
   Previously a 60% magic-number line; felt unmotivated. */

/* ── Secondary emphasis ──
   Use .story-key for inline "quiet" emphasis — phrases we want to
   linger on without reaching for italic cyan again. Keeps the body
   sans-serif so it reads as emphasis, not a foreign insertion;
   carries a faint teal lift on the baseline. */
.story-key {
  color: #e8f0f3;
  font-weight: 500;
  border-bottom: 1px solid rgba(62,207,207,.45);
  padding-bottom: .05em;
}

/* Story chapter number — small monospaced counter at the end of the rule */
.story-ch-num {
  font-family: 'DM Sans', sans-serif;
  font-size: .7rem; font-weight: 400;
  letter-spacing: .28em;
  color: rgba(200,216,222,.38);
  flex-shrink: 0;
}

/* ── Chapter opener ── */
.story-ch-head {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.story-ch-head .eyebrow { margin-bottom: 0; white-space: nowrap; }
.story-ch-rule {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(62,207,207,.2), transparent 70%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s cubic-bezier(.16,1,.3,1) .15s;
}
.story-ch-head.in .story-ch-rule { transform: scaleX(1); }

/* ── Phrase divider ── */
.story-phrase-divider {
  padding: 5rem 0 4rem;
  position: relative;
  z-index: 1;
}
.story-phrase-divider p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2.4vw, 2rem);
  font-weight: 300; font-style: italic;
  color: rgba(200,216,222,.55);
  line-height: 1.35; text-align: center;
  max-width: 720px; margin: 0 auto;
}
.story-phrase-divider p em {
  font-style: italic;
  color: rgba(232, 240, 243, .92);
  font-weight: 400;
}
/* Inside an italic-serif divider, .story-key stays in the serif family
   rather than jumping to sans-serif mid-sentence. Emphasis is carried
   by the higher-contrast color and the teal baseline rule alone. */
.story-phrase-divider p .story-key {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  color: rgba(232, 240, 243, .96);
}

/* ── Foundation: sticky title + body column ── */
.story-sticky-title {
  position: sticky; top: 25vh;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4.5vw, 4.5rem);
  font-weight: 300; line-height: 1;
  letter-spacing: -.02em; color: var(--text, #e8f0f3);
}
.story-sticky-title em { font-style: italic; color: #3ecfcf; }
.story-foundation-body { max-width: 54ch; }
/* Vertical rhythm — handle spacing between body blocks in CSS
   rather than inline style="margin-top:1.4rem" hacks. */
.story-foundation-body > * + * { margin-top: 1.4rem; }
.story-foundation-body .pull-quote { margin-top: 2.4rem; }

/* ── Editorial drop-cap ──
   ::first-letter only works on block-level elements with no preceding
   inline content. Use it here and the sibling <span class="teal-line">
   above is harmless because it's in a different block.
   Colored with the brand teal at 0.9 — the drop-cap becomes a quiet
   editorial accent rather than just a larger body glyph. */
.has-dropcap::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 4.8em;
  line-height: .85;
  float: left;
  margin: .08em .12em -.05em 0;
  color: rgba(62, 207, 207, .9);
  text-shadow: 0 1px 24px rgba(62,207,207,.18);
}

/* ── Belief band ── */
.story-belief-band {
  background: rgba(62,207,207,.025);
  border-top: 1px solid rgba(62,207,207,.08);
  border-bottom: 1px solid rgba(62,207,207,.08);
  padding: 4.5rem 0;
  position: relative; z-index: 1;
}
/* When a belief band sits inside a .section after content (rather than
   standalone between sections), push it down off the preceding grid.
   Replaces an inline style="margin-top:5rem". */
.section > .story-belief-band,
.section > .container + .story-belief-band { margin-top: 5rem; }
.story-belief-inner { display: flex; align-items: flex-start; gap: 2.5rem; }
.story-belief-rule {
  flex-shrink: 0; width: 2px; height: 70px; margin-top: .2rem;
  background: linear-gradient(to bottom, #3ecfcf, rgba(62,207,207,.1));
}
.story-belief-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 2.5vw, 2.3rem);
  font-weight: 300; font-style: italic;
  color: rgba(200,216,222,.72); line-height: 1.35;
}
.story-belief-quote em { font-style: normal; color: #3ecfcf; }

/* ── Manufacturing wide headline ── */
.story-wide-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 7vw, 7.5rem);
  font-weight: 300; line-height: .9;
  letter-spacing: -.03em; color: var(--text, #e8f0f3);
}
.story-wide-headline em { font-style: italic; color: #3ecfcf; }

/* Manufacturing intro — the gap-grid that sits under the wide headline.
   Replaces an inline style="margin-top:4rem". Column children get their
   own rhythm via > p + p. */
.story-mfg-intro { margin-top: 4rem; }
.story-mfg-intro .pull-quote { margin-top: 2rem; }
.story-mfg-intro > div > p + p { margin-top: 1.2rem; }

/* ── Manufacturing: progressive-scale question list ──
   Three questions escalate in size and presence; the third is
   typographically elevated. Numbers on the left, text right. */
.story-scale-list {
  list-style: none;
  margin: 6rem 0 0;
  padding: 0;
  border-top: 1px solid rgba(62,207,207,.08);
}
.story-scale-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(62,207,207,.08);
  align-items: baseline;
}
.story-scale-num {
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem; font-weight: 400;
  letter-spacing: .3em;
  color: rgba(62,207,207,.6);
  padding-top: .5em;
}
.story-scale-q {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -.012em;
  color: var(--text, #e8f0f3);
  max-width: 32ch;
  margin-bottom: 1rem;
}
.story-scale-a {
  font-size: .95rem;
  line-height: 1.8;
  color: rgba(200, 216, 222, .68);
  max-width: 56ch;
}
/* Third question is the apex: larger, italic, no body text muting */
.story-scale-item.is-apex .story-scale-q {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-style: italic;
  line-height: 1.08;
  color: #e8f0f3;
}
.story-scale-item.is-apex .story-scale-a {
  color: rgba(200, 216, 222, .82);
  font-size: 1rem;
}

/* ── Experience: serif broadside — giant stacked type on the left ──
   Replaces the old outline-stroke "Destination" word. Type fills its
   own column as a composed phrase, not decoration. */
.story-broadside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 6rem;
  align-items: start;
}
.story-broadside-type {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: .95;
  letter-spacing: -.03em;
  color: rgba(232, 240, 243, .82);
  user-select: none;
  padding-top: .3em;
}
.story-broadside-type > span { display: block; }
.story-broadside-type .sb-word-a {
  font-style: italic;
  font-size: clamp(4rem, 8vw, 7rem);
  color: rgba(62,207,207,.85);
  letter-spacing: -.04em;
}
.story-broadside-type .sb-word-rest {
  font-size: clamp(3.2rem, 6.4vw, 5.6rem);
  margin-top: -.05em;
}
.story-broadside-type .sb-word-b {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-style: italic;
  color: rgba(200,216,222,.5);
  margin-top: .2em;
  padding-left: 1.2em;
}
.story-broadside-type .sb-word-c {
  font-size: clamp(2.6rem, 4.8vw, 4.4rem);
  padding-left: 2.4em;
}
.story-broadside-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--text, #e8f0f3);
}
.story-broadside-body h2 em { font-style: italic; color: #3ecfcf; }
/* Vertical rhythm for body column */
.story-broadside-body > * + * { margin-top: 1.2rem; }
.story-broadside-body h2 + * { margin-top: 2rem; }

/* ── Digital: thought-stack labels (replaces .eyebrow duplication) ── */
.story-thought-label {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: .95rem;
  letter-spacing: .02em;
  color: rgba(62,207,207,.62);
  margin-bottom: .6rem;
}

/* ── Digital — sticky left + thought rows ── */
.story-digital-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem; align-items: start;
}
.story-digital-sticky { position: sticky; top: 28vh; }
.story-digital-sticky > * + * { margin-top: 2rem; }
.story-thought-stack  { display: flex; flex-direction: column; }

.story-thought {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(62,207,207,.08);
  position: relative;
}
.story-thought:first-child { border-top: 1px solid rgba(62,207,207,.08); }

/* Vertical teal line — only appears via JS after scroll, using .line-on class */
.story-thought::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0; background: #3ecfcf; opacity: .4;
  transition: width .6s cubic-bezier(.16,1,.3,1);
}
.story-thought.line-on::before { width: 1px; }

.story-thought .eyebrow { margin-bottom: .5rem; }
.story-thought h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 300;
  color: var(--text, #e8f0f3);
  margin-bottom: .6rem; line-height: 1.25;
  letter-spacing: -.01em;
}
/* No em override — thought headings no longer use cyan italic */
.story-thought p { font-size: .9rem; line-height: 1.85; color: rgba(200,216,222,.66); }

/* ── Expanding: centred intro + four principles ───────────────────
   Calm numbered column with roman numerals. No hover highlights, no
   sliding teal bar — readers are reading, not interacting. */
.story-centred-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300; line-height: .9;
  letter-spacing: -.03em; text-align: center;
  color: var(--text, #e8f0f3);
}
.story-centred-headline em { font-style: italic; color: #3ecfcf; }

.story-centred-sub {
  max-width: 560px; margin: 2.5rem auto 0;
  text-align: center; font-size: .98rem;
  font-weight: 300; color: rgba(200,216,222,.66);
  line-height: 1.8;
}

.story-principles {
  list-style: none;
  margin: 6rem auto 0;
  padding: 0;
  max-width: 960px;
  border-top: 1px solid rgba(62,207,207,.08);
}
.story-principle {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 2.2rem;
  row-gap: .6rem;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(62,207,207,.08);
}
.sp-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 300;
  font-size: 1.35rem;
  color: rgba(62,207,207,.55);
  grid-row: 1 / 3;
  padding-top: .35em;
}
.sp-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -.012em;
  color: var(--text, #e8f0f3);
}
.sp-body {
  font-size: .94rem;
  line-height: 1.85;
  color: rgba(200, 216, 222, .64);
  max-width: 58ch;
}

/* ── Outro: tightened closing statement ── */
.story-outro {
  padding: 7rem 0 5rem;
  position: relative;
  z-index: 1;
  text-align: center;
}
.story-outro-line {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  line-height: 1.25;
  letter-spacing: -.015em;
  color: rgba(232, 240, 243, .92);
  max-width: 760px;
  margin: 0 auto;
}
.story-outro-line em { font-style: italic; color: #3ecfcf; }
.story-outro-sig {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(200,216,222,.4);
  margin-top: 2.2rem;
}

/* ── Story-specific CTA: two chapter cards side by side ── */
.story-cta { padding: 5rem 0 6rem; position: relative; }
.story-cta .cta-band-inner { position: relative; z-index: 2; }
.story-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.story-cta-card {
  display: block;
  position: relative;
  padding: 2.8rem 2.6rem 3.4rem;
  border: 1px solid rgba(62,207,207,.14);
  background: rgba(62,207,207,.02);
  text-decoration: none;
  color: inherit;
  transition: border-color .3s ease, background .3s ease, transform .4s cubic-bezier(.16,1,.3,1);
}
.story-cta-card:hover {
  border-color: rgba(62,207,207,.35);
  background: rgba(62,207,207,.045);
  transform: translateY(-3px);
}
.story-cta-card .eyebrow {
  color: rgba(62,207,207,.7);
  margin-bottom: 1.4rem;
}
.story-cta-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text, #e8f0f3);
  margin-bottom: 1rem;
}
.story-cta-card h3 em { font-style: italic; color: #3ecfcf; }
.story-cta-card p {
  font-size: .92rem;
  line-height: 1.75;
  color: rgba(200, 216, 222, .62);
  max-width: 44ch;
  margin-bottom: 2rem;
}
.story-cta-arrow {
  position: absolute;
  right: 2.4rem; bottom: 2.4rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: rgba(62,207,207,.6);
  transition: transform .3s ease, color .3s ease;
}
.story-cta-card:hover .story-cta-arrow {
  transform: translateX(6px);
  color: #3ecfcf;
}

/* ============================================================
   .story-stewardship — Fix 2.4 (Phase 2)
   Chapter 06. Single-column manifesto. Mirrors the closing-outro
   voice — italic Cormorant headline, prose body in DM Sans, a
   small italic centred sigline. Closes the leadership/governance
   gap without naming personnel.
   ============================================================ */
.story-stewardship {
  padding: 7rem 0 5rem;
  position: relative;
  z-index: 1;
}
.stewardship-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}
.stewardship-rule {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(62,207,207,0.5), transparent);
  margin: 0 auto 2rem;
}
.stewardship-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #e8f0f3;
  max-width: 18ch;
  margin: 0 auto 2.5rem;
}
.stewardship-headline em {
  font-style: italic;
  color: #3ecfcf;
}
.stewardship-prose {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(232, 240, 243, 0.82);
  max-width: 58ch;
  margin: 0 auto;
  text-align: left;
}
.stewardship-prose + .stewardship-prose { margin-top: 1.2rem; }
.stewardship-prose em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: #3ecfcf;
}
.stewardship-prose strong {
  font-weight: 500;
  color: #e8f0f3;
}
.stewardship-sig {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(200,216,222,.10);
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.5;
  color: rgba(232, 240, 243, 0.7);
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .story-sticky-title    { position: relative; top: auto; }
  .story-broadside       { grid-template-columns: 1fr; gap: 2.5rem; }
  .story-broadside-type  { order: 2; }
  .story-broadside-type .sb-word-b,
  .story-broadside-type .sb-word-c { padding-left: 0; }
  .story-digital-layout  { grid-template-columns: 1fr; gap: 3rem; }
  .story-digital-sticky  { position: relative; top: auto; }
  .story-scale-item      { grid-template-columns: 56px 1fr; gap: 1.2rem; padding: 2.6rem 0; }
  .story-principle       { grid-template-columns: 48px 1fr; gap: .9rem 1.4rem; padding: 2.2rem 0; }
  .story-cta-grid        { grid-template-columns: 1fr; }
  .story-wide-headline   { font-size: clamp(2.2rem, 9vw, 5rem); }
  .story-centred-headline{ font-size: clamp(2.4rem, 10vw, 5rem); }
  .has-dropcap::first-letter { font-size: 4.4em; }
}
@media (max-width: 600px) {
  .story-belief-band { padding: 3rem 0; }
  .story-belief-quote { font-size: clamp(1.1rem, 5vw, 1.7rem); }
  .story-ch-num { display: none; }
  .story-cta-card { padding: 2.2rem 1.8rem 3rem; }
  .story-cta-arrow { right: 1.8rem; bottom: 1.8rem; }
}