/* POwER, Inc. — palette drawn from Girls STEM Institute */
:root {
  --maroon: #9a4949;
  --maroon-deep: #743535;
  --green: #96d07a;
  --green-deep: #2b5336;
  --blush: #f6ecec;
  --mint: #edf7e7;
  --black: #000;
  --white: #fff;
  --ink-soft: #3d3d3d;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 125%;
  --header-h: 72px;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --radius-lg: 20px;
  --radius-sm: 999px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--black);
  color: var(--white);
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--maroon);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: #e6e6e6; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.wordmark {
  text-decoration: none;
  font-stretch: var(--wide);
  line-height: 1;
  white-space: nowrap;
}
.wordmark-name { font-weight: 900; font-size: 1.5rem; letter-spacing: -0.01em; }
.wordmark-name .w { color: var(--maroon); }
.wordmark-inc { font-weight: 400; font-size: 1.05rem; font-stretch: 100%; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
}
.site-nav a {
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: 6px;
}
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.site-nav a:not(.nav-cta):hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.site-nav .nav-cta {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--maroon);
  color: var(--white);
  font-weight: 600;
  transition: background 0.2s ease;
}
.site-nav .nav-cta:hover { background: var(--maroon-deep); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 24px; height: 2.5px;
  margin-inline: auto;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.button-primary { background: var(--maroon); color: var(--white); }
.button-primary:hover { background: var(--maroon-deep); }
.button-ghost { border-color: var(--black); color: var(--black); }
.button-ghost:hover { background: var(--black); color: var(--white); }
.button-dark { background: var(--black); color: var(--white); }
.button-dark:hover { background: var(--green-deep); }
.button-light { background: var(--white); color: var(--maroon-deep); }
.button-light:hover { background: var(--green); color: var(--black); }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(40px, 8vw, 104px) clamp(48px, 7vw, 96px);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(32px, 6vw, 96px);
}

.acronym {
  display: flex;
  flex-direction: column;
  font-stretch: var(--wide);
  font-weight: 300;
  font-size: clamp(2.4rem, 6.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.acro-line { display: block; white-space: nowrap; }
.acro-line b {
  font-weight: 900;
  color: var(--maroon);
}
.acro-w b { color: var(--green-deep); }

.hero-side {
  display: grid;
  gap: 28px;
  padding-bottom: 0.6em;
  border-left: 6px solid var(--green);
  padding-left: clamp(20px, 2.5vw, 32px);
}
.hero-lead {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.4;
  font-weight: 500;
  max-width: 26ch;
}

/* One orchestrated load moment: the name spells itself out */
@media (prefers-reduced-motion: no-preference) {
  .acro-line {
    opacity: 0;
    transform: translateX(-0.4em);
    animation: acro-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .acro-line:nth-child(1) { animation-delay: 0.05s; }
  .acro-line:nth-child(2) { animation-delay: 0.15s; }
  .acro-line:nth-child(3) { animation-delay: 0.25s; }
  .acro-line:nth-child(4) { animation-delay: 0.35s; }
  .acro-line:nth-child(5) { animation-delay: 0.45s; }
  @keyframes acro-in { to { opacity: 1; transform: none; } }
}

/* ---------- Photo strip ---------- */
.photo-strip {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: 8px;
  height: clamp(220px, 32vw, 460px);
}
.photo-strip img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }

.section-title {
  font-stretch: var(--wide);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: clamp(36px, 5vw, 64px);
}

/* About */
.about { background: var(--white); }

.statements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 96px);
}
.statement { display: grid; gap: 16px; align-content: start; }
.statement-kicker {
  font-size: 1rem;
  font-weight: 700;
  color: var(--maroon);
}
.statement-big {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 20ch;
}
.statement-body {
  color: var(--ink-soft);
  max-width: 52ch;
}

.values {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 20px;
  border-top: 2px solid var(--black);
}
.values li {
  flex: 0 0 auto;
  font-stretch: var(--wide);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
}
.values li:nth-child(2) { color: var(--maroon); }
.values li:nth-child(3) { color: var(--green-deep); }

/* Programs */
.programs { background: var(--blush); }

.program {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}
.program + .program { margin-top: clamp(72px, 10vw, 120px); }

.program-wellness .program-media { order: 2; }

.program-media { position: relative; }
.media-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.program-gsi .media-main { border-bottom-right-radius: 120px; }
.program-wellness .media-main { border-top-left-radius: 120px; }

.media-inset {
  position: absolute;
  left: -12px;
  bottom: -28px;
  width: clamp(120px, 34%, 200px);
  padding: 14px 16px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(116, 53, 53, 0.18);
}

.program-body { display: grid; gap: 20px; justify-items: start; }
.program-title {
  font-stretch: var(--wide);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.program-body > p { max-width: 50ch; color: var(--ink-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1.5px solid var(--maroon);
  color: var(--maroon-deep);
  font-size: 0.95rem;
  font-weight: 600;
}

.dimensions-label {
  font-weight: 700;
  color: var(--black) !important;
  margin-bottom: -8px;
}
.dimensions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  max-width: 520px;
}
.dimensions li {
  padding: 10px 8px;
  background: var(--green);
  border-radius: 10px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}
.dimensions li:nth-child(even) { background: #b9e0a4; }

/* Board */
.board { background: var(--white); }

.board-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}
.person img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 16px;
  background: var(--mint);
  margin-bottom: 16px;
}
.person:nth-child(odd) img { border-bottom: 6px solid var(--maroon); }
.person:nth-child(even) img { border-bottom: 6px solid var(--green); }
.person-name { font-weight: 700; line-height: 1.3; }
.person-role { font-size: 0.98rem; color: var(--maroon-deep); margin-top: 2px; line-height: 1.35; }

/* Contact */
.contact {
  background: var(--maroon);
  color: var(--white);
  padding-block: clamp(72px, 10vw, 128px);
}
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(32px, 6vw, 88px);
}
.contact-title {
  font-stretch: var(--wide);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.contact-lead { max-width: 44ch; color: #f6e3e3; }
.contact-actions { display: grid; gap: 20px; justify-items: start; }
.contact-email {
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  font-weight: 700;
  text-decoration-color: var(--green);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}
.contact-email:hover { color: var(--green); }
.contact :focus-visible { outline-color: var(--white); }

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding-block: 56px 28px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.wordmark-footer .wordmark-name { font-size: 1.9rem; }
.wordmark-footer .w { color: var(--green); }
.footer-tag { margin-top: 10px; color: #bdbdbd; font-size: 0.98rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-nav a { text-decoration: none; font-size: 1rem; }
.footer-nav a:hover { color: var(--green); }
.site-footer :focus-visible { outline-color: var(--green); }
.footer-base {
  margin-top: 40px;
  font-size: 0.9rem;
  color: #9a9a9a;
}
.footer-base-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  border-top: 1px solid #333;
}
.credit a {
  color: var(--white);
  text-decoration-color: var(--green);
  text-underline-offset: 3px;
}
.credit a:hover { color: var(--green); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .board-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--white);
    border-bottom: 1px solid #e6e6e6;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; font-size: 1.15rem; border-bottom: 1px solid #efefef; }
  .site-nav a:not(.nav-cta)::after { display: none; }
  .site-nav a.is-active { color: var(--maroon); }
  .site-nav .nav-cta { margin-top: 16px; text-align: center; border-bottom: 0; }

  .hero-inner,
  .statements,
  .program,
  .contact-inner { grid-template-columns: 1fr; }

  .hero-inner { align-items: start; }
  .acronym { font-size: clamp(2.6rem, 11vw, 4.6rem); }

  .program-wellness .program-media { order: 0; }
  .media-inset { left: 12px; bottom: -20px; }
  .program-gsi .program-body { margin-top: 12px; }
}

@media (max-width: 560px) {
  .photo-strip { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .photo-strip img { aspect-ratio: 16 / 10; height: auto; }
  .photo-strip img:last-child { display: none; }

  .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values { flex-direction: column; gap: 12px; }
  .dimensions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .button-row .button { flex: 1 1 auto; }
  .wordmark-name { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
