:root {
  --navy: #0b1f3a;
  --ink: #172126;
  --muted: #5f6d73;
  --surface: #ffffff;
  --subtle: #f5f7fa;
  --subtle-green: #f0f7f4;
  --border: #d8e0df;
  --teal: #0d7b70;
  --teal-dark: #0a5d55;
  --coral: #a33d54;
  --shadow: 0 12px 30px rgba(11, 31, 58, 0.06);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: min(72rem, calc(100% - 2.5rem));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 0.2em; }
button { font: inherit; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--surface);
  background: var(--navy);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  height: 82px;
  padding-inline: max(1.25rem, calc((100% - 72rem) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(11, 31, 58, 0.035);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-decoration: none;
}
.brand strong { display: block; font-size: 17px; font-weight: 750; }
.brand-mark { width: 40px; height: 40px; }
.brand-mark circle { fill: var(--coral); }
.brand-mark path { fill: none; stroke: var(--teal); stroke-width: 1.6; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a,
.back-link {
  min-height: 44px;
  padding: 11px 14px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.back-link:hover,
.back-link:focus-visible { color: var(--navy); background: var(--subtle); }
.menu-button { display: none; }

.hero {
  position: relative;
  width: var(--page);
  min-height: 640px;
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: clamp(3rem, 7vw, 6.5rem);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow > span { width: 22px; height: 2px; background: var(--coral); }
.hero h1,
.statement h2,
.section-heading h2,
.closing h2,
.legal-title h1 {
  margin: 0;
  color: var(--navy);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.hero h1 { max-width: 720px; font-size: clamp(54px, 6.3vw, 88px); }
.hero h1 em,
.closing h2 em { color: var(--teal); font-style: normal; }
.hero-lead {
  max-width: 650px;
  margin: 28px 0 26px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
}
.text-link,
.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  color: var(--surface);
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.text-link:hover,
.project-link:hover { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-1px); }
.text-link span,
.project-link span { transition: transform 180ms ease; }
.text-link:hover span { transform: translateY(3px); }
.project-link:hover span { transform: translate(2px, -2px); }
.hero-visual {
  position: relative;
  min-height: 390px;
  aspect-ratio: 1;
  align-self: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: radial-gradient(circle at 50% 45%, rgba(13, 123, 112, 0.15), transparent 54%), var(--subtle-green);
  box-shadow: var(--shadow);
}
.hero-visual svg { width: 100%; height: 100%; animation: float 8s ease-in-out infinite; }
.constellation-line { fill: none; stroke: var(--navy); stroke-width: 1.4; opacity: 0.52; }
.star-points circle { fill: var(--coral); stroke: var(--surface); stroke-width: 5; }
.orbit { position: absolute; border: 1px solid rgba(11, 31, 58, 0.14); border-radius: 50%; }
.orbit-one { inset: 8%; transform: rotate(22deg) scaleY(0.48); }
.orbit-two { inset: 20%; transform: rotate(-38deg) scaleY(0.38); }
.coordinate { position: absolute; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: 0.12em; }
.coordinate-a { top: 18%; right: 6%; }
.coordinate-b { bottom: 16%; left: 5%; }
.hero-index { position: absolute; right: 0; bottom: 22px; margin: 0; color: var(--muted); font-size: 10px; letter-spacing: 0.14em; }

.section { padding: clamp(5rem, 9vw, 7rem) max(1.25rem, calc((100% - 72rem) / 2)); }
.statement { display: grid; grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1.55fr); gap: 40px; background: var(--subtle); border-block: 1px solid var(--border); }
.section-label span { display: inline-block; margin-right: 12px; color: var(--coral); }
.statement h2,
.section-heading h2 { font-size: clamp(42px, 5vw, 62px); }
.two-column-copy {
  max-width: 850px;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  color: var(--muted);
  font-size: 17px;
}
.two-column-copy p { margin: 0; }
.projects { background: var(--surface); }
.section-heading { max-width: 760px; margin-bottom: 52px; }
.section-heading .section-label { margin-bottom: 14px; }
.project-card {
  position: relative;
  max-width: 72rem;
  min-height: 380px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1.35fr) minmax(230px, 0.65fr);
  gap: 30px;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.project-number { color: var(--coral); font-size: 13px; font-weight: 750; }
.project-main { position: relative; z-index: 2; max-width: 650px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.project-meta span {
  padding: 5px 9px;
  color: var(--teal-dark);
  background: var(--subtle-green);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid #cfe2dc;
  border-radius: 999px;
}
.project-main h3 { margin: 0 0 18px; color: var(--navy); font-size: clamp(42px, 5vw, 62px); line-height: 1; letter-spacing: -0.05em; }
.project-main p { max-width: 650px; margin: 0 0 28px; color: var(--muted); font-size: 16px; }
.project-symbol { position: relative; align-self: stretch; min-height: 240px; }
.project-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background: var(--subtle-green);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.project-logo img { display: block; width: 100%; height: auto; object-fit: contain; }
.project-logo-eaststar img { max-width: 190px; border-radius: 22%; box-shadow: 0 14px 30px rgba(11, 31, 58, 0.18); }
.project-logo-lde img { max-width: 270px; }
.principles { background: var(--subtle); border-block: 1px solid var(--border); }
.principle-grid { max-width: 72rem; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.principle-grid article { padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.principle-grid span { color: var(--teal); font-size: 11px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.principle-grid h3 { margin: 42px 0 16px; color: var(--navy); font-size: 24px; line-height: 1.18; letter-spacing: -0.035em; }
.principle-grid p { margin: 0; color: var(--muted); }
.closing { min-height: 500px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.closing h2 { font-size: clamp(48px, 6vw, 72px); }
.closing .eyebrow { margin-bottom: 28px; }

.site-footer {
  min-height: 150px;
  padding: 36px max(1.25rem, calc((100% - 72rem) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 36px;
  align-items: center;
  color: var(--muted);
  background: var(--subtle);
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover,
.footer-links a:focus-visible,
.footer-links a[aria-current="page"] { color: var(--teal-dark); text-decoration: underline; }
.site-footer > p { margin: 0; text-align: right; }

.legal-page { width: min(54rem, calc(100% - 2.5rem)); margin: 0 auto; padding: 90px 0 120px; }
.legal-title { padding-bottom: 50px; border-bottom: 1px solid var(--border); }
.legal-title h1 { font-size: clamp(50px, 7vw, 76px); }
.legal-title > p:last-child { margin: 24px 0 0; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.legal-content { max-width: 45rem; margin: 52px auto 0; }
.legal-content p { color: var(--muted); }
.legal-content .legal-intro { margin-bottom: 48px; color: var(--ink); font-size: 21px; line-height: 1.55; }
.legal-content h2 { margin: 44px 0 10px; color: var(--navy); font-size: 26px; line-height: 1.2; letter-spacing: -0.025em; }
.legal-content a { color: var(--teal-dark); font-weight: 650; }
.legal-footer { min-height: 110px; grid-template-columns: 1fr auto; }
.legal-footer > p { text-align: left; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(1deg); } }

@media (max-width: 900px) {
  .site-header { height: 74px; }
  .menu-button { display: block; width: 44px; height: 44px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
  .menu-button > span:not(.sr-only) { display: block; width: 18px; height: 2px; margin: 5px 0; background: var(--navy); transition: transform 180ms ease; }
  .menu-button[aria-expanded="true"] > span:nth-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { position: absolute; top: 73px; right: 1.25rem; left: 1.25rem; display: none; padding: 10px; flex-direction: column; align-items: stretch; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
  .site-nav a { width: 100%; }
  .site-nav.is-open { display: flex; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 70px 0 80px; }
  .hero-visual { width: min(520px, 100%); margin: 0 auto; }
  .statement { grid-template-columns: 1fr; }
  .two-column-copy { margin-top: 34px; }
  .project-card { grid-template-columns: 44px minmax(0, 1fr); }
  .project-symbol { grid-column: 2; min-height: 210px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid h3 { margin-top: 28px; }
}

@media (max-width: 600px) {
  :root { --page: calc(100% - 2rem); }
  .brand-mark { width: 36px; height: 36px; }
  .hero h1 { font-size: clamp(48px, 14vw, 68px); }
  .hero-visual { min-height: 0; }
  .hero-index { display: none; }
  .section { padding-block: 70px; }
  .statement h2,
  .section-heading h2 { font-size: 12vw; }
  .two-column-copy { grid-template-columns: 1fr; gap: 18px; font-size: 16px; }
  .section-heading { margin-bottom: 36px; }
  .project-card { min-height: 0; grid-template-columns: 1fr; gap: 16px; padding: 28px 22px; border-radius: 14px; }
  .project-number { order: 1; }
  .project-symbol { order: 2; grid-column: 1; min-height: 180px; }
  .project-main { order: 3; }
  .project-logo-eaststar img { max-width: 140px; }
  .project-logo-lde img { max-width: 220px; }
  .project-main h3 { font-size: 12vw; }
  .closing { min-height: 400px; }
  .site-footer { min-height: 220px; grid-template-columns: 1fr 1fr; align-content: center; }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer > p { text-align: right; }
  .legal-header .brand span { display: none; }
  .back-link { padding-inline: 10px; }
  .legal-page { width: calc(100% - 2rem); padding: 70px 0 90px; }
  .legal-title h1 { font-size: 14vw; }
  .legal-content { margin-top: 42px; }
  .legal-content .legal-intro { font-size: 19px; }
  .legal-footer { min-height: 130px; grid-template-columns: 1fr; gap: 14px; align-content: center; }
  .legal-footer > p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
