/* ============================================================
   KISCO Digital — v2 "Noir Editorial" Design System
   Dark-first · Swiss grotesk · cinematic
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Archivo:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg: #05040D;
  --bg-2: #0A0918;
  --panel: rgba(255,255,255,0.03);
  --panel-solid: #0D0C1E;
  --line: rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.16);
  --ink: #F2F2FB;
  --ink-soft: #C4C8E6;
  --ink-faint: #979CC2;
  --royal: #1500D6;
  --electric: #4D6BFF;
  --electric-bright: #6E86FF;
  --gold: #F0A800;
  --gold-soft: #FFC94D;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.8, 0.5, 1);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Archivo", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --wrap: 1440px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--royal); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- atmosphere ---------- */
.atmos { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(52% 44% at 82% -6%, rgba(21,0,214,0.32), transparent 70%),
    radial-gradient(40% 34% at -8% 32%, rgba(21,0,214,0.16), transparent 70%),
    radial-gradient(30% 26% at 88% 88%, rgba(240,168,0,0.05), transparent 70%);
}
.grain { position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E"); }

/* ---------- page-hero gradient blur (matches Home hero) ---------- */
header.page-hero { position: relative; overflow: hidden; padding-top: clamp(96px, 13vh, 138px) !important; }
header.page-hero .ph-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
header.page-hero .ph-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; opacity: 0.55; filter: saturate(0.9) contrast(1.05); transform: scale(1.04);
  -webkit-mask-image: linear-gradient(90deg, transparent 6%, rgba(0,0,0,0.14) 32%, rgba(0,0,0,0.6) 60%, #000 90%);
  mask-image: linear-gradient(90deg, transparent 6%, rgba(0,0,0,0.14) 32%, rgba(0,0,0,0.6) 60%, #000 90%); }
header.page-hero .ph-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #05040D 0%, rgba(5,4,13,0.86) 26%, rgba(5,4,13,0.42) 58%, rgba(5,4,13,0.12) 100%), linear-gradient(180deg, transparent 50%, rgba(5,4,13,0.85) 88%, #05040D 100%); }
header.page-hero .ph-bg::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(70% 60% at 24% 68%, rgba(21,0,214,0.34), transparent 70%); }
/* royal glow for image-less page-heros (blog, gallery) */
header.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 22% 78%, rgba(21,0,214,0.28), transparent 70%); }
header.page-hero .wrap { position: relative; z-index: 2; }
html[data-theme="light"] header.page-hero .ph-bg::after { background: linear-gradient(90deg, #FFFFFF 0%, rgba(255,255,255,0.86) 26%, rgba(255,255,255,0.42) 58%, rgba(255,255,255,0.12) 100%), linear-gradient(180deg, transparent 50%, rgba(255,255,255,0.85) 88%, #FFFFFF 100%); }
html[data-theme="light"] header.page-hero::before { background: radial-gradient(60% 70% at 22% 78%, rgba(21,0,214,0.12), transparent 70%); }

/* ---------- type ---------- */
h1, h2, h3, h4, .display { font-family: var(--font-display); letter-spacing: -0.03em; line-height: 1.04; font-weight: 700; }
.display { font-size: clamp(2.9rem, 7.2vw, 6.2rem); }
.h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.06; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.lead { color: var(--ink-soft); font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.7; max-width: 58ch; text-wrap: pretty; }
.eyebrow { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--electric-bright); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--electric); }
.eyebrow.gold { color: var(--gold); } .eyebrow.gold::before { background: var(--gold); }
.grad-text { background: linear-gradient(92deg, var(--electric-bright), #9FB0FF 55%, var(--gold-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Home-style two-tone page headings: blue base, gold highlight */
.page-hero h1.display { color: var(--electric-bright); }
.page-hero h1.display .grad-text { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--gold); }
html[data-theme="light"] .page-hero h1.display { color: var(--royal); }
html[data-theme="light"] .page-hero h1.display .grad-text { color: #B87F00; }
.mono { font-family: var(--font-mono); }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(24px, 5.5vw, 80px); }
.section-pad { padding: clamp(72px, 11vh, 130px) 0; }
.rule { border: 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: auto 1fr; gap: 18px clamp(24px, 4vw, 64px); align-items: start; margin-bottom: clamp(36px, 6vh, 64px); }
.section-head .idx { font-family: var(--font-mono); color: var(--ink-faint); font-size: 0.78rem; padding-top: 10px; }
.section-head h2 { margin: 10px 0 16px; max-width: 22ch; text-wrap: balance; }

/* ---------- nav (always floating pill) ---------- */
.nav { position: fixed; top: 14px; left: 50%; right: auto; transform: translateX(-50%); z-index: 100;
  width: min(calc(100% - 28px), calc(var(--wrap) - 40px)); border-radius: 999px;
  background: rgba(5,4,13,0.86); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 54px -22px rgba(0,0,0,0.75), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: background 0.5s, box-shadow 0.5s, border-color 0.5s; }
@media (max-width: 640px) { .nav { top: 10px; width: calc(100% - 20px); } }
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 2vw, 26px); height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-family: var(--font-display); }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand b { font-size: 1.02rem; letter-spacing: 0.02em; }
.brand small { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.3em; color: var(--ink-faint); text-transform: uppercase; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-size: 0.86rem; font-weight: 500; padding: 8px 14px; border-radius: 8px; transition: color 0.25s, background 0.25s; }
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ""; display: block; height: 2px; margin-top: 1px; background: var(--gold); border-radius: 2px; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }

/* mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 120; display: none; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px;
  background: rgba(5,4,13,0.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  padding: 0 clamp(28px, 8vw, 60px); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.mobile-menu.open { display: flex; opacity: 1; pointer-events: auto; }
.mobile-menu a { text-decoration: none; color: var(--ink); font-family: var(--font-display); font-size: clamp(1.9rem, 8vw, 2.8rem); font-weight: 700; letter-spacing: -0.02em; padding: 6px 0; display: flex; align-items: baseline; gap: 14px; }
.mobile-menu a .mi { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-faint); }
.mobile-menu a.active { color: var(--electric-bright); }
.mm-close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.mm-foot { margin-top: 26px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); letter-spacing: 0.14em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.01em;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.45s var(--ease-bounce), background 0.3s, border-color 0.3s, box-shadow 0.3s; }
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { background: var(--royal); color: #fff; box-shadow: 0 12px 34px -12px rgba(21,0,214,0.8), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-primary:hover { background: #2314E8; box-shadow: 0 18px 44px -12px rgba(21,0,214,0.9), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.04); }
.btn-gold { background: var(--gold); color: #14100A; box-shadow: 0 12px 34px -12px rgba(240,168,0,0.55); }
.btn-gold:hover { background: var(--gold-soft); }
.btn .arrow-i { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.btn:hover .arrow-i { transform: translate(2px, -2px); }
.btn-lg { padding: 17px 32px; font-size: 1rem; }

/* ---------- cards / panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; position: relative; }
.panel-pad { padding: clamp(24px, 3vw, 36px); }
.hover-lift { transition: transform 0.5s var(--ease-bounce), border-color 0.45s, background 0.45s; }
.hover-lift:hover { transform: translateY(-6px) scale(1.015); border-color: var(--line-strong); background: rgba(255,255,255,0.05); }
@media (prefers-reduced-motion: reduce) { .btn, .hover-lift { transition-timing-function: ease; } .btn:hover, .hover-lift:hover { transform: none; } }
.grid { display: grid; gap: 16px; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; position: relative; }
.marquee-track { display: flex; gap: clamp(48px, 7vw, 96px); width: max-content; animation: marquee 30s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee .logo-chip { height: 64px; display: flex; align-items: center; padding: 8px 18px; background: #fff; border-radius: 12px; }
.marquee .logo-chip img { height: 44px; width: auto; max-width: 140px; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; } }

/* ---------- stats ---------- */
.stat .n { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 4.4rem); letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.stat .n .u { color: var(--electric-bright); }
.stat .l { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin-top: 10px; }

/* ---------- photo frames ---------- */
.ph { border-radius: 20px; overflow: hidden; position: relative; border: 1px solid var(--line); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.ph:hover img { transform: scale(1.04); }
.ph .cap { position: absolute; left: 14px; bottom: 12px; z-index: 2; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.92); background: rgba(5,4,13,0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hover-lift.reveal.in { transition: opacity 0.9s var(--ease), transform 0.5s var(--ease-bounce), border-color 0.45s, background 0.45s; }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; } .d3 { transition-delay: 0.24s; } .d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: clamp(28px, 4.5vh, 44px) 0 22px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 24px; margin-bottom: 24px; align-items: start; }
.foot h5 { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; font-weight: 500; }
.foot a { display: block; color: var(--ink-soft); text-decoration: none; padding: 3px 0; font-size: 0.9rem; transition: color 0.25s; }
.foot a:hover { color: var(--ink); }
.social { display: flex; gap: 8px; margin-top: 12px; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; padding: 0; transition: border-color 0.3s, background 0.3s, transform 0.3s; }
.social a svg { width: 17px; height: 17px; }
.social a:hover { border-color: var(--electric); background: rgba(77,107,255,0.12); transform: translateY(-2px); }
.foot-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--ink-faint); }

/* ---------- WhatsApp widget ---------- */
.wa-fab { position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 38px -8px rgba(37,211,102,0.55); transition: transform 0.45s var(--ease-bounce); }
.wa-fab:hover { transform: scale(1.1); }
.wa-fab svg { width: 28px; height: 28px; }
.wa-card { position: fixed; right: 22px; bottom: 92px; z-index: 150; width: min(330px, calc(100vw - 44px));
  background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden;
  opacity: 0; transform: translateY(14px) scale(0.97); pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7); }
.wa-card.open { opacity: 1; transform: none; pointer-events: auto; }
.wa-head { background: linear-gradient(135deg, #128C7E, #25D366); padding: 18px 20px; display: flex; gap: 12px; align-items: center; }
.wa-head .ava { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.18); display: grid; place-items: center; }
.wa-head .ava img { width: 26px; height: 26px; object-fit: contain; }
.wa-head b { display: block; font-size: 0.95rem; }
.wa-head span { font-size: 0.75rem; opacity: 0.85; }
.wa-body { padding: 18px 20px; }
.wa-msg { background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 12px 14px; font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 16px; }
.wa-start { display: flex; width: 100%; justify-content: center; gap: 10px; align-items: center; background: #25D366; color: #fff; text-decoration: none; font-weight: 700; font-size: 0.9rem; padding: 13px; border-radius: 999px; font-family: var(--font-display); transition: background 0.25s; }
.wa-start:hover { background: #2EE573; }
.wa-start svg { width: 16px; height: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-cta .btn { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- custom cursor + click ripple (site-wide) ---------- */
.cursor-ring { position: fixed; top: 0; left: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.7); pointer-events: none; z-index: 9999; opacity: 0; will-change: transform; transition: width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease), border-color 0.25s, background 0.25s, opacity 0.3s; }
.cursor-ring.hot { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-color: var(--gold); background: rgba(240,168,0,0.14); }
.cursor-ring.down { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.cursor-trail { position: fixed; top: 0; left: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--electric-bright); pointer-events: none; z-index: 9998; opacity: 0; will-change: transform, opacity; }
.click-ripple { position: fixed; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 1.5px solid rgba(110,134,255,0.6); pointer-events: none; z-index: 9997; transform: scale(0); animation: clickripple 0.7s var(--ease) forwards; }
@keyframes clickripple { 0% { transform: scale(0); opacity: 0.85; } 100% { transform: scale(9); opacity: 0; } }
html[data-theme="light"] .cursor-ring { border-color: rgba(21,0,214,0.55); }
@media (pointer: coarse), (prefers-reduced-motion: reduce) { .cursor-ring, .cursor-trail { display: none; } }

/* ---------- section rail (site-wide) ---------- */
.page-rail { position: fixed; right: clamp(16px, 2vw, 30px); top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; gap: 15px; }
.page-rail a { display: flex; align-items: center; gap: 10px; justify-content: flex-end; text-decoration: none; }
.page-rail .rlabel { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); opacity: 0; transform: translateX(6px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); pointer-events: none; white-space: nowrap; }
.page-rail .dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; flex: none; transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease); }
.page-rail a:hover .dot { border-color: var(--electric-bright); }
.page-rail a:hover .rlabel { opacity: 1; transform: none; }
.page-rail a.active .dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(240,168,0,0.18); transform: scale(1.15); }
.page-rail a.active .rlabel { opacity: 1; transform: none; color: var(--gold); }
@media (max-width: 1100px) { .page-rail { display: none; } }
