/* ============================================================
   FORMULA 1 · ISTORIA — styles.css
   Stil: Modern Dark (cinematic), semnătură = slider comparație.
   Paletă: carbon + roșu F1 + cyan telemetric + amber vintage.
   ============================================================ */

:root {
  --asphalt: #0B0C10;
  --asphalt-deep: #060709;
  --carbon: #14161C;
  --carbon-2: #1B1E26;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --smoke: #9AA0AD;
  --smoke-dim: #6B7078;
  --bone: #ECEDEF;

  --red: #E10600;          /* accent display + UI (prag 3:1) */
  --red-deep: #B00500;
  --cyan: #00E5D3;         /* accent-text sigur pe închis (~12:1) */
  --amber: #F0A020;        /* eră vintage */

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--asphalt);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fundal stratificat (Modern Dark) */
.bg-layers { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-layers::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% -10%, #16181f 0%, #0b0c10 55%, #060709 100%);
}
.bg-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 78%);
          mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 78%);
}
.bg-blob { position: absolute; border-radius: 50%; filter: blur(140px); opacity: .16; }
.bg-blob.b1 { width: 780px; height: 780px; top: -260px; left: 46%; background: var(--red); }
.bg-blob.b2 { width: 620px; height: 620px; top: 40%; left: -220px; background: #123f52; opacity: .5; }
.bg-blob.b3 { width: 520px; height: 520px; bottom: -180px; right: -140px; background: var(--cyan); opacity: .08; }
.bg-noise { position: absolute; inset: 0; opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Utilitare */
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.eyebrow {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase; color: var(--cyan);
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--cyan); opacity: .7; }
.eyebrow.amber { color: var(--amber); } .eyebrow.amber::before { background: var(--amber); }
.eyebrow.red { color: #ff6a5f; } .eyebrow.red::before { background: var(--red); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
.mono { font-family: var(--font-mono); }
.accent-red { color: var(--red); }
.accent-cyan { color: var(--cyan); }
.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section-tag { display: block; margin-bottom: 1.1rem; }
.lead { color: var(--smoke); font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 60ch; }
.divider { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); margin: 0; }

/* Butoane */
.btn { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-mono);
  font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; padding: .95rem 1.6rem; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease); }
.btn .arw { transition: transform .25s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn-primary { background: var(--red); color: #fff;
  box-shadow: 0 0 0 1px rgba(225,6,0,.5), 0 10px 30px -10px rgba(225,6,0,.6), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background: #ff1a10; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--bone); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255,255,255,.09); transform: translateY(-2px); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* ---------- NAV ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s var(--ease), border-color .3s var(--ease); border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(9,10,13,.82); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--bone); font-family: var(--font-display); font-weight: 900; letter-spacing: -.02em; font-size: 1.15rem; }
.brand-mark { width: 34px; height: 22px; position: relative; flex: 0 0 auto; }
.brand-mark span { position: absolute; height: 3px; border-radius: 2px; background: var(--red); right: 0; }
.brand-mark span:nth-child(1) { top: 3px; width: 100%; }
.brand-mark span:nth-child(2) { top: 9.5px; width: 74%; opacity: .8; }
.brand-mark span:nth-child(3) { top: 16px; width: 48%; opacity: .55; }
.brand em { font-style: normal; color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--smoke); text-decoration: none; font-family: var(--font-mono); font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; position: relative; padding: .3rem 0; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--bone); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--red); }
.nav-cta { margin-left: .5rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 8px; width: 44px; height: 40px; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--bone); margin: 4px auto; transition: transform .3s var(--ease), opacity .2s; }

/* ticker sub-bandă telemetrie */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(0,0,0,.25); overflow: hidden; height: 30px; display: flex; align-items: center; }
.ticker-track { display: inline-flex; gap: 3rem; white-space: nowrap; padding-left: 100%; animation: ticker 34s linear infinite; will-change: transform; }
.ticker-track span { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--smoke-dim); }
.ticker-track b { color: var(--cyan); font-weight: 700; }
.ticker-track i { color: var(--red); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,7,9,.55) 0%, rgba(6,7,9,.2) 32%, rgba(6,7,9,.72) 74%, var(--asphalt) 100%),
    radial-gradient(ellipse at 30% 60%, transparent 40%, rgba(6,7,9,.55) 100%); }
.hero-inner { position: relative; z-index: 2; width: min(100% - 2*var(--gutter), var(--maxw)); margin-inline: auto; padding-bottom: clamp(3rem, 7vw, 6rem); padding-top: 8rem; }
.hero-title { font-size: clamp(2.9rem, 9vw, 8rem); font-weight: 900; letter-spacing: -0.03em; text-transform: uppercase; }
.hero-title .row2 { color: transparent; -webkit-text-stroke: 1.5px var(--bone); }
.hero-sub { margin-top: 1.4rem; color: var(--smoke); font-size: clamp(1.05rem, 1.8vw, 1.35rem); max-width: 52ch; }
.hero-actions { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-center { text-align: center; }
.hero-center .hero-sub { margin-inline: auto; }
.hero-center .hero-actions { justify-content: center; }

/* bandă HUD telemetrie (jos hero) */
.hud { position: relative; z-index: 2; border-top: 1px solid var(--line); background: rgba(6,7,9,.6); backdrop-filter: blur(8px); }
.hud-inner { width: min(100% - 2*var(--gutter), var(--maxw)); margin-inline: auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.hud-cell { padding: 1.1rem 0; display: flex; flex-direction: column; gap: .25rem; border-left: 1px solid var(--line); padding-left: 1.2rem; }
.hud-cell:first-child { border-left: 0; padding-left: 0; }
.hud-k { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--smoke-dim); }
.hud-v { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 2rem); }
.hud-v small { font-size: .5em; color: var(--smoke); font-weight: 500; }

/* ---------- MANIFEST ---------- */
.manifest h2 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); max-width: 18ch; }
.manifest-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.manifest-note { border-left: 2px solid var(--red); padding-left: 1.3rem; color: var(--smoke); }
.manifest-note .mono { display: block; color: var(--cyan); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .5rem; }

/* ---------- STAT COMPARE (atunci vs acum, cifre) ---------- */
.compare-nums { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1rem,3vw,2.5rem); align-items: stretch; }
.cn-col { display: flex; flex-direction: column; gap: 1.4rem; }
.cn-head { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.cn-col.old .cn-head { color: var(--amber); }
.cn-col.now .cn-head { color: var(--cyan); text-align: right; }
.cn-row { display: flex; flex-direction: column; }
.cn-col.now .cn-row { text-align: right; }
.cn-val { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.7rem); }
.cn-lab { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--smoke-dim); }
.cn-axis { width: 1px; background: linear-gradient(var(--amber), var(--red), var(--cyan)); position: relative; }
.cn-axis span { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; color: var(--smoke); background: var(--asphalt); padding: .4rem 0; writing-mode: vertical-rl; }

/* ---------- CARDURI ERE (home teaser) ---------- */
.eras-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.era-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--carbon); text-decoration: none; color: var(--bone); display: flex; flex-direction: column; min-height: 340px; transition: transform .3s var(--ease), border-color .3s var(--ease); }
.era-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.era-card .ec-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.era-card .ec-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.era-card:hover .ec-media img { transform: scale(1.06); }
.era-card .ec-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20,22,28,.9)); }
.ec-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.ec-years { font-family: var(--font-mono); font-weight: 700; font-size: .74rem; letter-spacing: .12em; color: var(--cyan); }
.ec-title { font-size: 1.5rem; font-weight: 800; }
.ec-desc { color: var(--smoke); font-size: .92rem; }
.ec-more { margin-top: auto; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red); display: inline-flex; gap: .5rem; align-items: center; }
.era-card:hover .ec-more .arw { transform: translateX(4px); }

/* ---------- BANDĂ VIDEO ---------- */
.videoband { position: relative; min-height: 62vh; display: grid; place-items: center; overflow: hidden; text-align: center; border-block: 1px solid var(--line); }
.videoband video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: saturate(.85) contrast(1.05); }
.videoband::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(6,7,9,.86), rgba(6,7,9,.55) 50%, rgba(6,7,9,.86)), radial-gradient(ellipse at center, transparent 30%, rgba(6,7,9,.7)); }
.videoband .vb-inner { position: relative; z-index: 2; }
.videoband h2 { font-size: clamp(2rem, 6vw, 4.6rem); text-transform: uppercase; letter-spacing: -.02em; }
.videoband .vb-inner p { color: var(--smoke); max-width: 48ch; margin: 1rem auto 0; }
.vb-badge { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.vb-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(225,6,0,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(225,6,0,.6);} 70%{box-shadow:0 0 0 10px rgba(225,6,0,0);} 100%{box-shadow:0 0 0 0 rgba(225,6,0,0);} }

/* ---------- TEASER SLIDER (home) ---------- */
.teaser-slider { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.teaser-copy h2 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); }

/* ============================================================
   SEMNĂTURA — SLIDER DE COMPARAȚIE (drag) „Atunci ⟷ Acum"
   ============================================================ */
.cslider { position: relative; width: 100%; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); user-select: none; touch-action: pan-y; background: var(--carbon); }
.cslider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; }
.cslider .cs-after { z-index: 1; }
.cslider .cs-before { z-index: 2; clip-path: inset(0 50% 0 0); will-change: clip-path; }
.cs-label { position: absolute; z-index: 3; top: 1rem; font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .4rem .7rem; border-radius: 6px; background: rgba(6,7,9,.7); backdrop-filter: blur(4px); }
.cs-label.old { left: 1rem; color: var(--amber); border: 1px solid rgba(240,160,32,.4); }
.cs-label.new { right: 1rem; color: var(--cyan); border: 1px solid rgba(0,229,211,.4); }
.cs-handle { position: absolute; z-index: 4; top: 0; left: 50%; transform: translateX(-50%); width: 46px; height: 100%; display: grid; place-items: center; cursor: ew-resize; background: none; border: 0; }
.cs-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 2px; background: var(--red); box-shadow: 0 0 18px rgba(225,6,0,.7); }
.cs-knob { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.25); }
.cs-knob svg { width: 22px; height: 22px; fill: #fff; }
.cs-hint { margin-top: 1rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--smoke-dim); text-align: center; }

/* ---------- TIMELINE (istorie) ---------- */
.timeline { position: relative; margin-top: 3rem; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 2px; background: linear-gradient(180deg, var(--amber) 0%, var(--red) 48%, var(--cyan) 100%); opacity: .5; }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: clamp(3rem, 7vw, 6rem); }
/* Nodul stă pe axa centrală, aliniat vertical cu NUMĂRUL ANULUI (ancora cronologiei).
   Pentru asta e copil al .tl-year, iar halo-ul (box-shadow asphalt) taie curat linia. */
.tl-year { position: relative; }
.tl-node { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--asphalt); border: 2px solid var(--era, var(--red)); z-index: 3; box-shadow: 0 0 0 6px var(--asphalt), 0 0 20px var(--era, var(--red)); }
/* copy în coloana 2 (padding-stânga P): axa = marginea stângă a anului, deci la -P */
.tl-item:nth-child(odd) .tl-node { left: calc(-1 * clamp(2rem,4vw,3.5rem)); right: auto; transform: translate(-50%, -50%); }
/* copy în coloana 1 (padding-dreapta P): axa = marginea dreaptă a anului, deci la -P */
.tl-item:nth-child(even) .tl-node { right: calc(-1 * clamp(2rem,4vw,3.5rem)); left: auto; transform: translate(50%, -50%); }
.tl-media { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 16/10; }
.tl-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tl-item:hover .tl-media img { transform: scale(1.05); }
.tl-copy { padding: .3rem 0; display: flex; flex-direction: column; gap: .7rem; }
.tl-year { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; color: var(--era, var(--red)); }
.tl-title { font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
.tl-text { color: var(--smoke); font-size: .96rem; }
.tl-facts { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.tl-facts li { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; color: var(--bone); display: flex; gap: .6rem; align-items: baseline; }
.tl-facts li::before { content: "▸"; color: var(--era, var(--red)); flex: 0 0 auto; }
/* alternanță stânga/dreapta */
.tl-item:nth-child(odd) .tl-media { grid-column: 1; margin-right: clamp(2rem,4vw,3.5rem); }
.tl-item:nth-child(odd) .tl-copy { grid-column: 2; padding-left: clamp(2rem,4vw,3.5rem); }
.tl-item:nth-child(even) .tl-media { grid-column: 2; order: 2; margin-left: clamp(2rem,4vw,3.5rem); }
.tl-item:nth-child(even) .tl-copy { grid-column: 1; order: 1; padding-right: clamp(2rem,4vw,3.5rem); text-align: right; }
.tl-item:nth-child(even) .tl-facts li { flex-direction: row-reverse; text-align: right; }
.tl-item:nth-child(even) .eyebrow { flex-direction: row-reverse; }

/* milestone fără imagine (ex. 1994–2013).
   Conținutul e centrat, deci ar traversa axa → primește un panou care o întrerupe curat,
   iar nodul urcă deasupra panoului, în spațiul liber (nu peste text). */
.tl-item.tl-milestone { grid-template-columns: 1fr; padding-top: clamp(2.4rem, 4.5vw, 3.4rem); }
.tl-milestone .tl-copy { grid-column: 1 !important; text-align: center !important; align-items: center; max-width: 62ch; margin-inline: auto;
  padding: clamp(1.6rem,3vw,2.4rem) clamp(1.4rem,3vw,2.2rem) !important;
  background: var(--carbon); border: 1px solid var(--line); border-radius: var(--radius);
  position: relative; z-index: 2; }
.tl-item.tl-milestone .tl-node { left: 50%; right: auto; top: clamp(1rem, 2.2vw, 1.6rem); transform: translate(-50%, -50%); }
.tl-milestone .tl-facts { align-items: center; }
.tl-milestone .tl-facts li { justify-content: center; }
.tl-milestone .eyebrow { justify-content: center; }
@media (min-width: 901px) {
  .tl-milestone { padding-inline: clamp(2rem, 8vw, 7rem); }
}

/* ---------- TABEL SPECIFICAȚII (mașini) ---------- */
.spectable { width: 100%; border-collapse: collapse; font-family: var(--font-mono); margin-top: 2rem; }
.spectable caption { text-align: left; }
.spectable th, .spectable td { padding: 1.05rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); }
.spectable thead th { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--smoke-dim); font-weight: 700; }
.spectable thead th.old { color: var(--amber); }
.spectable thead th.now { color: var(--cyan); }
.spectable tbody th { font-weight: 500; color: var(--smoke); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.spectable tbody td { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--bone); }
.spectable tbody td.old { color: #f4b552; }
.spectable tbody tr:hover { background: rgba(255,255,255,.02); }

/* ---------- GALERIE MOZAIC ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; grid-auto-rows: 1fr; }
.gitem { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); grid-column: span 2; }
.gitem::before { content: ""; display: block; padding-top: 66%; }
.gitem.wide { grid-column: span 3; } .gitem.wide::before { padding-top: 56%; }
.gitem.tall { grid-column: span 3; } .gitem.tall::before { padding-top: 62%; }
.gitem img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gitem:hover img { transform: scale(1.07); }
.gitem figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem; z-index: 2;
  background: linear-gradient(transparent, rgba(6,7,9,.92)); font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; }
.gitem figcaption b { display: block; color: var(--bone); font-size: .82rem; }
.gitem figcaption span { color: var(--cyan); }

/* ---------- PAGE HERO intern ---------- */
.page-hero { position: relative; padding-top: 132px; padding-bottom: clamp(2.5rem,5vw,4rem); overflow: hidden; }
.page-hero-media { position: absolute; inset: 0; z-index: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,7,9,.7), rgba(6,7,9,.82) 60%, var(--asphalt)); }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); text-transform: uppercase; letter-spacing: -.03em; }
.page-hero .lead { margin-top: 1.2rem; }

/* ---------- CTA ---------- */
.cta { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; min-height: 42vh; }
.cta h2 { font-size: clamp(2.2rem, 6.5vw, 5rem); text-transform: uppercase; letter-spacing: -.03em; }
.cta h2 em { font-style: normal; color: var(--red); }

/* ---------- FOOTER — grilă de start ---------- */
.footer { border-top: 1px solid var(--line); background: var(--asphalt-deep); padding-block: clamp(3rem,6vw,5rem) 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer .brand { margin-bottom: 1rem; }
.footer-about { color: var(--smoke); font-size: .92rem; max-width: 34ch; }
.foot-col h4 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--smoke-dim); margin: 0 0 1rem; font-weight: 700; }
.foot-col a { display: block; color: var(--smoke); text-decoration: none; padding: .3rem 0; font-size: .9rem; transition: color .2s; }
.foot-col a:hover { color: var(--cyan); }
.grid-start { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0; }
.grid-slot { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; color: var(--smoke-dim); border: 1px solid var(--line); border-radius: 6px; padding: .5rem .7rem; display: flex; gap: .5rem; align-items: center; }
.grid-slot b { color: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--smoke-dim); text-transform: uppercase; }
.footer-bottom a { color: var(--smoke); text-decoration: none; }
.footer-bottom a:hover { color: var(--cyan); }

/* ---------- Reveal la scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(9,10,13,.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.6rem; transform: translateY(-140%); transition: transform .4s var(--ease), visibility 0s .4s; visibility: hidden; }
  .nav-links.open { transform: none; visibility: visible; transition: transform .4s var(--ease), visibility 0s; }
  .nav-links a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-cta { margin: 1rem 0 0; }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .manifest-grid { grid-template-columns: 1fr; gap: 2rem; }
  .eras-grid { grid-template-columns: 1fr; }
  .teaser-slider { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gitem, .gitem.wide, .gitem.tall { grid-column: span 1; }
  .footer-top { grid-template-columns: 1fr; gap: 1.6rem; }

  /* timeline devine o singură coloană cu spină la stânga */
  .timeline::before { left: 8px; }
  .tl-item { grid-template-columns: 1fr; gap: 1.2rem; padding-left: 2.2rem; }
  /* nodul rămâne aliniat cu anul, dar pe axa din stânga:
     anul începe la 2.2rem de marginea itemului, axa la 8px → offset 8px - 2.2rem */
  .tl-item:nth-child(odd) .tl-node,
  .tl-item:nth-child(even) .tl-node { left: calc(8px - 2.2rem); right: auto; transform: translate(-50%, -50%); }
  /* milestone: nodul e copil al itemului, deci se raportează la marginea lui */
  .tl-item.tl-milestone { padding-top: 2.6rem; }
  .tl-item.tl-milestone .tl-node { left: 8px; right: auto; top: 1.1rem; transform: translate(-50%, -50%); }
  .tl-item:nth-child(odd) .tl-media, .tl-item:nth-child(even) .tl-media { grid-column: 1; order: 1; margin: 0; }
  .tl-item:nth-child(odd) .tl-copy, .tl-item:nth-child(even) .tl-copy { grid-column: 1; order: 2; padding: 0; text-align: left; }
  .tl-item:nth-child(even) .tl-facts li { flex-direction: row; text-align: left; }
  .tl-item:nth-child(even) .eyebrow { flex-direction: row; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hud-inner { grid-template-columns: repeat(2, 1fr); }
  .hud-cell:nth-child(3) { border-left: 0; padding-left: 0; }
  .hud-cell { border-top: 1px solid var(--line); padding-block: .9rem; }
  .hud-cell:nth-child(-n+2) { border-top: 0; }
  .compare-nums { grid-template-columns: 1fr; }
  .cn-axis { display: none; }
  .cn-col.now .cn-head, .cn-col.now .cn-row { text-align: left; }
  .spectable th, .spectable td { padding: .8rem .6rem; }
  .spectable tbody td { font-size: 1rem; }
  .spectable tbody th { font-size: .72rem; }
}
