/* ==========================================================================
   YOUNG — Apple Editorial × Liquid Glass Dual-Mode Design System
   ========================================================================== */

:root {
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang SC', 'Helvetica Neue', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Apple Signature Easing */
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);

  /* Light Mode Palette (Apple Pure Editorial) */
  --bg: #fbfbfd;
  --text-primary: #1d1d1f;
  --text-secondary: #5c5c63;
  --text-tertiary: #86868b;

  /* Liquid Glass Surfaces */
  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-nav-bg: rgba(255, 255, 255, 0.68);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-border-subtle: rgba(29, 29, 31, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 10px 40px -10px rgba(20, 24, 40, 0.07), 0 2px 10px rgba(20, 24, 40, 0.03);
  --glass-shadow-hover: 0 24px 60px -15px rgba(20, 24, 40, 0.12), 0 4px 16px rgba(20, 24, 40, 0.05);

  /* Spotlight & Accents */
  --spotlight-inner: rgba(255, 255, 255, 0.65);
  --spotlight-edge: rgba(110, 145, 255, 0.55);
  --accent: #0071e3;
  --accent-soft: rgba(0, 113, 227, 0.12);
  --pill-bg: rgba(29, 29, 31, 0.055);
  --pill-active: #ffffff;
  --btn-primary-bg: #1d1d1f;
  --btn-primary-text: #fbfbfd;
  --serif-grad: linear-gradient(135deg, #1d1d1f 0%, #3b6ef5 55%, #8b5cf6 100%);
  --frame-fallback: linear-gradient(135deg, #e8ecf4 0%, #f5efe8 100%);
}

[data-theme="dark"] {
  /* Dark Mode Palette (Obsidian Liquid Glass) */
  --bg: #050507;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a8;
  --text-tertiary: #6e6e77;

  --glass-bg: rgba(24, 24, 30, 0.54);
  --glass-bg-strong: rgba(28, 28, 36, 0.78);
  --glass-nav-bg: rgba(22, 22, 28, 0.66);
  --glass-border: rgba(255, 255, 255, 0.11);
  --glass-border-subtle: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.16);
  --glass-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.55), 0 2px 10px rgba(0, 0, 0, 0.35);
  --glass-shadow-hover: 0 28px 70px -16px rgba(0, 0, 0, 0.72), 0 6px 20px rgba(0, 0, 0, 0.45);

  --spotlight-inner: rgba(255, 255, 255, 0.08);
  --spotlight-edge: rgba(145, 185, 255, 0.52);
  --accent: #47a3ff;
  --accent-soft: rgba(71, 163, 255, 0.16);
  --pill-bg: rgba(255, 255, 255, 0.07);
  --pill-active: rgba(255, 255, 255, 0.14);
  --btn-primary-bg: #f5f5f7;
  --btn-primary-text: #0a0a0d;
  --serif-grad: linear-gradient(135deg, #ffffff 0%, #93c5fd 55%, #c4b5fd 100%);
  --frame-fallback: linear-gradient(135deg, #161822 0%, #231e2c 100%);
}

/* Circular Ripple View Transition for Theme Switch */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-new(root) {
  z-index: 9999;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease-apple), color 0.4s var(--ease-apple);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

/* Ambient Fluid Canvas */
#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Scroll Progress Hairline */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 150;
  background: linear-gradient(90deg, var(--accent), #a855f7, #ec4899);
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0.85;
  pointer-events: none;
  will-change: transform;
}

/* Language Morph Transition */
[data-i18n],
[data-i18n-html] {
  transition: opacity 0.24s var(--ease-apple), filter 0.24s var(--ease-apple);
}

body.lang-morphing [data-i18n],
body.lang-morphing [data-i18n-html] {
  opacity: 0.15;
  filter: blur(4px);
}

/* Custom Minimal Cursor Aura (Desktop pointer devices) */
.cursor-aura {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-primary);
  opacity: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.35s var(--ease-apple), height 0.35s var(--ease-apple),
              background-color 0.3s ease, opacity 0.3s ease, backdrop-filter 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: difference;
}

.cursor-aura.visible {
  opacity: 0.4;
}

.cursor-aura.has-label {
  width: 68px;
  height: 68px;
  opacity: 1;
  mix-blend-mode: normal;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.cursor-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-primary);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-apple);
}

.cursor-aura.has-label .cursor-label {
  opacity: 1;
  transform: scale(1);
}

@media (hover: none), (pointer: coarse) {
  .cursor-aura { display: none; }
}

/* Container & Typography Utilities */
.container {
  width: min(1140px, 100% - 48px);
  margin-inline: auto;
}

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: var(--serif-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}

.mono-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.mono-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border-subtle);
}

/* ==========================================================================
   Floating Liquid Glass Navigation
   ========================================================================== */
.nav-wrapper {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
  pointer-events: none;
}

.glass-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 9px 7px 16px;
  border-radius: 999px;
  background: var(--glass-nav-bg);
  backdrop-filter: blur(26px) saturate(190%);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 0 var(--glass-highlight);
  transition: transform 0.45s var(--ease-apple), background-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-nav.scrolled {
  transform: translateY(-2px) scale(0.985);
  box-shadow: var(--glass-shadow-hover), inset 0 1px 0 0 var(--glass-highlight);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  height: 36px;
  width: 68px;
  padding: 3px;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--glass-border-subtle);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background-color 0.3s ease, transform 0.35s var(--ease-apple);
}

.lang-toggle:hover {
  border-color: var(--glass-border);
}

.lang-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--pill-active);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.42s var(--ease-apple);
  z-index: 0;
}

[data-lang="en"] .lang-slider {
  transform: translateX(100%);
}

.lang-opt {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--text-tertiary);
  transition: color 0.3s ease, transform 0.3s var(--ease-apple);
  user-select: none;
}

[data-lang="zh"] .lang-opt[data-lang-opt="zh"],
[data-lang="en"] .lang-opt[data-lang-opt="en"] {
  color: var(--text-primary);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  padding-right: 6px;
}

.brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: var(--pill-bg);
}

.nav-pill-indicator {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--pill-active);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.45s var(--ease-apple), width 0.45s var(--ease-apple);
  z-index: 0;
}

.nav-link {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 999px;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.theme-toggle {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pill-bg);
  border: 1px solid var(--glass-border-subtle);
  color: var(--text-primary);
  transition: background-color 0.3s ease, transform 0.35s var(--ease-apple);
}

.theme-toggle:hover {
  background: var(--pill-active);
}

.theme-toggle svg {
  position: absolute;
  width: 17px;
  height: 17px;
  transition: transform 0.5s var(--ease-apple), opacity 0.35s ease;
}

[data-theme="light"] .icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="light"] .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="dark"] .icon-sun { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="dark"] .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }

/* ==========================================================================
   Hero Section (Apple Cinematic Opening)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 130px 24px 80px;
}

.hero-inner {
  max-width: 860px;
  will-change: transform, opacity;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 34px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(34, 197, 94, 0.55);
  animation: pulseRing 2.4s var(--ease-apple) infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(2.1); opacity: 0; }
}

.sep {
  opacity: 0.4;
}

.hero-title {
  font-size: clamp(3.2rem, 8.8vw, 6.8rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
}

.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.line-inner {
  display: inline-block;
}

.hero-subtitle {
  max-width: 560px;
  margin: 0 auto 42px;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.7;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Magnetic Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.35s var(--ease-apple), box-shadow 0.35s var(--ease-apple), background-color 0.3s ease;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 18px 38px -8px rgba(0, 0, 0, 0.34);
}

.btn-glass {
  background: var(--glass-bg);
  color: var(--text-primary);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
}

.btn-glass:hover {
  background: var(--glass-bg-strong);
  box-shadow: var(--glass-shadow-hover), inset 0 1px 0 var(--glass-highlight);
}

/* Hero Bottom Meta Bar */
.hero-footer-bar {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  width: min(1140px, 100% - 48px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scroll-cue {
  width: 1px;
  height: 36px;
  background: var(--glass-border-subtle);
  overflow: hidden;
  position: relative;
}

.scroll-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 55%;
  background: var(--text-primary);
  animation: scrollDrop 2.2s var(--ease-apple) infinite;
}

@keyframes scrollDrop {
  0% { transform: translateY(-100%); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(220%); opacity: 0; }
}

/* Hero Stagger Entrance */
.reveal-hero {
  opacity: 0;
  transform: translateY(34px);
  animation: heroRise 1.05s var(--ease-apple) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes heroRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Sections & Liquid Glass Card System (with Mouse Spotlight Specular)
   ========================================================================== */
.section {
  padding: 112px 0 36px;
}

.section-header {
  margin-bottom: 48px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.section-aside {
  max-width: 340px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Liquid Glass Card Core */
.glass-card {
  position: relative;
  border-radius: 28px;
  padding: 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(185%);
  -webkit-backdrop-filter: blur(28px) saturate(185%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 0 var(--glass-highlight);
  overflow: hidden;
  transition: transform 0.55s var(--ease-apple), box-shadow 0.55s var(--ease-apple), border-color 0.4s ease;
}

/* Soft Surface Specular Glow */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    520px circle at var(--mx, 50%) var(--my, 50%),
    var(--spotlight-inner),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 0;
}

/* Crisp 1px Luminous Border Following Cursor */
.glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    var(--spotlight-edge),
    transparent 65%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 2;
}

.glass-card:hover::before,
.glass-card:hover::after {
  opacity: 1;
}

.glass-card:hover {
  box-shadow: var(--glass-shadow-hover), inset 0 1px 0 0 var(--glass-highlight);
}

.glass-card > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Bento Grid
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }

.card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.card-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
}

.card-icon {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
}

.card-title {
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Bio Card */
.bento-bio {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

.bio-headline {
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin-bottom: 16px;
}

.bio-text {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.78;
  margin-bottom: 26px;
}

.bio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.glass-chip {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--glass-border-subtle);
  color: var(--text-primary);
  transition: transform 0.3s var(--ease-apple), background-color 0.25s ease;
}

.glass-chip:hover {
  transform: translateY(-2px);
  background: var(--pill-active);
}

/* Live Zen / Clock Card */
.bento-zen {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

.status-tag {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 11px;
  border-radius: 999px;
}

.zen-center {
  display: grid;
  place-items: center;
  margin: 10px 0;
}

.breathe-orb {
  position: relative;
  width: 174px;
  height: 174px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.5s var(--ease-apple);
}

.orb-progress-svg {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  transform: rotate(-90deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.breathe-orb.active .orb-progress-svg {
  opacity: 1;
}

.orb-progress-track {
  fill: none;
  stroke: var(--glass-border-subtle);
  stroke-width: 1.5;
}

.orb-progress-bar {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 527.8;
  stroke-dashoffset: 527.8;
  transition: stroke-dashoffset 0.25s linear;
}

.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--glass-border-subtle);
  transition: transform 0.8s var(--ease-apple), border-color 0.4s ease;
}

.orb-ring.ring-1 {
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
}

.orb-ring.ring-2 {
  inset: 14px;
  border-style: dashed;
  opacity: 0.55;
}

.breathe-orb.active .ring-1 {
  animation: zenBreathe 6s ease-in-out infinite;
  border-color: var(--accent);
}

.breathe-orb.active .ring-2 {
  animation: zenSpin 16s linear infinite;
  border-color: var(--accent);
}

@keyframes zenBreathe {
  0%, 100% { transform: scale(0.92); opacity: 0.65; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes zenSpin {
  to { transform: rotate(360deg); }
}

.orb-core {
  position: relative;
  z-index: 1;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.orb-time {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.orb-hint {
  font-size: 0.68rem;
  color: var(--text-tertiary);
}

.zen-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sound-waves {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.sound-waves i {
  display: block;
  width: 2.5px;
  height: 4px;
  border-radius: 2px;
  background: var(--text-tertiary);
  transition: height 0.3s ease, background-color 0.3s ease;
}

.sound-waves.playing i {
  background: var(--accent);
  animation: waveBar 1.1s ease-in-out infinite;
}

.sound-waves.playing i:nth-child(2) { animation-delay: 0.15s; }
.sound-waves.playing i:nth-child(3) { animation-delay: 0.3s; }
.sound-waves.playing i:nth-child(4) { animation-delay: 0.45s; }

@keyframes waveBar {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* Stack Grid */
.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.craft-glyph {
  display: inline-block;
  transition: transform 0.45s var(--ease-apple), letter-spacing 0.45s var(--ease-apple);
}

.bento-craft:hover .craft-glyph {
  transform: scale(1.12);
  letter-spacing: 0.14em;
}

.stack-item {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 6px 11px;
  border-radius: 10px;
  background: var(--pill-bg);
  border: 1px solid var(--glass-border-subtle);
  color: var(--text-secondary);
  transition: color 0.25s ease, transform 0.3s var(--ease-apple), border-color 0.25s ease, background-color 0.25s ease;
}

.stack-item:hover,
.stack-item.active {
  color: var(--text-primary);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.stack-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Interactive Camera Aperture Card */
.aperture-stage {
  display: grid;
  place-items: center;
  margin: 4px 0 18px;
}

.aperture-trigger {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding: 4px;
  transition: transform 0.35s var(--ease-apple);
}

.aperture-trigger:active {
  transform: scale(0.94);
}

.aperture-flash {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), transparent 70%);
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}

.aperture-flash.snap {
  animation: shutterFlash 0.42s var(--ease-apple) forwards;
}

@keyframes shutterFlash {
  0% { opacity: 0.9; transform: scale(0.65); }
  100% { opacity: 0; transform: scale(1.35); }
}

.aperture-svg {
  width: 112px;
  height: 112px;
  color: var(--text-primary);
}

.aperture-blades {
  transform-origin: 60px 60px;
  transform: rotate(var(--aperture-rot, 0deg)) scale(var(--aperture-scale, 1));
  transition: transform 0.65s var(--ease-apple);
}

.aperture-center {
  transform-origin: 60px 60px;
  transform: scale(var(--aperture-pupil, 1));
  transition: transform 0.65s var(--ease-apple), stroke 0.4s ease;
}

.bento-photo:hover .aperture-blades {
  transform: rotate(calc(var(--aperture-rot, 0deg) + 18deg)) scale(calc(var(--aperture-scale, 1) * 0.94));
}

.bento-photo:hover .aperture-center {
  stroke: var(--accent);
}

/* Student Milestone Card */
.bento-student {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.milestone-bar {
  margin-top: 26px;
}

.milestone-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--pill-bg);
  overflow: hidden;
}

.progress-fill {
  position: relative;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #a855f7);
  transition: width 1.35s var(--ease-apple);
  overflow: hidden;
}

.bento-student.in-view .progress-fill {
  width: 76%;
}

.bento-student:hover .progress-fill {
  width: 90%;
}

.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-100%);
  animation: progressShimmer 3.2s ease-in-out infinite;
}

@keyframes progressShimmer {
  0%, 55% { transform: translateX(-100%); }
  100% { transform: translateX(140%); }
}

/* ==========================================================================
   Selected Work Section (Bespoke Visual Mockups)
   ========================================================================== */
.work-list {
  display: grid;
  gap: 24px;
}

.work-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 24px 36px 24px 24px;
  cursor: pointer;
}

.work-visual {
  position: relative;
  height: 290px;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--glass-border-subtle);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--vs, 1));
  transition: transform 0.5s var(--ease-apple);
  will-change: transform;
}

.work-card:hover .work-visual {
  --vs: 1.018;
}

/* Visual 1: Lumina Studio */
.visual-lumina {
  background: linear-gradient(135deg, rgba(138, 162, 184, 0.24), rgba(217, 200, 180, 0.24));
}

.mock-window {
  width: 82%;
  border-radius: 14px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  transition: transform 0.6s var(--ease-apple);
}

.work-card:hover .mock-window {
  transform: translateY(-6px);
}

.mock-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--glass-border-subtle);
}

.mock-topbar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-tertiary);
  opacity: 0.45;
}

.mock-topbar small {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-tertiary);
}

.mock-lumina-body {
  padding: 16px;
}

.mock-histogram {
  position: relative;
  color: var(--accent);
  height: 76px;
  margin-bottom: 14px;
  cursor: crosshair;
}

.histogram-scrubber {
  position: absolute;
  top: 4px;
  bottom: 2px;
  left: 50%;
  width: 1px;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.histogram-scrubber::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.mock-histogram.scrubbing .histogram-scrubber {
  opacity: 0.9;
}

.mock-histogram svg {
  width: 100%;
  height: 100%;
}

.mock-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.mock-swatches span {
  height: 22px;
  border-radius: 6px;
  cursor: copy;
  transition: transform 0.3s var(--ease-apple), box-shadow 0.3s ease;
}

.mock-swatches span:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.mock-exif-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-tertiary);
}

/* Visual 2: Stillness */
.visual-stillness {
  background: radial-gradient(circle at 30% 25%, rgba(167, 139, 250, 0.28), transparent 60%),
              radial-gradient(circle at 75% 80%, rgba(56, 189, 248, 0.22), transparent 60%),
              var(--pill-bg);
}

.mock-stillness-orb {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.45), transparent 70%);
  filter: blur(22px);
  animation: zenBreathe 7s ease-in-out infinite;
}

.mock-stillness-card {
  position: relative;
  width: 78%;
  padding: 26px 24px;
  border-radius: 18px;
  text-align: center;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  transition: transform 0.6s var(--ease-apple);
}

.work-card:hover .mock-stillness-card {
  transform: translateY(-6px);
}

.mock-stillness-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
}

.mock-stillness-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.75rem;
  margin: 12px 0 18px;
  color: var(--text-primary);
}

.mock-stillness-lines {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.mock-stillness-lines span {
  height: 6px;
  border-radius: 999px;
  background: var(--pill-bg);
  width: 75%;
}

.mock-stillness-lines span:last-child {
  width: 48%;
}

/* Visual 3: Prism Motion */
.visual-prism {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(168, 85, 247, 0.16));
}

.prism-stack {
  position: relative;
  width: 210px;
  height: 140px;
}

.prism-layer {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  transition: transform 0.65s var(--ease-apple);
}

.layer-back {
  transform: translate(calc(-18px + var(--px, 0px) * -1.1), calc(-16px + var(--py, 0px) * -1.1)) rotate(-6deg);
  opacity: 0.55;
}

.layer-mid {
  transform: translate(calc(14px + var(--px, 0px) * 0.6), calc(14px + var(--py, 0px) * 0.6)) rotate(5deg);
  opacity: 0.78;
}

.layer-front {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(22px);
  transform: translate(calc(var(--px, 0px) * 1.3), calc(var(--py, 0px) * 1.3));
}

.layer-front strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.work-card:hover .layer-back {
  transform: translate(calc(-28px + var(--px, 0px) * -1.3), calc(-24px + var(--py, 0px) * -1.3)) rotate(-9deg);
}
.work-card:hover .layer-mid {
  transform: translate(calc(24px + var(--px, 0px) * 0.7), calc(22px + var(--py, 0px) * 0.7)) rotate(8deg);
}
.work-card:hover .layer-front {
  transform: translate(calc(var(--px, 0px) * 1.5), calc(-6px + var(--py, 0px) * 1.5)) scale(1.03);
}

/* Work Info Column */
.work-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.work-cat {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.work-title {
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.work-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
}

.work-link svg {
  transition: transform 0.35s var(--ease-apple);
}

.work-card:hover .work-link svg {
  transform: translate(4px, -4px);
}

/* ==========================================================================
   Photography Gallery (Frames)
   ========================================================================== */
.frames-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.frame-card {
  position: relative;
  grid-column: span 5;
  height: 360px;
  border-radius: 26px;
  overflow: hidden;
  cursor: pointer;
  background: var(--frame-fallback);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.frame-card.frame-wide {
  grid-column: span 7;
}

.frame-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ease-apple), filter 0.5s ease;
}

.frame-card:hover img {
  transform: scale(1.055);
}

.frame-overlay {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(18, 18, 22, 0.52);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f5f5f7;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease-apple), transform 0.45s var(--ease-apple);
}

.frame-card:hover .frame-overlay,
.frame-card:focus-visible .frame-overlay {
  opacity: 1;
  transform: translateY(0);
}

.frame-title {
  font-size: 0.9rem;
  font-weight: 500;
}

.frame-exif {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.82;
}

/* ==========================================================================
   Contact Card & Footer
   ========================================================================== */
.contact-section {
  padding-bottom: 48px;
}

.contact-card {
  text-align: center;
  padding: clamp(48px, 7vw, 84px) 28px;
}

.contact-headline {
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 18px;
}

.contact-sub {
  max-width: 480px;
  margin: 0 auto 36px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--pill-bg);
  border: 1px solid var(--glass-border-subtle);
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.35s var(--ease-apple);
}

.social-pill svg {
  width: 15px;
  height: 15px;
}

.social-pill:hover {
  color: var(--text-primary);
  background: var(--pill-active);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 48px;
  border-top: 1px solid var(--glass-border-subtle);
  gap: 16px;
  flex-wrap: wrap;
}

.back-top {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

.back-top:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Project Detail Modal & Photo Lightbox
   ========================================================================== */
.modal-backdrop,
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 8, 12, 0.56);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s var(--ease-apple);
}

.modal-backdrop.open,
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.glass-modal {
  position: relative;
  width: min(640px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  border-radius: 30px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.35), inset 0 1px 0 var(--glass-highlight);
  transform: scale(0.94) translateY(18px);
  transition: transform 0.48s var(--ease-apple);
}

.modal-backdrop.open .glass-modal {
  transform: scale(1) translateY(0);
}

.modal-close,
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pill-bg);
  border: 1px solid var(--glass-border-subtle);
  color: var(--text-primary);
  z-index: 5;
}

.lightbox-close,
.lightbox-nav {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.modal-body h3 {
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin: 12px 0 14px;
}

.modal-body p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 22px;
}

.modal-highlights {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.modal-highlights li {
  list-style: none;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--pill-bg);
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* Lightbox Layout */
.lightbox-stage {
  max-width: min(1040px, 88vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transform: scale(0.95);
  transition: transform 0.45s var(--ease-apple);
}

.lightbox.open .lightbox-stage {
  transform: scale(1);
}

.lightbox-stage img {
  max-height: 74vh;
  max-width: 100%;
  border-radius: 20px;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  transition: opacity 0.28s var(--ease-apple), transform 0.35s var(--ease-apple), filter 0.28s ease;
}

.lightbox-stage img.lb-switching {
  opacity: 0;
  transform: scale(0.97);
  filter: blur(6px);
}

/* Tactile Click Ripple */
.ripple-target {
  position: relative;
  overflow: hidden;
}

.click-ripple {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.18;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  animation: tactileRipple 0.6s var(--ease-apple) forwards;
}

@keyframes tactileRipple {
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

.lightbox-caption {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #f5f5f7;
  padding: 12px 20px;
  border-radius: 18px;
  background: rgba(22, 22, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.lightbox-caption h4 {
  font-size: 1rem;
  font-weight: 500;
}

.lightbox-caption p {
  font-size: 0.8rem;
  color: rgba(245, 245, 247, 0.65);
}

.lightbox-caption .mono-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, 0.16);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

/* Floating Apple Toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  z-index: 400;
  transition: opacity 0.35s var(--ease-apple), transform 0.4s var(--ease-apple);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  transition: opacity 0.85s var(--ease-apple), transform 0.9s var(--ease-apple);
  transition-delay: var(--delay, 0s);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 960px) {
  .span-7, .span-5, .span-4 {
    grid-column: span 12;
  }
  .work-card {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 24px;
  }
  .frame-card, .frame-card.frame-wide {
    grid-column: span 6;
    height: 300px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1140px);
  }
  .glass-nav {
    gap: 6px;
    padding: 6px 8px 6px 12px;
  }
  .brand-text {
    display: none;
  }
  .nav-link {
    padding: 6px 9px;
    font-size: 0.76rem;
  }
  .lang-toggle {
    width: 56px;
    height: 32px;
    font-size: 0.64rem;
  }
  .theme-toggle {
    width: 32px;
    height: 32px;
  }
  .section {
    padding: 84px 0 24px;
  }
  .glass-card {
    padding: 24px;
    border-radius: 24px;
  }
  .frame-card, .frame-card.frame-wide {
    grid-column: span 12;
    height: 260px;
  }
  .frame-overlay {
    opacity: 1;
    transform: translateY(0);
  }
  .glass-modal {
    padding: 28px 22px;
  }
  .lightbox-nav {
    top: auto;
    bottom: 24px;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-hero {
    opacity: 1;
    transform: none;
  }
}