/* Meeting page — American Century */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--aci-font);
  color: var(--aci-ink);
  background: var(--aci-snow);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: end;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: var(--aci-white);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(3, 89, 69, 0.22) 0%, rgba(3, 89, 69, 0.4) 45%, rgba(1, 48, 37, 0.88) 100%),
    linear-gradient(115deg, rgba(0, 122, 83, 0.28), transparent 60%);
}

.hero-brand.foot-brands {
  position: absolute;
  top: clamp(1.5rem, 4vw, 3rem);
  left: clamp(1.5rem, 4vw, 3rem);
  right: auto;
  width: auto;
  max-width: calc(100% - 3rem);
  justify-content: flex-start;
  animation: rise 0.9s ease both;
}

.hero-brand .foot-logo-aci {
  width: min(200px, 42vw);
}

.hero-brand .foot-divider {
  background: rgba(255, 255, 255, 0.45);
}

.hero-copy {
  width: min(40rem, 100%);
  padding-bottom: clamp(1.5rem, 5vh, 3.5rem);
  animation: rise 0.9s ease 0.12s both;
}

.hero-copy .when {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
}

.hero-copy h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-copy p {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.86);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--aci-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 0.2rem;
  transition: border-color 0.2s ease, gap 0.2s ease;
}

.hero-cta:hover {
  border-color: var(--aci-lime);
  gap: 0.75rem;
}

.hero-cta span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.hero-cta:hover span {
  transform: translateY(2px);
}

/* —— Day nav —— */
.day-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--aci-stone);
}

.day-nav-inner {
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 3.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.day-nav-inner::-webkit-scrollbar {
  display: none;
}

.day-nav-label {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aci-green);
}

.day-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.15rem 1.5rem;
  flex: 1;
}

.day-nav a {
  display: block;
  padding: 1rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--aci-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.day-nav a:hover,
.day-nav a[aria-current="true"] {
  color: var(--aci-ink);
  border-bottom-color: var(--aci-green);
}

/* —— Topics —— */
.topics {
  background:
    linear-gradient(180deg, var(--aci-snow), #eef4f0 100%);
  padding: 1.5rem 0 2.5rem;
}

.topic {
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(5rem, 0.22fr) 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--aci-stone);
  border-radius: 6px;
  cursor: pointer;
  scroll-margin-top: 4.5rem;
  opacity: 1;
  transform: none;
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .topic:not(.is-in) {
    opacity: 0;
    transform: translateY(22px);
  }

  .topic.is-in {
    opacity: 1;
    transform: none;
    transition:
      opacity 0.7s ease,
      transform 0.7s ease,
      background-color 0.35s ease,
      box-shadow 0.35s ease;
  }
}

.topic:last-of-type {
  border-bottom: 0;
}

.topic:hover,
.topic:focus-within {
  background: rgba(0, 122, 83, 0.06);
}

.topic.is-open {
  background: rgba(0, 122, 83, 0.08);
  box-shadow: inset 3px 0 0 var(--aci-green);
}

.topic-meta {
  padding-top: 0.2rem;
}

.topic-meta .index {
  display: block;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--aci-green);
  transition: transform 0.35s ease, color 0.35s ease;
}

.topic:hover .topic-meta .index,
.topic.is-open .topic-meta .index {
  transform: translateX(6px);
  color: var(--aci-green-dark);
}

.topic-toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 0 0 0.85rem;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.topic-toggle h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--aci-ink);
  max-width: 18ch;
  transition: color 0.25s ease;
}

.topic:hover .topic-toggle h2,
.topic.is-open .topic-toggle h2 {
  color: var(--aci-green-dark);
}

.topic-chevron {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.45rem;
  border-right: 2px solid var(--aci-green);
  border-bottom: 2px solid var(--aci-green);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.35s ease, border-color 0.25s ease;
  opacity: 0.75;
}

.topic.is-open .topic-chevron {
  transform: rotate(225deg) translate(-2px, -2px);
  opacity: 1;
}

.topic-body > p {
  margin: 0;
  max-width: 52rem;
  font-size: 1.5rem;
  line-height: 1.55;
  color: var(--aci-muted);
}

.topic-panel {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  transition: grid-template-rows 0.45s ease, margin-top 0.45s ease;
}

.topic.is-open .topic-panel {
  grid-template-rows: 1fr;
  margin-top: 1.15rem;
}

.topic-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.topic-body .notes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
  max-width: 52rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease 0.05s, transform 0.35s ease 0.05s;
}

.topic.is-open .topic-body .notes {
  opacity: 1;
  transform: none;
}

.topic-body .notes li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--aci-charcoal);
  font-size: 1.4rem;
  line-height: 1.45;
}

.topic-body .notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.45rem;
  height: 2px;
  background: var(--aci-lime);
}

.topic-body .notes a {
  color: var(--aci-green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.topic-body .notes a:hover {
  color: var(--aci-green-dark);
}

.topic-hint {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--aci-green);
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.topic:hover .topic-hint,
.topic.is-open .topic-hint {
  opacity: 0;
  pointer-events: none;
}

.site-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
  background: var(--aci-green-dark);
}

.foot-brands {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 1.75rem;
}

.foot-logo-aci {
  display: block;
  width: min(200px, 48vw);
  height: auto;
}

.foot-divider {
  width: 1px;
  height: 2rem;
  background: rgba(255, 255, 255, 0.35);
}

.foot-athena {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.foot-logo-athena-mark {
  display: block;
  width: 36px;
  height: 36px;
}

.foot-logo-athena-word {
  display: block;
  width: 110px;
  height: auto;
}

@media (max-width: 520px) {
  .foot-divider {
    display: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 720px) {
  .topic {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .topic-meta {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding-top: 0;
  }

  .topic-meta .index {
    font-size: 2rem;
  }

  .topic-toggle h2 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-brand,
  .hero-copy,
  .hero-media img {
    animation: none;
  }

  .topic,
  .topic-panel,
  .topic-body .notes,
  .topic-meta .index,
  .topic-chevron {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .topic.is-open .topic-chevron {
    transform: none;
  }
}
