/* AIMERICA homepage header, T-13 (29 Nov 2026): the owner's Neural Core scene as the first screen.
   Without JavaScript, with reduced motion, with Save-Data, or without WebGL it is one screen: a still picture taken from
   his scene, with the headline. core26.js adds .is-3d (tall section, sticky stage, captions) and .is-live (first frame drawn).
   The length of the scroll story is ONE number: --core26-screens = screens of scrolling the header holds before the content. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

.core26 {
  --core26-screens: 3.5;            /* the owner's file: 6.2 */
  --core26-screens-phone: 3;        /* round 2: screens up to 700 px wide (one thumb flick is about one screen) */
  --c26-stage: #080A0E; --c26-panel: #10131A; --c26-frost: #EEF2F8; --c26-blue: #4E8FE4; --c26-sky: #7EB8F0;
  --c26-ice: #9CC4F6; --c26-deep: #2F6DC9; --c26-grad: linear-gradient(180deg, var(--c26-ice), var(--c26-blue)); /* T13: his gradient ends at --c26-deep; ending at his blue keeps every caption above 4.5:1 */
  --c26-vh: 100vh;
  position: relative; margin-top: calc(-1 * var(--bar-h, 64px)); background: var(--c26-stage); color: var(--c26-frost);
  border-bottom: 1px solid var(--rule, rgba(128,168,226,.14));
}
@supports (height: 100svh) { .core26 { --c26-vh: 100svh; } }

/* the stage: full screen, sticky while the story runs */
.core26-stage { position: sticky; top: 0; height: var(--c26-vh); overflow: hidden; z-index: 0; }
.core26-still, .core26-still img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.core26-still img { object-fit: cover; object-position: 50% 50%; }
.core26-gl { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.core26.is-live .core26-gl { opacity: 1; }
.core26-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(8,10,14,.85) 100%); }
.core26-run { height: 0; }
.core26.is-3d .core26-run { height: calc(var(--core26-screens) * var(--c26-vh)); }

/* the first screen: the approved headline, the demo button and the ISO line; it scrolls away like any page */
.core26-intro { position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: var(--c26-vh); display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--bar-h, 64px);
  background: linear-gradient(90deg, rgba(5,10,20,.88) 0%, rgba(5,10,20,.62) 38%, rgba(5,10,20,0) 66%); }
.core26-intro-in { width: 100%; }
.core26-small { font-family: var(--display); font-stretch: 125%; font-weight: 600; font-size: clamp(.95rem, 1.3vw, 1.15rem); line-height: 1.3; letter-spacing: .01em; color: var(--text-2); margin: 0 0 14px; }
.core26 h1, .core26 .core26-h1 { font-family: var(--display); font-stretch: 125%; font-weight: 600; font-size: clamp(2.1rem, 4.6vw, 4.2rem); line-height: 1.02; letter-spacing: -.025em; max-width: 11.5em; margin: 0; color: var(--text); text-shadow: 0 2px 24px rgba(5,10,20,.6); }
.core26 h1 .l1, .core26 h1 .l2, .core26-h1 .l1, .core26-h1 .l2 { display: block; text-wrap: balance; }
.core26 h1 .l2, .core26-h1 .l2 { color: var(--text-2); }
:lang(fr) .core26 h1, :lang(fr) .core26 .core26-h1 { font-size: clamp(1.7rem, 3.9vw, 3.5rem); }
.core26-cta { margin-top: 28px; }
.core26-iso { margin: 22px 0 0; max-width: 34rem; font-size: .88rem; line-height: 1.45; color: var(--text-2); }
.core26-iso a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule-2, rgba(128,168,226,.26)); text-underline-offset: 3px; }
.core26-iso a:hover { color: var(--text); }

/* the owner's captions (his slide language), shown only while the 3D story runs; always real text */
.core26-beats { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.core26:not(.is-3d) .core26-beats { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.core26.is-3d .core26-beats { font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(0deg, rgba(8,10,14,.72) 0%, rgba(8,10,14,.35) 26%, rgba(8,10,14,0) 46%); }
.core26 .c26-label { font-weight: 700; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--c26-sky); } /* T13: his blue measured 3.4:1 on bright frames */
.core26 .c26-h { font-weight: 900; letter-spacing: -.015em; line-height: 1.05; margin: 12px 0 0; font-size: clamp(30px, 3.8vw, 54px); text-wrap: balance; color: var(--c26-frost); }
.core26 .c26-h .g { display: block; background: var(--c26-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.core26 .c26-cap { font-weight: 700; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--c26-sky); margin-top: 14px; }
.core26 .c26-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.core26 .c26-chip { border: 1.5px solid rgba(78,143,228,.6); border-radius: 8px; padding: 7px 12px; font-weight: 900; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--c26-frost); background: rgba(16,19,26,.6); }
.core26 .c26-chip.cta { background: var(--c26-grad); color: #071226; border-color: transparent; }
.core26-frame { position: absolute; left: 0; right: 0; bottom: 0; top: 0; max-width: 1240px; margin: 0 auto; }
.core26 .c26-beat { position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: 6vh; max-width: 560px; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .45s cubic-bezier(.16,1,.3,1), transform .45s cubic-bezier(.16,1,.3,1); }
.core26 .c26-beat.on { opacity: 1; transform: none; }
/* T13: a soft frosted panel under each caption, so the board's own labels never show through the caption text */
.core26 .c26-beat { padding: 16px 20px 18px; border-radius: 14px; background: rgba(8,10,14,.52); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
.core26 .c26-beat .c26-chip { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.core26 .c26-beat.on .c26-chip { opacity: 1; transform: none; }
.core26 .c26-beat.on .c26-chip:nth-child(2) { transition-delay: .08s } .core26 .c26-beat.on .c26-chip:nth-child(3) { transition-delay: .16s } .core26 .c26-beat.on .c26-chip:nth-child(4) { transition-delay: .24s }
.core26 .c26-beat.right { left: auto; text-align: right } .core26 .c26-beat.right .c26-chips { justify-content: flex-end }
.core26 .c26-killbar { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%) scaleX(0); transform-origin: left; background: var(--c26-grad); color: #071226; font-weight: 900; font-size: clamp(22px, 4vw, 52px); letter-spacing: .02em; text-transform: uppercase; padding-block: 22px; text-align: center; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.core26 .c26-killbar.on { transform: translateY(-50%) scaleX(1) }
.core26 .c26-endcard { position: absolute; left: 0; right: 0; top: calc(var(--bar-h, 64px) + 3vh); text-align: center; opacity: 0; transition: opacity .6s; padding: 0 16px; }
.core26 .c26-endcard.on { opacity: 1 }
.core26 .c26-endcard img { display: block; margin: 0 auto; width: min(300px, 60vw); height: auto; }
.core26 .c26-endcard .c26-h { font-size: clamp(28px, 4vw, 52px) }
.core26 .c26-endcard .c26-chips { justify-content: center }
.core26-progress { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.core26:not(.is-3d) .core26-progress, .core26:not(.is-3d) .c26-endcard img { display: none; }
.core26-progress i { width: 4px; height: 22px; border-radius: 2px; background: rgba(126,184,240,.18); transition: background .3s }
.core26-progress i.on { background: var(--c26-blue) }

/* the hero that follows the block (variant A): its text column stays clear of the phone's notification cards */
@media (min-width: 901px) { .core26 + .hero .hero-side { max-width: min(36rem, 100%); } }

/* phones and tablets: the dock (Start now / Book a demo) and the chat bubble sit at the bottom; the captions stay above them */
@media (max-width: 900px) {
  .core26 .c26-beat { bottom: calc(76px + 2vh); }
  /* round 2: the chat bubble (bottom right, about 56 px) covered the dock's Book a demo button; the dock leaves it room */
  .dock { padding-right: calc(var(--gutter) + 68px); }
}
@media (max-width: 700px) {
  .core26.is-3d .core26-run { height: calc(var(--core26-screens-phone) * var(--c26-vh)); }
  .core26-intro { justify-content: flex-start; padding-top: calc(var(--bar-h, 64px) + 28px);
    background: linear-gradient(180deg, rgba(5,10,20,.9) 0%, rgba(5,10,20,.8) 34%, rgba(5,10,20,0) 56%); }
  .core26 h1, .core26 .core26-h1 { font-size: clamp(1.7rem, 8vw, 2.3rem); }
  .core26-small { font-size: .95rem; margin-bottom: 10px; }
  .core26-cta .btn { flex: 1 1 auto; }
  .core26 .c26-beat { right: max(72px, env(safe-area-inset-right, 0px)); }
  .core26 .c26-beat.right { left: max(16px, env(safe-area-inset-left, 0px)); text-align: left } .core26 .c26-beat.right .c26-chips { justify-content: flex-start }
  .core26-progress { display: none } .core26 .c26-h { font-size: clamp(28px, 8.4vw, 40px) }
}
@media (prefers-reduced-motion: reduce) { .core26 .c26-beat, .core26 .c26-killbar, .core26 .c26-endcard, .core26 .c26-beat .c26-chip, .core26-gl { transition: none } }

/* ---------- round 3 (T-20): phones, nothing over anything ----------
   Portrait phones (up to 700 px wide): the scene (or the still) has its own band BELOW the text; captions sit in the
   zone above it, one at a time with a clean hand-over; the band stops above the bottom bar. core26.js sets --c26-top. */
@media (max-width: 700px) and (min-height: 501px) {
  .core26 .core26-intro { background: none; }
  .core26.is-3d .core26-gl, .core26.is-3d .core26-still, .core26.is-3d .core26-vignette { top: var(--c26-top-intro, 60%); bottom: 0; height: auto; }
  .core26.is-3d.is-captions .core26-gl, .core26.is-3d.is-captions .core26-still, .core26.is-3d.is-captions .core26-vignette { top: var(--c26-top, 60%); bottom: 76px; }
  .core26.is-3d .core26-still img { object-position: 50% 45%; }
  .core26.is-3d .core26-beats { background: none; }
  .core26.is-3d .c26-beat { top: calc(var(--bar-h, 64px) + 10px); bottom: auto; left: 16px; right: 16px; max-width: none; padding: 12px 14px 14px; text-align: left; }
  .core26.is-3d .c26-beat.right { left: 16px; right: 16px; }
  .core26 .c26-h { font-size: clamp(22px, 6.4vw, 30px); }
  .core26.is-3d .c26-killbar { top: calc(var(--bar-h, 64px) + 10px); transform: scaleX(0); font-size: clamp(20px, 6vw, 28px); padding-block: 16px; }
  .core26.is-3d .c26-killbar.on { transform: scaleX(1); }
  .core26.is-3d .c26-endcard { top: calc(var(--bar-h, 64px) + 6px); }
  .core26.is-3d .c26-endcard img { width: min(150px, 40vw); }
  .core26.is-3d .c26-endcard .c26-h { font-size: clamp(22px, 6.4vw, 30px); margin-top: 6px; }
  .core26.is-3d .c26-endcard .c26-chips { margin-top: 10px; }
  /* hand-over: the leaving caption fades out first, the next one fades in after it */
  .core26.is-3d .c26-beat, .core26.is-3d .c26-endcard { transition: opacity .16s ease, transform .16s ease; }
  .core26.is-3d .c26-beat.on, .core26.is-3d .c26-endcard.on { transition: opacity .3s ease .2s, transform .3s ease .2s; }
  /* still path: the text, then the picture in its own band */
  .core26:not(.is-3d) { display: flex; flex-direction: column; min-height: var(--c26-vh); }
  .core26:not(.is-3d) .core26-intro { position: relative; height: auto; padding-bottom: 18px; }
  .core26:not(.is-3d) .core26-stage { position: relative; flex: 1 1 auto; height: auto; min-height: 150px; }
  .core26:not(.is-3d) .core26-still img { object-position: 50% 45%; }
}
/* phones and tablets: the dock's two buttons may wrap to two lines rather than run under the chat bubble */
@media (max-width: 900px) { .dock .btn { min-width: 0; white-space: normal; text-align: center; line-height: 1.15; padding: 4px 10px; } }
/* Phones held sideways and other short screens (under 1024 x 500): text and still side by side, no 3D story */
@media (max-width: 1023px) and (max-height: 500px) {
  .core26 { min-height: var(--c26-vh); }
  .core26 .core26-intro { position: relative; width: 52%; height: var(--c26-vh); justify-content: center; padding-top: var(--bar-h, 64px); background: none; }
  .core26 .core26-intro-in { padding-right: 12px; }
  .core26 .core26-stage { position: absolute; top: 0; right: 0; width: 48%; height: var(--c26-vh); }
  .core26 .core26-stage .core26-still { top: var(--bar-h, 64px); }
  .core26 .core26-vignette { display: none; }
  .core26 h1, .core26 .core26-h1 { font-size: clamp(1.15rem, 3.4vw, 1.75rem); max-width: none; }
  .core26 .core26-small { font-size: .82rem; margin-bottom: 6px; }
  .core26 .core26-cta { margin-top: 10px; }
  .core26 .core26-cta .btn { min-height: 40px; }
  .core26 .core26-iso { margin-top: 8px; font-size: .75rem; line-height: 1.35; }
}
