/* ============================================================
   BRAMS — Page-specific styles (homepage focus for Stage 3).
   ============================================================ */

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: end;
  padding-block: var(--nav-h) clamp(2rem, 5vw, 5rem);
  padding-inline: var(--gutter);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media .placeholder {
  width: 100%;
  height: 100%;
}
/* Hero gradient overlay for legibility */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6,7,8,0.95) 0%, rgba(6,7,8,0.45) 35%, rgba(6,7,8,0.2) 65%, rgba(6,7,8,0.6) 100%),
    radial-gradient(ellipse at 50% 100%, rgba(30, 90, 148, 0.25), transparent 60%);
  z-index: 2;
}

.hero__corner {
  position: absolute;
  top: calc(var(--nav-h) + 1.5rem);
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  z-index: 3;
}
.hero__corner::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--brams-blue);
}

.hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  /* Sized so "ALUMINIJUMA" (11 wide caps) fits on ONE line down to 360px without
     wrapping. Lines are hard-structured via .hero__headline-line spans — never
     rely on natural wrapping for the brand statement. */
  font-size: clamp(2.1rem, 7.5vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--off-white);
}
.hero__headline-line {
  display: block;
  white-space: nowrap;
}

.hero__sub {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 640px;
}
.hero__sub p {
  font-size: var(--fs-lead);
  color: var(--steel-300);
  line-height: 1.4;
  max-width: 38ch;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Underline draw under headline */
.hero__rule {
  height: 1px;
  width: 0;
  background: var(--brams-blue);
  transition: width 1.2s var(--ease-out) 0.4s;
}
.hero.is-revealed .hero__rule { width: clamp(120px, 18vw, 280px); }

/* Hero prev/next arrows — appear on hero hover, fade out otherwise.
   Brand-styled dark glassy chip + blue chevron, mid-height left/right. */
.hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 50px;
  display: inline-grid;
  place-items: center;
  background: rgba(6, 7, 8, 0.62);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--steel-700);
  color: var(--brams-blue-bright);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out),
              background-color 0.25s ease,
              border-color 0.25s ease,
              transform 0.25s var(--ease-out);
  box-shadow: 0 14px 40px -16px rgba(0,0,0,0.85);
}
.hero:hover .hero__nav,
.hero__nav:focus-visible {
  opacity: 1;
  pointer-events: auto;
}
.hero__nav--prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.hero__nav--next { right: clamp(0.5rem, 2vw, 1.5rem); }
.hero__nav:hover {
  background: rgba(6, 7, 8, 0.88);
  border-color: var(--brams-blue);
  transform: translateY(-50%) scale(1.06);
}
.hero__nav svg { width: 22px; height: 22px; }
/* On touch / no hover, the arrows show permanently — but at reduced opacity so
   the hero shot stays the star. Swipe gestures still work via JS. */
@media (hover: none), (pointer: coarse) {
  .hero__nav { opacity: 0.85; pointer-events: auto; }
  .hero__nav { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__nav { transition: none; }
}

/* Boja Drveta viewer — render variant (uses the proizvod.png profile shot).
   No duotone (it's a clean isolated render), object-fit: contain, slight inset. */
.boja__viewer--render {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(ellipse 55% 14% at 50% 92%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 70%),
    radial-gradient(circle at 50% 28%, #1e2226 0%, #0a0c0e 78%);
  border: 1px solid var(--steel-700);
  overflow: hidden;
  isolation: isolate;
}
.boja__viewer--render > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: clamp(0.75rem, 1.5vw, 1.5rem);
  object-fit: contain;
  object-position: center;
  filter: saturate(0.96) contrast(1.04);
  transition: filter 0.6s var(--ease-out);
}
/* Reuse the swatch-tint mechanism — :has(.media) was the old guard, now we
   route render-variant viewers through the same overlay path. */
.boja__viewer--render::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--boja-tint, transparent);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 4;
  transition: background-color 0.6s var(--ease-out);
}

/* Scroll cue — bottom-CENTER, vertical stack */
.hero__cue {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--steel-300);
  z-index: 3;
}
.hero__cue::after {
  content: "";
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--steel-500), transparent);
  animation: cue-pulse 2.2s var(--ease-inout) infinite;
}
@keyframes cue-pulse {
  0%, 100% { transform: scaleY(1); transform-origin: top; opacity: 0.7; }
  50% { transform: scaleY(1.4); opacity: 1; }
}
@media (max-width: 600px) {
  .hero__cue { display: none; }
}

/* =============================================
   MANIFESTO (light interlude)
   Round 3: vertical gaps cut ~50%, ghost numeral
   fills the right-side void, optional supporting
   media column at very wide widths.
   ============================================= */
.manifesto {
  background: var(--aluminium);
  color: var(--black);
  padding-block: var(--section-pad);
  position: relative;
  overflow: hidden; /* contain the ghost numeral */
}
.manifesto__head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.75rem;
}
@media (max-width: 900px) {
  .manifesto__head { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.25rem; }
}
.manifesto__statement {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  font-stretch: 110%;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--black);
  max-width: 22ch;
  margin-bottom: 2rem;
}
.manifesto__statement em {
  color: var(--brams-blue-deep);
  font-style: normal;
}
.manifesto__lede {
  font-size: var(--fs-lead);
  color: #2A2D31;
  line-height: 1.5;
  max-width: 56ch;
}

.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.18);
  padding-top: 2rem;
}
@media (max-width: 900px) {
  .counters { grid-template-columns: repeat(2, 1fr); padding-top: 1.5rem; gap: 1.25rem; }
}
@media (max-width: 480px) { .counters { grid-template-columns: 1fr; gap: 1rem; } }

.counter__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(2.75rem, 1.5rem + 4vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--black);
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}
.counter__value .unit {
  font-size: 0.45em;
  font-weight: 600;
  color: var(--brams-blue-deep);
}
.counter__label {
  margin-top: 0.875rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: #4A4E52;
  max-width: 22ch;
  line-height: 1.4;
}

/* =============================================
   PROCESS — pinned vertical-integration sequence
   THIS IS THE SHOWCASE. Generous polish.
   ============================================= */
.process {
  position: relative;
  background: var(--black);
  color: var(--off-white);
  overflow: hidden; /* contain any visual bleed during pin transitions */
}

.process__intro {
  padding: var(--section-y) var(--gutter) 0;
  max-width: var(--max-w);
  margin-inline: auto;
}
.process__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 16ch;
  margin-top: 1.25rem;
}

/* Pinned stage container — strict 100svh, content fits inside. */
.process__stage {
  position: relative;
  height: 100svh;
  max-height: 100svh;
  min-height: 560px;
  display: block;
  padding-inline: var(--gutter);
  padding-block: clamp(1.5rem, 3vh, 3.5rem);
  max-width: var(--max-w);
  margin-inline: auto;
  overflow: hidden;
}

.process__progress {
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.08);
  z-index: 5;
}
.process__progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--brams-blue);
  transition: width 0.2s linear;
}

/* Slides stack — JS toggles .is-active */
.process__slides {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.process__slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out);
}
.process__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .process__slide { grid-template-columns: 1fr; gap: 2rem; }
}

.process__text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 44ch;
}
.process__step {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--brams-blue);
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
}
.process__step .step-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 1rem + 6vw, 6rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--off-white);
}
.process__step .step-of {
  color: var(--steel-500);
  margin-left: auto;
}
.process__name {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.025em;
}
.process__copy {
  color: var(--steel-300);
  font-size: var(--fs-lead);
  line-height: 1.5;
}
.process__spec {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--steel-500);
  padding-top: 1rem;
  border-top: 1px solid var(--steel-700);
}
.process__spec strong { color: var(--off-white); font-weight: 500; }

.process__media {
  position: relative;
  height: clamp(320px, 56svh, 560px);
  max-height: 60svh;
  width: 100%;
  min-height: 0;
}
.process__media .placeholder,
.process__media .media { width: 100%; height: 100%; }

/* Side stage indicator */
.process__nav {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(2rem, 4vh, 3rem);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}
.process__nav button {
  width: 32px;
  height: 2px;
  background: rgba(255,255,255,0.12);
  transition: background-color 0.3s ease;
  padding: 0;
}
.process__nav button.is-active { background: var(--brams-blue); }
.process__nav button:hover { background: var(--brams-blue-bright); }

@media (max-width: 900px) {
  .process__stage {
    height: auto;
    min-height: auto;
    padding-block: 2rem;
  }
  .process__slides {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
  }
  .process__slide {
    position: relative;
    inset: auto;
    opacity: 1;
    pointer-events: auto;
  }
  .process__media { height: 320px; }
  .process__progress { display: none; }
  .process__nav { position: static; margin-top: 2rem; justify-content: center; }
}

/* =============================================
   PRODUCT GROUPS — asymmetric grid
   ============================================= */
.products {
  background: var(--black);
  position: relative;
  /* Pull the section up so the gap from the spec row above feels composed,
     not voided. The cross-section already pads its own bottom; we only need
     a hairline of breathing room here. */
  padding-top: clamp(2rem, 3vw, 3rem);
}
.products__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.25rem;
}
.products__head h2 {
  font-size: var(--fs-h2);
  max-width: 18ch;
}
.products__head p {
  color: var(--text-muted);
  max-width: 40ch;
}
@media (max-width: 720px) {
  .products__head { grid-template-columns: 1fr; }
}

.products__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  grid-auto-rows: minmax(0, auto);
  gap: clamp(1rem, 2vw, 2rem);
  /* Shared perspective so render-cards inside can rotateX/Y in 3D space.
     Larger value = subtler tilt geometry, which we want here. */
  perspective: 1400px;
}
.products__grid .card:nth-child(2) { grid-row: span 2; }
/* Aspect ratios chosen to MATCH the actual render dimensions so contain-fit
   has zero letterbox voids. proizvod.png = 1254×1254 (1:1).
   poroizvod-2.png = 1122×1402 (~4:5). Photo cards stay landscape 4/3. */
.products__grid .card.card--render:nth-child(1) .card__media { aspect-ratio: 1 / 1; }
.products__grid .card.card--render:nth-child(2) .card__media { aspect-ratio: 4 / 5; }
.products__grid .card:nth-child(3) .card__media { aspect-ratio: 4 / 3; }
.products__grid .card:nth-child(4) .card__media { aspect-ratio: 4 / 3; }

/* =============================================
   PRODUCT RENDER CARDS — isolated 3D PNGs
   Clean graphite backdrop + soft contact shadow.
   No heavy duotone (these are crisp 3D renders,
   not photos). 3D tilt is wired in JS via [data-tilt].
   ============================================= */
.card.card--render {
  /* Tilt JS writes inline transform every frame — don't transition transform
     or it'll fight the lerp. Keep border-color transition for hover. */
  transition: border-color 0.4s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}
.card.card--render .card__media {
  position: relative;
  overflow: hidden;
  /* Graphite-to-metal radial backdrop + soft elliptical contact shadow at
     the bottom — reads as intentional product photography, not a cutout. */
  background:
    radial-gradient(ellipse 55% 14% at 50% 92%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 70%),
    radial-gradient(circle at 50% 28%, #1e2226 0%, #0a0c0e 78%);
  transform-style: preserve-3d;
}
/* Absolute positioning is bulletproof. The card aspect matches the render
   aspect (1:1 and 4:5) so object-fit: contain fills the box almost edge-to-edge.
   A small padding leaves ~5% backdrop visible as the "frame" the user asked for. */
.card.card--render .card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: clamp(0.5rem, 1vw, 1rem);
  object-fit: contain;
  object-position: center;
  /* Very subtle cool tint — keep crisp, NOT the duotone treatment. */
  filter: saturate(0.96) contrast(1.04);
  transform: translateZ(0);
  transition: transform 0.55s var(--ease-out), filter 0.4s var(--ease-out);
  will-change: transform;
}
/* On hover, the render lifts off the page (translateZ + slight scale) and
   gains a touch of saturation. The card itself is rotated by the tilt JS. */
.card.card--render:hover .card__media img {
  transform: translateZ(36px) scale(1.04);
  filter: saturate(1.05) contrast(1.06);
}
/* A faint blue rim glow under the render reinforces the lift on hover. */
.card.card--render .card__media::after {
  content: "";
  position: absolute;
  left: 12%; right: 12%;
  bottom: 6%;
  height: 10%;
  background: radial-gradient(ellipse 100% 100% at 50% 100%, rgba(59,136,206,0.0), rgba(59,136,206,0) 70%);
  filter: blur(8px);
  pointer-events: none;
  transition: background 0.5s var(--ease-out);
}
.card.card--render:hover .card__media::after {
  background: radial-gradient(ellipse 100% 100% at 50% 100%, rgba(59,136,206,0.30), rgba(59,136,206,0) 70%);
}
/* Touch + reduced-motion: drop the perspective + tilt to avoid jank. */
@media (hover: none), (pointer: coarse) {
  .products__grid { perspective: none; }
  .card.card--render { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .products__grid { perspective: none; }
  .card.card--render,
  .card.card--render .card__media img { transition: none !important; transform: none !important; }
}

/* 5th tile — action card. Fills the empty row-3 col-2 cell. */
.card--action {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  background:
    radial-gradient(circle at 100% 100%, rgba(59, 136, 206, 0.10) 0%, transparent 55%),
    radial-gradient(circle at 0% 0%, rgba(74, 155, 232, 0.04) 0%, transparent 45%),
    var(--graphite);
}
.card--action .card__body {
  padding: 0;
  gap: 1.25rem;
}
.card--action .card__title { font-size: var(--fs-h3); line-height: 1.02; max-width: 18ch; }
.card--action .card__lede { font-size: var(--fs-body); }
.card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.card__actions a {
  position: relative;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--accent);
  padding-block: 0.875rem;
  border-top: 1px solid var(--steel-700);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.card__actions a:last-child { border-bottom: 1px solid var(--steel-700); }
.card__actions a:hover { color: var(--brams-blue-bright); padding-left: 6px; }
.card__actions a::after {
  content: "→";
  transition: transform 0.3s var(--ease-out);
}
.card__actions a:hover::after { transform: translateX(4px); }

@media (max-width: 900px) {
  .products__grid { grid-template-columns: 1fr; }
  .products__grid .card:nth-child(2) { grid-row: auto; }
  .products__grid .card:nth-child(2) .card__media { aspect-ratio: 4 / 5; }
}

/* =============================================
   BOJA DRVETA — signature feature
   ============================================= */
.boja {
  background: var(--graphite);
  position: relative;
  overflow: hidden;
}
.boja__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .boja__inner { grid-template-columns: 1fr; }
}

.boja__copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 48ch;
}
.boja__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.boja__title sup { font-size: 0.32em; vertical-align: super; color: var(--brams-blue); }
.boja__lede { color: var(--text-muted); font-size: var(--fs-lead); line-height: 1.5; }

.boja__spec {
  display: flex;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--steel-500);
  border-top: 1px solid var(--steel-700);
  padding-top: 1.25rem;
  flex-wrap: wrap;
}
.boja__spec strong { display: block; color: var(--off-white); font-size: 1.5rem; font-family: var(--font-display); margin-bottom: 0.25rem; letter-spacing: -0.01em; }

.boja__viewer {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--black);
  border: 1px solid var(--steel-700);
  overflow: hidden;
  isolation: isolate;
}
.boja__viewer .placeholder,
.boja__viewer .media { width: 100%; height: 100%; transition: background-color 0.6s var(--ease-out), filter 0.6s var(--ease-out); }
/* Swatch-driven tint overlay — JS sets --boja-tint on click. Scoped to .media
   viewers (homepage) so the legacy .placeholder pages aren't double-tinted. */
.boja__viewer:has(.media)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--boja-tint, transparent);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 4;
  transition: background-color 0.6s var(--ease-out);
}

.boja__swatches {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.5rem;
}
.boja__swatch {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--steel-700);
  position: relative;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}
.boja__swatch:hover { transform: translateY(-2px); border-color: var(--brams-blue); }
.boja__swatch.is-active { border-color: var(--brams-blue); box-shadow: inset 0 0 0 1px var(--brams-blue); }
.boja__swatch::after {
  content: attr(data-name);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-500);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.boja__swatch:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =============================================
   REFERENCES — velocity-aware marquee
   ============================================= */
.refs {
  background: var(--black);
  padding-block: var(--section-y);
  overflow: hidden;
  position: relative;
}
.refs__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  padding-inline: var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  flex-wrap: wrap;
}
.refs__head h2 { max-width: 16ch; }
.refs__head a { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--accent); }

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  width: max-content;
  will-change: transform;
}
.marquee__item {
  flex: 0 0 clamp(280px, 30vw, 460px);
  aspect-ratio: 4 / 3;
  position: relative;
}
.marquee__item .placeholder { width: 100%; height: 100%; }

/* =============================================
   SPECS BAND — light
   ============================================= */
.specs {
  background: var(--off-white);
  color: var(--black);
  padding-block: var(--section-y);
  position: relative;
}
.specs__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: end;
}
@media (max-width: 900px) { .specs__inner { grid-template-columns: 1fr; } }

.specs h2 { color: var(--black); max-width: 14ch; }
.specs__lede { color: #2A2D31; max-width: 50ch; font-size: var(--fs-lead); line-height: 1.5; }

.specs__list {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(0,0,0,0.18);
}
@media (max-width: 900px) { .specs__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .specs__list { grid-template-columns: 1fr; } }

.specs__item {
  padding: 2rem 1.5rem 2rem 0;
  border-right: 1px solid rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.specs__item:last-child { border-right: 0; }
.specs__item .value {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 0.5rem + 2.5vw, 2.5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--black);
}
.specs__item .label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: #4A4E52;
}

/* =============================================
   CTA — big magnetic
   ============================================= */
.cta {
  background: var(--black);
  padding-block: clamp(6rem, 10vw, 12rem);
  position: relative;
  overflow: hidden;
}
.cta__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
.cta__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1rem + 7vw, 7rem);
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.cta__headline em {
  color: var(--brams-blue);
  font-style: normal;
}
.cta__sub { color: var(--text-muted); max-width: 48ch; }

.cta__btn {
  padding: 1.5rem 3rem;
  font-size: var(--fs-small);
}

/* Subtle accent ring behind the CTA */
.cta::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 120vmin; height: 120vmin;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(30, 90, 148, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

/* ============================================================
   INNER PAGES — shared components across all non-home pages.
   ============================================================ */

/* =============================================
   PAGE HERO — top band on every inner page.
   Smaller than the homepage hero; sets context.
   ============================================= */
.page-hero {
  position: relative;
  min-height: clamp(420px, 60vh, 640px);
  display: flex;
  align-items: end;
  padding: calc(var(--nav-h) + 4rem) var(--gutter) clamp(3rem, 5vw, 5rem);
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--steel-700);
}
.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.page-hero__media .placeholder { width: 100%; height: 100%; }
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6,7,8,0.92) 0%, rgba(6,7,8,0.55) 50%, rgba(6,7,8,0.35) 100%),
    radial-gradient(ellipse at 80% 0%, rgba(30, 90, 148, 0.18), transparent 60%);
}
.page-hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: end;
}
@media (max-width: 900px) {
  .page-hero__inner { grid-template-columns: 1fr; }
}
.page-hero__index {
  position: absolute;
  top: calc(var(--nav-h) + 1.5rem);
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 1;
}
.page-hero__index::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--brams-blue);
}
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(2.5rem, 1rem + 7vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--off-white);
  max-width: 16ch;
}
.page-hero__lede {
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--steel-300);
  max-width: 44ch;
}

/* =============================================
   SPLIT-ROW — alternating two-column image + text.
   Used heavily on tehnologija, alu-profili, alu-stolarija.
   ============================================= */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
}
.split-row + .split-row { margin-top: clamp(4rem, 6vw, 7rem); }
.split-row--reverse .split-row__media { order: 2; }
.split-row__media {
  position: relative;
  aspect-ratio: 4 / 5;
}
.split-row__media .placeholder { width: 100%; height: 100%; }
.split-row__text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 48ch;
}
.split-row__index {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.split-row__index .num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 0.9;
  color: var(--off-white);
  letter-spacing: -0.03em;
}
.split-row__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  font-stretch: 110%;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.split-row__copy { color: var(--text-muted); line-height: 1.6; }
@media (max-width: 900px) {
  .split-row { grid-template-columns: 1fr; }
  .split-row--reverse .split-row__media { order: 0; }
}

/* =============================================
   SYSTEM CARDS — BRAMS 1000 / 2000 / 3000
   ============================================= */
.system-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
}
@media (max-width: 900px) { .system-list { grid-template-columns: 1fr; } }

.system {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--steel-700);
  background: var(--graphite);
  padding: 2rem;
  position: relative;
  transition: border-color 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.system:hover { border-color: var(--brams-blue); transform: translateY(-4px); }
.system__code {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--accent);
}
.system__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1rem + 2vw, 2.75rem);
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0.75rem 0 1rem;
}
.system__lede { color: var(--text-muted); font-size: var(--fs-small); line-height: 1.6; }
.system__stats {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--steel-700);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.system__stat-value {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--off-white);
  letter-spacing: 0.04em;
}
.system__stat-label {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* =============================================
   SPEC TABLE — mono technical specs
   ============================================= */
.spec-table {
  width: 100%;
  border-top: 1px solid var(--steel-700);
  border-collapse: collapse;
}
.spec-table tr { border-bottom: 1px solid var(--steel-700); }
.spec-table th,
.spec-table td {
  padding: 1.125rem 1rem;
  text-align: left;
  vertical-align: top;
  font-size: var(--fs-small);
}
.spec-table th {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  width: 36%;
}
.spec-table td {
  color: var(--text);
  font-family: var(--font-mono);
}
.spec-table td strong { color: var(--accent); font-weight: 500; }

/* =============================================
   FEATURE LIST — bulleted capabilities
   ============================================= */
.feature-list { display: grid; gap: 0.875rem; }
.feature-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.875rem;
  padding-block: 0.625rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  line-height: 1.4;
}
.feature-list li::before {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--accent);
  margin-top: 0.7em;
  align-self: start;
}

/* =============================================
   FACT STRIP — narrow band of technical specs
   ============================================= */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--steel-700);
}
@media (max-width: 900px) { .fact-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .fact-strip { grid-template-columns: 1fr; } }
.fact {
  padding: 1.75rem 1.25rem;
  border-right: 1px solid var(--steel-700);
}
.fact:last-child { border-right: 0; }
.fact__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(1.75rem, 0.5rem + 2vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--off-white);
}
.fact__value .unit { font-size: 0.45em; color: var(--accent); margin-left: 0.25rem; }
.fact__label {
  margin-top: 0.625rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Light variant */
[data-theme="light"] .fact-strip,
.fact-strip--light {
  border-block-color: rgba(0,0,0,0.18);
}
[data-theme="light"] .fact,
.fact-strip--light .fact {
  border-right-color: rgba(0,0,0,0.10);
}
[data-theme="light"] .fact__value,
.fact-strip--light .fact__value { color: var(--black); }
[data-theme="light"] .fact__label,
.fact-strip--light .fact__label { color: #4A4E52; }

/* =============================================
   TIMELINE — kompanija page history
   ============================================= */
.timeline {
  position: relative;
  display: grid;
  gap: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 1px;
  background: var(--steel-700);
}
.tl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 2.5rem 0 2.5rem 2rem;
  border-bottom: 1px solid var(--steel-700);
  position: relative;
}
.tl::before {
  content: "";
  position: absolute;
  left: -4px; top: 3rem;
  width: 9px; height: 9px;
  background: var(--brams-blue);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--black);
}
.tl__year {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(2.5rem, 1rem + 3vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--off-white);
}
.tl__heading {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  font-stretch: 110%;
  text-transform: uppercase;
  margin-bottom: 0.625rem;
  letter-spacing: -0.015em;
}
.tl__copy { color: var(--text-muted); line-height: 1.55; max-width: 56ch; }
@media (max-width: 720px) {
  .tl { grid-template-columns: 1fr; padding-left: 1.75rem; }
}

/* =============================================
   PRODUCT TEMPLATE — sub-product grid (alu-stolarija etc)
   ============================================= */
.subproducts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
}
@media (max-width: 900px) { .subproducts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .subproducts { grid-template-columns: 1fr; } }

.subproduct {
  background: var(--graphite);
  border: 1px solid var(--steel-700);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s ease, transform 0.5s var(--ease-out);
}
.subproduct:hover { border-color: var(--brams-blue); transform: translateY(-3px); }
.subproduct__media {
  aspect-ratio: 4 / 3;
  position: relative;
}
.subproduct__media .placeholder { width: 100%; height: 100%; }
.subproduct__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.subproduct__index {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--accent);
}
.subproduct__title {
  font-family: var(--font-display);
  font-size: var(--fs-h5);
  font-weight: 700;
  font-stretch: 110%;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.subproduct__copy {
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}

/* =============================================
   COLOR GRID — boja-drveta page, full 8x2 set
   ============================================= */
.color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
@media (max-width: 720px) { .color-grid { grid-template-columns: repeat(2, 1fr); } }

.color-tile {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--steel-700);
  background: var(--graphite);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.5s var(--ease-out);
}
.color-tile:hover { border-color: var(--brams-blue); transform: translateY(-2px); }
.color-tile__swatch {
  aspect-ratio: 4 / 3;
  width: 100%;
}
.color-tile__meta {
  padding: 1rem 1.125rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.color-tile__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 110%;
  font-size: var(--fs-h6);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.color-tile__code {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =============================================
   REFERENCE GALLERY — filterable
   ============================================= */
.ref-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 2.5rem;
  border-block: 1px solid var(--steel-700);
  padding-block: 1.25rem;
}
.ref-filter button {
  padding: 0.625rem 1.125rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--steel-700);
  background: transparent;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.ref-filter button:hover { color: var(--off-white); border-color: var(--brams-blue); }
.ref-filter button.is-active {
  color: var(--off-white);
  background: var(--brams-blue);
  border-color: var(--brams-blue);
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
}
@media (max-width: 900px) { .ref-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ref-grid { grid-template-columns: 1fr; } }

.ref-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--graphite);
  transition: opacity 0.4s ease;
  display: block;
}
.ref-tile.is-hidden { display: none; }
.ref-tile .placeholder { width: 100%; height: 100%; transition: transform 0.8s var(--ease-out); }
.ref-tile:hover .placeholder { transform: scale(1.04); }
.ref-tile__caption {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.ref-tile__type {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--brams-blue-bright);
}
.ref-tile__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 110%;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--off-white);
  font-size: var(--fs-h6);
}

/* =============================================
   CONTACT — form + locations
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form {
  display: grid;
  gap: 1.25rem;
}
.contact-form .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 520px) { .contact-form .grid-2 { grid-template-columns: 1fr; } }
.contact-form button[type="submit"] {
  justify-self: start;
  margin-top: 0.5rem;
}

.location {
  border: 1px solid var(--steel-700);
  padding: 1.75rem;
  background: var(--graphite);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.location + .location { margin-top: 1.25rem; }
.location__index {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--accent);
}
.location__name {
  font-family: var(--font-display);
  font-size: var(--fs-h5);
  font-weight: 700;
  font-stretch: 110%;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}
.location__role { color: var(--text-muted); font-size: var(--fs-small); }
.location__address {
  font-style: normal;
  color: var(--text);
  line-height: 1.55;
  font-size: var(--fs-small);
}
.location__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem 1.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--text-muted);
}
.location__meta a { color: var(--off-white); transition: color 0.25s ease; }
.location__meta a:hover { color: var(--accent); }

.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 2rem;
  border: 1px solid var(--steel-700);
  overflow: hidden;
}
.map-frame .placeholder { width: 100%; height: 100%; }

/* =============================================
   CTA MINI — smaller CTA strip for inner pages
   ============================================= */
.cta-mini {
  background: var(--graphite);
  border-top: 1px solid var(--steel-700);
  border-bottom: 1px solid var(--steel-700);
  padding-block: clamp(3rem, 5vw, 5rem);
}
.cta-mini__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 720px) {
  .cta-mini__inner { grid-template-columns: 1fr; }
}
.cta-mini h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1rem + 2.5vw, 3rem);
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 22ch;
}
.cta-mini h3 em { color: var(--brams-blue); font-style: normal; }
.cta-mini p { color: var(--text-muted); margin-top: 0.75rem; max-width: 48ch; }

/* ============================================================
   PREMIUM ENGINEERING — additions for homepage update.
   ============================================================ */

/* --- Engineering "sheet mark" — section index 01/08 ---- */
.sheet-mark {
  position: absolute;
  top: 1.5rem;
  right: var(--gutter);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--steel-500);
  display: inline-flex;
  align-items: baseline;
  gap: 0.625rem;
  z-index: 4;
  pointer-events: none;
}
.sheet-mark .sheet-mark__num {
  font-family: var(--font-display);
  font-stretch: 110%;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--off-white);
  letter-spacing: 0.04em;
}
.sheet-mark .sheet-mark__div { color: var(--steel-700); }
[data-theme="light"] .sheet-mark .sheet-mark__num { color: var(--black); }
[data-theme="light"] .sheet-mark { color: #4A4E52; }
[data-theme="light"] .sheet-mark .sheet-mark__div { color: rgba(0,0,0,0.20); }

/* --- Hairline that draws in on scroll --- */
.hairline {
  height: 1px;
  background: var(--steel-700);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease-out);
  width: 100%;
}
.hairline.is-revealed { transform: scaleX(1); }
[data-theme="light"] .hairline { background: rgba(0,0,0,0.18); }

/* --- Engineering grid background — for select sections --- */
.eng-grid {
  position: relative;
  isolation: isolate;
}
.eng-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 75%);
  z-index: 0;
}
.eng-grid > * { position: relative; z-index: 1; }
[data-theme="light"] .eng-grid::before {
  background-image:
    linear-gradient(rgba(0,0,0,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.07) 1px, transparent 1px);
}

/* =============================================
   HERO CROSS-FADE — multi-layer image stack
   ============================================= */
.hero__crossfade {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease-cinematic);
}
.hero__layer.is-active { opacity: 1; }
.hero__layer .media,
.hero__layer img { width: 100%; height: 100%; }

/* Hero badge mono — kept on top of the duotone */
.hero__corner { mix-blend-mode: normal; }

/* Update hero__media::after — we now want a softer dark gradient since the
   media has its own duotone. Keep the bottom legibility veil. */
.hero__media::after {
  background:
    linear-gradient(to top, rgba(6,7,8,0.92) 0%, rgba(6,7,8,0.55) 32%, rgba(6,7,8,0.20) 60%, rgba(6,7,8,0.55) 100%),
    radial-gradient(ellipse at 50% 100%, rgba(30, 90, 148, 0.22), transparent 60%);
}

/* =============================================
   THERMAL-BREAK PROFILE CROSS-SECTION
   SVG line drawing + annotations with ticks
   ============================================= */
.crosssection {
  position: relative;
  background: var(--black);
  /* Trim the trailing void into Products. The spec row inside already
     has its own ~2rem margin-top — no extra pillow needed here. */
  padding-bottom: clamp(2rem, 3vw, 3rem);
}
.crosssection__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .crosssection__inner { grid-template-columns: 1fr; }
}

.crosssection__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 16ch;
}
.crosssection__copy {
  color: var(--text-muted);
  font-size: var(--fs-lead);
  line-height: 1.5;
  max-width: 50ch;
}

.cs {
  position: relative;
  aspect-ratio: 5 / 4;
  width: 100%;
}
.cs svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
/* SVG line work classes (referenced from inline SVG) */
.cs__profile-line {
  fill: none;
  stroke: var(--off-white);
  stroke-width: 1.2;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 2.4s var(--ease-out);
}
.cs.is-revealed .cs__profile-line { stroke-dashoffset: 0; }
.cs__poly {
  fill: var(--brams-blue-deep);
  fill-opacity: 0;
  stroke: var(--brams-blue);
  stroke-width: 1.2;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.6s var(--ease-out) 0.6s,
              fill-opacity 1.2s ease 1.4s;
}
.cs.is-revealed .cs__poly { stroke-dashoffset: 0; fill-opacity: 0.18; }

.cs__dim {
  stroke: var(--steel-500);
  stroke-width: 1;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 1.4s var(--ease-out) 1.4s;
}
.cs.is-revealed .cs__dim { stroke-dashoffset: 0; }

.cs__txt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: var(--off-white);
  opacity: 0;
  transition: opacity 0.6s ease 1.7s;
}
.cs.is-revealed .cs__txt { opacity: 1; }
.cs__txt--accent { fill: var(--brams-blue-bright); }
.cs__txt--muted  { fill: var(--steel-300); }

/* Annotation callout list under the SVG */
.cs__legend {
  display: grid;
  gap: 0.625rem;
  margin-top: 1.25rem;
}
.cs__legend li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0.875rem;
  align-items: baseline;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--steel-700);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--text-muted);
}
.cs__legend li strong { color: var(--off-white); font-weight: 500; }
.cs__legend .key {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 110%;
  color: var(--brams-blue);
  font-size: 0.875rem;
  letter-spacing: 0;
}

/* =============================================
   ROUND 3 — Premium accents
   Ghost section numerals, spotlight cursor, odometer
   ============================================= */

/* Ghost numerals — giant faint outline numeral, parallaxed via JS.
   JS appends a <span class="ghost-num"> to each [data-ghost] section. */
[data-ghost] { position: relative; }
.ghost-num {
  position: absolute;
  top: 50%;
  right: -2vw;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(20rem, 48vw, 44rem);
  line-height: 0.78;
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  /* Default — dark sections (.process, .crosssection, .products, .boja, .refs, .cta) */
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.045);
  text-stroke: 1px rgba(255, 255, 255, 0.045);
  will-change: transform;
}
/* Light sections — manifesto + specs — stroke the numeral in black at low opacity */
.manifesto .ghost-num,
.specs .ghost-num,
[data-theme="light"] .ghost-num {
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.07);
  text-stroke: 1px rgba(0, 0, 0, 0.07);
}
.process .ghost-num,
.boja .ghost-num { right: auto; left: -2vw; }
/* Keep section content on top of the ghost — ghost-num itself is excluded so
   it stays at the bottom of the section's stacking context. */
[data-ghost] > *:not(.ghost-num) { position: relative; z-index: 1; }
/* Hide ghost on small viewports — would dominate the layout */
@media (max-width: 900px) {
  .ghost-num { font-size: clamp(14rem, 60vw, 22rem); opacity: 0.6; right: -8vw; }
  .process .ghost-num,
  .boja .ghost-num { left: -8vw; }
}
@media (max-width: 560px) {
  .ghost-num { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ghost-num { transform: translateY(-50%) !important; }
}

/* Spotlight cursor — light sections only. JS writes --mx/--my; CSS renders.
   Pseudo sits beneath children (z-index:0) and above the eng-grid pattern.
   .has-spotlight is added on mouseenter, removed on mouseleave. */
.manifesto::after,
.specs::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 360px at var(--mx, 50%) var(--my, 50%),
    rgba(30, 90, 148, 0.10),
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}
.manifesto.has-spotlight::after,
.specs.has-spotlight::after { opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .manifesto::after, .specs::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .manifesto::after, .specs::after { display: none; }
}

/* Odometer counters — per-digit cells slide up from below.
   JS replaces the counter element's children with .odo__cell wrappers
   each containing one .odo__char inner. Baseline kept by inline-flex. */
.odo {
  display: inline-flex;
  align-items: baseline;
  vertical-align: baseline;
}
.odo__cell {
  display: inline-block;
  overflow: hidden;
  line-height: 0.95;
}
.odo__char {
  display: inline-block;
  will-change: transform;
}
.odo__suffix {
  display: inline-block;
  margin-left: 0.05em;
}
/* Reduced-motion path: JS adds .odo--instant — strip overflow so the value
   renders exactly like plain text. */
.odo.odo--instant { display: inline; }
.odo.odo--instant .odo__cell { overflow: visible; }
