:root {
  --bg-black: #000000;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1aa;
  --accent-cyan: #22d3ee;
  --accent-emerald: #10b981;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-black);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-black);
  overflow-x: hidden;
  line-height: 1.5;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

img,
svg {
  -webkit-user-drag: none;
  pointer-events: none;
}

body.is-loading {
  overflow: hidden;
}

/* Preloader: SoC Hardware Boot-Up */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #030504;
  display: grid;
  place-items: center;
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.preloader.is-exiting {
  opacity: 0;
  transform: scale(1.15);
  filter: blur(12px);
  pointer-events: none;
}

.preloader-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.preloader-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 65%);
}

.preloader-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 25%, transparent 75%);
}

.preloader-core {
  position: relative;
  z-index: 2;
  width: min(320px, calc(100vw - 3rem));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.preloader-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: #38bdf8;
}

.soc-stage {
  position: relative;
  width: 260px;
  height: 180px;
  display: grid;
  place-items: center;
}

.circuit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.trace {
  stroke: url(#traceGrad);
  stroke: #00f0ff;
  stroke-opacity: 0.35;
  stroke-width: 1.5;
  stroke-dasharray: 120;
  stroke-dashoffset: var(--trace-offset, 120);
}

.solder {
  fill: #10b981;
  opacity: 0.65;
}

.soc-chip {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 16px;
  background: rgba(8, 12, 14, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #00f0ff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.18);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.soc-chip.is-kotlin {
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.35), 0 0 48px rgba(16, 185, 129, 0.25);
}

.soc-chip.is-charged {
  color: #00f0ff;
  border-color: #00f0ff;
  box-shadow: 0 0 42px rgba(0, 240, 255, 0.65), 0 0 70px rgba(16, 185, 129, 0.45);
}

.soc-icon {
  position: absolute;
  opacity: 0;
  transform: scale(0.75);
  filter: blur(4px);
  transition: opacity 0.28s ease, transform 0.28s ease, filter 0.28s ease;
}

.soc-icon.is-active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.preloader-bar-wrap {
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #00f0ff 100%);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
  will-change: width;
}

.preloader-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-mono);
}

.preloader-status {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.preloader-pct {
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

/* Fixed Full-Bleed Video Backdrop */
.video-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #000000;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  transition: opacity 0.65s ease;
  will-change: transform, opacity;
}

.bg-video.is-fading {
  opacity: 0;
}

.low-power-motion .liquid-glass {
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

@media (prefers-reduced-motion: reduce) {
  .bg-video {
    transition: none;
  }
}

.video-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 65% 45%, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.78) 75%, rgba(0, 0, 0, 0.96) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.92) 100%);
}

/* Apple Liquid Glass Material */
.liquid-glass {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.025) 100%);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    0 24px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.12),
    transparent 60%
  );
  pointer-events: none;
  opacity: var(--glow-opacity, 0);
  transition: opacity 0.35s ease;
}

.container {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* Floating Liquid Glass Navbar */
.top-nav {
  position: fixed;
  top: 1.15rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 2.5rem));
  z-index: 50;
}

.nav-inner {
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.95rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--accent-cyan);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding-left: 0.45rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-cta:hover {
  border-color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.15);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6.5rem 0 4rem;
}

.hero-glass-panel {
  max-width: 600px;
  padding: 2.25rem;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.hero-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

.platform-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.35rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  width: fit-content;
}

.switch-pill {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.switch-pill.is-active {
  background: rgba(34, 211, 238, 0.18);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.4);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.mono-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.28);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.meta-note {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-head {
  margin-bottom: 2.25rem;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent-emerald);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0.45rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.bento-card {
  border-radius: 24px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  cursor: pointer;
  contain: layout style paint;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.bento-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.platform-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

.badge-ios {
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.3);
  color: var(--accent-cyan);
}

.spec-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
}

.card-arrow {
  color: var(--text-secondary);
  transition: transform 0.2s ease, color 0.2s ease;
}

.bento-card:hover .card-arrow {
  transform: translate(2px, -2px);
  color: var(--accent-cyan);
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.card-thumb {
  margin-top: auto;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Architecture */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.arch-card {
  border-radius: 24px;
}

.arch-media {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: block;
}

.arch-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.arch-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.arch-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.arch-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.section-spacious {
  padding: 6rem 0;
}

/* About Me / Engineer Profile */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.25rem;
}

.about-card,
.telemetry-card {
  border-radius: 24px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  contain: layout style paint;
}

.about-bio {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.telemetry-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
}

.telemetry-rows {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.telemetry-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.t-key {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}

.t-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.t-emerald {
  color: var(--accent-emerald);
}

/* Tech Stack Matrix */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stack-card {
  border-radius: 22px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  contain: layout style paint;
}

.stack-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: #00f0ff;
  display: grid;
  place-items: center;
}

.stack-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.stack-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Releases & Changelog Feed */
.releases-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.release-card {
  border-radius: 22px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  contain: layout style paint;
}

.release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.release-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.release-title-wrap h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.release-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}

.tag-latest {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #10b981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.tag-cyan {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #00f0ff;
}

.tag-muted {
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--text-secondary);
}

.release-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.release-btn:hover {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.12);
}

.release-notes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem 1.5rem;
}

.release-notes li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.release-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.releases-cta {
  margin-top: 1.5rem;
  border-radius: 16px;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: border-color 0.2s ease;
}

.releases-cta:hover {
  border-color: #00f0ff;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3.5rem;
}

.footer-panel {
  border-radius: 24px;
  padding: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

.footer-brand h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.social-dock {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Cinematic Entrance & Reveal States */
.hero-glass-panel {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 24px, 0) scale(0.98);
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-glass-panel.is-revealed {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
}

.reveal-item {
  opacity: 0;
  filter: blur(6px);
  transition:
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.bento-card.reveal-item,
.arch-card.reveal-item,
.footer-panel.reveal-item {
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
  transform: translate3d(0, 28px, 0) scale(0.98);
}

.reveal-left {
  transform: translate3d(-32px, 0, 0) scale(0.98);
}

.reveal-right {
  transform: translate3d(32px, 0, 0) scale(0.98);
}

.reveal-item.is-revealed {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

.motion-ready {
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.card-thumb img {
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .card-thumb img {
  transform: scale(1.04);
}

/* Continuous floating handled by JS rAF physics loop */

.low-power-motion .liquid-glass {
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-glass-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .reveal-item {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .hero-glass-panel.is-revealed {
    animation: none;
  }
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-card {
  position: relative;
  width: min(880px, 100%);
  border-radius: 26px;
  padding: 1.75rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: center;
}

.modal-visual {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000000;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.modal-info h3 {
  font-size: 1.65rem;
  font-weight: 700;
}

.modal-info p {
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.modal-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.modal-specs li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-primary);
  padding: 0.42rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

@media (max-width: 768px) {
  .container,
  .top-nav {
    width: calc(100% - 1.5rem);
  }

  .nav-inner {
    padding: 10px 14px;
    border-radius: 999px;
    gap: 10px;
  }

  .brand {
    font-size: 0.85rem;
    gap: 0.45rem;
    flex-shrink: 0;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
    padding-right: 14px;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    font-size: 0.82rem;
    flex-shrink: 0;
  }

  .nav-cta {
    padding: 0.38rem 0.75rem;
    font-size: 0.78rem;
    flex-shrink: 0;
  }

  .hero-section {
    padding: 5.5rem 0 3rem;
  }

  .hero-glass-panel {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .hero-title {
    font-size: clamp(1.85rem, 7.5vw, 2.5rem);
  }

  .platform-switch {
    display: flex;
    width: 100%;
    border-radius: 16px;
  }

  .switch-pill {
    flex: 1;
    text-align: center;
    font-size: 0.78rem;
    padding: 0.55rem 0.65rem;
  }

  .bento-grid,
  .arch-grid,
  .about-grid,
  .stack-grid,
  .release-notes,
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .bento-card {
    padding: 20px;
  }

  .badge-row {
    gap: 8px;
  }

  .card-thumb {
    aspect-ratio: 16 / 9;
  }

  .social-btn {
    min-height: 44px;
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .brand-tag {
    display: none;
  }

  .platform-switch {
    flex-direction: column;
  }

  .switch-pill {
    width: 100%;
  }
}
