/* =========================================================
   Lustra Coatings | about.css
   ========================================================= */

.accent-dark{ color:var(--accent-dark); }

/* ---------- Story ---------- */
.story{
  display:grid;
  grid-template-columns:1.05fr 1fr;
  gap:clamp(36px,6vw,88px);
  align-items:center;
}
.story-text h2{ margin-top:14px; }
.story-text > p:not(.eyebrow){ margin-top:16px; }
.story-photos{
  position:relative;
  min-height:500px;
}
.sp{
  position:absolute;
  overflow:hidden;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.sp img{ width:100%; height:100%; object-fit:cover; transition:transform 1s var(--ease); }
.sp:hover img{ transform:scale(1.06); }
.sp1{ top:0; right:0; width:72%; height:82%; }
.sp2{ left:0; bottom:0; width:46%; aspect-ratio:1/1; border:6px solid #fff; }
.story-badge{
  position:absolute;
  right:8%;
  bottom:4%;
  padding:16px 20px;
  border-radius:10px;
  background:var(--accent);
  color:var(--on-accent);
  font-size:.8rem;
  font-weight:700;
  box-shadow:var(--shadow);
}
.story-badge strong{
  display:block;
  font-family:var(--display);
  font-stretch:125%;
  font-size:2rem;
  font-weight:900;
  line-height:1;
}

@media (max-width:900px){
  .story{ grid-template-columns:1fr; }
  .story-photos{ min-height:0; height:clamp(340px,90vw,480px); }
}

/* ---------- Numbers ---------- */
.numbers{ padding-block:clamp(48px,7vw,80px); }
.numbers-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
}
.number{ padding:6px 20px; }
.number + .number{ border-left:1px solid var(--line-dark); }
.number strong{
  display:block;
  color:var(--accent);
  font-family:var(--display);
  font-stretch:125%;
  font-size:clamp(1.8rem,3.6vw,2.8rem);
  font-weight:900;
  line-height:1;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.number span{ display:block; margin-top:8px; font-size:.85rem; }
@media (max-width:760px){
  .numbers-grid{ grid-template-columns:1fr 1fr; row-gap:30px; }
  .number:nth-child(3){ border-left:0; }
}

/* ---------- Timeline ---------- */
.timeline{
  position:relative;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:clamp(14px,2vw,22px);
  padding-top:34px;
}
/* the track, and a yellow line that fills along it */
.timeline::before,
.timeline::after{
  content:'';
  position:absolute;
  left:0;
  right:0;
  top:8px;
  height:4px;
  border-radius:4px;
  background:var(--line);
}
.timeline::after{
  background:var(--accent);
  transform:scaleX(var(--fill,0));
  transform-origin:left;
  transition:transform 2s var(--ease);
}
.timeline.is-drawn{ --fill:1; }
.tl{ position:relative; font-size:.9rem; }
.tl::before{
  content:'';
  position:absolute;
  left:0;
  top:-34px;
  width:20px;
  height:20px;
  border:4px solid #fff;
  border-radius:50%;
  background:var(--ink);
  box-shadow:0 0 0 2px var(--ink);
}
.tl-year{
  color:var(--ink);
  font-family:var(--display);
  font-stretch:125%;
  font-size:1.6rem;
  font-weight:900;
  line-height:1;
}
.tl strong{ display:block; margin-top:10px; color:var(--ink); }

@media (max-width:900px){
  .timeline{ grid-template-columns:1fr; gap:26px; padding-top:0; padding-left:36px; }
  .timeline::before,
  .timeline::after{ left:8px; right:auto; top:0; bottom:0; width:4px; height:auto; }
  .timeline::after{ transform:scaleY(var(--fill,0)); transform-origin:top; }
  .tl::before{ left:-36px; top:2px; }
}

/* ---------- Quality tests ---------- */
.tests{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(14px,2vw,22px);
}
.test{
  padding:26px 22px;
  border-radius:var(--radius);
  background:#fff;
  transition:transform .4s var(--ease), box-shadow .4s var(--ease);
}
.test:hover{ transform:translateY(-6px); box-shadow:var(--shadow); }
.test span{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border-radius:10px;
  background:var(--ink);
  color:var(--accent);
  transition:transform .5s var(--ease);
}
.test:hover span{ transform:rotate(-10deg); }
.test span svg{ width:24px; height:24px; }
.test h3{ margin-top:18px; }
.test p{ margin-top:8px; font-size:.9rem; }

@media (max-width:980px){
  .tests{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:520px){
  .tests{ grid-template-columns:1fr; }
}

/* ---------- Sustainability ---------- */
.green{
  display:grid;
  grid-template-columns:1fr 1.1fr;
  gap:clamp(32px,6vw,80px);
  align-items:center;
}
.green-photo{ overflow:hidden; aspect-ratio:9/8; border-radius:var(--radius); }
.green-photo img{ width:100%; height:100%; object-fit:cover; }
.green h2{ margin-top:14px; }
.green > div > p{ margin-top:16px; }
.ticks{ display:grid; gap:12px; margin-top:22px; }
.ticks li{ display:flex; align-items:center; gap:12px; color:var(--ink); font-weight:600; }
.ticks svg{
  flex-shrink:0;
  width:24px;
  height:24px;
  padding:4px;
  border-radius:6px;
  background:var(--accent);
  color:var(--on-accent);
}

@media (max-width:860px){
  .green{ grid-template-columns:1fr; }
  .green-photo{ aspect-ratio:16/10; }
}
