/* Layout: deep spruce openers with oversized expanded type, snow-white reading sections,
   one sun-yellow accent.
   Motion: one shared breath, five seconds in and five out, drives everything that moves.
   The headline is set in a variable-width face, so its letters genuinely widen and narrow
   with it; the hero photo and the pacer dot run on the same clock, so they stay in step. */
:root {
  --spruce: #0e2b27;
  --spruce-2: #183f39;
  --snow: #f4f7f3;
  --mist: #e3ece6;
  --white: #ffffff;
  --granite: #55605a;
  --line: #c7d3cb;
  --line-dark: #2c5750;
  --sun: #f6c445;
  --sun-deep: #e0ac1f;
  --on-dark: #eef3ef;
  --on-dark-muted: #b5c6be;
  --error: #a4321f;
  --display: "Archivo", "Arial Nova", "Helvetica Neue", Arial, sans-serif;
  --body: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --gutter: 1.25rem;
  --max: 74rem;
  --breath: 10s;
  --breath-ease: cubic-bezier(0.45, 0, 0.55, 1);
  color-scheme: light;
}

@keyframes breathe-width {
  0%, 100% { font-stretch: 108%; letter-spacing: -0.034em; }
  50% { font-stretch: 125%; letter-spacing: -0.012em; }
}
@keyframes breathe-scale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes breathe-dot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(3.2); }
}
@keyframes settle-width {
  from { font-stretch: 94%; letter-spacing: -0.042em; }
  to { font-stretch: 118%; letter-spacing: -0.015em; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--snow);
  color: var(--spruce);
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--spruce);
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
p, ul, ol { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--spruce); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible { outline-color: var(--sun); }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 40;
  background: var(--sun); color: var(--spruce);
  font-family: var(--display); font-weight: 700;
  padding: 0.6rem 1rem; border-radius: 0.5rem;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 0.75rem); }

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--spruce);
  color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; column-gap: 1.5rem; min-height: 4.5rem;
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; padding-block: 0.6rem; }
.brand-name { font-family: var(--display); font-weight: 800; font-stretch: 118%; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand-by { font-style: italic; font-size: 0.98rem; color: var(--on-dark-muted); }
.nav { display: flex; align-items: center; gap: 1.75rem; font-family: var(--display); font-size: 0.98rem; font-weight: 500; }
.nav a { text-decoration: none; padding-block: 0.35rem; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--sun); }
.nav a.nav-cta {
  background: var(--sun); color: var(--spruce); font-weight: 700;
  padding: 0.6rem 1.15rem; border-radius: 999px; border-bottom: 0;
}
.nav a.nav-cta:hover { background: var(--sun-deep); }
.menu-btn {
  display: none; font-family: var(--display); font-weight: 700; font-size: 0.98rem;
  background: transparent; color: var(--on-dark);
  border: 2px solid var(--on-dark); border-radius: 999px; padding: 0.5rem 1.1rem; cursor: pointer;
}
@media (max-width: 54rem) {
  .nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 1.25rem; }
  .nav a { padding-block: 0.85rem; border-bottom: 1px solid var(--line-dark); }
  .nav a.nav-cta { text-align: center; margin-top: 1rem; }
  .js .menu-btn { display: inline-flex; }
  .js .nav { display: none; }
  .js .nav.open { display: flex; }
}

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.15;
  padding: 0.95rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn-sun { background: var(--sun); color: var(--spruce); }
.btn-sun:hover { background: var(--sun-deep); }
.btn-line { border-color: currentColor; background: transparent; color: inherit; }
.btn-line:hover { background: var(--mist); }
.dark .btn-line:hover { background: var(--spruce-2); }
.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.link {
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  text-decoration: underline; text-decoration-color: var(--sun-deep);
  text-decoration-thickness: 3px; text-underline-offset: 0.32em;
}
.link:hover { text-decoration-color: currentColor; }

/* Bands */
.band { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.dark { background: var(--spruce); color: var(--on-dark); }
.mist { background: var(--mist); }
.band-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 46rem; }
.band-head h2, .h2 {
  font-size: clamp(2.1rem, 5vw, 3.75rem); font-weight: 760; font-stretch: 112%;
}
.lede { font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.5; max-width: 40rem; }
.muted { color: var(--granite); }
.dark .muted { color: var(--on-dark-muted); }
.prose { display: grid; gap: 1.25rem; max-width: 42rem; }

/* Home hero */
.hero { background: var(--spruce); color: var(--on-dark); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.hero-copy {
  display: flex; flex-direction: column; justify-content: center; gap: 1.6rem;
  padding-block: clamp(3rem, 7vw, 6rem);
  padding-right: clamp(1.5rem, 4vw, 4rem);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.hero-who { font-family: var(--display); font-weight: 500; font-size: 1.02rem; color: var(--on-dark-muted); }
.hero h1 {
  font-size: clamp(3.3rem, 8.4vw, 8rem); font-weight: 800;
  line-height: 0.98; font-stretch: 116%; letter-spacing: -0.023em;
  animation: breathe-width var(--breath) var(--breath-ease) infinite;
}
.hero h1 span { display: block; }
.hero-lede { font-size: clamp(1.25rem, 1.9vw, 1.55rem); line-height: 1.45; max-width: 27rem; }
.hero-photo { position: relative; min-height: 30rem; overflow: hidden; }
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 12% 62%;
  transform-origin: 56% 58%;
  animation: breathe-scale var(--breath) var(--breath-ease) infinite;
}
.hero-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3.5rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(8, 26, 23, 0.82), rgba(8, 26, 23, 0));
  font-family: var(--display); font-weight: 700; font-stretch: 118%; font-size: 1.05rem; color: var(--white);
}
.hero-photo { margin: 0; }

.breath { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; min-height: 3.4rem; }
.breath-btn {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  background: none; color: inherit; cursor: pointer;
  border: 1px solid var(--line-dark); border-radius: 999px;
  padding: 0.5rem 1.35rem 0.5rem 0.55rem;
}
.breath-btn:hover { border-color: var(--sun); }
.breath-ring {
  flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  border: 2px solid var(--sun); display: grid; place-items: center;
}
.breath-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--sun);
  animation: breathe-dot var(--breath) var(--breath-ease) infinite;
}
.breath-cue { font-style: italic; font-size: 1.15rem; color: var(--on-dark); min-width: 12ch; }
/* Keeping Trish in the same spot in the frame at every width. The photo column
   changes shape as the window narrows, so a single crop position would slide her
   to the edge on a tall box and back to dead centre once the layout stacks. */
@media (max-width: 68rem) {
  .hero-photo img { object-position: 26% 62%; }
}
@media (max-width: 56rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); padding-bottom: 2.5rem; }
  .hero-photo { min-height: 0; aspect-ratio: 1 / 1; }
  .hero-photo img { object-position: 4% 58%; }
}
@media (max-width: 30rem) {
  .hero-photo { aspect-ratio: 5 / 6; }
  .hero-photo img { object-position: 15% 58%; }
}

/* Organizations */
.orgs { background: var(--white); border-bottom: 1px solid var(--line); padding-block: 2.25rem; }
.orgs-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.orgs h2 { font-size: 1.02rem; font-weight: 600; letter-spacing: 0; color: var(--granite); }
.logo-toggle {
  font-family: var(--display); font-weight: 600; font-size: 0.9rem;
  background: transparent; color: var(--spruce); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.35rem 0.9rem; cursor: pointer;
}
.logo-toggle:hover { background: var(--mist); }
.logo-list { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.logo-tile {
  flex: none; width: 10rem; height: 5.25rem; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 0.75rem;
  padding: 0.7rem 1rem; overflow: hidden;
}
.logo-tile img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.logo-tile.on-ink { background: #10201f; border-color: #10201f; }
.logo-tile.on-navy { background: #090d33; border-color: #090d33; padding: 0.25rem; }
.orgs.is-ticker .logo-window {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.orgs.is-ticker .logo-track { display: flex; gap: 1.25rem; width: max-content; animation: ticker 42s linear infinite; }
.orgs.is-ticker .logo-list { flex-wrap: nowrap; flex: none; }
.orgs.is-ticker .logo-window:hover .logo-track,
.orgs.is-ticker.is-paused .logo-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(calc(-50% - 0.625rem)); } }

/* Two offers on the home page */
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); }
.offer { display: grid; gap: 1.1rem; align-content: start; }
.offer img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.5rem; }
.offer h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 740; font-stretch: 110%; }
.offer-kind { font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--granite); }
.for-line { font-family: var(--display); font-size: 0.98rem; line-height: 1.45; color: var(--granite); }
@media (max-width: 46rem) { .offers { grid-template-columns: minmax(0, 1fr); } }

/* Split: image beside text */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; border-radius: 0.5rem; }
@media (max-width: 46rem) { .split { grid-template-columns: minmax(0, 1fr); } .split img { aspect-ratio: 1 / 1; } }

/* Inner page opener */
.page-hero { background: var(--spruce); color: var(--on-dark); padding-block: clamp(3rem, 7vw, 5.5rem); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.page-hero-copy { display: grid; gap: 1.5rem; justify-items: start; }
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.9rem); font-weight: 790; line-height: 0.98;
  font-stretch: 118%; letter-spacing: -0.015em;
  animation: settle-width 1.9s var(--breath-ease) both;
}
.page-hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.5rem; }
.page-hero img.tall { aspect-ratio: 4 / 5; object-position: 50% 12%; }
.page-kind { font-family: var(--display); font-weight: 500; font-size: 1.02rem; color: var(--on-dark-muted); }
@media (max-width: 54rem) { .page-hero-grid { grid-template-columns: minmax(0, 1fr); } .page-hero img.tall { aspect-ratio: 1 / 1; } }

/* Rows: keynotes and programs */
.rows { display: grid; }
.row {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.25rem clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line);
}
.rows .row:last-child { border-bottom: 1px solid var(--line); }
.row-title { display: grid; gap: 0.75rem; align-content: start; justify-items: start; }
.row h3 { font-size: clamp(1.9rem, 3.7vw, 3rem); font-weight: 770; font-stretch: 116%; }
.row.small h3 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-stretch: 110%; }
.row-sub { font-style: italic; font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.35; color: var(--granite); }
.row-body { display: grid; gap: 1.1rem; align-content: start; }
.tag {
  font-family: var(--display); font-weight: 700; font-size: 0.86rem;
  background: var(--sun); color: var(--spruce); padding: 0.3rem 0.75rem; border-radius: 999px;
}
.tag.plain { background: transparent; border: 1px solid var(--spruce); font-weight: 600; }
.fit { font-family: var(--display); font-size: 0.98rem; line-height: 1.5; color: var(--granite); }
.fit strong { color: var(--spruce); font-weight: 700; }
@media (max-width: 46rem) { .row { grid-template-columns: minmax(0, 1fr); } }

/* Simple lists */
.ticks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 2.5rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--sun-deep);
}
@media (max-width: 40rem) { .ticks { grid-template-columns: minmax(0, 1fr); } }
.stages { list-style: none; padding: 0; display: grid; }
.stages li {
  font-family: var(--display); font-weight: 720; font-stretch: 112%;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem); line-height: 1.2;
  padding-block: 0.9rem; border-top: 1px solid var(--line-dark);
}
.stages li:last-child { border-bottom: 1px solid var(--line-dark); }
.stages li span { display: block; margin-top: 0.2rem; font-family: var(--body); font-weight: 400; font-stretch: 100%; font-style: italic; font-size: 0.72em; color: var(--on-dark-muted); }

.focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.focus-grid h3 { font-size: 1.45rem; font-weight: 740; font-stretch: 110%; margin-bottom: 0.6rem; }
.focus-grid > div { border-top: 3px solid var(--sun-deep); padding-top: 1.1rem; }
@media (max-width: 46rem) { .focus-grid { grid-template-columns: minmax(0, 1fr); } }

.roles { list-style: none; padding: 0; display: grid; }
.roles li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.3rem 1.5rem; align-items: baseline;
  padding-block: 1.1rem; border-top: 1px solid var(--line);
}
.roles li:last-child { border-bottom: 1px solid var(--line); }
.role-name { font-family: var(--display); font-weight: 720; font-stretch: 108%; font-size: 1.25rem; line-height: 1.25; }
.role-org { grid-column: 1; color: var(--granite); }
.role-when { grid-column: 2; grid-row: 1; font-family: var(--display); font-size: 0.95rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 34rem) {
  .roles li { grid-template-columns: minmax(0, 1fr); }
  .role-when { grid-column: 1; grid-row: auto; }
}
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.two-col h2 { margin-bottom: 1.5rem; }
@media (max-width: 50rem) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.creds { list-style: none; padding: 0; display: grid; gap: 1rem; }
.creds li { border-left: 3px solid var(--sun-deep); padding-left: 1rem; font-family: var(--display); font-weight: 600; font-size: 1.1rem; line-height: 1.35; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-copy { display: grid; gap: 1.25rem; justify-items: start; }
.contact-copy h2 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 790; font-stretch: 118%; line-height: 0.98; }
.email { font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, 2.2vw, 1.3rem); overflow-wrap: anywhere; user-select: all; }
.form { display: grid; gap: 1.1rem; background: var(--spruce-2); border-radius: 0.75rem; padding: clamp(1.25rem, 3vw, 2rem); }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 36rem) { .field-row { grid-template-columns: minmax(0, 1fr); } }
label { font-family: var(--display); font-weight: 600; font-size: 0.95rem; }
label .opt { font-weight: 400; color: var(--on-dark-muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--spruce);
  background: var(--snow); border: 2px solid transparent; border-radius: 0.5rem; padding: 0.7rem 0.85rem;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hint { font-size: 0.98rem; color: var(--on-dark-muted); line-height: 1.45; }
.form-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.status { font-family: var(--display); font-size: 1rem; line-height: 1.4; white-space: pre-line; }
.status:empty { display: none; }
@media (max-width: 50rem) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { background: var(--spruce); color: var(--on-dark); border-top: 1px solid var(--line-dark); padding-block: 3rem 2.25rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-tag {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 5.4vw, 4rem);
  line-height: 1.05; font-stretch: 116%; letter-spacing: -0.023em; color: var(--sun);
  animation: breathe-width var(--breath) var(--breath-ease) infinite;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; font-family: var(--display); font-weight: 500; font-size: 0.98rem; }
.footer-nav a { text-decoration: none; border-bottom: 2px solid transparent; }
.footer-nav a:hover { border-bottom-color: var(--sun); }
.fine { font-size: 0.95rem; color: var(--on-dark-muted); line-height: 1.5; max-width: 44rem; }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 1.5rem; justify-items: start; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1, .hero-photo img, .breath-dot, .page-hero h1, .footer-tag,
  .orgs.is-ticker .logo-track { animation: none; }
  .hero h1, .footer-tag { font-stretch: 120%; letter-spacing: -0.02em; }
  .page-hero h1 { font-stretch: 118%; letter-spacing: -0.015em; }
  .hero-photo img { transform: none; }
  .breath-dot { transform: scale(2.2); }
}
