/* ===================================================
   QUETZAL BLOCK — Design System
   Premium Industrial Identity | Spanish Language
   =================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --color-graphite:       #1c1c1c;
  --color-graphite-mid:   #2a2a2a;
  --color-graphite-light: #3d3d3d;
  --color-concrete:       #8a8078;
  --color-concrete-light: #b0a89e;
  --color-sandstone:      #c4b49a;
  --color-sandstone-light:#d9cdb9;
  --color-sand-pale:      #ede8e0;
  --color-steel:          #6b7280;
  --color-steel-light:    #9ca3af;
  --color-emerald:        #1a5c45;
  --color-emerald-mid:    #1e6b50;
  --color-emerald-light:  #2d8a68;
  --color-white:          #f8f6f2;
  --color-off-white:      #f0ece5;
  --color-black:          #0a0a0a;

  /* Semantic tokens */
  --bg-primary:        var(--color-graphite);
  --bg-secondary:      var(--color-graphite-mid);
  --bg-surface:        var(--color-graphite-light);
  --bg-light:          var(--color-sand-pale);
  --bg-white:          var(--color-white);
  --text-primary:      var(--color-white);
  --text-secondary:    var(--color-sandstone-light);
  --text-muted:        var(--color-concrete);
  --text-dark:         var(--color-graphite);
  --text-dark-muted:   var(--color-concrete);
  --accent:            var(--color-emerald);
  --accent-mid:        var(--color-emerald-mid);
  --accent-light:      var(--color-emerald-light);
  --border-color:      rgba(196, 180, 154, 0.12);
  --border-accent:     rgba(26, 92, 69, 0.3);

  /* Typography */
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Inter', system-ui, sans-serif;

  /* Font sizes */
  --fs-xs:   0.75rem;   /* 12px */
  --fs-sm:   0.875rem;  /* 14px */
  --fs-base: 1rem;      /* 16px */
  --fs-md:   1.125rem;  /* 18px */
  --fs-lg:   1.25rem;   /* 20px */
  --fs-xl:   1.5rem;    /* 24px */
  --fs-2xl:  2rem;      /* 32px */
  --fs-3xl:  2.5rem;    /* 40px */
  --fs-4xl:  3.5rem;    /* 56px */
  --fs-5xl:  5rem;      /* 80px */
  --fs-6xl:  7rem;      /* 112px */

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;

  /* Transitions */
  --ease-smooth:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:     cubic-bezier(0.0, 0.0, 0.2, 1.0);
  --ease-in:      cubic-bezier(0.4, 0.0, 1.0, 1.0);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast:   0.2s var(--ease-smooth);
  --transition-base:   0.4s var(--ease-smooth);
  --transition-slow:   0.7s var(--ease-smooth);
  --transition-xslow:  1.2s var(--ease-smooth);

  /* Misc */
  --radius-sm:   4px;
  --radius-base: 8px;
  --radius-lg:   16px;
  --nav-height:  80px;
  --container-max: 1400px;
  --container-padding: clamp(1.5rem, 4vw, 4rem);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

body.loading {
  overflow: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

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

/* ===== CUSTOM CURSOR ===== */
.cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}

.cursor__dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--color-white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.1s var(--ease-smooth), opacity 0.3s;
  z-index: 9999;
  pointer-events: none;
}

.cursor__ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(248, 246, 242, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-smooth),
              width 0.3s var(--ease-smooth),
              height 0.3s var(--ease-smooth),
              border-color 0.3s;
  z-index: 9998;
  pointer-events: none;
}

.cursor__ring.is-hovering {
  width: 60px;
  height: 60px;
  border-color: var(--color-emerald-light);
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--color-emerald-light);
  z-index: 9997;
  width: 0%;
  transition: width 0.1s linear;
}

/* ===== LOADING SCREEN ===== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  transition: opacity 0.8s var(--ease-smooth), visibility 0.8s;
}

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

.loader__logo {
  opacity: 0;
  animation: loaderFadeIn 0.8s var(--ease-smooth) 0.3s forwards;
}

.loader__logo svg {
  width: 120px;
  height: auto;
}

.loader__bar-wrap {
  width: 200px;
  height: 1px;
  background: rgba(196, 180, 154, 0.2);
  overflow: hidden;
  opacity: 0;
  animation: loaderFadeIn 0.5s var(--ease-smooth) 0.6s forwards;
}

.loader__bar {
  height: 100%;
  background: var(--color-emerald-light);
  width: 0%;
  animation: loaderProgress 1.8s var(--ease-out) 0.8s forwards;
}

.loader__text {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  animation: loaderFadeIn 0.5s var(--ease-smooth) 0.7s forwards;
}

@keyframes loaderFadeIn {
  to { opacity: 1; }
}

@keyframes loaderProgress {
  0%  { width: 0%; }
  60% { width: 75%; }
  100%{ width: 100%; }
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 var(--container-padding);
  transition: background var(--transition-base),
              border-bottom var(--transition-base),
              backdrop-filter var(--transition-base);
}

.nav.scrolled {
  background: rgba(28, 28, 28, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.nav__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  z-index: 901;
}

.nav__logo svg {
  width: 44px;
  height: 44px;
  transition: transform var(--transition-base);
}

.nav__logo:hover svg {
  transform: scale(1.05);
}

.nav__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav__wordmark-top {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.nav__wordmark-sub {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-emerald-light);
}

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

.nav__link {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-emerald-light);
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-white);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__contact {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-emerald-light);
  border: 1px solid var(--border-accent);
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  transition: background var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast);
}

.nav__contact:hover {
  background: var(--color-emerald);
  color: var(--color-white);
  border-color: var(--color-emerald);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 901;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--text-primary);
  transition: transform var(--transition-base),
              opacity var(--transition-fast),
              width var(--transition-base);
  transform-origin: left center;
}

.nav__hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(0px, -1px);
  width: 27px;
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}

.nav__hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(0px, 1px);
  width: 27px;
}

/* Mobile nav overlay */
.nav__mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 899;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.nav__mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav__mobile-link {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-base), transform var(--transition-base), color var(--transition-fast);
}

.nav__mobile-overlay.open .nav__mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.nav__mobile-link:hover { color: var(--color-white); }

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ===== SECTION BASE ===== */
.section {
  padding: var(--space-3xl) 0;
}

.section--sm {
  padding: var(--space-2xl) 0;
}

.section--light {
  background: var(--bg-light);
  color: var(--text-dark);
}

.section--dark {
  background: var(--bg-secondary);
}

.section--black {
  background: var(--color-black);
}

/* ===== SECTION LABELS ===== */
.section-label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-emerald-light);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.section-label::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--color-emerald-light);
  flex-shrink: 0;
}

.section-label--dark {
  color: var(--color-emerald);
}

.section-label--dark::before {
  background: var(--color-emerald);
}

/* ===== HEADINGS ===== */
.heading-display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.heading-xl {
  font-size: clamp(3rem, 7vw, var(--fs-6xl));
}

.heading-lg {
  font-size: clamp(2.2rem, 5vw, var(--fs-5xl));
}

.heading-md {
  font-size: clamp(1.8rem, 3.5vw, var(--fs-4xl));
}

.heading-sm {
  font-size: clamp(1.5rem, 2.5vw, var(--fs-3xl));
}

.heading-xs {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 400;
  line-height: 1.2;
}

/* ===== TEXT STYLES ===== */
.lead {
  font-size: clamp(1rem, 1.5vw, var(--fs-lg));
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
}

.lead--dark {
  color: var(--text-dark-muted);
}

.body-text {
  font-size: var(--fs-base);
  line-height: 1.7;
  font-weight: 300;
  color: var(--text-secondary);
}

.body-text--dark {
  color: var(--color-concrete);
}

.text-accent {
  color: var(--color-emerald-light);
}

.text-sandstone {
  color: var(--color-sandstone);
}

/* ===== DIVIDERS ===== */
.divider {
  width: 60px;
  height: 1px;
  background: var(--color-emerald-light);
  margin: var(--space-md) 0;
}

.divider--center { margin: var(--space-md) auto; }

.divider--full {
  width: 100%;
  height: 1px;
  background: var(--border-color);
  margin: 0;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 8s var(--ease-smooth);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.85) 0%,
    rgba(10,10,10,0.4) 50%,
    rgba(10,10,10,0.1) 100%
  );
}

.hero.loaded .hero__bg img {
  transform: scale(1);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--container-padding) var(--space-2xl);
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-emerald-light);
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition-slow) 0.3s, transform var(--transition-slow) 0.3s;
}

.hero__tag.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow) 0.5s, transform var(--transition-slow) 0.5s;
}

.hero__title.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.3vw, var(--fs-md));
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--color-sandstone-light);
  max-width: 480px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition-slow) 0.7s, transform var(--transition-slow) 0.7s;
}

.hero__subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--container-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-smooth) 1.5s forwards;
}

.hero__scroll-indicator span {
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--color-emerald-light), transparent);
  animation: scrollLine 1.5s var(--ease-smooth) infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== STATS SECTION ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border-color);
}

.stat-item {
  padding: var(--space-xl) var(--space-lg);
  border-right: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-emerald-light);
  transition: width 0.8s var(--ease-smooth);
}

.stat-item:hover::before {
  width: 100%;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-unit {
  color: var(--color-emerald-light);
  font-size: 0.6em;
}

.stat-label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card__image img {
  transform: scale(1.04);
}

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

.card__tag {
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-emerald-light);
  margin-bottom: var(--space-xs);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  line-height: 1.2;
}

.card__text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-smooth),
              transform 0.8s var(--ease-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  transform: translateX(-40px);
}

.reveal--left.visible {
  transform: translateX(0);
}

.reveal--right {
  transform: translateX(40px);
}

.reveal--right.visible {
  transform: translateX(0);
}

.reveal--scale {
  transform: scale(0.95);
}

.reveal--scale.visible {
  transform: scale(1);
}

/* Staggered delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== PARALLAX SECTIONS ===== */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: -15%;
  will-change: transform;
}

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

/* ===== FEATURE GRID ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.feature-item {
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: var(--color-emerald-light);
  transition: height var(--transition-slow);
}

.feature-item:hover {
  border-color: var(--border-accent);
}

.feature-item:hover::before {
  height: 100%;
}

.feature-icon {
  margin-bottom: var(--space-md);
}

.feature-icon svg {
  width: 40px;
  height: 40px;
  color: var(--color-emerald-light);
}

.feature-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.feature-text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== TWO-COL LAYOUT ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.two-col--reversed .two-col__image {
  order: 2;
}

.two-col--reversed .two-col__text {
  order: 1;
}

.two-col__image {
  position: relative;
  overflow: hidden;
}

.two-col__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 4px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item.span-2 {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ===== PROCESS TIMELINE ===== */
.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-color);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  align-items: start;
}

.timeline-item:nth-child(odd) .timeline-content {
  grid-column: 1;
  text-align: right;
}

.timeline-item:nth-child(odd) .timeline-empty {
  grid-column: 3;
}

.timeline-item:nth-child(even) .timeline-content {
  grid-column: 3;
}

.timeline-item:nth-child(even) .timeline-empty {
  grid-column: 1;
}

.timeline-node {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 6px;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-emerald);
  border: 2px solid var(--color-emerald-light);
  position: relative;
  z-index: 1;
}

.timeline-year {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-emerald-light);
  margin-bottom: var(--space-xs);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.timeline-text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  height: 60vh;
  min-height: 420px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
}

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

.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.4) 70%, rgba(10,10,10,0.2) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--container-padding) var(--space-2xl);
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.page-hero__breadcrumb {
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.page-hero__breadcrumb a {
  color: var(--color-emerald-light);
  transition: color var(--transition-fast);
}

.page-hero__breadcrumb a:hover {
  color: var(--color-white);
}

/* ===== CONTACT FORM ===== */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.9rem var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--text-primary);
  transition: border-color var(--transition-fast),
              background var(--transition-fast);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(138, 128, 120, 0.5);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-emerald-light);
  background: rgba(255,255,255,0.07);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-emerald);
  color: var(--color-white);
  border: 1px solid var(--color-emerald);
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast),
              border-color var(--transition-fast),
              transform var(--transition-fast);
}

.form-submit:hover {
  background: var(--color-emerald-mid);
  transform: translateY(-2px);
}

.form-success {
  padding: var(--space-lg);
  background: rgba(26, 92, 69, 0.15);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  color: var(--color-emerald-light);
  font-size: var(--fs-sm);
  display: none;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-black);
  border-top: 1px solid var(--border-color);
}

.footer__top {
  padding: var(--space-3xl) 0 var(--space-2xl);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
}

.footer__brand p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: var(--space-md);
  max-width: 280px;
}

.footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: var(--space-sm);
}

.footer__contact-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-emerald-light);
}

.footer__contact-value {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer__contact-value:hover {
  color: var(--color-white);
}

.footer__nav-title {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

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

.footer__nav-link {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer__nav-link:hover {
  color: var(--color-white);
}

.footer__bottom {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer__copyright {
  font-size: var(--fs-xs);
  color: var(--color-steel);
  letter-spacing: 0.05em;
}

.footer__legal-links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer__legal-link {
  font-size: var(--fs-xs);
  color: var(--color-steel);
  transition: color var(--transition-fast);
}

.footer__legal-link:hover {
  color: var(--text-secondary);
}

/* Easter egg */
.footer__easter-egg {
  font-size: 10px;
  color: transparent;
  transition: color 0.5s;
  cursor: default;
  user-select: none;
}

.footer__easter-egg:hover {
  color: var(--color-emerald-light);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  max-width: 600px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-base);
  padding: var(--space-lg);
  z-index: 8000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: translateY(20px);
  opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

.cookie-banner__text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.cookie-banner__text a {
  color: var(--color-emerald-light);
  text-decoration: underline;
}

.cookie-banner__buttons {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.6rem 1.2rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: none;
  transition: background var(--transition-fast),
              border-color var(--transition-fast),
              color var(--transition-fast);
  border: 1px solid;
}

.cookie-btn--accept {
  background: var(--color-emerald);
  color: var(--color-white);
  border-color: var(--color-emerald);
}

.cookie-btn--accept:hover {
  background: var(--color-emerald-mid);
}

.cookie-btn--reject {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-color);
}

.cookie-btn--reject:hover {
  border-color: var(--color-concrete);
  color: var(--text-primary);
}

.cookie-btn--customize {
  background: transparent;
  color: var(--color-emerald-light);
  border-color: var(--border-accent);
}

.cookie-btn--customize:hover {
  background: rgba(26, 92, 69, 0.1);
}

/* Cookie customize panel */
.cookie-customize {
  display: none;
  margin-top: var(--space-md);
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-md);
}

.cookie-customize.visible {
  display: block;
}

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

.cookie-toggle label {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.cookie-toggle input[type="checkbox"] {
  width: 36px;
  height: 20px;
  appearance: none;
  background: var(--border-color);
  border-radius: 10px;
  position: relative;
  cursor: none;
  transition: background var(--transition-fast);
}

.cookie-toggle input[type="checkbox"]:checked {
  background: var(--color-emerald);
}

.cookie-toggle input[type="checkbox"]::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: left var(--transition-fast);
}

.cookie-toggle input[type="checkbox"]:checked::after {
  left: 19px;
}

/* ===== UTILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-center { text-align: center; }
.text-right  { text-align: right; }

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm      { gap: var(--space-sm); }
.gap-md      { gap: var(--space-md); }
.gap-lg      { gap: var(--space-lg); }

.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-auto { margin-top: auto; }

.w-full { width: 100%; }

/* ===== PAGE TRANSITIONS ===== */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--color-black);
  z-index: 9980;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ===== LIGHT SECTION OVERRIDES ===== */
.section--light .section-label {
  color: var(--color-emerald);
}

.section--light .section-label::before {
  background: var(--color-emerald);
}

.section--light .heading-display {
  color: var(--color-graphite);
}

.section--light .lead {
  color: var(--color-concrete);
}

.section--light .divider {
  background: var(--color-emerald);
}

/* ===== PROCESS STEPS ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: var(--border-color);
}

.process-step {
  padding: 0 var(--space-sm);
  position: relative;
  z-index: 1;
}

.process-step__number {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 300;
  color: var(--color-emerald-light);
  background: var(--bg-primary);
  margin-bottom: var(--space-md);
  transition: background var(--transition-base), border-color var(--transition-base);
}

.process-step:hover .process-step__number {
  background: var(--color-emerald);
  border-color: var(--color-emerald);
}

.process-step__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

.process-step__text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== BADGE / CERTIFICATION ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-sm);
}

.cert-item {
  border: 1px solid var(--border-color);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  transition: border-color var(--transition-base);
}

.cert-item:hover {
  border-color: var(--border-accent);
}

.cert-item svg {
  width: 40px;
  height: 40px;
  color: var(--color-emerald-light);
  margin: 0 auto var(--space-sm);
}

.cert-item p {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ===== LEGAL / CONTENT PAGES ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--container-padding);
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 300;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.legal-content .meta {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 400;
  color: var(--text-primary);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.legal-content h3 {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

.legal-content p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.legal-content a {
  color: var(--color-emerald-light);
  text-decoration: underline;
}

.legal-content ul {
  list-style: disc;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-content ul li {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 4px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid .stat-item:nth-child(2) {
    border-right: none;
  }

  .stats-grid .stat-item:nth-child(3) {
    border-top: 1px solid var(--border-color);
  }

  .stats-grid .stat-item:nth-child(4) {
    border-top: 1px solid var(--border-color);
    border-right: none;
  }

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

@media (max-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .two-col--reversed .two-col__image,
  .two-col--reversed .two-col__text {
    order: unset;
  }

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

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .process-steps::before {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav__links {
    display: none;
  }

  .nav__contact {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .timeline::before { display: none; }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    grid-column: 1;
    text-align: left;
  }

  .timeline-node { display: none; }

  .timeline-item:nth-child(odd) .timeline-empty,
  .timeline-item:nth-child(even) .timeline-empty {
    display: none;
  }

  html { cursor: auto; }
  .cursor__dot, .cursor__ring { display: none; }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 6rem;
    --space-2xl: 4rem;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }

  .gallery-item.span-2 {
    grid-column: span 1;
    grid-row: span 1;
  }

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

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

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

  .footer__legal-links {
    justify-content: center;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

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

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

  .stats-grid .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .cookie-banner__buttons {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
  }

  .hero__scroll-indicator {
    display: none;
  }
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-hero {
  padding: 10rem 0 4rem;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--border-color);
}

.legal-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-text);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-hero__meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.legal-body {
  padding: 4rem 0 6rem;
}

.legal-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 6rem;
  background: var(--color-surface);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1.5rem;
}

.legal-toc h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.legal-toc ol {
  list-style: decimal;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-toc a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s;
}

.legal-toc a:hover {
  color: var(--color-accent);
}

.legal-content section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-content section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.legal-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal-content li {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.legal-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content address {
  font-style: normal;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1.5rem 0;
}

.legal-table th,
.legal-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--color-surface);
  font-weight: 600;
  color: var(--color-text);
}

.legal-table td {
  color: var(--color-text-muted);
}

.legal-table code {
  font-family: var(--font-mono, monospace);
  font-size: 0.8125rem;
  background: rgba(255,255,255,0.06);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

@media (max-width: 900px) {
  .legal-container {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-info {
  padding-top: 0.5rem;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.contact-info__item:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 1.5rem;
}

.contact-info__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.contact-info__icon svg {
  width: 100%;
  height: 100%;
}

.contact-info__item strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.contact-info__item p,
.contact-info__item address p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.contact-info__item a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-info__item a:hover {
  color: var(--color-accent);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--color-surface);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2.5rem;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.contact-form label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-text);
}

.contact-form label span[aria-hidden] {
  color: var(--color-accent);
  margin-left: 2px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--color-bg);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.25);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(26,92,69,0.2);
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.contact-form select option {
  background: var(--color-bg);
  color: var(--color-text);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group--checkbox {
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.checkbox-label a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.form-success {
  text-align: center;
  padding: 3rem 1rem;
}

.form-success svg {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
}

.form-success h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Map placeholder */
.map-placeholder {
  position: relative;
  overflow: hidden;
}

.map-placeholder__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,28,28,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Jobs list (Careers page) */
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.job-card {
  background: var(--color-surface);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.25s;
}

.job-card:hover {
  border-color: var(--color-accent);
}

.job-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.job-card__dept {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.35rem;
}

.job-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
}

.job-card__badge {
  display: inline-block;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.3rem 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.job-card__badge--green {
  background: rgba(26,92,69,0.2);
  border-color: var(--color-accent);
  color: #5ec49a;
}

.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}

.job-card__meta span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  position: relative;
  padding-left: 0.875rem;
}

.job-card__meta span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
}

.job-card__desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.job-card__btn {
  display: inline-flex;
}

/* link accent */
.link--accent {
  color: var(--color-accent);
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .job-card__header {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 640px) {
  .contact-form-wrap {
    padding: 1.5rem;
  }

  .legal-table {
    font-size: 0.8125rem;
  }

  .legal-table th,
  .legal-table td {
    padding: 0.5rem 0.75rem;
  }
}

/* ============================================================
   MISSING / UNIFIED CLASSES
   (used in careers, contact, legal pages)
   ============================================================ */

/* --- CSS variable aliases --- */
:root {
  --color-accent: var(--color-emerald);
  --color-text:   var(--color-white);
  --color-text-muted: var(--color-concrete);
  --color-surface: var(--color-graphite-mid);
  --color-bg:     var(--color-graphite);
}

/* --- reveal-up (alias for .reveal) --- */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- section header block --- */
.section__header {
  margin-bottom: var(--space-xl);
}

.section__label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-emerald-light);
  margin-bottom: var(--space-xs);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.section__intro {
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.65;
}

/* --- Btn system --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast),
              border-color var(--transition-fast), transform 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-emerald);
  color: var(--color-white);
  border-color: var(--color-emerald);
}
.btn--primary:hover {
  background: var(--color-emerald-mid);
  border-color: var(--color-emerald-mid);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}
.btn--outline:hover {
  border-color: var(--color-emerald-light);
  color: var(--color-emerald-light);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-color);
}
.btn--ghost:hover {
  color: var(--text-primary);
  border-color: rgba(196, 180, 154, 0.35);
}

.btn--sm {
  font-size: var(--fs-xs);
  padding: 0.6rem 1.25rem;
}

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

/* --- Grid 3-column card layout --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

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

/* --- Card --- */
.card {
  background: var(--color-graphite-mid);
  border: 1px solid var(--border-color);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transition: border-color 0.25s;
}
.card:hover { border-color: var(--color-emerald); }

.card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-xs);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 400;
  color: var(--text-primary);
}

.card__text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- Content split (2-col with media) --- */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

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

.content-split__text p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.content-split__text a { color: var(--color-emerald-light); }

.content-split__media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (max-width: 900px) {
  .content-split { grid-template-columns: 1fr; }
}

/* --- Footer grid layout (careers/contact/legal style) --- */
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  padding: var(--space-2xl) 0 var(--space-xl);
}

.footer__tagline {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: var(--space-sm);
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.footer__nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__nav a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.footer__nav a:hover { color: var(--color-emerald-light); }

.footer__contact address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__contact address p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.footer__contact address a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.footer__contact address a:hover { color: var(--color-emerald-light); }

.footer__bottom {
  border-top: 1px solid var(--border-color);
  padding: var(--space-md) 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.footer__bottom-inner p {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.footer__bottom-inner a {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.footer__bottom-inner a:hover { color: var(--color-emerald-light); }

@media (max-width: 1100px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-lg);
  }
  .footer__brand { grid-column: span 3; }
}

@media (max-width: 640px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand { grid-column: span 2; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* --- Nav dropdown (careers/contact/legal) --- */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 901;
}

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

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav__item { position: relative; }

.nav__item--has-child > .nav__link::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
  opacity: 0.5;
  position: static;
  background: none;
}

.nav__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(28,28,28,0.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  min-width: 200px;
  padding: 0.5rem 0;
  list-style: none;
  z-index: 910;
}

.nav__item--has-child:hover .nav__sub,
.nav__item--has-child:focus-within .nav__sub {
  display: block;
}

.nav__sub li a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav__sub li a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.nav__link--cta {
  background: var(--color-emerald);
  color: var(--color-white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  transition: background var(--transition-fast) !important;
}

.nav__link--cta:hover {
  background: var(--color-emerald-mid) !important;
}

.nav__link--cta::after { display: none !important; }

/* --- Menu nav (careers/contact/legal) --- */
.nav__menu {
  display: flex;
  align-items: center;
}

@media (max-width: 900px) {
  .nav__burger { display: flex; }

  .nav__menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 899;
  }

  .nav__menu.open { display: flex; }

  .nav__list {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .nav__sub {
    position: static;
    display: block;
    background: none;
    border: none;
    padding: 0.5rem 0 0;
  }

  .nav__item--has-child > .nav__link::after { display: none; }
}

/* --- Breadcrumb --- */
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.breadcrumb ol li + li::before {
  content: '›';
  margin-right: 0.5rem;
  opacity: 0.5;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.breadcrumb a:hover { color: var(--color-emerald-light); }

/* --- Page hero extended (careers/contact) --- */
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.55) 100%);
  pointer-events: none;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.page-hero__sub {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
}

/* --- section--alt (alternate dark section) --- */
.section--alt {
  background: var(--color-graphite-mid);
}

/* --- section--flush (no padding override) --- */
.section--flush {
  padding: 0;
}

/* --- Cookie banner (hidden attribute variant) --- */
.cookie-banner[hidden] { display: none; }

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* --- Form submit btn class alias --- */
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  background: var(--color-emerald);
  color: var(--color-white);
  border: 1px solid var(--color-emerald);
  border-radius: 2px;
  cursor: pointer;
  width: 100%;
  transition: background var(--transition-fast);
}
.form-submit:hover { background: var(--color-emerald-mid); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* --- Force cursor: auto on touch devices --- */
@media (hover: none) {
  html { cursor: auto; }
  .cursor__dot,
  .cursor__ring { display: none; }
}
