:root {
  --white: #ffffff;
  --off-white: #f7f8fa;
  --line: #e5e7eb;
  --ink: #1a1d21;
  --muted: #5c6570;
  --navy: #1e293b;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 68rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--space);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-decoration: none;
}

.brand-mark:hover {
  text-decoration: none;
  color: var(--navy);
}

.brand-mark svg {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: #0f172a;
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: #cbd5e1;
  color: var(--ink);
  background: var(--off-white);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero {
  position: relative;
  min-height: calc(100vh - 3.6rem);
  min-height: calc(100dvh - 3.6rem);
  display: grid;
  align-items: center;
  background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  right: clamp(1rem, 6vw, 5rem);
  top: 50%;
  translate: 0 -50%;
  width: min(42vw, 22rem);
  opacity: 0.12;
  pointer-events: none;
}

.hero-visual svg {
  width: 100%;
  height: auto;
}

.hero-content {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem var(--space);
  position: relative;
}

.hero-brand {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.hero-lede {
  margin: 0 0 2rem;
  max-width: 40ch;
  font-size: 1.125rem;
  color: var(--muted);
}

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) var(--space);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
}

.section-lede {
  margin: 0 0 1.25rem;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-lede:last-child {
  margin-bottom: 0;
}

.brands .section-lede {
  margin-bottom: 2.25rem;
}

.brand-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.brand-grid li {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.brand-grid li.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.brand-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 11rem;
  padding: 1.5rem;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: background 160ms ease;
}

.brand-tile:hover {
  background: var(--off-white);
  text-decoration: none;
  color: inherit;
}

.brand-tile-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-tile-blurb {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.about {
  background: var(--off-white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem 4rem;
  align-items: start;
}

.about-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-points li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
}

.about-points li:last-child {
  border-bottom: 1px solid var(--line);
}

.about-points strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-weight: 600;
}

.site-footer {
  padding: 1.75rem var(--space);
  background: var(--white);
}

.site-footer .section-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--ink);
}

.member-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--off-white);
}

.member-main {
  flex: 1;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 3.5rem var(--space) 3rem;
}

.member-main h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 3.5vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.member-main > p {
  margin: 0 0 2rem;
  color: var(--muted);
}

.member-panel {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.member-panel h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.member-panel > p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.member-status {
  max-width: 40rem;
  margin: 3.5rem auto 0;
  padding: 0 var(--space);
  color: var(--muted);
  font-size: 0.95rem;
}

.hydra-hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#hydra-secure-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#hydra-auth-widget {
  min-height: 4rem;
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .brand-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    width: min(70vw, 16rem);
    opacity: 0.08;
    right: -5%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .brand-grid li {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
