@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #070b14;
  --surface: #0d1421;
  --surface-raised: #111b2a;
  --line: #202c3c;
  --text: #edf2f8;
  --muted: #98a6b9;
  --accent: #72f5c8;
  --accent-dim: #2e8f76;
  --font-body: 'Manrope', Arial, sans-serif;
  --font-mono: 'DM Mono', Consolas, monospace;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.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; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; background: var(--accent); color: var(--bg); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.section-wrap { width: min(var(--wrap), calc(100% - 64px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; min-height: 82px; padding-inline: max(32px, calc((100vw - var(--wrap)) / 2)); background: rgb(7 11 20 / 90%); border-bottom: 1px solid rgb(32 44 60 / 75%); backdrop-filter: blur(18px); }
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-symbol { display: block; width: 38px; height: 25px; object-fit: contain; }
.wordmark { font-size: 1.28rem; font-weight: 800; letter-spacing: .16em; line-height: 1; }
.wordmark-dot { color: var(--accent); }
.primary-nav { display: flex; align-items: center; gap: 34px; color: var(--muted); font-size: .83rem; }
.primary-nav a { transition: color .2s ease; }
.primary-nav a:hover { color: var(--text); }
.primary-nav .nav-contact { color: var(--text); border: 1px solid #344354; padding: 10px 14px; }
.nav-contact span, .button span, .text-link span, .card-link span { color: var(--accent); margin-left: 8px; }
.menu-toggle { display: none; }

.hero { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; min-height: 690px; padding-top: 64px; padding-bottom: 82px; isolation: isolate; }
.hero-grid { position: absolute; z-index: -1; inset: 0 -80px; opacity: .22; background-image: linear-gradient(rgb(93 122 151 / 13%) 1px, transparent 1px), linear-gradient(90deg, rgb(93 122 151 / 13%) 1px, transparent 1px); background-size: 62px 62px; mask-image: linear-gradient(to right, transparent, #000 18%, #000 78%, transparent); }
.hero-copy { padding-block: 24px; }
.eyebrow, .section-index, .field-top, .art-label, .hero-footnote, .contact-note, .footer-copy, .lab-coord { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); margin: 0 0 28px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px rgb(114 245 200 / 55%); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 740px; margin-bottom: 24px; font-size: clamp(3.1rem, 6.2vw, 5.7rem); line-height: 1.02; letter-spacing: -.075em; font-weight: 600; }
h1 span, h2 span { color: var(--accent); }
.hero-description { max-width: 500px; color: var(--muted); font-size: 1.04rem; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; font-size: .82rem; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #07140f; }
.button-primary span { color: #07140f; }
.text-link { font-size: .82rem; font-weight: 700; }
.hero-art { position: relative; display: grid; place-items: center; width: min(100%, 480px); aspect-ratio: 1; justify-self: end; }
.hero-art::before { content: ""; position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle, rgb(47 144 119 / 16%), transparent 67%); filter: blur(10px); }
.orbit { position: absolute; border: 1px solid rgb(114 245 200 / 32%); border-radius: 50%; }
.orbit-outer { inset: 8%; transform: rotate(-28deg) scaleY(.62); }
.orbit-middle { inset: 17%; transform: rotate(38deg) scaleY(.78); border-color: rgb(143 166 192 / 34%); }
.orbit-inner { inset: 25%; border-style: dashed; border-color: rgb(114 245 200 / 28%); }
.orbit-core { display: grid; place-items: center; width: 112px; height: 112px; border: 1px solid var(--accent); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #1d5146, #0b1720 70%); box-shadow: 0 0 70px rgb(114 245 200 / 12%), inset 0 0 35px rgb(114 245 200 / 10%); }
.orbit-core span { color: var(--accent); font-size: 3rem; font-weight: 500; letter-spacing: -.1em; }
.art-label { position: absolute; color: var(--muted); font-size: .58rem; }
.art-label-top { top: 16%; right: 4%; }
.art-label-bottom { bottom: 15%; left: 7%; }
.art-cross { position: absolute; color: var(--accent); font-family: var(--font-mono); }
.cross-one { top: 24%; left: 17%; }
.cross-two { right: 17%; bottom: 27%; }
.hero-footnote { position: absolute; right: 0; bottom: 20px; left: 0; display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; color: #65758b; border-top: 1px solid var(--line); font-size: .59rem; }

.intro { display: grid; grid-template-columns: .75fr 1.25fr; gap: 36px; padding-block: 132px; border-top: 1px solid var(--line); }
.section-index { color: var(--accent); font-size: .65rem; }
.intro-content { display: grid; grid-template-columns: 1fr .8fr; align-items: end; gap: 40px; }
h2 { margin-bottom: 0; font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 1.1; letter-spacing: -.065em; font-weight: 600; }
.intro-content p, .section-heading > p { margin-bottom: 5px; color: var(--muted); font-size: .93rem; line-height: 1.9; }

.fields { padding-block: 30px 130px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 48px; }
.section-heading h2 { margin-top: 22px; }
.section-heading > p { max-width: 300px; }
.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.field-card { min-width: 0; padding: 20px; background: linear-gradient(145deg, #101927, #0b111c 70%); border: 1px solid var(--line); transition: border-color .25s ease, transform .25s ease; }
.field-card:hover { border-color: #426d65; transform: translateY(-4px); }
.field-top { display: flex; justify-content: space-between; align-items: center; color: #7f8da1; font-size: .59rem; }
.field-symbol { color: var(--accent); font-size: 1.3rem; }
.field-visual { position: relative; overflow: hidden; display: grid; place-items: center; height: 170px; margin-block: 20px 24px; background: #0a111c; border: 1px solid #1c2a3b; }
.visual-digital { background-image: linear-gradient(rgb(114 245 200 / 5%) 1px, transparent 1px), linear-gradient(90deg, rgb(114 245 200 / 5%) 1px, transparent 1px); background-size: 20px 20px; }
.visual-line { position: absolute; height: 1px; background: var(--accent); transform-origin: left; opacity: .8; }
.line-a { width: 68%; top: 28%; left: 14%; transform: rotate(25deg); }
.line-b { width: 55%; top: 74%; left: 18%; transform: rotate(-31deg); opacity: .45; }
.visual-node { position: absolute; width: 9px; height: 9px; border: 1px solid var(--accent); border-radius: 50%; background: #0a111c; box-shadow: 0 0 16px rgb(114 245 200 / 50%); }
.node-a { top: 22%; left: 13%; }.node-b { top: 51%; right: 22%; }.node-c { bottom: 18%; left: 38%; }
.visual-worlds { background: radial-gradient(ellipse at center, #172c38, #0a111c 68%); }
.world-ring { position: absolute; width: 150px; height: 150px; border: 1px solid rgb(114 245 200 / 50%); border-radius: 50%; }
.ring-a { transform: scaleY(.34) rotate(22deg); }.ring-b { transform: scaleY(.34) rotate(-42deg); border-color: rgb(144 169 197 / 55%); }.ring-c { width: 90px; height: 90px; border-style: dashed; }
.world-star { color: var(--accent); font-size: 2rem; }
.visual-energy { background: radial-gradient(ellipse at center, #16332d, #0a111c 68%); }
.energy-orb { z-index: 1; width: 38px; height: 38px; border: 1px solid var(--accent); border-radius: 50%; background: #15372e; box-shadow: 0 0 36px rgb(114 245 200 / 35%); }
.energy-path { position: absolute; width: 70%; height: 70%; border: 1px solid rgb(114 245 200 / 40%); border-radius: 50%; }
.path-a { transform: scaleY(.35) rotate(15deg); }.path-b { transform: scaleY(.35) rotate(-42deg); }.path-c { width: 48%; height: 48%; border-style: dashed; }
.field-card h3 { margin-bottom: 10px; font-size: 1.1rem; font-weight: 600; letter-spacing: -.025em; }
.field-card p { min-height: 88px; margin-bottom: 24px; color: var(--muted); font-size: .81rem; line-height: 1.85; }
.card-link { display: inline-flex; align-items: center; padding-top: 15px; border-top: 1px solid var(--line); width: 100%; font-size: .75rem; font-weight: 700; }

.lab { padding-bottom: 130px; }
.lab-panel { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 50px; padding: clamp(28px, 6vw, 70px); background: #0d1522; border: 1px solid var(--line); }
.lab-copy h2 { margin-top: 22px; }
.lab-copy > p { max-width: 510px; margin-block: 24px 28px; color: var(--muted); font-size: .9rem; line-height: 1.95; }
.lab-mark { position: relative; display: grid; place-items: center; min-height: 300px; overflow: hidden; background: radial-gradient(circle at center, rgb(46 143 118 / 12%), transparent 55%); }
.lab-mark-grid { position: absolute; inset: 0; opacity: .45; background-image: linear-gradient(rgb(114 245 200 / 10%) 1px, transparent 1px), linear-gradient(90deg, rgb(114 245 200 / 10%) 1px, transparent 1px); background-size: 25px 25px; mask-image: radial-gradient(ellipse, #000, transparent 70%); }
.lab-mark-circle { position: absolute; width: 220px; height: 220px; border: 1px solid rgb(114 245 200 / 45%); border-radius: 50%; box-shadow: 0 0 55px rgb(114 245 200 / 8%); }
.lab-mark-core { position: relative; color: var(--text); font-size: 5rem; font-weight: 600; letter-spacing: -.12em; }
.lab-mark-core span { color: var(--accent); }
.lab-coord { position: absolute; right: 0; bottom: 0; color: #6f7f92; font-size: .58rem; }

.contact { display: grid; grid-template-columns: .75fr 1.25fr; gap: 36px; padding-block: 30px 130px; }
.contact-content { max-width: 650px; }
.contact-content h2 { font-size: clamp(2.8rem, 5vw, 4.8rem); }
.contact-content > p:not(.contact-note) { max-width: 470px; margin-block: 24px 28px; color: var(--muted); font-size: .93rem; line-height: 1.9; }
.contact-note { margin-top: 16px; color: #68778a; font-size: .57rem; text-transform: none; letter-spacing: 0; }
.site-footer { display: flex; align-items: center; gap: 24px; min-height: 95px; padding: 20px max(32px, calc((100vw - var(--wrap)) / 2)); border-top: 1px solid var(--line); }
.footer-wordmark { font-size: 1rem; }
.site-footer p { margin: 0; color: #77869a; font-size: .75rem; }
.footer-copy { margin-left: auto; color: #77869a; font-size: .58rem; }

@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: 1fr .75fr; padding-top: 80px; padding-bottom: 95px; }
  h1 { font-size: clamp(3rem, 7vw, 4.5rem); }
  .hero-art { width: 100%; }
  .intro { grid-template-columns: 1fr; gap: 28px; padding-block: 90px; }
  .intro-content { grid-template-columns: 1fr 1fr; }
  .field-grid { gap: 10px; }
  .field-card { padding: 15px; }
  .field-visual { height: 135px; }
  .field-card p { min-height: 115px; }
  .lab-panel { grid-template-columns: 1fr .7fr; gap: 20px; }
  .lab-mark { min-height: 250px; }
  .lab-mark-circle { width: 175px; height: 175px; }
  .contact { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 72px; }
  .section-wrap { width: min(100% - 36px, var(--wrap)); }
  .site-header { min-height: 70px; padding-inline: 18px; }
  .menu-toggle { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; color: var(--text); }
  .menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after { display: block; width: 17px; height: 1px; background: currentColor; }
  .menu-toggle-lines { position: relative; }
  .menu-toggle-lines::before, .menu-toggle-lines::after { content: ""; position: absolute; left: 0; }
  .menu-toggle-lines::before { top: -5px; }.menu-toggle-lines::after { top: 5px; }
  .primary-nav { position: absolute; top: 69px; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 10px 18px 18px; background: #070b14; border-bottom: 1px solid var(--line); }
  .primary-nav.is-open { display: flex; flex-direction: column; }
  .primary-nav a { padding: 13px 4px; }
  .primary-nav .nav-contact { margin-top: 8px; text-align: center; }
  .hero { display: flex; flex-direction: column; align-items: stretch; padding-top: 65px; padding-bottom: 85px; }
  .hero-copy { padding: 0; }
  .eyebrow { margin-bottom: 23px; }
  h1 { font-size: clamp(3.05rem, 14vw, 4.7rem); }
  .hero-description { font-size: .95rem; }
  .hero-art { align-self: center; width: min(100%, 360px); margin-top: 24px; }
  .orbit-core { width: 86px; height: 86px; }.orbit-core span { font-size: 2.4rem; }
  .hero-footnote { bottom: 18px; font-size: .5rem; }
  .hero-footnote span:last-child { text-align: right; }
  .intro { padding-block: 75px; }
  .intro-content { grid-template-columns: 1fr; gap: 20px; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 30px; }
  .section-heading > p { max-width: 420px; }
  .fields { padding-bottom: 80px; }
  .field-grid { grid-template-columns: 1fr; gap: 14px; }
  .field-card { padding: 20px; }
  .field-visual { height: 175px; }
  .field-card p { min-height: 0; }
  .lab { padding-bottom: 80px; }
  .lab-panel { grid-template-columns: 1fr; padding: 28px 22px; }
  .lab-mark { min-height: 230px; }
  .contact { padding-bottom: 80px; }
  .site-footer { flex-wrap: wrap; gap: 12px 20px; padding: 24px 18px; }
  .site-footer p { order: 3; flex-basis: 100%; }
}

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

/* Project grid: reuses the existing card design while giving two featured projects room. */
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-card .field-visual { height: 220px; }
.project-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: #7f8da1; font-family: var(--font-mono); font-size: .59rem; letter-spacing: .08em; }
.project-status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-transform: none; letter-spacing: 0; }
.project-status .status-dot { width: 6px; height: 6px; box-shadow: none; }
.project-card p { min-height: 0; }
.project-link-muted { color: #8795a8; cursor: default; }
.project-link-muted span { color: #8795a8; }
.projects-disclaimer { margin: 20px 0 0; color: #718095; font-size: .72rem; }
@media (max-width: 640px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-card .field-visual { height: 175px; }
}
