/* ── Design tokens ── */
:root {
  --cream: #f5f0e8;
  --cream-dark: #ebe4d8;
  --charcoal: #1a1a1b;
  --charcoal-soft: #3d3d3f;
  --gold: #b87333;
  --gold-light: #e8c896;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --max-width: 42rem;
  --header-height: 5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

body.intro-active {
  overflow: hidden;
}

/* ── Intro overlay (True-inspired pulsing circle) ── */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: var(--cream);
  pointer-events: all;
}

.intro-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 9.875rem;
  height: 9.875rem;
}

.intro-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(26, 26, 27, 0.1);
  background: var(--cream-dark);
  animation: pulse-ring 1.25s cubic-bezier(0.5, 0.025, 0.5, 0.95) infinite;
}

.intro-logo-backing {
  position: absolute;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 0 1px rgba(26, 26, 27, 0.06);
  z-index: 1;
}

.intro-logo-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.intro-logo {
  position: relative;
  z-index: 2;
  width: 3.25rem;
  height: auto;
  overflow: visible;
}

.logo-half {
  transform-origin: 50px 40px;
}

.logo-half--left {
  opacity: 0;
  transform: translate(-22px, 14px);
}

.logo-half--right {
  opacity: 0;
  transform: translate(22px, 14px);
}

.intro-wordmark {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--charcoal);
  margin-top: 0;
  opacity: 0;
  transform: translateY(12px);
}

.intro-tagline {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(8px);
}

/* Intro sequence states */
.intro-overlay.assembling .logo-half--left,
.intro-overlay.assembling .logo-half--right {
  animation: slide-in-half 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.intro-overlay.assembling .logo-half--right {
  animation-delay: 0.12s;
}

.intro-overlay.assembled .logo-half--right {
  animation: gold-gleam 0.8s ease 0.1s 1 forwards;
}

.intro-overlay.assembling .intro-wordmark {
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.intro-overlay.assembling .intro-tagline {
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.75s forwards;
}

.intro-overlay.expanding .intro-stage {
  animation: fade-out-logo 0.35s ease forwards;
}

.intro-overlay.expanding .intro-logo-wrap {
  animation: fade-out-logo 0.35s ease forwards;
}

.intro-overlay.expanding .intro-pulse-ring {
  animation: expand-ring 0.9s linear 0.25s forwards;
}

.intro-overlay.fade-out {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
  pointer-events: none;
}

.intro-overlay.hidden {
  display: none;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  background: var(--cream);
  opacity: 0;
  transition: opacity 0.6s ease 0.2s;
}

body.revealed .site-header,
.site-header--visible {
  opacity: 1;
}

.hero-reveal {
  opacity: 0;
  transform: translateY(1.5rem);
}

body.revealed .hero-reveal {
  animation: content-reveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.revealed .hero-title { animation-delay: 0.15s; }
body.revealed .hero-sub { animation-delay: 0.3s; }
body.revealed .site-footer.hero-reveal { animation-delay: 0.45s; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--charcoal);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--charcoal);
}

@media (max-width: 640px) {
  .site-header {
    gap: 1rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .site-nav a {
    font-size: 0.75rem;
  }
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--charcoal);
}

.header-logo svg {
  width: 2rem;
  height: auto;
}

.header-wordmark {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}


/* ── Hero ── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-height) + 2rem) clamp(1.5rem, 5vw, 3rem) 4rem;
  max-width: 90rem;
  margin: 0 auto;
}


.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: 2rem;
}

.hero-line {
  display: block;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  max-width: 36rem;
  color: var(--charcoal-soft);
  margin-bottom: 0.5rem;
}

.hero .cta {
  margin-top: 2rem;
  align-self: flex-start;
}

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: calc(var(--header-height) + 3rem) clamp(1.5rem, 5vw, 3rem) 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero--compact {
  padding-bottom: 2rem;
}

.page-hero--centered {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.page-title {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.page-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--charcoal-soft);
  max-width: 36rem;
}

/* ── Content ── */
.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem) 6rem;
}

.content-block {
  margin-bottom: 3.5rem;
}

.content-block h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.content-block p {
  margin-bottom: 1.25rem;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.lead {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.45;
  color: var(--charcoal);
}

/* ── Role lists (inline) ── */
.role-lists {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.role-list h3 {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}

.role-list p {
  font-size: 1rem;
  color: var(--charcoal-soft);
  margin-bottom: 0;
}

/* ── Stakes block ── */
.stakes {
  margin: 4rem 0;
  padding: 0;
  border: none;
}

.stakes p {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.stakes-sub {
  font-size: clamp(1.25rem, 3vw, 1.75rem) !important;
  color: var(--charcoal-soft) !important;
}

.stakes--compact {
  margin: 3rem 0 1.5rem;
}

.stakes--compact p {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

/* ── Three beats ── */
.beats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cream-dark);
}

@media (min-width: 768px) {
  .beats {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.beat h3 {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.beat p {
  font-size: 1rem;
  color: var(--charcoal-soft);
  margin-bottom: 0;
}

/* ── Phases (Approach page) ── */
.phases {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-bottom: 2rem;
}

.phase {
  padding-top: 0.5rem;
  border-top: 1px solid var(--cream-dark);
}

.phase-number {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.phase h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.phase p {
  margin-bottom: 1.25rem;
  color: var(--charcoal-soft);
}

.phase p:last-child {
  margin-bottom: 0;
}

/* ── Partners (About page) ── */
.partners {
  margin-bottom: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cream-dark);
}

.partners h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 2rem;
}

.partner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.partner-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.partner-photo {
  width: 100%;
  aspect-ratio: 1;
  max-width: 12rem;
  margin-bottom: 1.25rem;
  background: var(--cream-dark);
  border: 1px dashed rgba(26, 26, 27, 0.15);
}

.partner-history,
.partner-focus {
  font-size: 0.9375rem;
  color: var(--charcoal-soft);
  margin-bottom: 0.5rem;
}

.partner-focus {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ── Contact form ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.75rem 0;
  color: var(--charcoal);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--cream-dark);
  outline: none;
  transition: border-color 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-bottom-color: var(--charcoal);
}

.form-row select {
  cursor: pointer;
}

.form-row textarea {
  resize: vertical;
  min-height: 6rem;
}

.contact-form .cta {
  margin-top: 0.5rem;
  border: none;
  cursor: pointer;
  align-self: flex-start;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--charcoal-soft);
  min-height: 1.5rem;
}

/* ── CTA ── */
.closing {
  padding-top: 1rem;
}

.cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  background: var(--charcoal);
  transition: background 0.2s, transform 0.2s;
}

.cta:hover {
  background: var(--charcoal-soft);
  transform: translateY(-1px);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.cta-group .cta {
  margin-top: 0;
}

.text-link {
  font-size: 0.9375rem;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid var(--cream-dark);
  transition: border-color 0.2s;
}

.text-link:hover {
  border-bottom-color: var(--charcoal);
}

.text-link--prominent {
  font-size: 1rem;
  margin-top: 1.5rem;
}

/* ── Footer ── */
.site-footer {
  padding: 2rem clamp(1.5rem, 5vw, 3rem) 3rem;
  border-top: 1px solid var(--cream-dark);
  max-width: 90rem;
}

.site-footer p {
  font-size: 0.8125rem;
  color: var(--charcoal-soft);
  opacity: 0.7;
}

.site-footer-copyright {
  margin-top: 0.5rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-footer a:hover {
  border-bottom-color: var(--charcoal-soft);
}

/* ── Scroll reveals ── */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
}

body.revealed .reveal {
  animation: content-reveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.revealed .hero-title { animation-delay: 0.15s; }
body.revealed .hero-sub { animation-delay: 0.3s; }
body.revealed .hero .cta { animation-delay: 0.45s; }
body.revealed .content-block:nth-of-type(1) { animation-delay: 0.2s; }
body.revealed .content-block:nth-of-type(2) { animation-delay: 0.3s; }
body.revealed .content-block:nth-of-type(3) { animation-delay: 0.4s; }
body.revealed .stakes { animation-delay: 0.5s; }
body.revealed .beats { animation-delay: 0.6s; }
body.revealed .closing { animation-delay: 0.7s; }
body.revealed .site-footer { animation-delay: 0.8s; }

/* ── Keyframes ── */
@keyframes pulse-ring {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes expand-ring {
  100% { transform: scale(30); }
}

@keyframes slide-in-half {
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes gold-gleam {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-out-logo {
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

@keyframes content-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .intro-overlay,
  .intro-pulse-ring,
  .logo-half,
  .intro-wordmark,
  .intro-tagline,
  .reveal {
    animation: none !important;
    transition: none !important;
  }

  .intro-overlay {
    display: none;
  }

  body.intro-active {
    overflow: auto;
  }

  .site-header,
  .hero-reveal {
    opacity: 1;
    transform: none;
  }
}
