:root {
  --ink: #102532;
  --ink-soft: #29414d;
  --paper: #f4f0e7;
  --paper-strong: #fbf9f4;
  --line: #d9d1c4;
  --gold: #bd944d;
  --gold-soft: #d7bd88;
  --mint: #9ebfb3;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(16, 37, 50, 0.10);
  --radius-lg: 30px;
  --radius-md: 20px;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.skip-link:focus { transform: translateY(0); }

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

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 240, 231, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 209, 196, 0.72);
}
.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { flex: 0 0 auto; }
.brand-copy { display: grid; line-height: 1.12; }
.brand-copy strong { font-size: 15px; letter-spacing: .14em; }
.brand-copy small { margin-top: 5px; color: var(--ink-soft); font-size: 12px; }
.primary-nav { display: flex; align-items: center; gap: 30px; }
.primary-nav a {
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
  letter-spacing: .01em;
}
.primary-nav a:hover { color: #6d5328; }
.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  cursor: pointer;
}
.menu-button span:not(.sr-only) { width: 19px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease; }
.menu-button[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(4.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-4.5px) rotate(-45deg); }

.hero {
  min-height: 730px;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 87% 20%, rgba(189,148,77,.14), transparent 28%),
    linear-gradient(180deg, var(--paper-strong) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  align-items: center;
  gap: clamp(38px, 6vw, 88px);
  padding-block: 86px 98px;
}
.eyebrow {
  margin: 0 0 16px;
  color: #765a2d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero h1, .section-heading h2, .closing h2, .error-card h1 {
  margin: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: .98;
}
.hero h1 { max-width: 790px; font-size: clamp(54px, 7vw, 92px); }
.hero-lead {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
}
.button-primary { background: var(--ink); color: var(--white); box-shadow: 0 10px 28px rgba(16,37,50,.18); }
.button-primary:hover { background: #1b3746; }
.button-secondary { border-color: #bdb4a7; background: rgba(255,255,255,.42); }
.button-secondary:hover { background: var(--paper-strong); }
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}
.trust-list li { position: relative; padding-left: 17px; }
.trust-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  border-radius: 50%;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: linear-gradient(145deg, #163343, #0d202b);
  box-shadow: 0 40px 90px rgba(16,37,50,.25);
}
.orbit { position: absolute; border: 1px solid rgba(16,37,50,.22); border-radius: 50%; }
.orbit-large { inset: 0; }
.orbit-small { inset: 22%; border-color: rgba(215,189,136,.42); }
.core-mark {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 37%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-strong);
  box-shadow: 0 16px 34px rgba(0,0,0,.14);
}
.core-mark img { width: 68%; height: 68%; }
.signal-dot { position: absolute; width: 15px; height: 15px; border-radius: 50%; background: var(--gold); border: 4px solid var(--paper); box-shadow: 0 0 0 1px rgba(16,37,50,.12); }
.signal-dot-a { top: 14%; right: 18%; }
.signal-dot-b { bottom: 19%; left: 9%; background: var(--mint); }
.signal-dot-c { right: 3%; bottom: 38%; width: 10px; height: 10px; }

.section { padding-block: 112px; }
.section-heading h2, .closing h2 { font-size: clamp(42px, 5vw, 64px); }
.split-heading {
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  gap: 54px;
  align-items: end;
  margin-bottom: 46px;
}
.split-heading > p { margin: 0 0 4px; color: var(--ink-soft); }
.project-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; }
.project-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(251,249,244,.7);
}
.project-card-featured { background: var(--ink); color: var(--white); border-color: var(--ink); box-shadow: var(--shadow); }
.card-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 38px;
  border-radius: 22px;
  background: rgba(189,148,77,.13);
}
.project-card-featured .card-icon { background: rgba(255,255,255,.08); }
.card-icon img { width: 44px; height: 44px; }
.card-kicker { margin: 0 0 8px; color: #7a6643; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.project-card-featured .card-kicker { color: var(--gold-soft); }
.project-card h3 { margin: 0; font-size: 28px; line-height: 1.16; letter-spacing: -.025em; }
.project-tagline { margin: 14px 0 10px; font-weight: 750; line-height: 1.4; }
.project-card > p:last-of-type { margin: 0; color: var(--ink-soft); font-size: 15px; }
.project-card-featured > p:last-of-type { color: #c9d3d8; }
.project-state { align-self: flex-start; margin-top: auto; padding-top: 24px; color: var(--gold-soft); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.about { background: var(--ink); color: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1.618fr; gap: clamp(48px, 8vw, 96px); align-items: start; }
.sticky-heading { position: sticky; top: 128px; }
.about .eyebrow { color: var(--gold-soft); }
.sticky-heading > p:last-child { max-width: 470px; margin: 25px 0 0; color: #bdc9cf; }
.principles { border-top: 1px solid rgba(255,255,255,.18); }
.principle {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 22px;
  padding: 34px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.principle-number { color: var(--gold-soft); font-size: 13px; font-weight: 800; }
.principle h3 { margin: 0 0 9px; font-size: 22px; }
.principle p { margin: 0; color: #bdc9cf; }

.process-heading { max-width: 760px; margin-bottom: 44px; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-grid li { min-height: 280px; padding: 32px 34px 34px 0; }
.process-grid li + li { padding-left: 34px; border-left: 1px solid var(--line); }
.process-grid span { color: #806334; font-size: 13px; font-weight: 800; }
.process-grid h3 { margin: 52px 0 12px; font-size: 26px; letter-spacing: -.025em; }
.process-grid p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.closing { padding-block: 84px; background: var(--gold-soft); }
.closing-grid { display: grid; grid-template-columns: 1.618fr 1fr; align-items: end; gap: 58px; }
.closing .eyebrow { color: #654b21; }
.closing p:last-child { margin: 0 0 4px; color: #443820; }

.site-footer { background: #0a1b24; color: #ced7dc; }
.footer-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner p { margin: 0; font-size: 13px; }
.footer-inner a { text-decoration: none; font-size: 13px; font-weight: 800; }

.error-page { min-height: 100vh; background: var(--ink); color: var(--white); }
.error-shell { width: min(calc(100% - 48px), 860px); margin: 0 auto; padding: 34px 0 70px; }
.error-page .brand { color: var(--white); }
.error-page .brand-copy small { color: #bdc9cf; }
.error-card { min-height: calc(100vh - 150px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.error-card .eyebrow { color: var(--gold-soft); }
.error-card h1 { max-width: 720px; font-size: clamp(54px, 9vw, 92px); }
.error-card p:not(.eyebrow) { max-width: 580px; margin: 24px 0 34px; color: #bdc9cf; font-size: 19px; }
.error-card .button-primary { background: var(--paper-strong); color: var(--ink); }

:focus-visible { outline: 3px solid #dbac54; outline-offset: 4px; }

@media (max-width: 920px) {
  .shell { width: min(calc(100% - 36px), var(--shell)); }
  .hero { min-height: auto; }
  .hero-grid, .split-heading, .about-grid, .closing-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 56px; padding-block: 70px 78px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { width: min(72vw, 520px); margin-inline: auto; }
  .split-heading { gap: 18px; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-card-featured { grid-column: span 2; min-height: 330px; }
  .sticky-heading { position: static; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid li { min-height: 0; padding: 30px 0; }
  .process-grid li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .process-grid h3 { margin-top: 26px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .header-inner { min-height: 72px; }
  .brand-copy small { display: none; }
  .menu-button { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 8px 14px 16px;
    background: var(--paper-strong);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 32px rgba(16,37,50,.10);
    transform-origin: top;
    opacity: 0;
    visibility: hidden;
    transform: scaleY(.94) translateY(-4px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .primary-nav[data-open="true"] { opacity: 1; visibility: visible; transform: scaleY(1) translateY(0); }
  .primary-nav a { padding: 14px 10px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .primary-nav a:last-child { border-bottom: 0; }
  .hero-grid { padding-block: 52px 62px; }
  .hero h1 { font-size: clamp(47px, 15vw, 66px); }
  .hero-lead { margin-top: 22px; font-size: 18px; }
  .hero-actions { margin-top: 28px; }
  .button { width: 100%; }
  .trust-list { display: grid; gap: 10px; margin-top: 28px; }
  .hero-visual { width: min(84vw, 420px); }
  .section { padding-block: 78px; }
  .section-heading h2, .closing h2 { font-size: clamp(40px, 12vw, 54px); }
  .project-grid { grid-template-columns: 1fr; }
  .project-card-featured { grid-column: auto; }
  .project-card { min-height: 0; padding: 26px; }
  .card-icon { margin-bottom: 28px; }
  .project-state { margin-top: 26px; }
  .principle { grid-template-columns: 42px 1fr; gap: 14px; }
  .closing { padding-block: 66px; }
  .closing-grid { gap: 24px; }
  .footer-inner { min-height: 84px; }
}

@media (max-width: 360px) {
  .shell, .error-shell { width: min(calc(100% - 22px), var(--shell)); }
  .brand { gap: 9px; }
  .brand img { width: 38px; height: 38px; }
  .hero h1 { font-size: 45px; }
  .project-card { padding: 22px; border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
