/* ============================================
   SPLENDABLE — Design System & Styles
   ============================================ */

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

:root {
  /* Color — dark but with depth, not pitch black */
  --bg:           #0c0c10;
  --bg-elevated:  #13131a;
  --bg-subtle:    #1a1a24;
  --surface:      #20202c;
  --surface-2:    #28283a;

  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);

  --text:           #f0f0f5;
  --text-secondary: #9494aa;
  --text-muted:     #4a4a60;

  --accent:            #7c5cfc;
  --accent-light:      #a78bfa;
  --accent-dim:        #5b40d4;
  --accent-glow:       rgba(124, 92, 252, 0.12);
  --accent-glow-md:    rgba(124, 92, 252, 0.22);
  --accent-glow-strong:rgba(124, 92, 252, 0.35);

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Fluid type */
  --text-xs:   clamp(0.7rem,  0.65rem + 0.25vw, 0.8125rem);
  --text-sm:   clamp(0.8125rem, 0.76rem + 0.26vw, 0.9375rem);
  --text-base: clamp(0.9375rem, 0.88rem + 0.29vw, 1.0625rem);
  --text-lg:   clamp(1.0625rem, 0.97rem + 0.46vw, 1.25rem);
  --text-xl:   clamp(1.2rem,    1.0rem  + 1vw,    1.5rem);
  --text-2xl:  clamp(1.5rem,    1.1rem  + 2vw,    2.25rem);
  --text-3xl:  clamp(2rem,      1.4rem  + 3vw,    3.5rem);
  --text-4xl:  clamp(2.5rem,    1.5rem  + 5vw,    5.5rem);
  --text-5xl:  clamp(3rem,      1.5rem  + 7.5vw,  7rem);

  /* Spacing — tighter */
  --space-xs:  clamp(0.4rem,  0.35rem + 0.25vw, 0.6rem);
  --space-sm:  clamp(0.75rem, 0.6rem  + 0.5vw,  1rem);
  --space-md:  clamp(1.25rem, 1rem    + 1.25vw,  2rem);
  --space-lg:  clamp(2.5rem,  2rem    + 2.5vw,   4rem);
  --space-xl:  clamp(4rem,    3rem    + 4vw,      6rem);
  --space-2xl: clamp(5rem,    4rem    + 5vw,      8rem);

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:    0.25s;
  --dur:         0.55s;
  --dur-slow:    0.9s;

  /* Layout */
  --container: 1280px;
  --gutter:    clamp(1.25rem, 1rem + 1.25vw, 2.5rem);
  --radius:    10px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

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

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

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { background: none; border: none; color: inherit; cursor: pointer; font: inherit; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Grain --- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* cursor-glow — off */
.cursor-glow { display: none; }

/* --- Navigation --- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--gutter);
  transition: background var(--dur-fast) ease, backdrop-filter var(--dur-fast) ease,
              border-color var(--dur-fast) ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(12, 12, 16, 0.85);
  backdrop-filter: blur(24px) saturate(1.3);
  border-bottom-color: var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-md);
}

.nav-links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--dur-fast) ease;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  color: var(--text) !important;
  font-size: var(--text-xs) !important;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease !important;
}
.nav-cta:hover {
  background: var(--surface);
  border-color: var(--accent) !important;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  padding: 4px 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform-origin: center;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) ease;
}
/* gap: 6px, height: 2px → center offset = (6px + 2px) / 2 = 4px */
.nav-toggle.active span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle.active span:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* Nav right group: lang toggle + hamburger */
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.lang-toggle {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease,
              background var(--dur-fast) ease;
}
.lang-toggle:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--surface);
}

/* On desktop, nav-right only shows lang toggle (hamburger hidden via .nav-toggle display:none) */
@media (min-width: 768px) {
  .lang-toggle { display: inline-flex; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(12, 12, 16, 0.97);
  backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease-out), visibility var(--dur) ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}
.mobile-menu-inner a {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--dur-fast) ease;
}
.mobile-menu-inner a:hover { color: var(--text); }

/* --- Hero --- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(124, 92, 252, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 20% 20%, rgba(124, 92, 252, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 80% 20%, rgba(124, 92, 252, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 100% 50% at 50% 100%, rgba(20, 18, 35, 0.9) 0%, transparent 70%);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.18;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding-top: clamp(5rem, 8vw, 7rem);
  padding-bottom: clamp(5rem, 8vw, 7rem);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  border: 1px solid var(--accent-glow-md);
  background: var(--accent-glow);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: var(--space-md);
}

.hero-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-light);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-md);
}
.hero-title span { display: block; }

.hero-highlight { color: var(--accent-light); }

.hero-sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 520px;
  margin: 0 auto var(--space-lg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.7rem 1.6rem;
  border-radius: 100px;
  transition: all var(--dur-fast) var(--ease-out);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 28px var(--accent-glow-strong), 0 2px 8px rgba(0,0,0,0.3);
}
.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 0 44px var(--accent-glow-strong), 0 2px 12px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-hover);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.25);
  background: var(--surface);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: var(--text-base);
}

/* --- Labels --- */
.label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: var(--space-sm);
}

/* --- Section Headers --- */
.section-header { margin-bottom: var(--space-lg); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

/* --- Marquee --- */
.marquee {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  will-change: transform;
}

.marquee-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--text-muted);
  flex-shrink: 0;
  user-select: none;
}

.marquee-inner .sep {
  color: var(--accent);
  font-size: 0.45em;
}

/* --- Value Section --- */
.value {
  padding: var(--space-xl) 0;
  background: var(--bg);
}


.value-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.value-text {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: var(--space-lg);
}

.value-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.stat {
  padding: var(--space-sm) var(--space-sm) var(--space-sm) var(--space-md);
  border-left: 2px solid var(--accent-glow-md);
  background: var(--bg-elevated);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--accent-light);
}

.stat-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* --- Work Section --- */
.work {
  padding: var(--space-xl) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.work-grid {
  display: grid;
  gap: var(--space-md);
}

.work-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur-fast) ease,
              box-shadow var(--dur-fast) ease,
              transform var(--dur) var(--ease-out);
  cursor: default;
}

.work-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}

.work-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

/* Each card gets a unique rich visual — using CSS only */
.work-card-visual {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Nordvik — warm sandy neutrals */
.work-card-visual.v1 {
  background: linear-gradient(140deg, #1a1610 0%, #2e2418 40%, #3d2f1a 70%, #1a1610 100%);
}
.work-card-visual.v1::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 35% 55%, rgba(210, 165, 90, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 75% 30%, rgba(180, 130, 60, 0.12) 0%, transparent 50%);
}
.work-card-visual.v1::after {
  content: 'Nordvik Interiors';
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw + 0.5rem, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(235, 200, 140, 0.85);
}

/* Clairvoy — cool data blue */
.work-card-visual.v2 {
  background: linear-gradient(140deg, #0d1220 0%, #111928 40%, #0a1830 70%, #0d1220 100%);
}
.work-card-visual.v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 60% 50%, rgba(80, 140, 255, 0.15) 0%, transparent 65%),
    radial-gradient(ellipse 30% 40% at 20% 70%, rgba(100, 80, 255, 0.12) 0%, transparent 50%);
}
.work-card-visual.v2::after {
  content: 'Clairvoy Analytics';
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw + 0.5rem, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(140, 180, 255, 0.85);
}

/* Arctura — prestige dark gold */
.work-card-visual.v3 {
  background: linear-gradient(140deg, #100e14 0%, #1a1620 40%, #0e1018 70%, #100e14 100%);
}
.work-card-visual.v3::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 50% 45%, rgba(200, 160, 80, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 35% 30% at 80% 25%, rgba(180, 120, 60, 0.1) 0%, transparent 50%);
}
.work-card-visual.v3::after {
  content: 'Arctura Capital';
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw + 0.5rem, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(210, 180, 120, 0.8);
}

/* Grid lines overlay — shared across all cards */
.work-card-visual::before {
  z-index: 1;
}
.work-card-visual::after {
  z-index: 2;
}

.work-card-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
}

.work-card-metric {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 3;
  text-align: right;
}

.work-card-metric-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.work-card-metric-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.v1 .work-card-metric-value { color: rgba(235, 200, 140, 0.7); }
.v2 .work-card-metric-value { color: rgba(140, 180, 255, 0.7); }
.v3 .work-card-metric-value { color: rgba(210, 180, 120, 0.7); }

.work-card-info {
  padding: var(--space-md);
  border-top: 1px solid var(--border);
}

.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--space-xs);
}

.work-card-tags span {
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding: 0.2rem 0.55rem;
  background: var(--surface);
  border-radius: 100px;
}

.work-card-info h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.work-card-info p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* --- Services --- */
.services {
  padding: var(--space-xl) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-list { display: grid; }

.service-item {
  display: grid;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-fast) ease;
}
.service-item:last-child { border-bottom: none; }

.service-number {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.05em;
}

.service-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.service-content p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 440px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.service-tags span {
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 100px;
}

/* --- Process --- */
.process {
  padding: var(--space-xl) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Mobile: vertical timeline */
.process-timeline { display: grid; }

.process-step {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
}

.process-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.35rem;
}

.process-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow-strong);
  flex-shrink: 0;
}

.process-line::after {
  content: '';
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, var(--accent-dim), transparent);
  margin-top: 8px;
  opacity: 0.5;
}

.process-step:last-child .process-line::after { display: none; }

.process-info h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.process-info p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* Desktop: horizontal */
@media (min-width: 1024px) {
  .process-timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    align-items: start;
  }

  .process-step {
    grid-template-columns: 1fr;
    padding: 0 var(--space-md) var(--space-md) 0;
    text-align: left;
    align-items: start;
    position: relative;
  }

  /* Dot + line row — positioned relative to the step */
  .process-line {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: var(--space-sm);
    padding: 0;
    height: 7px; /* exact dot height, so line is always centered */
  }

  .process-dot {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
  }

  /* Line extends from dot to right edge of step */
  .process-line::after {
    content: '';
    flex: 1;
    height: 1px;
    width: auto;
    margin-top: 0;
    margin-left: 8px;
    background: linear-gradient(to right, var(--accent-dim), transparent);
    opacity: 0.45;
  }

  /* Last step has no line after the dot */
  .process-step:last-child .process-line::after {
    display: none !important;
  }
}

/* --- CTA --- */
.cta {
  padding: var(--space-xl) 0;
  background: var(--bg);
}

.cta-inner {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
}

.cta-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(124, 92, 252, 0.04) 0%, transparent 50%),
    linear-gradient(315deg, rgba(124, 92, 252, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.cta-title em {
  font-style: normal;
  color: var(--accent-light);
}

.cta-text {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto var(--space-lg);
  position: relative;
  z-index: 1;
}

.cta .btn { position: relative; z-index: 1; }

/* --- Footer --- */
.footer {
  padding: var(--space-lg) 0 var(--space-md);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-top: 0.4rem;
}

.footer-links { display: flex; gap: var(--space-lg); }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--dur-fast) ease;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays set via JS for precise control */
.hero-content .reveal:nth-child(2) { transition-delay: 0.07s; }
.hero-content .reveal:nth-child(3) { transition-delay: 0.14s; }
.hero-content .reveal:nth-child(4) { transition-delay: 0.21s; }
.hero-content .reveal:nth-child(5) { transition-delay: 0.28s; }

/* --- Responsive --- */
@media (min-width: 768px) {
  .nav-links  { display: flex; }
  .nav-toggle { display: none; }

  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card:first-child { grid-column: 1 / -1; }
  .work-card:first-child .work-card-img { aspect-ratio: 21 / 9; }

  .service-item { grid-template-columns: auto 1fr auto; align-items: center; }

  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
}

@media (min-width: 1024px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .work-card:first-child { grid-column: auto; }
  .work-card:first-child .work-card-img { aspect-ratio: 16 / 9; }

  .service-item {
    padding: var(--space-md) var(--space-sm);
    border-radius: var(--radius);
    margin: 0 calc(var(--space-sm) * -1);
  }
  .service-item:hover { background: var(--bg-subtle); }

}


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