:root {
  --font-sans: "Source Han Sans SC", "Source Han Sans CN", "Noto Sans CJK SC", "思源黑体", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  --deep: #070333;
  --panel: rgba(224, 212, 255, 0.075);
  --line: rgba(209, 194, 255, 0.24);
  --white: #fff;
  --muted: rgba(246, 241, 255, 0.72);
  --purple: #7f35ff;
  --blue: #37ddff;
  --radius: 8px;
  --max: 1760px;
  --glow-border: rgba(202, 158, 255, 0.9);
  --glow-surface: radial-gradient(circle at 16% 46%, rgba(244, 237, 255, 0.42), transparent 20%), radial-gradient(circle at 50% 100%, rgba(127, 53, 255, 0.46), transparent 70%), linear-gradient(180deg, rgba(105, 37, 220, 0.5), rgba(80, 24, 178, 0.44) 54%, rgba(48, 16, 126, 0.46));
  --glow-surface-soft: radial-gradient(circle at 16% 46%, rgba(244, 237, 255, 0.26), transparent 20%), radial-gradient(circle at 50% 100%, rgba(127, 53, 255, 0.34), transparent 70%), linear-gradient(180deg, rgba(96, 34, 204, 0.42), rgba(72, 22, 160, 0.38) 54%, rgba(44, 15, 118, 0.4));
  --glow-shadow: 0 0 0 1px rgba(214, 184, 255, 0.3), 0 0 18px rgba(176, 78, 255, 0.52), 0 0 42px rgba(127, 53, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 20px rgba(205, 141, 255, 0.24), inset 0 -12px 30px rgba(127, 53, 255, 0.26);
  --glow-shadow-strong: 0 0 0 1px rgba(238, 230, 255, 0.44), 0 0 24px rgba(205, 141, 255, 0.82), 0 0 62px rgba(127, 53, 255, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 26px rgba(224, 205, 255, 0.28), inset 0 -16px 36px rgba(127, 53, 255, 0.32);
}

.ai-lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 86;
  display: none;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--glow-border);
  border-radius: 50%;
  background: var(--glow-surface);
  box-shadow: var(--glow-shadow);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ai-lightbox.has-lightbox-nav .ai-lightbox-nav {
  display: grid;
}

.ai-lightbox-prev {
  left: clamp(10px, 3vw, 42px);
}

.ai-lightbox-next {
  right: clamp(10px, 3vw, 42px);
}

.ai-lightbox-nav::before {
  width: 18px;
  height: 18px;
  background: #fff;
  clip-path: polygon(24% 8%, 82% 50%, 24% 92%, 36% 50%);
  content: "";
}

.ai-lightbox-prev::before {
  transform: rotate(180deg);
}

.retouch-story-mode .ai-lightbox-prev::before {
  transform: rotate(180deg);
}

.retouch-story-mode .ai-lightbox-next::before {
  transform: rotate(0deg);
}

.ai-lightbox-nav:hover,
.ai-lightbox-nav:focus-visible {
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow: var(--glow-shadow-strong);
  transform: translateY(-50%) scale(1.04);
}

@media (max-width: 640px) {
  .ai-lightbox-nav {
    width: 52px;
    height: 52px;
  }

  .ai-lightbox-prev {
    left: 6px;
  }

  .ai-lightbox-next {
    right: 6px;
  }
}

* { box-sizing: border-box; }

html { overflow-x: hidden; scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--deep);
  color: var(--white);
  font-family: var(--font-sans);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    radial-gradient(circle at 8% 92%, rgba(24, 19, 93, 0.5), transparent 18%),
    linear-gradient(180deg, #0b073c 0%, #080433 48%, #050222 100%);
}

.metaverse-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

.site-header {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, 1220px);
  min-height: 58px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  transform: translateX(-50%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 2px 16px rgba(7, 3, 51, 0.28);
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #b89eff 45%, var(--purple));
  color: #160743;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.nav a {
  position: relative;
  padding: 10px 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  text-shadow: 0 2px 14px rgba(7, 3, 51, 0.28);
  transition: color 180ms ease, text-shadow 180ms ease;
}

.nav a::after {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: translateX(-50%) scaleX(0.6);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav a:hover {
  color: var(--white);
}

.nav a:hover::after {
  opacity: 0.72;
  transform: translateX(-50%) scaleX(1);
}

.nav a.active {
  color: #a985ff;
  text-shadow: 0 0 16px rgba(169, 133, 255, 0.58);
}

.nav a.active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.menu-toggle { display: none; }

.back-home {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 55;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid var(--glow-border);
  border-radius: 50%;
  background: var(--glow-surface);
  box-shadow: var(--glow-shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.back-home.visible { opacity: 1; pointer-events: auto; }
.back-home:hover,
.back-home:focus-visible {
  box-shadow: var(--glow-shadow-strong);
  transform: translateY(-2px);
}
.back-home span {
  width: 19px;
  height: 19px;
  background: #fff;
  clip-path: polygon(6% 47%, 93% 8%, 63% 92%, 45% 60%);
  transform: translate(1px, -1px) rotate(-45deg);
}

.has-carousel-plane-nav {
  position: relative;
}

.carousel-plane-nav {
  position: absolute;
  top: 50%;
  z-index: 12;
  display: grid;
  width: clamp(42px, 3.8vw, 54px);
  height: clamp(42px, 3.8vw, 54px);
  place-items: center;
  padding: 0;
  border: 1px solid rgba(211, 180, 255, 0.78);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 36%, rgba(255, 255, 255, 0.34), rgba(172, 112, 255, 0.42) 42%, rgba(86, 40, 176, 0.78) 100%);
  box-shadow:
    0 0 18px rgba(173, 105, 255, 0.82),
    0 0 42px rgba(126, 61, 255, 0.46),
    inset 0 0 18px rgba(255, 255, 255, 0.16);
  cursor: pointer;
  opacity: 0.96;
  overflow: visible;
  transform: translateY(-50%);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.carousel-plane-nav:hover,
.carousel-plane-nav:focus-visible {
  opacity: 1;
  outline: 0;
  box-shadow:
    0 0 24px rgba(190, 132, 255, 0.92),
    0 0 54px rgba(137, 69, 255, 0.56),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.06);
}

.carousel-plane-nav span {
  width: clamp(16px, 1.45vw, 21px);
  height: clamp(16px, 1.45vw, 21px);
  background: #fff;
  clip-path: polygon(6% 47%, 93% 8%, 63% 92%, 45% 60%);
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.82))
    drop-shadow(0 0 12px rgba(206, 178, 255, 0.82));
  transform: rotate(var(--plane-rotate, 0deg));
}

.carousel-plane-prev {
  left: clamp(-96px, calc(-4vw - 34px), -72px);
  --plane-rotate: -135deg;
}

.carousel-plane-next {
  right: clamp(-96px, calc(-4vw - 34px), -72px);
  --plane-rotate: 45deg;
}

.section {
  position: relative;
  isolation: isolate;
  width: min(100% - 40px, var(--max));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(104px, 13vh, 178px) 0 clamp(96px, 12vh, 166px);
}

.project-info,
.strengths,
.contact {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.works {
  min-height: auto;
  padding-top: clamp(86px, 11vh, 138px);
  padding-bottom: clamp(86px, 11vh, 142px);
}

.strengths {
  min-height: auto;
  padding-bottom: 0;
}

.case-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 128px max(44px, calc((100vw - var(--max)) / 2)) 72px;
}

.case-hero::after,
.hero-bg::after,
.project-info::before,
.strengths::before,
.works::before,
.contact::before {
  position: absolute;
  pointer-events: none;
  content: "";
}

.case-hero::after {
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent calc(100% - 22px), rgba(5, 3, 30, 0.62) calc(100% - 8px), #05031e 100%),
    linear-gradient(90deg, rgba(5, 3, 30, 0.28), transparent 42%, rgba(55, 221, 255, 0.04));
}

.hero-bg,
.hero-bg video {
  position: absolute;
  inset: 0;
}

.hero-bg { z-index: 0; background: #05031e; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-bg::after {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 3, 30, 0) calc(100% - 24px), rgba(5, 3, 30, 0.5) calc(100% - 9px), #05031e 100%),
    linear-gradient(90deg, rgba(5, 3, 30, 0.28), rgba(5, 3, 30, 0.08) 48%, rgba(5, 3, 30, 0.1));
}

.case-hero-inner {
  position: relative;
  z-index: 2;
  width: min(78vw, 1180px);
  max-width: 1180px;
  pointer-events: none;
}

.case-hero.hero-copy-visible .case-hero-inner {
  pointer-events: auto;
}

.case-kicker,
.case-hero h1 span,
.hero-subtitle,
.hero-metrics article {
  opacity: 0;
  filter: blur(7px);
  transform: translateY(24px) scale(0.985);
  transition:
    opacity 1100ms ease,
    filter 1100ms ease,
    transform 1300ms cubic-bezier(0.2, 0.88, 0.22, 1);
}

.case-hero.hero-copy-visible .case-kicker,
.case-hero.hero-copy-visible h1 span,
.case-hero.hero-copy-visible .hero-subtitle,
.case-hero.hero-copy-visible .hero-metrics article {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.case-hero.hero-copy-visible h1 span:first-child { transition-delay: 0ms; }
.case-hero.hero-copy-visible h1 span:last-child { transition-delay: 140ms; }
.case-hero.hero-copy-visible .case-kicker { transition-delay: 520ms; }
.case-hero.hero-copy-visible .hero-subtitle { transition-delay: 760ms; }
.case-hero.hero-copy-visible .hero-metrics article:nth-child(1) { transition-delay: 1080ms; }
.case-hero.hero-copy-visible .hero-metrics article:nth-child(2) { transition-delay: 1240ms; }
.case-hero.hero-copy-visible .hero-metrics article:nth-child(3) { transition-delay: 1400ms; }

.case-hero .button.primary:hover,
.case-hero .button.primary:focus-visible {
  transform: translateY(-2px) scale(1);
}

.case-hero .button.primary {
  display: grid;
  width: max-content;
}

.case-hero .hero-corner-cta {
  position: relative;
  top: auto;
  right: auto;
  z-index: 3;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(30px, 4vh, 46px);
  min-height: 56px;
  padding: 0 18px 0 30px;
  border-color: rgba(232, 222, 255, 0.9);
  background:
    radial-gradient(circle at 78% 50%, rgba(55, 221, 255, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(105, 37, 220, 0.3), rgba(70, 24, 156, 0.22));
  box-shadow:
    0 0 0 1px rgba(224, 205, 255, 0.24),
    0 0 22px rgba(205, 141, 255, 0.72),
    0 0 58px rgba(127, 53, 255, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -12px 28px rgba(127, 53, 255, 0.22);
}

.case-hero .hero-corner-cta span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.case-hero .hero-corner-cta span::before {
  display: block;
  width: 18px;
  height: 18px;
  margin: 1px 0 0 1px;
  background: #fff;
  clip-path: polygon(6% 47%, 93% 8%, 63% 92%, 45% 60%);
  content: "";
}

.case-kicker {
  margin: 0 0 30px;
  color: rgba(238, 230, 255, 0.68);
  font-size: clamp(14px, 1.8vw, 28px);
  text-transform: uppercase;
}

h1 {
  margin: 0 0 38px;
  font-size: clamp(54px, 5.7vw, 86px);
  letter-spacing: 0.045em;
  line-height: 1.05;
  white-space: nowrap;
}

.case-hero h1 {
  font-size: clamp(42px, 6vw, 96px);
  letter-spacing: 0.035em;
  background: linear-gradient(90deg, #fff 6%, #d8cbff 48%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.case-hero h1 span {
  display: inline;
  background: none;
  color: transparent;
}
.hero-subtitle { margin: 0 0 40px; color: rgba(238, 230, 255, 0.78); font-size: clamp(18px, 1.55vw, 26px); }

.button {
  display: inline-grid;
  min-height: 58px;
  place-items: center;
  padding: 0 34px;
  border: 1px solid var(--glow-border);
  border-radius: 999px;
  background: var(--glow-surface);
  color: #fff;
  box-shadow: var(--glow-shadow);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.26);
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: var(--glow-shadow-strong);
  transform: translateY(-2px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
  margin-top: 42px;
  padding-top: 20px;
}

.hero-metrics article,
.info-panel,
.profile-orb,
.skill-card,
.work-card,
.work-category,
.contact-content {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.026)),
    rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
}

.hero-metrics article {
  padding: 18px;
  border: 1px solid transparent;
  background:
    linear-gradient(135deg, rgba(5, 3, 30, 0), rgba(5, 3, 30, 0)) padding-box,
    linear-gradient(135deg, rgba(232, 214, 255, 0.78), rgba(174, 94, 255, 0.5) 44%, rgba(127, 53, 255, 0.16) 100%) border-box;
  box-shadow:
    inset 0 0 18px rgba(184, 128, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(214, 184, 255, 0.1),
    0 0 18px rgba(176, 78, 255, 0.34),
    0 0 46px rgba(127, 53, 255, 0.2);
  backdrop-filter: none;
}
.hero-metrics span, .hero-metrics em { color: var(--muted); font-size: clamp(13px, 1vw, 16px); font-style: normal; }
.section-index strong { color: var(--muted); font-size: clamp(14px, 1.1vw, 18px); font-style: normal; }
.work-card span, .contact-content p { color: var(--muted); font-size: 14px; font-style: normal; }
.hero-metrics strong { display: block; margin: 8px 0 5px; font-size: clamp(24px, 1.8vw, 32px); }

.section-index {
  display: grid;
  grid-template-columns: auto 82px 1fr;
  gap: 16px;
  align-items: center;
  width: min(100%, 360px);
  margin-bottom: clamp(46px, 6vh, 90px);
  color: rgba(246, 241, 255, 0.92);
  font-weight: 900;
}

.section-index i { height: 1px; background: rgba(255, 255, 255, 0.24); }

.mega-title {
  position: relative;
  min-height: clamp(104px, 14vh, 188px);
  margin-bottom: clamp(34px, 5vh, 70px);
}

.mega-title p {
  position: absolute;
  top: 0;
  left: clamp(16px, 7vw, 128px);
  z-index: -1;
  max-width: 100%;
  margin: 0;
  color: rgba(127, 53, 255, 0.34);
  font-size: clamp(36px, 4.2vw, 70px);
  font-weight: 900;
  line-height: 0.96;
  white-space: normal;
  overflow-wrap: anywhere;
  transform: translate3d(0, calc((0.5 - var(--stage-progress, 0.5)) * 120px), 0);
  transition: transform 120ms linear;
}

.mega-title h2,
.contact-content h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  background: linear-gradient(90deg, #fff 0%, #bfa8ff 48%, #7729f8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(38px, 5.2vw, 78px);
  font-weight: 900;
  line-height: 1.02;
}

.project-info .mega-title {
  margin-bottom: clamp(34px, 5vh, 70px);
}

.project-info .mega-title p {
  font-size: clamp(38px, 4.4vw, 72px);
}

.project-info .mega-title h2 {
  padding-top: clamp(62px, 9vh, 118px);
  font-size: clamp(34px, 4.8vw, 66px);
}

.works .mega-title {
  position: relative;
  min-height: clamp(72px, 9vh, 124px);
  margin-bottom: clamp(18px, 3vh, 42px);
}

.works .mega-title p {
  left: 0;
  right: 0;
  max-width: 100%;
  margin-bottom: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(143, 99, 255, 0.72));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(42px, 4.5vw, 82px);
  line-height: 0.96;
  white-space: normal;
  overflow-wrap: anywhere;
}
.works .mega-title h2 {
  display: none;
}

.works .section-index {
  margin-bottom: clamp(12px, 1.8vh, 22px);
}

.project-info { margin-top: 0; }
.project-info::before {
  left: 50%;
  top: -128px;
  bottom: 20px;
  z-index: -1;
  width: 100vw;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(5, 3, 30, 0), rgba(5, 3, 30, 0.7) 62%, rgba(5, 3, 30, 0.14)),
    radial-gradient(circle at 18% 42%, rgba(143, 99, 255, 0.1), transparent 28%);
}

.profile-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  align-items: stretch;
  min-height: 500px;
  margin-top: clamp(34px, 5vh, 72px);
}

.profile-orb {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}
.profile-orb::before { position: absolute; inset: 0; z-index: 1; content: ""; background: linear-gradient(180deg, transparent 44%, rgba(6, 3, 34, 0.72)); }
.profile-orb img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; object-position: center 20%; }

.info-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 16px;
  padding: 18px;
  border-color: rgba(202, 158, 255, 0.2);
  background: rgba(7, 3, 35, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(214, 196, 255, 0.035),
    0 0 22px rgba(127, 53, 255, 0.06);
  backdrop-filter: none;
}

.info-item,
.experience-card {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0% 16%, rgba(126, 28, 255, 0.22), transparent 38%),
    radial-gradient(circle at 18% 104%, rgba(98, 15, 205, 0.28), transparent 54%),
    linear-gradient(135deg, rgba(48, 8, 112, 0.22), rgba(12, 6, 52, 0.48) 56%, rgba(7, 3, 35, 0.62) 100%) padding-box,
    linear-gradient(135deg, rgba(202, 158, 255, 0.5), rgba(127, 53, 255, 0.2) 46%, rgba(202, 158, 255, 0.06)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -28px 62px rgba(77, 18, 170, 0.09),
    0 0 22px rgba(127, 53, 255, 0.06);
}

.info-item { padding: 18px 20px; }
.info-item span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 14px; }
.info-item strong { font-size: 24px; }

.experience-block {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.experience-card {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -34px 72px rgba(77, 18, 170, 0.1),
    0 0 24px rgba(127, 53, 255, 0.07);
}

.experience-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 10px;
}

.experience-title {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
}

.experience-title span {
  flex: 0 0 auto;
  color: rgba(238, 230, 255, 0.72);
  font-size: 13px;
}

.experience-title strong {
  min-width: 0;
  color: #fff;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.25;
}

.experience-list {
  display: grid;
  gap: 6px;
  max-height: 154px;
  margin: 0;
  overflow: hidden;
  padding: 0 20px 20px;
  list-style: none;
  transition: max-height 260ms ease;
}

.experience-card.expanded .experience-list { max-height: 520px; }
.experience-list li { position: relative; padding-left: 16px; color: rgba(255, 255, 255, 0.68); font-size: 13px; line-height: 1.58; }
.experience-list li::before { position: absolute; top: 10px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--purple); content: ""; }

@media (min-width: 641px) {
  .experience-toggle {
    display: none;
  }

  .experience-list,
  .experience-card.expanded .experience-list {
    max-height: none;
    overflow: visible;
  }
}

.experience-toggle {
  position: relative;
  flex: 0 0 auto;
  margin: -3px 0 0;
  padding: 8px 32px 8px 14px;
  border: 1px solid var(--glow-border);
  border-radius: 999px;
  color: #fff;
  background: var(--glow-surface);
  box-shadow: var(--glow-shadow);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.experience-toggle:hover,
.experience-toggle:focus-visible {
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: var(--glow-shadow-strong);
  transform: translateY(-1px);
}

.experience-toggle::after {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-65%) rotate(45deg);
}

.experience-card.expanded .experience-toggle::after { transform: translateY(-30%) rotate(225deg); }

.strengths-title {
  position: relative;
  max-width: none;
  min-height: clamp(112px, 15vh, 196px);
  margin: 0 0 clamp(34px, 5vh, 72px);
}

.strengths-title p {
  max-width: 100%;
  margin: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(143, 99, 255, 0.72));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(40px, 4.6vw, 82px);
  font-weight: 900;
  line-height: 0.98;
  white-space: normal;
  overflow-wrap: anywhere;
  transform: translate3d(0, calc((0.5 - var(--stage-progress, 0.5)) * 110px), 0);
  transition: transform 120ms linear;
}

.strengths-title h2 {
  margin: 0;
  color: rgba(238, 230, 255, 0.48);
  font-size: clamp(20px, 1.9vw, 32px);
  font-weight: 800;
  letter-spacing: 0;
}

.skill-grid,
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.strengths .skill-grid {
  gap: clamp(18px, 2vw, 30px);
  margin-bottom: 0;
}

.skill-card {
  min-height: 224px;
  padding: 24px;
  border: 1px solid transparent;
  background:
    radial-gradient(circle at 0% 16%, rgba(126, 28, 255, 0.22), transparent 38%),
    radial-gradient(circle at 18% 104%, rgba(98, 15, 205, 0.28), transparent 54%),
    linear-gradient(135deg, rgba(48, 8, 112, 0.22), rgba(12, 6, 52, 0.48) 56%, rgba(7, 3, 35, 0.62) 100%) padding-box,
    linear-gradient(135deg, rgba(202, 158, 255, 0.5), rgba(127, 53, 255, 0.2) 46%, rgba(202, 158, 255, 0.06)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -28px 62px rgba(77, 18, 170, 0.09),
    0 0 22px rgba(127, 53, 255, 0.06);
  backdrop-filter: none;
}

.skill-card span {
  display: inline-flex;
  margin-bottom: 54px;
  color: rgba(238, 230, 255, 0.88);
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 900;
}

.skill-card h3,
.work-card h3 { margin: 0; font-size: 22px; }

.skill-card h3 {
  margin-bottom: 12px;
  color: #fff;
  font-size: clamp(22px, 1.8vw, 30px);
}

.skill-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.72;
}

.work-category {
  scroll-margin-top: 120px;
  padding: clamp(40px, 5.5vh, 78px) 20px;
  animation: sectionBreath 7s ease-in-out infinite;
}

.work-category + .work-category { margin-top: clamp(54px, 7vh, 104px); }

.works .work-grid {
  gap: clamp(40px, 3vw, 64px);
}

.work-category-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(44px, 6vh, 88px);
}

.work-category-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ai-work-head,
.tabbed-work-head {
  position: relative;
  z-index: 400;
  justify-content: space-between;
  gap: 20px;
}

.ai-work-tabs,
.work-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(232, 222, 255, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(226, 214, 255, 0.14), rgba(178, 142, 255, 0.07)),
    rgba(16, 10, 48, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 22px rgba(178, 142, 255, 0.08);
  backdrop-filter: blur(12px);
}

.ai-tab-button,
.work-tab-button {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--glow-border);
  border-radius: 999px;
  background: var(--glow-surface-soft);
  color: rgba(246, 241, 255, 0.92);
  box-shadow: var(--glow-shadow);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ai-tab-button:hover,
.ai-tab-button.active,
.work-tab-button:hover,
.work-tab-button.active {
  border-color: var(--glow-border);
  background: var(--glow-surface);
  box-shadow: var(--glow-shadow-strong);
  color: #fff;
  transform: translateY(-1px);
}

.ai-tab-panel[hidden],
.other-tab-panel[hidden] {
  display: none;
}

#poster .ai-work-tabs {
  padding: 0;
  border: 0;
  background: transparent;
}

#poster .ai-tab-button {
  border: 1px solid var(--glow-border);
}

#poster .ai-tab-button:hover,
#poster .ai-tab-button.active {
  border-color: rgba(255, 255, 255, 0.86);
}

.orbit-badge {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff, #dacfff 30%, rgba(155, 116, 255, 0.72) 64%, rgba(92, 62, 184, 0.68));
  box-shadow: 0 0 20px rgba(196, 169, 255, 0.28);
}

.orbit-badge::before {
  position: absolute;
  inset: 5px -7px;
  border: 1px solid rgba(238, 230, 255, 0.42);
  border-radius: 50%;
  content: "";
  transform: rotateX(68deg) rotateZ(-18deg);
  animation: orbitSpin 7s linear infinite;
}

.orbit-badge::after {
  position: absolute;
  right: -5px;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  content: "";
  animation: tinyMoon 7s linear infinite;
}

.work-category-head h3 {
  margin: 0;
  background: linear-gradient(90deg, #fff 0%, #c9b6ff 46%, #7729f8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(34px, 4.1vw, 64px);
  line-height: 1.05;
}

.work-card {
  display: block;
  position: relative;
  min-height: 352px;
  overflow: hidden;
  padding: 20px;
  color: inherit;
  text-decoration: none;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.work-card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 30px 80px rgba(143, 99, 255, 0.14); }
.work-card[data-category="amazon"] { min-height: 370px; padding: 0; }
.work-card[data-category="amazon"] .work-visual {
  position: absolute;
  inset: 0;
  height: auto;
  border: 0;
  border-radius: inherit;
}

#amazon {
  padding-top: clamp(24px, 4vh, 56px);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  animation: none;
}

#amazon .work-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 1.8vw, 30px);
  height: auto;
  margin-top: 10px;
  overflow: visible;
  perspective: none;
  mask-image: none;
}

#amazon .work-card[data-category="amazon"] {
  position: relative;
  left: auto;
  top: auto;
  width: auto;
  height: clamp(390px, 32vw, 520px);
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: none;
  opacity: 1;
  transform: none;
  transform-origin: center center;
  will-change: transform, opacity, filter;
}

#amazon .work-card[data-category="amazon"]::before {
  display: none;
}

#amazon .work-card[data-category="amazon"]:hover,
#amazon .work-card[data-category="amazon"]:focus-visible,
#amazon .work-card[data-category="amazon"].is-focused {
  border-color: transparent;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.3),
    0 0 36px rgba(190, 158, 255, 0.18);
}

#amazon .work-card[data-category="amazon"] .work-visual {
  position: absolute;
  inset: 0;
  height: auto;
  border: 0;
  border-radius: inherit;
  background: transparent;
}

#amazon .work-card[data-category="amazon"] .work-visual img {
  object-fit: contain;
  background: #fff;
}

#amazon .work-card[data-category="amazon"] .work-card-title {
  left: -1px;
  right: -1px;
  bottom: -1px;
  z-index: 3;
  width: calc(100% + 2px);
  margin: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: opacity 220ms ease, transform 220ms ease, visibility 0ms linear 220ms;
}

#amazon .work-card[data-category="amazon"]:hover .work-card-title,
#amazon .work-card[data-category="amazon"]:focus-visible .work-card-title,
#amazon .work-card[data-category="amazon"].is-focused .work-card-title {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0ms;
}

#amazon .work-card[data-category="amazon"] .work-card-title h3,
#amazon .work-card[data-category="amazon"] .work-card-title p {
  color: #120a3d;
  text-shadow: none;
}

#amazon .work-card[data-category="amazon"] .work-card-title p {
  border-left-color: rgba(18, 10, 61, 0.28);
}

#retouch,
#poster {
  animation: none;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

#poster {
  display: flex;
  min-height: clamp(560px, 74svh, 760px);
  flex-direction: column;
  justify-content: center;
}

#retouch {
  display: flex;
  min-height: clamp(560px, 74svh, 760px);
  flex-direction: column;
  justify-content: center;
}

#retouch .work-category-head {
  margin-bottom: clamp(34px, 5.5vh, 78px);
}

#poster + #ai-video {
  margin-top: 24px;
}

#retouch .work-card,
#poster .work-card,
#other .work-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 352px;
  padding: 0;
  border: 1px solid transparent;
  background:
    linear-gradient(135deg, rgba(143, 99, 255, 0.08), rgba(255, 255, 255, 0.022) 48%, rgba(255, 255, 255, 0.006)) padding-box,
    linear-gradient(135deg, rgba(214, 196, 255, 0.5), rgba(143, 99, 255, 0.2) 42%, rgba(143, 99, 255, 0.02) 100%) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 28px rgba(143, 99, 255, 0.07);
}

#retouch .work-card::after,
#poster .work-card::after,
#other .work-card::after {
  position: absolute;
  inset: 36% 0 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 3, 28, 0), rgba(28, 11, 62, 0.72) 62%, rgba(5, 3, 30, 0.92));
  content: "";
}

#retouch .work-card:hover,
#poster .work-card:hover,
#other .work-card:hover {
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 24px 70px rgba(143, 99, 255, 0.14);
}

#retouch .work-visual,
#poster .work-visual,
#other .work-visual {
  position: absolute;
  inset: 0;
  height: auto;
  border: 0;
  border-radius: inherit;
  background: transparent;
}

#retouch .work-card span,
#poster .work-card span,
#other .work-card span {
  position: relative;
  z-index: 2;
  margin: 0 24px 8px;
}

#retouch .work-card h3,
#poster .work-card h3,
#other .work-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 24px 24px;
}

.model-carousel {
  --model-card-height: clamp(300px, 29vw, 430px);
  --carousel-peek-width: clamp(112px, 13vw, 190px);
  position: relative;
  display: flex;
  width: 100%;
  height: clamp(380px, 37vw, 520px);
  overflow-x: auto;
  overflow-y: visible;
  padding: 54px calc(50% - var(--carousel-peek-width)) 68px;
  cursor: grab;
  scroll-behavior: auto;
  scroll-snap-type: none;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

.model-carousel::-webkit-scrollbar {
  display: none;
}

.model-carousel.is-dragging {
  cursor: grabbing;
}

.ai-showcase-strip {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  overflow: visible;
  transform-style: preserve-3d;
}

.model-carousel-card {
  position: relative;
  display: block;
  flex: 0 0 auto;
  min-height: 0;
  margin: 0 clamp(5px, 1vw, 16px);
  opacity: 0;
  transform: scale(0.82);
  transform-origin: center center;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  backface-visibility: hidden;
  touch-action: pan-x pan-y;
  transform-style: preserve-3d;
  transition:
    opacity 120ms linear,
    box-shadow 220ms ease,
    border-color 220ms ease;
  will-change: transform, opacity;
}

#poster .model-carousel-card {
  border: 0;
  background: transparent;
  box-shadow: none;
  min-height: 0;
  overflow: hidden;
}

#poster .model-carousel-card,
#poster .model-carousel-card * {
  touch-action: pan-x pan-y;
}

#poster.model-carousel-in-view .model-carousel-card {
  opacity: 1;
  transform: scale(1);
}

#poster .model-carousel-card::after {
  display: none;
}

#poster .model-carousel-card.is-center {
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.28),
    0 0 34px rgba(190, 158, 255, 0.14);
}

#retouch .retouch-showcase-track {
  height: clamp(390px, 38vw, 540px);
  padding-top: 48px;
  padding-bottom: 72px;
  --carousel-peek-width: clamp(118px, 13vw, 190px);
}

#retouch .retouch-card {
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: none;
}

#retouch .retouch-card::after {
  display: none;
}

#retouch .retouch-card.is-center {
  box-shadow: none;
}

.retouch-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 4px;
  overflow: hidden;
  border-radius: inherit;
  background: transparent;
}

.retouch-card-stacked .retouch-pair {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.retouch-pair figure {
  position: relative;
  aspect-ratio: var(--retouch-single-ratio);
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  background: #fff;
}

.retouch-pair figure.retouch-before,
.retouch-story-gallery figure.retouch-before {
  background: var(--retouch-before-bg, #f3f6ff);
}

.retouch-pair figure.retouch-after,
.retouch-story-gallery figure.retouch-after {
  background: #fff;
}

.retouch-pair span,
.retouch-story-gallery span {
  position: absolute;
  top: 14px;
  left: 14px;
  right: auto;
  bottom: auto;
  z-index: 2;
  display: inline-block;
  width: auto;
  max-width: max-content;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  background-image: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: rgba(8, 4, 51, 0.82);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-align: left;
  text-shadow: none;
  text-transform: uppercase;
  backdrop-filter: none;
  transform: none;
}

.retouch-pair img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
  object-fit: contain;
  background: #fff;
}

.retouch-pair .retouch-before img,
.retouch-story-gallery .retouch-before img {
  background: var(--retouch-before-bg, #f3f6ff);
}

.retouch-pair .retouch-after-white,
.retouch-story-gallery .retouch-after-white {
  background: #fff;
}

.retouch-pair .retouch-after-white img,
.retouch-story-gallery .retouch-after-white img {
  background: #fff;
  filter: brightness(1.04) contrast(1.04);
}

.retouch-story-mode .ai-lightbox-panel {
  width: min(100%, 1380px);
}

.retouch-story-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: max-content;
  align-items: start;
  align-content: start;
  gap: 16px;
}

.retouch-story-gallery.retouch-story-stacked {
  grid-template-columns: 1fr;
}

.retouch-story-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
}

.retouch-story-gallery img {
  width: 100%;
  height: auto;
  border-radius: inherit;
  object-fit: contain;
  background: #fff;
  transform: none;
}

.model-carousel-card .work-visual {
  background: transparent;
  overflow: hidden;
  border-radius: inherit;
}

.model-carousel-card .work-visual img {
  border-radius: inherit;
  object-fit: cover;
}

/* AI lightbox previews must show the full original image without edge cropping. */
.model-story-mode .model-story-item img,
.ecommerce-story-mode .ecommerce-story-item img,
.visual-story-mode .visual-story-figure img {
  object-fit: contain !important;
  transform: none !important;
  background: #000;
}

.ai-showcase-track-visual {
  z-index: 1;
  height: clamp(360px, 36vw, 500px);
  --model-card-height: clamp(240px, 22vw, 340px);
  --carousel-peek-width: clamp(96px, 11vw, 160px);
}

.ai-showcase-track-visual .model-carousel-card {
  transform-origin: center center;
}

.lightbox-open {
  overflow: hidden;
}

.lightbox-open main,
.lightbox-open .site-header {
  opacity: 0;
  pointer-events: none;
}

.ai-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(3, 1, 16, 0.58);
  backdrop-filter: none;
}

.ai-lightbox[hidden] {
  display: none;
}

.ai-lightbox-panel {
  position: relative;
  display: grid;
  width: min(100%, 1240px);
  max-height: min(86vh, 920px);
  gap: 18px;
  overflow: hidden;
  padding: 22px 22px 80px;
  border: 1px solid rgba(190, 158, 255, 0.38);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(143, 99, 255, 0.08), rgba(255, 255, 255, 0.04)),
    rgba(5, 3, 30, 0.92);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.52), 0 0 36px rgba(143, 99, 255, 0.12);
}

.ai-lightbox-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.ai-lightbox-head span {
  color: rgba(238, 230, 255, 0.58);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-lightbox-head strong {
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1.1;
}

.retouch-story-mode .ai-lightbox-head strong {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94), #c8b6ff 48%, #7729f8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(127, 53, 255, 0.22);
}

.retouch-lightbox-meta {
  display: grid;
  gap: 12px;
  width: 100%;
}

.retouch-lightbox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.retouch-lightbox-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(226, 213, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(246, 242, 255, 0.86);
  font-size: 12px;
  font-weight: 900;
}

.retouch-lightbox-notes {
  display: grid;
  gap: 8px;
}

.retouch-meta-block {
  display: grid;
  gap: 5px;
  padding: 11px 0 11px 14px;
  border-left: 2px solid rgba(215, 197, 255, 0.44);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.07), transparent 92%);
}

.retouch-meta-block span,
.retouch-lightbox-footnote {
  color: rgba(226, 213, 255, 0.66);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.retouch-meta-block p {
  margin: 0;
  color: rgba(246, 242, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.58;
}

.retouch-lightbox-footnote {
  padding-top: 10px;
  border-top: 1px solid rgba(226, 213, 255, 0.18);
}

.ai-lightbox-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  overflow: auto;
  padding-right: 4px;
}

.ai-lightbox-gallery.single {
  display: grid;
  place-items: center;
}

.ai-lightbox-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  aspect-ratio: var(--poster-ratio);
}

.ai-lightbox-gallery.single figure {
  width: min(100%, calc(72vh * var(--poster-ratio)));
  max-height: 72vh;
}

.ai-lightbox-gallery img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  transform: scale(1.018);
  transform-origin: center;
}

.ai-lightbox-gallery figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(7, 3, 28, 0), rgba(7, 3, 28, 0.82) 34%, rgba(7, 3, 28, 0.94));
  pointer-events: none;
}

.ai-lightbox-gallery figcaption span {
  color: rgba(238, 230, 255, 0.62);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-lightbox-gallery figcaption strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.1;
}

.ai-lightbox-gallery.ecommerce-story-wrap {
  display: grid;
  align-items: start;
  justify-self: center;
  width: min(100%, 1180px);
  height: min(82vh, 820px);
  max-height: none;
  overflow-y: auto;
  padding: 0;
  background: transparent;
  scrollbar-width: none;
}

.ai-lightbox-gallery.ecommerce-story-wrap::-webkit-scrollbar {
  display: none;
}

.ecommerce-story-mode .ai-lightbox-panel {
  width: min(100vw - 48px, 1500px);
  max-height: none;
  min-height: min(92vh, 980px);
  gap: 0;
  overflow: visible;
  padding: 0 24px 78px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ecommerce-story-mode .ai-lightbox-head {
  display: none;
}

.ecommerce-story-mode .ecommerce-story {
  height: 100%;
}

.visual-story-mode .ai-lightbox-panel {
  width: 100vw;
  height: 90vh;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.visual-story-wrap {
  position: relative;
  display: grid;
  width: 100%;
  height: 90vh;
  max-height: none;
  justify-self: center;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.visual-story-figure {
  display: grid;
  width: 100%;
  height: 90vh;
  margin: 0;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: inherit;
  background: transparent;
  aspect-ratio: auto;
}

.visual-story-figure img {
  width: auto;
  max-width: calc(100vw - 48px);
  height: 90vh;
  border-radius: inherit;
  object-fit: contain;
  transform: none;
}

.ecommerce-story {
  display: grid;
  gap: 0;
  width: 100%;
  max-height: 100%;
  padding: 0;
}

.ecommerce-story h3,
.model-story-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: rgba(238, 230, 255, 0.82);
  font-size: 15px;
  line-height: 1.3;
}

.ecommerce-story h3 {
  display: none;
}

.ecommerce-story h3 span,
.model-story-section h3 span {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border: 3px solid #d99719;
  border-radius: 50%;
}

.model-story-mode .ai-lightbox-panel {
  width: min(100vw - 48px, 620px);
  max-height: min(90vh, 980px);
  padding: 22px 22px 78px;
  overflow: hidden;
  border: 0;
  background: #000;
  box-shadow: 0 0 40px rgba(143, 99, 255, 0.12);
}

.ai-lightbox-gallery.model-story {
  display: block;
  justify-self: center;
  width: 100%;
  max-height: calc(90vh - 152px);
  overflow-y: auto;
  padding: 0 8px 18px 0;
  background: #000;
  scrollbar-width: none;
}

.ai-lightbox-gallery.model-story::-webkit-scrollbar {
  display: none;
}

.model-story-mode .model-story-section h3 {
  display: none;
}

.model-story-section {
  display: grid;
  gap: 12px;
}

.model-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

.model-story-item {
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: #000;
  aspect-ratio: var(--poster-ratio);
  isolation: isolate;
  clip-path: inset(0 round var(--radius));
}

.model-story-item img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
  transform: none;
  transform-origin: center;
}

.model-story-coffee .model-story-grid,
.model-story-tea .model-story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.model-story-mode .model-story-tea .model-story-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.model-story-coffee .model-story-item-1,
.model-story-tea .model-story-item-1 {
  grid-column: 1 / -1;
}

.model-story-coffee .model-story-item:not(.model-story-item-1) {
  aspect-ratio: 0.78;
}

.model-story-shoes .model-story-grid,
.model-story-soda .model-story-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-lightbox[data-story-slug="camp-chair"] .ai-lightbox-panel {
  grid-template-rows: minmax(0, 1fr);
}

.ai-lightbox[data-story-slug="camp-chair"] .ai-lightbox-head {
  display: none;
}

.model-story-camp-chair {
  display: grid;
  place-items: center;
  height: 100%;
}

.model-story-camp-chair .model-story-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  height: auto;
  gap: 10px;
  align-content: center;
}

.model-story-camp-chair .model-story-item {
  overflow: hidden;
  border-radius: var(--radius);
}

.model-story-camp-chair .model-story-item-1 {
  grid-column: 1 / -1;
}

.model-story-camp-chair .model-story-item img {
  object-fit: contain;
  transform: none;
}

.ecommerce-story-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 18px);
  width: 100%;
  height: auto;
  max-height: 100%;
  align-content: start;
  grid-auto-rows: auto;
}

.ecommerce-story-item {
  grid-column: span 3;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  min-height: 0;
  aspect-ratio: var(--poster-ratio);
}

.ai-lightbox-gallery .ecommerce-story-item {
  aspect-ratio: var(--poster-ratio);
}

.ecommerce-story-item-wide {
  grid-column: 1 / -1 !important;
}

.ecommerce-story-item img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
  transform: none;
  transform-origin: center;
}

.ecommerce-story-home .ecommerce-story-item-1,
.ecommerce-story-home .ecommerce-story-item-6,
.ecommerce-story-appliance .ecommerce-story-item-1,
.ecommerce-story-appliance .ecommerce-story-item-5,
.ecommerce-story-digital .ecommerce-story-item-1,
.ecommerce-story-digital .ecommerce-story-item-4 {
  grid-column: 1 / -1;
}

.ecommerce-story-appliance .ecommerce-story-item-2,
.ecommerce-story-appliance .ecommerce-story-item-3,
.ecommerce-story-appliance .ecommerce-story-item-4 {
  grid-column: span 2;
}

.ecommerce-story-beauty .ecommerce-story-item-1,
.ecommerce-story-beauty .ecommerce-story-item-2,
.ecommerce-story-beauty .ecommerce-story-item-6,
.ecommerce-story-beauty .ecommerce-story-item-7 {
  grid-column: span 3;
}

.ecommerce-story-beauty .ecommerce-story-item-3,
.ecommerce-story-beauty .ecommerce-story-item-4,
.ecommerce-story-beauty .ecommerce-story-item-5 {
  grid-column: span 2;
}

.ai-lightbox-close {
  position: absolute;
  z-index: 8;
  right: 22px;
  bottom: 18px;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--glow-border);
  border-radius: 50%;
  background: var(--glow-surface);
  box-shadow: var(--glow-shadow);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ai-lightbox-close:hover,
.ai-lightbox-close:focus-visible {
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow: var(--glow-shadow-strong);
  transform: translateY(-2px);
}

.ai-lightbox-close::before {
  width: 18px;
  height: 18px;
  background: #fff;
  clip-path: polygon(6% 47%, 93% 8%, 63% 92%, 45% 60%);
  content: "";
  transform: translate(1px, -2px) rotate(-12deg);
}

.ai-lightbox-close::after {
  position: absolute;
  inset: -12px;
  content: "";
}

.model-story-mode .ai-lightbox-panel,
.ecommerce-story-mode .ai-lightbox-panel,
.visual-story-mode .ai-lightbox-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 90vw;
  height: 90vh;
  max-height: none;
  min-height: 0;
  gap: 12px;
  overflow: hidden;
  padding: 20px;
  border: 0;
  background: #000;
  box-shadow: 0 0 40px rgba(143, 99, 255, 0.12);
}

.model-story-mode .ai-lightbox-head,
.ecommerce-story-mode .ai-lightbox-head,
.visual-story-mode .ai-lightbox-head {
  min-height: 0;
}

.model-story-mode .ai-lightbox-gallery,
.ecommerce-story-mode .ai-lightbox-gallery,
.visual-story-mode .ai-lightbox-gallery {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  padding: 0;
  background: #000;
}

.model-story-section,
.ecommerce-story {
  min-height: 0;
  height: 100%;
}

.model-story-grid,
.ecommerce-story-grid {
  height: 100%;
  gap: 10px;
}

.model-story-item,
.ecommerce-story-item,
.visual-story-figure {
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  isolation: isolate;
  clip-path: inset(0 round var(--radius));
}

.model-story-item img,
.ecommerce-story-item img,
.visual-story-figure img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
  transform: none;
}

.model-story-mode .model-story-item-wide {
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
  aspect-ratio: var(--poster-ratio);
}

.model-story-mode .model-story-item-wide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}

.visual-story-wrap {
  display: grid;
  place-items: stretch;
}

.visual-story-figure {
  width: 100%;
  height: 100%;
}

.ai-lightbox-close {
  right: 20px;
  bottom: 20px;
}

.ai-lightbox-dots {
  position: absolute;
  right: clamp(18px, 2.4vw, 42px);
  top: 50%;
  z-index: 5;
  display: none;
  transform: translateY(-50%);
}

.visual-story-mode .ai-lightbox-dots {
  display: none !important;
  gap: 10px;
}

.ai-lightbox-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--glow-border);
  border-radius: 50%;
  background: var(--glow-surface-soft);
  box-shadow: 0 0 12px rgba(176, 78, 255, 0.34), 0 0 22px rgba(127, 53, 255, 0.22);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.ai-lightbox-dots button.active {
  background: var(--glow-surface);
  box-shadow: var(--glow-shadow);
  transform: scale(1.35);
}

.visual-story-mode .ai-lightbox-panel {
  grid-template-rows: minmax(0, 1fr) !important;
  width: 100vw !important;
  height: 90vh !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.visual-story-mode .ai-lightbox-head {
  display: none !important;
}

.visual-story-mode .ai-lightbox-gallery,
.visual-story-mode .visual-story-wrap {
  display: block !important;
  width: 100% !important;
  height: 90vh !important;
  max-height: none !important;
  overflow-x: visible !important;
  overflow-y: auto !important;
  padding: 0 !important;
  background: transparent !important;
  scroll-snap-type: y mandatory !important;
  scrollbar-width: none !important;
}

.visual-story-mode .ai-lightbox-gallery::-webkit-scrollbar,
.visual-story-mode .visual-story-wrap::-webkit-scrollbar {
  display: none;
}

.visual-story-mode .visual-story-project {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: clamp(10px, 1vw, 16px) !important;
  width: 100% !important;
  height: 90vh !important;
  min-height: 0 !important;
  margin: 0 !important;
  scroll-snap-align: start !important;
}

.visual-story-mode .visual-project-figure {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 90vh !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(190, 158, 255, 0.24) !important;
  border-radius: 18px !important;
  background: rgba(0, 0, 0, 0.58) !important;
  aspect-ratio: auto !important;
  box-shadow: 0 0 34px rgba(143, 99, 255, 0.14) !important;
}

.visual-story-mode .visual-project-figure img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 90vh !important;
  border-radius: 18px !important;
  object-fit: contain !important;
  object-position: center !important;
  clip-path: none !important;
  transform: none !important;
  transform-origin: center !important;
}

.retouch-story-mode .ai-lightbox-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(92vw, 1500px);
  height: min(90dvh, 920px);
  max-height: none;
  min-height: 0;
  overflow: hidden;
  padding: 20px 20px 22px;
}

.retouch-story-mode .ai-lightbox-gallery {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  padding: 0 4px 28px 0;
  scrollbar-width: none;
}

.retouch-story-mode .ai-lightbox-gallery::-webkit-scrollbar {
  display: none;
}

.retouch-story-gallery figure {
  height: auto !important;
  min-height: 0;
  aspect-ratio: auto !important;
}

.retouch-story-gallery img {
  display: block;
  width: 100%;
  height: auto !important;
  object-fit: contain !important;
  transform: none !important;
}

.model-story-mode .model-story-item {
  overflow: hidden !important;
  border-radius: var(--radius) !important;
  background: #000 !important;
  isolation: isolate;
  clip-path: inset(0 round var(--radius));
}

.model-story-mode .model-story-item img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0;
  border-radius: 0 !important;
  object-fit: cover !important;
  transform: scale(1.035) !important;
  transform-origin: center;
}

.ecommerce-story-mode .ecommerce-story-item {
  overflow: hidden !important;
  border-radius: var(--radius) !important;
  background: #000 !important;
  isolation: isolate;
  clip-path: inset(0 round var(--radius));
}

.ecommerce-story-mode .ecommerce-story-item img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0;
  border-radius: 0 !important;
  object-fit: cover !important;
  transform: scale(1.035) !important;
  transform-origin: center;
}

#ai-video {
  animation: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

#other {
  min-height: clamp(760px, 92svh, 980px);
  animation: none;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

#other .work-tabs {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#other .other-tab-panel {
  margin-top: clamp(54px, 7vh, 92px);
}

#other .other-tab-panel .work-grid {
  --carousel-peek-width: clamp(112px, 13vw, 190px);
  position: relative;
  display: flex;
  height: clamp(470px, 50vw, 650px);
  grid-template-columns: none;
  gap: 0;
  overflow-x: auto;
  overflow-y: visible;
  padding: 54px calc(50% - var(--carousel-peek-width)) 68px;
  cursor: grab;
  perspective: 1300px;
  scroll-behavior: auto;
  scroll-snap-type: none;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  touch-action: pan-x pan-y;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

#other .other-tab-panel .work-grid::-webkit-scrollbar {
  display: none;
}

#other .other-tab-panel .work-grid.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

#other .other-tab-panel .work-card {
  flex: 0 0 clamp(260px, 23vw, 390px);
  height: clamp(340px, 34vw, 500px);
  min-height: 0;
  margin: 0 clamp(5px, 1vw, 16px);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transform-origin: center center;
  transition: opacity 120ms linear, filter 120ms linear, box-shadow 180ms ease;
  will-change: transform, opacity, filter;
  touch-action: pan-x pan-y;
}

#other .other-tab-panel .work-card,
#other .other-tab-panel .work-card * {
  touch-action: pan-x pan-y;
}

#other .other-tab-panel .work-card.is-center {
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.28),
    0 0 34px rgba(190, 158, 255, 0.14);
}

#other .other-tab-panel .work-card:hover {
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.3),
    0 0 36px rgba(190, 158, 255, 0.18);
}

#other-tab-site .work-card,
#other-tab-site .work-visual,
#other-tab-site .work-visual img {
  overflow: hidden;
  border-radius: var(--radius);
}

#other-tab-site .work-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

#other-tab-packaging .work-grid {
  height: clamp(380px, 43vw, 620px);
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(54px, 6vw, 82px);
}

#other-tab-packaging .work-card {
  flex: 0 0 clamp(300px, 36vw, 620px);
  width: clamp(300px, 36vw, 620px);
  height: auto;
  aspect-ratio: var(--slot-ratio, 4 / 3);
}

#other-tab-packaging .work-card-wide {
  flex-basis: clamp(340px, 44vw, 740px);
  width: clamp(340px, 44vw, 740px);
}

#other-tab-packaging .work-visual,
#other-tab-packaging .work-visual img {
  overflow: hidden;
  border-radius: var(--radius);
}

#other-tab-packaging .work-visual img {
  object-fit: cover;
}

.video-showcase {
  position: relative;
  display: flex;
  min-height: clamp(620px, 92svh, 960px);
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  margin-inline: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.video-showcase::before {
  display: none;
}

.video-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  overflow-y: visible;
  margin-inline: calc(-1 * clamp(10px, 2vw, 28px));
  padding: clamp(30px, 5vh, 58px) calc(50% - min(28vw, 420px)) clamp(66px, 8vh, 96px);
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

.video-carousel.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.video-carousel::-webkit-scrollbar {
  display: none;
}

.video-card {
  position: relative;
  flex: 0 0 min(68vw, 960px);
  height: auto;
  max-height: clamp(360px, 70vh, 720px);
  aspect-ratio: 16 / 9;
  margin: 0 clamp(12px, 1.6vw, 32px);
  overflow: hidden;
  border-radius: var(--radius);
  background: #050318;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.32), 0 0 40px rgba(143, 99, 255, 0.12);
  cursor: pointer;
  opacity: 0.46;
  transform: scale(0.82);
  transform-origin: center;
  scroll-snap-align: center;
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.video-card.is-portrait {
  flex-basis: auto;
  width: clamp(240px, 38vh, 405px);
  max-width: 78vw;
  aspect-ratio: 9 / 16;
}

.video-card.is-square {
  flex-basis: auto;
  width: clamp(300px, 54vh, 560px);
  max-width: 82vw;
  aspect-ratio: 1 / 1;
}

.video-card.is-landscape {
  flex-basis: min(68vw, 960px);
  aspect-ratio: 16 / 9;
}

.video-card.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.42), 0 0 54px rgba(143, 99, 255, 0.18);
}

.video-card video {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
  pointer-events: none;
  box-shadow: inherit;
}

.video-card:not(.active) video {
  filter: brightness(0.64);
}

.video-card-play {
  position: absolute;
  top: clamp(12px, 1.5vw, 20px);
  right: clamp(12px, 1.5vw, 20px);
  left: auto;
  z-index: 3;
  display: grid;
  width: clamp(42px, 4vw, 54px);
  height: clamp(42px, 4vw, 54px);
  place-items: center;
  padding: 0;
  border: 1px solid rgba(238, 230, 255, 0.64);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.22) 28%, rgba(132, 82, 255, 0.62) 62%, rgba(82, 30, 181, 0.82));
  box-shadow:
    0 0 34px rgba(139, 82, 255, 0.52),
    inset 0 0 20px rgba(255, 255, 255, 0.22);
  cursor: pointer;
  opacity: 0.94;
  transform: none;
  transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.video-card-play:hover,
.video-card-play:focus-visible {
  opacity: 1;
  transform: scale(1.06);
  box-shadow:
    0 0 44px rgba(153, 95, 255, 0.68),
    inset 0 0 22px rgba(255, 255, 255, 0.26);
}

.video-card-play span {
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #fff;
}

.video-card.playing .video-card-play {
  opacity: 0.96;
  pointer-events: auto;
}

.video-card.playing:hover .video-card-play,
.video-card.playing:focus-within .video-card-play {
  opacity: 1;
}

.video-card.playing .video-card-play span {
  width: 17px;
  height: 20px;
  margin-left: 0;
  border-top: 0;
  border-bottom: 0;
  border-left: 5px solid #fff;
  border-right: 5px solid #fff;
}

.video-card-meta {
  display: none;
}

.video-card-meta span {
  color: rgba(238, 230, 255, 0.62);
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 900;
  text-transform: uppercase;
}

.video-card-meta strong {
  color: #fff;
  font-size: clamp(24px, 3.4vw, 52px);
  line-height: 1.02;
}

.video-card-controls {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 18px);
  padding: 10px clamp(12px, 1.5vw, 18px);
  border: 1px solid rgba(202, 158, 255, 0.34);
  border-radius: 999px;
  background: rgba(14, 7, 45, 0.64);
  box-shadow:
    0 0 24px rgba(119, 61, 255, 0.22),
    inset 0 0 18px rgba(255, 255, 255, 0.06);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.video-card.playing .video-card-controls {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.video-control-toggle {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(238, 230, 255, 0.5);
  border-radius: 50%;
  background: var(--glow-surface);
  box-shadow: 0 0 18px rgba(139, 82, 255, 0.38);
  cursor: pointer;
}

.video-control-toggle span {
  width: 12px;
  height: 15px;
  border-left: 4px solid #fff;
  border-right: 4px solid #fff;
}

.video-progress {
  position: relative;
  height: 8px;
  flex: 1;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(238, 230, 255, 0.16);
}

.video-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--video-progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #8c5cff, #e2cbff);
  box-shadow: 0 0 18px rgba(160, 101, 255, 0.62);
}

.video-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.video-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid rgba(202, 158, 255, 0.52);
  border-radius: 50%;
  background: var(--glow-surface-soft);
  box-shadow:
    inset 0 0 8px rgba(205, 141, 255, 0.2),
    0 0 10px rgba(127, 53, 255, 0.24);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.video-dots button.active {
  width: 22px;
  border-radius: 999px;
  border-color: var(--glow-border);
  background: var(--glow-surface);
  box-shadow: var(--glow-shadow);
}

.video-lightbox-open {
  overflow: hidden;
}

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 36px);
  background: rgba(3, 1, 16, 0.84);
}

.video-lightbox[hidden] {
  display: none;
}

.video-lightbox-panel {
  position: relative;
  display: grid;
  width: min(100%, 1680px);
  height: min(92vh, 960px);
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.62), 0 0 44px rgba(143, 99, 255, 0.18);
}

.video-lightbox-panel video {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  background: #000;
}

.video-lightbox-panel.is-portrait-video video {
  width: auto;
  max-width: 100%;
  justify-self: center;
  background: transparent;
}

.video-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--glow-border);
  border-radius: 50%;
  background: var(--glow-surface);
  box-shadow: var(--glow-shadow);
  cursor: pointer;
}

.video-lightbox-close::before,
.video-lightbox-close::after {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  content: "";
}

.video-lightbox-close::before {
  transform: rotate(45deg);
}

.video-lightbox-close::after {
  transform: rotate(-45deg);
}

.video-lightbox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.video-lightbox-tags li {
  padding: 7px 13px;
  border: 1px solid rgba(229, 213, 255, 0.34);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(11px, 0.72vw, 13px);
  font-weight: 900;
  line-height: 1;
}

.video-lightbox-details {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: clamp(28px, 9vh, 90px);
}

.video-lightbox-detail {
  display: grid;
  gap: 5px;
  padding: 13px 0 13px 16px;
  border-left: 2px solid rgba(230, 218, 255, 0.34);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent);
}

.video-lightbox-detail span {
  color: rgba(229, 213, 255, 0.62);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-lightbox-detail strong {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(12px, 0.78vw, 15px);
  font-weight: 800;
  line-height: 1.62;
}

.video-lightbox-stamp {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(229, 213, 255, 0.24);
  color: rgba(229, 213, 255, 0.64);
  font-size: clamp(11px, 0.72vw, 13px);
  font-weight: 950;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

.video-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: clamp(44px, 3.8vw, 58px);
  height: clamp(44px, 3.8vw, 58px);
  place-items: center;
  padding: 0;
  border: 1px solid rgba(211, 180, 255, 0.78);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 36%, rgba(255, 255, 255, 0.34), rgba(172, 112, 255, 0.42) 42%, rgba(86, 40, 176, 0.78) 100%);
  box-shadow:
    0 0 18px rgba(173, 105, 255, 0.82),
    0 0 42px rgba(126, 61, 255, 0.46),
    inset 0 0 18px rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.video-lightbox-nav:hover,
.video-lightbox-nav:focus-visible {
  outline: 0;
  box-shadow:
    0 0 24px rgba(190, 132, 255, 0.92),
    0 0 54px rgba(137, 69, 255, 0.56),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.06);
}

.video-lightbox-nav span {
  width: clamp(16px, 1.45vw, 21px);
  height: clamp(16px, 1.45vw, 21px);
  background: #fff;
  clip-path: polygon(6% 47%, 93% 8%, 63% 92%, 45% 60%);
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.82))
    drop-shadow(0 0 12px rgba(206, 178, 255, 0.82));
  transform: rotate(var(--plane-rotate, 0deg));
}

.video-lightbox-prev {
  left: clamp(-86px, -4vw, -58px);
  --plane-rotate: -135deg;
}

.video-lightbox-next {
  right: clamp(-86px, -4vw, -58px);
  --plane-rotate: 45deg;
}

.work-card span { display: block; margin: 18px 4px 8px; text-transform: uppercase; }

.work-visual {
  position: relative;
  height: 230px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}

.work-visual img,
.work-visual video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.work-visual img {
  transform: scale(1.018);
  transform-origin: center;
}

.work-card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: none;
  min-height: 58px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 0 0 var(--radius) var(--radius);
  background:
    linear-gradient(180deg, rgba(226, 214, 255, 0) 0%, rgba(202, 182, 255, 0.34) 42%, rgba(178, 154, 246, 0.72) 100%) padding-box,
    linear-gradient(180deg, rgba(226, 214, 255, 0), rgba(226, 214, 255, 0.5)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 -10px 26px rgba(178, 154, 246, 0.16);
  backdrop-filter: blur(12px);
}

.work-card-title h3,
.work-card-title p {
  color: rgba(246, 241, 255, 0.96);
  text-shadow: 0 0 12px rgba(143, 99, 255, 0.14);
  white-space: nowrap;
}

.work-card-title h3 { font-size: 17px; }
.work-card-title p {
  margin: 0;
  padding-left: 10px;
  border-left: 1px solid rgba(226, 214, 255, 0.28);
  font-size: 11px;
}

.visual-b { background: radial-gradient(circle at 70% 24%, rgba(255, 255, 255, 0.34), transparent 22%), linear-gradient(135deg, #131028, #795d3d); }
.visual-f { background: radial-gradient(circle at 70% 24%, rgba(255, 255, 255, 0.36), transparent 24%), linear-gradient(135deg, #19122e, #795632); }
.visual-g { background: radial-gradient(circle at 70% 24%, rgba(143, 99, 255, 0.22), transparent 24%), linear-gradient(135deg, #090529, #294b86); }

.contact { padding-bottom: 42px; }
.contact-content { padding: clamp(32px, 6vw, 72px); }
.contact-content h2 { font-size: clamp(34px, 4.2vw, 58px); }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.contact-links a {
  min-height: 50px;
  padding: 14px 20px;
  border: 1px solid var(--glow-border);
  border-radius: 999px;
  background: var(--glow-surface);
  box-shadow: var(--glow-shadow);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: var(--glow-shadow-strong);
  transform: translateY(-2px);
}

.detail-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 14%, rgba(143, 99, 255, 0.1), transparent 30%),
    linear-gradient(180deg, #08042d, #030212 72%);
}

.detail-back,
.detail-bottom-back {
  display: inline-grid;
  min-height: 54px;
  place-items: center;
  border: 1px solid var(--glow-border);
  border-radius: 999px;
  background: var(--glow-surface);
  color: #fff;
  box-shadow: var(--glow-shadow);
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.detail-back:hover,
.detail-back:focus-visible {
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: var(--glow-shadow-strong);
  transform: translateX(-50%) translateY(-2px);
}

.detail-bottom-back:hover,
.detail-bottom-back:focus-visible {
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: var(--glow-shadow-strong);
  transform: translateY(-2px);
}

.detail-back {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 20;
  width: min(100% - 48px, 1220px);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.detail-shell {
  width: min(100% - 48px, 1220px);
  margin: 0 auto;
  padding: 130px 0 64px;
}

.detail-hero {
  margin-bottom: 34px;
}

.detail-hero p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.34);
  font-size: clamp(46px, 10vw, 128px);
  font-weight: 900;
  line-height: 0.9;
}

.detail-hero h1 {
  margin: -18px 0 16px;
  color: #f5f0ff;
  font-size: clamp(42px, 7vw, 86px);
}

.detail-hero span {
  color: var(--muted);
  font-weight: 800;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-card {
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}

.detail-card img {
  width: 100%;
  height: auto;
  border-radius: inherit;
  background: transparent;
  transform: scale(1.018);
  transform-origin: center;
}

.detail-card figcaption {
  padding: 12px 14px;
  color: rgba(238, 230, 255, 0.72);
  font-size: 13px;
}

.detail-bottom-back {
  width: 100%;
  margin-top: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(72px) scale(0.985);
  filter: blur(7px);
  transition: opacity 980ms ease, transform 1120ms cubic-bezier(0.18, 0.86, 0.22, 1), filter 980ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.scroll-layer {
  --layer-y: calc(var(--module-layer-y, 54px) + var(--layer-offset-y, 0px));
  opacity: var(--module-layer-opacity, 0);
  filter: blur(var(--module-content-blur, 7px));
  transform: translate3d(var(--module-layer-x, -34px), var(--layer-y), 0) scale(var(--module-content-scale, 0.955));
  transition:
    opacity 260ms ease,
    filter 260ms ease,
    transform 360ms cubic-bezier(0.18, 0.86, 0.22, 1);
  transition-delay: calc(var(--layer-index, 0) * 36ms);
  will-change: opacity, transform, filter;
}

.scroll-stage.stage-visible > .scroll-layer {
  opacity: var(--module-layer-opacity, 1);
  filter: blur(var(--module-content-blur, 0px));
  transform: translate3d(var(--module-layer-x, 0), var(--layer-y), 0) scale(var(--module-content-scale, 1));
}

.scroll-stage.stage-visible > .scroll-layer:nth-child(1) { transition-delay: 0ms; }

.scroll-stage .section-index.scroll-layer {
  --layer-offset-y: 0px;
}

.scroll-stage .mega-title.scroll-layer,
.scroll-stage .strengths-title.scroll-layer,
.scroll-stage .work-category-head.scroll-layer {
  --layer-offset-y: 0px;
}

.scroll-stage .profile-grid.scroll-layer,
.scroll-stage .skill-grid.scroll-layer,
.scroll-stage .work-grid.scroll-layer,
.scroll-stage .video-showcase.scroll-layer,
.scroll-stage .ai-tab-panel.scroll-layer,
.scroll-stage .other-tab-panel.scroll-layer,
.scroll-stage .contact-links.scroll-layer {
  --layer-offset-y: 0px;
}

.scroll-stage > .section-index.scroll-layer,
.scroll-stage > .work-category-head.scroll-layer {
  gap: var(--module-title-gap, 20px);
  opacity: var(--module-label-opacity, 1);
  filter: blur(var(--module-title-blur, 0px));
  transform: translate3d(var(--module-title-x, 0), var(--module-title-y, 0), 0) scale(var(--module-title-scale, 1));
  transition: gap 260ms ease, opacity 260ms ease, filter 260ms ease, transform 360ms cubic-bezier(0.18, 0.86, 0.22, 1);
}

.scroll-stage > .section-index.scroll-layer {
  transform: translate3d(var(--module-title-x, 0), var(--module-title-y, 0), 0) scale(var(--module-title-scale, 1));
}

.scroll-stage > .work-category-head.scroll-layer {
  margin-bottom: var(--module-head-gap, clamp(44px, 6vh, 88px));
}

.scroll-stage > .mega-title.scroll-layer,
.scroll-stage > .strengths-title.scroll-layer {
  min-height: var(--module-mega-height, clamp(142px, 19vh, 260px));
  margin-bottom: var(--module-mega-gap, clamp(48px, 7vh, 96px));
}

.scroll-stage > .section-index.scroll-layer span {
  font-size: var(--module-label-size, clamp(14px, 1.1vw, 18px));
  opacity: var(--module-label-opacity, 1);
  transition: font-size 180ms linear, opacity 180ms linear;
}

.scroll-stage > .section-index.scroll-layer strong {
  font-size: var(--module-title-size, clamp(16px, 1.3vw, 21px));
  opacity: var(--module-title-opacity, 1);
  transition: font-size 180ms linear, opacity 180ms linear;
}

.scroll-stage > .work-category-head.scroll-layer h3,
.scroll-stage > .work-category-head.scroll-layer .work-category-title h3,
.scroll-stage > .strengths-title.scroll-layer h2 {
  max-width: 100%;
  opacity: var(--module-title-opacity, 1);
  filter: blur(var(--module-title-blur, 0px));
  font-size: var(--module-title-size, clamp(28px, 3.2vw, 52px));
  transform: translate3d(var(--module-title-x, 0), var(--module-title-y, 0), 0) scale(var(--module-title-scale, 1));
  transition: font-size 260ms ease, opacity 260ms ease, filter 260ms ease, transform 360ms cubic-bezier(0.18, 0.86, 0.22, 1);
}

.scroll-stage > .work-category-head.scroll-layer .work-category-title {
  gap: var(--module-title-gap, 16px);
  transform: translate3d(var(--module-title-x, 0), var(--module-title-y, 0), 0) scale(var(--module-title-scale, 1));
  transition: gap 260ms ease, transform 360ms cubic-bezier(0.18, 0.86, 0.22, 1);
}

.scroll-stage > .strengths-title.scroll-layer h2 {
  transform: translate3d(var(--module-title-x, 0), var(--module-title-y, 0), 0) scale(var(--module-title-scale, 1));
}

.scroll-stage.stage-visible .reveal:not(.scroll-layer) {
  opacity: 1;
  filter: blur(0);
}

@keyframes orbitSpin {
  from { transform: rotateX(68deg) rotateZ(-18deg); }
  to { transform: rotateX(68deg) rotateZ(342deg); }
}

@keyframes tinyMoon {
  from { transform: rotate(0deg) translateX(18px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(18px) rotate(-360deg); }
}

@keyframes showcaseFlow {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes sectionBreath {
  0%, 100% { transform: translate3d(0, 0, 0); border-color: rgba(232, 222, 255, 0.18); }
  50% { transform: translate3d(0, -3px, 0); border-color: rgba(232, 222, 255, 0.36); }
}

@media (max-width: 1120px) {
  .menu-toggle {
    display: inline-grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
  }

  .menu-toggle span { width: 18px; height: 2px; background: #fff; }

  .menu-toggle:hover,
  .menu-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.12);
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    width: min(300px, 52vw);
    padding: 8px 14px;
    border: 0;
    border-radius: 8px;
    background: rgba(7, 3, 51, 0.72);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 42px rgba(2, 1, 18, 0.18);
  }

  .nav.open { display: grid; gap: 4px; }
  .nav a { padding: 11px 0 14px; font-size: 14px; }

  .profile-grid { grid-template-columns: 1fr; min-height: auto; }
  .skill-grid, .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #amazon .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { width: min(100% - 24px, var(--max)); }
  .brand span:last-child { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .section { width: min(100% - 24px, var(--max)); min-height: auto; padding: 104px 0; }
  .carousel-plane-nav {
    display: none;
  }
  .case-hero { min-height: 100svh; align-items: flex-start; padding: 36svh 24px 70px; }
  .case-hero-inner { width: min(74vw, 340px); pointer-events: auto; }
  .case-hero .case-kicker,
  .case-hero h1 span,
  .case-hero .hero-subtitle,
  .case-hero .button.primary {
    opacity: 1;
    filter: none;
    transform: none;
  }
  .case-kicker { margin-bottom: 22px; font-size: 14px; line-height: 1.35; }
  h1 { margin-bottom: 28px; font-size: clamp(38px, 10.8vw, 54px); white-space: normal; }
  .case-hero h1,
  .case-hero h1 span {
    background: linear-gradient(90deg, #fff 6%, #d8cbff 58%, var(--purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .case-hero h1 span { display: block; }
  .hero-subtitle { max-width: 280px; margin-bottom: 30px; font-size: 18px; line-height: 1.45; }
  .case-hero .hero-corner-cta {
    top: auto;
    right: auto;
    min-height: 48px;
    padding: 0 12px 0 20px;
    gap: 8px;
    font-size: 13px;
  }
  .case-hero .hero-corner-cta span {
    width: 18px;
    height: 18px;
  }
  .case-hero .hero-corner-cta span::before {
    width: 16px;
    height: 16px;
    margin: 1px 0 0 1px;
  }
  .button.primary {
    border-color: var(--glow-border);
    background: var(--glow-surface);
    box-shadow: var(--glow-shadow);
    backdrop-filter: blur(8px);
  }
  .hero-metrics { display: none; }
  .section-index {
    grid-template-columns: auto 60px 1fr;
    gap: 12px;
    margin-bottom: 58px;
  }
  .strengths .section-index {
    margin-bottom: 24px;
  }
  .mega-title,
  .strengths-title {
    min-height: clamp(138px, 28vh, 220px);
    margin-bottom: 54px;
  }
  .strengths-title {
    --module-mega-height: clamp(116px, 20vh, 154px);
    --module-mega-gap: 34px;
    min-height: var(--module-mega-height);
    margin-bottom: var(--module-mega-gap);
  }
  .mega-title p,
  .strengths-title p,
  .works .mega-title p {
    left: 0;
    max-width: 100%;
    font-size: clamp(34px, 10.5vw, 56px);
    line-height: 0.86;
    white-space: normal;
  }
  .strengths-title p {
    line-height: 0.9;
    transform: translate3d(0, calc((0.5 - var(--stage-progress, 0.5)) * 46px), 0);
  }
  .mega-title h2,
  .contact-content h2 {
    font-size: clamp(36px, 11vw, 58px);
  }
  .ai-work-head,
  .tabbed-work-head { align-items: flex-start; flex-direction: column; }
  .ai-work-tabs,
  .work-tabs { width: 100%; }
  .ai-tab-button,
  .work-tab-button { flex: 1 1 0; }
  #poster {
    min-height: auto;
    padding-top: 34px;
    padding-bottom: 28px;
    justify-content: flex-start;
  }
  #poster .work-category-head {
    margin-bottom: 18px;
  }
  #poster .work-category-title h3 {
    font-size: 28px;
  }
  #poster .ai-work-tabs {
    gap: 6px;
  }
  #poster .ai-tab-button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }
  .project-info .mega-title p { font-size: clamp(36px, 11vw, 58px); }
  .project-info .mega-title h2 {
    padding-top: 90px;
    white-space: normal;
    font-size: clamp(34px, 10vw, 48px);
  }
  .profile-orb { min-height: 360px; }
  .profile-grid { margin-top: 0; }
  .info-panel, .experience-block, .skill-grid, .work-grid { grid-template-columns: 1fr; }
  .strengths .skill-grid {
    gap: 24px;
  }
  .info-panel { gap: 14px; padding: 14px; }
  .experience-block { gap: 14px; }
  .experience-card-head { gap: 10px; padding: 18px 18px 12px; }
  .experience-title { flex-wrap: wrap; align-items: flex-start; }
  .experience-list {
    max-height: 142px;
    padding: 0 18px 22px;
  }
  .experience-card.expanded .experience-list { max-height: 640px; }
  .work-category {
    padding: 40px 0;
  }
  .work-category + .work-category { margin-top: 52px; }
  .work-category-head {
    margin-bottom: 28px;
  }
  .works {
    padding-top: 72px;
  }
  .works .section-index {
    margin-bottom: 12px;
  }
  .works .mega-title {
    min-height: 74px;
    margin-bottom: 18px;
  }
  #amazon {
    padding-top: 24px;
  }
  #poster + #ai-video { margin-top: 16px; }
  #ai-video > .work-category-head.scroll-layer {
    margin-bottom: 16px;
  }
  #ai-video .video-showcase {
    margin-top: -22px;
  }
  .works .work-grid { gap: 24px; }
  #retouch {
    min-height: 68svh;
    padding-top: 34px;
    padding-bottom: 28px;
    justify-content: flex-start;
  }
  #retouch .work-category-head {
    margin-bottom: 20px;
  }
  #retouch .retouch-showcase-track {
    --carousel-peek-width: min(30vw, 124px);
    height: 390px;
    padding: 20px calc(50% - var(--carousel-peek-width)) 50px;
  }
  #retouch .retouch-card {
    padding: 0;
  }
  .retouch-pair {
    gap: 4px;
  }
  .retouch-pair span,
  .retouch-story-gallery span {
    top: 10px;
    left: 10px;
    padding: 0;
    font-size: 10px;
  }
  #other {
    min-height: auto;
  }
  #other .other-tab-panel {
    margin-top: 28px;
  }
  #other .other-tab-panel .work-grid {
    --carousel-peek-width: min(30vw, 130px);
    height: 360px;
    padding: 18px calc(50% - var(--carousel-peek-width)) 38px;
  }
  #other .other-tab-panel .work-card {
    flex-basis: min(58vw, 264px);
    height: 304px;
    margin: 0 4px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }
  #amazon .work-grid {
    --carousel-peek-width: min(30vw, 130px);
    display: flex;
    height: 436px;
    gap: 0;
    margin-right: 0;
    overflow-x: auto;
    overflow-y: visible;
    padding: 18px calc(50% - var(--carousel-peek-width)) 38px;
    mask-image: none;
    perspective: 1200px;
    scroll-snap-type: none;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    touch-action: pan-x pan-y;
  }
  #amazon .work-grid::-webkit-scrollbar { display: none; }
  #amazon .work-card[data-category="amazon"] {
    position: relative;
    left: auto;
    top: auto;
    flex: 0 0 min(58vw, 264px);
    width: auto;
    height: 380px;
    margin: 0 4px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    scroll-snap-align: none;
    touch-action: pan-x pan-y;
  }
  #amazon .work-card[data-category="amazon"],
  #amazon .work-card[data-category="amazon"] * {
    touch-action: pan-x pan-y;
  }
  .video-showcase {
    min-height: auto;
    justify-content: flex-start;
    gap: 0;
    margin-inline: 0;
    padding: 0 0 10px;
  }
  .video-carousel {
    --mobile-video-width: min(76vw, 360px);
    --mobile-video-height: calc(var(--mobile-video-width) * 0.5625);
    align-items: center;
    margin-inline: -12px;
    padding: 4px calc(50% - min(32vw, 138px)) 26px;
    touch-action: pan-x pan-y;
  }
  .video-card {
    flex-basis: var(--mobile-video-width);
    width: var(--mobile-video-width);
    max-width: var(--mobile-video-width);
    height: var(--mobile-video-height);
    max-height: var(--mobile-video-height);
    aspect-ratio: auto;
    margin: 0 6px;
    opacity: 0.45;
    transform: scale(0.78);
  }
  .video-card.is-portrait {
    flex-basis: var(--mobile-video-width);
    width: var(--mobile-video-width);
    max-width: var(--mobile-video-width);
    height: var(--mobile-video-height);
    max-height: var(--mobile-video-height);
    aspect-ratio: auto;
  }
  .video-card.is-square {
    flex-basis: var(--mobile-video-width);
    width: var(--mobile-video-width);
    max-width: var(--mobile-video-width);
    height: var(--mobile-video-height);
    max-height: var(--mobile-video-height);
    aspect-ratio: auto;
  }
  .video-card.is-landscape {
    flex-basis: var(--mobile-video-width);
    width: var(--mobile-video-width);
    max-width: var(--mobile-video-width);
    height: var(--mobile-video-height);
    max-height: var(--mobile-video-height);
    aspect-ratio: auto;
  }
  .video-card.active {
    transform: scale(1);
  }
  .video-card-meta {
    padding: 14px;
  }
  .video-card-meta span {
    font-size: 10px;
  }
  .video-card-meta strong {
    font-size: 20px;
  }
  .video-card-play {
    top: 12px;
    right: 12px;
    left: auto;
    width: 38px;
    height: 38px;
    transform: none;
    box-shadow:
      0 0 20px rgba(139, 82, 255, 0.5),
      inset 0 0 14px rgba(255, 255, 255, 0.2);
  }
  .video-card-play:hover,
  .video-card-play:focus-visible {
    transform: scale(1.06);
  }
  .video-card-play span {
    margin-left: 3px;
    border-top-width: 6px;
    border-bottom-width: 6px;
    border-left-width: 10px;
  }
  .video-card-controls {
    top: calc(100% + 12px);
    padding: 8px 10px;
  }
  .video-control-toggle {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
  .video-lightbox {
    padding: 10px;
  }
  .video-lightbox-panel {
    width: 100%;
    height: 92svh;
  }
  .video-lightbox-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }
  .model-carousel {
    --model-card-height: min(62vh, 330px);
    --carousel-peek-width: min(30vw, 130px);
    height: 360px;
    padding: 18px calc(50% - var(--carousel-peek-width)) 38px;
  }
  .ai-showcase-track-visual {
    --carousel-peek-width: min(30vw, 130px);
    height: 360px;
  }
  .ai-lightbox { padding: 12px; }
  .ai-lightbox-panel { max-height: 90vh; padding: 18px 14px 74px; }
  .model-story-mode .ai-lightbox-panel,
  .ecommerce-story-mode .ai-lightbox-panel,
  .visual-story-mode .ai-lightbox-panel {
    width: 90vw;
    height: 90vh;
    max-height: none;
    padding: 20px;
  }
  .ai-lightbox-gallery { grid-template-columns: 1fr; }
  .retouch-story-mode .ai-lightbox-panel {
    height: 90dvh;
    max-height: none;
    padding: 16px 12px 18px;
  }
  .retouch-story-mode .ai-lightbox-gallery {
    height: 100%;
    overflow-y: auto;
    padding-bottom: 24px;
    scrollbar-width: none;
  }
  .retouch-story-mode .ai-lightbox-gallery::-webkit-scrollbar {
    display: none;
  }
  .retouch-story-gallery,
  .retouch-story-gallery.retouch-story-stacked {
    grid-template-columns: 1fr;
  }
  .model-story-mode .ai-lightbox-gallery,
  .ecommerce-story-mode .ai-lightbox-gallery,
  .visual-story-mode .ai-lightbox-gallery {
    height: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
  }
  .model-story-grid,
  .ecommerce-story-grid {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
    gap: 20px;
    align-content: start;
    grid-auto-rows: auto;
  }
  .model-story-section,
  .ecommerce-story {
    height: auto;
    min-height: 0;
  }
  .model-story-item,
  .ecommerce-story-item,
  .visual-story-figure {
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    margin: 0;
    scroll-snap-align: start;
    aspect-ratio: var(--poster-ratio);
  }
  .model-story-mode .model-story-item-wide {
    height: auto;
    aspect-ratio: var(--poster-ratio);
  }
  .model-story-bike .model-story-item-1,
  .model-story-bike .model-story-item-4 {
    margin-top: 0;
  }
  .model-story-camp-chair .model-story-grid {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 12px;
  }
  .model-story-camp-chair .model-story-item {
    height: auto;
    aspect-ratio: var(--poster-ratio);
  }
  .ai-lightbox-gallery.ecommerce-story-wrap {
    width: 100%;
    height: 100%;
    max-height: none;
    align-items: start;
    overflow-y: auto;
    padding: 0;
  }
  .ecommerce-story-mode .ai-lightbox-panel {
    min-height: 0;
    padding: 20px;
    border: 0;
    background: #000;
    box-shadow: 0 0 40px rgba(143, 99, 255, 0.12);
  }
  .ecommerce-story-grid { gap: 8px; }
  .visual-story-mode .ai-lightbox-gallery,
  .visual-story-mode .visual-story-wrap {
    height: 100% !important;
    padding: 0 0 72px !important;
  }
  .visual-story-mode .visual-story-figure {
    height: auto !important;
    aspect-ratio: var(--poster-ratio) !important;
  }
  .visual-story-mode .visual-story-figure img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
  }
  .contact-links a { width: 100%; overflow-wrap: anywhere; }
  .detail-back, .detail-shell { width: min(100% - 24px, var(--max)); }
  .detail-shell { padding-top: 112px; }
  .detail-hero h1 { margin-top: -10px; }
}

.scroll-stage > .section-index.scroll-layer strong,
.scroll-stage > .work-category-head.scroll-layer h3,
.scroll-stage > .work-category-head.scroll-layer .work-category-title h3,
.scroll-stage > .strengths-title.scroll-layer h2 {
  font-size: var(--module-title-size, clamp(22px, 2.2vw, 30px)) !important;
}

/* Keep every card detail dialog the same viewport-relative size. */
.ai-lightbox-panel,
.retouch-story-mode .ai-lightbox-panel,
.model-story-mode .ai-lightbox-panel,
.ecommerce-story-mode .ai-lightbox-panel,
.visual-story-mode .ai-lightbox-panel,
.video-lightbox-panel {
  box-sizing: border-box;
  width: 90vw !important;
  min-width: 0;
  max-width: none !important;
  height: 90vh !important;
  min-height: 0 !important;
  max-height: none !important;
}

/* Unified return control for every detail lightbox. */
.ai-lightbox-close,
.video-lightbox-close {
  top: 14px !important;
  right: 14px !important;
  bottom: auto !important;
  left: auto !important;
  width: 40px;
  height: 40px;
  padding: 0;
}

.ai-lightbox-close::before,
.video-lightbox-close::before {
  position: absolute;
  inset: auto;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 3px;
  border-radius: 0;
  background: #fff;
  clip-path: none;
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.ai-lightbox-close::after,
.video-lightbox-close::after {
  position: absolute;
  inset: auto;
  top: 50%;
  left: 50%;
  display: block;
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  content: "";
  transform: translate(-50%, -50%) rotate(-45deg);
}

.model-story-mode .ai-lightbox-close,
.ecommerce-story-mode .ai-lightbox-close,
.visual-story-mode .ai-lightbox-close,
.retouch-story-mode .ai-lightbox-close {
  position: fixed;
  top: max(24px, env(safe-area-inset-top)) !important;
  right: max(36px, env(safe-area-inset-right)) !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 96;
  width: 48px;
  height: 48px;
  border-color: rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.62), transparent 18%),
    rgba(108, 69, 205, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 26px rgba(204, 184, 255, 0.38),
    inset 0 0 14px rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.model-story-mode .ai-lightbox-close::before,
.model-story-mode .ai-lightbox-close::after,
.ecommerce-story-mode .ai-lightbox-close::before,
.ecommerce-story-mode .ai-lightbox-close::after,
.visual-story-mode .ai-lightbox-close::before,
.visual-story-mode .ai-lightbox-close::after,
.retouch-story-mode .ai-lightbox-close::before,
.retouch-story-mode .ai-lightbox-close::after {
  width: 22px;
  height: 3px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.72);
}

.model-story-mode .ai-lightbox-close::before,
.ecommerce-story-mode .ai-lightbox-close::before,
.visual-story-mode .ai-lightbox-close::before,
.retouch-story-mode .ai-lightbox-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.model-story-mode .ai-lightbox-close::after,
.ecommerce-story-mode .ai-lightbox-close::after,
.visual-story-mode .ai-lightbox-close::after,
.retouch-story-mode .ai-lightbox-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Model poster details use the same full-canvas treatment as ecommerce posters. */
.model-story-mode .ai-lightbox-panel {
  grid-template-rows: minmax(0, 1fr);
}

.model-story-mode .ai-lightbox-head,
.model-story-mode .model-story-section h3 {
  display: none;
}

@media (min-width: 641px) {
  .model-story-mode .ai-lightbox-panel,
  .ecommerce-story-mode .ai-lightbox-panel,
  .retouch-story-mode .ai-lightbox-panel {
    grid-template-rows: minmax(0, 1fr) !important;
    width: 100vw !important;
    height: 100vh !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .model-story-mode .ai-lightbox-head,
  .ecommerce-story-mode .ai-lightbox-head,
  .retouch-story-mode .ai-lightbox-head,
  .model-story-section h3,
  .ecommerce-story h3 {
    display: none !important;
  }

  .model-story-mode .ai-lightbox-gallery,
  .ecommerce-story-mode .ai-lightbox-gallery,
  .retouch-story-mode .ai-lightbox-gallery {
    width: 100vw !important;
    height: 100vh !important;
    max-height: none !important;
    overflow: auto !important;
    padding: 5vh clamp(56px, 5vw, 92px) !important;
    background: transparent !important;
    scrollbar-width: none !important;
  }

  .model-story-mode .ai-lightbox-gallery::-webkit-scrollbar,
  .ecommerce-story-mode .ai-lightbox-gallery::-webkit-scrollbar,
  .retouch-story-mode .ai-lightbox-gallery::-webkit-scrollbar {
    display: none;
  }

  .model-story-section,
  .ecommerce-story {
    width: max-content !important;
    min-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  .model-story-grid,
  .ecommerce-story-grid,
  .retouch-story-gallery,
  .retouch-story-gallery.retouch-story-stacked {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, auto)) !important;
    justify-content: center !important;
    align-items: start !important;
    gap: clamp(10px, 1vw, 16px) !important;
    width: max-content !important;
    min-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .model-story-item,
  .ecommerce-story-item,
  .retouch-story-gallery figure {
    grid-column: auto !important;
    display: grid !important;
    width: min(calc(90vh * var(--poster-ratio, 0.75)), calc((100vw - clamp(128px, 12vw, 220px)) / 2)) !important;
    max-width: none !important;
    height: 90vh !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    place-items: center !important;
    overflow: hidden !important;
    border-radius: var(--radius) !important;
    background: #000 !important;
    clip-path: inset(0 round var(--radius)) !important;
  }

  .model-story-item img,
  .ecommerce-story-item img,
  .retouch-story-gallery img,
  .model-story-mode .model-story-item img,
  .ecommerce-story-mode .ecommerce-story-item img,
  .retouch-story-mode .retouch-story-gallery img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    clip-path: none !important;
  }

  .model-story-camp-chair .model-story-grid {
    grid-template-columns: minmax(0, auto) !important;
    width: 100% !important;
    min-width: 100% !important;
  }

  .model-story-camp-chair .model-story-item {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    width: min(
      calc(90vh * var(--poster-ratio, 1.778)),
      calc(100vw - clamp(128px, 12vw, 220px))
    ) !important;
    height: 90vh !important;
    scroll-snap-align: start !important;
  }

  .model-story-tea .model-story-grid {
    grid-template-columns: repeat(2, minmax(0, auto)) !important;
  }

  .model-story-tea .model-story-item-1 {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    width: min(
      calc((90vh * 0.772 * 2) + clamp(10px, 1vw, 16px)),
      calc(100vw - clamp(128px, 12vw, 220px))
    ) !important;
  }
}

@media (hover: none), (pointer: coarse), (max-width: 900px) {
  .carousel-plane-nav {
    display: none !important;
  }

  .model-carousel,
  #other .other-tab-panel .work-grid,
  #amazon .work-grid,
  .video-carousel,
  .model-carousel-card,
  #other .other-tab-panel .work-card,
  #amazon .work-card[data-category="amazon"],
  .video-card {
    touch-action: pan-y !important;
  }

  .model-carousel-card *,
  #other .other-tab-panel .work-card *,
  #amazon .work-card[data-category="amazon"] *,
  .video-card * {
    touch-action: pan-y !important;
  }
}

.ai-lightbox-head p,
.video-lightbox-info p {
  margin: 0;
  color: rgba(238, 230, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.72;
}

.video-lightbox-info {
  display: grid;
  gap: 10px;
}

.video-lightbox-info span {
  color: rgba(238, 230, 255, 0.58);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.video-lightbox-info strong {
  color: #fff;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.12;
}

.video-lightbox-info .video-lightbox-detail span {
  color: rgba(229, 213, 255, 0.62);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.video-lightbox-info .video-lightbox-detail strong {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(12px, 0.78vw, 15px);
  font-weight: 800;
  line-height: 1.62;
}

@media (min-width: 901px) {
  .ai-lightbox {
    padding: 5vh 5vw;
  }

  .ai-lightbox-panel,
  .model-story-mode .ai-lightbox-panel,
  .ecommerce-story-mode .ai-lightbox-panel,
  .visual-story-mode .ai-lightbox-panel,
  .retouch-story-mode .ai-lightbox-panel {
    display: grid !important;
    grid-template-columns: clamp(230px, 20vw, 320px) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: clamp(14px, 1.6vw, 24px) !important;
    width: 90vw !important;
    height: 90vh !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .ai-lightbox-head,
  .model-story-mode .ai-lightbox-head,
  .ecommerce-story-mode .ai-lightbox-head,
  .visual-story-mode .ai-lightbox-head,
  .retouch-story-mode .ai-lightbox-head {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    align-self: stretch;
    gap: 12px;
    min-height: 0;
    padding: clamp(24px, 3vw, 42px);
    border: 1px solid rgba(190, 158, 255, 0.28);
    border-radius: var(--radius);
    background:
      linear-gradient(135deg, rgba(143, 99, 255, 0.16), rgba(255, 255, 255, 0.045)),
      rgba(8, 4, 36, 0.62);
    box-shadow: 0 26px 86px rgba(0, 0, 0, 0.28), 0 0 24px rgba(143, 99, 255, 0.1);
  }

  .ai-lightbox-head span {
    font-size: 12px;
    letter-spacing: 0;
  }

  .ai-lightbox-head strong {
    font-size: clamp(28px, 3vw, 48px);
  }

  .model-story-mode .ai-lightbox-gallery,
  .ecommerce-story-mode .ai-lightbox-gallery,
  .visual-story-mode .ai-lightbox-gallery,
  .retouch-story-mode .ai-lightbox-gallery,
  .ai-lightbox-gallery {
    width: 100% !important;
    height: 90vh !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: auto !important;
    padding: 0 !important;
    background: transparent !important;
    scroll-snap-type: y mandatory !important;
    scrollbar-width: none !important;
  }

  .model-story-mode .ai-lightbox-gallery::-webkit-scrollbar,
  .ecommerce-story-mode .ai-lightbox-gallery::-webkit-scrollbar,
  .visual-story-mode .ai-lightbox-gallery::-webkit-scrollbar,
  .retouch-story-mode .ai-lightbox-gallery::-webkit-scrollbar,
  .ai-lightbox-gallery::-webkit-scrollbar {
    display: none;
  }

  .model-story-section,
  .ecommerce-story {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  .model-story-grid,
  .ecommerce-story-grid,
  .retouch-story-gallery,
  .retouch-story-gallery.retouch-story-stacked {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(10px, 1vw, 16px) !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .model-story-item,
  .ecommerce-story-item,
  .retouch-story-gallery figure {
    grid-column: auto !important;
    display: grid !important;
    width: 100% !important;
    height: 90vh !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    place-items: center !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    clip-path: none !important;
    scroll-snap-align: start !important;
  }

  .model-story-item img,
  .ecommerce-story-item img,
  .retouch-story-gallery img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 90vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    clip-path: none !important;
  }

  .visual-story-mode .visual-story-project {
    width: 100% !important;
    max-width: none !important;
    height: 90vh !important;
    margin: 0 auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    clip-path: none !important;
    scroll-snap-align: start !important;
  }

  .visual-story-mode .visual-project-figure {
    height: 90vh !important;
    border-radius: 18px !important;
    background: rgba(0, 0, 0, 0.58) !important;
    aspect-ratio: auto !important;
  }

  .visual-story-mode .visual-project-figure img {
    width: 100% !important;
    max-width: 100% !important;
    height: 90vh !important;
    border-radius: 18px !important;
    object-fit: contain !important;
    clip-path: none !important;
  }

  .video-lightbox {
    padding: 5vh 5vw;
  }

  .video-lightbox-panel {
    display: grid !important;
    grid-template-columns: clamp(360px, 24vw, 480px) minmax(0, 1fr);
    gap: clamp(14px, 1.6vw, 24px);
    place-items: stretch;
    width: 90vw !important;
    height: 90vh !important;
    padding: 0;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .video-lightbox-info {
    display: flex;
    box-sizing: border-box;
    height: 90vh;
    min-height: 0;
    flex-direction: column;
    align-self: stretch;
    justify-content: flex-start;
    padding: clamp(30px, 3.2vw, 46px) clamp(26px, 3vw, 42px) clamp(42px, 5vh, 70px);
    border: 1px solid rgba(190, 158, 255, 0.28);
    border-radius: var(--radius);
    background:
      linear-gradient(135deg, rgba(143, 99, 255, 0.16), rgba(255, 255, 255, 0.045)),
      rgba(8, 4, 36, 0.62);
    box-shadow: 0 26px 86px rgba(0, 0, 0, 0.28), 0 0 24px rgba(143, 99, 255, 0.1);
  }

  .video-lightbox-info > span {
    color: rgba(229, 213, 255, 0.7);
    font-size: clamp(12px, 0.78vw, 15px);
    font-weight: 950;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .video-lightbox-info > strong {
    margin-top: 22px;
    color: #fff;
    font-size: clamp(34px, 3vw, 54px);
    line-height: 1.04;
  }

  .video-lightbox-info > p {
    margin-top: 18px;
    color: rgba(238, 230, 255, 0.78);
    font-size: clamp(15px, 0.9vw, 18px);
    font-weight: 800;
    line-height: 1.72;
  }

  .video-lightbox-panel video {
    width: 100%;
    height: 90vh;
    border-radius: 0;
    object-fit: contain;
  }

  .video-lightbox-panel.is-portrait-video video {
    width: min(100%, 50.625vh);
    max-width: 100%;
    justify-self: center;
    background: transparent;
  }
}

@media (max-width: 900px) {
  .ai-lightbox-panel,
  .model-story-mode .ai-lightbox-panel,
  .ecommerce-story-mode .ai-lightbox-panel,
  .visual-story-mode .ai-lightbox-panel,
  .retouch-story-mode .ai-lightbox-panel {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 12px !important;
    width: 92vw !important;
    height: 90vh !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .ai-lightbox-head,
  .model-story-mode .ai-lightbox-head,
  .ecommerce-story-mode .ai-lightbox-head,
  .visual-story-mode .ai-lightbox-head,
  .retouch-story-mode .ai-lightbox-head {
    display: grid !important;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(190, 158, 255, 0.28);
    border-radius: var(--radius);
    background: rgba(8, 4, 36, 0.72);
  }

  .model-story-mode .ai-lightbox-gallery,
  .ecommerce-story-mode .ai-lightbox-gallery,
  .visual-story-mode .ai-lightbox-gallery,
  .retouch-story-mode .ai-lightbox-gallery,
  .ai-lightbox-gallery {
    height: 100% !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: auto !important;
    background: transparent !important;
  }

  .model-story-grid,
  .ecommerce-story-grid,
  .retouch-story-gallery,
  .retouch-story-gallery.retouch-story-stacked {
    grid-template-columns: 1fr !important;
  }

  .model-story-item,
  .ecommerce-story-item,
  .retouch-story-gallery figure,
  .visual-story-mode .visual-story-project,
  .visual-story-mode .visual-project-figure {
    height: calc(90vh - 150px) !important;
    border-radius: 0 !important;
    background: transparent !important;
    clip-path: none !important;
  }

  .model-story-item img,
  .ecommerce-story-item img,
  .retouch-story-gallery img,
  .visual-story-mode .visual-project-figure img,
  .model-story-mode .model-story-item img,
  .ecommerce-story-mode .ecommerce-story-item img,
  .retouch-story-mode .retouch-story-gallery img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .visual-story-mode .visual-story-project {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    height: auto !important;
    align-content: start !important;
  }

  .visual-story-mode .ai-lightbox-panel {
    grid-template-rows: minmax(0, 1fr) !important;
    width: 100vw !important;
    height: 90vh !important;
  }

  .visual-story-mode .ai-lightbox-head {
    display: none !important;
  }

  .visual-story-mode .ai-lightbox-gallery,
  .visual-story-mode .visual-story-wrap {
    width: 100% !important;
    height: 100% !important;
    padding: 0 12px 72px !important;
  }

  .visual-story-mode .visual-project-figure {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(190, 158, 255, 0.24) !important;
    border-radius: 18px !important;
    background: rgba(0, 0, 0, 0.58) !important;
    aspect-ratio: var(--poster-ratio) !important;
    clip-path: inset(0 round 18px) !important;
  }

  .visual-story-mode .visual-project-figure img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 18px !important;
    object-fit: contain !important;
  }

  .video-lightbox-panel {
    display: grid !important;
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    width: 100vw !important;
    height: 100svh !important;
    padding: 0;
    overflow: visible;
    border-radius: 0;
    background: transparent;
  }

  .video-lightbox-info {
    display: none !important;
  }

  .video-lightbox-panel video {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    background: transparent;
  }

  .video-lightbox-panel.is-portrait-video video {
    width: 100%;
    justify-self: stretch;
  }

  .video-lightbox-nav {
    display: none;
  }

  .video-lightbox {
    padding: 0;
  }
}

/* AI model poster detail: left copy 1/3, right image group 2/3. */
@media (min-width: 901px) {
  .visual-story-mode .ai-lightbox-panel {
    grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr) !important;
  }

  .model-story-mode .ai-lightbox-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) !important;
  }

  .model-story-mode .ai-lightbox-gallery {
    width: 100% !important;
    height: 90vh !important;
    overflow-y: auto !important;
  }

  .model-story-mode .model-story-section,
  .model-story-mode .model-story-grid {
    width: 100% !important;
    min-width: 0 !important;
  }

  .model-story-mode .model-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(12px, 1.2vw, 20px) !important;
  }

  .model-story-mode .model-story-item {
    border-radius: 50px !important;
    clip-path: inset(0 round 50px) !important;
  }

  .model-story-mode .model-story-item img,
  .model-story-mode .model-story-item-wide img {
    border-radius: 50px !important;
  }
}

@media (max-width: 900px) {
  .model-story-mode .model-story-item {
    border-radius: 50px !important;
    clip-path: inset(0 round 50px) !important;
  }

  .model-story-mode .model-story-item img,
  .model-story-mode .model-story-item-wide img {
    border-radius: 50px !important;
  }
}

/* Ecommerce poster detail follows the reference card + poster collage layout. */
.ai-lightbox:not(.retouch-story-mode) .ai-lightbox-prev::before {
  transform: rotate(180deg) !important;
}

.ai-lightbox:not(.retouch-story-mode) .ai-lightbox-next::before {
  transform: rotate(0deg) !important;
}

.model-lightbox-meta,
.ecommerce-lightbox-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  margin-top: 8px;
}

.model-lightbox-tags,
.ecommerce-lightbox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.model-lightbox-tags span,
.ecommerce-lightbox-tags span {
  display: inline-grid;
  min-height: 26px;
  place-items: center;
  padding: 0 14px;
  border: 1px solid rgba(238, 230, 255, 0.22);
  border-radius: 999px;
  background: rgba(238, 230, 255, 0.08);
  color: rgba(238, 230, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.model-lightbox-notes,
.ecommerce-lightbox-notes {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: clamp(72px, 15vh, 150px);
}

.model-meta-block,
.ecommerce-meta-block {
  display: grid;
  gap: 5px;
  padding: 12px 14px 12px 16px;
  border-left: 2px solid rgba(238, 230, 255, 0.44);
  background: rgba(238, 230, 255, 0.055);
}

.model-meta-block span,
.model-lightbox-footnote,
.ecommerce-meta-block span,
.ecommerce-lightbox-footnote {
  color: rgba(238, 230, 255, 0.52);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

.model-meta-block p,
.ecommerce-meta-block p {
  margin: 0;
  color: rgba(238, 230, 255, 0.84);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.48;
}

.model-lightbox-footnote,
.ecommerce-lightbox-footnote {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(238, 230, 255, 0.14);
}

@media (min-width: 901px) {
  .ecommerce-story-mode .ai-lightbox-panel {
    grid-template-columns: clamp(320px, 28vw, 470px) minmax(0, 1fr) !important;
  }

  .ecommerce-story-mode .ai-lightbox-head {
    display: flex !important;
    align-self: stretch;
    justify-content: flex-start;
    padding: clamp(34px, 3.4vw, 58px);
    overflow: hidden;
    border-radius: var(--radius);
    background:
      linear-gradient(180deg, rgba(30, 18, 88, 0.74), rgba(16, 8, 58, 0.86)),
      rgba(8, 4, 36, 0.72);
  }

  .ecommerce-story-mode .ai-lightbox-head span {
    color: rgba(238, 230, 255, 0.62);
  }

  .ecommerce-story-mode .ai-lightbox-head strong {
    margin-top: 4px;
    color: #fff;
    font-size: clamp(36px, 4.1vw, 62px);
    line-height: 0.95;
  }

  .ecommerce-story-mode .ai-lightbox-head p {
    max-width: 23em;
    color: rgba(238, 230, 255, 0.78);
    font-size: clamp(13px, 1vw, 15px);
  }

  .ecommerce-story-mode .ai-lightbox-gallery {
    scroll-snap-type: none !important;
  }

  .ecommerce-story-mode .ecommerce-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start !important;
    gap: clamp(14px, 1.2vw, 22px) !important;
    padding-bottom: clamp(14px, 1.2vw, 22px) !important;
  }

  .ecommerce-story-mode .ecommerce-story-appliance .ecommerce-story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .ecommerce-story-mode .ecommerce-story-item,
  .ecommerce-story-mode .ecommerce-story-item-wide {
    grid-column: auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: var(--poster-ratio) !important;
    overflow: hidden !important;
    border-radius: 50px !important;
    background: transparent !important;
    clip-path: inset(0 round 50px) !important;
    scroll-snap-align: none !important;
  }

  .ecommerce-story-mode .ecommerce-story-item-wide,
  .ecommerce-story-mode .ecommerce-story-digital .ecommerce-story-item-1,
  .ecommerce-story-mode .ecommerce-story-digital .ecommerce-story-item-4,
  .ecommerce-story-mode .ecommerce-story-home .ecommerce-story-item,
  .ecommerce-story-mode .ecommerce-story-appliance .ecommerce-story-item-1,
  .ecommerce-story-mode .ecommerce-story-appliance .ecommerce-story-item-5 {
    grid-column: 1 / -1 !important;
  }

  .ecommerce-story-mode .ecommerce-story-home .ecommerce-story-item-2,
  .ecommerce-story-mode .ecommerce-story-home .ecommerce-story-item-3,
  .ecommerce-story-mode .ecommerce-story-home .ecommerce-story-item-4,
  .ecommerce-story-mode .ecommerce-story-home .ecommerce-story-item-5,
  .ecommerce-story-mode .ecommerce-story-appliance .ecommerce-story-item-2,
  .ecommerce-story-mode .ecommerce-story-appliance .ecommerce-story-item-3,
  .ecommerce-story-mode .ecommerce-story-appliance .ecommerce-story-item-4 {
    grid-column: auto !important;
  }

  .ecommerce-story-mode .ecommerce-story-item img,
  .ecommerce-story-mode .ecommerce-story-item-wide img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    border-radius: 50px !important;
    background: transparent !important;
    object-fit: cover !important;
    object-position: center !important;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .ecommerce-lightbox-meta {
    display: none;
  }

  .ecommerce-story-mode .ecommerce-story-item,
  .ecommerce-story-mode .ecommerce-story-item img {
    border-radius: 50px !important;
  }

  .ecommerce-story-mode .ecommerce-story-item {
    clip-path: inset(0 round 50px) !important;
  }
}

/* Profile section: poster-style about card inspired by the reference image. */
.project-info {
  --profile-photo-w: clamp(300px, 24vw, 380px);
  overflow: hidden;
}

.project-info::before {
  top: clamp(58px, 8vh, 98px);
  bottom: clamp(40px, 6vh, 72px);
  border: 1px solid rgba(202, 158, 255, 0.16);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 24%, rgba(124, 50, 255, 0.16), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(174, 108, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(12, 5, 50, 0.72), rgba(5, 2, 26, 0.86));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 70px rgba(127, 53, 255, 0.12);
}

.project-info::after {
  position: absolute;
  left: clamp(-62px, -3vw, -18px);
  bottom: clamp(28px, 5vh, 72px);
  z-index: 1;
  width: clamp(220px, 23vw, 360px);
  height: clamp(220px, 23vw, 360px);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(255, 255, 255, 0.72), rgba(177, 100, 255, 0.5) 28%, transparent 58%),
    radial-gradient(ellipse at 90% 42%, rgba(232, 212, 255, 0.66), rgba(147, 70, 255, 0.46) 30%, transparent 60%),
    radial-gradient(ellipse at 68% 92%, rgba(232, 212, 255, 0.62), rgba(147, 70, 255, 0.42) 30%, transparent 62%),
    radial-gradient(ellipse at 30% 92%, rgba(232, 212, 255, 0.62), rgba(147, 70, 255, 0.42) 30%, transparent 62%),
    radial-gradient(ellipse at 8% 42%, rgba(232, 212, 255, 0.66), rgba(147, 70, 255, 0.46) 30%, transparent 60%),
    radial-gradient(circle at 50% 54%, rgba(255, 255, 255, 0.82), rgba(171, 96, 255, 0.54) 18%, rgba(83, 25, 154, 0.2) 36%, transparent 58%);
  filter: drop-shadow(0 0 24px rgba(176, 78, 255, 0.42)) drop-shadow(0 0 70px rgba(127, 53, 255, 0.26));
  opacity: 0.82;
  pointer-events: none;
  transform: rotate(-18deg);
}

.project-info .section-index {
  display: none;
}

.project-info .mega-title {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: var(--profile-photo-w) minmax(260px, 0.78fr) minmax(360px, 1.22fr);
  gap: clamp(26px, 4vw, 60px);
  align-items: end;
  margin: 0 0 clamp(24px, 3.6vh, 44px);
}

.project-info .mega-title p {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  max-width: none;
  margin: 0;
  background: linear-gradient(180deg, #fff 8%, #dbcaff 48%, #925dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-sans);
  font-size: clamp(72px, 7.8vw, 138px);
  font-weight: 900;
  line-height: 0.82;
  text-align: right;
  text-shadow: 0 0 28px rgba(178, 132, 255, 0.32);
  white-space: nowrap;
}

.project-info .mega-title h2 {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  max-width: 100%;
  margin: 0;
  color: rgba(246, 241, 255, 0.94);
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.2;
  text-shadow: 0 0 22px rgba(178, 132, 255, 0.22);
  white-space: normal;
}

.profile-grid {
  position: relative;
  z-index: 2;
  grid-template-columns: var(--profile-photo-w) minmax(0, 1fr);
  gap: clamp(34px, 4vw, 66px);
  align-items: start;
  min-height: 0;
  margin-top: 0;
}

.profile-orb {
  min-height: clamp(470px, 56vh, 620px);
  border: 1px solid rgba(232, 212, 255, 0.34);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 36px rgba(178, 132, 255, 0.28);
}

.profile-orb::before {
  background:
    linear-gradient(180deg, rgba(7, 3, 35, 0), rgba(7, 3, 35, 0.28) 72%, rgba(7, 3, 35, 0.68));
}

.profile-orb img {
  object-position: center 18%;
}

.info-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 30px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.info-item {
  min-height: 84px;
  padding: 0 clamp(20px, 2.2vw, 34px) 0 0;
  border: 0;
  border-right: 1px solid rgba(202, 158, 255, 0.24);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.info-item span {
  margin-bottom: 12px;
  color: rgba(226, 214, 255, 0.72);
  font-size: 15px;
  font-weight: 800;
}

.info-item strong {
  color: #fff;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.05;
  text-shadow: 0 0 18px rgba(178, 132, 255, 0.24);
}

.experience-block {
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: clamp(8px, 1.2vh, 16px);
  padding-top: clamp(18px, 2.2vh, 28px);
  border-top: 1px solid rgba(202, 158, 255, 0.22);
  counter-reset: profile-exp;
}

.experience-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  counter-increment: profile-exp;
}

.experience-card::before {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(232, 212, 255, 0.38);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(113, 58, 204, 0.36);
  box-shadow: 0 0 18px rgba(176, 78, 255, 0.2);
  content: counter(profile-exp, decimal-leading-zero);
  font-size: 12px;
  font-weight: 900;
}

.experience-card:not(:last-child)::after {
  position: absolute;
  left: 14px;
  top: 34px;
  bottom: -18px;
  width: 1px;
  background: linear-gradient(180deg, rgba(202, 158, 255, 0.42), rgba(202, 158, 255, 0.05));
  content: "";
}

.experience-card-head,
.experience-list {
  grid-column: 2;
}

.experience-card-head {
  padding: 0 0 8px;
}

.experience-title {
  display: block;
}

.experience-title span {
  display: none;
}

.experience-title strong {
  font-size: clamp(17px, 1.4vw, 22px);
}

.experience-list {
  gap: 5px;
  padding: 0;
}

.experience-list li {
  padding-left: 0;
  color: rgba(246, 241, 255, 0.76);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.62;
}

.experience-list li::before {
  display: none;
}

@media (max-width: 640px) {
  .project-info {
    --profile-photo-w: 100%;
  }

  .project-info::before {
    top: 60px;
    bottom: 38px;
  }

  .project-info::after {
    left: -76px;
    bottom: auto;
    top: 442px;
    width: 220px;
    height: 220px;
    opacity: 0.58;
  }

  .project-info .mega-title {
    display: block;
    margin-bottom: 24px;
  }

  .project-info .mega-title p {
    font-size: clamp(58px, 17vw, 86px);
    text-align: left;
    white-space: normal;
  }

  .project-info .mega-title h2 {
    margin-top: 10px;
    font-size: clamp(28px, 8vw, 42px);
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .profile-orb {
    min-height: min(118vw, 540px);
    border-radius: 22px;
  }

  .info-panel {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .info-item {
    min-height: 0;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(202, 158, 255, 0.2);
  }

  .experience-block {
    gap: 16px;
    margin-top: 0;
    padding-top: 6px;
    border-top: 0;
  }

  .experience-card {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .experience-card::before {
    width: 28px;
    height: 28px;
  }

  .experience-card:not(:last-child)::after {
    left: 13px;
  }

  .experience-card-head {
    gap: 10px;
    padding: 0 0 10px;
  }

  .experience-list {
    max-height: 142px;
    padding: 0 0 4px;
  }

  .experience-card.expanded .experience-list {
    max-height: 640px;
  }
}

/* Final About Me reference layout. */
.project-info {
  --profile-note-w: 58px;
  --profile-photo-w: clamp(330px, 24vw, 420px);
}

.project-info::before {
  background:
    radial-gradient(circle at 24% 14%, rgba(127, 53, 255, 0.18), transparent 32%),
    radial-gradient(circle at 70% 20%, rgba(109, 65, 255, 0.13), transparent 36%),
    linear-gradient(180deg, rgba(7, 3, 35, 0.58), rgba(4, 2, 24, 0.9));
}

.project-info::after {
  left: clamp(36px, 4vw, 86px);
  bottom: clamp(22px, 3.5vh, 48px);
  width: clamp(260px, 25vw, 430px);
  height: clamp(260px, 25vw, 430px);
  opacity: 0.88;
}

.project-info .mega-title {
  grid-template-columns: var(--profile-note-w) var(--profile-photo-w) minmax(0, 1fr);
  align-items: end;
  gap: clamp(24px, 3vw, 54px);
  margin-bottom: clamp(12px, 1.8vh, 24px);
}

.project-info .mega-title p {
  grid-column: 3;
  justify-self: end;
  font-family: var(--font-sans);
  font-size: clamp(88px, 9vw, 176px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.78;
}

.project-info .mega-title h2 {
  display: none;
}

.profile-grid {
  grid-template-columns: var(--profile-note-w) var(--profile-photo-w) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 54px);
}

.profile-side-note {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: clamp(520px, 68vh, 760px);
  place-items: start center;
  color: rgba(246, 241, 255, 0.92);
  font-size: clamp(22px, 1.7vw, 34px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0;
  writing-mode: vertical-rl;
}

.profile-side-note span {
  text-shadow: 0 0 18px rgba(178, 132, 255, 0.28);
}

.profile-orb {
  min-height: clamp(520px, 68vh, 760px);
  border-radius: 32px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 34px rgba(178, 132, 255, 0.48),
    inset 0 0 24px rgba(255, 255, 255, 0.1);
}

.info-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 1.22fr);
  gap: clamp(24px, 3vw, 54px);
  align-content: start;
  padding-top: clamp(10px, 1.5vh, 24px);
}

.profile-bio {
  align-self: end;
}

.profile-name {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.profile-name strong {
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(48px, 4.6vw, 86px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 26px rgba(178, 132, 255, 0.3);
}

.profile-name em {
  color: rgba(196, 139, 255, 0.88);
  font-size: clamp(24px, 2.6vw, 46px);
  font-style: italic;
  font-weight: 300;
}

.profile-bio p {
  margin: 12px 0 0;
  color: rgba(212, 178, 255, 0.86);
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 500;
}

.profile-about-title {
  display: grid;
  justify-items: end;
  align-self: end;
  gap: 12px;
}

.profile-about-title span {
  display: none;
}

.profile-about-title strong {
  position: relative;
  color: #fff;
  font-size: clamp(22px, 2.2vw, 38px);
  font-weight: 900;
}

.profile-about-title strong::before {
  margin-right: 10px;
  color: rgba(212, 178, 255, 0.95);
  content: "�?;
}

.profile-about-title::before {
  width: min(100%, 440px);
  height: 1px;
  background: linear-gradient(90deg, rgba(202, 158, 255, 0), rgba(202, 158, 255, 0.52), rgba(202, 158, 255, 0));
  content: "";
}

.profile-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.82fr 1fr 1.16fr;
  gap: clamp(24px, 3vw, 54px);
  margin-top: clamp(18px, 3vh, 42px);
}

.profile-meta-card {
  min-width: 0;
  padding-right: clamp(18px, 2vw, 36px);
  border-right: 1px solid rgba(202, 158, 255, 0.22);
}

.profile-meta-card:last-child {
  padding-right: 0;
  border-right: 0;
}

.profile-meta-card h3 {
  margin: 0 0 18px;
  color: rgba(212, 178, 255, 0.92);
  font-size: clamp(18px, 1.35vw, 25px);
  font-weight: 700;
}

.profile-meta-card p {
  margin: 10px 0 0;
  color: rgba(246, 241, 255, 0.82);
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 400;
  line-height: 1.55;
}

.profile-skills div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-skills span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(232, 212, 255, 0.3);
  border-radius: 999px;
  color: rgba(246, 241, 255, 0.88);
  background: rgba(93, 35, 172, 0.38);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.06), 0 0 18px rgba(127, 53, 255, 0.18);
  font-size: clamp(13px, 0.95vw, 16px);
  font-weight: 500;
}

.experience-block {
  margin-top: clamp(22px, 4vh, 56px);
  padding-top: 0;
  border-top: 0;
}

.experience-block::before {
  margin-bottom: 18px;
  color: rgba(212, 178, 255, 0.92);
  content: "工作经历";
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 700;
}

.experience-card {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 22px;
}

.experience-card::before {
  width: 34px;
  height: 34px;
  background: rgba(116, 54, 201, 0.52);
  font-size: 14px;
}

.experience-card:not(:last-child)::after {
  left: 16px;
  top: 40px;
  bottom: -18px;
}

.experience-card-head {
  padding-bottom: 8px;
}

.experience-title strong {
  font-size: clamp(18px, 1.35vw, 24px);
  font-weight: 700;
}

.project-info .experience-list li:not(:first-child) {
  display: none;
}

.project-info .experience-list li {
  color: rgba(246, 241, 255, 0.78);
  font-size: clamp(14px, 1vw, 18px);
}

@media (max-width: 640px) {
  .project-info {
    --profile-note-w: 100%;
    --profile-photo-w: 100%;
  }

  .project-info::after {
    top: 420px;
    left: -68px;
    width: 230px;
    height: 230px;
  }

  .project-info .mega-title {
    display: block;
  }

  .project-info .mega-title p {
    font-size: clamp(56px, 16vw, 84px);
    text-align: left;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-side-note {
    min-height: auto;
    place-items: start;
    font-size: 18px;
    line-height: 1.5;
    writing-mode: horizontal-tb;
  }

  .profile-orb {
    min-height: min(116vw, 560px);
  }

  .info-panel,
  .profile-meta {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .profile-about-title {
    justify-items: start;
  }

  .profile-meta-card {
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(202, 158, 255, 0.18);
  }

  .project-info .experience-list li:not(:first-child) {
    display: list-item;
  }
}

/* Profile polish from annotated reference. */
.project-info::before {
  left: 0;
  right: 0;
  width: auto;
  border-radius: 32px;
  transform: none;
}

.project-info::after {
  left: clamp(96px, 8vw, 150px);
  bottom: clamp(18px, 2.4vh, 36px);
  z-index: 4;
  width: clamp(240px, 20vw, 360px);
  height: clamp(240px, 20vw, 360px);
}

.project-info .mega-title {
  grid-template-columns: var(--profile-photo-w) minmax(0, 1fr);
  padding-inline: clamp(46px, 5vw, 84px);
}

.project-info .mega-title p {
  grid-column: 2;
}

.profile-grid {
  grid-template-columns: var(--profile-photo-w) minmax(0, 1fr);
  padding-inline: clamp(46px, 5vw, 84px);
}

.profile-side-note {
  display: none;
}

.profile-name em {
  font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive;
  font-size: clamp(30px, 3.3vw, 56px);
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 640px) {
  .project-info::before {
    border-radius: 24px;
  }

  .project-info::after {
    left: -34px;
    top: 430px;
    bottom: auto;
    width: 210px;
    height: 210px;
  }

  .project-info .mega-title,
  .profile-grid {
    padding-inline: 0;
  }
}

/* Contact section: luminous closing panel with crystal flower. */
.contact {
  width: 100%;
  min-height: 100svh;
  padding: clamp(96px, 12vh, 148px) clamp(20px, 5vw, 72px) 0;
  overflow: hidden;
}

.contact::before {
  inset: auto -10vw -26vh -10vw;
  z-index: -1;
  height: min(58vh, 520px);
  border-radius: 50% 50% 0 0 / 42% 42% 0 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.28), transparent 18%),
    radial-gradient(circle at 72% 18%, rgba(190, 116, 255, 0.32), transparent 34%),
    linear-gradient(135deg, rgba(156, 73, 255, 0.72), rgba(84, 28, 200, 0.48) 48%, rgba(18, 7, 72, 0.18));
  box-shadow: 0 -34px 120px rgba(127, 53, 255, 0.32);
}

.contact::after {
  position: absolute;
  left: clamp(18px, 5vw, 92px);
  bottom: clamp(28px, 5vh, 80px);
  z-index: 1;
  width: clamp(220px, 22vw, 380px);
  height: clamp(220px, 22vw, 380px);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(255, 255, 255, 0.72), rgba(177, 100, 255, 0.48) 28%, transparent 58%),
    radial-gradient(ellipse at 90% 42%, rgba(232, 212, 255, 0.62), rgba(147, 70, 255, 0.42) 30%, transparent 60%),
    radial-gradient(ellipse at 68% 92%, rgba(232, 212, 255, 0.58), rgba(147, 70, 255, 0.38) 30%, transparent 62%),
    radial-gradient(ellipse at 30% 92%, rgba(232, 212, 255, 0.58), rgba(147, 70, 255, 0.38) 30%, transparent 62%),
    radial-gradient(ellipse at 8% 42%, rgba(232, 212, 255, 0.62), rgba(147, 70, 255, 0.42) 30%, transparent 60%),
    radial-gradient(circle at 50% 54%, rgba(255, 255, 255, 0.82), rgba(171, 96, 255, 0.52) 18%, rgba(83, 25, 154, 0.2) 36%, transparent 58%);
  filter: drop-shadow(0 0 24px rgba(176, 78, 255, 0.42)) drop-shadow(0 0 70px rgba(127, 53, 255, 0.28));
  opacity: 0.76;
  pointer-events: none;
  transform: rotate(-18deg);
}

.contact-content {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: calc(100svh - clamp(96px, 12vh, 148px));
  grid-template-rows: 1fr auto;
  align-items: center;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.contact-hero {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: clamp(12px, 5vh, 74px);
  text-align: center;
}

.contact-hero p {
  margin: 0;
  color: rgba(214, 196, 255, 0.72);
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 700;
  letter-spacing: 0;
}

.contact-hero h2 {
  margin: 0;
  background: linear-gradient(180deg, #fff 4%, #d8c7ff 45%, #7b36ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(74px, 9vw, 168px);
  font-weight: 900;
  line-height: 0.9;
  text-shadow: 0 0 36px rgba(143, 99, 255, 0.28);
}

.contact-primary {
  display: inline-grid;
  min-height: 54px;
  place-items: center;
  padding: 0 38px;
  border: 1px solid rgba(238, 230, 255, 0.78);
  border-radius: 999px;
  color: #fff;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.58), transparent 18%),
    rgba(103, 55, 216, 0.54);
  box-shadow:
    0 0 28px rgba(143, 99, 255, 0.52),
    inset 0 0 18px rgba(255, 255, 255, 0.12);
  font-size: 17px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.contact-primary:hover,
.contact-primary:focus-visible {
  box-shadow:
    0 0 38px rgba(176, 78, 255, 0.68),
    inset 0 0 20px rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: clamp(32px, 13vw, 220px);
  width: min(100%, 1120px);
  margin: 0 auto clamp(70px, 10vh, 132px);
}

.contact-links a {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 18px 22px;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  box-shadow: none;
  transform: translateY(-2px);
}

.contact-links a span {
  grid-row: 1 / span 2;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(238, 230, 255, 0.62);
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.62), transparent 20%),
    linear-gradient(135deg, rgba(151, 74, 255, 0.86), rgba(77, 24, 190, 0.78));
  box-shadow:
    0 0 34px rgba(143, 99, 255, 0.54),
    inset 0 0 18px rgba(255, 255, 255, 0.15);
  font-size: 12px;
  font-weight: 900;
}

.contact-links a strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(18px, 1.3vw, 24px);
  font-weight: 800;
}

.contact-links a em {
  min-width: 0;
  color: rgba(246, 241, 255, 0.82);
  font-size: clamp(16px, 1.1vw, 20px);
  font-style: normal;
  font-weight: 500;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .contact {
    padding: 92px 20px 0;
  }

  .contact::before {
    height: 42vh;
    bottom: -20vh;
  }

  .contact::after {
    left: -52px;
    bottom: 24px;
    width: 220px;
    height: 220px;
    opacity: 0.58;
  }

  .contact-content {
    min-height: calc(100svh - 92px);
  }

  .contact-hero h2 {
    font-size: clamp(58px, 18vw, 92px);
  }

  .contact-links {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 72px;
  }

  .contact-links a {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px 16px;
  }

  .contact-links a span {
    width: 56px;
    height: 56px;
  }
}

/* Contact correction: personal portfolio closing section with crystal flower artwork. */
.contact {
  padding: clamp(92px, 12vh, 150px) clamp(22px, 5vw, 86px) 0;
}

.contact::before {
  inset: clamp(86px, 12vh, 150px) clamp(18px, 5vw, 78px) clamp(34px, 6vh, 84px);
  height: auto;
  border: 1px solid rgba(202, 158, 255, 0.14);
  border-radius: 32px;
  background:
    radial-gradient(circle at 20% 78%, rgba(134, 57, 255, 0.18), transparent 34%),
    radial-gradient(circle at 72% 24%, rgba(127, 53, 255, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(12, 5, 50, 0.34), rgba(5, 2, 28, 0.56));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 0 70px rgba(127, 53, 255, 0.1);
}

.contact::after {
  top: clamp(620px, 68vh, 700px);
  right: clamp(240px, 24vw, 460px);
  left: auto;
  bottom: auto;
  width: clamp(140px, 11vw, 200px);
  height: clamp(140px, 11vw, 200px);
  border-radius: 0;
  background: url("./assets/profile/crystal-flower-01.webp?v=20260728-detail-fix") left bottom / contain no-repeat;
  filter:
    drop-shadow(0 0 30px rgba(224, 190, 255, 0.82))
    drop-shadow(0 0 92px rgba(127, 53, 255, 0.5));
  opacity: 0.98;
  content: "";
  transform: none;
}

.contact-content {
  grid-template-rows: none;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.1fr);
  column-gap: clamp(36px, 6vw, 100px);
  row-gap: clamp(6px, 1vh, 12px);
  min-height: calc(100svh - clamp(92px, 12vh, 150px));
  align-items: center;
  padding: clamp(40px, 6vh, 78px) clamp(32px, 5vw, 86px);
}

.contact-hero {
  grid-column: 1 / -1;
  justify-items: center;
  margin: 0;
  text-align: center;
}

.contact-hero p {
  color: rgba(214, 196, 255, 0.74);
  font-size: clamp(14px, 1.1vw, 18px);
  font-weight: 600;
  text-transform: uppercase;
}

.contact-hero h2 {
  background: linear-gradient(180deg, #fff 6%, #e4d7ff 48%, #9a67ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(82px, 8vw, 142px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
}

.contact-primary {
  min-height: 50px;
  padding: 0 34px;
}

.contact-links {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  gap: 22px;
  width: min(100%, 620px);
  justify-self: center;
  margin: 0;
}

.contact-links a {
  padding: 18px 22px;
  border: 1px solid rgba(202, 158, 255, 0.18);
  border-radius: 18px;
  background: rgba(13, 5, 52, 0.38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.contact-links a:hover,
.contact-links a:focus-visible {
  border-color: rgba(232, 212, 255, 0.42);
  background: rgba(33, 12, 92, 0.42);
}

@media (max-width: 640px) {
  .contact {
    padding: 92px 12px 0;
  }

  .contact::before {
    inset: 72px 12px 28px;
    border-radius: 24px;
  }

  .contact::after {
    top: auto;
    right: auto;
    left: -54px;
    bottom: 24px;
    width: 300px;
    height: 320px;
    opacity: 0.76;
  }

  .contact-content {
    grid-template-columns: 1fr;
    min-height: calc(100svh - 92px);
    padding: 34px 18px 270px;
  }

  .contact-hero,
  .contact-links {
    grid-column: 1;
  }

  .contact-hero h2 {
    font-size: clamp(58px, 18vw, 86px);
  }

  .contact-links {
    margin-top: 30px;
  }

  .contact-links a {
    padding: 16px;
  }
}

/* Profile fixes from the latest marked screenshot. */
.project-info {
  position: relative;
}

.profile-name {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: clamp(14px, 1.8vw, 24px);
  white-space: nowrap;
}

.profile-name strong {
  display: inline-block;
  flex: 0 0 auto;
  white-space: nowrap;
  word-break: keep-all;
  font-size: clamp(52px, 4.2vw, 76px);
  letter-spacing: 0;
}

.profile-name em {
  flex: 0 0 auto;
  white-space: nowrap;
}

.profile-crystal-flower {
  position: absolute;
  left: clamp(76px, 8vw, 148px);
  bottom: clamp(18px, 2.6vh, 40px);
  z-index: 8;
  width: clamp(150px, 13vw, 230px);
  height: clamp(172px, 15vw, 270px);
  pointer-events: none;
  filter:
    drop-shadow(0 0 18px rgba(224, 190, 255, 0.82))
    drop-shadow(0 0 46px rgba(147, 72, 255, 0.5));
}

.profile-crystal-flower i,
.profile-crystal-flower b,
.profile-crystal-flower em {
  position: absolute;
  display: block;
}

.profile-crystal-flower i {
  left: 50%;
  top: 25%;
  width: 42%;
  height: 16%;
  transform-origin: 0 50%;
  border: 1px solid rgba(250, 238, 255, 0.78);
  border-radius: 78% 22% 76% 24%;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.74), transparent 20% 34%, rgba(186, 98, 255, 0.54) 35% 56%, rgba(255, 255, 255, 0.42) 57% 64%, rgba(96, 38, 206, 0.48)),
    radial-gradient(ellipse at 24% 50%, rgba(255, 255, 255, 0.86), transparent 36%),
    rgba(153, 70, 255, 0.3);
  clip-path: polygon(0 50%, 20% 4%, 76% 0, 100% 50%, 76% 100%, 20% 96%);
  opacity: 0.86;
  mix-blend-mode: screen;
}

.profile-crystal-flower i:nth-child(1) { transform: rotate(-98deg) scale(0.9); }
.profile-crystal-flower i:nth-child(2) { transform: rotate(-54deg) scale(1.05); }
.profile-crystal-flower i:nth-child(3) { transform: rotate(-12deg) scale(1.18); }
.profile-crystal-flower i:nth-child(4) { transform: rotate(28deg) scale(1.02); }
.profile-crystal-flower i:nth-child(5) { transform: rotate(70deg) scale(0.92); }
.profile-crystal-flower i:nth-child(6) { transform: rotate(120deg) scale(1.04); }
.profile-crystal-flower i:nth-child(7) { transform: rotate(172deg) scale(1.1); }
.profile-crystal-flower i:nth-child(8) { transform: rotate(220deg) scale(0.96); }

.profile-crystal-flower b {
  left: 47%;
  top: 36%;
  width: 17%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 18%, rgba(236, 202, 255, 0.84) 20% 36%, rgba(139, 58, 255, 0.62) 38% 62%, transparent 64%),
    rgba(185, 108, 255, 0.6);
  box-shadow: 0 0 18px rgba(245, 220, 255, 0.82);
}

.profile-crystal-flower b::before,
.profile-crystal-flower b::after {
  position: absolute;
  left: 50%;
  bottom: 52%;
  width: 2px;
  height: 48%;
  border-radius: 999px;
  background: rgba(255, 232, 255, 0.76);
  box-shadow:
    10px 10px 0 rgba(225, 180, 255, 0.48),
    -9px 12px 0 rgba(225, 180, 255, 0.42);
  content: "";
  transform-origin: bottom center;
}

.profile-crystal-flower b::before { transform: translateX(-50%) rotate(-18deg); }
.profile-crystal-flower b::after { transform: translateX(-50%) rotate(18deg); }

.profile-crystal-flower em {
  left: 50%;
  top: 46%;
  width: 34%;
  height: 54%;
  transform: rotate(-10deg);
  transform-origin: top center;
  background:
    radial-gradient(ellipse at 4% 62%, rgba(238, 222, 255, 0.64) 0 14%, rgba(133, 56, 255, 0.36) 15% 32%, transparent 34%),
    radial-gradient(ellipse at 82% 72%, rgba(238, 222, 255, 0.6) 0 13%, rgba(133, 56, 255, 0.34) 14% 30%, transparent 32%),
    linear-gradient(88deg, transparent 0 46%, rgba(235, 216, 255, 0.74) 47% 50%, rgba(113, 52, 214, 0.5) 51% 54%, transparent 55%);
}

@media (max-width: 640px) {
  .profile-name {
    gap: 12px;
  }

  .profile-name strong {
    font-size: clamp(42px, 12vw, 58px);
  }

  .profile-name em {
    font-size: clamp(24px, 8vw, 36px);
  }

  .profile-crystal-flower {
    left: clamp(10px, 6vw, 34px);
    bottom: clamp(20px, 5vh, 44px);
    width: 156px;
    height: 184px;
  }
}

.project-info::after {
  display: none;
}

.profile-crystal-flower {
  background: url("./assets/profile/crystal-flower-03.webp?v=20260728-detail-fix") left bottom / contain no-repeat;
  left: clamp(58px, 6.2vw, 118px);
  bottom: clamp(4px, 1.4vh, 22px);
  width: clamp(230px, 18vw, 330px);
  height: clamp(250px, 19vw, 360px);
  mix-blend-mode: screen;
}

.profile-crystal-flower i,
.profile-crystal-flower b,
.profile-crystal-flower em {
  display: none !important;
}

@media (max-width: 640px) {
  .profile-crystal-flower {
    left: 0;
    bottom: 8px;
    width: min(42vw, 170px);
    height: min(38vw, 160px);
  }
}

/* Profile responsive layout and integrated flower artwork. */
.profile-crystal-flower {
  z-index: 8;
  left: clamp(58px, 6.2vw, 118px);
  bottom: clamp(4px, 1.4vh, 22px);
  width: clamp(230px, 18vw, 330px);
  height: clamp(250px, 19vw, 360px);
  background-image: url("./assets/profile/crystal-flower-extracted.webp?v=20260728-detail-fix");
  background-position: center;
  background-size: contain;
  filter:
    brightness(1.28)
    drop-shadow(0 0 18px rgba(224, 190, 255, 0.7))
    drop-shadow(0 0 44px rgba(147, 72, 255, 0.42));
  mix-blend-mode: normal;
  opacity: 1;
}

.profile-crystal-flower::before {
  content: none;
}

@media (max-width: 640px) {
  .project-info .mega-title {
    margin-bottom: 18px;
  }

  .project-info .mega-title p {
    max-width: 100%;
    font-size: clamp(48px, 14vw, 70px);
    line-height: 0.88;
  }

  .profile-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-inline: 0;
  }

  .profile-orb {
    min-width: 0;
    min-height: min(128vw, 560px);
  }

  .info-panel {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 0;
  }

  .profile-meta {
    min-width: 0;
    gap: 18px;
    margin-top: 0;
  }

  .profile-meta-card {
    min-width: 0;
  }

  .profile-meta-card p,
  .experience-title strong {
    overflow-wrap: anywhere;
  }

  .experience-block {
    margin-top: 8px;
  }

  .experience-card {
    min-width: 0;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
  }

  .experience-title strong {
    font-size: clamp(16px, 4.5vw, 20px);
  }

  .profile-crystal-flower {
    left: clamp(8px, 4vw, 22px);
    bottom: 10px;
    width: min(54vw, 220px);
    height: min(58vw, 240px);
    opacity: 0.92;
  }
}

/* Final extracted crystal flower artwork. */
.profile-crystal-flower {
  z-index: 8;
  left: clamp(58px, 6.2vw, 118px);
  bottom: clamp(4px, 1.4vh, 22px);
  width: clamp(230px, 18vw, 330px);
  height: clamp(250px, 19vw, 360px);
  background: url("./assets/profile/crystal-flower-extracted.webp?v=20260728-detail-fix") center / contain no-repeat;
  filter:
    brightness(1.28)
    drop-shadow(0 0 18px rgba(224, 190, 255, 0.7))
    drop-shadow(0 0 44px rgba(147, 72, 255, 0.42));
  mix-blend-mode: normal;
  opacity: 1;
}

.profile-crystal-flower::before {
  content: none;
}

@media (max-width: 640px) {
  .profile-crystal-flower {
    left: clamp(8px, 4vw, 22px);
    bottom: 8px;
    width: min(54vw, 220px);
    height: min(58vw, 240px);
    opacity: 0.92;
  }
}

/* Portrait-anchored crystal flower replica. */
.profile-orb {
  overflow: visible;
  border-color: rgba(229, 204, 255, 0.42);
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09),
    0 0 18px rgba(176, 99, 255, 0.32),
    0 0 54px rgba(67, 20, 126, 0.38);
}

.profile-orb img {
  z-index: 1;
  object-position: center 10%;
  transform: scale(1.1);
  transform-origin: center 18%;
  clip-path: inset(0 round 28px);
}

.profile-orb::before {
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 246, 255, 0.1), transparent 7% 88%, rgba(65, 18, 122, 0.22)),
    linear-gradient(90deg, rgba(122, 49, 207, 0.16), transparent 18% 82%, rgba(122, 49, 207, 0.12));
  box-shadow:
    inset 0 0 0 1px rgba(248, 231, 255, 0.3),
    inset 0 1px 12px rgba(233, 202, 255, 0.24),
    inset 0 -1px 14px rgba(183, 86, 255, 0.2);
  pointer-events: none;
}

.profile-orb::after {
  content: none;
}

.profile-orb .profile-crystal-flower {
  left: clamp(-190px, -16vw, -122px);
  bottom: clamp(-174px, -12vw, -126px);
  z-index: 4;
  width: clamp(470px, 118%, 680px);
  height: clamp(270px, 68%, 430px);
  background: url("./assets/profile/crystal-flower-01.webp?v=20260728-detail-fix") left bottom / contain no-repeat;
  filter:
    saturate(1.04)
    brightness(1.04)
    drop-shadow(0 0 8px rgba(238, 218, 255, 0.48))
    drop-shadow(0 0 24px rgba(129, 58, 226, 0.34));
  mix-blend-mode: screen;
  opacity: 0.95;
}

.profile-orb .profile-crystal-flower::before,
.profile-orb .profile-crystal-flower::after {
  content: none;
}

@media (max-width: 640px) {
  .profile-orb {
    border-radius: 24px;
  }

  .profile-orb .profile-crystal-flower {
    left: -112px;
    bottom: -86px;
    width: min(118vw, 460px);
    height: min(70vw, 280px);
    opacity: 0.92;
  }
}

/* Retouch detail dialog: copy 1/3, image comparison 2/3. */
@media (min-width: 901px) {
  .retouch-story-mode .ai-lightbox {
    padding: 5vh 4vw;
    overflow: hidden;
  }

  .retouch-story-mode .ai-lightbox-panel {
    --retouch-detail-radius: 30px;
    grid-template-columns: clamp(340px, 20vw, 410px) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: clamp(12px, 0.8vw, 16px) !important;
    width: 88vw !important;
    height: 90vh !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .retouch-story-mode .ai-lightbox-head {
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 0;
    height: 90vh;
    overflow: hidden;
    gap: 12px;
    padding: clamp(40px, 4vw, 64px) clamp(26px, 3vw, 48px) clamp(28px, 3vw, 44px) !important;
    border: 1px solid rgba(190, 158, 255, 0.32);
    border-radius: var(--retouch-detail-radius, 30px);
    background:
      radial-gradient(circle at 78% 12%, rgba(176, 135, 255, 0.18), transparent 10%),
      radial-gradient(circle at 28% 72%, rgba(255, 255, 255, 0.07), transparent 18%),
      linear-gradient(158deg, rgba(143, 99, 255, 0.2), rgba(255, 255, 255, 0.045) 44%, rgba(61, 36, 138, 0.16)),
      rgba(8, 4, 36, 0.7);
    box-shadow:
      0 26px 86px rgba(0, 0, 0, 0.28),
      inset 0 0 44px rgba(143, 99, 255, 0.08);
  }

  .retouch-story-mode .ai-lightbox-head::before {
    position: absolute;
    top: clamp(34px, 4vw, 58px);
    left: clamp(26px, 3vw, 48px);
    width: clamp(54px, 5vw, 88px);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #fff, rgba(176, 135, 255, 0.8), transparent);
    box-shadow: 0 0 18px rgba(190, 158, 255, 0.42);
    content: "";
  }

  .retouch-story-mode .ai-lightbox-head::after {
    position: absolute;
    right: clamp(18px, 3vw, 46px);
    bottom: clamp(18px, 3vw, 38px);
    width: clamp(116px, 13vw, 190px);
    height: clamp(116px, 13vw, 190px);
    border: 0;
    background: url("./assets/profile/crystal-flower-04.webp?v=20260728-detail-fix") center / contain no-repeat;
    filter: drop-shadow(0 0 28px rgba(151, 95, 255, 0.5));
    opacity: 0.72;
    content: "";
  }

  .retouch-story-mode .ai-lightbox-head span,
  .retouch-story-mode .ai-lightbox-head strong,
  .retouch-story-mode .ai-lightbox-head p {
    position: relative;
    z-index: 1;
  }

  .retouch-story-mode .ai-lightbox-head strong {
    max-width: 8em;
    font-size: clamp(34px, 3.4vw, 56px) !important;
    line-height: 1.08;
  }

  .retouch-story-mode .ai-lightbox-head > p {
    max-width: 22em;
  }

  .retouch-story-mode .retouch-lightbox-meta {
    position: relative;
    z-index: 1;
    max-width: 27em;
    margin-top: auto;
    padding-bottom: clamp(130px, 14vw, 194px);
  }

  .retouch-story-mode .retouch-story-gallery,
  .retouch-story-mode .retouch-story-gallery.retouch-story-stacked {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: clamp(10px, 1vw, 16px) !important;
    width: 100% !important;
    height: 90vh !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  .retouch-story-mode .retouch-story-gallery figure {
    display: grid !important;
    width: 100% !important;
    height: 90vh !important;
    min-height: 0 !important;
    place-items: center !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: var(--retouch-detail-radius, 30px) !important;
    background: transparent !important;
    clip-path: inset(0 round var(--retouch-detail-radius, 30px)) !important;
    scroll-snap-align: none !important;
  }

  .retouch-story-mode .retouch-story-gallery img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 90vh !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
  }

  .retouch-story-mode .retouch-story-gallery span {
    top: 14px;
    left: 14px;
  }
}
/* Long retouch pairs, such as shoes, fit as two stacked images in one screen. */
@media (min-width: 901px) {
  .retouch-story-mode .retouch-story-gallery.retouch-story-stacked {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
    align-content: center !important;
    gap: clamp(10px, 1.1vh, 14px) !important;
    height: 90vh !important;
    overflow: hidden !important;
  }

  .retouch-story-mode .retouch-story-gallery.retouch-story-stacked figure {
    height: calc((90vh - clamp(10px, 1.1vh, 14px)) / 2) !important;
    max-height: 43.8vh !important;
  }

  .retouch-story-mode .retouch-story-gallery.retouch-story-stacked img {
    max-height: 43.8vh !important;
  }
}

@media (max-width: 900px) {
  .retouch-story-mode .retouch-lightbox-meta {
    gap: 8px;
  }

  .retouch-story-mode .retouch-lightbox-notes,
  .retouch-story-mode .retouch-lightbox-footnote {
    display: none;
  }

  .retouch-story-mode .retouch-lightbox-tags span {
    min-height: 24px;
    padding: 0 10px;
    font-size: 11px;
  }
}

/* Retouch images stay image-only: no backing plate, frame, or extra fill. */
.retouch-pair,
.retouch-pair figure,
.retouch-story-gallery figure,
.retouch-pair figure.retouch-before,
.retouch-pair figure.retouch-after,
.retouch-story-gallery figure.retouch-before,
.retouch-story-gallery figure.retouch-after,
.retouch-pair .retouch-after-white,
.retouch-story-gallery .retouch-after-white {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.retouch-pair figure,
.retouch-pair img {
  border-radius: var(--radius) !important;
}

.retouch-story-gallery figure,
.retouch-story-gallery img,
.retouch-story-mode .retouch-story-gallery img {
  border-radius: 30px !important;
}

.retouch-pair img,
.retouch-story-gallery img,
.retouch-story-mode .retouch-story-gallery img,
.retouch-pair .retouch-before img,
.retouch-story-gallery .retouch-before img,
.retouch-pair .retouch-after-white img,
.retouch-story-gallery .retouch-after-white img {
  background: transparent !important;
  clip-path: none !important;
}

.retouch-pair img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.retouch-pair span,
.retouch-story-gallery span,
.retouch-story-mode .retouch-story-gallery span {
  top: 20px !important;
  left: 20px !important;
}

.retouch-story-mode .retouch-story-gallery figure {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 90vh !important;
  max-height: none !important;
  align-self: center !important;
  justify-self: center !important;
  overflow: hidden !important;
  place-items: start !important;
}

.retouch-story-mode .retouch-story-gallery img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 90vh !important;
  object-fit: contain !important;
  object-position: center !important;
}

.retouch-story-mode .retouch-story-gallery.retouch-story-stacked img {
  max-height: calc((90vh - clamp(10px, 1.1vh, 14px)) / 2) !important;
}

/* Keep AI detail arrows in place, with the paper plane clearly facing left/right. */
.ai-lightbox:not(.retouch-story-mode) .ai-lightbox-nav::before {
  width: 20px !important;
  height: 20px !important;
  background: #fff !important;
  clip-path: polygon(0 8%, 100% 50%, 0 92%, 25% 55%, 25% 45%) !important;
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.78))
    drop-shadow(0 0 12px rgba(206, 178, 255, 0.82));
}

.ai-lightbox:not(.retouch-story-mode) .ai-lightbox-prev::before {
  transform: rotate(180deg) !important;
}

.ai-lightbox:not(.retouch-story-mode) .ai-lightbox-next::before {
  transform: rotate(0deg) !important;
}

/* AI model detail: left info card and Amazon-style image grid. */
@media (min-width: 901px) {
  .model-story-mode .ai-lightbox-panel {
    display: grid !important;
    grid-template-columns: minmax(340px, clamp(360px, 22vw, 420px)) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "head gallery"
      "head dots" !important;
    gap: 30px !important;
    width: 85vw !important;
    height: 85vh !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .model-story-mode[data-story-count="2"] .ai-lightbox-panel {
    width: 80vw !important;
  }

  .model-story-mode .ai-lightbox-head {
    grid-area: head;
    display: flex !important;
    position: relative;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    min-height: 0;
    padding: clamp(34px, 3.4vw, 58px);
    overflow: hidden;
    border: 1px solid rgba(190, 158, 255, 0.24);
    border-radius: var(--radius);
    background:
      radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.08), transparent 2px),
      radial-gradient(circle at 74% 28%, rgba(255, 255, 255, 0.07), transparent 2px),
      linear-gradient(180deg, rgba(26, 14, 76, 0.7), rgba(14, 7, 51, 0.78));
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.04),
      0 18px 60px rgba(0, 0, 0, 0.22);
  }

  .model-story-mode .ai-lightbox-head::before {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
      radial-gradient(circle at 12% 46%, rgba(255, 255, 255, 0.1) 0 2px, transparent 3px),
      radial-gradient(circle at 68% 42%, rgba(255, 255, 255, 0.08) 0 2px, transparent 3px),
      radial-gradient(circle at 36% 70%, rgba(255, 255, 255, 0.08) 0 2px, transparent 3px);
    content: "";
    pointer-events: none;
  }

  .model-story-mode .ai-lightbox-head > * {
    position: relative;
    z-index: 1;
  }

  .model-story-mode .ai-lightbox-head > span {
    color: rgba(238, 230, 255, 0.72);
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  .model-story-mode .ai-lightbox-head > strong {
    max-width: 8ch;
    margin-top: 4px;
    font-size: clamp(36px, 4.1vw, 62px);
    line-height: 0.95;
    letter-spacing: 0;
  }

  .model-story-mode .ai-lightbox-head > p {
    max-width: 23em;
    margin: 0;
    color: rgba(238, 230, 255, 0.78);
    font-size: clamp(13px, 1vw, 15px);
    line-height: 1.72;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .model-story-mode .model-lightbox-tags span {
    color: rgba(238, 230, 255, 0.78);
    font-size: 12px;
    letter-spacing: 0;
  }

  .model-story-mode .model-meta-block span,
  .model-story-mode .model-lightbox-footnote {
    color: rgba(238, 230, 255, 0.52);
    font-size: 11px;
    letter-spacing: 0;
  }

  .model-story-mode .model-meta-block p {
    max-width: none;
    color: rgba(238, 230, 255, 0.84);
    font-size: 13px;
    line-height: 1.48;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  .model-story-mode .ai-lightbox-gallery {
    grid-area: gallery;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    min-height: 0;
    overflow: auto !important;
    padding: 0 !important;
    background: transparent !important;
    scrollbar-width: none;
  }

  .model-story-mode .ai-lightbox-gallery::-webkit-scrollbar,
  .model-story-mode .ai-lightbox-dots {
    display: none !important;
  }

  .model-story-mode .model-story-section,
  .model-story-mode .model-story-grid {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
  }

  .model-story-mode .model-story-section {
    height: 100% !important;
  }

  .model-story-mode .model-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 30px !important;
    row-gap: 30px !important;
    grid-auto-rows: calc(85vh - 80px) !important;
    align-content: start !important;
  }

  .model-story-mode .model-story-item,
  .model-story-mode .model-story-item-wide {
    display: block !important;
    overflow: hidden !important;
    border: 0 !important;
    height: calc(85vh - 80px) !important;
    border-radius: 30px !important;
    aspect-ratio: auto !important;
    clip-path: inset(0 round 30px) !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .model-story-mode .model-story-item img,
  .model-story-mode .model-story-item-wide img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 30px !important;
    object-fit: cover !important;
    object-position: center !important;
    background: transparent !important;
    transform: none !important;
  }

  .model-story-mode .model-story-camp-chair {
    height: auto !important;
  }

  .model-story-mode .model-story-camp-chair .model-story-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: calc(100% - 60px) !important;
    margin-inline: auto !important;
    row-gap: 30px !important;
  }

  .model-story-mode .model-story-camp-chair .model-story-item,
  .model-story-mode .model-story-camp-chair .model-story-item-wide {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: var(--poster-ratio) !important;
    border-radius: 30px !important;
    clip-path: inset(0 round 30px) !important;
  }

  .model-story-mode .model-story-camp-chair .model-story-item img,
  .model-story-mode .model-story-camp-chair .model-story-item-wide img {
    border-radius: 30px !important;
    object-fit: contain !important;
  }

  .model-story-mode .ai-lightbox-prev::before,
  .model-story-mode .ai-lightbox-next::before {
    width: 19px;
    height: 19px;
    background: #fff;
    clip-path: polygon(6% 47%, 93% 8%, 63% 92%, 45% 60%);
    filter:
      drop-shadow(0 0 6px rgba(255, 255, 255, 0.78))
      drop-shadow(0 0 12px rgba(206, 178, 255, 0.82));
  }

  .model-story-mode .ai-lightbox-prev::before {
    transform: rotate(-135deg);
  }

  .model-story-mode .ai-lightbox-next::before {
    transform: rotate(45deg);
  }
}

@media (max-width: 900px) {
  .model-story-mode .ai-lightbox-panel {
    width: 100% !important;
    height: 100vh !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .model-story-mode .ai-lightbox-head {
    display: none !important;
  }

  .model-story-mode .ai-lightbox-gallery {
    width: 100% !important;
    height: 100vh !important;
    padding: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: transparent !important;
    scrollbar-width: none;
  }

  .model-story-mode .model-story-section {
    width: 100% !important;
    min-width: 0 !important;
  }

  .model-story-mode .model-story-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 30px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  .model-story-mode .model-story-item,
  .model-story-mode .model-story-item-wide {
    width: 100% !important;
    height: auto !important;
    border-radius: 30px !important;
    aspect-ratio: var(--poster-ratio) !important;
    clip-path: inset(0 round 30px) !important;
    background: transparent !important;
  }

  .model-story-mode .model-story-item img,
  .model-story-mode .model-story-item-wide img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 30px !important;
    object-fit: contain !important;
    background: transparent !important;
    clip-path: none !important;
  }
}

.model-story-mode .ai-lightbox-prev::before,
.model-story-mode .ai-lightbox-next::before {
  width: 19px !important;
  height: 19px !important;
  background: #fff !important;
  clip-path: polygon(6% 47%, 93% 8%, 63% 92%, 45% 60%) !important;
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.78))
    drop-shadow(0 0 12px rgba(206, 178, 255, 0.82));
}

.model-story-mode .ai-lightbox-prev::before {
  transform: rotate(-135deg) !important;
}

.model-story-mode .ai-lightbox-next::before {
  transform: rotate(45deg) !important;
}

/* Final retouch polish: clean clipping, visible labels, tighter detail spacing. */
.retouch-pair figure {
  overflow: hidden !important;
  border-radius: var(--radius) !important;
  clip-path: inset(0 round var(--radius)) !important;
  isolation: isolate;
}

.retouch-story-gallery figure,
.retouch-story-mode .retouch-story-gallery figure {
  overflow: hidden !important;
  border-radius: var(--retouch-detail-radius, 30px) !important;
  clip-path: inset(0 round var(--retouch-detail-radius, 30px)) !important;
  isolation: isolate;
}

.retouch-pair figure.retouch-before,
.retouch-story-gallery figure.retouch-before,
.retouch-story-mode .retouch-story-gallery figure.retouch-before {
  background: var(--retouch-before-bg, #f3f6ff) !important;
}

.retouch-pair figure.retouch-after,
.retouch-story-gallery figure.retouch-after,
.retouch-story-mode .retouch-story-gallery figure.retouch-after {
  background: #fff !important;
}

.retouch-pair img,
.retouch-story-gallery img,
.retouch-story-mode .retouch-story-gallery img,
.retouch-pair .retouch-before img,
.retouch-story-gallery .retouch-before img,
.retouch-pair .retouch-after-white img,
.retouch-story-gallery .retouch-after-white img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  background: transparent !important;
  object-fit: contain !important;
  object-position: center !important;
  clip-path: none !important;
}

/* BEFORE photos fill their plate so the source background and outer plate read as one surface. */
.retouch-pair .retouch-before img,
.retouch-story-gallery .retouch-before img,
.retouch-story-mode .retouch-story-gallery .retouch-before img {
  object-fit: cover !important;
}

/* The two comparison panels form one group: keep only the outside corners rounded. */
.retouch-story-mode .retouch-story-gallery.retouch-story-split .retouch-before {
  border-radius: var(--retouch-detail-radius, 30px) 0 0 var(--retouch-detail-radius, 30px) !important;
  clip-path: inset(0 round var(--retouch-detail-radius, 30px) 0 0 var(--retouch-detail-radius, 30px)) !important;
}

.retouch-story-mode .retouch-story-gallery.retouch-story-split .retouch-after {
  border-radius: 0 var(--retouch-detail-radius, 30px) var(--retouch-detail-radius, 30px) 0 !important;
  clip-path: inset(0 round 0 var(--retouch-detail-radius, 30px) var(--retouch-detail-radius, 30px) 0) !important;
}

.retouch-pair span,
.retouch-story-gallery span,
.retouch-story-mode .retouch-story-gallery span {
  top: 30px !important;
  left: 30px !important;
}

@media (min-width: 901px) {
  .retouch-story-mode .ai-lightbox-panel {
    grid-template-columns: clamp(340px, 20vw, 410px) minmax(0, 1fr) !important;
    gap: clamp(12px, 0.8vw, 16px) !important;
    width: min(88vw, 1760px) !important;
  }

  .retouch-story-mode .retouch-story-gallery,
  .retouch-story-mode .retouch-story-gallery.retouch-story-stacked {
    gap: clamp(10px, 1vw, 16px) !important;
  }
}

/* Final visual-detail sizing: use the full 85vw and derive height from the square artwork. */
@media (min-width: 901px) {
  .visual-story-mode .ai-lightbox-panel {
    grid-template-columns: clamp(380px, 21vw, 430px) minmax(0, 1fr) !important;
    gap: 30px !important;
    width: 85vw !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 86vh !important;
    align-self: center !important;
    align-items: stretch !important;
    transform: none !important;
  }

  .visual-story-mode .ai-lightbox-head,
  .visual-story-mode .ai-lightbox-gallery,
  .visual-story-mode .visual-story-wrap,
  .visual-story-mode .visual-story-project,
  .visual-story-mode .visual-project-figure {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .visual-story-mode .ai-lightbox-head {
    align-self: stretch !important;
  }

  .visual-story-mode .ai-lightbox-gallery,
  .visual-story-mode .visual-story-wrap {
    align-self: stretch !important;
    overflow: hidden !important;
  }

  .visual-story-mode .visual-story-project {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
    aspect-ratio: auto !important;
  }

  .visual-story-mode .visual-project-figure {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    border-radius: 36px !important;
  }

  .visual-story-mode .visual-project-figure img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 36px !important;
  }

  .visual-story-mode .visual-lightbox-notes,
  .visual-story-mode .visual-lightbox-footnote {
    display: none !important;
  }

  .visual-story-mode .visual-lightbox-meta {
    flex: none !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
  }
}

/* Visual detail dialog: 85vw canvas with a description card matched to two square images. */
@media (min-width: 901px) {
  .visual-story-mode .ai-lightbox-panel {
    --visual-detail-height: min(
      72vh,
      calc((85vw - clamp(380px, 21vw, 430px) - 54px) / 2)
    );
    grid-template-columns: clamp(380px, 21vw, 430px) minmax(0, 1fr) !important;
    gap: 30px !important;
    width: 85vw !important;
    height: var(--visual-detail-height) !important;
    align-items: stretch !important;
  }

  .visual-story-mode .ai-lightbox-head,
  .visual-story-mode .ai-lightbox-gallery,
  .visual-story-mode .visual-story-wrap,
  .visual-story-mode .visual-story-project,
  .visual-story-mode .visual-project-figure {
    height: var(--visual-detail-height) !important;
    min-height: var(--visual-detail-height) !important;
    max-height: var(--visual-detail-height) !important;
  }

  .visual-story-mode .visual-story-project {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }

  .visual-story-mode .visual-project-figure,
  .visual-story-mode .visual-project-figure img {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 36px !important;
    background: transparent !important;
    box-shadow: none !important;
    clip-path: inset(0 round 36px) !important;
  }

  .visual-story-mode .visual-project-figure img {
    object-fit: cover !important;
  }

  .visual-story-mode .visual-lightbox-notes,
  .visual-story-mode .visual-lightbox-footnote {
    display: none !important;
  }

  .visual-story-mode .visual-lightbox-meta {
    flex: none;
    min-height: 0;
    margin-top: 8px;
    padding-bottom: 0;
  }
}

/* Visual selling-point detail: match the Amazon detail info-card style. */
.visual-lightbox-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  margin-top: 8px;
}

.visual-lightbox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.visual-lightbox-tags span {
  display: inline-grid;
  min-height: 26px;
  place-items: center;
  padding: 0 14px;
  border: 1px solid rgba(238, 230, 255, 0.22);
  border-radius: 999px;
  background: rgba(238, 230, 255, 0.08);
  color: rgba(238, 230, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.visual-lightbox-notes {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.visual-meta-block {
  display: grid;
  gap: 5px;
  padding: 12px 14px 12px 16px;
  border-left: 2px solid rgba(238, 230, 255, 0.44);
  background: linear-gradient(90deg, rgba(238, 230, 255, 0.07), transparent 92%);
}

.visual-meta-block span,
.visual-lightbox-footnote {
  color: rgba(238, 230, 255, 0.52);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.visual-meta-block p {
  margin: 0;
  color: rgba(238, 230, 255, 0.84);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.48;
}

.visual-lightbox-footnote {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(238, 230, 255, 0.14);
}

@media (min-width: 901px) {
  .visual-story-mode .ai-lightbox-panel {
    grid-template-columns: clamp(320px, 22vw, 430px) minmax(0, 1fr) !important;
    gap: clamp(16px, 1.4vw, 24px) !important;
    width: min(84vw, 1712px) !important;
    height: 90vh !important;
  }

  .visual-story-mode .ai-lightbox-head {
    position: relative;
    isolation: isolate;
    display: flex !important;
    align-self: stretch;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
    min-height: 0;
    padding: clamp(34px, 3.2vw, 56px);
    overflow: hidden;
    border: 1px solid rgba(190, 158, 255, 0.28);
    border-radius: var(--radius);
    background:
      linear-gradient(180deg, rgba(30, 18, 88, 0.74), rgba(16, 8, 58, 0.86)),
      rgba(8, 4, 36, 0.72);
    box-shadow: 0 26px 86px rgba(0, 0, 0, 0.28), 0 0 24px rgba(143, 99, 255, 0.1);
  }

  .visual-story-mode .ai-lightbox-head::before,
  .visual-story-mode .ai-lightbox-head::after {
    position: absolute;
    pointer-events: none;
    content: "";
  }

  .visual-story-mode .ai-lightbox-head::before {
    inset: 0;
    z-index: 0;
    background:
      radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.64) 0 1px, transparent 2px),
      radial-gradient(circle at 86% 12%, rgba(220, 204, 255, 0.56) 0 1px, transparent 2px),
      radial-gradient(circle at 74% 58%, rgba(255, 255, 255, 0.46) 0 1px, transparent 2px),
      radial-gradient(circle at 58% 86%, rgba(204, 176, 255, 0.48) 0 1px, transparent 2px);
    opacity: 0.6;
  }

  .visual-story-mode .ai-lightbox-head::after {
    right: clamp(22px, 2.6vw, 44px);
    bottom: clamp(16px, 2.6vh, 34px);
    z-index: 0;
    width: clamp(104px, 8vw, 150px);
    height: clamp(112px, 13vh, 172px);
    background: url("./assets/profile/crystal-flower-04.webp?v=20260728-detail-fix") left bottom / contain no-repeat;
    filter: drop-shadow(0 0 10px rgba(202, 128, 255, 0.42)) drop-shadow(0 0 24px rgba(120, 52, 255, 0.22));
    opacity: 0.86;
  }

  .visual-story-mode .ai-lightbox-head > * {
    position: relative;
    z-index: 1;
  }

  .visual-story-mode .ai-lightbox-head > span {
    color: rgba(238, 230, 255, 0.62);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .visual-story-mode .ai-lightbox-head > strong {
    max-width: 9em;
    margin-top: 4px;
    color: #fff;
    font-size: clamp(36px, 3.4vw, 58px);
    line-height: 0.98;
    letter-spacing: 0;
  }

  .visual-story-mode .ai-lightbox-head > p {
    max-width: 24em;
    margin: 0;
    color: rgba(238, 230, 255, 0.78);
    font-size: clamp(13px, 0.9vw, 15px);
    font-weight: 800;
    line-height: 1.72;
  }

  .visual-story-mode .visual-story-project {
    gap: clamp(14px, 1.2vw, 22px) !important;
  }
}

@media (max-width: 900px) {
  .visual-lightbox-meta {
    display: none;
  }
}

/* Visual detail cards: transparent letterbox area, matched corners, and clear metadata. */
@media (min-width: 901px) {
  .visual-story-mode .visual-project-figure {
    overflow: hidden !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 24px !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .visual-story-mode .visual-project-figure img {
    display: block !important;
    border: 0 !important;
    border-radius: 24px !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .visual-story-mode .visual-lightbox-meta {
    box-sizing: border-box;
    padding-bottom: clamp(108px, 12vh, 144px);
  }
}

/* Retouch comparison: use one crop rule so BEFORE / AFTER products stay the same visual size. */
.retouch-pair img,
.retouch-story-gallery img,
.retouch-story-mode .retouch-story-gallery img {
  object-fit: cover !important;
}

/* Wide retouch pairs are stacked: show the full product instead of cropping its lower edge. */
.retouch-card-stacked .retouch-pair img,
.retouch-story-mode .retouch-story-gallery.retouch-story-stacked img {
  object-fit: contain !important;
}

.retouch-card-stacked .retouch-before,
.retouch-story-mode .retouch-story-gallery.retouch-story-stacked .retouch-before {
  background: var(--retouch-before-bg, #f3f6ff) !important;
}

.retouch-card-stacked .retouch-after,
.retouch-story-mode .retouch-story-gallery.retouch-story-stacked .retouch-after {
  background: #fff !important;
}

@media (min-width: 901px) {
  .retouch-story-mode .ai-lightbox-panel:has(.retouch-story-gallery.retouch-story-stacked) {
    grid-template-columns:
      clamp(420px, 23vw, 470px)
      minmax(0, calc(43.8vh * 1.5743)) !important;
    gap: 30px !important;
    width: fit-content !important;
    max-width: calc(100vw - 48px) !important;
  }

  .retouch-story-mode .ai-lightbox-panel:has(.retouch-story-gallery.retouch-story-stacked) .ai-lightbox-head {
    width: 100% !important;
  }

  .retouch-story-mode .ai-lightbox-panel:has(.retouch-story-gallery.retouch-story-stacked) .retouch-story-gallery {
    width: calc(43.8vh * 1.5743) !important;
  }

  .retouch-story-mode .retouch-story-gallery.retouch-story-stacked figure {
    width: 100% !important;
    justify-self: center !important;
  }

  .retouch-story-mode .retouch-story-gallery.retouch-story-stacked .retouch-before {
    width: 100% !important;
  }

  .retouch-story-mode .retouch-story-gallery.retouch-story-stacked .retouch-after {
    width: 100% !important;
  }

  .retouch-story-mode .retouch-story-gallery.retouch-story-split .retouch-before {
    border-radius: var(--retouch-detail-radius, 30px) 0 0 var(--retouch-detail-radius, 30px) !important;
    clip-path: inset(0 round var(--retouch-detail-radius, 30px) 0 0 var(--retouch-detail-radius, 30px)) !important;
  }

  .retouch-story-mode .retouch-story-gallery.retouch-story-split .retouch-after {
    border-radius: 0 var(--retouch-detail-radius, 30px) var(--retouch-detail-radius, 30px) 0 !important;
    clip-path: inset(0 round 0 var(--retouch-detail-radius, 30px) var(--retouch-detail-radius, 30px) 0) !important;
  }
}

/* Retouch carousel cards: square image corners and a seamless BEFORE background. */
#retouch .retouch-pair img {
  border-radius: 0 !important;
  clip-path: none !important;
}

#retouch .retouch-pair .retouch-before img {
  object-fit: cover !important;
  transform: scale(1.04) !important;
}

/* AI model detail uses the same crystal-flower signature as the retouch card. */
@media (min-width: 901px) {
  .model-story-mode .ai-lightbox-head::after {
    position: absolute;
    right: clamp(22px, 3vw, 48px);
    bottom: clamp(18px, 3vh, 36px);
    z-index: 0;
    width: clamp(140px, 14vw, 220px);
    height: clamp(140px, 14vw, 220px);
    background: url("./assets/profile/crystal-flower-04.webp?v=20260728-detail-fix") center / contain no-repeat;
    filter: drop-shadow(0 0 28px rgba(151, 95, 255, 0.5));
    opacity: 0.76;
    content: "";
    pointer-events: none;
  }

  .ecommerce-story-mode .ai-lightbox-head {
    position: relative;
    isolation: isolate;
  }

  .ecommerce-story-mode .ai-lightbox-head::after {
    position: absolute;
    right: clamp(22px, 3vw, 48px);
    bottom: clamp(18px, 3vh, 36px);
    z-index: 0;
    width: clamp(140px, 14vw, 220px);
    height: clamp(140px, 14vw, 220px);
    background: url("./assets/profile/crystal-flower-04.webp?v=20260728-detail-fix") center / contain no-repeat;
    filter: drop-shadow(0 0 28px rgba(151, 95, 255, 0.5));
    opacity: 0.76;
    content: "";
    pointer-events: none;
  }

  .ecommerce-story-mode .ai-lightbox-head > * {
    position: relative;
    z-index: 1;
  }
}

/* Beauty ecommerce detail: arrange the seven posters in 2 / 3 / 2 rows. */
@media (min-width: 901px) {
  /* Keep the description card and poster group centered as one module. */
  .ecommerce-story-mode .ai-lightbox-panel {
    width: min(90vw, 1400px) !important;
    margin-inline: auto !important;
  }

  .ecommerce-story-mode .ecommerce-story-beauty .ecommerce-story-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  .ecommerce-story-mode .ecommerce-story-beauty .ecommerce-story-item-1,
  .ecommerce-story-mode .ecommerce-story-beauty .ecommerce-story-item-2,
  .ecommerce-story-mode .ecommerce-story-beauty .ecommerce-story-item-6,
  .ecommerce-story-mode .ecommerce-story-beauty .ecommerce-story-item-7 {
    grid-column: span 3 !important;
  }

  .ecommerce-story-mode .ecommerce-story-beauty .ecommerce-story-item-3,
  .ecommerce-story-mode .ecommerce-story-beauty .ecommerce-story-item-4,
  .ecommerce-story-mode .ecommerce-story-beauty .ecommerce-story-item-5 {
    grid-column: span 2 !important;
  }
}

/* Mobile detail controls: compact, neutral, and free of purple glow. */
@media (max-width: 640px) {
  .ai-lightbox-nav,
  .ai-lightbox-close,
  .video-lightbox-nav,
  .video-lightbox-close,
  .video-card-play {
    border-color: #000 !important;
    background: rgba(0, 0, 0, 0.58) !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
  }

  .ai-lightbox-nav,
  .video-lightbox-nav {
    width: 38px !important;
    height: 38px !important;
  }

  .ai-lightbox-close,
  .video-lightbox-close {
    top: max(12px, env(safe-area-inset-top)) !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    width: 34px !important;
    height: 34px !important;
  }

  .ai-lightbox-close::before,
  .ai-lightbox-close::after,
  .video-lightbox-close::before,
  .video-lightbox-close::after {
    width: 15px !important;
    height: 2px !important;
    box-shadow: none !important;
  }

  .ai-lightbox-nav::before,
  .video-lightbox-nav span {
    width: 14px !important;
    height: 14px !important;
    filter: none !important;
  }

  .video-card-play {
    width: 32px !important;
    height: 32px !important;
  }
}

/* Retouch detail layout: equal-height columns, a 30px gutter, and clean rounded media cards. */
@media (min-width: 901px) {
  .retouch-story-mode .ai-lightbox-panel {
    grid-template-columns: clamp(420px, 23vw, 470px) minmax(0, 1fr) !important;
    gap: 30px !important;
    width: min(90vw, 1800px) !important;
    height: 90vh !important;
    align-items: stretch !important;
  }

  .retouch-story-mode .ai-lightbox-head,
  .retouch-story-mode .retouch-story-gallery {
    align-self: stretch !important;
    height: 90vh !important;
  }

  .retouch-story-mode .retouch-story-gallery figure,
  .retouch-story-mode .retouch-story-gallery.retouch-story-split .retouch-before,
  .retouch-story-mode .retouch-story-gallery.retouch-story-split .retouch-after {
    overflow: hidden !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 24px !important;
    box-shadow: none !important;
    clip-path: inset(0 round 24px) !important;
  }

  .retouch-story-mode .retouch-story-gallery img {
    display: block !important;
    border: 0 !important;
    border-radius: 24px !important;
    box-shadow: none !important;
    clip-path: none !important;
  }

  .retouch-story-mode .ai-lightbox-panel:has(.retouch-story-gallery.retouch-story-stacked) {
    grid-template-columns:
      clamp(420px, 23vw, 470px)
      minmax(0, calc(43.8vh * 1.5743)) !important;
    gap: 30px !important;
    width: fit-content !important;
    height: 90vh !important;
  }
}

/* Mobile retouch: image-first detail view with natural media height. */
@media (max-width: 900px) {
  #retouch .retouch-card,
  #retouch .retouch-pair,
  #retouch .retouch-pair figure,
  #retouch .retouch-pair img {
    border-radius: 24px !important;
    clip-path: inset(0 round 24px) !important;
  }

  #retouch .retouch-card,
  #retouch .retouch-pair,
  #retouch .retouch-pair figure {
    overflow: hidden !important;
  }

  .retouch-story-mode .ai-lightbox-panel {
    display: block !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
  }

  .retouch-story-mode .ai-lightbox-head {
    display: none !important;
  }

  .retouch-story-mode .retouch-story-gallery,
  .retouch-story-mode .retouch-story-gallery.retouch-story-stacked {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
    height: 100% !important;
    padding: 16px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .retouch-story-mode .retouch-story-gallery figure,
  .retouch-story-mode .retouch-story-gallery.retouch-story-split figure,
  .retouch-story-mode .retouch-story-gallery.retouch-story-stacked figure {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 24px !important;
    clip-path: inset(0 round 24px) !important;
  }

  .retouch-story-mode .retouch-story-gallery img,
  .retouch-story-mode .retouch-story-gallery.retouch-story-split img,
  .retouch-story-mode .retouch-story-gallery.retouch-story-stacked img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 24px !important;
    clip-path: none !important;
  }
}

/* Desktop selling-point detail: three equal square cards centered in the viewport. */
@media (min-width: 901px) {
  .visual-story-mode .ai-lightbox-panel {
    --visual-square-gap: clamp(16px, 1.2vw, 24px);
    --visual-square-size: min(
      calc((84vw - var(--visual-square-gap) - var(--visual-square-gap)) / 3),
      calc(100dvh - 96px)
    );
    grid-template-columns:
      var(--visual-square-size)
      calc(var(--visual-square-size) + var(--visual-square-size) + var(--visual-square-gap)) !important;
    gap: var(--visual-square-gap) !important;
    width: calc(
      var(--visual-square-size) + var(--visual-square-size) + var(--visual-square-size) +
      var(--visual-square-gap) + var(--visual-square-gap)
    ) !important;
    height: var(--visual-square-size) !important;
    min-height: var(--visual-square-size) !important;
    max-height: var(--visual-square-size) !important;
    place-self: center !important;
    align-items: center !important;
  }

  .visual-story-mode .ai-lightbox-head,
  .visual-story-mode .ai-lightbox-gallery,
  .visual-story-mode .visual-story-wrap,
  .visual-story-mode .visual-story-project,
  .visual-story-mode .visual-project-figure {
    height: var(--visual-square-size) !important;
    min-height: var(--visual-square-size) !important;
    max-height: var(--visual-square-size) !important;
  }

  .visual-story-mode .ai-lightbox-head,
  .visual-story-mode .visual-project-figure,
  .visual-story-mode .visual-project-figure img {
    border-radius: 24px !important;
  }

  .visual-story-mode .visual-story-project {
    grid-template-columns: repeat(2, var(--visual-square-size)) !important;
    gap: var(--visual-square-gap) !important;
    width: calc(var(--visual-square-size) + var(--visual-square-size) + var(--visual-square-gap)) !important;
  }
}

html:has(.detail-overlay:not([hidden])) {
  overflow: hidden;
}

.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #07002e;
}

.detail-overlay-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #07002e;
}
