@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@300;400;500&display=swap');

:root {
  --void: #030303;
  --surface: #090909;
  --surface-raised: #0f0f0f;
  --white: #f2f2f0;
  --muted: #aaa7a0;
  --faint: #716e68;
  --line: rgba(242, 242, 240, 0.12);
  --line-soft: rgba(242, 242, 240, 0.06);
  --brass: #d4af37;
  --brass-light: #f0d16a;
  --brass-faint: rgba(212, 175, 55, 0.13);
  --cyan: #5ab4c4;
  --max: 1180px;
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--void); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--white);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 1rem;
  top: 1rem;
  transform: translateY(-180%);
  padding: .75rem 1rem;
  background: var(--white);
  color: var(--void);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 2px solid var(--brass-light);
  outline-offset: 5px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(3,3,3,.72), rgba(3,3,3,.22), transparent);
  pointer-events: none;
}
.brand, .menu-toggle { pointer-events: auto; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--white);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  letter-spacing: .18em;
}
.brand img { width: 24px; height: 24px; object-fit: contain; }
.menu-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--brass-light);
  font: 500 .72rem/1 'JetBrains Mono', monospace;
  letter-spacing: .14em;
  cursor: pointer;
  padding: .75rem;
  margin-right: -.75rem;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(3,3,3,.96);
  backdrop-filter: blur(18px);
}
.menu-panel { width: min(90vw, 560px); text-align: center; }
.menu-links { display: grid; gap: .65rem; }
.menu-link {
  display: block;
  padding: .35rem 1rem;
  color: var(--white);
  text-decoration: none;
  font: 400 clamp(2.1rem, 7vw, 4rem)/1.1 'Instrument Serif', serif;
  opacity: .82;
  transition: color .2s ease, opacity .2s ease, transform .2s ease;
}
.menu-link:hover, .menu-link:focus-visible { color: var(--brass-light); opacity: 1; transform: translateY(-1px); }
.menu-secondary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.menu-secondary a { color: var(--muted); text-decoration: none; font-size: .82rem; }

main { position: relative; z-index: 2; }
.shell { width: min(calc(100% - 2.5rem), var(--max)); margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--brass-light);
  font: 500 .68rem/1.2 'JetBrains Mono', monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; opacity: .55; }
.display {
  margin: 1.2rem 0 1.5rem;
  font: 400 clamp(3rem, 8vw, 7.2rem)/.95 'Instrument Serif', serif;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.display em { color: var(--brass-light); font-style: italic; }
.lede { max-width: 720px; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); }

.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 46px;
  padding: .85rem 1.15rem;
  border: 1px solid var(--line);
  color: var(--white);
  background: rgba(255,255,255,.025);
  text-decoration: none;
  font: 500 .73rem/1 'JetBrains Mono', monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.button:hover { border-color: var(--brass); background: var(--brass); color: var(--void); }
.button.primary { border-color: var(--brass); color: var(--void); background: var(--brass); }
.button.primary:hover { background: var(--brass-light); border-color: var(--brass-light); }

/* Cinematic landing system */
.home-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.home-canvas-fade {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, rgba(3,3,3,0) 0 26%, rgba(3,3,3,.07) 47%, rgba(3,3,3,.52) 100%),
    linear-gradient(to bottom, rgba(3,3,3,.16), transparent 22%, transparent 72%, rgba(3,3,3,.44));
}
.home-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 2rem) 0 5rem;
}
.home-hero-cinematic::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 15% 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(3,3,3,.38), rgba(3,3,3,.12) 48%, transparent 72%);
  pointer-events: none;
}
.cinematic-copy {
  position: relative;
  z-index: 5;
  max-width: 980px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cinematic-wordmark {
  margin: 0 0 .35rem;
  color: rgba(242,242,240,.95);
  font: 300 clamp(4.6rem, 13vw, 11rem)/.78 'Instrument Serif', serif;
  letter-spacing: .1em;
  text-indent: .1em;
  text-transform: uppercase;
  text-shadow:
    0 0 36px rgba(212,175,55,.32),
    0 0 100px rgba(212,175,55,.12);
}
.cinematic-eyebrow {
  margin-top: 1.25rem;
  color: rgba(240,209,106,.9);
}
.cinematic-eyebrow::before { display: none; }
.cinematic-title {
  margin: 1.25rem 0 1rem;
  max-width: 860px;
  font-size: clamp(2.5rem, 5.2vw, 5rem);
  line-height: .98;
  text-shadow: 0 2px 28px rgba(0,0,0,.9);
}
.cinematic-lede {
  max-width: 720px;
  color: rgba(242,242,240,.72);
  text-shadow: 0 2px 20px rgba(0,0,0,.9);
}
.cinematic-actions { justify-content: center; }
.cinematic-actions .button:not(.primary) { background: rgba(3,3,3,.56); backdrop-filter: blur(8px); }

.orbit-links { position: absolute; z-index: 6; inset: 0; pointer-events: none; }
.orbit-link {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .58rem .75rem;
  color: rgba(242,242,240,.62);
  background: rgba(3,3,3,.55);
  border: 1px solid rgba(212,175,55,.14);
  text-decoration: none;
  font: 400 .63rem/1 'JetBrains Mono', monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.orbit-link::before { content: ''; width: 6px; height: 6px; border: 1px solid var(--brass); border-radius: 50%; box-shadow: 0 0 10px rgba(212,175,55,.18); }
.orbit-link:hover, .orbit-link:focus-visible { color: var(--white); border-color: rgba(212,175,55,.42); background: rgba(3,3,3,.78); transform: translateY(-1px); }
.orbit-link.about { left: 9%; top: 24%; }
.orbit-link.capabilities { right: 8%; top: 31%; }
.orbit-link.contact { right: 12%; bottom: 18%; }

.scroll-cue {
  position: absolute;
  z-index: 6;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  color: rgba(242,242,240,.45);
  text-decoration: none;
  font: 400 .58rem/1 'JetBrains Mono', monospace;
  letter-spacing: .18em;
}
.scroll-line { width: 1px; height: 28px; background: linear-gradient(to bottom, var(--brass), transparent); }

.home-section {
  position: relative;
  z-index: 3;
  padding: 7rem 0;
  background: linear-gradient(to bottom, rgba(3,3,3,.97), #030303);
  border-top: 1px solid var(--line-soft);
}
.section-head { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 3rem; margin-bottom: 3rem; }
.section-head h2 { margin: .6rem 0 0; font: 400 clamp(2rem, 4vw, 3.4rem)/1.05 'Instrument Serif', serif; }
.section-head p { margin: 0; color: var(--muted); max-width: 620px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { min-height: 250px; padding: 2rem; background: rgba(7,7,7,.98); }
.card-index { color: var(--brass-light); font: 400 .65rem/1 'JetBrains Mono', monospace; letter-spacing: .14em; }
.card h3 { margin: 3rem 0 .75rem; font: 400 1.7rem/1.1 'Instrument Serif', serif; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.card a { display: inline-block; margin-top: 1.2rem; color: var(--brass-light); text-decoration-thickness: 1px; text-underline-offset: 4px; }

.page-hero { padding: calc(var(--header-h) + 7rem) 0 5rem; border-bottom: 1px solid var(--line); }
.page-hero .display { font-size: clamp(3.5rem, 9vw, 7rem); }
.content-section { padding: 5rem 0; border-bottom: 1px solid var(--line-soft); }
.content-grid { display: grid; grid-template-columns: minmax(220px,.65fr) minmax(0,1.35fr); gap: 4rem; }
.content-grid h2 { margin: 0; font: 400 clamp(1.7rem, 3vw, 2.5rem)/1.12 'Instrument Serif', serif; }
.prose { max-width: 760px; }
.prose p { color: var(--muted); margin: 0 0 1.25rem; }
.prose strong { color: var(--white); font-weight: 500; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 1.1rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.list li:first-child { border-top: 0; padding-top: 0; }
.list strong { display: block; color: var(--white); margin-bottom: .25rem; font-weight: 500; }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { padding: 2.25rem; background: var(--surface); min-height: 290px; }
.service .number { font: 400 .65rem/1 'JetBrains Mono', monospace; color: var(--brass-light); letter-spacing: .14em; }
.service h2 { margin: 3rem 0 .8rem; font: 400 2rem/1.1 'Instrument Serif', serif; }
.service p { color: var(--muted); margin: 0; }
.service ul { color: var(--faint); padding-left: 1rem; margin: 1.4rem 0 0; }

.callout { padding: 2rem; border: 1px solid rgba(212,175,55,.28); background: var(--brass-faint); }
.callout p { margin: 0; color: var(--muted); }

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  background: var(--surface);
}
.contact-card h2 { margin: 0 0 .6rem; font: 400 clamp(2rem, 5vw, 3.5rem)/1 'Instrument Serif', serif; }
.contact-card p { margin: 0; color: var(--muted); }

.legal { max-width: 800px; margin: 0 auto; }
.legal h1 { font: 400 clamp(3rem, 7vw, 5rem)/1 'Instrument Serif', serif; margin: 0 0 2rem; }
.legal h2 { font: 400 1.8rem/1.15 'Instrument Serif', serif; margin: 3.5rem 0 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--brass-light); }
.legal .meta { color: var(--faint); font: 400 .72rem/1.5 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }

.site-footer { position: relative; z-index: 3; padding: 3rem 0; border-top: 1px solid var(--line); background: var(--void); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; align-items: center; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; color: var(--faint); font-size: .75rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .78rem; }
.footer-links a:hover { color: var(--white); }

.not-found { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 6rem 1.25rem; }
.not-found .code { font: 400 .7rem/1 'JetBrains Mono', monospace; color: var(--brass-light); letter-spacing: .2em; }
.not-found h1 { margin: 1rem 0; font: 400 clamp(3rem, 9vw, 6rem)/1 'Instrument Serif', serif; }
.not-found p { max-width: 560px; margin: 0 auto; color: var(--muted); }
.not-found .button-row { justify-content: center; }

@media (max-width: 800px) {
  :root { --header-h: 72px; }
  .section-head, .content-grid, .contact-card { grid-template-columns: 1fr; gap: 1.5rem; }
  .card-grid, .service-grid { grid-template-columns: 1fr; }
  .home-section { padding: 5rem 0; }
  .orbit-link { display: none; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .menu-secondary { gap: .8rem 1.1rem; }
  .home-hero-cinematic::before { inset: 20% 4%; }
  .cinematic-wordmark { font-size: clamp(4rem, 22vw, 7rem); letter-spacing: .06em; text-indent: .06em; }
  .cinematic-title { font-size: clamp(2.5rem, 11vw, 4rem); }
  .cinematic-lede { max-width: 620px; }
  .scroll-cue { bottom: 1rem; }
}

@media (max-width: 520px) {
  .shell { width: min(calc(100% - 2rem), var(--max)); }
  .display { font-size: clamp(2.8rem, 16vw, 4.6rem); }
  .cinematic-wordmark { font-size: clamp(3.75rem, 22vw, 5.8rem); }
  .cinematic-title { font-size: clamp(2.4rem, 12vw, 3.5rem); }
  .cinematic-eyebrow { font-size: .58rem; letter-spacing: .12em; }
  .cinematic-lede { font-size: 1rem; }
  .cinematic-actions { gap: .55rem; }
  .cinematic-actions .button { min-height: 44px; padding: .78rem .9rem; font-size: .64rem; }
  .page-hero { padding-top: calc(var(--header-h) + 5rem); }
  .card, .service { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .home-canvas { opacity: .68; }
  .scroll-cue { display: none; }
}
