*, *::before, *::after { box-sizing: border-box; }
html { background: var(--surface-hero); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; color: var(--black); background: var(--surface-hero); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p, dl, dd, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 100; left: 16px; top: -64px; padding: 10px 14px; background: var(--black); color: var(--white); border-radius: var(--radius-sm); }
.skip-link:focus { top: 16px; }

/* ---------- Header: two states of the Figma "menu" component ---------- */
.site-header { position: fixed; z-index: 50; inset: 32px 0 auto; height: 72px; pointer-events: none; }
.navbar {
  position: absolute; top: 0; left: 50%;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 12px 12px 12px 20px; border-radius: var(--radius-md);
  pointer-events: auto;
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.navbar--before {
  width: calc(100% - 2 * var(--page-gutter)); height: 70px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.navbar--after {
  width: min(1206px, calc(100% - 2 * var(--page-gutter))); height: 72px;
  transform: translateX(-50%) translateY(-8px);
  background: var(--white);
  box-shadow: 0 0 24px rgba(47, 53, 75, 0.08);
  opacity: 0; pointer-events: none;
}
.site-header[data-state="after"] .navbar--before { opacity: 0; transform: translateX(-50%) translateY(-8px); pointer-events: none; }
.site-header[data-state="after"] .navbar--after { opacity: 1; transform: translateX(-50%); pointer-events: auto; }

.navbar__logo img { width: 190px; height: auto; }
.navbar__links { display: flex; gap: 8px; }
.navbar__links a { display: block; padding: 12px; border-radius: var(--radius-sm); opacity: 0.56; transition: opacity 200ms ease; }
.navbar--after .navbar__links a { opacity: 0.4; }
.navbar__links a.is-active { opacity: 1; }
.navbar__actions { display: flex; align-items: center; gap: 16px; }

.lang { display: flex; padding: 2px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.08); }
.navbar--after .lang { padding: 3px 4px; background: rgba(255, 255, 255, 0.04); }
.lang__option { width: 64px; height: 42px; border-radius: var(--radius-sm); opacity: 0.56; transition: opacity 200ms ease; }
.lang__option.is-active { background: var(--black); color: var(--white); opacity: 1; }

.btn-tertiary {
  display: inline-flex; align-items: center; gap: 4px; height: 46px;
  padding: 12px 12px 12px 20px; border-radius: var(--radius-sm);
  background: var(--white); color: var(--black);
  border: 0.5px solid rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em; white-space: nowrap;
}
.navbar--after .btn-tertiary { border-color: var(--black); }
.btn-tertiary svg { transition: transform 200ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .navbar__links a:hover, .lang__option:hover { opacity: 1; }
  .btn-tertiary:hover svg { transform: translate(2px, -2px); }
}

/* ---------- Primary button (button primary, color=blue) ---------- */
.btn-primary { display: inline-block; width: 239px; height: 50px; overflow: hidden; border-radius: var(--radius-sm); color: var(--white); }
.btn-primary__track { display: flex; gap: 1px; width: max-content; height: 100%; transform: translateX(-51px); transition: transform 280ms var(--ease-out); }
.btn-primary__icon, .btn-primary__label { display: grid; place-items: center; height: 50px; background: var(--blue); transition: background-color 280ms var(--ease-out); }
.btn-primary__icon { width: 50px; }
.btn-primary__label { width: 188px; padding: 0 20px; justify-items: start; }
.btn-primary__roll { display: flex; flex-direction: column; height: 1.2em; overflow: hidden; line-height: 1.2; }
.btn-primary__roll > span { display: block; white-space: nowrap; transition: transform 280ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover .btn-primary__track { transform: translateX(0); }
  .btn-primary:hover .btn-primary__icon, .btn-primary:hover .btn-primary__label { background: var(--black); }
  .btn-primary:hover .btn-primary__roll > span { transform: translateY(-100%); }
}
.btn-primary:focus-visible .btn-primary__track { transform: translateX(0); }
.btn-primary:active .btn-primary__track { transform: translateX(0) scale(0.98); }

/* ---------- Hero with a scroll-driven sequence ---------- */
/* The hero stays put for one more screen after the video, while the next section rises over it. */
:root { --overlap: max(100svh, 620px); }
.hero-sequence { position: relative; height: calc(var(--sequence-vh, 420vh) + var(--overlap)); }
/* Shadow upwards only (where the section covers the video): the negative spread stops it leaking downwards and drawing
   a line between this section and the next, which does not exist in Figma. */
html:not(.no-sequence) .hero-next { margin-top: calc(-1 * var(--overlap)); box-shadow: 0 -24px 48px -24px rgba(0, 0, 0, 0.18); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: var(--surface-hero); }

/* Figma background shape (2140:1372) sits above the video and below the text. */
.stage__bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.shape { position: absolute; height: auto; }
.shape--top { left: 0.21vw; top: 0; width: 32.24vw; }
.shape--bottom { display: none; } /* not present in the current Figma frame (2135:913) */

.visual { position: absolute; inset: 0; background: var(--surface-seq); }
.seq-canvas, .seq-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.seq-poster { object-fit: cover; object-position: 100% 50%; } /* follows CONFIG.focalX.from (trailer on the right) */

.hero-copy {
  position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--page-gutter);
  width: min(737px, 38.4vw);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 32px;
  padding-top: 32px;
}
.hero-copy__tag { padding: 5px 16px; border-left: 2px solid var(--light-blue); }
.hero-copy h1 { max-width: 737px; }

/* Scroll indicator: mouse with wheel on desktop, arrow on touch. */
.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(20px, 4svh, 40px); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transform: translateX(-50%);
  color: var(--black); pointer-events: none;
}
.scroll-cue__mouse {
  position: relative; width: 24px; height: 38px;
  border: 1.5px solid currentColor; border-radius: 12px; opacity: 0.72;
}
.scroll-cue__wheel {
  position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: currentColor;
  animation: scroll-cue-wheel 1.8s var(--ease-in-out) infinite;
}
.scroll-cue__chevron { display: none; opacity: 0.72; animation: scroll-cue-chevron 1.8s var(--ease-in-out) infinite; }
.scroll-cue__label {
  font: 700 11px/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.56;
}
@keyframes scroll-cue-wheel {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(12px); opacity: 0; }
}
@keyframes scroll-cue-chevron {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(6px); opacity: 0.9; }
}
@media (hover: none), (pointer: coarse) {
  .scroll-cue__mouse { display: none; }
  .scroll-cue__chevron { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue__wheel, .scroll-cue__chevron { animation: none; }
}
.no-sequence .scroll-cue { display: none; }

.reduced-interior { display: none; }

/* ---------- Next section (rises over the hero) ---------- */
.hero-next { position: relative; z-index: 1; }

/* ---------- Footer (Figma 2143:1429) ---------- */
.site-footer {
  position: relative; overflow: hidden;
  padding: 96px var(--page-gutter) 0;
  background: var(--surface-dark); color: var(--white);
  font-family: var(--font-display);
}
.site-footer__top { display: grid; grid-template-columns: 32fr 22.5fr 24.8fr 20.7fr; align-items: start; }
.site-footer__logo { display: inline-flex; align-items: center; gap: 10px; }
.site-footer__logo img:first-child { width: 43px; height: auto; }
.site-footer__logo img:last-child { width: 216px; height: auto; }
.site-footer__tagline { margin-top: 32px; max-width: 273px; font-weight: 500; font-size: 18px; line-height: 1.28; letter-spacing: 0.04em; }
.site-footer__nav { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin: -10px 0 0 -10px; }
.site-footer__nav a { padding: 10px; line-height: 1; color: var(--white); }
.site-footer__label { font-weight: 500; font-size: 18px; line-height: 1.2; letter-spacing: 0.04em; }
.site-footer__social-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
  padding: 12px 12px 12px 16px; border-radius: var(--radius-sm);
  background: #2b2b2b; color: var(--white); letter-spacing: 0.02em;
}
.site-footer__social-link img { transition: transform 200ms var(--ease-out); }
.site-footer__cta-title { font-weight: 600; font-size: 20px; line-height: 1.28; letter-spacing: 0.02em; text-transform: uppercase; }
.site-footer__cta-text { margin-top: 24px; font-family: var(--font-body); font-size: 16px; line-height: 1.5; opacity: 0.64; }
.site-footer__cta .btn-primary { margin-top: 32px; }
.btn-primary--light { color: var(--black); }
.btn-primary--light .btn-primary__icon, .btn-primary--light .btn-primary__label { background: var(--light-blue); }
.site-footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 98px; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-weight: 500; font-size: 16px; line-height: 1.2; letter-spacing: 0.04em;
}
.site-footer__bottom > * { opacity: 0.4; }
.site-footer__part { display: inline-flex; align-items: center; gap: 24px; }
.site-footer__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--white); }
.site-footer__part img { width: 84px; height: auto; }
.site-footer__part-link { display: inline-flex; align-items: center; min-height: 44px; transition: opacity 200ms ease; }
.site-footer__part-link:hover { opacity: 0.72; }
.site-footer__wordmark { display: block; width: calc(100% + 2 * var(--page-gutter)); max-width: none; height: auto; margin: 71px calc(-1 * var(--page-gutter)) -2px; }
@media (hover: hover) and (pointer: fine) {
  .site-footer__nav a:hover, .site-footer__social-link:hover { color: var(--light-blue); }
  .site-footer__social-link:hover img { transform: translate(2px, -2px); }
  .btn-primary--light:hover .btn-primary__icon, .btn-primary--light:hover .btn-primary__label { background: var(--white); }
}
@media (max-width: 1100px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; row-gap: 56px; }
}
@media (max-width: 640px) {
  .site-footer { padding-top: 64px; }
  .site-footer__top { grid-template-columns: 1fr; row-gap: 40px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; margin-top: 56px; }
  .site-footer__wordmark { margin-top: 40px; }
}

/* ---------- Debugging (?debug=1) ---------- */
.debug { position: fixed; z-index: 60; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 4px; background: rgba(21, 21, 21, 0.8); color: #fff; font: 12px/1.4 ui-monospace, monospace; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .navbar__links { display: none; }
}
@media (max-width: 820px) {
  .site-header { top: 16px; }
  .lang { display: none; }
  .navbar__logo img { width: 150px; }
  .btn-tertiary { height: 42px; padding: 10px 10px 10px 14px; font-size: 12px; }
  .hero-copy h1 { font-size: clamp(28px, 8vw, 38px); }
  .seq-poster { object-fit: contain; object-position: 50% 84%; }
  .hero-copy { top: 118px; bottom: auto; width: calc(100% - 2 * var(--page-gutter)); gap: 20px; padding-top: 0; }
  .shape--top { width: 70vw; }
  .shape--bottom { left: 20vw; width: 90vw; top: 70%; }
}
@media (max-width: 420px) {
  .btn-tertiary { font-size: 0; gap: 0; padding: 10px; }
  .btn-tertiary svg { width: 22px; height: 22px; }
}

/* No animation (system preference) or engine not loaded: static hero and the interior as a normal image. */
.no-sequence .hero-sequence { height: auto; }
.no-sequence .stage { position: relative; }
.no-sequence .seq-canvas { display: none; }
.no-sequence .reduced-interior { display: block; }
.no-sequence .reduced-interior img { width: 100%; max-height: 90vh; object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
  .navbar, .btn-primary__track, .btn-primary__roll > span, .btn-primary__icon, .btn-primary__label { transition-duration: 0.01ms; }
}

/* ---------- Section 02 / Specifications (Figma frame 05) ----------
   Rises over the hero when the video ends. Image 868 px on the left, text 774 px on the right, band at the bottom. */
.specs {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 868fr) minmax(0, 774fr); column-gap: clamp(32px, 6.15vw, 118px);
  padding: clamp(80px, 7.5vw, 144px) var(--page-gutter) clamp(120px, 8.8vw, 169px);
  background: var(--surface-dark); color: var(--white);
}
.specs__media { position: relative; min-height: 320px; }
.specs__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Figma spacing minus the line trimming it applies (text trimmed to cap height). */
.specs__content { display: flex; flex-direction: column; gap: 40px; }
.specs__intro { display: flex; flex-direction: column; align-items: flex-start; }
.specs__tag { display: inline-flex; align-items: center; gap: 16px; padding-bottom: 11px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: var(--light-blue); }
.specs__bullet { width: 6px; height: 6px; background: var(--light-blue); }
.specs__title { margin-top: 24px; }
.specs__desc { margin-top: 12px; }
.specs__desc p + p { margin-top: 24px; }
.specs__table { margin: 0; }
.specs__table div { display: flex; justify-content: space-between; gap: 24px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font: 700 14px/1.5 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.specs__table div:last-child { border-bottom: 0; }
.specs__table dd { margin: 0; text-align: right; }
.specs__divider { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; pointer-events: none; }
@media (max-width: 1100px) {
  .specs { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .specs__media { aspect-ratio: 868 / 657; min-height: 0; }
}

/* ---------- Frame 05 footer: thumbnails + LinkedIn and Instagram ---------- */
.site-footer__thumbs { display: flex; gap: 16px; margin-top: 36px; }
.site-footer__thumbs img { width: 90px; height: 90px; border-radius: var(--radius-sm); object-fit: cover; }
.site-footer__social-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; }
.site-footer--figma05 .site-footer__social-link { justify-content: space-between; width: 194px; height: 48px; margin-top: 0; }
/* Figma trims lines to cap height; the browser does not. This compensates so the copyright line
   lands 400 px from the top of the footer, as in frame 05. */
.site-footer--figma05 .site-footer__bottom { margin-top: 70px; }
@media (min-width: 1101px) {
  .site-footer--figma05 .site-footer__top { grid-template-columns: 477fr 308fr 612fr 363fr; }
}
