:root {
  --dark: #1e1b18;
  --green-light: #50dd15;
  --green-dark: #014c59;
  --cream: #f0f4f0;
  --mid: #2a2724;
  --text-muted: #8a8580;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* Custom cursor */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--green-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.3s, height 0.3s, opacity 0.3s;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(80,221,21,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.3s, height 0.3s;
}
body:hover .cursor { opacity: 1; }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px clamp(20px, 4vw, 40px);
  background: linear-gradient(to bottom, rgba(30,27,24,0.95), transparent);
  backdrop-filter: blur(0px);

}



.nav-logo img {
  display: flexbox;
  height: 124px;  /* Change this to scale the logo up or down */
  width: auto;    /* This forces the width to match the image's true proportions */
  padding: 0px;
}

.nav-wordmark {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--cream);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--green-light); }

.nav-cta {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--green-light);
  padding: 10px 20px;
  border-radius: 2px;
  text-decoration: none;
  transition: opacity 0.3s;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { opacity: 0.85; }

/* ─── HERO ─── */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

#three-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  /* top right bottom left */
  padding: 50px clamp(20px, 4vw, 60px) 0 clamp(20px, 4vw, 60px);
  max-width: 900px;
  width: 100%;
}

.hero-label {

  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.9s 0.3s ease forwards;
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.9s 0.5s ease forwards;
}

.hero-headline .accent {
  background: linear-gradient(135deg, var(--green-light) 0%, var(--green-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  line-height: 1.7;
  color: rgba(240,244,240,0.65);
  max-width: 480px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.9s 0.7s ease forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.9s ease forwards;
}

.btn-primary {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--green-light);
  color: var(--dark);
  padding: 14px 28px;
  border-radius: 2px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(80,221,21,0.25);
}

.btn-ghost {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
  white-space: nowrap;
}
.btn-ghost:hover { color: var(--green-light); }
.btn-ghost .arrow { transition: transform 0.3s; }
.btn-ghost:hover .arrow { transform: translateX(5px); }

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: clamp(20px, 4vw, 60px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeUp 1s 1.2s ease forwards;
}

.scroll-line {
  width: 36px;
  height: 1px;
  background: var(--text-muted);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--green-light);
  animation: scrollSlide 2s 1.5s ease infinite;
}

/* ─── TICKER ─── */
.ticker-wrap {
  background: var(--green-light);
  overflow: hidden;
  padding: 12px 0;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  animation: ticker 30s linear infinite;
  gap: 0;
}
.ticker-item {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark);
  padding: 0 36px;
}
.ticker-sep {
  color: var(--dark);
  opacity: 0.4;
  padding: 0;
}

/* ─── SECTION COMMON ─── */
section {
  padding: clamp(64px, 8vw, 120px) clamp(20px, 4vw, 60px);
}

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--green-light);
  flex-shrink: 0;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

/* ─── ABOUT ─── */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-card {
  background: var(--mid);
  border: 1px solid rgba(80,221,21,0.08);
  border-radius: 4px;
  padding: clamp(24px, 3vw, 48px);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--green-light), var(--green-dark));
}

.about-card .section-label { margin-bottom: 16px; }

.about-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.5vw, 32px);
  margin-top: clamp(28px, 3vw, 48px);
}
.about-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.about-stat-value {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--green-light);
  line-height: 1;
  margin-bottom: 6px;
}
.about-stat-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.about-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(240,244,240,0.7);
  margin-bottom: 16px;
}

.about-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.pill {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 1px solid rgba(80,221,21,0.3);
  border-radius: 100px;
  color: var(--green-light);
  white-space: nowrap;
}

/* ─── SERVICES ─── */
#services { background: rgba(255,255,255,0.015); }

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(40px, 5vw, 80px);
  gap: 24px;
}

.services-header > p {
  max-width: 320px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
  flex-shrink: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.service-card {
  background: var(--mid);
  padding: clamp(28px, 3vw, 48px) clamp(20px, 2.5vw, 40px);
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
  cursor: default;
}
.service-card:hover { background: #302c28; }

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(to right, var(--green-light), var(--green-dark));
  transition: width 0.5s ease;
}
.service-card:hover::after { width: 100%; }

.service-number {
  font-family: 'Syne', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.service-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--cream);
}

.service-desc {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ─── APPROACH ─── */
#approach {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.approach-sticky {
  position: sticky;
  top: 120px;
}

.approach-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(240,244,240,0.65);
  margin-top: 20px;
}

.approach-steps {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step {
  padding: clamp(24px, 3vw, 36px) clamp(20px, 2.5vw, 40px);
  background: var(--mid);
  border-left: 2px solid transparent;
  transition: border-color 0.3s, background 0.3s;
  cursor: default;
}
.step:hover {
  border-left-color: var(--green-light);
  background: #2a2724;
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--green-light);
}

.step-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cream);
  margin-top: 12px;
  margin-bottom: 10px;
}

.step-body {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ─── EXPERTISE ─── */
#expertise {
  text-align: center;
}

.expertise-intro {
  max-width: 580px;
  margin: 0 auto clamp(48px, 6vw, 80px);
}
.expertise-intro p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(240,244,240,0.65);
  margin-top: 18px;
}

.expertise-hex-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.expertise-item {
  background: var(--mid);
  border: 1px solid rgba(255,255,255,0.04);
  padding: clamp(24px, 2.5vw, 36px) clamp(16px, 2vw, 24px);
  border-radius: 2px;
  text-align: left;
  transition: border-color 0.3s, transform 0.3s;
  cursor: default;
}
.expertise-item:hover {
  border-color: rgba(80,221,21,0.2);
  transform: translateY(-4px);
}

.expertise-icon { font-size: 1.4rem; margin-bottom: 14px; }

.expertise-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 6px;
}

.expertise-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Horizon band */
.horizon-band {
  background: linear-gradient(135deg, var(--green-dark) 0%, #012a30 100%);
  padding: clamp(64px, 8vw, 100px) clamp(20px, 4vw, 60px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.horizon-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2350dd15' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.horizon-text { position: relative; }
.horizon-text .section-title { color: var(--cream); }
.horizon-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(240,244,240,0.7);
  margin-top: 18px;
  margin-bottom: 32px;
}

.horizon-tags { position: relative; }
.horizon-tags-title {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240,244,240,0.4);
  margin-bottom: 16px;
}
.horizon-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.horizon-tag {
  font-size: 0.74rem;
  padding: 8px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  color: var(--cream);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ─── CONTACT ─── */
#contact { text-align: center; }

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact-inner p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(240,244,240,0.6);
  margin: 18px 0 40px;
}

.contact-email {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: clamp(1rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--green-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(80,221,21,0.3);
  padding-bottom: 4px;
  transition: border-color 0.3s;
  word-break: break-all;
}
.contact-email:hover { border-color: var(--green-light); }

/* ─── FOOTER ─── */
footer {
  background: rgba(0,0,0,0.4);
  padding: 32px clamp(20px, 4vw, 60px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s;
  white-space: nowrap;
}
.footer-links a:hover { color: var(--green-light); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes scrollSlide {
  0%   { left: -100%; }
  100% { left: 100%; }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════ */

@media (max-width: 1024px) {
  .nav-links { gap: 24px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .expertise-hex-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  nav { padding: 18px 20px; }
  .logo-mark { width: 28px; height: 28px; }
  .nav-wordmark { font-size: 0.9rem; }

  #about {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-card { padding: 24px; }
  .about-card::before { width: 2px; }

  .about-stat-grid { gap: 20px; }

  #approach {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .approach-sticky { position: static; }

  .services-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 40px;
  }
  .services-header > p { max-width: 100%; }

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

  .horizon-band {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-links { justify-content: center; }

  .hero-scroll-hint { display: none; }
}

@media (max-width: 520px) {
  .nav-cta { padding: 8px 14px; font-size: 0.65rem; }

  .hero-headline { font-size: clamp(2rem, 10vw, 3rem); }

  .hero-sub { font-size: 0.88rem; max-width: 100%; }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .btn-primary {
    padding: 12px 24px;
    font-size: 0.74rem;
    text-align: center;
    width: 100%;
  }

  .btn-ghost { font-size: 0.74rem; }

  .about-stat-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .about-stat-value { font-size: 1.3rem; }

  .about-pill-row { gap: 6px; }
  .pill { font-size: 0.62rem; padding: 6px 12px; }

  .service-card { padding: 24px 20px; }
  .step { padding: 20px; }

  .expertise-hex-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .expertise-item { padding: 20px 16px; }

  .horizon-tag { font-size: 0.68rem; padding: 7px 12px; }
}

@media (max-width: 380px) {
  .about-stat-grid { grid-template-columns: 1fr; gap: 16px; }
  .expertise-hex-grid { grid-template-columns: 1fr; }
  .ticker-item { padding: 0 24px; font-size: 0.6rem; }
}

@media (hover: none) and (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none !important; }
}