/* Cinematic layout pass: editorial rhythm, scene lighting, and clear hierarchy. */
:root {
  --maf-void: #080a0c;
  --maf-graphite: #111517;
  --maf-panel: #171b1d;
  --maf-panel-raised: #202426;
  --maf-text: #f5f1eb;
  --maf-muted: #aaa69f;
  --maf-copper: #b8734b;
  --maf-copper-light: #d49a72;
  --maf-gold: #e5a34e;
}

.section-shell { width: min(100% - 10vw, 1420px); }
.section-meta { font-size: 8px; letter-spacing: .17em; }
.eyebrow { font-size: 9px; letter-spacing: .19em; }
.chapter h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.055em;
  text-wrap: balance;
}

/* One full-bleed image anchors the whole story. */
.hero-photo { object-position: 53% 50%; filter: saturate(.88) contrast(1.04); }
.hero-backdrop { background: linear-gradient(90deg,rgba(5,8,11,.95),rgba(5,8,11,.82) 28%,rgba(5,8,11,.34) 61%,rgba(5,8,11,.05)); }
.hero-content h1 { font-family: var(--sans); font-style: italic; font-weight: 850; letter-spacing: -.09em; }
.hero-subtitle { max-width: 620px; color: #f0c17d; font-family: var(--display); font-weight: 400; }
.hero-description { max-width: 430px; font-size: 13px; }
.hero-chapter.is-current .hero-photo { animation: cinematic-drift 20s ease-in-out infinite alternate; }
@keyframes cinematic-drift { from { transform: scale(1); } to { transform: scale(1.045); } }

/* The proposal reveals the product before showing its price. */
.investment-chapter {
  background: radial-gradient(ellipse at 84% 7%,rgba(184,115,75,.17),transparent 38%),linear-gradient(118deg,#151719,#0b0d0f 62%,#111416);
}
.investment-intro { display: grid; grid-template-columns: 1fr .68fr; align-items: end; gap: 8%; margin-top: clamp(42px,7vh,78px); }
.investment-intro h2 { max-width: 680px; font-size: clamp(54px,6.3vw,88px); }
.investment-intro>p { max-width: 430px; margin: 0 0 8px; font-size: 13px; line-height: 1.7; }
.cost-centers { gap: 16px; margin-top: clamp(35px,5vh,54px); perspective: 1550px; }
.cost-center {
  padding: 21px 20px 19px;
  border-color: rgba(239,231,219,.14);
  border-top: 1px solid rgba(212,154,114,.72);
  background: linear-gradient(148deg,rgba(31,33,33,.87),rgba(13,15,16,.96) 58%,rgba(22,20,18,.91));
  box-shadow: 0 22px 48px rgba(0,0,0,.27),inset 0 1px rgba(255,255,255,.04);
}
.implementation-center { transform: translateY(8px) rotateY(1deg); }
.platform-center { transform: translateY(-8px) translateZ(12px); }
.media-center { transform: translateY(12px) rotateY(-1deg); }
.cost-center h3 { font-size: clamp(19px,1.8vw,25px); }
.center-amount { font-size: clamp(38px,4vw,56px); }
.cost-center li { font-size: 10px; line-height: 1.48; }
.investment-total { margin-top: 29px; padding: 16px 18px; border-color: rgba(212,154,114,.37); background: linear-gradient(104deg,rgba(184,115,75,.16),rgba(13,15,16,.96) 52%,rgba(17,18,18,.98)); }
.total-result>b { color: #e5a34e; font-size: clamp(29px,3.2vw,42px); }
.market-note { max-width: 1100px; margin-top: 12px; font-size: 9px; }

/* A distinct light stage for each part of the experience. */
.structure-chapter { background: radial-gradient(ellipse at 72% 18%,rgba(199,166,106,.1),transparent 36%),linear-gradient(132deg,#15191b,#090b0d 72%); }
.structure-heading { grid-template-columns: 1fr .7fr; margin-top: clamp(52px,9vh,96px); }
.structure-heading h2 { max-width: 800px; font-size: clamp(57px,6.8vw,94px); }
.structure-heading .lead { max-width: 450px; font-size: 13px; }
.ecosystem { min-height: 285px; margin-top: 28px; }
.eco-node { min-width: 0; padding-right: 20px; }
.node-glyph { width: 58px; height: 58px; border-color: rgba(212,154,114,.47); background: linear-gradient(145deg,rgba(184,115,75,.16),rgba(12,14,15,.35)); color: #edb368; }
.eco-node h3 { font-size: 19px; }
.structure-bottom { padding-top: 18px; }

.journey-chapter { background: radial-gradient(ellipse at 80% 58%,rgba(184,115,75,.16),transparent 36%),linear-gradient(111deg,#090b0d,#14181a 76%,#0a0c0e); }
.journey-shell { display: flex; flex-direction: column; }
.journey-heading { max-width: 800px; margin-top: clamp(38px,7vh,72px); }
.journey-heading h2 { font-size: clamp(56px,6.6vw,90px); }
.journey-flow { grid-template-columns: .76fr 1.24fr; min-height: 500px; margin-top: 5px; }
.flow-step { padding: 16px 0; }
.flow-step>span { width: 36px; height: 36px; border-color: rgba(212,154,114,.52); }
.flow-step h3 { font-size: 18px; }
.flow-step p { font-size: 11px; }
.phone-scene { min-height: 500px; background: radial-gradient(ellipse 43% 60% at 54% 52%,rgba(184,115,75,.11),transparent 76%); }
.phone-light { width: min(42vw,430px); background: radial-gradient(circle,rgba(212,154,114,.2),rgba(184,115,75,.055) 45%,transparent 74%); }
.phone-mockup { width: 270px; height: 530px; transform: perspective(1350px) rotateY(-8deg) rotateX(2deg) rotateZ(1deg); box-shadow: 24px 42px 68px rgba(0,0,0,.58),-5px 0 18px rgba(212,154,114,.14),inset 0 0 0 2px #252929; }
.mobile-art { height: 153px; }
.mobile-art>img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 67% 52%; filter: saturate(.85); }
.mobile-art::after { z-index: 1; background: linear-gradient(90deg,rgba(5,8,10,.4),transparent 60%),linear-gradient(0deg,rgba(5,8,10,.64),transparent 67%); }
.mobile-art>span { z-index: 2; }
.legal-boundary { margin-top: 9px; }

.control-chapter { background: radial-gradient(ellipse at 80% 50%,rgba(199,166,106,.13),transparent 39%),linear-gradient(113deg,#111517,#090b0d 68%); }
.control-shell { grid-template-columns: .7fr 1.3fr; column-gap: 7%; }
.control-copy h2 { font-size: clamp(54px,6.1vw,83px); }
.control-copy .lead { font-size: 13px; }
.dashboard-device { transform: perspective(1500px) rotateY(-4deg) rotateX(1.4deg); }
.dashboard-screen { min-height: 355px; border-color: rgba(239,231,219,.22); background: linear-gradient(145deg,#1d2224,#101315); box-shadow: inset 0 0 0 4px #252a2b,0 25px 55px rgba(0,0,0,.32); }
.dashboard-halo { background: radial-gradient(ellipse,rgba(212,154,114,.15),transparent 70%); }

.scope-chapter { background: radial-gradient(ellipse at 8% 6%,rgba(184,115,75,.12),transparent 35%),linear-gradient(125deg,#15181a,#090b0d 72%); }
.scope-heading { grid-template-columns: 1fr .64fr; margin-top: clamp(48px,8vh,88px); }
.scope-heading h2 { font-size: clamp(55px,6.5vw,89px); }
.owner-note { max-width: 410px; }
.scope-visual { margin-top: clamp(30px,5vh,52px); }
.scope-rows { column-gap: 6%; }
.scope-row { min-height: 112px; padding-top: 19px; border-top-color: rgba(239,231,219,.19); }
.scope-row h3 { font-size: 17px; }
.scope-row p { font-size: 11px; }

.roles-chapter { background: radial-gradient(ellipse at 80% 29%,rgba(184,115,75,.12),transparent 39%),linear-gradient(117deg,#111517,#090b0d 72%); }
.roles-shell { grid-template-columns: .72fr 1.28fr; column-gap: 8%; }
.roles-heading { margin-top: clamp(68px,11vh,120px); }
.roles-heading h2 { font-size: clamp(55px,6.1vw,84px); }
.role-list { margin-top: clamp(48px,9vh,100px); }
.role-row { padding: 23px 0; }
.role-name>b { font-size: 25px; }
.role-row>p { font-size: 12px; }

.decision-chapter { background: radial-gradient(ellipse at 86% 24%,rgba(184,115,75,.18),transparent 39%),#090b0d; }
.decision-grid { grid-template-columns: .86fr 1.14fr; gap: 8%; margin-top: clamp(44px,7vh,78px); }
.timeline-number strong { color: #e5a34e; font-size: clamp(58px,7.2vw,96px); }
.decision-copy h2 { font-size: clamp(52px,6.1vw,82px); }
.execution-path { padding: 25px 27px 22px; border-top-color: rgba(212,154,114,.65); background: linear-gradient(145deg,rgba(26,29,30,.9),rgba(11,13,14,.85)); box-shadow: 0 25px 65px rgba(0,0,0,.29); }
.execution-path li { min-height: 72px; }
.decision-footer { margin-top: 32px; }

@media (hover:hover) and (pointer:fine) {
  .cost-center:hover { border-color: rgba(212,154,114,.42); box-shadow: 0 29px 58px rgba(0,0,0,.38),inset 0 1px rgba(255,255,255,.06); }
  .implementation-center:hover { transform: perspective(1450px) rotateY(0) translateY(3px) translateZ(7px); }
  .platform-center:hover { transform: perspective(1450px) rotateY(0) translateY(-12px) translateZ(18px); }
  .media-center:hover { transform: perspective(1450px) rotateY(0) translateY(7px) translateZ(7px); }
}

@media (max-width: 1050px) {
  .cost-centers { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .media-center { grid-column: 1 / -1; }
  .journey-flow { grid-template-columns: .82fr 1.18fr; gap: 4%; }
  .phone-mockup { width: 245px; height: 488px; }
  .dashboard-screen { min-height: 315px; }
}

@media (max-width: 700px) {
  .section-shell { width: calc(100% - 40px); }
  .chapter h2 { font-size: clamp(43px,11vw,61px); line-height: .98; }
  .hero-stage { align-items: flex-start; padding: 106px 22px 265px; }
  .hero-photo { inset: auto 0 42px; width: 100%; height: 40svh; max-height: none; object-fit: cover; object-position: 55% 52%; }
  .hero-backdrop { background: linear-gradient(180deg,#080a0c 0%,rgba(8,10,12,.93) 29%,rgba(8,10,12,.58) 55%,rgba(8,10,12,.04) 82%); }
  .hero-content { width: 100%; margin: 0; }
  .hero-content h1 { font-size: clamp(60px,16vw,92px); }
  .hero-subtitle { margin-top: 17px; font-size: clamp(27px,7vw,37px); }
  .hero-caption { left: 20px; bottom: 16px; }
  .hero-signature { right: 20px; bottom: 39px; }
  .hero-signature span { display: block; margin: 3px 0 0; }
  .investment-intro { display: grid; grid-template-columns: 1fr; gap: 13px; margin-top: 28px; }
  .investment-intro h2 { font-size: clamp(43px,11vw,60px); }
  .investment-intro>p { font-size: 11px; }
  .cost-centers { grid-template-columns: 1fr; gap: 12px; margin-top: 22px; perspective: none; }
  .cost-center,.implementation-center,.platform-center,.media-center { transform: none; }
  .cost-center { padding: 16px 15px; }
  .cost-center h3 { margin-top: 12px; font-size: 21px; }
  .center-amount { font-size: 40px; }
  .cost-center li { font-size: 10px; }
  .investment-total { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; padding: 13px; }
  .total-lines { padding: 10px 0; border-right: 0; border-left: 0; border-top: 1px solid var(--maf-line); border-bottom: 1px solid var(--maf-line); }
  .market-note { font-size: 8px; }
  .structure-heading { grid-template-columns: 1fr; gap: 13px; margin-top: 31px; }
  .structure-heading h2 { font-size: clamp(45px,11vw,63px); }
  .structure-heading .lead { margin: 0; font-size: 11px; }
  .ecosystem { grid-template-columns: 1fr; gap: 0; min-height: 0; margin: 22px 0 18px 4px; }
  .ecosystem-line { inset: 4px auto 8px 18px; width: 1px; background: linear-gradient(var(--maf-copper-light),rgba(184,115,75,.08)); }
  .ecosystem-line svg { display: none; }
  .eco-node { display: grid; grid-template-columns: 28px 42px 1fr; grid-template-rows: auto auto; align-items: center; gap: 0 10px; min-height: 68px; padding: 7px 0; }
  .node-number { grid-row: 1 / span 2; margin: 0; align-self: start; padding-top: 7px; }
  .node-glyph { grid-row: 1 / span 2; width: 36px; height: 36px; margin: 0; font-size: 19px; }
  .eco-node h3 { align-self: end; font-size: 15px; }
  .eco-node p { align-self: start; font-size: 9px; }
  .node-output { display: none; }
  .structure-bottom { gap: 8px; padding-top: 12px; }
  .structure-bottom p { font-size: 9px; }
  .journey-heading { margin-top: 29px; }
  .journey-heading h2 { font-size: clamp(45px,11vw,61px); }
  .journey-flow { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .flow-step { grid-template-columns: 30px 1fr; gap: 9px; padding: 8px 0; }
  .flow-step>span { width: 29px; height: 29px; }
  .flow-step h3 { font-size: 14px; }
  .flow-step p { font-size: 9px; }
  .phone-scene { min-height: 378px; }
  .phone-light { width: 78vw; }
  .phone-mockup { width: 205px; height: 398px; border-radius: 31px; transform: perspective(1100px) rotateY(-4deg) rotateX(1deg); }
  .phone-mockup::before { display: none; }
  .mobile-page { border-radius: 24px; }
  .mobile-art { height: 111px; }
  .legal-boundary { align-items: start; gap: 8px; }
  .legal-boundary p { font-size: 8px; }
  .control-shell { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .control-copy { margin-top: 30px; }
  .control-copy h2 { font-size: clamp(45px,11vw,61px); }
  .dashboard-device { transform: perspective(1100px) rotateY(-1.5deg) rotateX(1deg); }
  .dashboard-screen { grid-template-columns: 25px 1fr; min-height: 220px; }
  .dash-content { padding: 10px 7px; }
  .dash-header h3 { font-size: 13px; }
  .dashboard-metrics { gap: 4px; }
  .dashboard-metrics article { padding: 6px 4px; }
  .dashboard-metrics small,.dashboard-metrics span { font-size: 4px; }
  .dashboard-metrics b { font-size: 15px; }
  .dash-data-row { gap: 5px; }
  .dash-chart,.dash-activity { padding: 6px; }
  .chart-plot { height: 57px; }
  .dash-event { grid-template-columns: 11px 1fr; gap: 4px; }
  .dash-event time { display: none; }
  .scope-heading { grid-template-columns: 1fr; gap: 14px; margin-top: 31px; }
  .scope-heading h2 { font-size: clamp(45px,11vw,61px); }
  .owner-note { margin: 0; }
  .scope-rows { grid-template-columns: 1fr; }
  .scope-row { grid-template-columns: 25px minmax(0,1fr); gap: 9px; min-height: 0; padding: 14px 0; }
  .scope-row h3,.scope-row p,.scope-row small { grid-column: 2; grid-row: auto; }
  .scope-row .scope-index { grid-row: 1 / span 3; }
  .roles-shell { display: block; }
  .roles-heading { margin-top: 33px; }
  .role-list { margin-top: 24px; }
  .role-row { grid-template-columns: 1fr; gap: 7px; padding: 15px 0; }
  .role-row>p { font-size: 10px; }
  .decision-grid { grid-template-columns: 1fr; gap: 23px; margin-top: 32px; }
  .decision-copy h2 { font-size: clamp(44px,10.5vw,60px); }
  .execution-path { padding: 15px 13px; }
  .execution-path ol { gap: 0 10px; }
  .execution-path li { grid-template-columns: 22px 1fr; gap: 6px; min-height: 58px; padding: 10px 0 7px; }
  .decision-footer { flex-wrap: wrap; gap: 10px 14px; }
  .decision-footer>span { order: 2; flex-basis: 100%; }
  .decision-footer>strong { margin-left: auto; }
}

@media (max-width: 390px) {
  .section-shell { width: calc(100% - 32px); }
  .hero-content h1 { font-size: clamp(57px,16vw,70px); }
  .cost-center { padding-right: 12px; padding-left: 12px; }
  .execution-path ol { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-chapter.is-current .hero-photo { animation: none; }
}
