/* =====================================================================
   Virtual Verse Studio — Conventional Website Design System
   Direction: "Editorial Portfolio" (premium, image-led, restrained motion)
   Dual-accent role split: CYAN = structure/interactive · BRONZE = conversion/premium
   Tokens & WCAG ratios per website-redesign/UI-UX-AUDIT.md §5.
   This is the single source of truth. Components are namespaced and reusable.
   ===================================================================== */

@font-face {
  font-family: 'Aquire';
  src: url('/TemplateData/font.otf') format('opentype');
  font-weight: normal;
  font-display: swap;
}

/* Space Grotesk + Inter loaded via <link> in base.njk (non-blocking). */

/* ============================ TOKENS ============================ */
:root {
  /* Background layers */
  --bg:           #0d0d0d;
  --bg-surface-2: #12121f;            /* nav, footer, deep sections */
  --bg-surface:   #1a1a2e;            /* cards, raised sections */
  --bg-float:     rgba(255,255,255,0.04);
  --bg-tint-bronze: rgba(178,144,95,0.05);

  /* Text */
  --text:           #c8d8e0;          /* 13.29:1 on bg, AAA */
  --text-strong:    #f0f8ff;
  --text-muted:     rgba(200,216,224,0.72);  /* ~6:1 — WCAG-safe body-muted */
  --text-micro:     rgba(200,216,224,0.55);  /* micro-labels ONLY */
  --text-on-bronze: #0d0d0d;          /* 6.52:1 on bronze */

  /* Accent A — CYAN: structure / interactive */
  --neon:        #19f3ff;
  --neon-glow:   rgba(25,243,255,0.12);
  --neon-border: rgba(25,243,255,0.12);
  --neon-subtle: rgba(25,243,255,0.04);

  /* Accent B — BRONZE/GOLD: conversion / premium */
  --bronze:        #B2905F;
  --bronze-hover:  #C5A574;
  --bronze-glow:   rgba(178,144,95,0.20);
  --bronze-border: rgba(178,144,95,0.15);
  --bronze-subtle: rgba(178,144,95,0.08);

  /* Borders / dividers */
  --border-default: rgba(25,243,255,0.12);
  --border-premium: rgba(178,144,95,0.15);
  --border-neutral: rgba(255,255,255,0.08);

  /* Functional */
  --orange:  #E0B06E;
  --error:   #EF4444;
  --success: #22C55E;

  /* Gradients / glow / shadow */
  --gradient-hero-bg:
      radial-gradient(ellipse at 80% -10%, rgba(25,243,255,0.06) 0%, transparent 55%),
      radial-gradient(ellipse at 15% 110%, rgba(178,144,95,0.08) 0%, transparent 55%), var(--bg);
  --gradient-cta:    linear-gradient(135deg, #B2905F 0%, #C5A574 100%);
  --section-divider: linear-gradient(90deg, rgba(178,144,95,0.40) 0%, transparent 42%, transparent 58%, rgba(25,243,255,0.30) 100%);
  --shadow-bronze:   0 0 0 1px rgba(178,144,95,0.30), 0 8px 40px rgba(178,144,95,0.18);
  --shadow-soft:     0 12px 40px rgba(0,0,0,0.45);
  --shadow-card:     0 1px 0 rgba(255,255,255,0.03), 0 12px 32px rgba(0,0,0,0.35);
  --focus-ring:      0 0 0 2px var(--bg), 0 0 0 4px var(--bronze-hover);

  /* Type */
  --font-display: 'Aquire', 'Space Grotesk', sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Scale / metrics */
  --step-0: 1rem;       /* 16 */
  --step-1: 1.125rem;   /* 18 */
  --step-2: 1.25rem;    /* 20 */
  --step-3: 1.5rem;     /* 24 */
  --step-4: 2rem;       /* 32 */
  --step-5: 2.5rem;     /* 40 */
  --step-6: 3rem;       /* 48 */
  --step-7: clamp(2.75rem, 6vw, 4rem);    /* 44-64 */
  --step-8: clamp(3.25rem, 8vw, 6rem);    /* 52-96 hero */

  --max-w: 1200px;
  --max-w-wide: 1320px;
  --max-w-content: 46rem;   /* ~66-72ch reading measure */
  --radius: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --space-section: clamp(4rem, 9vw, 7rem);
  --nav-h: 68px;
  --transition: 0.2s ease;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================ RESET / BASE ============================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--neon); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text-strong); }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 1000;
  background: var(--bronze); color: var(--text-on-bronze); padding: 10px 16px;
  border-radius: var(--radius); font-weight: 600; transition: top var(--transition);
}
.skip-link:focus { top: 8px; }

/* ============================ TYPOGRAPHY ============================ */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.18; color: var(--text-strong); letter-spacing: -0.01em; }
h1 { font-size: var(--step-7); }
h2 { font-size: var(--step-5); }
h3 { font-size: var(--step-3); }
h4 { font-size: var(--step-2); }
p { color: var(--text); }
strong { color: var(--text-strong); font-weight: 600; }

.display {
  font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.06;
}
.eyebrow {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.18em; font-size: 0.8125rem; color: var(--bronze-hover);
  display: inline-flex; align-items: center; gap: 0.6em; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--bronze); }
.eyebrow--cyan { color: var(--neon); }
.eyebrow--cyan::before { background: var(--neon); }

.text-bronze { color: var(--bronze-hover); }
.text-cyan { color: var(--neon); }
.lead { font-size: var(--step-2); color: var(--text-muted); line-height: 1.55; }

/* ============================ LAYOUT ============================ */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.container--wide { max-width: var(--max-w-wide); }
.container--narrow { max-width: var(--max-w-content); }

.section { padding-block: var(--space-section); position: relative; }
.section--surface { background: var(--bg-surface-2); }
.section--tint { background:
    linear-gradient(180deg, transparent, var(--bg-tint-bronze) 50%, transparent); }
.section-head { max-width: 52rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title { font-size: var(--step-5); }
.section-lead { margin-top: 1rem; font-size: var(--step-1); color: var(--text-muted); }

.divider { height: 1px; border: 0; background: var(--section-divider); margin-block: 0; }

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

/* Oversized section watermark */
.section-mark {
  position: absolute; inset-inline-start: 0; top: -0.15em; z-index: 0;
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(5rem, 13vw, 12rem); line-height: 1; letter-spacing: -0.02em;
  color: #fff; opacity: 0.03; pointer-events: none; user-select: none; white-space: nowrap;
}
.section > .container { position: relative; z-index: 1; }

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.85em 1.6em; min-height: 48px; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: var(--step-0);
  border: 1px solid transparent; transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  text-align: center; cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }

.btn--primary { background: var(--gradient-cta); color: var(--text-on-bronze); box-shadow: var(--shadow-bronze); }
.btn--primary:hover { color: var(--text-on-bronze); box-shadow: 0 0 0 1px var(--bronze-hover), 0 10px 44px rgba(197,165,116,0.32); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text-strong); border-color: var(--border-neutral); }
.btn--ghost:hover { color: var(--text-strong); border-color: var(--neon); box-shadow: 0 0 0 1px var(--neon-border); }
.btn--cyan { background: var(--neon-subtle); color: var(--neon); border-color: var(--neon-border); }
.btn--cyan:hover { color: var(--neon); border-color: var(--neon); }
.btn--lg { padding: 1.05em 2em; font-size: var(--step-1); min-height: 56px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; filter: grayscale(0.4); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

/* ============================ NAV / HEADER ============================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,13,0.72); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--border-neutral); transition: background var(--transition), box-shadow var(--transition);
}
.site-header.is-scrolled { background: rgba(13,13,13,0.92); box-shadow: 0 1px 0 var(--border-neutral), 0 8px 24px rgba(0,0,0,0.4); }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--nav-h); max-width: var(--max-w-wide); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.nav-logo { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 1.05rem; color: var(--text-strong); }
.nav-logo img { height: 42px; width: auto; }
.nav-logo:hover { color: var(--text-strong); }
.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-link { position: relative; padding: 0.55rem 0.85rem; border-radius: var(--radius); color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.nav-link:hover { color: var(--text-strong); }
.nav-link.active { color: var(--neon); }
.nav-link.active::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.2rem; height: 2px; background: var(--neon); border-radius: 2px; }
.nav-link--experience { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; color: var(--bronze-hover); border: 1px solid var(--bronze-border); background: var(--bronze-subtle); }
.nav-link--experience:hover { color: var(--bronze-hover); border-color: var(--bronze); box-shadow: 0 0 18px var(--bronze-glow); }
.nav-link--experience .icon { width: 15px; height: 15px; flex: none; transition: transform var(--transition); }
.nav-link--experience:hover .icon { transform: translateX(3px); }
.nav-link--cta { background: var(--gradient-cta); color: var(--text-on-bronze); font-weight: 600; }
.nav-link--cta:hover { color: var(--text-on-bronze); box-shadow: var(--shadow-bronze); }
.nav-link--cta.active::after { display: none; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text-strong); transition: var(--transition); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================ HERO ============================ */
.hero { position: relative; background: var(--gradient-hero-bg); border-bottom: 1px solid var(--border-neutral); overflow: hidden; }
.hero__inner { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6rem); }
.hero--split .hero__inner { grid-template-columns: 1.05fr 0.95fr; }
.hero-title { font-size: clamp(1.85rem, 3.2vw, 2.6rem); line-height: 1.12; margin-block: 0.4rem 0; }
.hero-title .display { display: block; font-size: clamp(2.1rem, 4vw, 3rem); color: var(--text-strong); margin-top: 0.1em; }
.hero-lead { margin-top: 1.4rem; font-size: var(--step-1); color: var(--text-muted); max-width: 38rem; }
.hero-actions { margin-top: 2rem; }
.hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-premium); box-shadow: var(--shadow-soft); aspect-ratio: 16 / 11; background: var(--bg-surface); }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 1.25rem 1rem; background: linear-gradient(transparent, rgba(13,13,13,0.85)); font-size: 0.85rem; color: var(--text-muted); }

/* Full-bleed video hero (home / lead landing) */
.hero--video { min-height: clamp(520px, 82vh, 760px); display: flex; align-items: flex-end; border-bottom: 1px solid var(--border-neutral); }
.hero--video .hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero--video .hero__bg video, .hero--video .hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero--video::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(13,13,13,0.55) 0%, rgba(13,13,13,0.2) 35%, rgba(13,13,13,0.92) 100%); }
.hero--video .hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.hero--video .hero-lead { max-width: 42rem; }

/* ============================ TRUST / PROOF ============================ */
.trust-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }
.badge-clutch { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.85rem; border: 1px solid var(--bronze-border); border-radius: var(--radius-pill); background: var(--bronze-subtle); font-size: 0.85rem; color: var(--text); }
.badge-clutch img { height: 18px; width: auto; }
.rating { color: var(--bronze-hover); letter-spacing: 0.1em; }
.trust-note { color: var(--text-muted); font-size: 0.9rem; }

.logo-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.logo-wall__item { display: flex; align-items: center; justify-content: center; }
.logo-wall__item img { max-height: 60px; width: auto; opacity: 0.7; filter: grayscale(1) brightness(1.6); transition: opacity var(--transition), filter var(--transition); }
.logo-wall__item img:hover { opacity: 1; filter: grayscale(0) brightness(1); }
.logo-wall__label { text-align: center; color: var(--text-micro); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; margin-bottom: 1.75rem; }

/* Animated logo marquee (continuous scroll; track holds TWO copies of the set) */
.logo-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-marquee__track { display: flex; align-items: center; gap: clamp(2.5rem, 6vw, 5rem); width: max-content; animation: logo-marquee 42s linear infinite; }
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
.logo-marquee__item { flex: none; display: flex; align-items: center; justify-content: center; height: 72px; }
.logo-marquee__item img { max-height: 64px; max-width: 180px; width: auto; opacity: 0.72; filter: grayscale(1) brightness(1.7); transition: opacity var(--transition), filter var(--transition); }
.logo-marquee__item img:hover { opacity: 1; filter: grayscale(0) brightness(1); }
@keyframes logo-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logo-marquee__track { animation: none; flex-wrap: wrap; justify-content: center; } }

/* ============================ STAT BAND ============================ */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-neutral); border: 1px solid var(--border-neutral); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--bg-surface-2); padding: clamp(1.25rem, 3vw, 2rem); text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3rem); color: var(--bronze-hover); line-height: 1; }
.stat__label { margin-top: 0.6rem; color: var(--text-muted); font-size: 0.9rem; }
.stat--cyan .stat__num { color: var(--neon); }

/* ============================ CARDS ============================ */
.card { position: relative; background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-card); transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); }

/* Stretched-link: makes the whole containing card clickable via one inner <a>.
   The card must be position:relative; the link stays static so ::after maps to it. */
.stretched-link { position: static; }
.stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:has(.stretched-link:hover), .blog-card:has(.stretched-link:hover) { transform: translateY(-4px); border-color: var(--border-premium); }
.card:hover { transform: translateY(-4px); border-color: var(--border-default); }
.card--feature { border-color: var(--border-premium); background: linear-gradient(180deg, var(--bg-surface), rgba(178,144,95,0.04)); }
.card__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--neon-subtle); border: 1px solid var(--neon-border); color: var(--neon); margin-bottom: 1.1rem; }
.card__icon .icon { width: 22px; height: 22px; }
.card__title { font-size: var(--step-2); margin-bottom: 0.5rem; }
.card__text { color: var(--text-muted); font-size: 0.975rem; }

/* Service card */
.service-card .card__title a { color: inherit; }
.service-card .card__title a:hover { color: var(--bronze-hover); }
.service-card__link { display: inline-flex; align-items: center; gap: 0.4em; margin-top: 1rem; color: var(--bronze-hover); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.service-card:hover .service-card__link { gap: 0.7em; }

/* Project card (portfolio grid) */
.project-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-neutral); background: var(--bg-surface); transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); }
.project-card:hover { transform: translateY(-4px); border-color: var(--border-premium); box-shadow: var(--shadow-soft); }
.project-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-surface-2); }
.project-card__media img, .project-card__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__badges { position: absolute; top: 0.85rem; left: 0.85rem; display: flex; gap: 0.4rem; z-index: 2; }
.project-card__body { padding: 1.25rem 1.4rem 1.5rem; }
.project-card__title { font-size: var(--step-2); }
.project-card__client { color: var(--text-micro); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.project-card__text { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.4rem; }
.project-card--featured { grid-column: span 2; }
.project-card--featured .project-card__media { aspect-ratio: 16 / 8; }
@media (max-width: 720px) { .project-card--featured { grid-column: span 1; } }

/* Blog card */
.blog-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-neutral); background: var(--bg-surface); transition: transform var(--transition), border-color var(--transition); }
.blog-card:hover { transform: translateY(-4px); border-color: var(--border-default); }
.blog-card__thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-surface-2); }
.blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__thumb--fallback { display: grid; place-items: center; background: linear-gradient(135deg, var(--bg-surface), rgba(178,144,95,0.12)); }
.blog-card__thumb--fallback img { width: 54px; height: auto; opacity: 0.7; }
.blog-card__body { padding: 1.1rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.blog-card__cat { color: var(--bronze-hover); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.blog-card__title { font-size: var(--step-1); line-height: 1.3; }
.blog-card__title a { color: var(--text-strong); }
.blog-card__title a:hover { color: var(--bronze-hover); }
.blog-card__excerpt { color: var(--text-muted); font-size: 0.92rem; }
.blog-card__meta { margin-top: auto; color: var(--text-micro); font-size: 0.82rem; }
.blog-card--lead { grid-column: 1 / -1; }
@media (min-width: 860px) { .blog-card--lead { flex-direction: row; } .blog-card--lead .blog-card__thumb { flex: 1 1 55%; aspect-ratio: auto; } .blog-card--lead .blog-card__body { flex: 1 1 45%; justify-content: center; } }

/* ============================ TAGS / BADGES ============================ */
.tag { display: inline-flex; align-items: center; padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 500; border: 1px solid var(--neon-border); color: var(--neon); background: var(--neon-subtle); }
.tag--bronze { color: var(--bronze-hover); border-color: var(--bronze-border); background: var(--bronze-subtle); }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ============================ TESTIMONIAL / QUOTE ============================ */
.quote { border-left: 3px solid var(--bronze); padding: 0.25rem 0 0.25rem 1.5rem; }
.quote p { font-size: var(--step-2); color: var(--text-strong); font-style: italic; line-height: 1.5; }
.testimonial { background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); }
.testimonial__quote { font-size: var(--step-2); color: var(--text-strong); line-height: 1.5; }
.testimonial__author { display: flex; align-items: center; gap: 0.85rem; margin-top: 1.5rem; }
.testimonial__author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial__name { color: var(--text-strong); font-weight: 600; }
.testimonial__role { color: var(--text-micro); font-size: 0.85rem; }

/* ============================ GALLERY ============================ */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.gallery__item { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-neutral); aspect-ratio: 16/10; background: var(--bg-surface-2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

/* Embedded video (lite-youtube style facade) */
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-premium); background: var(--bg-surface-2); }
.video-embed iframe, .video-embed img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-embed__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(13,13,13,0.25); border: 0; width: 100%; cursor: pointer; }
.video-embed__play::before { content: ""; width: 76px; height: 76px; border-radius: 50%; background: var(--gradient-cta); box-shadow: var(--shadow-bronze); }
.video-embed__play::after { content: ""; position: absolute; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--text-on-bronze); margin-left: 5px; }

/* ============================ PROCESS PATH (winding build path) ============================ */
/* Cards alternate down a central spine — a winding "street of cards" that scales to
   any step count and never overflows horizontally. Single-column on narrow screens. */
.timeline {
  position: relative;
  list-style: none;
  margin: 0.5rem auto 0;
  padding: 0.75rem 0;
  max-width: 940px;
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 2.4vw, 2rem);
  counter-reset: step;
}
/* the spine */
.timeline::before {
  content: ""; position: absolute; top: 0.75rem; bottom: 0.75rem; left: 50%;
  transform: translateX(-50%); width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--bronze) 0%, var(--bronze-hover) 48%, var(--neon) 100%);
  opacity: 0.32;
}
/* energy pulse travelling down the spine */
.timeline::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 12px; height: 72px; border-radius: 12px;
  background: radial-gradient(ellipse, var(--bronze-hover), transparent 70%);
  filter: blur(2px); animation: timeline-pulse 6.5s ease-in-out infinite;
}
@keyframes timeline-pulse {
  0% { top: -6%; opacity: 0; } 10% { opacity: 0.85; }
  90% { opacity: 0.85; } 100% { top: 100%; opacity: 0; }
}
.timeline__step {
  position: relative; width: calc(50% - 2.9rem);
  padding: 1.35rem 1.5rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border-neutral);
  background: linear-gradient(160deg, var(--bg-surface) 0%, rgba(26,26,46,0.5) 100%);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.timeline__step:nth-child(odd)  { margin-right: auto; }   /* left of spine */
.timeline__step:nth-child(even) { margin-left: auto; }    /* right of spine */
/* numbered node sitting on the spine */
.timeline__step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 1.15rem; width: 48px; height: 48px;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--bronze-border);
  background: linear-gradient(135deg, var(--bg-surface), var(--bronze-subtle));
  color: var(--bronze-hover); font-family: var(--font-display); font-size: 1.2rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4); z-index: 2;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}
/* branch connecting the card to the spine */
.timeline__step::after {
  content: ""; position: absolute; top: calc(1.15rem + 23px); height: 2px; width: 2.9rem;
  background: linear-gradient(90deg, var(--bronze-border), var(--bronze-hover)); opacity: 0.55;
}
.timeline__step:nth-child(odd)::before  { right: calc(-2.9rem - 24px); }
.timeline__step:nth-child(odd)::after   { right: -2.9rem; }
.timeline__step:nth-child(even)::before { left: calc(-2.9rem - 24px); }
.timeline__step:nth-child(even)::after  { left: -2.9rem; background: linear-gradient(270deg, var(--bronze-border), var(--bronze-hover)); }
.timeline__step:hover { transform: translateY(-4px); border-color: var(--bronze-border); box-shadow: var(--shadow-bronze); }
.timeline__step:hover::before { background: var(--gradient-cta); color: var(--text-on-bronze); box-shadow: 0 0 26px var(--bronze-glow); transform: scale(1.08); }
.timeline__title { font-size: var(--step-1); margin-bottom: 0.4rem; }
.timeline__text { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
@media (max-width: 780px) {
  .timeline { max-width: 560px; }
  .timeline::before { left: 24px; }
  .timeline::after  { left: 24px; }
  .timeline__step { width: 100%; margin: 0 !important; padding-left: 4.25rem; }
  .timeline__step::before { left: 0 !important; right: auto !important; }
  .timeline__step::after  { left: 48px !important; right: auto !important; width: 1.05rem; background: linear-gradient(90deg, var(--bronze-hover), transparent) !important; }
}
@media (prefers-reduced-motion: reduce) { .timeline::after { display: none; } }

/* ============================ CTA BAND ============================ */
.cta-band { position: relative; overflow: hidden; background: var(--bg-surface-2); border-top: 1px solid var(--border-premium); border-bottom: 1px solid var(--border-premium); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 120%, rgba(178,144,95,0.16), transparent 60%); }
.cta-band__inner { position: relative; text-align: center; padding-block: clamp(3rem, 7vw, 5rem); max-width: 44rem; margin-inline: auto; }
.cta-band__title { font-size: var(--step-6); }
.cta-band__lead { margin-top: 1rem; color: var(--text-muted); font-size: var(--step-1); }
.cta-band .btn-row { justify-content: center; margin-top: 2rem; }

/* ============================ FORMS ============================ */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 500; font-size: 0.92rem; color: var(--text); }
.field .req { color: var(--bronze-hover); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.75rem 0.9rem;
  background: var(--bg-surface-2); border: 1px solid var(--border-neutral);
  border-radius: var(--radius); color: var(--text-strong); font: inherit; transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-micro); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px var(--neon-glow); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--error); }
.field__error { color: var(--error); font-size: 0.82rem; min-height: 1em; }
.field__help { color: var(--text-micro); font-size: 0.82rem; }
.form-status { padding: 0.85rem 1rem; border-radius: var(--radius); font-size: 0.9rem; }
.form-status--ok { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.form-status--err { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }

/* ============================ BREADCRUMB ============================ */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; color: var(--text-micro); font-size: 0.85rem; padding-block: 1rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--neon); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.5rem; color: var(--text-micro); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.5rem; }

/* ============================ BLOG ARTICLE ============================ */
.post-hero { background: var(--gradient-hero-bg); border-bottom: 1px solid var(--border-neutral); padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.post-hero__cat { color: var(--bronze-hover); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 600; }
.post-hero__title { font-size: var(--step-6); max-width: 26ch; margin-top: 0.6rem; }
.post-hero__cover { margin: 2rem auto 0; max-width: var(--max-w); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-neutral); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.5rem; color: var(--text-muted); font-size: 0.9rem; }
.post-byline { display: inline-flex; align-items: center; gap: 0.6rem; }
.post-byline img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

.post-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 3rem; padding-block: clamp(2rem,5vw,3.5rem); }
@media (min-width: 1040px) { .post-layout { grid-template-columns: 240px minmax(0, var(--max-w-content)); justify-content: center; align-items: start; } }

.toc { position: sticky; top: calc(var(--nav-h) + 1.5rem); font-size: 0.9rem; }
.toc__title { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; color: var(--text-micro); margin-bottom: 0.85rem; }
.toc a { display: block; padding: 0.35rem 0 0.35rem 0.85rem; border-left: 2px solid var(--border-neutral); color: var(--text-muted); }
.toc a:hover, .toc a.active { color: var(--neon); border-left-color: var(--neon); }
@media (max-width: 1039px) { .toc { display: none; } }

.post-body { max-width: var(--max-w-content); font-size: var(--step-1); line-height: 1.75; }
.post-body > * + * { margin-top: 1.35rem; }
.post-body h2 { font-size: var(--step-4); margin-top: 2.75rem; scroll-margin-top: calc(var(--nav-h) + 1rem); }
.post-body h3 { font-size: var(--step-3); margin-top: 2rem; scroll-margin-top: calc(var(--nav-h) + 1rem); }
.post-body p, .post-body li { color: var(--text); }
.post-body ul, .post-body ol { padding-left: 1.4rem; display: grid; gap: 0.5rem; }
.post-body ul li { list-style: none; position: relative; }
.post-body ul li::before { content: ""; position: absolute; left: -1.2rem; top: 0.65em; width: 7px; height: 7px; border-radius: 50%; background: var(--bronze); }
.post-body ol { list-style: decimal; }
.post-body a { color: var(--neon); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--neon-border); }
.post-body a:hover { text-decoration-color: var(--neon); }
.post-body blockquote { border-left: 3px solid var(--bronze); padding-left: 1.4rem; color: var(--text-strong); font-style: italic; }
.post-body img { border-radius: var(--radius); border: 1px solid var(--border-neutral); margin-inline: auto; }
.post-body code { font-family: 'Courier New', monospace; background: var(--bg-surface); padding: 0.15em 0.4em; border-radius: 4px; font-size: 0.9em; color: var(--bronze-hover); }
.post-body pre { background: var(--bg-surface-2); border: 1px solid var(--border-neutral); border-radius: var(--radius); padding: 1.1rem; overflow-x: auto; }
.post-body pre code { background: none; padding: 0; color: var(--text); }
.post-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.post-body th, .post-body td { border: 1px solid var(--border-neutral); padding: 0.7rem 0.9rem; text-align: left; }
.post-body th { background: var(--bg-surface); color: var(--text-strong); }

.tldr { background: var(--bg-surface); border: 1px solid var(--border-premium); border-radius: var(--radius-lg); padding: 1.5rem; }
.tldr__title { color: var(--bronze-hover); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; margin-bottom: 0.85rem; }

.author-card { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--bg-surface); border: 1px solid var(--border-neutral); border-radius: var(--radius-lg); padding: 1.5rem; margin-top: 2.5rem; }
.author-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-card__name { color: var(--text-strong); font-weight: 600; }
.author-card__role { color: var(--bronze-hover); font-size: 0.85rem; }
.author-card__bio { color: var(--text-muted); font-size: 0.92rem; margin-top: 0.4rem; }

.faq-item { border-bottom: 1px solid var(--border-neutral); }
.faq-item summary { cursor: pointer; padding: 1.1rem 0; font-weight: 600; color: var(--text-strong); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--bronze-hover); font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item__body { padding-bottom: 1.1rem; color: var(--text-muted); }

/* ============================ FILTER BAR ============================ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-block: 1.25rem; }
.filter-chip { padding: 0.5rem 1rem; border-radius: var(--radius-pill); border: 1px solid var(--border-neutral); background: transparent; color: var(--text-muted); font-size: 0.88rem; font-weight: 500; transition: var(--transition); }
.filter-chip:hover { color: var(--text-strong); border-color: var(--border-default); }
.filter-chip.active { background: var(--bronze-subtle); border-color: var(--bronze-border); color: var(--bronze-hover); }

/* ============================ FOOTER ============================ */
.site-footer { background: var(--bg-surface-2); border-top: 1px solid var(--border-neutral); margin-top: 0; }
.footer-inner { max-width: var(--max-w-wide); margin-inline: auto; padding: clamp(3rem,6vw,4.5rem) clamp(1.25rem,4vw,2.5rem) 2.5rem; display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer-brand { max-width: 22rem; }
.footer-logo { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-strong); }
.footer-logo img { height: 28px; }
.footer-tagline { color: var(--text-muted); margin-top: 0.9rem; }
.footer-location { color: var(--text-micro); font-size: 0.85rem; margin-top: 0.75rem; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.footer-social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border-neutral); border-radius: var(--radius); color: var(--text-muted); }
.footer-social a:hover { color: var(--bronze-hover); border-color: var(--bronze-border); }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-micro); margin-bottom: 1rem; font-family: var(--font-body); }
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--text-strong); }
.footer-bottom { border-top: 1px solid var(--border-neutral); }
.footer-bottom p { max-width: var(--max-w-wide); margin-inline: auto; padding: 1.25rem clamp(1.25rem,4vw,2.5rem); color: var(--text-micro); font-size: 0.82rem; }

/* ============================ MOTION (scroll reveal) ============================
   Robust: content is ALWAYS visible by default. JS adds .js to <html> and reveals
   on intersection. If JS is off or IntersectionObserver is unsupported, content
   shows immediately. Reduced-motion disables the transition entirely. */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s var(--ease-out); will-change: opacity, transform; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 980px) {
  .hero--split .hero__inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 16/10; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0.25rem;
    background: var(--bg-surface-2); border-bottom: 1px solid var(--border-neutral); padding: 1rem clamp(1.25rem,4vw,2.5rem) 1.5rem;
    transform: translateY(-130%); transition: transform 0.3s var(--ease-out); box-shadow: var(--shadow-soft);
  }
  .nav-links.nav-links--open { transform: translateY(0); }
  .nav-link { padding: 0.85rem; font-size: 1rem; }
  .nav-link.active::after { display: none; }
  .nav-link--cta, .nav-link--experience { text-align: center; justify-content: center; margin-top: 0.4rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-title { font-size: var(--step-6); }
}
@media (max-width: 460px) {
  .stat-band { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
