:root {
  --navy: #0c2348;
  --navy-deep: #07162f;
  --ink: #17233c;
  --muted: #3d4c66;
  --cream: #f4efe4;
  --paper: #fffdf8;
  --gold: #a6843d;
  --gold-ink: #5c4310;
  --gold-bright: #e4c98a;
  --line: rgba(12, 35, 72, 0.14);
  --red: #7a1b28;
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
  --focus: 3px solid var(--navy);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 5;
  background: white;
  color: var(--navy);
  padding: 0.6rem 0.9rem;
}

.skip:focus {
  top: 0.75rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--navy);
  color: var(--cream);
}

.wordmark {
  color: var(--cream);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.wordmark-full {
  display: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.nav a {
  color: var(--cream);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  border-bottom-color: var(--gold-bright);
}

.site-header :focus-visible,
.band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--cream);
}

.flag-rule {
  height: 6px;
  background: linear-gradient(to bottom, var(--navy) 0 2px, #fff 2px 4px, var(--red) 4px 6px);
}

.wrap {
  width: min(68rem, calc(100% - 2.5rem));
  margin: 0 auto;
}

.hero {
  padding: 2.25rem 0 2.75rem;
}

.hero-grid {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  text-align: center;
}

.seal-stage {
  width: min(210px, 58vw);
  perspective: 900px;
}

.seal-tilt {
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(12, 35, 72, 0.16);
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 180ms ease-out;
  transform-style: preserve-3d;
}

.seal {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.04);
}

.soon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 0 0.4rem;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 4.4rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 0.95;
  text-transform: uppercase;
}

.soon::before,
.soon::after {
  content: "";
  height: 1px;
  width: 2.25rem;
  background: var(--gold);
}

h1,
h2,
.quote {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--navy);
}

h1 {
  margin: 0;
  max-width: 16em;
  font-size: clamp(2rem, 4vw, 3.15rem);
}

.lede {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.button {
  appearance: none;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--cream);
  min-height: 48px;
  padding: 0.75rem 1.3rem;
  font: 700 1rem/1 var(--sans);
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
}

.button:hover {
  background: var(--navy-deep);
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.button.secondary {
  background: transparent;
  color: var(--navy);
}

.fee {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  max-width: 34rem;
  margin: 0;
  text-align: left;
}

.dialog-panel .fee,
.card .fee {
  margin-bottom: 1.1rem;
}

.fee-amount {
  flex: 0 0 auto;
  border: 2px solid var(--gold);
  background: white;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.4rem 0.6rem;
}

.fee-text {
  color: var(--ink);
}

.seal-line {
  margin: 1.25rem 0 0;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section {
  padding: 3.5rem 0;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.band {
  background: var(--navy);
  color: var(--cream);
}

.band h2,
.band .role,
.band .quote {
  color: var(--cream);
}

.eyebrow,
.role {
  margin: 0 0 0.25rem;
  color: var(--gold-ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.band .role {
  color: var(--gold-bright);
}

.pillars,
.values,
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pillars {
  display: grid;
  gap: 0.75rem;
}

.pillar,
.value {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  font-weight: 600;
}

.pillar {
  display: flex;
  align-items: center;
  min-height: 4.5rem;
  padding: 1rem 1.1rem;
}

.pillar:hover,
.pillar:focus-visible,
.value:hover,
.value:focus-visible {
  border-color: var(--gold);
  background: white;
  box-shadow: inset 0 -3px 0 var(--gold);
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.value {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.55rem 0.95rem;
  background: transparent;
  border-color: rgba(228, 201, 138, 0.45);
  color: var(--cream);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.value:hover,
.value:focus-visible {
  background: rgba(228, 201, 138, 0.14);
  color: white;
  box-shadow: none;
}

.bridges {
  margin: 1.15rem 0 0;
  max-width: 16em;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
}

.years {
  display: inline-block;
  margin: 0.9rem 0 0;
  padding: 0.28rem 0.9rem 0.34rem;
  background: var(--red);
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.words {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.words li {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(228, 201, 138, 0.55);
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: word-turn 8s linear infinite;
}

.words li:nth-child(2) {
  animation-delay: 2s;
}

.words li:nth-child(3) {
  animation-delay: 4s;
}

.words li:nth-child(4) {
  animation-delay: 6s;
}

.words li:hover,
.words li:focus-visible {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--navy);
}

@keyframes word-turn {
  0%,
  18% {
    background: var(--gold-bright);
    border-color: var(--gold-bright);
    color: var(--navy);
  }

  28%,
  100% {
    background: transparent;
    border-color: rgba(228, 201, 138, 0.55);
    color: var(--gold-bright);
  }
}

.founder-layout {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.portrait {
  margin: 0;
}

.portrait img {
  display: block;
  width: min(100%, 280px);
  height: auto;
  border: 1px solid rgba(228, 201, 138, 0.75);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.quote {
  margin: 0.8rem 0 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.2;
}

.join-grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 1.35rem 1.25rem 1.5rem;
}

.card h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.card p {
  margin-top: 0;
}

.field {
  margin: 0 0 0.85rem;
}

label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(12, 35, 72, 0.28);
  background: white;
  color: var(--ink);
  font: inherit;
}

input[aria-invalid="true"] {
  border-color: var(--red);
}

.field-error {
  min-height: 1.25rem;
  margin: 0.25rem 0 0;
  color: var(--red);
  font-size: 0.95rem;
}

.form-status {
  margin: 0 0 1rem;
  padding: 0.8rem 0.9rem;
}

.form-status[data-kind="saved"] {
  background: #e7f2ea;
  color: #0d3b24;
  border: 1px solid #b7d7c3;
}

.form-status[data-kind="mailto"] {
  background: #f8f1de;
  color: #3e3012;
  border: 1px solid #e0c27a;
}

.form-status[data-kind="error"] {
  background: #f8e8ea;
  color: #6d1520;
  border: 1px solid #e3b4ba;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

dialog {
  width: min(36rem, calc(100% - 1.5rem));
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(7, 22, 47, 0.72);
}

.dialog-panel {
  padding: 1.25rem 1.25rem 1.4rem;
}

.dialog-panel h2 {
  margin-bottom: 0.75rem;
}

.contact-list {
  display: grid;
  gap: 0.35rem;
}

.contact-list a {
  color: var(--navy);
  font-weight: 700;
}

.site-footer {
  padding: 1.4rem 1.25rem 2rem;
  background: var(--navy-deep);
  color: var(--cream);
  text-align: center;
}

.site-footer p {
  margin: 0.2rem 0;
}

@media (min-width: 720px) {
  .pillars {
    grid-template-columns: 1fr 1fr;
  }

  .wordmark-short {
    display: none;
  }

  .wordmark-full {
    display: inline;
  }
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
    gap: 3rem;
    text-align: left;
  }

  .hero-copy .soon,
  .hero-actions {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .pillars {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .founder-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2.5rem;
  }

  .join-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 1.35rem 0 1.75rem;
  }

  .seal-stage {
    width: min(168px, 48vw);
  }

  .portrait {
    margin-right: auto;
    margin-left: auto;
  }

  .soon {
    font-size: 1.85rem;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  .soon::before,
  .soon::after {
    width: 1.15rem;
  }

  .hero .fee {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .lede {
    font-size: 1.05rem;
  }

  dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
  }

  .dialog-panel {
    min-height: 100%;
  }
}

.poster {
  background:
    radial-gradient(ellipse at 18% 0%, rgba(196, 161, 90, 0.2), transparent 36%),
    linear-gradient(180deg, #1a3a6b 0%, #0c2348 46%, #07162f 100%);
  color: var(--cream);
  padding-top: 1.6rem;
}

.poster-top {
  display: grid;
  gap: 1.1rem 1.5rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.poster .portrait img {
  width: min(100%, 280px);
  border: 2px solid var(--gold-bright);
}

.poster .soon {
  justify-content: center;
  margin: 0 0 0.2rem;
  color: var(--gold-bright);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  line-height: 1;
}

.poster .soon::before,
.poster .soon::after {
  width: 1.4rem;
  background: var(--gold);
}

.script-name {
  margin: 0;
  color: #f3e2b0;
  font-family: "Great Vibes", "Cormorant Garamond", cursive;
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: none;
}

.founder-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0.35rem 0 0;
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.founder-label::before,
.founder-label::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--gold-bright);
}

.org-name {
  margin: 0.55rem 0 0;
  color: var(--cream);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.poster .seal-stage {
  width: min(168px, 42vw);
}

.gold-sweep {
  display: block;
  width: 100%;
  height: 46px;
  margin: 0.4rem 0 0;
}

.poster-banner {
  padding: 0.2rem 0 2.2rem;
  text-align: center;
}

.poster .bridges {
  margin-right: auto;
  margin-left: auto;
  max-width: 14em;
  color: #f7f1e4;
}

.poster .years {
  margin-top: 0.85rem;
}

.poster .words {
  justify-content: center;
  max-width: 42rem;
  margin-right: auto;
  margin-left: auto;
  padding: 0.35rem 0.7rem;
  background: var(--red);
}

.poster .words li {
  border-color: transparent;
}

.poster .words li:not(:first-child)::before {
  content: "★";
  margin-right: 0.75rem;
  color: var(--gold-bright);
  font-weight: 400;
}

@media (min-width: 880px) {
  .poster-top {
    grid-template-columns: minmax(190px, 260px) minmax(0, 1fr) 180px;
    justify-items: stretch;
    text-align: left;
  }

  .poster .soon,
  .founder-label {
    justify-content: flex-start;
  }

  .poster .seal-stage {
    justify-self: end;
  }
}

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

  .seal-tilt,
  .seal-tilt:hover {
    transform: none !important;
    transition: none !important;
  }

  .pillar,
  .value,
  .button,
  .seal,
  .words li {
    transition: none !important;
  }

  .words li {
    animation: none;
  }
}
