/* Story homepage + chapter navigation — Creative tokens */

.story-hero {
  position: relative;
  background: var(--surface);
  color: var(--fg);
  padding: 56px 20px 64px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.story-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--border-soft) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.55;
  pointer-events: none;
  mask-image: linear-gradient(180deg, oklch(0% 0 0 / 0.35), transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, oklch(0% 0 0 / 0.35), transparent 72%);
}
.story-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  gap: 32px;
  align-items: center;
}
.story-greeting {
  font: 600 clamp(28px, 5vw, 40px)/1.15 var(--font-display);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.story-greeting::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 14px;
}
/* .story-kicker defined in site.css (shared with case-kicker, page-kicker) */
.story-hero h1 {
  font: 700 clamp(32px, 6vw, 52px)/1.08 var(--font-display);
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: 20px;
}
.story-lead {
  font: 500 clamp(17px, 2.5vw, 21px)/1.45 var(--font-display);
  color: var(--fg);
  max-width: 48ch;
  margin-bottom: 16px;
}
.story-bio {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 28px;
}
.story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-story {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font: 600 14px/1 var(--font-display);
  border-radius: 999px;
  transition: filter 0.15s, background 0.15s;
}
.btn-story--primary {
  background: var(--accent);
  color: var(--accent-on);
}
.btn-story--primary:hover { filter: brightness(1.06); }
.btn-story--ghost {
  border: 1px solid var(--border);
  color: var(--fg);
}
.btn-story--ghost:hover { background: var(--fill-subtle); }

@media (min-width: 900px) {
  .story-hero-inner {
    grid-template-columns: 1.05fr minmax(300px, 400px);
    gap: 64px;
    align-items: start;
  }
  .story-hero-portrait {
    margin: 0;
    order: 2;
    max-width: none;
    position: sticky;
    top: calc(var(--nav-h) + 24px);
  }
  .story-hero-copy { order: 1; padding-top: 8px; }
}
@media (min-width: 768px) {
  .story-hero { padding: 80px 32px 88px; }
}

/* Chapter cards */
.chapters {
  padding: var(--section-y-phone) 20px;
}
.chapters-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}
.chapters-head {
  margin-bottom: 28px;
}
.chapters-head h2 {
  font: 700 clamp(24px, 4vw, 32px)/1.12 var(--font-display);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.chapters-head p {
  color: var(--muted);
  font-size: 15px;
  max-width: 52ch;
  line-height: 1.55;
}
.chapters-kicker {
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: 12px;
}
.chapters-intro {
  font-size: 16px;
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.65;
  margin-bottom: 28px;
}
.chapter-grid {
  display: grid;
  gap: 16px;
}
.chapter-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  min-height: 100%;
}
.chapter-card:hover {
  border-color: color-mix(in oklab, var(--accent) 35%, var(--border));
  box-shadow: var(--elev-raised);
  transform: translateY(-2px);
}
.chapter-card__label {
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: 12px;
}
.chapter-card h3 {
  font: 600 clamp(20px, 2.5vw, 24px)/1.2 var(--font-display);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.chapter-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
}
.chapter-card__link {
  font: 600 14px/1 var(--font-display);
  color: var(--accent);
  margin-top: auto;
}
.chapter-card:hover .chapter-card__link { text-decoration: underline; }

@media (min-width: 600px) {
  .chapter-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .chapters { padding: var(--section-y-tablet) 32px; }
  .chapter-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
  .chapters { padding: var(--section-y-desktop) 32px; }
}

/* Featured work row */
.featured {
  padding: var(--section-y-phone) 20px;
  border-top: 1px solid var(--border);
}
.featured-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}
.featured-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.featured-head h2 {
  font: 700 clamp(24px, 4vw, 32px)/1.12 var(--font-display);
  letter-spacing: -0.03em;
}
.featured-head p {
  color: var(--muted);
  font-size: 15px;
  max-width: 48ch;
}
.featured-more {
  font: 600 14px/1 var(--font-display);
  color: var(--accent);
  white-space: nowrap;
}
.featured-more:hover { text-decoration: underline; }
.featured-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 600px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .featured { padding: var(--section-y-tablet) 32px; }
  .featured-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

/* Philosophy strip */
.philosophy {
  padding: var(--section-y-phone) 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.philosophy-inner {
  max-width: var(--wide, 960px);
  margin: 0 auto;
  text-align: center;
}
.philosophy blockquote {
  font: 500 clamp(20px, 3vw, 28px)/1.35 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--fg);
  max-width: 36ch;
  margin: 0 auto 16px;
}
.philosophy p {
  font-size: 15px;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto;
  line-height: 1.6;
}
.philosophy a {
  display: inline-block;
  margin-top: 20px;
  font: 600 14px/1 var(--font-display);
  color: var(--accent);
}
.philosophy a:hover { text-decoration: underline; }
@media (min-width: 768px) {
  .philosophy { padding: var(--section-y-tablet) 32px; }
}

/* Story footer */
.story-footer {
  padding: 40px 20px 48px;
  text-align: center;
}
.story-footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}
.story-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-bottom: 20px;
}
.story-footer-links a {
  font: 600 14px/1 var(--font-display);
  color: var(--fg);
}
.story-footer-links a:hover { color: var(--accent); }
.story-footer p {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Chapter body content (below case-hero) */
.chapter-main {
  padding: 48px 20px 64px;
}
.chapter-main-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Chapter hubs share case-hero; pin rail to container-max */
.chapter-hub .case-hero-inner,
.chapter-hub .section-nav-inner,
.chapter-hub .case-content-inner,
.chapter-hub .case-footer-inner {
  max-width: var(--container-max);
}
.chapter-hub .case-content-inner .case-block > p {
  max-width: 62ch;
}
.chapter-maker-grid {
  margin-bottom: 48px;
}
.chapter-visual-strip {
  display: grid;
  gap: 16px;
  margin-bottom: 48px;
}
.chapter-visual {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.chapter-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.chapter-visual figcaption {
  padding: 12px 16px;
  font: 500 12px/1.4 var(--font-mono);
  color: var(--muted);
  border-top: 1px solid var(--border);
}
@media (min-width: 640px) {
  .chapter-visual-strip { grid-template-columns: 1fr 1fr; }
}
.chapter-block {
  margin-bottom: 48px;
}
.chapter-block:last-child { margin-bottom: 0; }
.chapter-block h2 {
  font: 700 clamp(22px, 3vw, 28px)/1.15 var(--font-display);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.chapter-block > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 62ch;
  margin-bottom: 16px;
}
.chapter-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.chapter-list li {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}
.chapter-list strong {
  display: block;
  color: var(--fg);
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 14px;
}
.chapter-pullquote {
  margin: 32px 0;
  padding: 24px 24px 24px 22px;
  border-left: 3px solid var(--accent);
  font: 500 clamp(18px, 2.6vw, 22px)/1.4 var(--font-display);
  color: var(--fg);
  letter-spacing: -0.01em;
  max-width: 48ch;
}
.chapter-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.chapter-cta-row a {
  font: 600 14px/1 var(--font-display);
  color: var(--accent);
}
.chapter-cta-row a:hover { text-decoration: underline; }

@media (min-width: 768px) {
  .chapter-main { padding: 64px 32px 80px; }
}
