/* ==========================================================================
   TTN Solar — design tokens
   ========================================================================== */
:root {
  --navy-950: #060c18;
  --navy-900: #0a1426;
  --navy-800: #101e36;
  --navy-700: #1a2b4a;
  --line-dark: rgba(246, 242, 234, 0.12);

  --gold: #d9a441;
  --gold-hi: #f2cd7c;
  --gold-lo: #b4802b;

  --ivory: #f6f2ea;
  --paper: #fbf9f5;
  --ink: #0d1626;
  --ink-2: #3c4658;
  --muted: #6b7486;
  --line: rgba(13, 22, 38, 0.1);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--navy-950); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ==========================================================================
   Type
   ========================================================================== */
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
}
.h2 em, .hero__title em { font-style: italic; color: var(--gold); }
.section--light .h2 em { color: var(--gold-lo); }

.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; margin: 0 0 18px; }

.kicker {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-lo); margin: 0 0 20px;
}
.section--dark .kicker { color: var(--gold); }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.7; margin: 0; color: var(--ink-2); }
.section--dark .lead { color: rgba(246, 242, 234, 0.72); }

.fine { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.35s;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { --h: 42px; padding: 0 20px; font-size: 0.85rem; }
.btn--block { width: 100%; }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  color: var(--navy-950);
  box-shadow: 0 10px 30px -10px rgba(217, 164, 65, 0.6);
}
.btn--gold:hover { box-shadow: 0 16px 40px -12px rgba(217, 164, 65, 0.8); }
.btn--ghost { border-color: rgba(246, 242, 234, 0.35); color: var(--ivory); backdrop-filter: blur(6px); background: rgba(255, 255, 255, 0.04); }
.btn--ghost:hover { border-color: var(--ivory); background: rgba(255, 255, 255, 0.1); }
.btn--navy { background: var(--navy-900); color: var(--ivory); }
.btn--navy:hover { background: var(--navy-700); }

/* ==========================================================================
   Brand
   ========================================================================== */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivory); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__word { display: inline-flex; align-items: baseline; gap: 9px; font-size: 1.12rem; line-height: 1; }
.brand__word b { font-weight: 800; letter-spacing: 0.09em; }
.brand__word span { font-weight: 300; letter-spacing: 0.24em; color: rgba(246, 242, 234, 0.75); }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; transition: height 0.4s var(--ease); }
.nav.is-scrolled { background: rgba(6, 12, 24, 0.78); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--line-dark); }
.nav.is-scrolled .nav__inner { height: 70px; }

.nav__links { display: flex; gap: 34px; }
.nav__links a {
  position: relative; color: rgba(246, 242, 234, 0.78); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ivory); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

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


.nav__burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 50%; background: none; position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ivory); transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column; gap: 4px; padding: 12px var(--gutter) 28px;
  background: rgba(6, 12, 24, 0.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-dark);
}
.mobile-menu a:not(.btn) {
  color: var(--ivory); text-decoration: none; font-family: var(--serif); font-size: 1.9rem; padding: 6px 0;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-menu .btn { margin-top: 20px; white-space: normal; text-align: center; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--ivory); overflow: hidden; isolation: isolate; padding-top: 120px;
}
.hero__media { position: absolute; inset: -12% 0 -12%; z-index: -2; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.16); } to { transform: scale(1.04); } }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 70% at 85% 10%, rgba(217, 164, 65, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(6, 12, 24, 0.55) 0%, rgba(6, 12, 24, 0.35) 35%, rgba(6, 12, 24, 0.82) 72%, var(--navy-950) 100%),
    linear-gradient(90deg, rgba(6, 12, 24, 0.75), rgba(6, 12, 24, 0.1) 70%);
}
.hero__content { padding-bottom: 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 28px; padding: 8px 16px 8px 12px;
  border: 1px solid rgba(246, 242, 234, 0.2); border-radius: 999px; background: rgba(6, 12, 24, 0.35); backdrop-filter: blur(8px);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(246, 242, 234, 0.88);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(217, 164, 65, 0.7); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(217, 164, 65, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 164, 65, 0); } }

.hero__title {
  font-family: var(--serif); font-weight: 400; margin: 0 0 26px; max-width: 13ch;
  font-size: clamp(3.1rem, 8.4vw, 7.4rem); line-height: 0.96; letter-spacing: -0.02em;
}
.hero__lead { max-width: 560px; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: rgba(246, 242, 234, 0.8); margin: 0 0 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 40px;
  border-top: 1px solid var(--line-dark);
}
.kpi { padding: 26px 24px 4px 0; display: flex; flex-direction: column; gap: 6px; }
.kpi + .kpi { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.kpi__num { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; }
.kpi__num small { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--gold); margin-left: 6px; letter-spacing: 0.04em; }
.kpi__label { font-size: 0.82rem; color: rgba(246, 242, 234, 0.6); }

.hero__scroll { position: absolute; right: var(--gutter); bottom: 48px; width: 26px; height: 42px; border: 1.5px solid rgba(246, 242, 234, 0.4); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: scrollDot 2s infinite var(--ease); }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; padding: clamp(88px, 12vw, 150px) 0; }
.section--light { background: var(--paper); color: var(--ink); }
.section--dark { background: var(--navy-950); color: var(--ivory); }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 7vw, 84px); }

/* Thesis */
.thesis { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.thesis__card { position: relative; padding: 40px 36px 44px 0; border-bottom: 1px solid var(--line); }
.thesis__card:not(:nth-child(3n + 1)) { padding-left: 36px; border-left: 1px solid var(--line); }
.thesis__card::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease);
}
.thesis__card:hover::before { transform: scaleX(1); }
.thesis__n { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold-lo); }
.thesis__card h3 { font-size: 1.2rem; font-weight: 700; margin: 14px 0 12px; letter-spacing: -0.005em; }
.thesis__card p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
.thesis__card sup a { color: var(--gold-lo); text-decoration: none; font-weight: 700; }

/* Parallax band */
.band { position: relative; overflow: hidden; color: var(--ivory); padding: clamp(110px, 14vw, 180px) 0 40px; isolation: isolate; }
.band__media { position: absolute; inset: -25% 0; z-index: -2; will-change: transform; }
.band__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.band__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 12, 24, 0.62), rgba(6, 12, 24, 0.72) 50%, rgba(6, 12, 24, 0.94)); }
.band__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.counter { display: flex; flex-direction: column; padding-top: 22px; border-top: 1px solid rgba(246, 242, 234, 0.3); }
.counter__num { font-family: var(--serif); font-size: clamp(3rem, 6vw, 5.2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.counter__unit { font-weight: 700; color: var(--gold-hi); letter-spacing: 0.06em; font-size: 0.9rem; margin-top: 6px; }
.counter__label { color: rgba(246, 242, 234, 0.72); font-size: 0.9rem; margin-top: 4px; }
.band__note { margin-top: 64px; font-size: 0.74rem; color: rgba(246, 242, 234, 0.5); }

/* Location media */
.media-frame { border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; background: var(--navy-900); }
.media-frame__tabs { display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line-dark); }
.media-frame__tabs button {
  border: 0; background: none; color: rgba(246, 242, 234, 0.6); padding: 10px 18px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  transition: background 0.25s, color 0.25s;
}
.media-frame__tabs button[aria-selected="true"] { background: rgba(217, 164, 65, 0.16); color: var(--gold-hi); }
.media-frame__stage { position: relative; aspect-ratio: 16 / 9; background: #000; }
.media-frame__video, .media-frame__map, .media-frame__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.map-consent { height: 100%; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; padding: 24px; color: rgba(246, 242, 234, 0.75); background: radial-gradient(circle at 50% 40%, var(--navy-700), var(--navy-900)); }
.map-consent p { max-width: 420px; margin: 0; }
.legend { list-style: none; margin: 0; padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 0.85rem; color: rgba(246, 242, 234, 0.75); }
.legend li { display: inline-flex; align-items: center; gap: 10px; }
.sw { width: 12px; height: 12px; border-radius: 3px; }
.sw--blue { background: #5b5bf0; }
.sw--red { background: #e2483d; }
.sw--violet { background: #b05bd9; }

/* Sites */
.site { display: grid; grid-template-columns: 360px 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; padding: 48px 0; border-top: 1px solid var(--line); }
.site--flip { grid-template-columns: 1fr 360px; }
.site--flip .site__info { order: 2; }
.site__info { position: sticky; top: 110px; }
.site__tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-lo); margin-bottom: 10px; }
.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.9rem; }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery__item {
  position: relative; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff;
  aspect-ratio: 4 / 3; cursor: zoom-in;
}
.gallery__item--wide { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item::after {
  content: "+"; position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy-900); color: var(--gold-hi); font-size: 1.2rem;
  opacity: 0; transform: scale(0.8); transition: opacity 0.3s, transform 0.3s var(--ease);
}
.gallery__item:hover::after { opacity: 1; transform: scale(1); }
.gallery[data-gallery="tantareni"] { grid-template-columns: repeat(2, 1fr); }

/* Specs */
.specs { margin-top: 56px; padding: clamp(28px, 4vw, 52px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(13, 22, 38, 0.25); }
.specs table { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 500; color: var(--muted); width: 40%; padding-right: 20px; }
.specs td { font-weight: 600; }
.specs .fine { margin: 18px 0 0; }

/* Timeline */
.section--texture { overflow: hidden; isolation: isolate; }
.texture { position: absolute; inset: -20% 0; z-index: -1; opacity: 0.13; will-change: transform; }
.texture img { width: 100%; height: 100%; object-fit: cover; }
.section--texture::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--navy-950), transparent 30%, transparent 70%, var(--navy-950)); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-dark); }
.timeline::after {
  content: ""; position: absolute; left: 0; top: 7px; height: 1px; width: 50%;
  background: linear-gradient(90deg, var(--gold), var(--gold-hi));
}
.tl { position: relative; padding: 42px 26px 0 0; }
.tl::before {
  content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%;
  border: 1.5px solid rgba(246, 242, 234, 0.35); background: var(--navy-950);
}
.tl--done::before { background: var(--gold); border-color: var(--gold); }
.tl--active::before { border-color: var(--gold); box-shadow: 0 0 0 6px rgba(217, 164, 65, 0.18); animation: pulse 2.4s infinite; }
.tl__state { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(246, 242, 234, 0.45); }
.tl--done .tl__state, .tl--active .tl__state { color: var(--gold); }
.tl h3 { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; line-height: 1.15; margin: 12px 0 10px; }
.tl p { margin: 0; color: rgba(246, 242, 234, 0.65); font-size: 0.93rem; }

/* Investment */
.invest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.invest__card {
  display: flex; flex-direction: column; gap: 10px; padding: 34px 30px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.invest__card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(13, 22, 38, 0.3); }
.invest__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.invest__value { font-family: var(--serif); font-size: clamp(2.6rem, 4.4vw, 3.6rem); line-height: 1; color: var(--ink); }
.invest__value small { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--gold-lo); margin-left: 4px; }
.invest__desc { color: var(--ink-2); font-size: 0.93rem; }
.invest__locked {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: 34px 38px; border-radius: var(--radius); color: var(--ivory);
  background: radial-gradient(120% 140% at 0% 0%, rgba(217, 164, 65, 0.25), transparent 50%), var(--navy-900);
}
.invest__locked svg { width: 44px; height: 44px; color: var(--gold-hi); }
.invest__locked h3 { margin: 0 0 6px; font-size: 1.2rem; }
.invest__locked p { margin: 0; color: rgba(246, 242, 234, 0.7); font-size: 0.95rem; max-width: 640px; }
.invest__locked .btn--navy { background: var(--ivory); color: var(--navy-950); }
.invest__locked .btn--navy:hover { background: #fff; }

/* Contact */
.contact { overflow: hidden; isolation: isolate; }
.contact__glow { position: absolute; z-index: -1; width: 900px; height: 900px; right: -300px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 164, 65, 0.22), transparent 60%); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact__intro .lead { margin: 26px 0 40px; }
.person { display: flex; align-items: center; gap: 16px; }
.person__avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--navy-950); background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo)); }
.person p { margin: 0; }
.person__name { font-weight: 700; font-size: 1.05rem; }
.person__role { color: rgba(246, 242, 234, 0.6); font-size: 0.9rem; }
.contact__lines { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; }
.contact__lines a { color: var(--ivory); text-decoration: none; border-bottom: 1px solid rgba(217, 164, 65, 0.4); transition: border-color 0.25s, color 0.25s; }
.contact__lines a:hover { color: var(--gold-hi); border-color: var(--gold-hi); }

.form {
  display: grid; gap: 16px; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius);
  background: rgba(246, 242, 234, 0.04); border: 1px solid var(--line-dark); backdrop-filter: blur(10px);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: rgba(246, 242, 234, 0.7); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; font-weight: 400; letter-spacing: 0; color: var(--ivory);
  background: rgba(6, 12, 24, 0.6); border: 1px solid var(--line-dark); border-radius: 12px; padding: 14px 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.15); }
.field.is-invalid input, .field.is-invalid select { border-color: #e2725b; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.85rem; color: rgba(246, 242, 234, 0.7); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.check a { color: var(--gold-hi); }
.check.is-invalid { color: #f0a08f; }
.form__status { margin: 0; min-height: 1.4em; font-size: 0.92rem; }
.form__status.is-ok { color: #9be3b4; }
.form__status.is-err { color: #f0a08f; }

/* Sources & footer */
.sources { background: var(--navy-950); padding: 0 0 40px; }
.sources .fine { color: rgba(246, 242, 234, 0.45); max-width: 980px; margin: 0; }
.sources a { color: rgba(246, 242, 234, 0.7); }

.footer { background: var(--navy-950); color: rgba(246, 242, 234, 0.6); border-top: 1px solid var(--line-dark); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 44px; padding-bottom: 44px; }
.footer__brand p { margin: 10px 0 0; font-size: 0.85rem; }
.footer__links { display: flex; gap: 26px; }
.footer__links a { text-decoration: none; font-size: 0.9rem; }
.footer__links a:hover { color: var(--gold-hi); }
.footer__copy { margin: 0; font-size: 0.82rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; background: rgba(6, 12, 24, 0.94); backdrop-filter: blur(8px); padding: 24px; animation: fade 0.3s; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.lightbox img { max-height: 82vh; width: auto; border-radius: 8px; background: #fff; }
.lightbox figcaption { color: rgba(246, 242, 234, 0.7); font-size: 0.9rem; }
.lightbox__close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-dark); background: none; color: var(--ivory); font-size: 1.6rem; line-height: 1; }
.lightbox__nav { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-dark); background: none; color: var(--ivory); font-size: 1.8rem; line-height: 1; }
.lightbox__nav:hover, .lightbox__close:hover { border-color: var(--gold); color: var(--gold-hi); }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: 0.1s; }
.hero .reveal:nth-child(3) { transition-delay: 0.2s; }
.hero .reveal:nth-child(4) { transition-delay: 0.3s; }
.thesis .reveal:nth-child(3n + 2), .band__inner .reveal:nth-child(2), .invest .reveal:nth-child(2), .timeline .reveal:nth-child(2) { transition-delay: 0.1s; }
.thesis .reveal:nth-child(3n + 3), .band__inner .reveal:nth-child(3), .invest .reveal:nth-child(3), .timeline .reveal:nth-child(3) { transition-delay: 0.2s; }
.band__inner .reveal:nth-child(4), .timeline .reveal:nth-child(4) { transition-delay: 0.3s; }
.timeline .reveal:nth-child(5) { transition-delay: 0.4s; }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.page-hero { padding: 180px 0 80px; color: var(--ivory); background: radial-gradient(90% 120% at 90% 0%, rgba(217, 164, 65, 0.2), transparent 55%), var(--navy-950); }
.page-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: 1; margin: 0; }
.prose { max-width: 760px; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; margin: 48px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--gold-lo); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-block; }
  .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 34px; }
  .timeline::before, .timeline::after { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .timeline::after { height: 46%; bottom: auto; background: linear-gradient(180deg, var(--gold), var(--gold-hi)); }
  .tl { padding: 0 0 40px; }
  .tl::before { left: -34px; top: 4px; }
  .tl h3 { margin-top: 6px; }
}

@media (max-width: 900px) {
  .split, .contact__grid { grid-template-columns: 1fr; align-items: start; }
  .thesis { grid-template-columns: 1fr 1fr; }
  .thesis__card, .thesis__card:not(:nth-child(3n + 1)) { padding: 32px 24px 34px 0; border-left: 0; }
  .thesis__card:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .band__inner { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(3) { padding-left: 0; border-left: 0; }
  .kpi:nth-child(n + 3) { border-top: 1px solid var(--line-dark); }
  .site, .site--flip { grid-template-columns: 1fr; }
  .site--flip .site__info { order: 0; }
  .site__info { position: static; }
  .invest { grid-template-columns: 1fr; }
  .invest__locked { grid-template-columns: 1fr; gap: 18px; }
  .invest__locked .btn { white-space: normal; text-align: center; }
  .hero__scroll { display: none; }
}

@media (max-width: 600px) {
  .nav__cta { display: none; }
  .brand__word { font-size: 1rem; }
  .brand__mark { width: 32px; height: 32px; }
  .thesis { grid-template-columns: 1fr; }
  .thesis__card:nth-child(even) { padding-left: 0; border-left: 0; }
  .form__row { grid-template-columns: 1fr; }
  .gallery, .gallery[data-gallery="tantareni"] { grid-template-columns: 1fr 1fr; gap: 8px; }
  .btn { white-space: normal; text-align: center; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .kpi { padding-right: 12px; }
  .kpi + .kpi { padding-left: 16px; }
  .kpi:nth-child(3) { padding-left: 0; }
  .media-frame__stage { aspect-ratio: 4 / 3; }
  .specs th { width: 45%; }
  .lightbox { grid-template-columns: 1fr; padding: 70px 12px 80px; }
  .lightbox__nav { position: absolute; bottom: 18px; }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  [data-parallax] { transform: none !important; }
}

/* Bilingual static blocks (legal pages) */
html:not([lang="en"]) .only-en, html:not([lang="ro"]) .only-ro, html:not([lang="it"]) .only-it,
html:not([lang="es"]) .only-es, html:not([lang="fr"]) .only-fr { display: none !important; }
.legal-nav .nav__inner { height: 76px; }
.legal-nav .nav__back { color: rgba(246, 242, 234, 0.75); text-decoration: none; font-size: 0.9rem; }
.legal-nav .nav__back:hover { color: var(--gold-hi); }

/* Components strip */
.components { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.comp { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.comp:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(13, 22, 38, 0.3); }
.comp__img { aspect-ratio: 4 / 3; overflow: hidden; }
.comp__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.comp:hover .comp__img img { transform: scale(1.06); }
.comp figcaption { padding: 22px 24px 26px; }
.comp__n { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-lo); }
.comp h4 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin: 6px 0 6px; }
.comp p { margin: 0; color: var(--ink-2); font-size: 0.93rem; }

/* Quote band */
.band--quote { padding: clamp(130px, 18vw, 230px) 0; }
.band--quote .band__media img { object-position: 50% 60%; }
.band--quote .band__veil { background: linear-gradient(90deg, rgba(6, 12, 24, 0.85), rgba(6, 12, 24, 0.35) 75%), linear-gradient(180deg, var(--navy-950), transparent 22%, transparent 78%, var(--navy-950)); }
.band__quote { max-width: var(--container); }
.band__line { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.05; margin: 0 0 36px; max-width: 16ch; }
.band__line em { color: var(--gold-hi); }
@media (max-width: 900px) { .components { grid-template-columns: 1fr; } .comp__img { aspect-ratio: 16 / 9; } }

/* Language picker */
.lang { position: relative; padding: 0; border: 0; }
.lang__toggle {
  display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-dark); background: none; color: var(--ivory); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  transition: border-color 0.25s, background 0.25s;
}
.lang__toggle:hover, .lang__toggle[aria-expanded="true"] { border-color: rgba(246, 242, 234, 0.4); background: rgba(246, 242, 234, 0.06); }
.lang__toggle svg { width: 16px; height: 16px; opacity: 0.8; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; list-style: none; margin: 0; padding: 6px; min-width: 180px;
  background: rgba(10, 20, 38, 0.97); border: 1px solid var(--line-dark); border-radius: 14px; backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6); animation: fade 0.2s;
}
.lang__menu li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: rgba(246, 242, 234, 0.8); font-size: 0.9rem; cursor: pointer; }
.lang__menu li b { width: 24px; font-size: 0.72rem; letter-spacing: 0.08em; color: rgba(246, 242, 234, 0.5); }
.lang__menu li:hover, .lang__menu li:focus-visible { background: rgba(246, 242, 234, 0.08); color: var(--ivory); outline: none; }
.lang__menu li[aria-selected="true"] { color: var(--gold-hi); }
.lang__menu li[aria-selected="true"] b { color: var(--gold); }

/* Flyover player: quality, controls, full screen */
.media-frame__tabs { align-items: center; }
.mf-spacer { flex: 1; }
.mf-quality, .mf-fsquality { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: rgba(246, 242, 234, 0.6); padding: 0 6px; white-space: nowrap; }
.mf-quality i, .mf-fsquality i { width: 7px; height: 7px; border-radius: 50%; background: #6fd39a; box-shadow: 0 0 0 3px rgba(111, 211, 154, 0.18); }
.mf-quality.is-low i, .mf-fsquality.is-low i { background: #e7b75c; box-shadow: 0 0 0 3px rgba(231, 183, 92, 0.2); }
.media-frame .mf-fs {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 12px; border-radius: 999px;
  border: 1px solid rgba(217, 164, 65, 0.55); background: rgba(217, 164, 65, 0.08); color: var(--gold-hi); font-size: 0.82rem; font-weight: 700;
  transition: background 0.25s, border-color 0.25s;
}
.media-frame .mf-fs:hover { background: rgba(217, 164, 65, 0.18); border-color: var(--gold); }
.mf-fs svg { width: 16px; height: 16px; }
.mf-ctrl { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 10px; z-index: 2; }
.mf-round {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(246, 242, 234, 0.25); background: rgba(6, 12, 24, 0.55);
  backdrop-filter: blur(10px); color: var(--ivory); display: grid; place-items: center; transition: background 0.25s, border-color 0.25s;
}
.mf-round:hover { background: rgba(6, 12, 24, 0.8); border-color: var(--gold); }
.mf-round svg { width: 18px; height: 18px; }
.mf-round .i-play { display: none; }
.mf-round.is-paused .i-play { display: block; }
.mf-round.is-paused .i-pause { display: none; }
.mf-fsbar, .mf-fsquality { display: none; }
.media-frame__stage:has(.media-frame__map:not([hidden])) .mf-ctrl { display: none; }

.media-frame:fullscreen, .media-frame.is-fs { position: fixed; inset: 0; z-index: 100; width: 100vw; height: 100vh; border: 0; border-radius: 0; display: flex; flex-direction: column; background: #000; opacity: 1; transform: none; }
.media-frame:fullscreen .media-frame__tabs, .media-frame:fullscreen .legend,
.media-frame.is-fs .media-frame__tabs, .media-frame.is-fs .legend { display: none; }
.media-frame:fullscreen .media-frame__stage, .media-frame.is-fs .media-frame__stage { flex: 1; aspect-ratio: auto; }
.media-frame:fullscreen .media-frame__video, .media-frame.is-fs .media-frame__video { object-fit: contain; }
.media-frame:fullscreen .mf-ctrl [data-fullscreen], .media-frame.is-fs .mf-ctrl [data-fullscreen] { display: none; }
.media-frame:fullscreen .mf-fsbar, .media-frame.is-fs .mf-fsbar {
  display: flex; position: absolute; left: 0; right: 0; top: 0; z-index: 3; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 28px; background: linear-gradient(180deg, rgba(6, 12, 24, 0.8), transparent);
}
.mf-fsbar__title { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--ivory); }
.mf-fsbar__title em { color: var(--gold-hi); }
.media-frame:fullscreen .mf-fsquality:not([hidden]), .media-frame.is-fs .mf-fsquality:not([hidden]) { display: inline-flex; position: absolute; left: 28px; bottom: 26px; z-index: 3; padding: 8px 14px; border-radius: 999px; background: rgba(6, 12, 24, 0.6); color: rgba(246, 242, 234, 0.85); }
html.has-fs-frame { overflow: hidden; }

@media (max-width: 600px) {
  .mf-quality { display: none !important; }
  .media-frame .media-frame__tabs .mf-fs { padding: 0 12px; }
  .media-frame .media-frame__tabs .mf-fs span { display: none; }
  .media-frame__tabs button { padding: 10px 12px; }
  .mf-ctrl { right: 12px; bottom: 12px; }
}

/* Full-screen transitions */
.media-frame:fullscreen, .media-frame.is-fs { animation: fsIn 0.35s var(--ease); }
@keyframes fsIn { from { opacity: 0; } to { opacity: 1; } }
.media-frame.fs-return { animation: fsReturn 0.55s var(--ease); }
@keyframes fsReturn { from { opacity: 0.35; transform: scale(1.025); } to { opacity: 1; transform: none; } }
.media-frame-placeholder { width: 100%; }

/* YouTube link under the flyover */
.legend__yt { margin-left: auto; }
.legend__yt a { display: inline-flex; align-items: center; gap: 8px; color: rgba(246, 242, 234, 0.6); text-decoration: none; transition: color 0.25s; }
.legend__yt a:hover { color: var(--gold-hi); }
.legend__yt svg { width: 18px; height: 18px; }
@media (max-width: 600px) { .legend__yt { margin-left: 0; } }

/* ==========================================================================
   The build — scroll-driven 3D
   ========================================================================== */
.build-intro { background: var(--navy-950); color: var(--ivory); text-align: center; padding: clamp(90px, 12vw, 150px) 0 40px; }
.build-intro__hint { margin: 22px 0 0; color: rgba(246, 242, 234, 0.55); font-size: 0.95rem; }
.build { position: relative; height: 700vh; background: var(--navy-950); }
.build__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--navy-950) url("../assets/img/build-fallback.webp") center / cover no-repeat; }
.build.is-live .build__sticky { background-image: none; }
.build__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.build__vignette { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 12, 24, 0.62), rgba(6, 12, 24, 0.15) 45%, transparent 60%),
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(6, 12, 24, 0.5) 100%),
    linear-gradient(180deg, var(--navy-950), transparent 14%, transparent 62%, rgba(6, 12, 24, 0.75)); }
.build__chapter { position: absolute; left: clamp(20px, 6vw, 96px); bottom: clamp(70px, 14vh, 140px); max-width: 540px; opacity: 0; will-change: transform, opacity; color: var(--ivory); }
.build__num { font-family: var(--serif); font-style: italic; color: var(--gold-hi); font-size: 1.2rem; }
.build__chapter h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.02; margin: 6px 0 14px; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45); }
.build__chapter h3 em { color: var(--gold-hi); }
.build__chapter p { margin: 0; font-size: 1.05rem; line-height: 1.6; color: rgba(246, 242, 234, 0.88); text-shadow: 0 1px 16px rgba(0, 0, 0, 0.6); }
.build__stat { position: absolute; right: clamp(20px, 6vw, 96px); top: clamp(100px, 16vh, 160px); text-align: right; opacity: 0; will-change: transform, opacity; color: var(--ivory); }
.build__stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 7vw, 6rem); line-height: 1; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.build__stat span { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-hi); font-weight: 700; }
.build__rail { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.build__rail i { width: 6px; height: 6px; border-radius: 50%; background: rgba(246, 242, 234, 0.3); transition: all 0.3s; }
.build__rail i.on { background: var(--gold); box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.25); }
.build__note { position: absolute; right: clamp(20px, 6vw, 96px); bottom: 22px; margin: 0; font-size: 0.72rem; color: rgba(246, 242, 234, 0.45); }

/* No WebGL: a single still frame with the last chapter */
.build.is-static { height: auto; }
.build.is-static .build__sticky { position: relative; height: 80vh; }
.build.is-static .build__chapter[data-in="0.84"] { opacity: 1 !important; }
.build.is-static .build__rail, .build.is-static .build__stat { display: none; }

@media (max-width: 700px) {
  .build { height: 600vh; }
  .build__stat { top: 84px; }
  .build__stat b { font-size: 2.8rem; }
  .build__chapter { right: 20px; bottom: 64px; }
  .build__chapter p { font-size: 0.95rem; }
  .build__rail { right: 10px; }
}

/* Connection route map (Sites section) */
.route-map { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: 56px; padding: clamp(18px, 3vw, 28px); border-radius: var(--radius); background: var(--navy-900); color: var(--ivory); }
.route-map__figure { border-radius: 12px; overflow: hidden; background: radial-gradient(120% 90% at 40% 30%, #13233f, #0a1426); }
.route-map__svg { display: block; width: 100%; height: auto; }
.route-map__text .h3 { color: var(--ivory); }
.route-map__text .h3 em { color: var(--gold-hi); }
.route-map__text > p { color: rgba(246, 242, 234, 0.75); margin: 0 0 22px; }
.route-map__text .fine { color: rgba(246, 242, 234, 0.45); margin: 18px 0 0; }
.route-map__legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.92rem; color: rgba(246, 242, 234, 0.85); }
.route-map__legend li { display: flex; align-items: center; gap: 12px; }
.lg { flex: none; width: 26px; height: 14px; border-radius: 3px; }
.lg--pv { background: rgba(217, 164, 65, 0.3); border: 1.5px solid #f2cd7c; }
.lg--bess { background: #7fd8a8; }
.lg--tx { width: 14px; margin: 0 6px; background: #f2cd7c; border: 2px solid #0a1426; box-shadow: 0 0 0 1.5px #f2cd7c; }
.lg--c400 { height: 4px; background: #e07ad8; }
.lg--c33 { height: 0; border-top: 2.5px dashed #f6f2ea; border-radius: 0; }
.lg--sub { background: rgba(176, 122, 224, 0.35); border: 1.5px solid #b07ae0; }

.rm-grid line { stroke: rgba(246, 242, 234, 0.06); stroke-width: 1; }
.rm-pv path { fill: rgba(217, 164, 65, 0.24); stroke: #f2cd7c; stroke-width: 1.4; stroke-linejoin: round; }
.rm-bess path { fill: #7fd8a8; stroke: #0a1426; stroke-width: 0.8; }
.rm-sub path { fill: rgba(176, 122, 224, 0.3); stroke: #b07ae0; stroke-width: 1.6; }
.rm-c400, .rm-c33 { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease) 0.3s; }
.rm-c400 { stroke: #e07ad8; stroke-width: 4.5; }
.rm-c33 { stroke: #f6f2ea; stroke-width: 2.5; stroke-dasharray: 0.012 0.009; stroke-dashoffset: 0; opacity: 0; transition: opacity 1s var(--ease) 1.4s; }
.route-map.is-in .rm-c400, html:not(.js) .rm-c400 { stroke-dashoffset: 0; }
.route-map.is-in .rm-c33, html:not(.js) .rm-c33 { opacity: 1; }
.rm-tx { fill: #f2cd7c; stroke: #0a1426; stroke-width: 3; }
.rm-label { font-family: var(--sans); font-size: 15px; font-weight: 600; fill: rgba(246, 242, 234, 0.9); paint-order: stroke; stroke: #0a1426; stroke-width: 4px; stroke-linejoin: round; }
.rm-big { font-family: var(--serif); font-weight: 400; font-size: 24px; fill: #f6f2ea; }
.rm-gold { fill: #f2cd7c; }
.rm-violet { fill: #d4b3f0; }
.rm-magenta { fill: #f0a6ea; }
.rm-north path { fill: #f2cd7c; }
.rm-north text, .rm-scale text { fill: rgba(246, 242, 234, 0.7); font-family: var(--sans); font-size: 13px; font-weight: 700; }
.rm-scale line { stroke: rgba(246, 242, 234, 0.7); stroke-width: 2; }
@media (max-width: 900px) { .route-map { grid-template-columns: 1fr; } }
