
/* ==========================================================
   KD HERSTACKS
   Unified Stylesheet
   Theme: Black / Pink / Burgundy
   Typography: JetBrains Mono / Space Mono
   ========================================================== */

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


/* ==========================================================
   01. DESIGN TOKENS
   ========================================================== */

:root {
  --bg: #080808;
  --panel: #101010;
  --panel2: #151515;

  --pink: #ff4db8;
  --pink2: #ff91d2;
  --burg: #9e163d;

  --text: #f7f3f6;
  --muted: #aaa2a8;
  --line: #2a2529;

  --font-body: "JetBrains Mono", Consolas, monospace;
  --font-heading: "Space Mono", "JetBrains Mono", monospace;

  --max: 1180px;
  --ease: cubic-bezier(.2, .75, .2, 1);
}


/* ==========================================================
   02. RESET & GLOBAL
   ========================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  scrollbar-color: #81304e #0a090a;
  scrollbar-width: thin;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

p {
  margin: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

::selection {
  background: var(--pink);
  color: #080808;
}

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 4px;
}


/* ==========================================================
   03. SCROLLBAR
   ========================================================== */

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: #0a090a;
}

::-webkit-scrollbar-thumb {
  background: #81304e;
  border: 2px solid #0a090a;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--pink);
}


/* ==========================================================
   04. TYPOGRAPHY
   ========================================================== */

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.08;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(3.4rem, 8vw, 8rem);
  margin: 20px 0;
}

h1 span {
  display: block;
  color: var(--pink);
}

h2 {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 2rem);
}

.kicker,
.num,
.event-label,
.year,
.role,
.status,
.loader-meta,
.loader-status {
  font: 700 11px/1.5 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.kicker,
.num {
  color: var(--pink);
}

.hero-copy,
.section-intro {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  line-height: 1.85;
}


/* ==========================================================
   05. HEADER & NAVIGATION
   ========================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 8, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand img {
  width: 150px;
  height: 58px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 20px);
  font: 700 11px/1.3 var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav-links > a {
  white-space: nowrap;
}

.nav-links > a,
.lang a {
  opacity: .72;
  transition: color .2s ease, opacity .2s ease;
}

.nav-links > a:hover,
.lang a:hover,
.lang .active {
  opacity: 1;
  color: var(--pink);
}

.nav-links > a.nav-cta {
  color: var(--pink);
  opacity: 1;
}

.lang {
  display: flex;
  gap: 9px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.menu {
  display: none;
  width: 46px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 23px;
}


/* ==========================================================
   06. BUTTONS
   ========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 48px;
  padding: 13px 20px;

  background: var(--pink);
  color: #0a0609;

  font: 800 11px/1.3 var(--font-body);
  letter-spacing: .06em;
  text-align: center;

  border: 1px solid var(--pink);
  border-radius: 0;

  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );

  transition:
    transform .2s ease,
    filter .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.btn.secondary {
  background: transparent;
  color: var(--pink);
}

.btn.burg {
  background: var(--burg);
  border-color: var(--burg);
  color: #fff;
}


/* ==========================================================
   07. HERO
   ========================================================== */

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;

  position: relative;
  overflow: hidden;

  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      transparent 49.9%,
      rgba(255, 77, 184, .08) 50%,
      transparent 50.1%
    ),
    linear-gradient(
      rgba(255, 255, 255, .025) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, .025) 1px,
      transparent 1px
    );

  background-size:
    100% 100%,
    44px 44px,
    44px 44px;

  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: center;
  padding: 90px 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-logo {
  display: block;
  width: min(100%, 520px);
  height: 250px;
  object-fit: contain;
  margin: 25px auto 0;
}


/* ==========================================================
   08. HERO TERMINAL
   ========================================================== */

.terminal {
  position: relative;
  padding: 24px;

  background: #0c0c0c;
  border: 1px solid #343034;
  box-shadow: 18px 18px 0 rgba(255, 77, 184, .08);

  font: 600 12px/2 var(--font-body);
}

.terminal::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed #252125;
  pointer-events: none;
}

.terminal-top {
  display: flex;
  gap: 7px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #292529;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4b464b;
}

.pink {
  color: var(--pink);
}


/* ==========================================================
   09. SECTIONS & CARDS
   ========================================================== */

.section {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: end;
  margin-bottom: 55px;
}

.section-head .num {
  margin-bottom: 15px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  position: relative;
  min-height: 250px;
  padding: 30px;
  background: var(--panel);
}

.card-index {
  margin-bottom: 55px;
  color: var(--pink);
  font: 700 11px var(--font-body);
}

.card p,
.milestone p,
.notice p,
.credential p,
.skill-box p {
  margin-top: 14px;
  color: var(--muted);
}

.event-box,
.notice,
.profile-card,
.milestone,
.credential,
.skill-box,
.guild-card,
.community-panel {
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
}


/* ==========================================================
   10. COMMUNITY
   ========================================================== */

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.community-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 42px);
}

.community-panel .num {
  margin-bottom: 22px;
}

.community-panel h3 {
  margin-bottom: 18px;
}

.community-panel p {
  margin-bottom: 26px;
  color: var(--muted);
}

.community-panel .btn {
  margin-top: auto;
  align-self: flex-start;
}


/* ==========================================================
   11. EVENTS & COUNTDOWN
   ========================================================== */

.live {
  background: linear-gradient(180deg, #0a090a, #0e090d);
}

.live-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 18px;
}

.event-date {
  margin: 18px 0 30px;
  font: 800 clamp(1.1rem, 2.4vw, 1.8rem)/1.2 var(--font-body);
}

.event-note {
  color: var(--muted);
  font: 700 11px/1.6 var(--font-body);
  letter-spacing: .07em;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.time {
  padding: 18px 10px;
  text-align: center;
  border: 1px solid var(--line);
}

.time strong {
  display: block;
  color: var(--pink);
  font: 800 clamp(2rem, 5vw, 4rem)/1 var(--font-body);
}

.time small {
  color: var(--muted);
  font: 700 9px var(--font-body);
  letter-spacing: .1em;
}

.status {
  margin-top: 18px;
  color: var(--muted);
}

.status b {
  color: var(--pink);
}


/* ==========================================================
   12. PROFILE & TIMELINE
   ========================================================== */

.profile {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 18px;
}

.profile-card {
  position: sticky;
  top: 105px;
  height: max-content;
}

.avatar {
  display: grid;
  place-items: center;

  width: 74px;
  height: 74px;
  margin-bottom: 25px;

  background: var(--pink);
  color: #0a0609;

  font: 800 24px var(--font-body);

  clip-path: polygon(
    12px 0,
    100% 0,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    0 100%,
    0 12px
  );
}

.role {
  margin-top: 14px;
  color: var(--pink);
}

.bio {
  margin-top: 18px;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 12px;
}

.milestone {
  border-left: 3px solid var(--pink);
}

.year {
  margin-bottom: 12px;
  color: var(--pink);
}


/* ==========================================================
   13. CREDENTIALS & SKILLS
   ========================================================== */

.credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.credential {
  min-height: 205px;
}

.credential .badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 8px;

  border: 1px solid #473b44;
  color: var(--pink);

  font: 700 9px var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.credential h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.credential .issuer {
  margin-top: 10px;
  color: #ddd;
  font: 700 10px/1.5 var(--font-body);
  text-transform: uppercase;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.skill-box {
  min-height: 150px;
}

.skill-box h3 {
  font-size: 1.1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.tag {
  padding: 6px 9px;
  border: 1px solid #373137;
  color: #d8d1d7;
  font: 700 10px var(--font-body);
}

.credentials-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: .9rem;
}


/* ==========================================================
   14. GUILDS
   ========================================================== */

.guilds {
  background: #090909;
}

.guild-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guild-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.guild-card.herstack {
  border-color: rgba(255, 77, 184, .35);
}

.guild-card.herops {
  border-color: rgba(158, 22, 61, .55);
}

.guild-card .guild-label {
  color: var(--pink);
  font: 700 10px var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.guild-card.herops .guild-label {
  color: #d74d72;
}

.guild-card h3 {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.guild-card p {
  max-width: 560px;
  color: var(--muted);
}

.guild-card .btn {
  margin-top: 24px;
}

.guild-meta {
  position: absolute;
  top: 20px;
  right: 22px;
  color: #625b61;
  font: 700 10px var(--font-body);
}


/* ==========================================================
   15. HEROPS
   ========================================================== */

.ops {
  background: #10080b;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 70px;
}

.ops-visual {
  display: grid;
  place-items: center;
  min-height: 390px;
  background: #090607;
  border: 1px solid rgba(158, 22, 61, .35);
}

.ops-visual img {
  width: min(90%, 500px);
  height: 300px;
  object-fit: contain;
}

.ops-copy h3 {
  margin: 18px 0;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
}

.ops-copy p {
  max-width: 650px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 1.05rem;
}


/* ==========================================================
   16. CYBERLABS
   ========================================================== */

.cyberlab-feature {
  position: relative;
  overflow: hidden;
}

.cyberlab-feature::before {
  content: "";
  position: absolute;
  inset: 0;

  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 42px,
    rgba(255, 77, 184, .035) 43px
  );

  pointer-events: none;
}

.lab-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.lab-feature-grid .community-panel {
  border-color: #553043;
}

.member-labs-shortcut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;

  padding: 25px 30px;
  margin-bottom: 24px;

  background: #130b12;
  border: 1px solid #7c3158;
  box-shadow: inset 3px 0 0 var(--pink);
}

.member-labs-shortcut strong {
  display: block;
  margin: 9px 0;
  font-size: clamp(1rem, 2vw, 1.4rem);
}

.member-labs-shortcut p {
  color: var(--muted);
  font-size: .85rem;
}

.member-labs-shortcut .btn {
  white-space: nowrap;
}


/* ==========================================================
   17. OUR PARTNERS — ANIMATED MARQUEE
   ========================================================== */

.partners {
  overflow: hidden;
  background: #09080a;
  border-block: 1px solid var(--line);
}

.partner-marquee {
  position: relative;
  width: 100%;
  margin-top: 42px;
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.partner-track {
  display: flex;
  align-items: center;
  width: max-content;

  animation: partners-scroll 33s linear infinite;
  will-change: transform;
}

.partner-marquee:hover .partner-track,
.partner-marquee:focus-within .partner-track {
  animation-play-state: paused;
}

.partner-item {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;

  width: clamp(230px, 26vw, 365px);
  height: 190px;
  gap: 16px;
  padding: 20px 35px;

  border-right: 1px solid #34222d;
}

.partner-item img {
  width: 230px;
  max-width: 100%;
  height: 96px;
  object-fit: contain;

  transition:
    filter .3s ease,
    transform .3s ease;
}

.partner-item span {
  color: #aaa2a8;
  font: 700 10px/1.4 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}

.partner-item:hover img {
  filter: drop-shadow(0 0 13px rgba(255, 77, 184, .55));
  animation: partner-pulse 2.1s ease-in-out infinite;
}


/* ==========================================================
   18. FAQ
   ========================================================== */

.faq {
  display: grid;
  gap: 8px;
}

.faq details {
  padding: 0 24px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.faq summary {
  padding: 23px 0;
  cursor: pointer;
  list-style: none;

  font: 800 13px/1.4 var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--pink);
  font-size: 20px;
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  padding-bottom: 24px;
  color: var(--muted);
}


/* ==========================================================
   19. INTERACTIVE TERMINAL
   ========================================================== */

.terminal-section {
  padding-top: 95px;
  background: #070707;
}

.terminal-section .section-intro b {
  color: var(--pink);
}

.cyber-terminal {
  overflow: hidden;
  background: #050505;
  border: 1px solid #393239;
  box-shadow: 12px 12px 0 rgba(255, 77, 184, .07);
}

.cyber-terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  padding: 13px 16px;
  background: #0b0b0b;
  border-bottom: 1px solid #292429;

  font: 700 10px var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.terminal-window-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #817880;
}

.terminal-window-title span:last-child {
  margin-left: 7px;
  color: #d4cdd3;
}

.terminal-online {
  color: var(--pink);
}

.terminal-output {
  min-height: 300px;
  max-height: 410px;
  overflow: auto;
  padding: 20px;

  color: #d9d2d8;
  font: 600 12px/1.75 var(--font-body);
  scrollbar-width: thin;
}

.terminal-line {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.terminal-line.command {
  color: #fff;
}

.terminal-line.command .cmd-prompt {
  color: var(--pink);
}

.terminal-line.info {
  color: var(--muted);
}

.terminal-line.success {
  color: var(--pink2);
}

.terminal-line.error {
  color: #e77;
}

.terminal-line a {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.terminal-command-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;

  background: #090909;
  border-top: 1px solid #292429;
  border-bottom: 1px solid #292429;
}

.prompt-symbol {
  color: var(--pink);
  font: 700 12px var(--font-body);
  white-space: nowrap;
}

.terminal-input {
  min-width: 0;
  flex: 1;

  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;

  font: 600 12px var(--font-body);
}

.terminal-input::placeholder {
  color: #5e565c;
}

.terminal-input:focus {
  box-shadow: 0 1px 0 var(--pink);
}

.terminal-run {
  padding: 10px 14px;
  background: var(--pink);
  border: 1px solid var(--pink);
  color: #080808;

  font: 800 10px var(--font-body);
  letter-spacing: .08em;

  clip-path: polygon(
    7px 0,
    100% 0,
    100% calc(100% - 7px),
    calc(100% - 7px) 100%,
    0 100%,
    0 7px
  );
}

.terminal-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 14px 16px;
}

.terminal-quick button {
  padding: 8px 10px;
  background: #0d0d0d;
  border: 1px solid #363036;
  color: #cfc8ce;

  font: 700 10px var(--font-body);

  clip-path: polygon(
    5px 0,
    100% 0,
    100% calc(100% - 5px),
    calc(100% - 5px) 100%,
    0 100%,
    0 5px
  );
}

.terminal-quick button:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.terminal-hint {
  padding: 0 16px 16px;
  color: #5f585e;
  font: 600 10px/1.5 var(--font-body);
}

.terminal-hint span {
  color: #8d858b;
}


/* ==========================================================
   20. PRELOADER
   ========================================================== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: grid;
  place-items: center;

  background: #050505;

  transition:
    opacity .65s var(--ease),
    visibility .65s;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader {
  width: min(520px, calc(100% - 40px));
  text-align: center;
}

.loader-logo {
  width: min(270px, 70vw);
  height: 120px;
  object-fit: contain;
}

.loader-meta {
  display: flex;
  justify-content: space-between;
  margin: 15px 0 8px;
  color: #8d858b;
}

.loader-percent {
  margin-bottom: 15px;
  color: var(--pink);
  font: 800 clamp(3.2rem, 12vw, 6rem)/1 var(--font-body);
}

.loader-track {
  height: 5px;
  overflow: hidden;
  background: #1b171a;
  border: 1px solid #30292e;
}

.loader-bar {
  width: 0;
  height: 100%;
  background: var(--pink);
  transition: width .08s linear;
}

.loader-status {
  margin-top: 13px;
  color: #5d565c;
}


/* ==========================================================
   21. SCROLL REVEAL & ANIMATIONS
   ========================================================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);

  transition:
    opacity .7s var(--ease),
    transform .7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes partners-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes partner-pulse {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}


/* ==========================================================
   22. FOOTER
   ========================================================== */

footer {
  padding: 28px 0;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 15px;

  color: #6d656b;
  font: 700 10px var(--font-body);
  letter-spacing: .1em;
}


/* ==========================================================
   23. RESPONSIVE — TABLET
   ========================================================== */

@media (max-width: 900px) {

  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;

    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    max-height: calc(100dvh - 76px);
    overflow-y: auto;

    padding: 20px;
    background: #080808;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > a {
    padding: 15px 8px;
    border-bottom: 1px solid #1e1b1e;
  }

  .lang {
    padding: 15px 8px;
    border-left: 0;
  }

  .menu {
    display: block;
  }

  .hero-grid,
  .section-head,
  .live-grid,
  .profile,
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 35px;
    padding: 65px 0;
  }

  .hero-art {
    order: -1;
  }

  .hero-logo {
    height: 190px;
  }

  .section {
    padding: 85px 0;
  }

  .section-head {
    gap: 22px;
    margin-bottom: 35px;
  }

  .cards,
  .guild-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    position: relative;
    top: auto;
  }

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

  .highlights,
  .community-grid,
  .lab-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-grid {
    gap: 30px;
  }

  .ops-visual {
    min-height: 300px;
  }

  .foot {
    flex-direction: column;
  }
}


/* ==========================================================
   24. RESPONSIVE — MOBILE
   ========================================================== */

@media (max-width: 700px) {

  .community-grid,
  .lab-feature-grid {
    grid-template-columns: 1fr;
  }

  .partner-item {
    width: 235px;
    height: 160px;
  }

  .partner-item img {
    height: 77px;
  }

  .partner-track {
    animation-duration: 27s;
  }

  .member-labs-shortcut {
    padding: 20px;
  }

  .member-labs-shortcut .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {

  .wrap {
    width: min(var(--max), calc(100% - 26px));
  }

  .nav {
    min-height: 68px;
  }

  .nav-links {
    top: 68px;
    max-height: calc(100dvh - 68px);
  }

  .brand img {
    width: 120px;
    height: 52px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 55px 0 70px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  h2 {
    font-size: clamp(2.4rem, 12vw, 4.1rem);
  }

  .hero-logo {
    height: 150px;
  }

  .terminal {
    padding: 18px;
    font-size: 10px;
    overflow: hidden;
  }

  .terminal div {
    overflow-wrap: anywhere;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 70px 0;
  }

  .card,
  .event-box,
  .notice,
  .profile-card,
  .milestone,
  .credential,
  .skill-box,
  .guild-card {
    padding: 22px;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .time strong {
    font-size: 2.5rem;
  }

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

  .ops-copy h3 {
    font-size: 3rem;
  }

  .ops-visual img {
    height: 220px;
  }

  .foot {
    font-size: 9px;
  }

  .loader-meta {
    font-size: 9px;
  }

  .terminal-output {
    min-height: 260px;
    padding: 15px;
    font-size: 11px;
  }

  .terminal-command-row {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .prompt-symbol {
    width: 100%;
  }

  .terminal-input {
    width: 100%;
    flex: 1 1 calc(100% - 60px);
    min-height: 40px;
  }

  .terminal-run {
    min-height: 40px;
  }

  .terminal-quick button {
    flex: 1 1 auto;
  }
}


/* ==========================================================
   25. ACCESSIBILITY
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .preloader,
  .btn,
  .terminal-quick button,
  .terminal-run {
    transition: none;
  }

  .partner-track,
  .partner-item:hover img {
    animation: none !important;
  }

  .partner-marquee {
    overflow-x: auto;
  }
}
