/* SMARTLedger — design system & styles
   Navy + gold brand, serif display (Fraunces) with a clean sans (Plus Jakarta Sans).
   Motif: ledger rules, tabular figures, tick marks. */

:root {
  --navy-950: #050c3d;
  --navy-900: #071155;
  --navy-800: #0a1662;
  --navy-700: #0d1d79;
  --navy-600: #1c2f9a;
  --navy-100: #e7e9f7;
  --gold: #fdb515;
  --gold-600: #e8a000;
  --gold-100: #fff4d6;
  --ink: #12153a;
  --body: #3f4566;
  --muted: #6a7090;
  --line: #e3e5f0;
  --tint: #f5f6fb;
  --paper: #ffffff;
  --success: #138a5a;
  --wa: #25d366;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(10, 22, 98, 0.06), 0 2px 8px rgba(10, 22, 98, 0.05);
  --shadow: 0 10px 30px -10px rgba(10, 22, 98, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(5, 12, 61, 0.35);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-600); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; }
h1, h2, .h-display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-variation-settings: 'opsz' 96; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3, .h3 { font-size: 1.2rem; font-family: var(--font-body); letter-spacing: -0.01em; }
.h4 { font-size: 1.15rem; font-family: var(--font-body); }
h1 em, h2 em { font-style: italic; color: var(--gold); font-weight: 600; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.6; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.center { text-align: center; }
.mt-lg { margin-top: 48px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy-900); padding: 10px 16px; border-radius: 8px; z-index: 1000; font-weight: 700; }
.skip:focus { left: 8px; }
.icon { width: 22px; height: 22px; flex: none; }
.flip { transform: scaleX(-1); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy-700); --fg: #fff; --bd: var(--navy-700);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg); font: 600 0.98rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--fg); }
.btn .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn svg:not(.icon) { width: 20px; height: 20px; }
.btn--primary { --bg: var(--navy-700); --fg: #fff; --bd: var(--navy-700); }
.btn--primary:hover { --bg: var(--navy-600); --bd: var(--navy-600); }
.btn--gold { --bg: var(--gold); --fg: var(--navy-900); --bd: var(--gold); }
.btn--gold:hover { --bg: #ffc53d; --bd: #ffc53d; }
.btn--outline { --bg: transparent; --fg: var(--navy-700); --bd: var(--navy-100); }
.btn--outline:hover { --bd: var(--navy-700); }
.btn--ghost-light { --bg: rgba(255, 255, 255, 0.06); --fg: #fff; --bd: rgba(255, 255, 255, 0.28); }
.btn--ghost-light:hover { --bg: rgba(255, 255, 255, 0.14); --bd: rgba(255, 255, 255, 0.6); }
.btn--sm { padding: 10px 18px; font-size: 0.9rem; }
.btn--lg { padding: 17px 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-row.center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-700); text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--navy-700); display: grid; place-items: center; cursor: pointer; transition: 0.2s; }
.icon-btn:hover { border-color: var(--navy-700); background: var(--navy-700); color: #fff; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 0.78rem/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy-600); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.eyebrow--light, .page-hero .eyebrow, .section--navy .eyebrow, .hero .eyebrow { color: #c9cdf0; }
.eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(253, 181, 21, 0.6); animation: pulse 2s infinite; }
.eyebrow:has(.pulse)::before { display: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(253, 181, 21, 0); } 100% { box-shadow: 0 0 0 0 rgba(253, 181, 21, 0); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -12px rgba(10, 22, 98, 0.18); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: background 0.2s; }
.nav__link:hover, .nav__link[aria-current] { background: var(--tint); color: var(--navy-700); }
.nav__chev { width: 16px; height: 16px; transition: transform 0.25s; }
.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav__phone .icon { width: 18px; height: 18px; color: var(--navy-600); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; place-items: center; }
.nav-toggle .i-close { display: none; }

.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; width: min(760px, 92vw);
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden; pointer-events: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 14px; transition: 0.25s var(--ease);
}
.mega::before { content: ''; position: absolute; inset: -14px 0 auto; height: 14px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.has-mega:hover .nav__chev { transform: rotate(180deg); }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega__link { display: flex; gap: 14px; padding: 14px; border-radius: 14px; text-decoration: none; color: var(--ink); transition: background 0.2s; }
.mega__link:hover { background: var(--tint); }
.mega__link strong { display: block; font-size: 0.95rem; }
.mega__link small { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.4; margin-top: 2px; }
.mega__icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--navy-100); color: var(--navy-700); }
.mega__icon .icon { width: 20px; height: 20px; }
.mega__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding: 14px 16px; border-radius: 14px; background: var(--gold-100); font-size: 0.9rem; color: var(--ink); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(1200px 600px at 85% -10%, #2335b3 0%, transparent 60%), linear-gradient(160deg, var(--navy-800) 0%, var(--navy-950) 100%);
  color: #d6d9f5; padding: clamp(56px, 8vw, 110px) 0 clamp(70px, 9vw, 120px);
  margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px));
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1; opacity: 0.55;
  background-image: repeating-linear-gradient(to bottom, transparent 0 43px, rgba(255, 255, 255, 0.05) 43px 44px);
  mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { display: block; }
.hero .lead { color: #c9cdf0; max-width: 600px; }
.hero__trust { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 0.92rem; color: #c9cdf0; }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust .icon { width: 18px; height: 18px; color: var(--gold); }
body.home .site-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; }
body.home .site-header:not(.is-scrolled) .nav__link,
body.home .site-header:not(.is-scrolled) .nav__phone { color: #fff; }
body.home .site-header:not(.is-scrolled) .nav__link:hover { background: rgba(255, 255, 255, 0.1); }
body.home .site-header:not(.is-scrolled) .nav__phone .icon { color: var(--gold); }
body.home .site-header:not(.is-scrolled) .btn--primary { --bg: var(--gold); --fg: var(--navy-900); --bd: var(--gold); }

/* Ledger card visual */
.hero-ledger { position: relative; padding: 30px 10px; }
.ledger-card {
  position: relative; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 22px 22px 18px; color: var(--ink); transform: rotate(-1.5deg);
  background-image: repeating-linear-gradient(to bottom, transparent 0 51px, var(--line) 51px 52px);
  background-position: 0 58px;
}
.ledger-card::before { content: ''; position: absolute; top: 0; bottom: 92px; left: 52px; width: 1.5px; background: rgba(253, 181, 21, 0.55); }
.ledger-card__head { display: flex; align-items: center; gap: 6px; padding-bottom: 14px; }
.ledger-card__head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.ledger-card__head .dot:first-child { background: var(--gold); }
.ledger-card__title { margin-left: 10px; font: 700 0.8rem var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ledger-list { list-style: none; margin: 0; padding: 0; }
.ledger-list li {
  display: flex; align-items: center; gap: 16px; height: 52px; font-weight: 600; font-size: 0.97rem;
  opacity: 0; transform: translateX(-10px); animation: rowIn 0.6s var(--ease) forwards; animation-delay: calc(0.5s + var(--i) * 0.45s);
}
.ledger-list em { margin-left: auto; font-style: normal; font-size: 0.78rem; font-weight: 600; color: var(--muted); background: var(--tint); padding: 4px 10px; border-radius: 999px; }
.ledger-list .tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-700); color: #fff; flex: none; position: relative; left: 0; }
.ledger-list .tick .icon { width: 15px; height: 15px; stroke-width: 3; }
@keyframes rowIn { to { opacity: 1; transform: none; } }
.ledger-card__foot { position: relative; display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--navy-800); color: #fff; }
.ledger-card__foot small { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #aab0e0; }
.ledger-card__foot strong { font-size: 1.05rem; color: var(--gold); }
.spark { width: 120px; height: 40px; color: var(--gold); stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 1.8s 2.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: #fff; box-shadow: var(--shadow-lg); color: var(--ink); animation: float 6s ease-in-out infinite;
}
.float-chip .icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--gold-100); color: var(--gold-600); }
.float-chip strong { display: block; font-size: 0.92rem; }
.float-chip small { display: block; font-size: 0.76rem; color: var(--muted); }
.float-chip--a { top: -22px; right: -18px; }
.float-chip--b { bottom: -10px; left: -24px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #c9cdf0;
  background: radial-gradient(900px 400px at 90% -20%, #2335b3 0%, transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-950));
  padding: clamp(48px, 7vw, 90px) 0;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, transparent 0 43px, rgba(255, 255, 255, 0.045) 43px 44px);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; max-width: 860px; }
.page-hero .lead { color: #c9cdf0; max-width: 680px; }
.page-hero__grid.has-aside { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero--article h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-hero--center { padding: clamp(80px, 12vw, 160px) 0; }
.page-hero--center .lead { margin-inline: auto; }
.article-meta { color: #aab0e0; font-size: 0.95rem; margin: 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.86rem; }
.crumbs li { color: #aab0e0; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: 0.5; }
.crumbs a { color: #dfe2fb; text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--gold); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-form .lead-form { box-shadow: var(--shadow-lg); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--tint); }
.section--navy { background: linear-gradient(170deg, var(--navy-800), var(--navy-950)); color: #c9cdf0; }
.section--navy h2 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p:last-child { margin-bottom: 0; }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-head.split > div { max-width: 640px; }
.section-head.split h2 { margin-bottom: 0; }
.section-head__aside { max-width: 420px; margin: 0; }

/* ---------- Logos marquee ---------- */
.logos { padding: 44px 0 36px; border-bottom: 1px solid var(--line); }
.logos__title { text-align: center; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.marquee { overflow: hidden; mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent); }
.marquee__track { list-style: none; margin: 0; padding: 0; display: flex; gap: 64px; width: max-content; animation: marquee 40s linear infinite; align-items: center; }
.marquee:hover .marquee__track { animation-play-state: paused; }
/* Logos arrive in mixed colours (some white-on-transparent); render as uniform navy silhouettes. */
.marquee img { height: 52px; width: auto; max-width: 130px; object-fit: contain; filter: brightness(0) saturate(100%) invert(10%) sepia(60%) saturate(4000%) hue-rotate(230deg); opacity: 0.45; transition: opacity 0.3s; }
.marquee img:hover { opacity: 0.9; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc-card {
  position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--body); overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.svc-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; color: var(--body); }
.svc-card:hover::after { transform: scaleX(1); }
.svc-card h3 { margin: 18px 0 8px; }
.svc-card p { font-size: 0.94rem; flex: 1; }
.svc-card .link-arrow { font-size: 0.9rem; }
.svc-card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-100); color: var(--navy-700); transition: 0.3s; }
.svc-card:hover .svc-card__icon { background: var(--navy-700); color: var(--gold); }

/* ---------- Stats ---------- */
.stats { background: var(--navy-700); color: #fff; padding: 48px 0; position: relative; overflow: hidden; }
.stats::before { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(255, 255, 255, 0.08) calc(25% - 1px) 25%); }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat__value { font: 600 clamp(2.2rem, 4vw, 3.2rem)/1 var(--font-display); color: var(--gold); margin: 0 0 8px; }
.stat__label { margin: 0; color: #c9cdf0; font-size: 0.95rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps::before { content: ''; position: absolute; top: 33px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px); z-index: 0; }
.step { position: relative; z-index: 1; padding: 0 8px; text-align: center; }
.step__num { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; background: #fff; border: 2px solid var(--navy-700); color: var(--navy-700); font: 700 1.25rem var(--font-display); box-shadow: 0 0 0 8px var(--paper); }
.section--tint .step__num { box-shadow: 0 0 0 8px var(--tint); }
.step p { font-size: 0.95rem; }

/* ---------- Packages ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.pkg { position: relative; display: flex; flex-direction: column; background: #fff; color: var(--body); border-radius: var(--radius-lg); padding: 34px 28px 28px; box-shadow: var(--shadow); }
.pkg h3 { font: 600 1.6rem var(--font-display); margin-bottom: 6px; }
.pkg__blurb { font-size: 0.95rem; color: var(--muted); min-height: 3em; }
.pkg__price { display: flex; flex-direction: column; padding: 18px 0; margin: 0 0 18px; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.pkg__price .num { font: 600 2.3rem/1.1 var(--font-display); color: var(--ink); }
.pkg__price small { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.pkg .ticks { flex: 1; margin-bottom: 26px; }
.pkg--featured { background: linear-gradient(180deg, #fff 0%, #fffaf0 100%); outline: 2px solid var(--gold); transform: translateY(-10px); }
.pkg__badge { position: absolute; top: -14px; left: 28px; background: var(--gold); color: var(--navy-900); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.pkg-note { text-align: center; font-size: 0.88rem; color: #aab0e0; max-width: 720px; margin: 36px auto 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; line-height: 1.45; }
.ticks .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); stroke-width: 3; margin-top: 1px; }

/* ---------- Why / audiences ---------- */
.why { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why__item { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.why__item p { font-size: 0.94rem; margin: 0; }
.why__icon, .aud__icon, .offer__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-600); margin-bottom: 16px; }
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.aud { background: #fff; padding: 28px 24px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.aud p { font-size: 0.94rem; margin: 0; }
.aud__icon { background: var(--navy-700); color: var(--gold); }

/* ---------- Testimonials ---------- */
.t-slider { position: relative; }
.t-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px; scroll-behavior: smooth; }
.t-track::-webkit-scrollbar { display: none; }
.t-card { scroll-snap-align: start; margin: 0; background: #fff; border-radius: var(--radius-lg); padding: 30px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.t-card__mark { width: 34px; height: 34px; color: var(--gold); margin-bottom: 14px; }
.t-card blockquote { margin: 0 0 24px; font: 400 1.18rem/1.5 var(--font-display); color: var(--ink); flex: 1; }
.t-card figcaption { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.t-card figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.t-card figcaption strong { display: block; color: var(--ink); font-size: 0.95rem; }
.t-card figcaption small { color: var(--muted); font-size: 0.84rem; }
.t-controls { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-grid--2 { grid-template-columns: repeat(2, 1fr); }
.post-card { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--body); transition: 0.35s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--body); }
.post-card h3, .post-card h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.25; margin: 14px 0 10px; letter-spacing: -0.01em; }
.post-card p { font-size: 0.94rem; flex: 1; }
.post-card__tag { align-self: flex-start; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy-700); background: var(--navy-100); padding: 5px 12px; border-radius: 999px; }
.post-card__meta { font-size: 0.85rem; color: var(--muted); }

/* ---------- Lead form ---------- */
.consult { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; font-weight: 600; color: var(--ink); }
.contact-list svg { width: 22px; height: 22px; color: var(--navy-600); flex: none; }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--navy-600); text-decoration: underline; }
.lead-form { background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; gap: 16px; color: var(--body); }
.lead-form__title { font: 600 1.5rem var(--font-display); margin: 0 0 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: 500 1rem var(--font-body); color: var(--ink); background: var(--tint);
  border: 1.5px solid transparent; border-radius: 12px; padding: 13px 14px; transition: 0.2s; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%230d1d79' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-700); background: #fff; box-shadow: 0 0 0 4px rgba(13, 29, 121, 0.1); }
.field.is-invalid input, .field.is-invalid select { border-color: #d14343; background: #fff5f5; }
.lead-form__note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 0.82rem; color: var(--muted); margin: 0; }
.lead-form__note .icon { width: 15px; height: 15px; }
.lead-form__status { margin: 0; font-weight: 600; text-align: center; font-size: 0.92rem; }
.lead-form__status:empty { display: none; }
.lead-form__status.ok { color: var(--success); }
.lead-form__status.err { color: #c03030; }
.lead-form--compact { gap: 14px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow 0.25s, border-color 0.25s; }
.faq__item[open] { box-shadow: var(--shadow-sm); border-color: var(--navy-100); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chev { width: 20px; height: 20px; color: var(--navy-600); transition: transform 0.3s; }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__body { padding: 0 24px 20px; }
.faq__body p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-900); position: relative; overflow: hidden; padding: clamp(48px, 7vw, 80px) 0; color: #c9cdf0; }
.cta-band::before { content: ''; position: absolute; right: -120px; top: -160px; width: 480px; height: 480px; border-radius: 50%; border: 70px solid rgba(253, 181, 21, 0.09); }
.cta-band__inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band p { margin: 0; }
.cta-band .btn-row { margin-top: 0; }

/* ---------- Service detail ---------- */
.prose-intro { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.prose-intro__text p { font-size: 1.08rem; }
.prose-intro__text p:first-child { font: 400 1.4rem/1.5 var(--font-display); color: var(--ink); }
.prose-intro__card { padding: 30px; border-radius: var(--radius-lg); background: var(--tint); border: 1px solid var(--line); display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.prose-intro__card h2 { margin: 0; }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.offer { background: #fff; padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.offer p { font-size: 0.94rem; margin: 0; }
.offer__icon { background: var(--navy-100); color: var(--navy-700); }

/* ---------- Package finder ---------- */
.finder { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.finder__form { display: grid; gap: 24px; padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-lg); background: var(--tint); }
.finder fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.finder legend { font-weight: 700; color: var(--ink); margin-bottom: 12px; width: 100%; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 600; font-size: 0.93rem; cursor: pointer; transition: 0.2s; color: var(--ink); }
.chip input:checked + span { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.finder__result { padding: 24px; border-radius: var(--radius); background: #fff; border: 2px solid var(--gold); animation: rowIn 0.5s var(--ease) both; }
.finder__result h3 { font: 600 1.5rem var(--font-display); }
.finder__result .btn-row { margin-top: 16px; }

/* ---------- About ---------- */
.about-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.mission-card { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); color: #c9cdf0; box-shadow: var(--shadow-lg); }
.mission-card__quote { font: 400 1.45rem/1.45 var(--font-display); color: #fff; margin-bottom: 28px; }
.mission-card__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, 0.12); border-radius: 14px; overflow: hidden; }
.mission-card__grid div { background: var(--navy-900); padding: 18px; }
.mission-card__grid strong { display: block; font: 600 1.8rem var(--font-display); color: var(--gold); }
.mission-card__grid small { font-size: 0.85rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); transition: 0.25s var(--ease); }
a.contact-card:hover { transform: translateX(4px); border-color: var(--navy-700); color: var(--ink); }
.contact-card > svg { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--navy-100); color: var(--navy-700); flex: none; }
.contact-card--wa > svg { background: #e5f9ec; color: #128c4a; }
.contact-card small { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-card strong { font-size: 1rem; word-break: break-word; }
.contact-social { padding: 8px 4px; }
.contact-social small { display: block; color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.contact-social > div { display: flex; gap: 10px; }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(0.3); }

/* ---------- Article ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 64px); align-items: start; max-width: 1100px; }
.prose { font-size: 1.07rem; line-height: 1.8; color: var(--body); }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--gold-600); }
.prose strong { color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 560px; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--navy-800); color: #fff; font-weight: 600; }
.prose tbody tr:nth-child(even) { background: var(--tint); }
.prose tbody td:first-child { font-weight: 700; color: var(--ink); }
.disclaimer { margin-top: 2.5em; padding: 16px 20px; border-left: 3px solid var(--gold); background: var(--gold-100); border-radius: 0 12px 12px 0; font-size: 0.92rem; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card { padding: 28px; border-radius: var(--radius-lg); background: var(--tint); border: 1px solid var(--line); display: grid; gap: 10px; }
.aside-card p { font-size: 0.94rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #aab0e0; padding: 72px 0 0; font-size: 0.95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.site-footer h3 { color: #fff; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #c9cdf0; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer__brand img { height: 27px; width: auto; margin-bottom: 18px; }
.footer__brand p { max-width: 340px; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.social { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.18); color: #fff !important; transition: 0.25s; }
.social:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900) !important; }
.social .icon { width: 18px; height: 18px; }
.social--dark { border-color: var(--line); color: var(--navy-700) !important; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact .icon { width: 18px; height: 18px; color: var(--gold); margin-top: 4px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.86rem; }
.footer__bottom p { margin: 0; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px; border-radius: 999px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 700;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6); transition: 0.3s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.4s var(--ease); }
.wa-float:hover { color: #fff; transform: translateY(-3px); padding-right: 20px; }
.wa-float:hover span { max-width: 140px; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 16px var(--gutter) 32px; overflow-y: auto; transform: translateX(100%); transition: transform 0.35s var(--ease); visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__link { padding: 16px 4px; font-size: 1.05rem; width: 100%; justify-content: space-between; border-radius: 0; color: var(--ink) !important; }
  .nav__link:hover { background: none !important; }
  .mega { position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto; width: auto; box-shadow: none; border: 0; padding: 0 0 12px; display: none; }
  .has-mega.is-open .mega { display: block; }
  .has-mega.is-open .nav__chev { transform: rotate(180deg); }
  .mega__grid { grid-template-columns: 1fr; }
  .mega__link small, .mega__foot { display: none; }
  .mega__link { padding: 10px 4px; align-items: center; }
  .nav__cta { flex-direction: column; align-items: stretch; margin-top: 24px; gap: 14px; }
  .nav__cta .btn { padding: 16px; }
  .nav__phone { justify-content: center; color: var(--ink) !important; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle .i-open { display: none; }
  body.nav-open .nav-toggle .i-close { display: block; }
  body.home.nav-open .site-header { background: #fff; }
  .svc-grid, .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__grid, .page-hero__grid.has-aside, .why, .consult, .prose-intro, .finder, .about-split, .contact-grid, .article-layout { grid-template-columns: 1fr; }
  .hero-ledger { max-width: 520px; margin: 20px auto 0; width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .t-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .prose-intro__card, .article-aside { position: static; }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --header-h: 66px; }
  .brand img { height: 24px; }
  .pkg-grid, .post-grid, .post-grid--2, .offer-grid { grid-template-columns: 1fr; }
  .pkg--featured { transform: none; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { top: 0; bottom: 0; left: 33px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--gold) 0 8px, transparent 8px 16px); }
  .step { display: grid; grid-template-columns: 68px 1fr; column-gap: 20px; text-align: left; padding: 0; }
  .step__num { grid-row: span 2; margin: 0; }
  .step h3 { margin: 10px 0 4px; }
  .stats__grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .stats::before { display: none; }
  .t-track { grid-auto-columns: 88%; }
  .field-row { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .float-chip--a { right: 0; top: -30px; }
  .float-chip--b { left: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-band__inner .btn-row, .cta-band__inner .btn-row .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 auto; }
  .wa-float { right: 14px; bottom: 14px; padding: 13px; }
  .map-wrap iframe { height: 320px; }
  .ledger-card { transform: none; }
}
@media (max-width: 520px) {
  .svc-grid, .aud-grid { grid-template-columns: 1fr; }
  .section-head.split { align-items: flex-start; }
  .ledger-list em { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 28px 48px; padding: 0 var(--gutter); }
  .marquee__track li[aria-hidden] { display: none; }
}

@media print {
  .site-header, .wa-float, .cta-band, .lead-form, .site-footer { display: none !important; }
  .page-hero, .hero { background: none; color: #000; }
}
.page-hero--article .container.narrow { max-width: 1100px; }
.page-hero--article h1 { max-width: 820px; }

/* =========================================================
   Home animations: hero canvas, entrance, tilt, story player
   ========================================================= */
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__bg { mask-image: none; opacity: 1; background-image: repeating-linear-gradient(to bottom, transparent 0 43px, rgba(255, 255, 255, 0.035) 43px 44px); }

/* Staggered hero entrance */
.hero__copy > * { animation: heroIn 0.9s var(--ease) both; }
.hero__copy > :nth-child(1) { animation-delay: 0.05s; }
.hero__copy > :nth-child(2) { animation-delay: 0.15s; }
.hero__copy > :nth-child(3) { animation-delay: 0.3s; }
.hero__copy > :nth-child(4) { animation-delay: 0.42s; }
.hero__copy > :nth-child(5) { animation-delay: 0.54s; }
.hero h1 em { background: linear-gradient(90deg, var(--gold) 0%, #ffe08a 25%, var(--gold) 50%, var(--gold) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear 1.2s infinite; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }
.hero-ledger { animation: heroIn 1.1s 0.35s var(--ease) both; }

/* Mouse tilt on the ledger card */
[data-tilt] .ledger-card { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(-1.5deg); transition: transform 0.4s var(--ease); will-change: transform; }
[data-tilt] .float-chip--a { translate: calc(var(--ry, 0deg) * -1.4) calc(var(--rx, 0deg) * 1.4); }
[data-tilt] .float-chip--b { translate: calc(var(--ry, 0deg) * 1.4) calc(var(--rx, 0deg) * -1.4); }

/* ---------- Story player ---------- */
.story { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.story__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.story__step { position: relative; width: 100%; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; text-align: left; padding: 18px 20px 20px; border-radius: var(--radius); border: 1px solid transparent; background: transparent; cursor: pointer; font: inherit; color: var(--body); overflow: hidden; transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; }
.story__step:hover { background: rgba(255, 255, 255, 0.6); }
.story__step.is-active { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.story__num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--navy-100); color: var(--navy-600); font: 700 1.05rem var(--font-display); transition: 0.3s; }
.story__step.is-active .story__num { background: var(--navy-700); border-color: var(--navy-700); color: var(--gold); }
.story__txt strong { display: block; color: var(--ink); font-size: 1.05rem; margin: 2px 0 4px; }
.story__txt small { display: block; font-size: 0.92rem; line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s var(--ease), opacity 0.4s; }
.story__step.is-active .story__txt small { max-height: 6em; opacity: 1; }
.story__bar { position: absolute; left: 20px; right: 20px; bottom: 8px; height: 3px; border-radius: 3px; background: var(--navy-100); opacity: 0; transition: opacity 0.3s; }
.story__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--gold); }
.story__step.is-active .story__bar { opacity: 1; }
.story__step.is-active .story__bar i { animation: storyBar var(--scene-ms, 5200ms) linear forwards; animation-play-state: paused; }
.story.is-playing .story__step.is-active .story__bar i { animation-play-state: running; }
@keyframes storyBar { to { width: 100%; } }

.story__screen { position: relative; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.story__screen::after { content: ''; position: absolute; inset: auto -40% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(253, 181, 21, 0.18), transparent 70%); pointer-events: none; }
.story__chrome { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: var(--tint); border-bottom: 1px solid var(--line); }
.story__chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.story__chrome .dot:first-child { background: #ff6b5f; } .story__chrome .dot:nth-child(2) { background: var(--gold); } .story__chrome .dot:nth-child(3) { background: #2bc66b; }
.story__url { flex: 1; margin: 0 10px; padding: 5px 12px; border-radius: 999px; background: #fff; font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story__toggle { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--navy-700); color: #fff; display: grid; place-items: center; cursor: pointer; }
.story__toggle svg { width: 14px; height: 14px; }
.story__toggle .i-play, .story.is-paused .story__toggle .i-pause { display: none; }
.story.is-paused .story__toggle .i-play { display: block; }
.story__stage { position: relative; height: 400px; background: linear-gradient(180deg, #fff, var(--tint)); background-image: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(13, 29, 121, 0.05) 39px 40px); }
.scene { position: absolute; inset: 0; padding: 28px; opacity: 0; visibility: hidden; transform: scale(0.98); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0.5s; }
.scene.is-active { opacity: 1; visibility: visible; transform: none; }
.scene * { animation-play-state: paused; }
.story.is-playing .scene.is-active * { animation-play-state: running; }
.story.is-static .story__bar { display: none; }

/* Scene 1: chat + form fill */
.scene--chat { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: center; }
.chat { display: grid; gap: 10px; }
.bubble { max-width: 92%; padding: 12px 15px; border-radius: 16px; font-size: 0.9rem; line-height: 1.45; opacity: 0; }
.bubble--me { justify-self: end; background: #dcf8c6; color: #1d3b1f; border-bottom-right-radius: 4px; }
.bubble--them { background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.bubble--typing { display: inline-flex; gap: 4px; width: max-content; background: #fff; border: 1px solid var(--line); }
.bubble--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 0.9s infinite; }
.bubble--typing i:nth-child(2) { animation-delay: 0.15s; } .bubble--typing i:nth-child(3) { animation-delay: 0.3s; }
.scene.is-active .bubble--me { animation: pop 0.5s 0.2s var(--ease) forwards; }
.scene.is-active .bubble--typing { animation: pop 0.3s 0.9s var(--ease) forwards, fadeOut 0.2s 1.9s forwards; }
.scene.is-active .bubble--them { animation: pop 0.5s 2s var(--ease) forwards; }
@keyframes typing { 50% { transform: translateY(-4px); opacity: 0.4; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes fadeOut { to { opacity: 0; height: 0; padding: 0; margin: -5px 0; border: 0; } }
.mini-form { display: grid; gap: 10px; padding: 18px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.mini-form__row { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--tint); }
.mini-form__row small { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.mini-form__row b { font-size: 0.88rem; color: var(--ink); white-space: nowrap; overflow: hidden; width: 0; border-right: 2px solid var(--navy-600); }
.scene.is-active .type { animation: typeIn 1s 2.6s steps(20) forwards, caret 0.1s 3.7s forwards; }
.scene.is-active .type--2 { animation-delay: 3.4s, 4.2s; animation-duration: 0.6s, 0.1s; }
.scene.is-active .type--3 { animation-delay: 4s, 4.6s; animation-duration: 0.5s, 0.1s; }
@keyframes typeIn { to { width: 100%; } }
@keyframes caret { to { border-color: transparent; } }

/* Scene 2: documents + stamp */
.scene--docs { display: grid; place-items: center; }
.doc { position: absolute; width: 210px; height: 260px; background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 22px 20px; display: grid; align-content: start; gap: 12px; border-top: 5px solid var(--navy-700); opacity: 0; }
.doc span { font-weight: 700; color: var(--ink); font-size: 0.88rem; margin-bottom: 6px; }
.doc i { display: block; height: 7px; border-radius: 4px; background: var(--line); }
.doc i:nth-child(odd) { width: 75%; }
.doc--1 { --r: -9deg; --x: -120px; }
.doc--2 { --r: 0deg; --x: 0px; z-index: 2; }
.doc--3 { --r: 9deg; --x: 120px; }
.scene.is-active .doc { animation: dealIn 0.7s var(--ease) forwards; }
.scene.is-active .doc--2 { animation-delay: 0.3s; } .scene.is-active .doc--3 { animation-delay: 0.6s; }
@keyframes dealIn { from { opacity: 0; transform: translate(0, 60px) rotate(0); } to { opacity: 1; transform: translate(var(--x), 0) rotate(var(--r)); } }
.stamp { position: absolute; z-index: 3; top: 52%; left: 50%; padding: 12px 20px; border: 4px solid #1f9d55; border-radius: 12px; color: #1f9d55; font: 800 0.85rem/1.1 var(--font-body); letter-spacing: 0.18em; text-align: center; background: rgba(255, 255, 255, 0.85); opacity: 0; transform: translate(-50%, -50%) rotate(-14deg) scale(2.4); }
.stamp b { font-size: 1.3rem; letter-spacing: 0.12em; }
.scene.is-active .stamp { animation: stamp 0.45s 1.8s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
@keyframes stamp { 70% { opacity: 1; transform: translate(-50%, -50%) rotate(-14deg) scale(0.92); } to { opacity: 1; transform: translate(-50%, -50%) rotate(-14deg) scale(1); } }
.scene.is-active .doc--2 { animation: dealIn 0.7s 0.3s var(--ease) forwards, thud 0.3s 2.1s ease-out; }
@keyframes thud { 50% { transform: translate(var(--x), 4px) rotate(var(--r)) scale(0.98); } }

/* Scene 3: certificate + bank card */
.scene--cert { display: grid; place-items: center; }
.cert { position: relative; width: min(360px, 80%); padding: 26px 26px 30px; border-radius: 14px; background: #fffdf6; border: 2px solid var(--gold); box-shadow: var(--shadow-lg), inset 0 0 0 6px #fff, inset 0 0 0 7px rgba(253, 181, 21, 0.4); text-align: center; display: grid; gap: 6px; opacity: 0; }
.cert small { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cert strong { font: 600 1.35rem var(--font-display); color: var(--navy-800); }
.cert span { font-weight: 700; color: var(--ink); }
.cert em { font-style: normal; font-size: 0.85rem; color: var(--muted); }
.cert__seal { position: absolute; right: 16px; bottom: -18px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy-900); box-shadow: var(--shadow); transform: scale(0); }
.cert__seal .icon { stroke-width: 3; }
.scene.is-active .cert { animation: certIn 0.8s var(--ease) forwards; }
.scene.is-active .cert__seal { animation: popScale 0.5s 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@keyframes certIn { from { opacity: 0; transform: translateY(30px) rotateX(30deg); } to { opacity: 1; transform: none; } }
@keyframes popScale { to { transform: scale(1); } }
.bank-card { position: absolute; left: 6%; bottom: 8%; width: 200px; padding: 16px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--navy-700), var(--navy-950)); box-shadow: var(--shadow-lg); display: grid; gap: 6px; opacity: 0; transform: translateX(-40px) rotate(-6deg); }
.bank-card span { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.bank-card b { font-size: 1.1rem; letter-spacing: 0.08em; }
.bank-card small { font-size: 0.65rem; color: #aab0e0; letter-spacing: 0.06em; }
.scene.is-active .bank-card { animation: slideCard 0.7s 1.5s var(--ease) forwards; }
@keyframes slideCard { to { opacity: 1; transform: rotate(-6deg); } }
.badge-pop { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-size: 0.82rem; font-weight: 700; color: var(--ink); opacity: 0; }
.badge-pop .icon { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: #1f9d55; color: #fff; stroke-width: 3; }
.badge-pop--1 { top: 9%; right: 6%; } .badge-pop--2 { bottom: 12%; right: 8%; }
.scene.is-active .badge-pop--1 { animation: pop 0.5s 2.2s var(--ease) forwards; }
.scene.is-active .badge-pop--2 { animation: pop 0.5s 2.7s var(--ease) forwards; }

/* Scene 4: dashboard */
.scene--dash { display: grid; grid-template-rows: auto 1fr auto; gap: 16px; }
.dash__head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--ink); }
.dash__head b { color: #1f9d55; font-size: 0.9rem; padding: 4px 12px; border-radius: 999px; background: #e6f6ed; }
.dash__chart { position: relative; display: flex; align-items: flex-end; gap: 4%; padding: 16px 16px 0; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); min-height: 170px; }
.dash__chart span { flex: 1; height: var(--h); border-radius: 8px 8px 0 0; background: linear-gradient(180deg, var(--navy-600), var(--navy-800)); transform-origin: bottom; transform: scaleY(0); }
.dash__chart span:last-of-type { background: linear-gradient(180deg, #ffd25e, var(--gold-600)); }
.scene.is-active .dash__chart span { animation: grow 0.8s calc(0.2s + var(--i) * 0.12s) var(--ease) forwards; }
@keyframes grow { to { transform: scaleY(1); } }
.dash__chart svg { position: absolute; inset: 10px 0 0; width: 100%; height: calc(100% - 10px); color: var(--gold); stroke-dasharray: 400; stroke-dashoffset: 400; overflow: visible; filter: drop-shadow(0 4px 6px rgba(253, 181, 21, 0.4)); }
.scene.is-active .dash__chart svg { animation: dash 1.4s 1.1s var(--ease) forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.dash__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dash__list li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); font-size: 0.82rem; font-weight: 700; color: var(--ink); opacity: 0; }
.dash__list .icon { width: 16px; height: 16px; color: #1f9d55; stroke-width: 3; }
.scene.is-active .dash__list li { animation: pop 0.45s calc(2.2s + var(--i) * 0.35s) var(--ease) forwards; }

@media (max-width: 1080px) {
  .story { grid-template-columns: 1fr; }
  .story__screen { order: -1; }
}
@media (max-width: 760px) {
  .story__stage { height: 360px; }
  .scene { padding: 18px; }
  .scene--chat { grid-template-columns: 1fr; gap: 14px; align-content: center; }
  .mini-form { padding: 12px; gap: 6px; }
  .mini-form__row:nth-child(n + 2) { display: none; }
  .doc { width: 150px; height: 200px; padding: 16px 14px; }
  .doc--1 { --x: -70px; } .doc--3 { --x: 70px; }
  .bank-card { width: 160px; left: 4%; bottom: 6%; }
  .badge-pop--2 { display: none; }
  .story__step { padding: 14px 14px 18px; grid-template-columns: 40px 1fr; gap: 12px; }
  .story__num { width: 40px; height: 40px; }
}

/* =========================================================
   v3: bilingual, modern hero, two-company structure
   ========================================================= */

/* ---------- Sinhala typography ---------- */
html[data-lang='si'] {
  --font-display: 'Noto Serif Sinhala', 'Fraunces', Georgia, serif;
  --font-body: 'Noto Sans Sinhala', 'Plus Jakarta Sans', system-ui, sans-serif;
}
html[data-lang='si'] body { line-height: 1.8; }
html[data-lang='si'] h1, html[data-lang='si'] h2 { letter-spacing: 0; line-height: 1.35; font-weight: 700; }
html[data-lang='si'] h1 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); }
html[data-lang='si'] h2 { font-size: clamp(1.5rem, 2.7vw, 2.2rem); }
html[data-lang='si'] .eyebrow { letter-spacing: 0.04em; font-size: 0.82rem; }
html[data-lang='si'] .nav__link { font-size: 0.88rem; padding: 10px 10px; }
html[data-lang='si'] h1 em, html[data-lang='si'] h2 em { font-style: normal; }

/* ---------- Justified paragraphs (site-wide) ---------- */
main p, .prose li, .footer__brand p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
main .center p, main .section-head.center p, main .cta-band p, main .stat p, main .lead-form__note, main .lead-form__status,
main .page-hero--center p, main .pkg__price, main .logos__title, main .pkg-note, main .t-card blockquote, main .bento p,
main .tools-teaser__demo, main .md-quote blockquote, main .mission-card__quote, main .md-profile__role {
  text-align: inherit;
}
.section-head.center p, .page-hero--center .lead, .stat__label, .pkg-note, .logos__title { text-align: center; }

/* ---------- Brand logo swap ---------- */
.brand { display: inline-grid; }
.brand img { grid-area: 1 / 1; height: 30px; width: auto; transition: opacity 0.3s; }
.brand__light { opacity: 0; }
body.home .site-header:not(.is-scrolled) .brand__dark { opacity: 0; }
body.home .site-header:not(.is-scrolled) .brand__light { opacity: 1; }

/* ---------- Language switch ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; font-size: 0.88rem; text-decoration: none; white-space: nowrap; transition: 0.2s; }
.lang-switch .icon { width: 16px; height: 16px; color: var(--gold-600); }
.lang-switch:hover { border-color: var(--navy-700); color: var(--navy-700); }
.lang-switch span[lang], .lang-switch[lang='si'] span { font-family: 'Noto Sans Sinhala', var(--font-body); }
.header-tools { display: none; align-items: center; gap: 10px; }
body.home .site-header:not(.is-scrolled) .lang-switch { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.nav { gap: 18px; }
.nav__cta { gap: 10px; }

/* ---------- Mega menu with Amark panel ---------- */
.mega { width: min(900px, 94vw); }
.mega__cols { display: grid; grid-template-columns: 1fr 250px; gap: 10px; }
.mega__amark { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 16px; text-decoration: none; color: #c9cdf0; background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); }
.mega__amark img { height: 40px; width: auto; align-self: flex-start; background: #fff; border-radius: 10px; padding: 6px 10px; }
.mega__amark > span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 700; margin-top: 6px; }
.mega__amark strong { color: #fff; font-size: 1.02rem; }
.mega__amark ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.88rem; }
.mega__amark li { display: flex; gap: 8px; align-items: center; }
.mega__amark li .icon { width: 16px; height: 16px; color: var(--gold); }
.mega__amark em { font-style: normal; margin-top: auto; color: var(--gold); }
.mega__amark:hover { color: #fff; }

/* ---------- Modern hero ---------- */
.hero {
  background: radial-gradient(1200px 700px at 80% -10%, #1c2a9e 0%, transparent 55%), radial-gradient(800px 500px at -10% 110%, #2a1d7a 0%, transparent 60%), var(--navy-950);
  padding-bottom: 0;
}
.hero__bg { background-image: none; opacity: 1; }
.hero__canvas { opacity: 0.55; }
.hero__gridlines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 60% 40%, black 20%, transparent 75%); }
.aurora { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; mix-blend-mode: screen; animation: aurora 18s ease-in-out infinite alternate; }
.aurora--1 { width: 520px; height: 520px; background: #2f47ff; top: -160px; right: 4%; }
.aurora--2 { width: 420px; height: 420px; background: var(--gold); opacity: 0.22; bottom: -120px; right: 28%; animation-delay: -6s; }
.aurora--3 { width: 380px; height: 380px; background: #6a3cff; top: 30%; left: -140px; opacity: 0.35; animation-delay: -12s; }
@keyframes aurora { 50% { transform: translate(60px, 40px) scale(1.12); } 100% { transform: translate(-40px, 20px) scale(0.95); } }
.hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.04; letter-spacing: -0.03em; }
html[data-lang='si'] .hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.3; }
.hero h1 em { display: inline; }
.hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 560px; }
.hero__badge { display: inline-flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); color: #e3e6ff; font-size: 0.88rem; font-weight: 600; text-decoration: none; margin-bottom: 26px; backdrop-filter: blur(10px); }
.hero__badge:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.avatars { display: flex; }
.avatars img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--navy-900); object-fit: cover; margin-left: -8px; }
.avatars img:first-child { margin-left: 0; }
.hero__quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 30px; }
.hero__quick > span { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8e95cf; margin-right: 4px; }
.quick-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; font-size: 0.86rem; font-weight: 600; text-decoration: none; transition: 0.25s var(--ease); }
.quick-chip .icon { width: 14px; height: 14px; color: var(--gold); transition: transform 0.25s var(--ease); }
.quick-chip:hover { color: var(--navy-900); background: var(--gold); border-color: var(--gold); }
.quick-chip:hover .icon { color: var(--navy-900); transform: translateX(3px); }

/* Bento of glass cards */
.hero-bento { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto auto; gap: 14px; perspective: 1200px; animation: heroIn 1.1s 0.3s var(--ease) both; }
.bento { position: relative; border-radius: 22px; padding: 18px; color: #fff; background: linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.5s var(--ease); }
.bento strong { display: block; font-size: 0.98rem; }
.bento small { display: block; font-size: 0.78rem; color: #aab0e0; }
.bento--reg { grid-row: span 3; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(240, 242, 255, 0.92)); color: var(--ink); }
.bento--reg small { color: var(--muted); }
.bento__head { display: flex; gap: 12px; align-items: center; }
.bento__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-700); color: var(--gold); flex: none; }
.bento__icon .icon { width: 20px; height: 20px; }
.ring { position: relative; width: 150px; height: 150px; margin: 6px auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring__track { stroke: var(--navy-100); }
.ring__fill { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; animation: ring 2.2s 0.8s var(--ease) forwards; }
@keyframes ring { to { stroke-dashoffset: 0; } }
.ring__label { position: absolute; inset: 0; display: grid; place-items: center; font: 700 1.1rem var(--font-body); color: var(--ink); }
.ring__label b { font: 600 2.4rem var(--font-display); }
.ring__label { grid-auto-flow: column; align-content: center; justify-content: center; }
.bento__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.88rem; font-weight: 600; }
.bento__steps li { display: flex; gap: 8px; align-items: center; opacity: 0; animation: rowIn 0.5s var(--ease) forwards; animation-delay: calc(1.2s + var(--i) * 0.35s); }
.bento__steps .icon { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--navy-700); color: #fff; stroke-width: 3; }
.pill { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; }
.pill .icon { width: 14px; height: 14px; stroke-width: 3; }
.pill--ok { background: #e3f6ec; color: #13774b; margin-top: auto; }
.pill--gold { background: var(--gold); color: var(--navy-900); }
.bento--sec { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; }
.bento--sec .pill { grid-column: 2; }
.cal { grid-row: span 2; width: 52px; border-radius: 12px; overflow: hidden; text-align: center; background: #fff; color: var(--ink); }
.cal small { display: block; background: #e5484d; color: #fff; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.1em; padding: 2px 0; }
.cal b { display: block; font: 700 1.35rem/1.6 var(--font-body); }
.bento--growth .bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-top: 12px; }
.bento--growth .bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #8ea0ff, #3d52e0); transform-origin: bottom; transform: scaleY(0); animation: grow 0.9s calc(1s + var(--i) * 0.12s) var(--ease) forwards; }
.bento--growth .bars i:last-child { background: linear-gradient(180deg, #ffe08a, var(--gold)); }
.bento--ca { display: flex; align-items: center; gap: 12px; }
.bento--ca small { color: #aab0e0; }
.bento--ca strong { color: var(--gold); }
.hero__ticker { position: relative; border-top: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.18); overflow: hidden; padding: 16px 0; mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.hero__ticker ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 46px; width: max-content; animation: marquee 50s linear infinite; }
.hero__ticker li { display: flex; align-items: center; gap: 10px; color: #c9cdf0; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.hero__ticker .icon { width: 18px; height: 18px; color: var(--gold); }

/* ---------- Monogram / photo ---------- */
.md-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.md-photo--mono { display: grid; place-items: center; background: linear-gradient(135deg, var(--gold), #ffd76a); color: var(--navy-900); font: 700 1.2rem var(--font-display); letter-spacing: 0.02em; }
.md-photo--sm { width: 46px; height: 46px; font-size: 1rem; }
.md-photo--lg { width: 168px; height: 168px; font-size: 3.4rem; box-shadow: 0 0 0 8px #fff, 0 0 0 9px var(--line), var(--shadow); }

/* ---------- Page hero glow + firm chip ---------- */
.page-hero__glow { position: absolute; width: 600px; height: 600px; right: -150px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(253, 181, 21, 0.18), transparent 65%); pointer-events: none; }
.firm-chip { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 10px; margin-bottom: 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); color: #e3e6ff; font-size: 0.82rem; font-weight: 600; }
.firm-chip img { height: 34px; width: auto; }
.firm-note { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; margin-top: 24px; border-radius: var(--radius); background: var(--navy-100); }
.firm-note img { width: 52px; height: auto; flex: none; }
.firm-note p { margin: 0; font-size: 0.98rem !important; font-family: var(--font-body) !important; color: var(--body) !important; line-height: 1.6 !important; }
.page-hero--amark { background: radial-gradient(900px 400px at 85% -20%, #35406e 0%, transparent 60%), linear-gradient(160deg, #111a52, #070b2c); }
.amark-hero-logo { height: 72px; width: auto; margin-bottom: 24px; }
.amark-mark-art { position: relative; display: grid; place-items: center; min-height: 320px; }
.amark-mark-art img { position: relative; z-index: 1; width: min(280px, 70%); height: auto; padding: 34px; border-radius: 36px; background: #fff; box-shadow: var(--shadow-lg); animation: float 7s ease-in-out infinite; }
.orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(253, 181, 21, 0.4); animation: spin 40s linear infinite; }
.orbit--1 { width: 380px; height: 380px; }
.orbit--2 { width: 470px; height: 470px; border-color: rgba(255, 255, 255, 0.15); animation-direction: reverse; animation-duration: 60s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Service detail additions ---------- */
.offer { display: flex; flex-direction: column; }
.offer__points { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 8px; }
.offer__points li { display: flex; gap: 8px; font-size: 0.9rem; color: var(--ink); align-items: flex-start; }
.offer__points .icon { width: 16px; height: 16px; color: var(--gold-600); stroke-width: 3; margin-top: 3px; }
.offer--link { text-decoration: none; color: var(--body); transition: 0.3s var(--ease); }
.offer--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--body); }
.offer--link .link-arrow { margin-top: auto; padding-top: 14px; font-size: 0.9rem; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo__card { padding: clamp(26px, 4vw, 38px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.duo__card--docs { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: #c9cdf0; border: 0; }
.duo__card--docs h2 { color: #fff; }
.duo__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-600); margin-bottom: 16px; }
.duo__card--docs .duo__icon { background: rgba(253, 181, 21, 0.15); color: var(--gold); }
.doc-list { counter-reset: d; list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.doc-list li { counter-increment: d; display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.doc-list li::before { content: counter(d, decimal-leading-zero); flex: none; font: 700 0.8rem var(--font-body); color: var(--navy-900); background: var(--gold); border-radius: 8px; padding: 3px 7px; margin-top: 2px; }
.duo__note { font-size: 0.88rem; margin: 0; color: #aab0e0; }
.svc-card__firm { display: inline-block; margin-top: 14px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.svc-card--amark .svc-card__icon { background: #e9eaf0; color: #2b2f45; }
.svc-card--amark h3 { margin-top: 8px; }
.hub-amark-logo { height: 56px; width: auto; }

/* ---------- Sister band ---------- */
.sister__inner { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 28px; background: linear-gradient(120deg, #fff 0%, #f3f4fb 100%); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.sister__inner::after { content: ''; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(13, 29, 121, 0.05); }
.sister__logo { display: grid; place-items: center; padding: 28px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.sister__logo img { width: 100%; max-width: 280px; height: auto; }
.sister__copy h2 { margin-bottom: 14px; }
.sister__copy h2 em { color: var(--navy-600); }
.ticks--row { grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px 22px; margin: 18px 0 6px; }
.sister .btn-row { margin-top: 18px; }

/* ---------- MD quote band ---------- */
.md-quote { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy-900), var(--navy-950)); color: #c9cdf0; padding: clamp(56px, 8vw, 96px) 0; }
.md-quote::before { content: '“'; position: absolute; left: 4%; top: -60px; font: 400 26rem/1 var(--font-display); color: rgba(253, 181, 21, 0.08); pointer-events: none; }
.md-quote__inner { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.md-quote__portrait { position: relative; }
.md-quote__portrait .md-photo { width: 190px; height: 190px; font-size: 3.6rem; box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.06); }
.md-quote__badge { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--navy-800); font-size: 0.78rem; font-weight: 800; box-shadow: var(--shadow); }
.md-quote__badge .icon { width: 15px; height: 15px; color: var(--gold-600); }
.md-quote__body { margin: 0; }
.md-quote blockquote { margin: 0 0 24px; font: 400 clamp(1.35rem, 2.6vw, 2.05rem)/1.45 var(--font-display); color: #fff; text-align: left; }
html[data-lang='si'] .md-quote blockquote { font-size: clamp(1.15rem, 2.1vw, 1.6rem); line-height: 1.7; }
.md-quote figcaption strong { display: block; color: var(--gold); font-size: 1.1rem; }
.md-quote figcaption span { font-size: 0.92rem; }

/* ---------- About: MD profile + group ---------- */
.md-profile { display: grid; grid-template-columns: 320px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.md-profile__card { position: sticky; top: calc(var(--header-h) + 24px); padding: 36px 28px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); text-align: center; display: grid; justify-items: center; gap: 6px; }
.md-profile__card h2 { margin: 18px 0 0; font-family: var(--font-display); font-size: 1.6rem; }
.md-profile__role { color: var(--navy-600); font-weight: 700; margin: 0; }
.md-profile__tags { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.md-profile__tags li { padding: 5px 12px; border-radius: 999px; background: var(--gold-100); color: #7a5300; font-size: 0.78rem; font-weight: 700; }
.big-quote { position: relative; margin: 0 0 28px; padding: 28px 30px 26px 30px; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: #fff; }
.big-quote .icon { width: 40px; height: 40px; color: var(--gold); margin-bottom: 12px; fill: currentColor; stroke: none; }
.big-quote p { font: 400 clamp(1.2rem, 2vw, 1.5rem)/1.55 var(--font-display) !important; color: #fff !important; text-align: left !important; margin: 0 0 16px; }
.big-quote cite { font-style: normal; color: var(--gold); font-weight: 700; font-size: 0.95rem; }
.group__cards { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.group__card { display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--body); box-shadow: var(--shadow-sm); transition: 0.3s var(--ease); }
a.group__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--body); }
.group__card img { height: 52px; width: auto; align-self: flex-start; object-fit: contain; }
.group__card small { font-weight: 700; color: var(--muted); font-size: 0.82rem; letter-spacing: 0.04em; }
.group__card p { margin: 0; flex: 1; }
.group__plus { align-self: center; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy-900); font: 700 1.8rem var(--font-body); box-shadow: var(--shadow); }
.pillars { display: grid; gap: 14px; }
.pillar { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.pillar .why__icon { margin: 0; flex: none; }
.pillar h3 { margin: 0 0 4px; }
.pillar p { margin: 0; font-size: 0.94rem; }

/* ---------- Contact: social first ---------- */
.social-first { padding-bottom: clamp(40px, 5vw, 64px); }
.soc-grid { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto; }
.soc-grid--1 { --n: 1; } .soc-grid--2 { --n: 2; } .soc-grid--3 { --n: 3; } .soc-grid--4 { --n: 4; }
.soc-card { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 10px 18px; align-items: center; padding: 28px; border-radius: 24px; color: #fff; text-decoration: none; box-shadow: var(--shadow); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.soc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: #fff; }
.soc-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.soc-card--whatsapp { background: linear-gradient(135deg, #25d366, #128c4a); }
.soc-card--facebook { background: linear-gradient(135deg, #1877f2, #0b4fb3); }
.soc-card--instagram { background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); }
.soc-card--linkedin { background: linear-gradient(135deg, #0a66c2, #064a8c); }
.soc-card__icon { grid-row: span 2; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); }
.soc-card__icon svg { width: 32px; height: 32px; }
.soc-card__txt strong { display: block; font-size: 1.3rem; }
.soc-card__txt small { display: block; opacity: 0.9; font-size: 0.92rem; }
.soc-card__cta { grid-column: 2; justify-self: start; display: inline-flex; gap: 8px; align-items: center; padding: 8px 16px; border-radius: 999px; background: #fff; color: #111; font-weight: 800; font-size: 0.86rem; }
.soc-card__cta .icon { width: 16px; height: 16px; }
.fb-embed { margin-top: 10px; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.fb-embed iframe { display: block; width: 100%; max-width: 500px; height: 560px; border: 0; border-radius: 12px; margin: 0 auto; }
.consult__social { display: flex; gap: 10px; margin-top: 24px; }

/* ---------- Calculators ---------- */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin-bottom: 32px; }
.calc { display: grid; gap: 16px; padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.calc h2 { margin: 0; }
.calc > p { margin: 0; }
.calc__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-700); color: var(--gold); }
.field__hint { font-size: 0.8rem; color: var(--muted); }
.seg { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--tint); border-radius: 14px; padding: 5px; }
.seg legend { font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; padding: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 10px; border-radius: 10px; font-weight: 700; cursor: pointer; color: var(--muted); transition: 0.2s; }
.seg input:checked + span { background: #fff; color: var(--navy-700); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { outline: 3px solid var(--gold); }
.calc__out { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.calc__row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.calc__row:last-child { border-bottom: 0; }
.calc__row b { color: var(--ink); }
.calc__row--accent { background: var(--gold-100); }
.calc__row--total { background: var(--navy-800); color: #c9cdf0; }
.calc__row--total b { color: var(--gold); font-size: 1.15rem; }
.calc__note { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ---------- News ---------- */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; margin-right: 8px; box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.6); animation: pulseRed 1.8s infinite; }
.eyebrow:has(.live-dot)::before { display: none; }
@keyframes pulseRed { 70% { box-shadow: 0 0 0 9px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }
.news__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 600 0.88rem var(--font-body); cursor: pointer; transition: 0.2s; }
.chip-btn .icon { width: 15px; height: 15px; color: var(--success); }
.chip-btn.is-active, .chip-btn:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.chip-btn.is-active .icon, .chip-btn:hover .icon { color: var(--gold); }
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--body); transition: 0.3s var(--ease); min-height: 190px; }
a.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--body); }
.news-card__src { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.news-card__badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: #e3f6ec; color: #13774b; letter-spacing: 0.04em; }
.news-card__badge .icon { width: 12px; height: 12px; }
.news-card h3 { font-size: 1.02rem; line-height: 1.4; margin: 0; color: var(--ink); text-align: left; }
.news-card p { font-size: 0.88rem; margin: 0; color: var(--muted); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__foot { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--muted); }
.news-card__foot .icon { width: 15px; height: 15px; color: var(--navy-600); }
.news-card--skeleton i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--tint), #e7e9f3, var(--tint)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.news-card--skeleton i:nth-child(1) { width: 40%; }
.news-card--skeleton i:nth-child(2) { width: 95%; height: 16px; }
.news-card--skeleton i:nth-child(3) { width: 70%; height: 16px; }
.news__status { margin: 16px 0 0; font-size: 0.85rem; color: var(--muted); text-align: right !important; }

/* ---------- Gov links ---------- */
.gov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gov-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--body); transition: 0.25s var(--ease); position: relative; }
.gov-card:hover { border-color: var(--navy-700); transform: translateY(-3px); box-shadow: var(--shadow-sm); color: var(--body); }
.gov-card__icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--navy-100); color: var(--navy-700); }
.gov-card__txt strong { display: block; color: var(--ink); font-size: 0.95rem; line-height: 1.35; padding-right: 18px; }
.gov-card__txt small { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.gov-card__txt em { display: block; font-style: normal; font-size: 0.76rem; color: var(--navy-600); margin-top: 6px; }
.gov-card__ext { position: absolute; top: 16px; right: 14px; width: 15px; height: 15px; color: var(--muted); }

/* ---------- Home duo: tools + guides ---------- */
.home-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tools-teaser { position: relative; display: flex; flex-direction: column; padding: clamp(26px, 4vw, 40px); border-radius: var(--radius-lg); text-decoration: none; color: #c9cdf0; background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); overflow: hidden; }
.tools-teaser:hover { color: #c9cdf0; }
.tools-teaser h2 { color: #fff; font-family: var(--font-display); font-size: 1.6rem; }
.tools-teaser .link-arrow { color: var(--gold); margin-top: auto; }
.tools-teaser__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(253, 181, 21, 0.15); color: var(--gold); margin-bottom: 18px; }
.tools-teaser__demo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 22px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px dashed rgba(255, 255, 255, 0.2); }
.tools-teaser__demo b { color: #fff; font-size: 1.1rem; }
.tools-teaser__demo i { font-style: normal; font-size: 0.85rem; }
.tools-teaser__demo .gold { color: var(--gold); margin-left: auto; }
.guides-mini { padding: clamp(26px, 4vw, 40px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.guides-mini h2 { font-family: var(--font-display); font-size: 1.6rem; }
.guides-mini ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.guides-mini a { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.guides-mini li:last-child a { border-bottom: 0; }
.guides-mini a:hover strong { color: var(--navy-600); }
.guides-mini .post-card__tag { justify-self: start; }
.guides-mini small { color: var(--muted); font-size: 0.82rem; }

/* ---------- Footer additions ---------- */
.footer__legal { color: #fff; font-weight: 700; margin: -6px 0 10px; font-size: 0.9rem; text-align: left !important; }
.footer__sister { display: grid; gap: 8px; margin-top: 26px; padding: 18px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.03); text-decoration: none; max-width: 340px; transition: 0.25s; }
.footer__sister:hover { border-color: var(--gold); }
.footer__sister small { color: var(--gold); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.7rem; }
.footer__sister img { height: 44px; width: auto; }
.footer__sister span { font-size: 0.82rem; color: #aab0e0; }
.mt-sm { margin-top: 26px; }
.footer__credit a { color: var(--gold) !important; font-weight: 700; }

/* ---------- Eyebrow on dark sections ---------- */
.mission-card .eyebrow, .md-quote .eyebrow, .tools-teaser .eyebrow, .duo__card--docs .eyebrow { color: #c9cdf0; }

/* ---------- Responsive (v3) ---------- */
@media (max-width: 1280px) {
  .nav__link { padding: 10px 10px; font-size: 0.9rem; }
  .nav { gap: 12px; }
}
@media (max-width: 1080px) {
  .header-tools { display: flex; }
  .nav__cta .lang-switch { display: none; }
  .hero-bento { max-width: 560px; margin: 8px auto 0; width: 100%; }
  .mega__cols { grid-template-columns: 1fr; }
  .mega__amark { display: none; }
  .md-profile, .md-quote__inner, .sister__inner, .home-duo, .calc-grid, .duo { grid-template-columns: 1fr; }
  .md-profile__card { position: static; }
  .md-quote__inner { justify-items: center; text-align: center; }
  .md-quote blockquote { text-align: center; }
  .news__grid { grid-template-columns: repeat(2, 1fr); }
  .soc-grid--3, .soc-grid--4 { --n: 2; }
  .amark-mark-art { min-height: 260px; }
  .orbit--2 { display: none; }
}
@media (max-width: 760px) {
  .brand img { height: 24px; }
  .lang-switch--bar { padding: 7px 10px; }
  .lang-switch--bar span { font-size: 0.8rem; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .hero-bento { grid-template-columns: 1fr 1fr; }
  .bento--reg { grid-column: span 2; grid-row: auto; }
  .ring { width: 120px; height: 120px; }
  .bento--growth, .bento--ca { grid-column: span 2; }
  .hero__quick > span { width: 100%; }
  .news__grid, .soc-grid--2, .soc-grid--3, .soc-grid--4 { grid-template-columns: 1fr; }
  .group__cards { grid-template-columns: 1fr; }
  .group__plus { justify-self: center; }
  .ticks--row { grid-template-columns: 1fr; }
  .soc-card { padding: 22px; }
  .md-quote__portrait .md-photo { width: 140px; height: 140px; font-size: 2.6rem; }
  .orbit--1 { width: 300px; height: 300px; }
  .amark-hero-logo { height: 56px; }
}
.hero h1 em { -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-right: 0.12em; }
.news-card__foot > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.tools-teaser::after { content: ''; position: absolute; right: -70px; bottom: -70px; width: 260px; height: 260px; border-radius: 50%; border: 46px solid rgba(253, 181, 21, 0.07); }
html { overflow-x: hidden; } @supports (overflow: clip) { html, body { overflow-x: clip; } }
.nav__link { white-space: nowrap; }
.footer__contact svg { width: 18px; height: 18px; flex: none; color: var(--gold); margin-top: 4px; }
.contact-card > svg:not(.icon) { width: 44px; height: 44px; padding: 11px; }
.mission-card__quote, .md-quote blockquote, .big-quote p, h1, h2, h3 { hyphens: manual; -webkit-hyphens: manual; }

/* =========================================================
   Compact home (v4)
   ========================================================= */
.section--tight { padding: clamp(52px, 6.5vw, 84px) 0; }
.section--tight .section-head { margin-bottom: clamp(28px, 3.5vw, 40px); }

/* Trust band: stats + logos in one strip */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust__inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: 28px; padding-bottom: 28px; }
.trust__stats { display: grid; grid-template-columns: repeat(4, auto); gap: 0; }
.trust__stat { padding: 4px 22px; border-left: 1px solid var(--line); }
.trust__stat:first-child { border-left: 0; padding-left: 0; }
.trust__stat b { display: block; font: 600 clamp(1.5rem, 2.4vw, 2rem)/1.1 var(--font-display); color: var(--navy-700); }
.trust__stat small { display: block; font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.trust__logos { min-width: 0; }
.trust__logos .logos__title { text-align: left !important; margin-bottom: 12px; font-size: 0.72rem; }
.trust .marquee img { height: 40px; }
.trust .marquee__track { gap: 44px; }

/* Amark strip inside services */
.sister-strip { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; margin-top: 22px; padding: 18px 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(110deg, #fff 30%, #f2f3fa); text-decoration: none; color: var(--body); transition: 0.3s var(--ease); }
.sister-strip:hover { border-color: var(--navy-700); box-shadow: var(--shadow-sm); color: var(--body); }
.sister-strip img { height: 48px; width: auto; }
.sister-strip__copy small { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-600); }
.sister-strip__copy strong { display: block; color: var(--ink); font-size: 1.05rem; margin: 2px 0 6px; }
.sister-strip__points { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.sister-strip__points i { font-style: normal; display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; }
.sister-strip__points .icon { width: 15px; height: 15px; color: var(--gold-600); stroke-width: 3; }

/* Collapsible package features */
.pkg .ticks { flex: none; margin-bottom: 0; }
.pkg__more { margin: 10px 0 22px; flex: 1; }
.pkg__more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.88rem; color: var(--navy-600); padding: 6px 0; }
.pkg__more summary::-webkit-details-marker { display: none; }
.pkg__more summary .icon { width: 16px; height: 16px; transition: transform 0.25s; }
.pkg__more[open] summary .icon { transform: rotate(180deg); }
.pkg__more .ticks { margin-top: 8px; }
.pkg > .btn { margin-top: auto; }

/* Tabs */
.tabs__list { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 auto 28px; padding: 6px; width: fit-content; max-width: 100%; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); }
.tabs__tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 700 0.94rem var(--font-body); cursor: pointer; transition: 0.25s var(--ease); }
.tabs__tab .icon { width: 17px; height: 17px; }
.tabs__tab:hover { color: var(--navy-700); }
.tabs__tab.is-active { background: var(--navy-700); color: #fff; box-shadow: var(--shadow-sm); }
.tabs__tab.is-active .icon { color: var(--gold); }
.tabs__panel { animation: heroIn 0.5s var(--ease) both; }
.tabs__panel[hidden] { display: none; }
.tabs__panel + .tabs__panel { margin-top: 28px; }
.js .tabs__panel + .tabs__panel { margin-top: 0; }
.tabs__more { text-align: center !important; margin: 18px 0 0; }
.why--tab .why__intro h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -0.01em; }
.why--tab .why__item, .aud-grid--tab .aud { padding: 22px; }
.why__item h4, .aud h4 { font-size: 1.05rem; margin: 0 0 6px; color: var(--ink); }
.aud-grid--tab .aud { border: 1px solid var(--line); box-shadow: none; }
.guides-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guides-row .post-card h4 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.3; margin: 12px 0 8px; color: var(--ink); }
.tools-teaser--wide { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.tools-teaser--wide .tools-teaser__icon { margin: 0; }
.tools-teaser--wide h4 { color: #fff; font: 600 1.4rem var(--font-display); margin: 0 0 6px; }
.tools-teaser--wide p { margin: 0 0 10px; }
.tools-teaser--wide .tools-teaser__demo { margin: 0; }

/* Voices: MD quote + testimonials */
.voices .section-head h2 { color: #fff; }
.voices__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: stretch; }
.voices__md { margin: 0; display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3.5vw, 36px); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); position: relative; overflow: hidden; }
.voices__md::before { content: '“'; position: absolute; right: 18px; top: -40px; font: 400 12rem/1 var(--font-display); color: rgba(253, 181, 21, 0.12); }
.voices__who { display: flex; align-items: center; gap: 14px; }
.voices__who .md-photo { width: 64px; height: 64px; font-size: 1.4rem; }
.voices__who strong { display: block; color: var(--gold); font-size: 1.05rem; }
.voices__who small { color: #aab0e0; font-size: 0.85rem; }
.voices__md blockquote { margin: 0; font: 400 clamp(1.15rem, 2vw, 1.45rem)/1.55 var(--font-display); color: #fff; flex: 1; }
html[data-lang='si'] .voices__md blockquote { font-size: clamp(1.02rem, 1.7vw, 1.2rem); line-height: 1.75; }
.voices__md .link-arrow { color: var(--gold); }
.t-slider--single { display: flex; flex-direction: column; }
.t-slider--single .t-track { grid-auto-columns: 100%; flex: 1; }
.t-slider--single .t-card { height: 100%; }
.t-slider--single .t-controls { justify-content: flex-start; }
.voices .icon-btn { background: transparent; border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.voices .icon-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }

/* Consult: FAQ + form side by side */
.consult--faq { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
.faq--compact { margin: 22px 0 20px; gap: 8px; }
.faq--compact .faq__item summary { padding: 15px 18px; font-size: 0.96rem; }
.faq--compact .faq__body { padding: 0 18px 16px; }
.contact-list--row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 4px; }
.contact-list--row li { font-size: 0.92rem; }

@media (max-width: 1080px) {
  .trust__inner { grid-template-columns: 1fr; }
  .trust__stats { grid-template-columns: repeat(4, 1fr); }
  .voices__grid, .consult--faq { grid-template-columns: 1fr; }
  .guides-row { grid-template-columns: 1fr 1fr; }
  .tools-teaser--wide { grid-template-columns: auto 1fr; }
  .tools-teaser--wide .tools-teaser__demo { grid-column: span 2; }
}
@media (max-width: 760px) {
  .trust__stats { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .trust__stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .sister-strip { grid-template-columns: 1fr; gap: 14px; }
  .sister-strip .btn { justify-self: start; }
  .guides-row { grid-template-columns: 1fr; }
  .tabs__list { border-radius: 18px; }
  .tabs__tab { padding: 9px 14px; font-size: 0.88rem; }
  .tools-teaser--wide { grid-template-columns: 1fr; }
  .tools-teaser--wide .tools-teaser__demo { grid-column: auto; }
}
.voices__grid > * { min-width: 0; }
.t-slider--single .t-track { overflow-x: auto; width: 100%; }
.t-slider--single .t-card { justify-content: space-between; }
.t-slider--single .t-card blockquote { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }

/* =========================================================
   Mobile & tablet hardening (v5)
   ========================================================= */
/* Grid/flex children must be allowed to shrink below their content width */
.hero__grid > *, .hero-bento > *, .page-hero__grid > *, .contact-grid > *, .consult > *, .about-split > *,
.prose-intro > *, .why > *, .finder > *, .md-profile > *, .duo > *, .calc-grid > *, .article-layout > *,
.contact-cards > *, .sister__inner > *, .group__cards > *, .home-duo > * { min-width: 0; }
h1, h2, h3, .lead, .hero__badge span, .contact-card strong, .crumbs li { overflow-wrap: break-word; }
.crumbs [aria-current] { max-width: 100%; }
.hero__badge { max-width: 100%; }
.hero__badge > span:last-child { min-width: 0; }

/* Touch-friendly tap targets (44px) on touch devices and small screens */
@media (pointer: coarse), (max-width: 1080px) {
  .lang-switch, .tabs__tab, .quick-chip, .chip-btn, .icon-btn { min-height: 44px; }
  .story__toggle { width: 44px; height: 44px; }
  .faq__item summary, .pkg__more summary { min-height: 48px; }
  .link-arrow { min-height: 44px; }
  .site-footer ul { gap: 2px; }
  .site-footer ul a { display: inline-flex; align-items: center; min-height: 40px; }
  .footer__contact li { min-height: 40px; align-items: center; }
  .nav-toggle { width: 48px; height: 48px; }
  .brand { min-height: 44px; align-items: center; }
  .seg span { padding: 12px; }
  .field input, .field select, .field textarea { font-size: 16px; min-height: 48px; } /* 16px stops iOS zoom-on-focus */
}

/* Tablet (768–1080): two-column layouts where they fit */
@media (min-width: 761px) and (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; text-align: left; }
  .hero-bento { max-width: 640px; grid-template-columns: 1.1fr 1fr; }
  .svc-grid, .aud-grid, .offer-grid, .guides-row, .news__grid { grid-template-columns: repeat(2, 1fr); }
  .pkg-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .pkg { padding: 26px 18px 20px; }
  .pkg__price .num { font-size: 1.8rem; }
  .story { grid-template-columns: 1fr; }
  .voices__grid { grid-template-columns: 1fr 1fr; }
  .consult--faq { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
  .duo, .calc-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .page-hero__grid.has-aside { grid-template-columns: 1fr; }
  .hero-form { max-width: 560px; }
  .trust__inner { grid-template-columns: 1fr; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .pkg-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .pkg--featured { transform: none; }
  .voices__grid, .contact-grid { grid-template-columns: 1fr; }
}

/* Phones */
@media (max-width: 760px) {
  .btn { white-space: normal; text-align: center; line-height: 1.3; }
  .btn--lg { padding: 15px 22px; }
  .hero { padding-top: calc(var(--header-h) + 28px); }
  .hero h1 { margin-bottom: 0.4em; }
  .hero__badge { font-size: 0.8rem; padding-right: 12px; }
  .hero-bento { gap: 10px; }
  .bento { padding: 14px; border-radius: 18px; }
  .bento--sec { grid-column: span 2; }
  .ring { width: 104px; height: 104px; }
  .ring__label b { font-size: 1.9rem; }
  .bento__steps { grid-template-columns: 1fr; }
  .hero__ticker li { font-size: 0.85rem; }
  .trust__stat b { font-size: 1.5rem; }
  .section-head.split { gap: 12px; }
  .story__stage { height: 340px; }
  .tabs__list { width: 100%; justify-content: stretch; }
  .tabs__tab { flex: 1 1 auto; justify-content: center; }
  .page-hero { padding: 36px 0 44px; }
  .cta-band .btn-row .btn { width: 100%; }
  .contact-card { padding: 14px 16px; }
  .soc-card { grid-template-columns: auto 1fr; }
  .fb-embed iframe { height: 460px; }
  .calc { padding: 22px 18px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .wa-float { bottom: max(14px, env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  :root { --gutter: 14px; }
  .hero h1 { font-size: 2rem; }
  html[data-lang='si'] .hero h1 { font-size: 1.65rem; }
  html[data-lang='si'] h1 { font-size: 1.6rem; }
  html[data-lang='si'] h2 { font-size: 1.35rem; }
  .lang-switch--bar span { display: none; }
  .avatars img:nth-child(n + 3) { display: none; }
}

/* Landscape phones / short screens: keep the hero compact */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-top: calc(var(--header-h) + 20px); }
  .hero-bento { display: none; }
}
.bento--ca > span, .bento--sec > span, .bento__head > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 1080px) { .trust__stat { min-width: 0; } .trust__stat small { white-space: normal; } }
/* Phones/tablets: single-column hero (must come after the desktop .hero__grid rule) */
@media (max-width: 1080px) { .hero__grid { grid-template-columns: 1fr; } .hero-bento { width: 100%; margin-inline: auto; } }

/* =========================================================
   Mobile menu fix (v6)
   backdrop-filter on the header makes it the containing block for the
   fixed-position menu, squeezing the menu into the header. On ≤1080px the
   header is solid (no blur) so the menu is positioned against the viewport.
   ========================================================= */
@media (max-width: 1080px) {
  .site-header, .site-header.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  body.home .site-header:not(.is-scrolled) { background: transparent; }
  .nav { top: var(--header-h); right: 0; bottom: 0; left: 0; height: calc(100dvh - var(--header-h)); z-index: 99; overscroll-behavior: contain; }
  body.nav-open .site-header { background: #fff !important; border-color: var(--line); box-shadow: 0 6px 24px -12px rgba(10, 22, 98, 0.18); }
  body.nav-open .brand__dark { opacity: 1 !important; }
  body.nav-open .brand__light { opacity: 0 !important; }
  body.nav-open .lang-switch { color: var(--ink) !important; border-color: var(--line) !important; }
  body.nav-open .wa-float { display: none; }
}
/* Scroll lock (overflow hidden on body) breaks position: sticky, so pin the header while the menu is open. */
@media (max-width: 1080px) {
  body.nav-open .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
}
