:root {
  --shell-bg: #070b12;
  --shell-panel: #0d1420;
  --shell-line: rgba(124, 190, 255, .16);
  --shell-blue: #72c5ff;
  --shell-cyan: #6fffe9;
  --shell-text: #edf7ff;
  --shell-muted: #9ab0c5;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 240ms;
  animation-timing-function: ease-out;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--shell-line);
  background: rgba(7, 11, 18, .86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  view-transition-name: site-header;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--shell-text);
  text-decoration: none;
  white-space: nowrap;
}

.site-brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  color: #04101a;
  background: linear-gradient(145deg, var(--shell-cyan), var(--shell-blue));
  font-size: 20px;
  font-weight: 900;
}

.site-brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.site-brand-mark b {
  font: inherit;
}

.site-brand strong {
  font-size: 16px;
}

.site-header nav {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.site-header .header-actions {
  flex: 0 0 auto;
}

.site-header nav a,
.site-header nav button {
  position: relative;
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: var(--shell-muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: color 180ms ease;
}

.site-header nav a::after,
.site-header nav button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--shell-cyan);
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-header nav a:hover,
.site-header nav button:hover,
.site-header nav a:focus-visible,
.site-header nav button:focus-visible,
.site-header nav .active {
  color: var(--shell-cyan);
}

.site-header nav a:hover::after,
.site-header nav button:hover::after,
.site-header nav a:focus-visible::after,
.site-header nav button:focus-visible::after,
.site-header nav .active::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 2px solid var(--shell-cyan);
  outline-offset: 4px;
  border-radius: 3px;
}

.public-home {
  color: var(--shell-text);
  background:
    radial-gradient(circle at 80% 0, rgba(30, 115, 180, .16), transparent 35%),
    var(--shell-bg);
}

.public-home > main {
  width: min(1180px, calc(100% - 36px));
  min-width: 0;
  min-height: calc(100vh - 55px);
  display: block;
  margin: 0 auto;
}

/* The legacy profile sidebar is replaced by the full-width hero/header shell. */
.public-home > main > .sidebar {
  display: none;
}

.public-home .main-content {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.public-home article {
  width: 100%;
  min-height: calc(100vh - 55px);
  margin: 0;
  padding: 70px 0 80px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.public-home article.about {
  padding-top: 0;
}

.public-home article.active {
  animation: pageIn 340ms cubic-bezier(.2, .7, .2, 1) both;
}

.public-home .brand-hero {
  min-height: 610px;
  margin: 0 0 80px;
  padding: 52px 0;
  border: 0;
  border-bottom: 1px solid var(--shell-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.public-home .hero-eyebrow,
.public-home .section-kicker {
  color: var(--shell-blue);
}

.public-home .brand-hero h2 {
  font-size: clamp(56px, 9vw, 96px);
}

.public-home .hero-button.primary-hero {
  color: #04101a;
  border-color: var(--shell-cyan);
  background: var(--shell-cyan);
}

.public-home .article-title::after {
  background: var(--shell-cyan);
}

.site-footer {
  width: min(1180px, calc(100% - 36px));
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 30px 0 45px;
  border-top: 1px solid var(--shell-line);
  color: var(--shell-muted);
  font-size: 13px;
}

.site-footer > span:last-child {
  display: flex;
  gap: 20px;
}

.site-footer a,
.site-footer button {
  padding: 0;
  border: 0;
  color: var(--shell-cyan);
  background: transparent;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .site-header {
    gap: 16px;
    padding-inline: 18px;
  }

  .site-header nav {
    gap: clamp(12px, 4vw, 20px);
  }

  .site-brand strong {
    display: none;
  }

  .public-home article {
    padding: 48px 0 60px;
  }

  .public-home article.about {
    padding-top: 0;
  }

  .public-home .brand-hero {
    min-height: auto;
    margin-bottom: 56px;
    padding: 64px 0;
  }

  .public-home .brand-hero h2 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .site-footer {
    display: grid;
    gap: 12px;
  }
}

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

  ::view-transition-old(root),
  ::view-transition-new(root),
  .public-home article.active {
    animation: none;
  }

  .site-header nav a::after,
  .site-header nav button::after {
    transition: none;
  }
}
