/* ROPAT 2026 - Precision system (German modernist)
   Latest CSS: scroll-driven animations, :has(), color-mix, container queries,
   view transitions, oklch color space.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@500;600;700;800;900&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

@view-transition { navigation: auto; }

:root {
  --ink: #000000;
  --ink-2: #0a0a0a;
  --paper: #ffffff;
  --stone: #f4f4f4;
  --stone-2: #e8e8e8;
  --line: #000000;
  --line-soft: #d4d4d4;
  --line-dark: #1a1a1a;
  --accent: #e10600;
  --accent-hover: #b80400;
  --accent-soft: color-mix(in oklch, var(--accent) 12%, transparent);
  --text: #000000;
  --muted: #525252;
  --muted-2: #a3a3a3;
  --maxw: 1320px;
  --pad-x: clamp(24px, 4vw, 56px);
  --grid-gap: clamp(16px, 2vw, 32px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  letter-spacing: -0.03em;
}
h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }
h5 { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); }

p { color: var(--muted); margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
strong { font-weight: 600; color: var(--ink); }

::selection { background: var(--ink); color: var(--paper); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section { padding: clamp(64px, 9vw, 128px) 0; }

/* ============ NAVBAR ============ */

.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: background .15s, border-color .15s, color .15s;
}
.navbar.dark {
  background: var(--ink);
  border-bottom-color: var(--paper);
  color: var(--paper);
}
.navbar.dark a, .navbar.dark .nav-brand { color: var(--paper); }
.navbar.dark .menu-toggle span { background: var(--paper); }
/* Bara albă: forțează text închis (fallback dacă starea .dark lipsește la navigare/scroll) */
.navbar:not(.dark) .nav-links > a:not(.nav-cta),
.navbar:not(.dark) .nav-links .has-dropdown > a,
.navbar:not(.dark) .nav-brand { color: var(--ink); }
.navbar:not(.dark) .menu-toggle span { background: var(--ink); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px var(--pad-x);
  gap: 24px;
}

.nav-brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700; font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.nav-brand .logo-mark {
  display: inline-block;
  height: 48px; width: auto;
  object-fit: contain;
  vertical-align: middle;
}
.footer .nav-brand .logo-mark { height: 96px; }
@media (max-width: 700px) {
  .nav-brand .logo-mark { height: 40px; }
  .footer .nav-brand .logo-mark { height: 72px; }
}
/* ARSC 10 ani - logo în footer */
.footer-arsc { margin-top: 22px; }
.footer-arsc img { height: 64px; width: auto; opacity: 0.95; }
@media (max-width: 700px) { .footer-arsc img { height: 52px; } }
/* simbolul e alb: rămâne alb peste hero (navbar.dark), devine închis pe navbar deschis */
.navbar:not(.dark) .nav-brand .logo-mark { filter: brightness(0) saturate(100%) invert(9%) sepia(38%) saturate(2200%) hue-rotate(196deg); }
.navbar.dark .nav-brand .logo-mark { filter: none; }
.footer .nav-brand .logo-mark { filter: none; }

.nav-links { display: flex; gap: 0; align-items: center; }
.nav-links > a, .nav-links .has-dropdown > a {
  padding: 10px 16px;
  font-size: 0.9rem; font-weight: 500;
  color: inherit;
  transition: color .12s;
  position: relative;
}
.nav-links > a:not(.nav-cta):hover, .nav-links .has-dropdown > a:hover { color: var(--accent); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 220px; padding: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .15s, visibility .15s, transform .15s;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 12px 16px;
  font-size: 0.88rem; color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.dropdown a:last-child { border-bottom: 0; }
.dropdown a:hover { background: var(--ink); color: var(--paper); }

.nav-cta {
  background: var(--accent); color: var(--paper) !important;
  padding: 12px 22px !important;
  font-size: 0.88rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background .12s;
}
.nav-cta:hover { background: var(--ink); color: var(--paper) !important; }
.navbar.dark .nav-cta { background: var(--accent); }
.navbar.dark .nav-cta:hover { background: var(--paper); color: var(--ink) !important; }

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 32px; height: 32px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); }

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
  min-width: 200px;
}
.btn-primary { background: var(--accent); color: var(--paper); }
.btn-primary:hover { background: var(--ink); color: var(--paper); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--accent); color: var(--paper); }
.btn-outline {
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.dark-section .btn-outline { color: var(--paper); border-color: var(--paper); }
.dark-section .btn-outline:hover { background: var(--paper); color: var(--ink); }

/* ============ HERO TICKER (departure board) ============ */

.hero-ticker {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
  z-index: 2;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
          mask: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.hero-ticker-track {
  display: flex;
  gap: 42px;
  align-items: center;
  width: max-content;
  animation: ticker 45s linear infinite;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-ticker-track span { display: inline-flex; align-items: center; gap: 6px; color: var(--paper); }
.hero-ticker-track .sep { color: var(--accent); font-weight: 700; }
.hero-ticker-track .live { color: var(--accent); }
.hero-ticker-track .live::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  animation: pulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(225,6,0,0.6);
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ============ HERO ============ */

.hero {
  position: relative;
  padding: clamp(100px, 14vw, 180px) 0 clamp(60px, 8vw, 96px);
  background: var(--paper);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 78% 28%, rgba(225,6,0,0.07), transparent 70%),
    radial-gradient(ellipse 40% 35% at 15% 75%, rgba(225,6,0,0.04), transparent 70%);
  pointer-events: none;
  animation: heroDrift 22s ease-in-out infinite;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
@keyframes heroDrift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.85; }
  50% { transform: translate(-40px, 24px) scale(1.08); opacity: 1; }
}

/* Word rotator - sharper German precision (no blur, clean slide) */
.rotator {
  display: inline-grid;
  vertical-align: baseline;
  color: var(--accent);
  position: relative;
  overflow: hidden;
}
.rotator > span {
  grid-row: 1; grid-column: 1;
  opacity: 0;
  animation: rotateWord 10s cubic-bezier(0.85, 0, 0.15, 1) infinite;
}
.rotator > span > i {
  font-style: normal;
  margin-left: 1px;
}
.rotator > span:nth-child(1) { animation-delay: 0s; }
.rotator > span:nth-child(2) { animation-delay: 2.5s; }
.rotator > span:nth-child(3) { animation-delay: 5s; }
.rotator > span:nth-child(4) { animation-delay: 7.5s; }
@keyframes rotateWord {
  0%   { opacity: 0; transform: translateY(100%); }
  3%, 22% { opacity: 1; transform: translateY(0); }
  25%, 100% { opacity: 0; transform: translateY(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .rotator > span { animation: none; opacity: 1; }
  .rotator > span:not(:first-child) { display: none; }
  .hero::before { animation: none; }
  .hero-ticker-track { animation: none; }
}

/* HERO PHOTO variant - full-bleed image + dark overlay */
.hero.has-photo {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(120px, 16vw, 220px) 0 clamp(80px, 10vw, 140px);
  min-height: 88vh;
  display: flex; align-items: center;
  border-bottom: 0;
}
.hero.has-photo::before {
  background-image:
    linear-gradient(180deg, rgba(10,14,26,0.55) 0%, rgba(10,14,26,0.65) 55%, rgba(10,14,26,0.92) 100%),
    var(--hero-photo, url('../images/gallery/ropat-2024-3.jpg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: heroPan 30s ease-in-out infinite alternate;
  opacity: 1;
}
@keyframes heroPan {
  0% { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1%); }
}
.hero.has-photo .hero-grid { grid-template-columns: 1fr; max-width: 1100px; }
.hero.has-photo .hero-visual { display: none; }
.hero.has-photo h1 {
  color: var(--paper);
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  letter-spacing: -0.035em;
  max-width: 1100px;
  margin-bottom: 28px;
}
.hero.has-photo .grad,
.hero.has-photo .rotator { color: var(--paper); }
.hero.has-photo .hero-eyebrow {
  color: var(--paper);
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
}
.hero.has-photo .hero-sub { color: rgba(255,255,255,0.78); max-width: 640px; }
.hero.has-photo .hero-sub strong { color: var(--paper); }
.hero.has-photo .countdown {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
}
.hero.has-photo .countdown .num { color: var(--paper); }
.hero.has-photo .countdown .lbl { color: rgba(255,255,255,0.55); }
.hero.has-photo .btn-outline { color: var(--paper); border-color: rgba(255,255,255,0.55); }
.hero.has-photo .btn-outline:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* Speakers horizontal carousel (scroll-snap) */
.speakers-carousel {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding-bottom: 24px;
  margin: 0 calc(var(--pad-x) * -1);
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.speakers-carousel::-webkit-scrollbar { height: 4px; }
.speakers-carousel::-webkit-scrollbar-track { background: transparent; }
.speakers-carousel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 0; }
.speaker-card {
  flex: 0 0 clamp(260px, 32vw, 340px);
  padding: clamp(24px, 2.5vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line);
  margin-right: -1px;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  position: relative;
  transition: background .15s;
}
.speaker-card:hover { background: var(--stone); }
.speaker-card .badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.speaker-card h3 { font-size: 1.25rem; margin-bottom: 10px; line-height: 1.15; }
.speaker-card .role {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.speaker-card .topic {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.5;
}

.carousel-controls {
  display: flex; gap: 8px; margin-top: 8px;
}
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--ink);
  transition: all .15s;
}
.carousel-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }

/* Full-bleed photo break */
.photo-break {
  width: 100%;
  height: clamp(360px, 50vh, 560px);
  background-size: cover;
  background-position: center;
  position: relative;
}
.photo-break::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,14,26,0.4));
}
.photo-break-caption {
  position: absolute; bottom: 32px; left: 0; right: 0;
  z-index: 1;
  color: var(--paper);
}
.photo-break-caption .container { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.photo-break-caption h3 {
  color: var(--paper);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  max-width: 720px;
  letter-spacing: -0.02em;
}
.photo-break-caption .meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}

/* Newsletter in footer */
.footer-newsletter {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  padding: 28px;
  border-radius: 0;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}
.footer-newsletter h5 { color: var(--paper); font-size: 1.05rem; letter-spacing: -0.01em; text-transform: none; margin-bottom: 6px; font-family: 'Inter Tight', sans-serif; font-weight: 600; }
.footer-newsletter p { color: var(--muted-2); font-size: 0.9rem; margin: 0; }
.footer-newsletter form { display: flex; gap: 8px; }
.footer-newsletter input {
  flex: 1;
  padding: 12px 16px;
  background: var(--ink);
  border: 1px solid var(--line-dark);
  color: var(--paper);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
}
.footer-newsletter input::placeholder { color: var(--muted-2); }
.footer-newsletter input:focus { outline: 0; border-color: var(--accent); }
.footer-newsletter button {
  padding: 12px 22px;
  background: var(--accent);
  color: var(--paper);
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background .15s;
}
.footer-newsletter button:hover { background: var(--accent-hover); }

@media (max-width: 720px) {
  .footer-newsletter { grid-template-columns: 1fr; gap: 18px; }
  .photo-break-caption .container { flex-direction: column; align-items: flex-start; }
}

/* Intro trifecta - 3 image-led feature cards (post-hero) */
.intro-trifecta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.intro-card {
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: background .2s;
  text-decoration: none; color: inherit;
}
.intro-card:hover { background: var(--stone); }
.intro-card figure {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--stone);
  position: relative;
  border-radius: 10%;
}
.intro-card figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: transform .4s ease, filter .25s;
}
.intro-card:hover figure img { transform: scale(1.03); filter: grayscale(0) contrast(1); }
.intro-card-body { padding: clamp(28px, 3vw, 40px); }
.intro-card-body .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}
.intro-card-body h3 {
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  margin-bottom: 12px;
}
.intro-card-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; line-height: 1.55; }
.intro-card-body .arrow { color: var(--accent); font-weight: 600; font-size: 0.9rem; }

/* FAQ accordion */
.faq-list {
  max-width: 900px;
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  gap: 24px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform .2s;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { content: '-'; }
.faq-list details p {
  color: var(--muted);
  padding-top: 14px;
  max-width: 760px;
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}
.faq-list details[open] summary { color: var(--accent); }

/* Strip ALL decorative hero elements from the previous design */
.hero-shapes, .hero-grid-bg, .hero-particles, .hero-icons, .hero-route, .hero-stops, .hero-vehicle { display: none !important; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(225,6,0,0.15);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(225,6,0,0.15); }
  50% { box-shadow: 0 0 0 8px rgba(225,6,0,0.05); }
}

.hero h1 { color: var(--ink); margin-bottom: 24px; }
.hero h1 .grad {
  color: var(--accent);
  background: none;
  -webkit-text-fill-color: var(--accent);
}

.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.55;
}
.hero-sub strong { color: var(--ink); display: inline-block; margin-top: 6px; }

.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 8px;
}

.hero-visual {
  position: relative;
  display: flex; justify-content: center; align-items: center;
}
.hero-visual img {
  width: 100%; max-width: 480px;
  height: auto;
  border-radius: 10%;
}
.hero-floating-card {
  position: absolute; bottom: -24px; left: -24px;
  background: var(--ink); color: var(--paper);
  padding: 18px 22px;
  border-radius: 0;
  display: flex; align-items: center; gap: 14px;
  max-width: 320px;
  box-shadow: 0 24px 48px rgba(10,14,26,0.18);
}
.hero-floating-card .ico { font-size: 1.4rem; color: var(--accent); }
.hero-floating-card strong { color: var(--paper); display: block; font-size: 0.95rem; margin-bottom: 2px; }
.hero-floating-card p { color: var(--muted-2); font-size: 0.82rem; margin: 0; }

/* ============ COUNTDOWN ============ */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 480px;
  margin: 0 0 36px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--stone);
}
.countdown .cell { text-align: center; }
.countdown .num {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.countdown .lbl {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 8px;
}

/* ============ SECTIONS ============ */

.section-head {
  margin-bottom: clamp(40px, 5vw, 64px);
  max-width: 800px;
}
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.05rem; color: var(--muted); max-width: 680px; }

.section-eyebrow {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 14px;
  text-transform: uppercase;
}

/* ============ FEATURE GRID (numbered cards) ============ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  container-type: inline-size;
}
.feature-card {
  padding: clamp(28px, 3vw, 40px);
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .12s, color .12s;
  counter-increment: feat;
}
.feature-card:hover { background: var(--ink); color: var(--paper); }
.feature-card:hover h3 { color: var(--paper); }
.feature-card:hover p { color: var(--muted-2); }
.feature-card:hover::before { color: var(--accent); }
.feature-card:hover .ico { color: var(--accent); }
@container (min-width: 900px) {
  .feature-card { padding: clamp(36px, 3.5vw, 48px); }
}
.feature-grid { counter-reset: feat; }
.feature-card::before {
  content: counter(feat, decimal-leading-zero);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 24px;
}
.feature-card .ico {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--accent);
  display: block;
  line-height: 1;
}
.feature-card h3 { margin-bottom: 10px; color: var(--ink); }
.feature-card p { font-size: 0.95rem; color: var(--muted); line-height: 1.55; }

/* Drop colored variants from old design - all monochrome now */
.feature-card.gold, .feature-card.mint, .feature-card.navy { background: var(--paper); color: inherit; }
.feature-card.gold:hover, .feature-card.mint:hover, .feature-card.navy:hover { background: var(--stone); }
.feature-card.gold h3, .feature-card.mint h3, .feature-card.navy h3, .feature-card.gold p, .feature-card.mint p, .feature-card.navy p { color: inherit; }
.feature-card.gold p, .feature-card.mint p, .feature-card.navy p { color: var(--muted); }

/* ============ DARK SECTION ============ */

.dark-section {
  background: var(--ink);
  color: var(--paper);
}
.dark-section h1, .dark-section h2, .dark-section h3, .dark-section h4 { color: var(--paper); }
.dark-section p { color: var(--muted-2); }
.dark-section strong { color: var(--paper); }
.dark-section .section-eyebrow { color: var(--accent); }

/* ============ MARQUEE ============ */

.marquee {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.marquee-track {
  display: flex; gap: 56px;
  align-items: center;
  animation: marquee 50s linear infinite;
  width: max-content;
}
.marquee-track img {
  height: 44px; width: auto; object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter .25s;
}
.marquee-track img:hover { filter: grayscale(0) opacity(1); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============ SPONSORS GRID ============ */

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.sponsor-tile {
  display: flex; align-items: center; justify-content: center;
  padding: 32px 20px;
  min-height: 120px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.sponsor-tile:hover { background: var(--stone); }
.sponsor-tile img {
  width: 100%; height: 76px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.7);
  transition: filter .2s;
}
.sponsor-tile:hover img { filter: grayscale(0) opacity(1); }

/* Pagina Parteneri: bandă derulantă spre stânga, logo-uri color */
.pmarquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.pmarquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee var(--spd, 36s) linear infinite;
}
.pmarquee:hover .pmarquee-track { animation-play-state: paused; }
.ptile {
  flex: 0 0 auto;
  width: 150px; height: 96px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
  overflow: hidden;
}
.ptile img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: none; opacity: 1;
}
.ptile span {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600; font-size: 0.82rem;
  color: var(--muted); text-align: center; line-height: 1.25;
}
.sponsor-tile .placeholder {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
}

/* ============ MINI GALLERY ============ */

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.mini-gallery figure {
  overflow: hidden;
  border-radius: 10%;
  aspect-ratio: 4/3;
  background: var(--stone);
}
.mini-gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.mini-gallery figure:hover img { transform: scale(1.04); }

/* Large multi-year gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-grid figure {
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--stone);
  border-radius: 10%;
  cursor: zoom-in;
  position: relative;
}
.gallery-grid figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s, filter .25s;
  filter: saturate(0.85);
}
.gallery-grid figure::after {
  content: attr(data-year);
  position: absolute; bottom: 10px; left: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--paper);
  background: rgba(10,14,26,0.7);
  padding: 4px 8px;
  border-radius: 0;
  opacity: 0; transition: opacity .2s;
}
.gallery-grid figure:hover img { transform: scale(1.06); filter: saturate(1); }
.gallery-grid figure:hover::after { opacity: 1; }
.gallery-grid figure.tall { aspect-ratio: 3/4; grid-row: span 2; }
.gallery-grid figure.wide { grid-column: span 2; aspect-ratio: 16/9; }

@media (max-width: 960px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid figure.tall { grid-row: span 1; aspect-ratio: 4/3; }
  .gallery-grid figure.wide { grid-column: span 2; }
}

/* Photo marquee variant - bigger images */
.photo-marquee .marquee-track img {
  height: 220px; width: auto;
  filter: saturate(0.9);
  border-radius: 10%;
  opacity: 1;
}
.photo-marquee .marquee-track img:hover { filter: saturate(1); opacity: 1; }
.photo-marquee .marquee-track { animation-duration: 90s; gap: 12px; }
.photo-marquee.ratio-16x9 .marquee-track img { width: 391px; height: 220px; object-fit: cover; }

/* Parteneri: spacing redus între benzile derulante și secțiuni */
.page-parteneri section { padding: clamp(32px, 4vw, 52px) 0; }

/* ============ PAGE HEADER ============ */

.page-header {
  position: relative;
  background-color: var(--ink);
  color: var(--paper);
  padding: clamp(140px, 16vw, 200px) 0 clamp(60px, 7vw, 96px);
  border-bottom: 1px solid var(--paper);
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--header-photo, url('../images/gallery/ropat-2024-1.jpg'));
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.05);
  animation: headerPan 28s ease-in-out infinite alternate;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.65) 60%, rgba(0,0,0,0.82) 100%);
  pointer-events: none;
}
@keyframes headerPan {
  0% { transform: scale(1.04) translate(0,0); }
  100% { transform: scale(1.12) translate(-1.5%, -1%); }
}
@media (prefers-reduced-motion: reduce) {
  .page-header::before { animation: none; }
}
.page-header > .container { position: relative; z-index: 2; }
.page-header h1 { color: var(--paper); margin-bottom: 18px; }
.page-header p { color: rgba(255,255,255,0.78); max-width: 720px; font-size: 1.05rem; }
.breadcrumbs {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* ============ AGENDA ============ */

.agenda-day {
  border-top: 1px solid var(--line);
}
.agenda-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.agenda-row:hover { background: var(--stone); padding-left: 16px; padding-right: 16px; }
.agenda-time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.agenda-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: 'Inter Tight', sans-serif;
}
.agenda-content p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ============ CONTACT / FORM ============ */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-card:last-child { border-bottom: 0; }
.contact-card .ico {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--stone);
  border-radius: 999px;
  font-size: 1rem;
}
.contact-card h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.contact-card p { color: var(--ink); font-weight: 500; margin: 0; }

.contact-form {
  background: var(--stone);
  padding: clamp(28px, 3vw, 40px);
  border-radius: 0;
  border: 1px solid var(--line);
}
.contact-form h3 { margin-bottom: 20px; }
.contact-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 14px 0 6px;
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225,6,0,0.12);
}
.contact-form textarea { min-height: 100px; resize: vertical; }
.contact-form button { margin-top: 20px; }

/* ============ FOOTER ============ */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(64px, 8vw, 96px) 0 32px;
  border-top: 1px solid var(--line-dark);
}
.footer .nav-brand { color: var(--paper); margin-bottom: 20px; font-size: 1.1rem; }
.footer p { color: var(--muted-2); font-size: 0.9rem; line-height: 1.6; margin-bottom: 6px; }
.footer strong { color: var(--paper); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.footer h5 {
  color: var(--paper);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 18px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: var(--muted-2); font-size: 0.9rem; }
.footer ul a:hover { color: var(--paper); }
.footer-bottom {
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--muted-2);
}

.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all .15s;
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }

/* ============ REVEAL ANIMATIONS ============ */

/* Reveal - native scroll-driven animation (Chrome 115+, Safari 17+).
   JS fallback adds .in class for older browsers. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s cubic-bezier(0.2, 0.7, 0.3, 1), transform .5s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@supports (animation-timeline: view()) {
  .reveal {
    animation: revealUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
    transition: none;
  }
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ============ RESPONSIVE ============ */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 360px; }
  .hero-floating-card { left: 0; right: auto; }
  .feature-grid, .sponsors-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .agenda-row { grid-template-columns: 1fr; gap: 6px; }
  .agenda-row:hover { padding-left: 0; padding-right: 0; }
  .mini-gallery { grid-template-columns: 1fr; }

  .nav-links {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px var(--pad-x);
    gap: 0;
    transform: translateY(-110%);
    transition: transform .25s;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links > a, .nav-links .has-dropdown { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .menu-toggle { display: flex; }
  .navbar.dark .nav-links { background: var(--ink); border-bottom-color: var(--line-dark); }
}

@media (max-width: 560px) {
  .feature-grid, .sponsors-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .countdown { grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 14px; }
  .countdown .num { font-size: 1.4rem; }
  .btn { width: 100%; min-width: 0; justify-content: center; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .photo-marquee .marquee-track img { height: 150px; }
  .photo-marquee.ratio-16x9 .marquee-track img { width: 267px; height: 150px; }
}


/* ====== AUDITORIU - segmentare, grafice, infopoints ====== */
.aud-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr));
  gap: 0; border-top:1px solid var(--line); border-left:1px solid var(--line);
}
.aud-stats .cell {
  padding: 36px 28px; border-right:1px solid var(--line); border-bottom:1px solid var(--line);
  background: var(--paper);
}
.aud-stats .num {
  font-family:'IBM Plex Mono',monospace; font-weight:500;
  font-size: clamp(2.2rem,4vw,3.2rem); color:var(--ink);
  letter-spacing:-0.02em; line-height:1;
}
.aud-stats .num em { color: var(--accent); font-style:normal; }
.aud-stats .lbl {
  margin-top:12px; font-size:0.9rem; color:var(--muted);
  text-transform:uppercase; letter-spacing:0.06em; font-weight:500;
}

.aud-chart { display:flex; flex-direction:column; gap:2px; }
.aud-bar {
  display:grid; grid-template-columns: 260px 1fr 56px; align-items:center;
  gap:18px; padding:14px 0; border-bottom:1px solid var(--line);
}
.aud-bar .name { font-weight:600; color:var(--ink); font-size:0.98rem; }
.aud-bar .track { background:var(--stone-2,#e9e6df); height:14px; border-radius:999px; overflow:hidden; }
.aud-bar .fill {
  height:100%; width:0; border-radius:999px;
  background:linear-gradient(90deg,var(--accent),#ff6a3d);
  transition: width 1.1s cubic-bezier(.16,1,.3,1);
}
.aud-bar.in .fill { width: var(--w); }
.aud-bar .pct { font-family:'IBM Plex Mono',monospace; font-size:0.92rem; color:var(--muted); text-align:right; }
@media (max-width:640px){
  .aud-bar { grid-template-columns: 1fr 44px; gap:6px 12px; }
  .aud-bar .track { grid-column:1 / -1; order:3; }
}

.aud-points {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:0; border-top:1px solid var(--line-dark); border-left:1px solid var(--line-dark);
}
.aud-points .pt {
  padding:30px 26px; border-right:1px solid var(--line-dark); border-bottom:1px solid var(--line-dark);
}
.aud-points .pt .k {
  font-family:'IBM Plex Mono',monospace; font-size:0.72rem; color:var(--accent);
  letter-spacing:0.1em; text-transform:uppercase;
}
.aud-points .pt h4 { color:var(--paper); font-size:1.15rem; margin:12px 0 8px; }
.aud-points .pt p { color:var(--muted-2); font-size:0.92rem; margin:0; line-height:1.55; }
