/* ==========================================================================
   ABOUT.CSS  —  this page only
   Tokens, fonts, --gutter, header and footer live in common.css.
   ========================================================================== */

/* ============ TOKENS ============ */
:root{
  --navy:#1B3358;
  --stone:#E4E4DF;
  --tan:#D9AE81;
  --trail:#D9BC94;
  --cream-text:#DCDCD6;
  --page:#F5F8FC;
  --ink:#1A1A1A;
    --shell:1440px;
  /* stand-in for Beautique Display — point this at the real font once self-hosted */
  --display:Georgia,"Times New Roman",serif;
}

body{
  margin:0;background:#fff;color:var(--ink);
  font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased;
}
:focus-visible{outline:2px solid var(--navy);outline-offset:3px;border-radius:4px}
.inner{max-width:var(--shell);margin:0 auto;padding:0 var(--gutter)}

/* ============ 1. QUOTE ============ */
.quote{
  margin:24px var(--gutter) 0;border-radius:6px;overflow:hidden;
  min-height:530px;display:grid;place-items:center;text-align:center;padding:70px 24px;
  /* swap for the real photo: background:url(assets1/about-hero.jpg) center/cover; */
  background:#9A9A9A;
}
.quote p{margin:0;color:var(--cream-text);font-size:56px;line-height:1.12;letter-spacing:-.5px}
.quote em{
  display:block;font-family:var(--display);font-style:italic;font-weight:400;
  font-size:74px;line-height:1.05;letter-spacing:-1px;
}

/* ============ 2. STORY ============ */
.story{padding:70px 0 90px}
.story-track{position:relative;max-width:1485px;margin:0 auto;padding:0 var(--gutter)}
.trail{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
.trail path{fill:none;stroke:var(--trail);stroke-width:3;stroke-dasharray:10 14;stroke-linecap:round}

.beat{position:relative;z-index:1;display:grid;grid-template-columns:430px minmax(0,1fr);gap:50px;align-items:start}
.beat.b2, .beat.b4{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) 430px;gap:50px;align-items:start}

.beat p{margin:0;font-size:19px;line-height:1.55;color:var(--ink)}
.snap{max-width:430px}
.snap img{
  width:100%;border-radius:14px;box-shadow:0 22px 40px rgba(29,54,77,.20);
  background:#BBD3EA;aspect-ratio:430/380;object-fit:cover;
}

/* beat 1: photo left, copy right */
.beat.b1 .snap{transform:rotate(-7deg)}
.beat.b1 .beat-copy{padding:120px 0 0 40px}
/* beat 2: copy left, photo right */
.beat.b2{margin-top:70px}
.beat.b2 .snap{order:2;justify-self:end;transform:rotate(7deg)}
.beat.b2 .beat-copy{order:1;padding:120px 40px 0 20px}
/* beat 3: photo left, copy right */
.beat.b3{margin-top:60px}
.beat.b3 .snap{transform:rotate(-7deg)}
.beat.b3 .beat-copy{padding:120px 0 0 40px}
/* beat 4: copy left, photo right */
.beat.b4{margin-top:60px}
.beat.b4 .snap{order:2;justify-self:end;transform:rotate(7deg)}
.beat.b4 .beat-copy{order:1;padding:150px 40px 0 20px}

/* ============ 3. TIMELINE ============ */
.growth{background:var(--navy);color:#fff;padding:80px 0 90px}
.growth .inner{display:grid;grid-template-columns:520px minmax(0,1fr);gap:40px;align-items:start}
.growth h2{
  margin:0 0 44px;font-family:var(--display);font-style:italic;font-weight:400;
  font-size:46px;line-height:1.2;color:#fff;text-align:center;
}
.emblem{max-width:330px;margin:0 auto}
.emblem img{width:100%}

.milestones{list-style:none;margin:0;padding:0 0 0 34px;position:relative}
.milestones::before{
  content:"";position:absolute;left:0;top:70px;bottom:70px;width:2px;background:rgba(255,255,255,.5);
}
.milestone{
  position:relative;display:grid;grid-template-columns:210px minmax(0,1fr);gap:30px;align-items:center;
  background:var(--stone);border-radius:8px;padding:20px;margin-bottom:28px;
}
.milestone:last-child{margin-bottom:0}
.milestone::before{                       /* tick joining the card to the spine */
  content:"";position:absolute;left:-34px;top:50%;width:34px;height:2px;background:rgba(255,255,255,.5);
}
.milestone.is-first{background:var(--tan)}
.milestone img{width:210px;height:210px;object-fit:cover;border-radius:4px;background:#BBD3EA}
.milestone h3{
  margin:0 0 10px;font-family:var(--display);font-style:italic;font-weight:400;
  font-size:38px;line-height:1;color:var(--navy);
}
.milestone p{margin:0;font-size:14.5px;line-height:1.55;color:#33415A;max-width:46ch}

/* ============ 4. PROMISE ============ */
.promise{padding:70px 0 0}
.promise-card{
  position:relative;border-radius:8px;overflow:hidden;min-height:560px;display:grid;align-items:center;
  /* swap for the real photo: url(assets1/about-promise.jpg) */
  background:linear-gradient(90deg,rgba(16,14,12,.94) 0%,rgba(16,14,12,.86) 30%,rgba(16,14,12,.35) 62%,rgba(16,14,12,.05) 100%),#5E5145;
  background-size:cover;background-position:center;
}
.promise-copy{padding:0 40px 0 48px;max-width:660px;color:#F3F0EA}
.promise-copy h2{
  margin:0 0 20px;font-family:var(--display);font-style:italic;font-weight:400;
  font-size:46px;line-height:1.1;color:#fff;
}
.promise-copy p{margin:0 0 24px;font-size:16px;line-height:1.6}
.promise-copy p:last-child{margin-bottom:0}

/* ============ 5. THE MINDS ============ */
.minds{background:var(--page);padding:70px 0 60px;text-align:center;overflow:hidden}
.minds h2{
  margin:0 0 44px;font-family:var(--display);font-style:italic;font-weight:400;
  font-size:46px;line-height:1.2;color:var(--navy);
}
.minds-rail{
  display:flex;gap:30px;overflow-x:auto;scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;
  padding:0 calc(50% - 515px) 4px;      /* centres the active card, neighbours peek */
}
.minds-rail::-webkit-scrollbar{display:none}
.mind{
  flex:0 0 1030px;scroll-snap-align:center;display:grid;grid-template-columns:285px minmax(0,1fr);
  gap:36px;align-items:center;text-align:left;background:var(--navy);color:#fff;padding:34px;
  clip-path:polygon(34px 0,calc(100% - 34px) 0,100% 34px,100% calc(100% - 34px),
                    calc(100% - 34px) 100%,34px 100%,0 calc(100% - 34px),0 34px);
}
.mind-photo img{width:100%;height:370px;object-fit:cover;background:#D5D5D5}
.mind-copy p{margin:0 0 30px;font-size:16px;line-height:1.62;color:#EAEFF6;max-width:52ch}
.mind-copy h3{margin:0 0 2px;font-size:34px;font-weight:400;line-height:1.1;color:#fff}
.mind-copy .role{font-size:18px;color:#DCE4EF}

.minds-nav{display:flex;justify-content:center;gap:12px;margin-top:34px}
.minds-nav button{
  width:40px;height:40px;display:grid;place-items:center;
  clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),
                    calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px);
}
#minds-prev{background:#A8C4D8;color:var(--navy)}
#minds-next{background:var(--navy);color:#fff}
.minds-nav svg{width:16px;height:16px}

/* ============ 6. BACKBONE ============ */
.backbone{background:var(--page);padding:0 0 70px}
.backbone-card{
  border-radius:8px;overflow:hidden;min-height:450px;display:grid;align-items:center;
  /* swap for the real photo: url(assets1/about-team.jpg) */
  background:linear-gradient(90deg,rgba(10,8,6,.96) 0%,rgba(10,8,6,.88) 28%,rgba(10,8,6,.35) 58%,rgba(10,8,6,0) 92%),#3B322A;
  background-size:cover;background-position:center right;
}
.backbone-copy{padding:0 40px 0 48px;max-width:640px;color:#F1ECE4}
.backbone-copy h2{
  margin:0 0 22px;font-family:var(--display);font-style:italic;font-weight:400;
  font-size:64px;line-height:1.02;color:#D9C4A6;
}
.backbone-copy p{margin:0;font-size:17px;line-height:1.55;color:#fff;max-width:44ch}

/* ============ MOBILE ============ */
@media (max-width:900px){

  .quote{margin:16px var(--gutter) 0;min-height:230px;padding:40px 18px}
  .quote p{font-size:26px}
  .quote em{font-size:32px}

  /* story: photo above copy, dashed rule between beats */
  .story{padding:34px 0 40px}
  .trail{display:none}
  .beat,.beat.b1,.beat.b2,.beat.b3,.beat.b4{
    grid-template-columns:1fr;gap:18px;margin:0 0 30px;
    padding-bottom:30px;border-bottom:2px dashed var(--trail);text-align:center;
  }
  .beat.b4{border-bottom:0;padding-bottom:0;margin-bottom:0}
  .beat .snap,.beat.b2 .snap,.beat.b4 .snap{order:-1;justify-self:center;max-width:240px;transform:rotate(-5deg)}
  .beat .beat-copy,.beat.b1 .beat-copy,.beat.b2 .beat-copy,.beat.b3 .beat-copy,.beat.b4 .beat-copy{order:0;padding:0}
  .beat p{font-size:15px}

  /* timeline */
  .growth{padding:40px 0 46px}
  .growth .inner{grid-template-columns:1fr;gap:26px}
  .growth h2{font-size:28px;margin-bottom:18px}
  .emblem{max-width:190px}
  .milestones{padding-left:0}
  .milestones::before{display:none}
  .milestone{grid-template-columns:110px minmax(0,1fr);gap:14px;padding:14px;margin-bottom:14px}
  .milestone::before{display:none}
  .milestone img{width:110px;height:110px}
  .milestone h3{font-size:26px;margin-bottom:6px}
  .milestone p{font-size:13px}

  /* promise */
  .promise{padding:34px 0 0}
  .promise-card{
    min-height:0;padding:30px 0;
    background:linear-gradient(rgba(16,14,12,.92),rgba(16,14,12,.92)),#5E5145;
    background-size:cover;background-position:center;
  }
  .promise-copy{padding:0 20px;max-width:none}
  .promise-copy h2{font-size:28px;margin-bottom:14px}
  .promise-copy p{font-size:14.5px;margin-bottom:16px}

  /* minds */
  .minds{padding:36px 0 40px}
  .minds h2{font-size:26px;margin-bottom:22px}
  .minds-rail{gap:14px;padding:0 var(--gutter) 4px}
  .mind{
    flex:0 0 86%;grid-template-columns:1fr;gap:18px;padding:22px;text-align:center;
    clip-path:polygon(20px 0,calc(100% - 20px) 0,100% 20px,100% calc(100% - 20px),
                      calc(100% - 20px) 100%,20px 100%,0 calc(100% - 20px),0 20px);
  }
  .mind-photo img{height:230px}
  .mind-copy p{font-size:14px;margin-bottom:18px;max-width:none}
  .mind-copy h3{font-size:22px}
  .mind-copy .role{font-size:15px}
  .minds-nav{margin-top:24px}

  /* backbone */
  .backbone{padding:0 0 40px}
  .backbone-card{
    min-height:0;padding:32px 0;
    background:linear-gradient(rgba(10,8,6,.92),rgba(10,8,6,.92)),#3B322A;
    background-size:cover;background-position:center;
  }
  .backbone-copy{padding:0 20px;max-width:none}
  .backbone-copy h2{font-size:34px;margin-bottom:14px}
  .backbone-copy p{font-size:14.5px;max-width:none}
}
@media (prefers-reduced-motion:no-preference){
  .minds-nav button{transition:opacity .15s ease}
}
