/* ============================================================
   coreSpotter — Smart Waist Support for Teen Athletes
   Theme: Tech Blue (#1677FF) + Teal (#00C2A8), light UI
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #1677FF;
  --blue-deep: #0B5BD3;
  --teal: #00C2A8;
  --ink: #101828;
  --slate: #475467;
  --muted: #667085;
  --line: rgba(16, 24, 40, 0.08);
  --bg: #F4F7FB;
  --card: #FFFFFF;
  --navy: #0A1E42;
  --navy-2: #0E2A5C;
  --grad: linear-gradient(135deg, #1677FF 0%, #00C2A8 100%);
  --grad-soft: linear-gradient(135deg, rgba(22,119,255,.12), rgba(0,194,168,.12));
  --shadow-sm: 0 6px 20px rgba(16, 42, 92, 0.07);
  --shadow-md: 0 18px 48px rgba(16, 42, 92, 0.12);
  --shadow-lg: 0 30px 80px rgba(11, 91, 211, 0.18);
  --radius: 20px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
}

/* Self-hosted fonts — latin subset, variable weight, no external requests */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: rgba(22, 119, 255, .2); }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ============ Loader ============ */
.loader {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 22px;
  align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 64px; height: 64px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--blue), var(--teal), rgba(22,119,255,.08), var(--blue));
  animation: spin 1s linear infinite; position: relative;
}
.loader-ring::after {
  content: ""; position: absolute; inset: 8px;
  background: var(--bg); border-radius: 50%;
}
.loader-text {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  letter-spacing: .04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Navbar ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding: 18px 0;
}
.navbar.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(16, 42, 92, 0.08);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { display: block; height: 34px; width: auto; }
.brand-plate {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 14px; background: #fff; border-radius: 14px;
}
.footer .brand-logo { height: 27px; }
.brand-hero-plate {
  display: inline-flex; padding: 18px 24px; background: #fff; border-radius: 20px;
  position: relative; z-index: 1; box-shadow: 0 18px 46px rgba(3, 14, 36, .35);
}
.brand-hero-plate img { display: block; height: clamp(42px, 5vw, 58px); width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 15px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; color: var(--slate);
  transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--blue); background: rgba(22, 119, 255, .07); }
.nav-links a.active { color: var(--blue); background: rgba(22, 119, 255, .1); }
.nav-cta {
  margin-left: 8px; padding: 10px 20px !important;
  background: var(--grad); color: #fff !important;
  border-radius: 12px; box-shadow: 0 8px 22px rgba(22, 119, 255, .28);
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: none; cursor: pointer;
  background: rgba(22, 119, 255, .08); border-radius: 10px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--blue);
  border-radius: 2px; transition: .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero Banner (full screen, shrinks + dims on scroll) ============ */
.hero {
  --p: 0;
  position: relative;
  display: flex; align-items: center;
  height: calc(100vh - 44vh * var(--p));
  height: calc(100svh - 44svh * var(--p));
  min-height: 360px;
  overflow: hidden;
  background: #0A2044;
  will-change: height;
}
/* Full-bleed photo, centred; the picture itself carries the composition. */
.hero-bg {
  position: absolute; inset: 0;
  overflow: hidden;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  transform: scale(calc(1 + 0.05 * var(--p)));
  filter: brightness(calc(1 - 0.35 * var(--p)));
}
.hero-scrim { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.hero-scrim::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(244,247,251,0) 58%, rgba(244,247,251,.32) 80%, rgba(244,247,251,.7) 94%, var(--bg) 100%);
}
.hero-scrim::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: linear-gradient(180deg, rgba(244,247,251,0) 0%, rgba(244,247,251,.22) 62%, var(--bg) 100%);
}
.hero-content {
  position: relative; z-index: 3; width: 100%;
  padding-top: 64px; padding-bottom: 48px;
  opacity: calc(1 - 1.25 * var(--p));
  transform: translateY(calc(-42px * var(--p))) scale(calc(1 - 0.035 * var(--p)));
  transform-origin: left center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 700; line-height: 1.07; letter-spacing: -.02em;
  color: var(--ink); margin: 24px 0 20px;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--blue) 0%, #00A98F 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 1.3vw, 18.5px);
  color: #43536B;
  max-width: 560px; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 14px;
  font-size: 15.5px; font-weight: 700; font-family: var(--font-body);
  transition: transform .25s, box-shadow .25s, background .25s; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 14px 32px rgba(22, 119, 255, .3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(22,119,255,.38); }
.btn-ghost {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-hero-ghost {
  background: rgba(255, 255, 255, .88); color: var(--ink);
  border: 1px solid rgba(16, 24, 40, .12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px rgba(12, 32, 62, .1);
}
.btn-hero-ghost:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 16px 34px rgba(12, 32, 62, .14); }
.hero-scroll {
  position: absolute; left: 50%; bottom: 30px; z-index: 3;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .26em;
  text-transform: uppercase; color: rgba(20, 32, 50, .55);
  opacity: calc(1 - 2.4 * var(--p));
}
.hero-scroll i {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, rgba(20,32,50,.55), transparent);
  animation: scroll-line 1.9s ease-in-out infinite;
}
@keyframes scroll-line {
  0%, 100% { transform: scaleY(.35); opacity: .35; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* Navbar over the banner */
body.banner-page .navbar:not(.scrolled) .nav-links a { color: var(--muted); }
body.banner-page .navbar:not(.scrolled) .nav-links a:hover { color: var(--blue); background: rgba(255, 255, 255, .7); }
body.banner-page .navbar:not(.scrolled) .nav-links a.active { color: var(--blue-deep); background: rgba(255, 255, 255, .85); }
body.banner-page .navbar:not(.scrolled) .nav-toggle { background: rgba(255, 255, 255, .7); }
body.banner-page .navbar:not(.scrolled) .nav-toggle span { background: var(--ink); }

/* ============ Sections ============ */
.section { padding: 100px 0; position: relative; }
.section.tint {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(0,194,168,.07), transparent 60%),
    radial-gradient(800px 400px at 0% 100%, rgba(22,119,255,.08), transparent 60%),
    #fff;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin: 0 0 48px; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px;
}
.section-head:not(.left) .eyebrow::after,
.page-hero .eyebrow::after {
  content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 42px); font-weight: 700;
  line-height: 1.16; letter-spacing: -.02em;
}
.section-desc { margin-top: 16px; color: var(--muted); font-size: 16.5px; }

/* ============ Stats ============ */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.stat-card {
  position: relative; padding: 32px 26px;
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.stat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad); opacity: 0; transition: opacity .35s;
}
.stat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.stat-card:hover::before { opacity: 1; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.1vw, 38px); font-weight: 700;
  line-height: 1.05; letter-spacing: -0.015em;
  white-space: nowrap;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { margin-top: 12px; color: var(--slate); font-size: 14.5px; line-height: 1.55; }
.stat-label sup { color: var(--blue); font-weight: 600; }
.stats-note {
  margin: 44px auto 0; max-width: 780px; text-align: center;
  font-size: 18px; color: var(--ink); font-weight: 500;
  padding: 24px 34px; border-radius: 16px;
  background: var(--grad-soft); border: 1px solid rgba(22,119,255,.14);
}

/* ============ Video ============ */
.video-shell {
  max-width: 920px; margin: 0 auto;
  border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.7);
  position: relative; background: var(--navy);
}
.video-frame { aspect-ratio: 16 / 9; width: 100%; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.story-video {
  display: block; width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0A1E42;
}
.video-placeholder {
  aspect-ratio: 16 / 9;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; color: #fff; text-align: center; padding: 40px;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(0,194,168,.22), transparent 60%),
    radial-gradient(600px 300px at 10% 100%, rgba(22,119,255,.3), transparent 60%),
    linear-gradient(160deg, #0A1E42, #12335F);
}
.play-btn {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 12px rgba(22,119,255,.18), 0 18px 40px rgba(0,0,0,.35);
  animation: pulse-ring 2.4s infinite;
}
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 10px rgba(22,119,255,.16), 0 18px 40px rgba(0,0,0,.35); }
  50% { box-shadow: 0 0 0 22px rgba(22,119,255,.06), 0 18px 40px rgba(0,0,0,.35); }
}
.video-placeholder h3 { font-family: var(--font-display); font-size: 24px; }
.video-placeholder p { color: rgba(255,255,255,.72); font-size: 14.5px; }

/* ============ References ============ */
.refs {
  margin-top: 70px; padding: 30px 34px;
  background: rgba(16, 24, 40, .03);
  border: 1px solid var(--line); border-radius: 16px;
}
.refs h4 {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.refs ol { padding-left: 0; list-style: none; }
.refs li { font-size: 12.5px; color: #98A2B3; line-height: 1.75; margin-bottom: 6px; }
.refs a { color: #7FA8E8; word-break: break-all; }
.refs a:hover { text-decoration: underline; }

/* ============ Story / split layouts ============ */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.split.rev > .split-media { order: 2; }
.split-media { position: relative; }
.split-media img {
  border-radius: 22px; box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,.7);
}
.split-media .glow {
  position: absolute; inset: auto -30px -30px auto; width: 60%; height: 60%;
  background: var(--grad-soft); border-radius: 22px; z-index: -1;
  filter: blur(10px);
}
.split-body h3 {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  margin-bottom: 18px; letter-spacing: -.01em;
}
.split-body p { color: var(--slate); margin-bottom: 16px; }
.img-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.img-duo img { border-radius: 18px; box-shadow: var(--shadow-md); height: 100%; object-fit: cover; }

/* ============ Cards ============ */
.card-grid { display: grid; gap: 24px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.info-card {
  padding: 34px 28px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .35s, box-shadow .35s, border-color .35s;
  position: relative; overflow: hidden;
}
.info-card::after {
  content: ""; position: absolute; width: 160px; height: 160px;
  right: -60px; top: -60px; border-radius: 50%;
  background: var(--grad-soft); opacity: 0; transition: opacity .4s;
}
.info-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(22,119,255,.25); }
.info-card:hover::after { opacity: 1; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--grad-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; position: relative; z-index: 1;
}
.info-card h4 { font-family: var(--font-display); font-size: 19px; margin-bottom: 10px; position: relative; z-index: 1; }
.info-card p { color: var(--muted); font-size: 14.8px; position: relative; z-index: 1; }

/* feature card with image */
.feature-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s, box-shadow .35s;
  display: flex; flex-direction: column;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.feature-media { aspect-ratio: 16 / 10; overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.feature-card:hover .feature-media img { transform: scale(1.05); }
.feature-body { padding: 26px 26px 30px; }
.feature-body h4 { font-family: var(--font-display); font-size: 19px; margin-bottom: 10px; }
.feature-body p { color: var(--muted); font-size: 14.8px; }

/* ============ Use cases ============ */
.usecase-group { margin-bottom: 64px; }
.usecase-group-head {
  display: flex; align-items: center; gap: 16px; margin-bottom: 28px;
}
.usecase-group-head .tag {
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--grad); color: #fff; letter-spacing: .04em;
}
.usecase-group-head h3 { font-family: var(--font-display); font-size: 26px; }
.usecase-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .35s, box-shadow .35s;
}
.usecase-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.usecase-media { aspect-ratio: 1 / 1; overflow: hidden; background: #DCEBFF; }
.usecase-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.usecase-card:hover .usecase-media img { transform: scale(1.05); }
.usecase-body { padding: 24px; }
.usecase-body h4 { font-family: var(--font-display); font-size: 19px; margin-bottom: 4px; }
.usecase-body .en { color: var(--blue); font-size: 13px; font-weight: 600; letter-spacing: .03em; margin-bottom: 14px; }
.detect-title {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.detect-list li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13.8px; color: var(--slate); padding: 5px 0;
}
.detect-list li::before {
  content: ""; flex-shrink: 0; width: 7px; height: 7px; margin-top: 8px;
  border-radius: 50%; background: var(--grad);
}

/* ============ Team ============ */
.team-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  padding: 36px 28px; text-align: center;
  transition: transform .35s, box-shadow .35s;
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.avatar {
  width: 104px; height: 104px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 32px; font-weight: 700;
  box-shadow: 0 12px 28px rgba(22, 119, 255, .3);
  border: 4px solid #fff; outline: 1px solid var(--line);
}
.avatar-photo { display: block; object-fit: cover; object-position: center 24%; background: #E9EEF6; }
.avatar:not(.avatar-photo) {
  background: linear-gradient(135deg, rgba(22, 119, 255, .16), rgba(0, 194, 168, .16));
  color: var(--blue-deep);
  box-shadow: 0 10px 24px rgba(22, 119, 255, .16);
}
.team-card h4 { font-family: var(--font-display); font-size: 20px; }
.team-role {
  display: inline-block; margin: 10px 0 6px; padding: 5px 14px;
  border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: rgba(22,119,255,.1); color: var(--blue-deep); letter-spacing: .05em;
}
.team-focus { font-size: 13px; color: var(--teal); font-weight: 600; margin-bottom: 14px; }
.team-card p.bio { color: var(--muted); font-size: 14.2px; text-align: left; }

/* ============ Impact ============ */
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.impact-card {
  padding: 36px 30px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.impact-card::before {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  right: -70px; bottom: -70px; background: rgba(22,119,255,.25); filter: blur(10px);
}
.impact-card::after {
  content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%;
  left: -50px; top: -50px; background: rgba(0,194,168,.18); filter: blur(10px);
}
.impact-num {
  font-family: var(--font-display); font-size: 40px; font-weight: 700;
  background: linear-gradient(135deg, #6FB2FF, #4AE3CE);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative; z-index: 1;
}
.impact-card h4 { font-size: 17px; margin: 10px 0 12px; position: relative; z-index: 1; font-family: var(--font-display); }
.impact-card p { color: rgba(255,255,255,.72); font-size: 14.2px; position: relative; z-index: 1; }

/* ============ Prototype gallery ============ */
/* ============ Prototype Gallery (carousel) ============ */
.gallery { position: relative; }

.gallery-stage {
  position: relative; overflow: hidden;
  height: clamp(380px, 60vh, 640px);
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 15% 10%, rgba(22, 119, 255, .07), transparent 62%),
    linear-gradient(160deg, #F9FBFF 0%, #ECF3FD 100%);
  box-shadow: var(--shadow-md);
  touch-action: pan-y;
}
.g-slide {
  position: absolute; inset: 0; margin: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 26px 30px;
  opacity: 0; transform: scale(.97);
  transition: opacity .5s ease, transform .7s cubic-bezier(.22,.8,.3,1);
  pointer-events: none;
}
.g-slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; cursor: zoom-in; }
.g-slide img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(12, 32, 62, .16);
}

.g-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .88); color: var(--ink);
  border: 1px solid rgba(16, 24, 40, .08);
  box-shadow: 0 14px 30px rgba(12, 32, 62, .16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  cursor: pointer; z-index: 4;
  transition: background .25s, box-shadow .25s, transform .25s;
}
.g-arrow:hover { background: #fff; box-shadow: 0 18px 36px rgba(12, 32, 62, .22); }
.g-prev { left: 18px; }
.g-next { right: 18px; }
.g-prev:hover { transform: translateY(-50%) translateX(-3px); }
.g-next:hover { transform: translateY(-50%) translateX(3px); }

.g-index {
  position: absolute; top: 18px; left: 20px; z-index: 4;
  display: inline-flex; align-items: baseline; gap: 3px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(16, 24, 40, .06);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-display); font-size: 12px; color: var(--muted);
}
.g-index b { font-size: 14.5px; color: var(--blue-deep); }

.g-expand {
  position: absolute; top: 18px; right: 20px; z-index: 4;
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .88); color: var(--blue);
  border: 1px solid rgba(16, 24, 40, .06);
  box-shadow: 0 10px 24px rgba(12, 32, 62, .12);
  cursor: pointer; transition: background .25s, transform .25s;
}
.g-expand:hover { background: #fff; transform: translateY(-2px); }

.g-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 4; background: rgba(16, 24, 40, .06); }
.g-progress i { display: block; height: 100%; width: 0; background: var(--grad); }

.g-caption { margin-top: 22px; min-height: 62px; max-width: 820px; }
.g-caption h4 { font-family: var(--font-display); font-size: 20px; margin-bottom: 7px; }
.g-caption p { color: var(--muted); font-size: 14.6px; line-height: 1.65; }

.g-thumbs {
  margin-top: 18px; display: flex; gap: 12px;
  overflow-x: auto; padding: 4px 2px 10px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.g-thumbs::-webkit-scrollbar { display: none; }
.g-thumb {
  flex: 0 0 auto; width: 104px; height: 66px; padding: 0;
  border-radius: 11px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: #fff;
  opacity: .58; box-shadow: 0 6px 16px rgba(12, 32, 62, .08);
  transition: opacity .25s, border-color .25s, transform .25s;
}
.g-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-thumb:hover { opacity: .9; transform: translateY(-2px); }
.g-thumb.is-active { opacity: 1; border-color: var(--blue); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(8, 20, 45, .88); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: .35s;
  padding: 40px; cursor: zoom-out;
}
.lightbox.show { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1100px, 92vw); max-height: 86vh;
  border-radius: 16px; box-shadow: 0 40px 100px rgba(0,0,0,.5);
}
.lightbox .lb-cap { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-size: 14px; }

/* ============ Timeline ============ */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding: 10px 0; }
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(22,119,255,.15), var(--blue), var(--teal), rgba(0,194,168,.15));
  border-radius: 3px;
}
.tl-item {
  position: relative; width: 50%; padding: 0 46px 56px 0;
}
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 56px 46px; }
.tl-node {
  position: absolute; top: 4px; right: -11px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 5px solid var(--blue);
  box-shadow: 0 0 0 6px rgba(22,119,255,.12);
}
.tl-item:nth-child(even) .tl-node { right: auto; left: -11px; border-color: var(--teal); box-shadow: 0 0 0 6px rgba(0,194,168,.12); }
.tl-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px 28px;
  box-shadow: var(--shadow-sm); transition: transform .35s, box-shadow .35s;
}
.tl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tl-step {
  display: inline-block; font-family: var(--font-display);
  font-size: 13px; font-weight: 700; letter-spacing: .1em;
  color: var(--teal); margin-bottom: 6px;
}
.tl-item:nth-child(odd) .tl-step { color: var(--blue); }
.tl-card h4 { font-family: var(--font-display); font-size: 20px; margin-bottom: 2px; }
.tl-date { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .06em; margin-bottom: 12px; }
.tl-card p { color: var(--slate); font-size: 14.5px; margin-bottom: 8px; }
.tl-card p:last-child { margin-bottom: 0; }

/* Future milestones — tinted "upcoming" treatment */
.tl-item.future .tl-card {
  background: linear-gradient(135deg, rgba(22, 119, 255, .09) 0%, rgba(0, 194, 168, .13) 100%);
  border: 1.5px solid rgba(22, 119, 255, .3);
  box-shadow: 0 14px 34px rgba(22, 119, 255, .12);
}
.tl-item.future .tl-node {
  border-color: var(--teal);
  box-shadow: 0 0 0 6px rgba(0, 194, 168, .16);
}
.tl-item.future .tl-step { color: var(--teal); }

/* ============ Brand page ============ */
.brand-hero-card {
  border-radius: 26px; padding: 56px 52px; color: #fff;
  background:
    radial-gradient(600px 320px at 90% 0%, rgba(0,194,168,.3), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(22,119,255,.35), transparent 60%),
    linear-gradient(150deg, var(--navy), var(--navy-2));
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.brand-hero-card .wordmark {
  font-family: var(--font-display); font-size: clamp(38px, 5vw, 58px); font-weight: 700;
  letter-spacing: -.02em; position: relative; z-index: 1;
}
.brand-hero-card .wordmark em { font-style: normal; color: #4AE3CE; }
.brand-hero-card p { margin-top: 18px; max-width: 720px; color: rgba(255,255,255,.8); position: relative; z-index: 1; }
.palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.swatch {
  border-radius: 16px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.swatch .color { height: 110px; }
.swatch .meta { padding: 14px 16px; }
.swatch .meta b { font-size: 14px; display: block; }
.swatch .meta span { font-size: 12.5px; color: var(--muted); font-family: var(--font-display); }
.type-card {
  padding: 30px; background: #fff; border-radius: 18px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.type-card .sample-display { font-family: var(--font-display); font-size: 34px; font-weight: 700; margin-bottom: 6px; }
.type-card .sample-body { font-size: 16px; color: var(--slate); margin-bottom: 14px; }
.type-card .meta { font-size: 12.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }

/* ============ Contact ============ */
.contact-grid {
  display: grid; grid-template-columns: .82fr 1.18fr; gap: 32px;
  max-width: 1060px; margin: 0 auto; align-items: start;
}
.contact-info { display: grid; gap: 22px; }
.contact-form {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 34px; display: grid; gap: 18px;
}
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cf-field { display: grid; gap: 8px; }
.cf-field label {
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.cf-field label span { color: var(--blue); }
.cf-field input, .cf-field select, .cf-field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: #F9FBFF; border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.cf-field textarea { resize: vertical; min-height: 132px; line-height: 1.6; }
.cf-field input::placeholder, .cf-field textarea::placeholder { color: #98A2B3; }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus {
  outline: none; background: #fff; border-color: rgba(22, 119, 255, .55);
  box-shadow: 0 0 0 4px rgba(22, 119, 255, .12);
}
.cf-honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.cf-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.cf-submit[disabled] { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
.cf-status { font-size: 13.6px; font-weight: 600; margin: 0; }
.cf-status.success { color: #0E9F6E; }
.cf-status.error { color: #D92D20; }
.contact-card {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 30px; background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s, box-shadow .35s;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.contact-card .ic {
  width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0;
  background: var(--grad-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.contact-card h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.contact-card p, .contact-card a { font-size: 16px; font-weight: 600; color: var(--ink); overflow-wrap: break-word; }
.contact-card a:hover { color: var(--blue); }

/* ============ CTA banner ============ */
.cta-banner {
  border-radius: 26px; padding: 60px 52px; text-align: center; color: #fff;
  background:
    radial-gradient(500px 260px at 90% 10%, rgba(0,194,168,.35), transparent 60%),
    linear-gradient(140deg, #0B5BD3, #1677FF 55%, #00A3C2);
  box-shadow: var(--shadow-lg);
}
.cta-banner h3 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 28px; }
.cta-banner .btn { background: #fff; color: var(--blue-deep); }
.cta-banner .btn:hover { transform: translateY(-3px); }

/* ============ Footer ============ */
.footer {
  background: linear-gradient(180deg, #0A1730, #0A1E42);
  color: rgba(255,255,255,.72); padding: 70px 0 34px; margin-top: 40px;
  position: relative; overflow: hidden;
}
.footer::before {
  content: ""; position: absolute; top: -140px; right: -100px;
  width: 420px; height: 420px; border-radius: 50%;
  background: rgba(22,119,255,.14); filter: blur(50px);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px;
  position: relative; z-index: 1;
}
.footer-desc { margin-top: 16px; font-size: 14px; max-width: 340px; }
.footer h5 {
  color: #fff; font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 18px; font-family: var(--font-display);
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14.5px; transition: color .25s; }
.footer-links a:hover { color: #6FB2FF; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: 14px; align-items: flex-start; }
.footer-contact .ic { color: #4AE3CE; flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  margin-top: 50px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,.45);
  position: relative; z-index: 1;
}

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.22,.8,.32,1), transform .8s cubic-bezier(.22,.8,.32,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }
/* Hero entrance plays slower, starting after the loader clears */
.hero .reveal { transition-duration: 1.25s; }
.hero .reveal.d1 { transition-delay: .16s; }
.hero .reveal.d2 { transition-delay: .34s; }
.hero .reveal.d3 { transition-delay: .52s; }

/* ============ Page hero (sub pages) ============ */
.page-hero {
  padding: 160px 0 80px; position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -20%, rgba(0,194,168,.16), transparent 60%),
    radial-gradient(800px 500px at 0% 0%, rgba(22,119,255,.18), transparent 55%),
    linear-gradient(180deg, #F8FBFF, var(--bg));
  text-align: center;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(22,119,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,119,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000 30%, transparent 100%);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 54px); font-weight: 700; letter-spacing: -.02em;
  position: relative;
}
.page-hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-hero p { margin: 18px auto 0; max-width: 640px; color: var(--muted); font-size: 17px; position: relative; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .hero {
    height: calc(100vh - 40vh * var(--p));
    height: calc(100svh - 40svh * var(--p));
    min-height: 360px;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3, .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .palette { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.rev > .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; max-width: 680px; }
  .gallery-stage { height: clamp(320px, 50vh, 540px); }
  .g-slide { padding: 22px 24px; }
  .g-arrow { width: 46px; height: 46px; }
}
@media (max-width: 680px) {
  .section { padding: 72px 0; }
  .nav-links {
    position: fixed; top: 64px; left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(255,255,255,.97); backdrop-filter: blur(14px);
    border: 1px solid var(--line); border-radius: 18px;
    padding: 14px; box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: .3s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 13px 16px; }
  .nav-cta { margin: 6px 0 0; text-align: center; }
  .nav-toggle { display: flex; }
  .stats-grid, .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4,
  .impact-grid, .palette, .contact-grid, .img-duo { grid-template-columns: 1fr; }
  .timeline::before { left: 12px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 44px 44px; }
  .tl-node, .tl-item:nth-child(even) .tl-node { left: 1px; right: auto; }
  .brand-hero-card, .cta-banner { padding: 40px 28px; }
  .contact-form { padding: 24px; }
  .cf-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .gallery-stage { height: 262px; border-radius: 18px; }
  .g-slide { padding: 12px; }
  .g-slide img { border-radius: 8px; }
  .g-arrow { width: 38px; height: 38px; }
  .g-prev { left: 10px; }
  .g-next { right: 10px; }
  .g-index { top: 12px; left: 12px; padding: 5px 11px; font-size: 11px; }
  .g-index b { font-size: 13px; }
  .g-expand { top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 10px; }
  .g-caption { margin-top: 16px; }
  .g-caption h4 { font-size: 17px; }
  .g-caption p { font-size: 13.6px; }
  .g-thumb { width: 78px; height: 50px; }
  .hero {
    height: calc(100vh - 30vh * var(--p));
    height: calc(100svh - 30svh * var(--p));
    min-height: 470px;
  }
  .hero-content { padding-top: 112px; padding-bottom: 96px; }
  .hero-sub { margin-bottom: 28px; }
  .hero-scroll { display: none; }
  .hero-bg img { object-position: center 20%; }
}
