/* ============================================
   GRUPO MEGA V2 — "O Bastidor"
   Syne · Source Serif 4 · DM Mono
   Dark-dominant + Warm parchment
   ============================================ */

/* ---------- TOKENS ---------- */
:root {
  --dark:         #0C0C0C;
  --dark-up:      #161616;
  --dark-subtle:  #1E1E1E;
  --warm:         #F5F0E8;
  --cream:        #EDE7DB;
  --accent:       #00E89D;
  --accent-dim:   rgba(0,232,157,0.12);
  --accent-text:  #00C584;
  --accent-glow:  rgba(0,232,157,0.06);
  --text-light:   #E8E8E8;
  --text-muted:   #888;
  --text-dim:     #555;
  --text-dark:    #1A1A1A;
  --line:         rgba(255,255,255,0.07);
  --line-warm:    rgba(0,0,0,0.08);

  --font-display: 'Syne', sans-serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-mono:    'DM Mono', monospace;

  --ease-reveal:  cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --container:    1400px;
  --pad:          clamp(20px, 4vw, 48px);
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-font-smoothing: antialiased;
}
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-light);
  background: var(--dark);
  overflow-x: hidden;
}
img, svg { display:block; max-width:100%; }
a { color:inherit; text-decoration:none; }
button { cursor:pointer; border:none; background:none; font-family:inherit; }
input, select, textarea { font-family:var(--font-body); font-size:16px; border:none; outline:none; background:none; }
::selection { background:var(--accent-dim); color:var(--accent); }


/* ---------- MEGA GRID PATTERN ---------- */
.hero__grid-bg,
.machine__grid-bg,
.invite__grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 80%);
}

/* Dots at intersections */
.hero__grid-bg::after,
.machine__grid-bg::after,
.invite__grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle 1.5px at center, rgba(0,232,157,0.15) 0%, transparent 100%);
  background-size: 80px 80px;
  background-position: -0.5px -0.5px;
}


/* ---------- REVEAL MASKS ---------- */
.reveal-mask {
  -webkit-clip-path: inset(0 100% 0 0);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s var(--ease-reveal), -webkit-clip-path 0.9s var(--ease-reveal);
}
.reveal-mask--right {
  -webkit-clip-path: inset(0 0 0 100%);
  clip-path: inset(0 0 0 100%);
}
.reveal-mask--up {
  -webkit-clip-path: inset(100% 0 0 0);
  clip-path: inset(100% 0 0 0);
}
.reveal-mask--down {
  -webkit-clip-path: inset(0 0 100% 0);
  clip-path: inset(0 0 100% 0);
}
.reveal-mask.active {
  -webkit-clip-path: inset(0 0 0 0);
  clip-path: inset(0 0 0 0);
}
.reveal-mask--delay1 { transition-delay: 0.15s; }
.reveal-mask--delay2 { transition-delay: 0.3s; }
.reveal-mask--delay3 { transition-delay: 0.45s; }
.reveal-mask--delay4 { transition-delay: 0.6s; }
.reveal-mask--delay5 { transition-delay: 0.75s; }


/* ---------- SECTION LABEL ---------- */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 24px;
}
.section-label--light { color: var(--accent-text); }


/* ---------- BUTTONS ---------- */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 14px 32px;
  border-radius: 0;
  transition: all 0.4s var(--ease-out);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--dark);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 14px 0;
  transition: color 0.3s;
}
.btn-ghost:hover { color: var(--text-light); }


/* ============================================
   NAVBAR
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.4s var(--ease-out);
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(12,12,12,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-light);
  z-index: 101;
}
.nav__links {
  display: flex;
  gap: 32px;
}
.nav__link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav__link:hover { color: var(--text-light); }
.nav__right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__lang {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}
.nav__lang:hover { background: rgba(255,255,255,0.05); }
.nav__lang-opt { opacity: 0.4; transition: opacity 0.2s; font-style: normal; }
.nav__lang-opt--active { opacity: 1; }
.nav__lang-sep { color: var(--text-dim); margin: 0 2px; font-size: 11px; font-family: var(--font-mono); }
.nav__cta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(0,232,157,0.3);
  padding: 10px 20px;
  border-radius: 0;
  transition: all 0.3s var(--ease-out);
}
.nav__cta:hover {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 24px;
  z-index: 101;
}
.nav__burger span {
  height: 1px;
  background: var(--text-light);
  transition: all 0.4s var(--ease-out);
  transform-origin: center;
}
.nav__burger.active span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger.active span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile menu */
.mob-menu {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.mob-menu.open { opacity: 1; pointer-events: all; }
.mob-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.mob-menu__link {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-light);
}
.mob-menu__cta { margin-top: 20px; padding: 14px 32px; font-size: 13px; }


/* ============================================
   CHAPTER 0: HERO
   ============================================ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 100px;
}
.hero__content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-light);
  margin-bottom: 32px;
}
.hero__accent {
  color: var(--accent);
}
.hero__line {
  width: 80px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 24px;
}
.hero__sub {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 40px;
}
.hero__ctas {
  display: flex;
  gap: 24px;
  align-items: center;
}

/* Data Cloud */
.hero__right {
  position: relative;
  height: 100%;
  min-height: 400px;
}
.hero__data-cloud {
  position: relative;
  width: 100%;
  height: 100%;
}
.dc {
  position: absolute;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}
.dc--1 { font-size: clamp(100px, 14vw, 180px); top: 5%; left: 10%; opacity: 0.25; }
.dc--2 { font-size: clamp(48px, 6vw, 72px); top: 40%; right: 5%; opacity: 0.15; }
.dc--3 { font-size: clamp(40px, 5vw, 60px); bottom: 25%; left: 5%; opacity: 0.12; }
.dc--4 { font-size: clamp(60px, 8vw, 100px); bottom: 5%; right: 20%; opacity: 0.2; }
.dc--5 { font-size: clamp(56px, 7vw, 80px); top: 15%; right: 30%; opacity: 0.1; }
.dc-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.4;
}
.dc-label--1 { top: calc(5% + clamp(100px,14vw,180px)); left: 10%; }
.dc-label--2 { top: calc(40% + clamp(48px,6vw,72px)); right: 5%; }
.dc-label--3 { bottom: calc(25% - 20px); left: 5%; }
.dc-label--4 { bottom: calc(5% + clamp(60px,8vw,100px)); right: 20%; }
.dc-label--5 { top: calc(15% + clamp(56px,7vw,80px)); right: 30%; }

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 80px;
  right: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  z-index: 1;
  writing-mode: vertical-rl;
}
.hero__scroll svg { writing-mode: horizontal-tb; animation: scrollBounce 2s ease-in-out infinite; }
@keyframes scrollBounce {
  0%,100% { transform:translateY(0); }
  50% { transform:translateY(6px); }
}


/* ============================================
   CHAPTER 1: PROOF (numbers — dashboard panel)
   ============================================ */
.proof {
  background: var(--warm);
  color: var(--text-dark);
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
}
.proof__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Header: label + extending line */
.proof__header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}
.proof__header .section-label {
  color: var(--text-dim);
  margin-bottom: 0;
  flex-shrink: 0;
}
.proof__hr {
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,0.1);
}

/* Modules grid — horizontal panel */
.proof__modules {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.proof__module {
  padding: 32px 28px;
  border-right: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}
.proof__module:first-child { padding-left: 0; }
.proof__module:last-child { border-right: none; padding-right: 0; }

.proof__num {
  font-family: var(--font-display);
  font-size: clamp(48px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--text-dark);
}
.proof__unit {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-top: 12px;
}
.proof__desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 10px;
  line-height: 1.5;
}


/* ============================================
   CHAPTER 2: MACHINE (operation)
   ============================================ */
.machine {
  background: var(--dark);
  padding: clamp(100px, 12vw, 160px) 0;
  position: relative;
}
.machine__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
  z-index: 1;
}
.machine__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-light);
  margin-bottom: 64px;
  max-width: 600px;
}

/* Pipeline */
.pipeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 80px;
  padding: 32px 0;
}
.pipeline__node {
  flex: 1;
  text-align: center;
  padding: 24px 16px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  position: relative;
}
.pipeline__node:hover,
.pipeline__node.active {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.pipeline__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.pipeline__icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}
.pipeline__name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}
.pipeline__node:hover .pipeline__name,
.pipeline__node.active .pipeline__name { color: var(--accent); }

.pipeline__detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), margin 0.5s var(--ease-out);
  margin-top: 0;
}
.pipeline__node.active .pipeline__detail {
  max-height: 120px;
  margin-top: 16px;
}
.pipeline__detail p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.pipeline__connector {
  display: flex;
  align-items: center;
  padding: 0;
  width: 40px;
  flex-shrink: 0;
  justify-content: center;
  padding-top: 40px;
}
.pipeline__connector span {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--line), var(--accent), var(--line));
}

/* Specialties */
.specs { border-top: 1px solid var(--line); padding-top: 48px; }
.specs__label { margin-bottom: 32px; }
.specs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.specs__item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.specs__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  width: 28px;
}
.specs__item h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-light);
  margin-bottom: 4px;
}
.specs__item p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}


/* ============================================
   CHAPTER 3: PEOPLE
   ============================================ */
.people {
  background: var(--warm);
  color: var(--text-dark);
  padding: clamp(100px, 12vw, 160px) 0;
}
.people__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Quote */
.quote { text-align: center; max-width: 800px; margin: 0 auto 64px; }
.quote__mark {
  font-family: var(--font-body);
  font-size: 80px;
  line-height: 0.5;
  color: var(--text-dark);
  opacity: 0.15;
}
.quote__text {
  font-family: var(--font-body);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-dark);
  margin: 16px 0 32px;
}
.quote__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.quote__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
}
.quote__name {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}
.quote__role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.quote__divider {
  width: 40px;
  height: 1px;
  background: var(--line-warm);
  margin: 0 auto 64px;
}

/* Culture */
.culture {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.culture .section-label { color: var(--text-dim); }
.culture__values { display: flex; flex-direction: column; gap: 32px; }
.culture__value h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.culture__value p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Team photo */
.culture__visuals {
  display: flex;
  align-items: flex-start;
}
.culture__photo--real {
  margin: 0;
  overflow: hidden;
}
.culture__photo--real img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 60%;
  display: block;
  border-radius: 12px;
}
.culture__photo--real figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-top: 12px;
}


/* ============================================
   CHAPTER 4: INVITE (careers)
   ============================================ */
.invite {
  background: var(--dark);
  padding: clamp(100px, 12vw, 160px) 0;
  position: relative;
}
.invite__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
  z-index: 1;
}
.invite__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.05;
}
.invite__sub {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 56px;
  max-width: 480px;
}

.invite__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Jobs Accordion */
.jobs { display: flex; flex-direction: column; }
.job {
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.job:last-child { border-bottom: 1px solid var(--line); }
.job__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.job__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-light);
  transition: color 0.3s;
}
.job:hover .job__title { color: var(--accent); }
.job__meta { display: flex; align-items: center; gap: 16px; }
.job__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  border: 1px solid var(--accent-dim);
  padding: 4px 10px;
}
.job__badge--remote { color: #B18CFF; border-color: rgba(177,140,255,0.2); }
.job__toggle {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-dim);
  transition: transform 0.4s var(--ease-out), color 0.3s;
  width: 24px;
  text-align: center;
}
.job.open .job__toggle { transform: rotate(45deg); color: var(--accent); }
.job__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), padding 0.5s var(--ease-out);
  padding: 0;
}
.job.open .job__body {
  max-height: 200px;
  padding: 0 0 20px;
}
.job__body p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Jobs section label */
.jobs__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* Talent Pool — collapsible */
.talent-pool {
  margin-top: 8px;
}
.talent-pool__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: color 0.3s;
}
.talent-pool__toggle:hover { color: var(--text-muted); }
.talent-pool__arrow {
  font-size: 10px;
  transition: transform 0.4s var(--ease-out);
}
.talent-pool.closed .talent-pool__arrow { transform: rotate(-90deg); }
.talent-pool__body {
  max-height: 600px;
  overflow: hidden;
  transition: max-height 0.6s var(--ease-out);
}
.talent-pool.closed .talent-pool__body {
  max-height: 0;
}

/* Application Form — terminal style */
.apply {
  background: var(--dark-up);
  border: 1px solid var(--line);
  padding: 40px;
}
.apply__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-light);
  font-size: 16px;
  background: transparent;
  transition: border-color 0.3s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--accent);
}
.field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23555' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}
.field textarea { resize: vertical; min-height: 80px; }

.apply__submit {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--accent);
  padding: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  margin-top: 8px;
}
.apply__submit:hover {
  background: var(--accent-text);
  transform: translateY(-1px);
}
.apply__success {
  text-align: center;
  padding: 48px 24px;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.apply__success svg {
  margin: 0 auto;
}
.apply__success h4 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.02em;
}
.apply__success p {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  padding: 0 0 32px;
}
.footer__accent-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
  margin-bottom: 48px;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-light);
  display: block;
  margin-bottom: 8px;
}
.footer__tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.footer__heading {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 16px;
  display: block;
}
.footer__col a,
.footer__col span {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--text-light); }
.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px var(--pad) 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}


/* ============================================
   MEGA BAR (persistent HUD)
   ============================================ */
.megabar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: 44px;
  background: var(--dark);
  border-top: 1px solid rgba(0,232,157,0.15);
  display: flex;
  align-items: center;
  animation: megaPulse 8s ease-in-out infinite;
}
@keyframes megaPulse {
  0%,100% { opacity: 0.75; }
  50% { opacity: 1; }
}
.megabar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.megabar__item {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.megabar__dot {
  color: rgba(0,232,157,0.3);
  font-size: 14px;
}

/* Padding bottom on body for megabar */
body { padding-bottom: 44px; }


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero__content { grid-template-columns: 1fr; }
  .hero__right { display: none; }
  .proof__modules {
    grid-template-columns: repeat(3, 1fr);
  }
  .proof__module:nth-child(3) { border-right: none; }
  .proof__module:nth-child(4) { padding-left: 0; }
  .pipeline { flex-direction: column; align-items: stretch; }
  .pipeline__connector {
    width: auto;
    height: 24px;
    padding: 0;
    justify-content: center;
  }
  .pipeline__connector span {
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, var(--line), var(--accent), var(--line));
  }
  .specs__grid { grid-template-columns: 1fr; }
  .culture { grid-template-columns: 1fr; }
  .invite__content { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .hero__title { font-size: clamp(28px, 7.5vw, 42px); letter-spacing: -0.03em; word-break: break-word; }
  .hero__scroll { display: none; }
  .proof__modules { grid-template-columns: 1fr; }
  .proof__module {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 24px 0;
    flex-direction: row;
    align-items: baseline;
    gap: 24px;
    flex-wrap: wrap;
  }
  .proof__module:first-child { padding-left: 0; }
  .proof__module:last-child { border-bottom: none; }
  .proof__num { font-size: 48px; flex-shrink: 0; }
  .proof__unit { margin-top: 0; }
  .proof__desc { flex-basis: 100%; margin-top: 4px; }
  .machine__title { font-size: clamp(28px, 6vw, 40px); }
  .culture { gap: 40px; }
  .culture__photo--real img { height: 300px; }
  .invite__title { font-size: clamp(32px, 8vw, 48px); }
  .invite__title br { content: ' '; display: inline; }
  .invite__title br::after { content: ' '; }
  .apply { padding: 24px 20px; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .megabar__inner { gap: 8px; font-size: 9px; }
  .megabar__item { font-size: 9px; letter-spacing: 0.08em; }
}
