@import url("https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700&display=swap");

@font-face {
  font-family: "Manolo Mono";
  src: url("../fonts/manolo-mono.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #4285f3;
  --red: #e54760;
  --purple: #773ce6;
  --white: #ffffff;
  --black: #000000;

  --page-padding: 67px;     /* your 1440 design side margins */
/*   --header-h: 50px; */
  --section-gap: 90px;

  --radius: 18px;           /* shared radius for glass cards */
  --glass-border: rgba(255, 255, 255, 0.28);
  --glass-shadow: 0 16px 40px rgba(0,0,0,0.45);
  --glass-grad: linear-gradient(
    135deg,
    rgba(255,255,255,0.22) 0%,
    rgba(255,255,255,0.10) 50%,
    rgba(255,255,255,0.04) 100%
  );

  --text: rgba(255,255,255,0.92);
  /* --muted: rgba(255,255,255,0.72); */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Exo 2", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  color: white;
  text-transform: uppercase;
  margin: 0;
  background-color: #000;
  --bg-step: calc(100vw * 2.7777778); /* 4000 / 1440 */
  background-image: 
    url("../img/bg.png"),
    url("../img/bg2.png"),
    url("../img/bg.png"),
    url("../img/bg2.png"),
    url("../img/bg.png"),
    url("../img/bg2.png"),
    url("../img/bg.png"),
    url("../img/bg2.png"),
    url("../img/bg.png");

  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;

  /* A -> B -> A -> B sequence with no seam */
  background-position:
    center 0,
    center var(--bg-step),
    center calc(var(--bg-step) * 2),
    center calc(var(--bg-step) * 3),
    center calc(var(--bg-step) * 4),
    center calc(var(--bg-step) * 5),
    center calc(var(--bg-step) * 6),
    center calc(var(--bg-step) * 7),
    center calc(var(--bg-step) * 8);

  background-size: 100vw auto, 100vw auto, 100vw auto, 100vw auto, 100vw auto, 100vw auto, 100vw auto, 100vw auto, 100vw auto;
  background-attachment: scroll;
}

h1, h2, h3, h4, h5, h6, .title-font {
  font-family: "Manolo Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  margin: 0;
  letter-spacing: 0.02em;
}

h1 { font-size: 67px; line-height: 1.20; font-weight: lighter; text-transform: uppercase;}
h2 { font-size: 60px; line-height: 1.15; font-weight: lighter;text-transform: uppercase;}
h3 { font-size: 40px; line-height: 1.2; text-transform: uppercase; font-weight: lighter;text-transform: uppercase;}
h4 { font-size: 28px; line-height: 1.25;text-transform: uppercase; font-weight: lighter;text-transform: uppercase;}
h5 { font-size: 23px; line-height: 1.3; text-transform: uppercase ;font-weight: lighter;text-transform: uppercase;}
h6 { font-size: 19px; line-height: 1.35; text-transform: uppercase; font-weight: lighter;text-transform: uppercase;}

h1.glitch-heading,
h2.glitch-heading {
  position: relative;
  isolation: isolate;
}

h1.glitch-heading::before,
h1.glitch-heading::after,
h2.glitch-heading::before,
h2.glitch-heading::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  white-space: pre-line;
  color: currentColor;
  opacity: 0;
  z-index: 1;
}

h1.glitch-heading,
h2.glitch-heading {
  animation: glitch-pulse 8.5s infinite steps(1, end);
}

h1.glitch-heading::before,
h2.glitch-heading::before {
  animation: glitch-layer-top 8.5s infinite steps(1, end);
}

h1.glitch-heading::after,
h2.glitch-heading::after {
  animation: glitch-layer-bottom 8.5s infinite steps(1, end);
}

@keyframes glitch-pulse {
  0% {
    color: var(--white);
    text-shadow: 0.1em 0 0 rgba(236, 34, 37, 0.95), -0.06em -0.08em 0 rgba(49, 63, 151, 0.95), 0.06em 0.08em 0 rgba(80, 200, 120, 0.95);
  }
  1.2% {
    color: rgba(0, 194, 203, 0.18);
    transform: translate(-0.015em, 0.01em) skewX(8deg) scaleY(0.98);
    text-shadow: -0.12em -0.04em 0 rgba(236, 34, 37, 0.95), 0.06em -0.06em 0 rgba(49, 63, 151, 0.95), -0.08em -0.1em 0 rgba(80, 200, 120, 0.95);
  }
  2.4% {
    color: rgba(80, 200, 120, 0.78);
    transform: translate(0.018em, -0.008em) skewX(-10deg) scaleY(1.03);
    text-shadow: 0.08em 0.1em 0 rgba(236, 34, 37, 0.95), -0.07em 0.08em 0 rgba(49, 63, 151, 0.95), 0 -0.12em 0 rgba(80, 200, 120, 0.95);
  }
  3.6% {
    color: rgba(49, 63, 151, 0.82);
    transform: translate(-0.01em, 0.015em) skewX(14deg) scaleX(1.015);
    text-shadow: -0.06em 0 0 rgba(236, 34, 37, 0.95), -0.08em -0.05em 0 rgba(49, 63, 151, 0.95), -0.06em -0.12em 0 rgba(80, 200, 120, 0.95);
  }
  4.8% {
    color: rgba(236, 34, 37, 0.7);
    transform: translate(0.02em, 0) skewX(-16deg) scaleY(0.96);
    text-shadow: 0.13em 0 0 rgba(236, 34, 37, 0.95), -0.03em -0.1em 0 rgba(49, 63, 151, 0.95), 0.03em 0.12em 0 rgba(80, 200, 120, 0.95);
  }
  6% {
    color: var(--white);
    transform: none;
    text-shadow: none;
  }
  100% {
    color: var(--white);
    transform: none;
    text-shadow: none;
  }
}

@keyframes glitch-layer-top {
  0% {
    opacity: 0.92;
    clip-path: polygon(0 4%, 100% 0, 100% 12%, 0 18%);
    transform: translate(-0.06em, -0.025em) skewX(-14deg);
    text-shadow: 0.12em 0 0 rgba(236, 34, 37, 0.95), -0.06em -0.08em 0 rgba(49, 63, 151, 0.95), 0.05em 0.08em 0 rgba(80, 200, 120, 0.95);
  }
  0.9% {
    opacity: 0.96;
    clip-path: polygon(0 20%, 100% 16%, 100% 28%, 0 32%);
    transform: translate(0.05em, -0.02em) skewX(16deg);
  }
  1.8% {
    opacity: 0.95;
    clip-path: polygon(0 36%, 100% 30%, 100% 46%, 0 44%);
    transform: translate(0.07em, -0.01em) skewX(18deg);
  }
  2.7% {
    opacity: 0.86;
    clip-path: polygon(0 48%, 100% 44%, 100% 58%, 0 62%);
    transform: translate(-0.05em, -0.04em) skewX(-20deg);
  }
  3.6% {
    opacity: 0.9;
    clip-path: polygon(0 62%, 100% 58%, 100% 72%, 0 76%);
    transform: translate(0.08em, 0.01em) skewX(22deg);
  }
  4.5% {
    opacity: 0.88;
    clip-path: polygon(0 78%, 100% 74%, 100% 88%, 0 84%);
    transform: translate(-0.08em, -0.01em) skewX(-24deg);
  }
  6% {
    opacity: 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transform: none;
  }
  100% {
    opacity: 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transform: none;
  }
}

@keyframes glitch-layer-bottom {
  0% {
    opacity: 0.92;
    clip-path: polygon(0 10%, 100% 6%, 100% 24%, 0 20%);
    transform: translate(0.04em, 0.05em) skewX(12deg);
    text-shadow: 0.12em 0 0 rgba(236, 34, 37, 0.95), -0.06em -0.08em 0 rgba(49, 63, 151, 0.95), 0.05em 0.08em 0 rgba(80, 200, 120, 0.95);
  }
  0.9% {
    opacity: 0.9;
    clip-path: polygon(0 28%, 100% 24%, 100% 38%, 0 42%);
    transform: translate(-0.03em, 0.08em) skewX(-16deg);
  }
  1.8% {
    opacity: 0.94;
    clip-path: polygon(0 44%, 100% 40%, 100% 54%, 0 58%);
    transform: translate(0.04em, -0.03em) skewX(19deg);
  }
  2.7% {
    opacity: 0.95;
    clip-path: polygon(0 56%, 100% 52%, 100% 68%, 0 72%);
    transform: translate(0.06em, -0.015em) skewX(20deg);
  }
  3.6% {
    opacity: 0.88;
    clip-path: polygon(0 70%, 100% 66%, 100% 82%, 0 86%);
    transform: translate(-0.05em, 0.06em) skewX(-22deg);
  }
  4.5% {
    opacity: 0.9;
    clip-path: polygon(0 84%, 100% 80%, 100% 96%, 0 100%);
    transform: translate(0.08em, 0.03em) skewX(24deg);
  }
  6% {
    opacity: 0;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    transform: none;
  }
  100% {
    opacity: 0;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    transform: none;
  }
}

p { margin: 0; text-transform: uppercase;}

.page {
  width: 100%;
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}

.page main {
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}

.page.menu-open main {
  opacity: 0.6;
  filter: blur(8px);
  transform: scale(1.015);
  pointer-events: none;
}

body.menu-stop {
  overflow: hidden;
}

/* Keep mobile menu layout stable by freezing glitch layers while menu is open */
body.menu-stop h1.glitch-heading,
body.menu-stop h2.glitch-heading {
  animation: none !important;
  transform: none;
  text-shadow: none;
}

body.menu-stop h1.glitch-heading::before,
body.menu-stop h1.glitch-heading::after,
body.menu-stop h2.glitch-heading::before,
body.menu-stop h2.glitch-heading::after {
  animation: none !important;
  opacity: 0 !important;
  transform: none;
  text-shadow: none;
}

.container {
  width: 100%;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

.section {
  margin-top: var(--section-gap);
}

/* Header */
.header {
/*   height: var(--header-h);
 */  display: flex;
  /* padding-top: 10px;  */  
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: flex-start;
  position: relative;
  
}

.nav-area{
  position: absolute;
  left: 50%;
  top: 50px;                 /* <-- this is the fix */
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
}
/* for the dollar sign in the hero title */

.prompt { font-size: 24px; margin-left: 0; display: inline-block; vertical-align: baseline; }
.prompt-dollar { display: inline-block; }
.prompt-cursor { display: inline-block; animation: blink 1.5s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }



.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 77px;
  height: 77px;
  object-fit: contain;
  margin-top: 20px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 60px;
  
}

.nav a {
  font-family: "Manolo Mono", monospace;
  font-size: 16px;
  opacity: 0.9;
  font-weight: lighter;
  text-transform: uppercase;
  position: relative;
  isolation: isolate;
  display: inline-block;
}

.nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.nav a:active {
    text-decoration: underline;
    text-underline-offset: 6px;
  }

.menu-glitch-link::before,
.menu-glitch-link::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  white-space: nowrap;
  color: currentColor;
  opacity: 0;
  z-index: 1;
}

.menu-glitch-link:hover,
.menu-glitch-link:focus-visible {
  animation: glitch-pulse 4.25s 1 steps(1, end);
}

.menu-glitch-link:hover::before,
.menu-glitch-link:focus-visible::before {
  animation: glitch-layer-top 4.25s 1 steps(1, end);
}

.menu-glitch-link:hover::after,
.menu-glitch-link:focus-visible::after {
  animation: glitch-layer-bottom 4.25s 1 steps(1, end);
}
.burger {
  display: none;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  position: relative;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.mobile-drawer {
  display: none;
}

.burger span {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  background: var(--white);
  transform: translateX(-50%);
  transition: top 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.burger span:first-child {
  top: 22px;
}

.burger span:last-child {
  top: 31px;
}

.burger:hover {
  border-color: rgba(255,255,255,0.45);
  background: rgba(0, 0, 0, 0.62);
}

.burger[aria-expanded="true"] span:first-child {
  top: 26px;
  transform: translateX(-50%) rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
  top: 26px;
  transform: translateX(-50%) rotate(-45deg);
}

.mobile-drawer .glass {
  padding: 20px;
  border-radius: 24px;
}

.mobile-links {
  display: grid;
  gap: 18px;
}

.mobile-links a {
  font-family: "Manolo Mono", monospace;
  display: block;
  padding: 14px 16px;
  text-align: center;
  letter-spacing: 0.06em;
  transition: opacity 0.25s ease, transform 0.25s ease;
  position: relative;
  isolation: isolate;
}

.mobile-links a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
  transform: translateY(-1px);
}

/* Glass system (your look + safe fallback) */
.glass {
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass-grad);
  box-shadow: var(--glass-shadow);

  /* Fallback blur */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* If supported, apply your SVG filter-based distortion */
.glass--fx {
  backdrop-filter: url(#glass);
  -webkit-backdrop-filter: url(#glass);
}

/* Buttons */
.btn-row {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 195px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--white);
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  font-weight: bold;
  
}

.btn_linktree {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 165px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--white);
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  box-shadow: inset 0 0 7px #42E661;
  font-weight: bold;
}

.btn--icon {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.btn-icon-img {
  width: 16px;  
  height: 16px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.btn_discord{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 165px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--white);
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  box-shadow: inset 0 0 10px #5865F2;
  font-weight: bold;
}

.btn_form{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 195px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--white);
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  font-weight: bold;
  background: #6F3EDE;
}

.btn:hover { transform: translateY(-3px); }
.btn2:hover { transform: translateY(-3px); }
.btn_discord:hover { transform: translateY(-3px); }
.btn_linktree:hover { transform: translateY(-3px); }

.btn--primary { background: var(--red); }
.btn--secondary { background: rgba(255,255,255,0.10); }

/* Hero */
.hero {
  /* margin-top: 22px; */
   margin-top: 80px; 
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: stretch;
  position: relative;
  isolation: isolate;
}

.hero-grid > * {
  position: relative;
}

.hero-grid > :first-child {
  z-index: 2;
}

.hero-grid > :last-child {
  z-index: 1;
}

.hero-lede {
  margin-top: 14px;
  max-width: 640px;
}

.globe-slot {
  width: 100%;
  min-height: 560px;
  overflow: hidden;
  position: relative;
  top: -20px;
}

.globe-slot.globe-slot--bleed {
  overflow: visible;
}

.globe-render-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.globe-render-layer canvas {
  pointer-events: none;
}

.globe-slot canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  background: transparent;
}

/* Explore indicator */
.explore {
/*   margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  opacity: 0.9; */
    margin-top: 40px;
  display: flex;
  flex-direction: column;   /* stack vertically */
  align-items: center;
  gap: 8px;
  opacity: 0.9;
}

.explore .arrow {
  width: 14px;
  height: 14px;
  border-right: 2px solid rgba(255,255,255,0.85);
  border-bottom: 2px solid rgba(255,255,255,0.85);
  transform: rotate(45deg);
  animation: bob 1.2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(8px) rotate(45deg); }
}

/* Two-column blocks */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}

.who-intro {
  width: 450px;
  max-width: 100%;
  margin: 35px auto 0;
  text-align: center;
  position: relative;
  top: 200px;
  z-index: 2;
}

.who-title {
  text-align: center;
  position: relative;
  top: 200px;
  z-index: 2;
}

.who-actions {
  justify-content: center;
  position: relative;
  top: 200px;
  z-index: 2;
}

.who {
  position: relative;
}

.who::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 90px;
  width: 72%;
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(66, 133, 243, 0.35) 0%, rgba(66, 133, 243, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.who-layout {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  column-gap: 18px;
  row-gap: 20px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.who-card {
  padding: 14px;
}

.who-card-head {
  text-align: center;
  line-height: 1.35;
  margin-bottom: 14px;
}

.who-media {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  overflow: hidden;
}

.who-media img {
  width: 100%;
  height: 100%;
  object-fit:cover;
  display: block;
}

.who-card--left { grid-column: 1; grid-row: 1; }
.who-card--center {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
}
.who-card--bottom-wide { grid-column: 1 / span 2; grid-row: 2; }

.who-right-stack {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: grid;
  gap: 20px;
  align-content: start;
}

.who-media--left { height: 640px; }
.who-media--center { height: 450px; }
.who-media--right-top { height: 400px; }
.who-media--right-bottom { height: 430px; }
.who-media--wide { height: 380px; }

/* Newsletter & Instagram */
.instagram-full-width {
  width: 1200px !important;
  max-width: calc(100vw - (var(--page-padding) * 2)) !important;
  min-width: 0 !important;
   margin-left: auto !important;
  margin-right: auto !important;
  border-radius: 28px 28px 0 0 !important;
  overflow: hidden !important;
}

.newsletter-shell {
  width: min(100%, 660px);
  margin-inline: auto;
}

.embed-box {
  height: min(82vh, 900px);
  min-height: 560px;
  overflow: hidden;
  position: relative;
  padding: 0;
}

.embed-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

.embed-box iframe[hidden],
.newsletter-status[hidden],
.embed-cta[hidden] {
  display: none;
}

.newsletter-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--text);
  text-align: center;
}

.newsletter-status[data-state="error"] {
  color: #ff8093;
}

.newsletter-toolbar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.newsletter-meta {
  margin: 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.embed-cta {
  flex: 0 0 auto;
  pointer-events: auto;
}

/* Sponsors */
.sponsors-tier {
  margin-top: 18px;
}

.sponsors-three-col {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 400px));
  justify-content: center;
  align-items: start;
  gap: 24px;
}

.sponsors-tier--primary {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sponsors-tier--center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sponsors-tier-title {
  width: 400px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.sponsors-tier-title > img,
.sponsor-card img,
.sponsor-card-face img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.sponsors-tier-title > img {
  object-fit: contain;
}

.sponsor-card-face--front img[src$="Primary_Feit.png"] {
  object-fit: fill;
}

.sponsors-grid {
  display: grid;
  gap: 16px;
}

.sponsors-grid--primary {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.sponsors-grid--center {
  width: 100%;
  grid-template-columns: minmax(0, 400px);
  justify-content: center;
  justify-items: center;
}

.sponsor-card {
  width: 400px;
  height: 240px;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.sponsor-card--flip {
  overflow: visible;
  perspective: 1600px;
  perspective-origin: center center;
  cursor: pointer;
}

.sponsor-card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transform-origin: center center;
  transform-style: preserve-3d;
  transition: transform 0.95s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.95s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

.sponsor-card--flip:hover .sponsor-card-flip-inner,
.sponsor-card--flip:focus-within .sponsor-card-flip-inner {
  transform: translateY(-4px) rotateY(180deg) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.sponsor-card-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-origin: center center;
  transform-style: preserve-3d;
}

.sponsor-card-face--front {
  transform: rotateY(0deg) translateZ(1px);
}

.sponsor-card-face--back {
  transform: rotateY(180deg) translateZ(1px);
}

.sponsor-card-back-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.26), rgba(0,0,0,0.16));
}

.sponsor-card-back-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  margin-top: auto;
  margin-bottom: auto;
}

.sponsor-card-back-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.sponsor-card-back-link {
  font-family: "Manolo Mono", monospace;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  opacity: 0.95;
}

.sponsor-card-back-link:hover {
  opacity: 1;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .sponsor-card-flip-inner {
    transition: none;
  }
}

.sponsors-data-error {
  margin-top: 14px;
  color: #e54760;
}

.sponsors-past-wrap {
  width: 100%;
  max-width: 1248px;
  margin-left: 0;
  margin-right: auto;
}

.sponsors-current-title {
  text-transform: uppercase;
}

.sponsors-past-title {
  text-align: left;
}

.sponsors-past-year-block {
  margin-top: 28px;
}

.sponsors-past-year-heading {
  margin-bottom: 14px;
  text-align: left;
}

.sponsors-past-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 400px));
  justify-content: flex-start;
  gap: 24px;
}

/* Status cards */
.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.status-card {
  width: 300px;
  height: 300px;
  padding: 48px 16px;
  display: flex;
  justify-content: center;
}

.status-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  text-align: center;
}

.status-icon {
  width: 110px;
  height: 110px;
  border-radius: 12px;
  
}

.status-icon img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.status-value {
  font-family: "Manolo Mono", monospace;
  font-size: 30px;
  color: var(--white);
  margin: 0;
}

.status-top p {
  margin: 0;
}

/* Contact */
.form {
  display: grid;
  gap: 12px;
}

.input {
  height: 50px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.20);
  color: var(--white);
  box-shadow: inset 0 0 10px #4285f3;
  

}

.input:user-invalid,
.input:invalid:focus,
.textarea:user-invalid,
.textarea:invalid:focus,
.input[aria-invalid="true"] {
  border-color: #e54760;
  box-shadow: inset 0 0 10px #e54760;
}

.textarea {
  min-height: 120px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.20);
  color: var(--white);
  resize: vertical;
  box-shadow: inset 0 0 10px #4285f3;
}

.form-actions {
  margin-top: 6px;
}

/* Team page */
.team-page {
  margin-top: 80px;
}

.team-page-intro {
  text-align: center;
  width: 100%;
  max-width: 1248px;
  margin-left: auto;
  margin-right: auto;
}

.team-heading-row {
  display: grid;
  grid-template-columns: 80% 20%;
  align-items: center;
}

.team-page-intro h1 {
  text-transform: uppercase;
  text-align: right;
}

.team-year-control {
  position: relative;
  justify-self: end;
}

.team-year-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(66, 133, 243, 0.72);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(66, 133, 243, 0.2), rgba(119, 60, 230, 0.1)),
    rgba(0, 0, 0, 0.62);
  color: var(--white);
  box-shadow: inset 0 0 18px rgba(66, 133, 243, 0.16), 0 8px 24px rgba(0, 0, 0, 0.28);
  font-family: "Manolo Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.team-year-toggle:hover {
  border-color: var(--blue);
  box-shadow: inset 0 0 22px rgba(66, 133, 243, 0.24), 0 10px 28px rgba(0, 0, 0, 0.36);
  transform: translateY(-2px);
}

.team-year-toggle:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.team-year-toggle-icon {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.team-year-toggle[aria-expanded="true"] .team-year-toggle-icon {
  transform: translateY(2px) rotate(225deg);
}

.team-year-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  right: 0;
  width: max-content;
  min-width: 100%;
  padding: 7px;
  border: 1px solid rgba(66, 133, 243, 0.58);
  border-radius: 12px;
  background: rgba(4, 7, 14, 0.96);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.52), inset 0 0 18px rgba(66, 133, 243, 0.08);
}

.team-year-menu[hidden] {
  display: none;
}

.team-year-option {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--white);
  font-family: "Manolo Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.team-year-option:hover,
.team-year-option:focus-visible {
  outline: none;
  background: rgba(66, 133, 243, 0.2);
}

.team-year-option[aria-selected="true"] {
  color: #9fc0ff;
}

.team-year-option[aria-selected="true"]::before {
  content: "> ";
}

.team-page-error {
  margin-top: 12px;
  color: #e54760;
}

.team-sections {
  margin-top: 44px;
  width: 100%;
  max-width: 1248px;
  margin-left: auto;
  margin-right: auto;
}

.team-section + .team-section {
  margin-top: 80px;
}

.team-section-title {
  text-align: center;
  margin-bottom: 24px;
  font-size: 40px;
  line-height: 1.2;
  text-transform: uppercase;
}

.team-members-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 400px));
  justify-content: center;
  gap: 24px;
}

.team-member-card {
  position: relative;
  width: 400px;
  height: 450px;
  overflow: hidden;
  border-radius: 10px;
}

.team-member-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.team-member-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  transition: opacity 0.25s ease;
  z-index: 1;
  border-radius: 10px;
}

.team-member-card:hover .team-member-overlay,
.team-member-card:focus-within .team-member-overlay {
  opacity: 0;
}

.team-member-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  z-index: 2;
}

.team-member-name,
.team-member-role {
  margin: 0;
  font-family: "Manolo Mono", monospace;
  line-height: 1.2;
}

.team-member-role {
  text-align: right;
}

/* Footer */
.footer {
  margin-top: var(--section-gap);
  padding-bottom: 28px;
  opacity: 0.9;
  font-size: 14px;
}

.footer-box {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.footer-top {
  text-align: left;
}

.footer-top p,
.footer-middle p {
  margin: 0;
}

.footer-middle {
  text-align: center;
}

.footer-bottom {
  min-height: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: flex-end;
}

.footer-constitution-link {
  font-family: "Manolo Mono", monospace;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 6px;
  opacity: 0.9;
}

.footer-constitution-link--unavailable {
  cursor: default;
  opacity: 0.58;
  text-decoration: none;
}

.footer-social {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 35px;
}

.footer-social-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-social-icon[src$=".svg"], .status-icon img[src$=".svg"] {
  filter: brightness(0) invert(1);
}

/* Standard responsive breakpoints */
@media (max-width: 1400px) {
  .sponsors-three-col {
    grid-template-columns: repeat(2, minmax(0, 400px));
  }

  .team-page-intro,
  .team-sections {
    max-width: 824px;
  }

  .team-members-grid {
    grid-template-columns: repeat(2, minmax(0, 400px));
  }

  .sponsors-past-wrap {
    max-width: 824px;
  }

  .sponsors-past-grid {
    grid-template-columns: repeat(2, minmax(0, 400px));
  }
}

@media (max-width: 1024px) {
  :root { --page-padding: 28px; }
  h1 { font-size: 50px; }
  .hero-grid { grid-template-columns: 1fr; }
  .globe-slot { min-height: 360px; }
  .split { grid-template-columns: 1fr; }
  .sponsors-three-col {
    grid-template-columns: minmax(0, 400px);
    justify-content: center;
  }
  .sponsors-grid--primary {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
  }
  .sponsors-tier-title,
  .sponsor-card {
    width: min(100%, 400px);
  }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .who-layout {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }
  .who-card--left,
  .who-card--center,
  .who-card--bottom-wide {
    grid-column: 1;
    grid-row: auto;
    align-self: auto;
  }
  .who-right-stack {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .who-title,
  .who-intro,
  .who-actions {
    top: 0;
  }
  .who-media--left { height: 460px; }
  .who-media--center,
  .who-media--right-top,
  .who-media--right-bottom { height: 320px; }
  .who-media--wide { height: 320px; }
  .team-member-card {
    width: min(100%, 400px);
    height: auto;
    aspect-ratio: 8 / 9;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  :root { --page-padding: 18px; --section-gap: 70px; }
  h1 { font-size: 42px; }
  .nav { display: none; }
  .header-inner {
    align-items: center;
    min-height: 92px;
  }
  .nav-area {
    left: auto;
    right: var(--page-padding);
    top: 24px;
    transform: none;
    z-index: 2200;
  }
  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-drawer {
    display: block;
    position: fixed;
    inset: 0;
    padding: 106px var(--page-padding) 20px;
    z-index: 2100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .mobile-drawer .glass {
    width: min(100%, 420px);
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 45%, rgba(255,255,255,0.03) 100%);
  }
  .page.menu-open .mobile-drawer {
    opacity: 1;
    pointer-events: auto;
  }
  .footer-box { gap: 14px; }
  .footer-bottom { align-items: flex-start; }
  .footer-social { width: 100%; }
  .who-layout {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }
  .who-card--left,
  .who-card--center,
  .who-card--bottom-wide {
    grid-column: 1;
    grid-row: auto;
  }
  .who-right-stack {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .who-card--center { align-self: auto; }
  .who-title,
  .who-intro,
  .who-actions {
    top: 0;
  }
  .who-media--left,
  .who-media--center,
  .who-media--right-top,
  .who-media--right-bottom,
  .who-media--wide {
    height: 280px;
  }
  .team-members-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .team-member-content {
    left: 12px;
    right: 12px;
    bottom: 12px;
    gap: 4px;
    flex-direction: column;
    align-items: flex-start;
  }

  .team-member-name,
  .team-member-role {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.25;
  }

  .team-member-role {
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .team-page-intro,
  .team-sections {
    max-width: 100%;
  }

  .team-heading-row {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .team-page-intro h1 {
    text-align: center;
  }

  .team-year-control {
    justify-self: center;
  }

  .team-year-menu {
    right: 50%;
    transform: translateX(50%);
  }

  .sponsors-past-wrap {
    max-width: 400px;
  }

  .sponsors-past-grid {
    grid-template-columns: 1fr;
  }

  .sponsors-grid--primary,
  .sponsors-grid--center {
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .sponsors-tier-title,
  .sponsor-card {
    width: min(100%, 400px);
  }

  .status-card {
    width: min(100%, 170px);
    height: 170px;
    padding: 14px 10px;
    margin-left: auto;
    margin-right: auto;
  }

  .status-icon,
  .status-icon img {
    width: 56px;
    height: 56px;
  }

  .status-value {
    font-size: 22px;
    line-height: 1.1;
  }

  .status-top p {
    font-size: 12px;
    line-height: 1.25;
  }

  .embed-box {
    height: 72vh;
    min-height: 480px;
  }

  .newsletter-toolbar {
    align-items: flex-end;
    flex-direction: column;
  }

  .newsletter-meta {
    align-self: stretch;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 36px; }
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sponsors-tier-title,
  .sponsor-card { width: min(100%, 400px); }
  .sponsor-card {
    height: 240px;
  }
  .sponsor-card-back-content {
    padding: 12px;
  }
  .sponsor-card-back-text,
  .sponsor-card-back-link {
    font-size: 12px;
  }
}
