:root {
  color-scheme: dark;
  --background: #0d1116;
  --background-deep: #090d11;
  --surface: #12181f;
  --text: #f0eee8;
  --muted: #969da5;
  --line: rgba(255, 255, 255, .12);
  --accent: #22b9b2;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--background); }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 47%, rgba(43, 53, 61, .2), transparent 31%),
    linear-gradient(145deg, var(--background-deep), var(--background) 52%, #10151b);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: #000;
  transform: translate(-50%, -150%);
}

.skip-link:focus { transform: translate(-50%, 0); }

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 78px;
  padding: 18px clamp(22px, 4vw, 64px);
}

.site-header img {
  width: 150px;
  height: 58px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 560px;
  padding: 80px 24px 140px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: min(760px, 85vw);
  aspect-ratio: 1.7;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(46, 57, 66, .25), transparent 67%);
  filter: blur(10px);
}

.hero-content { max-width: 1040px; }

.hero-kicker {
  margin: 10px 0 0;
  color: #e1ded7;
  font-size: clamp(.86rem, 1.25vw, 1.15rem);
  font-weight: 300;
  letter-spacing: .42em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(3.8rem, 7vw, 6.2rem);
  font-weight: 200;
  letter-spacing: .21em;
  line-height: .95;
  text-indent: .21em;
}

.accent-line {
  width: min(290px, 52vw);
  height: 1px;
  display: block;
  margin: 18px auto 18px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(34, 185, 178, .32);
}

.disciplines {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 0;
  margin: 0;
  color: #dedbd4;
  font-size: clamp(.72rem, 1.1vw, .93rem);
  font-weight: 500;
  letter-spacing: .3em;
  line-height: 1.8;
  text-transform: uppercase;
}

.disciplines span { white-space: nowrap; }
.disciplines span:not(:last-child)::after { content: "·"; margin: 0 .72em; color: var(--muted); }

.site-footer {
  position: relative;
  z-index: 3;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(22px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: rgba(8, 12, 16, .72);
  color: var(--muted);
  font-size: .76rem;
}

.copyright { white-space: nowrap; }

.footer-nav {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 24px;
  margin-left: auto;
  text-align: right;
}

.footer-nav details { position: relative; }

.footer-nav summary {
  padding: 8px 0;
  color: #c1c6cb;
  cursor: pointer;
  list-style: none;
  text-underline-offset: 4px;
}

.footer-nav summary::-webkit-details-marker { display: none; }
.footer-nav summary:hover, .footer-nav summary:focus-visible { color: var(--text); text-decoration: underline; }
.footer-nav summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }

.legal-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 18px);
  width: min(560px, calc(100vw - 44px));
  max-height: min(64vh, 620px);
  padding: 28px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(16, 22, 29, .98);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
  color: #abb3bb;
  text-align: left;
}

.legal-panel h2, .legal-panel h3 { color: var(--text); font-weight: 500; }
.legal-panel h2 { margin: 0 0 20px; font-size: 1.65rem; }
.legal-panel h3 { margin: 24px 0 8px; font-size: 1rem; }
.legal-panel p { margin: 0 0 14px; line-height: 1.7; }
.legal-panel a { color: #6ed7d1; }

@media (max-width: 680px) {
  .site-header { min-height: 68px; padding: 14px 20px; }
  .site-header img { width: 125px; height: 48px; }
  .hero { min-height: 540px; padding: 72px 20px 96px; }
  h1 { font-size: clamp(3.5rem, 19vw, 5.6rem); letter-spacing: .12em; text-indent: .12em; }
  .hero-kicker { font-size: .76rem; letter-spacing: .34em; }
  .disciplines { max-width: 340px; margin-inline: auto; font-size: .68rem; letter-spacing: .19em; }
  .site-footer { align-items: flex-end; padding: 16px 20px; }
  .footer-nav { gap: 18px; }
  .legal-panel { position: fixed; right: 20px; bottom: 76px; max-height: calc(100vh - 110px); }
}

@media (max-width: 430px) {
  .site-footer { flex-wrap: wrap; gap: 4px 18px; }
  .footer-nav { width: 100%; order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
