:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-deep: #0a1020;
  --surface: #151f34;
  --surface-soft: #18243b;
  --border: #27344a;
  --text: #f8fafc;
  --muted: #a9b6c8;
  --subtle: #77859a;
  --accent: #38bdf8;
  --accent-soft: #a8e4ff;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(15, 23, 42, 0.88);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 50%;
}

.brand-mark span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.8);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a,
.site-footer a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 520;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible,
.text-link:hover,
.text-link:focus-visible { color: var(--accent-soft); }

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(48px, 8vw, 108px);
  padding-block: 96px 112px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1, h2, h3, p { text-wrap: pretty; }

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(3.25rem, 7.2vw, 6rem);
  font-weight: 710;
}

h1 span {
  color: var(--muted);
  font-weight: 530;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 680;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.28rem;
}

.hero-lede {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: #07101d;
  font-size: 0.93rem;
  font-weight: 720;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: var(--accent-soft);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.text-link {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 640;
  text-decoration: none;
}

.text-link span {
  display: inline-block;
  margin-left: 5px;
  color: var(--accent);
}

.hero-panel {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.12), transparent 35%), linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  background: rgba(56, 189, 248, 0.33);
}

.hero-panel::before { width: 1px; height: 100%; }
.hero-panel::after { width: 100%; height: 1px; }

.orbit {
  position: absolute;
  border: 1px solid rgba(168, 228, 255, 0.2);
  border-radius: 50%;
}

.orbit-one { width: 70%; height: 70%; }
.orbit-two { width: 42%; height: 42%; }

.panel-core {
  position: relative;
  z-index: 1;
  width: 54%;
  padding: 26px 20px;
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 10px;
  background: rgba(10, 16, 32, 0.88);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.core-dot {
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.9);
}

.panel-core p {
  margin: 0 0 2px;
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-core strong {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 620;
}

.section {
  padding-block: 108px;
  border-top: 1px solid var(--border);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 52px;
}

.section-heading .eyebrow { padding-top: 8px; }
.section-heading h2 { max-width: 720px; }

.section-heading.narrow {
  display: block;
  max-width: 690px;
}

.section-heading.narrow p:last-child {
  max-width: 570px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.prose-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
}

.prose-columns p {
  margin: 0;
  color: var(--muted);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.focus-card {
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.focus-card:nth-child(2) { background: var(--surface-soft); }

.card-number {
  display: block;
  margin-bottom: 64px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.focus-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.current-work {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.current-work h2 { margin-bottom: 0; }

.current-work > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-band {
  padding-block: 82px;
  background: var(--accent);
  color: #07101d;
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.contact-band .eyebrow { color: #153e53; }
.contact-band h2 { margin-bottom: 12px; }

.contact-band p:last-child {
  max-width: 680px;
  margin: 0;
  color: #163c4f;
}

.button-light {
  flex: 0 0 auto;
  border-color: var(--bg);
  background: var(--bg);
  color: var(--text);
}

.button-light:hover,
.button-light:focus-visible {
  border-color: #172442;
  background: #172442;
}

.site-footer {
  padding-block: 38px;
  background: var(--bg-deep);
  color: var(--subtle);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 42px;
}

.site-footer strong {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 620;
}

.site-footer p {
  margin: 2px 0 0;
  font-size: 0.8rem;
}

.site-footer nav {
  display: flex;
  gap: 24px;
}

.copyright { text-align: right; }

.page-main {
  min-height: calc(100vh - 250px);
}

.page-hero {
  max-width: 800px;
  padding-block: 100px 74px;
}

.page-hero h1 {
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 6.5vw, 5.25rem);
}

.page-hero > p:last-child {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.page-content {
  padding-bottom: 108px;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
}

.support-card,
.support-note {
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.support-card h2,
.support-note h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.support-card > p,
.support-note > p {
  color: var(--muted);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 36px;
  padding: 0;
  list-style: none;
}

.contact-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.contact-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.email-link {
  display: inline-block;
  color: var(--accent-soft);
  font-size: clamp(1.08rem, 2.6vw, 1.38rem);
  font-weight: 650;
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}

.detail-list {
  margin: 26px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.detail-list li + li { margin-top: 10px; }

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: clamp(44px, 8vw, 96px);
  align-items: start;
}

.legal-meta {
  position: sticky;
  top: 32px;
  padding-top: 8px;
  color: var(--subtle);
  font-size: 0.86rem;
}

.legal-meta strong {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 650;
}

.legal-meta p { margin: 0; }

.legal-copy section + section {
  margin-top: 46px;
  padding-top: 46px;
  border-top: 1px solid var(--border);
}

.legal-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
}

.legal-copy p,
.legal-copy li {
  color: var(--muted);
}

.legal-copy p { margin: 0; }
.legal-copy p + p { margin-top: 16px; }
.legal-copy a { color: var(--accent-soft); }

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 88px;
  }

  .hero-panel {
    width: min(100%, 440px);
    margin-inline: auto;
  }

  .section-heading,
  .current-work {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .prose-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .focus-grid { grid-template-columns: 1fr; }
  .focus-card { min-height: 0; }
  .card-number { margin-bottom: 40px; }

  .contact-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner { display: flex; }
  .copyright { text-align: left; }

  .support-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-meta {
    position: static;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 32px), var(--max-width)); }
  .header-inner { min-height: 68px; }
  .site-nav a:not(:last-child) { display: none; }

  .hero {
    gap: 56px;
    padding-block: 72px;
  }

  h1 { font-size: clamp(2.85rem, 15vw, 4.4rem); }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .section { padding-block: 78px; }
  .section-heading { margin-bottom: 38px; }
  .focus-card { padding: 24px; }
  .contact-band { padding-block: 64px; }
  .site-footer nav { flex-wrap: wrap; }
  .page-hero { padding-block: 72px 54px; }
  .page-content { padding-bottom: 78px; }
  .contact-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after { transition-duration: 0.01ms !important; }
}
