/* =====================================================
   TURITA — One-page site (faithful to PDF reference)
   ===================================================== */

:root{
  --green:#00A859;
  --green-dk:#008844;
  --teal:#0095AB;
  --ink:#0E1011;
  --ink-2:#1d2024;
  --muted:#6b7077;
  --line:#e7e7e2;
  --bg:#ffffff;
  --bg-soft:#fafaf7;
  --max:1200px;
  --gutter:clamp(20px, 5vw, 64px);
  --body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:var(--body);
  color:var(--ink);
  background:var(--bg);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit}

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

/* Strong family for titles — no display font, just heavy weight Manrope */
h1,h2,h3,h4{font-family:var(--body);font-weight:300;letter-spacing:-.005em;margin:0}
h1 strong,h2 strong,h3 strong,h4 strong{font-weight:800}

/* =====================================================
   HEADER
   ===================================================== */
.site-header{
  position:sticky;top:0;z-index:50;
  background:#fff;
  border-bottom:1px solid #f0f0ec;
}
.header-inner{
  max-width:var(--max);margin-inline:auto;padding:18px var(--gutter);
  display:flex;align-items:center;gap:32px;
}
.brand img{height:30px;width:auto}
.primary-nav{
  display:flex;gap:34px;margin-left:auto;
  font-family:var(--body);font-weight:600;font-size:13px;
  letter-spacing:.06em;text-transform:uppercase;color:var(--ink);
}
.primary-nav a{position:relative;padding:6px 0;transition:color .2s ease}
.primary-nav a:hover{color:var(--green)}

.nav-toggle{
  display:none;margin-left:auto;
  width:42px;height:42px;border-radius:8px;border:1px solid var(--line);
  background:#fff;cursor:pointer;
  flex-direction:column;justify-content:center;align-items:center;gap:5px;
}
.nav-toggle span{display:block;width:18px;height:2px;background:var(--ink);border-radius:2px}

.mobile-nav{
  display:flex;flex-direction:column;gap:0;
  padding:6px var(--gutter) 14px;background:#fff;
  border-top:1px solid var(--line);
}
.mobile-nav a{padding:14px 4px;border-bottom:1px solid var(--line);font-weight:600;font-size:13px;letter-spacing:.1em;text-transform:uppercase}
.mobile-nav a:last-child{border-bottom:none}

@media (max-width:900px){
  .primary-nav{display:none}
  .nav-toggle{display:flex}
}

/* =====================================================
   HERO
   ===================================================== */
.hero{
  position:relative;
  min-height:560px;
  isolation:isolate;
  overflow:hidden;
}
.hero-media{position:absolute;inset:0;z-index:-2}
.hero-media img{width:100%;height:100%;object-fit:cover}
.hero-overlay{
  position:absolute;inset:0;z-index:-1;
  background:linear-gradient(90deg,
    rgba(0,168,89,.85) 0%,
    rgba(0,168,89,.55) 28%,
    rgba(0,168,89,.05) 50%,
    rgba(0,0,0,0) 70%);
}
.hero-inner{
  max-width:var(--max);margin-inline:auto;padding:72px var(--gutter) 80px;
  display:grid;grid-template-columns:1.05fr 1fr;gap:40px;
  min-height:560px;align-items:center;
}
.display{
  font-family:var(--body);
  font-weight:300;
  font-size:clamp(34px,4.4vw,58px);
  line-height:1.05;
  letter-spacing:-.02em;
  text-transform:uppercase;
  color:#fff;
  margin:0;
}
.display strong{font-weight:900}

.hero-right{align-self:flex-end;justify-self:end;text-align:right}
.hero-tagline{
  font-family:var(--body);font-weight:300;
  font-size:clamp(20px,2vw,28px);line-height:1.15;
  color:#fff;
  text-shadow:0 2px 18px rgba(0,0,0,.45);
  margin:0;
}
.hero-tagline strong{font-weight:800}

@media (max-width:880px){
  .hero{min-height:auto}
  .hero-inner{grid-template-columns:1fr;gap:28px;padding:52px var(--gutter) 60px;min-height:auto}
  .hero-overlay{
    background:linear-gradient(180deg,
      rgba(0,168,89,.85) 0%,
      rgba(0,168,89,.55) 60%,
      rgba(0,0,0,.55) 100%);
  }
  .hero-right{justify-self:start;text-align:left}
}

/* =====================================================
   BIG NUMBERS
   ===================================================== */
.numbers{
  position:relative;
  background:#fff;
  padding:clamp(80px,9vw,140px) 0;
  overflow:hidden;
}
.numbers-watermark{
  position:absolute;
  left:-7%;top:50%;transform:translateY(-50%);
  width:46%;max-width:600px;
  z-index:0;opacity:.95;
  pointer-events:none;
}
.numbers-watermark img{width:100%;height:auto}

.numbers-inner{position:relative;z-index:1;margin-left: 230px;}
.big-numbers-title{
  font-family:var(--body);
  font-weight:800;
  font-size:clamp(40px,5vw,72px);
  letter-spacing:-.01em;
  margin:0 0 60px;
  text-align:center;
}
.big-numbers-title .green{color:var(--green)}

.number-grid{
  list-style:none;padding:0;margin:0;
  display:grid;grid-template-columns:repeat(2,1fr);
  gap:48px 64px;max-width:760px;margin-left:auto;
}
.number-card{
  display:flex;flex-direction:column;gap:14px;
}
.num-label{
  font-family:var(--body);font-weight:300;
  font-size:18px;line-height:1.2;color:var(--ink);
}
.num-value{
  font-family:var(--body);font-weight:900;
  font-size:clamp(48px,5.6vw,76px);
  line-height:1;color:var(--ink);letter-spacing:-.02em;
}

@media (max-width:880px){
  .numbers-watermark{width:80%;left:-30%;opacity:.18}
  .number-grid{grid-template-columns:1fr;margin-left:0}
}

/* =====================================================
   ABOUT BAND (highway image)
   ===================================================== */
.about-band{padding:0;background:#fff}
.about-band-figure{margin:0;height:clamp(220px,30vw,400px);overflow:hidden}
.about-band-figure img{width:100%;height:100%;object-fit:cover}

/* =====================================================
   VISION (Com visão estratégica)
   ===================================================== */
.vision{padding:clamp(80px,9vw,140px) 0;background:#fff}
.vision-grid{
  display:grid;grid-template-columns:1fr 1.4fr;gap:clamp(40px,8vw,120px);
  align-items:center;max-width:1100px;
}
.vision-title{
  font-family:var(--body);font-weight:300;
  font-size:clamp(34px,4.2vw,52px);line-height:1.05;
  letter-spacing:-.01em;text-transform:uppercase;color:var(--ink);
  margin:0;
}
.vision-title strong{font-weight:900}
.vision-copy{
  font-size:clamp(16px,1.4vw,19px);
  line-height:1.55;color:var(--ink);
  max-width:48ch;margin:0;
}

@media (max-width:760px){
  .vision-grid{grid-template-columns:1fr;gap:24px}
}

/* =====================================================
   ATUAÇÃO — Engenharia & Infraestrutura
   ===================================================== */
.action{
  background:var(--ink);
  color:#fff;
  padding:clamp(80px,9vw,140px) 0;
  position:relative;
}

.eng-block{
  display:grid;grid-template-columns:1fr 1.2fr;
  gap:clamp(32px,5vw,80px);
  align-items:flex-start;
  padding:48px 0;
  border-top:1px solid rgba(255,255,255,.08);
}
.eng-block:first-of-type{border-top:none;padding-top:0}

.eng-copy{display:flex;flex-direction:column;gap:28px}
.eng-title{
  font-family:var(--body);font-weight:300;
  font-size:clamp(22px,2.2vw,30px);
  line-height:1.15;text-transform:uppercase;
  color:#fff;letter-spacing:.005em;
  margin:0;
}
.eng-title strong{font-weight:900}
.eng-sub{
  font-family:var(--body);font-weight:300;
  font-size:clamp(20px,2vw,26px);line-height:1.05;
  text-transform:uppercase;color:#fff;margin:0;
}
.eng-sub strong{font-weight:900}
.eng-lede{
  margin:0;color:rgba(255,255,255,.78);font-size:15px;line-height:1.55;
  max-width:38ch;
}

.eng-grid{
  display:grid;grid-template-columns:repeat(2,1fr);
  grid-template-rows:repeat(2,1fr);
  gap:14px;
  aspect-ratio:1.05/1;
}
.eng-tile{
  position:relative;margin:0;
  background-size:cover;background-position:center;
  border-radius:6px;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  min-height:160px;
  border:none;padding:0;cursor:pointer;
  font:inherit;color:inherit;
  transition:transform .35s ease;
}
.eng-tile:hover{transform:scale(1.015)}
.eng-tile:focus-visible{outline:3px solid var(--green);outline-offset:3px}
.eng-tile::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.15),rgba(0,0,0,.55));
  z-index:1;
}
.eng-tile .eng-logo{
  position:relative;z-index:2;
  max-height:46px;max-width:62%;width:auto;
  filter:brightness(0) invert(1);
}
.eng-tile-label{
  position:relative;z-index:2;
  font-family:var(--body);font-weight:600;
  font-size:clamp(14px,1.3vw,17px);line-height:1.25;
  color:#fff;text-align:center;margin:0;padding:14px;
}
.eng-tile--wide{
  /* still 1 cell in the grid; reserved for variant block */
}

@media (max-width:880px){
  .eng-block{grid-template-columns:1fr;padding:40px 0}
  .eng-grid{aspect-ratio:auto;grid-template-rows:repeat(2,200px)}
}

/* =====================================================
   GESTÃO DE ATIVOS
   ===================================================== */
.assets{background:#fff;padding:0}
.assets-split{
  display:grid;grid-template-columns:1.05fr 1fr;
  min-height:clamp(380px,50vw,600px);
}
.assets-image{
  position:relative;background:#000;overflow:hidden;
}
.assets-image img{
  width:100%;height:100%;object-fit:cover;opacity:.78;
}
.cbi-mark{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  text-align:center;color:#fff;
}
.cbi-letters{
  display:block;
  font-family:var(--body);font-weight:300;
  font-size:clamp(80px,9vw,140px);line-height:.85;
  letter-spacing:-.04em;
}
.cbi-tagline{
  display:block;margin-top:12px;
  font-family:var(--body);font-weight:300;
  font-size:clamp(13px,1.1vw,16px);line-height:1.35;
  letter-spacing:.04em;
}

.assets-copy{
  padding:clamp(40px,6vw,90px) clamp(24px,5vw,80px);
  display:flex;flex-direction:column;justify-content:center;gap:28px;
  position:relative;
}
.assets-copy::after{
  content:"";position:absolute;right:0;top:0;bottom:0;width:18px;background:var(--green);
}
.assets-title{
  font-family:var(--body);font-weight:300;
  font-size:clamp(34px,4.4vw,56px);line-height:.95;
  text-transform:uppercase;letter-spacing:-.015em;margin:0;
}
.assets-title strong{font-weight:900}
.assets-sub{
  font-family:var(--body);font-weight:300;
  font-size:clamp(18px,1.6vw,22px);line-height:1.2;
  text-transform:uppercase;letter-spacing:.005em;margin:0;
}
.assets-lede{
  margin:0;font-size:15px;line-height:1.6;color:var(--muted);
  max-width:42ch;
}

@media (max-width:880px){
  .assets-split{grid-template-columns:1fr}
  .assets-image{min-height:300px}
  .assets-copy::after{display:none}
}

/* =====================================================
   CONCESSÕES E PPP'S
   ===================================================== */
.concessions{background:#fff;padding:clamp(80px,9vw,130px) 0 0}
.conc-title{
  font-family:var(--body);font-weight:900;
  font-size:clamp(34px,4vw,52px);line-height:1.05;
  margin:0 0 56px;letter-spacing:-.01em;
}

.conc-grid{
  list-style:none;padding:0;margin:0;
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:36px 48px;
}
.conc-row{
  display:flex;align-items:flex-start;gap:0px;
}
.conc-logo{
  width:150px;height:125px;flex-shrink:0;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:#fff;
}
.conc-logo img{
  max-width:150%;max-height:120%;width:250px;height:250px;object-fit:contain;
}
.conc-row p{
  margin:0;font-size:14px;line-height:1.5;color:var(--ink);
  padding-top:8px;
}

.conc-band-figure{
  margin:clamp(60px,7vw,100px) 0 0;
  height:clamp(240px,32vw,440px);overflow:hidden;
}
.conc-band-figure img{width:100%;height:100%;object-fit:cover}

@media (max-width:880px){
  .conc-grid{grid-template-columns:repeat(2,1fr);gap:32px}
}
@media (max-width:560px){
  .conc-grid{grid-template-columns:1fr}
}

/* =====================================================
   INCORPORADORA / TURITA DI
   ===================================================== */
.di{background:#fff;padding:0}
.di-split{
  display:grid;grid-template-columns:1.05fr 1fr;
  min-height:clamp(420px,55vw,640px);
}

.di-copy{
  display:flex;align-items:center;
  padding:clamp(40px,6vw,90px) clamp(24px,5vw,80px) clamp(40px,6vw,90px) 0;
  gap:clamp(20px,4vw,48px);
  position:relative;
}
.green-bar{
  width:18px;align-self:stretch;background:var(--green);flex-shrink:0;
}
.di-text{display:flex;flex-direction:column;gap:24px}
.di-eyebrow{
  font-family:var(--body);font-weight:900;
  font-size:75px;
  letter-spacing:.005em;text-transform:uppercase;margin:0;
}
.di-title{
  font-family:var(--body);font-weight:300;
  font-size:35px;line-height:45px;
  text-transform:uppercase;letter-spacing:-.005em;margin:0;
  color:var(--ink);
}
.di-lede{
  margin:0;font-size:25px;line-height:1.55;color:var(--muted);
}

.di-image{
  position:relative;
  background:linear-gradient(180deg,#1d2024,#0e1011);
  overflow:hidden;
  display: contents;
}
.di-image img:first-child{
  width:100%;height:85%;object-fit:contain;cover:center bottom;
}
.di-logo{
  position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);
  width:62%;max-width:340px;height:auto;
  filter:brightness(0) invert(1);
  opacity:.92;
}

@media (max-width:880px){
  .di-split{grid-template-columns:1fr}
  .di-copy{padding:48px var(--gutter)}
  .di-image{min-height:340px}
}

/* =====================================================
   ECOSSISTEMA — Timeline
   ===================================================== */
.ecosystem{background:#fff;padding:clamp(80px,9vw,130px) 0;position:relative;overflow:hidden}
.eco-head{display:flex;justify-content:flex-end;margin-bottom:60px}
.eco-title{
  font-family:var(--body);font-weight:300;
  font-size:clamp(22px,2.4vw,32px);line-height:1.15;
  letter-spacing:-.005em;text-transform:uppercase;
  text-align:right;margin:0;max-width:24ch;color:var(--ink);
}
.eco-title{font-weight:600}

.timeline-wrap{
  position:relative;
  display:flex;flex-direction:column;gap:80px;
}

.timeline-row{
  list-style:none;padding:0;margin:0;
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:32px;
  position:relative;
}
.timeline-row::before{
  content:"";position:absolute;
  top:96px;left:5%;right:5%;
  height:1px;background:var(--ink);
  z-index:0;
}
.timeline-row::after{
  /* curve continuation hint at right */
  content:"";position:absolute;top:96px;right:0;
  width:6px;height:6px;border-radius:50%;background:var(--ink);
  transform:translateX(50%) translateY(-50%);
}
.timeline-row--reverse{grid-template-columns:repeat(3,1fr)}

.t-node{
  display:flex;flex-direction:column;align-items:center;text-align:center;
  position:relative;z-index:1;
}
.t-year{
  font-family:var(--body);font-weight:600;
  font-size:13px;color:var(--ink);margin-bottom:14px;
  letter-spacing:.04em;
}
.t-circle{
  width:64px;height:64px;border-radius:50%;
  border:2px solid var(--ink);background:#fff;
  display:flex;align-items:center;justify-content:center;
  margin-bottom:18px;
}
.t-circle img{
  max-width:60%;max-height:55%;object-fit:contain;
}
.t-node h4{
  font-family:var(--body);font-weight:700;font-size:14px;
  line-height:1.25;color:var(--ink);margin:0 0 6px;
  text-transform:none;letter-spacing:0;
}
.t-node p{
  margin:0;font-size:12.5px;line-height:1.45;color:var(--ink);
  max-width:24ch;
}

@media (max-width:880px){
  .timeline-row,.timeline-row--reverse{grid-template-columns:repeat(2,1fr);gap:40px}
  .timeline-row::before,.timeline-row::after{display:none}
}
@media (max-width:520px){
  .timeline-row,.timeline-row--reverse{grid-template-columns:1fr}
}

/* =====================================================
   ESG — Ética e Compliance
   ===================================================== */
.esg{
  position:relative;background:#fff;padding:0;
  min-height:clamp(380px,50vw,560px);
  display:flex;align-items:center;
}
.esg-image{position:absolute;inset:0;overflow:hidden}
.esg-image img{width:100%;height:100%;object-fit:cover}
.esg-card{
  position:relative;z-index:2;
  background:#fff;
  padding:clamp(32px,4vw,56px);
  max-width:520px;
  margin-left:auto;margin-right:clamp(24px,8vw,120px);
  margin-top:clamp(60px,8vw,120px);margin-bottom:clamp(60px,8vw,120px);
  box-shadow:0 30px 80px -30px rgba(0,0,0,.25);
}
.esg-title{
  font-family:var(--body);font-weight:300;
  font-size:clamp(30px,3.6vw,48px);line-height:1;
  text-transform:uppercase;letter-spacing:-.01em;margin:0 0 24px;
}
.esg-title strong{font-weight:900}
.esg-copy{margin:0;font-size:15px;line-height:1.65;color:var(--ink)}

@media (max-width:760px){
  .esg{min-height:auto}
  .esg-image{position:relative;height:240px}
  .esg-image img{height:240px}
  .esg-card{
    margin:-60px var(--gutter) 60px;
    max-width:none;
  }
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer{background:var(--ink);color:rgba(255,255,255,.85);padding-top:64px}
.footer-grid{
  display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:48px;padding-bottom:56px;
}
.footer-brand img{height:30px;margin-bottom:18px;filter:brightness(0) invert(1)}
.footer-brand p{max-width:34ch;font-size:14px;color:rgba(255,255,255,.7);margin:0}
.footer-nav,.footer-contact{display:flex;flex-direction:column;gap:8px}
.footer-nav h4,.footer-contact h4{
  font-family:var(--body);font-weight:600;font-size:11px;letter-spacing:.18em;
  text-transform:uppercase;color:rgba(255,255,255,.55);margin:0 0 6px;
}
.footer-nav a{font-size:14px;color:rgba(255,255,255,.85);transition:color .2s ease}
.footer-nav a:hover{color:var(--green)}
.footer-contact a{color:rgba(255,255,255,.85);border-bottom:1px solid rgba(255,255,255,.18)}
.footer-contact a:hover{color:var(--green);border-color:var(--green)}

.footer-bar{border-top:1px solid rgba(255,255,255,.08);padding:18px 0}
.footer-bar .container{display:flex;justify-content:center;font-size:12px;color:rgba(255,255,255,.55)}
.footer-bar p{margin:0}

@media (max-width:760px){
  .footer-grid{grid-template-columns:1fr;gap:32px}
}

/* =====================================================
   Reveal animation
   ===================================================== */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .8s ease,transform .8s ease}
.reveal.is-in{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1;transform:none}
}

/* =====================================================
   LIGHTBOX
   ===================================================== */
.lightbox{
  position:fixed;inset:0;z-index:100;
  display:flex;align-items:center;justify-content:center;
  padding:24px;
}
.lightbox[hidden]{display:none}
.lightbox-backdrop{
  position:absolute;inset:0;
  background:rgba(14,16,17,.78);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  animation:lbFadeIn .25s ease;
}
.lightbox-panel{
  position:relative;z-index:1;
  background:#fff;border-radius:14px;overflow:hidden;
  width:min(900px,100%);max-height:90vh;
  display:grid;grid-template-columns:1.05fr 1fr;
  box-shadow:0 40px 100px -20px rgba(0,0,0,.6);
  animation:lbPop .35s cubic-bezier(.2,.7,.3,1.3);
}
.lightbox-close{
  position:absolute;top:14px;right:14px;z-index:3;
  width:40px;height:40px;border-radius:50%;
  border:none;background:rgba(255,255,255,.92);color:var(--ink);
  font-size:24px;line-height:1;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:background .2s ease,color .2s ease;
}
.lightbox-close:hover{background:var(--green);color:#fff}
.lightbox-media{position:relative;background:#000;min-height:280px}
.lightbox-media #lb-image{width:100%;height:100%;object-fit:cover;opacity:.78}
.lightbox-media #lb-logo{
  position:absolute;left:50%;bottom:24px;transform:translateX(-50%);
  height:36px;width:auto;max-width:60%;
  filter:brightness(0) invert(1);
}
.lightbox-body{
  padding:clamp(28px,4vw,44px);
  display:flex;flex-direction:column;justify-content:center;gap:14px;
  overflow:auto;
}
.lightbox-eyebrow{
  font-size:11px;letter-spacing:.22em;text-transform:uppercase;
  color:var(--green);font-weight:700;
}
.lightbox-title{
  font-family:var(--body);font-weight:900;
  font-size:clamp(26px,3vw,34px);line-height:1.05;
  margin:0;text-transform:uppercase;letter-spacing:-.005em;
}
.lightbox-text{margin:0;font-size:15px;line-height:1.6;color:var(--muted)}

@keyframes lbFadeIn{from{opacity:0}to{opacity:1}}
@keyframes lbPop{from{opacity:0;transform:scale(.96) translateY(10px)}to{opacity:1;transform:none}}

@media (max-width:760px){
  .lightbox-panel{grid-template-columns:1fr;max-height:92vh}
  .lightbox-media{min-height:200px;height:200px}
}

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ============================================================
   BASE
============================================================ */
body {
  background: #ffffff;
  font-family: 'Barlow', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #111111;
  padding: 0 !important;
  min-height: 100vh;
}
.page { max-width: 100%; margin: 0 auto; !important }

/* ============================================================
   TITLE
============================================================ */
.page-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  line-height: 1.65;
  text-align: right;
  color: #0d0d0d;
  margin-bottom: 52px;
  opacity: 0;
  animation: fadeIn .7s ease .1s forwards;
}

/* ============================================================
   KEYFRAMES
============================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lineGrow {
  from { opacity: 1; transform: translateY(-50%) scaleX(0); }
  to   { opacity: 1; transform: translateY(-50%) scaleX(1); }
}
@keyframes itemIn {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dotPulse {
  0%,  100% { box-shadow: 0 0 0 0   rgba(0, 110, 65, 0); }
  50%        { box-shadow: 0 0 0 5px rgba(0, 110, 65, .06); }
}

/* ============================================================
   TIMELINE DESKTOP
   Row height = 260px each.
   Row centres from timeline top: 130px / 390px / 650px.
============================================================ */
.timeline { position: relative; }

/* Connectors: absolutely positioned, visually join row centres */
.conn-right {
  position: absolute;
  top: 130px;      /* row-1 centre */
  right: 0;
  width: 40px;
  height: 260px;   /* row-2 centre − row-1 centre */
  border: 1px solid #111;
  border-left: none;
  border-radius: 0 20px 20px 0;
  pointer-events: none;
  z-index: 0;
}
.conn-left {
  position: absolute;
  top: 390px;      /* row-2 centre */
  left: 0;
  width: 40px;
  height: 260px;   /* row-3 centre − row-2 centre */
  border: 1px solid #111;
  border-right: none;
  border-radius: 20px 0 0 20px;
  pointer-events: none;
  z-index: 0;
}

/* Row */
.tl-row { position: relative; height: 260px; }

/* Horizontal line */
.h-line {
  position: absolute;
  top: 50%;
  height: 1px;
  background: #111;
  opacity: 0;
  transform: translateY(-50%);
  z-index: 0;
}
.row-1 .h-line { left: 0;    right: 40px; transform-origin: left  center; animation: lineGrow .95s ease  .5s  forwards; }
.row-2 .h-line { left: 40px; right: 40px; transform-origin: right center; animation: lineGrow .95s ease 1.45s forwards; }
.row-3 .h-line { left: 40px; right: 0;   transform-origin: left  center; animation: lineGrow .95s ease 2.4s  forwards; }

/* Items wrap */
.items-wrap {
  position: absolute;
  top: 0; bottom: 0;
  display: flex;
  align-items: center;
  z-index: 1;
}
.row-1 .items-wrap { left: 0;    right: 40px; }
.row-2 .items-wrap { left: 40px; right: 40px; }
.row-3 .items-wrap { left: 40px; right: 0;    }

/* Item
   Only .dot is in-flow → item height = 52px.
   Centred in row: top = 104px, bottom = 156px from row top. */
.item {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
}
.item:hover .dot { transform: translateY(-3px); }

/* Staggered reveal */
.row-1 .item:nth-child(1) { animation: itemIn .5s ease  .7s  forwards; }
.row-1 .item:nth-child(2) { animation: itemIn .5s ease  .9s  forwards; }
.row-1 .item:nth-child(3) { animation: itemIn .5s ease 1.1s  forwards; }
.row-1 .item:nth-child(4) { animation: itemIn .5s ease 1.3s  forwards; }
.row-2 .item:nth-child(1) { animation: itemIn .5s ease 1.65s forwards; }
.row-2 .item:nth-child(2) { animation: itemIn .5s ease 1.85s forwards; }
.row-2 .item:nth-child(3) { animation: itemIn .5s ease 2.05s forwards; }
.row-3 .item:nth-child(1) { animation: itemIn .5s ease 2.6s  forwards; }
.row-3 .item:nth-child(2) { animation: itemIn .5s ease 2.8s  forwards; }
.row-3 .item:nth-child(3) { animation: itemIn .5s ease 3.0s  forwards; }
.row-3 .item:nth-child(4) { animation: itemIn .5s ease 3.2s  forwards; }

/* Dot */
.dot {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid #111;
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative; z-index: 2;
  transition: transform .25s ease;
  animation: dotPulse 4s ease-in-out infinite;
}
.dot.grn { border-color: #1e7a52; }

.dot-lbl {
  font-size: 6.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .45px;
  text-align: center; line-height: 1.3;
  color: #333; max-width: 40px;
}
.dot-lbl.grn { color: #1e7a52; }

/* Year — always above dot, all rows
   bottom: calc(100% + 5px) → year-bottom = 156 − 57 = 99px from row top */
.yr {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 5px);
  font-size: 11px; font-weight: 400;
  letter-spacing: 1.5px; color: #555;
  white-space: nowrap; line-height: 1;
}

/* Text block — BELOW the dot for ALL three rows
   top: calc(100% + 8px) → text-top = 104 + 60 = 164px from row top ✓ */
.txt {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  text-align: center;
  width: 136px;
  top: calc(100% + 8px);
}
.nm { font-size: 12.5px; font-weight: 600; line-height: 1.35; margin-bottom: 4px; color: #111; }
.ds { font-size: 10px; color: #555; line-height: 1.55; }

/* ============================================================
   MOBILE — Vertical timeline
   ─ Clean left-side vertical line with dots
   ─ Year + name + description to the right
   ─ Row 2 reversed: chronological (2008 → 2010 → 2012)
============================================================ */
@media (max-width: 760px) {

  body { padding: 28px 20px; }

  .page-title {
    font-size: 15px;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 40px;
  }

  /* Hide desktop-only chrome */
  .conn-right, .conn-left { display: none; }
  .h-line                 { display: none; }
  .tl-row                 { height: auto;  }

  /* All items-wraps become vertical flex columns */
  .items-wrap {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }
  .row-1 .items-wrap,
  .row-2 .items-wrap,
  .row-3 .items-wrap { left: 0; right: 0; }

  /* Row 2: reversed so it reads 2008 → 2010 → 2012 (chronological) */
  .row-2 .items-wrap { flex-direction: column-reverse; }

  /* Item: 2-column CSS Grid
     | 52px dot | 1fr: year stacked above text |            */
  .item {
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto;
    grid-template-areas: 'dot yr' 'dot txt';
    column-gap: 16px;
    row-gap: 3px;
    align-items: start;
    padding-bottom: 24px;
    flex: none;
    position: relative;
    opacity: 0 !important;
    animation: itemIn .5s ease .4s forwards !important;
  }

  /* Thin vertical line connecting consecutive dots */
  .item::after {
    content: '';
    position: absolute;
    left: 25px;    /* centre of 52px dot column */
    top: 52px;     /* starts just below the dot */
    bottom: 0;
    width: 1px;
    background: #dedede;
  }
  /* Remove connector line after the very last item */
  .row-3 .item:last-child::after { display: none; }

  /* Dot */
  .dot {
    grid-area: dot;
    position: static;
    transform: none !important;
    align-self: start;
    justify-self: center;
  }
  .item:hover .dot { transform: translateY(-2px) !important; }

  /* Year */
  .yr {
    grid-area: yr;
    position: static;
    transform: none;
    left: auto; bottom: auto; top: auto;
    text-align: left;
    align-self: end;      /* bottom-align within first grid row */
    font-size: 11px;
    letter-spacing: 1.5px;
    padding-bottom: 1px;
  }

  /* Text */
  .txt {
    grid-area: txt;
    position: static;
    transform: none;
    left: auto; top: auto; bottom: auto;
    width: auto;
    text-align: left;
  }

  /* Clear desktop row overrides */
  .row-1 .txt,
  .row-2 .txt,
  .row-3 .txt { top: auto; bottom: auto; }
}