/* A live digital-twin journey, followed by normal-flow editorial sections. */
.journey { position: relative; isolation: isolate; height: 620svh; background: #040c15; }
.journey::before, .journey::after { content: ''; position: absolute; z-index: 20; left: 0; width: 100%; height: 30px; pointer-events: none; }
.journey::before { top: 0; background: #f8faf9; clip-path: polygon(0 0,100% 0,100% 100%,88% 100%,85% 5%,15% 5%,12% 100%,0 100%); filter: drop-shadow(0 1px 0 rgba(75,190,235,.72)) drop-shadow(0 3px 8px rgba(61,181,232,.16)); }
.journey::after { bottom: 0; background: #fff; clip-path: polygon(0 0,12% 0,15% 95%,85% 95%,88% 0,100% 0,100% 100%,0 100%); filter: drop-shadow(0 -1px 0 rgba(75,190,235,.72)) drop-shadow(0 -3px 8px rgba(61,181,232,.16)); }
.journey-edge-marker--top { top: 4px; }
.journey-edge-marker--bottom { bottom: 4px; }
.journey-stage { background: #040c15; }
.process-viewport, .process-shade { position: absolute; inset: 0; }
.process-viewport canvas { display: block; width: 100%; height: 100%; }
.process-shade { pointer-events: none; background: linear-gradient(90deg, transparent 35%, rgba(4,12,21,.1) 55%, rgba(4,12,21,.52)), linear-gradient(0deg, #040c15 1%, transparent 23%, transparent 78%, rgba(4,12,21,.55)); }
.journey-stage .story-ui { opacity: 1; visibility: visible; pointer-events: auto; }
.story-ui .chapter-card { right: 5vw; width: min(490px, 42vw); padding: 30px; color: #f2f7fa; background: linear-gradient(135deg, rgba(13,35,54,.82), rgba(6,21,35,.84)); border: 1px solid rgba(141,198,225,.22); border-radius: 24px; backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); box-shadow: 0 30px 80px #0004, inset 0 1px 0 #b6e4fa14; opacity: var(--card-opacity, 1); transform: translateY(-50%) translateX(var(--card-shift, 0px)); transition: none; }
.story-ui .chapter-card::before, .story-ui .chapter-card::after { display: none; }
.story-ui .chapter-card h2 { color: #f7fbff; font-size: clamp(43px, 4.3vw, 72px); line-height: .99; letter-spacing: -.055em; margin: 0 0 18px; }
.story-ui .chapter-content > p { color: #c6d7e1; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.5; }
.story-ui .chapter-card dl { margin-top: 25px; padding-top: 0; border-top: 0; gap: 24px; }
.story-ui .chapter-card dt { color: #8baabc; font-size: 11px; }
.story-ui .chapter-card dd { color: #a1dbf8; font-size: clamp(19px, 1.6vw, 27px); line-height: 1.2; }
.story-ui .chapter-card dl div { padding-right: 0; }
.story-ui .chapter-card dl div + div { padding-left: 0; border-left: 0; }
.process-fallback svg { position: absolute; left: 5%; top: 22%; width: 48%; height: 52%; }
.process-fallback svg[hidden] { display: none; }
.process-fallback .diagram-flow-base { opacity: .65; }
.process-fallback .diagram-flow { stroke-dasharray: 12 80; animation: diagramEnergy 5s linear infinite; }
@keyframes diagramEnergy { to { stroke-dashoffset: -184; } }

.editorial-flow { position: relative; isolation: isolate; background: #fff; overflow: clip; }
.editorial-flow::before { content: ''; position: absolute; z-index: -1; inset: -80px 0; pointer-events: none; background: radial-gradient(ellipse at 100% 18%, #003a8f08, transparent 55%), radial-gradient(ellipse at 0% 62%, #dce8f640, transparent 55%); transform: translateY(var(--flow-shift, 0px)); }
.editorial-flow::after { content: ''; position: absolute; z-index: -1; pointer-events: none; width: min(900px, 85vw); aspect-ratio: 1; top: 21%; right: -37%; border: 1px solid #003a8f0a; border-radius: 50%; box-shadow: 0 0 0 38px #003a8f03, 0 0 0 78px #003a8f03; transform: translateY(calc(var(--flow-shift, 0px) * .5)); }
.home-editorial {
  --editorial-ink: #102b43;
  --editorial-copy: #41566b;
  --editorial-muted: #556b7f;
  --editorial-blue: #003a8f;
  --editorial-accent: #b8420d;
  --editorial-border: #d5e0eb;
  position: relative; padding: 110px 6vw 96px;
  color: var(--editorial-ink); background: transparent;
}
.home-editorial > * { position: relative; }
.home-section-label { color: var(--editorial-blue); font-size: 11px; font-weight: 600; letter-spacing: .15em; margin: 0 0 20px; }
.home-section-heading { display: flex; gap: 35px; justify-content: space-between; align-items: end; margin-bottom: 42px; }
.home-section-heading h2 { max-width: 650px; margin: 0; font-size: clamp(40px, 4.5vw, 74px); font-weight: 400; letter-spacing: -.05em; line-height: 1.04; }
.home-section-heading h2 em { color: var(--editorial-blue); font-style: normal; }
.home-section-heading > p { width: min(360px, 34%); color: var(--editorial-copy); font-size: 16px; line-height: 1.55; margin: 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.product-panel { position: relative; padding: 26px; border: 1px solid var(--editorial-border); border-radius: 22px; background: linear-gradient(145deg, #fff 35%, #f3f7fc); box-shadow: 0 14px 42px #0d31590a, inset 0 1px 0 #fff; min-width: 0; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; }
.product-panel::before { content: ''; position: absolute; width: 160px; height: 160px; top: 32px; left: calc(50% - 80px); border-radius: 50%; background: radial-gradient(circle, #003a8f08, transparent 72%); transform: translateY(calc(var(--editorial-shift, 0px) * -.18)); pointer-events: none; }
.product-panel > svg { width: 100%; height: 180px; display: block; margin: 0 0 25px; color: var(--editorial-blue); stroke-width: 1.5; fill: none; stroke: currentColor; transform: translateY(calc(var(--editorial-shift, 0px) * -.08)); }
.product-panel.is-revealed > svg > * { stroke-dasharray: 1; animation: productOutline 1.5s .16s cubic-bezier(.22, 1, .36, 1) backwards; }
.product-panel:nth-child(2).is-revealed > svg > * { animation-delay: .28s; }
.product-panel:nth-child(3).is-revealed > svg > * { animation-delay: .4s; }
@keyframes productOutline { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.product-panel h3 { margin: 0 0 10px; font-weight: 400; font-size: 27px; letter-spacing: -.03em; }
.product-panel p { margin: 0; color: var(--editorial-copy); font-size: 14px; line-height: 1.6; }
.product-panel ul { margin: 22px 0 0; padding: 0; list-style: none; color: var(--editorial-blue); font-size: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.product-panel li { border: 1px solid #cfdded; border-radius: 20px; padding: 6px 10px; background: #f0f5fb; }
.home-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 35px; color: #fff; padding: 12px 14px 12px 20px; border: 1px solid var(--editorial-blue); border-radius: 15px; background: var(--editorial-blue); box-shadow: 0 10px 25px #003a8f14; font-size: 14px; text-decoration: none; transition: background .3s, box-shadow .3s, transform .3s var(--ease); }
.home-link:hover { background: #002d70; box-shadow: 0 15px 30px #003a8f23; transform: translateY(-2px); }
.home-link:focus-visible { outline: 3px solid #b8420d; outline-offset: 4px; }
.home-link span { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: #fff5ef; color: var(--editorial-accent); font-size: 20px; transition: transform .4s var(--ease); }
.home-link:hover span { transform: rotate(45deg); }
.delivery-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px; }
.delivery-step { position: relative; padding-top: 22px; border-top: 1px solid var(--editorial-border); }
.delivery-step::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, var(--editorial-blue), #4b77b3); transform: scaleX(var(--editorial-progress, 0)); transform-origin: left; }
.delivery-step h3 { margin: 0 0 12px; font-size: 28px; font-weight: 400; letter-spacing: -.03em; }
.delivery-step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--editorial-copy); }
.footprint-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.footprint-panel { position: relative; padding: 30px; border: 1px solid var(--editorial-border); border-radius: 22px; background: linear-gradient(145deg, #fff 35%, #f3f7fc); box-shadow: 0 14px 42px #0d315908; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; }
.footprint-panel::before { content: ''; display: block; width: 28px; height: 3px; margin-bottom: 22px; border-radius: 3px; background: #f04c24; }
.footprint-panel h3 { margin: 0 0 14px; font-size: 34px; font-weight: 400; letter-spacing: -.04em; }
.footprint-panel > p { color: var(--editorial-copy); line-height: 1.6; font-size: 14px; }
.footprint-panel dl { display: flex; gap: 35px; margin: 32px 0 0; padding-top: 22px; border-top: 1px solid var(--editorial-border); }
.footprint-panel dt { font-size: 12px; color: var(--editorial-muted); margin-bottom: 8px; }
.footprint-panel dd { margin: 0; color: var(--editorial-blue); font-size: 24px; }
.footprint-route { display: flex; align-items: center; gap: 16px; margin-top: 28px; color: var(--editorial-muted); font-size: 12px; }
.footprint-route i { height: 1px; flex: 1; background: linear-gradient(90deg, #a4bcdb, #003a8f, #a4bcdb); position: relative; }
.footprint-route i::after { content: ''; width: 7px; height: 7px; position: absolute; top: -3px; border-radius: 50%; background: var(--editorial-blue); box-shadow: 0 0 0 4px #003a8f0d, 0 0 12px #003a8f30; animation: routePulse 6s linear infinite; }
@keyframes routePulse { from { left: 0; } to { left: calc(100% - 6px); } }
[data-home-reveal].is-revealed { animation: editorialEnter .85s var(--ease) backwards; }
.product-panel:nth-child(2).is-revealed, .delivery-step:nth-child(2).is-revealed, .footprint-panel:nth-child(2).is-revealed { animation-delay: .1s; }
.product-panel:nth-child(3).is-revealed, .delivery-step:nth-child(3).is-revealed { animation-delay: .2s; }
@keyframes editorialEnter { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@media (hover: hover) and (pointer: fine) {
  .product-panel:hover, .footprint-panel:hover { transform: translateY(-6px); border-color: #a9bed9; box-shadow: 0 22px 54px #003a8f12; }
}
.contact-panel.site-footer { position: relative; inset: auto; display: block; opacity: 1; visibility: visible; pointer-events: auto; transform: none; padding: 75px 6vw 28px; background: #07131f; backdrop-filter: none; will-change: auto; }
.site-footer.contact-panel .contact-heading h2 { font-size: clamp(48px, 5.1vw, 78px); line-height: .98; max-width: 760px; }
.site-footer.contact-panel .contact-grid { margin-top: 28px; }

@media (min-width: 981px) {
  .site-footer.contact-panel .contact-grid { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); }
  .site-footer.contact-panel .contact-mail { font-size: clamp(14px, 1.1vw, 18px); gap: 10px; white-space: nowrap; }
}

@media (min-width: 701px) and (max-width: 980px) {
  .journey { height: 600svh; height: 600dvh; }
  .journey-stage { height: 100svh; height: 100dvh; }
  .story-ui .chapter-card { right: 3vw; left: auto; top: 50%; bottom: auto; width: 44vw; padding: 24px; }
  .story-ui .chapter-card h2 { font-size: 43px; }
}
@media (max-width: 700px) {
  .journey { height: 540svh; height: 540dvh; }
  .journey-stage { height: 100svh; height: 100dvh; }
  .journey::before, .journey::after { height: 22px; }
  .journey-edge-marker--top { top: 2px; }
  .journey-edge-marker--bottom { bottom: 2px; }
  .process-shade { background: linear-gradient(0deg, #040c15 1%, #040c15a8 32%, transparent 64%, #040c1570); }
  .story-ui .chapter-card { top: auto; bottom: 22px; left: 14px; right: 14px; width: auto; padding: 22px; border-radius: 22px; transform: translateX(var(--card-shift, 0px)); }
  .story-ui .chapter-card h2 { font-size: clamp(33px, 9vw, 46px); line-height: 1; margin: 0 0 14px; }
  .story-ui .chapter-content > p { font-size: 14px; line-height: 1.45; }
  .story-ui .chapter-card dl { margin-top: 18px; padding-top: 0; gap: 16px; }
  .story-ui .chapter-card dd { font-size: 20px; }
  .process-fallback svg { left: 15%; top: 13%; width: 70%; height: 35%; }
  .home-editorial { padding: 90px 20px 60px; }
  .home-section-heading { display: block; margin-bottom: 28px; }
  .home-section-heading h2 { font-size: clamp(36px, 9vw, 48px); }
  .home-section-heading > p { width: auto; max-width: 450px; margin-top: 22px; font-size: 14px; }
  .home-section-heading > .home-link { margin-top: 22px; }
  .product-grid, .delivery-steps, .footprint-grid { grid-template-columns: 1fr; }
  .product-panel { padding: 22px; }
  .product-panel > svg { height: 140px; margin-bottom: 20px; }
  .product-panel h3 { font-size: 25px; }
  .delivery-steps { gap: 28px; }
  .delivery-step h3 { font-size: 26px; }
  .delivery-step p { font-size: 14px; }
  .footprint-panel { padding: 24px; }
  .footprint-panel h3 { font-size: 29px; }
  .footprint-panel dl { gap: 28px; }
  .footprint-route { font-size: 10px; gap: 10px; }
  .contact-panel.site-footer { padding: 52px 20px 22px; }
  .site-footer.contact-panel .contact-heading h2 { font-size: clamp(38px, 9vw, 52px); line-height: 1; }
  .site-footer.contact-panel .contact-grid { margin-top: 22px; }
}
@media (max-height: 700px) and (max-width: 700px) {
  .story-ui .chapter-card { padding: 16px 20px; bottom: 14px; }
  .story-ui .chapter-card h2 { font-size: 30px; margin: 0 0 10px; }
  .story-ui .chapter-content > p { font-size: 12px; }
  .story-ui .chapter-card dl { margin-top: 12px; padding-top: 0; }
}
@media (max-height: 600px) and (min-width: 701px) {
  .story-ui .chapter-card { top: calc(50% - 6px); padding: 14px; }
  .story-ui .chapter-card h2 { font-size: 30px; margin: 0 0 10px; }
  .story-ui .chapter-content > p { font-size: 11.5px; line-height: 1.3; }
  .story-ui .chapter-card dl { margin-top: 10px; padding-top: 0; }
  .story-ui .chapter-card dt { font-size: 9px; }
  .story-ui .chapter-card dd { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .process-fallback .diagram-flow { animation: none; }
  [data-home-reveal].is-revealed { animation: none; }
  .product-panel.is-revealed > svg > * { animation: none; stroke-dashoffset: 0; }
  .editorial-flow::before, .editorial-flow::after, .product-panel::before, .product-panel > svg { transform: none; }
  .product-panel, .footprint-panel, .home-link, .home-link span { transition: none; }
  .product-panel:hover, .footprint-panel:hover, .home-link:hover, .home-link:hover span { transform: none; }
  .delivery-step::before { transform: none; }
  .footprint-route i::after { animation: none; }
}
