/* ==========================================================================
   Keshav Solution – styles
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --brand: #1c3fae;
  --brand-2: #3a63f0;
  --brand-ink: #0b1437;
  --balloon: #7a0f86;
  --balloon-2: #b02bbf;
  --gold: #f6a51a;
  --graphic: #ec7a16;
  --graphic-2: #ff9a3c;
  --web: #f26a1b;
  --steel: #5a5f6b;
  --wa: #1fa855;
  --wa-dark: #178a45;

  --bg: #f6f7fc;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef1fa;
  --text: #0b1437;
  --text-2: #4a5373;
  --muted: #6b7493;
  --line: #dfe4f2;
  --shadow: 0 10px 30px -12px rgba(16, 32, 90, 0.22);
  --shadow-lg: 0 30px 60px -20px rgba(16, 32, 90, 0.3);
  --glass: rgba(255, 255, 255, 0.65);
  --error: #c62828;
  --success: #1b7f45;

  --radius: 18px;
  --radius-lg: 28px;
  --container: 1200px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  color-scheme: light;
}

[data-theme='dark'] {
  --bg: #070b1d;
  --bg-alt: #0b1028;
  --surface: #10173a;
  --surface-2: #161f4a;
  --text: #eef1fb;
  --text-2: #b8c0dc;
  --muted: #8d97ba;
  --line: #222c58;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  --glass: rgba(16, 23, 58, 0.6);
  --brand-2: #6d8cff;
  --error: #ff8a80;
  --success: #6fdc9b;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 8px); }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.4s, color 0.4s;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand); color: #fff; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top 0.2s; }
.skip-link:focus { top: 16px; }
.muted { color: var(--muted); font-weight: 400; }
[data-icon] { display: inline-flex; }
:where(svg[viewBox="0 0 24 24"]) { width: 1.15em; height: 1.15em; flex: none; }
[data-icon] svg { width: 1.15em; height: 1.15em; }

/* logo swap for theme */
.logo-dark { display: none !important; }
[data-theme='dark'] .logo-light { display: none !important; }
[data-theme='dark'] .logo-dark { display: block !important; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--brand);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 700; font-size: 0.95rem; line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
  overflow: hidden; isolation: isolate;
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--sm { padding: 0.6em 1.15em; font-size: 0.88rem; }
.btn--lg { padding: 1em 1.8em; font-size: 1rem; }
.btn--primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 12px 28px -12px rgba(28, 63, 174, 0.7); }
.btn--primary:hover { box-shadow: 0 18px 36px -12px rgba(28, 63, 174, 0.8); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand-2); color: var(--brand-2); }
.btn--glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255,255,255,.22); }
.btn--whatsapp { background: var(--wa); color: #fff; box-shadow: 0 12px 26px -12px rgba(31,168,85,.8); }
.btn--whatsapp:hover { background: var(--wa-dark); }
.btn--graphic { background: linear-gradient(135deg, var(--graphic), var(--graphic-2)); color: #1a0d00; box-shadow: 0 12px 26px -12px rgba(236,122,22,.8); }
.btn--web { background: linear-gradient(135deg, #ff8a2b, var(--web)); color: #1a0a00; box-shadow: 0 12px 26px -12px rgba(242,106,27,.8); }
.btn--gold { background: linear-gradient(135deg, #ffd25a, var(--gold)); color: #2a0631; box-shadow: 0 12px 26px -12px rgba(246,165,26,.8); }
.btn--solar { background: linear-gradient(135deg, #f8b500, #f26a1b); color: #1a0d00; box-shadow: 0 12px 26px -12px rgba(242,140,27,.8); }
.btn[disabled] { opacity: 0.65; cursor: not-allowed; transform: none; }
.btn.is-loading { cursor: progress; }
.btn--sm .spinner { width: 14px; height: 14px; border-width: 2px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-row--center { justify-content: center; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); background: var(--surface); transition: transform .3s var(--ease), border-color .3s; }
.icon-btn:hover { transform: rotate(20deg); border-color: var(--brand-2); }
.icon-btn .i-moon { display: none; }
[data-theme='dark'] .icon-btn .i-sun { display: none; }
[data-theme='dark'] .icon-btn .i-moon { display: inline-flex; }

.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Eyebrow / headings ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 14px; }
.eyebrow--light { color: #ffd27a; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px rgba(58,99,240,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(58,99,240,0); } }
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2, .section h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.section h2 em { color: var(--brand-2); }
.section-lead { margin-top: 16px; font-size: 1.08rem; color: var(--text-2); }
.lead-light { margin-top: 16px; font-size: 1.08rem; color: rgba(255,255,255,.82); }
.split .w { display: inline-block; }
.grad-text { background: linear-gradient(100deg, var(--brand) 0%, var(--balloon-2) 45%, var(--graphic) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: gradShift 8s ease-in-out infinite; }
[data-theme='dark'] .grad-text { background-image: linear-gradient(100deg, #6d8cff 0%, #d466e4 45%, #ffa94d 100%); }
@keyframes gradShift { 50% { background-position: 100% 0; } }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; background: var(--bg); transition: opacity .6s var(--ease), visibility .6s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { display: grid; justify-items: center; gap: 18px; }
.loader__mark { position: relative; width: 96px; animation: markIn 1.1s var(--ease) both; }
.loader__ring { position: absolute; inset: -22px -30px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--brand-2); border-right-color: var(--balloon-2); animation: spin 1.4s linear infinite, fadeUp .6s .3s both; }
.loader.is-quick { transition-duration: .35s; }
.loader.is-quick .loader__mark, .loader.is-quick .loader__word { animation-duration: .3s; animation-delay: 0s; }
.loader__word em { color: var(--brand-2); font-size: 1.1em; letter-spacing: .1em; text-transform: none; }
.loader__mark img { width: 100%; }
.loader__word { font-weight: 800; letter-spacing: .32em; text-transform: uppercase; font-size: .78rem; color: var(--text-2); animation: fadeUp .8s .35s var(--ease) both; }
.loader__bar { width: 160px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 40%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--balloon-2), var(--graphic)); animation: loadBar 1.1s ease-in-out infinite; }
@keyframes markIn { from { clip-path: inset(100% 0 0 0); transform: translateY(20px) scale(.9); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
@keyframes loadBar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- Navbar ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); transition: background-color .35s, box-shadow .35s, transform .45s var(--ease); }
.nav.is-scrolled { background: var(--glass); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; }
.nav__brand img { height: 40px; width: auto; }
.nav__brand em { color: var(--brand-2); font-size: 1.15em; }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { position: relative; padding: 8px 12px; font-size: .92rem; font-weight: 600; color: var(--text-2); border-radius: 999px; transition: color .25s; }
.nav__links a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--brand-2); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links-cta-mobile { display: none; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .35s var(--ease), opacity .2s; }
.nav__burger span:nth-child(1) { top: 15px; } .nav__burger span:nth-child(2) { top: 21px; } .nav__burger span:nth-child(3) { top: 27px; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 90px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.blob--blue { width: 46vw; height: 46vw; background: #4f74ff; top: -12vw; right: -10vw; animation: drift 18s ease-in-out infinite; }
.blob--purple { width: 34vw; height: 34vw; background: #c44fd4; bottom: -14vw; left: -8vw; animation: drift 22s ease-in-out infinite reverse; opacity: .38; }
.blob--orange { width: 26vw; height: 26vw; background: #ffae4d; top: 40%; left: 40%; animation: drift 26s ease-in-out infinite; opacity: .32; }
[data-theme='dark'] .blob { opacity: .3; }
@keyframes drift { 33% { transform: translate(4vw, 3vw) scale(1.08); } 66% { transform: translate(-3vw, 2vw) scale(.94); } }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%); opacity: .55; }
.hero__content { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px; }
.hero__title { font-size: clamp(2.8rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -0.045em; }
.hero__title .line { display: block; overflow: hidden; padding: 0 .06em .16em 0; margin-bottom: -.1em; }
.hero__title .word { display: inline-block; }
.hero__title .grad-text { padding: 0 .04em .14em 0; margin-bottom: -.14em; }
.hero__title .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--brand-2); }
.hero__sub { margin-top: 24px; max-width: 540px; font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--text-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__since { display: flex; align-items: center; gap: 8px; margin-top: 30px; color: var(--muted); font-size: .92rem; }
.hero__since strong { color: var(--text); }
.hero__visual { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; display: grid; place-items: center; }
.hero__logo-card { position: relative; width: 74%; aspect-ratio: 1; border-radius: 36px; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.6); box-shadow: var(--shadow-lg); display: grid; place-items: center; padding: 10%; transform-style: preserve-3d; transition: transform .3s ease-out; }
[data-theme='dark'] .hero__logo-card { border-color: rgba(255,255,255,.08); }
.hero__logo-card img { width: 100%; transform: translateZ(40px); }
.orbit { position: absolute; inset: 0; animation: orbit 40s linear infinite; pointer-events: none; }
.orbit__item { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: #fff; box-shadow: var(--shadow); animation: orbit 40s linear infinite reverse; pointer-events: auto; }
.orbit__item--balloon { top: 4%; left: 50%; margin-left: -50px; background: linear-gradient(135deg, var(--balloon), var(--balloon-2)); }
.orbit__item--graphic { bottom: 16%; left: -2%; background: linear-gradient(135deg, var(--graphic), var(--graphic-2)); color: #1a0d00; }
.orbit__item--web { bottom: 16%; right: -2%; background: linear-gradient(135deg, #4a4f5c, #2a2d36); }
@keyframes orbit { to { transform: rotate(360deg); } }

.floaters { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.floater { position: absolute; will-change: transform; }
.f-balloon-1 { width: 54px; top: 18%; left: 4%; animation: bob 7s ease-in-out infinite; }
.f-balloon-2 { width: 42px; top: 70%; left: 36%; animation: bob 9s ease-in-out infinite -2s; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); font-weight: 700; font-size: .85rem; color: var(--text-2); border: 1px solid var(--line); }
.f-code { top: 16%; right: 44%; animation: bob 8s ease-in-out infinite -1s; color: var(--web); }
.f-pen { top: 58%; left: 47%; animation: bob 10s ease-in-out infinite -4s; color: var(--graphic); }
.f-www { top: 26%; right: 3%; animation: bob 9s ease-in-out infinite -3s; color: var(--brand-2); }
.f-swatch { bottom: 10%; right: 40%; display: flex; gap: 4px; padding: 8px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); animation: bob 11s ease-in-out infinite -5s; }
.f-swatch i { width: 14px; height: 14px; border-radius: 4px; }
.f-swatch i:nth-child(1) { background: var(--brand); } .f-swatch i:nth-child(2) { background: var(--balloon); } .f-swatch i:nth-child(3) { background: var(--graphic); } .f-swatch i:nth-child(4) { background: var(--gold); }
.f-ring { width: 120px; height: 120px; border-radius: 50%; border: 2px dashed var(--line); top: 8%; left: 38%; animation: orbit 30s linear infinite; }
@keyframes bob { 50% { transform: translateY(-18px) rotate(4deg); } }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--muted); border-radius: 14px; opacity: .7; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--muted); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 70%, 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- Division cards ---------- */
.division-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; perspective: 1200px; }
.div-card { --c: var(--brand); position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transform-style: preserve-3d; transition: transform .25s ease-out, box-shadow .4s var(--ease), border-color .4s; }
.div-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 16%, transparent), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.div-card:hover::before { opacity: 1; }
.div-card:hover { box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.div-card--balloon { --c: var(--balloon); } .div-card--graphic { --c: var(--graphic); } .div-card--web { --c: var(--web); }
.div-card__logo { height: 120px; display: grid; place-items: center; padding: 14px; border-radius: var(--radius); background: #fff; margin-bottom: 22px; border: 1px solid #eef0f6; }
.div-card__logo img { max-height: 92px; width: auto; transition: transform .6s var(--ease); }
.div-card:hover .div-card__logo img { transform: scale(1.06); }
.div-card__date { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--c); margin-bottom: 8px; }
[data-theme='dark'] .div-card__date { color: color-mix(in srgb, var(--c) 55%, #fff); }
.div-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.div-card p { color: var(--text-2); flex: 1; }
.div-card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 700; color: var(--c); }
[data-theme='dark'] .div-card__link { color: color-mix(in srgb, var(--c) 55%, #fff); }
.div-card__link [data-icon] { transition: transform .35s var(--ease); }
.div-card:hover .div-card__link [data-icon] { transform: translateX(6px); }
.div-card__stretch::after { content: ''; position: absolute; inset: 0; }

/* ---------- Timeline ---------- */
.journey { background: var(--bg-alt); }
.timeline { position: relative; max-width: 980px; margin: 0 auto; padding: 10px 0; }
.timeline__line { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; border-radius: 4px; background: var(--line); overflow: hidden; }
.timeline__progress { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, var(--balloon-2), var(--graphic), var(--brand-2)); transform-origin: top; }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 72px 1fr; align-items: center; margin-bottom: 56px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-item__date { text-align: right; padding-right: 10px; }
.tl-item:nth-child(even) .tl-item__date { order: 3; text-align: left; padding: 0 0 0 10px; }
.tl-item:nth-child(even) > .tl-item__card { order: 1; }
.tl-item__node { order: 2; justify-self: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 4px solid var(--c, var(--brand-2)); box-shadow: 0 0 0 8px color-mix(in srgb, var(--c, var(--brand-2)) 18%, transparent); z-index: 1; }
.tl-item__year { font-size: clamp(3rem, 7vw, 5.2rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em; background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 40%, transparent)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.tl-item__full { display: block; margin-top: 6px; font-weight: 700; color: var(--text-2); }
.tl-item__card, .tl-sub { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tl-item > .tl-item__card { order: 3; }
.tl-item__card h3, .tl-sub h3 { font-size: 1.25rem; margin: 10px 0 8px; }
.tl-item__card p, .tl-sub p { color: var(--text-2); }
.tl-item__card img, .tl-sub img { height: 56px; width: auto; border-radius: 10px; background: #fff; padding: 4px 10px; border: 1px solid #eef0f6; }
.tl-tag { display: inline-block; margin-top: 14px; padding: 5px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
[data-theme='dark'] .tl-tag { color: color-mix(in srgb, var(--c) 50%, #fff); }
.tl-item > .tl-item__twin { display: grid; gap: 16px; padding: 0; background: none; border: 0; box-shadow: none; }
.tl-item--now .tl-item__card { background: linear-gradient(135deg, var(--brand), #4b2fb8 55%, var(--balloon)); color: #fff; border: 0; }
.tl-item--now .tl-item__card p { color: rgba(255,255,255,.85); }

/* ---------- Balloon ---------- */
.balloon { background: radial-gradient(1200px 600px at 80% 0%, #8e1a9c 0%, transparent 60%), linear-gradient(160deg, #2a0631 0%, #4a0a55 55%, #2a0631 100%); color: #fff; overflow: hidden; }
.balloon h2 em { color: #ffcd5a; }
.balloon__sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sky-balloon { position: absolute; bottom: -140px; width: var(--s, 44px); opacity: var(--o, .5); animation: rise var(--d, 18s) linear infinite; animation-delay: var(--delay, 0s); }
@keyframes rise { 0% { transform: translate(0, 0) rotate(-4deg); } 50% { transform: translate(var(--sway, 30px), -60vh) rotate(5deg); } 100% { transform: translate(0, -130vh) rotate(-4deg); } }
.division-intro { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.division-logo { width: 240px; margin-bottom: 26px; border-radius: 18px; background: #fff; padding: 12px 18px; box-shadow: 0 16px 40px -18px rgba(0,0,0,.5); }
.division-logo--card { width: 230px; }
.balloon-services { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.b-service { padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); transition: transform .45s var(--ease), background-color .3s, border-color .3s; }
.b-service:hover { transform: translateY(-6px) rotate(-1deg); background: rgba(255,255,255,.14); border-color: rgba(255,205,90,.5); }
.b-service__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--gold), #f07b12); color: #2a0631; margin-bottom: 14px; }
.b-service__icon svg { width: 24px; height: 24px; }
.b-service h3 { font-size: 1.08rem; margin-bottom: 6px; }
.b-service p { font-size: .92rem; color: rgba(255,255,255,.75); }

/* Gallery & filters (shared) */
.gallery-block { position: relative; margin-top: clamp(64px, 9vw, 110px); }
.gallery-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.gallery-head h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.gallery-head > div:first-child { max-width: 560px; }
.gallery-sub { margin-top: 6px; color: var(--text-2); font-size: .95rem; }
.balloon .gallery-sub { color: rgba(255,255,255,.72); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 16px; border-radius: 999px; font-size: .86rem; font-weight: 700; border: 1.5px solid var(--line); background: transparent; color: var(--text-2); transition: background-color .3s var(--ease), border-color .3s, color .3s, transform .3s var(--ease); }
.filter:hover { border-color: var(--brand-2); color: var(--text); transform: translateY(-1px); }
.filter__n { min-width: 22px; padding: 1px 7px; border-radius: 999px; font-size: .72rem; background: color-mix(in srgb, currentColor 14%, transparent); text-align: center; }
.filter[aria-pressed='true'] { background: var(--text); border-color: var(--text); color: var(--bg); }
.balloon .filter { border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.82); }
.balloon .filter:hover { border-color: #ffcd5a; color: #fff; }
.balloon .filter[aria-pressed='true'] { background: #ffcd5a; border-color: #ffcd5a; color: #2a0631; }

/* Masonry gallery (row spans set by gallery.js – keeps left-to-right order) */
.gallery { --gap: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 4px; column-gap: var(--gap); align-items: start; }
.gallery:empty { min-height: 900px; }
.gallery--screens:empty { min-height: 0; }
.gallery--art { --gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery--screens { grid-template-columns: 1fr; grid-auto-rows: auto; row-gap: 24px; max-width: 1000px; margin-inline: auto; }
.gallery-empty { grid-column: 1 / -1; padding: 40px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--text-2); }
.balloon .gallery-empty { border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.75); }
.gallery-more { display: flex; justify-content: center; margin-top: 28px; }
.gallery-more .btn[hidden] { display: none; }

.g-item { margin: 0; min-width: 0; }
.g-item.is-wide { grid-column: span 2; }
.g-item__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: zoom-in; border-radius: var(--radius); }
.g-item__media { position: relative; display: block; height: var(--media-h, auto); aspect-ratio: var(--ar); overflow: hidden; border-radius: var(--radius); background: var(--ph, var(--surface-2)); box-shadow: 0 14px 30px -18px rgba(10, 16, 50, .55); transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
.g-item__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45)); opacity: 0; transition: opacity .45s; pointer-events: none; }
.g-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .6s ease, transform 1.1s var(--ease), filter .6s; }
.g-item.is-loaded img { opacity: 1; transform: scale(1); }
.g-item.is-error .g-item__media::before { content: 'Image unavailable'; position: absolute; inset: 0; display: grid; place-items: center; font-size: .85rem; color: var(--muted); }
.g-item__btn:hover .g-item__media, .g-item__btn:focus-visible .g-item__media { transform: translateY(-4px); box-shadow: 0 26px 44px -20px rgba(10, 16, 50, .6); }
.g-item__btn:hover img { transform: scale(1.06); }
.g-item__btn:hover .g-item__media::after, .g-item__btn:focus-visible .g-item__media::after { opacity: 1; }
.g-item__zoom { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.92); color: #0b1437; opacity: 0; transform: scale(.7); transition: opacity .35s, transform .45s var(--ease); }
.g-item__btn:hover .g-item__zoom, .g-item__btn:focus-visible .g-item__zoom { opacity: 1; transform: none; }
.g-item__badge { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(11,20,55,.82); color: #fff; font-size: .74rem; font-weight: 700; backdrop-filter: blur(6px); }
.g-item__cap { display: flex; flex-direction: column; gap: 2px; padding: 10px 4px 0; }
.g-item__cat { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-2); }
.g-item__title { font-size: .9rem; font-weight: 600; line-height: 1.35; color: var(--text); }

/* photos: caption sits on the image */
.g-item--photos .g-item__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; pointer-events: none; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .45s var(--ease); }
.g-item--photos { position: relative; }
.g-item--photos .g-item__title { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.g-item--photos .g-item__cat { color: #ffd27a; }
.g-item--photos:hover .g-item__cap, .g-item--photos:focus-within .g-item__cap { opacity: 1; transform: none; }
.balloon .g-item__media { box-shadow: 0 18px 40px -20px rgba(0,0,0,.8); }

/* artwork: whole design visible on a soft canvas */
.g-item--art .g-item__media { background: #fff; border: 1px solid var(--line); }
.g-item--art img { object-fit: contain; }
.g-item--art .g-item__cat { color: var(--graphic); }
.graphic .filter[aria-pressed='true'] { background: var(--graphic); border-color: var(--graphic); color: #1a0d00; }

/* screenshots: browser frame */
.g-item--screens .g-item__media { border-radius: 14px; border: 1px solid rgba(255,255,255,.12); padding-top: 34px; height: auto; aspect-ratio: auto; background: #0d1330; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.g-item--screens .g-item__media::before { content: ''; position: absolute; left: 16px; top: 13px; width: 50px; height: 10px; background: radial-gradient(circle at 5px 5px, #ff5f57 4.5px, transparent 5px), radial-gradient(circle at 23px 5px, #febc2e 4.5px, transparent 5px), radial-gradient(circle at 41px 5px, #28c840 4.5px, transparent 5px); }
.g-item--screens img { height: auto; aspect-ratio: var(--ar); }
.g-item--screens .g-item__cap { align-items: center; text-align: center; padding-top: 14px; }
.g-item--screens .g-item__title { color: rgba(255,255,255,.88); }
.g-item--screens .g-item__cat { color: #ff9a4d; }

/* ---------- Graphic ---------- */
.graphic { background: linear-gradient(180deg, #fff8f1, #fff3e6); overflow: hidden; }
[data-theme='dark'] .graphic { background: linear-gradient(180deg, #160e08, #1d120a); --surface: #24170d; --surface-2: #2c1c10; --line: #3e2a17; }
.graphic h2 em, .graphic .eyebrow { color: var(--graphic); }
.graphic__deco span { position: absolute; border-radius: 50%; border: 2px solid rgba(236,122,22,.25); }
.graphic__deco span:nth-child(1) { width: 420px; height: 420px; right: -140px; top: -120px; }
.graphic__deco span:nth-child(2) { width: 260px; height: 260px; right: -40px; top: -20px; border-style: dashed; animation: orbit 50s linear infinite; }
.graphic__deco span:nth-child(3) { width: 14px; height: 14px; background: var(--graphic); border: 0; right: 220px; top: 240px; animation: bob 6s ease-in-out infinite; }
.graphic__intro { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.graphic__intro .section-lead { max-width: 520px; }
.graphic-services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.g-service { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid color-mix(in srgb, var(--graphic) 18%, var(--line)); box-shadow: 0 8px 24px -16px rgba(236,122,22,.5); font-weight: 700; font-size: .95rem; transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.g-service:hover { transform: translateY(-4px); border-color: var(--graphic); box-shadow: 0 18px 30px -16px rgba(236,122,22,.6); }
.g-service:last-child:nth-child(odd) { grid-column: span 2; }
.g-service__icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--graphic) 14%, transparent); color: var(--graphic); transition: transform .5s var(--ease), background-color .3s, color .3s; }
.g-service:hover .g-service__icon { transform: rotate(-10deg) scale(1.1); background: var(--graphic); color: #fff; }
.g-service__icon svg { width: 22px; height: 22px; }

/* ---------- Web ---------- */
.web { background: #060a1a; color: #fff; overflow: hidden; }
.web__bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); }
.web__glow { position: absolute; width: 60vw; height: 60vw; left: 50%; top: 10%; transform: translateX(-50%); background: radial-gradient(circle, rgba(242,106,27,.22), rgba(58,99,240,.14) 40%, transparent 70%); filter: blur(40px); }
.web h2 em { color: #ff9a4d; }
.web__intro { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.code-window { border-radius: 18px; background: #0d1330; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(242,106,27,.08); overflow: hidden; }
.code-window__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.06); }
.code-window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .code-window__bar i:nth-child(2) { background: #febc2e; } .code-window__bar i:nth-child(3) { background: #28c840; }
.code-window__bar span { margin-left: 10px; font-size: .78rem; color: rgba(255,255,255,.5); font-family: ui-monospace, Consolas, monospace; }
.code-window pre { margin: 0; padding: 20px 22px 26px; min-height: 260px; font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .86rem; line-height: 1.7; color: #c9d3ff; white-space: pre-wrap; }
.code-window .k { color: #ff9a4d; } .code-window .s { color: #7ee2a8; } .code-window .c { color: #6b76a8; } .code-window .f { color: #8fb3ff; }
.caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: text-bottom; background: #ff9a4d; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.web-cards { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(56px, 8vw, 96px); }
.w-card { position: relative; padding: 32px; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1); overflow: hidden; transition: transform .5s var(--ease), border-color .4s; }
.w-card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--angle, 0deg), transparent 0 70%, #ff9a4d 80%, #6d8cff 90%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .5s; animation: spinAngle 4s linear infinite; }
.w-card:hover { transform: translateY(-6px); }
.w-card:hover::before { opacity: 1; }
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spinAngle { to { --angle: 360deg; } }
.w-card__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, #ff8a2b, var(--web)); color: #1a0a00; margin-bottom: 20px; }
.w-card__icon svg { width: 28px; height: 28px; }
.w-card--soft .w-card__icon { background: linear-gradient(135deg, #6d8cff, var(--brand)); color: #fff; }
.w-card h3 { font-size: 1.5rem; margin-bottom: 18px; }
.w-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.w-card li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.85); }
.w-card li [data-icon] { flex: none; margin-top: 3px; color: #ff9a4d; }
.w-card--soft li [data-icon] { color: #8fb3ff; }
.w-card .btn { margin-top: auto; }

/* ---------- Solar ---------- */
.solar { background: var(--bg); overflow: hidden; }
.solar::before { content: ''; position: absolute; width: 700px; height: 700px; left: 50%; top: -360px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(248,181,0,.25), transparent 65%); pointer-events: none; }
.solar .eyebrow, .solar h2 em { color: #e38a00; }
[data-theme='dark'] .solar .eyebrow, [data-theme='dark'] .solar h2 em { color: #ffbe3d; }
.solar__head { position: relative; text-align: center; max-width: 780px; margin: 0 auto; }
.solar__showcase { margin: 56px auto 0; max-width: 1000px; }
.browser { border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.browser__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .browser__bar i:nth-child(2) { background: #febc2e; } .browser__bar i:nth-child(3) { background: #28c840; }
.browser__bar span { margin: 0 auto; padding: 4px 16px; border-radius: 8px; background: var(--surface); font-size: .78rem; color: var(--muted); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser__screen { position: relative; aspect-ratio: 16 / 9; background: var(--surface); }
.browser__screen img, .browser__screen iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.solar-ph { position: absolute; inset: 0; display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 20px; }
.solar-ph__side, .solar-ph__main > div { border-radius: 12px; background: var(--surface-2); }
.solar-ph__side { display: grid; align-content: start; gap: 10px; padding: 16px; }
.solar-ph__side i { display: block; height: 10px; border-radius: 6px; background: var(--line); }
.solar-ph__side i:first-child { width: 60%; height: 14px; background: linear-gradient(90deg, #f8b500, #f26a1b); opacity: .6; }
.solar-ph__main { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 90px 1fr; gap: 16px; }
.solar-ph__main > div:last-child { grid-column: span 3; }
.solar-ph__main > div { position: relative; overflow: hidden; }
.solar-ph__main > div::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-100%); animation: shimmer 2.4s infinite; }
[data-theme='dark'] .solar-ph__main > div::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); }
@keyframes shimmer { to { transform: translateX(100%); } }
.solar-ph__label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.solar-ph__label > div { display: grid; justify-items: center; gap: 6px; padding: 18px 24px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 80%; }
.solar-ph__label strong { font-size: 1.05rem; }
.solar-ph__label span { color: var(--text-2); font-size: .9rem; }
.screens-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; height: 100%; }
.screens-strip figure { margin: 0; scroll-snap-align: start; position: relative; }
.screens-strip figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: .82rem; }
.solar__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1000px; margin: 32px auto 0; }
.solar-card { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.solar-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.solar-card p { color: var(--text-2); }
.solar-feature { padding: 12px 0; border-top: 1px solid var(--line); }
.solar-feature:first-child { border-top: 0; padding-top: 0; }
.solar-feature strong { display: block; }
.placeholder-note { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: rgba(248,181,0,.16); color: #b26b00; }
[data-theme='dark'] .placeholder-note { color: #ffbe3d; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-alt); }
.contact__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact-cards { display: grid; gap: 14px; margin-top: 30px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s; }
a.contact-card:hover { transform: translateX(6px); border-color: var(--brand-2); }
a.contact-card--wa:hover { border-color: var(--wa); }
.contact-card__icon { flex: none; width: 48px; height: 48px; display: grid !important; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--brand-2) 14%, transparent); color: var(--brand-2); }
.contact-card--wa .contact-card__icon { background: color-mix(in srgb, var(--wa) 15%, transparent); color: var(--wa); }
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card__label { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-card strong { display: block; font-size: 1.2rem; }
.contact-card small { display: block; color: var(--text-2); font-size: .85rem; }
.contact-card__emails a, .contact-card__phones a { display: block; font-weight: 700; word-break: break-all; }
.contact-card__phones a { font-size: 1.15rem; word-spacing: .18em; white-space: nowrap; }
.contact-card__emails a:hover, .contact-card__phones a:hover { color: var(--brand-2); }

.form { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.form__title { font-size: 1.4rem; margin-bottom: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: .88rem; font-weight: 700; }
.field label span[aria-hidden] { color: var(--error); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); transition: border-color .25s, box-shadow .25s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 18%, transparent); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field__error { min-height: 0; font-size: .82rem; color: var(--error); font-weight: 600; }
.field--radio { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.field--radio legend { width: 100%; margin-bottom: 8px; float: left; }
.radio { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; transition: border-color .25s, background-color .25s; }
.radio:has(input:checked) { border-color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 10%, transparent); }
.radio input { accent-color: var(--brand-2); margin: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.form__status { margin-top: 16px; font-weight: 600; font-size: .95rem; }
.form__alt { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); color: var(--text-2); font-size: .92rem; }
.form__alt a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--wa); }
.form__alt a:hover { text-decoration: underline; }
.form__actions .btn { min-width: 180px; }
.form__status:empty { display: none; }
.status { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; }
.status--ok { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); }
.status--err { background: color-mix(in srgb, var(--error) 10%, transparent); color: var(--error); }
.status--warn { background: rgba(248,181,0,.14); color: #8a5a00; }
[data-theme='dark'] .status--warn { color: #ffcf6b; }
.status a { text-decoration: underline; font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: #050817; color: rgba(255,255,255,.75); padding: 72px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; padding-bottom: 48px; }
.footer__brand img { width: 150px; margin-bottom: 18px; }
.footer__brand p { max-width: 380px; }
.footer__title { color: #fff; font-size: 1rem; letter-spacing: 0; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { transition: color .25s; display: inline-flex; align-items: center; gap: 8px; }
.footer a:hover { color: #fff; }
.footer small { opacity: .7; }
.footer [data-bind='email-list'] { display: grid; gap: 10px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }
.socials a:hover { background: var(--brand); border-color: var(--brand); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.08); font-size: .88rem; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 24px; bottom: 100px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .4s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.to-top__ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); pointer-events: none; }
.to-top__ring circle { fill: none; stroke: var(--brand-2); stroke-width: 2.5; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); stroke-linecap: round; }

/* ---------- Chatbot ---------- */
.chatbot { position: fixed; right: 24px; bottom: 24px; z-index: 120; }
.chatbot__fab { position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 16px 36px -10px rgba(28,63,174,.7); transition: transform .4s var(--ease); }
.chatbot__fab::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand-2); animation: ring 2.4s ease-out infinite; }
.chatbot.is-open .chatbot__fab::before { animation: none; opacity: 0; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.chatbot__fab:hover { transform: scale(1.07); }
.chatbot__fab svg { width: 28px; height: 28px; }
.chatbot__fab > span[data-icon] { grid-area: 1 / 1; transition: transform .4s var(--ease), opacity .3s; }
.fab-close { opacity: 0; transform: rotate(-90deg) scale(.5); }
.chatbot.is-open .fab-open { opacity: 0; transform: rotate(90deg) scale(.5); }
.chatbot.is-open .fab-close { opacity: 1; transform: none; }
.chatbot__badge { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #ff4d4f; color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.chatbot.is-open .chatbot__badge, .chatbot__badge[hidden] { display: none; }
.chatbot__panel { position: absolute; right: 0; bottom: 78px; width: min(390px, calc(100vw - 32px)); height: min(620px, calc(100vh - 130px)); height: min(620px, calc(100dvh - 130px)); display: flex; flex-direction: column; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 80px -20px rgba(10,20,60,.45); overflow: hidden; transform-origin: bottom right; }
.chatbot__panel[hidden] { display: none; }
.chatbot__panel:not([hidden]) { animation: chatIn .5s var(--ease); }
.chatbot__panel.is-closing { animation: chatOut .26s ease forwards; pointer-events: none; }
@keyframes chatOut { to { opacity: 0; transform: translateY(16px) scale(.9); clip-path: circle(10% at 95% 100%); } }
.chatbot__hint { position: absolute; right: 74px; bottom: 14px; white-space: nowrap; padding: 9px 14px; border-radius: 14px 14px 4px 14px; background: var(--surface); color: var(--text); font-size: .85rem; font-weight: 600; box-shadow: var(--shadow-lg); border: 1px solid var(--line); opacity: 0; transform: translateX(10px) scale(.95); transition: opacity .4s, transform .5s var(--ease); pointer-events: none; }
.chatbot__hint.is-visible { opacity: 1; transform: none; }
.chatbot.is-open .chatbot__hint { display: none; }
.chatbot__wa { margin-left: auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.14); color: #fff; }
.chatbot__wa:hover { background: var(--wa); }
@keyframes chatIn { from { opacity: 0; transform: translateY(20px) scale(.85); clip-path: circle(10% at 95% 100%); } to { opacity: 1; transform: none; clip-path: circle(150% at 95% 100%); } }
.chatbot__head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; background: linear-gradient(135deg, var(--brand), #3354d6); color: #fff; }
.chatbot__head strong { display: block; font-size: 1rem; }
.chatbot__head small { display: flex; align-items: center; gap: 6px; opacity: .85; font-size: .78rem; }
.online { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.3); }
.chatbot__avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.16); }
.chatbot__avatar img { width: 20px; }
.chatbot__restart, .chatbot__close { width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.chatbot__close { margin-left: 0; }
.chatbot__restart:hover, .chatbot__close:hover { background: rgba(255,255,255,.26); }
.chatbot__log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.5; animation: msgIn .4s var(--ease) both; white-space: pre-line; word-wrap: break-word; }
.msg--bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg--user { align-self: flex-end; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-bottom-right-radius: 4px; }
.msg a { color: var(--brand-2); font-weight: 700; text-decoration: underline; }
.msg--ok { background: color-mix(in srgb, var(--success) 14%, var(--surface)); color: var(--success); font-weight: 600; }
.msg--err { background: color-mix(in srgb, var(--error) 12%, var(--surface)); color: var(--error); font-weight: 600; }
.msg--warn { background: rgba(248,181,0,.16); }
.msg--note { font-size: .85rem; background: transparent; border: 1px dashed var(--line); }
.msg__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.msg__actions .btn { font-size: .82rem; padding: .6em 1em; }
.msg dl { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: .86rem; }
.msg dt { color: var(--muted); }
.msg dd { margin: 0; font-weight: 600; word-break: break-word; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { transform: translateY(-5px); opacity: .5; } }
.chatbot__quick { display: flex; gap: 8px; padding: 0 16px 12px; overflow-x: auto; scrollbar-width: none; flex-wrap: wrap; max-height: 112px; overflow-y: auto; }
.chatbot__quick:empty { display: none; }
.qr { flex: none; padding: 7px 13px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--brand-2) 40%, var(--line)); background: transparent; color: var(--brand-2); font-size: .82rem; font-weight: 700; transition: background-color .25s, color .25s; }
.qr:hover { background: var(--brand-2); color: #fff; }
.chatbot__input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chatbot__input input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); }
.chatbot__input input:focus { outline: none; border-color: var(--brand-2); }
.chatbot__input button { width: 46px; border-radius: 12px; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; }
.chatbot__input button:disabled { opacity: .5; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: 1fr auto; background: rgba(5,8,23,.94); animation: lbIn .35s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox.is-closing { animation: lbOut .22s ease forwards; }
@keyframes lbIn { from { opacity: 0; } }
@keyframes lbOut { to { opacity: 0; } }
.lightbox__stage { display: grid; place-items: center; padding: 64px 76px 8px; min-height: 0; }
.lightbox__figure { position: relative; margin: 0; display: grid; place-items: center; max-width: 100%; max-height: 100%; min-height: 0; }
.lightbox__img { max-width: min(1400px, 100%); max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); user-select: none; -webkit-user-drag: none; }
.lightbox__img:not([src]) { visibility: hidden; }
.lightbox__spinner { position: absolute; width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; animation: spin .8s linear infinite; opacity: 0; transition: opacity .2s; }
.lightbox__figure.is-loading .lightbox__spinner { opacity: 1; }
.lightbox__figure.is-error::after { content: 'This image could not be loaded.'; color: #fff; position: absolute; }
.lightbox__bar { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px 24px 22px; color: #fff; text-align: center; }
.lightbox__cap { display: grid; gap: 2px; }
.lightbox__cap strong { font-size: 1rem; }
.lightbox__cap span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #ffd27a; }
.lightbox__count { white-space: nowrap; font-variant-numeric: tabular-nums; font-size: .85rem; color: rgba(255,255,255,.7); padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.1); }
.lightbox__count:empty { display: none; }
.lightbox__btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; transition: background-color .25s, transform .3s var(--ease); }
.lightbox__btn:hover { background: rgba(255,255,255,.22); transform: scale(1.06); }
.lightbox__btn[hidden] { display: none; }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; margin-top: -25px; }
.lightbox__next { right: 16px; top: 50%; margin-top: -25px; }
html.lightbox-open { overflow: hidden; }

/* ---------- Page transition / ripple / progress ---------- */
.page-wipe { position: fixed; inset: 0; z-index: 998; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), #4b2fb8 60%, var(--balloon)); clip-path: inset(100% 0 0 0); pointer-events: none; }
.page-wipe img { width: 54px; opacity: 0; transform: translateY(14px); transition: opacity .3s .15s, transform .4s .15s var(--ease); }
.page-wipe.is-leaving { clip-path: inset(0 0 0 0); transition: clip-path .42s cubic-bezier(.77,0,.18,1); pointer-events: auto; }
.page-wipe.is-leaving img { opacity: 1; transform: none; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .25; transform: scale(0); pointer-events: none; animation: ripple .6s ease-out forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.qr, .filter { position: relative; overflow: hidden; }
.nav__progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--brand-2), var(--balloon-2), var(--graphic)); transform-origin: left; transform: scaleX(var(--p, 0)); opacity: 0; transition: opacity .3s; }
.nav.is-scrolled .nav__progress { opacity: 1; }

/* ---------- 404 ---------- */
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 40px) 16px 60px; }
.notfound img { width: 90px; margin: 0 auto 20px; }
.notfound h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.notfound p { color: var(--text-2); margin: 12px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; gap: 0; padding: 12px 16px 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .35s var(--ease); }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav.is-open { background: var(--bg); }
  .nav__links a { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__links a::after { display: none; }
  .nav__links-cta-mobile { display: block; }
  .nav__burger { display: block; }
  .nav__cta { display: none; }
  .nav__actions { margin-left: auto; }
}
@media (max-width: 960px) {
  .hero__content, .division-intro, .graphic__intro, .web__intro, .contact__inner { grid-template-columns: 1fr; }
  .hero__content { text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__ctas, .hero__since { justify-content: center; }
  .hero__visual { max-width: 340px; }
  .hero__eyebrow { justify-content: center; }
  .division-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery--art { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .web-cards, .solar__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
  .f-code, .f-ring, .f-swatch { display: none; }
}
@media (max-width: 720px) {
  :root { --nav-h: 66px; }
  .timeline__line { left: 18px; }
  .tl-item { grid-template-columns: 36px 1fr; gap: 0 16px; margin-bottom: 40px; }
  .tl-item__node { order: 0 !important; grid-row: span 2; align-self: start; margin-top: 12px; }
  .tl-item__date, .tl-item:nth-child(even) .tl-item__date { order: 1; text-align: left; padding: 0 0 12px; }
  .tl-item > .tl-item__card, .tl-item:nth-child(even) > .tl-item__card { order: 2; grid-column: 2; }
  .balloon-services, .graphic-services { grid-template-columns: 1fr; }
  .g-service:last-child:nth-child(odd) { grid-column: auto; }
  .gallery { --gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery--art { --gap: 14px; }
  .lightbox__stage { padding: 64px 8px 4px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; margin: 0; width: 44px; height: 44px; }
  .lightbox__bar { padding: 10px 64px 18px; }
  .g-item--photos .g-item__cap { display: none; }
  .gallery-head .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .gallery-head .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .solar-ph { grid-template-columns: 1fr; padding: 12px; }
  .solar-ph__side { display: none; }
  .solar-ph__main { grid-template-rows: 50px 1fr; gap: 10px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .nav__brand-text { font-size: 1rem; }
  .btn--lg { padding: .9em 1.4em; }
  .to-top { right: 16px; bottom: 90px; width: 44px; height: 44px; }
  .chatbot { right: 16px; bottom: 16px; }
  .chatbot__fab { width: 58px; height: 58px; }
  .chatbot__panel { position: fixed; right: 12px; left: 12px; bottom: 86px; width: auto; height: calc(100dvh - 110px); }
  .f-balloon-2, .f-pen, .f-www { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero__eyebrow { font-size: .68rem; letter-spacing: .1em; }
  .hero__eyebrow .dot { display: none; }
  .hero__visual { max-width: 290px; }
  .f-balloon-1 { width: 40px; top: 12%; left: auto; right: 6%; }
}
@media (max-width: 400px) {
  .orbit__item { font-size: .72rem; padding: 6px 10px; }
}
@media (max-width: 340px) {
  .nav__brand-text { display: none; }
}

/* ---------- Animation toggle ---------- */
.icon-btn--motion { color: var(--brand-2); }
.icon-btn--motion[aria-pressed='false'] { color: var(--muted); }
.icon-btn--motion[aria-pressed='false']::after { content: ''; position: absolute; width: 22px; height: 2px; background: currentColor; transform: rotate(-45deg); border-radius: 2px; }
.icon-btn { position: relative; }
.nav__links a[aria-current='page'] { color: var(--text); }
.nav__links a[aria-current='page']::after { transform: scaleX(1); }

/* ---------- Home: solar card additions ---------- */
.browser__screen:has(.screens-strip), .browser__screen--auto { aspect-ratio: auto; }
.screens-strip { height: auto; }
.screens-strip__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.screens-strip__btn img { width: 100%; height: auto; display: block; }
.solar-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; color: #e38a00; }
[data-theme='dark'] .solar-more { color: #ffbe3d; }
.solar-more:hover { text-decoration: underline; }

/* ---------- Solar page ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 56px) 0 80px; }
.sp-hero__bg { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.sp-sun { position: absolute; width: 620px; height: 620px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(248,181,0,.45), rgba(242,106,27,.18) 45%, transparent 70%); filter: blur(10px); }
.sp-orbit { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(242,140,27,.35); animation: orbit 60s linear infinite; }
.sp-orbit--a { width: 520px; height: 520px; right: -70px; top: -130px; }
.sp-orbit--b { width: 760px; height: 760px; right: -190px; top: -250px; animation-direction: reverse; animation-duration: 90s; border-color: rgba(58,99,240,.18); }
.sp-hero__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: .85rem; color: var(--muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.breadcrumb a:hover { color: var(--brand-2); }
.sp-hero .eyebrow { color: #e38a00; }
[data-theme='dark'] .sp-hero .eyebrow { color: #ffbe3d; }
.sp-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.04em; }
.sp-hero h1 em { color: #f08a00; }
[data-theme='dark'] .sp-hero h1 em { color: #ffbe3d; }
.sp-hero__lead { margin-top: 20px; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--text-2); max-width: 560px; }
.sp-hero__tag { display: flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 700; color: var(--text); }
.sp-hero__tag [data-icon] { color: var(--wa); }
.sp-hero__visual { position: relative; perspective: 1200px; }
.sp-shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.sp-shot img { display: block; width: 100%; height: auto; }
.sp-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .85rem; font-weight: 700; color: var(--text); }
.sp-chip [data-icon] { color: #e38a00; }
.sp-chip--a { left: -28px; top: 18%; }
.sp-chip--b { right: -18px; top: 46%; }
.sp-chip--c { left: 12%; bottom: -20px; }

.sp-subnav { position: sticky; top: 0; z-index: 50; background: var(--glass); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-block: 1px solid var(--line); }
.sp-subnav__inner { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.sp-subnav__inner::-webkit-scrollbar { display: none; }
.sp-subnav a { flex: none; padding: 8px 14px; border-radius: 999px; font-size: .88rem; font-weight: 700; color: var(--text-2); transition: background-color .3s, color .3s; }
.sp-subnav a:hover { color: var(--text); background: var(--surface-2); }
.sp-subnav a.is-active { background: var(--text); color: var(--bg); }
.nav:not(.is-hidden) ~ main .sp-subnav { top: var(--nav-h); transition: top .45s var(--ease); }

.sp-overview { background: var(--bg-alt); }
.sp-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sp-point { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .45s var(--ease), box-shadow .45s, border-color .3s; }
.sp-point:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(242,140,27,.5); }
.sp-point__icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #f8b500, #f26a1b); color: #1a0d00; margin-bottom: 16px; }
.sp-point__icon svg { width: 24px; height: 24px; }
.sp-point h3 { font-size: 1.15rem; margin-bottom: 6px; }
.sp-point p { color: var(--text-2); font-size: .95rem; }

.sp-filters { justify-content: center; margin-bottom: 32px; }
.sp-filters .filter[aria-pressed='true'] { background: #f08a00; border-color: #f08a00; color: #1a0d00; }
.sp-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.sp-module { --mx: 50%; --my: 0%; position: relative; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s, border-color .3s; }
.sp-module[hidden] { display: none; }
.sp-module::before { content: ''; position: absolute; inset: 0; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(248,181,0,.14), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.sp-module:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(242,140,27,.45); }
.sp-module:hover::before { opacity: 1; }
.sp-module__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.sp-module__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(248,181,0,.14); color: #e07b00; transition: transform .5s var(--ease), background-color .3s, color .3s; }
[data-theme='dark'] .sp-module__icon { color: #ffbe3d; }
.sp-module:hover .sp-module__icon { transform: rotate(-8deg) scale(1.08); background: linear-gradient(135deg, #f8b500, #f26a1b); color: #1a0d00; }
.sp-module__icon svg { width: 24px; height: 24px; }
.sp-module__n { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--line); }
.sp-module h3 { font-size: 1.12rem; line-height: 1.25; }
.sp-module__group { display: inline-block; margin: 8px 0 14px; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--surface-2); color: var(--text-2); }
.sp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sp-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text-2); line-height: 1.45; }
.sp-list li svg { flex: none; margin-top: 2px; color: var(--wa); }
.sp-more { margin-top: 10px; }
.sp-more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; color: #e07b00; padding: 4px 0; }
[data-theme='dark'] .sp-more summary { color: #ffbe3d; }
.sp-more summary::-webkit-details-marker { display: none; }
.sp-more summary:hover { text-decoration: underline; }
.sp-more[open] summary { margin-bottom: 8px; }
.sp-more[open] .sp-list { animation: fadeUp .4s var(--ease); }

.sp-stages-section { background: var(--bg-alt); }
.sp-flow { --fill: 0; position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 1100px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; counter-reset: s; }
.sp-flow::before, .sp-flow::after { content: ''; position: absolute; left: 6.25%; right: 6.25%; top: 27px; height: 4px; border-radius: 4px; background: var(--line); }
.sp-flow::after { background: linear-gradient(90deg, #f8b500, #f26a1b, var(--brand-2)); transform-origin: left; transform: scaleX(var(--fill)); }
.anim-ready .sp-flow:not([style*='--fill']) { --fill: 0; }
html:not(.anim-ready) .sp-flow { --fill: 1; }
.sp-stage { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; text-align: center; }
.sp-stage__dot { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); font-weight: 800; font-size: 1.1rem; color: var(--muted); transition: background-color .5s, border-color .5s, color .5s, transform .5s var(--ease), box-shadow .5s; }
.sp-stage.is-done .sp-stage__dot, html:not(.anim-ready) .sp-stage__dot { background: linear-gradient(135deg, #f8b500, #f26a1b); border-color: transparent; color: #1a0d00; transform: scale(1.06); box-shadow: 0 10px 24px -10px rgba(242,106,27,.8); }
.sp-stage__name { font-size: .88rem; font-weight: 700; line-height: 1.3; }

.sp-benefits-section { background: radial-gradient(900px 500px at 15% 0%, rgba(248,181,0,.22), transparent 60%), #060a1a; color: #fff; overflow: hidden; }
.sp-benefits-section h2 em { color: #ffbe3d; }
.sp-benefits__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.sp-tagline { margin-top: 24px; font-size: 1.25rem; font-weight: 800; background: linear-gradient(90deg, #ffd25a, #ff8a2b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sp-benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sp-benefit { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-weight: 600; transition: background-color .3s, border-color .3s, transform .45s var(--ease); }
.sp-benefit:hover { background: rgba(255,255,255,.1); border-color: rgba(255,190,61,.45); transform: translateX(4px); }
.sp-benefit svg { flex: none; margin-top: 2px; color: #ffbe3d; }

@media (max-width: 1080px) {
  .sp-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-flow { grid-template-columns: repeat(4, 1fr); row-gap: 28px; }
  .sp-flow::before, .sp-flow::after { display: none; }
}
@media (max-width: 960px) {
  .sp-hero__inner, .sp-benefits__inner { grid-template-columns: 1fr; }
  .sp-points { grid-template-columns: repeat(2, 1fr); }
  .sp-chip--a { left: 0; } .sp-chip--b { right: 0; }
}
@media (max-width: 720px) {
  .page-hero { padding: calc(var(--nav-h) + 28px) 0 56px; }
  .sp-points, .sp-modules, .sp-benefits { grid-template-columns: 1fr; }
  .sp-flow { grid-template-columns: 1fr 1fr; }
  .sp-stage { grid-template-columns: auto 1fr; justify-items: start; align-items: center; text-align: left; }
  .sp-stage__dot { width: 44px; height: 44px; font-size: .95rem; }
  .sp-chip { display: none; }
  .sp-filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .sp-filters .filter { flex: none; }
  .sp-sun { width: 380px; height: 380px; right: -140px; top: -120px; }
  .sp-orbit { display: none; }
}

/* ---------- Performance modes ---------- */
.lite .blob { animation: none; filter: blur(50px); }
.lite .hero__logo-card, .lite .b-service { backdrop-filter: none; -webkit-backdrop-filter: none; }
.is-paused .blob, .is-paused .floater, .is-paused .orbit, .is-paused .orbit__item, .is-paused .f-ring,
.balloon__sky.is-paused .sky-balloon { animation-play-state: paused; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }

/* ---------- Reduced motion (html[data-motion=reduced]) ----------
   Chosen automatically from the OS "reduce motion" setting, or with the animation toggle.
   Gentle fades, text reveals and hover transitions stay; looping, floating and
   moving decorations are stopped. */
[data-motion='reduced'] .blob, [data-motion='reduced'] .floater, [data-motion='reduced'] .orbit,
[data-motion='reduced'] .orbit__item, [data-motion='reduced'] .f-ring, [data-motion='reduced'] .sky-balloon,
[data-motion='reduced'] .grad-text, [data-motion='reduced'] .eyebrow .dot, [data-motion='reduced'] .chatbot__fab::before,
[data-motion='reduced'] .scroll-cue span, [data-motion='reduced'] .solar-ph__main > div::after,
[data-motion='reduced'] .graphic__deco span, [data-motion='reduced'] .w-card::before, [data-motion='reduced'] .sp-orbit,
[data-motion='reduced'] .sp-flow__dot { animation: none !important; }
[data-motion='reduced'] .loader__mark { animation-name: fadeUp; }
[data-motion='reduced'] .loader__ring { display: none; }
[data-motion='reduced'] .page-wipe { clip-path: none; opacity: 0; transition: opacity .2s; }
[data-motion='reduced'] .page-wipe.is-leaving { opacity: 1; }
[data-motion='reduced'] .chatbot__panel:not([hidden]) { animation-name: lbIn; }
[data-motion='reduced'] .chatbot__panel.is-closing { animation-name: lbOut; }
