/* ============================================================
   LSI — Lynn Scott Inc.
   styles.css  —  "Golden particles drifting through deep navy"
   ============================================================ */

/* ── Custom properties ─────────────────────────────────────── */
:root {
  --bg:         #0d1424;   /* deep midnight navy            */
  --bg-2:       #1a2238;   /* lifted navy for layered cards */
  --gold:       #e8c547;   /* warm accent gold              */
  --gold-deep:  #b8932f;   /* deep gold — shadow / hover    */
  --smoke:      #4a4860;   /* smoky purple-gray mid-tone    */
  --haze:       #8a8aa3;   /* soft haze                     */
  --text:       #f4f1e8;   /* warm off-white                */
  --muted:      #9a9aad;   /* muted text                    */
  --border:     rgba(232, 197, 71, 0.14);

  --font: 'Poppins', sans-serif;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.76, 0, 0.24, 1);

  --glow: 0 0 32px rgba(232, 197, 71, 0.28);
}

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

html {
  overflow-x: hidden;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* base navy with a faint vertical lift toward purple-gray */
  background:
    linear-gradient(180deg, #0d1424 0%, #0f1730 55%, #0d1424 100%);
}

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

/* ── Utility ────────────────────────────────────────────────── */
.container {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 5rem);
}

.section-pad { padding-block: clamp(6rem, 14vh, 11rem); }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(2.5rem, 5vh, 4.5rem);
}

.section-title {
  font-size: clamp(2.5rem, 5.5vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: clamp(3rem, 7vh, 6rem);
}

/* ── Skip link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -200%;
  left: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 10001;
}
.skip-link:focus { top: 1.5rem; }

/* ── Focus visible ─────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* ============================================================
   Atmospheric background layers

   Stacking (low → high):
     .bg-atmosphere  z 0   — soft blurred radial glows
     #hexCanvas      z 1   — animated hexagons
     .grain          z 2   — noise texture
     main / footer   z 3   — content
     .nav            z 1000
     .cursor-dot     z 9999
     #preloader      z 10000
   ============================================================ */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 78% 18%,
      rgba(232, 197, 71, 0.16) 0%, transparent 70%),
    radial-gradient(ellipse 55% 45% at 15% 82%,
      rgba(74, 72, 96, 0.45) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 50% 50%,
      rgba(26, 34, 56, 0.6) 0%, transparent 75%);
  filter: blur(20px);
}

.hex-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: block;
}

/* SVG fractal-noise grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

/* Lift content above the fixed background layers */
main, .footer { position: relative; z-index: 3; }

/* ============================================================
   Custom Cursor
   ============================================================ */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(232, 197, 71, 0.7);
  transition:
    width  0.22s var(--ease-out),
    height 0.22s var(--ease-out),
    opacity 0.3s ease;
}
.cursor-dot.is-hovering { width: 40px; height: 40px; background: rgba(232, 197, 71, 0.25); }
.cursor-dot.is-clicking { transform: translate(-50%, -50%) scale(0.75); }
.cursor-dot.is-hidden   { opacity: 0; }

/* ============================================================
   Preloader
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.preloader-mark {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--text);
  text-shadow: 0 0 40px rgba(232, 197, 71, 0.25);
  opacity: 0;
  transform: translateY(20px);
}

.preloader-bar-track {
  width: clamp(160px, 28vw, 280px);
  height: 2px;
  background: rgba(232, 197, 71, 0.12);
  border-radius: 99px;
  overflow: hidden;
}

.preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--gold);
  border-radius: 99px;
  box-shadow: 0 0 14px rgba(232, 197, 71, 0.8);
  transition: width 0.1s linear;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.25rem, 2.5vh, 1.75rem) clamp(1.5rem, 5vw, 5rem);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(13, 20, 36, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.nav-logo:hover {
  color: var(--gold);
  text-shadow: 0 0 18px rgba(232, 197, 71, 0.6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.5rem);
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(232, 197, 71, 0.8);
  transition: width 0.35s var(--ease-out);
}
.nav-link:hover            { color: var(--gold); }
.nav-link:hover::after     { width: 100%; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(7rem, 15vh, 11rem);
  overflow: hidden;
}

.hero-inner {
  max-width: 1440px;
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 5rem);
}

.hero-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--haze);
  margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
  opacity: 0;            /* animated in by JS */
}

/* Headline — deliberately restrained so the hexagons lead */
.hero-headline {
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--text);
  margin-bottom: clamp(2rem, 4vh, 3.5rem);
}

/* Each line is overflow:hidden so chars clip correctly */
.split-line {
  display: block;
  overflow: hidden;
}

/* The "WEBSITES." accent line — glowing gold */
.hero-gold {
  color: var(--gold);
  text-shadow: 0 0 36px rgba(232, 197, 71, 0.4);
}

.hero-sub {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(1rem, 2vh, 2rem);
  opacity: 0;            /* animated in by JS */
}

.hero-tagline {
  font-size: clamp(0.875rem, 1.3vw, 1.05rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted);
  max-width: 300px;
}

/* Primary CTA button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 0 0 rgba(232, 197, 71, 0);
  transition: background 0.3s ease, box-shadow 0.35s ease, color 0.3s ease;
}
.btn-primary:hover {
  background: var(--text);
  box-shadow: var(--glow);
}

/* ── Marquee band ───────────────────────────────────────────── */
.marquee-band {
  overflow: hidden;
  border-top:    1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: clamp(4rem, 10vh, 8rem);
  padding-block: 1.1rem;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-band:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.m-word {
  font-size: clamp(0.75rem, 1.1vw, 0.9375rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--haze);
  padding-inline: 2rem;
}
.m-dot {
  color: var(--gold);
  font-size: 0.45rem;
  line-height: 1;
}

/* ── Scroll hint ────────────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 3rem);
  left: clamp(1.5rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;            /* animated in by JS */
}
.scroll-hint-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--haze);
}
.scroll-hint-line {
  width: 44px;
  height: 1px;
  background: rgba(138, 138, 163, 0.3);
  position: relative;
  overflow: hidden;
}
.scroll-hint-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ============================================================
   About
   ============================================================ */
.about { border-top: 1px solid var(--border); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 9rem);
  align-items: start;
}

.about-left h2 {
  font-size: clamp(1.875rem, 3.8vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  padding-top: 0.25rem;
}
.about-right p {
  font-size: clamp(0.9375rem, 1.15vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.78;
  color: var(--muted);
}

.about-pillars {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.pillar { display: flex; flex-direction: column; gap: 0.3rem; }
.pillar-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.pillar-name {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

/* ============================================================
   Services
   ============================================================ */
.services { border-top: 1px solid var(--border); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.service-card {
  background: linear-gradient(160deg, var(--bg-2) 0%, rgba(13, 20, 36, 0.9) 100%);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: clamp(2rem, 3.2vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  cursor: default;
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}
.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(232, 197, 71, 0.55);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4), var(--glow);
}
.service-card:focus-visible { outline: none; }

.service-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.service-title {
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}
.service-desc {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted);
  flex: 1;
}
.service-arrow {
  font-size: 1.5rem;
  color: var(--haze);
  align-self: flex-end;
  margin-top: 1rem;
  transition: transform 0.3s var(--ease-out), color 0.25s ease;
}
.service-card:hover .service-arrow,
.service-card:focus-visible .service-arrow {
  transform: translate(4px, -4px);
  color: var(--gold);
}

/* ============================================================
   Contact
   ============================================================ */
.contact { border-top: 1px solid var(--border); }

.contact-heading {
  font-size: clamp(4rem, 11vw, 12rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 0.88;
  margin-bottom: clamp(3rem, 7vh, 6rem);
  text-shadow: 0 0 50px rgba(232, 197, 71, 0.15);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.5vh, 1.25rem);
  margin-bottom: 2.5rem;
}

.contact-link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  width: fit-content;
  color: var(--text);
  transition: color 0.3s var(--ease-out), text-shadow 0.3s ease;
}
.contact-link:hover,
.contact-link:focus-visible {
  color: var(--gold);
  text-shadow: 0 0 28px rgba(232, 197, 71, 0.5);
}

/* Smaller, lighter name preceding the number */
.contact-name {
  font-size: clamp(0.875rem, 1.4vw, 2 rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--haze);
  transition: color 0.3s ease;
}
.contact-link:hover .contact-name,
.contact-link:focus-visible .contact-name { color: var(--gold-deep); }

/* Large, bold number / email */
.contact-value {
  font-size: clamp(1.5rem, 3.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.contact-note {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding-top:    clamp(4rem, 10vh, 7rem);
  padding-bottom: clamp(2rem, 4vh, 3rem);
  overflow: hidden;
}

/* Giant background wordmark */
.footer-wordmark {
  position: absolute;
  bottom: -0.18em;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(10rem, 28vw, 30rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 197, 71, 0.07);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
}

/* ── Social icons ───────────────────────────────────────────── */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.social-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(232, 197, 71, 0.4);
  color: var(--gold);
  transition:
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.35s ease,
    transform 0.3s var(--ease-out);
}
.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.social-icon:hover,
.social-icon:focus-visible {
  background: var(--gold);
  color: var(--bg);
  box-shadow: var(--glow);
  transform: translateY(-3px);
}

/* ============================================================
   Scroll reveal — initial hidden state; GSAP animates to visible
   ============================================================ */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

/* ============================================================
   Char animation helpers (manual text splitter)
   ============================================================ */
.char {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.char-inner { display: inline-block; }

/* ============================================================
   Reduced motion — disable animation/transition
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .marquee-track          { animation: none; }
  .scroll-hint-line::after{ animation: none; }
  .reveal-up              { opacity: 1; transform: none; }
  *, *::before, *::after  {
    transition-duration: 0.01ms !important;
    animation-duration:  0.01ms !important;
  }
}

/* ============================================================
   Responsive — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid    { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Responsive — 768px
   ============================================================ */
@media (max-width: 768px) {
  .nav-links { gap: 1.25rem; }
  .nav-link  { font-size: 0.75rem; }

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

  .hero-headline { font-size: clamp(2.5rem, 9vw, 3.5rem); }

  .hero-sub {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .about-pillars { gap: 1.75rem; flex-wrap: wrap; }

  .contact-heading { line-height: 0.92; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

/* ============================================================
   Responsive — 480px
   ============================================================ */
@media (max-width: 480px) {
  .nav-links { gap: 0.875rem; }

  .hero-headline { font-size: 2.5rem; }

  .contact-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .social-icon { width: 38px; height: 38px; }
}
