:root {
  color-scheme: light;
  --ink: #102b3a;
  --muted: #55707b;
  --paper: #f7faf8;
  --card: #ffffff;
  --line: #dce6e2;
  --acid: #c3f486;
  --acid-strong: #9ee052;
  --navy: #102b3a;
  --blue: #4f70f7;
  --green: #148764;
  --rose: #e45d75;
  --purple: #8a5ce6;
  --amber: #d28a18;
  --radius: 1.35rem;
  --shadow: 0 20px 50px rgba(16, 43, 58, .09);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 1rem; line-height: 1.65; }
a { color: inherit; }
img, svg { display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 100; transform: translateY(-180%); background: var(--navy); color: white; padding: .7rem 1rem; border-radius: .7rem; }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(1160px, calc(100% - 2rem)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 90%, transparent); border-bottom: 1px solid transparent; backdrop-filter: blur(16px); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 2.35rem; height: 2.35rem; border-radius: .7rem; display: grid; place-items: center; background: var(--navy); color: var(--acid); font-size: .9rem; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a { padding: .55rem .75rem; border-radius: .65rem; text-decoration: none; font-size: .92rem; font-weight: 650; color: #365461; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: white; color: var(--ink); }
.menu-button { display: none; border: 1px solid var(--line); background: white; color: var(--ink); padding: .55rem .75rem; border-radius: .65rem; font: inherit; font-weight: 700; }

.hero { padding: clamp(4.5rem, 9vw, 8rem) 0 3.6rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); align-items: center; gap: clamp(2rem, 7vw, 6.5rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: #35515c; font-size: .8rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 1.7rem; height: 2px; background: var(--green); }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.045em; }
h1 { max-width: 850px; margin-top: 1.25rem; font-size: clamp(3rem, 6.2vw, 5.6rem); font-weight: 820; }
h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
h3 { font-size: 1.35rem; }
.hero-copy { max-width: 660px; margin: 1.6rem 0 0; color: var(--muted); font-size: clamp(1.07rem, 2vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .72rem 1rem; border-radius: .8rem; text-decoration: none; font-weight: 760; border: 1px solid var(--navy); }
.button-primary { background: var(--navy); color: white; box-shadow: 0 10px 24px rgba(16,43,58,.18); }
.button-primary:hover { background: #183e50; }
.button-secondary { background: transparent; color: var(--navy); }
.button-secondary:hover { background: white; }

.signal-panel { position: relative; min-height: 390px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid #bed0ca; border-radius: 50%; }
.orbit-a { width: 340px; height: 340px; }
.orbit-b { width: 235px; height: 235px; }
.signal-core { width: 142px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: white; box-shadow: var(--shadow); text-align: center; font-weight: 800; line-height: 1.25; }
.signal-core span { color: var(--acid); }
.signal-dot { position: absolute; width: 54px; height: 54px; border-radius: 1rem; display: grid; place-items: center; background: white; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(16,43,58,.12); font-weight: 900; }
.signal-dot:nth-child(4) { transform: translate(145px,-105px); color: var(--blue); }
.signal-dot:nth-child(5) { transform: translate(-148px,-64px); color: var(--green); }
.signal-dot:nth-child(6) { transform: translate(104px,138px); color: var(--rose); }
.signal-dot:nth-child(7) { transform: translate(-111px,130px); color: var(--purple); }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-dark { background: var(--navy); color: white; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.2rem; }
.section-heading p { max-width: 520px; margin: 0; color: var(--muted); }
.section-dark .section-heading p { color: #b8c9ce; }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.project-card { grid-column: span 4; min-height: 340px; display: flex; flex-direction: column; position: relative; padding: 1.45rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 rgba(16,43,58,0); transition: transform .2s ease, box-shadow .2s ease; }
.project-card:nth-child(1), .project-card:nth-child(2) { grid-column: span 6; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-top { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.tool-icon { width: 3rem; height: 3rem; border-radius: .9rem; display: grid; place-items: center; color: white; }
.tool-icon svg { width: 1.45rem; height: 1.45rem; }
.tool-icon.blue { background: var(--blue); }
.tool-icon.green { background: var(--green); }
.tool-icon.rose { background: var(--rose); }
.tool-icon.purple { background: var(--purple); }
.tool-icon.amber { background: var(--amber); }
.status { padding: .3rem .55rem; border-radius: 999px; background: #eef3f1; color: #5b6d71; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.project-card h3 { margin-top: 2rem; }
.category { margin: .35rem 0 0; color: var(--muted); font-size: .88rem; font-weight: 700; }
.description { margin: 1rem 0 1.5rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; }
.tag { padding: .25rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: #48646f; font-size: .78rem; }
.future-link { margin-top: 1.3rem; color: #56717a; font-size: .82rem; overflow-wrap: anywhere; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.principle { padding: 1.4rem; border-top: 1px solid #46616d; }
.principle strong { display: block; color: var(--acid); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.principle h3 { margin-top: 1.2rem; }
.principle p { color: #b8c9ce; }
.text-link { color: var(--acid); font-weight: 750; text-underline-offset: .2em; }

.page-hero { padding: clamp(4rem, 8vw, 7rem) 0 2rem; }
.page-hero h1 { max-width: 970px; font-size: clamp(2.8rem, 7vw, 5.8rem); }
.page-intro { max-width: 760px; margin-top: 1.5rem; font-size: 1.18rem; color: var(--muted); }
.updated { margin-top: 1.1rem; color: #637a82; font-size: .9rem; }
.prose-layout { display: grid; grid-template-columns: minmax(180px, .32fr) minmax(0, 1fr); gap: clamp(2rem, 8vw, 7rem); padding: 3rem 0 7rem; }
.prose-index { position: sticky; top: 105px; align-self: start; }
.prose-index span { display: block; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.prose-index a { display: block; margin-top: .65rem; color: #47626c; font-size: .9rem; text-decoration: none; }
.prose-index a:hover { text-decoration: underline; }
.prose { max-width: 760px; }
.content-section { padding: 0 0 3.4rem; margin-bottom: 3.4rem; border-bottom: 1px solid var(--line); }
.content-section:last-child { border-bottom: 0; }
.content-section h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.content-section p { color: #49636d; }
.content-section p:first-of-type { margin-top: 1.25rem; }
.content-section p + p { margin-top: 1rem; }
.content-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
.content-card { padding: 1.25rem; background: white; border: 1px solid var(--line); border-radius: 1rem; }
.content-card strong { display: block; font-size: 1.05rem; }
.content-card p { margin-bottom: 0; font-size: .95rem; }
.steps { margin-top: 1.5rem; }
.step { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.3rem 0; border-top: 1px solid var(--line); }
.step-number { width: 2.35rem; height: 2.35rem; display: grid; place-items: center; border-radius: .75rem; background: var(--navy); color: var(--acid); font-size: .78rem; font-weight: 850; }
.step p { margin: .35rem 0 0; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1rem; padding: 2.5rem 0 7rem; }
.contact-card { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.contact-card.primary { background: var(--navy); color: white; }
.contact-card.primary p { color: #bdcdd2; }
.contact-email { display: inline-block; margin-top: 1.3rem; color: var(--acid); font-size: clamp(1.05rem, 3vw, 1.5rem); font-weight: 780; overflow-wrap: anywhere; text-underline-offset: .25em; }
.contact-list { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.contact-list li { padding: .9rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.contact-list strong { color: var(--ink); }

.site-footer { padding: 4rem 0 2rem; border-top: 1px solid var(--line); background: #eff5f1; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 2rem; }
.footer-note { max-width: 430px; color: var(--muted); }
.footer-links strong { display: block; margin-bottom: .8rem; font-size: .83rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-links a { display: block; width: fit-content; margin: .5rem 0; color: #48636d; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid #d2dfda; color: #61767d; font-size: .84rem; }

.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.not-found h1 { font-size: clamp(4rem, 15vw, 9rem); color: #d6e2dd; }
.not-found h2 { margin-top: -1rem; }
.not-found p { max-width: 500px; margin: 1rem auto 1.5rem; color: var(--muted); }

:focus-visible { outline: 3px solid #2272d2; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .signal-panel { min-height: 330px; }
  .project-card, .project-card:nth-child(1), .project-card:nth-child(2) { grid-column: span 6; }
  .principles { grid-template-columns: 1fr; }
  .prose-layout { grid-template-columns: 1fr; }
  .prose-index { display: none; }
}
@media (max-width: 720px) {
  .nav { flex-wrap: wrap; padding: .8rem 0; min-height: auto; }
  .menu-button { display: inline-flex; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: .5rem 0; }
  .nav-links[data-open="true"] { display: flex; }
  .nav-links a { padding: .7rem .8rem; }
  .hero { padding-top: 3.5rem; }
  .signal-panel { display: none; }
  .section-heading { align-items: start; flex-direction: column; }
  .project-card, .project-card:nth-child(1), .project-card:nth-child(2) { grid-column: 1 / -1; min-height: 310px; }
  .content-cards, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 420px) {
  .shell { width: min(100% - 1.25rem, 1160px); }
  h1 { font-size: 2.7rem; }
  .hero-actions .button { width: 100%; }
}
