/* ============================================================
   madushka.com — shared styles
   Liquid-glass design system, harmonized with GlassPad brand
   ============================================================ */

:root {
  --glass-fill: rgba(255, 255, 255, .52);
  --glass-fill-strong: rgba(255, 255, 255, .74);
  --glass-fill-soft: rgba(255, 255, 255, .34);
  --glass-border: rgba(255, 255, 255, .65);
  --glass-shadow: 0 8px 32px rgba(31, 42, 90, .14), inset 0 1px 0 rgba(255, 255, 255, .5);
  --glass-shadow-hover: 0 16px 48px rgba(31, 42, 90, .2), inset 0 1px 0 rgba(255, 255, 255, .6);
  --blur: 22px;
  --accent: #0a84ff;
  --accent-2: #bf5af2;
  --accent-grad: linear-gradient(135deg, #0a84ff, #bf5af2);
  --accent-grad-soft: linear-gradient(135deg, rgba(10, 132, 255, .12), rgba(191, 90, 242, .12));
  --text: #1d1d1f;
  /* Darkened from #6e6e73 for WCAG AA contrast on gradient page backgrounds */
  --text-soft: #54545a;
  --divider: rgba(60, 60, 67, .14);
  --page-bg: #eef2fb;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-ui: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --nav-h: 64px;
}

html.dark {
  --glass-fill: rgba(28, 28, 32, .55);
  --glass-fill-strong: rgba(32, 32, 38, .82);
  --glass-fill-soft: rgba(28, 28, 32, .38);
  --glass-border: rgba(255, 255, 255, .12);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
  --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .09);
  --accent-grad-soft: linear-gradient(135deg, rgba(10, 132, 255, .18), rgba(191, 90, 242, .18));
  --text: #f5f5f7;
  --text-soft: #a1a1a6;
  --divider: rgba(255, 255, 255, .1);
  --page-bg: #111114;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--page-bg);
  min-height: 100vh;
  line-height: 1.6;
  transition: color .3s, background .3s;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

::selection { background: rgba(10, 132, 255, .25); }

/* ---------- Animated background ---------- */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--page-bg);
  transition: background .3s;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  animation: drift 26s ease-in-out infinite;
  will-change: transform;
}
.blob.b1 { width: 560px; height: 560px; background: #8ec5ff; top: -140px; left: -120px; }
.blob.b2 { width: 500px; height: 500px; background: #e3a6ff; bottom: -160px; right: -100px; animation-delay: -8s; }
.blob.b3 { width: 400px; height: 400px; background: #a8c8ff; top: 38%; left: 58%; animation-delay: -14s; }
.blob.b4 { width: 340px; height: 340px; background: #d9b8ff; top: 62%; left: 8%; animation-delay: -20s; opacity: .4; }

html.dark .blob.b1 { background: #1e3a6e; }
html.dark .blob.b2 { background: #4a2266; }
html.dark .blob.b3 { background: #1e2c5e; }
html.dark .blob.b4 { background: #38215a; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(60px, -40px) scale(1.08); }
  50%      { transform: translate(-30px, 50px) scale(.95); }
  75%      { transform: translate(-60px, -30px) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Layout ---------- */
.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

main { padding-top: calc(var(--nav-h) + 24px); }

/* Skip link — first focusable control for keyboard users */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg, #fff);
  font-weight: 750;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-120%);
  transition: transform .2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

section { padding: 56px 0; }

/* ---------- Utilities (replace common inline styles) ---------- */
.mt-14 { margin-top: 14px; }
.link-accent { color: var(--accent); font-weight: 700; text-decoration: none; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, 94%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-radius: var(--radius-lg);
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: background .3s, box-shadow .3s;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.3px;
}
.nav-brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-brand .brand-grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 14.5px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--glass-fill-soft); }
.nav-links a.active {
  color: #fff;
  background: var(--accent-grad);
  box-shadow: 0 4px 14px rgba(96, 111, 248, .35);
}
.nav-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle, .nav-burger, .sound-toggle, .palette-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-fill-soft);
  color: var(--text);
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.theme-toggle:hover, .nav-burger:hover, .sound-toggle:hover, .palette-toggle:hover { transform: scale(1.06); background: var(--glass-fill-strong); }
.theme-toggle svg, .sound-toggle svg, .palette-toggle svg { width: 19px; height: 19px; }
.sound-toggle .icon-sound-on { display: none; }
.sound-toggle.sound-on .icon-sound-on { display: block; }
.sound-toggle.sound-on .icon-sound-off { display: none; }
.theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-sun { display: block; }
html.dark .theme-toggle .icon-moon { display: none; }

.nav-burger { display: none; }
.nav-burger svg { width: 20px; height: 20px; }

@media (max-width: 720px) {
  .nav-burger { display: grid; }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: var(--radius-lg);
    background: var(--glass-fill-strong);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
    backdrop-filter: blur(var(--blur)) saturate(160%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { padding: 12px 16px; font-size: 15.5px; text-align: center; }
}

/* Very small screens: keep the navbar from overflowing. The sound toggle
   stays reachable via the command palette ("Toggle sound"). */
@media (max-width: 440px) {
  .sound-toggle { display: none; }
  .nav-brand { font-size: 15px; gap: 8px; }
  .nav-brand img { width: 26px; height: 26px; }
  .nav-actions { gap: 6px; }
}

/* ---------- Typography helpers ---------- */
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; }

.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glass toolkit wordmark: Glass + gradient suffix (Pad, Compress, …) */

.section-head { text-align: center; margin-bottom: 40px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-grad-soft);
  border: 1px solid var(--glass-border);
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h1,
.section-head h2 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 800; }
.section-head p { color: var(--text-soft); max-width: 620px; margin: 12px auto 0; font-size: 16.5px; }

/* ---------- Glass card ---------- */
.glass {
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s, background .3s;
}
.glass.hoverable:hover {
  transform: translateY(-5px);
  box-shadow: var(--glass-shadow-hover);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .25s, background .25s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff;
  background: var(--accent-grad);
  box-shadow: 0 8px 24px rgba(96, 111, 248, .38);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 32px rgba(96, 111, 248, .48); }
.btn-glass {
  color: var(--text);
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.btn-glass:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--glass-shadow-hover); }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 40px 0 64px;
}
.hero-card {
  width: 100%;
  padding: clamp(36px, 6vw, 72px);
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 55%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .35), transparent);
  pointer-events: none;
}
html.dark .hero-card::before { background: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent); }

/* Portrait ring — gradient frame + glass inset */
.portrait-ring {
  display: inline-flex;
  padding: 3px;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow:
    0 12px 36px rgba(10, 132, 255, .28),
    0 4px 18px rgba(191, 90, 242, .2),
    inset 0 1px 0 rgba(255, 255, 255, .35);
}
.portrait-ring img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, .72);
  background: var(--glass-fill-strong);
}
html.dark .portrait-ring {
  box-shadow:
    0 14px 40px rgba(0, 0, 0, .55),
    0 0 28px rgba(10, 132, 255, .22),
    0 0 40px rgba(191, 90, 242, .14),
    inset 0 1px 0 rgba(255, 255, 255, .1);
}
html.dark .portrait-ring img {
  border-color: rgba(28, 28, 32, .88);
}

.hero-avatar {
  display: flex;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.hero-avatar .portrait-ring {
  width: 140px;
  height: 140px;
}
@media (max-width: 640px) {
  .hero-avatar .portrait-ring {
    width: 100px;
    height: 100px;
  }
  .hero-avatar { margin-bottom: 16px; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--glass-fill-soft);
  border: 1px solid var(--glass-border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 3px rgba(48, 209, 88, .22);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(48, 209, 88, .22); }
  50%      { box-shadow: 0 0 0 6px rgba(48, 209, 88, .08); }
}

.hero h1 {
  font-size: clamp(36px, 6.5vw, 64px);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 14px;
}
.hero .tagline {
  font-size: clamp(16px, 2.4vw, 21px);
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 10px;
}
.hero .tagline .sep { opacity: .45; margin: 0 6px; }
.hero .sub {
  max-width: 640px;
  margin: 0 auto 30px;
  color: var(--text-soft);
  font-size: 16.5px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* staged hero entrance — delays kept short so the hero copy (LCP) paints early */
.hero-anim { opacity: 0; transform: translateY(24px); animation: heroIn .55s cubic-bezier(.2, .7, .3, 1) forwards; }
.hero-anim.d0 { animation-delay: .02s; }
.hero-anim.d1 { animation-delay: .07s; }
.hero-anim.d2 { animation-delay: .13s; }
.hero-anim.d3 { animation-delay: .19s; }
.hero-anim.d4 { animation-delay: .25s; }
.hero-anim.d5 { animation-delay: .32s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }
.hero-avatar.hero-anim {
  animation-name: heroAvatarIn;
}
@keyframes heroAvatarIn {
  from { opacity: 0; transform: translateY(20px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Reveal on scroll ----------
   .reveal stays visible by default so above-the-fold content (often the LCP
   element) paints before JS runs. main.js adds .reveal-armed only to elements
   below the fold, which then animate in on scroll. */
.reveal {
  transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}
.reveal.reveal-armed { opacity: 0; transform: translateY(28px); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.dl-1 { transition-delay: .08s; }
.reveal.dl-2 { transition-delay: .16s; }
.reveal.dl-3 { transition-delay: .24s; }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Feature / skill cards ---------- */
.card { padding: 26px; }
.card .card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(96, 111, 248, .35);
  margin-bottom: 16px;
}
.card .card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: 14.5px; }
.card ul { list-style: none; margin-top: 10px; }
.card ul li {
  color: var(--text-soft);
  font-size: 14px;
  padding: 4px 0 4px 22px;
  position: relative;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-grad);
}

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: transform .2s, box-shadow .2s;
}
.chip:hover { transform: translateY(-2px) scale(1.04); box-shadow: var(--glass-shadow); }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: var(--accent-grad);
  opacity: .5;
}
.tl-item { position: relative; padding: 0 0 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent-grad);
  border: 3px solid var(--page-bg);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, .25);
  transition: border-color .3s;
}
.tl-item .tl-card { padding: 20px 24px; }
.tl-item .tl-year {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 4px;
}
.tl-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.tl-item p { color: var(--text-soft); font-size: 14.5px; }

/* ---------- Stats ---------- */
.stat { text-align: center; padding: 24px 16px; }
.stat .num {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .label { color: var(--text-soft); font-size: 13.5px; font-weight: 600; margin-top: 4px; }

/* ---------- Social buttons ---------- */
.social-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 14.5px;
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: transform .2s, box-shadow .25s;
}
.social-btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: var(--glass-shadow-hover); }
.social-btn svg { width: 20px; height: 20px; }
.social-btn.yt svg { color: #ff0033; }
.social-btn.ig svg { color: #e1306c; }
.social-btn.fb svg { color: #1877f2; }
.social-btn.tt svg { color: #010101; }
html.dark .social-btn.tt svg { color: #f2f2f2; }
.social-btn.gp svg { color: var(--accent); }
.social-btn.mail svg { color: var(--accent-2); }

/* ---------- Footer ---------- */
.footer {
  margin: 60px auto 24px;
  width: min(1120px, 94%);
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer .f-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 15.5px; }
.footer .f-brand img { width: 26px; height: 26px; border-radius: 7px; }
.footer nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.footer nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.footer nav a:hover { color: var(--text); background: var(--glass-fill-soft); }
.footer .f-copy {
  color: var(--text-soft);
  font-size: 13px;
  text-align: center;
}

/* ---------- Project cards ---------- */
.project-hero {
  padding: clamp(30px, 5vw, 56px);
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.project-hero::after {
  content: "";
  position: absolute;
  inset: -40% 55% 30% -20%;
  background: radial-gradient(closest-side, rgba(10, 132, 255, .16), transparent);
  pointer-events: none;
}
.project-hero .ph-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-grad);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(96, 111, 248, .35);
}
.project-hero h1,
.project-hero h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 12px; }
.project-hero p { color: var(--text-soft); font-size: 16px; margin-bottom: 12px; }
.project-hero .ph-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  background: var(--glass-fill-soft);
  padding: 26px;
  display: grid;
  place-items: center;
}
.project-hero .ph-visual img { width: 100%; max-width: 320px; height: auto; }
@media (max-width: 820px) {
  .project-hero { grid-template-columns: 1fr; }
  .project-hero .ph-visual { order: -1; }
}

/* ---------- Tools hub & project tool strips ---------- */
.hub-section { padding-top: 8px; }
.hub-section-head {
  margin-bottom: 22px;
  max-width: 720px;
}
.hub-section-head .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.hub-section-head h2 {
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 800;
  margin: 0 0 8px;
}
.hub-section-head p {
  color: var(--text-soft);
  font-size: 16px;
  margin: 0;
  line-height: 1.55;
}
.tool-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tool-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tool-card-body p { color: var(--text-soft); margin: 0 0 16px; flex: 1; }
.tool-card-body h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
}
.tool-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}
.tool-card-thumb {
  display: block;
  text-decoration: none;
  color: inherit;
}
.tool-card-thumb img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}
.tool-card-compact .tool-card-body { padding: 20px 22px 22px; }
.tool-card-compact h3 { font-size: 20px; }

/* Glass suite strip + Compress live demo on /tools/ */
.glass-suite {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(18px, 3vw, 28px);
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--radius-xl);
}
.glass-suite-copy h2 {
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 800;
  margin: 0 0 10px;
}
.glass-suite-copy p {
  color: var(--text-soft);
  margin: 0 0 18px;
  max-width: 46ch;
}
.glass-suite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.glass-suite-marks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.glass-suite-marks img {
  width: min(100%, 260px);
  height: auto;
}
.suite-plus {
  font-weight: 800;
  font-size: 1.4rem;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.compress-demo {
  padding: clamp(18px, 3vw, 26px);
  border-radius: var(--radius-xl);
}
.compress-demo-stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,.06);
}
.compress-demo-stage canvas {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.compress-demo-stage input[type="range"] {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  width: calc(100% - 28px);
  margin: 0 14px;
  accent-color: var(--accent);
}
.compress-demo-labels {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.45);
}
.compress-demo-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.compress-demo-meta p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}
@media (max-width: 820px) {
  .glass-suite { grid-template-columns: 1fr; }
  .glass-suite-marks { order: -1; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .suite-plus { font-size: 1.1rem; }
}
.tools-workflow {
  padding: clamp(18px, 3vw, 24px) clamp(20px, 3.5vw, 28px);
  border-radius: var(--radius-xl);
  margin-bottom: 22px;
}
.tools-workflow ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 6px;
}
.tools-workflow li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.tools-workflow .wf-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.tools-workflow .wf-arrow {
  color: var(--text-soft);
  font-weight: 800;
  padding: 0 2px;
}
.tools-travel-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
}
.tools-travel-grid .wf-connector {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 28px;
  font-weight: 800;
  padding-top: 80px;
}
.proj-tools-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.proj-tool-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}
.proj-tool-tile:hover { color: inherit; }
.proj-tool-tile.is-hub {
  background: linear-gradient(135deg, rgba(96, 111, 248, .12), rgba(10, 132, 255, .08));
  border: 1px solid rgba(96, 111, 248, .22);
}
.proj-tool-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.proj-tool-top img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.proj-tool-top img.is-logo { object-fit: contain; padding: 4px; background: var(--glass-fill-soft); }
.proj-tool-top strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}
.proj-tool-top span {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 2px;
  line-height: 1.35;
}
.proj-tool-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.proj-tool-links .btn { font-size: 13px; padding: 8px 12px; }
@media (max-width: 900px) {
  .tools-travel-grid {
    grid-template-columns: 1fr;
  }
  .tools-travel-grid .wf-connector {
    padding: 0;
    transform: rotate(90deg);
  }
}

/* ---------- Zetova Journeys brand ---------- */
.zj-logo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  padding: 5px;
  border-radius: 50%;
  background: var(--glass-fill-strong);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  flex-shrink: 0;
}
.zj-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.zj-logo.sm { width: 48px; height: 48px; padding: 3px; }
.zj-logo.lg { width: 96px; height: 96px; padding: 6px; }
.zj-brand-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.zj-brand-head h3 { margin: 0; }
.zj-brand-head .zj-kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 4px;
}
.zj-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.zj-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  vertical-align: middle;
  color: inherit;
}
a.chip.zj-inline:hover { color: inherit; }
.zj-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--glass-fill-soft);
  border: 1px solid var(--glass-border);
}
.zj-callout-copy { flex: 1 1 220px; min-width: 0; }
.zj-callout-copy strong { display: block; font-size: 16px; margin-bottom: 4px; }
.zj-callout-copy p { margin: 0; color: var(--text-soft); font-size: 14px; }

/* ---------- Contact ---------- */
.contact-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-xl);
  text-align: center;
}
.contact-card h1,
.contact-card h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin-bottom: 12px; }
.contact-card > p { color: var(--text-soft); font-size: 16px; max-width: 520px; margin: 0 auto 28px; }
.contact-groups {
  display: grid;
  gap: 18px;
  margin: 8px 0 8px;
  text-align: left;
}
.contact-group {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--glass-fill-soft);
  border: 1px solid var(--glass-border);
}
.contact-group-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.contact-group .social-row { justify-content: flex-start; }
.contact-group .zj-brand-head { margin-bottom: 12px; }
.contact-loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--glass-fill-soft);
  border: 1px solid var(--glass-border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
}
.contact-loc svg { width: 16px; height: 16px; color: var(--accent); }

/* ---------- Photo of the Day (home) ---------- */
.potd-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  padding: 10px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  align-items: stretch;
}
.potd-media {
  position: relative;
  border-radius: calc(var(--radius-xl) - 6px);
  overflow: hidden;
  min-height: 260px;
  background: var(--glass-fill-soft);
}
.potd-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  transition: opacity .35s ease;
}
.potd-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    var(--glass-fill-soft) 25%,
    rgba(255, 255, 255, .35) 45%,
    var(--glass-fill-soft) 65%
  );
  background-size: 200% 100%;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}
html.dark .potd-media::before {
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, .06) 25%,
    rgba(255, 255, 255, .14) 45%,
    rgba(255, 255, 255, .06) 65%
  );
  background-size: 200% 100%;
}
.potd-media.is-loading::before {
  opacity: 1;
  animation: potdShimmer 1.2s ease-in-out infinite;
}
.potd-media.is-loading img { opacity: 0; }
@keyframes potdShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.potd-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: clamp(18px, 3vw, 36px);
}
.potd-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-grad);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(96, 111, 248, .35);
}
.potd-caption {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}
.potd-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
}
.potd-location svg { width: 14px; height: 14px; flex: none; color: var(--accent); }
.potd-cta { align-self: flex-start; margin-top: 8px; }
.potd-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 820px) {
  .potd-card { grid-template-columns: 1fr; }
  .potd-media { min-height: 220px; aspect-ratio: 16 / 10; }
}

/* ---------- Now strip ---------- */
.now-list {
  list-style: none;
  display: grid;
  gap: 14px;
}
.now-item {
  padding: 18px 22px;
  border-radius: var(--radius-md);
  transition: transform .2s, box-shadow .25s;
}
.now-item:hover { transform: translateY(-2px); box-shadow: var(--glass-shadow-hover); }
.now-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.now-meta time {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent);
}
.now-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-grad-soft);
  border: 1px solid var(--glass-border);
  color: var(--text-soft);
}
.now-item p {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

/* ---------- Destinations ---------- */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.dest-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 200px;
  isolation: isolate;
}
.dest-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
  z-index: 0;
}
.dest-card:hover img { transform: scale(1.06); }
.dest-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 12, 24, .78) 100%);
  z-index: 1;
}
.dest-card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 18px 18px 16px;
}
.dest-card-body .dest-region {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 4px;
}
.dest-card-body h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}
.dest-card-body p {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,.78);
}
.dest-map-wrap {
  margin-top: 22px;
  padding: 22px;
  border-radius: var(--radius-xl);
}
/* Interactive Leaflet travel map */
.travel-map {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(10, 132, 255, .06);
  z-index: 0; /* keep Leaflet panes below the sticky navbar */
}
html.dark .travel-map { background: #1a1a22; }

/* Placeholder / offline fallback shown until Leaflet takes over */
.travel-map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: var(--text-soft);
}
.travel-map-fallback svg { width: 34px; height: 34px; opacity: .6; }
.travel-map-fallback p { max-width: 420px; font-size: 14px; margin: 0; }
.travel-map.travel-map-ready .travel-map-fallback { display: none; }

/* Gradient glass pin (Leaflet divIcon) */
.tm-marker { background: none; border: none; }
.tm-pin {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  margin: 0;
  background: linear-gradient(135deg, #0a84ff, #bf5af2);
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  transform-origin: center;
  box-shadow: 0 6px 16px rgba(10, 132, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .2s ease;
}
.tm-pin i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(255, 255, 255, .8);
}
.tm-marker:hover .tm-pin,
.tm-marker:focus .tm-pin { transform: rotate(-45deg) scale(1.12); }
.tm-marker-sm .tm-pin { width: 22px; height: 22px; border-width: 1.5px; opacity: .92; }
.tm-marker-sm .tm-pin i { width: 6px; height: 6px; }
html.dark .tm-pin { border-color: rgba(255, 255, 255, .55); }

/* Glass popup */
.travel-map .leaflet-popup-content-wrapper {
  background: var(--glass-fill-strong);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  color: var(--text);
}
.travel-map .leaflet-popup-tip {
  background: var(--glass-fill-strong);
  border: 1px solid var(--glass-border);
  box-shadow: none;
}
.travel-map .leaflet-popup-content {
  margin: 14px 16px;
  font-family: var(--font-ui);
  line-height: 1.5;
}
.travel-map .leaflet-popup-close-button { color: var(--text-soft); }
.tm-popup-title { font-size: 15px; font-weight: 800; color: var(--text); }
.tm-popup-note { font-size: 13px; color: var(--text-soft); margin-top: 2px; }
.tm-popup-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tm-popup-link svg { width: 14px; height: 14px; color: var(--accent); -webkit-text-fill-color: var(--accent); }
.tm-popup-link:hover { filter: brightness(1.15); }

/* Zoom controls + attribution, themed */
.travel-map .leaflet-control-zoom a {
  background: var(--glass-fill-strong);
  color: var(--text);
  border-color: var(--glass-border);
}
.travel-map .leaflet-control-zoom a:hover { background: var(--glass-fill); }
.travel-map .leaflet-control-attribution {
  background: var(--glass-fill-soft);
  color: var(--text-soft);
  font-size: 10px;
}
.travel-map .leaflet-control-attribution a { color: var(--text-soft); }

@media (max-width: 640px) {
  .travel-map { height: 300px; }
  .dest-map-wrap { padding: 12px; }
}
@media (max-width: 900px) {
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .dest-grid { grid-template-columns: 1fr; }
}

/* ---------- YouTube embed ---------- */
.yt-embed-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.yt-frame-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: #0a0a0c;
  aspect-ratio: 16 / 9;
}
.yt-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.yt-side p { color: var(--text-soft); font-size: 15px; }
@media (max-width: 820px) {
  .yt-embed-grid { grid-template-columns: 1fr; }
}

/* ---------- GlassPad case study ---------- */
.case-study {
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-xl);
  margin-top: 22px;
}
.case-study h3 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  margin: 28px 0 10px;
}
.case-study h3:first-of-type { margin-top: 8px; }
.case-study p, .case-study li {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
}
.case-study ul { margin: 8px 0 0 18px; }
.case-study ul li { margin: 4px 0; }
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.case-grid .case-block {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--glass-fill-soft);
  border: 1px solid var(--glass-border);
}
.case-grid .case-block strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.case-grid .case-block p { margin: 0; font-size: 14px; }
@media (max-width: 720px) {
  .case-grid { grid-template-columns: 1fr; }
}

/* ---------- About page extras ---------- */
.about-lede {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--text-soft);
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
  line-height: 1.65;
}
.about-intro {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 36px);
  max-width: 720px;
  margin: 0 auto 8px;
  padding: clamp(20px, 3.5vw, 28px) clamp(22px, 4vw, 32px);
  border-radius: var(--radius-xl);
}
.about-intro-photo {
  flex: none;
}
.about-intro .portrait-ring--lg {
  width: 168px;
  height: 168px;
}
.about-intro-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  margin: 0;
  flex: 1;
  min-width: 0;
}
.about-intro-facts dt {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3px;
}
.about-intro-facts dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
@media (max-width: 640px) {
  .about-intro {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
  .about-intro .portrait-ring--lg {
    width: 120px;
    height: 120px;
  }
  .about-intro-facts {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }
}
.about-prose {
  max-width: 720px;
  margin: 0 auto;
}
.about-prose p {
  color: var(--text-soft);
  font-size: 16px;
  margin-bottom: 16px;
  line-height: 1.7;
}
.about-prose p strong { color: var(--text); }
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 300;
  pointer-events: none;
  transition: transform .08s linear;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { transition: none; }
}

/* ---------- Command palette ---------- */
.cp-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: min(14vh, 120px) 16px 24px;
  background: rgba(20, 24, 40, .32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
html.dark .cp-overlay { background: rgba(0, 0, 0, .5); }
.cp-overlay[hidden] { display: none; }
body.cp-open { overflow: hidden; }

.cp-panel {
  width: min(620px, 100%);
  background: var(--glass-fill-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(64vh, 560px);
}
.cp-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
}
.cp-input-row svg { width: 19px; height: 19px; color: var(--text-soft); flex: none; }
.cp-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  min-width: 0;
}
.cp-input::placeholder { color: var(--text-soft); }
.cp-close {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: var(--text-soft);
}
.cp-results {
  overflow-y: auto;
  padding: 8px;
  flex: 1;
}
.cp-group {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 10px 12px 4px;
}
.cp-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  color: var(--text);
}
.cp-item.active { background: var(--accent-grad-soft); }
.cp-item .cp-item-title { font-size: 14.5px; font-weight: 600; min-width: 0; }
.cp-item .cp-item-title mark {
  background: none;
  color: var(--accent);
  font-weight: 800;
}
.cp-item .cp-item-hint {
  font-size: 12.5px;
  color: var(--text-soft);
  font-weight: 500;
  flex: none;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-empty { padding: 28px 16px; text-align: center; color: var(--text-soft); font-size: 14.5px; }
.cp-foot {
  display: flex;
  gap: 16px;
  padding: 10px 16px;
  border-top: 1px solid var(--divider);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}
.cp-foot kbd, .cp-close kbd {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--divider);
  background: var(--glass-fill-soft);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  margin-right: 2px;
}
@media (max-width: 520px) {
  .cp-overlay { padding-top: 8vh; }
  .cp-item .cp-item-hint { display: none; }
}

/* ---------- Language badges + Duolingo streak ---------- */
.lang-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}
.lang-chip .lang-level {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-soft);
}
.streak-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 149, 0, .16), rgba(255, 59, 48, .14));
  border: 1px solid rgba(255, 149, 0, .35);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}
.streak-chip svg { width: 16px; height: 16px; color: #ff9500; flex: none; }
.streak-chip strong { color: #ff9500; font-weight: 800; }

/* ---------- Gaming showcase ---------- */
.gaming-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 26px;
}
.gaming-stat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
}
.gaming-stat strong {
  font-size: 17px;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gaming-stat svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.gaming-stat.trophy svg { color: #ffcc00; }
.chip.chip-trophy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip.chip-trophy svg { width: 14px; height: 14px; color: #ffcc00; flex: none; }
.now-playing {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  margin-bottom: 22px;
}
.now-playing .np-icon {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(96, 111, 248, .35);
}
.now-playing .np-icon svg { width: 24px; height: 24px; }
.now-playing .np-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.now-playing h3 { font-size: 19px; font-weight: 800; margin: 2px 0 0; }
.now-playing p { margin: 2px 0 0; font-size: 13.5px; color: var(--text-soft); }
.gaming-era .tl-card .chips { margin-top: 10px; }
.gaming-era .chip { font-size: 12.5px; padding: 5px 12px; }

/* ---------- Uses — battlestation feature ---------- */
.setup-feature {
  max-width: 720px;
  margin: 8px auto 0;
  padding: 10px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.setup-feature a {
  display: block;
  border-radius: calc(var(--radius-xl) - 6px);
  overflow: hidden;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}
.setup-feature img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 970 / 1024;
  object-fit: cover;
  transition: transform .45s ease;
}
.setup-feature a:hover img,
.setup-feature a:focus-visible img {
  transform: scale(1.02);
}
.setup-feature figcaption {
  text-align: center;
  padding: 14px 16px 8px;
  font-size: 14.5px;
  color: var(--text-soft);
  font-weight: 500;
  line-height: 1.45;
}
.setup-feature figcaption strong {
  color: var(--text);
  font-weight: 700;
}
.spec-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}
.spec-list li {
  position: relative;
  padding: 9px 0 9px 18px;
  font-size: 14.5px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--divider);
  line-height: 1.45;
}
.spec-list li:last-child { border-bottom: none; }
.spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-grad);
}
.spec-list li strong {
  color: var(--text);
  font-weight: 650;
}
.card-emoji {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}

/* ---------- 404 page ---------- */
.err-wrap {
  min-height: calc(100vh - var(--nav-h) - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.err-card {
  width: 100%;
  max-width: 680px;
  padding: clamp(36px, 6vw, 64px);
  border-radius: var(--radius-xl);
  text-align: center;
}
.err-code {
  font-size: clamp(88px, 18vw, 150px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.err-card h1 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; margin: 14px 0 10px; }
.err-card > p { color: var(--text-soft); font-size: 16px; max-width: 440px; margin: 0 auto 26px; }
.err-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Travel inquiry form ---------- */
.ti-section { padding-top: 8px; }
.ti-card {
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-xl);
}
.ti-card h2 {
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 800;
  margin: 0 0 8px;
}
.ti-card > .ti-lead {
  color: var(--text-soft);
  margin: 0 0 22px;
  max-width: 620px;
}
.ti-form { display: flex; flex-direction: column; gap: 14px; }
.ti-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ti-grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ti-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ti-field > span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: .02em;
}
.ti-field input,
.ti-field select,
.ti-field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--divider);
  background: var(--glass-fill-soft);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ti-field textarea { resize: vertical; min-height: 110px; }
.ti-field input:focus,
.ti-field select:focus,
.ti-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(96, 111, 248, .18);
}
.ti-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.45;
}
.ti-check input { margin-top: 3px; flex: none; }
.ti-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.ti-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.ti-privacy {
  font-size: 12.5px;
  color: var(--text-soft);
  margin: 0;
  max-width: 420px;
}
.ti-status {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.4;
}
.ti-status[hidden] { display: none !important; }
.ti-status.is-ok {
  background: rgba(46, 180, 110, .12);
  color: var(--text);
  border: 1px solid rgba(46, 180, 110, .28);
}
.ti-status.is-error {
  background: rgba(220, 70, 70, .1);
  color: var(--text);
  border: 1px solid rgba(220, 70, 70, .28);
}
.ti-status.is-warn {
  background: var(--accent-grad-soft);
  color: var(--text);
  border: 1px solid var(--glass-border);
}
.ti-turnstile { min-height: 0; }
@media (max-width: 720px) {
  .ti-grid2, .ti-grid3 { grid-template-columns: 1fr; }
}
