@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap");

:root {
  --bg: #090a0a;
  --panel: #0d0f0f;
  --panel-2: #111313;
  --text: #f2f1ee;
  --muted: #969692;
  --faint: #666763;
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --accent: #ef5a24;
  --green: #6fd69b;
  --max: 1440px;
  --gutter: clamp(28px, 5vw, 80px);
  --section-y: clamp(84px, 8vw, 132px);
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}


button,
input {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.hidden,
[hidden] {
  display: none !important;
}

.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;
}

.container {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.fx,
.termination-line,
.dev-grid-overlay {
  display: none !important;
}

/* Header */
body > header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 78px;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition:
    height 260ms ease,
    background-color 260ms ease,
    border-color 260ms ease,
    backdrop-filter 260ms ease;
}

body > header.scrolled {
  height: 64px;
  border-color: var(--line-soft);
  background: rgba(8, 9, 9, 0.76);
  backdrop-filter: blur(20px) saturate(120%);
}

body > header .inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand svg {
  width: 19px;
  height: 19px;
}

.brand strong {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
}

.row,
.nav-minimal {
  display: flex;
  align-items: center;
}

.nav-minimal {
  gap: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.nav-minimal .btn {
  color: rgba(242, 241, 238, 0.58);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-minimal .btn:hover,
.nav-minimal .btn:focus-visible {
  color: var(--text);
}

.nav-minimal .btn--nav-primary {
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.52);
  color: var(--text);
}

/* Main architecture */
main.engineered-flow {
  width: 100%;
  max-width: none;
  margin: 0;
}

main.engineered-flow > section {
  width: 100%;
  margin: 0;
}

.section-tag,
.carousel-heading,
.final-capture__headline-eyebrow,
.footer-heading {
  margin: 0;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Hero */
.section-hero {
  min-height: 820px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 8, 8, 0.95) 0%, rgba(7, 8, 8, 0.75) 31%, rgba(7, 8, 8, 0.08) 62%),
    url("/assets/img/cubrix-hero-architectural.webp") 58% 48% / auto 118% no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  min-height: 820px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  padding-top: 92px;
}

.hero-copy {
  grid-column: 1 / span 5;
  position: relative;
  z-index: 3;
  padding: 48px 0 38px;
}

.hero-eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.title {
  max-width: 520px;
  margin: 0;
  font-size: clamp(3.7rem, 5.1vw, 5.7rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.sub {
  max-width: 390px;
  margin: 30px 0 0;
  color: rgba(242, 241, 238, 0.62);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 42px;
  margin-top: 54px;
}

.hero-ctas .btn {
  min-height: 42px;
  padding-bottom: 8px;
  color: var(--text);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero-primary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.56);
}

.hero-primary::after {
  content: "›";
  margin-left: 4px;
  font-size: 1rem;
}

.hero-ctas .btn--ghost {
  color: rgba(242, 241, 238, 0.62);
}

.btn-icon--play {
  order: 2;
  width: 22px;
  height: 22px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
}

.hero-ctas .btn:hover,
.hero-ctas .btn:focus-visible {
  color: #fff;
  border-color: var(--accent);
}

.hero-media {
  grid-column: 6 / -1;
  align-self: stretch;
  position: relative;
  pointer-events: none;
}

.poster.media-card {
  position: absolute;
  inset: 0;
  cursor: pointer;
  pointer-events: auto;
}

.poster-preview,
.poster.media-card::before,
.poster.media-card::after,
.poster .loader,
.poster .media-label,
.poster .play {
  display: none !important;
}

.hero-divider {
  display: none;
}

/* Progression */
.solve-loop {
  position: relative;
  padding: clamp(76px, 7vw, 110px) 0;
  border-bottom: 1px solid var(--line);
  background: #0d0f0f;
}

/* Faded engineered grid: densest near the top, dissolving outward so it
   reads as texture rather than a uniform tile. */
.solve-loop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(140% 118% at 50% 0%, #000 26%, transparent 78%);
  mask-image: radial-gradient(140% 118% at 50% 0%, #000 26%, transparent 78%);
}

.solve-loop__inner {
  position: relative;
  z-index: 1;
}

.solve-loop__inner {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(48px, 8vw, 140px);
}

.solve-loop__heading {
  display: block;
  padding: 0;
  border: 0;
}

.solve-loop__eyebrow {
  margin-bottom: 24px;
}

.solve-loop__heading h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.8rem, 4.2vw, 4.5rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.solve-loop__hud {
  align-self: end;
  min-width: 280px;
}

.solve-loop__hud-panel {
  min-width: 360px;
  padding: 0;
  border: 0;
  background: transparent;
}

.solve-loop__hud-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.solve-loop__lcd {
  position: relative;
  padding: 13px 2px 12px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 92, 68, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(90deg, rgba(255, 75, 48, 0.045), transparent 72%);
}

.solve-loop__lcd::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.012) 4px
  );
  pointer-events: none;
}

.solve-loop__hud-value {
  min-width: 0;
  margin: 0;
  color: #ff6049;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: clamp(4px, 0.45vw, 7px);
}

.lcd-digit {
  --lcd-width: clamp(25px, 3.25vw, 48px);
  --lcd-height: calc(var(--lcd-width) * 1.82);
  --lcd-segment: calc(var(--lcd-width) * 0.14);
  position: relative;
  width: var(--lcd-width);
  height: var(--lcd-height);
  flex: 0 0 auto;
}

.lcd-segment {
  position: absolute;
  display: block;
  background: rgba(255, 66, 39, 0.065);
  transition: background-color 50ms linear, filter 50ms linear;
}

.lcd-segment.is-on {
  background: #ff3e20;
  filter: drop-shadow(0 0 3px rgba(255, 55, 29, 0.42));
}

/* Subtle flash when a simulated solve completes, before the reset. */
.solve-loop__lcd.is-complete {
  animation: lcd-solve-flash-panel 560ms ease-out;
}

.solve-loop__lcd.is-complete .lcd-segment.is-on {
  animation: lcd-solve-flash 560ms ease-out;
}

@keyframes lcd-solve-flash {
  0% {
    background: #ff3e20;
    filter: drop-shadow(0 0 3px rgba(255, 55, 29, 0.42));
  }
  24% {
    background: #ff8a70;
    filter: drop-shadow(0 0 9px rgba(255, 95, 64, 0.92)) brightness(1.4);
  }
  100% {
    background: #ff3e20;
    filter: drop-shadow(0 0 3px rgba(255, 55, 29, 0.42));
  }
}

@keyframes lcd-solve-flash-panel {
  0%,
  100% {
    box-shadow: none;
  }
  24% {
    box-shadow: 0 0 24px rgba(255, 85, 52, 0.3);
  }
}

.lcd-segment--a,
.lcd-segment--d,
.lcd-segment--g {
  left: var(--lcd-segment);
  width: calc(100% - (var(--lcd-segment) * 2));
  height: var(--lcd-segment);
  clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%);
}

.lcd-segment--a {
  top: 0;
}

.lcd-segment--g {
  top: calc(50% - (var(--lcd-segment) / 2));
}

.lcd-segment--d {
  bottom: 0;
}

.lcd-segment--b,
.lcd-segment--c,
.lcd-segment--e,
.lcd-segment--f {
  width: var(--lcd-segment);
  height: calc(50% - (var(--lcd-segment) * 1.15));
  clip-path: polygon(50% 0, 100% 9%, 100% 91%, 50% 100%, 0 91%, 0 9%);
}

.lcd-segment--b,
.lcd-segment--c {
  right: 0;
}

.lcd-segment--e,
.lcd-segment--f {
  left: 0;
}

.lcd-segment--b,
.lcd-segment--f {
  top: calc(var(--lcd-segment) * 0.72);
}

.lcd-segment--c,
.lcd-segment--e {
  bottom: calc(var(--lcd-segment) * 0.72);
}

.lcd-punctuation {
  position: relative;
  width: clamp(8px, 0.85vw, 13px);
  height: clamp(45px, 5.9vw, 87px);
  flex: 0 0 auto;
}

.lcd-punctuation::before,
.lcd-punctuation::after {
  content: "";
  position: absolute;
  left: 50%;
  width: clamp(5px, 0.5vw, 8px);
  height: clamp(5px, 0.5vw, 8px);
  border-radius: 1px;
  background: #ff3e20;
  box-shadow: 0 0 4px rgba(255, 55, 29, 0.42);
  transform: translateX(-50%);
}

.lcd-punctuation--colon::before {
  top: 31%;
}

.lcd-punctuation--colon::after {
  bottom: 31%;
}

.lcd-punctuation--dot::before {
  display: none;
}

.lcd-punctuation--dot::after {
  bottom: 3%;
}

.solve-loop__hook,
.solve-loop__bridge {
  display: none;
}

.solve-loop__track {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(58px, 6vw, 88px);
  border-top: 1px solid var(--line);
}

.solve-loop__step {
  min-height: 190px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 64px auto;
  align-content: center;
  justify-items: center;
  gap: 15px;
  padding: 30px 28px;
  border-left: 1px solid var(--line-soft);
  text-align: center;
}

.solve-loop__step:first-of-type {
  border-left: 0;
}

.solve-loop__step-index {
  grid-column: 1;
  grid-row: 1;
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  color: var(--faint);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}

.solve-loop__step-icon {
  grid-column: 1;
  grid-row: 2;
  width: 58px;
  height: 58px;
  color: rgba(242, 241, 238, 0.68);
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.solve-loop__step-title {
  grid-column: 1;
  grid-row: 3;
  margin: 0;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.solve-loop__step-copy {
  max-width: 210px;
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.6;
}

.solve-loop__connector {
  display: none;
}

/* Features */
.section-features {
  padding: var(--section-y) 0 clamp(74px, 7vw, 112px);
  border-bottom: 1px solid var(--line);
  background: #090a0a;
}

.carousel-shell {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.carousel-heading {
  margin-bottom: 30px;
}

.carousel-row {
  display: block;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #080909;
}

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  min-height: min(820px, 76vh);
  position: relative;
  display: block;
  overflow: hidden;
}

.carousel-slide:not([data-experience]) {
  display: none;
}

.carousel-media {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  background: #080909;
}

.carousel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(0.72) contrast(1.06);
  transform: scale(1.005);
}

.carousel-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 6, 0.92) 0%, rgba(5, 6, 6, 0.62) 36%, rgba(5, 6, 6, 0.06) 68%),
    linear-gradient(0deg, rgba(5, 6, 6, 0.62), transparent 42%);
  pointer-events: none;
}

.carousel-meta {
  position: absolute;
  left: clamp(54px, 6vw, 106px);
  bottom: clamp(58px, 7vw, 108px);
  z-index: 2;
  width: min(560px, 44%);
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  background: transparent;
}

.carousel-meta-kicker {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.carousel-meta-title {
  margin: 0;
  font-size: clamp(3.4rem, 5.2vw, 6.2rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.carousel-meta-copy {
  display: none;
}

.carousel-meta-points {
  display: none;
}

.carousel-meta-points li {
  position: relative;
  padding-left: 16px;
  color: rgba(242, 241, 238, 0.68);
  font-size: 0.75rem;
}

.experience-data {
  position: absolute;
  top: clamp(42px, 5vw, 74px);
  right: clamp(42px, 5vw, 74px);
  z-index: 2;
  min-width: 220px;
  display: grid;
  justify-items: end;
  padding: 24px 0 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--text);
  text-align: right;
}

.experience-data__label {
  color: rgba(242, 241, 238, 0.58);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.experience-data strong {
  margin-top: 10px;
  font-size: clamp(3rem, 5vw, 5.8rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.experience-data > span:last-child {
  margin-top: 10px;
  color: rgba(242, 241, 238, 0.62);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vault-catalogue {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.vault-label {
  position: absolute;
  display: grid;
  gap: 4px;
  min-width: 88px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.44);
  color: rgba(242, 241, 238, 0.82);
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.vault-label b {
  color: rgba(242, 241, 238, 0.42);
  font-size: 0.48rem;
  font-weight: 500;
}

.vault-label--3x3 {
  left: 45%;
  top: 39%;
}

.vault-label--4x4 {
  left: 64%;
  top: 35%;
}

.vault-label--mirror {
  left: 76%;
  top: 61%;
}

.vault-label--pyraminx {
  left: 57%;
  top: 62%;
}

.vault-label--championship {
  right: 3%;
  top: 39%;
  min-width: 140px;
}

.carousel-meta-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(8, 9, 9, 0.78);
  color: var(--text);
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.carousel-btn--prev {
  left: 18px;
}

.carousel-btn--next {
  right: 18px;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  border-color: var(--accent);
}

.carousel-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 58px;
}

.carousel-count,
.carousel-progress {
  display: none;
}

.carousel-progress-nav {
  display: flex;
  gap: 6px;
}

.carousel-progress-step {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #303231;
  cursor: pointer;
}

.carousel-progress-step.is-active {
  background: var(--accent);
}

.carousel-content {
  display: none !important;
}

/* Final CTA */
.final-capture {
  min-height: 760px;
  display: grid;
  align-items: center;
  padding: clamp(88px, 9vw, 138px) 0;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(10, 11, 11, 0.62) 0%, rgba(10, 11, 11, 0.76) 54%, rgba(10, 11, 11, 0.94) 100%),
    url("/assets/img/cubrix-cube-vault.webp") center 50% / cover no-repeat,
    var(--panel);
}

.final-capture__inner {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
  justify-items: center;
  gap: 0;
  text-align: center;
}

.final-capture__headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.final-capture__challenge {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.final-capture__headline-main {
  max-width: 920px;
  margin-top: 12px;
  font-size: clamp(5.2rem, 9vw, 10rem);
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.final-capture__statement {
  max-width: 720px;
  margin: 32px 0 0;
  color: rgba(242, 241, 238, 0.82);
  font-size: clamp(1.2rem, 1.8vw, 1.75rem);
  font-weight: 300;
  line-height: 1.42;
  letter-spacing: -0.025em;
}

.btn--primary-final {
  min-width: min(360px, 100%);
  min-height: 62px;
  justify-content: center;
  margin-top: 42px;
  padding: 0 38px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(8, 9, 9, 0.78);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn--primary-final {
  gap: 13px;
}

.btn-steam-icon {
  flex: none;
  width: 22px;
  height: 22px;
}

.btn--primary-final:hover,
.btn--primary-final:focus-visible {
  border-color: var(--accent);
  background: rgba(18, 19, 19, 0.9);
}

.btn--primary-final:hover .btn-steam-icon,
.btn--primary-final:focus-visible .btn-steam-icon {
  color: var(--accent);
}

.final-capture__divider-label,
.final-capture__incentive,
.final-capture__form {
  width: min(460px, 100%);
}

.final-capture__divider-label {
  margin: 76px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.final-capture__incentive {
  display: none;
}

.final-capture__form {
  margin: 14px 0 0;
  text-align: left;
}

.final-capture__field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
}

.final-capture__input {
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #080909;
  color: var(--text);
  outline: 0;
}

.final-capture__input:focus {
  border-color: var(--accent);
}

.btn--final {
  min-height: 44px;
  border: 1px solid var(--line);
  border-left: 0;
  background: #171919;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn--final:hover,
.btn--final:focus-visible {
  border-color: var(--accent);
}

.final-capture__consent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #777874;
  font-size: 0.68rem;
}

.final-capture__consent-checkbox {
  width: 15px;
  height: 15px;
  margin: 0 5px 0 0;
  accent-color: var(--accent);
}

.final-capture__consent-link {
  color: #b7b7b3;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.final-capture__status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.final-capture__status.is-error {
  color: #ff8b77;
}

.final-capture__status.is-success {
  color: var(--green);
}

.final-capture__success {
  margin-top: 12px;
}

.final-capture__success-title {
  margin: 0;
}

/* Footer */
.site-footer {
  position: relative;
  padding: 44px 0 40px;
  border-top: 1px solid var(--line);
  background: #080909;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(120% 150% at 50% 0%, #000 18%, transparent 82%);
  mask-image: radial-gradient(120% 150% at 50% 0%, #000 18%, transparent 82%);
}

.footer-inner {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.footer-brand {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.footer-brand__name {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
}

.footer-brand__top,
.footer-brand__tagline,
.footer-rights,
.footer-heading,
.footer-language--mobile,
.footer-legal-mobile,
.footer-links a[href*="/faq"],
.footer-links a[href*="/press"],
.footer-links a[href*="/updates"],
.footer-links a[href*="/careers"] {
  display: none;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
}

.footer-social a {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #777874;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--accent);
}

.footer-social svg {
  width: 17px;
  height: 17px;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
}

.footer-copyright {
  display: inline-flex;
  align-items: center;
  color: #777874;
  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-meta-links {
  display: inline-flex;
  align-items: center;
}

.footer-meta-links a {
  display: inline-flex;
  align-items: center;
  color: #6f706c;
  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.footer-meta-links a:hover,
.footer-meta-links a:focus-visible {
  color: var(--text);
}

.footer-utility {
  order: 1;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.footer-links a {
  color: #8a8b86;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

/* Modal and utility */
dialog {
  width: min(1100px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line);
  background: #050606;
  color: var(--text);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
}

.video-body,
.video-body iframe {
  width: 100%;
  height: 100%;
}

.video-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.video-loader {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 28px;
  height: 28px;
  margin: -14px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.video-loader.hidden {
  display: none;
}

.video-fallback {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(12, 13, 13, 0.9);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Premium scroll reveal: sections fade up and un-blur as they enter view.
   Hidden state only applies when JS is active (bootstrap adds .js); the
   IntersectionObserver in site.js adds .reveal-in and the per-group
   --reveal-delay used for staggering. */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  filter: blur(12px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.js .reveal.reveal-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* Hero intro: copy and media stagger in on load (initPremiumIntroMotion
   tags elements with .intro-animate + --intro-delay, then flips
   .page-intro-ready on <body> once ready). Uses a keyframe animation so it
   plays reliably on first paint instead of a same-frame transition. */
.intro-animate {
  opacity: 0;
}

.page-intro-ready .intro-animate {
  animation: hero-intro 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--intro-delay, 0ms);
  will-change: opacity, transform, filter;
}

@keyframes hero-intro {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-animate {
    opacity: 1;
  }

  .page-intro-ready .intro-animate {
    animation: none;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Tablet */
@media (max-width: 1020px) {
  :root {
    --gutter: clamp(24px, 4vw, 44px);
  }

  .section-hero,
  .hero-inner {
    min-height: 760px;
  }

  .hero-copy {
    grid-column: 1 / span 6;
  }

  .title {
    font-size: clamp(3.3rem, 6.6vw, 4.8rem);
  }

  .hero-media {
    grid-column: 7 / -1;
  }

  .solve-loop__heading {
    display: block;
  }

  .solve-loop__eyebrow {
    margin-bottom: 0;
  }

  .solve-loop__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .carousel-slide {
    min-height: 760px;
  }

}

/* Mobile */
@media (max-width: 700px) {
  :root {
    --gutter: 20px;
    --section-y: 72px;
  }

  body > header {
    height: 64px;
  }

  .brand strong {
    font-size: 0.64rem;
  }

  .nav-minimal .btn {
    display: inline-flex;
    font-size: 0.54rem;
  }

  .section-hero {
    min-height: auto;
    background:
      linear-gradient(90deg, rgba(7, 8, 8, 0.96) 0%, rgba(7, 8, 8, 0.86) 44%, rgba(7, 8, 8, 0.34) 76%, rgba(7, 8, 8, 0.08) 100%),
      linear-gradient(180deg, rgba(7, 8, 8, 0.76) 0%, rgba(7, 8, 8, 0.14) 48%, rgba(7, 8, 8, 0.04) 72%),
      url("/assets/img/cubrix-hero-architectural.webp") 64% center / cover no-repeat;
  }

  .hero-inner {
    min-height: 0;
    display: block;
    padding-top: 70px;
    padding-bottom: 104px;
  }

  .hero-copy {
    width: 100%;
    padding-top: 64px;
  }

  .title {
    max-width: 330px;
    font-size: clamp(3.1rem, 14vw, 4.1rem);
  }

  .sub {
    max-width: 310px;
    margin-top: 24px;
    font-size: 0.9rem;
  }

  .hero-ctas {
    align-items: flex-start;
    gap: 24px;
    margin-top: 38px;
  }

  .hero-ctas .btn {
    font-size: 0.56rem;
  }

  .hero-media {
    position: static;
  }

  .poster.media-card {
    inset: 0;
  }

  .solve-loop__heading h2 {
    font-size: clamp(2.5rem, 12vw, 3.4rem);
  }

  .solve-loop__inner {
    grid-template-columns: 1fr;
  }

  .solve-loop__hud {
    margin-top: 44px;
    min-width: 0;
  }

  .solve-loop__hud-panel {
    min-width: 0;
  }

  .solve-loop__track {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .solve-loop__step {
    min-height: 0;
    grid-template-columns: 28px 54px minmax(0, 1fr);
    grid-template-rows: 1fr;
    justify-content: stretch;
    gap: 18px;
    padding: 22px 0;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .solve-loop__step-index {
    grid-column: 1;
    grid-row: 1;
  }

  .solve-loop__step-icon {
    grid-column: 2;
    grid-row: 1;
    width: 46px;
    height: 46px;
  }

  .solve-loop__step-title {
    grid-column: 3;
    grid-row: 1;
  }

  .solve-loop__step:first-of-type {
    border-top: 0;
  }

  .carousel-heading {
    margin-bottom: 22px;
  }

  .carousel-slide {
    min-height: min(620px, 74vh);
  }

  .carousel-media {
    position: absolute;
    min-height: 0;
  }

  .carousel-media img {
    width: 100%;
    object-position: 56% center;
    filter: brightness(0.72) saturate(0.74) contrast(1.04);
  }

  .carousel-meta {
    left: 24px;
    right: 24px;
    bottom: 34px;
    width: auto;
    min-height: 0;
    padding: 0;
  }

  .carousel-meta-title {
    max-width: 12ch;
    font-size: clamp(2.7rem, 12vw, 3.7rem);
  }

  .carousel-btn {
    top: 50%;
    width: 38px;
    height: 38px;
  }

  /* Declutter the mobile gallery: the decorative HUD/vault overlays
     collide with the header and arrows on narrow screens, so keep the
     slide to image + kicker + title. */
  .experience-data,
  .vault-catalogue {
    display: none;
  }

  .carousel-btn--prev {
    left: 10px;
  }

  .carousel-btn--next {
    right: 10px;
  }

  .final-capture__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0;
  }

  .final-capture__headline-main {
    font-size: clamp(4rem, 19vw, 5.4rem);
  }

  .final-capture__statement {
    max-width: 340px;
    margin-top: 26px;
    font-size: 1.2rem;
  }

  .btn--primary-final {
    width: min(320px, 100%);
    min-width: 0;
    margin-top: 34px;
  }

  .final-capture {
    min-height: 880px;
    background:
      linear-gradient(180deg, rgba(10, 11, 11, 0.72) 0%, rgba(10, 11, 11, 0.84) 54%, rgba(10, 11, 11, 0.98)),
      url("/assets/img/cubrix-cube-vault.webp") 58% center / cover no-repeat,
      var(--panel);
  }

  .final-capture__divider-label {
    margin-top: 68px;
  }

  .final-capture__field-row {
    grid-template-columns: 1fr;
  }

  .btn--final {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .footer-brand {
    flex-wrap: wrap;
    gap: 18px;
  }

  .footer-legal {
    width: 100%;
    order: 3;
  }

  .footer-columns {
    flex-direction: column;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

#launch-updates { scroll-margin-top: 100px; }
