/* ================================================================
   RENASCIMENTO · HUMANISMO · REFORMA
   Editorial cinematic — inspired by Awwwards typography sites
   ================================================================ */

:root{
  --bg:        #0d0a07;
  --bg-2:      #14100b;
  --bg-card:   #1a1410;
  --ink:       #f2e9d7;
  --ink-dim:   #a89884;
  --ink-muted: #6b5e4d;
  --gold:      #c9a35a;
  --gold-2:    #e6c478;
  --crimson:   #8a2a2a;
  --line:      rgba(242,233,215,0.10);
  --line-2:    rgba(242,233,215,0.18);

  --serif:   'Cormorant Garamond', 'Garamond', serif;
  --display: 'Italiana', 'Cormorant Garamond', serif;
  --sans:    'Inter', system-ui, sans-serif;
}

*{ box-sizing: border-box; margin:0; padding:0; }

html{ scroll-behavior: smooth; }
html, body{
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection{ background: var(--gold); color: var(--bg); }

img{ display:block; max-width:100%; }

/* ===== Background canvas ===== */
#bg-canvas{
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.film-grain{
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ===== INK TRAIL CANVAS ===== */
#ink-canvas{
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9;
}

/* ===== LOADER ===== */
#loader{
  position: fixed; inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 28px;
  transition: opacity 1s ease, visibility 1s ease;
}
#loader.hide{ opacity:0; visibility: hidden; pointer-events: none; }
.loader-mark{
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  color: var(--gold);
  text-transform: uppercase;
}
.loader-bar{
  width: 260px; height: 1px;
  background: var(--line);
  overflow: hidden;
}
.loader-fill{
  height: 100%; width: 0%;
  background: var(--gold);
  animation: fill 1.6s ease forwards;
}
@keyframes fill{ to{ width: 100%; } }
.loader-counter{
  font-family: var(--display);
  font-size: 3rem;
  color: var(--ink);
  letter-spacing: 0.05em;
}
.loader-counter i{
  font-size: 0.5em;
  font-style: normal;
  color: var(--gold);
  margin-left: 4px;
}

/* ===== TOP HEADER ===== */
#topbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 20px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  mix-blend-mode: difference;
  pointer-events: none;
}
#topbar > *{ pointer-events: auto; }
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{ color: var(--gold); font-size: 0.9rem; }
.brand-text{ font-weight: 500; }

#nav{
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: nowrap;
}
#nav a{
  color: var(--ink);
  text-decoration: none;
  opacity: 0.55;
  transition: opacity .3s ease, color .3s ease;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.66rem;
  white-space: nowrap;
}
#nav a::before{
  content: attr(data-i);
  color: var(--gold);
  font-size: 0.58rem;
  opacity: 0.7;
}
#nav a:hover, #nav a.active{ opacity: 1; color: var(--gold-2); }

.meta{ opacity: 0.55; font-size: 0.66rem; white-space: nowrap; }

/* ===== CURSOR ===== */
body{ cursor: none; }
a, button, [data-tilt], .gal-item, .fig-card, .pillar, .branch, .feature, .sola, .legacy-col{ cursor: none; }
#cursor{
  position: fixed;
  width: 8px; height: 8px;
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%,-50%);
}
#cursor-dot{
  width: 8px; height: 8px;
  background: var(--gold-2);
  border-radius: 50%;
  transition: transform 0.15s ease;
}
#cursor-ring{
  position: fixed;
  width: 42px; height: 42px;
  border: 1px solid rgba(201,163,90,0.5);
  border-radius: 50%;
  z-index: 9998;
  pointer-events: none;
  transform: translate(-50%,-50%);
  transition: width .4s ease, height .4s ease, opacity .4s ease;
}
body.cursor-hover #cursor-dot{ transform: scale(2); }
body.cursor-hover #cursor-ring{
  width: 70px; height: 70px;
  border-color: rgba(201,163,90,0.25);
}

/* ===== SECTIONS ===== */
.scene{
  position: relative;
  z-index: 5;
  padding: 160px max(40px, 7vw) 140px;
}
.scene.dark{ background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.4) 70%, transparent); }

/* ===== HERO ===== */
.hero{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 40px 80px;
  position: relative;
  overflow: hidden;
}

/* Cinematic background painting */
.hero-bg{
  position: absolute; inset: -5%;
  background: url('images/adao.jpg') 50% 35% / cover no-repeat;
  filter: sepia(20%) brightness(0.48) contrast(1.1);
  z-index: 0;
  opacity: 0;
  will-change: transform;
}
/* dark radial vignette above the image */
.hero::after{
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 44%, rgba(13,10,7,0.04) 0%, rgba(13,10,7,0.72) 58%, rgba(13,10,7,0.97) 100%);
  z-index: 1;
  pointer-events: none;
}
/* all hero content sits above overlay */
.hero-ring,
.hero-eyebrow,
.hero-title,
.hero-tagline,
.hero-quote,
.scroll-cue,
.corner{ position: relative; z-index: 2; }


/* rotating orbital ring */
.hero-ring{
  position: absolute;
  inset: 5vw;
  border: 1px solid rgba(201,163,90,0.12);
  border-radius: 50%;
  animation: slowSpin 40s linear infinite;
  pointer-events: none;
}
.hero-ring::before{
  content: '✦';
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 1.1rem;
  background: var(--bg);
  padding: 0 8px;
}
@keyframes slowSpin{ to{ transform: rotate(360deg); } }

/* corner ornaments */
.corner{
  position: absolute;
  width: 56px; height: 56px;
  pointer-events: none;
  border: 1px solid rgba(201,163,90,0.35);
  opacity: 0;
}
.tl{ top: 36px; left: 36px; border-right: none; border-bottom: none; }
.tr{ top: 36px; right: 36px; border-left: none; border-bottom: none; }
.bl{ bottom: 36px; left: 36px; border-right: none; border-top: none; }
.br{ bottom: 36px; right: 36px; border-left: none; border-top: none; }
.corner::after{
  content: '·';
  position: absolute;
  color: var(--gold);
  font-size: 2rem;
  line-height: 0;
}
.tl::after{ top: -1px; left: -1px; }
.tr::after{ top: -1px; right: -1px; }
.bl::after{ bottom: -1px; left: -1px; }
.br::after{ bottom: -1px; right: -1px; }

.hero-eyebrow{
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 52px;
  opacity: 0;
}

.hero-title{
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4.5rem, 15vw, 14rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}
.hero-title em{
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-2);
  font-size: 1.05em;
  text-shadow: 0 0 80px rgba(230,196,120,0.25);
}

/* mask-reveal animation */
.ht-line{ display: block; overflow: hidden; }
.ht-mask{ display: block; overflow: hidden; }
.ht-inner{
  display: block;
}

.hero-tagline{
  font-family: var(--display);
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 60px;
  opacity: 0;
}

.hero-quote{
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  color: var(--ink-dim);
  max-width: 520px;
  margin: 0 auto 70px;
  opacity: 0;
  quotes: none;
  line-height: 1.65;
}

.scroll-cue{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  opacity: 0;
}
.sc-label{
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
}
.sc-line{
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  position: relative;
  overflow: hidden;
}
.sc-line::after{
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold-2));
  animation: linePulse 2.4s ease-in-out infinite;
}
@keyframes linePulse{ to{ top: 100%; } }

@keyframes fadeUp{
  from{ opacity: 0; transform: translateY(20px); }
  to  { opacity: 1; transform: translateY(0); }
}


/* ===== MARQUEE ===== */
.marquee{
  position: relative;
  z-index: 5;
  overflow: hidden;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.3);
/* ===== PER-CHARACTER SPANS ===== */
.char{ display: inline-block; }
/* ===== SECTION WARM BACKGROUNDS ===== */
#renascimento{ background: linear-gradient(155deg, rgba(45,26,8,0.55) 0%, rgba(13,10,7,0.15) 55%); }
#humanismo   { background: linear-gradient(155deg, rgba(13,10,7,0.15) 0%, rgba(32,19,7,0.50) 100%); }
#reforma     { background: linear-gradient(155deg, rgba(38,8,8,0.45) 0%, rgba(13,10,7,0.15) 55%); }
#linha       { background: rgba(18,13,7,0.45); }
#figuras     { background: linear-gradient(155deg, rgba(22,15,6,0.50) 0%, rgba(13,10,7,0.15) 100%); }
#legado      { background: linear-gradient(155deg, rgba(13,10,7,0.15) 0%, rgba(45,26,8,0.55) 100%); }
}
.marquee-track{
  display: flex;
  gap: 60px;
  white-space: nowrap;
  width: max-content;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--ink);
  letter-spacing: 0.04em;
}
.marquee-track span{ display: inline-block; }
.marquee-track span:nth-child(even){ color: var(--gold); }

/* ===== CHAPTER HEAD ===== */
.chapter-head{
  margin-bottom: 100px;
  max-width: 1500px;
}
.chapter-head.center{ text-align: center; margin-left: auto; margin-right: auto; }
.chapter-num{
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 30px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold);
}
.display-title{
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 20px;
}
.chapter-deck{
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-dim);
  max-width: 600px;
}
.center .chapter-deck{ margin-left:auto; margin-right:auto; }

/* ===== 12-COL GRID ===== */
.grid-12{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 60px;
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
}
.grid-12.spaced{ margin-top: 140px; align-items: flex-start; }
.grid-12.reverse .col-img{ order: 2; }
.col-span-5{ grid-column: span 5; }
.col-span-6{ grid-column: span 6; }
.col-span-7{ grid-column: span 7; }

.col-text .lead{
  font-size: 1.4rem;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 28px;
  font-weight: 400;
}
.col-text p{ margin-bottom: 22px; color: var(--ink-dim); font-size: 1.05rem; }
.col-text em{
  font-style: italic;
  color: var(--gold-2);
}

/* ===== FIGURE PHOTO ===== */
.figure-photo{
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
}
.figure-photo.tall{ aspect-ratio: 3/4; }
.figure-photo img{
  width: 100%; height: 110%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05) brightness(0.92);
  transition: transform 1.2s cubic-bezier(.16,.84,.34,1);
}
.figure-photo:hover img{ transform: scale(1.04); }
.figure-photo figcaption{
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 24px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.cap-num{ color: var(--gold); }
.cap-text{ color: var(--ink); text-align: right; }

/* ===== BIG STATS ===== */
.big-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 140px auto;
  max-width: 1500px;
  padding-top: 60px;
  border-top: 1px solid var(--line);
}
.stat{
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-right: 30px;
}
.stat-num{
  font-family: var(--display);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  line-height: 1;
  color: var(--gold-2);
  letter-spacing: -0.02em;
}
.stat-lbl{
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  line-height: 1.7;
}

/* ===== SECTION H ===== */
.section-h{
  font-family: var(--display);
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 30px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.section-h.center{ text-align: center; }
.section-h i{ color: var(--gold-2); font-family: var(--serif); }

/* ===== PILLARS ===== */
.pillar-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.pillar{
  padding: 30px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .4s ease;
  cursor: default;
}
.pillar:hover{ background: rgba(201,163,90,0.05); }
.p-num{
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 14px;
}
.pillar b{
  display: block;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
}
.p-desc{
  font-size: 0.95rem;
  color: var(--ink-dim);
  font-style: italic;
}

/* ===== GALLERY STRIP ===== */
.gallery-strip{
  margin: 140px auto 0;
  max-width: 1500px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.gal-item{
  position: relative;
  background: var(--bg-2);
  aspect-ratio: 3/4;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .6s cubic-bezier(.16,.84,.34,1);
  cursor: pointer;
}
.gal-item img{
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.1) brightness(0.85);
  transition: filter .6s ease, transform .8s ease;
}
.gal-item:hover img{ filter: grayscale(0) brightness(1); transform: scale(1.05); }
.gal-item figcaption{
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
}
.gal-item figcaption b{ font-weight: 600; }
.gal-item figcaption span{ color: var(--gold); opacity: 0.85; }

/* ===== PULL QUOTE ===== */
.pull-quote{
  margin: 50px 0 10px;
  padding: 36px 0 30px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.4;
  color: var(--ink);
  font-style: normal;
  position: relative;
}
.pull-quote::before{
  content: '“';
  position: absolute;
  top: -8px; left: -8px;
  font-family: var(--display);
  font-size: 4rem;
  color: var(--gold);
  line-height: 1;
}
.pull-quote cite{
  display: block;
  margin-top: 20px;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

/* ===== FEATURES ROW ===== */
.features-row{
  margin: 140px auto 0;
  max-width: 1500px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.feature{
  padding: 36px 28px 30px;
  border-right: 1px solid var(--line);
  transition: background .4s ease;
}
.feature:last-child{ border-right: none; }
.feature:hover{ background: rgba(201,163,90,0.04); }
.f-num{
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  display: block;
  margin-bottom: 20px;
}
.feature h4{
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 14px;
}
.feature p{
  font-size: 0.98rem;
  color: var(--ink-dim);
  line-height: 1.6;
}

/* ===== SOLAS ===== */
.solas{
  margin: 140px auto 0;
  max-width: 1500px;
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sola-row{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.sola{
  text-align: center;
  padding: 20px;
  border-left: 1px solid var(--line);
}
.sola:first-child{ border-left: none; }
.sola .s-lat{
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--gold-2);
  margin-bottom: 10px;
}
.sola .s-pt{
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ===== BRANCHES ===== */
.branches{
  margin: 140px auto 0;
  max-width: 1500px;
}
.branch-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.branch{
  padding: 40px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .4s ease;
}
.branch:last-child{ border-right: none; }
.branch:hover{ background: rgba(201,163,90,0.04); }
.b-region{
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.branch h4{
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--ink);
}
.branch p{ color: var(--ink-dim); font-size: 1rem; }

/* ===== COUNTER BOX ===== */
.counter-box{
  margin: 100px auto 0;
  max-width: 1500px;
  padding: 60px;
  border: 1px solid var(--line-2);
  background: linear-gradient(135deg, rgba(138,42,42,0.08), rgba(20,16,11,0.6));
  position: relative;
}
.c-tag{
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 1px solid rgba(138,42,42,0.5);
}
.counter-box h3{
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.2rem;
  color: var(--ink);
  margin-bottom: 18px;
}
.counter-box p{
  color: var(--ink-dim);
  font-size: 1.1rem;
  max-width: 900px;
}

/* ===== TIMELINE ===== */
.timeline{
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}
/* Horizontal layout — desktop only */
@media (min-width: 901px){
  #linha{ overflow: hidden; position: relative; }
  #linha .timeline{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: max-content;
    max-width: none;
    padding: 80px 80px 100px;
    gap: 0;
  }
  #linha .tl-rail{ display: none; }
  #linha .tl-item{
    width: 300px;
    flex-shrink: 0;
    padding: 0 50px 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    border-bottom: none;
    border-right: 1px solid var(--line);
    margin-right: 50px;
    transition: background 0s;
  }
  #linha .tl-item:hover{ background: transparent; }
  #linha .tl-dot{
    position: static;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--gold);
    display: block;
    margin-bottom: 6px;
    flex-shrink: 0;
  }
  #linha .tl-item.highlight .tl-dot{
    background: var(--gold-2);
    box-shadow: 0 0 0 4px rgba(230,196,120,.18), 0 0 20px var(--gold);
  }
  #linha .tl-y{ font-size: 3.2rem; line-height: 1; }
  #linha .tl-card{ flex: 1; }
  /* progress bar at top of timeline */
  #linha::before{
    content: '';
    position: sticky;
    top: 0;
    display: block;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-2));
    z-index: 10;
    width: 0%;
  }
}
.tl-rail{
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  width: 1px;
  background: var(--line-2);
}
.tl-item{
  position: relative;
  padding: 28px 0 28px 70px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 30px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  transition: background .3s ease;
}
.tl-item:hover{ background: rgba(201,163,90,0.03); }
.tl-dot{
  position: absolute;
  left: 14px; top: 38px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--gold);
}
.tl-item.highlight .tl-dot{
  background: var(--gold-2);
  box-shadow: 0 0 0 4px rgba(230,196,120,0.18), 0 0 20px var(--gold);
}
.tl-y{
  font-family: var(--display);
  font-size: 2.2rem;
  color: var(--gold-2);
  line-height: 1;
}
.tl-card h4{
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 6px;
}
.tl-card p{ font-size: 1rem; color: var(--ink-dim); }

/* ===== FIGURES GRID ===== */
.figures-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 30px;
  max-width: 1500px;
  margin: 0 auto;
}
.fig-card{
  position: relative;
  transition: transform .5s cubic-bezier(.16,.84,.34,1);
}
.fig-img{
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-2);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}
.fig-img::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 40%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.fig-card:hover .fig-img::after{ opacity: 1; }
.fig-card{ border: 1px solid rgba(201,163,90,0.08); transition: border-color .4s ease, transform .5s cubic-bezier(.16,.84,.34,1); }
.fig-card:hover{ border-color: rgba(201,163,90,0.35); }
.fig-img img{
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.05) brightness(0.88);
  transition: transform 1s ease, filter .6s ease;
}
.fig-card:hover .fig-img img{
  transform: scale(1.06);
  filter: grayscale(0) brightness(1);
}
.fig-tag{
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.fig-meta h3{
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.fig-years{
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 12px;
}
.fig-meta p{
  font-size: 0.95rem;
  color: var(--ink-dim);
  line-height: 1.55;
}

/* ===== LEGACY ===== */
.legacy-grid{
  max-width: 1500px;
  margin: 0 auto 120px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.legacy-col{
  padding: 50px 30px;
  border-right: 1px solid var(--line);
  transition: background .4s ease;
}
.legacy-col:last-child{ border-right: none; }
.legacy-col:hover{ background: rgba(201,163,90,0.04); }
.leg-num{
  display: block;
  font-family: var(--display);
  font-size: 3rem;
  color: var(--gold-2);
  margin-bottom: 14px;
  line-height: 1;
}
.legacy-col h3{
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--ink);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.legacy-col ul{ list-style: none; }
.legacy-col li{
  font-size: 0.98rem;
  color: var(--ink-dim);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  padding-left: 18px;
}
.legacy-col li:last-child{ border-bottom: none; }
.legacy-col li::before{
  content: '·';
  position: absolute;
  left: 4px; top: 8px;
  color: var(--gold);
  font-size: 1.2rem;
}

.closing{
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 0;
}
.closing-text{
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 50px;
  font-weight: 400;
}
.closing-mark{
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ===== FOOTER ===== */
footer{
  position: relative;
  z-index: 5;
  padding: 60px 36px 40px;
  text-align: center;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
}
.foot-row{
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 14px;
}
.foot-dot{ color: var(--gold); }
.foot-small{
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* ===== REVEAL ===== */
.reveal{
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.in{ opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px){
  .meta{ display: none; }
  #topbar{ grid-template-columns: auto 1fr; }
}
@media (max-width: 1100px){
  .figures-grid{ grid-template-columns: repeat(2, 1fr); }
  .gallery-strip{ grid-template-columns: repeat(2, 1fr); }
  .features-row{ grid-template-columns: repeat(2, 1fr); }
  .features-row .feature:nth-child(2){ border-right: none; }
  .features-row .feature{ border-bottom: 1px solid var(--line); }
  .sola-row{ grid-template-columns: repeat(2, 1fr); }
  .legacy-grid{ grid-template-columns: repeat(2, 1fr); }
  .legacy-col:nth-child(2){ border-right: none; }
  .legacy-col:nth-child(1), .legacy-col:nth-child(2){ border-bottom: 1px solid var(--line); }
  .branch-grid{ grid-template-columns: 1fr; }
  .branch{ border-right: none; }
}
@media (max-width: 900px){
  #topbar{ padding: 18px 24px; }
  #nav{ display: none; }
  .scene{ padding: 120px 24px; }
  .grid-12{ grid-template-columns: 1fr; gap: 40px; }
  .grid-12.reverse .col-img{ order: 0; }
  .col-span-5, .col-span-6, .col-span-7{ grid-column: 1 / -1; }
  .big-stats{ grid-template-columns: 1fr; gap: 50px; }
  .pillar-grid{ grid-template-columns: 1fr; }
  .hero-meta-left, .hero-meta-right{ display: none; }
  .w2{ padding-left: 0; }
  .hero-sub-row{ flex-wrap: wrap; gap: 30px; }
  .hero-footer{ flex-direction: column; align-items: flex-start; gap: 30px; }
  .figures-grid, .gallery-strip{ grid-template-columns: 1fr; }
  .sola-row{ grid-template-columns: 1fr; }
  .legacy-grid{ grid-template-columns: 1fr; }
  .legacy-col{ border-right: none; border-bottom: 1px solid var(--line); }
  .counter-box{ padding: 40px 28px; }
  .solas{ padding: 40px 20px; }
}
