/*
Theme Name: BoonFie Pubblicità
Theme URI: https://boonfiepubblicita.com
Author: BoonFie Pubblicità
Description: Tema su misura per BoonFie Pubblicità: gestione social, siti web, e-commerce, maxischermi, cartelloni, grafiche e serigrafia.
Version: 3.3.4
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: boonfie
*/

/* =================================================================
 * 1. Tokens — brand colors from the BoonFie brochure
 * ================================================================= */
:root {
  --c-primary: #274694;
  --c-primary-dark: #1c3577;
  --c-accent: #8098c6;
  --c-accent-2: #a9bde6;
  --c-tint: #eef2fa;
  --c-ink: #0f1d45;
  --c-ink-2: #13234b;
  --c-text: #3f4766;
  --c-muted: #6c7391;
  --c-line: #e4e8f2;
  --c-soft: #f3f6fb;
  --c-bg: #ffffff;
  --c-wa: #25d366;

  --grad-brand: linear-gradient(135deg, #274694 0%, #3b5fb8 55%, #8098c6 100%);
  --grad-text: linear-gradient(90deg, #a9bde6 0%, #ffffff 45%, #8098c6 100%);
  --grad-night: radial-gradient(120% 90% at 85% 0%, #2c4c9c 0%, rgba(44,76,156,0) 55%), linear-gradient(160deg, #0f1d45 0%, #13234b 55%, #1a2f6b 100%);

  --radius: 10px;
  --radius-lg: 16px;
  --r-btn: 8px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(15,29,69,.06), 0 4px 14px rgba(15,29,69,.06);
  --shadow: 0 2px 4px rgba(15,29,69,.04), 0 18px 40px rgba(15,29,69,.10);
  --shadow-lg: 0 30px 80px rgba(15,29,69,.25);
  --wrap: 1200px;
  --gutter: 20px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  --header-h: 76px;
}

/* =================================================================
 * 2. Base
 * ================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16.5px; line-height: 1.75; color: var(--c-text);
  background: var(--c-bg); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
html { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4 { color: var(--c-ink); line-height: 1.1; margin: 0 0 .55em; font-weight: 700; letter-spacing: -.03em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -.015em; line-height: 1.25; }
p { margin: 0 0 1.1em; }
strong { color: var(--c-ink); font-weight: 600; }
::selection { background: var(--c-primary); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 120px 0; position: relative; }
.section--soft { background: var(--c-soft); }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--c-muted); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; z-index: 999; top: 10px; left: 10px; background: #fff; padding: 10px 16px; border-radius: var(--r-sm); }

.panel { margin: 0 14px; border-radius: var(--radius-lg); overflow: hidden; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px 7px 12px; border-radius: var(--r-btn);
  background: var(--c-tint); color: var(--c-primary); font-size: .72rem; letter-spacing: .14em; font-weight: 700;
  text-transform: uppercase; margin-bottom: 20px; line-height: 1.3;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 1px; background: currentColor;
  box-shadow: 0 0 0 4px rgba(39,70,148,.15); animation: pulse-dot 2.4s ease-in-out infinite;
}
.is-dark .eyebrow { background: rgba(255,255,255,.08); color: var(--c-accent-2); border: 1px solid rgba(255,255,255,.1); }
.is-dark .eyebrow::before { box-shadow: 0 0 0 4px rgba(169,189,230,.15); }
@keyframes pulse-dot { 0%,100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.7) rotate(45deg); opacity: .6; } }

.is-dark { color: #c4cde6; }
.is-dark h1, .is-dark h2, .is-dark h3, .is-dark strong { color: #fff; }
.is-dark .lead { color: #aab4d4; }

.text-grad {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: shine 6s linear infinite; font-style: normal;
}
@keyframes shine { to { background-position: 200% center; } }

/* =================================================================
 * 3. Buttons
 * ================================================================= */
.btn {
  --b: var(--c-primary); --t: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--r-btn); font-weight: 600; font-size: .95rem; line-height: 1.2; font-family: inherit;
  border: 1.5px solid var(--b); background: var(--b); color: var(--t); cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s, color .25s, border-color .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.28) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { color: var(--t); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(39,70,148,.32); }
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .arrow {
  display: inline-grid; place-items: center; width: 26px; height: 26px; margin: -4px -12px -4px 2px; border-radius: 4px;
  background: rgba(255,255,255,.18); transition: transform .3s var(--ease);
}
.btn .arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .arrow { transform: translateX(3px) rotate(-45deg); }
.btn--white { --b: #fff; --t: var(--c-ink); }
.btn--white .arrow { background: var(--c-tint); color: var(--c-primary); }
.btn--white:hover { box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.btn--ghost { background: transparent; color: var(--c-primary); }
.btn--ghost:hover { background: var(--c-primary); color: #fff; }
.btn--glass { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.28); color: #fff; backdrop-filter: blur(8px); }
.btn--glass:hover { background: #fff; color: var(--c-ink); }
.btn--wa { --b: var(--c-wa); }
.btn--wa:hover { box-shadow: 0 12px 28px rgba(37,211,102,.35); }

/* =================================================================
 * 4. Top bar + floating pill header
 * ================================================================= */
.topbar { background: var(--c-ink); color: #aab4d4; font-size: .8rem; position: relative; z-index: 61; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; padding-top: 9px; padding-bottom: 9px; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--c-accent-2); }
.topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 14px; height: 14px; fill: var(--c-accent); }

.site-header { position: sticky; top: 0; z-index: 60; padding: 12px 14px 0; pointer-events: none; }
.header-inner {
  position: relative; pointer-events: auto; max-width: calc(var(--wrap) + 40px); margin: 0 auto; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 12px 0 22px;
  background: rgba(255,255,255,.84); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border: 1px solid rgba(228,232,242,.9); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: height .35s var(--ease), box-shadow .35s var(--ease), background .35s;
}
.site-header.is-scrolled .header-inner { height: 64px; box-shadow: var(--shadow); background: rgba(255,255,255,.94); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo, .brand .custom-logo { height: 44px; width: auto; transition: height .35s var(--ease); }
.site-header.is-scrolled .brand-logo { height: 38px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav li { position: relative; }
.main-nav a {
  display: flex; align-items: center; gap: 6px; padding: 10px 15px; border-radius: var(--r-btn);
  color: var(--c-ink); font-weight: 500; font-size: .93rem; white-space: nowrap;
}
.main-nav a:hover { background: var(--c-tint); color: var(--c-primary); }
.main-nav .current-menu-item:not(.menu-item-type-custom) > a { background: var(--c-ink); color: #fff; }
.main-nav .menu-item-has-children > a::after {
  content: ""; width: 6px; height: 6px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .25s;
}
.main-nav li:hover > a::after { transform: translateY(1px) rotate(225deg); }
.main-nav .sub-menu {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; position: absolute; left: 50%; top: calc(100% + 14px); width: 440px; padding: 10px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: .25s var(--ease);
}
.main-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.main-nav .sub-menu a { border-radius: var(--r-md); padding: 11px 14px; font-size: .9rem; }
.main-nav .sub-menu a::before { content: ""; width: 7px; height: 7px; border-radius: 1px; background: var(--c-accent); flex-shrink: 0; transition: transform .2s; }
.main-nav .sub-menu a:hover::before { transform: scale(1.5); background: var(--c-primary); }
.main-nav .sub-menu .current-menu-item > a { background: var(--c-tint); color: var(--c-primary); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cta { padding: 12px 20px; }
.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: var(--r-md); border: 0; background: var(--c-ink); cursor: pointer;
  position: relative; -webkit-tap-highlight-color: transparent;
}
.nav-toggle span:not(.screen-reader-text) {
  position: absolute; left: 15px; right: 15px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 23px; transform: rotate(-45deg); }
.nav-extra { display: none; }
@media (min-width: 1021px) and (max-width: 1200px) { .main-nav a { padding: 10px 11px; font-size: .88rem; } }

/* =================================================================
 * 5. Home hero
 * ================================================================= */
.hero {
  position: relative; margin: -88px 14px 0; padding-top: 88px; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--grad-night); overflow: hidden; color: #c4cde6; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(169,189,230,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(169,189,230,.09) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.orb--1 { width: 520px; height: 520px; background: #3b5fb8; top: -160px; right: -120px; }
.orb--2 { width: 380px; height: 380px; background: #8098c6; bottom: -180px; left: 10%; opacity: .35; animation-duration: 22s; }
.orb--3 { width: 260px; height: 260px; background: #5b7fd6; top: 40%; left: -80px; opacity: .3; animation-duration: 26s; }
@keyframes drift { to { transform: translate3d(60px, 40px, 0) scale(1.15); } }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.hero-lines path { stroke-dasharray: 6 10; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }

.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; padding-top: 90px; padding-bottom: 150px; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero-text p { font-size: 1.15rem; max-width: 560px; color: #b4bfdf; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-visual { position: relative; height: 560px; }
.hero-photo {
  position: absolute; inset: 40px 20px 40px 40px; border-radius: var(--radius-lg); overflow: hidden; rotate: 2deg;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12); animation: float-a 9s ease-in-out infinite;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; scale: 1.08; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,29,69,0) 40%, rgba(15,29,69,.65) 100%); }
.hero-bars { position: absolute; left: 0; bottom: 0; width: 64%; max-width: 330px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.hero-bars .bar { transform-box: fill-box; transform-origin: bottom; animation: grow 1.4s var(--ease) both; }
.hero-bars .bar:nth-child(2) { animation-delay: .12s; } .hero-bars .bar:nth-child(3) { animation-delay: .24s; }
.hero-bars .bar:nth-child(4) { animation-delay: .36s; } .hero-bars .bar:nth-child(5) { animation-delay: .48s; }
.hero-bars .bar:nth-child(6) { animation-delay: .6s; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.chip {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.25); line-height: 1.2; white-space: nowrap;
}
.chip b { display: block; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.chip small { display: block; font-size: .72rem; color: #c4cde6; }
.chip-icon { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; background: #fff; flex-shrink: 0; }
.chip-icon svg { width: 21px; height: 21px; fill: none; stroke: var(--c-primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip--1 { top: 8px; left: 0; animation: float-b 7s ease-in-out infinite; }
.chip--2 { right: -10px; top: 46%; animation: float-a 8s ease-in-out infinite; }
.chip--3 { right: 30px; bottom: 6px; animation: float-b 9s ease-in-out infinite .6s; }
@keyframes float-a { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes float-b { 0%,100% { translate: 0 0; } 50% { translate: 0 10px; } }

.stats {
  position: relative; z-index: 3; margin-top: -64px; display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--c-line); padding: 8px;
}
.stat { position: relative; padding: 24px 22px; border-radius: var(--r-lg); transition: background .3s; }
.stat:hover { background: var(--c-soft); }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--c-line); }
.stat b { display: block; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; color: var(--c-primary); line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { display: block; font-size: .86rem; color: var(--c-muted); font-weight: 500; line-height: 1.4; margin-top: 4px; }

/* =================================================================
 * 6. Marquee
 * ================================================================= */
.marquee { padding: 74px 0 6px; overflow: hidden; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); }
.marquee::after { right: 0; background: linear-gradient(-90deg, #fff, rgba(255,255,255,0)); }
.marquee-row { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-row--rev { animation-direction: reverse; animation-duration: 44s; margin-top: 4px; }
.marquee:hover .marquee-row { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 22px; padding: 0 22px; font-size: clamp(1.6rem, 4vw, 3rem); font-weight: 700;
  letter-spacing: -.03em; color: var(--c-ink); white-space: nowrap; line-height: 1.35;
}
.marquee-row--rev .marquee-item { color: transparent; -webkit-text-stroke: 1.5px var(--c-accent); }
.marquee-item svg { width: .7em; height: .7em; fill: var(--c-primary); flex-shrink: 0; animation: spin 12s linear infinite; }
.marquee-row--rev .marquee-item svg { fill: var(--c-accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* =================================================================
 * 7. Services bento / mobile carousel
 * ================================================================= */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 0; }
.section-head .lead { margin: 0; justify-self: end; }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 290px; gap: 18px; }
.s-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; border-radius: var(--radius-lg);
  overflow: hidden; isolation: isolate; color: #fff; background: var(--c-ink);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.s-card:hover { color: #fff; transform: translateY(-6px); box-shadow: 0 30px 60px rgba(15,29,69,.28); }
.s-card--big { grid-column: span 2; grid-row: span 2; padding: 34px; }
.s-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.s-card:hover > img { transform: scale(1.08); }
.s-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,29,69,.05) 0%, rgba(15,29,69,.35) 45%, rgba(15,29,69,.92) 100%); }
.s-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(39,70,148,.85), rgba(15,29,69,.9)); opacity: 0; transition: opacity .5s var(--ease); }
.s-card:hover::after { opacity: .55; }
.s-num { position: absolute; top: 24px; left: 24px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; color: rgba(255,255,255,.8); }
.s-card--big .s-num { top: 32px; left: 34px; }
.s-icon {
  position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .35s, transform .5s var(--ease);
}
.s-card:hover .s-icon { background: #fff; transform: rotate(-8deg) scale(1.05); }
.s-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s; }
.s-card:hover .s-icon svg { stroke: var(--c-primary); }
.s-card h3 { color: #fff; font-size: 1.3rem; margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.s-card--big h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.s-card p { color: #d3daf0; font-size: .92rem; line-height: 1.55; margin: 10px 0 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; }
.s-card--big p { max-height: 120px; opacity: 1; font-size: 1.02rem; max-width: 440px; }
.s-card:hover p { max-height: 120px; opacity: 1; }
.s-go { width: 40px; height: 40px; border-radius: var(--r-sm); background: #fff; display: grid; place-items: center; flex-shrink: 0; transition: transform .4s var(--ease); }
.s-go svg { width: 16px; height: 16px; fill: none; stroke: var(--c-primary); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.s-card:hover .s-go { transform: rotate(-45deg); }
.s-card--cta { grid-column: span 2; background: var(--grad-brand); justify-content: space-between; }
.s-card--cta::before { display: none; }
.s-card--cta::after { background: radial-gradient(circle at 90% 10%, rgba(255,255,255,.35), transparent 50%); opacity: 1; }
.s-card--cta:hover::after { opacity: 1; }
.s-card--cta p { max-height: none; opacity: 1; color: #e3e9f8; font-size: 1rem; max-width: 460px; }
.s-card--cta .s-icon { position: static; margin-bottom: auto; }
.s-cta-art { position: absolute; right: -40px; bottom: -50px; width: 260px; opacity: .22; z-index: -1; animation: spin 40s linear infinite; }
.carousel-ui { display: none; }

/* =================================================================
 * 8. About
 * ================================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.media-stack { position: relative; padding: 0 40px 40px 0; isolation: isolate; }
.media-stack .photo { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/3.4; object-fit: cover; box-shadow: var(--shadow); }
.media-ring { position: absolute; right: 0; bottom: 0; width: 170px; height: 170px; animation: spin 24s linear infinite; }
.media-badge {
  position: absolute; right: 45px; bottom: 45px; width: 80px; height: 80px; border-radius: var(--r-lg); background: var(--c-primary);
  display: grid; place-items: center; box-shadow: 0 16px 36px rgba(39,70,148,.45);
}
.media-badge svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.media-dots { position: absolute; left: -30px; top: -30px; width: 140px; z-index: -1; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 38px; line-height: 1.6; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: var(--r-sm);
  background: var(--c-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat;
  box-shadow: 0 6px 14px rgba(39,70,148,.25);
}

/* =================================================================
 * 9. Method timeline
 * ================================================================= */
.method { background: var(--grad-night); padding: 120px 0; position: relative; margin-top: 14px; overflow: visible; }
.results-band.panel { margin-top: 14px; }
.method-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; }
.method-head { position: sticky; top: 130px; align-self: start; }
.method-art { width: 240px; margin-top: 36px; }
.method-art .bar { transform-box: fill-box; transform-origin: bottom; transform: scaleY(.2); transition: transform 1.2s var(--ease); }
.method-art.is-visible .bar { transform: scaleY(1); }
.method-art .bar:nth-child(2) { transition-delay: .1s; } .method-art .bar:nth-child(3) { transition-delay: .2s; } .method-art .bar:nth-child(4) { transition-delay: .3s; }
.timeline { position: relative; padding-left: 70px; display: grid; gap: 22px; }
.timeline-line { position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: rgba(255,255,255,.1); border-radius: 2px; }
.timeline-line i { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--progress, 0) * 100%); background: linear-gradient(180deg, var(--c-accent-2), var(--c-primary)); border-radius: 2px; box-shadow: 0 0 16px rgba(169,189,230,.6); }
.t-step { position: relative; padding: 30px 30px 28px; border-radius: var(--radius-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: background .4s, border-color .4s, transform .4s var(--ease); }
.t-step:hover { background: rgba(255,255,255,.07); border-color: rgba(169,189,230,.3); transform: translateX(6px); }
.t-dot { position: absolute; left: -70px; top: 26px; width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--c-ink); border: 2px solid rgba(255,255,255,.15); color: #fff; font-weight: 700; font-size: .9rem; transition: .4s var(--ease); }
.t-step.is-active .t-dot { background: var(--c-primary); border-color: var(--c-accent-2); box-shadow: 0 0 0 8px rgba(128,152,198,.15); }
.t-step h3 { color: #fff; font-size: 1.35rem; margin-bottom: 8px; }
.t-step p { margin: 0; color: #aab4d4; }

/* =================================================================
 * 10. Results
 * ================================================================= */
.results-band { background: var(--c-primary); color: #c9d4ee; padding: 110px 0; position: relative; }
.results-band h2 { color: #fff; }
.results-band .lead { color: #c9d4ee; }
.results-art { position: absolute; right: -40px; bottom: 0; width: 520px; opacity: .14; pointer-events: none; }
.results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; position: relative; }
.result { padding: 30px 26px; border-radius: var(--radius-lg); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); transition: transform .4s var(--ease), background .4s; }
.result:hover { transform: translateY(-6px); background: rgba(255,255,255,.12); }
.result b { display: block; font-size: clamp(2.6rem, 4.6vw, 3.8rem); font-weight: 700; color: #fff; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.result h3 { color: #fff; font-size: 1.05rem; margin: 18px 0 6px; }
.result p { margin: 0; font-size: .9rem; color: #c9d4ee; line-height: 1.55; }
.result-spark { height: 36px; margin-top: 18px; display: flex; align-items: flex-end; gap: 5px; }
.result-spark i { flex: 1; border-radius: 1px 1px 0 0; background: linear-gradient(180deg, #fff, rgba(255,255,255,.25)); transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease); }
.is-visible .result-spark i, .result-spark.is-visible i { transform: scaleY(1); }
.result-spark i:nth-child(1) { height: 30%; } .result-spark i:nth-child(2) { height: 45%; transition-delay: .08s; }
.result-spark i:nth-child(3) { height: 40%; transition-delay: .16s; } .result-spark i:nth-child(4) { height: 65%; transition-delay: .24s; }
.result-spark i:nth-child(5) { height: 58%; transition-delay: .32s; } .result-spark i:nth-child(6) { height: 85%; transition-delay: .4s; }
.result-spark i:nth-child(7) { height: 100%; transition-delay: .48s; }
html:not(.js) .result-spark i { transform: scaleY(1); }

/* =================================================================
 * 11. Brochure
 * ================================================================= */
.brochure { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; }
.brochure-stack { position: relative; display: block; aspect-ratio: 1.42; margin: 20px 20px 20px 40px; }
.brochure-stack .page { position: absolute; inset: 0; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); border: 1px solid var(--c-line); transition: transform .7s var(--ease); }
.brochure-stack .page--3 { transform: rotate(-9deg) translate(-26px, 18px); background: var(--c-accent); border: 0; }
.brochure-stack .page--2 { transform: rotate(-4.5deg) translate(-12px, 8px); background: var(--c-tint); }
.brochure-stack .page--1 { overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(2deg); }
.brochure-stack .page--1 img { width: 100%; height: 100%; object-fit: cover; }
.brochure-stack:hover .page--3 { transform: rotate(-14deg) translate(-60px, 30px); }
.brochure-stack:hover .page--2 { transform: rotate(-7deg) translate(-30px, 14px); }
.brochure-stack:hover .page--1 { transform: rotate(0deg) translateY(-8px); }
.brochure-badge { position: absolute; right: -14px; top: -14px; z-index: 3; width: 86px; height: 86px; border-radius: var(--r-lg); background: var(--c-ink); display: grid; place-items: center; box-shadow: var(--shadow); animation: float-a 6s ease-in-out infinite; }
.brochure-badge svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brochure-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

/* =================================================================
 * 12. Where + map
 * ================================================================= */
.where { display: grid; grid-template-columns: 1fr 1.25fr; gap: 60px; align-items: center; }
.contact-list { display: grid; gap: 12px; margin: 26px 0 28px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--c-line); transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.contact-item:hover { border-color: rgba(39,70,148,.3); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.contact-item b { display: block; color: var(--c-muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; line-height: 1.4; }
.contact-item div { line-height: 1.5; word-break: break-word; color: var(--c-ink); font-weight: 500; }
.c-icon { width: 46px; height: 46px; border-radius: var(--r-md); background: var(--c-tint); display: grid; place-items: center; flex-shrink: 0; }
.c-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--c-primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-icon--social svg { fill: var(--c-primary); stroke: none; }
.where-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.map-placeholder, .map iframe { width: 100%; height: 480px; border: 0; border-radius: var(--radius-lg); display: block; }
.map-placeholder { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 36px; background: #e6ecf7; }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { position: relative; width: 66px; height: 66px; border-radius: var(--r-lg); background: var(--c-primary); display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 0 0 10px rgba(39,70,148,.15), 0 0 0 22px rgba(39,70,148,.07); animation: pin-pulse 2.6s ease-in-out infinite; }
.map-pin svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pin-pulse { 50% { box-shadow: 0 0 0 16px rgba(39,70,148,.12), 0 0 0 32px rgba(39,70,148,.04); } }
.map-card { position: relative; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: var(--r-lg); padding: 24px 26px; box-shadow: var(--shadow); max-width: 430px; }
.map-card h3 { margin-bottom: 4px; }
.map-card p { margin: 0 0 6px; }
.map-note { font-size: .8rem; color: var(--c-muted); }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.map-actions .btn { padding: 12px 20px; font-size: .88rem; }

/* =================================================================
 * 13. CTA
 * ================================================================= */
.cta { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg); padding: 80px 64px; background: var(--grad-night); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: .3em; }
.cta p { margin: 0; color: #b4bfdf; font-size: 1.1rem; max-width: 560px; }
.cta-rings { position: absolute; right: -120px; top: 50%; translate: 0 -50%; width: 620px; z-index: -1; }
.cta-rings > * { transform-box: fill-box; transform-origin: center; animation: ring 6s ease-in-out infinite; }
.cta-rings > :nth-child(2) { animation-delay: .5s; } .cta-rings > :nth-child(3) { animation-delay: 1s; } .cta-rings > :nth-child(4) { animation-delay: 1.5s; }
@keyframes ring { 50% { transform: scale(1.06); opacity: .5; } }

/* =================================================================
 * 14. Inner pages
 * ================================================================= */
.page-hero { position: relative; margin: -88px 14px 0; padding-top: 88px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: var(--grad-night); overflow: hidden; isolation: isolate; color: #c4cde6; }
.page-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; padding-top: 70px; padding-bottom: 80px; min-height: 420px; }
.page-hero-inner.no-media { grid-template-columns: 1fr; min-height: 0; padding-bottom: 90px; }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.2rem); margin-bottom: .35em; }
.page-hero p { font-size: 1.12rem; color: #b4bfdf; max-width: 560px; margin: 0; }
.page-hero-media { position: relative; }
.page-hero-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); rotate: 2deg; border: 1px solid rgba(255,255,255,.12); }
.page-hero-media .chip { left: -24px; bottom: -18px; }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: #8f9ac0; margin-bottom: 20px; }
.breadcrumb a { color: #fff; }
.breadcrumb svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 60px; align-items: start; }
.page-body { font-size: 1.04rem; }
.page-body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.5em; }
.page-body h2:first-child { margin-top: 0; }
.page-body ul:not(.checklist) { padding-left: 1.2em; }
.sidebar { position: sticky; top: 120px; display: grid; gap: 18px; }
.side-box { background: var(--c-soft); border-radius: var(--radius-lg); padding: 26px; border: 1px solid var(--c-line); }
.side-box h3 { font-size: 1.05rem; margin-bottom: 12px; }
.side-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side-box li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: var(--r-md); color: var(--c-ink); font-weight: 500; font-size: .95rem; transition: background .25s, color .25s, padding .25s; }
.side-box li a::after { content: "→"; color: var(--c-accent); transition: transform .25s; }
.side-box li a:hover { background: #fff; padding-left: 18px; }
.side-box li a:hover::after { transform: translateX(3px); color: var(--c-primary); }
.side-box li.is-current a { background: var(--c-primary); color: #fff; }
.side-box li.is-current a::after { color: #fff; }
.side-box--dark { background: var(--grad-night); border: 0; color: #b4bfdf; position: relative; overflow: hidden; }
.side-box--dark h3 { color: #fff; font-size: 1.3rem; }
.side-phone { display: block; color: #fff; font-weight: 700; font-size: 1.2rem; margin-bottom: 16px; }
.side-phone:hover { color: var(--c-accent-2); }

.numbers { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; margin: 0 0 44px; }
.number { background: var(--c-soft); border-radius: var(--r-lg); padding: 22px; border: 1px solid var(--c-line); }
.number span { display: block; font-size: .72rem; font-weight: 600; color: var(--c-muted); text-transform: uppercase; letter-spacing: .1em; line-height: 1.45; }
.number b { display: block; font-size: 1.7rem; font-weight: 700; color: var(--c-primary); line-height: 1.2; margin-top: 8px; letter-spacing: -.02em; }
.number small { font-size: .78rem; color: var(--c-muted); font-weight: 500; letter-spacing: 0; }
.number--main { background: var(--grad-brand); border: 0; }
.number--main span { color: #d3dcf3; }
.number--main b { color: #fff; }
.number--split b { font-size: 1.25rem; white-space: nowrap; }
.number--split b + b { margin-top: 2px; }

/* =================================================================
 * 15. Contact form
 * ================================================================= */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.form { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); border: 1px solid var(--c-line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 600; font-size: .82rem; color: var(--c-ink); margin-bottom: 7px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid transparent; border-radius: var(--r-md); font: inherit; font-size: 16px;
  color: var(--c-ink); background: var(--c-soft); margin-bottom: 16px; transition: border-color .2s, background .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23274694' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; background: #fff; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(39,70,148,.12); }
.form textarea { min-height: 150px; resize: vertical; }
.form .privacy { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; font-weight: 500; color: var(--c-text); margin-bottom: 22px; line-height: 1.55; }
.form .privacy input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--c-primary); flex-shrink: 0; }
.form .btn { width: 100%; padding: 17px 26px; }
.form .is-invalid { border-color: #d64545 !important; background: #fff6f6 !important; }
.form.is-sending .btn { opacity: .8; pointer-events: none; }
.form.is-sending .btn .arrow { animation: spin .8s linear infinite; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: var(--r-md); margin-bottom: 20px; font-weight: 600; }
.notice--ok { background: #e7f7ee; color: #17663a; }
.notice--err { background: #fdecec; color: #9b1c1c; }

/* =================================================================
 * 16. Footer
 * ================================================================= */
.site-footer { position: relative; margin: 14px; border-radius: var(--radius-lg); background: var(--c-ink); color: #8f9ac0; padding: 90px 0 0; overflow: hidden; isolation: isolate; font-size: .95rem; }
.footer-art { position: absolute; right: 4%; bottom: 60px; width: 300px; opacity: .07; z-index: -1; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; }
.footer-brand .brand { display: inline-flex; background: #fff; padding: 10px 16px; border-radius: var(--r-md); margin-bottom: 20px; }
.footer-brand .brand-logo { height: 40px; }
.site-footer p { color: #aab4d4; max-width: 340px; }
.site-footer h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: #6f7ba3; font-weight: 600; margin-bottom: 18px; }
.site-footer a { color: #dfe5f5; }
.site-footer a:hover { color: var(--c-accent-2); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); transition: background .25s, transform .3s var(--ease); }
.socials a:hover { background: var(--c-primary); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 70px; padding: 24px 0; font-size: .82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* =================================================================
 * 17. Floating UI
 * ================================================================= */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: var(--c-wa); display: grid; place-items: center; box-shadow: 0 12px 28px rgba(37,211,102,.45); transition: transform .3s var(--ease); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c-wa); animation: wa-ring 2.4s ease-out infinite; }
@keyframes wa-ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.mobile-bar { display: none; }

.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 100; max-width: 460px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--c-line); padding: 22px 24px; font-size: .9rem; display: none; }
.cookie.is-visible { display: block; animation: rise .5s var(--ease); }
.cookie h4 { margin: 0 0 6px; font-size: 1rem; }
.cookie p { margin: 0; line-height: 1.55; }
.cookie-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.cookie .btn { padding: 11px 20px; font-size: .86rem; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

.toast-wrap { position: fixed; z-index: 120; top: 104px; right: 20px; display: grid; gap: 10px; width: min(400px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; padding: 16px 16px 16px 18px; background: #fff; border-radius: var(--r-lg); box-shadow: 0 18px 40px rgba(15,29,69,.2), 0 0 0 1px var(--c-line); color: var(--c-ink); font-size: .95rem; font-weight: 500; line-height: 1.45; opacity: 0; transform: translateY(-12px) scale(.98); transition: opacity .25s, transform .25s; }
.toast.is-in { opacity: 1; transform: none; }
.toast-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.toast-icon svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.toast-icon svg circle { stroke: none; }
.toast--ok .toast-icon { background: #1f9d55; }
.toast--err .toast-icon { background: #d64545; }
.toast-text { flex: 1; padding-top: 3px; }
.toast-close { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--c-muted); cursor: pointer; padding: 2px 4px; }

/* =================================================================
 * 18. Scroll reveal (only with JS)
 * ================================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .hero-text > * { opacity: 0; transform: translateY(26px); animation: hero-in 1s var(--ease) forwards; }
.js .hero-text > *:nth-child(2) { animation-delay: .1s; } .js .hero-text > *:nth-child(3) { animation-delay: .2s; } .js .hero-text > *:nth-child(4) { animation-delay: .3s; } .js .hero-text > *:nth-child(5) { animation-delay: .4s; }
.js .hero-visual { opacity: 0; animation: fade-in 1.2s var(--ease) .25s forwards; }
@keyframes fade-in { to { opacity: 1; } }
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* =================================================================
 * 19. Tablet
 * ================================================================= */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 270px; }
  .s-card--cta { grid-column: span 2; }
}
@media (max-width: 1020px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav { position: fixed; inset: 0; z-index: -1; background: var(--c-ink); padding: 120px 24px 140px; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
  .main-nav.is-open { opacity: 1; visibility: visible; }
  .main-nav > ul { flex-direction: column; gap: 4px; }
  .main-nav > ul > li { opacity: 0; transform: translateY(16px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .main-nav.is-open > ul > li { opacity: 1; transform: none; }
  .main-nav.is-open > ul > li:nth-child(2) { transition-delay: .05s; } .main-nav.is-open > ul > li:nth-child(3) { transition-delay: .1s; } .main-nav.is-open > ul > li:nth-child(4) { transition-delay: .15s; }
  .main-nav a { color: #fff; font-size: 1.7rem; font-weight: 600; letter-spacing: -.02em; padding: 12px 6px; border-radius: var(--r-md); }
  .main-nav a:hover, .main-nav .current-menu-item:not(.menu-item-type-custom) > a { background: none; color: var(--c-accent-2); }
  .main-nav .menu-item-has-children > a::after { display: none; }
  .main-nav .sub-menu { position: static; transform: none; opacity: 1; visibility: visible; width: auto; background: none; border: 0; box-shadow: none; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px 0 14px; }
  .main-nav .sub-menu a { font-size: .95rem; font-weight: 500; color: #c4cde6; padding: 11px 12px; background: rgba(255,255,255,.06); border-radius: var(--r-sm); letter-spacing: 0; }
  .main-nav .sub-menu .current-menu-item > a { background: var(--c-primary); color: #fff; }
  .nav-extra { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
  .nav-extra .btn { flex: 1 1 140px; }
  .main-nav .nav-extra a { color: var(--t); font-size: .95rem; font-weight: 600; letter-spacing: 0; padding: 15px 22px; border-radius: var(--r-btn); }
  .main-nav .nav-extra a:hover { color: var(--t); }
  html.menu-open .mobile-bar { display: none; }
  html.menu-open { overflow: hidden; }
  /* backdrop-filter would trap the fixed overlay inside the pill: drop it while the menu is open */
  .site-header.menu-open .header-inner { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; box-shadow: none; }

  .hero-inner { grid-template-columns: 1fr; padding-top: 50px; padding-bottom: 120px; }
  .hero-visual { height: 460px; max-width: 560px; width: 100%; margin: 0 auto; }
  .section-head { grid-template-columns: 1fr; }
  .section-head .lead { justify-self: start; }
  .split, .brochure, .where, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .method-grid { grid-template-columns: 1fr; gap: 40px; }
  .method-head { position: static; }
  .method-art { display: none; }
  .results { grid-template-columns: repeat(2, 1fr); }
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta { grid-template-columns: 1fr; padding: 64px 40px; }
}

/* =================================================================
 * 20. Phones
 * ================================================================= */
@media (max-width: 760px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .topbar { display: none; }
  .site-header { padding: 10px 10px 0; }
  .header-inner { padding: 0 8px 0 16px; height: 62px; }
  .site-header.is-scrolled .header-inner { height: 58px; }
  .brand-logo { height: 36px; }
  .site-header.is-scrolled .brand-logo { height: 32px; }
  .nav-toggle { width: 44px; height: 44px; }
  .nav-toggle span:not(.screen-reader-text) { left: 13px; right: 13px; }
  .nav-toggle span:nth-child(1) { top: 16px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 26px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1), .nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; }
  .main-nav { padding: 100px 20px 130px; }
  .main-nav a { font-size: 1.5rem; }

  .section { padding: 84px 0; }
  .panel, .hero, .page-hero { margin-left: 8px; margin-right: 8px; }
  .hero, .page-hero { margin-top: -82px; padding-top: 82px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  h1 { font-size: clamp(2.3rem, 10.5vw, 3rem); }
  h2 { font-size: clamp(1.8rem, 8vw, 2.3rem); }
  .lead { font-size: 1.02rem; }

  .hero-inner { padding-top: 34px; padding-bottom: 96px; gap: 34px; }
  .hero-text p { font-size: 1.02rem; }
  .hero-actions { flex-direction: column; margin-top: 26px; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { height: 330px; }
  .hero-photo { inset: 26px 12px 20px 20px; border-radius: var(--r-lg); }
  .hero-bars { width: 56%; }
  .chip { padding: 9px 12px 9px 9px; border-radius: var(--r-md); gap: 9px; }
  .chip b { font-size: 1rem; }
  .chip small { font-size: .64rem; }
  .chip-icon { width: 32px; height: 32px; border-radius: var(--r-sm); }
  .chip-icon svg { width: 17px; height: 17px; }
  .chip--2 { right: -4px; }
  .chip--3 { display: none; }
  .orb--1 { width: 340px; height: 340px; }

  .stats { grid-template-columns: 1fr 1fr; margin-top: -54px; border-radius: var(--r-lg); padding: 6px; }
  .stat { padding: 16px 14px; }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--c-line); border-radius: 0 0 var(--r-md) var(--r-md); }
  .stat b { font-size: 1.6rem; }
  .stat span { font-size: .76rem; }

  .marquee { padding: 46px 0 0; }
  .marquee::before, .marquee::after { width: 40px; }
  .marquee-item { font-size: 1.7rem; gap: 14px; padding: 0 14px; }

  .section-head { margin-bottom: 30px; gap: 14px; }

  .bento { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 20px; scroll-padding: 0 var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .bento::-webkit-scrollbar { display: none; }
  .s-card, .s-card--big, .s-card--cta { flex: 0 0 82%; height: 400px; scroll-snap-align: start; padding: 22px; border-radius: var(--radius-lg); }
  .s-card p { max-height: 120px; opacity: 1; font-size: .92rem; }
  .s-card--big h3, .s-card h3 { font-size: 1.45rem; }
  .s-card--big .s-num { top: 24px; left: 22px; }
  .s-card:hover { transform: none; }
  .carousel-ui { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
  .carousel-dots { display: flex; gap: 6px; }
  .carousel-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--c-line); transition: width .3s var(--ease), background .3s; }
  .carousel-dots i.is-active { width: 22px; background: var(--c-primary); }
  .carousel-hint { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 500; color: var(--c-muted); }
  .carousel-hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; animation: nudge 1.6s ease-in-out infinite; }

  .split { gap: 40px; }
  .media-stack { padding: 0 22px 22px 0; }
  .media-ring { width: 110px; height: 110px; }
  .media-badge { right: 27px; bottom: 27px; width: 56px; height: 56px; }
  .media-badge svg { width: 24px; height: 24px; }

  .method { padding: 84px 0; }
  .timeline { padding-left: 52px; gap: 14px; }
  .timeline-line { left: 17px; }
  .t-dot { left: -52px; width: 36px; height: 36px; font-size: .8rem; top: 22px; }
  .t-step { padding: 22px 20px; border-radius: var(--r-lg); }
  .t-step:hover { transform: none; }
  .t-step h3 { font-size: 1.2rem; }

  .results-band { padding: 84px 0; }
  .results { gap: 10px; margin-top: 36px; }
  .result { padding: 20px 16px; border-radius: var(--r-lg); }
  .result b { font-size: 2.2rem; }
  .result h3 { font-size: .95rem; margin-top: 12px; }
  .result p { font-size: .8rem; }
  .result-spark { height: 24px; margin-top: 12px; }
  .results-art { width: 300px; }

  .brochure { gap: 44px; }
  .brochure-stack { margin: 10px 14px 10px 26px; }
  .brochure-badge { width: 64px; height: 64px; right: -8px; top: -10px; }
  .brochure-badge svg { width: 26px; height: 26px; }
  .brochure-actions .btn { width: 100%; }

  .contact-item { padding: 12px; gap: 12px; border-radius: var(--r-md); }
  .c-icon { width: 42px; height: 42px; border-radius: var(--r-sm); }
  .where-actions .btn { width: 100%; }
  .map-placeholder { height: auto; min-height: 380px; padding: 24px 16px; border-radius: var(--radius-lg); }
  .map iframe { height: 340px; border-radius: var(--radius-lg); }
  .map-card { padding: 20px; }
  .map-actions .btn { width: 100%; }

  .cta { padding: 48px 24px; border-radius: var(--radius-lg); }
  .cta .btn { width: 100%; }
  .cta-rings { width: 420px; right: -200px; top: 20%; }

  .page-hero-inner { padding-top: 30px; padding-bottom: 50px; gap: 30px; min-height: 0; }
  .page-hero-media img { aspect-ratio: 16/10; rotate: 0deg; border-radius: var(--r-lg); }
  .page-hero-media .chip { left: 12px; bottom: -16px; }
  .page-hero h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .page-hero p { font-size: 1rem; }
  .numbers { grid-template-columns: 1fr 1fr; gap: 10px; }
  .numbers .number--main { grid-column: 1 / -1; }
  .number { padding: 18px; border-radius: var(--r-lg); }
  .number b { font-size: 1.45rem; }

  .form { padding: 24px 18px; border-radius: var(--radius-lg); }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .site-footer { margin: 8px; border-radius: var(--radius-lg); padding-top: 64px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; margin-top: 44px; }

  .wa-float { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; position: fixed; left: 8px; right: 8px; z-index: 95;
    bottom: calc(8px + env(safe-area-inset-bottom)); padding: 8px; border-radius: var(--radius-lg);
    background: rgba(15,29,69,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 16px 40px rgba(15,29,69,.35); border: 1px solid rgba(255,255,255,.08); transition: transform .4s var(--ease);
  }
  .mobile-bar.is-hidden { transform: translateY(140%); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 50px; border-radius: var(--r-md); background: rgba(255,255,255,.08); color: #fff; font-size: .82rem; font-weight: 600; -webkit-tap-highlight-color: transparent; transition: transform .15s; }
  .mobile-bar a:active { transform: scale(.96); }
  .mobile-bar svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-bar .mobile-bar__wa { background: var(--c-wa); }
  .mobile-bar .mobile-bar__wa svg { fill: #fff; stroke: none; }
  .mobile-bar .mobile-bar__cta { background: #fff; color: var(--c-ink); }
  .cookie { left: 8px; right: 8px; bottom: calc(84px + env(safe-area-inset-bottom)); padding: 18px; border-radius: var(--r-lg); }
  .toast-wrap { top: auto; bottom: calc(86px + env(safe-area-inset-bottom)); right: 10px; left: 10px; width: auto; }
  .toast { transform: translateY(12px); }
}
@keyframes nudge { 50% { transform: translateX(5px); } }
@media (max-width: 360px) {
  .s-card, .s-card--big, .s-card--cta { flex-basis: 88%; }
  .mobile-bar a { font-size: .76rem; }
}

/* =================================================================
 * 21. Reduced motion
 * ================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .hero-text > *, .js .hero-visual { opacity: 1 !important; transform: none !important; }
}

/* =================================================================
 * 22. Full-bleed sections (no white strips at the sides)
 * ================================================================= */
.hero, .page-hero { margin-left: 0; margin-right: 0; border-radius: 0; }
.panel { margin-left: 0; margin-right: 0; border-radius: 0; }
.method { margin-top: 0; }
.results-band.panel { margin-top: 0; }
.site-footer { margin: 0; border-radius: 0; }
@media (max-width: 760px) {
  .hero, .page-hero, .panel { margin-left: 0; margin-right: 0; border-radius: 0; }
  .site-footer { margin: 0; border-radius: 0; }
}

/* Results: sparklines pinned to the bottom of each card so their bases line up */
.result { display: flex; flex-direction: column; }
.result-spark { margin-top: auto; padding-top: 18px; height: 54px; box-sizing: content-box; }
.result-spark { height: 36px; }
@media (max-width: 760px) { .result-spark { height: 24px; padding-top: 12px; } }

/* =================================================================
 * 23. Performance on phones / touch screens
 * Blur filters, backdrop-filter (glass) and endless animations are
 * expensive to repaint on mobile Safari while scrolling: replace them
 * with flat equivalents that look the same at a glance.
 * ================================================================= */
@media (max-width: 1020px), (hover: none) {
  /* Content is always visible: no fade-in that leaves blank areas on fast scroll */
  .js [data-reveal], .js [data-reveal].is-visible { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .hero-text > *, .js .hero-visual { opacity: 1 !important; transform: none !important; animation: none !important; }

  /* Glow orbs: static gradients instead of animated blur */
  .orb { filter: none; animation: none; opacity: .5; }
  .orb--1 { background: radial-gradient(circle, rgba(59,95,184,.9) 0%, rgba(59,95,184,0) 70%); }
  .orb--2 { background: radial-gradient(circle, rgba(128,152,198,.7) 0%, rgba(128,152,198,0) 70%); }
  .orb--3 { background: radial-gradient(circle, rgba(91,127,214,.7) 0%, rgba(91,127,214,0) 70%); }
  .hero-lines path { animation: none; }

  /* No glass: solid, slightly transparent fills */
  .header-inner, .site-header.is-scrolled .header-inner { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .mobile-bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: #0f1d45; }
  .chip { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(19,35,75,.88); }
  .s-icon { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(15,29,69,.55); }
  .btn--glass { backdrop-filter: none; }
  .map-card { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }

  /* Header keeps one size while scrolling (no layout work on every scroll) */
  .header-inner, .brand-logo { transition: none; }
  .site-header.is-scrolled .header-inner { height: 62px; }
  .site-header.is-scrolled .brand-logo { height: 36px; }

  /* Stop decorative loops */
  .hero-photo, .chip, .brochure-badge, .media-ring, .s-cta-art, .cta-rings > *, .text-grad, .map-pin, .eyebrow::before, .wa-float::before { animation: none !important; }
  .hero-photo img { scale: 1; }
  .s-card > img, .s-card::after, .s-card p { transition: none; }

  /* Marquee: keep it moving, on its own GPU layer */
  .marquee-row { will-change: transform; }
  .marquee-item svg { animation: none; }
}

/* Mobile contact bar: no shadow/halo underneath */
@media (max-width: 760px) {
  .mobile-bar { box-shadow: none !important; border: 1px solid rgba(255,255,255,.12); }
}

/* Swipe carousel: let touches pass through the photos (iOS treats images
   inside links as draggable / long-press previews, which steals the swipe) */
.s-card > img, .s-card .s-cta-art { pointer-events: none; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
.s-card { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
@media (max-width: 760px) {
  .bento { touch-action: pan-x pan-y; overscroll-behavior-x: contain; }
}

/* Mobile menu closed = really gone: the sub-menu must not stay visible (and tappable)
   through the transparent overlay. */
@media (max-width: 1020px) {
  .main-nav:not(.is-open) { pointer-events: none; }
  .main-nav .sub-menu { visibility: inherit !important; }
  .main-nav.is-open { pointer-events: auto; }
}
