/* ============================================================
   ALPINE STUDIO — main.css
   Premium dark web studio site styles

   TABLE OF CONTENTS
   1.  Variables & Reset
   2.  Base & Typography
   3.  Layout Utilities
   4.  Buttons & Tags
   5.  Loader
   6.  Header & Navigation
   7.  Hero Section
   8.  Marquee Bar
   9.  Section Headers
   10. Services
   11. Process
   12. Portfolio
   13. About
   14. Testimonials
   15. CTA Section
   16. Footer
   17. Scroll Animations
   18. Responsive Breakpoints
============================================================ */

/* ============================================================
   1. VARIABLES & RESET
============================================================ */

:root {
  /* ── Color Palette ───────────────────────────────────── */
  --c-bg-base:        #080808;   /* deepest background */
  --c-bg-alt:         #0c0c0c;   /* alternate section bg */
  --c-bg-surface:     #111111;   /* card surfaces */
  --c-bg-card:        #151515;   /* card/component bg */
  --c-bg-card-hover:  #1a1a1a;   /* card hover state */
  --c-bg-overlay:     #1e1e1e;   /* modals / elevated */

  --c-border:         rgba(255, 255, 255, 0.07);   /* default borders */
  --c-border-subtle:  rgba(255, 255, 255, 0.04);   /* ultra-subtle dividers */
  --c-border-med:     rgba(255, 255, 255, 0.11);   /* slightly more visible */

  /* ── Accent: #03adfc (use sparingly) ────────────────── */
  --c-accent:         #03adfc;
  --c-accent-dim:     rgba(3, 173, 252, 0.12);
  --c-accent-glow:    rgba(3, 173, 252, 0.06);
  --c-accent-border:  rgba(3, 173, 252, 0.25);
  --c-accent-hover:   #1fbfff;

  /* ── Text ────────────────────────────────────────────── */
  --c-text-primary:   #efefef;
  --c-text-secondary: #888888;
  --c-text-muted:     #484848;
  --c-text-accent:    #03adfc;

  /* ── Typography ──────────────────────────────────────── */
  /* Change font names here to swap the pairing site-wide */
  --font-display: 'Montserrat', 'Arial Black', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ── Font Sizes (fluid clamp scale) ─────────────────── */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  clamp(1.5rem, 2vw, 1.75rem);
  --text-3xl:  clamp(1.75rem, 3vw, 2.25rem);
  --text-4xl:  clamp(2.25rem, 4vw, 3rem);
  --text-5xl:  clamp(3rem, 5vw, 4.5rem);
  --text-hero: clamp(3.5rem, 7vw, 6rem);

  /* ── Spacing ─────────────────────────────────────────── */
  --sp-1:   0.25rem;
  --sp-2:   0.5rem;
  --sp-3:   0.75rem;
  --sp-4:   1rem;
  --sp-6:   1.5rem;
  --sp-8:   2rem;
  --sp-10:  2.5rem;
  --sp-12:  3rem;
  --sp-16:  4rem;
  --sp-20:  5rem;
  --sp-24:  6rem;
  --sp-32:  8rem;
  --sp-40:  10rem;

  /* ── Layout ──────────────────────────────────────────── */
  --container-max:  1280px;
  --container-pad:  clamp(1.25rem, 4vw, 2.5rem);
  --section-pad:    clamp(5rem, 10vw, 9rem);

  /* ── Borders / Radius ────────────────────────────────── */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-full: 999px;

  /* ── Transitions ─────────────────────────────────────── */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --ease-inout: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:     160ms;
  --t-base:     260ms;
  --t-slow:     480ms;
  --t-slower:   700ms;

  /* ── Shadows ─────────────────────────────────────────── */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.5);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.6);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.7);
  --shadow-accent: 0 0 40px rgba(3, 173, 252, 0.15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--c-bg-base);
  color: var(--c-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ============================================================
   2. BASE & TYPOGRAPHY
============================================================ */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--c-text-primary);
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-5xl); }
h3 { font-size: var(--text-2xl); }

em {
  font-style: italic;
  color: var(--c-text-primary);
}

p {
  color: var(--c-text-secondary);
  line-height: 1.75;
  font-size: var(--text-base);
  font-weight: 300;
}

/* ── Eyebrow Tag ─────────────────────────────────────────── */
.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
}

/* ============================================================
   3. LAYOUT UTILITIES
============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-pad);
  position: relative;
}

.section--dark {
  background-color: var(--c-bg-alt);
}

/* ============================================================
   4. BUTTONS & UI TAGS
============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  padding: 0.7em 1.4em;
  transition:
    background var(--t-base) var(--ease-out),
    color var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Accent button — primary action */
.btn--accent {
  background: var(--c-accent);
  color: #000;
  border-color: var(--c-accent);
}
.btn--accent:hover {
  background: var(--c-accent-hover);
  border-color: var(--c-accent-hover);
  box-shadow: 0 0 24px rgba(3, 173, 252, 0.3);
}

/* Outline button — secondary action */
.btn--outline {
  background: transparent;
  color: var(--c-text-primary);
  border-color: var(--c-border-med);
}
.btn--outline:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

/* Ghost — minimal */
.btn--ghost {
  background: transparent;
  color: var(--c-text-secondary);
  border-color: var(--c-border);
}
.btn--ghost:hover {
  color: var(--c-text-primary);
  border-color: var(--c-border-med);
}

/* Sizes */
.btn--sm {
  font-size: 0.72rem;
  padding: 0.55em 1.1em;
}

.btn--lg {
  font-size: var(--text-sm);
  padding: 0.9em 1.8em;
}

/* ============================================================
   5. LOADER
============================================================ */

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--c-bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--t-slow) var(--ease-out),
              visibility var(--t-slow) var(--ease-out);
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__mark {
  animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50%       { opacity: 1;   transform: scale(1.0); }
}

/* ============================================================
   6. HEADER & NAVIGATION
============================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--t-slow) var(--ease-out),
              border-color var(--t-slow) var(--ease-out),
              backdrop-filter var(--t-slow) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom-color: var(--c-border);
}

.header__inner {
  padding-block: var(--sp-4);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

/* Logo */
.nav__logo {
  flex-shrink: 0;
  transition: opacity var(--t-base) var(--ease-out);
}
.nav__logo:hover { opacity: 0.8; }
.nav__logo-img { height: 32px; width: auto; }
.nav__logo-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-primary);
}

/* Nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  margin-left: auto;
  margin-right: var(--sp-8);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--c-text-secondary);
  transition: color var(--t-base) var(--ease-out);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--c-accent);
  transition: right var(--t-base) var(--ease-out);
}

.nav__link:hover {
  color: var(--c-text-primary);
}
.nav__link:hover::after {
  right: 0;
}

/* Right side */
.nav__right {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-shrink: 0;
}

/* Burger — hidden on desktop */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--c-text-primary);
  transition: transform var(--t-base) var(--ease-out),
              opacity var(--t-base) var(--ease-out);
  transform-origin: center;
}

.nav__burger.is-open span:first-child {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__burger.is-open span:last-child {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Nav */
.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border);
  padding: var(--sp-6) var(--container-pad) var(--sp-8);
  transition: opacity var(--t-base) var(--ease-out);
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.nav__mobile-link {
  display: block;
  padding: var(--sp-3) 0;
  font-size: var(--text-lg);
  font-family: var(--font-display);
  color: var(--c-text-secondary);
  border-bottom: 1px solid var(--c-border-subtle);
  transition: color var(--t-base) var(--ease-out);
}
.nav__mobile-link:hover { color: var(--c-text-primary); }

.nav__mobile-cta-item {
  margin-top: var(--sp-6);
}

.nav__mobile-cta {
  display: inline-flex;
}

/* ============================================================
   7. HERO SECTION
============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px; /* header height */
}

/* ── Hero Background Layers ─────────────────────────────── */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  /* ASSET: assets/patterns/grid-bg.svg — background grid texture */
  background-image: url('../assets/patterns/grid-bg.svg');
  background-size: 60px 60px;
  background-repeat: repeat;
  opacity: 0.35;
}

.hero__visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero__mountain {
  /* ASSET: assets/hero/hero-mountain.png */
  width: 100%;
  max-width: 1200px;
  object-fit: contain;
  object-position: bottom center;
  opacity: 0.65;
  mix-blend-mode: luminosity;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(3,173,252,0.04) 0%, transparent 60%),
    linear-gradient(180deg, var(--c-bg-base) 0%, transparent 30%, transparent 70%, var(--c-bg-base) 100%),
    linear-gradient(90deg, var(--c-bg-base) 0%, transparent 25%, transparent 75%, var(--c-bg-base) 100%);
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 120% at 50% 50%, transparent 40%, rgba(8,8,8,0.7) 100%);
}

/* ── Hero Content ────────────────────────────────────────── */
.hero__container {
  position: relative;
  z-index: 1;
  padding-block: var(--sp-24);
}

.hero__content {
  max-width: 720px;
}

.hero__eyebrow {
  margin-bottom: var(--sp-6);
  opacity: 0;
}

.hero__headline {
  font-size: var(--text-hero);
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--c-text-primary);
  margin-bottom: var(--sp-6);
  opacity: 0;
}

.hero__headline em {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: var(--c-text-primary);
}

.hero__subhead {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--c-text-secondary);
  max-width: 520px;
  margin-bottom: var(--sp-10);
  line-height: 1.7;
  opacity: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-16);
  opacity: 0;
}

/* ── Hero Metrics ────────────────────────────────────────── */
.hero__metrics {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  opacity: 0;
}

.hero__metric-val {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--c-text-primary);
  line-height: 1;
}

.hero__metric-val sup {
  font-size: 0.55em;
  color: var(--c-accent);
  vertical-align: top;
  margin-top: 0.1em;
}

.hero__metric-lbl {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-top: var(--sp-1);
}

.hero__metric-sep {
  width: 1px;
  height: 36px;
  background: var(--c-border);
  flex-shrink: 0;
}

/* ── Hero Scroll Indicator ───────────────────────────────── */
.hero__scroll {
  position: absolute;
  bottom: var(--sp-8);
  left: var(--container-pad);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
}

.hero__scroll-track {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--c-accent) 0%, transparent 100%);
  animation: scrollTrack 1.8s ease-in-out infinite;
}

@keyframes scrollTrack {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

.hero__scroll-label {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  writing-mode: vertical-rl;
}

/* Hero entrance animations */
.hero-entered .hero__eyebrow  { animation: heroFadeUp var(--t-slower) var(--ease-out) 0.2s forwards; }
.hero-entered .hero__headline { animation: heroFadeUp var(--t-slower) var(--ease-out) 0.4s forwards; }
.hero-entered .hero__subhead  { animation: heroFadeUp var(--t-slower) var(--ease-out) 0.6s forwards; }
.hero-entered .hero__actions  { animation: heroFadeUp var(--t-slower) var(--ease-out) 0.8s forwards; }
.hero-entered .hero__metrics  { animation: heroFadeUp var(--t-slower) var(--ease-out) 1.0s forwards; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   8. MARQUEE BAR
============================================================ */

.marquee-bar {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg-alt);
  padding-block: 0.85rem;
}

.marquee-track {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-inner {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  animation: marqueeScroll 35s linear infinite;
  will-change: transform;
}

.marquee-inner span {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  flex-shrink: 0;
}

.marquee-dot {
  display: inline-block !important;
  width: 3px !important;
  height: 3px !important;
  background: var(--c-accent) !important;
  border-radius: 50%;
  flex-shrink: 0;
  letter-spacing: 0 !important;
}

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

.marquee-bar:hover .marquee-inner {
  animation-play-state: paused;
}

/* ============================================================
   9. SECTION HEADERS
============================================================ */

.section-head {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  max-width: 700px;
}

.section-head__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.section-head__rule {
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--c-accent);
  opacity: 0.5;
}

.section-head__title {
  font-size: var(--text-5xl);
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--c-text-primary);
  margin-bottom: var(--sp-6);
}

.section-head__desc {
  font-size: var(--text-base);
  color: var(--c-text-secondary);
  max-width: 520px;
  line-height: 1.75;
}

.section-head--left {
  text-align: left;
}

/* Centered header variant */
.section-head--center {
  text-align: center;
  margin-inline: auto;
}
.section-head--center .section-head__meta {
  justify-content: center;
}
.section-head--center .section-head__rule {
  display: none;
}

/* ============================================================
   10. SERVICES
============================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.svc-card {
  position: relative;
  background: var(--c-bg-card);
  padding: var(--sp-10) var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition:
    background var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out);
  cursor: default;
  overflow: hidden;
}

.svc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease-out);
}

.svc-card:hover {
  background: var(--c-bg-card-hover);
}

.svc-card:hover::before {
  transform: scaleX(1);
}

/* Accent card variant */
.svc-card--accent {
  background: var(--c-bg-surface);
}

.svc-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.svc-card__icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-accent-dim);
  border: 1px solid var(--c-accent-border);
  border-radius: var(--radius-sm);
  transition: background var(--t-base) var(--ease-out);
}

.svc-card:hover .svc-card__icon-wrap {
  background: rgba(3, 173, 252, 0.18);
}

.svc-card__icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(56%) sepia(97%) saturate(720%) hue-rotate(174deg) brightness(102%) contrast(104%);
  /* The filter above makes the icon appear in the accent color (#03adfc).
     Your custom SVG icons can be any color — this filter will apply the brand color.
     To disable the color transform: remove this filter property. */
}

.svc-card__num {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--c-text-muted);
  font-family: var(--font-body);
}

.svc-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--c-text-primary);
  letter-spacing: -0.01em;
  margin-top: var(--sp-2);
}

.svc-card__desc {
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
  line-height: 1.7;
  font-weight: 300;
  flex: 1;
}

.svc-card__foot {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border-subtle);
}

.svc-card__more {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  transition: color var(--t-base) var(--ease-out);
}

.svc-card__arrow {
  color: var(--c-text-muted);
  transition:
    color var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out);
  flex-shrink: 0;
}

.svc-card:hover .svc-card__more {
  color: var(--c-accent);
}
.svc-card:hover .svc-card__arrow {
  color: var(--c-accent);
  transform: translateX(4px);
}

/* ============================================================
   11. PROCESS
============================================================ */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
  position: relative;
}

.process-step {
  position: relative;
  padding-top: var(--sp-8);
}

.process-step__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 300;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  margin-bottom: var(--sp-4);
  letter-spacing: -0.03em;
  user-select: none;
}

.process-step__body {
  position: relative;
}

.process-step__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--c-text-primary);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.01em;
}

.process-step__desc {
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
  line-height: 1.75;
  font-weight: 300;
}

/* Connecting line between steps */
.process-step__line {
  position: absolute;
  top: calc(var(--sp-8) + 2rem);
  right: calc(-1 * var(--sp-4));
  width: var(--sp-8);
  height: 1px;
  background: linear-gradient(90deg, var(--c-border-med), var(--c-border-subtle));
}

/* Top accent line on step */
.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 1px;
  background: var(--c-accent);
}

/* ============================================================
   12. PORTFOLIO
============================================================ */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-4);
}

.proj-card {
  position: relative;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease-out);
}

.proj-card:hover {
  border-color: var(--c-border-med);
}

/* Featured project spans 7 columns */
.proj-card--featured {
  grid-column: span 7;
}

/* Regular projects span 5 columns */
.proj-card:not(.proj-card--featured) {
  grid-column: span 5;
}

.proj-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--c-bg-surface);
}

.proj-card--featured .proj-card__media {
  aspect-ratio: 4 / 3;
}

.proj-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slower) var(--ease-out);
}

.proj-card:hover .proj-card__img {
  transform: scale(1.04);
}

.proj-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8,8,8,0.8) 100%);
}

.proj-card__info {
  padding: var(--sp-6) var(--sp-6) var(--sp-8);
}

.proj-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
}

.proj-card__cat {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.proj-card__year {
  font-size: var(--text-xs);
  color: var(--c-text-muted);
}

.proj-card__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--c-text-primary);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.proj-card:not(.proj-card--featured) .proj-card__title {
  font-size: var(--text-2xl);
}

.proj-card__desc {
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
  font-weight: 300;
}

.proj-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-secondary);
  transition: color var(--t-base) var(--ease-out);
}

.proj-card__link svg {
  transition: transform var(--t-base) var(--ease-out);
}

.proj-card:hover .proj-card__link {
  color: var(--c-accent);
}

.proj-card:hover .proj-card__link svg {
  transform: translateX(4px);
}

.portfolio-cta {
  margin-top: var(--sp-12);
  text-align: center;
}

/* ============================================================
   13. ABOUT
============================================================ */

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

.about-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.about-body p {
  font-size: var(--text-base);
  color: var(--c-text-secondary);
  line-height: 1.8;
  font-weight: 300;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.about-value {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
}

.about-value__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-accent-dim);
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-accent-border);
}

/* About visual / illustration */
.about-visual__inner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual__graphic {
  /* ASSET: assets/illustrations/about-graphic.svg */
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.about-stat-card {
  position: absolute;
  bottom: var(--sp-6);
  left: var(--sp-6);
  right: var(--sp-6);
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--c-border-med);
  border-radius: var(--radius-md);
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.about-stat {
  flex: 1;
  text-align: center;
}

.about-stat__val {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 400;
  color: var(--c-text-primary);
  line-height: 1;
}

.about-stat__val sup {
  font-size: 0.5em;
  color: var(--c-accent);
  vertical-align: top;
  margin-top: 0.1em;
}

.about-stat__lbl {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-top: var(--sp-1);
}

.about-stat-card__div {
  width: 1px;
  height: 40px;
  background: var(--c-border);
}

/* ============================================================
   14. TESTIMONIALS
============================================================ */

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.testi-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--sp-8) var(--sp-7);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  transition: border-color var(--t-base) var(--ease-out);
  font-style: normal;
}

.testi-card:hover {
  border-color: var(--c-border-med);
}

.testi-card--featured {
  background: var(--c-bg-surface);
  border-color: var(--c-border-med);
}

.testi-card__stars {
  color: var(--c-accent);
  font-size: var(--text-sm);
  letter-spacing: 2px;
}

.testi-card__quote {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.65;
  color: var(--c-text-primary);
  flex: 1;
}

.testi-card__author {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border-subtle);
}

.testi-card__name {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  font-style: normal;
  color: var(--c-text-primary);
  margin-bottom: var(--sp-1);
}

.testi-card__role {
  font-size: var(--text-xs);
  color: var(--c-text-muted);
  letter-spacing: 0.06em;
}

/* ============================================================
   15. CTA SECTION
============================================================ */

.cta-section {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-section__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--c-border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border-subtle) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.6;
}

.cta-section__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(3,173,252,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin-inline: auto;
}

.cta-inner .eyebrow-tag {
  display: block;
  text-align: center;
  margin-bottom: var(--sp-6);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-text-primary);
  margin-bottom: var(--sp-6);
}

.cta-title em {
  font-style: italic;
  font-weight: 300;
}

.cta-desc {
  font-size: var(--text-lg);
  color: var(--c-text-secondary);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: var(--sp-10);
  line-height: 1.7;
  font-weight: 300;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
}

.cta-email {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  letter-spacing: 0.04em;
  transition: color var(--t-base) var(--ease-out);
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 2px;
}

.cta-email:hover {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}

/* ============================================================
   16. FOOTER
============================================================ */

.footer {
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-20);
  padding-bottom: var(--sp-8);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-16);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--sp-8);
}

.footer-brand__logo {
  display: inline-block;
  margin-bottom: var(--sp-4);
}

.footer-brand__logo img { height: 28px; width: auto; }

.footer-brand__tagline {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.7;
  max-width: 280px;
  font-weight: 300;
  margin-bottom: var(--sp-6);
}

.footer-socials {
  display: flex;
  gap: var(--sp-3);
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-text-muted);
  transition:
    color var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    background var(--t-base) var(--ease-out);
}

.footer-social:hover {
  color: var(--c-accent);
  border-color: var(--c-accent-border);
  background: var(--c-accent-dim);
}

.footer-nav {
  display: contents;
}

.footer-nav__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-primary);
  margin-bottom: var(--sp-5);
}

.footer-nav__group ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-nav__link {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  transition: color var(--t-base) var(--ease-out);
  font-weight: 300;
}

.footer-nav__link:hover { color: var(--c-text-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--c-text-muted);
  letter-spacing: 0.06em;
}

.footer-legal {
  display: flex;
  gap: var(--sp-6);
}

.footer-legal__link {
  font-size: var(--text-xs);
  color: var(--c-text-muted);
  letter-spacing: 0.06em;
  transition: color var(--t-base) var(--ease-out);
}
.footer-legal__link:hover { color: var(--c-text-primary); }

/* ============================================================
   17. SCROLL ANIMATIONS
============================================================ */

/* Elements with [data-animate] start invisible */
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity var(--t-slower) var(--ease-out),
    transform var(--t-slower) var(--ease-out);
}

[data-animate="fade-right"] {
  transform: translateX(-32px);
}

[data-animate="fade-left"] {
  transform: translateX(32px);
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* Staggered delay via data-delay attribute */
[data-delay="0"].is-visible  { transition-delay: 0ms; }
[data-delay="1"].is-visible  { transition-delay: 80ms; }
[data-delay="2"].is-visible  { transition-delay: 160ms; }
[data-delay="3"].is-visible  { transition-delay: 240ms; }
[data-delay="4"].is-visible  { transition-delay: 320ms; }
[data-delay="5"].is-visible  { transition-delay: 400ms; }

/* ============================================================
   18. RESPONSIVE BREAKPOINTS
============================================================ */

/* ── Large Desktop (>1280px) ──────────────────────────────── */
@media (min-width: 1280px) {
  .hero__mountain {
    max-width: 1400px;
  }
}

/* ── Tablet + Small Desktop (<1024px) ─────────────────────── */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__cta { display: none; }

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

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-10);
  }

  .process-step__line {
    display: none;
  }

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

  .proj-card--featured,
  .proj-card:not(.proj-card--featured) {
    grid-column: span 1;
  }

  .testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testi-grid .testi-card:last-child {
    grid-column: span 2;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-12);
  }

  .about-visual {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }

  .footer-brand {
    grid-column: span 2;
  }
}

/* ── Mobile (<768px) ─────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-pad: clamp(3.5rem, 8vw, 5rem);
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__metrics {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-4);
  }

  .hero__metric-sep {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__scroll {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
    border-radius: var(--radius-md);
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

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

  .testi-grid .testi-card:last-child {
    grid-column: span 1;
  }

  .cta-actions {
    align-items: stretch;
  }

  .cta-actions .btn {
    justify-content: center;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-8);
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--sp-3);
  }
}

/* ── Small Mobile (<480px) ───────────────────────────────── */
@media (max-width: 480px) {
  .hero__headline {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .section-head__title {
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  .cta-title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

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

/* ── 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-animate] {
    opacity: 1;
    transform: none;
  }

  .hero__eyebrow,
  .hero__headline,
  .hero__subhead,
  .hero__actions,
  .hero__metrics {
    opacity: 1;
  }
}
