/* ============================================================
   XLNC BUILDER — Design System
   Style: Soft UI Evolution · Premium Stone-Black + Gold
   Type:  Fraunces (display) + DM Sans (body)
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Warm stone neutrals */
  --stone-950: #0C0A09;
  --stone-900: #1C1917;
  --stone-800: #292524;
  --stone-700: #44403C;
  --stone-600: #57534E;
  --stone-500: #78716C;
  --stone-400: #A8A29E;
  --stone-300: #D6D3D1;
  --stone-200: #E7E5E4;
  --stone-100: #F5F5F4;
  --stone-50:  #FAFAF9;
  --white:     #FFFFFF;

  /* Gold accent scale */
  --gold-800: #854D0E;
  --gold-700: #A16207;
  --gold-600: #CA8A04;
  --gold-500: #D4A017;
  --gold-400: #EAB308;
  --gold-300: #FDE68A;

  /* Semantic tokens — LIGHT THEME */
  --color-bg: #FAF8F5;
  --color-surface: #FFFFFF;
  --color-surface-2: #F4F0E9;
  --color-surface-3: #EFE9DF;
  --color-ink: #1C1917;
  --color-body: #44403C;
  --color-muted: #57534E;
  --color-border: #EAE5DD;
  --color-border-strong: #D9D2C8;
  --color-primary: #1C1917;
  --color-accent: #A16207;
  --color-accent-text: #854D0E;
  --color-accent-bright: #D4A017;
  --color-on-dark: #F3EFE9;
  --color-on-accent: #FFFFFF;
  --color-success: #15803D;
  --color-destructive: #DC2626;

  /* Brand gradients */
  --grad-gold: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-700) 100%);
  --grad-gold-strong: linear-gradient(135deg, var(--gold-700) 0%, var(--gold-800) 100%);
  --grad-ink: linear-gradient(160deg, #201C18 0%, #0C0A09 100%);
  --grad-warm: linear-gradient(135deg, #2A2420 0%, #12100E 60%, #0C0A09 100%);
  --grad-hero-light: linear-gradient(165deg, #FFFFFF 0%, #FAF6EF 45%, #F3ECE0 100%);
  --grad-cream: linear-gradient(160deg, #F4F0E9 0%, #E9E2D7 100%);

  /* Typography */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --fs-hero: clamp(2.6rem, 6vw + 0.5rem, 5rem);
  --fs-h1: clamp(2.1rem, 4vw + 0.5rem, 3.4rem);
  --fs-h2: clamp(1.75rem, 2.6vw + 0.5rem, 2.6rem);
  --fs-h3: clamp(1.3rem, 1.4vw + 0.5rem, 1.6rem);
  --fs-lead: clamp(1.05rem, 0.5vw + 0.9rem, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* Spacing scale (density 4 — marketing) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --sp-8: 8rem;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows — Soft UI Evolution */
  --sh-xs: 0 1px 2px rgba(28, 25, 23, 0.06);
  --sh-sm: 0 2px 8px rgba(28, 25, 23, 0.06), 0 1px 2px rgba(28, 25, 23, 0.04);
  --sh-md: 0 8px 24px rgba(28, 25, 23, 0.08), 0 2px 6px rgba(28, 25, 23, 0.05);
  --sh-lg: 0 20px 48px rgba(28, 25, 23, 0.12), 0 6px 16px rgba(28, 25, 23, 0.06);
  --sh-gold: 0 12px 28px rgba(161, 98, 7, 0.28);

  --container: 1200px;
  --container-wide: 1360px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Cinematic easing — slow, weighted, confident. No bounce. */
  --ease-cine: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-cine-in: cubic-bezier(0.7, 0, 0.3, 1);
  --header-h: 76px;
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--color-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--color-ink); line-height: 1.08; font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-600); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-300); color: var(--stone-950); }

/* ---------- 3. Layout Helpers ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container-wide { width: min(100% - 2.5rem, var(--container-wide)); margin-inline: auto; }
.section { padding-block: var(--sp-7); position: relative; }
.section-sm { padding-block: var(--sp-6); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.grid { display: grid; gap: var(--sp-3); }
.flex { display: flex; }

.eyebrow {
  display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; max-width: 100%;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-700); line-height: 1.4;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad-gold); border-radius: 2px; flex: none; }
.eyebrow.centered { justify-content: center; }

.section-head { max-width: 640px; margin-bottom: var(--sp-5); }
.section-head.center { margin-inline: auto; }
.section-head p { margin-top: var(--sp-2); color: var(--color-muted); font-size: var(--fs-lead); }
.section-head h2 { margin-top: 0.75rem; }
.text-gold { color: var(--gold-700); }
.serif-accent { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--gold-700); }

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--stone-900);
  --btn-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.6rem; border-radius: var(--r-pill);
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.01em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn-gold { --btn-bg: var(--gold-700); background: var(--grad-gold-strong); color: var(--white); box-shadow: var(--sh-gold); }
.btn-gold:hover { box-shadow: 0 16px 34px rgba(161, 98, 7, 0.38); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--stone-900); border-color: var(--stone-300); }
.btn-outline:hover { border-color: var(--stone-900); background: var(--stone-900); color: var(--white); }
/* light-ground ghost (hero / page-hero secondary CTAs) */
.btn-ghost-light { --btn-bg: transparent; --btn-fg: var(--color-ink); border-color: var(--color-border-strong); }
.btn-ghost-light:hover { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }
/* ghost that reads on the gold CTA band */
.btn-on-accent { --btn-bg: rgba(255,255,255,0.14); --btn-fg: #fff; border-color: rgba(255,255,255,0.6); backdrop-filter: blur(6px); }
.btn-on-accent:hover { background: #fff; color: var(--gold-800); border-color: #fff; }
.btn-lg { padding: 1.1rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.65rem 1.15rem; font-size: var(--fs-xs); }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: var(--fs-sm);
  color: var(--stone-900); transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--gold-700); gap: 0.7rem; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- 5. Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  background: transparent; border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 253, 250, 0.85); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: var(--sh-sm); border-bottom-color: var(--color-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: var(--sp-3); }

/* Default (transparent, over dark hero) = light text */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--color-ink); letter-spacing: -0.02em; transition: color 0.3s var(--ease); }
.brand .brand-mark { width: 40px; height: 40px; flex: none; }
.brand small { display: block; font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-accent-text); font-weight: 600; margin-top: 2px; }
/* Real circular badge logo + wordmark */
.brand-logo { height: 62px; width: auto; display: block; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--color-ink); letter-spacing: -0.01em; line-height: 1.05; white-space: nowrap; }
.footer-brand .brand-logo { height: 88px; }
.footer-brand .brand-name { font-size: 1.6rem; }
@media (max-width: 768px) { .brand-logo { height: 50px; } .brand-name { font-size: 1.15rem; } }
@media (max-width: 430px) { .brand-name { display: none; } }

.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-links a {
  position: relative; padding: 0.55rem 0.9rem; font-size: var(--fs-sm); font-weight: 500; color: var(--color-body);
  border-radius: var(--r-sm); transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.35rem; height: 2px;
  background: var(--grad-gold); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-700); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-phone { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: var(--fs-sm); color: var(--color-ink); transition: color 0.3s var(--ease); }
.nav-phone svg { width: 18px; height: 18px; color: var(--color-accent); }

.nav-toggle { display: none; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--color-ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.3s var(--ease); }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: calc(var(--header-h) + 2rem); padding-bottom: var(--sp-6); color: var(--color-body); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: var(--grad-hero-light); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(55% 50% at 80% 12%, rgba(212, 160, 23, 0.14), transparent 60%),
  radial-gradient(50% 50% at 12% 90%, rgba(161, 98, 7, 0.08), transparent 60%); }
.hero-grid-overlay { position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(rgba(28,25,23,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(28,25,23,0.04) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 90%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-5); align-items: center; }
.hero-inner > * { min-width: 0; }
.hero-copy { min-width: 0; }
.hero-eyebrow { color: var(--color-accent-text); }
.hero-eyebrow::before { background: var(--grad-gold); }
.hero h1 { color: var(--color-ink); font-size: var(--fs-hero); font-weight: 500; margin-block: 1.1rem 1.4rem; }
.hero h1 em { font-style: italic; color: var(--color-accent); }
.hero-lead { font-size: var(--fs-lead); color: var(--color-body); max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: var(--sp-4); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--color-border); }
.hero-trust .ht-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--color-ink); line-height: 1; }
.hero-trust .ht-label { font-size: var(--fs-xs); color: var(--color-muted); margin-top: 4px; letter-spacing: 0.03em; }
.hero-stars { color: var(--gold-500); letter-spacing: 2px; }

/* Hero visual — clean non-overlapping photo stack */
.hero-visual { position: relative; }
.hero-media { display: grid; gap: var(--sp-2); }
.hero-frame { position: relative; margin: 0; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); border: 1px solid var(--color-border); background: var(--color-surface-2); }
.hero-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-frame--main { aspect-ratio: 16 / 10; }
.hero-frame--sub { aspect-ratio: 16 / 7; }
.hero-frame-cap { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.85rem; border-radius: var(--r-pill); background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); color: var(--color-ink); font-size: var(--fs-xs); font-weight: 600; box-shadow: var(--sh-sm); }
.hfc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-gold); flex: none; }

/* ---------- 7. Image Placeholders (brand art) ---------- */
.ph { position: relative; background: var(--color-surface-2); overflow: hidden; isolation: isolate; }
.ph::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 80% at 30% 20%, rgba(212,160,23,0.12), transparent 60%), var(--grad-cream); }
.ph::after { content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(rgba(28,25,23,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(28,25,23,0.05) 1px, transparent 1px);
  background-size: 34px 34px; }
.ph .ph-tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.62); font-weight: 600; }
.ph .ph-ico { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; color: rgba(28,25,23,0.14); }
.ph .ph-ico svg { width: 34%; height: 34%; }
.ph.light { background: var(--stone-100); }
.ph.light::before { background: radial-gradient(80% 80% at 30% 20%, rgba(212,160,23,0.14), transparent 60%), linear-gradient(160deg, #F1ECE4, #E7E1D7); }
.ph.light::after { opacity: 0.5; background-image: linear-gradient(rgba(28,25,23,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(28,25,23,0.05) 1px, transparent 1px); background-size: 34px 34px; }
.ph.light .ph-ico { color: rgba(28,25,23,0.14); }
.ph.light .ph-tag { color: rgba(28,25,23,0.5); }

/* Real photography inside placeholder frames */
.ph-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; display: block; }
.ph .ph-tag { z-index: 3; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,0.75); }
.ph:not(:has(.ph-photo)) .ph-tag { color: var(--color-ink); text-shadow: none; }
.split-media .ph-tag { padding: 6px 10px; }

/* ---------- 8. Trust / Logo Bar ---------- */
.trustbar { background: var(--color-surface-2); color: var(--color-body); border-block: 1px solid var(--color-border); padding-block: var(--sp-4); }
.trustbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); text-align: center; }
.trust-stat .ts-num { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 600; color: var(--color-ink); line-height: 1; }
.trust-stat .ts-num .plus { color: var(--color-accent); }
.trust-stat .ts-label { font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); margin-top: 0.5rem; }
.trustbar-inner .trust-stat + .trust-stat { border-left: 1px solid var(--color-border); }

/* ---------- 9. Cards / Services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-lg);
  padding: var(--sp-4); box-shadow: var(--sh-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--gold-300); }
.card-icon { width: 56px; height: 56px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--stone-100); color: var(--gold-700); margin-bottom: var(--sp-3); transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.card:hover .card-icon { background: var(--grad-gold); color: #fff; }
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: var(--fs-sm); color: var(--color-muted); margin-bottom: var(--sp-3); }
.card .card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card .card-meta { font-size: var(--fs-xs); color: var(--gold-700); font-weight: 600; letter-spacing: 0.04em; }

/* Service card with image top */
.service-card { padding: 0; overflow: hidden; }
.service-card .sc-media { aspect-ratio: 16/10; }
.service-card .sc-body { padding: var(--sp-4); display: flex; flex-direction: column; flex: 1; }
.service-card .sc-body h3 { margin-bottom: 0.5rem; }
.service-card .sc-body p { flex: 1; }

/* Feature list */
.feature-list { display: grid; gap: var(--sp-2); }
.feature-item { display: flex; gap: 1rem; align-items: flex-start; }
.feature-item .fi-check { width: 30px; height: 30px; flex: none; border-radius: 8px; background: rgba(161,98,7,0.1); color: var(--gold-700); display: grid; place-items: center; }
.feature-item .fi-check svg { width: 18px; height: 18px; }
.feature-item h4 { font-family: var(--font-body); font-size: var(--fs-body); font-weight: 700; color: var(--stone-900); margin-bottom: 2px; }
.feature-item p { font-size: var(--fs-sm); color: var(--color-muted); }

/* ---------- 10. Split / About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: center; }
.split > * { min-width: 0; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media .ph { border-radius: var(--r-xl); aspect-ratio: 4/4.6; box-shadow: var(--sh-lg); }
.split-media .stat-float {
  position: absolute; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); border-radius: var(--r-md); padding: 1rem 1.3rem; box-shadow: var(--sh-md);
  border: 1px solid var(--color-border);
}
.stat-float.br { bottom: 16px; right: 16px; top: auto; left: auto; }
.stat-float.tl { top: 16px; left: 16px; bottom: auto; right: auto; }
.stat-float .sf-num { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--gold-700); line-height: 1; }
.stat-float .sf-label { font-size: var(--fs-xs); color: var(--color-muted); margin-top: 4px; }
.about-points { margin-top: var(--sp-4); display: grid; gap: var(--sp-2); }
.mini-stats { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--color-border); }
.mini-stat .ms-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--stone-900); line-height: 1; }
.mini-stat .ms-label { font-size: var(--fs-xs); color: var(--color-muted); margin-top: 4px; }

/* ---------- 11. Process ---------- */
.section-feature { background: var(--color-surface-3); color: var(--color-body); }
.section-feature h2, .section-feature h3 { color: var(--color-ink); }
.section-feature .section-head p { color: var(--color-muted); }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); counter-reset: step; }
.process-step { position: relative; padding-top: var(--sp-4); }
.process-step .ps-num { font-family: var(--font-display); font-size: 3rem; font-weight: 600; color: var(--gold-600); line-height: 1; }
.process-step h3 { font-size: 1.25rem; margin: 0.6rem 0; }
.process-step p { font-size: var(--fs-sm); color: var(--color-muted); }
.process-step::after { content: ""; position: absolute; top: calc(var(--sp-4) + 1.1rem); right: -0.75rem; width: 1.5rem; height: 2px; background: var(--color-border-strong); }
.process-step:last-child::after { display: none; }

/* ---------- 12. Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-3); }
.stat-block { text-align: center; padding: var(--sp-3); border-radius: var(--r-lg); background: var(--color-surface); border: 1px solid var(--color-border); }
.stat-block .sb-num { font-family: var(--font-display); font-size: clamp(2.4rem,4vw,3.4rem); font-weight: 600; color: var(--stone-900); line-height: 1; }
.stat-block .sb-num .suffix { color: var(--gold-700); }
.stat-block .sb-label { font-size: var(--fs-sm); color: var(--color-muted); margin-top: 0.5rem; }

/* ---------- 13. Projects gallery ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: var(--sp-4); }
.filter-btn { padding: 0.6rem 1.25rem; border-radius: var(--r-pill); border: 1.5px solid var(--color-border-strong); background: transparent; font-size: var(--fs-sm); font-weight: 600; color: var(--stone-700); cursor: pointer; transition: all 0.2s var(--ease); }
.filter-btn:hover { border-color: var(--stone-900); color: var(--stone-900); }
.filter-btn.active { background: var(--stone-900); border-color: var(--stone-900); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.project { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3.4; box-shadow: var(--sh-sm); cursor: pointer; transition: transform 0.4s var(--ease); }
.project .ph { position: absolute; inset: 0; }
.project-overlay { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--sp-3); background: linear-gradient(to top, rgba(12,10,9,0.85) 0%, rgba(12,10,9,0.1) 55%, transparent 100%); opacity: 0; transform: translateY(10px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.project:hover { transform: translateY(-4px); }
.project:hover .project-overlay { opacity: 1; transform: translateY(0); }
.project-overlay .po-cat { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-400); font-weight: 600; }
.project-overlay h3 { color: #fff; font-size: 1.3rem; margin-top: 0.35rem; }
.project-overlay .po-meta { color: rgba(255,255,255,0.7); font-size: var(--fs-sm); margin-top: 0.35rem; }
.project-tag { position: absolute; top: 14px; left: 14px; z-index: 3; background: rgba(250,250,249,0.92); backdrop-filter: blur(6px); color: var(--stone-900); font-size: var(--fs-xs); font-weight: 600; padding: 0.35rem 0.8rem; border-radius: var(--r-pill); }
.project.hide { display: none; }

/* ---------- 14. Testimonials ---------- */
.testi-viewport { overflow: hidden; }
.testi-track { display: flex; transition: transform 0.5s var(--ease); }
.testi-slide { min-width: 100%; padding: 0 0.25rem; }
.testi-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-xl); padding: var(--sp-5); box-shadow: var(--sh-sm); max-width: 820px; margin-inline: auto; text-align: center; }
.testi-card .quote-mark { font-family: var(--font-display); font-size: 4rem; line-height: 0.5; color: var(--gold-500); height: 2rem; }
.testi-card .testi-text { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 500; color: var(--stone-900); line-height: 1.4; margin-block: var(--sp-3); font-style: italic; }
.testi-stars { color: var(--gold-500); letter-spacing: 3px; font-size: 1.1rem; }
.testi-author { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin-top: var(--sp-3); }
.testi-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--color-surface); box-shadow: 0 0 0 2px var(--gold-300); background: var(--color-surface-2); }
.testi-author .ta-name { font-weight: 700; color: var(--stone-900); }
.testi-author .ta-role { font-size: var(--fs-sm); color: var(--color-muted); }
.testi-nav { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: var(--sp-4); }
.testi-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--color-border-strong); background: var(--color-surface); display: grid; place-items: center; cursor: pointer; transition: all 0.2s var(--ease); }
.testi-arrow:hover { background: var(--stone-900); border-color: var(--stone-900); color: #fff; }
.testi-arrow svg { width: 20px; height: 20px; }
.testi-dots { display: flex; gap: 0.5rem; }
.testi-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-border-strong); border: none; cursor: pointer; padding: 0; transition: all 0.25s var(--ease); }
.testi-dot.active { background: var(--gold-600); width: 26px; border-radius: var(--r-pill); }

/* ---------- 15. Service areas ---------- */
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; }
.area-chip { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.1rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-md); font-size: var(--fs-sm); font-weight: 500; transition: all 0.2s var(--ease); }
.area-chip:hover { border-color: var(--gold-400); box-shadow: var(--sh-sm); }
.area-chip svg { width: 18px; height: 18px; color: var(--gold-700); flex: none; }

/* Team members */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-3); }
.team-member { text-align: center; }
.tm-photo { width: 132px; height: 132px; margin: 0 auto 0.9rem; border-radius: 50%; overflow: hidden; border: 3px solid var(--color-surface); box-shadow: 0 0 0 3px var(--gold-300), var(--sh-md); background: var(--color-surface-2); }
.tm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--color-ink); }
.tm-role { font-size: var(--fs-sm); color: var(--color-muted); margin-top: 2px; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(3, 1fr); row-gap: var(--sp-4); } }
@media (max-width: 520px) { .team { grid-template-columns: repeat(2, 1fr); } .tm-photo { width: 116px; height: 116px; } }

/* ---------- 16. FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: var(--sp-3) 0; background: none; border: none; cursor: pointer; text-align: left; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--stone-900); }
.faq-q .faq-icon { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--color-border-strong); display: grid; place-items: center; transition: all 0.3s var(--ease); position: relative; }
.faq-q .faq-icon::before, .faq-q .faq-icon::after { content: ""; position: absolute; background: var(--stone-800); border-radius: 2px; transition: transform 0.3s var(--ease), background 0.3s var(--ease); }
.faq-q .faq-icon::before { width: 12px; height: 2px; }
.faq-q .faq-icon::after { width: 2px; height: 12px; }
.faq-item.open .faq-q { color: var(--gold-700); }
.faq-item.open .faq-icon { background: var(--gold-700); border-color: var(--gold-700); }
.faq-item.open .faq-icon::before, .faq-item.open .faq-icon::after { background: #fff; }
.faq-item.open .faq-icon::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a-inner { padding-bottom: var(--sp-3); color: var(--color-muted); font-size: var(--fs-body); }

/* ---------- 17. CTA band ---------- */
.cta-band { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: var(--sp-6); text-align: center; color: #fff; background: var(--grad-gold-strong); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 100% at 50% 0%, rgba(253,230,138,0.28), transparent 65%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.cta-band p { color: #FFF8EC; max-width: 52ch; margin: var(--sp-2) auto 0; font-size: var(--fs-lead); }
.cta-band .eyebrow { color: #FFF8EC; }
.cta-band .eyebrow::before { background: #fff; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: var(--sp-4); }

/* ---------- 18. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--sp-5); align-items: start; }
.contact-info { display: grid; gap: var(--sp-3); }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .ci-icon { width: 48px; height: 48px; flex: none; border-radius: var(--r-md); background: var(--stone-100); color: var(--gold-700); display: grid; place-items: center; }
.contact-item .ci-icon svg { width: 22px; height: 22px; }
.contact-item h4 { font-family: var(--font-body); font-size: var(--fs-body); font-weight: 700; color: var(--stone-900); margin-bottom: 2px; }
.contact-item a, .contact-item p { color: var(--color-muted); font-size: var(--fs-sm); }
.contact-item a:hover { color: var(--gold-700); }

.form-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-xl); padding: var(--sp-5); box-shadow: var(--sh-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.form-group { margin-bottom: var(--sp-3); }
.form-group label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--stone-800); margin-bottom: 0.4rem; }
.form-group .req { color: var(--gold-700); }
.form-control { width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--color-border-strong); border-radius: var(--r-sm); background: var(--stone-50); font-size: var(--fs-sm); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease); }
.form-control:focus { outline: none; border-color: var(--gold-600); background: #fff; box-shadow: 0 0 0 4px rgba(202,138,4,0.12); }
.form-control::placeholder { color: var(--stone-400); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-hint { font-size: var(--fs-xs); color: var(--color-muted); margin-top: 0.35rem; }
.form-error { display: none; font-size: var(--fs-xs); color: var(--color-destructive); margin-top: 0.35rem; font-weight: 500; }
.form-group.invalid .form-control { border-color: var(--color-destructive); background: #fff5f5; }
.form-group.invalid .form-error { display: block; }
.form-success { display: none; padding: var(--sp-3); border-radius: var(--r-md); background: rgba(21,128,61,0.08); border: 1px solid rgba(21,128,61,0.25); color: var(--color-success); font-weight: 600; text-align: center; margin-bottom: var(--sp-3); }
.form-success.show { display: block; }
.form-fail { display: none; padding: var(--sp-3); border-radius: var(--r-md); background: rgba(220,38,38,0.07); border: 1px solid rgba(220,38,38,0.3); color: var(--color-destructive); font-weight: 600; text-align: center; margin-bottom: var(--sp-3); }
.form-fail.show { display: block; }

/* ---------- 19. Footer ---------- */
.site-footer { background: var(--color-surface-3); color: var(--color-body); border-top: 1px solid var(--color-border); padding-top: var(--sp-6); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: var(--sp-4); padding-bottom: var(--sp-5); border-bottom: 1px solid var(--color-border); }
.footer-brand .brand { color: var(--color-ink); margin-bottom: var(--sp-2); }
.footer-brand .brand small { color: var(--color-accent-text); }
.footer-brand p { font-size: var(--fs-sm); max-width: 34ch; }
.footer-social { display: flex; gap: 0.6rem; margin-top: var(--sp-3); }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--color-border-strong); display: grid; place-items: center; color: var(--color-body); transition: all 0.2s var(--ease); }
.footer-social a:hover { background: var(--grad-gold); border-color: transparent; color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { font-family: var(--font-body); color: var(--color-ink); font-size: var(--fs-sm); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--sp-3); font-weight: 700; }
.footer-col ul { display: grid; gap: 0.75rem; }
.footer-col a { font-size: var(--fs-sm); transition: color 0.2s var(--ease), padding 0.2s var(--ease); }
.footer-col a:hover { color: var(--color-accent-text); padding-left: 4px; }
.footer-news p { font-size: var(--fs-sm); margin-bottom: var(--sp-2); }
.footer-news form { display: flex; gap: 0.5rem; }
.footer-news input { flex: 1; padding: 0.75rem 1rem; border-radius: var(--r-pill); border: 1px solid var(--color-border-strong); background: var(--color-surface); color: var(--color-ink); font-size: var(--fs-sm); }
.footer-news input::placeholder { color: var(--color-muted); }
.footer-news input:focus { outline: none; border-color: var(--gold-600); }
.footer-news button { flex: none; width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--grad-gold); color: #fff; cursor: pointer; display: grid; place-items: center; transition: transform 0.2s var(--ease); }
.footer-news button:hover { transform: scale(1.06); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--sp-3); }
.footer-badge { font-size: var(--fs-xs); padding: 0.4rem 0.75rem; border: 1px solid var(--color-border-strong); border-radius: var(--r-sm); color: var(--color-muted); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: var(--sp-3); font-size: var(--fs-xs); color: var(--color-muted); }
.footer-bottom .fb-links { display: flex; gap: var(--sp-3); }
.footer-bottom a:hover { color: var(--color-accent-text); }

/* ---------- 20. Page hero (inner pages) ---------- */
.page-hero { position: relative; padding-top: calc(var(--header-h) + var(--sp-6)); padding-bottom: var(--sp-6); color: var(--color-body); overflow: hidden; text-align: center; }
.page-hero h1 { color: var(--color-ink); font-weight: 500; font-size: var(--fs-h1); margin-top: 0.75rem; }
.page-hero p { color: var(--color-muted); max-width: 56ch; margin: var(--sp-2) auto 0; font-size: var(--fs-lead); }
.breadcrumb { display: flex; gap: 0.5rem; justify-content: center; font-size: var(--fs-sm); color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-accent-text); }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- 21. Back to top ---------- */
.to-top { position: fixed; bottom: 24px; right: 24px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; background: var(--stone-900); color: #fff; border: none; cursor: pointer; display: grid; place-items: center; box-shadow: var(--sh-lg); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all 0.3s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold-700); transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- 22. Scroll reveal (cinematic) ----------
   Progressive enhancement: reveals only hide once JS has confirmed it can
   restore them (html.js). No JS → content renders fully, nothing hidden. */
.reveal { transition: opacity 1.1s var(--ease-cine), transform 1.1s var(--ease-cine); }
.js .reveal { opacity: 0; transform: translateY(34px); will-change: opacity, transform; }
.js .reveal.in { opacity: 1; transform: none; will-change: auto; }
.reveal[data-delay="1"] { transition-delay: 0.09s; }
.reveal[data-delay="2"] { transition-delay: 0.18s; }
.reveal[data-delay="3"] { transition-delay: 0.27s; }
.reveal[data-delay="4"] { transition-delay: 0.36s; }
.reveal[data-delay="5"] { transition-delay: 0.45s; }

/* Media reveal — image settles from a slight over-scale (1.06 → 1).
   Written as :not(.in) + :hover (not .in) so the revealed resting state is
   plain scale(1) and hover-zoom can win on a specificity tie via source order. */
.js .reveal-img { overflow: hidden; }
.js .reveal-img img { transform: scale(1); transition: transform 1.4s var(--ease-cine); }
.js .reveal-img:not(.in) img { transform: scale(1.06); will-change: transform; }
.js .reveal-img:hover img { transform: scale(1.05); transition: transform 0.7s var(--ease-cine); }

/* Line-mask reveal — headline wipes up from behind a clip.
   padding/margin trick keeps glyph descenders (g, y, home's italic) from
   being shaved during the wipe. */
.js .reveal-mask { overflow: hidden; opacity: 1; transform: none; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.js .reveal-mask > * { transform: translateY(118%); transition: transform 1.2s var(--ease-cine); will-change: transform; }
.js .reveal-mask.in > * { transform: translateY(0); will-change: auto; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-img img, .js .reveal-img .ph-photo, .js .reveal-mask > * {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ---------- 23. Utility ---------- */
.badge-pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.9rem; border-radius: var(--r-pill); background: rgba(161,98,7,0.1); color: var(--gold-800); font-size: var(--fs-xs); font-weight: 600; }
.divider { height: 1px; background: var(--color-border); border: none; margin-block: var(--sp-5); }
.muted { color: var(--color-muted); }
.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.show-mobile { display: none; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: #fff; color: var(--stone-900); padding: 0.75rem 1.25rem; border-radius: 0 0 var(--r-sm) 0; font-weight: 600; }
.skip-link:focus { left: 0; }

/* ---------- 24. Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--sp-5); }
  .hero-visual { max-width: 520px; }
  .cards, .gallery { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: var(--sp-4); }
  .process-step:nth-child(2)::after { display: none; }
  .stats-band, .trustbar-inner { grid-template-columns: repeat(2, 1fr); }
  .trustbar-inner .trust-stat + .trust-stat { border-left: none; }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: var(--sp-5); }
  .footer-brand, .footer-news { grid-column: span 2; }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,253,250,0.98); backdrop-filter: blur(10px); padding: var(--sp-3); box-shadow: var(--sh-lg);
    transform: translateY(-120%); transition: transform 0.35s var(--ease); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  body.menu-open .nav-links { transform: translateY(0); }
  .nav-links a { color: var(--color-body); padding: 0.9rem 1rem; font-size: 1.05rem; border-bottom: 1px solid var(--color-border); border-radius: 0; }
  .nav-links a::after { display: none; }
  .nav-links a:hover, .nav-links a.active { color: var(--color-accent-text); }
  .nav-toggle { display: flex; }
  .nav-phone.hide-mobile { display: none; }
  .nav-actions .btn { display: none; }
  .nav-actions .btn.nav-cta-mobile { display: inline-flex; padding: 0.6rem 1rem; }

  .split, .contact-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .split.reverse .split-media { order: 0; }
  .stat-float.br { right: 12px; }
  .stat-float.tl { left: 12px; }
  .cards, .gallery, .stats-band, .trustbar-inner, .process { grid-template-columns: 1fr; }
  .process-step::after { display: none !important; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand, .footer-news { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding-block: var(--sp-6); }
  .cta-band { padding: var(--sp-5) var(--sp-3); }
  .hero h1 { font-size: clamp(2.4rem, 9vw, 3.2rem); }
  .hero-trust { gap: var(--sp-3); }
  .show-mobile { display: revert; }
}

@media (max-width: 420px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

/* ============================================================
   25. CINEMATIC LAYER  (enhancement — degrades to base styles)
   Activated by html.cinematic, set only when GSAP + Lenis load
   and motion is allowed. Everything here is additive.
   ============================================================ */

/* ---- Lenis smooth scroll (library-recommended base) ---- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
/* Native smooth-scroll fights Lenis — hand it over once Lenis is driving. */
html.cinematic { scroll-behavior: auto; }

/* ---- Film grain — a faint moving tooth over the whole page.
   One addition: gives the light palette cinematic texture without
   touching brand color; sits under content, ignores pointer. ---- */
.grain {
  position: fixed; inset: -150%; z-index: 1; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainshift 7s steps(6) infinite;
}
@keyframes grainshift {
  0% { transform: translate(0,0); } 20% { transform: translate(-6%,4%); }
  40% { transform: translate(4%,-5%); } 60% { transform: translate(-3%,6%); }
  80% { transform: translate(5%,3%); } 100% { transform: translate(0,0); }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* ---- Custom cursor — dot + trailing ring, scales/labels on
   interactive targets. JS adds html.has-cursor only on fine pointers. ---- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity 0.4s var(--ease-cine); mix-blend-mode: normal; }
.cursor-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--gold-600); }
.cursor-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1.5px solid rgba(161,98,7,0.55); transition: opacity 0.4s var(--ease-cine), width 0.35s var(--ease-cine), height 0.35s var(--ease-cine), margin 0.35s var(--ease-cine), background 0.35s var(--ease-cine), border-color 0.35s var(--ease-cine); }
html.has-cursor.ready .cursor-dot, html.has-cursor.ready .cursor-ring { opacity: 1; }
/* Hide the native arrow only where our cursor is truly active. */
html.has-cursor.ready, html.has-cursor.ready a, html.has-cursor.ready button, html.has-cursor.ready .btn, html.has-cursor.ready [data-cursor] { cursor: none; }
/* ...but keep a real caret over anything you type into. */
html.has-cursor.ready input, html.has-cursor.ready textarea, html.has-cursor.ready select { cursor: auto; }
/* Grow the ring into a soft disc over labelled targets. */
html.has-cursor .cursor-ring.hovering { width: 66px; height: 66px; margin: -33px 0 0 -33px; background: rgba(161,98,7,0.10); border-color: transparent; }
html.has-cursor .cursor-ring.hovering.dark { background: rgba(255,255,255,0.14); }
html.has-cursor .cursor-dot.hovering { opacity: 0; }
.cursor-ring .cursor-label { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-body); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-800); opacity: 0; transition: opacity 0.3s var(--ease-cine); white-space: nowrap; }
.cursor-ring.hovering.dark .cursor-label { color: #fff; }
.cursor-ring.labelled .cursor-label { opacity: 1; }

/* ---- Hero parallax scaffolding ---- */
.cinematic .hero-bg { will-change: transform; }
.cinematic .hero-media { will-change: transform; }
.hero-scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; display: inline-flex; flex-direction: column; align-items: center; gap: 0.5rem; font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-muted); }
.hero-scroll-cue .hsc-track { width: 1px; height: 46px; background: linear-gradient(var(--color-border-strong), transparent); position: relative; overflow: hidden; }
.hero-scroll-cue .hsc-track::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--gold-600); animation: cueDrop 2.2s var(--ease-cine) infinite; }
@keyframes cueDrop { 0% { top: -55%; } 60%,100% { top: 105%; } }
@media (prefers-reduced-motion: reduce) { .hero-scroll-cue .hsc-track::after { animation: none; } }
@media (max-width: 1024px) { .hero-scroll-cue { display: none; } }

/* ---- Cinematic showcase — pinned figure that expands to full-bleed.
   One addition: delivers the required image-expansion moment. Reuses an
   existing project photo; no new content or claims. Base (no GSAP) renders
   it as a normal contained figure — no dead scroll space. ---- */
.showcase { position: relative; background: var(--grad-warm); color: var(--color-on-dark); padding-block: var(--sp-7); overflow: clip; }
.showcase-inner { position: relative; z-index: 2; }
.showcase-media { position: relative; margin: 0 auto; width: min(100% - 2.5rem, 1100px); aspect-ratio: 16/9; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); will-change: clip-path, transform; }
.showcase-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.showcase-cap { position: absolute; left: 22px; bottom: 20px; z-index: 2; color: #fff; }
.showcase-cap .sc-k { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-300); font-weight: 700; }
.showcase-cap .sc-t { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 500; margin-top: 0.2rem; text-shadow: 0 2px 30px rgba(0,0,0,0.5); }
.showcase-head { text-align: center; max-width: 640px; margin: 0 auto var(--sp-5); }
.showcase-head .eyebrow { color: var(--gold-300); }
.showcase-head .eyebrow::before { background: var(--gold-400); }
.showcase-head h2 { color: #fff; }
.showcase-head p { color: rgba(243,239,233,0.72); margin-top: var(--sp-2); font-size: var(--fs-lead); }
/* When GSAP actually drives the pin (class added by cinematic.js only on
   large screens), the head scrolls in normally, then the figure pins
   full-screen and its clip-path opens from framed → full-bleed. On mobile
   / no-GSAP the showcase stays the plain contained figure above. */
.showcase.is-expand { padding-block: 0; }
.showcase.is-expand .showcase-head { padding-block: var(--sp-7) var(--sp-6); margin-bottom: 0; }
.showcase.is-expand .showcase-media { width: 100vw; max-width: none; margin: 0; aspect-ratio: auto; height: 100vh; border-radius: 0; box-shadow: none; clip-path: inset(8% 12% round 28px); }
.showcase.is-expand .showcase-media img { transform: scale(1.12); }

/* ---- Cinematic hover craft (slow, weighted) ---- */
/* Image frames: photo drifts in scale behind an overflow clip on hover. */
.hero-frame img, .project .ph-photo, .split-media .ph-photo, .service-card .sc-media .ph-photo { transition: transform 0.7s var(--ease-cine); }
.hero-frame:hover img { transform: scale(1.05); }
.project:hover .ph-photo { transform: scale(1.06); }
.split-media .ph:hover .ph-photo { transform: scale(1.04); }
/* Underline draw-in for footer + inline links */
.footer-col a, .breadcrumb a, .fb-links a { background-image: linear-gradient(var(--gold-600), var(--gold-600)); background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.45s var(--ease-cine), color 0.3s var(--ease-cine); }
.footer-col a:hover, .breadcrumb a:hover, .fb-links a:hover { background-size: 100% 1.5px; }
.footer-col a:hover { padding-left: 0; } /* supersede the old jump with a draw-in */
/* Buttons: settle a touch slower and heavier for the cinematic feel. */
.btn { transition: transform 0.45s var(--ease-cine), box-shadow 0.45s var(--ease-cine), background 0.45s var(--ease-cine), color 0.45s var(--ease-cine); }
.card, .project, .area-chip { transition: transform 0.5s var(--ease-cine), box-shadow 0.5s var(--ease-cine), border-color 0.5s var(--ease-cine); }

/* Magnetic targets keep their transform driven by JS; no CSS transition fighting it. */
html.has-cursor [data-magnetic] { transition: box-shadow 0.45s var(--ease-cine), background 0.45s var(--ease-cine), color 0.45s var(--ease-cine); }

@media (prefers-reduced-motion: reduce) {
  .showcase-media img { transform: none; }
}

/* ---------- 25. Org chart (About) ----------
   Additive only — no existing rule is touched. All classes are `org-` namespaced.
   Structure is a semantic nested <ul> of arbitrary depth; every connector is a
   decorative pseudo-element, so screen readers get the hierarchy and none of the
   lines. ONE generic `.org-branch` rule set draws every tier, so adding a level
   to the markup needs no new CSS.

   Cards read as contact cards. They sit compact + vertical so the widest tier
   fits the container, and hovering one morphs it in place into the full
   horizontal layout (big photo left, name/role/location right). */
.org-chart {
  margin-top: var(--sp-5);
  /* One place to tune every connector. */
  --org-line: var(--color-border-strong);
  --org-line-w: 2px;
  --org-elbow: 12px;
  /* Vertical run between tiers. A stem's height and the margin it spans MUST
     be equal or the line under/over-shoots, so both read this one value. */
  --org-gap: var(--sp-4);
  /* Card + pop widths. The widest tier is 5 cards and 3 gaps wide, so the card
     width is what decides whether the tree clears the 1200px container — it
     scales down once at 1200px and the tree stacks entirely below 1024px.
     Recompute both bands if a tier ever gains a sixth card. */
  --org-card-w: 190px;
  --org-lead-w: 250px;
  --org-pop-w: 340px;
}
.org-tree, .org-tree ul { list-style: none; margin: 0; padding: 0; }

/* Affordance for the hover morph. Hidden wherever the morph isn't reachable or
   isn't needed — a pointerless device, and the stacked layout where the cards
   are already horizontal — so it never promises an interaction that isn't there. */
.org-hint {
  margin: var(--sp-2) 0 0; text-align: center;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-muted);
}
@media (hover: none), (max-width: 1024px) { .org-hint { display: none; } }

/* ---- Slot: holds the tree geometry still while the card grows ----
   The card is absolutely positioned and the slot reserves its footprint, so the
   hover morph (190px vertical -> 340px horizontal) overlaps its neighbours
   instead of shoving them. The heights MUST be explicit for that to work: a slot
   that sized to its content would collapse the instant the card went absolute.
   Retune these if a card's content grows a line. */
.org-slot { position: relative; flex: none; }
.org-slot--lead { width: var(--org-lead-w); height: 172px; }
.org-slot--person { width: var(--org-card-w); height: 224px; }

/* ---- Node card ---- */
.org-node {
  /* Connectors are absolutely-positioned pseudo-elements, which paint ABOVE
     static siblings — so without this the lines draw over the cards and pills.
     The nodes are already opaque; they just need to win the paint order. */
  position: relative; z-index: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  padding: 1.1rem 1rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  text-align: center;
}
/* Only slotted cards leave the flow — the department pills stay static. */
.org-slot > .org-node {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; min-height: 100%;
  transition: width 0.42s var(--ease), min-height 0.42s var(--ease),
              top 0.42s var(--ease), transform 0.42s var(--ease),
              padding 0.42s var(--ease), box-shadow 0.42s var(--ease),
              border-color 0.42s var(--ease);
}

/* ---- The morph: vertical card -> horizontal contact card ----
   Presentation only — the compact card already carries the name, role and
   location, so nothing here is load-bearing for a reader who never triggers it
   (touch, keyboard, reduced motion). That's why no card is focusable: ten tab
   stops to reveal text that is already on screen is a bad trade. */
.org-slot:hover > .org-node {
  width: var(--org-pop-w); z-index: 20;
  flex-direction: row; align-items: center; text-align: left;
  gap: var(--sp-2); padding: 1.1rem 1.3rem;
  box-shadow: var(--sh-lg); border-color: var(--gold-300);
  /* Drop the slot-height floor and re-centre on the slot, so the card settles
     to its content instead of staying as tall as the vertical state — a contact
     card reads wrong at near-square proportions. */
  min-height: 0; top: 50%; transform: translate(-50%, -50%);
}

/* ---- Card internals ---- */
/* Wrapper is what lets the card flip axis: the row layout is avatar + this
   block, not avatar + four loose lines. */
.org-body { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; width: 100%; flex: 1; }
.org-slot:hover > .org-node .org-body { align-items: flex-start; }

.org-name {
  font-family: var(--font-body); font-size: var(--fs-sm);
  text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.2;
}
/* Both names in ink. The given name keeps its heavier weight so first/last
   still read as two parts, but colour is no longer the device: gold on a name
   read as highlighting one person over another. */
.org-fname { font-weight: 700; color: var(--stone-900); }
.org-lname { font-weight: 400; color: var(--stone-900); }
.org-lead .org-name { font-size: var(--fs-lead); }
.org-slot:hover > .org-node .org-name { font-size: var(--fs-lead); }

/* Accent rule under the name. It used to echo a two-tone name; the name is now
   all ink, so this is the only gold on the card and carries the brand alone. */
.org-rule {
  width: 72%; height: 2px; flex: none; border-radius: 1px;
  background: linear-gradient(90deg, var(--color-accent) 0 50%, var(--stone-800) 50%);
  transition: width 0.42s var(--ease);
}
.org-slot:hover > .org-node .org-rule { width: 100%; }

.org-role { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); line-height: 1.3; }

/* Location chip — the card's footer band, shrunk to a pill so it survives both
   axes. `margin-top: auto` pins it to the card's bottom edge in the vertical
   state; in the row state the card centres its children, so it has no effect. */
.org-loc {
  display: inline-flex; align-items: center; gap: 0.3rem; margin-top: auto;
  padding: 0.24rem 0.62rem; border-radius: var(--r-pill);
  background: var(--color-surface-3); color: var(--color-accent-text);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.org-loc svg { width: 11px; height: 11px; flex: none; }

/* Avatar — swap the inner <svg> for <img> when photos arrive. The circle, ring
   and crop are handled here, so the swap needs no CSS change. */
.org-avatar {
  width: 58px; height: 58px; flex: none; border-radius: 50%; overflow: hidden;
  background: var(--stone-100); color: var(--stone-400);
  border: 2px solid var(--gold-500);
  display: grid; place-items: center;
  transition: width 0.42s var(--ease), height 0.42s var(--ease);
}
.org-avatar svg { width: 26px; height: 26px; }
.org-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Photo carries the horizontal card, so it grows with the morph. */
.org-slot:hover > .org-node .org-avatar { width: 92px; height: 92px; }
.org-slot:hover > .org-node .org-avatar svg { width: 40px; height: 40px; }

/* ---- Tier 1 — CEO and CFO as peers, joined by a short rule across the gap ---- */
.org-pair { position: relative; display: flex; justify-content: center; gap: var(--sp-3); }
.org-pair::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: var(--sp-3); height: var(--org-line-w); background: var(--org-line);
}
.org-lead { border-color: var(--gold-300); box-shadow: var(--sh-md); }

/* ---- Generic branch — draws EVERY tier below the pair ----
   NOTE the `.org-chart` prefix: the list reset above (`.org-tree ul`) carries a
   type selector, so it outranks a bare `.org-branch` class and would silently
   kill the margin-top — leaving the stem drawn upward into the cards above.
   Keep the prefix on any rule here that sets margin or a custom property. */
.org-chart .org-branch {
  /* Horizontal run between siblings. Every `calc(var(--org-sib-gap) / -2)` below
     depends on this matching the branch's actual `gap`, so change them together.
     Declared HERE, not on .org-chart, so a nested branch resets to the default
     instead of inheriting a parent branch's override. */
  --org-sib-gap: var(--sp-2);
  position: relative; display: flex; justify-content: center;
  gap: var(--org-sib-gap); margin-top: var(--org-gap);
}
/* Trunk: drops from the parent card onto this branch's bus. */
.org-branch::before {
  content: ""; position: absolute; top: calc(var(--org-gap) * -1); left: 50%;
  transform: translateX(-50%); width: var(--org-line-w); height: var(--org-gap);
  background: var(--org-line);
}
.org-branch > li { position: relative; padding-top: var(--org-gap); display: flex; flex-direction: column; align-items: center; }
/* Each outer branch is ONE bordered elbow: the top border is the bus half, the
   side border is the drop, and the rounded corner joins them. Drawing it as a
   single box (rather than a bus segment + drop meeting at a hard 90°) is what
   makes it read as a branch instead of a wireframe. The two elbows' top edges
   meet in the middle of the sibling gap, and the trunk lands on that run. */
.org-branch > li::before {
  content: ""; position: absolute; top: 0; height: var(--org-gap);
  border-top: var(--org-line-w) solid var(--org-line);
}
.org-branch > li:first-child::before {
  left: calc(50% - var(--org-line-w) / 2); right: calc(var(--org-sib-gap) / -2);
  border-left: var(--org-line-w) solid var(--org-line);
  border-top-left-radius: var(--org-elbow);
}
.org-branch > li:last-child::before {
  right: calc(50% - var(--org-line-w) / 2); left: calc(var(--org-sib-gap) / -2);
  border-right: var(--org-line-w) solid var(--org-line);
  border-top-right-radius: var(--org-elbow);
}
/* Middle reports sit under the trunk: straight bus across, own drop. */
.org-branch > li:not(:first-child):not(:last-child)::before {
  left: calc(var(--org-sib-gap) / -2); right: calc(var(--org-sib-gap) / -2);
}
.org-branch > li:not(:first-child):not(:last-child)::after {
  content: ""; position: absolute; top: 0; left: calc(50% - var(--org-line-w) / 2);
  width: var(--org-line-w); height: var(--org-gap); background: var(--org-line);
}
/* A lone report gets a straight drop and no bus to nowhere. Must stay last —
   an only-child also matches the :first-child and :last-child rules above. */
.org-branch > li:only-child::before {
  left: calc(50% - var(--org-line-w) / 2); right: auto;
  width: var(--org-line-w); height: var(--org-gap);
  border: 0; border-radius: 0; background: var(--org-line);
}

/* The two top-level departments need room to read as separate columns. The
   prefix is required to beat `.org-chart .org-branch` above on specificity. */
.org-chart .org-branch--depts { --org-sib-gap: var(--sp-6); }

/* Department node reads as a label pill, not a person. */
.org-dept { background: var(--color-surface-3); border-color: var(--color-border-strong); box-shadow: none; border-radius: var(--r-pill); padding: 0.65rem 1.5rem; }
.org-dept .org-name { font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.1em; color: var(--color-accent-text); }

/* ---------- 25b. Team ribbons (About) ----------
   Rosters for the wider teams that sit outside the reporting tree. Names get
   dropped into `.org-roster` as `.org-member` cards — see the template comment
   in about.html. */
.org-ribbons { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); }
.org-ribbon {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
.org-ribbon-head {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.95rem var(--sp-3);
  background: var(--grad-ink); color: var(--color-on-dark);
}
.org-ribbon--gold .org-ribbon-head { background: var(--grad-gold-strong); color: var(--color-on-accent); }
.org-ribbon-head svg { width: 18px; height: 18px; flex: none; color: var(--gold-300); }
.org-ribbon--gold .org-ribbon-head svg { color: var(--color-on-accent); }
.org-ribbon-title {
  margin: 0; font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: inherit;
}
.org-roster {
  list-style: none; margin: 0; padding: var(--sp-3);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: var(--sp-2);
}
/* Placeholder until the client supplies the names. Delete this <li> as soon as
   the first real member lands — an empty dashed box on a live page reads as a
   bug, not as "pending". */
.org-roster-empty {
  grid-column: 1 / -1; margin: 0; padding: var(--sp-4); text-align: center;
  color: var(--color-muted); font-size: var(--fs-sm);
  border: 1px dashed var(--color-border-strong); border-radius: var(--r-md);
}
/* Roster cards are born horizontal — the grid gives them the width the tree
   can't, so there is nothing to morph. */
.org-member { flex-direction: row; align-items: center; text-align: left; gap: var(--sp-2); box-shadow: var(--sh-xs); padding: 0.9rem 1rem; }
.org-member:hover { box-shadow: var(--sh-md); border-color: var(--gold-300); }
.org-member .org-avatar { width: 66px; height: 66px; }
.org-member .org-avatar svg { width: 28px; height: 28px; }
.org-member .org-body { align-items: flex-start; }
.org-member .org-rule { width: 100%; }
.org-member .org-loc { margin-top: 0.1rem; }

/* The tree is at its widest here — 5 cards + 3 gaps. Narrowing the card and the
   department gap together buys ~126px, which is what keeps it inside the
   container all the way down to the stacking breakpoint. */
@media (max-width: 1200px) {
  .org-chart { --org-card-w: 168px; --org-lead-w: 230px; --org-pop-w: 320px; }
  .org-chart .org-branch--depts { --org-sib-gap: var(--sp-5); }
}

/* Stacked layout — cross-column buses can't survive a reflow, so they're dropped
   and an indented rail carries the hierarchy instead. At this width every card
   has room to be horizontal outright, so the hover morph is retired rather than
   left as a state a touch user can never reach. */
@media (max-width: 1024px) {
  /* Retune the whole vertical rhythm from one value; every stem, margin and
     padding below reads it, so they stay in lockstep. */
  .org-chart { --org-gap: var(--sp-3); }

  /* One narrow centred column. Capping the CHART — not each card — is what keeps
     the cards a uniform width: they can then fill their level outright, and the
     indent below stays legible instead of being swallowed by re-centring. A card
     stretched to full tablet width reads as a banner, not as a person. */
  .org-chart { max-width: 420px; margin-inline: auto; }

  .org-pair { flex-direction: column; align-items: center; gap: var(--sp-3); }
  .org-pair::before { width: var(--org-line-w); height: var(--sp-3); }

  .org-slot--lead, .org-slot--person { width: 100%; max-width: none; height: auto; }
  .org-slot > .org-node,
  .org-slot:hover > .org-node {
    position: relative; top: auto; left: auto; transform: none;
    width: 100%; min-height: 0; z-index: 1;
    flex-direction: row; align-items: center; text-align: left;
    gap: var(--sp-2); padding: 1rem 1.1rem;
    box-shadow: var(--sh-sm); border-color: var(--color-border);
  }
  .org-lead, .org-slot:hover > .org-lead { border-color: var(--gold-300); box-shadow: var(--sh-md); }
  .org-body, .org-slot:hover > .org-node .org-body { align-items: flex-start; }
  .org-rule, .org-slot:hover > .org-node .org-rule { width: 100%; }
  .org-avatar, .org-slot:hover > .org-node .org-avatar { width: 72px; height: 72px; }
  .org-avatar svg, .org-slot:hover > .org-node .org-avatar svg { width: 32px; height: 32px; }
  .org-loc { margin-top: 0.15rem; }

  .org-chart .org-branch { flex-direction: column; align-items: stretch; gap: var(--sp-2); width: 100%; }
  /* Indent + rail is the whole hierarchy here. Without it a five-deep tree
     collapses into one undifferentiated stack and nothing says Sukre reports to
     Gajanan. Applies from the second level down, so a department's own card
     stays flush with its pill. */
  .org-chart .org-branch .org-branch {
    width: auto; margin-left: var(--sp-1);
    padding-left: var(--sp-2);
    border-left: var(--org-line-w) solid var(--org-line);
  }
  .org-branch::before { display: none; }
  .org-branch > li { padding-top: 0; width: 100%; align-items: stretch; }
  .org-branch > li::before, .org-branch > li::after { display: none; }
  /* Pill hugs its text; stretch would smear it across the column. */
  .org-dept { align-self: flex-start; }

  .org-roster { grid-template-columns: 1fr; }
}

/* ---------- 26. Hero — ribbon band + floating service tabs ----------
   Additive only. Appended after every existing rule, so the few overrides
   below (.hero-inner grid, .hero h1 margin) win on source order without
   editing anything upstream. All colour comes from existing tokens. */

.hero--ribbon { padding-bottom: var(--sp-7); }
/* `min-width: 0` is load-bearing, not tidiness: .hero-inner is a flex item of
   `.hero { display:flex }` with the default `min-width:auto`, so the 100vw
   ribbon's min-content contribution would inflate the item to 100vw. That
   resolves the ribbon's `calc(50% - 50vw)` against 100vw instead of 1360px
   (bleed collapses to 0) and destroys the gutter for the rack and trust row.
   The existing `.hero-inner > * { min-width: 0 }` covers children, not the
   item itself. */
.hero--ribbon .hero-inner { display: block; min-width: 0; }

/* ---- The ribbon: a true horizontal band, full-bleed across the hero ---- */
/* The message layer. Deliberately has NO background, border or shadow: it is the
   backdrop the tabs float over, not a band sitting on the page. An opaque white
   strip here drew two hard seams across the hero and, because it out-stacked the
   tab rack, visibly covered the card tops. Both are gone; the hero is now one
   continuous surface. z-index 0 keeps it explicitly BEHIND .hero-tabs. */
.hero-ribbon {
  position: relative;
  z-index: 0;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-block: var(--sp-4);
}
/* Gold rule along the ribbon's top edge */
/* No ::before gold cap and no ::after cast shadow any more. Both existed to sell
   the message layer AS a band with edges; the brief is the opposite. The gold
   still enters the hero through the eyebrow rule and the tabs' Explore arrows. */
/* Cast shadow that falls from the ribbon onto the tabs tucked beneath it */

.hero-ribbon-inner {
  width: min(100% - 2.5rem, var(--container-wide));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: var(--sp-5);
  align-items: end;
}
.hero-ribbon-inner > * { min-width: 0; }

/* `.hero-ribbon h1` is 0,1,1 — it beats the base `.hero h1` (0,1,1) only on
   source order, which is why this section must stay at the end of the file. */
.hero-ribbon h1 { margin-block: 0.7rem 0; text-wrap: balance; }
.hero-ribbon-aside { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
.hero-ribbon-aside .hero-lead { max-width: 46ch; font-size: var(--fs-body); color: var(--color-muted); }
.hero-ribbon-aside .btn { flex: none; }

/* ---- The tab rack: 4 tall cards hanging under the ribbon's overhang ---- */
/* The rack floats ON TOP of the message layer (z-index 2 vs the ribbon's 0).
   The negative margin now pulls the cards UP OVER the copy rather than tucking
   them under a band, which is what makes them read as floating rather than
   recessed. */
.hero-tabs {
  position: relative;
  z-index: 2;
  width: min(100%, 1120px);
  margin-inline: auto;
  margin-top: calc(var(--sp-3) * -1);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}
/* `.reveal` lives on this wrapper, never on the anchor: `.js .reveal.in`
   (0,3,0) would outrank `.hero-tab:hover` and pin the lift to none. */
.hero-tab-slot { min-width: 0; }

/* No border, by request: the card edge is carried by the photo meeting the page
   and by the shadow underneath it, not by a drawn line. The shadow STAYS, and is
   in fact the whole trick: with the band gone it is the only thing left telling
   the eye these cards sit above the surface rather than in it. */
.hero-tab {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-lg);
  background: var(--color-surface-3);
  box-shadow: 0 22px 48px rgba(28, 25, 23, 0.22), 0 6px 14px rgba(28, 25, 23, 0.10);
  text-decoration: none;
  transition: transform 0.5s var(--ease-cine), box-shadow 0.5s var(--ease-cine);
}

.hero-tab-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.9s var(--ease-cine);
}
/* NOTE: no `object-position` correction for the landscaping frame. It would be
   a no-op: every tab box is portrait and the source photos are landscape, so
   `cover` scales to fill the HEIGHT and leaves zero vertical slack for the Y
   axis to pan into — only X can shift. The framing is baked into the cropped
   asset (assets/img/tab-landscaping.webp) instead, where it actually works. */

/* Warm ink scrim — same ink the project overlays use.
   The mid stops carry the label, so they are set by the WORST photo, not the
   average one: these four cards mix a dim framing shot against a high-key one
   (blue sky, white stucco), and at 0.62/0.30 the white label measured 8.6:1 on
   the dark photos but only 4.3:1 on the brightest — a real AA failure on one
   card and a visibly hazier pair either way. Raised until the weakest card
   clears 4.5:1; the dark cards can afford the extra ink. Re-measure if the
   photography changes. */
.hero-tab::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top,
    rgba(12, 10, 9, 0.94) 0%,
    rgba(12, 10, 9, 0.78) 42%,
    rgba(12, 10, 9, 0.48) 72%,
    rgba(12, 10, 9, 0.24) 100%);
  transition: opacity 0.5s var(--ease-cine);
}
/* Gold rule that draws across the card head on hover */
.hero-tab::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 3;
  height: 4px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--ease-cine);
}

/* flex-end, NOT space-between. This used to hold two children (the 01-04 numeral
   at the top, the label group at the bottom) and space-between put them there.
   With the numeral removed there is only one child left, and space-between then
   parks it at the TOP of the card, which is exactly where the bottom-up scrim is
   weakest: the label ended up white-on-daylight. The label must stay pinned to
   the bottom, where the ink is. */
.hero-tab-body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-3);
}
.hero-tab-foot { display: flex; flex-direction: column; gap: 0.55rem; }
.hero-tab-label {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.65vw + 0.85rem, 1.35rem);
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 18px rgba(12, 10, 9, 0.65);
  text-wrap: balance;
}
/* One-line descriptor under the label. MUST set its own colour: everything in
   the tab sits on a near-black scrim, but nothing above declares a colour, so
   without this it inherits `body { color: var(--color-body) }` (#44403C) and
   lands at 1.9:1 on the scrim — present, but unreadable. */
.stab-meta {
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: rgba(243, 239, 233, 0.82);
  text-shadow: 0 1px 12px rgba(12, 10, 9, 0.7);
}
.hero-tab-go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-300);
  opacity: 0.9;
  transition: opacity 0.4s var(--ease-cine);
}
/* 0,2,1 — clears the base `img, svg, video { height: auto }` reset. */
.hero-tab-go svg {
  width: 15px;
  height: 15px;
  transition: transform 0.5s var(--ease-cine);
}

/* Float: real elevation, offset shadow, weighted lift */
.hero-tab:hover,
.hero-tab:focus-visible {
  transform: translateY(-12px);
  box-shadow: 0 34px 60px rgba(28, 25, 23, 0.26), 0 10px 20px rgba(28, 25, 23, 0.12);
}
.hero-tab:hover::before,
.hero-tab:focus-visible::before { transform: scaleX(1); }
.hero-tab:hover .hero-tab-img,
.hero-tab:focus-visible .hero-tab-img { transform: scale(1.1); }
.hero-tab:hover .hero-tab-go,
.hero-tab:focus-visible .hero-tab-go { opacity: 1; }
.hero-tab:hover .hero-tab-go svg,
.hero-tab:focus-visible .hero-tab-go svg { transform: translateX(5px); }
/* No `outline` override here on purpose. A gold ring at outline-offset sits in
   the cream gap, not on the card's dark interior, so lightening it to gold-500
   measured 2.24:1 against the page — below the 3:1 WCAG 1.4.11 needs for a
   focus indicator. The global :focus-visible ring is darker; let it win. */

/* Trust row sits centred beneath the rack */
.hero--ribbon .hero-trust { justify-content: center; text-align: center; }

/* ---- Responsive ---- */
/* <=1024px is also cinematic.js's `small` flag, so no pinning exists here. */
@media (max-width: 1024px) {
  .hero--ribbon { min-height: 0; padding-bottom: var(--sp-6); }
  .hero-ribbon-inner { grid-template-columns: 1fr; gap: var(--sp-3); align-items: start; }
  .hero-tabs { grid-template-columns: repeat(2, 1fr); margin-top: -14px; }
  .hero-tab { aspect-ratio: 3 / 3.5; }
}
@media (max-width: 768px) {
  .hero-ribbon { padding-block: var(--sp-3); }
  .hero-ribbon-aside .btn { width: 100%; }
}
/* Covers both 390px and 430px handsets. Single column at 4/3 rather than the
   desktop 3/4: four full-width 3:4 cards is a ~1500px tower before the visitor
   reaches anything else. 4/3 keeps it landscape-lite at ~1000px. Flagged to the
   owner — "vertical rectangular" describes the desktop composition. */
@media (max-width: 480px) {
  .hero-tabs { grid-template-columns: 1fr; gap: 0.75rem; margin-top: var(--sp-2); }
  .hero-tab { aspect-ratio: 4 / 3; }
  .hero-tab-body { padding: var(--sp-2); }
  .hero--ribbon .hero-trust { gap: var(--sp-3); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-tab-img { transform: none; }
  .hero-tab:hover, .hero-tab:focus-visible { transform: none; }
  .hero-tab:hover .hero-tab-img, .hero-tab:focus-visible .hero-tab-img { transform: none; }
  .hero-tab:hover .hero-tab-go svg, .hero-tab:focus-visible .hero-tab-go svg { transform: none; }
  .hero-tab::before { transform: scaleX(1); }
}

/* ---------- 27. Panoramic video showcase ----------
   Rides the existing .showcase / .showcase-media / .is-expand machinery — the
   pin, the head and the clip-path timeline are inherited unchanged. Only the
   deltas a <video> on a cream ground needs are declared here.

   The RESTING state (no JS, no GSAP, mobile, reduced motion) is already the
   panoramic strip: a contained 21:9 figure that just plays. The full-bleed
   100vw x 100vh geometry lives ONLY under .is-expand, which cinematic.js adds
   on large screens. Cream ground, not a second --grad-warm band, so the video
   reads as the page's one dark object. */

/* 0,2,0 — beats the base `.showcase` (0,1,0) regardless of source order. */
.showcase.showcase--video {
  background: var(--color-surface-2);
  color: var(--color-body);
  border-block: 1px solid var(--color-border);
  overflow: clip;
}
/* The base head is styled for the dark band; re-ground it for cream. */
.showcase--video .showcase-head h2 { color: var(--color-ink); }
.showcase--video .showcase-head p { color: var(--color-muted); }
.showcase--video .showcase-head .eyebrow { color: var(--gold-700); }
.showcase--video .showcase-head .eyebrow::before { background: var(--grad-gold); }

/* Panoramic at rest. Without this the figure inherits `aspect-ratio: 16/9`
   from .showcase-media and the no-JS / mobile / reduced-motion state is not
   panoramic at all — which is the thing the brief actually asked for. */
.showcase--video .showcase-media {
  width: min(100% - 2.5rem, 1280px);
  aspect-ratio: 21 / 9;
  background: var(--stone-950);
}

/* No standing `transform` here, deliberately. The 1.14 zoom is the FROM value
   of the pin timeline, and only GSAP ever animates it back to 1 — so declaring
   it on the base rule left the video permanently 14% zoomed and cropped in every
   state where the timeline never runs: mobile, tablet, reduced motion, and any
   time the GSAP CDN fails. The zoom belongs with .is-expand, which cinematic.js
   adds under exactly the conditions where the timeline does run. */
.showcase--video .showcase-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--stone-950);
}
/* Poster fallback for engines with no <video> at all. */
.showcase--video .showcase-video img { width: 100%; height: 100%; object-fit: cover; }

/* Pinned state — class added by cinematic.js on large screens only.
   27% top+bottom of 100vh by 6% left+right of 100vw is a ~3:1 panoramic strip;
   the timeline opens it to inset(0) as it goes full-bleed, which is literally
   the full frame arriving. 0,4,0, so it wins over the base `.showcase.is-expand
   .showcase-media` (0,3,0) on specificity, not on append order. */
.showcase.showcase--video.is-expand .showcase-media {
  clip-path: inset(27% 6% round 28px);
  background: var(--stone-950);
}
.showcase.showcase--video.is-expand .showcase-video { transform: scale(1.14); will-change: transform; }

/* Native controls, only ever shown under reduced motion, kept on-brand */
.showcase--video .showcase-video::-webkit-media-controls-panel { background: rgba(12, 10, 9, 0.6); }

/* A phone-width 21:9 strip is an unreadably short letterbox; 16:9 below the
   pin threshold. .is-expand never applies here, so nothing else changes. */
@media (max-width: 1024px) {
  .showcase.showcase--video { padding-block: var(--sp-6); }
  .showcase--video .showcase-media { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  .showcase--video .showcase-video { transform: none; }
}

/* ============================================================
   28. Four-pillar card rack
   The service overview grids carry exactly 4 cards now (one per pillar), but
   the shared `.cards` grid is `repeat(3, 1fr)` — which strands the 4th card
   alone on row 2 at a third of the width.

   Scoped to min-width:1025px ON PURPOSE. `.cards--4` and `.cards` have the SAME
   specificity (0,1,0), so an unscoped rule at the end of this file would win on
   source order alone and clobber the `max-width:1024px` 2-col and `max-width:768px`
   1-col rules above — i.e. it would silently ship a 4-across grid on phones.
   Living above the 1024 breakpoint means the existing mobile rules keep working
   untouched and there is no specificity fight to lose.
   ============================================================ */
@media (min-width: 1025px) {
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   29. Fortune Permits hand-off modal (services #architecture)
   A calm, on-brand interstitial shown before sending a visitor to our sister
   company Fortune Permits. Deliberately NOT an ad popup: site colours + type,
   a real close button and a "stay" option, no urgency or hype. Progressive
   enhancement — the trigger is a genuine <a href> to fortunepermits.com, so
   with JS off the visitor still gets there; JS only inserts the reassurance.
   ============================================================ */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.fp-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--sp-4); }
.fp-modal[hidden] { display: none; }
.fp-modal-backdrop { position: absolute; inset: 0; background: rgba(12, 10, 9, 0.55); backdrop-filter: blur(3px); }
.fp-modal-card {
  position: relative; z-index: 1;
  width: min(100%, 460px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  overflow: hidden;
}
/* one thin gold rule at the top — the only "brand" flourish, keeps it on-site */
.fp-modal-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--grad-gold); }
.fp-modal-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-surface-3); color: var(--color-accent-text);
}
.fp-modal-icon svg { width: 24px; height: 24px; }
.fp-modal-eyebrow { display: block; margin-top: var(--sp-3); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent-text); }
.fp-modal-title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; color: var(--color-ink); margin-top: 0.35rem; }
.fp-modal-body { margin-top: var(--sp-2); color: var(--color-body); font-size: var(--fs-body); line-height: 1.6; }
.fp-modal-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--sp-4); }
.fp-modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: transparent; border: 0; cursor: pointer;
  color: var(--color-muted); transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.fp-modal-close:hover { background: var(--color-surface-3); color: var(--color-ink); }
.fp-modal-close svg { width: 20px; height: 20px; }

.fp-modal:not([hidden]) .fp-modal-card { animation: fpIn 0.32s var(--ease-cine) both; }
.fp-modal:not([hidden]) .fp-modal-backdrop { animation: fpFade 0.32s var(--ease) both; }
@keyframes fpIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fpFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .fp-modal:not([hidden]) .fp-modal-card, .fp-modal:not([hidden]) .fp-modal-backdrop { animation: none; }
}
body.fp-open { overflow: hidden; }
