/* ==========================================================================
   Reinvest Georgia — landing page (round 2)
   Design language studied from tref.digitaldesignnyc.co:
     · very large display headings, tight leading (~1.1), negative tracking
     · small light body copy (~14–15px) → heading/body contrast of roughly 5×
     · tiny uppercase micro-labels with wide tracking
     · deep single-colour ground, generous whitespace, photography-forward
     · masked line-by-line heading reveals on scroll, page loader, hero carousel
   Brand fonts and palette kept per the Reinvest brandbook.

   THREE THEMES via a class on <body>:
     .theme-navy   → navy ground, gold + white        (version 1)
     .theme-cream  → cream ground, navy + red accents (version 2)
     .theme-duo    → cream base with navy feature bands (version 3)
   ========================================================================== */

/* ---------- Brand fonts ---------- */
@font-face { font-family: "HN Geo"; src: url("../fonts/hn-geo-35-thin.ttf") format("truetype");
  font-weight: 300; font-display: swap; }
@font-face { font-family: "HN Geo"; src: url("../fonts/hn-geo-65-medium.ttf") format("truetype");
  font-weight: 500; font-display: swap; }
@font-face { font-family: "HN Geo"; src: url("../fonts/hn-geo-85-heavy.ttf") format("truetype");
  font-weight: 800; font-display: swap; }
@font-face { font-family: "HN Caps"; src: url("../fonts/hn-geo-caps-55.ttf") format("truetype");
  font-weight: 400; font-display: swap; }
@font-face { font-family: "HN Caps"; src: url("../fonts/hn-geo-caps-75.ttf") format("truetype");
  font-weight: 700; font-display: swap; }

:root {
  --navy: #0a3161;  --navy-deep: #071f3e;  --navy-ink: #05162c;
  --gold: #cba750;  --red: #ed1c23;
  --cream: #f6f0e5; --cream-warm: #fdfbf7; --soft-white: #f2f1ed;

  --font: "HN Geo", "Segoe UI", system-ui, sans-serif;
  --caps: "HN Caps", "HN Geo", sans-serif;

  --wrap: 1320px;
  --gut: 22px;

  /* motion — mirrors the reference's curves */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in:  cubic-bezier(.12, 0, .39, 0);
  --t: .5s var(--ease-out);
}

/* ---------- Themes ---------- */
.theme-navy {
  --ground: var(--navy-deep);
  --ground-2: #0b2a51;
  --ink: var(--soft-white);
  --ink-soft: rgba(242, 241, 237, .68);
  --ink-faint: rgba(242, 241, 237, .42);
  --accent: var(--gold);
  --accent-ink: var(--navy-deep);
  --hair: rgba(242, 241, 237, .16);
  --header-bg: rgba(7, 31, 62, .93);
  --logo: url("../img/logo-white.png");
}
.theme-cream {
  --ground: var(--cream);
  --ground-2: #efe7d8;
  --ink: var(--navy);
  --ink-soft: rgba(10, 49, 97, .72);
  --ink-faint: rgba(10, 49, 97, .45);
  /* Brand red deepened to #c2141a on light grounds: the vivid #ed1c23 only reaches
     3.9:1 on cream, which fails WCAG AA for the 10–12px labels. This passes at 5.4:1
     (and 6.2:1 for white-on-red buttons) while still reading as the brand red. */
  --accent: #c2141a;
  --accent-ink: #ffffff;
  --hair: rgba(10, 49, 97, .16);
  --header-bg: rgba(246, 240, 229, .95);
  --logo: url("../img/logo-color.png");
}
.theme-duo {
  --ground: var(--cream);
  --ground-2: #efe7d8;
  --ink: var(--navy);
  --ink-soft: rgba(10, 49, 97, .72);
  --ink-faint: rgba(10, 49, 97, .45);
  /* Brand red deepened to #c2141a on light grounds: the vivid #ed1c23 only reaches
     3.9:1 on cream, which fails WCAG AA for the 10–12px labels. This passes at 5.4:1
     (and 6.2:1 for white-on-red buttons) while still reading as the brand red. */
  --accent: #c2141a;
  --accent-ink: #ffffff;
  --hair: rgba(10, 49, 97, .16);
  --header-bg: rgba(246, 240, 229, .95);
  --logo: url("../img/logo-color.png");
}
.theme-duo .invert,
.theme-navy .invert { /* navy feature band */
  --ground: var(--navy-deep);
  --ground-2: #0b2a51;
  --ink: var(--soft-white);
  --ink-soft: rgba(242, 241, 237, .68);
  --ink-faint: rgba(242, 241, 237, .42);
  --accent: var(--gold);
  --accent-ink: var(--navy-deep);
  --hair: rgba(242, 241, 237, .16);
  --header-bg: rgba(7, 31, 62, .93);
  background: var(--ground);
  color: var(--ink);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 15px;           /* small body, per the reference */
  line-height: 1.68;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Display type scale (measured from the reference) ----------
   Main titles use the brand caps face (hn-geo-caps-75 = "HN Caps" 700), which
   renders Georgian as mtavruli. Caps need looser tracking than lowercase, so the
   negative letter-spacing of the reference is eased off here. */
h1, h2, h3, h4 { margin: 0; font-family: var(--font); font-weight: 500; color: var(--ink); }
.d1, .d2 { font-family: var(--caps); font-weight: 700; }
.d1 { font-size: clamp(38px, 6.2vw, 74px); line-height: 1.08; letter-spacing: -.004em; }
.d2 { font-size: clamp(27px, 4.2vw, 50px); line-height: 1.12; letter-spacing: -.002em; }
.d3 { font-size: clamp(20px, 2vw, 25px);   line-height: 1.28; letter-spacing: -.01em; font-weight: 500; }

.lead { font-size: clamp(16px, 1.35vw, 18px); line-height: 1.7; color: var(--ink-soft); }
.small { font-size: 13.5px; line-height: 1.62; color: var(--ink-soft); }
.micro {
  font-family: var(--caps); font-weight: 400;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); display: block;
}
.hair { height: 1px; background: var(--hair); border: 0; margin: 0; }

/* ---------- Brand-mark watermarks (decorative circle-arrow) ---------- */
.has-wm { overflow: hidden; }
.has-wm > .wrap { position: relative; z-index: 1; }
.wm { position: absolute; pointer-events: none; user-select: none; z-index: 0; }
.wm-hero { right: -6%; top: 2%; width: min(46vw, 620px); opacity: .1; }

/* ---------- Sections ---------- */
.band { padding: clamp(64px, 9vw, 132px) 0; position: relative; }
.band--tight { padding: clamp(48px, 6vw, 88px) 0; }
.band--alt { background: var(--ground-2); }

/* ==========================================================================
   Page loader — a panel that lifts away, echoing the reference's intro
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--navy-deep);
  display: grid; place-items: center;
  transition: transform 1s var(--ease-in) .1s, opacity .45s .8s linear;
}
.loader-inner { display: grid; justify-items: center; gap: 22px; }
.loader-logo { width: clamp(180px, 26vw, 240px); height: auto;
  opacity: 0; transform: translateY(12px);
  transition: opacity .6s var(--ease-out) .1s, transform .6s var(--ease-out) .1s; }
.loader-line { width: 190px; height: 1px; background: rgba(203, 167, 80, .22); overflow: hidden; }
.loader-line i { display: block; height: 100%; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 1.45s var(--ease-out) .15s; }
body.loader-run .loader-logo { opacity: 1; transform: none; }
body.loader-run .loader-line i { transform: scaleX(1); }
body.is-loaded .loader { transform: translateY(-100%); opacity: 0; pointer-events: none; }

/* ==========================================================================
   Reveal animations (IntersectionObserver adds .in)
   ========================================================================== */
/* masked line-by-line heading reveal — the reference's signature move */
.line-mask { display: block; overflow: hidden; }
.line-mask > span {
  display: block; transform: translateY(105%);
  transition: transform .9s var(--ease-out);
}
.in .line-mask > span, .line-mask.in > span { transform: translateY(0); }

.rise { opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.rise.in { opacity: 1; transform: none; }

.grow { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out); }
.grow.in { transform: scaleX(1); }

.zoom-wrap { overflow: hidden; }
.zoom-wrap img { transform: scale(1.12); transition: transform 1.4s var(--ease-out); }
.zoom-wrap.in img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .line-mask > span, .rise, .grow, .zoom-wrap img { transition: none !important; transform: none !important; opacity: 1 !important; }
  .loader { display: none; }
  .loader-mark { animation: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 26px 0; transition: padding .4s var(--ease-out), background .4s var(--ease-out);
}
/* Explicit rgba rather than color-mix(): color-mix is newer and degrades to a
   transparent result in some engines, which left the stuck header invisible. */
.site-header.stuck { padding: 13px 0; background: var(--header-bg);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair); }
.header-inner { display: flex; align-items: center; gap: 20px; }
.brand { flex: 0 0 auto; display: flex; align-items: center; }
.brand img { height: 42px; width: auto; display: block; }
.brand .logo-dark { display: none; }
.site-header.stuck .logo-light { display: none; }
.site-header.stuck .logo-dark { display: block; }
.site-nav { display: none; margin-left: auto; align-items: center; gap: 34px; }
.site-nav a { font-family: var(--caps); font-weight: 400; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
  position: relative; padding: 4px 0; transition: color var(--t); }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out); }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.site-nav + .header-actions { margin-left: 0; }

/* Language dropdown — still all DIVs so it stays out of the GA4 event stream. */
.lang-dd { position: relative; }
.lang-current { display: flex; align-items: center; gap: 9px; padding: 9px 13px;
  border: 1px solid var(--hair); cursor: pointer; user-select: none;
  font-family: var(--caps); font-size: 11.5px; letter-spacing: .14em; color: var(--ink);
  transition: border-color var(--t); }
.lang-current:hover { border-color: var(--accent); }
.lang-caret { width: 7px; height: 7px; margin-top: -4px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg); transition: transform var(--t); }
.lang-dd.open .lang-caret { transform: rotate(-135deg) translate(-2px, -2px); }
.lang-menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 148px;
  background: var(--header-bg); border: 1px solid var(--hair);
  backdrop-filter: blur(14px); z-index: 120;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility .3s; }
.lang-dd.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu { min-width: 82px; background: #fff; border-color: rgba(10,49,97,.14); }
.lang-option { display: block; padding: 10px 16px; cursor: pointer; user-select: none;
  font-family: var(--caps); font-weight: 700; font-size: 11.5px; letter-spacing: .16em;
  color: var(--navy); transition: color var(--t), background var(--t); white-space: nowrap; }
.lang-option:hover { color: var(--navy-deep); background: rgba(10,49,97,.07); }
.lang-option.is-active { color: var(--navy-deep); background: rgba(10,49,97,.1); }

.nav-toggle { width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  color: var(--ink); }
.nav-toggle i { display: block; width: 20px; height: 1px; background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
.mobile-nav { display: none; padding: 10px 0 20px; }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 13px 0; font-family: var(--caps); font-weight: 400;
  font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 1px solid var(--hair); }

/* ==========================================================================
   Buttons — <button> only ever means "tracked GA4 event"
   ========================================================================== */
.btn {
  font-family: var(--caps); font-weight: 700; font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; cursor: pointer; background: none; border: 0; color: var(--ink);
  display: inline-flex; align-items: center; gap: 14px; padding: 0;
  position: relative; transition: color var(--t);
}
.btn .bar { display: block; width: 44px; height: 1px; background: var(--accent);
  transition: width .5s var(--ease-out); }
.btn:hover { color: var(--accent); }
.btn:hover .bar { width: 66px; }

.btn-solid {
  background: var(--accent); color: var(--accent-ink);
  padding: 17px 30px; gap: 0; letter-spacing: .16em;
  transition: transform var(--t), filter var(--t);
}
.btn-solid:hover { transform: translateY(-2px); filter: brightness(1.06); color: var(--accent-ink); }
.btn-outline { border: 1px solid var(--hair); padding: 16px 28px; }
.btn-outline:hover { border-color: var(--accent); }
.btn-wide { width: 100%; justify-content: center; }

/* ==========================================================================
   Hero — full-bleed crossfade carousel
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden; }
.hero-media { position: absolute; inset: 0; overflow: hidden; background: var(--navy-deep); }
.hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The video covers the hero; the poster underneath shows until the first frame paints
   and remains the whole background under prefers-reduced-motion. */
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .9s var(--ease-out); }
.hero-media video.is-playing { opacity: 1; }
/* Navy scrim over the video — the blue treatment from the dark version, kept on
   every theme so the hero reads as one deep field and the copy stays legible. */
.hero-scrim { position: absolute; inset: 0;
  background: linear-gradient(175deg, rgba(7,31,62,.66) 0%, rgba(7,31,62,.78) 52%, rgba(5,22,44,.96) 100%); }

.hero-inner { position: relative; width: 100%;
  /* keep .wrap's horizontal gutter — a 0 here left the hero copy flush to the
     viewport edge below 1320px and 22px out of line with every other section. */
  padding: 140px var(--gut) clamp(44px, 6vw, 86px); }
.hero-copy { max-width: 900px; }
.hero .d1 { max-width: min(100%, 860px); }
.hero-lead { margin-top: 26px; max-width: min(100%, 620px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 34px; margin-top: 38px; }

.hero-scroll { position: absolute; right: var(--gut); bottom: 34px; display: none;
  font-family: var(--caps); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(242,241,237,.5); writing-mode: vertical-rl; }

/* The hero always sits on the navy field, so its copy is always the light set —
   regardless of which theme the rest of the page uses. */
.hero, .hero .d1, .hero .lead, .hero .btn { color: var(--soft-white); }
.hero .micro { color: var(--gold); }
.hero .btn { color: var(--soft-white); }
.hero .btn .bar { background: var(--gold); }
.hero .btn:hover { color: var(--navy-deep); background: #fff; }
.hero .btn { padding: 15px 26px; transition: background var(--t), color var(--t), transform var(--t); }
.hero .btn:hover .bar { background: var(--navy-deep); }
.hero .btn-solid { background: var(--gold); color: var(--navy-deep); }
.hero .btn-solid:hover { background: #fff; color: var(--navy-deep); }

/* Header sits over the navy hero until it sticks, so keep it light up there. */
.site-header:not(.stuck) { --ink: var(--soft-white); --ink-soft: rgba(242,241,237,.72);
  --ink-faint: rgba(242,241,237,.5); --accent: var(--gold); --hair: rgba(242,241,237,.2);
  --logo: url("../img/logo-white.png"); color: var(--soft-white); }

/* ==========================================================================
   Editorial alternating blocks (the reference's core rhythm)
   ========================================================================== */
.duo { display: grid; gap: clamp(30px, 4vw, 72px); align-items: center; }
.duo-media { position: relative; }
.duo-media img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; }
.duo-copy .micro { margin-bottom: 20px; }
.duo-copy .lead { margin-top: 24px; }
.duo-copy .btn { margin-top: 34px; }
.duo-stat { position: absolute; right: 0; bottom: 0; background: var(--ground);
  padding: 20px 26px; border-top: 1px solid var(--accent); }
.duo-stat b { display: block; font-size: 34px; font-weight: 800; color: var(--accent); line-height: 1; }
.duo-stat span { display: block; margin-top: 7px; font-family: var(--caps); font-size: 10.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Stat row ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 34px 0; border-top: 1px solid var(--hair); }
.stat b { display: block; font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; color: var(--accent);
  line-height: 1; letter-spacing: -.02em; }
.stat span { display: block; margin-top: 12px; font-family: var(--caps); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }

/* ---------- Numbered list (services / process) ---------- */
.list-rows { border-top: 1px solid var(--hair); }
.row-item { display: grid; grid-template-columns: 46px 1fr; gap: 18px;
  padding: 30px 0; border-bottom: 1px solid var(--hair); align-items: start; }
.row-item .n { font-family: var(--caps); font-size: 12px; letter-spacing: .1em; color: var(--accent);
  padding-top: 5px; }
.row-item .d3 { margin-bottom: 9px; }
/* Only one h3 and one p are visible at a time (the other languages are display:none),
   so grid auto-placement dropped the paragraph back into the 46px number column.
   Pin both text cells to column 2. */
.row-item .d3, .row-item p { grid-column: 2; }
.row-item p { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- Project cards ---------- */
.cards { display: grid; gap: 26px; }
.pcard { position: relative; }
.pcard-media { position: relative; overflow: hidden; }
.pcard-media img { width: 100%; aspect-ratio: 3 / 3.6; object-fit: cover;
  transition: transform 1s var(--ease-out); }
.pcard:hover .pcard-media img { transform: scale(1.05); }
.pcard-tag { position: absolute; top: 0; left: 0; background: var(--accent); color: var(--accent-ink);
  font-family: var(--caps); font-weight: 700; font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; padding: 9px 14px; }
.pcard-360 { position: absolute; right: 14px; bottom: 14px; width: 46px; height: 46px;
  border: 1px solid rgba(255,255,255,.55); border-radius: 50%; display: grid; place-items: center;
  background: rgba(5,22,44,.5); backdrop-filter: blur(3px); }
/* The 512px `icon-360.svg` illustration vanished when masked into a 20px box — its
   strokes fell below one pixel. The numerals read at any size. */
.pcard-360 span { font-family: var(--caps); font-weight: 700; font-size: 11.5px;
  letter-spacing: .02em; color: #fff; line-height: 1; }
.pcard-body { padding-top: 22px; }
.pcard-body .d3 { margin-bottom: 10px; }
.pcard-price { font-size: 19px; font-weight: 800; color: var(--accent); letter-spacing: -.01em; }
.pcard-specs { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap;
  gap: 6px 18px; font-size: 13px; color: var(--ink-soft); }
.pcard-specs li::before { content: "— "; color: var(--accent); }

/* ---------- Quotes ---------- */
.quotes { display: grid; gap: 34px; }
.quote { border-top: 1px solid var(--hair); padding-top: 26px; }
.quote p { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.62; }
.quote cite { display: block; margin-top: 20px; font-family: var(--caps); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-style: normal; }

/* ---------- Founder ---------- */
/* Founder portrait: a cutout, so it is bottom-aligned and pulled down by exactly the
   section's bottom padding — its base then meets the top edge of the navy band below. */
.duo--founder .duo-media img { aspect-ratio: auto; width: 100%; max-width: 460px;
  margin-inline: auto; }
@media (min-width: 900px) {
  .duo--founder { align-items: end; }
  .duo--founder .duo-media { margin-bottom: calc(-1 * clamp(64px, 9vw, 132px)); }
}

.founder-quote { font-family: var(--caps); font-weight: 700; text-transform: uppercase;
  font-size: clamp(19px, 2.35vw, 29px); line-height: 1.3; letter-spacing: -.002em;
  color: var(--accent); }
.founder-sign { margin-top: 32px; }
.founder-sign b { display: block; font-size: 19px; font-weight: 500; }
.founder-sign span { display: block; margin-top: 6px; font-family: var(--caps); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }

/* ==========================================================================
   Join / lead capture (mirrors the reference's club band)
   ========================================================================== */
.join { text-align: center; }
.join .d2 { max-width: 22ch; margin: 0 auto; }
.join-form { max-width: 620px; margin: 44px auto 0; text-align: left; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--caps); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 9px; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--hair); padding: 12px 0;
  font-family: var(--font); font-size: 16px; font-weight: 300;
  transition: border-color var(--t);
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field select option { color: #111; }
.form-row { display: grid; gap: 18px; }
.form-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 18px; }
.form-status { font-size: 13.5px; color: var(--accent); margin-top: 14px; min-height: 20px; }

/* ==========================================================================
   Contact + footer
   ========================================================================== */
.contact-cols { display: grid; gap: 34px; }
.cline { padding: 20px 0; border-bottom: 1px solid var(--hair); }
.cline small { display: block; font-family: var(--caps); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 7px; }
.cline b { font-size: 17px; font-weight: 500; }
.map { margin-top: 30px; aspect-ratio: 16/10; border: 1px solid var(--hair); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: var(--map-filter, none); }
.theme-navy .map iframe { filter: grayscale(1) invert(.92) hue-rotate(180deg) brightness(.95); }

.site-footer { padding: clamp(56px, 7vw, 96px) 0 34px; border-top: 1px solid var(--hair); }
.theme-duo .site-footer { background: var(--navy-deep); color: var(--soft-white);
  --ink: var(--soft-white); --ink-soft: rgba(242,241,237,.68); --ink-faint: rgba(242,241,237,.42);
  --accent: var(--gold); --hair: rgba(242,241,237,.16); --logo: url("../img/logo-white.png"); }
.footer-grid { display: grid; gap: 34px; }
.footer-tag { margin-top: 20px; max-width: 34ch; color: var(--ink-soft); font-size: 14px; }
.footer-col h4 { font-family: var(--caps); font-weight: 400; font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; padding: 6px 0; font-size: 14px; color: var(--ink-soft);
  transition: color var(--t); }
.footer-col a:hover { color: var(--accent); }
.footer-fine { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--hair);
  font-size: 11.5px; line-height: 1.7; color: var(--ink-faint); }
.footer-credit { color: var(--ink-faint); text-decoration: none;
  border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.footer-credit:hover { color: var(--accent); border-bottom-color: currentColor; }

.footer-base { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 26px;
  justify-content: space-between; font-size: 11.5px; color: var(--ink-faint);
  font-family: var(--caps); letter-spacing: .1em; text-transform: uppercase; }

/* floating whatsapp */
/* ---------- Floating contact ----------
   One toggle that fans out five channels. The toggle is a DIV (navigation);
   each channel is a tracked <button data-event="contact_click">. */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

.fab-menu { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.fab-menu[hidden] { display: none; }

.fab-item { display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 9px 14px; border: 0; border-radius: 999px; background: #fff; color: #071f3e;
  font-family: var(--caps); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0,0,0,.22); white-space: nowrap;
  opacity: 0; transform: translateY(8px) scale(.96);
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out), background .25s; }
.fab.open .fab-item { opacity: 1; transform: none; }
.fab.open .fab-item:nth-child(5) { transition-delay: .02s; }
.fab.open .fab-item:nth-child(4) { transition-delay: .06s; }
.fab.open .fab-item:nth-child(3) { transition-delay: .10s; }
.fab.open .fab-item:nth-child(2) { transition-delay: .14s; }
.fab.open .fab-item:nth-child(1) { transition-delay: .18s; }
.fab-item:hover { background: var(--cream); }
.fab-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.fab-ico { width: 20px; height: 20px; flex: 0 0 20px; }
.ico-whatsapp  { background: #25d366; -webkit-mask: url("../svg/icon-whatsapp.svg") center/contain no-repeat; mask: url("../svg/icon-whatsapp.svg") center/contain no-repeat; }
.ico-viber     { background: #7360f2; -webkit-mask: url("../svg/icon-viber.svg") center/contain no-repeat; mask: url("../svg/icon-viber.svg") center/contain no-repeat; }
.ico-messenger { background: #0084ff; -webkit-mask: url("../svg/icon-messenger.svg") center/contain no-repeat; mask: url("../svg/icon-messenger.svg") center/contain no-repeat; }
.ico-telegram  { background: #29a9eb; -webkit-mask: url("../svg/icon-telegram.svg") center/contain no-repeat; mask: url("../svg/icon-telegram.svg") center/contain no-repeat; }
.ico-phone     { background: var(--navy); -webkit-mask: url("../svg/icon-phone.svg") center/contain no-repeat; mask: url("../svg/icon-phone.svg") center/contain no-repeat; }

.fab-btn { position: relative; width: 56px; height: 56px; border-radius: 50%; cursor: pointer;
  background: var(--navy); display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(0,0,0,.3); transition: transform var(--t), background var(--t); }
.fab-btn:hover { transform: scale(1.06); }
.fab.open .fab-btn { background: var(--navy-deep); }
.fab-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.fab-open, .fab-close { position: absolute; transition: opacity .25s, transform .25s; }
.fab-open { width: 26px; height: 26px; background: #fff;
  -webkit-mask: url("../svg/icon-chat.svg") center/contain no-repeat;
  mask: url("../svg/icon-chat.svg") center/contain no-repeat; }
.fab-close { width: 18px; height: 18px; opacity: 0; transform: rotate(-45deg); }
.fab-close::before, .fab-close::after { content: ""; position: absolute; left: 0; top: 50%;
  width: 18px; height: 2px; background: #fff; border-radius: 2px; }
.fab-close::after { transform: rotate(90deg); }
.fab.open .fab-open  { opacity: 0; transform: rotate(45deg) scale(.7); }
.fab.open .fab-close { opacity: 1; transform: rotate(0); }

@media (max-width: 480px) {
  .fab { right: 16px; bottom: 16px; }
  .fab-item { font-size: 11px; padding: 8px 12px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); gap: 0 34px; }
}
@media (min-width: 900px) {
  .site-nav { display: flex; }
  .nav-toggle, .mobile-nav { display: none !important; }
  .hero-scroll { display: block; }
  .duo { grid-template-columns: 1fr 1fr; }
  .duo--flip .duo-media { order: 2; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .contact-cols { grid-template-columns: 1fr 1fr; gap: 60px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .row-item { grid-template-columns: 70px 1fr 1.25fr; gap: 30px; align-items: center; }
  .row-item .d3 { grid-column: 2; }
  .row-item p { grid-column: 3; margin-top: 0; }
  .row-item .d3 { margin-bottom: 0; }
}
@media (min-width: 1200px) {
  .duo { gap: 90px; }
}


/* ==========================================================================
   Round-6 additions
   ========================================================================== */

/* ---------- Header lead button ---------- */
.btn-lead { padding: 13px 22px; font-size: 11.5px; }
.site-header:not(.stuck) .btn-lead { background: var(--gold); color: var(--navy-deep); }
.site-header:not(.stuck) .btn-lead:hover { background: #fff; }

/* ---------- Case-study slider ---------- */
.case-head { display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 34px; }
.case-nav { display: flex; align-items: center; gap: 14px; }
.case-arrow { width: 46px; height: 46px; border: 1px solid var(--hair); cursor: pointer;
  display: grid; place-items: center; transition: border-color var(--t), background var(--t); }
.case-arrow:hover { border-color: var(--accent); background: rgba(203,167,80,.1); }
.case-chev { width: 9px; height: 9px; border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink); display: block; }
.case-chev.prev { transform: rotate(135deg); margin-left: 3px; }
.case-chev.next { transform: rotate(-45deg); margin-right: 3px; }
.case-count { font-family: var(--caps); font-size: 12px; letter-spacing: .14em; color: var(--ink-faint); }
.case-count b { color: var(--accent); font-weight: 400; }
.case-count i { font-style: normal; margin: 0 3px; }

.case-track { position: relative; }
.case-slide { display: none; }
.case-slide.is-on { display: block; animation: caseIn .55s var(--ease-out) both; }
@keyframes caseIn { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }
.case-slide .duo-media img { aspect-ratio: 4 / 3.1; object-fit: cover; }
.case-stat { margin: 24px 0 4px; }
.case-stat b { display: block; font-size: clamp(38px, 5.2vw, 60px); font-weight: 800;
  color: var(--accent); line-height: 1; letter-spacing: -.02em; }
.case-stat span { display: block; margin-top: 10px; font-family: var(--caps); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.case-slide .lead { margin-top: 18px; }
.case-slide .d2 { margin-top: 14px; }

/* ---------- Reviewer avatars ---------- */
.quote-avatar { width: 48px; height: 48px; border-radius: 50%; margin-top: 4px; display: block; }

/* ---------- Lead capture modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 22, 44, .72);
  backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s var(--ease-out); }
.modal-panel { position: relative; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  background: var(--cream); color: var(--navy); padding: clamp(28px, 4vw, 44px);
  opacity: 0; transform: translateY(18px) scale(.98);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
  --ink: var(--navy); --ink-soft: rgba(10,49,97,.72); --ink-faint: rgba(10,49,97,.5);
  --accent: #c2141a; --accent-ink: #fff; --hair: rgba(10,49,97,.16); }
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-panel { opacity: 1; transform: none; }
.modal-panel .micro { margin-bottom: 12px; }
.modal-panel .d3 { margin-bottom: 26px; max-width: 22ch; }
.modal-panel .field input, .modal-panel .field select, .modal-panel .field textarea { color: var(--navy); }
.modal-panel .field textarea { min-height: 72px; }
.modal-form .btn-solid { margin-top: 8px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px;
  display: grid; place-items: center; cursor: pointer; }
.modal-close span { position: absolute; width: 17px; height: 1.5px; background: var(--navy); }
.modal-close span:first-child { transform: rotate(45deg); }
.modal-close span:last-child { transform: rotate(-45deg); }
.modal-close:hover span { background: #c2141a; }
body.modal-open { overflow: hidden; }

@media (min-width: 900px) {
  .case-slide .duo { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .case-slide.is-on { animation: none; }
  .modal-backdrop, .modal-panel { transition: none; }
  .loader-logo { transition: none; opacity: 1; transform: none; }
}

/* The header cannot hold logo + language + CTA + burger on a phone — the CTA moves
   into the mobile menu instead of overflowing the row. */
.btn-lead-m { display: none; margin-top: 16px; }
/* Below the burger breakpoint the header is logo + burger only: the language
   switcher and the CTA both move into the menu. */
@media (max-width: 899px) {
  /* `.site-nav + .header-actions { margin-left: 0 }` kept matching while the nav is
     display:none, which is why the burger sat mid-row instead of at the edge. */
  .site-nav + .header-actions { margin-left: auto; }
  .header-actions .lang-dd { display: none; }
  .btn-lead { display: none; }
  .btn-lead-m { display: inline-flex; }
  /* pull the 40px hit area out so the glyph lines up with the page gutter */
  .nav-toggle { margin-right: -10px; }
}

.mobile-lang { display: flex; gap: 8px; margin-top: 20px; }
.mobile-lang .lang-option { flex: 1; text-align: center; padding: 11px 0; cursor: pointer;
  border: 1px solid var(--hair); border-radius: 4px; font-family: var(--caps);
  font-size: 12px; letter-spacing: .14em; color: var(--ink-soft); transition: all var(--t); }
.mobile-lang .lang-option.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.mobile-lang .lang-option:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* A little more breathing room beside the big display type on phones. */
@media (max-width: 640px) { :root { --gut: 28px; } }
