/* Aluz: refinement of the existing cinematic identity, not a new design system.
   Layer scale: film 1, method 4, hero 5, reading flow 6, header 50, skip link 110.
   Shape rule: controls 8px, media and panels 12px. Dark brand theme throughout. */
:root {
  --text-on-dark: #eef4fb;
  --text-soft: #becbdd;
  --text-faint: #a4b5ca;
  --accent-ink: #77bdff;
  --btn: #0a5fd0;
  --btn-hover: #084fae;
  --line: rgba(164, 181, 202, .22);
  --control-radius: 8px;
  --surface-radius: 12px;
  --page-gutter: clamp(20px, 5vw, 88px);
  --content-width: 1280px;
}
html { color-scheme: dark; }
body { font-size: 1.0625rem; line-height: 1.65; }
::selection { color: var(--text-on-dark); background: #185bac; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 5px; }
main:focus, section[tabindex='-1']:focus { outline: none; }
.std-inner { max-width: var(--content-width); }
.std { padding: clamp(72px, 8vw, 120px) var(--page-gutter); }
.std + .std { border-top: 1px solid var(--line); }
.std-heading, .section-heading, .result-name { letter-spacing: -.035em; line-height: 1.12; }
.std-heading { max-width: 24ch; font-size: clamp(2.15rem, 3.65vw, 3.6rem); }
.std-heading .beat { display: inline; color: var(--accent-ink); font-weight: 500; }
.std-lead { max-width: 60ch; margin-top: 1.5rem; font-size: clamp(1rem, 1.1vw, 1.125rem); line-height: 1.75; }
.std-note { color: var(--text-faint); max-width: 76ch; font-size: .9375rem; line-height: 1.65; border-top-color: var(--line); }

/* One compact navigation line; the menu handles the narrower sizes. */
.site-header { min-height: 72px; padding: 12px var(--page-gutter); gap: 24px; background: rgba(7, 20, 38, .94); border-bottom: 1px solid rgba(164, 181, 202, .12); }
.site-header.is-scrolled { background: rgba(7, 20, 38, .96); }
.site-header nav { gap: clamp(16px, 2vw, 28px); font-size: .875rem; }
.site-header > nav { flex-wrap: nowrap; }
.site-header nav a { white-space: nowrap; }
.brand img { height: 25px; }
.site-header .nav-cta { padding: .7rem 1.1rem; border: 1px solid rgba(238, 244, 251, .12); border-radius: var(--control-radius); }

/* The opening photograph shows the same strategy session as the first film scene. */
.hero-standalone { min-height: 100dvh; padding: 96px var(--page-gutter) clamp(44px, 7vh, 72px); grid-template-columns: minmax(0, 1.65fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-inner { min-width: 0; }
.hero-heading { font-size: clamp(2.75rem, 5.35vw, 5.65rem); line-height: 1.08; letter-spacing: -.04em; }
.hero-line { display: block; white-space: nowrap; }
.hero-heading .word { margin-right: 0; overflow-wrap: normal; }
.hero-heading .word:last-child { color: inherit; }
.hero-heading .hero-accent:last-child { color: var(--accent-ink); }
.hero-window { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; margin: 0; aspect-ratio: auto; align-self: stretch; justify-self: stretch; border: 0; outline: 0; border-radius: 0; overflow: hidden; }
.hero-window img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 66% center; opacity: 1; }
.hero-window::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,20,38,.98) 0%, rgba(7,20,38,.91) 30%, rgba(7,20,38,.48) 52%, rgba(7,20,38,.08) 76%), linear-gradient(0deg, rgba(7,20,38,.7), transparent 32%); }
.hero-tagline { margin-top: 28px; max-width: 43ch; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.65; }
.hero-cta-wrap { margin-top: 32px; }
.cta-pair { gap: 12px; }
.cta-button, .cta-ghost, .route-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .9rem 1.25rem; border-radius: var(--control-radius); font-size: .9375rem; line-height: 1.4; font-weight: 600; }
.cta-button { color: #eef4fb; border: 1px solid rgba(238, 244, 251, .14); }
.cta-ghost { border-color: rgba(164, 181, 202, .58); }
.route-cta { border-color: rgba(119, 189, 255, .58); }
.cta-button, .cta-ghost, .route-cta, .momento-choice { transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 180ms var(--ease-out); }
.cta-button:active, .cta-ghost:active, .route-cta:active, .momento-choice:active { transform: scale(.98); }
@media (min-width: 1101px) { .cta-button, .cta-ghost, .route-cta { white-space: nowrap; } }

/* Four method scenes retain their positions, ranges and film relationship. */
.section-heading { font-size: clamp(2rem, 2.9vw, 3.25rem); }
.section-body { margin-top: 22px; color: var(--text-soft); font-size: 1.0625rem; line-height: 1.7; }
.section-note { color: var(--accent-ink); font-size: .875rem; border-color: var(--line); margin-top: 24px; padding-top: 14px; }
.canvas-wrap { pointer-events: none; }

/* Written promises stay within the navy family instead of flipping the page theme. */
.std-paper { --paper-bg: #0b1b31; --paper-ink: #eef4fb; --paper-soft: #becbdd; --paper-accent: #77bdff; --paper-line: rgba(164, 181, 202, .22); }
.promise-grid { gap: 32px; margin-top: 48px; }
.promise { padding-top: 24px; border-top: 1px solid var(--line); }
.promise-figure { flex-direction: column; align-items: flex-start; gap: 12px; }
.promise-figure .count { font-size: clamp(3.5rem, 5.2vw, 5rem); line-height: 1; letter-spacing: -.045em; }
.promise-unit { font-size: 1rem; font-weight: 500; }
.promise-text { margin-top: 18px; max-width: 28ch; font-size: 1rem; line-height: 1.7; }
.std-promises .std-note { border-top: 0; padding-top: 0; margin-top: 40px; }

/* A focused introduction and a working guide, followed by an open comparison. */
.std-solar { background: var(--navy); }
.std-solar .std-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
.std-solar .std-heading { grid-column: 1; grid-row: 1; }
.std-solar > .std-inner > .std-lead { grid-column: 1; grid-row: 2; margin-top: 24px; }
.service-shortcut { grid-column: 1; grid-row: 3; margin: 24px 0 0; }
.service-shortcut .cta-ghost { border: 0; padding: 8px 0; min-height: 44px; font-family: var(--font-body); font-size: .9375rem; justify-content: flex-start; text-align: left; white-space: normal; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(119, 189, 255, .6); }
.momento { grid-column: 2; grid-row: 1 / span 3; margin: 0; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--surface-radius); background: var(--navy-alt); }
.momento-progress { margin-bottom: 28px; }
.momento-progress span { background: rgba(164, 181, 202, .25); }
.momento-progress span.on { background: var(--accent-ink); }
.momento-count { color: var(--text-faint); }
.momento-question { max-width: 26ch; font-size: clamp(1.4rem, 1.9vw, 1.8rem); line-height: 1.3; }
.momento-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; gap: 12px; }
.momento-choice { min-width: 0; min-height: 66px; padding: 16px; font-size: .9375rem; line-height: 1.5; background: var(--navy); border-color: rgba(119, 189, 255, .58); border-radius: var(--control-radius); }
.momento-link { color: var(--accent-ink); }
.momento-all-toggle { margin-top: 24px; }
.momento-result { grid-template-columns: 1fr; gap: 28px; }
.result-head .route-icon { width: 32px; height: 32px; }
.result-name { font-size: clamp(1.8rem, 2.7vw, 2.65rem); margin-top: 20px; }
.result-body { line-height: 1.7; }
.result-actions { gap: 12px 24px; margin-top: 24px; }
.momento:has(.momento-result:not([hidden])) { grid-column: 1 / -1; grid-row: 4; margin-top: 36px; }
.momento:has(.momento-result:not([hidden])) .momento-result { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; }
.paper-sheet { transform: none; box-shadow: none; border: 1px solid var(--line); border-radius: var(--surface-radius); background: var(--navy); color: var(--text-on-dark); padding: 28px; }
.sheet-kicker { font-family: var(--font-body); font-size: .875rem; letter-spacing: 0; text-transform: none; color: var(--text-faint); }
.sheet-title { margin-top: 12px; font-size: 1.4rem; line-height: 1.3; }
.sheet-list { border-top-color: var(--line); padding-top: 8px; }
.sheet-list li { padding: 12px 0; border: 0; color: var(--text-soft); line-height: 1.6; }
.sheet-list li::before { content: none; }
.sheet-note { color: var(--text-faint); border-top: 1px solid var(--line); padding-top: 16px; }
.route-list { grid-column: 1 / -1; margin-top: 48px; }
.route { grid-template-columns: minmax(0, .9fr) minmax(0, 1.55fr) minmax(280px, 1fr); gap: 28px; padding: 36px 0; border-top-color: var(--line); }
.route:last-child { border-bottom-color: var(--line); }
.route-ask { grid-template-columns: 1fr; gap: 12px; align-items: start; }
.route-icon { grid-row: auto; width: 36px; height: 36px; color: var(--accent-ink); }
.route-ask .route-question, .route-ask .route-name { grid-column: 1; }
.route-question { font-size: .875rem; line-height: 1.6; color: var(--text-faint); }
.route-name { margin: 0; font-size: clamp(1.35rem, 1.6vw, 1.6rem); line-height: 1.3; }
.route-body p, .route-price { font-size: 1rem; line-height: 1.7; }
.route-body .route-scope { font-size: .9375rem; line-height: 1.7; padding-top: 16px; border-top: 1px solid var(--line); }
.route-guarantee { line-height: 1.6; }
.route-offer { gap: 24px; }
.std-solar > .std-inner > .std-note { grid-column: 1 / -1; }

/* The real sequence carries its own labels; first contact has a calm inset. */
.std-como { background: var(--navy-alt); }
.como-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.steps { margin-top: 32px; }
.steps li { grid-template-columns: 40px minmax(0, 1fr); column-gap: 20px; padding: 24px 0; border-color: var(--line); }
.step-n { font-size: 1rem; font-weight: 500; padding-top: 4px; color: var(--accent-ink); }
.step-title { font-size: 1.125rem; line-height: 1.4; }
.step-text { margin-top: 10px; line-height: 1.7; font-size: 1rem; }
.first-message { padding: clamp(24px, 3vw, 40px); gap: 24px; border-color: var(--line); border-radius: var(--surface-radius); background: var(--navy); }
.first-message figcaption { color: var(--text-faint); line-height: 1.6; }
.bubble { align-self: flex-start; background: rgba(119, 189, 255, .1); color: var(--text-on-dark); border: 1px solid rgba(119, 189, 255, .28); border-radius: var(--surface-radius); padding: 20px; max-width: none; line-height: 1.7; }
.first-message .cta-button { width: 100%; }

/* Portrait and writing, with an image ratio that keeps the founder visible. */
.std-about { background: var(--navy); }
.about-grid { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(40px, 7vw, 100px); }
.about-photo { aspect-ratio: 4 / 5; border-radius: var(--surface-radius); border: 1px solid var(--line); background: var(--navy-alt); max-width: 430px; }
.about-photo img { object-fit: contain; object-position: center bottom; }
.about-sub { margin-top: 32px; font-size: .9375rem; }
.article-list { gap: 0; margin-top: 12px; }
.article-list li { border-top: 1px solid var(--line); }
.article-list a { display: block; min-height: 52px; padding: 16px 0; color: var(--text-soft); line-height: 1.6; font-size: .9375rem; text-decoration-color: rgba(119, 189, 255, .45); text-underline-offset: 5px; }

/* Native FAQ, stacked heading and spacious disclosure rows. */
.faq-grid { grid-template-columns: 1fr; gap: 40px; }
.faq-list { max-width: 960px; }
.faq-list details { border-color: var(--line); }
.faq-list summary { padding: 24px 48px 24px 0; font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 1.5; }
.faq-list summary::after { right: 4px; color: var(--accent-ink); }
.faq-list details p { font-size: 1rem; line-height: 1.75; margin-bottom: 24px; max-width: 76ch; }

/* Existing light composition remains the closing visual. */
.std-luz { padding-block: clamp(88px, 10vw, 160px); }
.luz-heading { font-size: clamp(2.4rem, 4.4vw, 4.25rem); max-width: 18ch; }
.std-luz .std-lead { max-width: 48ch; line-height: 1.75; }
.std-luz .cta-wrap { margin-top: 32px; }
.site-footer { padding: 48px var(--page-gutter); border-top: 1px solid var(--line); font-size: .875rem; }
.footer-grid { grid-template-columns: .6fr 1.5fr 1fr; gap: 32px 48px; }
.footer-logo { height: 25px; max-width: 150px; }
.site-footer p { line-height: 1.8; }
.site-footer a { color: var(--text-soft); }
.footer-place { gap: 20px; }
.cta-ghost-sm { min-height: 44px; font-size: .875rem; padding: .65rem 1rem; }

/* Entry accent only where it explains a new chapter; default content is visible. */
@media (prefers-reduced-motion: no-preference) {
  .chapter-arrive { animation: chapter-arrive 650ms var(--ease-out) both; }
  @keyframes chapter-arrive { from { opacity: .25; transform: translateY(20px); } to { opacity: 1; transform: none; } }
}
@media (hover: hover) {
  .cta-ghost:hover { border-color: var(--accent-ink); background: rgba(119, 189, 255, .08); }
  .route-cta:hover { border-color: var(--accent-ink); background: var(--btn); }
  .momento-choice:hover { background: rgba(119, 189, 255, .09); border-color: var(--accent-ink); }
  .article-list a:hover { color: var(--text-on-dark); text-decoration-color: var(--accent-ink); }
}

@media (max-width: 1100px) {
  .site-header { min-height: 68px; padding: 10px var(--page-gutter); gap: 16px; }
  .site-header .nav-cta { padding: .65rem .9rem; font-size: .8125rem; }
  .mobile-menu nav { left: var(--page-gutter); right: var(--page-gutter); background: var(--navy-alt); border-color: var(--line); }
  .hero-standalone { grid-template-columns: minmax(0, 1.7fr) minmax(0, .8fr); gap: 24px; padding-top: 88px; }
  .hero-heading { font-size: clamp(2.75rem, 5.2vw, 3.6rem); }
  .hero-window { height: 100%; }
  .hero-tagline { font-size: 1rem; max-width: 40ch; }
  .cta-pair { gap: 10px; }
  .cta-pair > a { padding: .85rem 1rem; font-size: .875rem; }
  .section-content .section-inner { border: 1px solid var(--line); }
  .route { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 24px 32px; }
  .route-offer { grid-column: 2; }
  .route-ask { grid-row: 1 / span 2; }
  .route-cta { white-space: normal; }
  .como-grid, .about-grid { gap: 40px; }
}
@media (max-width: 900px) {
  .std-solar .std-inner { grid-template-columns: 1fr; }
  .std-solar .std-heading, .std-solar > .std-inner > .std-lead, .service-shortcut, .momento { grid-column: 1; grid-row: auto; }
  .momento, .momento:has(.momento-result:not([hidden])) { grid-column: 1; grid-row: auto; margin-top: 32px; }
  .momento:has(.momento-result:not([hidden])) .momento-result { grid-template-columns: 1fr; gap: 24px; }
  .como-grid { grid-template-columns: 1fr; }
  .first-message { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1.5fr; }
  .footer-grid > p { grid-column: 2; }
}
@media (max-width: 767px) {
  :root { --page-gutter: 20px; }
  .std { padding-block: 64px; }
  .site-header { gap: 12px; }
  .brand img { height: 22px; }
  .mobile-menu summary { font-size: .8125rem; padding-inline: .65rem; border-color: rgba(164, 181, 202, .46); }
  .site-header .nav-cta { font-size: .75rem; padding: .55rem .7rem; }
  .site-header nav { gap: 0; }
  .hero-standalone { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; align-items: start; gap: 0; min-height: 100dvh; padding: 68px 0 max(24px, env(safe-area-inset-bottom)); }
  .hero-inner { grid-column: 1; grid-row: 2; width: 100%; padding: 20px var(--page-gutter) 0; }
  .hero-window { position: relative; inset: auto; grid-column: 1; grid-row: 1; width: 100%; height: clamp(180px, 30svh, 320px); max-height: none; aspect-ratio: auto; align-self: stretch; justify-self: stretch; border: 0; outline: 0; border-radius: 0; }
  .hero-window img { opacity: 1; object-position: 65% 48%; }
  .hero-window::after { background: linear-gradient(180deg, rgba(7,20,38,.02) 50%, rgba(7,20,38,.24) 78%, #071426 100%); }
  .hero-heading { font-size: clamp(2.05rem, 8.35vw, 3.9rem); line-height: 1.12; }
  .hero-tagline { max-width: 38ch; margin-top: 16px; line-height: 1.55; }
  .hero-cta-wrap { margin-top: 20px; width: 100%; gap: 4px; }
  .hero-cta-wrap > a { width: 100%; font-size: .9375rem; min-height: 50px; }
  .hero-cta-wrap > .cta-ghost { min-height: 44px; padding-block: 8px; border: 0; background: none; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(119,189,255,.6); }
  .hero-line { white-space: nowrap; }
  .align-left, .align-right { padding-inline: 16px; }
  .align-left .section-inner, .align-right .section-inner { background: rgba(7, 20, 38, .91); border: 1px solid var(--line); padding: 22px 20px; border-radius: var(--surface-radius); }
  .section-content .section-heading { font-size: clamp(1.6rem, 6.8vw, 2.2rem); line-height: 1.18; }
  .section-content .section-body { margin-top: 14px; font-size: .9375rem; line-height: 1.65; }
  .section-content .section-note { margin-top: 18px; padding-top: 12px; font-size: .8125rem; }
  .std-heading { font-size: clamp(2rem, 7.6vw, 2.6rem); }
  .std-heading .beat { font-weight: 500; }
  .promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; margin-top: 32px; }
  .promise { padding-top: 20px; }
  .promise-figure .count { font-size: 3.4rem; }
  .promise-text { font-size: .9375rem; }
  .promise-unit { font-size: .875rem; }
  .std-promises .std-note { margin-top: 32px; }
  .momento { padding: 24px 20px; }
  .momento-question { font-size: 1.45rem; }
  .momento-choices { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
  .momento-choice { min-height: 58px; }
  .paper-sheet { padding: 24px 20px; }
  .result-name { font-size: 1.9rem; line-height: 1.2; }
  .result-actions { flex-direction: column; align-items: stretch; }
  .route { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .route-ask { grid-row: auto; }
  .route-offer { grid-column: 1; gap: 20px; }
  .route-cta { width: 100%; }
  .route-name { font-size: 1.65rem; max-width: 24ch; }
  .route-ask .route-icon { width: 32px; height: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { width: 100%; max-width: 360px; }
  .como-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps li { grid-template-columns: 28px minmax(0, 1fr); gap: 16px; }
  .first-message { padding: 24px 20px; }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .faq-list summary { padding-block: 22px; }
  .std-luz { padding-block: 72px 64vw; }
  .luz-heading { font-size: clamp(2.2rem, 8.5vw, 3rem); }
  .std-luz .std-lead { max-width: 38ch; }
  .site-footer { padding-block: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid > p { grid-column: auto; }
}
@media (max-width: 360px) {
  :root { --page-gutter: 16px; }
  .site-header { gap: 8px; }
  .brand img { height: 19px; }
  .mobile-menu summary { padding-inline: .5rem; }
  .site-header .nav-cta { font-size: .6875rem; padding-inline: .55rem; }
  .hero-heading { font-size: 8.35vw; }
  .promise-grid { grid-template-columns: 1fr; }
}
@media (max-height: 620px) and (min-width: 768px) {
  .hero-standalone { padding-top: 88px; padding-bottom: 24px; }
  .hero-heading { font-size: clamp(2.5rem, 4.3vw, 4rem); }
  .hero-tagline { margin-top: 18px; font-size: 1rem; }
  .hero-cta-wrap { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .chapter-arrive { animation: none; }
  .cta-button:active, .cta-ghost:active, .route-cta:active, .momento-choice:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header, .site-header.is-scrolled, .align-left .section-inner, .align-right .section-inner { background: var(--navy); backdrop-filter: none; }
}
/* Fallback content retains readable full-width blocks when the movie cannot run. */
html:not(.js) #scroll-container, .static-method #scroll-container { padding-inline: var(--page-gutter); }
html:not(.js) .section-inner, .static-method .section-inner { max-width: 76ch; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }

/* The next chapter enters before the film's last frame leaves.
   Keep scene placement aligned to the same range used by ScrollTrigger:
   film height - overlap - viewport inset. The overlay uses the actual next surface. */
:root { --film-overlap: 60vh; --film-end-inset: 55vh; }
html.js:not(.static-method) .std-flow { margin-top: calc(-1 * var(--film-overlap)); }
.scroll-section { top: calc(var(--mid, .5) * (100% - var(--film-overlap) - var(--film-end-inset)) + 50vh); }
.canvas-wrap::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: var(--film-exit-color, #0b1b31); opacity: var(--film-fade, 0); }
@media (max-width: 1100px) {
  .scroll-section { top: calc(var(--mid, .5) * (100% - var(--film-overlap) - var(--film-end-inset)) + 100vh - 48px); }
}
@media (prefers-reduced-motion: reduce) {
  html.js:not(.static-method) .std-flow { margin-top: 0; }
}
html:not(.js) .scroll-section, .static-method .scroll-section { top: auto; }
