/* Berjaya AI Labs homepage: light, Apple-style 3D glass. */

:root {
  --ink: #0b1a2e;
  --ink-soft: #4f5f75;
  --ink-faint: #8796aa;
  --base: #eef3fa;

  --blue: #1f6fc5;
  --blue-bright: #2b7fff;
  --cyan: #5cc8ff;
  --green: #6cbf45;
  --green-deep: #2f7d1a;

  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;

  --glass-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.66) 0%, rgba(255, 255, 255, 0.3) 100%);
  --glass-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 1px 0 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -24px 40px -26px rgba(31, 111, 197, 0.22),
    0 2px 6px rgba(20, 40, 80, 0.05),
    0 26px 60px -26px rgba(20, 60, 120, 0.38);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  color: var(--ink);
  background: var(--base);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }

.container { width: min(var(--container), calc(100% - 44px)); margin-inline: auto; }
.narrow { --container: 880px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--ink);
  text-decoration: none; font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 8px; }

/* ---------- Living colour backdrop (gives the glass something to refract) ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--base); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; will-change: transform; }
.blob-a { width: 52vw; height: 52vw; left: -12vw; top: -14vw; background: #8fc0ff; animation: drift-a 26s ease-in-out infinite alternate; }
.blob-b { width: 44vw; height: 44vw; right: -10vw; top: 8vh; background: #b5ec95; animation: drift-b 30s ease-in-out infinite alternate; }
.blob-c { width: 40vw; height: 40vw; left: 30vw; bottom: -18vw; background: #9fe3ff; animation: drift-a 34s ease-in-out infinite alternate-reverse; }
.blob-d { width: 30vw; height: 30vw; right: 18vw; bottom: 10vh; background: #c9c2ff; opacity: 0.35; animation: drift-b 22s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate3d(10vw, 8vh, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-8vw, 12vh, 0) scale(0.9); } }

/* ---------- Glass material ---------- */
.glass,
.glass-pill {
  position: relative; isolation: isolate;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--glass-shadow);
}
.glass { border-radius: var(--radius-lg); }
.glass-pill { border-radius: 999px; }

/* Specular rim: bright top-left edge fading to a tinted bottom-right edge. */
.glass::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.1) 38%, rgba(255, 255, 255, 0) 60%, rgba(92, 200, 255, 0.55) 85%, rgba(108, 191, 69, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
/* Moving highlight that follows the pointer. */
.glass::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 25%) var(--my, 0%), rgba(255, 255, 255, 0.55), transparent 42%);
  opacity: 0.7; transition: opacity 0.4s;
}

.glass-blue {
  --glass-bg: linear-gradient(160deg, rgba(74, 155, 255, 0.82) 0%, rgba(31, 111, 197, 0.7) 100%);
  --glass-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.7),
    inset 0 -30px 50px -30px rgba(5, 40, 110, 0.55),
    0 2px 6px rgba(20, 40, 80, 0.08),
    0 30px 60px -24px rgba(31, 111, 197, 0.6);
  color: #fff;
}
.glass-green {
  --glass-bg: linear-gradient(160deg, rgba(214, 246, 194, 0.85) 0%, rgba(150, 214, 112, 0.55) 100%);
  --glass-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 0 -30px 50px -30px rgba(47, 125, 26, 0.35),
    0 2px 6px rgba(20, 60, 20, 0.06),
    0 30px 60px -26px rgba(60, 140, 40, 0.5);
}

/* 3D tilt (driven by home.js via --rx / --ry). */
[data-tilt] {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease), box-shadow 0.4s;
}
[data-tilt].is-tilting { transition: transform 0.12s linear, box-shadow 0.4s; }

/* ---------- Typography ---------- */
.section-label { font-size: 14px; font-weight: 600; letter-spacing: 0.01em; color: var(--blue); margin-bottom: 14px; }
.section-title { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.07; letter-spacing: -0.035em; font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 17px; font-weight: 500; text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, opacity 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #4d9dff, #1f6fe0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 6px rgba(0, 40, 120, 0.25), 0 10px 24px -8px rgba(31, 111, 224, 0.65);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -2px 6px rgba(0, 40, 120, 0.25), 0 16px 34px -10px rgba(31, 111, 224, 0.75); }
.btn-glass {
  color: var(--ink);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--glass-shadow);
}
.btn-lg { min-height: 58px; padding: 0 32px; font-size: 19px; }

.play-glyph {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor;
}
.play-glyph::before {
  content: ""; margin-left: 2px;
  border-left: 7px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent;
}

/* ---------- Header: floating glass bar ---------- */
.site-header { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; padding-inline: 12px; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  width: min(var(--container), 100%); height: 96px; margin-inline: auto;
  padding: 0 14px 0 18px; border-radius: 999px;
}
.site-header.is-scrolled .nav { --glass-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.58)); }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.brand img { width: 102px; height: auto; border-radius: 14px; }

#site-navigation { display: flex; align-items: center; gap: 2px; }
#site-navigation a {
  color: var(--ink-soft); text-decoration: none; font-size: 17px; font-weight: 500;
  padding: 11px 15px; border-radius: 999px; white-space: nowrap; transition: color 0.2s, background 0.2s;
}
#site-navigation a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.6); }
#site-navigation .nav-cta {
  margin-left: 6px; color: #fff;
  background: linear-gradient(180deg, #4d9dff, #1f6fe0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 16px -6px rgba(31, 111, 224, 0.6);
}
#site-navigation .nav-cta:hover { color: #fff; }

.nav-tiktok {
  display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 20px 0 16px; margin-left: 8px;
  border-radius: 999px; color: #fff; text-decoration: none; font-size: 16px; font-weight: 600; white-space: nowrap;
  background: linear-gradient(180deg, #2a2f3a, #0d1017);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 16px -6px rgba(13, 16, 23, 0.55);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.nav-tiktok svg { flex: none; filter: drop-shadow(-1px -1px 0 #25f4ee) drop-shadow(1px 1px 0 #fe2c55); }
.nav-tiktok:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 22px -8px rgba(13, 16, 23, 0.6); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav-toggle span,
.nav-toggle span::before {
  position: absolute; left: 13px; width: 18px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease);
}
.nav-toggle span { top: 18px; }
.nav-toggle span::before { content: ""; left: 0; top: 7px; }
.site-header.is-menu-open .nav-toggle span { transform: translateY(3.5px) rotate(45deg); }
.site-header.is-menu-open .nav-toggle span::before { transform: translateY(-7px) rotate(-90deg); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; padding: 150px 0 80px; display: flex; align-items: center; }
.hero-grid { display: grid; align-items: center; gap: 48px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; margin-bottom: 28px;
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(108, 191, 69, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(108, 191, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(108, 191, 69, 0); } }

.hero h1 { font-weight: 700; letter-spacing: -0.045em; }
.h1-kicker { display: block; margin-bottom: 14px; font-size: clamp(1.05rem, 1.7vw, 1.35rem); font-weight: 600; letter-spacing: -0.015em; color: var(--ink-soft); }
.h1-main { display: block; font-size: clamp(2.9rem, 7vw, 5.8rem); line-height: 1.0; }
.grad {
  background: linear-gradient(100deg, var(--green) 0%, var(--cyan) 45%, var(--blue-bright) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.04em;
}
.hero-lead { max-width: 540px; margin-top: 26px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }

/* Brand video on its original black background, shown as a floating card. */
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-halo {
  position: absolute; width: 78%; aspect-ratio: 1; top: 8%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(92, 200, 255, 0.45), rgba(108, 191, 69, 0.22) 55%, transparent);
  filter: blur(30px);
}
.hero-card {
  position: relative; width: min(440px, 100%);
  animation: logo-in 1.4s var(--ease) both, bob 6s ease-in-out 1.4s infinite alternate;
}
.hero-logo {
  width: 100%; aspect-ratio: 768 / 960; object-fit: cover;
  border-radius: 36px; background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5),
    0 2px 6px rgba(10, 20, 40, 0.12),
    0 40px 80px -30px rgba(10, 40, 100, 0.55),
    0 30px 120px -40px rgba(92, 200, 255, 0.45);
}
.hero-shadow {
  width: 60%; height: 26px; margin-top: 10px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(20, 60, 120, 0.22), transparent);
  filter: blur(6px);
  animation: shadow-breathe 6s ease-in-out 1.4s infinite alternate;
}
@keyframes logo-in { from { opacity: 0; transform: translateY(30px) scale(0.96); } }
@keyframes bob { to { transform: translateY(-14px); } }
@keyframes shadow-breathe { to { transform: scaleX(0.82); opacity: 0.6; } }
.video-toggle { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 40px; height: 40px; cursor: pointer; display: grid; place-items: center; }
.icon-pause { width: 10px; height: 12px; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); }
.video-toggle.is-paused .icon-pause {
  width: 0; height: 0; border-right: 0; margin-left: 3px;
  border-left: 10px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}

/* ---------- Statement ---------- */
.statement { padding: clamp(90px, 13vw, 170px) 0 clamp(70px, 9vw, 120px); }
.scrub-text { font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.12; letter-spacing: -0.035em; font-weight: 700; }
.scrub-text .word { opacity: 0.18; transition: opacity 0.25s linear; }
.scrub-text .word.is-lit { opacity: 1; }
.statement-sub { margin-top: 34px; max-width: 700px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-soft); }

/* ---------- Why (bento) ---------- */
.why { padding: 0 0 clamp(90px, 12vw, 150px); }
.why .section-title { margin-bottom: 14px; }
.why-sub { margin-bottom: 40px; max-width: 640px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); }
.bento { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(230px, auto); }
.tile { padding: 34px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; overflow: hidden; }
.tile h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.15; letter-spacing: -0.025em; }
.tile p { color: var(--ink-soft); }
.tile-kicker { font-size: 13px; font-weight: 600; color: var(--blue); margin-bottom: auto; }
.tile-lg { grid-column: span 2; }
.tile-lg h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.glass-blue p, .glass-blue .tile-kicker { color: rgba(255, 255, 255, 0.85); }
.glass-green .tile-kicker { color: var(--green-deep); }
.glass-green p { color: #35502a; }

.tile-wide { grid-column: span 2; }
.tile-wide > div { max-width: 560px; display: flex; flex-direction: column; gap: 10px; }
.tile-wide > div { height: 100%; }
.tile-wide .tile-kicker { margin-bottom: auto; padding-bottom: 20px; }

.tile-stat { justify-content: space-between; }
.tile .stat {
  font-size: clamp(3.5rem, 6vw, 5rem); line-height: 1; font-weight: 700; letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright) 60%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tile .stat-green { background-image: linear-gradient(135deg, var(--green-deep), var(--green)); }
.tile .stat-label { font-weight: 500; color: var(--ink); }

/* ---------- Services gallery ---------- */
.services { padding: clamp(90px, 12vw, 150px) 0 clamp(70px, 9vw, 110px); }
.services-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.services-head .section-title { max-width: 720px; }
.gallery-controls { display: flex; gap: 12px; flex-shrink: 0; }
.gallery-btn { width: 48px; height: 48px; cursor: pointer; font-size: 26px; line-height: 1; padding-bottom: 3px; transition: opacity 0.2s, transform 0.3s var(--ease); }
.gallery-btn:hover { transform: scale(1.06); }
.gallery-btn:disabled { opacity: 0.35; cursor: default; transform: none; }

.gallery {
  --edge: max(22px, calc((100vw - var(--container)) / 2));
  display: grid; grid-auto-flow: column; grid-auto-columns: min(350px, 78vw); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 14px var(--edge) 50px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.gallery::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; display: flex; flex-direction: column; padding: 10px; transition: translate 0.5s var(--ease); }
.card:hover { translate: 0 -6px; }
.card img { width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 20px; background: #dfe8f5; }
.card-body { padding: 20px 16px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-tag { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue); }
.card h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.025em; }
.card-body > p:last-of-type { font-size: 15px; color: var(--ink-soft); }
.card.glass-blue .card-tag { color: #d6ecff; }
.card.glass-blue .card-body > p:last-of-type { color: rgba(255, 255, 255, 0.88); }
/* Demo card: the video preview replaces the picture. */
.card-media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #07101f; }
.card-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-badge {
  position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 7px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff;
  background: rgba(7, 16, 31, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.card-badge .play-glyph { width: 18px; height: 18px; }
.card-badge .play-glyph::before { border-left-width: 6px; border-top-width: 3.5px; border-bottom-width: 3.5px; }

/* Demo pop-up player */
.demo-modal {
  width: min(1100px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px); margin: auto; padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 32px; color: var(--ink);
  background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 40px 100px -30px rgba(7, 16, 31, 0.6);
}
.demo-modal::backdrop { background: rgba(7, 16, 31, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.demo-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 2px 6px 12px 10px; }
.demo-modal-title { font-weight: 700;  font-size: clamp(1.05rem, 2vw, 1.35rem); letter-spacing: -0.02em; }
.demo-modal-close {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--ink); background: rgba(11, 26, 46, 0.07);
}
.demo-modal-close:hover { background: rgba(11, 26, 46, 0.13); }
.demo-modal-video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 120px); border-radius: 20px; background: #000; }

.card-link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; text-decoration: none; }
.card:not(.glass-blue) .card-link { color: var(--blue); }
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* PC: show every card in a grid instead of a swipe row. Demo cards marked card-wide span two columns. */
@media (min-width: 821px) {
  .gallery {
    grid-auto-flow: row dense; grid-auto-columns: auto; grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible; scroll-snap-type: none; padding: 14px var(--edge) 0;
  }
  .gallery .card-wide { grid-column: span 2; }
  .gallery .card-wide .card-body { padding: 18px 16px 12px; }
  .services .gallery-controls,
  .services .gallery-progress { display: none; }
}
@media (min-width: 821px) and (max-width: 1100px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.gallery-progress { height: 4px; border-radius: 4px; background: rgba(11, 26, 46, 0.08); overflow: hidden; }
.gallery-progress span { display: block; height: 100%; width: 20%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-bright), var(--cyan)); transition: transform 0.15s linear; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(80px, 11vw, 140px) 0; }
.faq .section-title { margin-bottom: 36px; }
.faq-list { padding: 6px 34px; border-radius: var(--radius-xl); }
.faq details + details { border-top: 1px solid rgba(11, 26, 46, 0.08); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 52px 26px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); letter-spacing: -0.02em; font-weight: 600; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 22px; font-weight: 400; color: var(--blue);
  background: rgba(255, 255, 255, 0.75); box-shadow: inset 0 1px 0 #fff, 0 4px 10px -4px rgba(20, 60, 120, 0.3);
  transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 52px 26px 0; color: var(--ink-soft); max-width: 720px; }

/* ---------- Contact ---------- */
.contact { padding: clamp(60px, 8vw, 110px) 0 clamp(90px, 12vw, 150px); }
.contact-panel { text-align: center; padding: clamp(48px, 8vw, 100px) clamp(24px, 6vw, 80px); border-radius: 44px; }
.contact-panel h2 { max-width: 820px; margin-inline: auto; font-size: clamp(2rem, 4.8vw, 3.6rem); line-height: 1.08; letter-spacing: -0.04em; font-weight: 700; }
.contact-lead { margin: 22px auto 0; max-width: 640px; color: var(--ink-soft); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.contact-actions { margin-top: 36px; }
.contact-meta { margin: 48px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: left; max-width: 860px; }
.contact-meta div { padding: 18px 20px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.5); box-shadow: inset 0 1px 0 #fff; }
.contact-meta dt { font-size: 13px; color: var(--ink-faint); margin-bottom: 6px; }
.contact-meta dd { margin: 0; font-size: 16px; font-weight: 500; }
.contact-meta a { color: var(--blue-bright); text-decoration: none; }
.contact-meta a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { color: var(--ink-soft); font-size: 13px; border-top: 1px solid rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.35); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.footer-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px; padding: 26px 0 34px; }
.footer-content nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-content a { text-decoration: none; color: var(--ink); }
.footer-content a:hover { text-decoration: underline; }

/* ---------- Reveal (uses `translate` so it never fights the tilt transform) ---------- */
.js [data-reveal] { opacity: 0; translate: 0 40px; transition: opacity 1s var(--ease), translate 1s var(--ease), transform 0.6s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal].is-revealed { opacity: 1; translate: none; }
.js [data-reveal][data-tilt].is-tilting { transition: opacity 1s var(--ease), translate 1s var(--ease), transform 0.12s linear; transition-delay: 0ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; translate: none; }
  .scrub-text .word { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { padding-top: 130px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-card { width: min(300px, 76%); }
  .hero-logo { border-radius: 28px; }
    
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-lg { min-height: 0; }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-tiktok { margin-left: auto; margin-right: 4px; }
  #site-navigation {
    position: absolute; top: 104px; left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px;
    border-radius: 28px; background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: var(--glass-shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98);
    transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
  }
  .site-header.is-menu-open #site-navigation { opacity: 1; visibility: visible; transform: none; }
  #site-navigation a { font-size: 18px; padding: 14px 16px; }
  #site-navigation .nav-cta { margin: 8px 0 0; text-align: center; }
}

@media (max-width: 1120px) and (min-width: 821px), (max-width: 420px) {
  .nav-tiktok { width: 48px; padding: 0; justify-content: center; }
  .nav-tiktok span { display: none; }
}

@media (max-width: 640px) {
  .nav { height: 72px; padding: 0 8px 0 12px; }
  .brand { font-size: 18px; }
  .brand img { width: 68px; border-radius: 10px; }
  #site-navigation { top: 80px; }
  .hero { padding-top: 104px; }
  .container { width: calc(100% - 32px); }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile.tile-lg, .tile.tile-wide { grid-column: auto; }
  .tile.tile-lg { min-height: 280px; }
  .tile { padding: 28px; min-height: 0; }
  .tile-stat { gap: 18px; }
  .services-head { flex-direction: column; align-items: flex-start; }
  .gallery-controls { display: none; }
  .gallery { --edge: 16px; }
  .faq-list { padding: 4px 20px; }
  .contact-meta { grid-template-columns: 1fr; }
  .contact-panel { border-radius: 32px; }
  .footer-content { flex-direction: column; align-items: flex-start; }
}
