:root {
  --red: #e43027;
  --red-bright: #e33229;
  --ink: #171717;
  --cream: #ffffff;
  --white: #ffffff;
  --line: #d9d5cc;
  --muted: #66645f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand,
.button {
  font-family: "Space Grotesk", Arial, sans-serif;
}

.site-header {
  min-height: 88px;
  padding: 20px clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);

}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--red);
  font-size: 15px;
  border-radius: 50%;
  letter-spacing: -.08em;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
}

nav a {
  font-weight: 600;
  text-decoration: none;
  font-size: 25px;
}

nav a:not(.nav-cta):hover {
  color: var(--red);
}

.nav-cta {
  padding: 10px 19px;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
}

.nav-cta:hover,
.nav-cta.active {
  background: var(--red);
}

.brand>span {
  font-size: 28px;
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: 1.08fr .92fr;
}

.hero-copy {
  padding: clamp(48px, 5vw, 76px) clamp(30px, 7vw, 104px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.eyebrow,
.section-number {
  color: var(--red);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero h1,
.contact-hero h1 {
  margin-bottom: 28px;
  font-size: clamp(58px, 8.2vw, 110px);
  line-height: .87;
  letter-spacing: -.075em;
}

.hero h1 span,
.contact-hero h1 span {
  color: var(--red);
}

.hero-lede {
  max-width: 630px;
  color: #484743;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.button-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--red);
  color: var(--white);
  background: var(--red);
}

.button-primary:hover {
  background: #a9152e;
}

.button-secondary {
  background: transparent;
}

.button-secondary:hover {
  color: var(--white);
  background: var(--ink);
}

.section {
  padding: clamp(45px, 6vw, 80px) clamp(24px, 7vw, 104px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(180px, .45fr) 1.55fr;
  gap: 48px;
  border-bottom: 1px solid var(--line);
}

.intro h2,
.section-heading h2,
.lab-copy h2,
.contact-note h2 {
  margin-bottom: 30px;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1.03;
  letter-spacing: -.055em;
}

.intro>div p {
  max-width: 900px;
  font-size: clamp(20px, 2.3vw, 29px);
  line-height: 1.5;
}

.activities {
  background: var(--white);
}

.section-heading {
  align-items: start;
}

.card-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.info-card {
  min-height: 460px;
  padding: clamp(28px, 3.5vw, 48px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}

.card-icon {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  opacity: .72;
}

.info-card h3 {
  margin: auto 0 20px;
  font-size: clamp(26px, 2.8vw, 39px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.info-card p {
  font-size: 16px;
}

.card-note {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid currentColor;
  opacity: .76;
}

.red-card {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.dark-card {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.light-card {
  background: var(--cream);
}

.lab-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(50px, 9vw, 140px);
  align-items: center;
}

.lab-stat {
  min-height: 540px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  background: var(--ink);
}

.lab-stat strong {
  color: var(--red-bright);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(110px, 16vw, 220px);
  line-height: .8;
  letter-spacing: -.08em;
}

.lab-stat span {
  max-width: 230px;
  margin-top: 34px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
}

.lab-copy>p:not(.section-number) {
  max-width: 660px;
  font-size: 19px;
}

.check-list {
  padding: 0;
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  list-style: none;
}

.check-list li {
  padding: 13px 0 13px 26px;
  position: relative;
  border-top: 1px solid var(--line);
}

.check-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.button-light {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.button-light:hover {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

footer {
  padding: 38px clamp(24px, 5vw, 76px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

footer p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 25px;
}

.footer-links a {
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--red);
}

.contact-main {
  min-height: calc(100vh - 88px);
}

.contact-hero {
  padding: 55px clamp(24px, 5vw, 75px);
  align-items: center;
  gap: 20px;
}


.contact-description {
  max-width: 650px;
  font-size: 21px;
}

.contact-hero h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 75px);
  line-height: 1.1;
  white-space: nowrap;
  margin-bottom: 30px;
  max-width: 950px;
}

.contact-hero>p:last-child {
  max-width: 650px;
  font-size: 21px;
  color: #494844;
}

.contact-grid {
  margin: 0 clamp(24px, 7vw, 104px);
  border-top: 1px solid var(--ink);
}

.contact-card {
  min-height: 120px;
  padding: 25px 8px;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  transition: color .2s, padding .2s;
}

.contact-card:hover {
  padding-left: 20px;
  color: var(--red);
}

.contact-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.contact-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(22px, 3vw, 37px);
  letter-spacing: -.04em;
}

.arrow {
  font-size: 28px;
}

.contact-note {
  padding: clamp(36px, 6vw, 76px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 30px;
  align-items: start;
  background: var(--white);
}

.contact-note h2 {
  grid-row: span 2;
  margin: 0;
}

.contact-note p {
  font-size: 19px;
}

.contact-note .button {
  justify-self: start;
}

.contact-note {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 80px;
}

.discord-qr {
  display: block;
  width: 260px;
  height: 260px;
  padding: 12px;
  object-fit: contain;
  background: white;
  border: 3px solid var(--ink);
  border-radius: 16px;
  transition: transform 0.2s ease;
}

.discord-qr:hover {
  transform: scale(1.04);
}



.hero-art {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: var(--ink);
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-slideshow img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: hero-slideshow 20s infinite;
}

.membership-line {
  color: var(--black);
  font-size: 25px !important;
  font-weight: 700;
}

@keyframes hero-slideshow {
  0% {
    opacity: 0;
    transform: scale(1);
  }

  5% {
    opacity: 1;
  }

  25% {
    opacity: 1;
  }

  30% {
    opacity: 0;
    transform: scale(1.05);
  }

  100% {
    opacity: 0;
  }
}

/* Dark gradient so the caption stays readable. */
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.65),
      transparent 45%);
  pointer-events: none;
}

.photo-caption {
  position: absolute;
  right: 32px;
  bottom: 22px;
  z-index: 2;
  margin: 0;
  color: white;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slideshow img {
    display: none;
    animation: none;
  }

  .hero-slideshow img:first-child {
    display: block;
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 600px;
  }

  .intro,
  .section-heading,
  .lab-section,
  .contact-note {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: 360px;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .footer-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
  }

  .footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-size: 27px;
    text-decoration: none;
    transition:
      color 0.2s ease,
      transform 0.2s ease;
  }

  .footer-links a:hover {
    color: var(--red);
    transform: translateY(-3px);
  }

  .contact-note h2 {
    grid-row: auto;
  }
}

@media (max-width: 650px) {
  body {
    font-size: 16px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    gap: 22px;
    padding-bottom: 2px;
  }

  nav a {
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding-top: 70px;
    padding-bottom: 75px;
  }

  .hero-art {
    min-height: 480px;
  }

  .printer-frame {
    width: 72%;
    border-width: 12px;
    border-top-width: 20px;
  }

  .intro,
  .section-heading {
    gap: 14px;
  }

  .lab-stat {
    min-height: 390px;
  }

  .contact-card {
    grid-template-columns: 1fr auto;
    gap: 4px 16px;
  }

  .contact-label {
    grid-column: 1 / -1;
  }

  .footer-brand span:last-child {
    display: inline;
  }

  .discord-qr {
    width: 220px;
    height: 220px;
  }
}

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

  .button,
  .contact-card {
    transition: none;
  }
}

/* Final mobile overrides */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    overflow-x: hidden;
  }

  .site-header {
    min-height: auto;
    padding: 14px 20px;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand>span {
    font-size: 19px;
  }

  nav {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    overflow: visible;
  }

  nav a {
    padding: 7px 3px;
    font-size: 14px;
    white-space: nowrap;
  }

  .nav-cta {
    padding: 7px 13px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 60px 20px 55px;
  }

  .eyebrow,
  .section-number {
    font-size: 13px;
    letter-spacing: .11em;
  }

  .hero h1,
  .contact-hero h1 {
    margin-bottom: 22px;
    font-size: clamp(48px, 15vw, 68px);
    line-height: .92;
    letter-spacing: -.065em;
    white-space: normal;
  }

  .hero-lede,
  .contact-description {
    font-size: 18px;
  }

  .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    min-height: 48px;
    padding: 11px 18px;
    font-size: 16px;
  }

  .hero-art {
    min-height: 360px;
  }

  .section {
    padding: 64px 20px;
  }

  .intro,
  .section-heading,
  .lab-section {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .intro h2,
  .section-heading h2,
  .lab-copy h2,
  .contact-note h2 {
    margin-bottom: 20px;
    font-size: 38px;
    line-height: 1.05;
  }

  .intro>div p {
    font-size: 19px;
    line-height: 1.5;
  }

  .membership-line {
    font-size: 16px !important;
    line-height: 1.7;
    white-space: normal;
  }

  .card-grid {
    margin-top: 30px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .info-card {
    min-height: 0;
    padding: 28px 24px;
  }

  .info-card h3 {
    margin: 55px 0 18px;
    font-size: 31px;
  }

  .lab-section {
    gap: 38px;
  }

  .lab-stat {
    min-height: 300px;
    padding: 28px;
  }

  .lab-stat strong {
    font-size: 110px;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .contact-main {
    min-height: auto;
  }

  .contact-hero {
    padding: 48px 20px 38px;
  }

  .contact-grid {
    margin: 0 20px;
  }

  .contact-card {
    min-height: 96px;
    padding: 18px 4px;
    grid-template-columns: 1fr auto;
    gap: 5px 12px;
  }

  .contact-card:hover {
    padding-left: 4px;
  }

  .contact-label {
    grid-column: 1 / -1;
    font-size: 12px;
  }

  .contact-card strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 21px;
  }

  .arrow {
    font-size: 22px;
  }

  .contact-note {
    margin: 0;
    padding: 58px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    text-align: center;
  }

  .discord-qr {
    width: min(220px, 75vw);
    height: auto;
    aspect-ratio: 1;
  }

  footer {
    padding: 28px 20px;
    grid-template-columns: 1fr auto;
    gap: 22px 12px;
  }

  footer p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .footer-links {
    justify-content: flex-end;
    gap: 18px;
  }

  .footer-links a {
    font-size: 27px;
  }
}

@media (max-width: 430px) {
  .brand>span {
    font-size: 17px;
  }

  nav a {
    font-size: 17px;
  }

  .nav-cta {
    padding: 6px 10px;
  }

  .hero h1,
  .contact-hero h1 {
    font-size: clamp(43px, 14vw, 58px);
  }
}