/* =========================================================
   La Peace | about.css  (Our story)
   ========================================================= */

/* ---------- Story ---------- */
.story{ color:var(--ink); }
.story-grid{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:clamp(36px,6vw,100px);
}
.story-head .display{ margin-top:18px; }
.story-text p + p{ margin-top:18px; }
.story-first{ color:var(--ink); font-family:var(--serif); font-size:clamp(1.35rem,2vw,1.65rem); line-height:1.45; }
.story-first::first-letter{
  float:left;
  margin:.06em .12em 0 0;
  color:var(--gold-deep);
  font-size:3.6em;
  line-height:.8;
}
.signature{
  margin-top:30px !important;
  color:var(--ink);
  font-family:var(--serif);
  font-size:2rem;
  font-style:italic;
  line-height:1;
}
.signature span{
  display:block;
  margin-top:8px;
  color:var(--muted);
  font-family:var(--sans);
  font-size:.64rem;
  font-style:normal;
  letter-spacing:.3em;
  text-transform:uppercase;
}
.story-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin-top:clamp(56px,8vw,96px);
  border-top:1px solid var(--line);
}
.stat{ padding:28px 20px 0 0; }
.stat + .stat{ padding-left:24px; border-left:1px solid var(--line); }
.stat strong{
  display:block;
  color:var(--ink);
  font-family:var(--serif);
  font-size:clamp(2.6rem,5vw,4rem);
  font-weight:400;
  line-height:1;
}
.stat span{ display:block; margin-top:8px; color:var(--muted); font-size:.7rem; letter-spacing:.24em; text-transform:uppercase; }
@media (max-width:860px){
  .story-grid{ grid-template-columns:1fr; }
  .story-stats{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .stat:nth-child(3){ padding-left:0; border-left:0; }
  .stat:nth-child(n+3){ margin-top:10px; border-top:1px solid var(--line); }
}

/* ---------- Statement: words brighten one by one ---------- */
.statement{ padding:clamp(90px,12vw,160px) 0; background:var(--night); color:var(--on-dark); }
.statement-text{
  max-width:1060px;
  margin:0 auto;
  font-family:var(--serif);
  font-size:clamp(2rem,4.6vw,4rem);
  line-height:1.15;
  text-align:center;
}
.statement-text .w{ display:inline-block; opacity:.16; transition:opacity .5s ease, color .5s ease; }
.statement-text .w.is-lit{ opacity:1; }
.statement-text .w.is-gold{ color:var(--gold-2); font-style:italic; }

/* ---------- The kitchen ---------- */
.kitchen{ color:var(--ink); }
.kitchen-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);
  align-items:center;
  gap:clamp(36px,7vw,110px);
}
.kitchen-photo{ overflow:hidden; border-radius:999px 999px 0 0; }
.kitchen-photo img{ width:100%; aspect-ratio:4/5; object-fit:cover; }
.kitchen-copy .display{ margin:18px 0 22px; }
.kitchen-quote{ margin:30px 0; padding-left:22px; border-left:1px solid var(--gold); }
.kitchen-quote p{ color:var(--ink); font-family:var(--serif); font-size:clamp(1.35rem,2.1vw,1.7rem); font-style:italic; line-height:1.4; }
.kitchen-thumb{ display:flex; align-items:center; gap:18px; }
.kitchen-thumb img{ width:150px; aspect-ratio:5/3; object-fit:cover; }
.kitchen-thumb figcaption{ color:var(--muted); font-size:.7rem; letter-spacing:.24em; text-transform:uppercase; }
@media (max-width:860px){
  .kitchen-grid{ grid-template-columns:1fr; }
  .kitchen-photo{ max-width:460px; }
}

/* ---------- What we believe ---------- */
.pillars{ background:var(--paper-2); color:var(--ink); }
.pillar-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(18px,2.4vw,30px); }
.pillar{
  padding:clamp(30px,3.6vw,46px);
  border:1px solid var(--line);
  background:var(--paper);
  text-align:center;
  transition:transform .6s var(--ease), box-shadow .6s var(--ease);
}
.pillar:hover{ transform:translateY(-6px); box-shadow:0 30px 50px -36px rgba(22,18,15,.6); }
.pillar-icon{
  display:grid;
  place-items:center;
  width:70px;
  height:70px;
  margin:0 auto 22px;
  border:1px solid var(--gold-deep);
  border-radius:50%;
  color:var(--gold-deep);
}
.pillar-icon svg{ width:28px; height:28px; }
.pillar h3{ margin-bottom:12px; font-size:1.9rem; text-transform:uppercase; }
@media (max-width:860px){
  .pillar-grid{ grid-template-columns:1fr; max-width:520px; margin:0 auto; }
}

/* ---------- Journey: the line draws as you scroll ---------- */
.journey{ color:var(--ink); }
.timeline{ position:relative; list-style:none; max-width:880px; margin:0 auto; }
.timeline::before,
.timeline::after{
  content:'';
  position:absolute;
  top:6px;
  bottom:6px;
  left:130px;
  width:1px;
}
.timeline::before{ background:var(--line); }
.timeline::after{
  background:var(--gold);
  transform:scaleY(var(--progress,0));
  transform-origin:top;
}
/* where the browser supports scroll timelines it draws the line itself (smoother);
   otherwise js/about.js sets --progress */
@supports (animation-timeline: view()){
  @media (prefers-reduced-motion: no-preference){
    .timeline::after{
      animation:timelineGrow linear both;
      animation-timeline:view(block 0% 30%);
      animation-range:entry 0% entry 100%;
    }
  }
}
@keyframes timelineGrow{ from{ transform:scaleY(0); } to{ transform:scaleY(1); } }
.timeline li{
  position:relative;
  display:grid;
  grid-template-columns:130px minmax(0,1fr);
  gap:0 44px;
  padding-bottom:clamp(36px,5vw,56px);
}
.timeline li::before{
  content:'';
  position:absolute;
  top:10px;
  left:125px;
  z-index:1;
  width:11px;
  height:11px;
  border:1px solid var(--gold);
  background:var(--paper);
  transform:rotate(45deg);
}
.tl-year{ color:var(--gold-deep); font-family:var(--serif); font-size:2.2rem; font-style:italic; line-height:1; }
.timeline h3{ margin-bottom:6px; color:var(--ink); font-size:1.65rem; text-transform:uppercase; }
@media (max-width:600px){
  .timeline::before,.timeline::after{ left:5px; }
  .timeline li{ grid-template-columns:1fr; padding-left:34px; }
  .timeline li::before{ left:0; }
  .tl-year{ margin-bottom:8px; font-size:1.8rem; }
}

/* ---------- Gallery ---------- */
.gallery{ background:var(--paper-2); }
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  grid-auto-rows:clamp(150px,18vw,260px);
  grid-auto-flow:dense;
  gap:clamp(10px,1.4vw,16px);
}
.g-item{ position:relative; overflow:hidden; background:var(--night); cursor:zoom-in; }
.g-tall{ grid-row:span 2; }
.g-wide{ grid-column:span 2; }
.g-item img{ width:100%; height:100%; object-fit:cover; transition:transform 1.2s var(--ease), opacity .4s ease; }
.g-item:hover img,.g-item:focus-visible img{ transform:scale(1.07); opacity:.85; }
@media (max-width:760px){
  .gallery-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:clamp(140px,40vw,220px); }
}

/* ---------- Lightbox ---------- */
.lightbox{
  position:fixed;
  inset:0;
  z-index:90;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:60px clamp(10px,3vw,40px);
  background:rgba(10,8,7,.94);
  color:var(--on-dark);
  opacity:0;
  transition:opacity .35s ease;
}
.lightbox[hidden]{ display:none; }
.lightbox.is-open{ opacity:1; }
.lb-figure{ display:grid; justify-items:center; gap:14px; }
.lb-figure img{ max-height:76vh; width:auto; max-width:100%; object-fit:contain; transform:scale(.96); transition:transform .5s var(--ease); }
.lightbox.is-open .lb-figure img{ transform:none; }
.lb-figure figcaption{ color:var(--on-dark-dim); font-family:var(--serif); font-size:1.15rem; font-style:italic; text-align:center; }
.lb-close,.lb-arrow{
  display:grid;
  place-items:center;
  width:50px;
  height:50px;
  border:1px solid var(--line-dark);
  border-radius:50%;
  transition:border-color .3s ease, color .3s ease;
}
.lb-close:hover,.lb-arrow:hover{ border-color:var(--gold); color:var(--gold); }
.lb-close svg,.lb-arrow svg{ width:20px; height:20px; }
.lb-close{ position:absolute; top:16px; right:16px; }
@media (max-width:600px){
  .lightbox{ grid-template-columns:1fr 1fr; grid-template-rows:1fr auto; padding:70px 12px 20px; }
  .lb-figure{ grid-column:1 / -1; grid-row:1; }
  .lb-prev{ justify-self:end; }
}

/* ---------- Kind words ---------- */
.press{ padding:clamp(70px,9vw,110px) 0; color:var(--ink); }
.press-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(24px,4vw,56px); }
.press blockquote{ padding-top:24px; border-top:1px solid var(--line); }
.press blockquote p{ color:var(--ink); font-family:var(--serif); font-size:clamp(1.35rem,2.1vw,1.7rem); font-style:italic; line-height:1.35; }
.press cite{
  display:block;
  margin-top:14px;
  color:var(--gold-deep);
  font-size:.66rem;
  font-style:normal;
  letter-spacing:.28em;
  text-transform:uppercase;
}
@media (max-width:760px){
  .press-grid{ grid-template-columns:1fr; }
}
