/* Isolated prototype. Existing pages keep their current styles and scripts. */
body.immersive-prototype { background: #f7f8f5; }
.immersive-prototype main#main { margin: 0; padding: 0; }
.immersive-prototype .navbar { height: 74px; background: rgba(250,251,248,.96); border-bottom: 1px solid rgba(27,94,32,.1); }
.immersive-prototype .navbar .container { height: 100%; }
.immersive-prototype .navbar-brand, .immersive-prototype .nav-link { text-shadow: none; }
.immersive-prototype .nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; }
.immersive-prototype :focus-visible { outline: 3px solid #ae713c; outline-offset: 5px; }
.immersive-prototype .btn-primary-theme { display: inline-flex; align-items: center; justify-content: center; gap: 1.4rem; padding: .9rem 1.4rem; font-size: .95rem; }
.story-track { position: relative; }
.story-stage { position: relative; }
.story-scene { position: relative; min-height: 680px; padding: 105px 0 65px; overflow: clip; background: #f7f8f5; }
.scene-shell { width: min(1320px, 86%); margin: auto; position: relative; }
.scene-background, .scene-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-background { object-fit: cover; object-position: center; }
.scene-shade { background: linear-gradient(90deg,rgba(16,35,23,.85) 0%,rgba(16,35,23,.65) 45%,rgba(16,35,23,.15) 100%); }
.scene-hero { display: flex; align-items: center; }
.hero-copy h1 { font-size: clamp(2.6rem,4.8vw,5rem); line-height: 1.13; letter-spacing: -.045em; max-width: 950px; color: #fff; margin: 1.2rem 0 1.6rem; }
.story-scene em { font-style: normal; color: #2e7d32; }
.hero-copy em { color: #c7e0b9; }
.story-scene .eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #38633c; margin-bottom: 1.4rem; }
.hero-copy .eyebrow { color: #d8e9d2; }
.hero-copy .scene-lead { color: #f3f5ef; font-size: clamp(1rem,1.4vw,1.25rem); line-height: 1.8; margin-bottom: 2rem; }
.hero-copy .scroll-invitation { color: #e8eee4; font-size: .78rem; margin-top: 2rem; margin-bottom: 0; }
.scroll-invitation span { display: inline-block; margin-right: .6rem; }
.split-scene { display: grid; grid-template-columns: .9fr 1fr; align-items: center; gap: clamp(2rem,6vw,7rem); }
.scene-photo { margin: 0; position: relative; }
.scene-photo img { display: block; width: 100%; height: clamp(300px,54vh,560px); object-fit: cover; border-radius: 5px; object-position: center 40%; }
.scene-photo figcaption { margin-top: .8rem; font-size: .7rem; color: #647167; }
.scene-copy h2 { font-size: clamp(2.1rem,3.6vw,3.8rem); letter-spacing: -.045em; line-height: 1.15; margin-bottom: 1.4rem; }
.scene-copy > p:not(.eyebrow) { font-size: clamp(.95rem,1.1vw,1.1rem); line-height: 1.8; max-width: 570px; }
.scene-copy .location-note { color: #38633c; font-size: .9rem; }
.scene-copy .btn { margin-top: .8rem; }
.scene-services { background: #edf4e9; }
.services-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 6vw; align-items: center; }
.service-list { border-top: 1px solid #b6cbb5; }
.service-list > a { display: grid; grid-template-columns: 28px 1fr 20px; align-items: start; gap: 1rem; padding: 1.6rem 0; border-bottom: 1px solid #b6cbb5; color: #1b5e20; text-decoration: none; }
.service-list h3 { font-size: clamp(1.05rem,1.4vw,1.4rem); line-height: 1.4; margin-bottom: .55rem; }
.service-list p { font-size: .9rem; line-height: 1.7; margin: 0; }
.service-list > a:hover h3 { color: #2e7d32; text-decoration: underline; text-underline-offset: 4px; }
.service-index { font-size: .75rem; padding-top: .3rem; }
.story-controls { display: none; }
.immersive-prototype #after-story { scroll-margin-top: 90px; }
.immersive-prototype .about-reading { padding: 2rem 0; }
.immersive-prototype .footer-custom { position: relative; }
.immersive-prototype .footer-custom a { overflow-wrap: anywhere; }

/* Pinned presentation is an enhancement: without JS all content stays readable. */
@media (min-width: 992px) and (min-height: 650px) and (prefers-reduced-motion: no-preference) {
  .immersive-enabled .story-track { height: var(--track-height); }
  .immersive-enabled .story-stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
  .immersive-enabled .story-scene { position: absolute; inset: 0; min-height: 0; padding: 100px 0 100px; display: flex; align-items: center; opacity: 0; visibility: hidden; will-change: transform,opacity; }
  .immersive-enabled .story-scene:first-child { opacity: 1; visibility: visible; }
  .immersive-enabled .story-controls { display: flex; align-items: center; justify-content: space-between; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; padding: 0 7%; z-index: 10; background: #f7f8f5; border-top: 1px solid #dfe6da; }
  .story-steps { display: flex; gap: 2rem; }
  .story-steps button { border: 0; padding: .6rem 0; background: none; color: #526453; font: inherit; font-size: .8rem; }
  .story-steps button span { margin-right: .4rem; font-size: .65rem; }
  .story-steps button[aria-current="step"] { color: #1b5e20; font-weight: 700; }
  .story-skip { color: #315837; font-size: .8rem; text-decoration: none; }
  .story-skip:hover { text-decoration: underline; }
  .story-meter { height: 3px; position: absolute; left: 0; bottom: 0; right: 0; background: #e3eadd; }
  .story-meter span { display: block; height: 100%; background: #2e7d32; transform-origin: left; transform: scaleX(0); }
}
@media (max-width: 991.98px) {
  .immersive-prototype .navbar { height: 64px; }
  .immersive-prototype .navbar-collapse { background: #fafbf8; padding: 1rem; box-shadow: 0 12px 20px #172b1815; }
  .immersive-prototype .navbar .nav-link { padding: .9rem; }
  .story-scene { min-height: 0; padding: 100px 0 65px; }
  .scene-hero { min-height: 85svh; }
  .split-scene, .services-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .scene-photo { max-width: 540px; }
  .scene-photo img { height: 380px; }
  .scene-shell { width: 88%; }
  .scene-copy h2 { font-size: clamp(2rem,6vw,3rem); }
  .hero-copy h1 { font-size: clamp(2.5rem,8vw,4rem); }
}
@media (max-width: 575.98px) {
  .immersive-prototype .navbar-brand { max-width: 78%; font-size: .75rem; }
  .immersive-prototype .navbar-logo { width: 28px; height: 28px; }
  .immersive-prototype .navbar-toggler-text { display: none; }
  .scene-photo img { height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .immersive-prototype *, .immersive-prototype *::before, .immersive-prototype *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Complete Chi Sono sequence; scoped so the approved Home keeps its layout. */
.about-immersive .story-scene { scroll-margin-top: 74px; }
.about-immersive .scene-copy h2 { font-size: clamp(2rem,3.25vw,3.5rem); }
.about-immersive .scene-copy > p:not(.eyebrow) { font-size: clamp(.95rem,1.05vw,1.05rem); line-height: 1.75; }
.about-immersive .scene-photo img { height: clamp(300px,49vh,530px); }
.about-immersive .approach-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,6rem); align-items: center; }
.about-immersive .scene-approach, .about-immersive .scene-invitation { background: #edf4e9; }
.about-immersive .meeting-panel h3, .about-immersive .training-panel h3 { font-size: clamp(1.2rem,1.6vw,1.65rem); line-height: 1.4; margin: 0 0 1.2rem; }
.about-immersive .meeting-list { list-style: none; padding: 0; margin: 0; }
.about-immersive .meeting-list li { display: grid; grid-template-columns: 2rem 1fr; gap: .6rem; padding: .85rem 0; border-top: 1px solid #bdd0b6; }
.about-immersive .meeting-list span { color: #39753e; font-size: .75rem; padding-top: .2rem; }
.about-immersive .meeting-list p { margin: 0; line-height: 1.65; font-size: .95rem; }
.about-immersive .method-heading { margin-bottom: 2rem; }
.about-immersive .method-heading h2 { margin-bottom: .7rem; }
.about-immersive .method-heading > p:not(.eyebrow) { max-width: none; }
.about-immersive .method-path { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; list-style: none; padding: 0; margin: 0; }
.about-immersive .method-path li { border-top: 2px solid #9fbe98; padding-top: 1rem; }
.about-immersive .method-number { display: block; color: #39753e; font-size: 1.6rem; margin-bottom: .65rem; }
.about-immersive .method-path h3 { font-size: 1.15rem; line-height: 1.4; margin-bottom: .8rem; }
.about-immersive .method-path p { font-size: .95rem; line-height: 1.75; margin: 0; }
.about-immersive .training-panel { padding: clamp(1.5rem,3vw,3rem); background: #edf4e9; border-left: 3px solid #7aa578; }
.about-immersive .training-panel p { font-size: .95rem; line-height: 1.75; }
.about-immersive .training-panel p:last-child { margin-bottom: 0; }
.about-immersive .training-symbol { display: block; color: #39753e; font-size: 2rem; margin-bottom: 1rem; }
.about-immersive .invitation-layout { display: grid; grid-template-columns: 1.4fr .6fr; gap: 4rem; align-items: center; }
.about-immersive .invitation-layout h3 { max-width: 650px; font-size: 1.2rem; line-height: 1.6; margin-bottom: 1rem; font-weight: 600; }
.about-immersive .invitation-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.about-immersive .story-outline { display: inline-flex; gap: 1rem; align-items: center; color: #1b5e20; border: 1px solid #2e7d32; padding: .9rem 1.4rem; }
.about-immersive .story-outline:hover { background: #dcead5; }
.about-immersive .invitation-note { padding-left: 2rem; border-left: 1px solid #b6cbb5; }
.about-immersive .invitation-note > span { display: block; color: #5c8753; font-size: 5rem; line-height: 1.1; margin-bottom: 1.5rem; }
.about-immersive .invitation-note p { font-size: 1.25rem; line-height: 1.8; }
.about-immersive .invitation-note a { color: #1b5e20; }
.about-immersive .story-steps { gap: clamp(.5rem,1.3vw,1.5rem); }
.about-immersive .story-steps button { white-space: nowrap; font-size: .75rem; }
@media (max-width: 1199.98px) {
  .about-immersive .story-steps button span { display: none; }
  .about-immersive .story-skip { font-size: .75rem; }
}
@media (max-width: 991.98px) {
  .about-immersive .approach-layout, .about-immersive .invitation-layout, .about-immersive .method-path { grid-template-columns: 1fr; gap: 2rem; }
  .about-immersive .scene-copy h2 { font-size: clamp(2rem,6vw,3rem); }
  .about-immersive .invitation-note { padding-left: 0; padding-top: 1.5rem; border-left: 0; border-top: 1px solid #b6cbb5; }
  .about-immersive .invitation-note > span { display: none; }
}
