/* ========================================
   VITronix Design System
   ======================================== */

:root {
  /* Colors */
  --canvas: #F1F0EC;
  --surface: #E7E5DF;
  --text: #161616;
  --muted: #696762;
  --orange: #F05A28;
  --deep-orange: #C84218;
  --yellow: #F4B942;
  --pcb-green: #315C48;
  --dark-green: #17251F;
  --white: #FAFAF7;

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  /* Layout */
  --max-width: 1320px;
  --nav-height: 56px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 18px;
}

/* ========================================
   Reset & Base
   ======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--canvas);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.5s ease, color 0.5s ease;
}

/* Smooth dark mode transitions on key elements */
.nav, .hero, .about, .capabilities, .projects, .events, .culture, .team, .workshops, .join, .footer,
.project-card, .event-card, .team-card, .modal__container, .event-modal__container, .team-modal__container {
  transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, select, textarea { font: inherit; }

::selection {
  background: var(--orange);
  color: var(--white);
}

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

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ========================================
   Loader
   ======================================== */

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--canvas);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.loader__text {
  text-align: center;
}

.loader__brand {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.loader__status {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  animation: loaderPulse 1s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ========================================
   Navigation
   ======================================== */

.nav {
  position: fixed;
  top: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - var(--space-xl) * 2);
  max-width: 720px;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--white);
  border: 1px solid var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(22, 22, 22, 0.04);
  transition: box-shadow 0.3s ease;
}

.nav--scrolled .nav__inner {
  box-shadow: 0 4px 16px rgba(22, 22, 22, 0.08);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav__logo-img {
  height: 28px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: var(--space-lg);
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.2s ease;
  padding: var(--space-xs) 0;
}

.nav__link:hover {
  color: var(--text);
}

.nav__cta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: var(--space-sm) var(--space-md);
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius-md);
  transition: background 0.2s ease;
}

.nav__cta:hover {
  background: var(--deep-orange);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
}

.nav__burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__burger--open span:first-child {
  transform: rotate(45deg) translate(2px, 2px);
}

.nav__burger--open span:last-child {
  transform: rotate(-45deg) translate(2px, -2px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--canvas);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu--open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
  transition: color 0.2s ease;
}

.mobile-menu__link:hover {
  color: var(--orange);
}

.mobile-menu__link--accent {
  color: var(--orange);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  border: 1px solid var(--orange);
}

.btn--primary:hover {
  background: var(--deep-orange);
  border-color: var(--deep-orange);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--surface);
}

.btn--secondary:hover {
  border-color: var(--muted);
}

.btn--full {
  width: 100%;
}

/* ========================================
   Hero
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-4xl) var(--space-xl) var(--space-3xl);
  overflow: hidden;
}

.hero__bg-text {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 18vw, 20rem);
  font-weight: 700;
  line-height: 0.85;
  color: var(--surface);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-2xl);
  align-items: center;
}

.hero__meta {
  grid-column: 1;
  grid-row: 1;
}

.hero__headline {
  grid-column: 1;
  grid-row: 2;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero__line {
  display: block;
}

.hero__line--indent {
  padding-left: 1.5em;
  color: var(--orange);
}

.hero__object {
  grid-column: 2;
  grid-row: 1 / 3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

#heroModel {
  width: 100%;
  height: 400px;
  display: block;
}

/* Machine SVG */
.hero__machine {
  position: relative;
  width: 280px;
  height: 200px;
}

.machine__enclosure {
  position: absolute;
  inset: 0;
  background: var(--orange);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(240, 90, 40, 0.2), 0 2px 4px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: var(--space-lg);
  overflow: hidden;
}

.machine__enclosure::before {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
}

.machine__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
}

.machine__led {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 6px;
  height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  animation: ledBlink 3s ease-in-out infinite;
  box-shadow: 0 0 8px var(--yellow);
}

@keyframes ledBlink {
  0%, 90%, 100% { opacity: 1; }
  95% { opacity: 0.2; }
}

.machine__port {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 24px;
  height: 10px;
  background: rgba(0,0,0,0.3);
  border-radius: 2px;
}

.machine__pcb {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 120px;
  background: var(--dark-green);
  border-radius: var(--radius-md);
  border: 1px solid var(--pcb-green);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.machine__trace {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: var(--pcb-green);
}

.machine__trace::after {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  right: 0;
  height: 1px;
  background: var(--pcb-green);
}

.machine__chip {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 30px;
  background: #1a1a1a;
  border-radius: 2px;
}

.machine__cap {
  position: absolute;
  bottom: 20px;
  left: 30px;
  width: 12px;
  height: 12px;
  border: 2px solid #555;
  border-radius: 50%;
}

/* Floaters */
.hero__floater {
  position: absolute;
  color: var(--muted);
  opacity: 0.4;
  transition: transform 0.3s ease;
}

.hero__floater--1 {
  top: 10%;
  right: 10%;
  width: 60px;
}

.hero__floater--2 {
  bottom: 20%;
  left: 5%;
  width: 36px;
}

.hero__floater--3 {
  top: 50%;
  right: 0;
  width: 80px;
}

.hero__floater--4 {
  bottom: 10%;
  right: 20%;
  width: 30px;
}

.hero__floater--5 {
  top: 20%;
  left: 20%;
  width: 50px;
}

.hero__floater svg {
  width: 100%;
  height: auto;
}

.hero__support {
  grid-column: 1;
  grid-row: 3;
}

.hero__categories {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.hero__categories .mono {
  color: var(--text);
  font-weight: 500;
}

.hero__copy {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 400px;
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
}

/* ========================================
   Section Label
   ======================================== */

.section-label {
  margin-bottom: var(--space-md);
}

/* ========================================
   About
   ======================================== */

.about {
  padding: var(--space-4xl) var(--space-xl);
}

.about__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: start;
}

.about__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.about__statement {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--orange);
  margin-top: var(--space-lg);
}

.about__text {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: var(--space-lg);
  max-width: 520px;
}

.about__tags {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.about__tags .mono {
  color: var(--pcb-green);
  font-weight: 500;
}

.pcb-line {
  max-width: var(--max-width);
  margin: var(--space-2xl) auto 0;
  padding: 0 var(--space-xl);
}

.pcb-line svg {
  width: 100%;
  height: 40px;
}

/* ========================================
   Capabilities
   ======================================== */

.capabilities {
  padding: var(--space-4xl) var(--space-xl);
  background: var(--white);
}

.capabilities__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.capabilities__header {
  margin-bottom: var(--space-3xl);
}

.capabilities__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.capabilities__list {
  display: flex;
  flex-direction: column;
}

.capabilities__item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--surface);
  cursor: default;
  transition: background 0.2s ease;
}

.capabilities__item:last-child {
  border-bottom: 1px solid var(--surface);
}

.capabilities__item:hover {
  background: rgba(240, 90, 40, 0.03);
}

.capabilities__number {
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 500;
}

.capabilities__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.capabilities__desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

.capabilities__tag {
  font-size: 0.65rem;
  color: var(--pcb-green);
}

.capabilities__visual {
  width: 100px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.capabilities__item:hover .capabilities__visual {
  opacity: 1;
  transform: translateX(0);
}

.capabilities__visual svg {
  width: 100%;
  height: auto;
}

/* ========================================
   Projects
   ======================================== */

.projects {
  padding: var(--space-4xl) var(--space-xl);
}

.projects__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.projects__header {
  margin-bottom: var(--space-3xl);
}

.projects__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.projects__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
  justify-items: center;
}

.project-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.project-card:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.project-card__image {
  aspect-ratio: 16/9;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-card__img {
  transform: scale(1.03);
}

.project-card__placeholder {
  width: 60%;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-card__placeholder {
  opacity: 0.5;
}

.project-card__placeholder svg {
  width: 100%;
  height: auto;
}

.project-card__info {
  padding: var(--space-lg);
}

.project-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.project-card__category {
  font-size: 0.7rem;
  color: var(--orange);
  letter-spacing: 0.05em;
}

.project-card__year {
  font-size: 0.65rem;
  color: var(--muted);
}

.project-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  transition: transform 0.2s ease;
}

.project-card:hover .project-card__name {
  transform: translateX(4px);
}

.project-card__desc {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.project-card__tag {
  font-size: 0.6rem;
  padding: 2px 6px;
  border: 1px solid var(--surface);
  border-radius: var(--radius-sm);
  color: var(--muted);
}

.project-card__status {
  font-size: 0.65rem;
  color: var(--pcb-green);
}

.project-card__hover-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s ease;
}

.project-card:hover .project-card__hover-line {
  width: 100%;
}

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

/* ========================================
   Events
   ======================================== */

.events {
  padding: var(--space-4xl) var(--space-xl);
  background: var(--white);
  color: var(--text);
}

.events .mono {
  color: var(--muted);
}

.events__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.events__header {
  margin-bottom: var(--space-3xl);
}

.events__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.events__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.event-card {
  display: grid;
  grid-template-columns: 20fr 20fr 40fr;
  gap: var(--space-xl);
  background: var(--canvas);
  border: 1px solid var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.event-card__name-wrap {
  display: flex;
  align-items: flex-start;
}

.event-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.event-card__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.event-card__date {
  font-size: 0.7rem;
  color: var(--muted);
}

.event-card__desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.event-card__location {
  font-size: 0.7rem;
}

.event-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: auto;
}

.event-card__tag {
  font-size: 0.55rem;
  padding: 2px 6px;
  border: 1px solid var(--surface);
  border-radius: var(--radius-sm);
  color: var(--muted);
}

.event-card__status {
  font-size: 0.6rem;
  color: var(--pcb-green);
}

.event-card__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-sm);
}

.event-card__img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface);
  background: var(--white);
}

.dark .event-card__img {
  background: var(--surface);
}

.events__empty {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.events__empty span {
  display: block;
  color: var(--muted);
}

.workshop-item__images {
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  border: 1px solid var(--surface);
}

/* ========================================
   Events
   ======================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal--open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 22, 22, 0.5);
}

.modal__content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 860px;
  width: calc(100% - var(--space-xl) * 2);
  max-height: 85vh;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal--open .modal__content {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 10;
  font-size: 1.5rem;
  color: var(--muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.modal__close:hover {
  background: var(--surface);
}

.modal__layout {
  display: grid;
  grid-template-columns: 60fr 40fr;
}

.modal__details {
  padding: var(--space-2xl);
  overflow-y: auto;
  max-height: 60vh;
}

.modal__image {
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.modal__meta {
  display: flex;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.modal__meta div {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.modal__meta span:last-child {
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.modal__section {
  margin-bottom: var(--space-lg);
}

.modal__section h3 {
  margin-bottom: var(--space-sm);
  color: var(--muted);
}

.modal__section p {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.modal__tags span {
  padding: 4px 10px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  color: var(--text);
}

.modal__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 10px;
  padding: var(--space-md) 0;
  background: var(--pcb-green);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background 0.2s;
}

.modal__btn:hover {
  background: var(--orange);
}

@media (max-width: 768px) {
  .modal__layout {
    grid-template-columns: 1fr;
  }
  .modal__image {
    max-height: 200px;
    order: -1;
  }
}

/* ========================================
   Events
   ======================================== */

/* ========================================
   Culture
   ======================================== */

.culture {
  padding: var(--space-4xl) var(--space-xl);
  text-align: center;
}

.culture__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.culture__headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3xl);
}

.culture__statements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.culture__item {
  padding: var(--space-2xl);
  border: 1px solid var(--surface);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease;
}

.culture__item:hover {
  border-color: var(--orange);
}

.culture__word {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.culture__visual {
  width: 80px;
  margin: 0 auto;
}

.culture__visual svg {
  width: 100%;
  height: auto;
}

/* ========================================
   Team
   ======================================== */

.team {
  padding: var(--space-4xl) var(--space-xl);
  background: var(--white);
}

.team__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.team__header {
  margin-bottom: var(--space-3xl);
}

.team__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.team-card {
  padding: var(--space-xl);
  border: 1px solid var(--surface);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.team-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.team-card__avatar {
  width: 64px;
  height: 64px;
  background: var(--surface);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  overflow: hidden;
  flex-shrink: 0;
}

.team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__initials {
  font-size: 1.2rem;
  color: var(--muted);
  font-weight: 500;
}

.team-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.team-card__role {
  display: block;
  color: var(--orange);
  margin-bottom: var(--space-xs);
}

.team-card__domain {
  font-size: 0.9rem;
  color: var(--muted);
}

.team-card__socials {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.team-card__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.team-card__social:hover {
  color: var(--orange);
}

.team-card__social svg {
  width: 16px;
  height: 16px;
}

.team__view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin: var(--space-2xl) auto 0;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--white);
  text-decoration: none;
  padding: var(--space-md) var(--space-xl);
  background: var(--orange);
  border: 1px solid var(--orange);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.team__view-all:hover {
  background: var(--deep-orange);
  border-color: var(--deep-orange);
  color: var(--white);
}

.team__view-all-arrow {
  transition: transform 0.2s ease;
}

.team__view-all:hover .team__view-all-arrow {
  transform: translateX(4px);
}

/* ========================================
   Workshops
   ======================================== */

.workshops {
  padding: var(--space-4xl) var(--space-xl);
}

.workshops__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.workshops__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.workshops__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

.workshops__tabs {
  display: flex;
  gap: var(--space-sm);
}

.workshops__tab {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  color: var(--muted);
  border: 1px solid var(--surface);
  transition: all 0.2s ease;
}

.workshops__tab--active {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
}

.workshops__tab:hover:not(.workshops__tab--active) {
  border-color: var(--muted);
}

.workshops__panel {
  display: none;
}

.workshops__panel--active {
  display: block;
}

.workshops__empty {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.workshops__empty span {
  display: block;
  color: var(--muted);
}

.workshop-item {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--surface);
}

.workshop-item:last-child {
  border-bottom: 1px solid var(--surface);
}

.workshop-item__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.workshop-item__topic {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.workshop-item__difficulty {
  font-size: 0.65rem;
  color: var(--pcb-green);
}

.workshop-item__desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.workshop-item__meta {
  display: flex;
  gap: var(--space-lg);
}

.workshop-item__meta span {
  font-size: 0.7rem;
}

/* ========================================
   Join
   ======================================== */

.join {
  padding: var(--space-4xl) var(--space-xl);
  background: var(--pcb-green);
  color: var(--white);
}

.join .mono {
  color: rgba(255,255,255,0.5);
}

.join__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.join__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 40px rgba(255,255,255,0.1);
}

.join__sub {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--orange);
  margin: var(--space-md) 0 var(--space-lg);
}

.join__copy {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  margin-bottom: var(--space-xl);
  max-width: 400px;
}

.join__actions {
  display: flex;
  gap: var(--space-md);
}

.join__actions .btn--secondary {
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}

.join__actions .btn--secondary:hover {
  border-color: rgba(255,255,255,0.4);
}

/* Join Form */
.join-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
}

.join-form::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 24px;
  width: 40px;
  height: 4px;
  background: var(--dark-green);
}

.join-form__title {
  margin-bottom: var(--space-lg);
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  padding-bottom: var(--space-sm);
  border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.join-form__field {
  margin-bottom: var(--space-md);
  position: relative;
}

.join-form__label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
  font-size: 0.6rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
}

.join-form__label::before {
  content: '//';
  color: var(--orange);
  opacity: 0.5;
}

.join-form__field input,
.join-form__field select,
.join-form__field textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  border-radius: 0;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.join-form__field input:hover,
.join-form__field select:hover,
.join-form__field textarea:hover {
  background: rgba(255,255,255,0.06);
  border-bottom-color: rgba(255,255,255,0.25);
}

.join-form__field input::placeholder,
.join-form__field textarea::placeholder {
  color: rgba(255,255,255,0.2);
  font-style: italic;
}

.join-form__field input:focus,
.join-form__field select:focus,
.join-form__field textarea:focus {
  outline: none;
  background: rgba(255,255,255,0.06);
  border-bottom-color: var(--orange);
  box-shadow: 0 1px 0 0 var(--orange);
}

.join-form__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.join-form__field select option {
  background: var(--dark-green);
  color: var(--white);
}

.join-form__field textarea {
  resize: vertical;
  min-height: 80px;
}

.join-form__field textarea:focus {
  min-height: 120px;
}

.join-form__submit {
  width: 100%;
  padding: 14px;
  margin-top: var(--space-md);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.join-form__submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.join-form__submit:hover {
  border-color: var(--orange);
  color: var(--white);
}

.join-form__submit:hover::before {
  transform: scaleX(1);
}

.join-form__status {
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
}

.join-form__status--success {
  color: #4CAF50;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.join-form__status--error {
  color: #ef5350;
  background: rgba(239, 83, 80, 0.1);
  border: 1px solid rgba(239, 83, 80, 0.2);
}

/* ========================================
   Footer
   ======================================== */

.footer {
  padding: var(--space-2xl) var(--space-xl);
  border-top: 1px solid var(--surface);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.footer__tagline {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: var(--space-xs);
}

.footer__nav {
  display: flex;
  gap: var(--space-lg);
}

.footer__nav a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: var(--text);
}

.footer__location {
  text-align: right;
  font-size: 0.7rem;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__headline {
    grid-column: 1;
    grid-row: 1;
    margin-top: 20px;
  }

  .hero__object {
    grid-column: 1;
    grid-row: 2;
    min-height: 300px;
  }

  #heroModel {
    height: 300px;
  }

  .hero__support {
    grid-column: 1;
    grid-row: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__categories {
    justify-content: center;
  }

  .hero__copy {
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__bg-text {
    font-size: 10rem;
    right: -10%;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .capabilities__item {
    grid-template-columns: 40px 1fr;
  }

  .capabilities__visual {
    display: none;
  }

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

  .culture__statements {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .section-label,
  .hero__meta {
    display: none;
  }

  .nav__links {
    display: none;
  }

  .nav__cta {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .hero {
    padding-top: var(--space-3xl);
    min-height: auto;
    padding-bottom: var(--space-2xl);
  }

  .hero__headline {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero__bg-text {
    font-size: 6rem;
  }

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

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

  .event-card__gallery {
    min-height: 120px;
  }

  .event-modal__container {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }

  .event-modal__details {
    border-right: none;
    border-bottom: 1px solid var(--surface);
  }

  .event-modal__gallery {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .team-modal__container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__location {
    text-align: center;
  }

  .footer__nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 24px;
    --space-2xl: 40px;
    --space-3xl: 64px;
    --space-4xl: 80px;
  }

  .hero__machine {
    width: 200px;
    height: 150px;
  }

  .machine__pcb {
    width: 150px;
    height: 90px;
  }

  .join__actions {
    flex-direction: column;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ========================================
   Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__floater {
    transform: none !important;
  }
}

/* ========================================
   Scrollbar
   ======================================== */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--canvas);
}

::-webkit-scrollbar-thumb {
  background: var(--surface);
  border-radius: 3px;
}

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

/* ========================================
   Event Detail Modal — 20/80
   ======================================== */

.event-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.event-modal--open {
  opacity: 1;
  pointer-events: auto;
}

.event-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.event-modal__container {
  position: relative;
  display: grid;
  grid-template-columns: 20fr 80fr;
  width: 90vw;
  max-width: 1200px;
  max-height: 85vh;
  background: var(--canvas);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.event-modal--open .event-modal__container {
  transform: translateY(0);
}

.event-modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 10;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--surface);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.2s;
}

.event-modal__close:hover {
  background: var(--orange);
  color: var(--white);
}

.event-modal__details {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  border-right: 1px solid var(--surface);
}

.event-modal__date {
  font-size: 0.7rem;
  color: var(--muted);
}

.event-modal__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.event-modal__desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.event-modal__location {
  font-size: 0.7rem;
  color: var(--muted);
}

.event-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: auto;
}

.event-modal__tags span {
  font-size: 0.55rem;
  padding: 2px 6px;
  border: 1px solid var(--surface);
  border-radius: var(--radius-sm);
  color: var(--muted);
}

.event-modal__status {
  font-size: 0.6rem;
  color: var(--pcb-green);
}

.event-modal__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-sm);
  padding: var(--space-md);
  overflow-y: auto;
  align-content: start;
}

.event-modal__img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.2s;
  border: 1px solid var(--surface);
  background: var(--white);
}

.dark .event-modal__img {
  background: var(--surface);
}

.event-modal__img:hover {
  transform: scale(1.02);
}

/* ========================================
   Team Detail Modal
   ======================================== */

.team-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.team-modal--open {
  opacity: 1;
  pointer-events: auto;
}

.team-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.team-modal__container {
  position: relative;
  display: flex;
  gap: var(--space-xl);
  width: 90vw;
  max-width: 700px;
  max-height: 85vh;
  background: var(--canvas);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.team-modal--open .team-modal__container {
  transform: translateY(0);
}

.team-modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 10;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--surface);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.2s;
}

.team-modal__close:hover {
  background: var(--orange);
  color: var(--white);
}

.team-modal__photo-wrap {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.team-modal__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-modal__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.team-modal__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.team-modal__role {
  font-size: 0.75rem;
  color: var(--orange);
}

.team-modal__domain {
  font-size: 0.85rem;
  color: var(--muted);
}

.team-modal__socials {
  display: flex;
  gap: var(--space-md);
  margin-top: auto;
}

.team-modal__socials a {
  color: var(--muted);
  transition: color 0.2s;
}

.team-modal__socials a:hover {
  color: var(--orange);
}

.team-modal__socials svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   Image Fullscreen Viewer
   ======================================== */

.img-viewer {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.img-viewer--open {
  opacity: 1;
  pointer-events: auto;
}

.img-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
}

.img-viewer__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: 10;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.img-viewer__close:hover {
  background: rgba(255,255,255,0.3);
}

.img-viewer__img {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

/* ========================================
   Theme Toggle
   ======================================== */

.theme-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--surface);
  border-radius: 50%;
  background: var(--canvas);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle__moon {
  display: none;
}

.dark .theme-toggle__sun {
  display: none;
}

.dark .theme-toggle__moon {
  display: block;
}

/* ========================================
   Dark Mode
   ======================================== */

.dark {
  --canvas: #1a1a1a;
  --surface: #2a2a2a;
  --text: #f0f0f0;
  --muted: #999;
  --white: #111;
}

.dark .nav {
  background: rgba(26,26,26,0.95);
}

.dark .event-card {
  background: var(--surface);
  border-color: #333;
}

.dark .event-card__tag {
  border-color: #444;
  color: var(--muted);
}

.dark .event-modal__container {
  background: var(--canvas);
}

.dark .event-modal__details {
  border-color: #333;
}

.dark .event-modal__img {
  border-color: #333;
}

.dark .event-modal__tags span {
  border-color: #444;
}

.dark .team-modal__container {
  background: var(--canvas);
}

.dark .hero__bg-text {
  color: rgba(255,255,255,0.03);
}

/* Join section - dark mode (teal) */
.dark .join {
  background: #1a3a30;
  color: var(--white);
}

.dark .join .mono {
  color: rgba(255,255,255,0.6);
}

.dark .join__headline {
  color: var(--white);
  text-shadow: none;
}

.dark .join__copy {
  color: rgba(255,255,255,0.75);
}

.dark .join__actions .btn--secondary {
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}

.dark .join__actions .btn--secondary:hover {
  border-color: rgba(255,255,255,0.4);
}

.dark .join-form {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  border-top-color: var(--orange);
}

.dark .join-form__title {
  color: rgba(255,255,255,0.5);
  border-bottom-color: rgba(255,255,255,0.1);
}

.dark .join-form__label {
  color: rgba(255,255,255,0.4);
}

.dark .join-form__field input,
.dark .join-form__field select,
.dark .join-form__field textarea {
  background: rgba(255,255,255,0.06);
  border-bottom-color: rgba(255,255,255,0.15);
  color: var(--white);
}

.dark .join-form__field input:hover,
.dark .join-form__field select:hover,
.dark .join-form__field textarea:hover {
  background: rgba(255,255,255,0.08);
  border-bottom-color: rgba(255,255,255,0.25);
}

.dark .join-form__field input:focus,
.dark .join-form__field select:focus,
.dark .join-form__field textarea:focus {
  background: rgba(255,255,255,0.08);
}

.dark .join-form__field input::placeholder,
.dark .join-form__field textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.dark .join-form__submit {
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}

.dark .join-form__submit:hover {
  border-color: var(--orange);
}

.dark .join-form__field select option {
  background: #1a3a30;
  color: var(--white);
}

/* Projects Page */
.projects-page { min-height: 100vh; padding: var(--space-4xl) var(--space-xl) var(--space-3xl); background: var(--white); }
.projects-page__inner { max-width: var(--max-width); margin: 0 auto; }
.projects-page__header { margin-bottom: var(--space-3xl); }
.projects-page__back { display: inline-flex; align-items: center; gap: var(--space-sm); font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); text-decoration: none; margin-bottom: var(--space-xl); transition: color 0.2s; }
.projects-page__back:hover { color: var(--orange); }
.projects-page__title { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; line-height: 1; color: var(--text); }
.projects-page__subtitle { font-size: 1rem; color: var(--muted); margin-top: var(--space-sm); }
.projects-page__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: var(--space-xl); }
.projects-page__card { background: var(--canvas); border: 1px solid var(--surface); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; }
.projects-page__card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.projects-page__card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 1px solid var(--surface); }
.projects-page__card-placeholder { width: 100%; aspect-ratio: 16/9; background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.75rem; }
.projects-page__card-info { padding: var(--space-lg); }
.projects-page__card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-sm); }
.projects-page__card-category { font-size: 0.7rem; color: var(--orange); }
.projects-page__card-year { font-size: 0.65rem; color: var(--muted); }
.projects-page__card-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: var(--space-sm); }
.projects-page__card-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.5; margin-bottom: var(--space-sm); }
.projects-page__card-tags { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-sm); }
.projects-page__card-tag { font-size: 0.6rem; padding: 2px 6px; border: 1px solid var(--surface); border-radius: var(--radius-sm); color: var(--muted); }
.projects-page__card-status { font-size: 0.65rem; color: var(--pcb-green); font-family: var(--font-mono); }
.projects-page__card-team { font-size: 0.7rem; color: var(--muted); margin-top: var(--space-sm); }
@media (max-width: 768px) { .projects-page__grid { grid-template-columns: 1fr; } }
