:root {
  color-scheme: dark;
  --bg: #030303;
  --black: #070707;
  --panel: #101010;
  --white: #f4f1ec;
  --paper: #f3f1ee;
  --text: #f4f4f2;
  --ink: #171717;
  --muted: #a4a4a4;
  --dim: #696969;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.48);
  --red: #ff2b22;
  --violet: #4a29ff;
  --shadow: 0 36px 90px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05), transparent 34rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 96px 96px, auto;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

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

button,
a {
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 120px;
  align-items: center;
  min-height: 78px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 3, 3, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(40px, 7vw, 96px);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.nav a {
  position: relative;
  padding: 28px 0;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  background: var(--text);
  opacity: 0;
  transform: scaleX(0.4);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  content: "";
}

.nav a:hover,
.nav a:focus-visible,
.nav a.is-active {
  color: var(--text);
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.language-switch {
  justify-self: end;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.section-frame {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.section-number {
  color: var(--text);
  font-size: 1rem;
  font-weight: 760;
}

.profile-section {
  min-height: calc(100vh - 78px);
  overflow: hidden;
  position: relative;
}

.profile-section {
  display: grid;
  place-items: center;
  padding: 0;
  background: linear-gradient(90deg, #020202 0 50%, #f4f3f0 50% 100%);
}

.about-screen-image {
  width: 100%;
  height: calc(100vh - 78px);
  object-fit: contain;
  object-position: center;
  background: linear-gradient(90deg, #020202 0 50%, #f4f3f0 50% 100%);
}

.profile-card {
  display: grid;
  grid-template-columns: minmax(440px, 0.92fr) minmax(640px, 1.08fr);
  width: 100%;
  min-height: calc(100vh - 78px);
  overflow: hidden;
  background: #f4f3f0;
}

.profile-visual {
  position: relative;
  min-height: calc(100vh - 78px);
  overflow: hidden;
  background:
    linear-gradient(90deg, #020202 0%, #020202 38%, rgba(2, 2, 2, 0.2) 72%, transparent 100%),
    #020202;
}

.profile-visual::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.22) 54%, transparent 100%),
    linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.34));
  content: "";
}

.profile-visual img {
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  filter: none;
  transform: scale(1.08);
}

.tiny-logo {
  position: absolute;
  top: clamp(26px, 4vw, 58px);
  left: clamp(26px, 4vw, 58px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 850;
}

.tiny-logo i {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent 46%, #fff 46%, #fff 54%, transparent 54%);
}

.vertical-note {
  position: absolute;
  top: 50%;
  left: clamp(18px, 3vw, 44px);
  z-index: 3;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
}

.profile-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding: clamp(52px, 6.2vw, 112px) clamp(54px, 6.7vw, 128px) clamp(42px, 5vw, 80px);
  color: var(--ink);
}

.search-mark {
  position: absolute;
  top: clamp(26px, 4vw, 58px);
  right: clamp(26px, 4vw, 58px);
  width: 28px;
  height: 28px;
  border: 4px solid var(--ink);
  border-radius: 50%;
}

.search-mark::after {
  position: absolute;
  right: -10px;
  bottom: -8px;
  width: 14px;
  height: 4px;
  background: var(--ink);
  border-radius: 999px;
  transform: rotate(45deg);
  content: "";
}

.profile-toolbar {
  display: flex;
  justify-content: flex-start;
  gap: clamp(34px, 4vw, 58px);
  margin-bottom: clamp(54px, 7vw, 104px);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.42em;
}

.profile-content h2 {
  margin: 0 0 34px;
  color: var(--ink);
  font-size: clamp(5.8rem, 9vw, 11rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.04em;
}

.profile-accent {
  display: block;
  width: 54px;
  height: 4px;
  margin: 0 0 48px;
  background: #e7194a;
}

.profile-copy {
  display: grid;
  gap: 38px;
  max-width: 800px;
}

.profile-copy section {
  position: relative;
  border-left: 0;
  padding-left: 28px;
}

.profile-copy section::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 14px;
  background: #e7194a;
  content: "";
}

.profile-copy h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.5rem, 2vw, 2.1rem);
}

.profile-copy p {
  margin: 0;
  color: #6a6a6a;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
}

.profile-copy section:nth-child(2) p {
  color: #e7194a;
  letter-spacing: 0.04em;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: end;
  margin-top: auto;
  padding-top: clamp(58px, 7vw, 104px);
  color: var(--ink);
}

.profile-stats div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 clamp(12px, 1.8vw, 28px);
  border-right: 1px solid #e7194a;
  min-width: 0;
}

.profile-stats div:first-child {
  padding-left: 0;
}

.profile-stats div:last-child {
  border-right: 0;
}

.profile-stats strong {
  color: #e7194a;
  font-size: clamp(2.5rem, 4vw, 4.6rem);
  font-weight: 900;
  line-height: 1;
}

.profile-stats span {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: clamp(0.76rem, 1.05vw, 1.02rem);
  white-space: nowrap;
}

.profile-social {
  position: absolute;
  right: clamp(42px, 6vw, 96px);
  bottom: clamp(28px, 4vw, 58px);
  display: flex;
  gap: 30px;
  color: #b2b2b2;
  font-size: 1.3rem;
  font-weight: 800;
}

.stage-controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  cursor: pointer;
}

.stage-controls button:hover,
.stage-controls button:focus-visible {
  background: var(--text);
  color: var(--bg);
}

h2,
h3,
p {
  margin-top: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.works-section {
  padding: clamp(64px, 7vw, 92px) clamp(24px, 5vw, 76px) clamp(72px, 7vw, 104px);
}

.works-section .section-number,
.contact-section .section-number {
  margin-bottom: 18px;
}

.works-heading {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.works-heading h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(2.1rem, 4vw, 4rem);
  font-weight: 820;
  line-height: 1;
}

.works-heading p:last-child {
  margin: 0 auto;
  max-width: 640px;
  color: var(--muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 44px;
}

.filter-button {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  background: var(--text);
  color: var(--bg);
}

.work-carousel {
  position: relative;
  --slide-near: clamp(360px, 30vw, 520px);
  --slide-far: clamp(580px, 48vw, 760px);
  height: clamp(330px, 38vw, 520px);
  margin: clamp(32px, 5vw, 70px) auto 0;
  max-width: 1280px;
  overflow: visible;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

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

.stage-card,
.work-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 18rem),
    var(--panel);
  isolation: isolate;
}

.stage-card img,
.work-card img {
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.8) contrast(1.04) brightness(0.68);
  opacity: 0.92;
  transform: scale(1);
  transition:
    filter 420ms ease,
    opacity 420ms ease,
    transform 680ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.carousel-card.is-wide img {
  object-fit: contain;
  background: #d8d8d8;
}

.carousel-card.is-dark-bg img {
  background: #000;
}

.carousel-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(54vw, 560px);
  height: min(31vw, 350px);
  opacity: 0;
  cursor: pointer;
  transform: translate(-50%, -50%) scale(0.72);
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 420ms ease;
}

.carousel-card.is-active {
  z-index: 5;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.18);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.48);
}

.carousel-card.is-prev {
  z-index: 4;
  opacity: 0.84;
  transform: translate(calc(-50% - var(--slide-near)), -50%) scale(0.84);
}

.carousel-card.is-next {
  z-index: 4;
  opacity: 0.84;
  transform: translate(calc(-50% + var(--slide-near)), -50%) scale(0.84);
}

.carousel-card.is-far-prev {
  z-index: 3;
  opacity: 0.55;
  transform: translate(calc(-50% - var(--slide-far)), -50%) scale(0.64);
}

.carousel-card.is-far-next {
  z-index: 3;
  opacity: 0.55;
  transform: translate(calc(-50% + var(--slide-far)), -50%) scale(0.64);
}

.carousel-card.is-hidden-slide {
  pointer-events: none;
}

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

.stage-card:hover img,
.stage-card:focus-within img,
.work-card:hover img,
.work-card:focus-within img {
  filter: grayscale(0) contrast(1.08) brightness(0.88);
  opacity: 1;
  transform: scale(1.055);
}

.side-card {
  height: 280px;
  opacity: 0.74;
}

.main-card {
  height: min(54vw, 520px);
  min-height: 380px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.stage-overlay,
.work-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  padding: 24px;
}

.stage-overlay span,
.work-overlay span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stage-overlay h3,
.work-overlay h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.4rem;
}

.stage-overlay p,
.work-overlay p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.stage-count {
  position: absolute;
  right: 26px;
  bottom: 24px;
  z-index: 5;
  color: var(--muted);
  font-size: 0.86rem;
}

.stage-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 30px 0 48px;
}

.carousel-progress {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: min(50vw, 360px);
  color: var(--muted);
  font-size: 1rem;
}

.carousel-progress strong {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.progress-line {
  position: relative;
  display: block;
  flex: 1;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.progress-line i {
  display: block;
  width: 25%;
  height: 100%;
  background: #e7194a;
  transition: width 320ms ease;
}

.works-grid {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.work-card {
  min-height: 250px;
  border-radius: 4px;
  cursor: pointer;
}

.work-card.is-hidden {
  display: none;
}

.work-card::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 46px;
  height: 1px;
  background: rgba(255, 255, 255, 0.76);
  content: "";
  transform: translate(-50%, -50%);
}

.work-card .work-overlay {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 300ms ease,
    transform 300ms ease;
}

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

.work-card .work-overlay h3 {
  font-size: 1.08rem;
}

.work-card .work-overlay p {
  font-size: 0.9rem;
}

.project-detail-section {
  min-height: 100vh;
  padding: clamp(64px, 7vw, 104px) clamp(18px, 5vw, 76px) clamp(80px, 8vw, 128px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28rem),
    var(--bg);
}

.project-detail-section[hidden],
.project-detail-section.is-hidden {
  display: none;
}

.project-detail-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.52fr) minmax(320px, 0.48fr);
  gap: clamp(28px, 6vw, 100px);
  align-items: end;
  max-width: 1360px;
  margin: 0 auto;
}

.project-detail-heading h2 {
  margin: 0;
  max-width: 760px;
  color: var(--text);
  font-size: clamp(2.4rem, 6vw, 7rem);
  font-weight: 880;
  line-height: 0.92;
}

.project-detail-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.4vw, 1.2rem);
}

.detail-heading-centered {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: clamp(12px, 1.7vw, 22px);
  max-width: 1280px;
  padding: clamp(44px, 7vw, 92px) 0 clamp(22px, 4vw, 48px);
  text-align: center;
}

.detail-heading-centered .eyebrow {
  margin: 0;
  letter-spacing: 0.16em;
}

.detail-heading-centered h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(1.7rem, 3.55vw, 4.35rem);
  line-height: 1;
  white-space: nowrap;
}

.detail-heading-centered p:last-child {
  max-width: 980px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(0.88rem, 1.16vw, 1.18rem);
  font-weight: 650;
  line-height: 1.62;
}

.genomer-detail-heading {
  display: block;
  max-width: 1280px;
  min-height: auto;
  padding: clamp(44px, 7vw, 92px) 0 clamp(22px, 4vw, 48px);
  text-align: center;
}

.genomer-title-copy {
  display: grid;
  justify-items: center;
  gap: clamp(12px, 1.7vw, 22px);
}

.genomer-title-copy .eyebrow {
  margin: 0;
  letter-spacing: 0.16em;
}

.genomer-title-copy h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(1.7rem, 3.55vw, 4.35rem);
  line-height: 1;
  white-space: nowrap;
}

.genomer-title-copy p {
  max-width: 980px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(0.88rem, 1.16vw, 1.18rem);
  font-weight: 650;
  line-height: 1.62;
}

.project-hero-media {
  max-width: 1440px;
  margin: clamp(38px, 5vw, 72px) auto 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #050505;
  aspect-ratio: 16 / 8.6;
  box-shadow: var(--shadow);
}

.project-hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.project-guideline-hero {
  display: grid;
  max-width: 1440px;
  margin: clamp(38px, 5vw, 72px) auto 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #f6f8fb;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

.project-guideline-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  filter: none;
}

.project-gallery {
  max-width: 1440px;
  margin: clamp(26px, 4vw, 58px) auto 0;
}

.project-gallery--reserved {
  margin-top: clamp(44px, 6vw, 90px);
}

.project-gallery-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--dim);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.18em;
}

.project-gallery-viewport {
  position: relative;
  overflow: visible;
  padding: clamp(16px, 2vw, 30px) 0 clamp(30px, 4vw, 56px);
}

.project-gallery-viewport::before,
.project-gallery-viewport::after {
  display: none;
}

.project-gallery-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 30px);
  align-items: stretch;
}

.project-media-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 30px);
}

.project-gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: #ececec;
  aspect-ratio: 16 / 10;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.3);
  cursor: zoom-in;
  opacity: 0.9;
  outline: 0;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    border-color 240ms ease,
    opacity 240ms ease,
    box-shadow 240ms ease,
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-media-card {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.project-fullscreen-slot {
  display: grid;
  width: min(1680px, calc(100vw - clamp(36px, 9vw, 152px)));
  max-width: none;
  min-height: min(74vh, 820px);
  margin: clamp(52px, 8vw, 112px) auto 0;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
}

.offline-video-layout {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
}

.offline-video-layout .project-gallery-item {
  aspect-ratio: auto;
  background: #000;
}

.offline-main-video {
  display: grid;
  width: min(1680px, calc(100vw - clamp(36px, 9vw, 152px)));
  max-width: none;
  min-height: min(82vh, 900px);
  margin: 0 auto;
  place-items: center;
  border-radius: 18px;
}

.offline-main-video video {
  width: 100%;
  height: auto;
  max-height: min(82vh, 900px);
  object-fit: contain;
}

.offline-video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 34px);
}

.offline-video-grid .project-media-card,
.offline-video-grid .project-media-card.is-video {
  grid-column: span 1;
}

.offline-video-grid video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
}

.project-gallery--genomer .project-media-card,
.project-gallery--dark .project-media-card {
  background: #000;
}

.project-gallery--genomer .project-media-card img,
.project-gallery--dark .project-media-card img {
  object-fit: cover;
  background: #000;
}

.project-gallery--dark .project-media-card.is-placeholder {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 48%),
    #050505;
}

.project-media-card.is-video {
  grid-column: span 3;
  background: #050505;
}

.project-media-card.is-compact-slot {
  grid-column: span 2;
}

.project-media-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offline-video-layout .project-media-card video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.offline-main-video video {
  max-height: min(82vh, 900px);
}

.project-media-card.is-placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 48%),
    rgba(255, 255, 255, 0.055);
}

.project-media-card.is-placeholder::before {
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  content: "";
}

.project-media-card.is-placeholder span {
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.22em;
}

.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.96) contrast(1.02) brightness(0.92);
  transition:
    filter 360ms ease,
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-gallery-item:hover,
.project-gallery-item:focus-visible,
.project-gallery-item.is-selected {
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.52);
  opacity: 1;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  transform: translateY(-6px);
}

.project-gallery:has(.project-gallery-item:hover) .project-gallery-item:not(:hover),
.project-gallery:has(.project-gallery-item:focus-visible) .project-gallery-item:not(:focus-visible),
.project-gallery:has(.project-gallery-item.is-selected) .project-gallery-item:not(.is-selected) {
  opacity: 0.62;
}

.project-gallery-item:hover img,
.project-gallery-item:focus-visible img,
.project-gallery-item.is-selected img {
  filter: saturate(1.04) contrast(1.04) brightness(1);
  transform: scale(1.018);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 64px);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px);
}

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

.gallery-lightbox img {
  width: min(94vw, 1500px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 18px;
  cursor: zoom-out;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.72);
}

.gallery-lightbox video {
  width: min(94vw, 1500px);
  max-height: 88vh;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.72);
  cursor: zoom-out;
}

.gallery-lightbox-placeholder {
  display: grid;
  width: min(94vw, 1200px);
  aspect-ratio: 16 / 9;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-weight: 760;
  letter-spacing: 0.24em;
}

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

.gallery-lightbox-close {
  position: fixed;
  top: clamp(16px, 3vw, 34px);
  right: clamp(16px, 3vw, 34px);
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: var(--text);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(250px, 0.5fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: end;
  min-height: 360px;
  padding: clamp(54px, 6vw, 78px) clamp(24px, 5vw, 76px);
}

.contact-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 1;
}

.contact-copy p {
  max-width: 620px;
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
  color: var(--muted);
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--text);
}

.resume-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  justify-self: end;
}

.resume-button:hover,
.resume-button:focus-visible {
  background: var(--text);
  color: var(--bg);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px clamp(24px, 5vw, 76px);
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.82rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.footer-meta a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: var(--text);
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.text-button:hover,
.text-button:focus-visible {
  color: var(--text);
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .nav {
    gap: 28px;
  }

  .profile-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .profile-visual {
    min-height: 54vh;
  }

  .profile-visual img {
    object-position: 50% 48%;
    transform: scale(1.02);
  }

  .profile-content {
    min-height: auto;
  }

  .profile-toolbar {
    margin-bottom: 34px;
  }

  .profile-stats {
    grid-template-columns: repeat(2, max-content);
  }

  .work-carousel {
    --slide-near: 48vw;
    --slide-far: 76vw;
    height: 460px;
    margin-inline: 0;
    overflow: hidden;
  }

  .carousel-card {
    width: min(72vw, 560px);
    height: 320px;
  }

  .carousel-card.is-active {
    transform: translate(-50%, -50%) scale(1.04);
  }

  .carousel-card.is-prev {
    transform: translate(calc(-50% - 48vw), -50%) scale(0.78);
  }

  .carousel-card.is-next {
    transform: translate(calc(-50% + 48vw), -50%) scale(0.78);
  }

  .carousel-card.is-far-prev {
    transform: translate(calc(-50% - 76vw), -50%) scale(0.58);
  }

  .carousel-card.is-far-next {
    transform: translate(calc(-50% + 76vw), -50%) scale(0.58);
  }

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

  .project-detail-heading {
    grid-template-columns: 1fr;
  }

  .detail-heading-centered {
    padding-top: clamp(34px, 9vw, 64px);
  }

  .detail-heading-centered h2 {
    font-size: clamp(2.1rem, 10vw, 3.9rem);
    white-space: normal;
  }

  .genomer-detail-heading {
    padding-top: clamp(34px, 9vw, 64px);
  }

  .genomer-title-copy h2 {
    font-size: clamp(2.1rem, 10vw, 3.9rem);
    white-space: normal;
  }

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

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

  .project-media-card,
  .project-media-card.is-video {
    grid-column: span 1;
  }

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

}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: auto 1fr;
    min-height: 92px;
    padding: 12px 18px;
  }

  .brand {
    grid-row: 1;
  }

  .language-switch {
    grid-row: 1;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
  }

  .nav a {
    padding: 10px 0;
  }

  .nav a::after {
    bottom: 4px;
  }

  .profile-section,
  .works-section,
  .project-detail-section,
  .contact-section {
    padding-inline: 18px;
  }

  .profile-section {
    display: block;
    min-height: 0;
    padding-inline: 0;
  }

  .about-screen-image {
    height: auto;
    object-fit: contain;
    object-position: top center;
  }

  .works-section {
    padding-top: 36px;
  }

  .works-section .section-number {
    margin-bottom: 12px;
  }

  .works-heading {
    margin-bottom: 24px;
  }

  .works-heading h2 {
    margin-bottom: 0;
  }

  .profile-content {
    padding: 44px 24px 88px;
  }

  .profile-content h2 {
    font-size: clamp(3.4rem, 18vw, 5.2rem);
  }

  .profile-accent {
    margin-bottom: 34px;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    margin-top: 32px;
    gap: 14px;
  }

  .profile-stats div {
    justify-content: space-between;
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(231, 25, 74, 0.35);
    padding-bottom: 12px;
  }

  .profile-social {
    right: 24px;
    bottom: 26px;
  }

  .search-mark {
    display: none;
  }

  .work-carousel {
    --slide-near: 58vw;
    --slide-far: 92vw;
    height: 340px;
    margin-top: 34px;
  }

  .carousel-card {
    width: 78vw;
    height: 238px;
  }

  .carousel-card.is-active {
    transform: translate(-50%, -50%) scale(1);
  }

  .carousel-card.is-prev {
    opacity: 0.58;
    transform: translate(calc(-50% - 58vw), -50%) scale(0.72);
  }

  .carousel-card.is-next {
    opacity: 0.58;
    transform: translate(calc(-50% + 58vw), -50%) scale(0.72);
  }

  .carousel-card.is-far-prev,
  .carousel-card.is-far-next {
    opacity: 0;
  }

  .stage-overlay {
    padding: 18px;
  }

  .stage-overlay h3 {
    font-size: 1.025rem;
    line-height: 1.18;
  }

  .stage-overlay p {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .stage-controls {
    flex-wrap: wrap;
    margin-top: 14px;
  }

  .carousel-progress {
    order: -1;
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

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

  .work-card {
    min-height: 320px;
  }

  .work-card .work-overlay {
    opacity: 1;
    transform: none;
  }

  .project-hero-media {
    aspect-ratio: 16 / 9;
  }

  .project-fullscreen-slot {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .project-gallery-meta {
    font-size: 0.68rem;
  }

  .project-gallery-viewport {
    padding-bottom: 42px;
  }

  .project-gallery-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .project-media-board {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }

  .project-media-card {
    grid-column: span 2;
  }

  .project-media-card.is-video {
    grid-column: span 3;
  }

  .project-gallery-item {
    aspect-ratio: 16 / 9;
  }

  .offline-video-layout .project-gallery-item,
  .offline-main-video {
    aspect-ratio: 16 / 9;
  }

  .offline-main-video {
    width: 100%;
    min-height: 0;
  }

  .project-hero-media video,
  .project-fullscreen-slot video,
  .project-media-card video,
  .offline-main-video video,
  .offline-video-grid video {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
  }

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

  .contact-section {
    grid-template-columns: 1fr;
  }

  .resume-button {
    justify-self: start;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 18px;
  }
}

/* Use the finished ABOUT artwork and keep the four published case categories. */
.profile-section.section-frame {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
}

.about-screen-image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: center top;
  background: #000;
}

.works-heading .section-kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.works-heading p:not(.section-kicker),
[data-filter="motion"],
[data-filter="ecommerce"],
.work-card[data-category="motion"],
.work-card[data-category="ecommerce"],
#motion-visual-detail,
#ecommerce-visual-detail {
  display: none !important;
}

@media (max-width: 720px) {
  .works-section {
    padding-top: clamp(36px, 10vw, 54px);
  }

  .works-heading h2 {
    font-size: clamp(2.4rem, 13vw, 3.5rem);
  }

  .works-heading .section-kicker {
    font-size: 0.7rem;
  }

  .filter-bar {
    gap: 12px;
  }

  .filter-button {
    min-height: 44px;
    padding: 12px 20px;
    font-size: 1rem;
  }
}
