/* Homepage visual world. Other routes retain the existing design. */
.home { --max: 1520px; --display: 'Plus Jakarta Sans', sans-serif; }
html { scrollbar-color: #478dcd #03111d; }
html:has(.home) { scroll-behavior: auto; }
.home h1, .home h2, .home h3 { font-family: var(--display); letter-spacing: -.035em; }
.home .site-header { padding-inline: max(24px, calc((100vw - 1520px) / 2)); background: #03111d; gap: 24px; }
.home .brand { margin-right: auto; }
.header-contact { display: inline-flex; min-height: 44px; padding: 9px 20px; background: var(--cyan); color: #03111d; border-radius: 6px; font-size: .9rem; font-weight: 700; text-decoration: none; }
.home .menu-button { display: block; flex-shrink: 0; background: transparent; }
:is(.js, .js-pending) .home .main-nav {
  position: fixed; inset: 88px 24px auto auto; width: min(520px, calc(100vw - 48px));
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  padding: 28px; background: #082740; border: 1px solid var(--line-strong); border-radius: 12px;
  opacity: 0; visibility: hidden; transform: none; transition: none; max-height: calc(100svh - 108px); overflow-y: auto;
  box-shadow: 0 28px 64px rgba(0,0,0,.35);
}
:is(.js, .js-pending) .home .main-nav.open, :is(.js, .js-pending) .home .main-nav.nav-exiting { visibility: visible; opacity: 1; }
:is(.js, .js-pending) .home .main-nav.nav-exiting { pointer-events: none; }
.home .main-nav a { font-size: clamp(1.25rem, 2vw, 1.9rem); line-height: 1.3; min-height: 68px; padding: 12px 8px; }
.home .main-nav .nav-cta { font-size: 1rem; margin-top: 20px; justify-content: center; padding: 16px; }
.home .hero.hero--experience {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 20px 36px;
  min-height: min(900px, 100svh); padding: 136px max(32px, calc((100vw - 1520px) / 2)) 48px;
  align-items: center; overflow: clip;
}
.home .hero h1 { font-size: clamp(3.5rem, 5.6vw, 6rem); line-height: 1.04; max-width: 810px; font-weight: 700; text-wrap: balance; }
.home .hero-copy { max-width: 810px; }
.home .hero-lede { max-width: 53ch; margin-top: 30px; font-size: 1.075rem; animation: none; }
.home .hero-actions, .home .hero-detail { animation: none; }
.home .hero-actions { margin-top: 28px; gap: 12px; flex-wrap: wrap; }
.home .hero-actions .button { font-size: .875rem; min-height: 52px; padding-inline: 20px; }
.hero-stage { position: relative; width: 100%; height: clamp(420px, 39vw, 610px); min-width: 0; isolation: isolate; }
.scene-canvas, .scene-fallback { position: absolute; inset: 0; }
.scene-canvas canvas { width: 100%; height: 100%; display: block; }
.scene-fallback { transition: opacity 160ms ease; }
.canvas-ready .scene-fallback { opacity: 0; }
.scene-orbit { position: absolute; width: 85%; height: 28%; left: 8%; bottom: 8%; border: 1px solid rgba(86,205,221,.25); border-radius: 50%; transform: rotate(-12deg); }
.scene-caption { position: absolute; bottom: 0; left: 6%; right: 6%; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); font-size: .8rem; }
.hero-scroll { grid-column: 1 / -1; display: inline-flex; width: fit-content; align-items: center; gap: 18px; margin-top: 24px; color: var(--muted); font-size: .8rem; text-decoration: none; }
.hero-scroll svg { color: var(--cyan); }
/* Six real CSS faces provide a lightweight volumetric fallback. */
.brand-cube { --cube-size: 100px; --cube-half: 50px; --cube-color: #478dcd; position: absolute; width: var(--cube-size); height: var(--cube-size); perspective: 900px; }
.brand-cube:nth-child(2) { --cube-color: #2aadd1; }
.brand-cube:nth-child(3) { --cube-color: #56cddd; }
.cube-solid { width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(-18deg) rotateY(-28deg); }
.cube-face { position: absolute; inset: 0; background: var(--cube-color); backface-visibility: hidden; border: 1px solid rgba(255,255,255,.14); }
.cube-front { transform: translateZ(var(--cube-half)); box-shadow: 12px 24px 40px rgba(0,0,0,.12); }
.cube-back { transform: rotateY(180deg) translateZ(var(--cube-half)); }
.cube-right { transform: rotateY(90deg) translateZ(var(--cube-half)); filter: brightness(.7); }
.cube-left { transform: rotateY(-90deg) translateZ(var(--cube-half)); filter: brightness(.68); }
.cube-top { transform: rotateX(90deg) translateZ(var(--cube-half)); filter: brightness(1.25); }
.cube-bottom { transform: rotateX(-90deg) translateZ(var(--cube-half)); filter: brightness(.65); }
.hero-cube { --cube-size: 110px; --cube-half: 55px; left: 16%; top: 60%; }
.hero-cube:nth-child(2) { left: 40%; top: 39%; }
.hero-cube:nth-child(3) { left: 64%; top: 18%; }
.connection-section { position: relative; padding: 110px max(32px, calc((100vw - 1520px) / 2)) 90px; overflow: clip; }
.connection-section h2 { margin: 42px 0 28px; color: var(--white); max-width: 1300px; font-size: clamp(2.8rem, 6.8vw, 6rem); line-height: 1.06; }
.connection-section h2 span { color: var(--cyan); }
.connection-section p { max-width: 52ch; color: #b4c9d8; font-size: 1.125rem; }
.connection-track { position: relative; height: 66px; width: min(680px, 80%); display: flex; align-items: center; justify-content: space-between; }
.connection-track::before { content: ''; position: absolute; inset: 50% 0 auto; height: 1px; background: #2aadd1; }
.connection-track span { position: relative; width: 56px; height: 56px; background: #478dcd; }
.connection-track span:nth-child(2) { background: #2aadd1; }
.connection-track span:nth-child(3) { background: #56cddd; }
.photo-section { padding: 0 max(32px, calc((100vw - 1520px) / 2)) 110px; overflow: clip; }
.home .hero-photo--expand { margin: 0; max-width: none; width: 100%; }
.home .hero-photo-frame { aspect-ratio: 16 / 8; border-radius: 12px; overflow: hidden; }
.home .hero-photo-parallax { inset: -15% 0; }
.home .hero-photo--expand .hero-photo-parallax img { object-position: center 65%; }
.home .hero-photo figcaption { font-size: .75rem; padding-top: 8px; }
.home .section { padding-inline: max(32px, calc((100vw - 1520px) / 2)); }
.home .section h2 { font-size: clamp(2.8rem, 4.6vw, 5rem); line-height: 1.1; }
.home .services { background: #061d32; padding-block: 110px; overflow: clip; }
.home .section-intro { align-items: end; gap: 48px; margin-bottom: 68px; }
.home .section-intro h2 { max-width: 850px; }
.home .section-intro p { max-width: 48ch; }
.home .primary-service { position: relative; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: 32px 60px; min-height: 430px; padding: 48px; border: 0; border-radius: 12px; background: #103d5a; overflow: hidden; }
.home .primary-service > div:not(.service-visual) { grid-column: 1; grid-row: 1; max-width: 650px; }
.home .primary-service h3 { font-size: clamp(2.4rem, 3.4vw, 3.8rem); line-height: 1.1; margin: 0 0 24px; }
.home .primary-service h3 a { text-decoration: none; }
.home .primary-service p { color: #c3dbe9; font-size: 1.075rem; }
.home .primary-service ul { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
.home .primary-service li { display: flex; align-items: baseline; gap: 10px; min-width: 0; padding: 0; background: transparent; border: 0; box-shadow: none; overflow-wrap: anywhere; }
.home .primary-service li::before { content: ""; width: 5px; height: 5px; flex: 0 0 5px; align-self: flex-start; margin-top: .65em; border-radius: 50%; background: var(--cyan); }
.home .primary-service .service-more { grid-column: 1; grid-row: 3; width: fit-content; }
.home .primary-service .service-visual { grid-column: 2; grid-row: 1 / 4; align-self: center; justify-self: center; width: min(100%, 350px); height: 300px; }
.service-symbol { display: block; width: 100%; height: 100%; color: var(--cyan); overflow: visible; }
.service-symbol rect { fill: currentColor; fill-opacity: .15; }
.service-symbol rect:nth-last-child(1) { fill-opacity: .55; }
.home .service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.home .service-row { position: relative; display: flex; flex-direction: column; align-items: start; justify-content: end; min-height: 450px; padding: 36px; border: 0; border-radius: 12px; background: #082b44; overflow: hidden; gap: 18px; }
.home .service-depth:nth-child(2) .service-row, .home .service-depth:nth-child(3) .service-row { background: #0c3551; }
.home .service-row .service-visual { width: 155px; height: 155px; margin-bottom: auto; margin-left: auto; }
.home .service-row h3 { max-width: 540px; font-size: clamp(1.7rem, 2.6vw, 2.8rem); line-height: 1.16; margin: 0; }
.home .service-row h3 a { display: inline; text-decoration: none; }
.home .service-row p { max-width: 48ch; color: #bed2df; font-size: 1rem; margin: 0; }
.home .service-row > span { color: #8cb5cf; font-size: .8rem; }
.service-panel { transform-style: preserve-3d; transform-origin: center; }
.service-panel a::after { content: ''; position: absolute; inset: 0; }
.service-panel .service-symbol { transform-origin: center; }
.service-panel:focus-within { outline: 2px solid var(--cyan); outline-offset: 4px; }
.model-section { padding: 110px max(32px, calc((100vw - 1520px) / 2)) 90px; background: #03111d; }
.model-section > h2 { font-size: clamp(3rem, 5.5vw, 6rem); line-height: 1.08; color: #f4f8fb; margin: 0 0 40px; max-width: 1280px; }
.model-section > h2 span { color: var(--cyan); }
.model-section > h2 br { display: none; }
.model-stage { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: center; gap: 70px; min-height: 590px; }
.model-visual { position: relative; height: 500px; min-width: 0; }
.model-blocks { position: absolute; inset: 0; }
.model-cube { --cube-size: 86px; --cube-half: 43px; left: 15%; top: 62%; }
.model-cube:nth-child(2) { left: 40%; top: 40%; }
.model-cube:nth-child(3) { left: 65%; top: 18%; }
.model-rail { position: absolute; left: 10%; right: 10%; bottom: 12%; height: 1px; background: var(--line-strong); }
.model-visual-caption { position: absolute; bottom: 0; left: 10%; color: var(--muted); font-size: .8rem; }
.model-steps { display: grid; gap: 28px; padding-block: 24px; }
.model-step { padding: 0 0 26px; border-bottom: 1px solid var(--line); }
.model-step h3 { font-size: 2.2rem; line-height: 1.15; color: var(--white); margin: 0 0 12px; }
.model-step p { max-width: 45ch; color: #a9c3d5; margin: 0; font-size: 1rem; }
.home .method { background: #082740; padding-block: 100px; }
.home .method-list { margin-top: 40px; }
.home .evidence { padding-block: 110px; }
.home .faq { padding-block: 100px; background: #061d32; }
.home .contact-section { position: relative; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: 50px; margin: 0; border: 0; border-radius: 0; padding: 320px max(32px, calc((100vw - 1520px) / 2)) 110px; background: #0a3852; overflow: clip; }
.home .contact-copy h2 { font-size: clamp(3rem, 5.4vw, 6rem); line-height: 1.06; max-width: 850px; }
.home .contact-copy p { color: #c3dbe9; max-width: 52ch; margin-top: 24px; }
.home .contact-action { align-self: end; }
.contact-blocks { position: absolute; height: 220px; width: 440px; top: 60px; left: max(32px, calc((100vw - 1520px) / 2)); }
.contact-cube { --cube-size: 70px; --cube-half: 35px; left: 4%; top: 58%; }
.contact-cube:nth-child(2) { left: 29%; top: 32%; }
.contact-cube:nth-child(3) { left: 54%; top: 6%; }
.home footer { padding-inline: max(32px, calc((100vw - 1520px) / 2)); }
.home .button, .header-contact { transition: transform 140ms var(--ease-out), background-color 160ms ease; }
.home .button:active, .header-contact:active { transform: scale(.97); }
.home a:focus-visible, .home button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
@media (hover: hover) and (pointer: fine) {
  .home .button:hover, .header-contact:hover { transform: translateY(-3px); }
  .home .service-panel:hover { background-color: #164969; }
  .hero-scroll:hover { color: var(--cyan); }
}
@media (min-width: 1900px) { .home .hero.hero--experience { min-height: 850px; } }
@media (max-width: 1100px) and (min-width: 861px) {
  .home .hero h1 { font-size: 3.8rem; }
  .home .hero.hero--experience { padding-top: 118px; min-height: 810px; }
  .home .hero-actions { flex-direction: column; align-items: start; }
  .home .primary-service { padding: 32px; gap: 32px; }
  .model-stage { gap: 32px; }
}
@media (max-width: 860px) {
  .home .hero.hero--experience { grid-template-columns: minmax(0,1fr); min-height: 0; padding: 114px 24px 48px; gap: 24px; }
  .home .hero h1 { font-size: clamp(2.8rem, 7.8vw, 4.6rem); max-width: 710px; }
  .hero-stage { height: 360px; max-width: 570px; justify-self: center; }
  .hero-cube { --cube-size: 80px; --cube-half: 40px; }
  .home .hero-scroll { margin-top: 10px; font-size: .75rem; }
  .connection-section { padding: 70px 24px 48px; }
  .connection-section h2 { font-size: clamp(2.6rem, 7.5vw, 4.2rem); }
  .connection-track { height: 44px; }
  .connection-track span { width: 36px; height: 36px; }
  .photo-section { padding: 0 24px 64px; }
  .home .hero-photo-frame { aspect-ratio: 4 / 3; }
  .home .hero-photo-parallax { inset: 0; }
  .home .section { padding-inline: 24px; }
  .home .services, .home .method, .home .evidence, .home .faq { padding-block: 70px; }
  .home .section-intro { gap: 24px; margin-bottom: 36px; }
  .home .section h2 { font-size: clamp(2.4rem, 6vw, 3.5rem); }
  .home .primary-service { grid-template-columns: minmax(0,1fr); gap: 24px; padding: 28px; min-height: 0; }
  .home .primary-service .service-visual { grid-column: 1; grid-row: 1; width: 170px; height: 170px; justify-self: end; }
  .home .primary-service > div:not(.service-visual) { grid-row: 2; }
  .home .primary-service ul { grid-row: 3; grid-template-columns: 1fr; }
  .home .primary-service .service-more { grid-row: 4; }
  .home .service-list { gap: 16px; }
  .home .service-row { min-height: 400px; padding: 24px; }
  .home .service-row .service-visual { width: 110px; height: 110px; }
  .home .service-row h3 { font-size: 1.7rem; }
  .model-section { padding: 70px 24px; }
  .model-section > h2 { font-size: clamp(3rem, 7vw, 4.5rem); }
  .model-stage { grid-template-columns: minmax(0,1fr); gap: 28px; min-height: 0; }
  .model-visual { max-width: 520px; height: 340px; width: 100%; justify-self: center; }
  .model-cube { --cube-size: 68px; --cube-half: 34px; }
  .model-steps { gap: 24px; }
  .model-step h3 { font-size: 1.8rem; }
  .home .contact-section { grid-template-columns: minmax(0,1fr); padding: 270px 24px 70px; gap: 32px; }
  .home .contact-copy h2 { font-size: clamp(2.7rem, 7.5vw, 4.5rem); }
  .contact-blocks { left: 24px; width: min(400px, calc(100% - 48px)); height: 180px; }
  .home footer { padding-inline: 24px; }
}
@media (max-width: 540px) {
  .home .site-header { gap: 12px; padding-inline: 20px; }
  .home .brand img { width: 130px; }
  .header-contact { padding: 8px 12px; min-height: 42px; font-size: .8rem; }
  .home .menu-button { width: 44px; height: 44px; padding: 10px; }
  :is(.js, .js-pending) .home .main-nav { inset: 78px 12px auto; width: auto; padding: 20px; }
  .home .main-nav a { min-height: 58px; font-size: 1.5rem; }
  .home .main-nav .nav-cta { font-size: .85rem; }
  .home .hero.hero--experience { padding-inline: 20px; }
  .home .hero h1 { font-size: clamp(2.6rem, 10.8vw, 3.6rem); }
  .home .hero-lede { font-size: 1rem; margin-top: 24px; }
  .home .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stage { height: 300px; }
  .hero-cube { --cube-size: 62px; --cube-half: 31px; }
  .hero-cube:nth-child(1) { left: 14%; }
  .hero-cube:nth-child(2) { left: 39%; }
  .hero-cube:nth-child(3) { left: 64%; }
  .scene-caption { font-size: .72rem; }
  .connection-section, .model-section { padding-inline: 20px; }
  .connection-section h2 { font-size: 2.6rem; }
  .connection-section p { font-size: 1rem; }
  .photo-section { padding-inline: 20px; }
  .home .section { padding-inline: 20px; }
  .home .service-list { grid-template-columns: minmax(0,1fr); }
  .home .service-row { min-height: 350px; }
  .home .primary-service h3 { font-size: 2.3rem; }
  .home .primary-service .service-visual { height: 130px; }
  .model-section > h2 br { display: initial; }
  .model-visual { height: 300px; }
  .model-cube { --cube-size: 54px; --cube-half: 27px; }
  .home .contact-section { padding-inline: 20px; }
  .contact-blocks { left: 20px; }
  .contact-cube { --cube-size: 56px; --cube-half: 28px; }
}
html:not(.js):not(.js-pending) .home .site-header { position: static; flex-wrap: wrap; }
html:not(.js):not(.js-pending) .home .menu-button { display: none; }
html:not(.js):not(.js-pending) .home .main-nav { position: static; width: 100%; flex-wrap: wrap; visibility: visible; opacity: 1; transform: none; }
html:not(.js):not(.js-pending) .home .main-nav a { font-size: 1rem; }
html:not(.js):not(.js-pending) .home .hero.hero--experience { padding-top: 48px; }
@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after { animation: none !important; transition: none !important; }
  .home .hero-photo-parallax { inset: 0; }
  .scene-fallback { opacity: 1; }
  .scene-canvas { display: none; }
  .home .button:hover, .header-contact:hover, .home .button:active, .header-contact:active { transform: none; }
}

.service-depth { perspective: 1200px; transform-style: preserve-3d; min-width: 0; }
/* Contain the proof rows' horizontal entrance within their own column. */
.home .deliverable-list { overflow: clip; }
/* Full-bleed outer surfaces, with the 1520px measure defined by padding. */
.home .section, .home .contact-section, .home footer { max-width: none; width: 100%; margin-inline: 0; }

/* Scene wrapper preserves the existing responsive composition. */
.hero-scene { min-width: 0; width: 100%; }
@media (max-width: 860px) { .hero-scene { max-width: 570px; justify-self: center; } }

/* Ultrawide composition only: retain the original 16:9 and mobile layouts. */
@media (min-width: 1800px) and (min-aspect-ratio: 2/1) {
  .home {
    --hero-wide-gutter: max(5vw, calc((100vw - 2160px) / 2));
  }
  .home .site-header {
    padding-inline: var(--hero-wide-gutter);
    gap: 28px;
  }
  .home .brand img { width: 244px; }
  .home .header-contact { font-size: 1rem; min-height: 48px; padding-inline: 24px; }
  :is(.js, .js-pending) .home .main-nav { right: var(--hero-wide-gutter); }
  .home .hero.hero--experience {
    padding: 144px var(--hero-wide-gutter) 40px;
    min-height: min(1320px, 96svh);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr auto;
    gap: 20px 24px;
  }
  .home .hero-copy { max-width: 960px; }
  .home .hero h1 {
    max-width: 920px;
    font-size: clamp(6.25rem, 3.3vw, 7.25rem);
  }
  .home .hero-lede { font-size: 1.25rem; max-width: 53ch; }
  .home .hero-actions .button { font-size: 1rem; min-height: 58px; padding-inline: 26px; }
  .home .hero-detail { font-size: 1rem; }
  .home .hero-scene { position: relative; left: -128px; width: calc(100% + 128px); }
  .home .hero-stage { height: clamp(680px, 58svh, 900px); }
  .home .hero-cube { --cube-size: 144px; --cube-half: 72px; }
  .home .scene-caption, .home .hero-scroll { font-size: .9rem; }
  .home .hero-scroll { margin-top: 12px; }
}

/* Editorial refinement: the existing hero and header remain untouched. */
.home { --content-gutter: max(32px, calc((100vw - 1520px) / 2)); }
.trust-strip { padding: 26px var(--content-gutter); background: #041827; }
.trust-strip p { display: flex; justify-content: space-between; gap: 24px; margin: 0; color: #c4d6e2; font-size: .95rem; }
.trust-strip p > span { white-space: nowrap; }
.trust-strip p > span + span::before { content: '·'; margin-right: 24px; color: var(--cyan); }
.trust-strip span span { margin-inline: 16px; color: var(--cyan); }
.problem-section { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 72px; padding: 104px var(--content-gutter) 80px; }
.problem-section h2 { max-width: 20ch; margin: 0; font-size: clamp(2.2rem, 3.6vw, 3.7rem); line-height: 1.15; color: var(--white); }
.problem-section p { max-width: 52ch; margin: 0; color: var(--muted); font-size: 1.1rem; }
.home .editorial-section { padding: 104px var(--content-gutter) 112px; background: #041827; }
.editorial-heading { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: end; gap: 64px; margin-bottom: 48px; }
.editorial-label { color: var(--cyan); letter-spacing: .12em; font-size: .75rem; font-weight: 700; margin: 0 0 20px; }
.editorial-heading h2 { font-size: clamp(2.3rem, 3.65vw, 3.8rem); line-height: 1.13; margin: 0; color: var(--white); }
.editorial-heading > p { max-width: 43ch; margin: 0; font-size: 1.1rem; color: var(--muted); }
.editorial-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.editorial-grid figure { margin: 0; min-width: 0; }
.editorial-mask { position: relative; overflow: hidden; aspect-ratio: 16 / 11; border-radius: 4px; background: #061d32; }
.editorial-image { display: block; position: absolute; inset: -4% 0; }
.editorial-grid picture img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(.76) saturate(.72); }
.editorial-main img { object-position: 38% center; }
.editorial-grid figcaption { font-weight: 400; display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; color: var(--white); font-size: .95rem; }
.editorial-grid figcaption span { color: var(--muted); font-size: .75rem; align-self: center; }
.editorial-side { display: grid; grid-template-rows: 1fr 1fr; gap: 24px; min-width: 0; }
.editorial-detail { display: flex; flex-direction: column; }
.editorial-detail-frame { flex: 1; min-height: 0; overflow: hidden; position: relative; border-radius: 4px; background: #061d32; }
.editorial-detail-frame picture { position: absolute; inset: 0; display: block; }



/* A single method; lighter service surfaces and fewer decorative rules. */
.home .method { background: #041827; }
.home .primary-service { border-radius: 6px; background: #041827; }
.home .service-row, .home .service-depth:nth-child(2) .service-row, .home .service-depth:nth-child(3) .service-row { border-radius: 6px; background: #041827; }
.home .service-row { min-height: 370px; }
.home .service-row .service-visual { width: 120px; height: 120px; }
.home .service-list { border: 0; }
.home .method-assurance { border: 0; margin-top: 36px; padding: 0; }
.home .deliverable-list > div { border-bottom: 0; }
.home .diagnostic-sample { border-radius: 6px; }
.audience-section { padding: 88px var(--content-gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; background: #061d32; }
.audience-section h2 { margin: 0; max-width: 20ch; color: var(--white); font-size: clamp(2.2rem, 3.3vw, 3.5rem); line-height: 1.15; }
.audience-copy > p { margin: 0 0 28px; max-width: 45ch; color: var(--muted); font-size: 1.1rem; }
.audience-copy ul { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; padding: 0; margin: 0; color: var(--white); }
.start-section { padding: 88px var(--content-gutter); }
.start-section h2 { color: var(--white); font-size: clamp(1.8rem, 2.7vw, 2.9rem); max-width: 25ch; line-height: 1.2; margin: 0 0 40px; }
.start-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.start-options article { min-width: 0; }
.start-options h3 { margin: 0 0 16px; font-size: 1.25rem; color: var(--white); }
.start-options p { max-width: 42ch; margin: 0; color: var(--muted); }
.start-options a { display: inline-flex; align-items: center; gap: 12px; color: var(--cyan); margin-top: 16px; min-height: 44px; text-decoration: none; font-size: .9rem; }
.start-options a:hover { text-decoration: underline; text-underline-offset: 4px; }
.home .contact-section { background: #041827; padding: 120px var(--content-gutter); grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: 80px; }
.home .contact-copy h2 { font-size: clamp(2.6rem, 4.3vw, 4.8rem); line-height: 1.12; max-width: 20ch; }
.home .contact-copy p { color: var(--muted); font-size: 1.125rem; max-width: 40ch; }
.home .contact-action { display: flex; flex-direction: column; align-items: flex-start; align-self: center; gap: 16px; }
.home .contact-action .button { min-height: 56px; padding: 16px 24px; font-size: 1rem; white-space: normal; text-align: center; }
.home .contact-action .button-secondary { background: transparent; }
.home .contact-action small { color: var(--muted); max-width: 40ch; margin: 0; }
.home .contact-email { margin: 8px 0 0; color: var(--white); min-height: 44px; display: inline-flex; align-items: center; }
.home .contact-blocks { left: auto; right: var(--content-gutter); top: 20px; width: 150px; height: 76px; opacity: .45; }
.home .contact-cube { --cube-size: 24px; --cube-half: 12px; }
@media (min-width: 1800px) and (min-aspect-ratio: 2/1) {
  .home { --content-gutter: max(5vw, calc((100vw - 2100px) / 2)); }
  .home .section { padding-inline: var(--content-gutter); }
  .home .section-intro, .home .service-list, .home .method-list, .home .evidence-layout { max-width: none; }
  .editorial-heading { grid-template-columns: 1.8fr 1fr; }
  .editorial-heading h2 { font-size: 4.4rem; }
  .editorial-mask { aspect-ratio: 16 / 10; }
}
@media (max-width: 860px) {
  .home { --content-gutter: 24px; }
  .trust-strip { padding-block: 24px; }
  .trust-strip p { flex-direction: column; align-items: center; gap: 8px; font-size: .85rem; }
  .trust-strip p > span + span::before { content: none; }
  .trust-strip span span { margin-inline: 10px; }
  .problem-section { grid-template-columns: 1fr; gap: 24px; padding-block: 64px 40px; }
  .problem-section h2 { max-width: 24ch; }
  .home .editorial-section { padding-block: 64px; }
  .editorial-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; }
  .editorial-heading h2 { font-size: clamp(2rem, 5vw, 3rem); }
  .editorial-heading > p { font-size: 1rem; max-width: 55ch; }
  .editorial-grid { grid-template-columns: 1fr; gap: 24px; }
  .editorial-mask { aspect-ratio: 16 / 10; }
  .editorial-side { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 16px; }
  .editorial-detail-frame { aspect-ratio: 4 / 3; flex: none; }
  .editorial-grid figcaption { font-size: .85rem; gap: 4px; flex-direction: column; }
  .editorial-grid figcaption span { align-self: start; font-size: .7rem; }



  .audience-section { grid-template-columns: 1fr; gap: 28px; padding-block: 64px; }
  .audience-section h2 { max-width: 25ch; }
  .start-section { padding-block: 64px; }
  .start-options { grid-template-columns: 1fr; gap: 28px; }
  .home .contact-section { grid-template-columns: 1fr; padding-block: 104px 64px; gap: 32px; }
  .home .contact-copy h2 { font-size: clamp(2.4rem, 6vw, 3.6rem); max-width: 22ch; }
  .home .contact-action { align-items: stretch; }
  .home .contact-action .button { padding-inline: 16px; }
}
@media (max-width: 540px) {
  .home { --content-gutter: 20px; }
  .trust-strip p { font-size: .8rem; }
  .home .service-row { min-height: 310px; }
}
@media (max-width: 380px) {
  .editorial-side { grid-template-columns: 1fr; gap: 24px; }
  .editorial-detail-frame { aspect-ratio: 16 / 9; }

}
@media (prefers-reduced-motion: reduce) {
  .editorial-image { inset: 0; }
  .editorial-mask { clip-path: none; }
}

.problem-section h2, .editorial-heading h2, .audience-section h2, .start-section h2, .start-options h3 { font-family: inherit; }
/* Override the base stylesheet's no-JS header defaults during preparation. */
@media (max-width: 860px) {
  .js-pending .home .site-header { position: fixed; flex-wrap: nowrap; padding: 0 24px; }
  .js-pending .home .menu-button { display: block; }
}
@media (max-width: 540px) {
  .js-pending .home .site-header { padding-inline: 20px; }
}

/* Targeted corrections: shared captions, grouped services, contained closing cubes. */
.editorial-note { margin: 24px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.home .services { padding-inline: max(72px, calc((100vw - 1520px) / 2)); }
.home .services .section-intro { display: block; width: 100%; max-width: 900px; margin: 0 auto 72px; text-align: left; }
.home .services .section-intro h2 { font-size: clamp(2.4rem, 4.2vw, 4.6rem); max-width: 900px; }
.home .services .section-intro p { margin: 24px 0 0; max-width: 660px; }
.home .services .primary-service { margin-top: 0; }
.home .contact-section { --contact-cube-size: clamp(48px, 4.6vw, 72px); grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); column-gap: 80px; row-gap: 32px; }
.home .contact-copy { grid-column: 1; grid-row: 1 / 3; }
.home .contact-blocks { position: relative; grid-column: 2; grid-row: 1; justify-self: start; left: auto; right: auto; top: auto; width: calc(var(--contact-cube-size) * 4.8); height: calc(var(--contact-cube-size) * 3.2); opacity: 1; pointer-events: none; }
.home .contact-cube { --cube-size: var(--contact-cube-size); --cube-half: calc(var(--contact-cube-size) / 2); left: calc(var(--contact-cube-size) * .4); top: calc(var(--contact-cube-size) * 1.85); }
.home .contact-cube:nth-child(2) { left: calc(var(--contact-cube-size) * 1.8); top: calc(var(--contact-cube-size) * 1.1); }
.home .contact-cube:nth-child(3) { left: calc(var(--contact-cube-size) * 3.2); top: calc(var(--contact-cube-size) * .35); }
.home .contact-action { grid-column: 2; grid-row: 2; }
@media (min-width: 1180px) {
  .home .site-header { gap: 24px; }
  .home .menu-button, .home .header-contact { display: none; }
  :is(.js, .js-pending) .home .main-nav, html:not(.js):not(.js-pending) .home .main-nav {
    position: static; inset: auto; width: auto; display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 20px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none !important; max-height: none; overflow: visible;
  }
  .home .main-nav a { display: inline-flex; align-items: center; font-size: .875rem; min-height: 44px; padding: 8px 0; white-space: nowrap; }
  .home .main-nav .nav-cta { margin: 0; padding: 12px 18px; font-size: .875rem; }
}
@media (min-width: 1800px) and (min-aspect-ratio: 2/1) {
  .home .services { padding-inline: max(5vw, calc((100vw - 2100px) / 2)); }
  .home .contact-section { --contact-cube-size: clamp(72px, 2.65vw, 105px); }
}
@media (max-width: 1179px) and (min-width: 861px) {
  .home .contact-section { --contact-cube-size: clamp(40px, 4.8vw, 56px); column-gap: 40px; }
}
@media (max-width: 860px) {
  .home .services { padding-inline: 24px; }
  .home .services .section-intro { margin-bottom: 48px; }
  .home .contact-section { --contact-cube-size: clamp(40px, 6vw, 56px); grid-template-columns: minmax(0,1fr); padding-block: 72px 64px; }
  .home .contact-copy, .home .contact-blocks, .home .contact-action { grid-column: 1; grid-row: auto; }
}
@media (max-width: 540px) {
  .home .services { padding-inline: 20px; }
  .home .contact-section { --contact-cube-size: clamp(28px, 8.5vw, 42px); }
}

/* Independent live diagnosis; all content is visible without motion scripts. */
.home .problem-section { position: relative; grid-template-columns: minmax(0, .44fr) minmax(0, .56fr); min-height: clamp(680px, 90svh, 900px); gap: clamp(40px, 5vw, 100px); padding-block: 100px 112px; background: #041827; }
.problem-copy { min-width: 0; }
.home .problem-copy h2 { max-width: 18ch; }
.home .problem-copy p { margin-top: 32px; max-width: 48ch; line-height: 1.7; }
.problem-diagnostic { position: relative; padding: 12px 0 64px 40px; min-width: 0; }
.diagnostic-conductor { position: absolute; left: 8px; top: 26px; height: calc(100% - 26px); width: 2px; overflow: visible; color: #56cddd; opacity: .65; }
.diagnostic-conductor path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.diagnostic-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.diagnostic-list li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.diagnostic-dot { position: absolute; left: -36px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: #c3a36c; box-shadow: 0 0 0 5px #041827; }
.diagnostic-list strong { display: block; color: #f4f8fb; font-size: clamp(1.1rem, 1.45vw, 1.55rem); font-weight: 600; line-height: 1.4; }
.diagnostic-status { display: block; color: #91a8b8; font-size: .95rem; margin-top: 6px; }
.diagnostic-signal { width: 64px; height: 24px; flex: 0 0 64px; color: #56cddd; opacity: .7; }
.diagnostic-signal path { fill: none; stroke: currentColor; stroke-width: 1.5; }
.home .diagnostic-conclusion { margin-top: 40px; max-width: 32ch; color: #c4d6e2; font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.5; }
@media (max-width: 860px) {
 .home .problem-section { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 44px; padding-block: 64px 72px; }
 .home .problem-copy h2 { max-width: 24ch; }
 .home .problem-copy p { margin-top: 24px; }
 .problem-diagnostic { padding-left: 32px; padding-bottom: 40px; }
 .diagnostic-dot { left: -28px; }
 .diagnostic-list { gap: 24px; }
 .diagnostic-list li { gap: 12px; }
 .diagnostic-signal { width: 44px; flex-basis: 44px; }
}

/* The diagnosis ends in a clear outcome, within the same reading flow. */
.diagnostic-result { margin-top: 28px; max-width: 40ch; }
.home .diagnostic-result h3 { margin: 0 0 16px; font-family: inherit; color: #f4f8fb; font-size: clamp(1.5rem, 2.2vw, 2.35rem); line-height: 1.2; }
.home .diagnostic-result p { margin: 0; max-width: 36ch; color: #56cddd; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.6; }
.home .problem-section { padding-block: 80px; }
.problem-diagnostic { padding-bottom: 24px; }
@media (max-width: 860px) { .home .problem-section { padding-block: 64px; } }

/* These constraints are inert at the approved text size; prevent zoom overflow. */
.home .service-row h3 { max-width: min(540px, 100%); }
.audience-section > * { min-width: 0; }
@media (max-width: 860px) {
 .trust-strip p > span { max-width: 100%; white-space: normal; text-align: center; }
}

/* La unión comenzar/diagnósticos tiene una sola reserva de espacio. */
.home #comenzar { padding-bottom: 0; }
.home #comenzar + #diagnosticos { padding-top: 72px; }
.home #comenzar + #diagnosticos > .offer-intro > .eyebrow { margin-top: 0; }
@media (max-width: 860px) {
  .home #comenzar + #diagnosticos { padding-top: 40px; }
}
