@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;700;900&family=Barlow:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --bg-primary:   #0A0A0F;
  --bg-secondary: #101018;
  --bg-card:      #181825;
  --border:       #252535;
  --accent:       #F5A623;
  --accent-glow:  rgba(245,166,35,0.12);
  --accent-dim:   rgba(245,166,35,0.40);
  --text:         #F0EDF5;
  --text-muted:   #6B6880;

  --font-display: 'Unbounded', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-mono:    'Space Mono', monospace;

  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  48px;
  --space-2xl: 80px;
  --space-3xl: 120px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

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

html { scroll-behavior: auto; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Page load veil ─────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  pointer-events: none;
  transition: opacity 0.7s var(--ease-out);
}
body.loaded::after { opacity: 0; }

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.display-hero {
  font-size: clamp(3.5rem, 9vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
}

.display-section {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

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

.body-lg {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 65ch;
}

.body-sm {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ─── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-lg) var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, border-bottom 0.4s ease;
}
.nav.scrolled {
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 8px 20px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links .nav-cta:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.nav-overlay a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.2s ease;
  opacity: 0;
  transform: translateY(20px);
}
.nav-overlay a:hover { color: var(--accent); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: transform 0.16s var(--ease-out), background 0.2s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}
.btn-primary:hover { background: #ffb83a; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--space-2xl) var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.hero-ghost {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(10rem, 28vw, 28rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.025;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}

.hero-motif {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(300px, 40vw, 560px);
  color: var(--accent);
  opacity: 0.18;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

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

.hero-heading {
  margin-bottom: var(--space-xl);
}
.hero-heading .line {
  display: block;
  overflow: hidden;
}
.hero-heading .word { display: inline-block; }

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 400;
  color: var(--text-muted);
  max-width: 55ch;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

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

.hero-scroll {
  position: absolute;
  bottom: var(--space-xl);
  right: var(--space-2xl);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero-scroll::before {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: var(--accent);
  margin-bottom: var(--space-sm);
}

/* ─── Section base ───────────────────────────────────────── */
.section {
  padding: var(--space-3xl) var(--space-2xl);
  position: relative;
}

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

.section-label {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: end;
  margin-bottom: var(--space-2xl);
}

/* ─── Mission section ────────────────────────────────────── */
.mission {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: var(--space-2xl);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.mission-stat {
  border-top: 1px solid var(--border);
  padding-top: var(--space-lg);
}
.mission-stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.mission-stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}
.mission-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* ─── Services preview ───────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto var(--space-2xl);
}

.service-card {
  background: var(--bg-card);
  padding: var(--space-2xl) var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-glow);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover { background: var(--bg-secondary); }
.service-card:hover::after { opacity: 1; }

.service-card-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: var(--space-xl);
}
.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.service-card-arrow {
  position: absolute;
  bottom: var(--space-xl);
  right: var(--space-xl);
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s var(--ease-out);
}
.service-card:hover .service-card-arrow {
  color: var(--accent);
  transform: translate(4px, -4px);
}

/* ─── All services link ──────────────────────────────────── */
.services-footer {
  text-align: center;
}

/* ─── Gallery strip ──────────────────────────────────────── */
.gallery {
  overflow: hidden;
  padding: var(--space-3xl) 0;
  background: var(--bg-secondary);
}

.gallery-header {
  padding: 0 var(--space-2xl) var(--space-2xl);
}

.gallery-track {
  display: flex;
  gap: var(--space-lg);
  padding: 0 var(--space-2xl);
  will-change: transform;
  cursor: grab;
}
.gallery-track:active { cursor: grabbing; }

.gallery-item {
  flex-shrink: 0;
  width: clamp(260px, 28vw, 380px);
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.gallery-item-label {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(10,10,15,0.7);
  padding: 4px 10px;
}
.gallery-item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0.2;
}
.gallery-item-placeholder svg {
  width: 48px;
  height: 48px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.04); }

/* Mission photo */
.mission-photo {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.mission-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.4s ease;
}
.mission-photo:hover img { filter: grayscale(0%); }

/* ─── Contact CTA ────────────────────────────────────────── */
.cta-section {
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section .ghost {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 18rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.02;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.cta-section .label { margin-bottom: var(--space-lg); }
.cta-section .display-section { margin-bottom: var(--space-xl); max-width: 800px; margin-left: auto; margin-right: auto; }
.cta-section p { margin-bottom: var(--space-2xl); }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--accent-dim);
  padding: var(--space-xl) var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-motif {
  width: 32px;
  height: 32px;
  color: var(--accent);
  opacity: 0.6;
}

.footer-links {
  display: flex;
  gap: var(--space-xl);
}
.footer-links a {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--accent); }

.footer-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: right;
}

/* ─── Reveal animation base ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
}

/* ─── Page hero (inner pages) ────────────────────────────── */
.page-hero {
  padding: calc(var(--space-3xl) + 80px) var(--space-2xl) var(--space-2xl);
  position: relative;
  overflow: hidden;
}
.page-hero .ghost {
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 16rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.03;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

/* ─── Services page ──────────────────────────────────────── */
.services-list {
  max-width: 1200px;
  margin: 0 auto;
}

.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: var(--space-2xl);
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.service-row:first-child { border-top: 1px solid var(--border); }

.service-row-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  opacity: 0.5;
}
.service-row h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.service-row .service-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 3px 10px;
  margin-bottom: var(--space-lg);
}
.service-row-desc {
  padding-top: var(--space-xs);
}
.service-row-desc ul {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.service-row-desc ul li {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}
.service-row-desc ul li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
}

/* ─── About page ─────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
}
.value-card {
  background: var(--bg-card);
  padding: var(--space-2xl) var(--space-xl);
}
.value-card h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}
.value-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* ─── Contact page ───────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info h3 {
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  color: var(--text-muted);
}
.contact-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}
.contact-info a { color: var(--accent); }
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
}
.contact-detail-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-detail-value {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ─── Form ───────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.form-group label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-group select option { background: var(--bg-card); }

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-2xl);
}
.form-success h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  color: var(--accent);
}
.form-success p { color: var(--text-muted); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --space-2xl: 48px;
    --space-3xl: 80px;
  }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .mission { grid-template-columns: 1fr; gap: var(--space-xl); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 60px 1fr; }
  .service-row-desc { grid-column: 2; }
  .section-header { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --space-2xl: 24px;
    --space-3xl: 60px;
  }
  .nav { padding: var(--space-md) var(--space-lg); }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 0 var(--space-lg) 60px; }
  .hero-motif { display: none; }
  .hero-scroll { display: none; }

  .section { padding: var(--space-3xl) var(--space-lg); }

  .services-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }

  .service-row {
    grid-template-columns: 1fr;
  }
  .service-row-num { font-size: 2rem; }
  .service-row-desc { grid-column: 1; }

  .gallery-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    cursor: default;
    padding-bottom: var(--space-md);
  }
  .gallery-item { scroll-snap-align: start; }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xl) var(--space-lg);
  }
  .footer-legal { text-align: left; }

  .page-hero { padding: calc(var(--space-2xl) + 80px) var(--space-lg) var(--space-lg); }
  .page-hero .ghost { display: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .cta-section .display-section { font-size: clamp(1.8rem, 8vw, 3rem); }
}
