:root {
  color-scheme: dark;
  --page: #080f17;
  --surface: #101d28;
  --surface-raised: #142530;
  --text: #eef6f7;
  --muted: #afc4cf;
  --line: #263d47;
  --mint: #91f2cc;
  --mint-bright: #a9f9d9;
  font: 16px/1.6 "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--page); }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--mint-bright); outline-offset: 4px; }
.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: absolute; top: .75rem; left: 1rem; z-index: 5; padding: .5rem; background: var(--page); }
.site-header, .site-content, .site-footer {
  width: min(100% - 3rem, 76rem);
  margin: 0 auto;
}
.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.35rem;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  color: var(--text);
  display: inline-flex;
  gap: .65rem;
  align-items: center;
  white-space: nowrap;
  font-size: .88rem;
  letter-spacing: .15em;
  font-weight: 750;
}
.brand-symbol { display: inline-block; width: .68rem; height: .68rem; background: var(--mint); transform: rotate(45deg); }
.desktop-nav, .header-actions, .site-footer nav { display: flex; align-items: center; gap: clamp(.8rem, 2.5vw, 2rem); }
.desktop-nav a, .site-footer nav a, .mobile-nav a { color: var(--muted); font-size: .89rem; }
.desktop-nav a:hover, .site-footer nav a:hover, .mobile-nav a:hover, a[aria-current="page"] { color: var(--mint); }
.secure { background: #14342f; border: 1px solid #2a6858; color: var(--mint-bright); white-space: nowrap; }
.mobile-nav { display: none; }

.hero {
  background: radial-gradient(ellipse at 86% 33%, #143733, #10222a 46%, #0d1923 76%);
  margin-top: 1.1rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  overflow: hidden;
}
.hero-home {
  padding: clamp(1.9rem, 5vw, 4rem);
  min-height: 27rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  align-items: center;
  gap: 1rem;
}
.hero-copy { position: relative; z-index: 1; }
h1 {
  margin: 0;
  font-size: clamp(2.65rem, 6.8vw, 6.125rem);
  line-height: 1.02;
  letter-spacing: -.055em;
  max-width: 11ch;
}
h1 em { color: var(--mint); font-style: normal; }
.hero p { max-width: 45ch; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.13rem); margin: 1.3rem 0 1.55rem; }
.hero-art {
  width: min(100%, 29rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  background: radial-gradient(circle, #2668543a, transparent 62%);
}
.hero-art canvas { display: block; width: 100%; height: auto; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.actions:empty { display: none; }
.primary, .secondary, .secure {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .57rem .95rem;
  min-height: 44px;
  border-radius: .38rem;
  font-size: .89rem;
  font-weight: 700;
  transition: color .15s, background-color .15s, border-color .15s;
}
.primary { background: var(--mint-bright); border: 1px solid var(--mint-bright); color: #09251e; }
.primary:hover { background: #cafbe7; }
.secondary { background: #0b161f91; border: 1px solid #45716d; color: var(--text); }
.secondary:hover, .secure:hover { border-color: var(--mint); background: #19453c; }
.hero-interior { padding: clamp(2rem, 5vw, 4.4rem); }
.hero-interior h1 { max-width: 19ch; font-size: clamp(2.5rem, 5.2vw, 4.8rem); }
.hero-interior p { max-width: 60ch; }

.cards {
  margin-top: .85rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}
.cards article { border: 1px solid var(--line); min-width: 0; background: var(--surface); border-radius: .6rem; }
.cards article a, .interior-cards article { display: block; padding: 1.05rem 1.2rem 1.15rem; }
.cards article a { position: relative; height: 100%; transition: background-color .15s; border-radius: inherit; }
.cards article a:hover { background: var(--surface-raised); }
.cards article h3, .cards article h2 { margin: 0 0 .3rem; font-size: 1.08rem; font-weight: 660; line-height: 1.25; }
.cards article a h3 { padding-right: 1.15rem; }
.cards article p, .research-track p { color: var(--muted); margin: 0; font-size: .93rem; }
.arrow { color: var(--mint); position: absolute; right: 1rem; top: .85rem; }
.research-track {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-top: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.research-track h2 { font-size: 1.65rem; margin: 0 0 .4rem; line-height: 1.15; }
.research-track p { max-width: 64ch; }
.text-link { color: var(--mint); flex: none; text-underline-offset: .2em; }
.text-link:hover { text-decoration: underline; }
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 0 2.4rem;
  margin-top: 1rem;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}
.site-footer nav { flex-wrap: wrap; row-gap: .6rem; }

@media (max-width: 55rem) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .header-actions { gap: .5rem; }
  .mobile-nav summary {
    cursor: pointer;
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: .4rem .55rem;
    font-size: .85rem;
    color: var(--muted);
    list-style: none;
  }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav nav {
    position: absolute;
    right: 0;
    top: calc(100% + .45rem);
    width: min(17rem, 100%);
    border-radius: .5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: .4rem;
    display: grid;
    box-shadow: 0 .75rem 1.75rem #0008;
  }
  .mobile-nav a { min-height: 44px; padding: .58rem .7rem; }
}

@media (max-width: 40rem) {
  .site-header, .site-content, .site-footer { width: calc(100% - 1.5rem); }
  .site-header { gap: .5rem; }
  .wordmark { gap: .45rem; font-size: .78rem; }
  .secure { font-size: .78rem; padding-inline: .52rem; }
  .hero-home { grid-template-columns: 1fr; padding: 1.45rem; gap: .25rem; }
  .hero-art { width: min(70%, 15rem); margin-top: .25rem; }
  .hero p { margin-block: .8rem 1.05rem; }
  .cards { grid-template-columns: 1fr; }
  .research-track { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
