/* =========================================================
   GMO landing — "playful but restrained" brand system
   Tokens mirror references/design-system.md in the gmo-landing skill.
   Colours are estimates from brand references — swap for official HEX.
   ========================================================= */

:root {
  /* Brand colours (estimated from references) */
  --black:      #000000;
  --surface:    #0e0e10;
  --surface-2:  #16161a;
  --line:       #26262c;
  --white:      #ffffff;
  --muted:      #b6b6be;

  --lime:       #c1ff72;   /* primary accent — official GMO green */
  --blue:       #0f2ce8;   /* secondary accent — official GMO blue */
  --periwinkle: #6b7bff;   /* soft blue */
  --pink:       #ff3d9a;   /* rare third accent */

  /* Type */
  --font-head: "Archivo", system-ui, sans-serif;     /* heavy, expanded look via wght 900 */
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-accent: "Caveat", cursive;

  /* Layout */
  --maxw: 1160px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-pill: 999px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw + 13px, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- shared headings ---------- */
.section__title,
.hero__title,
.join__title {
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.02;
  text-transform: uppercase;
  margin: 0;
}
.section__title { font-size: clamp(28px, 4vw, 48px); }

/* ---------- chips / sticker labels ---------- */
.chip {
  display: inline-block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--lime);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  transform: rotate(-2deg);
  margin-bottom: 22px;
}
.chip--blue { background: var(--periwinkle); color: var(--white); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn--lime  { background: var(--lime); color: var(--black); }
.btn--lime:hover  { transform: translateY(-2px); background: #c8ff66; }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--pad);
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__logo { text-decoration: none; display: inline-flex; align-items: center; }
.nav__logo-img { height: 40px; width: auto; display: block; }
.footer__logo-img { height: 34px; width: auto; display: block; }

/* logo wordmark + helix mark */
.logo-word {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  color: var(--white);
  display: inline-flex;
  align-items: center;
}
.logo-word--sm { font-size: 1.4rem; }
.logo-helix { width: 0.62em; height: 1em; display: inline-flex; margin-left: 0.04em; }
.logo-helix svg { width: 100%; height: 100%; }
.helix-strand { color: var(--white); }
.helix-strand--lime { color: var(--lime); }

.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav__links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--muted);
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--lime); }

.nav__actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 0.9rem;
  color: var(--muted); display: flex; gap: 4px; align-items: center;
}
.lang-toggle__opt { transition: color .15s ease; }
.lang-toggle__opt.is-active { color: var(--lime); }
.lang-toggle__sep { color: var(--line); }

.nav__burger { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 12vh, 140px) var(--pad) clamp(60px, 10vh, 120px);
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(34,51,255,0.20), transparent 60%),
    radial-gradient(90% 80% at 0% 110%, rgba(182,249,76,0.12), transparent 55%),
    var(--black);
}
.hero__inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 2; }
.eyebrow {
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--periwinkle);
  margin: 0 0 18px;
}
.hero__title {
  font-size: clamp(64px, 16vw, 200px);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 24px;
}
.hero__title-accent {
  font-family: var(--font-accent);
  text-transform: none;
  font-weight: 700;
  font-size: clamp(26px, 5vw, 56px);
  color: var(--lime);
  letter-spacing: 0;
}
.hero__lead {
  max-width: 620px;
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--muted);
  margin: 24px 0 34px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__invader { position: absolute; z-index: 1; opacity: 0.9; }
.hero__invader--1 { width: 64px; height: 46px; top: 18%; right: 12%; animation: float 5s ease-in-out infinite; }
.hero__invader--2 { width: 48px; height: 35px; bottom: 16%; right: 26%; animation: float 6.5s ease-in-out infinite reverse; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__invader { animation: none; }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 11vh, 110px) var(--pad);
}
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.about__text p { color: var(--muted); margin: 0 0 18px; }

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 26px;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--lime); }
.card h3 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: 1.18rem; margin: 0 0 12px; }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.card__invader { position: absolute; top: 18px; right: 18px; width: 34px; height: 25px; opacity: 0.85; }

/* ---------- events ---------- */
.cards--events .event {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .18s ease, border-color .18s ease;
}
.cards--events .event:hover { transform: translateY(-6px); border-color: var(--periwinkle); }
.event__kicker {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--periwinkle);
}
.event__name {
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--lime);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.05;
  margin: 0 0 10px;
}
.event__meta { color: var(--periwinkle); font-size: 0.85rem; margin: 0 0 10px; font-weight: 500; }
.event p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.section__lead { color: var(--muted); max-width: 640px; margin: 8px 0 0; }
.section__hint { font-size: 0.8rem; color: #6a6a72; margin-top: 24px; }

/* =========================================================
   TEAM
   ========================================================= */
.team-slider { position: relative; margin-top: 36px; }
.team-track {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.team-track::-webkit-scrollbar { height: 6px; }
.team-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.team-track .member {
  flex: 0 0 clamp(230px, 72%, 270px);
  scroll-snap-align: start;
}
.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform .18s ease, border-color .18s ease;
}
.member:hover { transform: translateY(-6px); border-color: var(--lime); }
.member__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
  display: block;
  background: var(--surface-2);
}
.member h3 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: 1.05rem; margin: 0 0 4px; }
.member__role { color: var(--lime); font-weight: 600; font-size: 0.85rem; margin: 0 0 10px; }
.member__bio { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* =========================================================
   GALLERY / SLIDER
   ========================================================= */
.slider { position: relative; margin: 36px auto 0; max-width: 600px; }
.slider__viewport { overflow: hidden; border-radius: var(--radius); }
.slider__track {
  display: flex;
  transition: transform .4s ease;
}
@media (prefers-reduced-motion: reduce) { .slider__track { transition: none; } }
.slide {
  flex: 0 0 100%;
  margin: 0;
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--surface-2);
}
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(0,0,0,0.62);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--lime);
  color: var(--black);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform .15s ease, background .15s ease;
}
.slider__btn:hover { background: #c8ff66; }
.slider__btn:active { transform: translateY(-50%) scale(0.94); }
.slider__btn--prev { left: 12px; }
.slider__btn--next { right: 12px; }
/* team arrows sit over the photos (cards vary in height), not the name text */
.team-slider .slider__btn { top: 130px; }

.slider__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.slider__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: background .15s ease, transform .15s ease;
}
.slider__dot.is-active { background: var(--lime); transform: scale(1.25); }

.event__link {
  display: inline-block;
  margin-top: 12px;
  color: var(--lime);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.event__link:hover { text-decoration: underline; }
.event__flag { display: inline-block; margin-top: 12px; font-size: 0.8rem; color: #6a6a72; }

/* =========================================================
   STATS
   ========================================================= */
.stats {
  background: var(--lime);
  color: var(--black);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(28px, 7vw, 90px);
  padding: clamp(40px, 7vh, 70px) var(--pad);
  position: relative;
}
.stats__item { text-align: center; }
.stats__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
}
.stats__label { font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; }
.stats__note {
  position: absolute; bottom: 8px; right: 16px;
  font-size: 0.7rem; opacity: 0.55; margin: 0;
}

/* =========================================================
   JOIN band
   ========================================================= */
.join {
  position: relative;
  overflow: hidden;
  text-align: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 10vh, 110px) var(--pad);
}
.join__title { font-size: clamp(34px, 6vw, 76px); }
.join__lead { max-width: 560px; margin: 22px auto 32px; color: var(--muted); font-size: clamp(16px,1.4vw,19px); }
.join__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.join__invader { position: absolute; top: 28px; left: 8%; width: 44px; height: 32px; opacity: 0.55; }

/* =========================================================
   CONTACTS + FORM
   ========================================================= */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.contacts__info p { color: var(--muted); }
.contacts__list { list-style: none; padding: 0; margin: 22px 0 0; }
.contacts__list li { margin-bottom: 10px; }
.contacts__list a { color: var(--lime); text-decoration: none; }
.contacts__list a:hover { text-decoration: underline; }
.contacts__hint { font-size: 0.8rem; color: #6a6a72; margin-top: 18px; }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.form__field { display: block; margin-bottom: 18px; }
.form__field span { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 7px; }
.form__field input,
.form__field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color .15s ease;
}
.form__field input:focus,
.form__field textarea:focus { outline: none; border-color: var(--lime); }
.form__submit { width: 100%; margin-top: 4px; }
.form__note { font-size: 0.78rem; color: #6a6a72; margin: 12px 0 0; text-align: center; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand p { color: var(--muted); font-size: 0.9rem; margin: 0; max-width: 220px; }
.footer__meta { text-align: right; color: var(--muted); font-size: 0.85rem; }
.footer__meta p { margin: 2px 0; }

/* =========================================================
   PIXEL INVADER (Space-Invaders style) — drawn via CSS mask
   Recolour with --inv. Shape kept in one SVG data-URI mask.
   ========================================================= */
.invader {
  display: inline-block;
  --inv: var(--lime);
  background-color: var(--inv);
  -webkit-mask: var(--invader-mask) center / contain no-repeat;
          mask: var(--invader-mask) center / contain no-repeat;
}
.invader--lime { --inv: var(--lime); }
.invader--blue { --inv: var(--blue); }
.invader--pink { --inv: var(--pink); }
.invader--white { --inv: var(--white); }

:root {
  /* classic 11x8 invader, encoded as an SVG mask */
  --invader-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 8'%3E%3Cg fill='%23000'%3E%3Crect x='2' y='0' width='1' height='1'/%3E%3Crect x='8' y='0' width='1' height='1'/%3E%3Crect x='3' y='1' width='1' height='1'/%3E%3Crect x='7' y='1' width='1' height='1'/%3E%3Crect x='2' y='2' width='7' height='1'/%3E%3Crect x='1' y='3' width='2' height='1'/%3E%3Crect x='4' y='3' width='3' height='1'/%3E%3Crect x='8' y='3' width='2' height='1'/%3E%3Crect x='0' y='4' width='11' height='1'/%3E%3Crect x='0' y='5' width='1' height='1'/%3E%3Crect x='2' y='5' width='7' height='1'/%3E%3Crect x='10' y='5' width='1' height='1'/%3E%3Crect x='0' y='6' width='1' height='1'/%3E%3Crect x='2' y='6' width='1' height='1'/%3E%3Crect x='8' y='6' width='1' height='1'/%3E%3Crect x='10' y='6' width='1' height='1'/%3E%3Crect x='3' y='7' width='2' height='1'/%3E%3Crect x='6' y='7' width='2' height='1'/%3E%3C/g%3E%3C/svg%3E");
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .about__grid,
  .contacts__grid { grid-template-columns: 1fr; }

  .nav__links {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 18px;
    margin: 0;
    transform: translateY(-130%);
    transition: transform .25s ease;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }

  .nav__cta { display: none; }
  .nav__burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav__burger span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
