/* ============================================================
   Buckhead Southern Technologies — Landing Page
   Light, green-forward palette (CBRE greens)
   ============================================================ */

:root {
  --paper: #f4f7f3;        /* light sage-tinted page background */
  --paper-2: #ffffff;
  --ink: #0a2e21;          /* deep green text */
  --ink-soft: #41584d;
  --muted: #6b8377;
  --green: #003f2d;        /* CBRE green */
  --green-deep: #032a1f;
  --accent: #17e88f;       /* vivid accent */
  --accent-ink: #0e8c5c;   /* accent for light surfaces */
  --line: rgba(0, 63, 45, 0.12);
  --light-text: #eef6f1;
  --light-muted: rgba(238, 246, 241, 0.66);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --pad: clamp(1.25rem, 4vw, 4rem);
}

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

html { scroll-behavior: auto; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--green); color: var(--accent); }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* interactive dot field sits behind everything */
.dotgrid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
main, .footer, .nav { position: relative; z-index: 1; }

/* ============ Grain overlay ============ */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ============ Custom cursor ============ */
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; }
.cursor__dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--accent-ink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor__ring {
  position: fixed;
  width: 38px; height: 38px;
  border: 1.5px solid rgba(14, 140, 92, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0; color: var(--accent);
}
.cursor--hover .cursor__ring { width: 56px; height: 56px; background: rgba(23, 232, 143, 0.14); }
.cursor--view .cursor__ring {
  width: 76px; height: 76px;
  background: var(--green);
  border-color: var(--green);
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
}
.cursor--view .cursor__ring::after { content: "VIEW"; }
.cursor--view .cursor__dot { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ============ Preloader ============ */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.preloader__panel { position: absolute; inset: 0; }
.preloader__panel--1 { background: var(--paper); z-index: 1; }
.preloader__panel--2 { background: var(--green); z-index: 0; }
.preloader__inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
  text-align: center;
}
.preloader__mark {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green);
  display: block;
}
.preloader__tag {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}
.preloader__counter {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.preloader__bar {
  width: min(280px, 60vw); height: 2px;
  background: rgba(0, 63, 45, 0.14);
  overflow: hidden;
}
.preloader__bar span {
  display: block; width: 0%; height: 100%;
  background: var(--green);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.95rem 1.8rem;
  border-radius: 100px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition: color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.btn span { position: relative; z-index: 1; }
.btn svg { position: relative; z-index: 1; transition: transform 0.35s ease; }
.btn:hover svg { transform: translate(2px, -2px); }

.btn--primary { background: var(--accent); color: #02261b; }
.btn--primary::before {
  content: ""; position: absolute; inset: 0;
  background: var(--paper-2);
  transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  border-radius: inherit;
}
.btn--primary:hover::before { transform: translateY(0); }

.btn--ghost { border-color: rgba(238, 246, 241, 0.35); color: var(--light-text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--small { padding: 0.6rem 1.2rem; font-size: 0.82rem; }
.btn--large { padding: 1.2rem 2.4rem; font-size: clamp(0.95rem, 2vw, 1.15rem); }

/* ============ Navigation ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
.nav--scrolled {
  background: rgba(244, 247, 243, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__logo { display: flex; align-items: center; gap: 0.7rem; }
.nav__logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav__logo-text strong {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--light-text);
  transition: color 0.4s ease;
}
.nav__logo-text em {
  font-style: normal; font-size: 0.66rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--light-muted);
  transition: color 0.4s ease;
}
.nav--scrolled .nav__logo-text strong { color: var(--ink); }
.nav--scrolled .nav__logo-text em { color: var(--muted); }

.nav__links { display: flex; gap: 2.2rem; }
.nav__links a {
  font-size: 0.85rem; font-weight: 500;
  color: var(--light-muted);
  position: relative;
  transition: color 0.3s ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav__links a:hover { color: var(--light-text); }
.nav--scrolled .nav__links a { color: var(--ink-soft); }
.nav--scrolled .nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  color: var(--light-text);
  border-color: rgba(238, 246, 241, 0.35);
  transition: color 0.4s ease, border-color 0.4s ease;
}
.nav__cta:hover { border-color: var(--accent); color: var(--accent); }
.nav--scrolled .nav__cta { color: var(--green); border-color: rgba(0, 63, 45, 0.35); }
.nav--scrolled .nav__cta:hover { border-color: var(--accent-ink); color: var(--accent-ink); }

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__logo-text em { display: none; }
}

/* ============ Hero (deep CBRE green, not black) ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 7rem var(--pad) 4rem;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 78% 0%, #0c6347 0%, #07503a 30%, #053d2d 58%, var(--green-deep) 100%);
  border-radius: 0 0 32px 32px;
  color: var(--light-text);
}
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.hero__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 95% 75% at 32% 45%, transparent 35%, rgba(3, 42, 31, 0.55) 100%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 2; max-width: 1100px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--light-muted);
  margin-bottom: 2rem;
  border: 1px solid rgba(23, 232, 143, 0.25);
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  background: rgba(3, 42, 31, 0.4);
  backdrop-filter: blur(6px);
}
.hero__eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8.5vw, 7.2rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 2.2rem;
  color: #f6fbf8;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__line-inner { display: inline-block; will-change: transform; }
.hero__accent { font-style: normal; color: var(--accent); }

.hero__sub {
  max-width: 540px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--light-muted);
  margin-bottom: 2.6rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__scroll {
  position: absolute;
  bottom: 2.2rem; right: var(--pad);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--light-muted);
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============ Sections (shared) ============ */
.section { padding: clamp(5rem, 12vw, 9rem) var(--pad); position: relative; }
.section__head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section__eyebrow {
  font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 600;
  margin-bottom: 1rem;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}

/* ============ Statement ============ */
.statement {
  padding: clamp(6rem, 14vw, 11rem) var(--pad);
  max-width: 1200px;
}
.statement__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.9rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--green);
}
.statement__text .word { opacity: 0.13; display: inline-block; }

/* ============ Services ============ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1.2rem;
}
.service-card {
  position: relative;
  padding: 2.2rem 1.9rem 2.6rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(3, 42, 31, 0.04);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.45s ease, box-shadow 0.45s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 63, 45, 0.35);
  box-shadow: 0 18px 40px -18px rgba(3, 42, 31, 0.25);
}
.service-card__num {
  position: absolute; top: 1.4rem; right: 1.6rem;
  font-family: var(--font-display);
  font-size: 0.8rem; color: var(--muted);
}
.service-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(0, 63, 45, 0.06);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  margin-bottom: 1.6rem;
  transition: background 0.4s ease, transform 0.4s ease, color 0.4s ease;
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card:hover .service-card__icon {
  background: var(--green);
  color: var(--accent);
  transform: rotate(-6deg) scale(1.06);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.service-card p { font-size: 0.92rem; color: var(--ink-soft); }
.service-card__line {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-ink));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-card__line { transform: scaleX(1); }

/* ============ Work ============ */
.work__list { display: flex; flex-direction: column; gap: clamp(2rem, 5vw, 3.5rem); }
.work-item {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper-2);
  box-shadow: 0 1px 2px rgba(3, 42, 31, 0.04);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.work-item:nth-child(even) { grid-template-columns: 1fr 1.35fr; }
.work-item:nth-child(even) .work-item__visual { order: 2; }
.work-item:hover {
  border-color: rgba(0, 63, 45, 0.35);
  box-shadow: 0 22px 48px -20px rgba(3, 42, 31, 0.28);
}

.work-item__visual {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.work-item__visual--a { background: linear-gradient(135deg, #0a5a40 0%, #032a1f 75%); }
.work-item__visual--b { background: linear-gradient(135deg, #0e8c5c 0%, #02392a 80%); }
.work-item__visual--c { background: linear-gradient(135deg, #00553c 0%, #021f17 75%); }
.work-item__visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(23, 232, 143, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 232, 143, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
}
.work-item__shape {
  width: 38%;
  aspect-ratio: 1;
  border: 1.5px solid rgba(23, 232, 143, 0.6);
  border-radius: 26%;
  position: relative;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-item__shape::after {
  content: "";
  position: absolute; inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 232, 143, 0.55), transparent 70%);
  filter: blur(6px);
}
.work-item:hover .work-item__shape { transform: rotate(45deg) scale(1.1); }

.work-item__meta { padding: 0.5rem 0.5rem 0.5rem 0; }
.work-item__index {
  font-family: var(--font-display);
  font-size: 0.8rem; color: var(--accent-ink);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.work-item__meta h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  margin: 0.7rem 0 0.5rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.work-item__meta p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.1rem; }
.work-item__tags {
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  display: inline-block;
}

@media (max-width: 760px) {
  .work-item, .work-item:nth-child(even) { grid-template-columns: 1fr; }
  .work-item:nth-child(even) .work-item__visual { order: 0; }
}

/* ============ Process ============ */
.process__steps { display: flex; flex-direction: column; }
.process-step {
  display: grid;
  grid-template-columns: minmax(70px, 160px) 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.8rem, 4vw, 2.8rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.process-step:first-child { border-top: 1px solid var(--line); }
.process-step__num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 400;
  color: var(--accent-ink);
  line-height: 1;
}
.process-step__body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.process-step__body p { color: var(--ink-soft); max-width: 560px; font-size: 0.95rem; }

/* ============ CTA (deep green panel) ============ */
.cta { padding: clamp(3rem, 6vw, 5rem) var(--pad) clamp(5rem, 9vw, 7rem); }
.cta__inner {
  position: relative;
  text-align: center;
  background:
    radial-gradient(110% 120% at 50% 0%, #0a5a40 0%, #064534 40%, var(--green) 75%, var(--green-deep) 100%);
  border-radius: 32px;
  padding: clamp(4.5rem, 10vw, 8rem) var(--pad);
  overflow: hidden;
  color: var(--light-text);
}
.cta__inner::before {
  content: "";
  position: absolute;
  left: 50%; top: 60%;
  width: min(900px, 120vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(23, 232, 143, 0.16), transparent 60%);
  pointer-events: none;
}
.cta .section__eyebrow { color: var(--accent); position: relative; }
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 1.6rem;
  color: #f6fbf8;
  position: relative;
}
.cta__title em { font-style: normal; color: var(--accent); }
.cta__sub { color: var(--light-muted); margin-bottom: 2.8rem; font-size: 1.02rem; position: relative; }
.cta .btn { position: relative; }
.cta__contact {
  position: relative;
  margin-top: 1.8rem;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 0.9rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--light-text);
}
.cta__contact a { transition: color 0.3s ease; }
.cta__contact a:hover { color: var(--accent); }
.cta__contact-sep { color: rgba(238, 246, 241, 0.4); }
.cta__contact span:last-child { color: var(--light-muted); }

/* ============ Footer (CBRE green) ============ */
.footer {
  background: var(--green);
  color: var(--light-text);
  padding: 3rem var(--pad) 2rem;
  border-radius: 32px 32px 0 0;
}
.footer__top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.footer__logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.4rem;
  color: var(--accent);
}
.footer__links { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer__links a {
  font-size: 0.85rem; color: var(--light-muted);
  transition: color 0.3s ease;
}
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(238, 246, 241, 0.14);
  font-size: 0.78rem; color: var(--light-muted);
}

/* ============ Reveal defaults (no-JS safe) ============ */
[data-reveal] { opacity: 0; transform: translateY(40px); }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
