/* ============ Pinnacle Systems — pinnaclesystems.io ============ */
:root {
  --nav-bg: rgba(5, 7, 13, 0.75);
  --nav-solid: rgba(5, 7, 13, 0.97);
  --chat-bg: rgba(9, 13, 23, 0.97);
  --input-bg: rgba(5, 7, 13, 0.65);
  --chip-mix: #fff;
  --shadow: rgba(0, 0, 0, 0.5);
  --bg: #05070d;
  --bg2: #090d17;
  --panel: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.09);
  --text: #e8edf5;
  --muted: #93a0b4;
  --cyan: #22d3ee;
  --amber: #f59e0b;
  --violet: #a78bfa;
  --grad: linear-gradient(100deg, #22d3ee 0%, #60a5fa 45%, #f59e0b 100%);
  --radius: 18px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}
html[data-theme="light"] {
  --bg: #f4f6fa;
  --bg2: #eaeef5;
  --panel: rgba(15, 30, 60, 0.045);
  --line: rgba(15, 30, 60, 0.14);
  --text: #14202f;
  --muted: #5b6a80;
  --cyan: #0e7d94;
  --amber: #b45309;
  --violet: #6d28d9;
  --grad: linear-gradient(100deg, #0e7d94 0%, #2563eb 45%, #d97706 100%);
  --nav-bg: rgba(244, 246, 250, 0.8);
  --nav-solid: rgba(244, 246, 250, 0.97);
  --chat-bg: rgba(250, 251, 253, 0.98);
  --input-bg: rgba(255, 255, 255, 0.85);
  --chip-mix: #1a2433;
  --shadow: rgba(30, 45, 70, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(34, 211, 238, 0.35); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #b9c4d4; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

img, video { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* cursor glow */
#cursor-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%), rgba(34, 211, 238, 0.07), transparent 55%);
  transition: background 0.15s linear;
}
@media (hover: none) { #cursor-glow { display: none; } }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s, backdrop-filter 0.35s;
}
.nav.scrolled {
  padding: 10px clamp(20px, 5vw, 56px);
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line), 0 12px 40px var(--shadow);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-family: var(--font-head); font-weight: 800; font-size: 17px; letter-spacing: 0.06em;
}
.nav-logo em { font-style: normal; font-weight: 400; color: var(--muted); }
.nav-logo img { height: 52px; width: auto; display: block; transition: height 0.35s; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.55)); }
html[data-theme="light"] .nav.scrolled .nav-logo img { filter: none; }
.nav.scrolled .nav-logo img { height: 42px; }
.footer-logo img { height: 56px !important; }
img.logo-light { display: none !important; }
html[data-theme="light"] img.logo-light { display: block !important; }
html[data-theme="light"] img.logo-dark { display: none !important; }
/* while the nav floats over the dark hero video, keep the white logo in both themes */
html[data-theme="light"] .nav:not(.scrolled) img.logo-dark { display: block !important; }
html[data-theme="light"] .nav:not(.scrolled) img.logo-light { display: none !important; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 34px); }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); border-radius: 2px; transition: width 0.25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  color: #05070d !important; background: var(--grad);
  padding: 9px 18px; border-radius: 999px; font-weight: 700 !important;
  box-shadow: 0 4px 24px rgba(34, 211, 238, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(34, 211, 238, 0.5); }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); cursor: pointer;
  display: grid; place-items: center; margin-left: 16px;
  transition: border-color 0.25s, transform 0.25s;
}
.theme-toggle:hover { border-color: var(--cyan); transform: rotate(15deg); }
.theme-toggle .ic-sun { display: none; }
html[data-theme="light"] .theme-toggle .ic-sun { display: block; }
html[data-theme="light"] .theme-toggle .ic-moon { display: none; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: saturate(1.15) contrast(1.05);
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(5,7,13,0.4), transparent),
    linear-gradient(to bottom, rgba(5,7,13,0.55) 0%, rgba(5,7,13,0.35) 40%, rgba(5,7,13,0.92) 92%, var(--bg) 100%);
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.hero-inner { position: relative; z-index: 3; padding: 120px 24px 80px; max-width: 1000px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #22d3ee; font-weight: 600;
  border: 1px solid rgba(34,211,238,0.3); border-radius: 999px;
  padding: 8px 18px; margin-bottom: 28px;
  background: rgba(34,211,238,0.06); backdrop-filter: blur(8px);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #22d3ee; animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,211,238,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(34,211,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
}
.hero-title { font-size: clamp(44px, 8.5vw, 104px); font-weight: 800; }
.hero-title .line { display: block; }
.hero-logo {
  display: block; width: min(660px, 88vw); margin: 0 auto;
  filter: drop-shadow(0 14px 44px rgba(0,0,0,0.65));
}
.hero-sub {
  margin: 26px auto 0; max-width: 640px;
  font-size: clamp(16px, 2vw, 19px); color: #c3cddc;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.hero-cta { margin-top: 38px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 15.5px;
  padding: 15px 30px; border-radius: 999px; text-decoration: none;
  border: 0; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--grad); color: #05070d;
  box-shadow: 0 8px 40px rgba(34, 211, 238, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 50px rgba(245, 158, 11, 0.45); }
.btn-ghost {
  color: #e8edf5; background: rgba(255,255,255,0.06);
  border: 1px solid var(--line); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }
.btn-block { width: 100%; justify-content: center; }

/* equalizer */
.eq {
  margin: 56px auto 0; display: flex; gap: 5px; align-items: flex-end;
  height: 46px; justify-content: center;
}
.eq span {
  width: 5px; border-radius: 3px;
  background: linear-gradient(to top, rgba(34,211,238,0.9), rgba(245,158,11,0.9));
  animation: eqbar 1.1s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * -0.08s);
  height: 12%;
}
.eq span:nth-child(4n+1) { --i: 1; } .eq span:nth-child(4n+2) { --i: 5; }
.eq span:nth-child(4n+3) { --i: 3; } .eq span:nth-child(4n) { --i: 7; }
.eq span:nth-child(3n) { animation-duration: 0.9s; }
.eq span:nth-child(5n) { animation-duration: 1.4s; }
@keyframes eqbar { from { height: 8%; opacity: 0.55; } to { height: 100%; opacity: 1; } }

.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.35); border-radius: 14px;
}
.hero-scroll span {
  position: absolute; top: 7px; left: 50%; width: 4px; height: 8px;
  background: #22d3ee; border-radius: 2px; transform: translateX(-50%);
  animation: scrollhint 1.8s infinite;
}
@keyframes scrollhint {
  0% { opacity: 1; top: 7px; } 70% { opacity: 0; top: 22px; } 100% { opacity: 0; }
}

/* ============ TICKER ============ */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg2); overflow: hidden; padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; align-items: center; }
.ticker-set span {
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  color: var(--muted); white-space: nowrap; padding: 0 18px;
  transition: color 0.2s;
}
.ticker-set span:hover { color: var(--cyan); }
.ticker-set i { color: var(--amber); font-style: normal; font-size: 10px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============ STATS ============ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; padding: clamp(50px, 8vw, 90px) clamp(20px, 6vw, 80px);
  max-width: 1250px; margin: 0 auto;
}
.stat { text-align: center; }
.stat strong {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(38px, 5.5vw, 64px);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { color: var(--muted); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ============ SECTIONS ============ */
.section { padding: clamp(70px, 10vw, 130px) clamp(20px, 6vw, 80px); max-width: 1250px; margin: 0 auto; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 70px); }
.eyebrow {
  font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--amber); font-weight: 600; margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; }
.lede { margin-top: 20px; color: var(--muted); font-size: clamp(16px, 1.8vw, 18px); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 22px; }
.card {
  position: relative; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(500px circle at var(--cx, 50%) var(--cy, 0%), rgba(34,211,238,0.12), transparent 60%);
  pointer-events: none;
}
.card:hover, .card:focus-visible { transform: translateY(-6px); border-color: rgba(34,211,238,0.4); background: rgba(255,255,255,0.06); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(34,211,238,0.16), rgba(245,158,11,0.16));
  border: 1px solid rgba(34,211,238,0.25); color: var(--cyan);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.card ul { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.card li {
  font-size: 12px; color: var(--muted); background: rgba(255,255,255,0.06);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px;
}

/* ============ MARKETS ============ */
.markets { background: radial-gradient(900px 400px at 80% 0%, rgba(167,139,250,0.07), transparent); }
.market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.market {
  position: relative; border: 1px solid var(--line); border-radius: 22px;
  padding: 40px 32px; background: var(--panel); overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.market::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--tint); opacity: 0.85;
}
.market:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--tint) 55%, transparent); }
.market-num {
  font-family: var(--font-head); font-weight: 800; font-size: 52px;
  color: color-mix(in srgb, var(--tint) 30%, transparent); line-height: 1; margin-bottom: 18px;
}
.market h3 { font-size: 24px; margin-bottom: 12px; }
.market p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.market-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.market-tags span {
  font-size: 12px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--tint) 40%, transparent);
  color: color-mix(in srgb, var(--tint) 60%, var(--chip-mix));
  background: color-mix(in srgb, var(--tint) 10%, transparent);
}

/* ============ OUR WORK ============ */
.work-video {
  position: relative; margin-bottom: 26px;
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0,0,0,0.5);
}
.work-video video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #000; }
.work-video-caption {
  position: absolute; left: 18px; top: 14px;
  background: rgba(5,7,13,0.75); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: 13px; font-weight: 600; color: var(--cyan);
  pointer-events: none;
}
.gallery {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px; grid-auto-flow: dense;
}
.ph {
  position: relative; overflow: hidden; border-radius: 16px;
  border: 1px solid var(--line); cursor: zoom-in; margin: 0;
}
.ph.wide { grid-column: span 2; }
.ph.tall { grid-row: span 2; }
.ph img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: saturate(0.92);
}
.ph:hover img { transform: scale(1.06); filter: saturate(1.1); }
.ph figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 14px 12px;
  background: linear-gradient(to top, rgba(5,7,13,0.92), transparent);
  font-size: 13px; font-weight: 600; color: var(--text);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.ph:hover figcaption, .ph:focus figcaption { opacity: 1; transform: none; }
@media (hover: none) { .ph figcaption { opacity: 1; transform: none; } }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(3,4,8,0.94); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px; gap: 16px;
  animation: chatpop 0.25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1100px, 92vw); max-height: 78vh;
  border-radius: 14px; box-shadow: 0 30px 90px rgba(0,0,0,0.7);
}
.lightbox p { color: var(--text); font-family: var(--font-head); font-weight: 600; }
.lightbox-close {
  position: absolute; top: 22px; right: 26px;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,0.07); color: var(--text); font-size: 18px; cursor: pointer;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.16); }

/* ============ TIMELINE ============ */
.timeline { position: relative; max-width: 780px; margin: 0 auto; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--amber));
  opacity: 0.5; border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 44px 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -34px; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--cyan);
  box-shadow: 0 0 0 5px rgba(34,211,238,0.12), 0 0 18px rgba(34,211,238,0.5);
}
.tl-item:nth-child(even) .tl-dot { border-color: var(--amber); box-shadow: 0 0 0 5px rgba(245,158,11,0.12), 0 0 18px rgba(245,158,11,0.5); }
.tl-year {
  font-family: var(--font-head); font-weight: 800; font-size: 14px;
  letter-spacing: 0.18em; color: var(--cyan); margin-bottom: 8px;
}
.tl-item:nth-child(even) .tl-year { color: var(--amber); }
.tl-body h4 { font-size: 20px; margin-bottom: 8px; }
.tl-body p { color: var(--muted); font-size: 15px; }

/* ============ TEAM ============ */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.member {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; transition: transform 0.3s, border-color 0.3s;
}
.member { cursor: pointer; }
.member:hover, .member:focus-visible { transform: translateY(-5px); border-color: rgba(245,158,11,0.4); }
.member-more {
  display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 600;
  color: var(--cyan); letter-spacing: 0.04em;
}
.member-modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(3,4,8,0.7); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: chatpop 0.25s ease;
}
.member-modal[hidden] { display: none; }
.member-card {
  position: relative; width: min(560px, 94vw); max-height: 88svh; overflow-y: auto;
  background: var(--chat-bg); border: 1px solid var(--line); border-radius: 24px;
  padding: 36px 34px 30px;
  box-shadow: 0 40px 100px var(--shadow);
}
.member-card-head { display: flex; align-items: center; gap: 20px; margin-bottom: 8px; }
.member-card-head img {
  width: 108px; height: 108px; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(34,211,238,0.4); background: var(--bg2);
  box-shadow: 0 10px 34px rgba(34,211,238,0.25);
}
.member-card h3 { font-size: 24px; }
.member-card .role { color: var(--cyan); font-weight: 600; font-size: 14px; margin-top: 4px; }
.member-card .home { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.member-detail { margin-top: 18px; }
.member-detail h5 {
  font-family: var(--font-head); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 8px;
}
.member-detail p { color: var(--text); font-size: 14.5px; line-height: 1.65; }
.member-detail .pills { display: flex; flex-wrap: wrap; gap: 7px; }
.member-detail .pills span {
  font-size: 12px; color: var(--text); background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
}
.member-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font-size: 16px; cursor: pointer;
  transition: background 0.2s;
}
.member-close:hover { background: var(--line); }
.avatar {
  width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%;
  object-fit: cover; display: block;
  border: 3px solid rgba(34,211,238,0.35);
  box-shadow: 0 8px 28px rgba(34,211,238,0.22);
  transition: transform 0.3s, border-color 0.3s;
  background: var(--bg2);
}
.member:hover .avatar { transform: scale(1.06); border-color: var(--amber); }
.team-photo {
  margin: 0 0 34px; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); position: relative;
  box-shadow: 0 24px 70px var(--shadow);
}
.team-photo img { display: block; width: 100%; }
.team-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 20px 16px;
  background: linear-gradient(to top, rgba(5,7,13,0.9), transparent);
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
}
.badge-25 {
  display: block; width: min(230px, 48vw); margin-bottom: 22px;
  border-radius: 14px; background: #fff; padding: 10px 16px;
  box-shadow: 0 10px 34px var(--shadow);
}
.van-photo {
  margin: 26px 0 0; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px var(--shadow);
}
.van-photo img { display: block; width: 100%; }
.member h4 { font-size: 17px; }
.member .role { color: var(--cyan); font-size: 13px; font-weight: 600; margin: 4px 0 10px; }
.member .certs { color: var(--muted); font-size: 12px; line-height: 1.5; }

/* ============ QUOTES ============ */
.quotes .section-head { text-align: center; margin-left: auto; margin-right: auto; }
.quote-stage { position: relative; max-width: 820px; margin: 0 auto; min-height: 240px; text-align: center; }
.quote {
  position: absolute; inset: 0; opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s, transform 0.6s; pointer-events: none;
}
.quote.is-active { opacity: 1; transform: none; pointer-events: auto; }
.quote p {
  font-family: var(--font-head); font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 600; line-height: 1.35; margin-bottom: 26px;
}
.quote footer strong { display: block; color: var(--cyan); font-size: 16px; }
.quote footer span { color: var(--muted); font-size: 14px; }
.quote-dots { position: absolute; bottom: -46px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.quote-dots button {
  width: 10px; height: 10px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--line); transition: 0.3s;
}
.quote-dots button.is-active { background: var(--grad); width: 30px; }

/* ============ CONTACT ============ */
.contact {
  background:
    radial-gradient(700px 350px at 10% 20%, rgba(34,211,238,0.08), transparent),
    radial-gradient(700px 350px at 95% 90%, rgba(245,158,11,0.07), transparent);
}
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; }
.contact-lines { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; }
.contact-line {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 20px; transition: border-color 0.25s, transform 0.25s;
}
.contact-line:hover { border-color: rgba(34,211,238,0.45); transform: translateX(6px); }
.contact-line .ci { font-size: 22px; }
.contact-line strong { display: block; color: var(--text); font-size: 15.5px; }
.contact-line em { font-style: normal; color: var(--muted); font-size: 13px; }
.contact-form {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 22px; padding: clamp(24px, 3vw, 38px);
  backdrop-filter: blur(10px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label {
  display: block; font-size: 13px; font-weight: 600; color: var(--muted);
  margin-bottom: 14px; letter-spacing: 0.03em;
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; margin-top: 7px; padding: 13px 15px;
  background: var(--input-bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 11px;
  font-family: var(--font-body); font-size: 14.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,0.15);
}
.contact-form textarea { resize: vertical; }
.form-note { margin-top: 14px; font-size: 12px; color: var(--muted); text-align: center; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); background: var(--bg2); padding: 44px clamp(20px, 6vw, 80px) 30px; }
.footer-top {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
  max-width: 1250px; margin: 0 auto 26px;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom { max-width: 1250px; margin: 0 auto; border-top: 1px solid var(--line); padding-top: 22px; }
.footer-bottom p { color: var(--muted); font-size: 13px; }
.footer-tag { margin-top: 4px; opacity: 0.7; }

/* ============ CHATBOT ============ */
.chat-fab-wrap { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: flex; align-items: center; gap: 12px; flex-direction: row-reverse; }
.chat-fab {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--grad); color: #05070d;
  display: grid; place-items: center;
  box-shadow: 0 10px 40px rgba(34,211,238,0.5);
  transition: transform 0.25s, box-shadow 0.25s;
}
.chat-fab:hover { transform: scale(1.08); box-shadow: 0 14px 50px rgba(245,158,11,0.5); }
.chat-fab .chat-fab-close { display: none; }
.chat-fab.open .chat-fab-icon { display: none; }
.chat-fab.open .chat-fab-close { display: block; }
.chat-hint {
  background: var(--chat-bg); border: 1px solid var(--line);
  color: var(--text); font-size: 13px; font-weight: 600;
  padding: 9px 15px; border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  animation: hintpop 0.5s 2.2s backwards;
}
.chat-hint.hide { display: none; }
@keyframes hintpop { from { opacity: 0; transform: translateX(12px); } }

.chat-panel[hidden] { display: none; }
.chat-panel {
  position: fixed; right: 22px; bottom: 96px; z-index: 200;
  width: min(390px, calc(100vw - 32px));
  height: min(560px, calc(100svh - 130px));
  display: flex; flex-direction: column;
  background: var(--chat-bg);
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 30px 80px var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(20px);
  animation: chatpop 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes chatpop { from { opacity: 0; transform: translateY(24px) scale(0.95); } }
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(34,211,238,0.12), rgba(245,158,11,0.10));
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad); display: grid; place-items: center;
}
.chat-head strong { font-family: var(--font-head); font-size: 16px; display: block; }
.chat-status { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.chat-status i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; display: inline-block; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 85%; padding: 11px 15px; border-radius: 16px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.msg.bot { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.user { align-self: flex-end; background: linear-gradient(120deg, #0891b2, #2563eb); color: #fff; border-bottom-right-radius: 4px; }
.msg.typing span {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted); margin-right: 4px;
  animation: blink 1.2s infinite;
}
.msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.msg.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.chat-quick { display: flex; gap: 8px; padding: 0 16px 10px; flex-wrap: wrap; }
.chat-quick button {
  background: rgba(34,211,238,0.1); color: var(--cyan);
  border: 1px solid rgba(34,211,238,0.3); border-radius: 999px;
  font-size: 12px; padding: 6px 13px; cursor: pointer; transition: 0.2s;
}
.chat-quick button:hover { background: rgba(34,211,238,0.22); }
.chat-input {
  display: flex; gap: 10px; padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.chat-input input {
  flex: 1; background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 11px 17px; color: var(--text); font-size: 14px;
}
.chat-input input:focus { outline: none; border-color: var(--cyan); }
.chat-input button {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--grad); color: #05070d; display: grid; place-items: center;
  transition: transform 0.2s;
}
.chat-input button:hover { transform: scale(1.08); }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 80vw);
    background: var(--nav-solid); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; gap: 30px;
    transform: translateX(100%); transition: transform 0.35s;
    border-left: 1px solid var(--line); z-index: 99;
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 18px; }
  .nav-burger { display: block; position: relative; z-index: 100; }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .quote-stage { min-height: 300px; }
}

/* light-theme contrast fixes: white text on the darker light-mode gradient */
html[data-theme="light"] .nav-cta { color: #fff !important; }
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .chat-fab,
html[data-theme="light"] .chat-input button { color: #fff; }
