/* ============================================================
   PTTA — components
   One section per component. Tokens only, no magic numbers
   for colour or motion.
   ============================================================ */

/* ---------- 1. LAYOUT ---------------------------------------- */
.wrap{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter); }

.page{
  display:grid;
  gap:clamp(24px,4vw,48px);
  grid-template-columns:1fr;
  padding-block:clamp(28px,5vw,56px);
}
@media (min-width:900px){
  .page{ grid-template-columns:minmax(0,1fr) 320px; align-items:start; }
}
.page__main{ min-width:0; }
.page__aside{ min-width:0; }
@media (min-width:900px){
  .page__aside{ position:sticky; top:96px; }
}

.section{ margin-block:clamp(28px,4vw,44px); }
.section:first-child{ margin-top:0; }

.kicker + h1,
.kicker + h2,
.kicker + h3{ margin-top:0; }

.kicker{
  display:block;
  font-size:.75rem; font-weight:800;
  letter-spacing:.12em; text-transform:uppercase;
  color:var(--muted);
  margin-bottom:.35em;
}

.band{ height:8px; background:var(--brand-footer); margin-block:clamp(28px,4vw,40px); border-radius:2px; }

/* ---------- 2. HEADER / NAV ---------------------------------- */
.ptta-nav{
  position:sticky; top:0; z-index:100;
  background:var(--surface);
  border-bottom:1px solid var(--line);
}
.ptta-nav--scrolled{ box-shadow:0 8px 22px rgba(16,33,62,.10); }

.ptta-nav__inner{
  max-width:var(--maxw); margin-inline:auto;
  padding:10px var(--gutter);
  display:flex; align-items:center; gap:clamp(12px,3vw,32px);
}
.ptta-nav__brand{ display:inline-flex; align-items:center; flex:0 0 auto; }
.ptta-nav__logo{ height:52px; width:auto; }

.ptta-nav__links{ display:none; }
@media (min-width:900px){
  .ptta-nav__links{
    display:flex; align-items:center; gap:clamp(8px,1.8vw,24px);
    margin-inline:auto;
  }
}
.ptta-nav__link{
  position:relative;
  padding:10px 4px;
  color:var(--text); font-weight:700;
  text-decoration:none;
}
.ptta-nav__link::after{
  content:""; position:absolute;
  left:4px; right:4px; bottom:2px; height:3px;
  border-radius:2px;
  background:var(--brand-accent);
  transform:scaleX(0); transform-origin:50%;
  transition:transform var(--t-nav);
}
.ptta-nav__link:hover::after,
.ptta-nav__link:focus-visible::after,
.ptta-nav__link[aria-current="page"]::after{ transform:scaleX(1); }
.ptta-nav__link[aria-current="page"]{ color:var(--brand); }

/* the hamburger — ONE display declaration, hidden by breakpoint.
   The old rule had display:none and display:grid in the same
   block, so it showed on desktop. */
.ptta-nav__toggle{
  margin-left:auto;
  width:46px; height:46px;
  display:grid; place-items:center;
  border:1px solid var(--line); border-radius:var(--radius-sm);
  background:var(--surface);
  cursor:pointer;
  transition:background var(--t-fast);
}
.ptta-nav__toggle:hover{ background:var(--surface-alt); }
.ptta-nav__toggle svg{ width:24px; height:24px; }
@media (min-width:900px){ .ptta-nav__toggle{ display:none; } }

/* drawer */
.ptta-drawer{ position:fixed; inset:0; z-index:200; visibility:hidden; }
.ptta-drawer__shade{
  position:absolute; inset:0;
  background:rgba(4,15,28,.45);
  opacity:0; transition:opacity var(--t-nav);
}
.ptta-drawer__panel{
  position:absolute; top:0; right:0; height:100%;
  width:min(88vw,360px);
  background:var(--surface);
  box-shadow:var(--elev-2);
  transform:translateX(100%);
  transition:transform var(--t-slow);
  display:flex; flex-direction:column;
  padding:16px var(--gutter);
  overflow-y:auto;
}
.ptta-drawer[data-open="true"]{ visibility:visible; }
.ptta-drawer[data-open="true"] .ptta-drawer__shade{ opacity:1; }
.ptta-drawer[data-open="true"] .ptta-drawer__panel{ transform:translateX(0); }

.ptta-drawer__close{
  align-self:flex-end;
  width:44px; height:44px; display:grid; place-items:center;
  border:1px solid var(--line); border-radius:var(--radius-sm);
  background:var(--surface); cursor:pointer; margin-bottom:8px;
}
.ptta-drawer__link{
  display:block; padding:14px 2px;
  font-weight:700; font-size:var(--step-1);
  color:var(--text); text-decoration:none;
  border-bottom:1px solid var(--line);
}
.ptta-drawer__link[aria-current="page"]{ color:var(--brand-accent); }

/* ---------- 3. HERO ------------------------------------------- */
.hero{
  position:relative;
  min-height:clamp(260px,38vw,420px);
  display:grid; align-items:end;
  background:var(--brand-deep);
  overflow:hidden;
}
.hero__media{
  position:absolute; inset:0;
  background:center/cover no-repeat;
  opacity:.55;
}
.hero::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(8,46,110,.15) 0%,rgba(8,46,110,.85) 100%);
}
.hero__inner{
  position:relative; z-index:1;
  max-width:var(--maxw); margin-inline:auto; width:100%;
  padding:clamp(28px,5vw,56px) var(--gutter);
}
.hero h1{ color:var(--on-brand); max-width:20ch; margin-bottom:.4em; }
.hero p{
  color:var(--on-brand-soft);
  font-size:var(--step-1);
  max-width:52ch;
  margin-bottom:1.2em;
}

.btn{
  display:inline-block;
  padding:13px 22px;
  border-radius:var(--radius-sm);
  font-weight:700;
  text-decoration:none;
  transition:transform var(--t-fast),box-shadow var(--t-fast),background var(--t-fast);
}
.btn--light{ background:var(--surface); color:var(--brand); box-shadow:var(--elev-1); }
.btn--light:hover{ transform:translateY(-1px); box-shadow:var(--elev-2); color:var(--brand); }
.btn--solid{ background:var(--brand-accent); color:var(--on-brand); }
.btn--solid:hover{ background:var(--brand); color:var(--on-brand); transform:translateY(-1px); }

/* ---------- 4. TILE GRID -------------------------------------- */
.tiles{
  display:grid; gap:16px;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  margin-block:clamp(24px,4vw,40px);
  padding:0; list-style:none;
}
.tiles li{ margin:0; }
.tile{
  display:flex; flex-direction:column; gap:8px;
  height:100%;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px 18px;
  text-align:center;
  text-decoration:none;
  color:var(--text);
  transition:transform var(--t-fast),box-shadow var(--t-fast),border-color var(--t-fast);
}
.tile:hover{ transform:translateY(-3px); box-shadow:var(--elev-2); border-color:#CBD9EC; color:var(--text); }
.tile img{ width:60px; height:60px; object-fit:contain; margin-inline:auto; }
.tile__title{ font-size:var(--step-2); font-weight:800; color:var(--brand); line-height:1.25; }
.tile p{ margin:0; color:var(--muted); max-width:none; font-size:1rem; }

.stack > li > strong:first-child{ display:block; }

/* ---------- 5. PARTNER LOGOS ---------------------------------- */
.logos{
  display:grid; gap:14px;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  list-style:none; padding:0; margin:0;
}
.logos li{ margin:0; }
.logos a{
  display:grid; place-items:center;
  padding:14px; min-height:96px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  transition:transform var(--t-fast),box-shadow var(--t-fast);
}
.logos a:hover{ transform:translateY(-2px); box-shadow:var(--elev-1); }
.logos img{ max-height:64px; width:auto; object-fit:contain; }

/* ---------- 6. QUICK LINKS (aside) ---------------------------- */
.quicklinks{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:18px; }
.quicklinks h2{ font-size:var(--step-2); margin:0 0 12px; }
.ql-list{ list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.ql-list li{ margin:0; }
.ql-card{
  display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px;
  padding:14px; border:1px solid var(--line); border-radius:var(--radius-sm);
  text-decoration:none; color:var(--text);
  transition:border-color var(--t-fast),background var(--t-fast);
}
.ql-card:hover{ border-color:var(--brand-accent); background:var(--surface-alt); color:var(--text); }
.ql-card svg{ color:var(--brand-accent); flex:none; }
.ql-heading{ display:block; font-weight:700; color:var(--brand); line-height:1.3; }
.ql-sub{ display:block; font-size:.875rem; color:var(--muted); }

/* ---------- 7. MEETING TIMELINE ------------------------------- */
.timeline{ list-style:none; padding:0; margin:0; display:grid; gap:10px; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
.timeline li{ margin:0; background:var(--surface); border:1px solid var(--line); border-left:4px solid var(--brand-accent); border-radius:var(--radius-sm); padding:12px 14px; }
.timeline .when{ display:block; font-weight:700; color:var(--brand); }
.timeline .meta{ display:block; font-size:.9375rem; color:var(--muted); }
.timeline li[data-note="No meeting"]{ border-left-color:var(--line); opacity:.75; }

/* ---------- 8. EXECUTIVE LIST --------------------------------- */
.exec{ list-style:none; padding:0; margin:0; display:grid; gap:10px; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }
.exec li{ margin:0; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); padding:14px; }
.exec__name{ font-weight:800; color:var(--brand); }
.exec__role{ font-size:.9375rem; }
.exec__loc{ font-size:.875rem; color:var(--muted); }

/* ---------- 8b. PORTFOLIO CHAIRS ------------------------------ */
.chairs{ display:grid; gap:10px; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); margin:1.25em 0; }
.chairs dt{ font-weight:800; color:var(--brand); }
.chairs dd{ margin:0 0 .25em; }

/* ---------- 9. CALL TO ACTION --------------------------------- */
.cta{ position:relative; overflow:hidden; background:var(--brand); color:var(--on-brand); margin-top:clamp(32px,5vw,56px); }
.cta__media{ position:absolute; inset:0; background:center/cover no-repeat; opacity:.14; }
.cta__inner{ position:relative; max-width:var(--maxw); margin-inline:auto; padding:clamp(28px,5vw,48px) var(--gutter); text-align:center; }
/* these two must be explicit: inherited text-align does not beat
   a heading rule, which is how the old CTA ended up left-aligned */
.cta__inner h2{ color:var(--on-brand); text-align:center; margin:0 0 .35em; }
.cta__inner p{ color:var(--on-brand-soft); text-align:center; margin-inline:auto; margin-bottom:1.2em; font-size:var(--step-1); }
.cta__inner a:not(.btn){ color:var(--on-brand); }

/* ---------- 10. SOCIAL LINKS (inside the footer) -------------- */
.social{ display:flex; gap:10px; list-style:none; padding:0; margin:14px 0 0; }
.social li{ margin:0; }
.social a{
  display:grid; place-items:center; width:42px; height:42px;
  border-radius:50%;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.28);
}
.social a:hover{ background:rgba(255,255,255,.20); border-color:var(--on-brand-link); }
.social svg{ width:20px; height:20px; }

/* ---------- 11. FOOTER ---------------------------------------- */
.footer{ background:var(--brand-footer); color:var(--on-brand); }
.footer__inner{
  max-width:var(--maxw); margin-inline:auto;
  padding:clamp(28px,4vw,44px) var(--gutter);
  display:grid; gap:clamp(20px,4vw,40px);
  grid-template-columns:1fr;
}
@media (min-width:700px){ .footer__inner{ grid-template-columns:repeat(3,1fr); } }
.footer h2{ font-size:var(--step-2); color:var(--on-brand); margin:0 0 .5em; }
/* the old sheet set line-height:50% here, giving a 6px line box */
.footer p{ color:var(--on-brand-soft); margin:0 0 .5em; line-height:1.6; max-width:none; }
.footer ul{ list-style:none; padding:0; margin:0; line-height:1.6; }
.footer li{ margin:.3em 0; }
.footer a{ color:var(--on-brand); text-decoration:none; }
.footer a:hover{ color:var(--on-brand-link); text-decoration:underline; }
.footer__logo{ margin-bottom:14px; }
.footer address{ font-style:normal; color:var(--on-brand-soft); line-height:1.6; }

/* ---------- 12. BACK TO TOP ----------------------------------- */
.to-top{
  position:fixed; right:18px; bottom:18px; z-index:90;
  width:46px; height:46px; display:grid; place-items:center;
  border-radius:50%; border:1px solid var(--line);
  background:var(--surface); color:var(--brand);
  box-shadow:var(--elev-1);
  opacity:0; pointer-events:none;
  transition:opacity var(--t-fast),transform var(--t-fast);
  text-decoration:none;
}
.to-top[data-visible="true"]{ opacity:1; pointer-events:auto; }
.to-top:hover{ transform:translateY(-2px); box-shadow:var(--elev-2); color:var(--brand); }

/* ---------- 13. UTILITIES ------------------------------------- */
.stack > * + *{ margin-top:1em; }
.center{ text-align:center; }
.muted{ color:var(--muted); }
