/* ============================================================
   Elcano public site — page-specific styles
   ============================================================
   Layout rules unique to the About and Contact pages. Linked
   AFTER site.css so it can lean on the shared shell, type, and
   button classes. Every color/font references a token from
   tokens.css so both themes and the toggle keep working.

   Contents
     1. Content-page hero
     2. Generic content sections
     3. Centered statement block
     4. Two-column split (positioning / brand)
     5. Brand mark figure
     6. Team grid
     7. Closing CTA band
     8. Contact page
     9. Responsive
   ============================================================ */

/* ===== 1. Content-page hero ===== */
.pagehero {
  position: relative;
  z-index: 1;
  margin-top: -66px; /* tuck under the sticky nav, like the homepage hero */
}
.pagehero .container {
  padding-block: clamp(120px, 20vh, 200px) clamp(48px, 8vh, 88px);
}
.pagehero-inner {
  max-width: 940px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
}
.pagehero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.07;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  text-wrap: balance;
}
.pagehero-sub {
  max-width: 720px;
  text-wrap: pretty;
}

/* ===== 2. Generic content sections ===== */
.page-section {
  position: relative;
  z-index: 1;
  background: var(--bg);
}
.page-section--alt { background: var(--surface-alt); }
.page-section .container {
  padding-block: clamp(72px, 11vw, 132px);
}

.section-head {
  max-width: 840px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head .h2 { text-wrap: pretty; }
.section-head .lead { max-width: 720px; }

/* ===== 3. Centered statement block ===== */
.statement {
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  text-align: center;
}
.statement-lead {
  font-family: var(--font-display);
  font-size: clamp(23px, 4.8vw, 34px);
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-strong);
  margin: 0;
  text-wrap: pretty;
}

/* ===== 4. Two-column split ===== */
.split {
  display: flex;
  gap: clamp(40px, 6vw, 88px);
  align-items: flex-start;
  flex-wrap: wrap;
}
.split-copy {
  flex: 1 1 440px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.split-copy .h2 { text-wrap: pretty; }
.split-copy p { color: var(--text-body); margin: 0; }
.split-aside {
  flex: 1 1 380px;
  align-self: stretch;
  display: flex;
}
.split-aside .check-list { gap: 18px; }
.split-aside .check-list li { color: var(--text-strong); }

/* a bordered panel used to hold the aside list */
.panel {
  width: 100%;
  border: 1px solid var(--border-soft);
  background: var(--surface-elevated);
  border-radius: 16px;
  padding: clamp(26px, 3.4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.page-section--alt .panel { background: var(--surface-elevated); }
.panel-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}

/* ===== 5. Brand mark figure ===== */
.brand-figure {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}
.brand-figure-inner {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background:
    radial-gradient(closest-side, var(--glow-glimpse), rgba(89, 86, 213, 0) 72%),
    var(--surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.brand-figure-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot-grid) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.4;
  mask-image: radial-gradient(120% 90% at 50% 50%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 50%, #000 35%, transparent 78%);
  pointer-events: none;
}
.brand-figure-inner svg { position: relative; width: 46%; height: auto; }

/* ===== 6. Team grid ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
/* leadership row up top, then a compact 4-up crew grid */
.team-grid--leads { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-grid--crew { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.team-name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--chip-feature-border);
  transition: border-color var(--speed-base) ease;
}
.team-name a:hover { border-color: var(--accent); }
.team-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(26px, 2.6vw, 34px);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--surface-elevated);
  transition: border-color var(--speed-base) ease, transform var(--speed-base) ease;
}
.team-card:hover {
  border-color: var(--chip-feature-border);
  transform: translateY(-2px);
}
.team-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--icon-tile);
  border: 1px solid var(--chip-feature-border);
}
.team-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.team-role {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
}
.team-bio {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0;
}
/* compact crew card: centered avatar/name/role, no bio */
.team-card--compact {
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 22px 16px;
}
.team-card--compact .team-avatar { width: 44px; height: 44px; font-size: 14px; }
.team-card--compact .team-name { font-size: 16px; }
.team-card--compact .team-role { font-size: 10.5px; margin-top: 3px; }
.team-note {
  margin-top: clamp(32px, 4vw, 44px);
  font-size: 15px;
  color: var(--text-secondary);
}
.team-note .accent-text { font-weight: 600; }

/* ===== 7. Closing CTA band ===== */
.cta-band {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
  text-align: center;
}
.cta-band .h2 { text-wrap: balance; }
.cta-band .lead { max-width: 620px; text-wrap: pretty; }
.cta-band-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

/* ===== 8. Contact page ===== */
.contact-hero .pagehero-inner {
  max-width: 820px;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.contact-hero .pagehero-sub { max-width: 620px; }
.contact-hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.method-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(28px, 3vw, 38px);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--surface-elevated);
  text-decoration: none;
  transition: border-color var(--speed-base) ease, transform var(--speed-base) ease;
}
a.method-card:hover {
  border-color: var(--chip-feature-border);
  transform: translateY(-2px);
}
.method-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: var(--icon-tile);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.method-icon svg { display: block; }
.method-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.method-value {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  word-break: break-word;
}
.method-sub {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-body);
  margin: 0;
}
a.method-card .method-value { transition: color var(--speed-base) ease; }
a.method-card:hover .method-value { color: var(--accent); }

/* ===== 9. Responsive ===== */
@media (max-width: 980px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-methods { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .pagehero { margin-top: 0; }
  .pagehero .container { padding-block: clamp(48px, 12vw, 88px) clamp(36px, 8vw, 64px); }
  .brand-figure { order: -1; }
}

@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
}
