/* About pages — extends marketing-site styles. */
@import url('../styles.css');

/* ────────── Photo placeholder ────────── */
.photo-placeholder {
  position: relative;
  width: 100%;
  background: var(--cgac-cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.photo-placeholder::before,
.photo-placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(135deg,
    rgba(26, 26, 26, 0.06) 25%, transparent 25%, transparent 50%,
    rgba(26, 26, 26, 0.06) 50%, rgba(26, 26, 26, 0.06) 75%,
    transparent 75%);
  background-size: 18px 18px;
  z-index: 0;
}
.photo-placeholder--paper { background: var(--cgac-paper); }
.photo-placeholder--cream { background: var(--cgac-cream); }
.photo-placeholder--ink { background: var(--cgac-ink-soft); }
.photo-placeholder--ink::before,
.photo-placeholder--ink::after {
  background-image: linear-gradient(135deg,
    rgba(255, 255, 255, 0.06) 25%, transparent 25%, transparent 50%,
    rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.06) 75%,
    transparent 75%);
}
.photo-placeholder--orange {
  background: linear-gradient(135deg, var(--cgac-orange), var(--cgac-red));
}
.photo-placeholder--orange::before,
.photo-placeholder--orange::after {
  background-image: linear-gradient(135deg,
    rgba(255,255,255,0.18) 25%, transparent 25%, transparent 50%,
    rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.18) 75%,
    transparent 75%);
}
.photo-placeholder__label {
  position: relative; z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  background: rgba(250, 246, 239, 0.85);
  padding: 6px 12px;
  border-radius: var(--radius-stamp);
  white-space: nowrap;
}
.photo-placeholder--ink .photo-placeholder__label {
  color: rgba(250, 246, 239, 0.85);
  background: rgba(26, 26, 26, 0.55);
}
.photo-placeholder--orange .photo-placeholder__label {
  color: var(--cgac-paper);
  background: rgba(26, 26, 26, 0.35);
}

/* ────────── About sub-nav (sticky) ────────── */
.about-subnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 239, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-1);
}
.about-subnav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 56px;
  display: flex; align-items: center; gap: 28px;
}
.about-subnav__label {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding-right: 22px;
  border-right: 1px solid var(--border-1);
}
.about-subnav__inner ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 4px; flex-wrap: wrap;
}
.about-subnav__link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-stamp);
  transition: all 160ms var(--ease-out);
}
.about-subnav__link:hover {
  background: var(--cgac-cream);
  color: var(--fg-1);
}
.about-subnav__link.is-active {
  background: var(--cgac-ink);
  color: var(--cgac-paper);
}

/* ────────── About hero ────────── */
.about-hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  isolation: isolate;
  background: #1a0e08;
}
.about-hero__slideshow {
  position: absolute; inset: 0;
  background: #1a0e08;
}
.about-hero__slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0;
  /* Rest at the Ken-Burns END transform so an outgoing slide holds its zoom
     while it fades out — no snap-back. The incoming slide's jump to the
     animation start happens at opacity 0, so it is never seen. */
  transform: scale(1.16) translate3d(-2%, -1.4%, 0);
  transition: opacity 2000ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
/* Ken-Burns runs only on the visible slide, restarting each time a photo
   becomes active so every image gets its own slow zoom + pan. */
.about-hero__slide.is-active {
  opacity: 1;
  animation: aboutHeroKenBurns 8500ms cubic-bezier(0.33, 0, 0.3, 1) forwards;
}
@keyframes aboutHeroKenBurns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(-2%, -1.4%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .about-hero__slide { transition: opacity 400ms linear; animation: none; transform: none; }
  .about-hero__slide.is-active { animation: none; transform: none; }
}
.about-hero__photo-label {
  position: absolute;
  bottom: 24px; left: 56px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(250, 246, 239, 0.78);
  background: rgba(26, 14, 8, 0.55);
  padding: 6px 12px;
  border-radius: var(--radius-stamp);
  backdrop-filter: blur(4px);
  animation: aboutHeroLabelIn 600ms var(--ease-out);
}
@keyframes aboutHeroLabelIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.about-hero__scrim {
  position: absolute; inset: 0;
  background:
    /* Heavy darken anchored under the headline */
    radial-gradient(ellipse 68% 80% at 22% 65%, rgba(20,12,8,0.78) 0%, rgba(20,12,8,0.50) 45%, rgba(20,12,8,0.18) 75%, rgba(20,12,8,0.05) 100%),
    linear-gradient(105deg, rgba(20,12,8,0.55) 0%, rgba(20,12,8,0.28) 50%, rgba(20,12,8,0.08) 100%),
    linear-gradient(180deg, rgba(20,12,8,0.20) 0%, rgba(20,12,8,0.65) 100%);
  pointer-events: none;
}
.about-hero__eyebrow,
.about-hero__title,
.about-hero__lede {
  text-shadow: 0 2px 22px rgba(0,0,0,0.65), 0 1px 2px rgba(0,0,0,0.55);
}
.about-hero__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 56px 88px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  color: var(--cgac-paper);
}
.about-hero__eyebrow { color: var(--cgac-amber); }
.about-hero__title {
  align-items: flex-start;
  color: var(--cgac-paper);
  margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.about-hero__title .top, .about-hero__title .bottom {
  font-family: var(--font-display); font-size: 60px;
  letter-spacing: 0.04em; text-transform: uppercase; line-height: 1;
}
.about-hero__title .script {
  font-family: var(--font-script); font-size: 84px; line-height: 1;
  margin: 16px 0 14px;
  color: var(--cgac-amber);
  align-self: center;
}
.about-hero__lede {
  max-width: 600px;
  font-size: 19px; line-height: 1.55;
  color: rgba(250,246,239,0.94);
  margin: 0;
}

/* ────────── Generic about content sections ────────── */
.about-section {
  padding: 96px 56px;
  max-width: 1280px;
  margin: 0 auto;
}
.about-section--cream {
  background: var(--cgac-cream);
  max-width: none;
  padding-left: 0; padding-right: 0;
}
.about-section--cream > .about-section__wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px;
}
.about-section--ink {
  background: var(--cgac-ink);
  color: var(--cgac-paper);
  max-width: none;
  padding-left: 0; padding-right: 0;
}
.about-section--ink > .about-section__wrap {
  max-width: 1280px; margin: 0 auto; padding: 0 56px;
}

.about-section__head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.about-section__head--left {
  margin-left: 0;
  text-align: left;
  align-items: flex-start;
}
.about-section__title {
  font-family: var(--font-display);
  font-size: 56px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--fg-1);
  margin: 0;
}
.about-section--ink .about-section__title { color: var(--cgac-paper); }
.about-section__lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-3);
  margin: 0;
  max-width: 620px;
}
.about-section--ink .about-section__lede { color: rgba(250,246,239,0.78); }

/* ────────── Modal (used by Staff & Board) ────────── */
.bio-modal {
  position: fixed; inset: 0;
  background: rgba(26, 14, 8, 0.6);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
}
.bio-modal__panel {
  background: var(--cgac-paper);
  border-radius: var(--radius-md);
  border-top: 8px solid var(--cgac-orange);
  max-width: 880px;
  width: 100%;
  box-shadow: var(--shadow-soft-lg);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  overflow: hidden;
}
.bio-modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%; border: 0;
  background: rgba(250, 246, 239, 0.95);
  font-size: 24px; color: var(--fg-1);
  cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft-sm);
}
.bio-modal__close:hover { background: var(--cgac-amber); }
.bio-modal__photo {
  position: relative;
  min-height: 100%;
  align-self: stretch;
}
.bio-modal__photo .photo-placeholder {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: 0;
  aspect-ratio: auto !important;
}
.bio-modal__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

/* Sidekick — small polaroid-style "extra" pinned inside a bio (e.g. Anita's dog Peyton). */
.bio-sidekick {
  float: right;
  width: 150px;
  margin: 4px 0 14px 18px;
  padding: 8px 8px 4px;
  background: var(--cgac-paper);
  outline: 1px solid rgba(26,14,8,0.10);
  box-shadow: 0 10px 22px rgba(26,14,8,0.14);
  transform: rotate(2.5deg);
  shape-outside: margin-box;
}
.bio-sidekick__img {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.bio-sidekick__caption {
  padding: 8px 2px 4px;
  text-align: center;
  font-family: var(--font-script);
  font-size: 22px;
  line-height: 1;
  color: var(--cgac-ink);
}
.bio-sidekick__title {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cgac-orange);
}
@media (max-width: 600px) {
  .bio-sidekick { float: none; width: 130px; margin: 0 auto 14px; }
}
.bio-modal__body {
  padding: 40px 44px 44px;
}
.bio-modal__name {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-1);
  margin: 0 0 6px;
  line-height: 1.05;
}
.bio-modal__title {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cgac-orange);
  margin: 0 0 22px;
}
.bio-modal__bio {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-2);
  margin: 0;
  text-wrap: pretty;
}

/* ────────── Person grid (Staff & Board share this) ────────── */
.person-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.person-grid--four { grid-template-columns: repeat(4, 1fr); }

.person-card {
  background: var(--cgac-paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft-sm);
  display: flex; flex-direction: column;
  transition: all 200ms var(--ease-out);
  cursor: pointer;
  border: 0;
  text-align: left;
  font: inherit;
  padding: 0;
  width: 100%;
}
.person-card:hover {
  box-shadow: var(--shadow-soft-md);
  transform: translateY(-3px);
}
.person-card__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.person-card__photo .photo-placeholder {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: 0;
  aspect-ratio: auto !important;
}
.person-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26, 14, 8, 0.85) 100%);
  display: flex; align-items: flex-end;
  padding: 16px 18px;
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
}
.person-card:hover .person-card__overlay { opacity: 1; }
.person-card__overlay-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cgac-paper);
  margin: 0;
  text-wrap: pretty;
}
.person-card__body {
  padding: 20px 22px 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.person-card__name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-1);
  margin: 0;
  line-height: 1.1;
}
.person-card__title {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cgac-orange);
  margin: 4px 0 8px;
}
.person-card__short {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-3);
  margin: 0 0 14px;
  text-wrap: pretty;
}
.person-card__actions {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.person-card__more {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-1);
}
.person-card__more::after {
  content: ' →';
  color: var(--cgac-orange);
  transition: transform 160ms var(--ease-out);
  display: inline-block;
}
.person-card:hover .person-card__more::after {
  transform: translateX(3px);
}
.person-card__email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cgac-ink);
  background: var(--cgac-paper);
  border: 1px solid var(--cgac-ink);
  padding: 6px 10px;
  text-decoration: none;
  transition: background 140ms var(--ease-out), color 140ms var(--ease-out);
  cursor: pointer;
}
.person-card__email:hover,
.person-card__email:focus-visible {
  background: var(--cgac-orange);
  color: var(--cgac-paper);
  border-color: var(--cgac-orange);
}
.person-card--placeholder { opacity: 0.85; }
.person-card--placeholder .person-card__title { color: var(--fg-4); }

/* ────────── Glass Axis Image Archive callout ────────── */
.archive-callout {
  max-width: 920px;
  margin: 36px auto 4px;
  background: var(--cgac-cream);
  border-left: 4px solid var(--cgac-orange);
  border-radius: var(--radius-stamp);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.archive-callout__note {
  flex: 1 1 320px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cgac-ink);
  text-wrap: pretty;
}
.archive-callout__btn {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cgac-paper);
  background: var(--cgac-orange);
  border: 1px solid var(--cgac-orange);
  border-radius: var(--radius-stamp);
  padding: 12px 18px;
  cursor: pointer;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.archive-callout__btn::after { content: ' →'; }
.archive-callout__btn:hover,
.archive-callout__btn:focus-visible {
  background: var(--cgac-red);
  border-color: var(--cgac-red);
  color: var(--cgac-paper);
}

/* ────────── Subpage CTA strip (next/previous in About flow) ────────── */
.about-pager {
  background: var(--cgac-cream);
  padding: 40px 56px;
  border-top: 1px solid var(--border-1);
}
.about-pager__inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: stretch; justify-content: space-between; gap: 24px;
}
.about-pager__link {
  flex: 1;
  text-decoration: none;
  background: var(--cgac-paper);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-soft-sm);
  transition: all 200ms var(--ease-out);
}
.about-pager__link:hover {
  box-shadow: var(--shadow-soft-md);
  transform: translateY(-2px);
}
.about-pager__link--prev { align-items: flex-start; }
.about-pager__link--next { align-items: flex-end; text-align: right; }
.about-pager__eyebrow {
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg-3);
}
.about-pager__title {
  font-family: var(--font-display);
  font-size: 26px; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-1);
  margin: 0;
}
.about-pager__title::before { content: '← '; color: var(--cgac-orange); }
.about-pager__link--next .about-pager__title::before { content: ''; }
.about-pager__link--next .about-pager__title::after { content: ' →'; color: var(--cgac-orange); }

/* ── Responsive nav fixes for narrower viewports ───────────────────────── */
@media (max-width: 1180px) {
  .cgac-nav { gap: 20px; padding: 14px 28px; flex-wrap: wrap; }
  .cgac-nav__links { gap: 20px; margin-left: 8px; }
  .cgac-nav__link { font-size: 16px; letter-spacing: 0.10em; padding: 6px 2px; }
  .cgac-nav__brand img { height: 64px; }
  .cgac-nav__cta .btn { padding: 10px 14px; font-size: 11px; letter-spacing: 0.10em; }
  .cgac-utility { padding: 8px 28px; font-size: 12px; gap: 12px; flex-wrap: wrap; }
  .about-subnav__inner { padding: 12px 28px; gap: 16px; }
}
@media (max-width: 920px) {
  .cgac-nav__links { width: 100%; order: 3; gap: 14px; flex-wrap: wrap; margin: 6px 0 0; }
  .cgac-nav__link { font-size: 14px; }
  .cgac-utility__hours { gap: 10px; flex-wrap: wrap; }
}

/* ────────── Responsive — AboutHero, content sections, grids ────────── */
@media (max-width: 900px) {
  .about-hero { min-height: 420px; }
  .about-hero__inner { padding: 64px 24px 56px; gap: 16px; }
  .about-hero__title .top, .about-hero__title .bottom { font-size: 40px; }
  .about-hero__title .script { font-size: 54px; margin: 8px 0; }
  .about-hero__lede { font-size: 16px; }
  .about-hero__photo-label { left: 20px; bottom: 16px; }

  .about-section { padding: 56px 24px; }
  .about-section--cream > .about-section__wrap,
  .about-section--ink > .about-section__wrap { padding: 0 24px; }
  .about-section__head { margin-bottom: 40px; }
  .about-section__title { font-size: 36px; }
  .about-section__lede { font-size: 16px; }

  .person-grid, .person-grid--four { grid-template-columns: repeat(2, 1fr); gap: 18px; }

  /* Mobile: collapse the side-by-side panel into a single card — the portrait
     becomes a full-bleed backdrop with the bio overlaid on a scrim, so the whole
     thing fits one screen and scrolls internally for long bios. */
  .bio-modal { padding: 14px; }
  .bio-modal__panel {
    display: block;
    position: relative;
    max-width: 440px;
    max-height: calc(100dvh - 28px);
    overflow: hidden;
  }
  .bio-modal__photo {
    position: absolute; inset: 0;
    min-height: 0; height: 100%;
    z-index: 0;
  }
  .bio-modal__img { object-position: center 20%; }
  .bio-modal__body {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 440px;
    max-height: calc(100dvh - 28px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 160px 26px 30px;
    background: linear-gradient(180deg,
      rgba(26,14,8,0.10) 0%,
      rgba(26,14,8,0.45) 34%,
      rgba(26,14,8,0.74) 60%,
      rgba(26,14,8,0.93) 100%);
  }
  .bio-modal__name { color: var(--cgac-paper); font-size: 30px; }
  .bio-modal__title { color: var(--cgac-amber); margin-bottom: 16px; }
  .bio-modal__bio { color: rgba(250,246,239,0.92); }
  .bio-modal__close { z-index: 5; }

  .about-pager { padding: 32px 24px; }
  .about-pager__inner { flex-direction: column; gap: 14px; }
  .about-pager__link--next { align-items: flex-start; text-align: left; }
}

@media (max-width: 560px) {
  .about-hero__title .top, .about-hero__title .bottom { font-size: 31px; }
  .about-hero__title .script { font-size: 42px; }
  .about-section__title { font-size: 28px; }
  .person-grid, .person-grid--four { grid-template-columns: 1fr; }
}
