:root {
  --bg: #fffaf6;
  --bg-elev: #ffffff;
  --bg-alt: #eef5ff;
  --peach: #fff1e8;
  --sage: #e8f3ee;
  --gold-soft: #fff6de;
  --lilac: #f4eef8;
  --ink: #171412;
  --ink-2: #3a342e;
  --muted: #5f574e;
  --line: #eadfd4;
  --navy: #163a5f;
  --coral: #e85d3c;
  --gold: #e0a12a;
  --teal: #1f7a63;
  --accent: var(--coral);
  --accent-soft: #ffe6dc;
  --shadow: 0 16px 40px rgba(22, 58, 95, 0.08);
  --sans: "Figtree", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
}

.page-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.fx-grid,
.fx-orb,
.fx-rule,
.fx-mark {
  position: absolute;
}

.fx-grid {
  inset: 0;
  background-image: radial-gradient(rgba(232, 93, 60, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 18%, transparent 72%);
}

.fx-orb {
  border-radius: 50%;
  filter: blur(40px);
}

.fx-orb-a {
  top: -8rem;
  right: -4rem;
  width: 28rem;
  height: 28rem;
  background: rgba(232, 93, 60, 0.16);
}

.fx-orb-b {
  bottom: 8%;
  left: -8rem;
  width: 22rem;
  height: 22rem;
  background: rgba(31, 122, 99, 0.12);
}

.fx-rule {
  background: linear-gradient(90deg, transparent, rgba(22, 58, 95, 0.18), transparent);
  height: 1px;
}

.fx-rule-a {
  top: 34%;
  left: -10%;
  width: 42%;
  transform: rotate(-18deg);
}

.fx-rule-b {
  bottom: 22%;
  right: -8%;
  width: 38%;
  transform: rotate(14deg);
}

.fx-mark {
  top: 12rem;
  left: 6%;
  width: 10px;
  height: 10px;
  background: var(--accent);
  opacity: 0.28;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.8rem;
  background: var(--ink);
  color: var(--bg);
  z-index: 20;
}

.skip-link:focus { top: 1rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 246, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.wordmark {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.55rem;
  background: var(--accent);
  vertical-align: 0.08em;
}

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

.site-nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover { color: var(--ink); }

.nav-cta {
  padding: 0.52rem 0.95rem;
  border-radius: 999px;
  background: var(--coral);
  color: #fff !important;
}

.nav-cta:hover { background: #d24c2d; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
}

.hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
}

.hero-frame {
  position: absolute;
  inset: 2.4rem 4vw 1.4rem;
  border: 1px solid rgba(22, 58, 95, 0.1);
  pointer-events: none;
}

.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--coral);
  opacity: 0.7;
}

.hero-frame::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.hero-frame::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: end;
}

.hero-grid.has-photo {
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 320px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow span {
  margin-right: 0.8rem;
  color: var(--muted);
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.22;
}

h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(2.15rem, 4.4vw, 3.25rem);
  max-width: 18ch;
  letter-spacing: -0.03em;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  max-width: 22ch;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.lede,
.section-intro {
  margin: 0;
  max-width: 42rem;
  color: var(--ink-2);
  font-size: 1.05rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
  margin-top: 2.2rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-meta a { text-underline-offset: 0.18em; }

.hero-photo {
  margin: 0 auto;
  width: min(300px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 18px 40px rgba(22, 58, 95, 0.12);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.55), transparent 42%),
    linear-gradient(160deg, var(--peach), var(--bg-alt) 55%, var(--sage));
  justify-self: end;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo.is-placeholder {
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section {
  position: relative;
  padding: 5.5rem 0;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(238, 245, 255, 0.88), rgba(232, 243, 238, 0.9)),
    radial-gradient(rgba(22, 58, 95, 0.08) 1px, transparent 1px);
  background-size: auto, 22px 22px;
  border-block: 1px solid var(--line);
}

#contact.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 241, 232, 0.92), rgba(255, 246, 222, 0.88)),
    radial-gradient(rgba(232, 93, 60, 0.1) 1px, transparent 1px);
  background-size: auto, 22px 22px;
}

.section-head {
  margin-bottom: 2.8rem;
}

.line-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.line-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem 1.6rem;
  align-items: start;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.line-item:last-child {
  border-bottom: 1px solid var(--line);
}

.line-item p,
.timeline-body p {
  margin: 0;
  color: var(--ink-2);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-period {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--navy);
}

.timeline-org {
  margin: 0 0 0.7rem;
  color: var(--teal);
  font-size: 0.95rem;
  font-weight: 500;
}

.text-link {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-underline-offset: 0.2em;
  white-space: nowrap;
  color: var(--navy);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}

.contact-grid .section-head { margin-bottom: 0; }

.contact-panel {
  position: relative;
  max-width: 36rem;
  padding: 1.6rem 1.5rem 1.3rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--coral);
}

.contact-form,
.form-status {
  max-width: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(232, 93, 60, 0.28);
  outline-offset: 1px;
  border-color: var(--coral);
}

.contact-form p { margin: 0 0 1rem; }

.contact-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.contact-form label span { color: var(--muted); }

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0.75rem 0.8rem;
}

.contact-form textarea { resize: vertical; min-height: 140px; }

.submit-btn {
  display: inline-block;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.form-status {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  background: #fff;
}

.form-status.is-ok { border-color: #2f6b45; }
.form-status.is-error { border-color: #8f2a1c; }

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer p:first-child { margin: 0; }

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

@media (max-width: 900px) {
  .hero-grid.has-photo { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; }
  .timeline-item,
  .line-item { grid-template-columns: 1fr; gap: 0.4rem; }
  .contact-grid,
  .grid-2 { grid-template-columns: 1fr; }
  .hero-frame { inset: 1.2rem 1rem 0.8rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1.25rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { width: fit-content; margin-top: 0.6rem; }
  .hero { padding-top: 3.2rem; }
}

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