/* ============================================================
   BUILT RIGHT — Platform Showcase Site (CRM / CMS / bespoke)
   Picture-driven marketing site. Built on the recruitment-site kit,
   converged to the CANONICAL design tokens (docs/design-tokens.css):
     brand gold = --gold-500 #d4a93a · Playfair Display + Poppins ·
     cards 12px / buttons 4px · gold-top-accent card hover ·
     two-tone gold-word headings · transparent→solid nav.
   ============================================================ */

:root {
  /* ---- GOLD — the one brand accent (canonical ramp) ---- */
  --gold-100: #f4ead2;
  --gold-300: #e1c46f;
  --gold-400: #d9b652;   /* bright — on dark surfaces */
  --gold-500: #d4a93a;   /* ★ BRAND GOLD */
  --gold-600: #b8902a;   /* hover / gold text on light */
  --gold-700: #9a7820;   /* deep — gold text/borders on light */
  --gold-800: #6f560d;

  --gold:        var(--gold-500);
  --gold-light:  var(--gold-400);
  --gold-dark:   var(--gold-700);
  --gold-soft:   var(--gold-100);

  --taupe-dark:  #785b3e;

  /* ---- Dark neutrals (dark bands) ---- */
  --ink-950: #0a0a0a;
  --ink-900: #121212;
  --ink-800: #1c1c1c;
  --ink-700: #1f1f1f;
  --line-dark: #2a2620;
  --on-dark:     #ffffff;
  --on-dark-mut: #bab2a4;

  /* ---- Light neutrals (marketing surfaces) ---- */
  --bg:          #ffffff;
  --bg-warm:     #f8f6f1;
  --bg-cool:     #f4f5f7;
  --line:        #e7e3da;
  --line-strong: #d8d2c6;
  --ink:         #16140f;
  --ink-soft:    #4b4740;
  --muted:       #837d72;

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 12px;       /* cards / panels */
  --radius-sm: 8px;     /* inputs */
  --radius-lg: 16px;    /* large panels */
  --btn-radius: 4px;    /* buttons */
  --radius-pill: 9999px;
  --shadow: 0 18px 50px rgba(18, 16, 12, 0.12);
  --shadow-sm: 0 6px 20px rgba(18, 16, 12, 0.08);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 14px 38px rgba(212, 169, 58, 0.30);
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* Always reserve the vertical scrollbar so the viewport width can never change.
   Without this, aspect-ratio boxes (device mockups) whose height tracks width
   create a scrollbar on/off feedback loop that makes the whole page pulse. */
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-y: scroll; scrollbar-gutter: stable; }
body {
  font-family: var(--font-body); color: var(--ink); background: var(--bg);
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; color: var(--ink); letter-spacing: -0.01em; }
h2.section-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); margin-bottom: 18px; }
h1 .hl, h2 .hl, h3 .hl { color: var(--gold-dark); }
.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 16px;
}
.lead { font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem); color: var(--ink-soft); }
.muted { color: var(--muted); }

.container { width: min(100% - 44px, var(--maxw)); margin-inline: auto; }
section { padding: clamp(64px, 8vw, 120px) 0; position: relative; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--btn-radius); cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.08em; text-transform: uppercase; border: 2px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.28), transparent);
  transition: left .6s var(--ease);
}
.btn:hover::before { left: 100%; }
.btn-primary { background: var(--gold); color: #1a1407; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); box-shadow: var(--shadow-gold); transform: translateY(-3px); }
.btn-ghost { background: transparent; color: var(--gold-dark); border-color: var(--gold); }
.btn-ghost:hover { background: var(--gold); color: #1a1407; border-color: var(--gold); box-shadow: var(--shadow-gold); transform: translateY(-3px); }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: var(--gold); color: #1a1407; border-color: var(--gold); box-shadow: var(--shadow-gold); transform: translateY(-3px); }
.btn-outline-white { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--ink-900); border-color: #fff; transform: translateY(-3px); }
.btn-lg { padding: 18px 38px; font-size: 0.86rem; }

/* ============================================================ NAV */
.nav { position: fixed; top: 0; inset-inline: 0; z-index: 100; background: transparent; border-bottom: 1px solid transparent; transition: background-color .6s var(--ease), border-color .6s var(--ease), box-shadow .6s var(--ease), -webkit-backdrop-filter .6s var(--ease), backdrop-filter .6s var(--ease); }
.nav.scrolled { background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(18,16,12,.06); }
.nav:not(.scrolled) .nav-links a { color: rgba(255,255,255,.85); }
.nav:not(.scrolled) .nav-links a:hover { color: #fff; }
.nav:not(.scrolled) .brand-word b { color: #fff; }
.nav:not(.scrolled) .brand-word span { color: var(--gold-light); }
.nav:not(.scrolled) .nav-toggle span { background: #fff; }
.nav:not(.scrolled) .brand img { filter: brightness(0) invert(1); }
/* On light hero pages, force the solid look from the top. */
.nav.solid { background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav.solid .nav-links a { color: var(--ink-soft); }
.nav.solid .brand-word b { color: var(--ink); }
.nav.solid .brand-word span { color: var(--gold-dark); }
.nav.solid .brand img { filter: none; }
.nav.solid .nav-toggle span { background: var(--ink); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 38px; width: auto; transition: filter .6s var(--ease); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b, .brand-word span { transition: color .6s var(--ease); }
.brand-word b { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; color: var(--ink); }
.brand-word span { font-size: 0.62rem; letter-spacing: 0.30em; text-transform: uppercase; color: var(--gold-dark); margin-top: 3px; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); position: relative; transition: color .6s var(--ease); }
.nav-links a.active { color: var(--gold-dark); }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--gold); transition: width .3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { flex-shrink: 0; }
.nav-check { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav-toggle { display: none; margin-left: auto; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .3s var(--ease), opacity .2s, background-color .3s; border-radius: 2px; }
/* hamburger → X when the (CSS-only) menu is open */
.nav-check:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-check:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-check:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================ VIDEO / IMAGE HERO */
.video-hero { position: relative; height: 100vh; min-height: 580px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: var(--ink-950); }
/* Shorter video hero for interior pages */
.video-hero.short { height: 70vh; min-height: 460px; }
.vh-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.vh-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.vh-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.44) 38%, rgba(0,0,0,.82) 100%); }
.vh-content { position: relative; z-index: 2; max-width: 940px; padding: 90px 24px 0; color: #fff; }
.vh-content .eyebrow { color: var(--gold-light); }
.vh-content h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.8rem); color: #fff; margin-bottom: 26px; line-height: 1.08; }
.vh-content h1 .hl { color: var(--gold-500); }
.vh-content p { font-size: clamp(1.05rem, 1rem + .5vw, 1.35rem); color: rgba(255,255,255,.84); margin: 0 auto 34px; max-width: 720px; }
.vh-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.vh-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4px; color: rgba(255,255,255,.7); font-size: 0.68rem; letter-spacing: .18em; text-transform: uppercase; transition: color .25s; }
.vh-scroll:hover { color: var(--gold-light); }
.vh-scroll svg { width: 22px; height: 22px; animation: vhbob 1.8s var(--ease) infinite; }
@keyframes vhbob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ---- Compact page hero (interior pages) ---- */
.page-hero { padding: clamp(130px, 16vh, 200px) 0 clamp(56px, 7vw, 96px); text-align: center; background: var(--bg-warm); border-bottom: 1px solid var(--line); }
.page-hero.dark { background: var(--ink-950); border-bottom: none; }
.page-hero.dark .eyebrow { color: var(--gold-light); }
.page-hero.dark h1, .page-hero.dark .section-title { color: #fff; }
.page-hero.dark h1 .hl { color: var(--gold-light); }
.page-hero.dark .lead { color: var(--on-dark-mut); }
.page-hero h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem); margin-bottom: 16px; }
.page-hero .lead { max-width: 680px; margin: 0 auto; }
.page-hero .vh-cta { margin-top: 30px; }

/* ============================================================ DEVICE MOCKUPS */
/* Browser-chrome frame wrapping a product screenshot (or a labelled
   placeholder until real screens are dropped into assets/screens/). */
.device { position: relative; border-radius: 14px; overflow: hidden; background: var(--ink-900); border: 1px solid var(--line-dark); box-shadow: var(--shadow-lg); }
.device .bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #1a1a1a; border-bottom: 1px solid var(--line-dark); }
.device .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3a; display: inline-block; }
.device .bar i:nth-child(1) { background: #ff5f57; } .device .bar i:nth-child(2) { background: #febc2e; } .device .bar i:nth-child(3) { background: #28c840; }
.device .bar .url { margin-left: 12px; flex: 1; height: 20px; border-radius: var(--radius-pill); background: #0e0e0e; }
.device .screen { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; background: var(--ink-800); }
/* Placeholder screen (no image yet) — gold-tinted gradient + module label */
.screen-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; aspect-ratio: 16 / 10; color: var(--on-dark-mut); background: radial-gradient(120% 120% at 50% 0%, rgba(212,169,58,.16), transparent 60%), linear-gradient(160deg, #1c1c1c, #121212); text-align: center; padding: 24px; }
.screen-ph b { font-family: var(--font-head); color: #fff; font-size: 1.3rem; }
.screen-ph span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
/* gold corner accent */
.device::after { content: ''; position: absolute; top: 0; right: 0; width: 64px; height: 64px; background: linear-gradient(225deg, rgba(212,169,58,.6), transparent 70%); pointer-events: none; z-index: 3; }
.device.phone { max-width: 280px; border-radius: 28px; }
.device.phone .bar { display: none; }
.device.phone .screen, .device.phone .screen-ph { aspect-ratio: 9 / 18; }

/* ============================================================ MARQUEE (industry strip) */
.marquee-band { background: var(--gold-800); border-block: 1px solid var(--gold-700); padding: 26px 0; }
.marquee-band .label { text-align: center; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-bottom: 18px; }
.marquee { display: flex; 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); }
.marquee-track { display: flex; gap: 56px; padding-right: 56px; flex-shrink: 0; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-head); font-size: 1.4rem; color: #fff; white-space: nowrap; opacity: .82; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================ GENERIC CARDS / GRIDS */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }

/* Signature gold-top-accent on hover */
.card, .route-card, .why-card, .feature-card, .price-card, .form-card, .testi-card, .industry-card, .value-card { position: relative; overflow: hidden; }
.card::before, .route-card::before, .why-card::before, .feature-card::before, .price-card::before, .form-card::before, .testi-card::before, .industry-card::before, .value-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent); opacity: 0; transition: opacity .3s var(--ease); z-index: 2;
}
.card:hover::before, .route-card:hover::before, .why-card:hover::before, .feature-card:hover::before,
.price-card:hover::before, .form-card:hover::before, .testi-card:hover::before, .industry-card:hover::before, .value-card:hover::before { opacity: 1; }

/* ---- Three routes (Bespoke / Subscribe / Tailored) ---- */
.routes { background: var(--bg); }
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.route-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.route-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.route-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--gold-soft); color: var(--gold-dark); display: grid; place-items: center; margin-bottom: 18px; }
.route-ico svg { width: 28px; height: 28px; }
.route-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.route-card .sub { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 12px; }
.route-card p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 18px; }
.route-card .more { font-weight: 600; font-size: .86rem; color: var(--gold-dark); letter-spacing: .03em; }

/* ============================================================ STAT PANEL (count-up) */
.stat-band { background: var(--ink-950); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-card { background: var(--ink-900); border: 1px solid rgba(212,169,58,.16); border-radius: var(--radius); padding: 34px 26px; text-align: center; transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; }
.stat-card:hover { transform: translateY(-6px); border-color: rgba(212,169,58,.42); box-shadow: var(--shadow-lg); }
.stat-card .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); color: var(--gold-light); line-height: 1; }
.stat-card .lbl { font-size: .9rem; color: var(--on-dark-mut); margin-top: 8px; }

/* ============================================================ ALTERNATING FEATURE ROWS */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(48px, 7vw, 96px); }
.feature-row.flip .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 14px; }
.feature-text p { color: var(--ink-soft); margin-bottom: 20px; }
.tick-list { list-style: none; display: grid; gap: 12px; }
.tick-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.98rem; color: var(--ink-soft); }
.tick-list li .tick { flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 0.85rem; margin-top: 1px; background: var(--gold-soft); color: var(--gold-dark); font-weight: 700; }

/* ============================================================ TABBED MODULE SHOWCASE */
.showcase { background: var(--bg-warm); }
/* Dark-band variant: the Products modules section runs on --ink-950, so lift its text */
.showcase .eyebrow { color: var(--gold-light); }
.showcase .section-title, .showcase .tab-copy h3 { color: #fff; }
.showcase .section-title .hl { color: var(--gold-light); }
.showcase .lead, .showcase .tab-copy p { color: var(--on-dark-mut); }
.showcase .tick-list li { color: var(--gold-500); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 40px auto 36px; max-width: 880px; }
.tab { font-family: var(--font-body); font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; padding: 11px 20px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); border-radius: var(--radius-pill); cursor: pointer; transition: all .25s var(--ease); }
.tab:hover { border-color: var(--gold); color: var(--gold-dark); }
.tab.active { background: var(--gold); border-color: var(--gold); color: #1a1407; box-shadow: var(--shadow-gold); }
.tab-panel { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.tab-pane { display: none; }
.tab-pane.active { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 4vw, 56px); align-items: center; animation: fadein .4s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tab-copy h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); margin-bottom: 14px; }
.tab-copy p { color: var(--ink-soft); margin-bottom: 18px; }

/* ============================================================ CAROUSEL */
.carousel { position: relative; max-width: 980px; margin: 0 auto; }
.carousel-track { display: flex; transition: transform .6s var(--ease); }
.carousel-slide { min-width: 100%; padding: 0 6px; }
.carousel-cap { text-align: center; color: var(--on-dark-mut); margin-top: 16px; font-size: .92rem; letter-spacing: .04em; }
.car-band .carousel-cap { color: var(--on-dark-mut); }
.carousel-btn { position: absolute; top: 42%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(0,0,0,.5); color: #fff; cursor: pointer; display: grid; place-items: center; z-index: 4; transition: all .25s; }
.carousel-btn:hover { background: var(--gold); color: #1a1407; border-color: var(--gold); }
.carousel-btn.prev { left: -10px; } .carousel-btn.next { right: -10px; }
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-dots { display: flex; gap: 9px; justify-content: center; margin-top: 22px; }
.carousel-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(186,178,164,.4); cursor: pointer; transition: all .25s; padding: 0; }
.carousel-dots button.active { background: var(--gold); width: 26px; border-radius: var(--radius-pill); }
.car-band { background: var(--ink-950); color: #fff; }
.car-light { background: #fff; }
.car-light .carousel-cap { color: var(--ink-soft); }

/* ============================================================ GALLERY + LIGHTBOX */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.filter-chip { font-weight: 600; font-size: .8rem; letter-spacing: .04em; padding: 9px 18px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); border-radius: var(--radius-pill); cursor: pointer; transition: all .25s; }
.filter-chip:hover { border-color: var(--gold); color: var(--gold-dark); }
.filter-chip.active { background: var(--gold); border-color: var(--gold); color: #1a1407; }
.gallery { columns: 3; column-gap: 18px; }
.gallery .shot { break-inside: avoid; margin-bottom: 18px; position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; border: 1px solid var(--line); background: var(--ink-900); }
.gallery .shot img, .gallery .shot .screen-ph { width: 100%; display: block; aspect-ratio: auto; }
.gallery .shot .screen-ph { aspect-ratio: 4 / 3; }
.gallery .shot .ov { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(212,169,58,.32), transparent 60%); opacity: 0; transition: opacity .3s; display: flex; align-items: flex-end; padding: 16px; color: #fff; font-weight: 600; }
.gallery .shot:hover .ov { opacity: 1; }
/* Uniform 3-up grid variant — neat rows, no masonry height-stagger */
.gallery.grid { columns: unset; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery.grid .shot { margin: 0; }
.gallery.grid .shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; }

/* Case-study card variant of the gallery (image + title + blurb + tags) */
.gallery.cases { columns: unset; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery.cases .shot { margin: 0; background: #fff; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.gallery.cases .shot:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.gallery.cases .shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; background: var(--ink-800); }
.case-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 9px; }
.case-body h3 { font-size: 1.15rem; line-height: 1.2; }
.case-body p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.case-tags span { font-size: 0.7rem; font-weight: 600; letter-spacing: .03em; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--gold-soft); color: var(--gold-dark); border: 1px solid rgba(212,169,58,.3); }

.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(8,8,8,.92); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lb-cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: var(--on-dark-mut); font-size: .92rem; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; transition: all .25s; }
.lb-close:hover, .lb-nav:hover { background: var(--gold); color: #1a1407; border-color: var(--gold); }
.lb-close { top: 24px; right: 24px; } .lb-nav.prev { left: 24px; top: 50%; transform: translateY(-50%); } .lb-nav.next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-close svg, .lb-nav svg { width: 22px; height: 22px; }

/* ============================================================ INDUSTRIES */
.industries { background: var(--bg); }
.industry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 48px; }
.industry-card { position: relative; min-height: 260px; border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; padding: 28px; color: #fff; background: linear-gradient(160deg, #2a2a2a, #121212); border: 1px solid var(--line-dark); }
.industry-card .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .5; transition: transform .5s var(--ease), opacity .4s; }
.industry-card:hover .bg { transform: scale(1.06); opacity: .65; }
.industry-card .ov { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,10,.86), rgba(10,10,10,.25)); }
.industry-card .body { position: relative; z-index: 2; }
.industry-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.industry-card p { color: var(--on-dark-mut); font-size: .92rem; margin-bottom: 12px; min-height: 3.3em; }
.industry-card .more { color: var(--gold-light); font-weight: 600; font-size: .84rem; }

/* ============================================================ WHY / VALUES (dark cards) */
.why { background: var(--bg-warm); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px; }
.why-card { padding: 36px 30px; border-radius: var(--radius); border: 1px solid rgba(212,169,58,.16); background: var(--ink-900); text-align: center; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(212,169,58,.42); }
.why-ico { width: 64px; height: 64px; border-radius: 18px; background: rgba(212,169,58,.14); color: var(--gold-light); display: grid; place-items: center; margin: 0 auto 20px; }
.why-ico svg { width: 30px; height: 30px; }
.why-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: #fff; }
.why-card p { color: var(--on-dark-mut); font-size: 0.95rem; }

/* ============================================================ SPOTLIGHT (case study) */
.spotlight { background: var(--ink-950); color: #fff; }
.spotlight .section-title { color: #fff; }
.spotlight .lead { color: var(--on-dark-mut); }
.spot-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.spot-chips span { font-size: .82rem; padding: 8px 14px; border-radius: var(--radius-pill); background: rgba(212,169,58,.12); border: 1px solid rgba(212,169,58,.34); color: var(--gold-light); }
.spotlight blockquote { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.5; color: #fff; border-left: 3px solid var(--gold); padding-left: 22px; margin: 0 0 24px; font-style: italic; }

/* ============================================================ PRICING */
.pricing { background: var(--bg); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 32px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.price-card.featured { border-color: var(--gold); box-shadow: var(--shadow-gold); }
.price-card .ribbon { position: absolute; top: 16px; right: -34px; transform: rotate(45deg); background: var(--gold); color: #1a1407; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 40px; }
.price-card h3 { font-size: 1.5rem; margin-bottom: 4px; }
.price-card .who { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.price-card .amt { font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; color: var(--ink); line-height: 1; }
.price-card .amt small { font-size: .9rem; font-weight: 500; color: var(--muted); font-family: var(--font-body); }
.price-card .per { font-size: .82rem; color: var(--muted); margin-bottom: 22px; }
.price-card .plist { list-style: none; display: grid; gap: 11px; margin-bottom: 26px; }
.price-card .plist li { display: flex; gap: 10px; font-size: .94rem; color: var(--ink-soft); }
.price-card .plist li::before { content: '✓'; color: var(--gold-dark); font-weight: 700; }
.price-card .btn { margin-top: auto; width: 100%; }
/* billing toggle */
.bill-toggle { display: inline-flex; gap: 4px; padding: 5px; background: var(--bg-cool); border: 1px solid var(--line); border-radius: var(--radius-pill); margin-top: 26px; }
.bill-toggle button { border: none; background: transparent; padding: 9px 20px; border-radius: var(--radius-pill); font-weight: 600; font-size: .84rem; cursor: pointer; color: var(--ink-soft); transition: all .25s; }
.bill-toggle button.active { background: var(--gold); color: #1a1407; }

/* comparison table */
.compare { overflow-x: auto; margin-top: 56px; }
.compare table { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { position: sticky; top: 76px; background: var(--bg-warm); font-family: var(--font-body); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark); }
.compare tbody tr:hover { background: var(--bg-warm); }
.compare td.feat { font-weight: 600; color: var(--ink); }
.compare td .yes { color: var(--gold-dark); font-weight: 700; }
.compare td .no { color: var(--line-strong); }

/* FAQ accordion */
.faq { max-width: 820px; margin: 48px auto 0; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 24px; font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .car { color: var(--gold-dark); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-q .car { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 24px 22px; color: var(--ink-soft); }

/* ============================================================ TESTIMONIALS */
.testi { background: var(--bg-warm); }
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.testi-card { background: var(--ink-900); border: 1px solid rgba(212,169,58,.16); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.testi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(212,169,58,.42); }
.testi-card .quote { font-family: var(--font-head); font-size: 3.4rem; line-height: 1; color: var(--gold-light); opacity: .4; position: absolute; top: 16px; right: 24px; }
.testi-card p { font-size: 1.06rem; color: #fff; font-style: italic; margin-bottom: 22px; position: relative; z-index: 1; }
.testi-by { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-by .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--taupe-dark)); display: grid; place-items: center; color: #1a1407; font-weight: 700; }
.testi-by b { display: block; font-size: 0.95rem; color: #fff; }
.testi-by span { font-size: 0.82rem; color: var(--on-dark-mut); }

/* ============================================================ PROCESS TIMELINE */
.process { background: var(--bg); }
.steps-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 50px; }
.step { background: var(--ink-900); border: 1px solid rgba(212,169,58,.16); border-radius: var(--radius); padding: 28px 22px; text-align: center; position: relative; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.step:hover { transform: translateY(-4px); border-color: rgba(212,169,58,.42); box-shadow: var(--shadow-lg); }
.step .num { font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--gold-light); margin-bottom: 8px; }
.step h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; margin: 0 0 4px; color: #fff; }
.step p { font-size: 0.86rem; color: var(--on-dark-mut); margin: 0; }
.step:not(:last-child)::after { content: ''; position: absolute; right: -13px; top: 50%; width: 12px; height: 12px; border-top: 3px solid var(--gold); border-right: 3px solid var(--gold); transform: translateY(-50%) rotate(45deg); z-index: 3; }

/* ============================================================ FORMS */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; font-family: var(--font-body); font-size: 0.95rem; color: var(--ink); background: var(--bg-cool); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .25s, box-shadow .25s, background .25s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,169,58,.18); background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }
.form-success { display: none; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--gold-soft); border: 1px solid var(--gold); color: var(--taupe-dark); font-size: 0.92rem; margin-bottom: 16px; }
.form-success.show { display: block; }
.form-error { display: none; padding: 14px 18px; border-radius: var(--radius-sm); background: #fbece9; border: 1px solid #e0b4a8; color: #a4452a; font-size: 0.92rem; margin-bottom: 16px; }
.form-error.show { display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.reassure { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 36px; }
.reassure span { font-size: .86rem; padding: 9px 16px; border-radius: var(--radius-pill); background: var(--gold-soft); color: var(--gold-dark); border: 1px solid rgba(212,169,58,.34); }
.contact-info { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.contact-row { display: flex; align-items: center; gap: 14px; }
.contact-row .ci { width: 46px; height: 46px; border-radius: 13px; background: var(--gold-soft); color: var(--gold-dark); display: grid; place-items: center; flex-shrink: 0; }
.contact-row .ci svg { width: 22px; height: 22px; }
.contact-row b { display: block; font-size: 0.78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-row a, .contact-row span { font-size: 1.02rem; color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); }

/* ============================================================ FINAL CTA */
.final-cta { background: var(--ink-950); color: var(--on-dark); text-align: center; }
.final-cta h2 { color: #fff; font-size: clamp(2.2rem, 1.6rem + 3vw, 3.8rem); margin-bottom: 18px; }
.final-cta h2 .hl { color: var(--gold-light); }
.final-cta p { color: var(--on-dark-mut); max-width: 660px; margin: 0 auto 36px; font-size: 1.1rem; }
.final-cta .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================ FOOTER */
.footer { background: var(--ink-950); color: var(--on-dark-mut); padding: 64px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer .brand-word b { color: #fff; }
.footer .blurb { margin-top: 16px; max-width: 300px; font-size: .9rem; }
.footer-col h5 { font-family: var(--font-body); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.9rem; padding: 5px 0; transition: color .25s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 0.84rem; margin-top: 4px; }

/* ============================================================ SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ============================================================ RESPONSIVE */
/* ---- Large tablet / small laptop ---- */
@media (max-width: 1100px) {
  section { padding: clamp(56px, 7vw, 96px) 0; }
  .feature-row, .feature-row + .feature-row { gap: clamp(28px, 4vw, 56px); }
  .carousel-btn.prev { left: 0; } .carousel-btn.next { right: 0; }
}
/* ---- Tablet portrait ---- */
@media (max-width: 1000px) {
  .stat-grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .route-grid, .why-grid, .price-grid, .grid-3, .steps-row { grid-template-columns: 1fr; }
  .why-grid, .route-grid, .price-grid { max-width: 480px; margin-inline: auto; }
  .steps-row { max-width: 420px; margin-inline: auto; }
  .step:not(:last-child)::after { right: 50%; top: auto; bottom: -13px; transform: translateX(50%) rotate(135deg); }
  .gallery.cases, .gallery.grid { grid-template-columns: repeat(2, 1fr); }
}
/* ---- Mobile landscape / small tablet ---- */
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-check:checked ~ .nav-links { display: flex; position: fixed; top: 76px; left: 0; right: 0; bottom: 0; flex-direction: column; gap: 0; background: var(--ink-950); border-bottom: none; padding: 14px 24px 32px; box-shadow: none; overflow-y: auto; }
  .nav-check:checked ~ .nav-links a { padding: 18px 4px; border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; font-size: 1.05rem; }
  .nav-check:checked ~ .nav-links a:hover, .nav-check:checked ~ .nav-links a.active { color: var(--gold-light); }
  /* whole bar goes black while the full-screen menu is open */
  .nav:has(.nav-check:checked) { background: var(--ink-950); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: var(--line-dark); box-shadow: none; }
  .nav:has(.nav-check:checked) .brand-word b { color: #fff; }
  .nav:has(.nav-check:checked) .brand-word span { color: var(--gold-light); }
  .nav:has(.nav-check:checked) .brand img { filter: brightness(0) invert(1); }
  .nav:has(.nav-check:checked) .nav-toggle span { background: #fff; }
  .grid-2, .feature-row, .feature-row.flip .feature-text, .tab-pane.active, .tab-panel, .industry-grid, .testi-grid, .contact-grid { grid-template-columns: 1fr; }
  .feature-row.flip .feature-text { order: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: clamp(108px, 14vh, 150px) 0 clamp(40px, 6vw, 64px); }
  /* module tabs: horizontal scroll instead of a messy multi-row wrap */
  .tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 6px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; }
  /* let stacked features/tab panes keep image below copy, full-width */
  .feature-row .device, .tab-pane .device, .tab-pane.active .device { max-width: 560px; margin-inline: auto; }
}
/* ---- Mobile portrait ---- */
@media (max-width: 540px) {
  .stat-grid, .grid-4, .form-row { grid-template-columns: 1fr; }
  .gallery { columns: 2; }
  .gallery.cases, .gallery.grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .carousel-btn { width: 40px; height: 40px; }
  .carousel-btn.prev { left: 2px; } .carousel-btn.next { right: 2px; }
  .video-hero { min-height: 540px; }
  .vh-content { padding-top: 80px; }
  /* stacked, full-width CTAs */
  .vh-cta, .btn-group, .final-cta .btn-group { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; margin-inline: auto; }
  .vh-cta .btn, .btn-group .btn { width: 100%; }
  .btn-lg { padding: 15px 26px; }
  .bill-toggle button { padding: 9px 14px; font-size: .78rem; }
  .price-card .ribbon { right: -40px; }
  .reassure { justify-content: center !important; }
}
/* ---- Small phones ---- */
@media (max-width: 380px) {
  .container { width: min(100% - 32px, var(--maxw)); }
  h2.section-title { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .vh-content h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}
