:root {
  color-scheme: dark;
  --bg: #02080a;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(0, 0, 0, 0.72);
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #ffffff;
  --muted: hsl(240, 4%, 66%);
  --quiet: rgba(255, 255, 255, 0.48);
  --blue-black: hsl(201, 100%, 13%);
  --silver: #d7d7d9;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --display: "Instrument Serif", "Times New Roman", serif;
  --title: Cinzel, Georgia, serif;
  --body: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  margin: 0;
}

body::selection {
  background: var(--text);
  color: var(--bg);
}

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

button {
  font: inherit;
}

img,
video,
iframe {
  display: block;
  max-width: 100%;
}

.nav-shell {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.52);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  height: 80px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(22px, 6vw, 96px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 40;
}

.page-index {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 35;
}

.page-index::before {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.14) 18%, rgba(255, 255, 255, 0.14) 82%, transparent);
  content: "";
  height: calc(100% - 26px);
  position: absolute;
  right: 8px;
  top: 13px;
  width: 1px;
}

.page-index a {
  align-items: center;
  color: rgba(255, 255, 255, 0.46);
  display: flex;
  font-family: var(--body);
  font-size: 10px;
  font-weight: 600;
  gap: 10px;
  min-height: 28px;
  position: relative;
  transition: color 180ms ease;
}

.page-index a span {
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  padding: 6px 9px;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.page-index a i {
  background: #4f5456;
  border: 3px solid rgba(2, 8, 10, 0.92);
  border-radius: 50%;
  display: block;
  height: 11px;
  position: relative;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  width: 11px;
  z-index: 1;
}

.page-index:hover a span,
.page-index a:focus-visible span {
  opacity: 1;
  transform: translateX(0);
}

.page-index a:hover,
.page-index a:focus-visible,
.page-index a.is-active {
  color: #fff;
}

.page-index a:hover i,
.page-index a:focus-visible i,
.page-index a.is-active i {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
  transform: scale(1.18);
}

.page-index a:focus-visible {
  outline: none;
}

.brand {
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

.brand:hover {
  color: var(--silver);
  transform: scale(1.03);
}

.brand sup {
  font-size: 11px;
  margin-left: 1px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: clamp(22px, 4vw, 48px);
}

.nav-links a,
.section-jump a,
.glass-button {
  font-family: var(--title);
  letter-spacing: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color 180ms ease;
}

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

.glass-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.16);
  color: var(--text);
  display: inline-flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: background 180ms ease, transform 180ms ease;
}

.glass-button::before,
.section-jump a::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.46), rgba(255,255,255,0.08) 35%, rgba(255,255,255,0.08) 65%, rgba(255,255,255,0.42));
  border-radius: inherit;
  content: "";
  inset: 0;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
  position: absolute;
}

.glass-button:hover,
.section-jump a:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.03);
}

.glass-button.compact {
  font-size: 14px;
  min-height: 40px;
  padding: 0 24px;
}

.glass-button.large {
  font-size: 16px;
  margin-top: 44px;
  min-height: 64px;
  padding: 0 54px;
}

.hero {
  align-items: center;
  background: var(--blue-black);
  display: flex;
  justify-content: center;
  min-height: 100svh;
  overflow: hidden;
  padding: 120px 24px 80px;
  position: relative;
  text-align: center;
}

.hero-media,
.hero-overlay {
  inset: 0;
  position: absolute;
}

.hero-media {
  overflow: hidden;
}

.hero-video {
  height: 100%;
  object-fit: cover;
  opacity: 0;
  position: absolute;
  transition: opacity 900ms ease;
  width: 100%;
}

.hero-video.is-active {
  opacity: 0.84;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.64)),
    linear-gradient(90deg, rgba(0, 25, 34, 0.62), rgba(0, 0, 0, 0.18), rgba(0, 25, 34, 0.62));
}

.hero-content {
  max-width: 1180px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(52px, 9vw, 124px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
}

.hero h1 em {
  color: var(--muted);
  font-style: normal;
}

.hero p {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  margin: 30px auto 0;
  max-width: 680px;
}

.portfolio-shell {
  background:
    linear-gradient(180deg, rgba(2, 8, 10, 0.85), rgba(2, 8, 10, 1) 22%),
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.08), transparent 50%);
  padding: 110px clamp(22px, 6vw, 96px) 20px;
  position: relative;
}

.portfolio-intro {
  margin: 0 auto 90px;
  max-width: 900px;
  text-align: center;
}

.spark {
  color: var(--muted);
  display: inline-block;
  font-size: 24px;
  margin-bottom: 28px;
}

.portfolio-intro h2,
.contact-card h2 {
  font-family: var(--title);
  font-size: clamp(54px, 8vw, 100px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.portfolio-intro p {
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(26px, 4vw, 40px);
  font-style: italic;
  margin: 22px 0 0;
}

.section-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 42px;
}

.section-jump a {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 999px;
  color: var(--text);
  font-size: 12px;
  min-height: 42px;
  overflow: hidden;
  padding: 13px 22px;
  position: relative;
  transition: background 180ms ease, transform 180ms ease;
}

.credentials-section {
  margin: 0 auto 130px;
  max-width: 1160px;
}

.credentials-group h3 {
  font-family: var(--title);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 400;
  margin: 0 0 38px;
  text-align: center;
}

.collaborators-group {
  margin-top: 92px;
}

.brand-grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.brand-item {
  margin: 0;
  min-width: 0;
}

.brand-logo {
  aspect-ratio: 16 / 9;
  background: #111820;
  border: 0;
  border-radius: 8px;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.22), 0 18px 46px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.brand-logo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.brand-item figcaption {
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  margin-top: 12px;
  text-align: center;
}

.work-section {
  margin: 0 auto 120px;
  max-width: 1160px;
  scroll-margin-top: 110px;
}

.iflytek-collection,
.dissona-collection,
#modeling,
#design,
#brainstorming,
#commercial-works {
  scroll-margin-top: 110px;
}

.section-title {
  margin-bottom: 42px;
}

.subsection-title {
  margin-top: 88px;
}

.section-title h3 {
  font-family: var(--title);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  letter-spacing: 0;
  margin: 0 0 16px;
}

.section-title span {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent);
  display: block;
  height: 1px;
  width: 72px;
}

.work-grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.iflytek-collection {
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(64px, 8vw, 92px);
  padding-bottom: clamp(64px, 8vw, 92px);
}

.iflytek-header {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  margin-bottom: 32px;
}

.iflytek-kicker {
  color: var(--quiet);
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
}

.iflytek-header h4 {
  font-family: var(--display);
  font-size: clamp(44px, 7vw, 82px);
  font-weight: 400;
  line-height: 0.95;
  margin: 0;
}

.iflytek-header p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

.iflytek-video-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.iflytek-film {
  background: #080808;
  border: 0;
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
}

.iflytek-film img {
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  opacity: 0.76;
  transition: opacity 240ms ease, transform 420ms ease;
  width: 100%;
}

.iflytek-film::after {
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.8));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.iflytek-film:hover img,
.iflytek-film:focus-visible img {
  opacity: 1;
  transform: scale(1.015);
}

.iflytek-film:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 4px;
}

.iflytek-film-copy {
  bottom: 20px;
  display: grid;
  gap: 6px;
  left: 20px;
  position: absolute;
  z-index: 2;
}

.iflytek-film-copy strong {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 500;
}

.iflytek-film-copy small {
  color: var(--silver);
  font-size: 11px;
  font-weight: 600;
}

.iflytek-play {
  align-items: center;
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  font-size: 14px;
  height: 44px;
  justify-content: center;
  padding-left: 2px;
  position: absolute;
  right: 20px;
  top: 20px;
  width: 44px;
  z-index: 2;
}

.iflytek-gallery {
  display: grid;
  gap: 12px;
  grid-auto-flow: dense;
  grid-auto-rows: 88px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.iflytek-shot {
  background: #0b0b0b;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.iflytek-shot img {
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
  width: 100%;
}

.iflytek-shot:hover img {
  transform: scale(1.02);
}

.iflytek-shot figcaption {
  background: rgba(0, 0, 0, 0.58);
  bottom: 12px;
  color: var(--silver);
  font-size: 10px;
  font-weight: 600;
  left: 12px;
  padding: 7px 9px;
  position: absolute;
}

.shot-hero {
  grid-column: span 8;
  grid-row: span 5;
}

.shot-overview {
  grid-column: span 4;
  grid-row: span 5;
}

.shot-half {
  grid-column: span 6;
  grid-row: span 4;
}

.shot-wide {
  grid-column: span 7;
  grid-row: span 4;
}

.shot-detail {
  grid-column: span 5;
  grid-row: span 4;
}

.shot-full {
  grid-column: 1 / -1;
  grid-row: span 4;
}

.dissona-collection {
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(64px, 8vw, 92px);
  padding-bottom: clamp(64px, 8vw, 92px);
}

.dissona-header {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  margin-bottom: 32px;
}

.dissona-kicker {
  color: #e8a9bd;
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
}

.dissona-header h4 {
  font-family: var(--display);
  font-size: clamp(44px, 7vw, 82px);
  font-weight: 400;
  line-height: 0.95;
  margin: 0;
}

.dissona-header p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

.dissona-films {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.dissona-film {
  background: #0b0b0b;
  border: 0;
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
}

.dissona-film img {
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  opacity: 0.82;
  transition: opacity 240ms ease, transform 420ms ease;
  width: 100%;
}

.dissona-film::after {
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.88));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.dissona-film:hover img,
.dissona-film:focus-visible img {
  opacity: 1;
  transform: scale(1.025);
}

.dissona-film:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 4px;
}

.dissona-film > span {
  bottom: 16px;
  display: grid;
  gap: 5px;
  left: 16px;
  position: absolute;
  z-index: 2;
}

.dissona-film strong {
  font-size: 14px;
  font-weight: 500;
}

.dissona-film small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 600;
}

.dissona-film i {
  align-items: center;
  background: rgba(0, 0, 0, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  display: flex;
  font-size: 11px;
  font-style: normal;
  height: 38px;
  justify-content: center;
  padding-left: 2px;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  z-index: 2;
}

.dissona-gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dissona-shot {
  background: #0b0b0b;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.dissona-shot img {
  aspect-ratio: 2 / 3;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
  width: 100%;
}

.dissona-shot:hover img {
  transform: scale(1.02);
}

.dissona-shot figcaption {
  background: rgba(0, 0, 0, 0.58);
  bottom: 12px;
  color: var(--silver);
  font-size: 10px;
  font-weight: 600;
  left: 12px;
  padding: 7px 9px;
  position: absolute;
}

.dissona-wide {
  grid-column: 1 / -1;
}

.dissona-wide img {
  aspect-ratio: 16 / 9;
}

.modeling-section {
  max-width: 1320px;
}

.modeling-project {
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(72px, 9vw, 120px);
  padding-bottom: clamp(72px, 9vw, 120px);
}

.modeling-project:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.modeling-header {
  align-items: end;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.7fr);
  margin-bottom: 30px;
}

.modeling-index {
  color: var(--quiet);
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
}

.modeling-header h4 {
  font-family: var(--display);
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 400;
  line-height: 0.94;
  margin: 0;
}

.modeling-header p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

.collection-subsection + .collection-subsection {
  border-top: 1px solid var(--line);
  margin-top: clamp(64px, 8vw, 96px);
  padding-top: clamp(64px, 8vw, 96px);
}

.collection-subheader {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: 34px minmax(0, 1fr);
  margin-bottom: 24px;
  max-width: 720px;
}

.collection-subheader > span {
  color: var(--quiet);
  font-family: var(--title);
  font-size: 12px;
  padding-top: 7px;
}

.collection-subheader h5 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

.collection-subheader p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 10px 0 0;
}

.modeling-gallery {
  display: grid;
  gap: 10px;
  grid-auto-flow: dense;
  grid-auto-rows: clamp(170px, 22vw, 310px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.modeling-shot {
  background: #080808;
  border: 0;
  color: var(--text);
  cursor: zoom-in;
  grid-column: span 1;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
}

.modeling-shot.modeling-wide {
  grid-column: span 2;
}

.modeling-shot.modeling-hero {
  grid-column: span 2;
  grid-row: span 2;
}

.modeling-shot img {
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  transition: opacity 240ms ease, transform 520ms ease;
  width: 100%;
}

.modeling-shot::after {
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.84));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.modeling-shot span {
  bottom: 15px;
  font-size: 11px;
  font-weight: 600;
  left: 16px;
  position: absolute;
  z-index: 1;
}

.modeling-shot:hover img,
.modeling-shot:focus-visible img {
  opacity: 1;
  transform: scale(1.025);
}

.modeling-shot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.lego-gallery {
  grid-auto-rows: clamp(160px, 18vw, 250px);
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.lego-gallery .modeling-shot {
  grid-column: span 1;
}

.lego-gallery .modeling-wide {
  grid-column: span 2;
}

.brainstorming-gallery {
  grid-auto-rows: clamp(230px, 25vw, 350px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brainstorming-gallery .modeling-shot {
  background: #f3f3f1;
}

.brainstorming-gallery .modeling-wide {
  grid-column: span 2;
}

.work-card {
  cursor: pointer;
  outline: none;
  position: relative;
  transition: transform 240ms ease;
}

.work-card::before {
  background: linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06), rgba(255,255,255,0.16));
  border-radius: 18px;
  content: "";
  filter: blur(10px);
  inset: -2px;
  opacity: 0;
  position: absolute;
  transition: opacity 240ms ease;
}

.work-card:hover {
  transform: translateY(-8px);
}

.work-card:hover::before {
  opacity: 0.55;
}

.work-card img {
  aspect-ratio: 16 / 9;
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  box-shadow: var(--shadow);
  height: auto;
  object-fit: cover;
  opacity: 0.82;
  overflow: hidden;
  position: relative;
  transition: opacity 240ms ease, transform 420ms ease;
  width: 100%;
  z-index: 1;
}

.work-card:hover img {
  opacity: 1;
  transform: scale(1.015);
}

.work-card::after {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--text);
  content: "▶";
  display: flex;
  font-size: 28px;
  height: 76px;
  justify-content: center;
  left: 50%;
  opacity: 0;
  padding-left: 4px;
  position: absolute;
  top: 33%;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 220ms ease, transform 220ms ease;
  width: 76px;
  z-index: 2;
}

.work-card:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.work-meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: -50px;
  padding: 0 16px 24px;
  pointer-events: none;
  position: relative;
  z-index: 3;
}

.work-meta span,
.work-meta small {
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--silver);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 8px 12px;
}

.work-card h4 {
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 22px 0 0;
  position: relative;
}

.work-card h4 span {
  color: var(--muted);
  display: block;
  font-size: 16px;
  margin-top: 4px;
}

.work-card p {
  color: rgba(255, 255, 255, 0.42);
  font-size: 14px;
  line-height: 1.7;
  margin: 10px 0 0;
}

.contact-shell {
  background:
    linear-gradient(180deg, rgba(2, 8, 10, 1), rgba(2, 8, 10, 0.86)),
    url("assets/covers/figma-rebirth.jpg") center / cover;
  padding: 96px 24px 120px;
}

.contact-card {
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 720px;
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
}

.contact-card h2 {
  font-size: clamp(40px, 6vw, 64px);
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 46px;
  text-align: left;
}

.contact-list a,
.contact-list p {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text);
  display: grid;
  font-size: clamp(16px, 2vw, 20px);
  gap: 5px;
  margin: 0;
  padding: 0 0 18px;
  transition: color 180ms ease;
}

.contact-list a:hover {
  color: var(--muted);
}

.contact-list span {
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.34);
  padding: 38px 24px;
  text-align: center;
}

.site-footer p,
.site-footer small {
  display: block;
  letter-spacing: 0;
  margin: 0;
}

.site-footer small {
  margin-top: 10px;
}

.video-modal {
  background: #000;
  border: 0;
  color: var(--text);
  max-width: min(1160px, calc(100vw - 28px));
  overflow: visible;
  padding: 0;
  width: 100%;
}

.video-modal::backdrop {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.modal-close {
  align-items: center;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-size: 28px;
  height: 48px;
  justify-content: center;
  position: absolute;
  right: 16px;
  top: 16px;
  transition: background 180ms ease, transform 180ms ease;
  width: 48px;
  z-index: 10;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.06);
}

.modal-close:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.modal-frame {
  aspect-ratio: 16 / 9;
  background: #050505;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.modal-frame video,
.modal-frame iframe {
  border: 0;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.video-loading {
  align-items: center;
  background: rgba(0, 0, 0, 0.56);
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  font-size: 12px;
  gap: 10px;
  inset: 0;
  justify-content: center;
  position: absolute;
  transition: opacity 180ms ease;
  z-index: 2;
}

.video-loading.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.video-loading span {
  animation: loading-spin 800ms linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  border-top-color: #fff;
  height: 18px;
  width: 18px;
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.modal-copy {
  align-items: start;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 28px;
}

.modal-copy span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.modal-copy h3 {
  font-family: var(--title);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 400;
  margin: 8px 0 8px;
}

.modal-copy p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.modal-copy a,
.playlist button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 16px;
}

.playlist {
  background: #000;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 28px 28px;
}

.playlist:empty {
  display: none;
}

.image-modal {
  background: #050505;
  border: 0;
  color: var(--text);
  height: min(90svh, 900px);
  max-height: calc(100svh - 24px);
  max-width: min(1440px, calc(100vw - 24px));
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.image-modal::backdrop {
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.92);
}

.image-modal figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  margin: 0;
}

.image-modal img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.image-modal figcaption {
  background: #050505;
  border-top: 1px solid var(--line);
  color: var(--silver);
  font-size: 12px;
  font-weight: 600;
  padding: 16px 24px;
  text-align: center;
}

.image-modal-close,
.image-modal-nav {
  align-items: center;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: center;
  position: absolute;
  z-index: 3;
}

.image-modal-close {
  font-size: 28px;
  height: 48px;
  right: 16px;
  top: 16px;
  width: 48px;
}

.image-modal-nav {
  font-family: Georgia, serif;
  font-size: 36px;
  height: 54px;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
}

.image-modal-prev {
  left: 18px;
}

.image-modal-next {
  right: 18px;
}

.image-modal-close:hover,
.image-modal-close:focus-visible,
.image-modal-nav:hover,
.image-modal-nav:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

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

  .page-index {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 7px 5px;
    right: 7px;
  }

  .page-index::before {
    right: 10px;
  }

  .page-index a {
    min-height: 24px;
  }

  .page-index a span {
    display: none;
  }

  .page-index a i {
    height: 9px;
    width: 9px;
  }

  .iflytek-header {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .dissona-header {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .modeling-header {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .modeling-gallery,
  .lego-gallery,
  .brainstorming-gallery {
    grid-auto-rows: clamp(180px, 44vw, 320px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lego-gallery .modeling-wide {
    grid-column: span 2;
  }

  .dissona-films {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .iflytek-gallery {
    grid-auto-rows: 64px;
  }

  .work-card::after {
    opacity: 1;
    top: 34%;
    transform: translate(-50%, -50%) scale(0.78);
  }
}

@media (max-width: 640px) {
  .nav-shell {
    height: 70px;
    padding-inline: 18px;
  }

  .brand {
    font-size: 28px;
  }

  .glass-button.compact {
    min-height: 36px;
    padding: 0 16px;
  }

  .hero {
    padding-top: 110px;
  }

  .portfolio-shell {
    padding-top: 82px;
  }

  .section-jump {
    align-items: center;
    flex-direction: column;
  }

  .section-jump a {
    width: min(100%, 320px);
  }

  .credentials-section {
    margin-bottom: 96px;
  }

  .credentials-group h3 {
    margin-bottom: 26px;
  }

  .collaborators-group {
    margin-top: 68px;
  }

  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-item figcaption {
    font-size: 11px;
    margin-top: 9px;
  }

  .iflytek-video-grid {
    grid-template-columns: 1fr;
  }

  .dissona-films,
  .dissona-gallery {
    grid-template-columns: 1fr;
  }

  .dissona-wide {
    grid-column: auto;
  }

  .dissona-wide img,
  .dissona-shot img {
    aspect-ratio: 4 / 5;
    height: auto;
  }

  .iflytek-gallery {
    display: block;
  }

  .modeling-gallery,
  .lego-gallery,
  .brainstorming-gallery {
    display: grid;
    grid-auto-rows: min(68vw, 360px);
    grid-template-columns: 1fr;
  }

  .modeling-shot,
  .modeling-shot.modeling-wide,
  .modeling-shot.modeling-hero,
  .lego-gallery .modeling-shot,
  .lego-gallery .modeling-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .iflytek-shot {
    margin-bottom: 10px;
  }

  .iflytek-shot img {
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .shot-overview img {
    aspect-ratio: 1 / 1;
  }

  .modal-copy {
    flex-direction: column;
  }

  .modal-copy a {
    text-align: center;
    width: 100%;
  }

  .image-modal {
    height: calc(100svh - 16px);
    max-width: calc(100vw - 16px);
  }

  .image-modal-nav {
    bottom: 62px;
    height: 46px;
    top: auto;
    transform: none;
    width: 46px;
  }

  .image-modal-prev {
    left: 14px;
  }

  .image-modal-next {
    right: 14px;
  }
}

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