/* =========================================================
   ATLAS® REBRAND — Landing Page
   Bricks Builder compatible / modular utility classes
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #1E1E1E;
  --bg-elevated: #232323;
  --bg-deep: #161616;
  --fg: #FFFFFF;
  --fg-muted: rgba(255, 255, 255, 0.55);
  --fg-dim: rgba(255, 255, 255, 0.32);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.06);
  --accent: #0d68b1;
  --accent-hover: #1a7dc9;

  --container: 1480px;
  --gutter: clamp(20px, 4vw, 56px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --t-xxl: clamp(64px, 11.5vw, 220px);
  --t-xl:  clamp(48px, 7.5vw, 132px);
  --t-l:   clamp(36px, 5vw, 88px);
  --t-m:   clamp(24px, 2.4vw, 36px);
  --t-s:   clamp(15px, 1vw, 17px);
  --t-xs:  12px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Barlow', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  font-size: var(--t-s);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.section {
  padding-block: clamp(80px, 12vw, 180px);
  position: relative;
}
.section--tight { padding-block: clamp(48px, 7vw, 100px); }
.section--flush-bottom { padding-bottom: 0; }
.section--deep { background: var(--bg-deep); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 500;
  font-size: var(--t-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.eyebrow--plain::before { display: none; }

.display {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-size: var(--t-xxl);
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.display--condensed {
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: -0.01em;
}
.h1 {
  font-weight: 800;
  font-size: var(--t-xl);
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.h2 {
  font-weight: 700;
  font-size: var(--t-l);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.h3 {
  font-weight: 600;
  font-size: var(--t-m);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.lead {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.45;
  font-weight: 400;
  color: rgba(255,255,255,0.78);
  text-wrap: pretty;
  max-width: 60ch;
}
.body { color: rgba(255,255,255,0.7); max-width: 56ch; text-wrap: pretty; }
.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  color: var(--fg-dim);
}
.accent { color: var(--accent); }
.muted { color: var(--fg-muted); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: difference;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav__brand sup { font-size: 9px; vertical-align: super; opacity: 0.7; }
.nav__center {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
}
.nav__cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav__cta::after {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* ---------- Media primitives ---------- */
.media-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.media-contain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}
.media-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(13,104,177,0.18), transparent 60%),
    linear-gradient(180deg, rgba(30,30,30,0.55) 0%, rgba(30,30,30,0.78) 65%, rgba(30,30,30,0.95) 100%);
  z-index: 1;
}
.media-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,30,30,0) 50%, rgba(30,30,30,0.85) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.hero > .container,
.hero > .scroll-indicator { position: relative; z-index: 2; }
.hero__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.hero__meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  line-height: 1.8;
}
.hero__meta b { color: var(--fg); font-weight: 500; display: block; margin-bottom: 4px; letter-spacing: 0.2em; }
.hero__title {
  margin-top: clamp(40px, 8vw, 100px);
  position: relative;
}
.hero__title .display {
  display: block;
}
.hero__title .display:nth-child(2) {
  padding-left: 18vw;
}
.hero__title .display .strike {
  display: inline-block;
  position: relative;
  color: var(--fg-dim);
}
.hero__title .display .strike::after {
  content: "";
  position: absolute;
  top: 50%; left: -2%;
  width: 104%;
  height: 6px;
  background: var(--accent);
  transform: translateY(-50%);
}
.hero__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
  margin-top: clamp(60px, 10vw, 120px);
}
.hero__year {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(80px, 14vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.hero__caption { justify-self: end; text-align: right; }
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: column;
}
.scroll-indicator__line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, transparent, var(--fg));
  animation: drop 2.4s ease-in-out infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Section header ---------- */
.section-head {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: clamp(48px, 6vw, 96px);
}
.section-head__num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--accent);
  padding-top: 8px;
  position: sticky;
  top: 100px;
}
.section-head__label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 14px;
}

/* ---------- Manifesto ---------- */
.manifesto__quote {
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 22ch;
}
.manifesto__quote em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}
.manifesto__quote .word {
  display: inline-block;
}

/* ---------- Before / After ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.compare__card {
  background: var(--bg);
  padding: clamp(40px, 6vw, 96px) clamp(24px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 80px);
  min-height: clamp(420px, 60vw, 640px);
  position: relative;
}
.compare__card--after { background: var(--bg-elevated); }
.compare__tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: flex;
  justify-content: space-between;
}
.compare__tag b { color: var(--fg); font-weight: 500; }
.compare__logo {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 280px;
}
.compare__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}
.compare__meta b { color: var(--fg); font-weight: 500; display: block; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.16em; font-size: 10px; }

/* placeholder logos */
.logo-old, .logo-new {
  position: relative;
}
.compare__media {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 280px;
  background: #000;
  overflow: hidden;
}
.compare__media video, .compare__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.logo-old {
  font-family: 'Times New Roman', serif;
  font-size: clamp(60px, 9vw, 140px);
  font-weight: 700;
  font-style: italic;
  color: var(--fg-dim);
  letter-spacing: -0.02em;
}
.logo-old::after {
  content: "®";
  font-size: 0.3em;
  vertical-align: super;
  margin-left: 4px;
  font-style: normal;
}
.logo-new {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-size: clamp(60px, 9vw, 140px);
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 16px);
}
.logo-new__mark {
  display: inline-block;
  width: 0.7em; height: 0.7em;
  background: var(--accent);
  border-radius: 0.14em;
  position: relative;
}
.logo-new__mark::before {
  content: "";
  position: absolute;
  inset: 18% 18% auto auto;
  width: 28%; height: 28%;
  background: var(--bg);
  border-radius: 50%;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: clamp(24px, 3vw, 40px);
  margin-block: clamp(60px, 8vw, 120px);
  background: var(--bg-deep);
}
.marquee__track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: scroll 32s linear infinite;
  align-items: center;
}
.marquee__item {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 64px;
  color: var(--fg);
}
.marquee__item::after {
  content: "";
  width: 0.4em; height: 0.4em;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.marquee__item:nth-child(even) {
  color: var(--fg-dim);
  -webkit-text-stroke: 1px var(--fg);
  color: transparent;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ---------- Process / Storytelling ---------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: center;
}
.story--reverse { direction: rtl; }
.story--reverse > * { direction: ltr; }
.story__visual {
  aspect-ratio: 4 / 5;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.story__visual video, .story__visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.story__visual--contain video, .story__visual--contain img {
  object-fit: contain;
  background: var(--bg-deep);
}
.story__visual--wide { aspect-ratio: 5 / 4; }
.story__visual-label {
  position: absolute;
  bottom: 16px; left: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  z-index: 2;
}
.story__visual-num {
  position: absolute;
  top: 16px; right: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  z-index: 2;
}
/* striped placeholder */
.story__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 24px,
    rgba(255,255,255,0.025) 24px,
    rgba(255,255,255,0.025) 25px
  );
}

.story__text { padding-block: 24px; }
.story__num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 24px;
}
.story__title {
  font-weight: 800;
  font-size: clamp(36px, 4.4vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 32px;
  text-wrap: balance;
}
.story__body p + p { margin-top: 18px; }

/* ---------- Construction grid ---------- */
.construction {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: stretch;
}
.construction__hero {
  grid-column: span 7;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  aspect-ratio: 1.2 / 1;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.construction__hero > img, .construction__hero > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.construction__cell > img, .construction__cell > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.construction__cell-label { position: relative; z-index: 2; }
.construction__side {
  grid-column: span 5;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}
.construction__cell {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}
.construction__cell--accent {
  background: var(--accent);
}
.construction__cell-label {
  position: absolute;
  top: 16px; left: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.construction__cell--accent .construction__cell-label { color: rgba(255,255,255,0.7); }

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(13,104,177,0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13,104,177,0.18) 1px, transparent 1px);
  background-size: 8.33% 8.33%;
  pointer-events: none;
}
.construction__cross {
  position: absolute;
  width: 12px; height: 12px;
}
.construction__cross::before, .construction__cross::after {
  content: ""; position: absolute; background: var(--accent);
}
.construction__cross::before { inset: 50% 0 auto 0; height: 1px; transform: translateY(-50%); }
.construction__cross::after { inset: 0 50% 0 auto; width: 1px; transform: translateX(50%); }

/* ---------- Color system ---------- */
.colors {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.color-card {
  background: var(--bg);
  padding: clamp(24px, 3vw, 40px);
  min-height: clamp(280px, 36vw, 440px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.color-card__name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 44px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.color-card__hex {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
}
.color-card__values {
  display: grid;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
}
.color-card--accent { background: var(--accent); }
.color-card--accent .color-card__hex, .color-card--accent .color-card__values { color: rgba(255,255,255,0.7); }
.color-card--white { background: #fafafa; color: #111; }
.color-card--white .color-card__hex, .color-card--white .color-card__values { color: rgba(0,0,0,0.5); }
.color-card--black { background: #0a0a0a; }

/* ---------- Type system ---------- */
.type-system { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.type-card {
  background: var(--bg);
  padding: clamp(32px, 4vw, 64px);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.type-card__sample {
  font-size: clamp(80px, 12vw, 200px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-weight: 900;
}
.type-card__sample--cond {
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: -0.015em;
}
.type-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.type-card__meta b { color: var(--fg); display: block; margin-bottom: 4px; font-weight: 500; }
.type-card__weights {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 28px;
  align-items: baseline;
  line-height: 1;
}
.type-card__weights span:nth-child(1) { font-weight: 300; }
.type-card__weights span:nth-child(2) { font-weight: 400; }
.type-card__weights span:nth-child(3) { font-weight: 500; }
.type-card__weights span:nth-child(4) { font-weight: 600; }
.type-card__weights span:nth-child(5) { font-weight: 700; }
.type-card__weights span:nth-child(6) { font-weight: 900; }

/* ---------- Applications — adaptive slider ---------- */
.adapt {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: stretch;
  position: relative;
}
.adapt__text {
  padding-block: clamp(24px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 40px);
  position: sticky;
  top: clamp(80px, 12vh, 140px);
  align-self: start;
  max-height: 90vh;
}
.adapt__num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--accent);
}
.adapt__title {
  font-weight: 800;
  font-size: clamp(36px, 4.2vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.adapt__body p + p { margin-top: 14px; }
.adapt__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
.adapt__stats b {
  display: block;
  color: var(--fg);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 3.4vw, 52px);
  letter-spacing: 0.01em;
  margin-bottom: 6px;
  line-height: 1;
}

.adapt__slider {
  position: relative;
  height: clamp(560px, 78vh, 820px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  /* fade mask top/bottom */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.adapt__column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  will-change: transform;
}
.adapt__column--up   { animation: slideUp   38s linear infinite; }
.adapt__column--down { animation: slideDown 38s linear infinite; }
.adapt__slider:hover .adapt__column { animation-play-state: paused; }

@keyframes slideUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
@keyframes slideDown {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}

.adapt__card {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 4 / 5;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  overflow: hidden;
}
.adapt__card img, .adapt__card video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.adapt__card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.8) 100%);
}
.adapt__card-label {
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.adapt__card-label b {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.06em;
}

/* ---------- (legacy) Gallery — fallback ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(200px, 22vw, 340px);
  gap: 16px;
}
.gallery__item {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.gallery__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg, transparent 0, transparent 22px,
    rgba(255,255,255,0.025) 22px, rgba(255,255,255,0.025) 23px
  );
  z-index: 0;
}
.gallery__item img, .gallery__item video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.gallery__item--has-media::before { display: none; }
.gallery__item--has-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.78) 100%);
  z-index: 1;
}
.gallery__item-label { position: relative; z-index: 2; }
.gallery__item--accent { background: var(--accent); }
.gallery__item--accent::before { background-image: repeating-linear-gradient(45deg, transparent 0, transparent 22px, rgba(255,255,255,0.12) 22px, rgba(255,255,255,0.12) 23px); }
.gallery__item--dark { background: #0a0a0a; }
.gallery__item-label {
  position: relative;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: end;
}
.gallery__item-label b { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 600; color: var(--fg); letter-spacing: 0.06em; }
.gallery__item--a { grid-column: span 7; grid-row: span 2; }
.gallery__item--b { grid-column: span 5; }
.gallery__item--c { grid-column: span 5; }
.gallery__item--d { grid-column: span 4; }
.gallery__item--e { grid-column: span 4; }
.gallery__item--f { grid-column: span 4; }

/* ---------- Closer / CTA ---------- */
.closer {
  text-align: center;
  padding-block: clamp(120px, 18vw, 280px);
  position: relative;
}
.closer__title {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-size: clamp(64px, 12vw, 240px);
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.closer__title .accent { color: var(--accent); }
.closer__sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 32px;
}
.closer__cta {
  margin-top: 56px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 22px 36px;
  border: 1px solid var(--fg);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease-out);
}
.closer__cta span { position: relative; z-index: 2; }
.closer__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
}
.closer__cta:hover::before { transform: translateY(0); }
.closer__cta:hover { border-color: var(--accent); }
.closer__cta::after {
  content: "→";
  display: inline-block;
  position: relative;
  z-index: 2;
  transition: transform 0.4s var(--ease-out);
}
.closer__cta:hover::after { transform: translateX(6px); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px var(--gutter) 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.footer b { color: var(--fg); display: block; margin-bottom: 12px; font-weight: 500; letter-spacing: 0.2em; font-size: 10px; }
.footer__copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; }

/* ---------- Animations: reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

[data-split] .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
[data-split] .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out);
}
[data-split].is-visible .word > span { transform: translateY(0); }
[data-split].is-visible .word:nth-child(1) > span { transition-delay: 0.0s; }
[data-split].is-visible .word:nth-child(2) > span { transition-delay: 0.06s; }
[data-split].is-visible .word:nth-child(3) > span { transition-delay: 0.12s; }
[data-split].is-visible .word:nth-child(4) > span { transition-delay: 0.18s; }
[data-split].is-visible .word:nth-child(5) > span { transition-delay: 0.24s; }
[data-split].is-visible .word:nth-child(6) > span { transition-delay: 0.30s; }
[data-split].is-visible .word:nth-child(7) > span { transition-delay: 0.36s; }
[data-split].is-visible .word:nth-child(8) > span { transition-delay: 0.42s; }
[data-split].is-visible .word:nth-child(9) > span { transition-delay: 0.48s; }
[data-split].is-visible .word:nth-child(10) > span { transition-delay: 0.54s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__top { grid-template-columns: 1fr; gap: 18px; }
  .hero__bottom { grid-template-columns: 1fr; gap: 40px; }
  .hero__caption { justify-self: start; text-align: left; }
  .hero__title .display:nth-child(2) { padding-left: 0; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .section-head__num { position: static; }
  .compare { grid-template-columns: 1fr; }
  .story, .story--reverse { grid-template-columns: 1fr; direction: ltr; gap: 32px; }
  .construction__hero, .construction__side { grid-column: span 12; }
  .colors { grid-template-columns: 1fr 1fr; }
  .type-system { grid-template-columns: 1fr; }
  .gallery__item--a, .gallery__item--b, .gallery__item--c,
  .gallery__item--d, .gallery__item--e, .gallery__item--f {
    grid-column: span 12;
  }
  .adapt { grid-template-columns: 1fr; gap: 48px; }
  .adapt__text { position: static; max-height: none; }
  .adapt__slider { height: 70vh; }
  .footer { grid-template-columns: 1fr 1fr; }
}
