/* Web pública · portada. Hoja única de la página de inicio: reúne las capas
   históricas de la portada (experiencia, unificada, inmersiva, relato,
   fichas de servicio y contacto) en su orden original, ya sin la escena 3D.
   La escena es una imagen fija por servicio (img/escena). */
@font-face {
    font-family: "Manrope";
    src: url("/ge_web_portal/static/src/fonts/Manrope.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

body.public-site {
    --ja-paper: #e9eceb;
    --ja-dark: #202723;
    --ja-ink: #202723;
    --ja-muted: #626e67;
    --ja-accent: #cb633d;
    --ja-line: #b6bfbb;
    --ja-gutter: clamp(28px, 3.65vw, 58px);
    --ja-page-width: 1600px;
    margin: 0;
    background: var(--ja-dark);
    color: var(--ja-ink);
    font-family: "Manrope", Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    color-scheme: light;
}

body.public-site *,
body.public-site *::before,
body.public-site *::after { box-sizing: border-box; }
body.public-site [hidden] { display: none !important; }
body.public-site :where(h1, h2, h3, p, address, figure) { margin: 0; }
body.public-site :where(a, button, input, select, textarea) { -webkit-tap-highlight-color: transparent; }
body.public-site a { color: inherit; text-decoration: none; }
body.public-site :where(button, input, select, textarea) { font: inherit; }
body.public-site button { cursor: pointer; }
body.public-site button:disabled { cursor: default; }
body.public-site img { display: block; max-width: 100%; }
body.public-site svg { display: block; flex-shrink: 0; }
body.public-site :focus-visible { outline: 2px solid var(--ja-accent); outline-offset: 5px; }
body.public-site :where(section, article, #contact-form-panel) { scroll-margin-top: 24px; }
body.public-site ::selection { background: var(--ja-accent); color: #fff; }

body.public-site .hp-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
body.public-site .skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 12px 18px;
    background: var(--ja-dark);
    color: var(--ja-paper);
    transform: translateY(-170%);
}
body.public-site .skip-link:focus { transform: translateY(0); }
body.public-site .icon-arrow { width: 19px; height: 19px; }
body.public-site .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid currentColor;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
body.public-site :where(.btn) .icon-arrow { transition: transform 180ms ease; }
@media (hover: hover) {
    body.public-site :where(.btn):hover .icon-arrow { transform: translate(2px, -2px); }
}

/* The scene and its controls share one continuous pale canvas. */
body.public-site .experience-section { background: var(--ja-paper); }

body.public-site .contact-layout,
body.public-site .site-footer {
    width: 100%;
    max-width: var(--ja-page-width);
    margin-inline: auto;
    padding-inline: var(--ja-gutter);
}
body.public-site .installation-scene {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    height: clamp(510px, 42.3vw, 676px);
    margin: 0;
    isolation: isolate;
}
body.public-site #hero-title { font-size: clamp(48px, 4.17vw, 67px); font-weight: 400; line-height: 1.08; letter-spacing: -0.05em; overflow-wrap: anywhere; }
body.public-site:has(.experience-tab[data-world="automation"][aria-selected="true"]) #hero-title { font-size: clamp(32px, 2.85vw, 46px); letter-spacing: -0.045em; }

/* The enquiry remains native and available without WebGL or JavaScript. */
body.public-site .contact-section,
body.public-site .site-footer,
body.public-site .cookie-banner { --ja-ink: #f0f2ed; --ja-muted: #aab2ad; --ja-line: #5e6862; color: var(--ja-ink); color-scheme: dark; }
body.public-site .contact-section { background: var(--ja-dark); }
body.public-site .contact-layout { display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); gap: 84px; padding-block: 105px 82px; }
body.public-site .contact-copy { min-width: 0; }
body.public-site .contact-copy h2 { font-size: clamp(56px, 5.22vw, 80px); font-weight: 400; line-height: 1.08; letter-spacing: -0.049em; }
body.public-site .contact-methods { display: flex; flex-direction: column; gap: 38px; margin-top: 52px; font-style: normal; }
body.public-site .contact-methods a { display: block; width: fit-content; max-width: 100%; }
body.public-site .contact-methods a > span { display: block; color: var(--ja-muted); font-size: 17px; font-weight: 400; line-height: 1.5; }
body.public-site .contact-methods strong { display: block; margin-top: 8px; color: var(--ja-ink); font-size: clamp(22px, 2.1vw, 33px); font-weight: 400; line-height: 1.4; letter-spacing: -0.03em; overflow-wrap: anywhere; }
body.public-site .contact-methods a:hover strong { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
body.public-site .contact-area { margin-top: 43px; padding-top: 29px; border-top: 1px solid var(--ja-line); color: var(--ja-muted); font-size: 17px; line-height: 1.5; }
body.public-site .form-card { min-width: 0; }
body.public-site .form-title { margin-bottom: 33px; font-size: clamp(27px, 2.55vw, 39px); font-weight: 400; line-height: 1.2; letter-spacing: -0.04em; }
body.public-site .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 29px 36px; }
body.public-site .form-grid label { display: block; min-width: 0; color: var(--ja-muted); font-size: 16px; line-height: 1.5; }
body.public-site .field-full { grid-column: 1 / -1; }
body.public-site .form-grid label > span { display: block; }
body.public-site .form-grid input,
body.public-site .form-grid select,
body.public-site .form-grid textarea { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 8px 0 9px; border: 0; border-bottom: 1px solid #78867d; border-radius: 0; background: transparent; color: var(--ja-ink); font-size: 17px; font-weight: 400; line-height: 1.5; box-shadow: none; transition: border-color 160ms ease; }
body.public-site .form-grid textarea { min-height: 102px; resize: vertical; }
body.public-site .form-grid select { margin-top: 8px; padding-right: 8px; min-height: 46px; }
body.public-site .form-grid select option { background: var(--ja-dark); color: var(--ja-ink); }
body.public-site .form-grid :where(input, select, textarea):focus-visible { border-bottom-color: var(--ja-accent); outline-offset: 4px; }
body.public-site .form-grid input:-webkit-autofill { -webkit-text-fill-color: var(--ja-ink); box-shadow: 0 0 0 1000px var(--ja-dark) inset; }
body.public-site .consent { display: flex; align-items: flex-start; gap: 13px; margin-top: 27px; color: var(--ja-ink); font-size: 15px; line-height: 1.5; cursor: pointer; }
body.public-site .consent input { flex: 0 0 22px; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ja-accent); }
body.public-site .consent a { text-decoration: underline; text-underline-offset: 3px; }
body.public-site .form-submit { justify-content: space-between; min-width: 295px; min-height: 60px; margin-top: 28px; border-color: #f0f2ed; background: #f0f2ed; color: var(--ja-dark); font-size: 18px; font-weight: 400; }
body.public-site .form-submit:hover { background: #dce2dd; border-color: #dce2dd; }
body.public-site .form-submit:disabled { cursor: default; opacity: .65; }
body.public-site .contact-note { margin-top: 15px; color: var(--ja-muted); font-size: 13px; line-height: 1.5; }
body.public-site .form-errors { margin-bottom: 26px; padding: 18px 20px; border: 1px solid #c79b89; color: #f1c5b4; font-size: 15px; line-height: 1.5; }
body.public-site .form-errors p { font-weight: 500; }
body.public-site .form-errors ul { margin: 10px 0 0; padding-left: 20px; }
body.public-site .site-footer { padding-bottom: 25px; }
body.public-site .site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 32px; border-top: 1px solid var(--ja-line); }
body.public-site .footer-brand img { width: 215px; height: auto; filter: brightness(0) invert(1); }
body.public-site .footer-copy { margin-top: 18px; color: var(--ja-muted); font-size: 12px; text-align: right; }

body.public-site .cookie-banner { position: fixed; z-index: 40; right: 24px; bottom: 24px; width: min(480px, calc(100% - 48px)); }
body.public-site .cookie-banner-card { padding: 23px; border: 1px solid #657269; background: var(--ja-dark); color: var(--ja-ink); box-shadow: 0 10px 40px #0003; }
body.public-site .cookie-banner-copy { color: #c4cdc6; font-size: 13px; line-height: 1.6; }
body.public-site .cookie-banner-title { margin-bottom: 7px; color: var(--ja-ink); font-size: 18px; font-weight: 500; }
body.public-site .cookie-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
body.public-site .cookie-banner-actions .btn { min-height: 44px; padding: 10px 15px; font-size: 13px; }
body.public-site .cookie-banner-actions .btn-primary { background: var(--ja-paper); border-color: var(--ja-paper); color: var(--ja-dark); }
body.public-site .cookie-banner-actions .btn-secondary { border-color: #8d9a91; }
body.public-site .cookie-link { display: inline-block; min-height: 44px; padding-block: 11px; color: #c4cdc6; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1190px) {
    body.public-site .installation-scene { height: 520px; }
    body.public-site #hero-title { font-size: 48px; }
    body.public-site .contact-layout { gap: 45px; padding-block: 80px 65px; }
    body.public-site .contact-copy h2 { font-size: 60px; }
    body.public-site .contact-methods strong { font-size: 25px; }
    body.public-site .contact-methods a > span,
    body.public-site .contact-area { font-size: 16px; }
    body.public-site .form-title { font-size: 30px; }
    body.public-site .form-grid { gap: 26px 25px; }
    body.public-site .consent { font-size: 14px; }
}

@media (max-width: 820px) {
    body.public-site { --ja-gutter: 28px; }
    body.public-site .installation-scene { height: 430px; }
    body.public-site #hero-title { font-size: 41px; }
    body.public-site .contact-layout { display: block; }
    body.public-site .contact-methods { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    body.public-site .form-card { margin-top: 56px; }
}

@media (max-width: 650px) {
    body.public-site { --ja-gutter: 20px; }
    body.public-site #hero-title,
    body.public-site:has(.experience-tab[data-world="automation"][aria-selected="true"]) #hero-title { grid-column: 1; grid-row: 1; font-size: clamp(38px, 10.5vw, 56px); line-height: 1.08; letter-spacing: -.045em; }
    body.public-site .installation-scene { grid-column: 1; grid-row: 3; width: calc(100% + var(--ja-gutter) * 2); height: auto; min-height: 280px; aspect-ratio: 1.2; margin: 10px calc(var(--ja-gutter) * -1) 2px; }
    body.public-site .contact-layout { padding-block: 53px 48px; }
    body.public-site .contact-copy h2 { font-size: clamp(42px, 11vw, 60px); line-height: 1.08; }
    body.public-site .contact-methods { display: flex; margin-top: 34px; gap: 26px; }
    body.public-site .contact-methods a > span { font-size: 15px; }
    body.public-site .contact-methods strong { margin-top: 7px; font-size: clamp(21px, 5.6vw, 29px); letter-spacing: -.025em; }
    body.public-site .contact-area { margin-top: 31px; padding-top: 23px; font-size: 14px; }
    body.public-site .form-card { margin-top: 46px; }
    body.public-site .form-title { margin-bottom: 29px; font-size: clamp(25px, 6.7vw, 35px); line-height: 1.25; letter-spacing: -.04em; }
    body.public-site .form-grid { gap: 24px 22px; }
    body.public-site .form-grid label { font-size: 14px; }
    body.public-site .form-grid :where(input, select, textarea) { min-height: 44px; font-size: 16px; }
    body.public-site .form-grid textarea { min-height: 102px; }
    body.public-site .form-grid select { margin-top: 7px; }
    body.public-site .consent { gap: 11px; margin-top: 25px; font-size: 13px; line-height: 1.6; }
    body.public-site .consent input { flex-basis: 20px; width: 20px; height: 20px; }
    body.public-site .form-submit { min-width: 0; width: 100%; min-height: 54px; margin-top: 25px; font-size: 16px; }
    body.public-site .contact-note { margin-top: 13px; font-size: 11px; }
    body.public-site .form-errors { padding: 16px; font-size: 14px; }
    body.public-site .site-footer { padding-bottom: 23px; }
    body.public-site .site-footer-inner { align-items: flex-start; flex-direction: column; gap: 22px; padding-top: 27px; }
    body.public-site .footer-brand img { width: 185px; }
    body.public-site .footer-copy { margin-top: 14px; font-size: 11px; text-align: left; }
    body.public-site .cookie-banner { right: 12px; bottom: 12px; width: calc(100% - 24px); }
    body.public-site .cookie-banner-card { padding: 17px; }
    body.public-site .cookie-banner-copy { font-size: 12px; }
    body.public-site .cookie-banner-actions { gap: 9px; }
    body.public-site .cookie-banner-actions .btn { padding-inline: 12px; font-size: 12px; }
}

@media (max-width: 365px) {
    body.public-site { --ja-gutter: 18px; }
    body.public-site #hero-title,
    body.public-site:has(.experience-tab[data-world="automation"][aria-selected="true"]) #hero-title { font-size: 35px; }
    body.public-site .installation-scene { min-height: 265px; }
    body.public-site .form-grid { grid-template-columns: minmax(0, 1fr); }
    body.public-site .form-title { font-size: 24px; }
    body.public-site .contact-methods strong { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
    body.public-site *,
    body.public-site *::before,
    body.public-site *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* The enlarged viewer keeps the same native controls and a keyboard exit. */
body.public-site .experience-section.is-expanded { position: fixed; inset: 0; z-index: 20000; overflow: auto; padding: 0; background: var(--ja-paper); }
body.public-site .experience-section.is-expanded .installation-scene { height: calc(100dvh - 151px); }
body.public-site .experience-section.is-expanded #hero-title { font-size: 40px; }
@media(max-width: 1000px) {
    body.public-site .experience-section.is-expanded .installation-scene { grid-column: 1; grid-row: 3; height: 50dvh; width: calc(100% + 36px); margin-inline: -18px; }
    body.public-site .experience-section.is-expanded #hero-title { grid-column: 1; grid-row: 1; margin-top: 12px; font-size: 29px; }
}
/* Web pública · V9. One installation, the company's original services.
   Loaded after landing_experience.css; header, contact and form share its tokens. */

body.public-site .service-nav {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 34px;
    padding-block: 15px 20px;
}

body.public-site .service-nav::before,
body.public-site .service-nav::after {
    content: "";
    position: absolute;
    right: var(--ja-gutter);
    left: var(--ja-gutter);
    height: 1px;
    background: var(--ja-line);
}

body.public-site .service-nav::before { top: 0; }
body.public-site .service-nav::after { bottom: 0; }

body.public-site .service-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 13px;
    min-width: 0;
    min-height: 53px;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid #c2cac6;
    border-radius: 0;
    background: transparent;
    color: var(--ja-ink);
    font-size: clamp(16px, 1.42vw, 23px);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -.035em;
    text-align: left;
    transition: color 160ms ease;
}

body.public-site .service-link:nth-last-child(-n + 4) { border-bottom: 0; }
body.public-site .service-link :is(svg, .icon-arrow) { width: 18px; height: 18px; }
body.public-site .service-link:is( [aria-current="true"]) { color: #ad4a28; }

body.public-site .service-detail {
    display: grid;
    grid-template-columns: minmax(180px, .85fr) minmax(280px, 1.3fr) auto;
    align-items: center;
    gap: 24px 40px;
    min-height: 118px;
    padding-block: 23px 27px;
}

body.public-site .service-copy { min-width: 0; }
body.public-site #service-title {
    color: #ad4a28;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -.035em;
}

body.public-site #service-description {
    max-width: 43ch;
    margin-top: 4px;
    color: #526057;
    font-size: 13px;
    line-height: 1.5;
}

/* Enlarging the render preserves the active service controls and keyboard exit. */

@media (max-width: 1100px) {
    body.public-site .service-nav { column-gap: 25px; }
    body.public-site .service-link { gap: 9px; font-size: 17px; }
    body.public-site .service-detail { grid-template-columns: minmax(160px, .8fr) minmax(230px, 1.2fr); gap: 12px 28px; }
}

@media (max-width: 820px) {
    body.public-site .service-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 10px 16px; }
    body.public-site .service-link { min-height: 52px; font-size: 18px; }
    body.public-site .service-link:nth-last-child(-n + 4) { border-bottom: 1px solid #c2cac6; }
    body.public-site .service-link:nth-last-child(-n + 2) { border-bottom: 0; }
    body.public-site .service-detail { column-gap: 24px; }
}

@media (max-width: 650px) {
    body.public-site .service-nav { gap: 0 22px; padding-block: 8px 13px; }
    body.public-site .service-link { gap: 8px; min-height: 61px; padding-block: 10px; font-size: 16px; line-height: 1.35; letter-spacing: -.035em; }
    body.public-site .service-link :is(svg, .icon-arrow) { width: 15px; height: 15px; }
    body.public-site .service-detail { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 22px 25px; }
    body.public-site #service-title { font-size: 21px; }
    body.public-site #service-description { max-width: none; font-size: 13px; }
}

@media (max-width: 365px) {
    body.public-site .service-nav { column-gap: 18px; }
    body.public-site .service-link { font-size: 15px; }
}
/* Web pública · V10. A single live installation fills the viewport.
   Interface regions use the same continuous background as the WebGL scene. */

/* The existing page stays available without JavaScript. The enhancement only
   turns its contact section into a drawer after its controller is ready. */
body.public-site.contact-drawer-ready { overflow: hidden; }
body.public-site.contact-drawer-ready > .site-footer { display: none; }
body.public-site .contact-backdrop { display: none; }
body.public-site.contact-drawer-ready .contact-backdrop {
    position: fixed;
    z-index: 60;
    inset: 0;
    display: block;
    background: #20272338;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 200ms ease, visibility 200ms ease;
}
body.public-site.contact-drawer-ready .immersive-contact {
    position: fixed;
    z-index: 61;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(490px, 100vw);
    max-height: 100dvh;
    overflow: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 240ms ease, visibility 240ms ease;
}
body.public-site.contact-is-open .contact-backdrop { opacity: 1; visibility: visible; pointer-events: auto; }
body.public-site.contact-is-open .immersive-contact { visibility: visible; transform: translateX(0); }
body.public-site [data-contact-close] { display: none; }
body.public-site.contact-drawer-ready [data-contact-close] {
    position: absolute;
    top: 18px;
    right: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    border: 1px solid #839087;
    background: transparent;
    color: #f0f2ed;
    font-size: 13px;
}
body.public-site [data-contact-close] svg { width: 18px; height: 18px; }
body.public-site.contact-drawer-ready .immersive-contact .contact-layout { display: block; padding: 38px 36px; }
body.public-site.contact-drawer-ready .immersive-contact .contact-copy h2 { font-size: 43px; }
body.public-site.contact-drawer-ready .immersive-contact .contact-methods { display: grid; grid-template-columns: 1fr 1.35fr; gap: 22px; margin-top: 32px; }
body.public-site.contact-drawer-ready .immersive-contact .contact-methods a > span { font-size: 14px; }
body.public-site.contact-drawer-ready .immersive-contact .contact-methods strong { margin-top: 4px; font-size: 15px; }
body.public-site.contact-drawer-ready .immersive-contact .contact-area { margin-top: 24px; padding-top: 19px; font-size: 14px; }
body.public-site.contact-drawer-ready .immersive-contact .form-card { margin-top: 52px; }
body.public-site.contact-drawer-ready .immersive-contact .form-title { margin-bottom: 31px; font-size: 28px; }
body.public-site.contact-drawer-ready .immersive-contact .form-grid { gap: 25px 24px; }
body.public-site.contact-drawer-ready .immersive-contact .form-grid label { font-size: 14px; }
body.public-site.contact-drawer-ready .immersive-contact .form-grid :is(input, select, textarea) { font-size: 15px; }
body.public-site.contact-drawer-ready .immersive-contact .consent { font-size: 13px; }
body.public-site.contact-drawer-ready .immersive-contact .form-submit { width: 100%; min-width: 0; min-height: 54px; border-color: var(--ja-accent); background: var(--ja-accent); color: #fff; font-size: 16px; }
body.public-site.contact-drawer-ready .immersive-contact .form-submit:hover { background: #b95331; border-color: #b95331; }

/* Hiding interface controls is a local view mode, not a modal page overlay. */

@media (max-width: 650px) {
    body.public-site.contact-drawer-ready .immersive-contact .contact-layout { padding: 31px 23px; }
    body.public-site.contact-drawer-ready .immersive-contact .contact-copy h2 { font-size: 35px; }
    body.public-site.contact-drawer-ready [data-contact-close] { top: 22px; right: 18px; }
    body.public-site.contact-drawer-ready .immersive-contact .contact-methods { gap: 16px; margin-top: 30px; }
    body.public-site.contact-drawer-ready .immersive-contact .contact-methods a > span { font-size: 12px; }
    body.public-site.contact-drawer-ready .immersive-contact .contact-methods strong { font-size: 13px; }
    body.public-site.contact-drawer-ready .immersive-contact .contact-area { font-size: 12px; }
    body.public-site.contact-drawer-ready .immersive-contact .form-card { margin-top: 35px; }
    body.public-site.contact-drawer-ready .immersive-contact .form-title { margin-bottom: 25px; font-size: 25px; }
}

/* V11: one service heading doubles as the mobile selector. The original rail
   remains available until its native selection controller has initialized. */

@media (max-width: 1000px) {
    body.public-site.contact-drawer-ready { overflow-x: hidden; overflow-y: auto; }
}

/* Landscape phones and zoomed narrow windows need a separate useful viewport.
   The detail rail can scroll independently, leaving scene tools within reach. */

@media (min-width: 1001px) and (max-height: 650px) {
    body.public-site.contact-drawer-ready { overflow-y: auto; }
}
/* Web pública · V14. One architectural background; the page itself is the
   navigation. Content stays in document order before the enhancement starts. */
body.public-site.story-site {
    --story-edge: clamp(28px, 3.125vw, 56px);
    --story-ink: #232a2c;
    --story-muted: #637075;
    --story-paper: #e9eceb;
    background: var(--story-paper);
    color: var(--story-ink);
    overflow-x: hidden;
    overflow-y: auto;
}

body.public-site.story-site.contact-drawer-ready { overflow-x: hidden; overflow-y: auto; }
body.public-site.story-site.contact-is-open { overflow: hidden; }
body.story-site .story-experience { position: relative; isolation: isolate; background: transparent; }
body.story-site .story-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.story-site .story-header {
    position: fixed;
    z-index: 20;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 104px;
    padding: 24px var(--story-edge);
    pointer-events: none;
}
body.story-site .story-header > * { pointer-events: auto; }
body.story-site .story-brand { display: inline-flex; align-items: center; gap: 15px; min-height: 48px; }
body.story-site .story-mark { width: 46px; height: 46px; flex: 0 0 auto; }
body.story-site .story-wordmark { display: flex; flex-direction: column; gap: 3px; }
body.story-site .story-wordmark strong { font-size: 32px; font-weight: 500; line-height: 1.15; letter-spacing: -.045em; }
body.story-site .story-wordmark small { font-size: 8.5px; font-weight: 650; line-height: 1.4; letter-spacing: .3em; text-transform: uppercase; }
body.story-site .story-contact {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 17px;
    min-height: 44px;
    padding: 8px 0 8px 12px;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -.035em;
}
body.story-site .story-contact svg { width: 25px; height: 25px; color: var(--ja-accent); transition: transform 200ms ease; }
@media (hover: hover) {
    body.story-site .story-contact:hover { color: #a94d2b; }
    body.story-site .story-contact:hover svg { transform: translate(2px, -2px); }
}

body.public-site.story-site .installation-scene.story-scene {
    position: fixed;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    aspect-ratio: auto;
    overflow: hidden;
    background: var(--story-paper);
    pointer-events: none;
}
body.story-site .story-scene::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, #e9ecebf5 0, #e9ecebf0 24%, #e9eceb00 43%),
        linear-gradient(180deg, #e9ecebbd 0, #e9eceb00 150px),
        linear-gradient(0deg, #e9ecebf2 0, #e9eceb00 160px);
}

body.story-site .story-chapter {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    min-height: 110vh;
    min-height: 110svh;
    padding: 120px var(--story-edge);
    scroll-margin-top: 0;
}
body.story-site .story-chapter:last-of-type { min-height: 100vh; min-height: 100svh; }
body.story-site .story-copy { position: relative; width: min(430px, 33vw); }
body.story-site .story-copy h2 { font-size: clamp(60px, 5.3vw, 84px); font-weight: 300; line-height: 1.04; letter-spacing: -.055em; overflow-wrap: normal; text-wrap: balance; }
body.story-site .story-copy p { max-width: 340px; margin-top: 18px; color: var(--story-muted); font-size: clamp(18px, 1.57vw, 24px); font-weight: 400; line-height: 1.4; letter-spacing: -.035em; text-wrap: pretty; }
body.story-site.story-ready .story-copy {
    position: fixed;
    top: 48%;
    left: var(--story-edge);
    opacity: 0;
    transform: translate3d(0, calc(-50% + 25px), 0);
    pointer-events: none;
    transition: opacity 400ms ease, transform 650ms cubic-bezier(.2, .65, .2, 1);
}
body.story-site.story-ready .story-chapter.is-active .story-copy { opacity: 1; transform: translate3d(0, -50%, 0); }

body.story-site .story-status {
    position: fixed;
    z-index: 8;
    right: var(--story-edge);
    bottom: max(35px, env(safe-area-inset-bottom));
    left: var(--story-edge);
    display: grid;
    grid-template-columns: auto minmax(80px, 1fr) auto;
    align-items: center;
    gap: clamp(30px, 5vw, 78px);
    color: #3f4b50;
    pointer-events: none;
    transition: opacity 250ms ease;
}
body.story-site .story-area { font-size: 14px; font-weight: 400; line-height: 1.4; letter-spacing: -.035em; white-space: nowrap; }
body.story-site .story-progress { height: 1px; overflow: hidden; background: #aeb8bb; }
body.story-site .story-progress span { display: block; width: 100%; height: 100%; background: var(--ja-accent); transform: scaleX(0); transform-origin: left center; transition: transform 150ms linear; }
body.story-site .story-position { display: flex; align-items: center; justify-content: flex-end; gap: 24px; font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .1em; white-space: nowrap; }
body.story-site .story-scroll-hint { display: inline-flex; align-items: center; gap: 16px; font-size: 16px; letter-spacing: -.025em; }
body.story-site .story-scroll-hint svg { width: 24px; height: 33px; color: var(--ja-accent); }
body.story-site.story-ended .story-status { opacity: 0; }

body.story-site .story-legal {
    position: relative;
    z-index: 9;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 30px;
    min-height: 110px;
    padding: 32px var(--story-edge);
    background: var(--story-paper);
    color: #4c595e;
    font-size: 13px;
    line-height: 1.4;
}
body.story-site .story-legal a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 10px; }
body.story-site .story-legal a:hover { color: #a94d2b; }

@media (max-width: 1000px) and (min-width: 701px) {
    body.story-site .story-copy { width: 38vw; }
    body.story-site .story-copy h2 { font-size: clamp(46px, 6vw, 60px); }
    body.story-site .story-copy p { font-size: 18px; }
    body.story-site .story-wordmark strong { font-size: 27px; }
    body.story-site .story-wordmark small { font-size: 7.5px; letter-spacing: .26em; }
    body.story-site .story-status { gap: 25px; }
    body.story-site .story-position { gap: 18px; }
    body.story-site .story-scroll-hint { font-size: 14px; gap: 10px; }
    body.story-site .story-area { font-size: 12px; }
}

@media (max-width: 700px) {
    body.public-site.story-site { --story-edge: 22px; }
    body.story-site .story-header { gap: 15px; min-height: 78px; padding: 17px var(--story-edge); }
    body.story-site .story-brand { gap: 9px; min-height: 44px; }
    body.story-site .story-mark { width: 38px; height: 38px; }
    body.story-site .story-wordmark { gap: 3px; }
    body.story-site .story-wordmark strong { font-size: 20px; font-weight: 650; letter-spacing: -.04em; }
    body.story-site .story-wordmark small { font-size: 7px; font-weight: 650; letter-spacing: .1em; }
    body.story-site .story-contact { gap: 9px; min-height: 44px; padding-left: 4px; font-size: 16px; }
    body.story-site .story-contact svg { width: 20px; height: 20px; color: var(--story-ink); }
    body.story-site .story-chapter { align-items: flex-start; padding: 120px var(--story-edge) 110px; }
    body.story-site .story-copy { width: auto; max-width: none; }
    body.story-site .story-copy h2 { max-width: 13ch; font-size: clamp(38px, 10.77vw, 46px); font-weight: 300; line-height: 1.08; letter-spacing: -.06em; }
    body.story-site .story-copy p { max-width: 29ch; margin-top: 15px; font-size: 16px; line-height: 1.4; letter-spacing: -.035em; }
    body.story-site.story-ready .story-copy { top: 120px; right: var(--story-edge); left: var(--story-edge); transform: translate3d(0, 25px, 0); }
    body.story-site.story-ready .story-chapter.is-active .story-copy { transform: translate3d(0, 0, 0); }
    body.story-site .story-scene::after {
        background:
            linear-gradient(180deg, #e9ecebfa 0, #e9ecebf2 270px, #e9eceb00 355px),
            linear-gradient(0deg, #e9ecebfa 0, #e9ecebdb 70px, #e9eceb00 170px);
    }
    body.story-site .story-status { grid-template-columns: minmax(0, 1fr) auto; gap: 14px 15px; bottom: max(25px, env(safe-area-inset-bottom)); }
    body.story-site .story-area { font-size: 11px; }
    body.story-site .story-progress { grid-column: 1 / -1; grid-row: 2; height: 1.5px; }
    body.story-site .story-position { gap: 0; font-size: 11px; }
    body.story-site .story-scroll-hint { display: none; }
    body.story-site.story-start .story-position [data-story-count] { display: none; }
    body.story-site.story-start .story-scroll-hint { display: inline-flex; gap: 7px; font-size: 11px; }
    body.story-site.story-start .story-scroll-hint svg { width: 13px; height: 19px; }
    body.story-site .story-legal { justify-content: space-between; gap: 8px 20px; padding-block: 25px; font-size: 12px; }
}

@media (max-width: 360px) {
    body.public-site.story-site { --story-edge: 17px; }
    body.story-site .story-header { gap: 9px; }
    body.story-site .story-brand { gap: 7px; }
    body.story-site .story-mark { width: 34px; height: 34px; }
    body.story-site .story-wordmark strong { font-size: 18px; }
    body.story-site .story-wordmark small { font-size: 6.5px; letter-spacing: .075em; }
    body.story-site .story-contact { gap: 6px; font-size: 15px; }
    body.story-site .story-copy h2 { font-size: 38px; }
    body.story-site .story-area { font-size: 10px; }
}

@media (max-height: 550px) and (min-width: 600px) {
    body.public-site.story-site { --story-edge: 24px; }
    body.story-site .story-header { min-height: 64px; padding-block: 10px; }
    body.story-site .story-mark { width: 35px; height: 35px; }
    body.story-site .story-brand { gap: 10px; min-height: 44px; }
    body.story-site .story-wordmark strong { font-size: 21px; font-weight: 500; }
    body.story-site .story-wordmark small { font-size: 6px; letter-spacing: .25em; }
    body.story-site .story-contact { font-size: 17px; gap: 12px; }
    body.story-site .story-contact svg { width: 21px; height: 21px; }
    body.story-site .story-chapter { align-items: center; padding: 80px var(--story-edge); }
    body.story-site .story-copy { width: 39%; }
    body.story-site .story-copy h2 { max-width: none; font-size: clamp(35px, 4.9vw, 46px); line-height: 1.05; }
    body.story-site .story-copy p { max-width: 30ch; margin-top: 11px; font-size: 15px; line-height: 1.35; }
    body.story-site.story-ready .story-copy { top: 48%; right: auto; transform: translate3d(0, calc(-50% + 20px), 0); }
    body.story-site.story-ready .story-chapter.is-active .story-copy { transform: translate3d(0, -50%, 0); }
    body.story-site .story-scene::after {
        background:
            linear-gradient(90deg, #e9ecebf7 0, #e9ecebbc 28%, #e9eceb00 53%),
            linear-gradient(180deg, #e9ecebf5 0, #e9ecebd9 44px, #e9eceb00 90px),
            linear-gradient(0deg, #e9ecebf2 0, #e9eceb00 75px);
    }
    body.story-site .story-status { grid-template-columns: auto minmax(80px, 1fr) auto; gap: 25px; bottom: max(16px, env(safe-area-inset-bottom)); }
    body.story-site .story-area { font-size: 11px; }
    body.story-site .story-progress { grid-column: auto; grid-row: auto; }
    body.story-site .story-position { font-size: 11px; }
    body.story-site .story-scroll-hint { display: none; }
    body.story-site.story-start .story-position [data-story-count] { display: none; }
    body.story-site.story-start .story-scroll-hint { display: inline-flex; gap: 7px; font-size: 11px; }
    body.story-site.story-start .story-scroll-hint svg { width: 13px; height: 19px; }
}

@media (prefers-reduced-motion: reduce) {
    body.story-site .story-copy,
    body.story-site .story-progress span,
    body.story-site .story-status,
    body.story-site .story-contact svg { transition: none; }
}

/* V13: stable first paint and an index of the eight original services. */
body.story-site .story-nav { display: none; }
html.story-boot body.story-site .story-nav,
body.story-site.story-ready .story-nav {
    position: fixed; z-index: 10; top: 49%; left: var(--story-edge);
    display: flex; flex-direction: column; width: min(29vw, 430px);
    max-height: calc(100svh - 200px); transform: translateY(-50%);
    overflow-y: auto; scrollbar-width: thin;
}
body.story-site .story-nav-link {
    position: relative; display: block; padding: 10px 0 10px 22px;
    color: #526067; min-height: 46px;
}
body.story-site .story-nav-link::before {
    content: ""; position: absolute; left: 1px; top: 15px; bottom: 15px;
    width: 1.5px; background: #ac714b; opacity: 0;
    transform: scaleY(.25); transform-origin: top; transition: opacity 250ms, transform 500ms;
}
body.story-site .story-nav-title {
    display: block; font-size: clamp(17px, 1.43vw, 22px); font-weight: 400;
    line-height: 1.25; letter-spacing: -.035em;
    transition: font-size 500ms cubic-bezier(.2,.65,.2,1), color 250ms;
}
body.story-site .story-nav-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 500ms; }
body.story-site .story-nav-detail > span { overflow: hidden; font-size: clamp(15px, 1.3vw, 20px); line-height: 1.5; letter-spacing: -.025em; }
body.story-site .story-nav-link[aria-current] { color: var(--story-ink); padding-block: 15px 21px; }
body.story-site .story-nav-link[aria-current]::before { opacity: 1; transform: scaleY(1); }
body.story-site .story-nav-link[aria-current] .story-nav-title { font-size: clamp(37px, 3.7vw, 58px); font-weight: 300; line-height: 1.08; letter-spacing: -.055em; }
body.story-site .story-nav-link[aria-current] .story-nav-detail { grid-template-rows: 1fr; margin-top: 13px; color: #637075; }
body.story-site .story-nav-link:focus-visible { outline: 2px solid #ac714b; outline-offset: -2px; }
@media (hover: hover) { body.story-site .story-nav-link:hover { color: #8a5436; } }
html.story-boot body.story-site .story-copy,
body.story-site.story-ready .story-copy {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}
@media (max-width: 1000px) and (min-width: 701px) {
    html.story-boot body.story-site .story-nav, body.story-site.story-ready .story-nav { width: 34%; }
    body.story-site .story-nav-title { font-size: 17px; }
    body.story-site .story-nav-link[aria-current] .story-nav-title { font-size: 38px; }
}
@media (max-width: 700px) {
    html.story-boot body.story-site .story-nav, body.story-site.story-ready .story-nav {
        top: 238px; left: var(--story-edge); right: var(--story-edge); width: auto;
        max-height: none; transform: none; overflow: visible;
        display: grid; grid-template-columns: 1fr 1.15fr; column-gap: 10px;
    }
    body.story-site .story-nav-link,
    body.story-site .story-nav-link[aria-current] { min-height: 37px; padding: 8px 0; }
    body.story-site .story-nav-title,
    body.story-site .story-nav-link[aria-current] .story-nav-title { font-size: 13px; line-height: 1.3; font-weight: 450; letter-spacing: -.025em; }
    body.story-site .story-nav-link[aria-current] { color: #915c3b; }
    body.story-site .story-nav-link[aria-current] .story-nav-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
    body.story-site .story-nav-detail, body.story-site .story-nav-link::before { display: none; }
    html.story-boot body.story-site .story-copy, body.story-site.story-ready .story-copy {
        position: fixed; top: 110px; left: var(--story-edge); right: var(--story-edge);
        width: auto; height: auto; margin: 0; clip: auto; white-space: normal; overflow: visible;
        opacity: 0; transform: translate3d(0, 14px, 0); pointer-events: none;
    }
    html.story-boot body.story-site .story-chapter.is-active .story-copy,
    body.story-site.story-ready .story-chapter.is-active .story-copy { opacity: 1; transform: none; }
    body.story-site .story-copy h2 { max-width: 16ch; font-size: 36px; line-height: 1.06; }
    body.story-site .story-copy p { max-width: 34ch; margin-top: 10px; font-size: 14px; }
    body.story-site .story-scene::after {
        background: linear-gradient(180deg,#e9eceb 0,#e9ecebf5 340px,#e9eceb00 420px), linear-gradient(0deg,#e9ecebf2 0,#e9eceb00 95px);
    }
}
@media (max-width: 700px) and (max-height: 740px) {
    html.story-boot body.story-site .story-copy, body.story-site.story-ready .story-copy { top: 94px; }
    body.story-site .story-copy h2 { font-size: 30px; }
    body.story-site .story-copy p { font-size: 13px; }
    html.story-boot body.story-site .story-nav, body.story-site.story-ready .story-nav { top: 205px; }
    body.story-site .story-nav-link, body.story-site .story-nav-link[aria-current] { min-height: 33px; padding-block: 7px; }
    body.story-site .story-nav-title, body.story-site .story-nav-link[aria-current] .story-nav-title { font-size: 12px; }
    body.story-site .story-scene::after { background: linear-gradient(180deg,#e9eceb 0,#e9ecebf2 300px,#e9eceb00 360px),linear-gradient(0deg,#e9ecebf2 0,#e9eceb00 85px); }
}
@media (max-height: 550px) and (min-width: 600px) {
    html.story-boot body.story-site .story-nav, body.story-site.story-ready .story-nav {
        display: flex; top: 73px; left: var(--story-edge); right: auto; width: 34%;
        transform: none; max-height: calc(100svh - 125px); overflow-y: auto;
    }
    body.story-site .story-nav-link, body.story-site .story-nav-link[aria-current] { padding: 4px 0 4px 14px; min-height: 24px; }
    body.story-site .story-nav-title { font-size: 13px; }
    body.story-site .story-nav-link[aria-current] .story-nav-title { font-size: 27px; }
    body.story-site .story-nav-detail { display: none; }
    body.story-site .story-nav-link::before { display: block; top: 6px; bottom: 6px; }
    html.story-boot body.story-site .story-copy, body.story-site.story-ready .story-copy { width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
    body.story-site .story-nav-title, body.story-site .story-nav-detail,
    body.story-site .story-nav-link::before { transition: none; }
}
/* V19: all service information is part of the architectural story. */
body.story-site .story-about { display: inline-flex; align-items: center; gap: 12px; min-height: 36px; color: #8d5037; font-size: 13px; font-weight: 550; line-height: 1.45; letter-spacing: -.015em; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #bda38f; }
body.story-site .story-about svg { width: 19px; height: 19px; flex: 0 0 auto; }
body.story-site .story-nav-item > .story-about { display: none; margin: -10px 0 10px 22px; }
body.story-site .story-nav-link[aria-current] + .story-about { display: inline-flex; }
body.story-site .story-copy > .story-about { margin-top: 10px; }
html.story-boot body.story-site .story-copy > .story-about, body.story-site.story-ready .story-copy > .story-about { display: none; }
body.story-site .story-about:focus-visible, body.story-site .service-library :focus-visible, body.story-site .story-service-footer :focus-visible { outline: 2px solid #a65332; outline-offset: 5px; }

/* A compact index remains useful for keyboard navigation and no-JS use. */
body.story-site .story-legal.story-service-footer { z-index: 11; display: grid; grid-template-columns: 1fr; gap: 23px; padding: 42px var(--story-edge) 24px; border-top: 1px solid #c8cfcd; min-height: 0; scroll-margin-top: 104px; }
body.story-site.story-ended .story-nav, body.story-site.story-ended .story-copy { visibility: hidden; pointer-events: none; }
body.story-site .story-service-intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 30px; }
body.story-site .story-service-intro h2 { margin: 0; color: var(--story-ink); font-size: 21px; font-weight: 450; letter-spacing: -.035em; }
body.story-site .story-service-intro p { margin: 0; color: #59666b; font-size: 13px; line-height: 1.6; }
body.story-site .story-service-links { display: flex; flex-wrap: wrap; gap: 0 28px; }
body.story-site .story-service-links a { color: #39474d; font-size: 13px; line-height: 1.4; }
body.story-site .story-legal-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 28px; border-top: 1px solid #c8cfcd; padding-top: 8px; }

/* Native details work before enhancement and retain the complete copy in HTML. */
body.story-site .service-library { position: relative; z-index: 12; padding: 0 var(--story-edge) 44px; background: var(--story-paper); }
body.story-site .service-disclosure { scroll-margin-top: 110px; border-top: 1px solid #c8cfcd; }
body.story-site .service-disclosure > summary { padding: 20px 0; cursor: pointer; font-size: 19px; letter-spacing: -.035em; }
body.story-site .service-sheet { color: #293337; background: var(--story-paper); }
body.story-site .service-sheet-content { max-width: 680px; padding: 24px 0 48px; }
body.story-site .service-sheet-heading h2 { margin: 0; max-width: 19ch; font-size: clamp(34px, 3.3vw, 49px); font-weight: 350; line-height: 1.08; letter-spacing: -.05em; text-wrap: balance; }
body.story-site .service-sheet p, body.story-site .service-sheet li { color: #526167; font-size: 15px; line-height: 1.8; letter-spacing: -.012em; }
body.story-site .service-sheet p { margin: 16px 0 0; }
body.story-site .service-sheet .service-sheet-intro { margin-top: 26px; color: #39474d; font-size: 17px; line-height: 1.75; }
body.story-site .service-sheet-section { margin-top: 36px; }
body.story-site .service-sheet-section h3 { margin: 0; font-size: 22px; font-weight: 450; line-height: 1.3; letter-spacing: -.035em; }
body.story-site .service-sheet-section ul { margin: 17px 0 0; padding-left: 19px; }
body.story-site .service-sheet-section li { padding-left: 4px; margin-top: 6px; }
body.story-site .service-sheet-section li::marker { color: #a65332; }
body.story-site .service-sheet-enquiry { margin-top: 36px; border-top: 1px solid #c8cfcd; padding-top: 10px; }
body.story-site .service-request-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 50px; margin-top: 22px; padding: 12px 18px; color: #f3f4f2; background: #293337; font-size: 14px; line-height: 1.5; }
body.story-site .service-request-link svg { width: 21px; height: 21px; color: #d8a288; }
body.story-site .service-sheet .service-sheet-area { margin-top: 21px; color: #6a7579; font-size: 12px; }
body.story-site .service-close, body.story-site .service-backdrop { display: none; }

html.service-scroll-locked, body.story-site.service-is-open { overflow: hidden; }
body.story-site.service-details-ready .service-library { position: static; padding: 0; margin: 0; background: transparent; }
body.story-site.service-details-ready .service-disclosure { position: static; border: 0; }
body.story-site.service-details-ready .service-disclosure > summary { display: none; }
body.story-site.service-details-ready .service-sheet { position: fixed; z-index: 51; top: var(--service-viewport-top, 0px); right: 0; width: min(620px, 48vw); height: var(--service-viewport-height, 100dvh); max-height: var(--service-viewport-height, 100dvh); overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom, 0px); border-left: 1px solid #c5cecb; scroll-padding-block: 75px 25px; }
body.story-site.service-details-ready .service-disclosure[open] .service-sheet { animation: service-sheet-enter 260ms cubic-bezier(.2,.65,.2,1); }
body.story-site.service-details-ready .service-sheet-content { padding: 28px clamp(28px, 3vw, 46px) 48px; }
body.story-site.service-details-ready .service-close { position: sticky; z-index: 2; top: max(16px, env(safe-area-inset-top, 0px)); display: flex; align-items: center; gap: 12px; min-height: 44px; width: fit-content; margin: max(16px, env(safe-area-inset-top, 0px)) 24px 0 auto; padding: 10px 13px; border: 0; border-radius: 0; color: #3b484d; background: #e9eceb; font: 500 13px/1.4 Manrope, sans-serif; cursor: pointer; }
body.story-site .service-close svg { width: 19px; height: 19px; }
body.story-site.service-details-ready .service-backdrop { display: block; position: fixed; z-index: 50; inset: 0; background: #20303618; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 200ms ease; }
body.story-site.service-is-open .service-backdrop { opacity: 1; visibility: visible; pointer-events: auto; }
@keyframes service-sheet-enter { from { transform: translateX(32px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@media (hover: hover) {
    body.story-site .story-about:hover, body.story-site .story-service-links a:hover { color: #a65332; }
    body.story-site .service-request-link:hover { background: #3c484d; }
    body.story-site .service-close:hover { color: #a65332; }
}
@media (max-width: 1000px) {
    body.story-site.service-details-ready .service-sheet { width: min(620px, 58vw); }
    body.story-site .service-sheet-heading h2 { font-size: 38px; }
}
/* Keep all eight categories and the reading link in a typical laptop viewport. */
@media (min-width: 701px) and (min-height: 551px) and (max-height: 780px) {
    body.story-site .story-nav-link { min-height: 44px; padding-block: 8px; }
    body.story-site .story-nav-link[aria-current] { padding-block: 10px; }
    body.story-site .story-nav-link[aria-current] .story-nav-title { font-size: clamp(34px, 3.3vw, 42px); }
    body.story-site .story-nav-detail > span { font-size: 14px; line-height: 1.45; }
    body.story-site .story-nav-link[aria-current] .story-nav-detail { margin-top: 10px; }
    body.story-site .story-nav-item > .story-about { min-height: 32px; margin-top: -4px; margin-bottom: 6px; }
}
@media (max-width: 700px) {
    body.story-site .story-nav-item > .story-about, body.story-site .story-nav-link[aria-current] + .story-about { display: none; }
    body.story-site .story-copy > .story-about { font-size: 12px; min-height: 32px; margin-top: 4px; pointer-events: auto; }
    html.story-boot body.story-site .story-chapter.is-active .story-copy > .story-about, body.story-site.story-ready .story-chapter.is-active .story-copy > .story-about { display: inline-flex; pointer-events: auto; }
    html.story-boot body.story-site .story-nav, body.story-site.story-ready .story-nav { top: 266px; }
    body.story-site .story-legal.story-service-footer { gap: 19px; padding-top: 30px; scroll-margin-top: 78px; }
    body.story-site .story-service-intro { display: block; }
    body.story-site .story-service-intro p { margin-top: 12px; }
    body.story-site .story-service-links { gap: 0 22px; }
    body.story-site .story-service-links a { font-size: 12px; }
    body.story-site .story-legal-links { justify-content: flex-start; gap: 5px 24px; }
    body.story-site .service-disclosure { scroll-margin-top: 85px; }
    body.story-site.service-details-ready .service-sheet { width: 100%; border-left: 0; }
    body.story-site.service-details-ready .service-sheet-content { padding: 20px 25px 35px; }
    body.story-site.service-details-ready .service-close { margin-right: max(16px, env(safe-area-inset-right, 0px)); }
    body.story-site .service-sheet-heading h2 { font-size: clamp(34px, 8.8vw, 43px); max-width: 20ch; }
    body.story-site .service-sheet .service-sheet-intro { font-size: 16px; line-height: 1.7; margin-top: 22px; }
    body.story-site .service-sheet p, body.story-site .service-sheet li { font-size: 14px; line-height: 1.75; }
    body.story-site .service-sheet-section { margin-top: 30px; }
    body.story-site .service-sheet-section h3 { font-size: 21px; }
    body.story-site .service-request-link { width: 100%; }
}
@media (max-width: 700px) and (max-height: 740px) {
    html.story-boot body.story-site .story-nav, body.story-site.story-ready .story-nav { top: 237px; }
}
/* The reading action moves the grid down: keep its last row readable over dark interiors. */
@media (max-width: 700px) and (min-height: 741px) {
    body.story-site .story-scene::after { background: linear-gradient(180deg,#e9eceb 0,#e9ecebf5 420px,#e9eceb00 475px),linear-gradient(0deg,#e9ecebf2 0,#e9eceb00 95px); }
}
@media (max-width: 700px) and (min-height: 551px) and (max-height: 740px) {
    body.story-site .story-scene::after { background: linear-gradient(180deg,#e9eceb 0,#e9ecebf5 375px,#e9eceb00 430px),linear-gradient(0deg,#e9ecebf2 0,#e9eceb00 85px); }
}
@media (max-height: 550px) and (min-width: 600px) {
    html.story-boot body.story-site .story-nav, body.story-site.story-ready .story-nav { top: 73px; }
    html.story-boot body.story-site .story-copy > .story-about, body.story-site.story-ready .story-copy > .story-about, html.story-boot body.story-site .story-chapter.is-active .story-copy > .story-about, body.story-site.story-ready .story-chapter.is-active .story-copy > .story-about { display: none; }
    body.story-site .story-nav-link[aria-current] + .story-about { display: inline-flex; margin: 0 0 3px 14px; min-height: 28px; font-size: 11px; }
    body.story-site.service-details-ready .service-sheet { width: min(620px, 62vw); }
}
@media (prefers-reduced-motion: reduce) {
    body.story-site.service-details-ready .service-disclosure[open] .service-sheet { animation: none; }
    body.story-site.service-details-ready .service-backdrop { transition: none; }
}
/* V17: the existing contact design with stable touch, keyboard and scroll behavior. */
html.contact-scroll-locked { overflow: hidden; }
body.public-site.contact-drawer-ready .immersive-contact {
    /* Enhancement changes a normal section into a fixed drawer. Visibility
       must not interpolate from that original visible section on first load. */
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 240ms ease;
    top: var(--contact-viewport-top, 0px);
    bottom: auto;
    height: var(--contact-viewport-height, 100dvh);
    max-height: var(--contact-viewport-height, 100dvh);
    scroll-padding-block: 78px 24px;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
body.public-site.contact-drawer-ready.contact-is-open .immersive-contact {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}
body.public-site.contact-drawer-ready .contact-backdrop { transition: opacity 200ms ease; }
body.public-site.contact-drawer-ready [data-contact-close] {
    position: sticky;
    display: flex;
    z-index: 2;
    top: max(14px, env(safe-area-inset-top, 0px));
    right: auto;
    width: fit-content;
    margin: max(14px, env(safe-area-inset-top, 0px)) 22px 0 auto;
    background: var(--ja-dark, #24312a);
}
body.public-site.contact-drawer-ready .immersive-contact .contact-layout { padding-top: 14px; }
body.public-site.contact-drawer-ready .immersive-contact .contact-methods { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
body.public-site.contact-drawer-ready .immersive-contact .contact-methods strong { overflow-wrap: anywhere; }
body.public-site.contact-drawer-ready .immersive-contact .form-grid :is(input, select, textarea) { font-size: 16px; }
body.public-site.contact-drawer-ready .immersive-contact :focus-visible { outline-offset: 4px; }
@media (max-width: 620px) {
    body.public-site.contact-drawer-ready [data-contact-close] { margin-right: max(18px, env(safe-area-inset-right, 0px)); }
    body.public-site.contact-drawer-ready .immersive-contact .contact-layout { padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    body.public-site.contact-drawer-ready .immersive-contact,
    body.public-site.contact-drawer-ready .contact-backdrop { transition: none; }
}

/* Imagen fija de la escena: ocupa todo el fondo y conserva a la vista los
   edificios, que quedan a la derecha del texto (abajo en el móvil). */
body.story-site .story-scene .scene-still { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; pointer-events: none; }
@media (max-width: 700px) {
    body.story-site .story-scene .scene-still { object-position: 50% 78%; }
}
