/* Landing-only narrative. Shared pages retain their existing visual language. */
.narrative { --story-ease: cubic-bezier(.16, 1, .3, 1); }
.narrative ::selection { color: var(--surface); background: var(--ink); }
.narrative input, .narrative textarea { caret-color: var(--gold-ink); }
.narrative .hero {
    display: flex; align-items: center; min-height: clamp(600px, 76svh, 860px);
    padding-block: 64px 112px; isolation: isolate;
}
.narrative .hero-copy { width: min(100%, 990px); }
.hero-signature { color: var(--gold-ink); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.narrative .hero h1 { max-width: 21ch; font-size: clamp(44px, 5.7vw, 82px); line-height: 1.04; text-wrap: balance; }
.narrative .hero .lead { max-width: 46ch; margin-top: 26px; }
.narrative .hero-actions { align-items: center; gap: 26px; margin-top: 28px; }
.hero-discover, .text-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; text-underline-offset: 5px; min-height: 44px; }
.hero-discover:hover, .text-link:hover { text-decoration: underline; }
.narrative .hero > .hero-light { position: absolute; inset: -20%; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 76% 32%, rgba(184,145,74,.17), transparent 48%); }
.chapter-luke { display: block; width: 100%; height: auto; }
.narrative .hero > .hero-companion { position: absolute; right: 7%; bottom: 78px; width: 136px; }
.hero-companion span { display: block; color: var(--muted); font: italic 14px/1.4 var(--serif); text-align: center; }

/* Three quiet origin layers. JS allows only one atmospheric layer in view. */
.narrative .atmosphere { position: absolute; z-index: 0; pointer-events: none; overflow: hidden; }
.atmosphere img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.atmosphere--hero { inset: 0 -12% 0 38%; background: url('assets/motif-contours.svg') center / cover no-repeat; opacity: .18; mask-image: linear-gradient(110deg, transparent, #000 60%, transparent); }
.atmosphere--coffee { width: 37%; height: 82%; right: 0; bottom: 0; opacity: .10; mask-image: linear-gradient(90deg, transparent, #000), linear-gradient(180deg, transparent, #000 25%, #000 65%, transparent); mask-composite: intersect; }
.atmosphere--forest { inset: 0; opacity: .13; mask-image: linear-gradient(90deg, transparent 8%, #000 90%); }
.atmospheres-ready .atmosphere:not(.atmosphere-on) { opacity: 0; }

/* Native scrolling gives touch its platform physics; no cloned slides. */
.narrative .opening-reel { margin-top: -48px; padding-top: 0; padding-bottom: 44px; background: transparent; z-index: 2; overflow: visible; }
.narrative .stories-carousel { margin-top: 0; --card-width: calc((100% - 36px) / 3.3); }
.narrative .stories-viewport { overflow-x: auto; overflow-y: hidden; padding: 10px 0 12px; scroll-snap-type: none; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; touch-action: pan-x pan-y; }
.narrative .stories-viewport::-webkit-scrollbar { display: none; }
.narrative .stories-viewport.is-dragging { cursor: grabbing; user-select: none; }
.narrative .stories-track { gap: 18px; }
.narrative .story { flex: 0 0 var(--card-width); min-width: 0; }
.narrative .story img { border-radius: 12px; box-shadow: none; -webkit-user-drag: none; user-select: none; }
.narrative .story figcaption { display: flex; flex-direction: column; gap: 6px; padding: 16px 0 0; }
.narrative .story-kicker { font-size: 10px; letter-spacing: .12em; }
.narrative .story-line { font-size: 20px; max-width: 30ch; }
.narrative .story-credit { font-size: 11px; white-space: normal; }
.narrative .stories-controls { justify-content: flex-start; gap: 10px; margin-top: 10px; }
.narrative .stories-btn, .narrative .stories-toggle { background: transparent; border-color: var(--line); }
.narrative .stories-btn:disabled { opacity: .45; cursor: default; }
.narrative .stories-note { text-align: left; font-size: 12px; max-width: 65ch; }
.narrative .film { background: transparent; padding-block: 48px 88px; border-top: 0; }
.narrative .film-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; }
.narrative .film .section-heading { margin-bottom: 0; }
.narrative .film h2 { max-width: 13ch; font-size: clamp(32px, 3.4vw, 46px); }
.narrative .film .section-lead { max-width: 34ch; font-size: 17px; }
.narrative .film-frame { border-radius: 12px; box-shadow: none; }
.narrative .film-text { margin-top: 8px; }
.narrative .film-text summary { min-height: 44px; padding-block: 10px; }
.narrative .film-text[open] { max-width: 45ch; }
.narrative .film-play { bottom: 60px; }

/* Recognition: a quiet interruption, then a connective thread. */
.tension { position: relative; overflow: hidden; background: var(--ink); color: var(--on-navy); padding-block: 112px; }
.tension > :not(.atmosphere) { position: relative; }
.tension h2 { color: var(--surface); max-width: 22ch; font-size: clamp(36px, 4.3vw, 62px); }
.tension h2 span { color: var(--on-navy-muted); }
.tension-copy { max-width: 48ch; margin: 40px 0 0 39%; display: grid; gap: 14px; font-size: 18px; }
.idea-chapter { overflow: hidden; }
.idea-chapter .section-heading { max-width: 800px; }
.idea-thread { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; padding-top: 28px; margin-top: 60px; }
.idea-thread::before { content: ''; position: absolute; height: 1px; top: 0; left: 0; right: 0; background: var(--gold); transform-origin: left; }
.idea-thread li { position: relative; }
.idea-thread li::before { content: ''; position: absolute; top: -32px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-ink); }
.idea-thread h3 { font-family: var(--serif); font-size: 28px; margin-bottom: 12px; }
.idea-thread p { max-width: 25ch; color: var(--muted); }
.idea-foot { margin-top: 44px; border-bottom: 1px solid var(--line); }
.idea-foot > p { max-width: 62ch; padding-block: 20px 30px; color: var(--muted); font-size: 14px; }

/* Imagination: existing accessible tabs, distinct from the photographic reel. */
.narrative .industries { border: 0; padding-top: 80px; }
.narrative .industry-tabs { gap: 0; border-bottom: 1px solid var(--line); }
.narrative .industry-tabs [role='tab'] { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 18px; min-height: 150px; }
.narrative .industry-tabs [role='tab'][aria-selected='true'] { color: var(--ink); background: var(--tint); }
.narrative .industry-tabs [role='tab']:hover { transform: none; background: var(--bg); }
.narrative .industry-tabs [role='tab'][aria-selected='true'] .tab-hint { color: var(--text); }
.narrative .industry-tabs [role='tab'][aria-selected='true'] .tab-name { color: var(--ink); }
.narrative .industry-tabs [role='tab'][aria-selected='true'] .tab-icon { color: var(--gold-ink); background: transparent; }
.narrative .industry-panel { min-height: 310px; border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 28px 0 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.narrative .industry-text { align-content: center; }
.business-scene { padding: 26px 30px; background: var(--bg); border-radius: 12px; }
.scene-label { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.scene-question { font: 24px/1.25 var(--serif); color: var(--ink); margin-bottom: 22px; }
.business-scene li { padding-block: 9px; border-top: 1px solid var(--line); font-size: 14px; }
.narrative .industry-tabs [role='tab'] .tab-hint { font-size: 12px; }

.capability-story { background: var(--bg); }
.capability-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 116px); align-items: start; }
.sale-example { position: sticky; top: 110px; padding-top: 22px; }
.sale-paper { padding: clamp(24px, 3vw, 44px); background: var(--surface); border-radius: 12px; box-shadow: 0 24px 48px -32px rgba(11,27,51,.3); }
.sale-paper h3 { font: 28px/1.2 var(--serif); margin-bottom: 24px; }
.sale-paper dl > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; font-size: 14px; }
.sale-paper dd { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sale-total { border-block: 1px dashed var(--line); font-weight: 600; margin-top: 12px; }
.sale-paper > p:last-child { font-size: 14px; color: var(--muted); margin-top: 26px; max-width: 28ch; }
.sale-example figcaption { color: var(--muted); font-size: 12px; margin-top: 20px; }
.operation-story li { position: relative; border-left: 1px solid var(--line); padding: 0 0 38px 28px; }
.operation-story li:last-child { padding-bottom: 0; }
.operation-story li::before { content: ''; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-ink); left: -4px; top: 9px; }
.operation-story h3 { font: 26px/1.25 var(--serif); margin-bottom: 12px; }
.operation-story p { max-width: 44ch; }
.capability-note { margin-top: 44px; max-width: 70ch; color: var(--muted); font-size: 13px; }

.tribe-chapter { position: relative; overflow: hidden; background: var(--ink); color: var(--on-navy); display: grid; grid-template-columns: minmax(0, 1fr) 210px; align-items: end; gap: 48px; padding-block: 104px 52px; }
.tribe-chapter > :not(.atmosphere) { position: relative; }
.tribe-chapter h2 { color: var(--surface); max-width: 23ch; }
.tribe-chapter h2 span { color: var(--gold-light); }
.tribe-copy > p { max-width: 53ch; margin-top: 24px; }
.tribe-copy .tribe-line { font-size: 18px; color: var(--on-navy-muted); margin-block: 24px 36px; }
.tribe-copy .text-link { color: var(--gold-light); margin-top: 28px; }
.tribe-copy .text-link:focus-visible { outline-color: var(--gold-light); }
.tribe-companion { width: 180px; justify-self: center; }
.atmosphere-credit { grid-column: 1 / -1; font-size: 11px; color: var(--on-navy-muted); }
.narrative .contact { position: relative; overflow: hidden; padding-top: 112px; background: var(--bg); color: var(--text); }
.contact-intro, .narrative .contact-form, .landing-plans { position: relative; }
.narrative .contact h2 { max-width: 16ch; color: var(--ink); }
.narrative .contact .section-lead { color: var(--text); }
.narrative .contact-direct a { color: var(--ink); }
.narrative .contact .copy-status { color: var(--gold-ink); }
.narrative .contact :focus-visible { outline-color: var(--ink); }
.pilot-note { margin-top: 28px; max-width: 48ch; color: var(--muted); font-size: 14px; }
.landing-plans { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; }
.landing-plans > summary { cursor: pointer; color: var(--ink); min-height: 44px; padding-block: 10px; font-weight: 600; }
.landing-plans > p { max-width: 75ch; font-size: 14px; margin-block: 20px; }
.landing-plans .plan { box-shadow: none; transform: none; }
.narrative [data-enter] { --enter-delay: 0ms; }

@media (prefers-reduced-motion: no-preference) {
    .hero-light { animation: story-light 28s ease-in-out infinite alternate paused; }
    .hero.is-in-view .hero-light { animation-play-state: running; }
    .motion-paused .hero.is-in-view .hero-light { animation-play-state: paused; }
    @keyframes story-light { to { transform: translate(-5%, 3%) scale(1.08); } }
    .narrative .story img { transition: transform 700ms var(--story-ease); }
    .narrative .story:hover img { transform: scale(.985); }
    .narrative .industry-panel:not([hidden]) { animation: scene-enter 450ms var(--story-ease); }
    @keyframes scene-enter { from { opacity: .5; transform: translateX(10px); } }
    .story-motion [data-enter='frame'] { clip-path: inset(0 0 12% 0); transition: clip-path 900ms var(--story-ease); }
    .story-motion [data-enter='frame'].has-entered { clip-path: inset(0); }
    .story-motion [data-enter='words'] span { display: inline; opacity: .4; transition: opacity 900ms ease 150ms; }
    .story-motion [data-enter='words'].has-entered span { opacity: 1; }
    .story-motion [data-enter='thread']::before { transform: scaleX(.06); transition: transform 1200ms var(--story-ease); }
    .story-motion [data-enter='thread'].has-entered::before { transform: scaleX(1); }
    .story-motion .idea-thread li { opacity: .55; transition: opacity 650ms ease; }
    .story-motion .idea-thread.has-entered li { opacity: 1; transition-delay: calc(var(--step, 0) * 120ms); }
    .idea-thread li:nth-child(2) { --step: 1; }
    .idea-thread li:nth-child(3) { --step: 2; }
    .idea-thread li:nth-child(4) { --step: 3; }
    .story-motion [data-enter='step'] { opacity: .5; transform: translateX(10px); transition: opacity 700ms ease, transform 700ms var(--story-ease); }
    .story-motion [data-enter='step'].has-entered { opacity: 1; transform: none; }
    .story-motion [data-enter='luke'] .chapter-luke { transform: translateY(24px); opacity: .25; transition: transform 1000ms var(--story-ease), opacity 750ms ease; }
    .story-motion [data-enter='luke'].has-entered .chapter-luke { transform: none; opacity: 1; }
}
@media (max-width: 1100px) {
    .narrative .hero-copy { width: 85%; }
    .narrative .hero > .hero-companion { right: 5%; width: 104px; }
    .hero-companion span { display: none; }
    .narrative .industry-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .narrative .industry-tabs [role='tab'] { padding: 14px 10px; }
    .narrative .industry-tabs .tab-hint { display: none; }
    .narrative .industry-panel { gap: 32px; }
}
@media (max-width: 1000px) {
    .narrative .stories-carousel { --card-width: 46%; }
    .narrative .film-grid { gap: 36px; }
    .narrative .film-play { top: 14px; bottom: auto; left: 14px; }
    .idea-thread { gap: 22px; }
    .idea-thread h3 { font-size: 24px; }
    .tribe-chapter { grid-template-columns: minmax(0, 1fr) 150px; }
    .tribe-companion { width: 140px; }
}
@media (max-width: 700px) {
    .narrative .hero { min-height: 0; padding-block: 54px 100px; }
    .narrative .hero-copy { width: 100%; }
    .narrative .hero h1 { font-size: clamp(39px, 9.8vw, 62px); max-width: 17ch; }
    .narrative .hero .lead { font-size: 17px; max-width: 29ch; }
    .hero-signature { font-size: 10px; letter-spacing: .13em; }
    .narrative .hero-actions { gap: 14px 22px; }
    .narrative .hero-actions .button { flex: 0 1 auto; }
    .hero-discover { font-size: 14px; }
    .narrative .hero-note { font-size: 12px; max-width: 30ch; margin-top: 22px; }
    .narrative .hero > .hero-companion { width: 66px; right: 6%; bottom: 55px; }
    .narrative .opening-reel { margin-top: -32px; padding-bottom: 28px; }
    .narrative .stories-carousel { --card-width: 84%; }
    .narrative .stories-track { gap: 14px; }
    .narrative .story-line { font-size: 20px; }
    .narrative .film { padding-block: 30px 64px; }
    .narrative .film-grid { grid-template-columns: 1fr; gap: 26px; }
    .narrative .film h2 { max-width: 20ch; }
    .narrative .film .section-heading { gap: 12px; }
    .narrative .film-text { font-size: 13px; margin-top: 0; }
    .tension { padding-block: 76px; }
    .tension-copy { margin-left: 0; font-size: 16px; max-width: 40ch; }
    .atmosphere--coffee { width: 65%; height: 70%; }
    .idea-thread { grid-template-columns: 1fr; gap: 30px; padding: 0 0 0 26px; margin-top: 40px; }
    .idea-thread::before { width: 1px; height: auto; bottom: 0; right: auto; transform-origin: top; }
    .story-motion [data-enter='thread']::before { transform: scaleY(.06); }
    .story-motion [data-enter='thread'].has-entered::before { transform: scaleY(1); }
    .idea-thread li::before { left: -30px; top: 9px; }
    .idea-thread p { max-width: 36ch; }
    .idea-thread h3 { margin-bottom: 6px; }
    .idea-foot { margin-top: 20px; }
    .idea-foot > p { font-size: 13px; }
    .narrative .industry-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding: 0; gap: 4px; }
    .narrative .industry-tabs [role='tab'] { min-height: 88px; padding: 12px; display: flex; align-items: center; text-align: left; gap: 10px; }
    .narrative .industry-tabs .tab-name { font-size: 13px; }
    .narrative .industry-tabs [role='tab']:last-child { grid-column: 1 / -1; min-height: 60px; }
    .narrative .industry-tabs .tab-icon { flex-shrink: 0; }
    .narrative .industry-panel { grid-template-columns: 1fr; min-height: 430px; gap: 24px; align-content: start; }
    .narrative .industry-text { min-height: 118px; }
    .business-scene { padding: 22px; }
    .capability-layout { grid-template-columns: 1fr; gap: 42px; }
    .sale-example { position: static; max-width: 440px; padding-top: 0; }
    .operation-story h3 { font-size: 25px; }
    .tribe-chapter { grid-template-columns: minmax(0, 1fr) 72px; gap: 28px 0; padding-block: 72px 32px; }
    .tribe-copy { grid-column: 1 / -1; }
    .tribe-copy > p { max-width: 37ch; }
    .tribe-companion { grid-column: 2; width: 72px; }
    .atmosphere-credit { grid-column: 1; grid-row: 2; align-self: end; max-width: 30ch; }
    .atmosphere--forest { mask-image: linear-gradient(180deg, transparent 10%, #000 90%); }
    .narrative .contact { padding-top: 76px; }
    .landing-plans .plan-grid { grid-template-columns: 1fr; }
}
.no-js .narrative .industry-tabs { display: none; }
@media (prefers-reduced-motion: reduce) {
    .narrative *, .narrative *::before, .narrative *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: 0s !important; }
    .narrative [data-enter], .narrative [data-enter] .chapter-luke { opacity: 1; transform: none; clip-path: none; }
    .narrative .story:hover img, .narrative .button:hover { transform: none; }
}
@media print {
    .narrative .atmosphere, .hero-light, .stories-controls { display: none; }
    .narrative .stories-viewport { overflow: visible; }
    .narrative .stories-track { flex-wrap: wrap; }
    .narrative [data-enter], .narrative [data-enter] .chapter-luke { opacity: 1; transform: none; clip-path: none; }
}
