/* =====================================================
   THE NORDIC HORIZON — STYLESHEET
   Design: Dark aurora / Nordic precision
   ===================================================== */

/* ---- DESIGN TOKENS ---- */
:root {
  --bg:          #070a12;
  --surface:     #0d1120;
  --surface-2:   #131929;
  --teal:        #00c9a7;
  --teal-10:     rgba(0, 201, 167, 0.10);
  --teal-20:     rgba(0, 201, 167, 0.20);
  --teal-glow:   rgba(0, 201, 167, 0.35);
  --purple:      #8b5cf6;
  --purple-10:   rgba(139, 92, 246, 0.10);
  --gold:        #ffd166;
  --orange:      #f97316;
  --text:        #e2e8f0;
  --text-dim:    #94a3b8;
  --text-muted:  #4b5563;
  --border:      rgba(255, 255, 255, 0.07);
  --border-hover:rgba(255, 255, 255, 0.14);
  --nav-h:       72px;
  --max-w:       1200px;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);
  --r-sm:        10px;
  --r-md:        16px;
  --r-lg:        24px;
  --font-display:'Syne', sans-serif;
  --font-body:   'Inter', sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
ul, ol { list-style: none; }

/* ---- GRAIN OVERLAY ---- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9000;
  will-change: opacity;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

/* =====================================================
   LAYOUT HELPERS
   ===================================================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* =====================================================
   CUSTOM CURSOR  (desktop pointer only)
   ===================================================== */
.cursor,
.cursor-follower { display: none; }

@media (pointer: fine) {
  .cursor,
  .cursor-follower {
    display: block;
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    will-change: left, top;
    transition: opacity 0.3s;
  }
  .cursor {
    width: 7px; height: 7px;
    background: var(--teal);
    transform: translate(-50%, -50%);
  }
  .cursor-follower {
    width: 32px; height: 32px;
    border: 1.5px solid rgba(0, 201, 167, 0.45);
    transform: translate(-50%, -50%);
    transition: width 0.35s var(--ease),
                height 0.35s var(--ease),
                border-color 0.35s;
  }
  body:has(a:hover) .cursor-follower,
  body:has(button:hover) .cursor-follower {
    width: 50px; height: 50px;
    border-color: var(--teal);
  }
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 800;
  transition: background 0.5s, border-color 0.5s, backdrop-filter 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 10, 18, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.975rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--teal-10) !important;
  border: 1px solid rgba(0, 201, 167, 0.22) !important;
  padding: 0.45rem 1.2rem;
  border-radius: 100px;
  color: var(--teal) !important;
  transition: background 0.25s, border-color 0.25s !important;
}
.nav-cta:hover {
  background: var(--teal-20) !important;
  border-color: rgba(0, 201, 167, 0.45) !important;
  color: var(--teal) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.hamburger.open span:first-child { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:last-child  { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  transform: translateX(100%);
  transition: transform 0.55s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3.25rem);
  font-weight: 700;
  color: var(--text-dim);
  transition: color 0.2s;
}
.mobile-link:hover, .mobile-link--cta { color: var(--teal); }

/* =====================================================
   AURORA COMPONENT  (reusable)
   ===================================================== */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.aurora-blob--1 {
  width: 65vw; height: 65vw;
  background: radial-gradient(circle, var(--teal) 0%, transparent 65%);
  opacity: 0.18;
  top: -25%; left: -12%;
  animation: blob-drift-1 14s ease-in-out infinite alternate;
}
.aurora-blob--2 {
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, var(--purple) 0%, transparent 65%);
  opacity: 0.16;
  top: 5%; right: -18%;
  animation: blob-drift-2 18s ease-in-out infinite alternate;
}
.aurora-blob--3 {
  width: 45vw; height: 45vw;
  background: radial-gradient(circle, #0e5f78 0%, transparent 65%);
  opacity: 0.2;
  bottom: -15%; left: 28%;
  animation: blob-drift-3 11s ease-in-out infinite alternate;
}
@keyframes blob-drift-1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6%, 10%) scale(1.12); }
}
@keyframes blob-drift-2 {
  from { transform: translate(0, 0) scale(1.08); }
  to   { transform: translate(-9%, 6%) scale(1); }
}
@keyframes blob-drift-3 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(5%, -8%) scale(1.18); }
}
.aurora--contact .aurora-blob--1 { opacity: 0.1; }
.aurora--contact .aurora-blob--2 { opacity: 0.09; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 5rem) 0 7rem;
}

/* Dot-grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* Eyebrow pill */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 0.4rem 1rem;
  background: var(--teal-10);
  border: 1px solid rgba(0, 201, 167, 0.22);
  border-radius: 100px;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fade-up 0.9s var(--ease) 0.15s forwards;
}

/* Headline */
.hero-headline {
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  font-weight: 800;
  line-height: 1.0;
  margin-bottom: 2rem;
}
.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(65px);
}
.hero-line:nth-child(1) { animation: slide-up 0.85s var(--ease) 0.35s forwards; }
.hero-line:nth-child(2) { animation: slide-up 0.85s var(--ease) 0.50s forwards; }
.hero-line:nth-child(3) { animation: slide-up 0.85s var(--ease) 0.65s forwards; }

/* Gradient text on middle line */
.hero-line--accent {
  background: linear-gradient(110deg, var(--teal) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 540px;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.75;
  margin-bottom: 2.75rem;
  opacity: 0;
  animation: fade-up 0.85s var(--ease) 0.8s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fade-up 0.85s var(--ease) 0.95s forwards;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  animation: fade-up 0.85s var(--ease) 1.3s forwards;
}
.scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(180deg, var(--teal), transparent);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); transform-origin: top; }
  50%       { opacity: 0.9; }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  border: none;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s;
  will-change: transform;
}
.btn--primary {
  background: linear-gradient(135deg, var(--teal), #009e85);
  color: #031a14;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px var(--teal-glow);
}
.btn--ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.04);
}
.btn--large { padding: 1.125rem 2.5rem; font-size: 1rem; }

/* =====================================================
   MARQUEE
   ===================================================== */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 0.95rem 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.marquee-track span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.marquee-track .dot { color: var(--teal); }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================================================
   SECTION SHARED STYLES
   ===================================================== */
.services, .work, .about, .process,
.testimonials, .stats, .contact {
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.section-header { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.section-desc {
  max-width: 540px;
  color: var(--text-dim);
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* =====================================================
   SCROLL REVEAL
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   SERVICES
   ===================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.service-card {
  background: var(--bg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  transition: background 0.3s;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--teal-10), var(--purple-10));
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.service-card:hover { background: var(--surface); }
.service-card:hover::before { opacity: 1; }

/* tilt via JS */
.service-card { will-change: transform; }

.service-icon {
  width: 44px; height: 44px;
  color: var(--teal);
  margin-bottom: 1.5rem;
  position: relative;
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 1.175rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  position: relative;
}
.service-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.72;
  margin-bottom: 1.25rem;
  position: relative;
}
.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  position: relative;
}
.service-pills span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
}

/* =====================================================
   STATS
   ===================================================== */
.stats {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat {
  text-align: center;
  position: relative;
}
.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 52px;
  background: var(--border);
}
.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1em;
  margin-bottom: 0.4rem;
}
.stat-number,
.stat-prefix,
.stat-suffix {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}
.stat-number { font-size: clamp(2.5rem, 5vw, 3.75rem); }
.stat-prefix, .stat-suffix { font-size: clamp(1.25rem, 2.5vw, 2rem); }
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* =====================================================
   WORK / CASE STUDIES
   ===================================================== */
.work { background: var(--surface); }
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.work-card--large { grid-column: 1 / -1; }
.work-card {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.work-card-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
  will-change: transform;
}
.work-card:hover .work-card-bg {
  opacity: 0.18;
  transform: scale(1.06);
}
.work-card-bg--1 { background: linear-gradient(135deg, var(--teal), var(--purple)); }
.work-card-bg--2 { background: linear-gradient(135deg, var(--purple), #e879f9); }
.work-card-bg--3 { background: linear-gradient(135deg, var(--gold), var(--orange)); }

.work-content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 4vw, 3rem);
}
.work-card--large .work-content { min-height: 360px; }
.work-card:not(.work-card--large) .work-content { min-height: 280px; }

.work-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.85rem;
}
.work-card h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  max-width: 560px;
}
.work-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 520px;
}
.work-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.metric strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.metric span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* =====================================================
   PROCESS
   ===================================================== */
.process-steps {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.process-step {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.75rem;
  align-items: start;
  padding: 2.25rem 2.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.process-step:last-child { border-bottom: none; }
.process-step::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--teal), var(--purple));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease);
}
.process-step:hover { background: var(--surface); }
.process-step:hover::before { transform: scaleY(1); }

.step-number {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  user-select: none;
  transition: color 0.3s;
  padding-top: 0.2rem;
}
.process-step:hover .step-number { color: rgba(0, 201, 167, 0.18); }
.step-body { padding-top: 0.25rem; }
.step-body h3 {
  font-size: 1.275rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.step-body p {
  color: var(--text-dim);
  font-size: 0.9375rem;
  line-height: 1.72;
  max-width: 620px;
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.35s var(--ease);
}
.testimonial::after {
  content: '\201C';
  position: absolute;
  top: -1.25rem; right: 1.5rem;
  font-family: var(--font-display);
  font-size: 9rem;
  line-height: 1;
  color: var(--teal);
  opacity: 0.055;
  pointer-events: none;
  font-weight: 800;
}
.testimonial:hover {
  border-color: rgba(0, 201, 167, 0.3);
  transform: translateY(-5px);
}
.testimonial p {
  font-size: 0.9375rem;
  line-height: 1.78;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
}
.testimonial footer { position: relative; z-index: 1; }
.testimonial cite { font-style: normal; }
.testimonial cite strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.testimonial cite::after {
  content: attr(data-role);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* =====================================================
   ABOUT
   ===================================================== */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.about-text .section-title { margin-bottom: 1.5rem; }
.about-text p {
  color: var(--text-dim);
  font-size: 1.025rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.about-text .btn { margin-top: 1.5rem; }

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.about-card-glow {
  position: absolute;
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
  opacity: 0.07;
  top: -90px; right: -90px;
  pointer-events: none;
}
.about-values { display: flex; flex-direction: column; gap: 1.75rem; }
.value-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.value-icon {
  color: var(--teal);
  font-size: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.value-item div { display: flex; flex-direction: column; gap: 0.2rem; }
.value-item strong { font-size: 0.9375rem; font-weight: 600; }
.value-item span { font-size: 0.85rem; color: var(--text-muted); }

/* =====================================================
   CONTACT
   ===================================================== */
.contact {
  position: relative;
  background: var(--surface);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.contact .section-title { margin-bottom: 1rem; }
.contact-desc {
  color: var(--text-dim);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 480px;
}

/* Contact detail pills */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2.5rem;
}
.contact-detail {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: .5rem 1rem;
  border-radius: 100px;
  background: var(--bg);
  border: 1px solid var(--border-hover);
  transition: color .2s, border-color .2s;
}
a.contact-detail:hover {
  color: var(--teal);
  border-color: var(--teal-edge);
}
.contact-detail svg { flex-shrink: 0; color: var(--teal); }

/* Honeypot — visually hidden from humans, bots fill it */
.hp-wrap {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}


/* Inline form feedback message */
.form-msg {
  font-size: .9rem;
  padding: .75rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
}
.form-msg[data-type="success"] {
  background: rgba(34, 197, 94, .08);
  border-color: rgba(34, 197, 94, .25);
  color: #4ade80;
}
.form-msg[data-type="error"] {
  background: rgba(239, 68, 68, .08);
  border-color: rgba(239, 68, 68, .25);
  color: #f87171;
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.875rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  resize: vertical;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(0, 201, 167, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.08);
}
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%234b5563' stroke-width='1.75' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}
.form-group select option { background: var(--surface-2); }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: clamp(3.5rem, 6vw, 5rem) 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.footer-brand .logo { margin-bottom: 1.1rem; }
.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 230px;
  line-height: 1.65;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-self: end;
}
.footer-col { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col strong {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}
.footer-col a { font-size: 0.875rem; color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--teal); }

/* Footer contact info */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: 1.25rem;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .825rem;
  color: var(--text-muted);
  line-height: 1.5;
  transition: color .2s;
}
a.footer-contact-item:hover { color: var(--teal); }
.footer-contact-item svg { flex-shrink: 0; color: var(--teal); margin-top: .1rem; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p, .footer-legal a { font-size: 0.8rem; color: var(--text-muted); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a:hover { color: var(--text-dim); }

/* =====================================================
   KEYFRAMES
   ===================================================== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(65px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   RESPONSIVE — TABLET  (≤1024px)
   ===================================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid .testimonial:nth-child(3) { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-nav { justify-self: start; }
}

/* =====================================================
   RESPONSIVE — MOBILE  (≤768px)
   ===================================================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { padding-bottom: 5rem; }
  .hero-headline { font-size: clamp(2.5rem, 11vw, 4.5rem); }

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

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat + .stat::before { display: none; }
  .stat:nth-child(1)::after,
  .stat:nth-child(3)::after {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 52px;
    background: var(--border);
  }

  .work-grid { grid-template-columns: 1fr; }
  .work-card--large { grid-column: 1; }

  .process-step {
    grid-template-columns: 3rem 1fr;
    padding: 1.75rem 1.5rem;
    gap: 1.25rem;
  }
  .step-number { font-size: 2rem; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-grid .testimonial:nth-child(3) { grid-column: 1; }

  .about-inner { grid-template-columns: 1fr; }
  .about-card-wrap { order: -1; }

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

  .footer-nav { grid-template-columns: 1fr 1fr; }
}

/* =====================================================
   RESPONSIVE — SMALL MOBILE  (≤480px)
   ===================================================== */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-nav { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-line, .hero-eyebrow, .hero-sub, .hero-actions, .hero-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
