:root {
  --paper: #f8f4ec;
  --paper-2: #fffdf8;
  --paper-3: #edf5f8;
  --ink: #0b2033;
  --ink-2: #27394a;
  --muted: #6f7d88;
  --line: rgba(20, 43, 61, 0.16);
  --line-strong: rgba(20, 43, 61, 0.28);
  --blue: #17689e;
  --blue-soft: #7fb5cc;
  --gold: #d39b23;
  --rust: #c87347;
  --navy: #071d2f;
  --navy-2: #102c42;
  --radius: 10px;
  --shadow: 0 18px 50px rgba(20, 43, 61, 0.08);
  --shell: min(1120px, calc(100vw - 80px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 9%, rgba(127, 181, 204, 0.14), transparent 24rem),
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 72%, #eef5f7 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

.shell { width: var(--shell); margin-inline: auto; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand img { width: 256px; height: 256px; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding-block: 10px;
}

.nav-links a:first-child { color: var(--blue); }
.nav-links a:first-child::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 36px;
  height: 2px;
  transform: translateX(-50%);
  background: var(--blue);
}

.section-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.hero { padding: clamp(70px, 11vw, 120px) 0 64px; }

.hero-copy h1 {
  margin: 0;
  max-width: 550px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(56px, 7vw, 78px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.hero-copy h1 span {
  color: var(--blue);
  position: relative;
  white-space: nowrap;
}
.hero-copy h1 span::after { content: "."; color: var(--gold); }

.rule {
  width: 70px;
  height: 2px;
  margin: 42px 0 34px;
  background: var(--blue);
}
.rule.accent-gold { background: var(--gold); }

.hero-copy p {
  max-width: 510px;
  margin: 0 0 38px;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.text-link span { font-size: 26px; line-height: 0; transform: translateY(-1px); }
.text-link:hover { color: var(--navy); }

.systems-art {
  min-height: 430px;
  display: grid;
  place-items: center;
  opacity: 0.98;
}
.systems-art svg { width: min(100%, 610px); height: auto; overflow: visible; }
.grid { fill: url(#dotGrid); opacity: 0.26; }
#dotGrid circle { fill: var(--blue); opacity: 0.45; }
.line, .route-line {
  fill: none;
  stroke: rgba(8, 32, 51, 0.48);
  stroke-width: 1.2;
}
.line.light { stroke: rgba(8, 32, 51, 0.28); }
.line.dash, .route-line.dash { stroke-dasharray: 5 6; stroke: rgba(8, 32, 51, 0.22); }
.orbit, .route-ring { fill: none; stroke: rgba(23, 104, 158, 0.46); stroke-width: 1.1; }
.orbit.thin, .route-ring.thin { stroke: rgba(23, 104, 158, 0.25); }
.shape.outline { fill: rgba(255,255,255,0.36); stroke: rgba(8, 32, 51, 0.34); }
.shape.outline.gold { stroke: var(--gold); }
.shape.fill-blue { fill: var(--blue); opacity: 0.88; }
.node.navy, .route-node.navy { fill: var(--ink); }
.node.blue, .route-node.blue { fill: var(--blue-soft); }
.node.gold, .route-node.gold { fill: var(--gold); }
.node.pale, .route-node.pale { fill: #e9eef0; stroke: var(--blue); stroke-width: 1; }
.node.big { filter: drop-shadow(0 8px 20px rgba(11, 32, 51, 0.18)); }

.project { padding: 0 0 54px; }
.section-label {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.section-label::after {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--blue);
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr 0.98fr;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.58);
  box-shadow: var(--shadow);
}
.project-logo-wrap,
.project-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px;
}
.project-logo {
  width: min(310px, 100%);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.14));
}
.project-copy {
  align-items: flex-start;
  flex-direction: column;
  border-left: 1px solid rgba(20, 43, 61, 0.1);
}
.project-copy h2 {
  margin: 0 0 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.kicker {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.project-copy p:not(.kicker) {
  max-width: 330px;
  margin: 0 0 28px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.72;
}
.route-panel {
  position: relative;
  min-height: 100%;
  background: var(--navy);
  border-left: 1px solid var(--line);
}
.route-panel svg { width: 100%; height: 100%; display: block; }
.route-bg { fill: var(--navy); }
.route-line { stroke: rgba(151, 194, 213, 0.58); }
.route-line.gold { stroke: rgba(211, 155, 35, 0.75); }
.route-line.dash { stroke: rgba(151, 194, 213, 0.28); }
.route-ring { stroke: rgba(211, 155, 35, 0.36); }
.legend {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 8px;
  min-width: 124px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  background: rgba(7, 29, 47, 0.72);
  color: #dbe8ef;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.legend span { display: flex; gap: 10px; align-items: center; }
.legend i { width: 9px; height: 9px; display: inline-block; }
.legend .hub { border-radius: 50%; background: var(--blue-soft); }
.legend .trade { height: 1px; background: #dbe8ef; }
.legend .market { border-radius: 50%; background: var(--gold); }
.legend .contract { border: 1px solid #dbe8ef; }

.principles { padding: 0 0 80px; }
.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 20px;
}
.principle {
  min-height: 210px;
  padding: 14px 36px 0;
  border-left: 1px solid var(--line);
}
.principle:first-child { border-left: 0; padding-left: 0; }
.principle h3 {
  margin: 20px 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 600;
}
.principle p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.72;
}
.icon {
  width: 66px;
  height: 66px;
  border: 1px solid rgba(23, 104, 158, 0.42);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: rgba(255, 255, 255, 0.24);
}
.icon::before,
.icon::after,
.icon span::before,
.icon span::after { content: ""; position: absolute; }
.system-icon::before {
  width: 28px; height: 28px; border: 2px solid var(--blue); border-radius: 7px; transform: rotate(45deg);
}
.system-icon::after {
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 18px 0 0 var(--blue), 9px 16px 0 var(--blue), 9px -16px 0 var(--blue);
}
.choices-icon::before {
  width: 32px; height: 32px; border-left: 2px solid var(--gold); border-top: 2px solid var(--gold); transform: rotate(45deg);
}
.choices-icon::after {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 22px 0 0 var(--gold), 11px 22px 0 var(--gold);
}
.depth-icon::before {
  width: 34px; height: 18px; border: 2px solid var(--blue); transform: rotate(45deg) skew(-12deg,-12deg);
}
.depth-icon::after {
  width: 34px; height: 18px; border: 2px solid var(--blue); transform: translateY(9px) rotate(45deg) skew(-12deg,-12deg); opacity: .7;
}
.design-icon::before {
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 13px 0 0 var(--gold), 26px 0 0 var(--gold), 0 13px 0 var(--gold), 13px 13px 0 var(--gold), 26px 13px 0 var(--gold), 0 26px 0 var(--gold), 13px 26px 0 var(--gold), 26px 26px 0 var(--gold);
}

.contact {
  padding: 34px 0;
  background: linear-gradient(90deg, #eaf4f7 0%, #eef7fa 52%, #f7f9fa 100%);
  border-top: 1px solid var(--line);
}
.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
}
.contact h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(29px, 4vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.contact h2 a:hover { color: var(--blue); }

.site-footer {
  background:
    radial-gradient(circle at 10% 20%, rgba(127,181,204,0.17), transparent 260px),
    linear-gradient(135deg, var(--navy) 0%, #061725 100%);
  color: #dce8ef;
}
.footer-inner {
  min-height: 132px;
  display: grid;
  grid-template-columns: 110px 1fr 1fr 1fr;
  align-items: center;
  gap: 36px;
}
.footer-logo img { width: 86px; }
.tagline {
  margin: 0;
  padding-left: 38px;
  border-left: 1px solid rgba(255,255,255,0.25);
  color: #e8f2f6;
}
.site-footer a,
.site-footer p:not(.tagline) {
  margin: 0;
  color: rgba(232, 242, 246, 0.85);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.site-footer a:hover { color: white; }

.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;
}

/* Shared legal page compatibility */
.legal {
  max-width: 860px;
  padding-top: 72px;
  padding-bottom: 92px;
}
.legal h1 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 64px;
  line-height: 1;
}
.legal .eyebrow,
.legal .updated {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.legal section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.legal h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  margin: 0 0 8px;
}
.legal p { color: var(--ink-2); }
.legal a { color: var(--blue); }
.site-header .brand span { display: none; }
.site-footer .footer-inner div { display: none; }
.site-footer .footer-inner > p:first-child { display: none; }

@media (max-width: 980px) {
  :root { --shell: min(100vw - 40px, 760px); }
  .nav { min-height: 132px; }
  .brand img { width: 256px; height: 256px; }
  .section-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; }
  .systems-art { min-height: 300px; }
  .systems-art svg { width: min(100%, 520px); }
  .project-card { grid-template-columns: 1fr; }
  .project-copy { border-left: 0; border-top: 1px solid var(--line); }
  .route-panel { min-height: 280px; }
  .principle-grid { grid-template-columns: repeat(2, 1fr); row-gap: 38px; }
  .principle:nth-child(3) { border-left: 0; padding-left: 0; }
  .footer-inner { grid-template-columns: 90px 1fr; padding-block: 28px; }
}

@media (max-width: 640px) {
  :root { --shell: min(100vw - 28px, 540px); }
  .nav { min-height: 108px; align-items: center; }
  .brand img { width: 76px; height: 76px; }
  .nav-links { gap: 18px; font-size: 11px; letter-spacing: 0.14em; }
  .hero-copy h1 { font-size: clamp(44px, 14vw, 58px); }
  .hero-copy p { font-size: 17px; }
  .systems-art { min-height: 240px; }
  .project-logo-wrap, .project-copy { padding: 30px 24px; }
  .project-copy h2 { font-size: 36px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle, .principle:nth-child(3) { border-left: 0; padding: 0; }
  .contact-inner { min-height: 90px; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; gap: 22px; }
  .tagline { padding-left: 0; border-left: 0; }
}
