:root {
  --bg: #05070b;
  --bg-2: #0b1017;
  --panel: rgba(16, 22, 31, 0.72);
  --text: #f5f7fb;
  --muted: #98a3b1;
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.16);
  --accent: #69c9ff;
  --accent-2: #8ef0c8;
  --radius: 28px;
  --shadow: 0 28px 80px rgba(0,0,0,.35);
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 8% -8%, rgba(105,201,255,.14), transparent 28%),
    radial-gradient(circle at 95% 10%, rgba(142,240,200,.10), transparent 26%),
    linear-gradient(180deg, #05070b 0%, #090d14 55%, #05070b 100%);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(105,201,255,.18); }
.noise {
  position: fixed; inset: 0; z-index: -3; pointer-events: none; opacity: .14;
  background-image: radial-gradient(rgba(255,255,255,.07) .8px, transparent .8px), radial-gradient(rgba(255,255,255,.03) .8px, transparent .8px);
  background-size: 22px 22px; background-position: 0 0, 11px 11px;
}
.page-particle-canvas { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: .9; }
.page-particle-canvas.is-fallback { opacity: 0; }
#top, .footer { position: relative; z-index: 1; }
.bg-orb { position: fixed; border-radius: 50%; filter: blur(84px); pointer-events: none; z-index: -4; opacity: .22; }
.orb-1 { width: 42vw; height: 42vw; left: -15vw; top: -16vw; background: rgba(105,201,255,.28); }
.orb-2 { width: 34vw; height: 34vw; right: -12vw; top: 28vh; background: rgba(142,240,200,.20); }
.progress { position: fixed; inset: 0 auto auto 0; width: 100%; height: 3px; z-index: 100; background: rgba(255,255,255,.03); }
.progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 24px rgba(105,201,255,.65); }
.wrap { width: min(100% - 48px, var(--max)); margin: 0 auto; }
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  box-shadow: var(--shadow);
}
.site-header {
  position: sticky; top: 14px; z-index: 90;
  width: min(100% - 48px, var(--max)); margin: 14px auto 0; padding: 12px 18px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  border-radius: 999px; background: rgba(6,9,14,.72); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, rgba(105,201,255,.24), rgba(142,240,200,.16)); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 4px 14px rgba(0,0,0,.22); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.nav { display: inline-flex; justify-self: center; gap: 28px; color: var(--muted); font-size: 14px; }
.nav a, .button, .header-cta { transition: transform .25s ease, color .25s ease, border-color .25s ease, background .25s ease; }
.nav a:hover, .header-cta:hover { color: var(--text); }
.header-cta, .button { padding: 12px 17px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 600; }
.header-cta {
  min-width: max-content;
  flex: 0 0 auto;
  white-space: nowrap;
  background: rgba(255,255,255,.04);
}
.button.primary { background: linear-gradient(135deg, rgba(105,201,255,.22), rgba(142,240,200,.12)); border-color: rgba(105,201,255,.26); }
.button.secondary { background: rgba(255,255,255,.04); }
.button:hover, .header-cta:hover { transform: translateY(-1px); }
.hero {
  min-height: calc(100svh - 70px); padding: 70px 0 44px;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(500px, .98fr); gap: 34px; align-items: center;
}
.eyebrow { margin: 0 0 16px; color: var(--muted); font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
.hero h1, .section-head h2, .contact-copy h2 { margin: 0; font-size: clamp(44px, 6.6vw, 86px); line-height: .98; letter-spacing: -.06em; }
.hero h1 span { background: linear-gradient(90deg, #fff 0%, #cae9ff 42%, #8ef0c8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin: 24px 0 0; max-width: 680px; font-size: 18px; color: var(--muted); }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.resume-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: 13px; }
.resume-links a { border-bottom: 1px solid rgba(255,255,255,.16); }
.resume-links a:hover { color: var(--text); border-color: var(--accent); }
.hero-visual {
  position: relative;
  min-height: 660px;
  width: min(100%, 560px);
  justify-self: end;
  overflow: visible;
  transform: translate3d(0, calc(var(--depth, 0) * -1px), 0);
}
.hero-photo {
  position: absolute;
  top: 46px;
  right: 0;
  width: 440px;
  height: 520px;
  margin: 0;
  overflow: hidden;
  border-radius: 34px;
  z-index: 1;
  --hero-rotate: 2.6deg;
  box-shadow: 0 34px 90px rgba(0,0,0,.34);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hero-card-stack {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.hero-floating {
  position: absolute;
  padding: 21px 22px 20px;
  border-radius: 28px;
  z-index: 4;
  background: rgba(9, 14, 20, .84);
  pointer-events: auto;
}
.card-top {
  width: 292px;
  left: -74px;
  top: 20px;
}
.card-bottom {
  width: 338px;
  right: 18px;
  bottom: 12px;
}
.card-kicker { display: block; color: var(--muted); font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.hero-floating strong { display: block; margin: 10px 0 10px; font-size: 20px; line-height: 1.2; letter-spacing: -.03em; }
.hero-floating p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
section { padding: 92px 0; }
.section-head { margin-bottom: 34px; }
.section-head.compact { margin-bottom: 24px; }
.section-head h2 { font-size: clamp(36px, 5vw, 68px); max-width: 960px; }
.focus-grid, .skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.focus-card, .skill-card { min-height: 250px; padding: 26px; border-radius: 28px; overflow: hidden; }
.focus-card span, .skill-no { color: rgba(255,255,255,.18); font: 800 44px/1 ui-monospace, SFMono-Regular, Menlo, monospace; display: inline-block; }
.focus-card h3, .skill-card h3 { margin: 18px 0 12px; font-size: 26px; letter-spacing: -.04em; }
.focus-card p, .skill-card p, .project-copy p, .music-copy p, .contact-copy p:last-child { margin: 0; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.project-card { display: grid; grid-template-columns: .92fr 1.08fr; gap: 0; overflow: hidden; border-radius: 32px; }
.project-thumb { min-height: 360px; margin: 0; background: #10151e; }
.project-thumb.dark { display: grid; place-items: center; background: linear-gradient(160deg,#05070b,#0e131b); padding: 40px; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-thumb.dark img { width: min(280px, 100%); height: auto; object-fit: contain; }
.project-copy { padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.project-tag { margin: 0 0 12px; color: var(--muted); font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.project-copy h3 { margin: 0 0 14px; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -.05em; }
.project-copy .button { width: fit-content; margin-top: 24px; }
.skill-card { position: relative; }
.skill-no { position: absolute; right: 24px; top: 24px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.tag-row span { padding: 8px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

.philosophy-preview {
  position: relative;
  isolation: isolate;
  padding: 32px;
  border-radius: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}
.philosophy-preview-copy { min-width: 0; max-width: 760px; }
.philosophy-preview .eyebrow { margin-bottom: 14px; line-height: 1.6; }
.philosophy-preview h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.25;
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.philosophy-preview-summary { margin: 16px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.philosophy-preview .button { width: fit-content; text-align: center; }
@media (max-width: 860px) {
  .philosophy-preview { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 700px) {
  .philosophy-preview { padding: 22px; border-radius: 22px; }
  .philosophy-preview h2 { font-size: clamp(26px, 7vw, 32px); }
  .philosophy-preview .button { width: 100%; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
}

.music-card, .contact-card { padding: 30px; border-radius: 32px; overflow: hidden; }
.studio-lockup { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.studio-lockup img { width: 68px; height: 68px; object-fit: contain; }
.studio-lockup strong { display: block; font-size: 24px; letter-spacing: -.03em; }
.studio-lockup span { color: var(--muted); font-size: 14px; }
.stage-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.stage-photo { margin: 0; overflow: hidden; border-radius: 24px; aspect-ratio: 16 / 10; }
.stage-photo img { width: 100%; height: 100%; object-fit: cover; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.video-card { position: relative; padding-top: 56.25%; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.video-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contact-copy h2 { font-size: clamp(34px, 4.9vw, 64px); max-width: 900px; }
.footer { padding: 26px 0 40px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (max-width: 1080px) {
  .hero, .project-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-visual { margin-top: 8px; min-height: 650px; width: min(100%, 620px); justify-self: center; }
  .hero-photo { top: 46px; right: 0; width: min(440px, 72%); height: 500px; }
  .hero-card-stack { inset: 0; }
  .card-top { width: 292px; left: -22px; top: 18px; }
  .card-bottom { width: 338px; right: 12px; bottom: 20px; }
  .focus-grid, .skills-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .site-header { grid-template-columns: auto 1fr; }
  .header-cta { justify-self: end; }
  .project-card { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .wrap, .site-header { width: min(100% - 24px, var(--max)); }
  .site-header { top: 10px; padding: 10px 14px; margin-top: 10px; }
  .brand span:last-child { display: none; }
  .hero { padding: 36px 0 24px; gap: 26px; }
  .hero-lead { font-size: 16px; }
  .hero-visual { min-height: 680px; width: 100%; justify-self: stretch; }
  .hero-photo {
    top: 38px;
    right: 0;
    width: min(84vw, 350px);
    height: 400px;
    border-radius: 24px;
    --hero-rotate: 2.2deg;
  }
  .hero-card-stack { inset: 0; }
  .hero-floating {
    padding: 17px 18px 16px;
    border-radius: 22px;
  }
  .card-top {
    width: min(260px, 74vw);
    left: 0;
    top: 12px;
  }
  .card-bottom {
    width: min(300px, 86vw);
    right: 0;
    bottom: 18px;
  }
  section { padding: 70px 0; }
  .focus-grid, .skills-grid, .video-grid, .stage-gallery { grid-template-columns: 1fr; }
  .focus-card, .skill-card, .music-card, .contact-card { min-height: auto; padding: 22px; border-radius: 24px; }
  .project-thumb { min-height: 260px; }
  .project-copy { padding: 22px; }
  .studio-lockup { align-items: flex-start; }
  .footer { flex-direction: column; }
}



/* Social QR cards */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.social-card {
  min-width: 0;
  min-height: 610px;
  padding: 24px;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.social-meta span {
  color: var(--muted);
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
}
.social-meta h3 {
  margin: 12px 0 6px;
  font-size: 28px;
  letter-spacing: -.04em;
}
.social-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
@media (min-width: 701px) {
  .social-meta {
    min-height: 90px;
  }
  .social-meta p {
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
}
.qr-frame {
  margin-top: auto;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 430px;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,.10);
  display: grid;
  place-items: center;
  padding: 10px;
}
.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.qr-frame.light { background: #fff; }
.qr-frame.instagram { background: linear-gradient(150deg, #f50075, #8224ea); }
.qr-frame.douyin { background: #23569a; }

.email-address {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  color: var(--text);
  font: 600 15px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .01em;
  border-bottom: 1px solid rgba(105,201,255,.34);
  padding-bottom: 4px;
  transition: color .25s ease, border-color .25s ease;
}
.email-address:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 900px) {
  .social-grid { grid-template-columns: 1fr 1fr; }
  .social-card:first-child { grid-column: 1 / -1; }
  .social-card:first-child .qr-frame { max-width: 420px; }
}

@media (max-width: 700px) {
  .social-grid { grid-template-columns: 1fr; }
  .social-card:first-child { grid-column: auto; }
  .social-card { min-height: auto; padding: 18px; border-radius: 24px; }
  .qr-frame { aspect-ratio: 4 / 5; max-height: none; border-radius: 18px; padding: 8px; }
}

/* Apple-like motion system */
html { scroll-padding-top: 104px; }
.site-header {
  transition: background .45s cubic-bezier(.2,.7,.2,1), border-color .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s cubic-bezier(.2,.7,.2,1), transform .45s cubic-bezier(.2,.7,.2,1);
  will-change: transform, background;
}
.site-header.scrolled {
  background: rgba(6,9,14,.88);
  border-color: rgba(255,255,255,.13);
  box-shadow: 0 16px 50px rgba(0,0,0,.30);
  transform: translateY(-2px) scale(.992);
}

.hero {
  position: relative;
  --hero-copy-y: 0px;
  --hero-copy-scale: 1;
  --hero-copy-opacity: 1;
  --hero-photo-y: 0px;
  --hero-photo-scale: 1;
}
.hero-copy {
  transform: translate3d(0,var(--hero-copy-y),0) scale(var(--hero-copy-scale));
  opacity: var(--hero-copy-opacity);
  transform-origin: left center;
  will-change: transform, opacity;
}
.hero-visual { transform: none !important; }
.hero-photo {
  transform: translate3d(0,var(--hero-photo-y),0) rotate(var(--hero-rotate, 0deg)) scale(var(--hero-photo-scale));
  transform-origin: center center;
  will-change: transform;
  transition: box-shadow .6s cubic-bezier(.2,.7,.2,1), border-color .6s cubic-bezier(.2,.7,.2,1);
}
.hero-photo img {
  transform: scale(1.015);
  transition: transform 1.8s cubic-bezier(.16,1,.3,1);
}
.hero-visual.in .hero-photo img { transform: scale(1); }
.hero-floating {
  transform: none !important;
  transition: border-color .45s ease, background .45s ease, box-shadow .55s ease;
}

.section-head h2 {
  text-wrap: balance;
}
.reveal {
  opacity: 0;
  transform: translate3d(0,34px,0) scale(.985);
  filter: blur(8px);
  transition:
    opacity .9s cubic-bezier(.16,1,.3,1),
    transform .9s cubic-bezier(.16,1,.3,1),
    filter .9s cubic-bezier(.16,1,.3,1);
  will-change: transform, opacity, filter;
}
.reveal.in {
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
  filter: blur(0);
}
.section-head.reveal { transform: translate3d(0,48px,0) scale(.985); }
.section-head.reveal.in { transform: translate3d(0,0,0) scale(1); }

.focus-card, .skill-card, .project-card, .music-card, .social-card, .contact-card, .stage-photo {
  transition:
    transform .65s cubic-bezier(.16,1,.3,1),
    border-color .55s ease,
    box-shadow .65s cubic-bezier(.16,1,.3,1),
    background .55s ease;
}
.focus-card:hover, .skill-card:hover, .social-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255,255,255,.17);
  box-shadow: 0 34px 90px rgba(0,0,0,.38);
}

.project-card {
  --project-scale: 1;
  --project-y: 0px;
  transform: translate3d(0,var(--project-y),0) scale(var(--project-scale));
  transform-origin: center center;
}
.project-card.is-active {
  border-color: rgba(105,201,255,.24);
  box-shadow: 0 34px 100px rgba(0,0,0,.42), 0 0 0 1px rgba(105,201,255,.05) inset;
}
.project-thumb { overflow: hidden; }
.project-thumb img {
  transition: transform 1.2s cubic-bezier(.16,1,.3,1), filter .7s ease;
}
.project-card.is-active .project-thumb img { transform: scale(1.035); }

.stage-photo { overflow: hidden; }
.stage-photo img {
  transform: scale(1.035);
  transition: transform 1.3s cubic-bezier(.16,1,.3,1);
}
.stage-photo.in img { transform: scale(1); }
.video-card {
  transition: transform .6s cubic-bezier(.16,1,.3,1), box-shadow .6s ease, border-color .6s ease;
}
.video-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,.17);
  box-shadow: 0 28px 70px rgba(0,0,0,.34);
}

.qr-frame img {
  transition: transform .8s cubic-bezier(.16,1,.3,1);
}
.social-card:hover .qr-frame img { transform: scale(1.025); }

.button, .header-cta {
  position: relative;
  overflow: hidden;
}
.button::after, .header-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.12) 48%, transparent 76%);
  transform: translateX(-130%);
  transition: transform .7s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.button:hover::after, .header-cta:hover::after { transform: translateX(130%); }

@media (min-width: 1081px) {
  .hero { min-height: 108svh; }
  .projects { padding-bottom: 120px; }
  .project-card:nth-child(1) { position: relative; z-index: 1; }
  .project-card:nth-child(2) { position: relative; z-index: 2; }
}

@media (max-width: 700px) {
  .hero-copy { transform: none !important; opacity: 1 !important; }
  .hero-photo { transform: none !important; }
  .hero-floating { transform: none !important; }
  .focus-card:hover, .skill-card:hover, .social-card:hover,
  .video-card:hover { transform: none; }
}



/* ===== Apple-inspired slow motion + liquid glass v2 ===== */
:root {
  --motion-slow: 1.35s;
  --motion-medium: .95s;
  --apple-ease: cubic-bezier(.22, .61, .36, 1);
  --apple-ease-out: cubic-bezier(.16, 1, .3, 1);
  --glass-stroke: rgba(255,255,255,.16);
  --glass-highlight: rgba(255,255,255,.18);
  --glass-shadow: 0 24px 80px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.12), inset 0 -1px 0 rgba(255,255,255,.035);
}

.glass {
  --glass-x: 50%;
  --glass-y: 0%;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at var(--glass-x) var(--glass-y), rgba(255,255,255,.12), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.095) 0%, rgba(255,255,255,.045) 44%, rgba(255,255,255,.025) 70%, rgba(255,255,255,.055) 100%);
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(30px) saturate(165%);
  -webkit-backdrop-filter: blur(30px) saturate(165%);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), transparent 24%, transparent 72%, rgba(255,255,255,.035)),
    radial-gradient(ellipse at 22% -8%, rgba(255,255,255,.22), transparent 36%);
  mix-blend-mode: screen;
  opacity: .68;
  transition: opacity var(--motion-slow) var(--apple-ease-out);
}
.glass:hover::before { opacity: .92; }
/* Glass effect now relies on pointer-following glow only, without diagonal sweep. */

.site-header {
  background:
    radial-gradient(circle at 24% -40%, rgba(255,255,255,.15), transparent 38%),
    rgba(9,13,19,.55);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 14px 42px rgba(0,0,0,.19), inset 0 1px 0 rgba(255,255,255,.10);
  backdrop-filter: blur(34px) saturate(175%);
  -webkit-backdrop-filter: blur(34px) saturate(175%);
  transition: background .85s var(--apple-ease), border-color .85s var(--apple-ease), box-shadow .85s var(--apple-ease), transform .85s var(--apple-ease-out);
}
.site-header.scrolled {
  background:
    radial-gradient(circle at 20% -50%, rgba(255,255,255,.17), transparent 40%),
    rgba(8,12,18,.69);
  border-color: rgba(255,255,255,.19);
  box-shadow: 0 20px 58px rgba(0,0,0,.27), inset 0 1px 0 rgba(255,255,255,.12);
  transform: translateY(-1px) scale(.995);
}

.header-cta,
.button {
  background:
    radial-gradient(circle at 30% -45%, rgba(255,255,255,.19), transparent 45%),
    rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.17);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 8px 24px rgba(0,0,0,.12);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  transition: transform .9s var(--apple-ease-out), background .9s var(--apple-ease), border-color .9s var(--apple-ease), box-shadow .9s var(--apple-ease);
}
.button.primary {
  background:
    radial-gradient(circle at 26% -60%, rgba(255,255,255,.24), transparent 46%),
    linear-gradient(135deg, rgba(105,201,255,.22), rgba(142,240,200,.10));
  border-color: rgba(155,221,255,.28);
}
.button:hover,
.header-cta:hover {
  transform: translateY(-2px) scale(1.006);
  border-color: rgba(255,255,255,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 14px 36px rgba(0,0,0,.17);
}
.button::after,
.header-cta::after {
  background: linear-gradient(110deg, transparent 18%, rgba(255,255,255,.16) 48%, transparent 78%);
  transition: transform 1.35s var(--apple-ease-out);
}

.hero-floating {
  background:
    radial-gradient(circle at 18% -28%, rgba(255,255,255,.17), transparent 40%),
    rgba(10,15,22,.63);
  border-color: rgba(255,255,255,.17);
  box-shadow: 0 22px 60px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.10);
  backdrop-filter: blur(34px) saturate(170%);
  -webkit-backdrop-filter: blur(34px) saturate(170%);
  transition: border-color 1s var(--apple-ease), background 1s var(--apple-ease), box-shadow 1s var(--apple-ease);
}

.reveal {
  opacity: 0;
  transform: translate3d(0,42px,0) scale(.982);
  filter: blur(10px);
  transition:
    opacity 1.45s var(--apple-ease-out),
    transform 1.45s var(--apple-ease-out),
    filter 1.35s var(--apple-ease-out);
}
.section-head.reveal { transform: translate3d(0,54px,0) scale(.982); }

.focus-card, .skill-card, .project-card, .music-card, .social-card, .contact-card, .stage-photo {
  transition:
    transform 1.05s var(--apple-ease-out),
    border-color 1s var(--apple-ease),
    box-shadow 1.05s var(--apple-ease-out),
    background 1s var(--apple-ease);
}
.focus-card:hover, .skill-card:hover, .social-card:hover {
  transform: translateY(-4px) scale(1.006);
  border-color: rgba(255,255,255,.21);
  box-shadow: 0 34px 96px rgba(0,0,0,.31), inset 0 1px 0 rgba(255,255,255,.13);
}
.project-card.is-active {
  border-color: rgba(143,218,255,.25);
  box-shadow: 0 38px 110px rgba(0,0,0,.34), 0 0 0 1px rgba(105,201,255,.045) inset, inset 0 1px 0 rgba(255,255,255,.10);
}
.project-thumb img { transition: transform 1.8s var(--apple-ease-out), filter 1.2s var(--apple-ease); }
.project-card.is-active .project-thumb img { transform: scale(1.022); }

.stage-photo img { transition: transform 1.9s var(--apple-ease-out); }
.video-card { transition: transform 1.05s var(--apple-ease-out), box-shadow 1.05s var(--apple-ease-out), border-color 1s var(--apple-ease); }
.video-card:hover { transform: translateY(-3px); box-shadow: 0 30px 82px rgba(0,0,0,.29); }
.qr-frame img { transition: transform 1.25s var(--apple-ease-out); }
.social-card:hover .qr-frame img { transform: scale(1.014); }

/* Tiny glass refraction glint, intentionally slow and restrained. */
@media (max-width: 700px) {
  .glass { backdrop-filter: blur(24px) saturate(155%); -webkit-backdrop-filter: blur(24px) saturate(155%); }
  .site-header { backdrop-filter: blur(26px) saturate(165%); -webkit-backdrop-filter: blur(26px) saturate(165%); }
}


/* Keep glass highlights contained inside individual cards */
.focus-card, .skill-card, .music-card, .contact-card, .social-card { isolation: isolate; }


/* Hero corner-card layout: two independent glass cards anchored to opposite photo corners. */
.card-bottom strong { font-size: 18px; line-height: 1.28; }
@media (max-width: 700px) { .card-bottom strong { font-size: 17px; } }

/* ===== Hero composition refinement v4 =====
   Photo aligns with the content width on the right.
   Cards sit on opposite photo corners with only a shallow overlap,
   keeping the subject unobstructed and the composition balanced. */
@media (min-width: 1081px) {
  .hero {
    grid-template-columns: 1.02fr .98fr;
    gap: 34px;
  }
  .hero-visual {
    width: 100%;
    min-height: 720px;
    justify-self: stretch;
    overflow: visible;
  }
  .hero-photo {
    top: 72px;
    right: 0;
    width: 430px;
    height: 520px;
    --hero-rotate: 2.2deg;
  }
  .card-top {
    width: 286px;
    left: 32px;
    top: 18px;
  }
  .card-bottom {
    width: 326px;
    right: 0;
    bottom: 8px;
  }
}

@media (min-width: 701px) and (max-width: 1080px) {
  .hero-visual {
    width: min(100%, 700px);
    min-height: 710px;
    justify-self: center;
  }
  .hero-photo {
    top: 74px;
    right: 0;
    width: min(430px, 66%);
    height: 510px;
    --hero-rotate: 2.1deg;
  }
  .card-top {
    width: 286px;
    left: 40px;
    top: 20px;
  }
  .card-bottom {
    width: 326px;
    right: 0;
    bottom: 10px;
  }
}

@media (max-width: 700px) {
  .hero-visual {
    min-height: 690px;
  }
  .hero-photo {
    top: 78px;
    right: 0;
    width: min(82vw, 340px);
    height: 400px;
    --hero-rotate: 1.8deg;
  }
  .card-top {
    width: min(250px, 72vw);
    left: 2px;
    top: 18px;
  }
  .card-bottom {
    width: min(292px, 84vw);
    right: 0;
    bottom: 10px;
  }
}


/* ===== Hero composition refinement v5 =====
   Keep the photo as the main visual. Cards only clip the outer corners
   so they do not cover the subject. */
@media (min-width: 1081px) {
  .hero {
    grid-template-columns: 1.03fr .97fr;
    gap: 30px;
  }
  .hero-visual {
    width: 100%;
    min-height: 710px;
    justify-self: stretch;
    overflow: visible;
  }
  .hero-photo {
    top: 82px;
    right: 0;
    width: 450px;
    height: 540px;
    --hero-rotate: 2deg;
  }
  .card-top {
    width: 258px;
    left: 24px;
    top: 18px;
  }
  .card-bottom {
    width: 304px;
    right: -8px;
    bottom: -2px;
  }
  .hero-floating {
    padding: 18px 20px 17px;
  }
  .hero-floating strong {
    font-size: 18px;
  }
  .hero-floating p {
    font-size: 13px;
    line-height: 1.55;
  }
}

@media (min-width: 701px) and (max-width: 1080px) {
  .hero-visual {
    width: min(100%, 700px);
    min-height: 700px;
    justify-self: center;
  }
  .hero-photo {
    top: 82px;
    right: 0;
    width: min(440px, 66%);
    height: 520px;
    --hero-rotate: 1.9deg;
  }
  .card-top {
    width: 258px;
    left: 28px;
    top: 18px;
  }
  .card-bottom {
    width: 304px;
    right: -4px;
    bottom: 0;
  }
  .hero-floating {
    padding: 18px 20px 17px;
  }
  .hero-floating strong { font-size: 18px; }
  .hero-floating p { font-size: 13px; line-height: 1.55; }
}

@media (max-width: 700px) {
  .hero-visual {
    min-height: 650px;
  }
  .hero-photo {
    top: 86px;
    right: 0;
    width: min(82vw, 340px);
    height: 400px;
    --hero-rotate: 1.5deg;
  }
  .card-top {
    width: min(238px, 70vw);
    left: 0;
    top: 18px;
  }
  .card-bottom {
    width: min(278px, 82vw);
    right: 0;
    bottom: 0;
  }
  .hero-floating {
    padding: 16px 17px 15px;
  }
  .hero-floating strong { font-size: 17px; }
  .hero-floating p { font-size: 12.5px; line-height: 1.5; }
}

/* ===== Hero composition refinement v6 =====
   Desktop: photo aligns to the same right edge as the header/content wrap.
   The two glass cards sit on opposite photo corners with shallow overlap only. */
@media (min-width: 1081px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 500px;
    gap: 46px;
  }
  .hero-visual {
    width: 500px;
    min-height: 690px;
    justify-self: end;
    overflow: visible;
  }
  .hero-photo {
    top: 62px;
    right: 0;
    width: 470px;
    height: 560px;
    --hero-rotate: 1.15deg;
  }
  .card-top {
    width: 286px;
    right: -8px;
    left: auto;
    top: 22px;
  }
  .card-bottom {
    width: 314px;
    left: -16px;
    right: auto;
    bottom: 10px;
  }
  .hero-floating {
    padding: 18px 20px 17px;
  }
  .hero-floating strong { font-size: 18px; }
  .hero-floating p { font-size: 13px; line-height: 1.55; }
}

@media (min-width: 701px) and (max-width: 1080px) {
  .hero-visual {
    width: min(100%, 650px);
    min-height: 690px;
    justify-self: center;
  }
  .hero-photo {
    top: 70px;
    right: 0;
    width: min(450px, 72%);
    height: 530px;
    --hero-rotate: 1.1deg;
  }
  .card-top {
    width: 270px;
    right: -4px;
    left: auto;
    top: 24px;
  }
  .card-bottom {
    width: 304px;
    left: 0;
    right: auto;
    bottom: 12px;
  }
}

@media (max-width: 700px) {
  .hero-visual {
    min-height: 660px;
    width: 100%;
  }
  .hero-photo {
    top: 72px;
    right: 0;
    width: min(86vw, 350px);
    height: 420px;
    --hero-rotate: .8deg;
  }
  .card-top {
    width: min(238px, 68vw);
    right: 0;
    left: auto;
    top: 18px;
  }
  .card-bottom {
    width: min(284px, 82vw);
    left: 0;
    right: auto;
    bottom: 8px;
  }
}

/* Final positioning guard: .glass sets position:relative later in the cascade,
   so restore absolute positioning for the hero photo and its corner cards. */
.hero-photo,
.hero-floating {
  position: absolute;
}

/* ===== Hero alignment verification pass ===== */
@media (min-width: 1081px) {
  .hero-photo { right: 6px; }
  .card-top { right: -14px; }
  .card-bottom { bottom: -18px; }
}
@media (min-width: 701px) and (max-width: 1080px) {
  .card-top { right: 8px; }
}
@media (max-width: 700px) {
  .card-bottom { bottom: 58px; }
}


/* Mobile refinement */
@media (max-width: 700px) {
  body { line-height: 1.62; }
  .site-header { gap: 10px; }
  .brand { gap: 10px; }
  .brand-mark { width: 34px; height: 34px; }
  .header-cta, .button { padding: 12px 16px; font-size: 14px; }
  .hero h1 { font-size: clamp(40px, 14vw, 66px); line-height: .94; max-width: 10ch; }
  .section-head h2, .contact-copy h2 { font-size: clamp(30px, 9vw, 42px); line-height: 1.02; }
  .hero-lead { margin-top: 20px; font-size: 15px; line-height: 1.8; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { flex: 1 1 calc(50% - 5px); justify-content: center; }
  .resume-links { gap: 10px; row-gap: 8px; font-size: 12px; }
  .hero-visual { min-height: 600px; }
  .hero-photo { top: 42px; width: min(80vw, 336px); height: 392px; }
  .card-top { width: min(252px, 72vw); left: auto; right: 8px; top: 10px; }
  .card-bottom { width: min(286px, 80vw); left: 8px; right: auto; bottom: 10px; }
  .hero-floating strong { margin: 9px 0 8px; font-size: 18px; line-height: 1.2; }
  .hero-floating p { font-size: 13px; line-height: 1.58; }
  .focus-card h3, .skill-card h3 { margin: 16px 0 10px; font-size: 22px; }
  .project-copy h3 { font-size: clamp(24px, 8vw, 34px); }
  .project-copy p, .focus-card p, .skill-card p, .music-copy p, .contact-copy p:last-child { font-size: 14px; line-height: 1.75; }
  .project-thumb { min-height: 220px; }
  .project-copy .button { width: 100%; justify-content: center; margin-top: 18px; }
  .tag-row { margin-top: 18px; gap: 6px; }
  .tag-row span { font-size: 11px; padding: 7px 10px; }
  .music-card, .contact-card { padding: 22px; }
  .studio-lockup { flex-direction: column; align-items: flex-start; gap: 12px; }
  .studio-lockup strong { font-size: 22px; line-height: 1.18; }
  .stage-photo { aspect-ratio: 4 / 3; }
  .social-meta h3 { font-size: 24px; }
  .social-meta p { font-size: 13px; line-height: 1.7; }
  .email-address { font-size: 14px; word-break: break-all; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .button { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
  .site-header { padding: 10px 12px; }
  .header-cta { padding-inline: 14px; font-size: 13px; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: clamp(38px, 13vw, 58px); }
  .hero-visual { min-height: 570px; }
  .hero-photo { width: min(82vw, 320px); height: 372px; }
  .hero-floating { padding: 15px 16px; }
  .card-top { width: min(232px, 72vw); }
  .card-bottom { width: min(268px, 80vw); }
  .hero-actions .button { flex-basis: 100%; }
}

/* Scroll progress lives at the bottom to avoid looking like a page-loading bar. */
.progress { inset: auto auto 0 0; top: auto; bottom: 0; }

/* Latest hero-card placement refinement */
@media (min-width: 1081px) {
  .card-top {
    right: -24px;
    left: auto;
  }
}


/* ===== mobile polish: header, hero, and capability tiles ===== */
.mobile-menu-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  background: rgba(255,255,255,.045);
  color: inherit;
  cursor: pointer;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.mobile-menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 999px;
  background: rgba(245,247,251,.92);
  transition: transform .35s cubic-bezier(.16,1,.3,1), top .35s cubic-bezier(.16,1,.3,1), opacity .25s ease;
}
.mobile-menu-toggle span:first-child { top: 16px; }
.mobile-menu-toggle span:last-child { top: 24px; }
.site-header.menu-open .mobile-menu-toggle span:first-child { top: 20px; transform: rotate(45deg); }
.site-header.menu-open .mobile-menu-toggle span:last-child { top: 20px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .mobile-menu-toggle { display: inline-flex; justify-self: end; align-items: center; }
  .site-header {
    position: sticky;
    overflow: visible;
  }
  .nav { display: none; }
  .site-header.menu-open .nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 14px;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(7, 10, 15, .92);
    backdrop-filter: blur(26px) saturate(165%);
    -webkit-backdrop-filter: blur(26px) saturate(165%);
    box-shadow: 0 22px 64px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.08);
  }
  .site-header.menu-open .nav a {
    padding: 11px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.035);
    color: #dfe6ee;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .site-header {
    top: 10px;
    width: min(100% - 20px, var(--max));
    margin-top: 10px;
    padding: 10px 12px;
    gap: 8px;
    border-radius: 28px;
    /* Four visible items remain on phones: brand, menu, audio and language.
       Give each control its own fixed track so none of them is pushed beyond
       the viewport when the language switcher is injected by i18n.js. */
    grid-template-columns: minmax(0, 1fr) repeat(3, 42px);
  }
  .site-header .header-cta { display: none; }
  .brand { min-width: 0; gap: 10px; }
  .brand span:last-child {
    display: block !important;
    max-width: 136px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
  }
  .brand-mark { width: 36px; height: 36px; }

  .hero {
    padding: 28px 0 18px;
    gap: 18px;
  }
  .eyebrow { margin-bottom: 12px; font-size: 11px; letter-spacing: .14em; }
  .hero h1 {
    font-size: clamp(38px, 11vw, 60px);
    line-height: .92;
    letter-spacing: -.055em;
    max-width: 9.2em;
  }
  .hero-lead {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.72;
    max-width: 34ch;
  }
  .hero-actions { gap: 10px; margin-top: 24px; }
  .hero-actions .button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 118px;
    padding: 11px 18px;
    justify-content: center;
  }
  .resume-links { margin-top: 18px; gap: 10px 12px; font-size: 12px; }

  .hero-visual {
    min-height: 510px;
    width: 100%;
    max-width: none;
    margin-top: 4px;
  }
  .hero-photo {
    top: 18px;
    right: 0;
    width: min(78vw, 338px);
    height: 382px;
    border-radius: 26px;
    --hero-rotate: 1.8deg;
  }
  .hero-floating {
    padding: 16px 16px 15px;
    border-radius: 22px;
    max-width: min(68vw, 252px);
  }
  .card-top {
    top: 0;
    left: auto;
    right: -10px;
    width: min(64vw, 238px);
  }
  .card-bottom {
    left: -8px;
    right: auto;
    bottom: 30px;
    width: min(71vw, 260px);
  }
  .hero-floating strong { margin: 8px 0 8px; font-size: 17px; line-height: 1.22; }
  .hero-floating p { font-size: 12.8px; line-height: 1.52; }

  .section-head.compact { margin-bottom: 18px; }
  .section-head.compact h2 { font-size: clamp(28px, 8vw, 36px); line-height: 1.05; max-width: 12ch; }
  .focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .focus-card {
    min-height: 0;
    padding: 18px;
    border-radius: 22px;
  }
  .focus-card span { font-size: 28px; }
  .focus-card h3 { margin: 12px 0 8px; font-size: 18px; line-height: 1.18; }
  .focus-card p { font-size: 13.5px; line-height: 1.62; }

  .skills-grid { gap: 14px; }
  .skill-card { padding: 20px; border-radius: 22px; }
  .skill-card h3 { font-size: 22px; }

  .button, .header-cta { font-size: 14px; }
  section { padding: 62px 0; }
}

@media (max-width: 430px) {
  .brand span:last-child { max-width: 118px; font-size: 14px; }
  .hero h1 { font-size: clamp(36px, 13vw, 54px); max-width: 8.6em; }
  .hero-lead { font-size: 14px; line-height: 1.7; }
  .hero-visual { min-height: 470px; }
  .hero-photo { width: min(76vw, 318px); height: 354px; }
  .card-top { right: -12px; width: min(61vw, 224px); }
  .card-bottom { left: -10px; bottom: 22px; width: min(68vw, 248px); }
  .hero-floating strong { font-size: 16px; }
  .hero-floating p { font-size: 12px; }
  .focus-grid { grid-template-columns: 1fr 1fr; }
  .focus-card { padding: 16px; }
  .focus-card h3 { font-size: 17px; }
  .focus-card p { font-size: 13px; }
}

@media (max-width: 380px) {
  .site-header.menu-open .nav { grid-template-columns: 1fr; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { min-width: 108px; padding-inline: 16px; }
  .focus-grid { grid-template-columns: 1fr; }
}

/* ===== Responsive portfolio optimization ===== */
.nav-external,
.hero-mobile-facts,
.qr-toggle { display: none; }

.focus-tags,
.project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.hero-identity-note,
.music-note,
.contact-note { color: var(--muted); font-size: 14px; }
.hero-identity-note { margin: 14px 0 0; letter-spacing: .01em; }
.music-note { margin: 14px 0 0; }
.contact-note { margin: 8px 0 0; }
.focus-tags { margin-top: 20px; }
.focus-tags b,
.project-facts span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
  font: 500 11px/1.15 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.project-facts { margin: 0 0 16px; }

.qr-dialog {
  width: min(420px, calc(100% - 28px));
  padding: 22px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 28px;
  color: var(--text);
  background: rgba(8,12,18,.96);
  box-shadow: 0 32px 100px rgba(0,0,0,.58);
}
.qr-dialog::backdrop { background: rgba(2,4,7,.78); backdrop-filter: blur(8px); }
.qr-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.06);
  font-size: 24px;
  cursor: pointer;
}
.qr-dialog-copy { padding: 4px 46px 16px 2px; }
.qr-dialog-copy span { display: block; color: var(--muted); font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
.qr-dialog-copy strong { display: block; margin-top: 10px; font-size: 24px; }
.qr-dialog > img { width: 100%; max-height: 520px; object-fit: contain; border-radius: 18px; background: #fff; }

:where(a, button):focus-visible {
  outline: 3px solid rgba(105,201,255,.82);
  outline-offset: 3px;
}

@media (min-width: 861px) {
  .site-header .lang-toggle,
  .site-header .music-toggle,
  .site-header .header-cta {
    min-height: 50px;
    height: 50px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1;
  }
}

@media (max-width: 860px) {
  .site-header .mobile-menu-toggle,
  .site-header .music-toggle,
  .site-header .lang-toggle {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    flex: 0 0 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  body.mobile-menu-active { overflow: hidden; }
  body.mobile-menu-active::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(2,4,7,.68);
    backdrop-filter: blur(5px);
  }
  .site-header.menu-open .nav {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 10px;
    border-radius: 22px;
    width: 100%;
    justify-self: stretch;
  }
  .site-header.menu-open .nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    text-align: left;
  }
  .site-header.menu-open .nav .nav-external { display: flex; }
}

.music-toggle {
  border: 1px solid rgba(255,255,255,.16);
  color: var(--text);
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09);
  cursor: pointer;
  gap: 8px;
  white-space: nowrap;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.music-toggle:hover { transform: translateY(-1px); background: rgba(255,255,255,.09); }
.music-icon { width: 20px; height: 20px; display: inline-flex; }
.music-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.music-icon .speaker-shape { fill: currentColor; stroke: none; }
.music-toggle .mute-mark { display: none; }
.music-toggle.is-muted .sound-wave { display: none; }
.music-toggle.is-muted .mute-mark { display: inline; }

@media (max-width: 860px) {
  .music-toggle { order: initial; }
  .music-toggle .music-label { display: none; }
}

@media (max-width: 700px) {
  .wrap { width: min(100% - 24px, var(--max)); }
  section { padding: 52px 0; }
  .section-head { margin-bottom: 24px; }
  .section-head h2,
  .contact-copy h2 { font-size: clamp(30px, 8.8vw, 38px); line-height: 1.04; }

  .hero {
    min-height: auto;
    padding: 30px 0 16px;
    gap: 24px;
  }
  .hero h1 {
    max-width: 10em;
    font-size: clamp(36px, 11.4vw, 44px);
    line-height: .96;
  }
  .hero-lead {
    max-width: none;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.68;
  }
  .hero-actions { margin-top: 20px; }
  .hero-actions .button { min-height: 44px; }
  .resume-links { margin-top: 14px; }
  .hero-mobile-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
  }
  .hero-mobile-facts span {
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255,255,255,.03);
    font: 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  }
  .hero-visual {
    min-height: 0;
    height: auto;
    margin: 0;
  }
  .hero-photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    transform: none !important;
  }
  .hero-photo img { object-position: center 58%; }
  .hero-card-stack {
    position: relative;
    inset: auto;
    display: grid;
    gap: 10px;
    margin-top: 12px;
  }
  .hero-floating,
  .card-top,
  .card-bottom {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
  }
  .hero-floating { padding: 17px 18px; border-radius: 22px; }
  .hero-floating strong { font-size: 17px; }
  .hero-floating p { font-size: 13px; line-height: 1.55; }

  .focus-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .focus-card { padding: 16px; }
  .focus-card span { font-size: 25px; }
  .focus-card h3 { margin: 10px 0 8px; font-size: 17px; }
  .focus-card p { font-size: 12.5px; line-height: 1.55; }
  .focus-tags { margin-top: 12px; gap: 5px; }
  .focus-tags b { padding: 6px 7px; font-size: 9.5px; }

  .project-card { grid-template-columns: 1fr; border-radius: 24px; }
  .project-thumb {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .project-thumb.dark { padding: 28px; }
  .project-copy { padding: 20px; }
  .project-copy h3 { font-size: clamp(25px, 7.8vw, 32px); }
  .project-facts { gap: 5px; margin-bottom: 13px; }
  .project-facts span { padding: 6px 7px; font-size: 9.5px; }
  .project-copy .button { min-height: 44px; }

  .music-card { padding: 18px; }
  .stage-gallery,
  .video-grid { gap: 10px; margin-top: 18px; }
  .stage-gallery { grid-template-columns: 1fr 1fr; }
  .stage-photo { aspect-ratio: 1; border-radius: 18px; }
  .video-card { border-radius: 18px; }

  .social-grid { gap: 10px; }
  .social-card {
    min-height: 0;
    padding: 17px;
    gap: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .social-meta h3 { margin-top: 8px; font-size: 21px; }
  .social-meta p { line-height: 1.45; }
  .social-card .qr-frame { display: none; }
  .qr-toggle {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 13px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: var(--text);
    background: rgba(255,255,255,.05);
    font: 600 13px/1 inherit;
    cursor: pointer;
    white-space: nowrap;
  }

  .contact-actions { margin-top: 22px; }
}

@media (max-width: 430px) {
  .brand span:last-child { max-width: 130px; }
  .resume-links > span { width: 100%; }
  .hero-actions .button { flex: 1 1 calc(50% - 5px) !important; min-width: 0; }
  .stage-gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 350px) {
  .brand span:last-child { display: none !important; }
  .focus-grid { grid-template-columns: 1fr; }
  .social-card { grid-template-columns: 1fr; }
  .qr-toggle { width: 100%; }
}

@media (min-width: 701px) and (max-width: 860px) {
  .hero { min-height: auto; padding: 52px 0 36px; gap: 30px; }
  .hero h1 { font-size: clamp(48px, 8.2vw, 62px); max-width: 12em; }
  .hero-lead { max-width: 660px; }
  .hero-visual { min-height: 0; width: 100%; margin: 0; }
  .hero-photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 28px;
    transform: none !important;
  }
  .hero-photo img { object-position: center 57%; }
  .hero-card-stack { display: none; }
}

/* Final mobile composition: surface the secondary identity before the photo. */
@media (max-width: 700px) {
  .hero-visual {
    display: flex;
    flex-direction: column;
  }
  .hero-card-stack {
    order: 1;
    margin: 0 0 12px;
  }
  .hero-photo { order: 2; }

  /* Keep all three QR codes visible without an extra tap. */
  .social-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .social-card {
    display: flex;
    min-height: 0;
    padding: 14px;
    gap: 10px;
  }
  .social-card:first-child { grid-column: 1 / -1; }
  .social-meta span,
  .social-meta p { display: none; }
  .social-meta h3 { margin: 0; font-size: 18px; line-height: 1.15; }
  .social-card .qr-frame,
  .social-card:first-child .qr-frame {
    display: grid;
    width: 100%;
    max-width: none;
    max-height: none;
    aspect-ratio: 4 / 5;
    margin-top: auto;
    padding: 5px;
    border-radius: 15px;
  }
  .social-card:first-child .qr-frame {
    width: min(100%, 220px);
    align-self: center;
  }
  .qr-toggle { display: none; }
}

/* QR contact rail: four clean, square codes on desktop; a compact four-up grid on phones. */
.social-carousel {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.social-grid {
  display: flex;
  min-width: 0;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.social-grid::-webkit-scrollbar { display: none; }
.social-card {
  flex: 0 0 calc((100% - 48px) / 4);
  min-height: 0;
  padding: 20px;
  gap: 16px;
  scroll-snap-align: start;
}
.social-card .qr-frame,
.social-card:first-child .qr-frame {
  width: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: 1 / 1;
  padding: 8px;
  border-radius: 20px;
  background: #fff;
}
.social-card .qr-frame img { border-radius: 12px; }
.social-scroll {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0 0 3px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255,255,255,.06);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  font: 400 30px/1 -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, opacity .25s ease, transform .25s ease;
}
.social-scroll:hover:not(:disabled) {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.32);
  transform: scale(1.04);
}
.social-scroll:disabled { opacity: .32; cursor: default; }

@media (max-width: 1100px) and (min-width: 701px) {
  .social-card { flex-basis: calc((100% - 32px) / 3); }
}

@media (max-width: 700px) {
  .social-carousel { display: block; margin-top: 18px; }
  .social-scroll { display: none; }
  .social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }
  .social-card {
    grid-column: auto !important;
    min-width: 0;
    padding: 14px;
    gap: 10px;
  }
  .social-meta span,
  .social-meta p { display: none; }
  .social-meta h3 { margin: 0; font-size: 18px; line-height: 1.15; }
  .social-card .qr-frame,
  .social-card:first-child .qr-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 5px;
    border-radius: 15px;
  }
  .social-card .qr-frame img { border-radius: 9px; }
}

/* Normalize the visible QR area inside each square canvas. */
.social-card:nth-child(2) .qr-frame img { transform: scale(1.08); }
.social-card:nth-child(3) .qr-frame img { transform: scale(.96); }
.social-card:nth-child(4) .qr-frame img { transform: scale(1.08); }
@media (max-width: 700px) {
  .social-card:nth-child(2) .qr-frame img { transform: scale(1.08); }
  .social-card:nth-child(3) .qr-frame img { transform: scale(.96); }
  .social-card:nth-child(4) .qr-frame img { transform: scale(1.08); }
}

/* Match the SoundShare icon with a centered square, rounded-corner product image. */
.project-thumb.ultrasonic-thumb {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 40px;
  background: linear-gradient(160deg, #05070b, #0e131b);
}
.project-thumb.ultrasonic-thumb img {
  width: min(100%, 280px);
  max-height: 280px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 28%;
  corner-shape: squircle;
}
.project-card.is-active .project-thumb img {
  transform: none;
}
@media (max-width: 700px) {
  .project-thumb.ultrasonic-thumb {
    aspect-ratio: 16 / 10;
    min-height: 0;
    padding: 28px;
  }
  .project-thumb.ultrasonic-thumb img {
    width: min(280px, 100%);
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 28%;
    corner-shape: squircle;
  }
  .project-card,
  .project-card.is-active {
    --project-scale: 1 !important;
    --project-y: 0px !important;
    transform: none !important;
  }
}

/* ===== Apple-like visual refinement =====
   Keep the dark direction, but remove the louder cyberpunk cues.
   The page now uses one calm blue accent, quieter glass, and native-system typography. */
:root {
  --bg: #050608;
  --bg-2: #111214;
  --panel: rgba(28, 28, 30, .72);
  --text: #f5f5f7;
  --muted: rgba(235, 235, 245, .68);
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .18);
  --accent: #2997ff;
  --accent-2: #8fcaff;
  --radius: 24px;
  --shadow: 0 26px 80px rgba(0, 0, 0, .34);
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(circle at 50% -18%, rgba(41, 151, 255, .13), transparent 34%),
    linear-gradient(180deg, #050608 0%, #101114 55%, #050608 100%);
}

.noise {
  opacity: .035;
  background-size: 28px 28px;
}

.bg-orb {
  filter: blur(110px);
  opacity: .13;
}

.orb-1,
.orb-2 {
  background: rgba(41, 151, 255, .22);
}

.glass {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .035) 48%, rgba(255, 255, 255, .022));
  border-color: rgba(255, 255, 255, .13);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .09);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
}

.glass::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, .13), transparent 24%, transparent 78%, rgba(255, 255, 255, .025));
  opacity: .42;
}

.glass:hover::before { opacity: .56; }

.site-header {
  background: rgba(28, 28, 30, .72);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .10);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
}

.site-header.scrolled {
  background: rgba(28, 28, 30, .84);
  border-color: rgba(255, 255, 255, .18);
}

.brand-mark {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: none;
}

.nav { gap: 26px; font-size: 13px; }

.header-cta,
.button {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .17);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 8px 22px rgba(0, 0, 0, .14);
}

.button.primary {
  color: #fff;
  background: linear-gradient(180deg, #2997ff 0%, #1479e9 100%);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 24px rgba(41, 151, 255, .24);
}

.button:hover,
.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), 0 12px 30px rgba(0, 0, 0, .18);
}

.button.primary:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 14px 30px rgba(41, 151, 255, .30);
}

.button::after,
.header-cta::after { display: none; }

.hero h1,
.section-head h2,
.contact-copy h2 {
  font-weight: 650;
  letter-spacing: -.052em;
}

.hero h1 span {
  background: linear-gradient(90deg, #fff 0%, #c7e6ff 58%, #8fcaff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow,
.card-kicker,
.project-tag,
.social-meta span {
  color: rgba(235, 235, 245, .58);
}

.hero-floating {
  background: rgba(28, 28, 30, .70);
  border-color: rgba(255, 255, 255, .15);
  box-shadow: 0 22px 58px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .09);
  backdrop-filter: blur(30px) saturate(145%);
  -webkit-backdrop-filter: blur(30px) saturate(145%);
}

.focus-card,
.project-card,
.music-card,
.social-card,
.contact-card,
.stage-photo,
.video-card {
  border-radius: 26px;
}

.focus-card:hover,
.social-card:hover {
  transform: translateY(-3px) scale(1.003);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 30px 78px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .11);
}

.focus-tags b,
.project-facts span,
.hero-mobile-facts span {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .035);
}

:where(a, button):focus-visible {
  outline-color: rgba(41, 151, 255, .95);
}

@media (max-width: 700px) {
  .glass {
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
  }

  .site-header {
    background: rgba(28, 28, 30, .78);
    border-radius: 24px;
  }

  .hero-floating {
    background: rgba(28, 28, 30, .74);
    border-radius: 22px;
  }

  .focus-card,
  .project-card,
  .music-card,
  .social-card,
  .contact-card,
  .stage-photo,
  .video-card {
    border-radius: 22px;
  }
}

/* Final home positioning: reduce the tall breathing space above the hero a little. */
@media (min-width: 1081px) {
  .hero {
    min-height: 100svh;
    padding-top: 54px;
  }
}

@media (min-width: 701px) and (max-width: 1080px) {
  .hero { padding-top: 46px; }
}

@media (max-width: 700px) {
  .hero { padding-top: 24px; }
}

/* Mobile action buttons share one full-width, 48px control size. */
@media (max-width: 700px) {
  .project-copy .button,
  .contact-actions .button {
    width: 100%;
    height: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    line-height: 1;
  }
}

/* Mobile hero actions: two equal-width controls on one row. */
@media (max-width: 700px) {
  .hero-actions {
    width: 100%;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
  }
  .hero-actions .button {
    flex: 1 1 calc(50% - 5px) !important;
    width: calc(50% - 5px) !important;
    min-width: 0;
    height: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    line-height: 1;
    text-align: center;
  }
}

/* Switch the expanded home navigation to the existing menu before it crowds
   the music, language, and GitHub controls on medium-width screens. */
@media (min-width: 861px) and (max-width: 1160px) {
  .mobile-menu-toggle { display: inline-flex; justify-self: end; align-items: center; }
  .site-header { position: sticky; overflow: visible; }
  .nav { display: none; }
  .site-header.menu-open .nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 26px;
    background: rgba(7,10,15,.94);
    box-shadow: 0 22px 64px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(26px) saturate(165%);
    -webkit-backdrop-filter: blur(26px) saturate(165%);
  }
  .site-header.menu-open .nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    color: #dfe6ee;
    background: rgba(255,255,255,.035);
    text-align: center;
  }
}

/* Keep the English navigation and brand on one line near the menu breakpoint. */
@media (min-width: 1161px) and (max-width: 1280px) {
  .site-header .music-toggle {
    width: 44px;
    min-width: 44px;
    padding: 0;
    justify-content: center;
  }
  .site-header .music-label { display: none; }
}

/* Current industry experience and evidence-first project status. */
.experience-list {
  display: grid;
  gap: 16px;
}
.experience-card {
  padding: 30px;
  border-radius: 30px;
  overflow: hidden;
}
.experience-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
}
.experience-head h3 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.experience-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 14px;
}
.experience-meta strong { color: var(--text); font-size: 16px; }
.experience-sector {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 650;
}
.experience-summary {
  max-width: 880px;
  margin: 26px 0 0;
  color: var(--muted);
}
.experience-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 32px;
  margin: 22px 0 0;
  padding-left: 1.2em;
  color: var(--muted);
}
.soundshare-thumb { position: relative; }
.project-proof-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  color: rgba(255,255,255,.76);
  background: rgba(8,12,18,.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

@media (max-width: 700px) {
  .experience-card { padding: 20px; border-radius: 22px; }
  .experience-head { display: grid; gap: 16px; }
  .experience-head h3 { font-size: 26px; }
  .experience-meta { justify-items: start; }
  .experience-sector { margin-top: 16px; font-size: 14px; }
  .experience-summary { margin-top: 20px; font-size: 14px; }
  .experience-points { grid-template-columns: 1fr; gap: 8px; font-size: 14px; }
  .project-proof-badge { left: 12px; bottom: 12px; font-size: 9px; }
}

/* iPad landscape and full-size portrait: keep the first screen composed as
   one scene. The former <=1080px rule stacked this layout like a phone,
   leaving a large gap between the introduction and portrait on 10–11-inch
   iPads. Narrow tablets still use the deliberate single-column treatment. */
@media (min-width: 901px) and (max-width: 1080px) {
  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
    align-items: center;
    gap: 30px;
    padding: 54px 0 48px;
  }

  .hero-lead { margin-top: 20px; font-size: 16px; line-height: 1.72; }
  .hero-actions { margin-top: 24px; }

  .hero-visual {
    min-height: 550px;
    width: 100%;
    max-width: 430px;
    margin: 0;
    justify-self: end;
  }

  .hero-photo {
    top: 42px;
    width: min(100%, 392px);
    height: 462px;
    border-radius: 30px;
    --hero-rotate: 1.2deg;
  }

  .card-top {
    top: 12px;
    left: -34px;
    width: 262px;
  }

  .card-bottom {
    right: -10px;
    bottom: 8px;
    width: 298px;
  }

  .hero-floating { padding: 18px 19px; border-radius: 24px; }
  .hero-floating strong { font-size: 18px; }
  .hero-floating p { font-size: 13px; line-height: 1.55; }
}

/* Let headline size follow its text column, including the narrower desktop
   column beside the portrait. Existing spans keep the two clauses together. */
.hero-copy { min-width: 0; container-type: inline-size; }
.hero h1 {
  max-width: none;
  font-size: clamp(32px, 5.8vw, 72px);
  line-height: 1.12;
  text-wrap: balance;
}
.hero h1 span { display: block; }
@supports (font-size: 1cqi) {
  .hero h1 { font-size: clamp(32px, 11cqi, 72px); }
}

/* Two project columns need the full card width for their descriptions.
   Keep images above copy instead of splitting each card into two more columns. */
@media (min-width: 701px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }
  .project-thumb.dark {
    height: clamp(250px, 27vw, 320px);
    min-height: 0;
    padding: 28px;
  }
  .project-thumb.dark img {
    width: auto;
    height: auto;
    max-width: min(100%, 264px);
    max-height: 100%;
  }
  .project-copy { min-width: 0; padding: clamp(24px, 2.5vw, 30px); }
  .project-copy h3 {
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
    text-wrap: balance;
  }
  .project-copy .button { margin-top: auto; }
  .project-copy > p:last-of-type { margin-bottom: 24px; }
}

/* One shared glass surface for every module.  Experience cards are the
   reference treatment; other modules opt in by using the same .glass class. */
:root {
  --module-glass-background: linear-gradient(145deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .035) 48%, rgba(255, 255, 255, .022));
  --module-glass-border: rgba(255, 255, 255, .13);
  --module-glass-shadow: 0 24px 70px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .09);
  --module-glass-blur: blur(4px);
}

body { line-break: strict; }

.glass {
  background: var(--module-glass-background);
  border-color: var(--module-glass-border);
  box-shadow: var(--module-glass-shadow);
  backdrop-filter: var(--module-glass-blur);
  -webkit-backdrop-filter: var(--module-glass-blur);
}

/* Gently soften the particle field through every module, including reveals,
   with the same restrained glass highlight. */
.glass::before {
  inset: 1px;
  width: auto;
  height: auto;
  border-radius: inherit;
  z-index: 4;
  background: linear-gradient(135deg, rgba(255, 255, 255, .13), transparent 24%, transparent 78%, rgba(255, 255, 255, .025));
  opacity: .42;
  transition: opacity var(--motion-slow) var(--apple-ease-out);
}
.glass:hover::before { opacity: .56; }

.experience-card {
  transition: transform .65s cubic-bezier(.16, 1, .3, 1), border-color .55s ease, box-shadow .65s cubic-bezier(.16, 1, .3, 1);
}

.experience-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 30px 78px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .11);
}

.experience { scroll-margin-top: 104px; }

/* Promote the fixed WebGL surface to its own compositor layer so scrolling
   does not repeatedly re-rasterize the particle field. */
.page-particle-canvas {
  contain: strict;
  transform: translateZ(0);
  will-change: transform;
}

@media (max-width: 700px) {
  .glass {
    --module-glass-blur: blur(4px);
    backdrop-filter: var(--module-glass-blur);
    -webkit-backdrop-filter: var(--module-glass-blur);
  }
}



/* Keep scroll reveals compositor-friendly while the fixed particle canvas is
   animating.  The previous full-element blur forced a large repaint for each
   translucent card (and its backdrop-filter) during every reveal.  Fade and
   translate preserve the transition without competing with the particle RAF. */
.reveal {
  filter: none;
  /* An opacity hint creates a backdrop root even at opacity: 1, preventing
     nested glass from blurring the particle canvas outside this element. */
  will-change: transform;
  transition:
    opacity .95s var(--apple-ease-out),
    transform .95s var(--apple-ease-out);
}
.reveal.in { filter: none; }

@media (max-width: 700px) {
  /* Keep the injected language switcher inside the phone header. */
  .site-header {
    display: flex;
    align-items: center;
    grid-template-columns: none !important;
  }
  .site-header > .brand { flex: 1 1 auto; min-width: 0; }
  .site-header > .mobile-menu-toggle,
  .site-header > .music-toggle,
  .site-header > .lang-switcher {
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    margin-left: 8px;
    justify-self: auto;
  }
  .site-header > .lang-switcher .lang-toggle { width: 42px; }
}
