:root {
  --midnight: #0b0f14;
  --midnight-soft: #111923;
  --apex: #3b82f6;
  --electric: #06b6d4;
  --white: #ffffff;
  /* Brand slate fails WCAG AA on Midnight, so dark surfaces use the tokens below. */
  --slate: #6b7280;
  --text-soft: #d5dde6;
  --text-muted: #a8b3c2;
  --line: rgba(255, 255, 255, 0.12);
  --shell: min(1160px, calc(100% - 40px));
  --radius: 18px;
  --header: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0;
  background: var(--midnight);
  color: var(--white);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin-inline: auto; }
.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; left: 16px; top: -80px; z-index: 1000; padding: 10px 16px; background: var(--white); color: var(--midnight); border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 16px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.site-header.scrolled { background: rgba(11, 15, 20, .92); border-color: var(--line); backdrop-filter: blur(18px); }
.nav-wrap { min-height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 700 .95rem/1 "Montserrat", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav > a { color: var(--text-soft); text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-nav > a:hover { color: var(--white); }
.nav-dropdown { position: relative; }
.nav-dropdown-button { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text-soft); font: inherit; font-size: .95rem; font-weight: 500; line-height: inherit; cursor: pointer; }
.nav-dropdown-button:hover, .nav-dropdown.is-open .nav-dropdown-button { color: var(--white); }
.nav-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.nav-dropdown.is-open .nav-caret { transform: rotate(180deg); }
.nav-dropdown-panel { position: absolute; top: 100%; left: 50%; z-index: 2; transform: translateX(-50%); min-width: 220px; padding-top: 12px; }
.nav-dropdown-panel[hidden] { display: none !important; }
.nav-dropdown-menu { display: grid; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #101822; box-shadow: 0 24px 80px rgba(0, 0, 0, .5); }
.nav-dropdown-menu a { padding: 10px 12px; border-radius: 10px; color: var(--text-soft); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-dropdown-menu a:hover, .nav-dropdown-menu a:focus-visible { color: var(--white); background: rgba(255, 255, 255, .06); }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; border-radius: 10px; color: white; }
.menu-button span:not(.sr-only) { display: block; width: 19px; height: 2px; margin: 4px auto; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-button[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-6px) rotate(-45deg); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 10px; background: linear-gradient(110deg, var(--apex), var(--electric)); color: var(--white); text-decoration: none; font-weight: 700; box-shadow: 0 12px 36px rgba(6, 182, 212, .16); transition: transform .2s, box-shadow .2s, border-color .2s, background .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(6, 182, 212, .25); }
.button-small { min-height: 44px; padding-inline: 18px; font-size: .92rem; }
.button-secondary { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .42); box-shadow: none; }
.button-secondary:hover { border-color: var(--electric); background: rgba(6, 182, 212, .1); box-shadow: none; }
.text-link { text-decoration: none; color: var(--text-soft); font-weight: 600; }
.text-link:hover { color: var(--white); }

.hero { position: relative; overflow: hidden; display: grid; align-items: center; padding: 138px 0 72px; border-bottom: 1px solid var(--line); }
.hero-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 74px 74px; mask-image: linear-gradient(to bottom, black, transparent 82%); }
.hero-glow { position: absolute; width: 720px; height: 720px; right: -180px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(6,182,212,.22), rgba(59,130,246,.08) 46%, transparent 70%); filter: blur(8px); }
.hero-layout { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; }
.eyebrow { margin: 0 0 18px; color: var(--electric); font: 700 .78rem/1.2 "Montserrat", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: "Montserrat", sans-serif; line-height: 1.08; text-wrap: balance; }
h1 { max-width: 14em; font-size: clamp(2.7rem, 4.5vw, 4.35rem); letter-spacing: -.045em; }
h1 span { color: transparent; background: linear-gradient(90deg, var(--apex), var(--electric)); background-clip: text; -webkit-background-clip: text; }
.hero-lead { max-width: 38rem; margin: 24px 0 0; color: var(--text-soft); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 32px; }
.hero-mark { position: relative; display: grid; place-items: center; }
.hero-mark img { width: min(420px, 100%); height: auto; filter: drop-shadow(0 35px 70px rgba(0,0,0,.45)); }

.section { padding: 96px 0; }
.section-heading { display: grid; grid-template-columns: 1.1fr .9fr; column-gap: 48px; align-items: end; margin-bottom: 36px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2, .about h2 { font-size: clamp(2.15rem, 4vw, 3.5rem); letter-spacing: -.04em; }
.section-heading > p:last-child { margin: 0; color: var(--text-soft); }

.sites { padding-top: 84px; }
.site-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.site-card { grid-column: span 2; display: flex; flex-direction: column; min-height: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #101820; text-decoration: none; overflow: hidden; transition: transform .2s, border-color .2s; }
.site-card:nth-child(n + 4) { grid-column: span 3; }
.site-card:hover { transform: translateY(-5px); border-color: var(--electric); }
.site-visual { display: grid; place-items: center; height: 168px; background: radial-gradient(circle at 50% 42%, var(--tile), transparent 62%), #121a24; }
.site-visual-ctr { --tile: rgba(163, 59, 44, .95); }
.site-visual-stu { --tile: rgba(37, 99, 235, .95); }
.site-visual-oyw { --tile: rgba(124, 58, 237, .9); }
.site-visual-rtg { --tile: rgba(234, 88, 12, .88); }
.site-visual-puzzle { --tile: rgba(6, 182, 212, .7); }
.site-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.site-tag { color: var(--electric); font: 700 .72rem/1.4 "Montserrat", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.site-card h3 { margin-top: 12px; font-size: clamp(1.35rem, 2vw, 1.7rem); }
.site-card p { margin: 12px 0 22px; color: var(--text-soft); }
.site-visit { margin-top: auto; color: var(--white); font-size: .92rem; font-weight: 600; }
.site-visit span { color: var(--electric); }

.letters { background: #0d141d; border-block: 1px solid var(--line); }
.letter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.letter-card { display: flex; flex-direction: column; gap: 22px; min-height: 250px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(circle at 100% 0%, rgba(6,182,212,.16), transparent 36%), linear-gradient(180deg, #152232, #101820); }
.letter-card h3 { margin-top: 10px; font-size: 1.45rem; }
.letter-card p { margin: 10px 0 0; color: var(--text-soft); }
.letter-card .button { align-self: flex-start; margin-top: auto; }

.about { background: #0e151e; }
.about-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: end; padding: 64px; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(circle at 90% 10%, rgba(6,182,212,.16), transparent 32%), linear-gradient(135deg, #111b27, #0a0f15); }
.about-copy p { margin: 0 0 16px; color: var(--text-soft); font-size: 1.08rem; }
.about-copy p:last-child { margin-bottom: 0; }

.aside { padding-top: 28px; }
.aside-line { margin: 0; padding: 22px 26px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .03); color: var(--text-soft); font-size: 1.05rem; }
.aside-line a { color: var(--white); font-weight: 600; text-underline-offset: 3px; }
.aside-line a:hover { color: var(--electric); }

.site-footer { padding: 34px 0 42px; border-top: 1px solid var(--line); color: var(--text-muted); }
.footer-layout { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 18px 32px; font-size: .92rem; }
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-brand strong { color: var(--white); font-family: "Montserrat", sans-serif; }
.footer-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer-links a { color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--white); }
.footer-layout p { margin: 0; }

.legal { padding: 140px 0 88px; }
.legal-card { max-width: 740px; }
.legal h1 { max-width: none; font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -.04em; }
.legal h2 { margin: 34px 0 10px; font-size: 1.3rem; }
.legal p { margin: 0 0 16px; color: var(--text-soft); font-size: 1.05rem; }
.legal a { color: #c8f6ff; text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--white); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid var(--electric); outline-offset: 4px; }

@media (max-width: 980px) {
  .menu-button { display: block; }
  .site-nav { position: fixed; inset: var(--header) 20px auto; display: none; align-items: stretch; gap: 4px; max-height: calc(100dvh - var(--header) - 24px); overflow-y: auto; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #101822; box-shadow: 0 24px 80px rgba(0,0,0,.5); }
  .site-nav.open { display: grid; }
  .site-nav > a, .nav-dropdown-button { padding: 12px; }
  .nav-dropdown { display: grid; }
  .nav-dropdown-button { justify-content: space-between; width: 100%; text-align: left; }
  .nav-dropdown-panel { position: static; transform: none; min-width: 0; padding: 0 0 4px 8px; }
  .nav-dropdown-menu { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .nav-dropdown-menu a:hover, .nav-dropdown-menu a:focus-visible { background: rgba(255, 255, 255, .06); }
  .hero-layout, .section-heading, .about-card { grid-template-columns: 1fr; gap: 22px; }
  .hero-mark { order: -1; }
  .hero-mark img { width: min(280px, 70%); }
  h1 { max-width: 12em; }
  .site-grid, .letter-grid { grid-template-columns: 1fr 1fr; }
  .site-card, .site-card:nth-child(n + 4) { grid-column: auto; }
  .site-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --shell: min(100% - 28px, 1160px); --header: 72px; }
  .brand img { width: 42px; height: 42px; }
  .brand span { font-size: .78rem; }
  .site-nav { inset-inline: 14px; }
  .hero { padding: 96px 0 48px; }
  .hero-grid { background-size: 48px 48px; }
  .hero-mark { display: none; }
  .hero .eyebrow { margin-bottom: 14px; }
  h1 { font-size: clamp(2.15rem, 10vw, 2.75rem); letter-spacing: -.04em; }
  .hero-lead { margin-top: 16px; font-size: 1.02rem; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 12px; margin-top: 22px; }
  .hero-actions .button, .hero-actions .button-secondary { width: 100%; }
  .hero-actions .text-link { align-self: center; min-height: 44px; display: inline-flex; align-items: center; }
  .section { padding: 64px 0; }
  .sites { padding-top: 52px; }
  .section-heading { margin-bottom: 26px; }
  .site-grid, .letter-grid { grid-template-columns: 1fr; }
  .site-card, .site-card:last-child { grid-column: auto; min-height: 0; }
  .site-visual { height: 140px; }
  .about-card, .letter-card { padding: 24px; }
  .aside { padding-top: 8px; }
  .aside-line a { overflow-wrap: anywhere; }
  .footer-layout { grid-template-columns: 1fr; }
  .legal { padding-top: 108px; }
}

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

@media (scripting: none) {
  .reveal { opacity: 1; transform: none; }
}
