/* Model story template. Shared studio shell, with a warm editorial middle chapter. */
.model-page { --story-paper: #eae7df; --story-ink: #262923; --story-muted: #60635a; --story-rule: #c8c9bd; --photo-paper: #d5d8cc; --photo-line: #66745f; position: relative; isolation: isolate; }
.model-header { display: block; min-height: 146px; }
.model-main { overflow: clip; }
.model-container { width: min(1440px, 90%); margin-inline: auto; }
.model-skip { position: fixed; z-index: 130; top: 12px; left: 5vw; padding: 14px 20px; background: var(--button); color: var(--on-button); transform: translateY(-180%); }
.model-skip:focus { transform: none; }
.model-crumb { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; margin-bottom: 20px; font: 11px/1.5 'Geist Mono', monospace; text-transform: uppercase; }
.model-crumb a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--muted); }
.model-crumb svg { width: 16px; height: 16px; }
.model-crumb > span { color: var(--muted); }
.model-hero { display: grid; grid-template-columns: .83fr 1.17fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding-bottom: 46px; }
.model-kicker, .chapter-label, .photo-meta, .model-caption, .detail-index, .build-index { font: 11px/1.5 'Geist Mono', monospace; letter-spacing: .015em; }
.model-kicker { margin: 0 0 28px; color: var(--muted); text-transform: uppercase; }
.model-hero h1 { font-size: clamp(56px, 6.8vw, 110px); line-height: .98; font-weight: 400; letter-spacing: -.065em; margin: 0 0 28px; }
.model-hero h1 span { display: block; }
.model-hero h1 span:last-child { color: var(--muted); }
.model-deck { max-width: 28ch; font-size: clamp(17px, 1.55vw, 23px); line-height: 1.5; letter-spacing: -.025em; margin: 0 0 30px; }
.model-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.model-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 51px; padding: 15px 23px; border-radius: 40px; background: var(--button); color: var(--on-button); font-size: 14px; line-height: 1.4; }
.model-button svg, .model-inline-link svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 180ms; }
.model-inline-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; }
.model-preview-note { margin: 24px 0 0; color: var(--muted); font: 10px/1.5 'Geist Mono', monospace; }
.photo-slot { position: relative; isolation: isolate; min-width: 0; margin: 0; overflow: hidden; background: var(--photo-paper); color: var(--photo-line); }
.photo-slot::after { content: ''; position: absolute; inset: 20px; z-index: -1; border: 1px solid currentColor; opacity: .12; pointer-events: none; }
.photo-slot > svg { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }
.photo-meta { position: absolute; top: 24px; left: 24px; right: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--story-ink); font-size: 10px; text-transform: uppercase; }
.photo-meta > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.photo-meta i { display: block; width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; }
.photo-label { position: absolute; left: 24px; bottom: 24px; right: 24px; display: flex; align-items: end; justify-content: space-between; gap: 20px; color: var(--story-ink); }
.photo-label strong { font-size: clamp(18px, 2vw, 28px); font-weight: 400; line-height: 1.2; letter-spacing: -.035em; }
.photo-label span { font: 10px/1.5 'Geist Mono', monospace; max-width: 20ch; text-align: right; }
.hero-photograph { aspect-ratio: 1.4; --photo-paper: #cbd0c4; }
.hero-photograph > svg { inset: 4% -13% 0; width: 126%; height: 100%; }
.photo-watermark { position: absolute; top: 12%; right: 8%; margin: 0; color: currentColor; opacity: .09; font-size: clamp(100px, 15vw, 230px); letter-spacing: -.08em; line-height: 1; font-weight: 400; }
.chapter-nav { position: sticky; z-index: 30; top: 0; color: var(--foreground); background: var(--background); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.chapter-nav-inner { display: flex; align-items: center; min-height: 52px; width: auto; max-width: 760px; margin-left: calc(5vw + 120px); margin-right: calc(5vw + 334px); }
.chapter-links { display: flex; justify-content: space-between; width: 100%; gap: 18px; }
.chapter-links a { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; color: var(--muted); }
.chapter-links a > span { font: 10px/1.5 'Geist Mono', monospace; opacity: .75; }
.chapter-links a[aria-current="location"] { color: var(--foreground); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 8px; text-decoration-thickness: 2px; }
.story-chapter { scroll-margin-top: 100px; }
.paper-chapter { background: var(--story-paper); color: var(--story-ink); }
.paper-chapter :focus-visible { outline-color: var(--brand); }
.chapter-space { padding-block: clamp(72px, 9vw, 140px); }
.chapter-label { display: flex; align-items: center; gap: 20px; margin: 0 0 40px; text-transform: uppercase; }
.chapter-label > span { opacity: .6; }
.chapter-lead { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 8vw, 130px); align-items: end; margin-bottom: 64px; }
.chapter-lead h2, .details-heading h2, .build-heading h2, .model-invitation h2 { margin: 0; font-size: clamp(42px, 5.1vw, 78px); font-weight: 400; line-height: 1.03; letter-spacing: -.055em; }
.chapter-lead h2 span, .build-heading h2 span, .model-invitation h2 span { display: block; }
.chapter-copy p { margin: 0; max-width: 39ch; font-size: 17px; line-height: 1.65; letter-spacing: -.01em; }
.chapter-copy p + p { margin-top: 18px; color: var(--story-muted); font-size: 15px; }
.story-photo-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.story-overview { aspect-ratio: 1.27; --photo-paper: #d7d3c7; --photo-line: #817a66; }
.story-overview > svg { width: 130%; left: -15%; }
.story-sketch { aspect-ratio: .9; --photo-paper: #e0ded4; --photo-line: #7d8071; }
.story-sketch > svg { inset: 2% -14%; width: 128%; height: 96%; }
.story-secondary { padding-top: 100px; }
.model-caption { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin: 15px 0 0; color: var(--story-muted); font-size: 10px; }
.model-caption strong { color: var(--story-ink); font-weight: 400; }
.story-note { max-width: 23ch; font-size: clamp(24px, 2.7vw, 40px); line-height: 1.25; letter-spacing: -.035em; margin: 30px 0 0; }
.details-chapter { background: var(--background); color: var(--foreground); }
.details-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 48px; }
.details-heading p { max-width: 29ch; color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0; }
.detail-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.detail-controls { display: grid; }
.detail-control { position: relative; width: 100%; display: flex; align-items: center; gap: 20px; padding: 26px 0; min-height: 94px; border: 0; border-top: 1px solid var(--rule); background: transparent; text-align: left; }
.detail-control:last-child { border-bottom: 1px solid var(--rule); }
.detail-index { color: var(--muted); }
.detail-control strong { font-size: clamp(22px, 2.3vw, 33px); font-weight: 400; letter-spacing: -.04em; }
.detail-control svg { width: 22px; height: 22px; margin-left: auto; color: var(--muted); transition: transform 220ms; }
.detail-control[aria-pressed="true"] strong { color: var(--foreground); }
.detail-control[aria-pressed="false"] strong { color: var(--muted); }
.detail-control[aria-pressed="true"] svg { color: var(--focus); transform: rotate(-45deg); }
.detail-description { margin: 26px 0 0; max-width: 34ch; color: var(--muted); font-size: 15px; line-height: 1.65; min-height: 5em; }
.detail-photo { aspect-ratio: 1.18; --photo-paper: #33382f; --photo-line: #b9c2a8; }
.detail-photo .photo-meta, .detail-photo .photo-label { color: #e1e4d8; }
.detail-panel[hidden] { display: none; }
.detail-panel:not([hidden]) { animation: detail-reveal 280ms ease-out; }
@keyframes detail-reveal { from { opacity: .4; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.detail-panel .model-caption { color: var(--muted); }
.build-heading { display: grid; grid-template-columns: .45fr 1fr; align-items: start; gap: 30px; margin-bottom: 60px; }
.build-heading .chapter-label { margin-top: 10px; }
.build-visual { aspect-ratio: 2.13; --photo-paper: #d4d1c3; --photo-line: #73745f; }
.build-visual > svg { inset: -10% 10%; width: 80%; height: 120%; }
.build-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-block: 36px 72px; }
.build-step { border-top: 1px solid var(--story-rule); padding-top: 20px; }
.build-index { color: var(--story-muted); }
.build-step h3 { font-size: 25px; font-weight: 400; letter-spacing: -.035em; margin: 22px 0 12px; }
.build-step p { max-width: 31ch; color: var(--story-muted); font-size: 15px; line-height: 1.65; margin: 0; }
.build-extras { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.build-film { aspect-ratio: 16 / 10; --photo-paper: #363b32; --photo-line: #b5bea7; }
.build-film > svg { opacity: .5; width: 120%; height: 120%; inset: -10%; }
.build-film .photo-label, .build-film .photo-meta { color: #e1e4d8; }
.film-mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 60px; height: 46px; border: 1px solid #d1d7c5; border-radius: 2px; }
.film-mark::before, .film-mark::after { content: ''; position: absolute; top: 6px; bottom: 6px; width: 5px; border-block: 3px dotted #d1d7c5; }
.film-mark::before { left: 6px; }.film-mark::after { right: 6px; }
.model-specs h3 { font-size: 34px; line-height: 1.1; font-weight: 400; letter-spacing: -.045em; margin: 0 0 28px; }
.model-specs dl { margin: 0; }
.model-specs dl > div { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--story-rule); padding: 15px 0; font-size: 13px; line-height: 1.5; }
.model-specs dt { color: var(--story-muted); }.model-specs dd { margin: 0; text-align: right; }
.spec-note { font: 10px/1.6 'Geist Mono', monospace; color: var(--story-muted); margin: 18px 0 0; }
.model-faq { border-top: 1px solid var(--story-rule); margin-top: 26px; }
.model-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 55px; cursor: pointer; list-style: none; font-size: 14px; }
.model-faq summary::-webkit-details-marker { display: none; }
.model-faq summary::after { content: '+'; font-size: 24px; font-weight: 300; }.model-faq[open] summary::after { content: '−'; }
.model-faq p { font-size: 13px; line-height: 1.65; color: var(--story-muted); margin: 0 0 20px; }
.shelf-chapter { padding-top: 0; }
.shelf-photo { aspect-ratio: 2.1; background: #c3c9ba; --photo-line: #7a846e; }
.shelf-photo > svg { width: 77%; height: 105%; left: 30%; top: 11%; }
.shelf-title { position: absolute; top: 21%; left: 5.55%; font-size: clamp(36px, 4.6vw, 72px); font-weight: 400; line-height: 1.05; letter-spacing: -.055em; max-width: 9ch; margin: 0; color: #353f30; }
.shelf-photo::before { content: ''; position: absolute; inset: 70% 0 auto; border-top: 1px solid currentColor; opacity: .18; }
.shelf-photo .photo-meta, .shelf-photo .photo-label { left: 5.55%; right: 5.55%; }
.model-invitation { padding-block: clamp(72px, 8vw, 120px); background: var(--brand); color: #f3f4fa; }
.invitation-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: end; }
.model-invitation .chapter-label { margin-bottom: 32px; }
.invitation-copy > p { max-width: 30ch; margin: 0 0 28px; color: #daddff; font-size: 18px; line-height: 1.6; }
.model-invitation .model-button { background: #f3f4fa; color: #202744; min-width: 220px; }
.invitation-copy > small { display: block; margin-top: 18px; font: 10px/1.6 'Geist Mono', monospace; color: #daddff; }
.model-back { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 32px 64px; }
.model-back > span { color: var(--muted); font: 10px/1.6 'Geist Mono', monospace; }
.model-back .model-inline-link { font-size: 14px; }
.model-back svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .model-button:hover svg { transform: translate(2px, -2px); }
  .model-inline-link:hover { text-decoration: underline; text-underline-offset: 5px; }
  .chapter-links a:hover { color: var(--foreground); }
  .detail-control:hover strong { color: var(--foreground); }
}
@media (max-width: 1100px) {
  .model-hero { gap: 32px; }.model-hero h1 { font-size: 7.2vw; }
  .model-deck { font-size: 18px; }.model-actions { gap: 14px; }.model-button { padding-inline: 20px; gap: 20px; }
  .chapter-links { gap: 16px; }.chapter-links a { font-size: 12px; }.chapter-links a > span { display: none; }
  .chapter-copy p { font-size: 16px; }.chapter-copy p + p { font-size: 14px; }
  .photo-label strong { font-size: 22px; }.photo-label span { font-size: 9px; }
  .detail-layout { gap: 44px; }.detail-control { gap: 15px; padding-block: 22px; }.detail-description { font-size: 14px; }
  .chapter-lead { gap: 50px; }.build-extras { gap: 40px; }.model-specs h3 { font-size: 29px; }
}
@media (max-width: 760px) {
  .model-header { min-height: 142px; }.model-crumb { margin-bottom: 24px; }.model-crumb > span { display: none; }
  .model-hero { grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; }.model-hero h1 { font-size: clamp(58px, 12vw, 90px); }
  .model-hero h1 span { display: inline; }.model-hero h1 span:last-child::before { content: ' '; }
  .model-kicker { margin-bottom: 20px; }.model-deck { max-width: 33ch; margin-bottom: 22px; }.model-preview-note { margin-top: 16px; }
  .hero-photograph { aspect-ratio: 1.4; }.hero-photograph > svg { width: 120%; left: -10%; top: 0; }
  .chapter-nav { position: static; }.chapter-nav-inner { width: 90%; margin-inline: auto; min-height: 62px; }.chapter-links { gap: 12px; }.chapter-links a { gap: 6px; font-size: 12px; }.chapter-links a > span { font-size: 9px; }
  .chapter-space { padding-block: 64px; }.chapter-label { margin-bottom: 28px; }.chapter-lead { grid-template-columns: 1fr; gap: 26px; margin-bottom: 40px; }
  .chapter-lead h2, .details-heading h2, .build-heading h2, .model-invitation h2 { font-size: clamp(40px, 7.8vw, 56px); }
  .chapter-copy p { max-width: 50ch; }.chapter-copy p + p { font-size: 15px; }
  .story-photo-grid { gap: 24px; grid-template-columns: 1.15fr 1fr; }.story-secondary { padding-top: 65px; }.story-note { margin-top: 22px; font-size: 24px; }
  .photo-meta { top: 18px; left: 18px; right: 18px; font-size: 9px; }.photo-label { left: 18px; right: 18px; bottom: 18px; }.photo-label strong { font-size: 20px; }.photo-label span { display: none; }
  .photo-slot::after { inset: 14px; }.model-caption { font-size: 9px; gap: 12px; }.model-caption > span:last-child { display: none; }
  .details-heading { display: block; margin-bottom: 28px; }.details-heading p { margin-top: 20px; max-width: 40ch; }
  .detail-layout { grid-template-columns: 1fr; gap: 24px; }.detail-controls { display: flex; }.detail-control { min-height: 74px; padding: 15px 8px 15px 0; gap: 8px; border-bottom: 1px solid var(--rule); }.detail-control strong { font-size: 19px; }.detail-control svg { display: none; }.detail-index { font-size: 9px; }.detail-description { min-height: 3.3em; max-width: 48ch; margin-top: 20px; }
  .detail-photo { aspect-ratio: 1.3; }.build-heading { grid-template-columns: 1fr; gap: 0; margin-bottom: 34px; }.build-heading .chapter-label { margin-top: 0; }
  .build-visual { aspect-ratio: 1.45; }.build-visual > svg { left: 0; width: 100%; }.build-steps { gap: 20px; margin-bottom: 44px; }.build-step h3 { font-size: 23px; }.build-step p { font-size: 13px; }
  .build-extras { grid-template-columns: 1fr; gap: 36px; }.build-film { aspect-ratio: 16 / 9; }.model-specs h3 { font-size: 32px; }.model-specs dl > div { font-size: 14px; }
  .shelf-photo { aspect-ratio: 1.3; }.shelf-photo > svg { width: 110%; height: 85%; left: 12%; top: 30%; }.shelf-title { font-size: 40px; top: 18%; max-width: 12ch; }
  .invitation-inner { grid-template-columns: 1fr; gap: 32px; }.model-invitation { padding-block: 64px; }.invitation-copy > p { max-width: 37ch; font-size: 17px; }.model-back { padding-bottom: 40px; }.model-back > span { display: none; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .chapter-nav { position: static; }
  .chapter-nav-inner { width: 90%; max-width: none; margin-inline: auto; }
  .story-chapter { scroll-margin-top: 200px; }
}
@media (max-width: 450px) {
  .model-header { min-height: 120px; }.model-crumb { font-size: 10px; }.model-hero h1 span { display: block; }.model-hero h1 span:last-child::before { content: ''; }
  .model-hero h1 { font-size: 16vw; }.model-deck { font-size: 18px; }.model-hero { gap: 28px; }.hero-photograph { aspect-ratio: 1.15; }
  .model-kicker { font-size: 10px; }.chapter-links a { font-size: 11px; gap: 5px; }.chapter-links a > span { display: none; }
  .story-photo-grid { grid-template-columns: 1fr; gap: 34px; }.story-secondary { padding-top: 0; }.story-sketch { aspect-ratio: 1.18; }.story-overview { aspect-ratio: 1.15; }
  .story-note { max-width: 20ch; }.detail-control strong { font-size: 17px; }.detail-index { display: none; }
  .build-steps { grid-template-columns: 1fr; gap: 24px; }.build-step { display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; }.build-index { padding-top: 4px; }.build-step h3 { margin: 0 0 8px; }.build-step p { grid-column: 2; max-width: 38ch; font-size: 14px; }
  .shelf-photo { aspect-ratio: 1; }.shelf-title { font-size: 37px; }.shelf-photo > svg { top: 38%; height: 70%; }
}
@media (prefers-reduced-motion: reduce) {
  .model-page *, .model-page *::before, .model-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .studio-header, .wordmark-caption, .chapter-nav, .page-scrollbar, .model-actions, .model-preview-note, .studio-menu { display: none; }.model-header { min-height: 0; }.detail-panel[hidden] { display: block; }.model-main { overflow: visible; } }

/* Keep the floating chapter navigation aligned with the shared page frame. */
@media (min-width: 1600px) {
  .model-skip { left: var(--page-gutter); }
  .chapter-nav-inner {
    margin-left: calc(var(--page-gutter) + 120px);
    margin-right: calc(var(--page-gutter) + 334px);
  }
}
