:root {
  color-scheme: dark;
  --bg: #070706;
  --bg-soft: #10100d;
  --text: #f7f1e6;
  --muted: #cdbf9f;
  --line: rgba(225, 191, 127, 0.28);
  --line-soft: rgba(225, 191, 127, 0.14);
  --gold: #e1bf7f;
  --cyan: #5fdcee;
  --blue: #1477ff;
  --green: #1f9f68;
  --wine: #b33b63;
  --shadow: rgba(0, 0, 0, 0.54);
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

@property --glow-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  background:
    radial-gradient(circle at 74% 16%, rgba(40, 91, 126, 0.38), transparent 34rem),
    radial-gradient(circle at 12% 72%, rgba(134, 95, 37, 0.2), transparent 34rem),
    radial-gradient(circle at 50% 112%, rgba(83, 36, 112, 0.18), transparent 44rem),
    linear-gradient(145deg, #030303 0%, #090907 44%, #020304 100%);
  color: var(--text);
  overflow-x: hidden;
}

main,
.site-header,
.hero,
.type-dock,
.work-section,
.video-section,
.contact-section {
  max-width: 100%;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 24%, rgba(225, 191, 127, 0.1), transparent 24rem),
    radial-gradient(circle at 26% 18%, rgba(95, 220, 238, 0.08), transparent 26rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.034), transparent 18%, rgba(255, 255, 255, 0.014));
  z-index: -4;
}

body::after {
  content: "";
  position: fixed;
  left: var(--mx, 70vw);
  top: var(--my, 22vh);
  width: 360px;
  height: 360px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(135deg, rgba(225, 191, 127, 0.16), transparent 48%),
    linear-gradient(315deg, rgba(95, 220, 238, 0.12), transparent 52%);
  filter: blur(18px);
  opacity: 0.72;
  z-index: -2;
}

#field,
.ambient-illustration {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

#field {
  display: none;
  opacity: 0;
  z-index: -2;
}

.ambient-illustration {
  overflow: hidden;
  opacity: 1;
  z-index: -3;
}

.ambient-illustration::before {
  content: "";
  position: absolute;
  right: -10vw;
  top: -2vh;
  width: min(980px, 82vw);
  aspect-ratio: 4 / 3;
  background: url("./assets/illustrations/cg-trend-bg.svg") center / contain no-repeat;
  opacity: 0.3;
  filter: saturate(1.08) contrast(1.04);
}

.ambient-illustration::after {
  content: "";
  position: absolute;
  left: -16vw;
  bottom: -18vh;
  width: min(760px, 70vw);
  aspect-ratio: 4 / 3;
  background: url("./assets/illustrations/cg-trend-bg.svg") center / contain no-repeat;
  opacity: 0.12;
  transform: scaleX(-1) rotate(-8deg);
  filter: hue-rotate(28deg) saturate(0.9);
}

.ambient-illustration span {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
video {
  user-select: none;
  -webkit-user-drag: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(225, 191, 127, 0.18);
  background: rgba(4, 4, 4, 0.35);
  backdrop-filter: blur(22px) saturate(1.28);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(225, 191, 127, 0.14);
  backdrop-filter: blur(16px);
  font: 700 1rem / 1 "Bahnschrift", system-ui;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.05rem;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(225, 191, 127, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px) saturate(1.25);
}

.site-nav a,
.project-tabs button,
.hero-actions a,
.contact-link {
  border: 1px solid rgba(225, 191, 127, 0.22);
  border-radius: 999px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px) saturate(1.3);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.site-nav a {
  padding: 8px 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav a:hover,
.project-tabs button:hover,
.project-tabs button.is-active,
.hero-actions a:hover,
.contact-link:hover {
  transform: translateY(-1px);
  border-color: rgba(225, 191, 127, 0.64);
  background: rgba(225, 191, 127, 0.1);
  color: #fff8e9;
}

main {
  position: relative;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(560px, 1.16fr);
  gap: clamp(34px, 4vw, 64px);
  align-items: center;
  padding: clamp(46px, 5vw, 78px) clamp(24px, 3.2vw, 64px) 96px;
}

.andrew-wordmark {
  pointer-events: none;
  user-select: none;
  position: absolute;
  z-index: 4;
  top: clamp(6px, 1.2vw, 18px);
  right: clamp(42px, 5.4vw, 104px);
  width: clamp(132px, 14vw, 214px);
  opacity: 0.58;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 24px rgba(225, 191, 127, 0.18))
    drop-shadow(0 18px 42px rgba(0, 0, 0, 0.34));
}

.section-tone-obsidian,
.section-tone-luckin,
.section-tone-pupu,
.section-tone-legacy {
  position: relative;
  isolation: isolate;
}

.section-tone-obsidian {
  --tone-a: rgba(225, 191, 127, 0.16);
  --tone-b: rgba(95, 220, 238, 0.12);
  --tone-line: rgba(225, 191, 127, 0.28);
}

.section-tone-luckin {
  --tone-a: rgba(20, 119, 255, 0.28);
  --tone-b: rgba(95, 220, 238, 0.13);
  --tone-line: rgba(70, 164, 255, 0.34);
}

.section-tone-pupu {
  --tone-a: rgba(31, 159, 104, 0.26);
  --tone-b: rgba(225, 191, 127, 0.12);
  --tone-line: rgba(74, 191, 133, 0.32);
}

.section-tone-legacy {
  --tone-a: rgba(179, 59, 99, 0.28);
  --tone-b: rgba(225, 191, 127, 0.12);
  --tone-line: rgba(179, 59, 99, 0.34);
}

.section-tone-obsidian::before,
.section-tone-luckin::before,
.section-tone-pupu::before,
.section-tone-legacy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(120deg, var(--tone-a), transparent 34%),
    linear-gradient(245deg, var(--tone-b), transparent 42%);
  opacity: 0.72;
}

.section-tone-obsidian::after,
.section-tone-luckin::after,
.section-tone-pupu::after,
.section-tone-legacy::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.034), transparent 25rem),
    radial-gradient(circle at 18% 88%, rgba(225, 191, 127, 0.05), transparent 28rem);
  opacity: 0.65;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font: 700 0.82rem / 1.45 "Bahnschrift", system-ui;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-family:
    "Arial Black",
    "Bahnschrift",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  font-size: clamp(3.1rem, 4.45vw, 5.35rem);
  font-weight: 900;
  line-height: 0.95;
  background: linear-gradient(105deg, #fff8e9 0%, #e1bf7f 46%, #5fdcee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 18px 58px rgba(0, 0, 0, 0.42);
}

h2 {
  font-size: clamp(2.35rem, 3.1vw, 3rem);
  line-height: 1.08;
}

h3 {
  font-size: 2rem;
}

.hero-title-sub {
  width: min(100%, 640px);
  margin: 18px 0 0;
  color: #fff8e9;
  font:
    900 clamp(1.3rem, 1.9vw, 2rem) / 1.22 "Bahnschrift",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  text-shadow:
    0 0 28px rgba(95, 220, 238, 0.24),
    0 14px 42px rgba(0, 0, 0, 0.5);
}

.hero-lead {
  max-width: 640px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.mobile-profile-card {
  display: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions a {
  display: inline-flex;
  min-width: 132px;
  justify-content: center;
  padding: 12px 18px;
  font-weight: 700;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 10px;
  max-width: 520px;
  margin-top: 34px;
}

.stat {
  padding: 14px 16px;
  border: 1px solid rgba(225, 191, 127, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(4, 4, 4, 0.35);
  backdrop-filter: blur(18px) saturate(1.25);
}

.stat strong {
  display: block;
  color: var(--gold);
  font: 700 1.8rem / 1 "Bahnschrift", system-ui;
  text-shadow:
    0 0 16px rgba(225, 191, 127, 0.38),
    0 0 34px rgba(95, 220, 238, 0.16);
  animation: stat-glow 2.8s ease-in-out infinite;
}

.stat:nth-child(2) strong {
  animation-delay: 0.22s;
}

.stat:nth-child(3) strong {
  animation-delay: 0.44s;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  justify-self: end;
  width: min(100%, 928px);
  min-height: 0;
}

.stage-frame,
.stage-thumb,
.work-card,
.video-card {
  border: 1px solid rgba(225, 191, 127, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 38%),
    rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: 0 26px 70px var(--shadow);
  overflow: hidden;
}

.stage-frame {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 9;
  max-height: min(58vh, 560px);
}

.stage-frame video,
.stage-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #030303;
}

.stage-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(225, 191, 127, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
  backdrop-filter: blur(18px) saturate(1.25);
}

.stage-caption strong {
  color: var(--text);
  text-align: right;
}

.stage-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.stage-thumb {
  position: relative;
  cursor: zoom-in;
  margin: 0;
  aspect-ratio: 16 / 9;
  min-height: 0;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.stage-thumb:hover,
.stage-thumb.is-active {
  transform: translateY(-3px);
  border-color: rgba(95, 220, 238, 0.72);
}

.stage-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #030303;
}

.play-mark {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(225, 191, 127, 0.4);
  border-radius: 999px;
  color: #fff8e9;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px) saturate(1.2);
  font-size: 0.78rem;
  line-height: 1;
}

.hero-scroll-cue {
  position: absolute;
  z-index: 6;
  left: clamp(260px, 20.5vw, 380px);
  bottom: clamp(54px, 8vh, 86px);
  display: grid;
  width: clamp(150px, 15vw, 220px);
  height: clamp(92px, 10vw, 138px);
  place-items: center;
  color: var(--gold);
  transform: translateX(-50%);
  animation: scroll-cue-pulse 1.85s ease-in-out infinite;
}

.hero-scroll-cue span,
.hero-scroll-cue::after {
  content: "";
  position: absolute;
  width: clamp(42px, 4.8vw, 68px);
  height: clamp(42px, 4.8vw, 68px);
  border-right: clamp(4px, 0.42vw, 6px) solid currentColor;
  border-bottom: clamp(4px, 0.42vw, 6px) solid currentColor;
  transform: rotate(45deg);
  filter:
    drop-shadow(0 0 14px rgba(225, 191, 127, 0.7))
    drop-shadow(0 0 30px rgba(95, 220, 238, 0.16));
}

.hero-scroll-cue span {
  top: 18%;
}

.hero-scroll-cue::after {
  top: 38%;
  opacity: 0.64;
}

.type-dock,
.video-section,
.contact-section,
.work-section {
  padding: clamp(42px, 5vw, 76px) clamp(24px, 4vw, 72px);
}

.type-dock {
  position: sticky;
  top: 75px;
  z-index: 12;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid rgba(225, 191, 127, 0.12);
  border-bottom: 1px solid rgba(225, 191, 127, 0.12);
  background: rgba(5, 5, 5, 0.35);
  backdrop-filter: blur(22px) saturate(1.28);
  padding-top: 22px;
  padding-bottom: 22px;
}

.type-dock > div:first-child {
  flex: 0 0 auto;
  min-width: max-content;
}

.type-dock h2 {
  font-size: 1.8rem;
  line-height: 1.05;
  white-space: nowrap;
}

.project-tabs {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(225, 191, 127, 0.34) rgba(255, 255, 255, 0.045);
  -webkit-overflow-scrolling: touch;
}

.project-tabs::-webkit-scrollbar {
  height: 5px;
}

.project-tabs::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(225, 191, 127, 0.34);
}

.project-tabs button {
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: var(--muted);
  font: inherit;
  scroll-snap-align: start;
  white-space: nowrap;
}

.project-tabs small {
  color: var(--gold);
  font-size: 0.75rem;
}

.visual-ticker {
  display: none;
  overflow: hidden;
  border-bottom: 1px solid rgba(225, 191, 127, 0.12);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.visual-ticker div {
  display: flex;
  width: max-content;
  gap: 12px;
  padding: 18px 0;
  animation: ticker 48s linear infinite;
}

.visual-ticker figure {
  width: 180px;
  aspect-ratio: 16 / 10;
  margin: 0;
  border: 1px solid rgba(225, 191, 127, 0.18);
  border-radius: 8px;
  background: #030303;
  overflow: hidden;
}

.visual-ticker img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.work-section {
  scroll-margin-top: 136px;
  border-bottom: 1px solid rgba(225, 191, 127, 0.1);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(225, 191, 127, 0.14);
  opacity: 0;
  transform: translateY(18px);
  transition:
    transform 0.65s ease,
    opacity 0.65s ease;
}

.section-heading.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-heading p:not(.eyebrow) {
  display: none;
}

.showcase-wall {
  --portfolio-card-height: clamp(320px, 22vw, 410px);
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: clamp(12px, 1.15vw, 18px);
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px clamp(36px, 6vw, 92px) 24px 4px;
  perspective: 1400px;
  perspective-origin: 50% 42%;
  scroll-padding-left: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(225, 191, 127, 0.34) rgba(255, 255, 255, 0.055);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.showcase-wall::-webkit-scrollbar {
  height: 7px;
}

.showcase-wall::-webkit-scrollbar-track {
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(95, 220, 238, 0.1), rgba(225, 191, 127, 0.08)),
    rgba(255, 255, 255, 0.045);
}

.showcase-wall::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(95, 220, 238, 0.48), rgba(225, 191, 127, 0.42)),
    rgba(225, 191, 127, 0.26);
}

.work-card {
  --scroll-rotate-y: 0deg;
  --scroll-scale: 1;
  --scroll-shift-y: 0px;
  --scroll-opacity: 1;
  --scroll-brightness: 1;
  --scroll-saturation: 1;
  cursor: zoom-in;
  position: relative;
  isolation: isolate;
  margin: 0;
  flex: 0 0 auto;
  min-height: 0;
  height: var(--portfolio-card-height);
  scroll-snap-align: start;
  transform:
    translateY(calc(20px + var(--scroll-shift-y)))
    rotateX(var(--tilt-x))
    rotateY(calc(var(--tilt-y) + var(--scroll-rotate-y)))
    scale(var(--scroll-scale));
  filter: brightness(var(--scroll-brightness)) saturate(var(--scroll-saturation));
  opacity: 0;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
  transition:
    transform 0.58s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.58s ease,
    filter 0.38s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.work-card.is-visible {
  transform:
    translateY(var(--scroll-shift-y))
    rotateX(var(--tilt-x))
    rotateY(calc(var(--tilt-y) + var(--scroll-rotate-y)))
    scale(var(--scroll-scale));
  opacity: var(--scroll-opacity);
}

.work-card:hover {
  border-color: rgba(225, 191, 127, 0.8);
  box-shadow:
    0 0 0 1px rgba(225, 191, 127, 0.2),
    0 0 32px rgba(95, 220, 238, 0.24),
    0 34px 92px rgba(0, 0, 0, 0.72);
}

.work-card.is-visible:hover {
  transform:
    translateY(calc(var(--scroll-shift-y) - 10px))
    rotateX(var(--tilt-x))
    rotateY(calc(var(--tilt-y) + var(--scroll-rotate-y)))
    scale(calc(var(--scroll-scale) + 0.035));
  filter: brightness(1.08) saturate(1.12);
}

.work-card::before,
.video-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background:
    conic-gradient(
      from var(--glow-angle, 0deg),
      transparent 0deg,
      transparent 76deg,
      rgba(95, 220, 238, 0.92) 112deg,
      rgba(225, 191, 127, 0.98) 148deg,
      transparent 190deg,
      transparent 360deg
    );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  filter:
    drop-shadow(0 0 10px rgba(95, 220, 238, 0.5))
    drop-shadow(0 0 20px rgba(225, 191, 127, 0.28));
  animation: orbit-border 2.8s linear infinite;
  animation-play-state: paused;
  transition: opacity 0.24s ease;
}

.work-card::after,
.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at var(--glow-x, 50%) var(--glow-y, 50%),
      rgba(255, 255, 255, 0.24),
      rgba(95, 220, 238, 0.08) 22%,
      transparent 46%
    ),
    linear-gradient(112deg, transparent 24%, rgba(255, 255, 255, 0.2) 45%, transparent 62%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-38%) skewX(-14deg);
  transition:
    opacity 0.24s ease,
    transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.work-card:hover::before,
.video-card:hover::before {
  opacity: 1;
  animation-play-state: running;
}

.work-card:hover::after,
.video-card:hover::after {
  opacity: 0.78;
  transform: translateX(38%) skewX(-14deg);
}

.work-card.vertical {
  width: calc(var(--portfolio-card-height) * 9 / 16);
  aspect-ratio: 9 / 16;
}

.work-card.horizontal {
  width: calc(var(--portfolio-card-height) * 16 / 9);
  aspect-ratio: 16 / 9;
}

.work-card.square {
  width: var(--portfolio-card-height);
  aspect-ratio: 1;
}

.work-card.is-featured.vertical {
  width: calc(var(--portfolio-card-height) * 9 / 16);
}

.work-card.is-featured.horizontal,
.layout-ribbon .work-card.is-featured.horizontal,
.layout-identity .work-card.is-featured.horizontal {
  width: calc(var(--portfolio-card-height) * 16 / 9);
}

.layout-poster .work-card:nth-child(6n + 1).vertical {
  width: calc(var(--portfolio-card-height) * 9 / 16);
}

.layout-ribbon .work-card.horizontal:nth-child(5n + 2) {
  width: calc(var(--portfolio-card-height) * 16 / 9);
}

.layout-screens .work-card.vertical,
.layout-cinema .work-card.vertical,
.layout-process .work-card.vertical {
  width: calc(var(--portfolio-card-height) * 9 / 16);
}

.layout-process .work-card.horizontal,
.layout-cinema .work-card.horizontal {
  width: calc(var(--portfolio-card-height) * 16 / 9);
}

.layout-cinema .work-card.horizontal {
  width: calc(var(--portfolio-card-height) * 16 / 9);
  aspect-ratio: 16 / 9;
}

.layout-cinema .work-card.vertical {
  width: calc(var(--portfolio-card-height) * 9 / 16);
}

.layout-screens .work-card {
  --portfolio-card-height: clamp(320px, 23vw, 430px);
  min-height: 0;
  aspect-ratio: auto;
}

.layout-screens .work-card img {
  object-fit: cover;
  object-position: center;
}

@media (min-width: 1024px) {
  .showcase-wall {
    --portfolio-card-height: clamp(390px, 28vw, 520px);
  }

  .layout-screens .work-card {
    --portfolio-card-height: clamp(400px, 28vw, 520px);
  }
}

@media (min-width: 761px) {
  .project-tabs {
    gap: 6px;
  }

  .project-tabs button {
    padding: 8px 10px;
    font-size: 0.92rem;
  }
}

.work-card img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #030303;
}

.work-card.is-long-page img {
  object-fit: cover;
  object-position: top center;
}

.work-card figcaption {
  position: absolute;
  z-index: 3;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(225, 191, 127, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
  font-size: 0.75rem;
  backdrop-filter: blur(16px) saturate(1.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.work-card:hover figcaption,
.work-card:focus-within figcaption {
  opacity: 1;
  transform: translateY(0);
}

.work-card figcaption strong {
  color: #f8f0df;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-card figcaption span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-grid {
  display: grid;
  gap: 46px;
  min-width: 0;
}

.video-group {
  position: relative;
  min-width: 0;
  scroll-margin-top: 136px;
}

.video-group::before,
.video-group::after {
  content: "";
  position: absolute;
  top: 58px;
  bottom: 22px;
  width: min(8vw, 94px);
  z-index: 2;
  pointer-events: none;
}

.video-group::before {
  left: 0;
  background: linear-gradient(90deg, rgba(4, 4, 4, 0.94), transparent);
}

.video-group::after {
  right: 0;
  background: linear-gradient(270deg, rgba(4, 4, 4, 0.94), transparent);
}

.video-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.video-group-heading span {
  color: var(--muted);
}

.video-group-grid {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 18px;
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px clamp(34px, 6vw, 90px) 24px 4px;
  perspective: 1400px;
  perspective-origin: 50% 42%;
  scroll-padding-left: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(225, 191, 127, 0.34) rgba(255, 255, 255, 0.055);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.video-group-grid::-webkit-scrollbar {
  height: 7px;
}

.video-group-grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(95, 220, 238, 0.1), rgba(225, 191, 127, 0.08)),
    rgba(255, 255, 255, 0.045);
}

.video-group-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(95, 220, 238, 0.48), rgba(225, 191, 127, 0.42)),
    rgba(225, 191, 127, 0.26);
}

.video-card {
  --scroll-rotate-y: 0deg;
  --scroll-scale: 1;
  --scroll-shift-y: 0px;
  --scroll-opacity: 1;
  --scroll-brightness: 1;
  --scroll-saturation: 1;
  --video-card-height: clamp(220px, 17vw, 320px);
  position: relative;
  isolation: isolate;
  flex: 0 0 calc(var(--video-card-height) * 16 / 9 + 24px);
  margin: 0;
  padding: 12px;
  opacity: 0;
  scroll-snap-align: start;
  transform:
    translateY(calc(18px + var(--scroll-shift-y)))
    rotateY(var(--scroll-rotate-y))
    scale(var(--scroll-scale));
  filter: brightness(var(--scroll-brightness)) saturate(var(--scroll-saturation));
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
  transition:
    transform 0.58s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.58s ease,
    filter 0.38s ease,
    border-color 0.25s ease;
}

.video-card.is-visible {
  opacity: var(--scroll-opacity);
  transform:
    translateY(var(--scroll-shift-y))
    rotateY(var(--scroll-rotate-y))
    scale(var(--scroll-scale));
}

.video-card:hover {
  border-color: rgba(95, 220, 238, 0.8);
  box-shadow:
    0 0 0 1px rgba(95, 220, 238, 0.18),
    0 0 34px rgba(95, 220, 238, 0.26),
    0 34px 92px rgba(0, 0, 0, 0.72);
}

.video-card.is-visible:hover {
  transform:
    translateY(calc(var(--scroll-shift-y) - 10px))
    rotateY(var(--scroll-rotate-y))
    scale(calc(var(--scroll-scale) + 0.035));
  filter: brightness(1.08) saturate(1.1);
}

.video-card.vertical-video {
  flex-basis: calc(var(--video-card-height) * 9 / 16 + 24px);
}

.video-card video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: var(--video-card-height);
  aspect-ratio: 16 / 9;
  max-height: 76vh;
  display: block;
  object-fit: contain;
  border-radius: 6px;
  background: #030303;
}

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

@media (min-width: 761px) {
  #vertical-videos .video-group-grid {
    padding-bottom: 46px;
  }

  #vertical-videos .video-card.vertical-video {
    --video-card-height: clamp(420px, 25vw, 460px);
    flex-basis: calc(var(--video-card-height) * 9 / 16 + 28px);
    padding: 14px;
  }

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

.video-card figcaption {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (min-width: 761px) {
  #videos .video-card figcaption {
    display: none;
  }
}

.contact-section {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.contact-content {
  width: min(100%, 920px);
}

.contact-section p {
  color: var(--muted);
  line-height: 1.8;
}

.contact-card {
  width: min(100%, 620px);
  margin: 34px auto 22px;
  padding: 20px 24px;
  border: 1px solid rgba(225, 191, 127, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.contact-title {
  margin: 0 0 8px;
  color: var(--gold) !important;
  font-weight: 800;
}

.contact-card p,
.contact-copy p {
  margin: 4px 0;
}

.contact-copy {
  margin-top: 18px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 14px 18px;
  font-weight: 700;
}

.lightbox {
  width: min(94vw, 1480px);
  max-width: none;
  padding: 0;
  border: 1px solid rgba(225, 191, 127, 0.42);
  border-radius: 8px;
  background: rgba(3, 3, 3, 0.94);
  color: var(--text);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.72);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
}

.lightbox figure {
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 70vh;
  overflow: auto;
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #030303;
  transform: scale(var(--zoom, 1));
  transform-origin: top center;
  transition: transform 0.18s ease;
}

.lightbox figcaption {
  padding: 14px 18px 18px;
  color: var(--muted);
}

.icon-button {
  cursor: pointer;
  position: absolute;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(225, 191, 127, 0.3);
  border-radius: 8px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px) saturate(1.25);
  font: inherit;
  font-size: 1.8rem;
}

.lightbox-close {
  top: 12px;
  right: 12px;
}

.zoom-tools {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.zoom-tools .icon-button {
  position: static;
  width: auto;
  min-width: 42px;
  padding: 0 12px;
  font-size: 1rem;
  transform: none;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes orbit-border {
  to {
    --glow-angle: 360deg;
  }
}

@keyframes stat-glow {
  0%,
  100% {
    opacity: 0.86;
    transform: translateY(0) scale(1);
    text-shadow:
      0 0 12px rgba(225, 191, 127, 0.28),
      0 0 24px rgba(95, 220, 238, 0.12);
  }

  50% {
    opacity: 1;
    transform: translateY(-1px) scale(1.035);
    text-shadow:
      0 0 22px rgba(225, 191, 127, 0.62),
      0 0 40px rgba(95, 220, 238, 0.24);
  }
}

@keyframes scroll-cue-pulse {
  0%,
  100% {
    opacity: 0.72;
    transform: translateX(-50%) translateY(0) scale(0.96);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(7px) scale(1.08);
  }
}

@media (hover: none) {
  .work-card::before,
  .work-card::after,
  .video-card::before,
  .video-card::after {
    display: none;
  }

  .work-card:hover,
  .video-card:hover {
    box-shadow: 0 26px 70px var(--shadow);
  }

  .work-card.is-visible:hover {
    transform:
      translateY(var(--scroll-shift-y))
      rotateX(var(--tilt-x))
      rotateY(calc(var(--tilt-y) + var(--scroll-rotate-y)))
      scale(var(--scroll-scale));
    filter: brightness(var(--scroll-brightness)) saturate(var(--scroll-saturation));
  }

  .video-card.is-visible:hover {
    transform:
      translateY(var(--scroll-shift-y))
      rotateY(var(--scroll-rotate-y))
      scale(var(--scroll-scale));
    filter: brightness(var(--scroll-brightness)) saturate(var(--scroll-saturation));
  }
}

@media (max-width: 1180px) {
  h1 {
    font-size: 4.35rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  .hero,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .type-dock {
    position: relative;
    top: auto;
    align-items: flex-start;
    flex-direction: column;
  }

  .project-tabs {
    justify-content: flex-start;
  }

  .work-card.vertical,
  .work-card.is-featured.vertical,
  .layout-poster .work-card:nth-child(6n + 1).vertical,
  .layout-screens .work-card.vertical,
  .layout-cinema .work-card.vertical,
  .layout-process .work-card.vertical {
    grid-column: span 4;
  }
}

@media (max-width: 760px) {
  body {
    background:
      radial-gradient(circle at 72% 14%, rgba(60, 118, 148, 0.32), transparent 22rem),
      radial-gradient(circle at 18% 70%, rgba(137, 79, 46, 0.2), transparent 24rem),
      linear-gradient(160deg, #030303 0%, #080807 58%, #020304 100%);
  }

  .ambient-illustration::before {
    right: -42vw;
    top: 12vh;
    width: 118vw;
    opacity: 0.18;
  }

  .ambient-illustration::after {
    left: -52vw;
    bottom: -4vh;
    width: 104vw;
    opacity: 0.08;
  }

  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    width: 100vw;
    max-width: 100vw;
    padding-right: 16px;
    padding-left: 16px;
  }

  .site-nav {
    display: flex !important;
    flex-wrap: wrap;
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    overflow: visible;
    justify-content: flex-start;
    border-radius: 8px;
  }

  .site-nav a {
    flex: 1 1 96px;
    padding: 8px 10px;
    text-align: center;
    min-width: 0;
  }

  .type-dock {
    padding-right: 20px;
    padding-left: 20px;
  }

  .project-tabs {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .project-tabs button {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .hero {
    width: 100vw;
    max-width: 100vw;
    min-height: auto;
    padding-top: 38px;
    padding-right: 24px;
    padding-left: 24px;
    padding-bottom: 36px;
  }

  .andrew-wordmark {
    top: 46px;
    right: 26px;
    width: min(30vw, 172px);
    opacity: 0.46;
  }

  .hero-copy {
    width: 100%;
    max-width: calc(100vw - 48px);
  }

  h1 {
    font-size: 2.65rem;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  h2 {
    font-size: 2.2rem;
  }

  h3 {
    font-size: 1.55rem;
  }

  .hero-lead {
    display: none;
  }

  .mobile-profile-card {
    display: grid;
    grid-template-columns: minmax(86px, 26vw) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    width: 100%;
    margin-top: 24px;
    padding: 12px;
    border: 1px solid rgba(225, 191, 127, 0.22);
    border-radius: 8px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
      rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px) saturate(1.25);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
  }

  .mobile-profile-photo {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid rgba(225, 191, 127, 0.42);
    border-radius: 8px;
    background: #fff;
  }

  .mobile-profile-card p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(0.68rem, 2.9vw, 0.82rem);
    line-height: 1.58;
    text-align: left;
    word-break: break-word;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions a {
    flex: 1 1 130px;
  }

  .hero-stage,
  .stage-frame,
  .stage-frame img,
  .stage-frame video {
    width: 100%;
  }

  .stage-caption {
    align-items: flex-start;
    flex-direction: column;
  }

  .stage-caption strong {
    text-align: left;
  }

  .hero-stats {
    display: flex;
    grid-template-columns: none;
    gap: 0;
    align-items: stretch;
    width: 100%;
    max-width: none;
    padding: 10px 8px;
    border: 1px solid rgba(225, 191, 127, 0.22);
    border-radius: 8px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03)),
      rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px) saturate(1.25);
  }

  .stat {
    flex: 1 1 0;
    padding: 2px 8px;
    border: 0;
    border-right: 1px solid rgba(225, 191, 127, 0.16);
    border-radius: 0;
    background: transparent;
    text-align: center;
    backdrop-filter: none;
  }

  .stat:last-child {
    border-right: 0;
  }

  .stat strong {
    font-size: clamp(1.22rem, 5vw, 1.56rem);
  }

  .stat span {
    margin-top: 4px;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .stage-frame {
    aspect-ratio: 16 / 9;
  }

  .stage-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow-x: visible;
    gap: 8px;
    padding: 2px 2px 6px;
  }

  .stage-thumb {
    min-height: 62px;
  }

  .hero-scroll-cue {
    display: none;
  }

  .work-section {
    padding-right: 0;
    padding-left: 20px;
  }

  .section-heading {
    margin-right: 20px;
    margin-bottom: 18px;
  }

  .section-heading p:not(.eyebrow) {
    font-size: 0.88rem;
  }

  .showcase-wall {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 20px 18px 0;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
    -webkit-overflow-scrolling: touch;
  }

  .showcase-wall::-webkit-scrollbar,
  .stage-strip::-webkit-scrollbar,
  .project-tabs::-webkit-scrollbar,
  .video-group-grid::-webkit-scrollbar {
    height: 4px;
  }

  .showcase-wall::-webkit-scrollbar-thumb,
  .stage-strip::-webkit-scrollbar-thumb,
  .project-tabs::-webkit-scrollbar-thumb,
  .video-group-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(225, 191, 127, 0.3);
  }

  .video-group-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 20px 18px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .work-card.vertical,
  .work-card.horizontal,
  .work-card.square,
  .work-card.is-featured.vertical,
  .work-card.is-featured.horizontal,
  .layout-ribbon .work-card.horizontal:nth-child(5n + 2),
  .layout-ribbon .work-card.is-featured.horizontal,
  .layout-identity .work-card.is-featured.horizontal,
  .layout-process .work-card.horizontal,
  .layout-cinema .work-card.horizontal,
  .video-card,
  .video-card.vertical-video {
    grid-column: auto;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .work-card.vertical,
  .work-card.is-featured.vertical {
    width: min(43vw, 180px);
    min-height: 0;
    aspect-ratio: 9 / 16;
  }

  .work-card.horizontal,
  .work-card.is-featured.horizontal,
  .work-card.square {
    width: min(78vw, 330px);
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .work-card.square {
    width: min(58vw, 240px);
    aspect-ratio: 1;
  }

  .layout-screens .work-card.vertical,
  .layout-screens .work-card.horizontal,
  .layout-screens .work-card.square,
  .layout-screens .work-card.is-featured.vertical,
  .layout-screens .work-card.is-featured.horizontal {
    min-height: 0;
    height: min(58vw, 320px);
    aspect-ratio: auto;
  }

  .layout-screens .work-card.vertical,
  .layout-screens .work-card.is-featured.vertical {
    width: min(42vw, 240px);
  }

  .layout-screens .work-card.horizontal,
  .layout-screens .work-card.is-featured.horizontal,
  .layout-screens .work-card.square {
    width: min(62vw, 340px);
  }

  .video-card {
    width: min(84vw, 360px);
  }

  .video-card.vertical-video {
    width: min(56vw, 230px);
  }

  .work-card img,
  .video-card video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .work-card figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 7px 8px;
    font-size: 0.68rem;
  }

  .work-card figcaption strong {
    width: 100%;
    text-align: left;
  }

  .contact-section {
    place-items: center;
    text-align: center;
    padding-right: 20px;
    padding-left: 20px;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-link {
    flex: 1 1 220px;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 2.15rem;
  }

  .hero-stats {
    display: flex;
    grid-template-columns: none;
  }

  .project-tabs button {
    width: auto;
    justify-content: space-between;
  }

  .stage-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
