/* =========================================================================
   ADVISORY — Testimonials page (Build Guide, Testimonials). Design by Raul Pete Lugo.
   Type only: one quote per screen, its words lighting up as you scroll.
   Uses the shared system in advisory.css. Desktop: 900px and wider. Mobile: under 900px.
   ========================================================================= */

/* ---------- Shared bits for this page ------------------------------------ */
.testimonials .t-gray{color:var(--adv-gray-text);}
:where(.testimonials) a{color:inherit;text-decoration:none;}
:where(.testimonials) :is(h1,h2,p,ol,blockquote,figure){margin:0;}
.testimonials ol{list-style:none;padding:0;}
.testimonials em{font-style:italic;}
.testimonials .adv-label{display:block;}

/* ---------- 2. Masthead -------------------------------------------------- */
.t-mast{padding:96px 0 120px;}
.t-mast__grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:40px;align-items:end;}
.t-mast__left{grid-column:1 / 9;}
.t-mast__h{
  margin-top:22px;font-family:var(--adv-serif);font-weight:400;
  font-size:clamp(110px,11.4vw,218px);line-height:.86;letter-spacing:-.03em;
}
.t-mast__h em{display:block;}
.t-mast__right{grid-column:10 / 13;padding-bottom:14px;}
.t-mast__intro{font-family:var(--adv-serif);font-size:clamp(22px,1.7vw,28px);line-height:1.3;}
.t-mast__hint{display:block;margin-top:22px;font-family:var(--adv-sans);font-size:13px;line-height:1.6;color:#8A8A8A;}

/* ---------- 3. The quotes: tall sections with a pinned frame ------------- */
.t-q{position:relative;height:170vh;}
.t-q--tall{height:220vh;}
.t-q__frame{
  position:sticky;top:72px;height:calc(100vh - 72px);
  display:flex;flex-direction:column;justify-content:center;justify-content:safe center;
}
.t-q__grid{width:100%;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:40px;align-items:start;}
.t-q__side{grid-column:1 / 3;padding-top:8px;}
.t-q__count{color:#8A8A8A;}
.t-q__dashes{display:flex;gap:8px;margin-top:18px;}
.t-q__dashes i{display:block;width:22px;height:1px;background:#D6D6D6;}
.t-q__dashes i.on{background:var(--adv-ink);}
.t-q__body{grid-column:3 / 12;}
.t-q__mark{display:block;font-family:var(--adv-serif);font-size:160px;line-height:.6;color:var(--adv-ink);}
.t-q__text{
  margin-top:20px !important;font-family:var(--adv-serif);font-weight:400;
  line-height:1.12;letter-spacing:-.015em;color:var(--adv-ink);
}
.t-q--s .t-q__text{font-size:clamp(56px,5vw,92px);}
.t-q--m .t-q__text{font-size:clamp(40px,3.4vw,60px);}
.t-q--l .t-q__text{font-size:clamp(34px,2.8vw,50px);}
.t-q__name{display:flex;align-items:center;gap:16px;margin-top:44px;color:var(--adv-ink);}
.t-q__rule{display:block;width:48px;height:1px;background:var(--adv-ink);}
/* Word lighting (the script splits each quote into word spans and adds .t-js) */
.t-w{color:#D9D9D9;transition:color .35s ease;}
.t-w.l{color:var(--adv-ink);}
.t-js .t-q__name{opacity:0;transform:translateY(10px);transition:opacity .6s ease,transform .8s var(--adv-ease);}
.t-js .t-q.done .t-q__name{opacity:1;transform:none;}

/* ---------- 4. Close and index (black band) ------------------------------ */
.t-close{background:var(--adv-ink);color:var(--adv-on-black);padding:140px 0 150px;}
.t-close__grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:40px;align-items:start;}
.t-close__left{grid-column:1 / 7;}
.t-close__label{color:var(--adv-on-black-label);}
.t-close__h{margin-top:18px;font-family:var(--adv-serif);font-weight:400;font-size:clamp(64px,6vw,112px);line-height:.94;letter-spacing:-.02em;}
.t-close__p{margin-top:26px;font-family:var(--adv-sans);font-size:14px;line-height:1.6;color:var(--adv-on-black-link);}
/* The light pill on black */
.adv-btn-pill.t-pill{margin-top:30px;padding:14px 26px;background:var(--adv-on-black);color:var(--adv-ink);border-color:var(--adv-on-black);}
.adv-btn-pill.t-pill:hover,.adv-btn-pill.t-pill:focus-visible{background:var(--adv-ink);color:var(--adv-on-black);}
.t-index{grid-column:8 / 13;border-top:1px solid #2E2E2E;}
.t-index__row{
  display:grid;grid-template-columns:48px 1fr 18px;gap:12px;padding:16px 0;
  border-bottom:1px solid #2E2E2E;color:var(--adv-on-black-link);transition:color .3s ease;
}
.t-index__row:hover,.t-index__row:focus-visible{color:var(--adv-on-black);}
.t-index__n{padding-top:4px;color:#6E6C68;}
.t-index__name{font-family:var(--adv-serif);font-size:26px;line-height:1.3;}
.t-index__arr{font-family:var(--adv-sans);font-size:14px;padding-top:6px;text-align:right;}

/* =========================================================================
   MOTION (only with html.adv-motion, i.e. not under reduced motion).
   ========================================================================= */
/* Masthead load-in: label, title and intro fade in over 1.6s after .5s. */
@keyframes t-in{from{opacity:0;}to{opacity:1;}}
html.adv-motion .t-load{animation:t-in 1.6s ease .5s both;}
/* Index rows stagger in as list items (the script adds .is-in with a delay each). */
html.adv-motion .t-index li{opacity:0;transition:opacity 1.4s cubic-bezier(.16,1,.3,1);transition-delay:var(--t-delay,0s);}
html.adv-motion .t-index li.is-in{opacity:1;}

/* Reduced motion: every word lit, every name shown, no color change. */
@media (prefers-reduced-motion:reduce){
  .t-w{color:var(--adv-ink);transition:none;}
  .t-js .t-q__name{opacity:1;transform:none;transition:none;}
}

/* =========================================================================
   MOBILE (under 900px)
   ========================================================================= */
@media (max-width:899px){
  .t-mast{padding:52px 0 64px;}
  .t-mast__grid{display:block;}
  .t-mast__left .adv-label{font-size:10px;}
  .t-mast__h{margin-top:16px;font-size:80px;}
  .t-mast__right{padding-bottom:0;margin-top:22px;}
  .t-mast__intro{font-size:20px;}
  .t-mast__hint{display:none;}

  .t-q__frame{top:60px;height:calc(100vh - 60px);}
  @supports (height:100svh){ .t-q__frame{height:calc(100svh - 60px);} }
  .t-q__grid{display:block;}
  .t-q__side{display:flex;justify-content:space-between;align-items:center;padding-top:0;}
  .t-q__count{font-size:10px;}
  .t-q__dashes{margin-top:0;}
  .t-q__mark{margin-top:26px;font-size:80px;}
  .t-q__text{margin-top:8px !important;line-height:1.18;letter-spacing:-.01em;}
  .t-q--s .t-q__text{font-size:34px;}
  .t-q--m .t-q__text{font-size:27px;}
  .t-q--l .t-q__text{font-size:23px;}
  .t-q__name{gap:12px;margin-top:24px;}
  .t-q__name .adv-label{font-size:10px;}
  .t-q__rule{width:28px;}

  .t-close{padding:72px 0 80px;}
  .t-close__grid{display:block;}
  .t-close__label{font-size:10px;}
  .t-close__h{margin-top:14px;font-size:50px;line-height:.96;}
  .t-close__p{margin-top:18px;}
  .adv-btn-pill.t-pill{margin-top:24px;padding:13px 22px;}
  .t-index{margin-top:48px;}
  .t-index__name{font-size:20px;}
}
