:root {
  --bg: #f3f0e8;
  --bg-deep: #e8e2d4;
  --ink: #1c2430;
  --muted: #5a6472;
  --line: rgba(28, 36, 48, 0.12);
  --accent: #2a6b5a;
  --accent-soft: #d5e8e1;
  --surface: #fffcf7;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --space: clamp(1.25rem, 4vw, 2rem);
  --max: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(42, 107, 90, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 35% at 100% 10%, rgba(180, 140, 80, 0.08), transparent 45%),
    var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  background: var(--ink);
  color: var(--surface);
  padding: 0.75rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(243, 240, 232, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: var(--surface);
  font-family: var(--font-display);
  font-size: 1.1rem;
  border-radius: 4px;
}
.logo-text { font-size: 1.05rem; }

.nav {
  display: none;
  gap: 1.75rem;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover,
.nav a:focus-visible { color: var(--accent); outline: none; }
.nav-cta {
  background: var(--ink);
  color: var(--surface) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  transition: background 0.25s;
}
.nav-cta:hover,
.nav-cta:focus-visible { background: var(--accent) !important; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem var(--space) 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-nav[hidden] { display: none !important; }

@media (min-width: 860px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: 7.5rem 0 4.5rem;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, var(--bg) 35%, transparent 70%),
    linear-gradient(180deg, transparent 50%, var(--bg) 100%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 40px,
      rgba(42, 107, 90, 0.04) 40px,
      rgba(42, 107, 90, 0.04) 41px
    ),
    radial-gradient(ellipse 70% 80% at 85% 40%, #2a6b5a 0%, #1e4a3f 40%, #0f2a24 100%);
  animation: softPulse 12s ease-in-out infinite alternate;
}

@keyframes softPulse {
  from { filter: brightness(1); }
  to { filter: brightness(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

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

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.35rem, 6vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 2rem;
  max-width: 32rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #1f5548; }
.btn-secondary {
  border-color: var(--line);
  background: var(--surface);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 2.25rem;
  max-width: 20ch;
  letter-spacing: -0.02em;
}

.about-grid {
  display: grid;
  gap: 2rem;
}
.about-grid h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.about-copy p {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 1.05rem;
}
.about-copy p:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
  }
}

.education { background: var(--surface); border-block: 1px solid var(--line); }

.edu-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.edu-item {
  background: var(--surface);
  padding: 1.75rem 1.5rem;
}
.edu-item h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.edu-item p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}
@media (min-width: 640px) {
  .edu-grid { grid-template-columns: 1fr 1fr; }
}

.why-grid {
  display: grid;
  gap: 2rem;
}
.why-grid h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}
.why-grid p {
  color: var(--muted);
  margin: 0;
}
@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
}

.global {
  background: var(--ink);
  color: #e8ebe8;
}
.global .section-label { color: #7eb8a8; }
.global-inner h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.global-inner > p {
  color: rgba(232, 235, 232, 0.7);
  max-width: 36rem;
  margin: 0 0 2rem;
}
.region-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.region-list li {
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.contact { text-align: center; }
.contact-inner h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.contact-inner p {
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  background: var(--bg-deep);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.footer-brand p {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-inner nav a:hover,
.footer-inner nav a:focus-visible { color: var(--accent); outline: none; }
.footer-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  animation: revealUp 0.85s ease forwards;
}
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }

@keyframes revealUp {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .hero-visual { animation: none; }
}

/* Legal + 404 pages */
.legal-page,
.error-page {
  padding-block: clamp(6rem, 16vw, 8rem) 4rem;
  min-height: 60vh;
}
.legal-page .container,
.error-page .container {
  max-width: 42rem;
}
.legal-page h1,
.error-page h1 {
  font-family: var(--font-display, Georgia, serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.legal-page .legal-updated {
  font-size: 0.9rem;
  opacity: 0.7;
  margin: 0 0 2rem;
}
.legal-page h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
}
.legal-page p,
.legal-page li {
  margin: 0 0 1rem;
  line-height: 1.65;
}
.legal-page ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}
.error-page {
  text-align: center;
  display: flex;
  align-items: center;
}
.error-page .container {
  margin-inline: auto;
}
.error-page .error-code {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.75rem;
}
.error-page p {
  margin: 0 0 1.75rem;
  opacity: 0.8;
}
