:root {
  --bg: #ffffff;
  --surface: #f6f6f6;
  --surface-strong: #ececec;
  --welcome-bg: #f3efea;
  --text: #000000;
  --muted: rgba(0, 0, 0, 0.58);
  --line: rgba(0, 0, 0, 0.08);
  --radius: 10px;
  --gap: 8px;
  --page-width: 1440px;
  --nav-size: 16px;
  --nav-line: 24px;
  --nav-tracking: 0.7px;
  --body-size: 15px;
  --body-line: 1.55;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter Display", Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--body-size);
  line-height: var(--body-line);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.zeg-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  pointer-events: none;
  transition:
    transform 0.28s ease,
    opacity 0.28s ease;
  will-change: transform, opacity;
}

.zeg-header.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.zeg-header__inner,
.zeg-main,
.zeg-footer__inner {
  width: min(var(--page-width), calc(100vw - 16px));
  margin: 0 auto;
}

.zeg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 6px 0;
  color: var(--text);
  pointer-events: auto;
}

.zeg-brand,
.zeg-nav a,
.zeg-menu-toggle,
.tile__eyebrow,
.tile__links a,
.zeg-footer__inner {
  font-size: var(--nav-size);
  line-height: var(--nav-line);
  letter-spacing: var(--nav-tracking);
  font-weight: 400;
}

.zeg-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zeg-nav a {
  color: inherit;
}

.zeg-menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

.zeg-main {
  padding: 48px 8px 12px;
}

.zeg-welcome {
  position: relative;
  min-height: calc(100vh - 56px);
  margin-bottom: 44px;
}

.zeg-welcome__canvas {
  position: relative;
  min-height: calc(100vh - 56px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.88), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.62), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 34%),
    var(--welcome-bg);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.zeg-welcome__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 54px);
  min-height: calc(100vh - 56px);
  padding: 98px 28px 144px;
}

.js-enhanced .reveal {
  transform: translateY(22px);
  opacity: 0;
  transition:
    transform 0.72s var(--ease),
    opacity 0.72s var(--ease);
}

.js-enhanced .reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.zeg-welcome__eyebrow,
.zeg-welcome__foot,
.zeg-welcome__tools {
  font-size: var(--nav-size);
  line-height: var(--nav-line);
  letter-spacing: var(--nav-tracking);
}

.zeg-welcome__copy-block {
  max-width: 360px;
}

.zeg-welcome__eyebrow {
  margin: 0 0 14px;
  color: rgba(0, 0, 0, 0.54);
}

.zeg-welcome__headline {
  margin: 0;
  font-family: "Snell Roundhand", "Bradley Hand", "Segoe Script", cursive;
  font-size: clamp(3.8rem, 7.2vw, 6.4rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  color: rgba(0, 0, 0, 0.78);
}

.zeg-welcome__subline {
  margin: 10px 0 0;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.6);
}

.zeg-welcome__copy {
  max-width: 31ch;
  margin: 28px 0 0;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: clamp(1rem, 1.32vw, 1.12rem);
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.74);
}

.zeg-welcome__note {
  margin: 14px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.42);
}

.zeg-welcome__tools {
  display: none;
}

.zeg-welcome__scene {
  position: relative;
  min-height: 100%;
}

.welcome-scene {
  position: relative;
  min-height: clamp(520px, 70vh, 760px);
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.18)),
    linear-gradient(180deg, #dfe5ef 0%, #cfd8e6 34%, #b9c4d8 100%);
  box-shadow:
    0 28px 70px rgba(64, 73, 92, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.welcome-scene__backdrop,
.welcome-scene__glow,
.welcome-scene__ring {
  position: absolute;
  pointer-events: none;
}

.welcome-scene__backdrop {
  inset: 0;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.42), transparent 42%),
    radial-gradient(circle at 76% 26%, rgba(18, 33, 56, 0.22), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(98, 112, 138, 0.08));
}

.welcome-scene__glow {
  border-radius: 999px;
  filter: blur(6px);
}

.welcome-scene__glow--a {
  top: 8%;
  right: 10%;
  width: clamp(180px, 22vw, 280px);
  height: clamp(180px, 22vw, 280px);
  background: radial-gradient(circle, rgba(255, 246, 214, 0.8), rgba(255, 246, 214, 0));
}

.welcome-scene__glow--b {
  left: 10%;
  bottom: -4%;
  width: clamp(220px, 26vw, 340px);
  height: clamp(220px, 26vw, 340px);
  background: radial-gradient(circle, rgba(174, 191, 220, 0.72), rgba(174, 191, 220, 0));
}

.welcome-scene__ring {
  right: clamp(24px, 4vw, 54px);
  bottom: clamp(26px, 5vw, 54px);
  width: clamp(118px, 14vw, 172px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow:
    0 0 0 18px rgba(255, 255, 255, 0.12),
    inset 0 0 40px rgba(255, 255, 255, 0.12);
}

.welcome-panel {
  position: absolute;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(245, 248, 252, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: 0 20px 44px rgba(57, 68, 92, 0.12);
}

.welcome-panel--statement {
  left: clamp(20px, 3vw, 34px);
  top: clamp(22px, 3vw, 34px);
  width: min(420px, calc(100% - 48px));
  padding: 24px 24px 26px;
  border-radius: 28px;
}

.welcome-panel--index {
  right: clamp(20px, 3vw, 34px);
  top: clamp(96px, 18vh, 160px);
  width: min(260px, calc(100% - 48px));
  padding: 18px 20px 20px;
  border-radius: 24px;
}

.welcome-panel--stamp {
  left: clamp(30px, 9vw, 108px);
  bottom: clamp(42px, 10vh, 96px);
  max-width: 320px;
  padding: 16px 18px 18px;
  border-radius: 999px;
}

.welcome-panel__eyebrow {
  margin: 0 0 10px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(25, 34, 51, 0.56);
}

.welcome-panel__headline {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(2rem, 3.9vw, 3.6rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  color: rgba(22, 30, 44, 0.9);
}

.welcome-panel__body,
.welcome-index,
.welcome-stamp,
.welcome-scene__measure {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
}

.welcome-panel__body {
  max-width: 29ch;
  margin: 18px 0 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(25, 34, 51, 0.68);
}

.welcome-index {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.83rem;
  line-height: 1.55;
  color: rgba(25, 34, 51, 0.72);
}

.welcome-index li {
  padding-top: 12px;
  border-top: 1px solid rgba(25, 34, 51, 0.12);
}

.welcome-index li:first-child {
  padding-top: 0;
  border-top: 0;
}

.welcome-stamp {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(25, 34, 51, 0.72);
}

.welcome-scene__measure {
  position: absolute;
  left: clamp(24px, 3vw, 34px);
  right: clamp(24px, 3vw, 34px);
  bottom: clamp(22px, 3vw, 30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(25, 34, 51, 0.5);
}

.zeg-welcome__foot {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(0, 0, 0, 0.58);
}

.zeg-welcome__foot a {
  position: relative;
}

.zeg-welcome__foot a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.zeg-work-section {
  padding-top: 18px;
  padding-bottom: 12px;
}

.zeg-work-section__lead {
  margin: 0 0 14px;
  padding: 0 4px;
}

.zeg-work-section__lead p {
  margin: 0;
  font-size: var(--nav-size);
  line-height: var(--nav-line);
  letter-spacing: var(--nav-tracking);
  color: rgba(0, 0, 0, 0.58);
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px 14px;
}

.work-card {
  display: grid;
  grid-template-rows: auto minmax(126px, auto);
  gap: 12px;
  min-width: 0;
  color: var(--text);
}

.work-card:hover .work-card__image {
  transform: scale(1.018);
  filter: saturate(1.02) contrast(1.02);
}

.work-card__frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #ebe7df;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  min-width: 0;
  width: 100%;
}

.work-card--sleep .work-card__frame,
.work-card--systems .work-card__frame,
.work-card--pairing .work-card__frame {
  aspect-ratio: 1.18;
}

.work-card--yinshouke .work-card__frame {
  aspect-ratio: 1.18;
  background: #1765e8;
}

.work-card--yinshouke .work-card__image {
  object-position: 58% center;
}

.work-card--location .work-card__frame {
  aspect-ratio: 0.82;
}

.work-card--ocestra .work-card__frame {
  aspect-ratio: 1.18;
  background: #020807;
}

.work-card--ocestra .work-card__image {
  object-position: 70% center;
}

.work-card--material .work-card__frame,
.work-card--motion .work-card__frame {
  aspect-ratio: 1;
}

.work-card__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.06)),
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.16), transparent 24%);
  pointer-events: none;
}

.work-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.work-card__meta {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 0 2px 10px;
}

.work-card__index {
  margin: 0;
  font-size: var(--nav-size);
  line-height: var(--nav-line);
  letter-spacing: var(--nav-tracking);
  color: rgba(0, 0, 0, 0.46);
}

.work-card__title {
  margin: 0;
  max-width: 100%;
  font-size: clamp(1.85rem, 2vw, 2.85rem);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.work-card__copy {
  max-width: 30ch;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.56;
  color: rgba(0, 0, 0, 0.66);
  overflow-wrap: break-word;
}

.zeg-grid {
  column-count: 3;
  column-gap: var(--gap);
}

.tile {
  position: relative;
  display: block;
  margin: 0 0 var(--gap);
  break-inside: avoid;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  transform: translateY(24px);
  opacity: 0;
  transition:
    transform 0.7s var(--ease),
    opacity 0.7s var(--ease),
    filter 0.28s ease;
}

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

.tile--project:hover,
.tile--media:hover {
  filter: contrast(1.03) saturate(1.02);
}

.tile--note {
  padding: 18px;
}

.tile--intro {
  min-height: 318px;
}

.tile--mini,
.tile--foot {
  min-height: 178px;
}

.tile--resume {
  min-height: 330px;
}

.tile--contact {
  min-height: 256px;
}

.tile__headline,
.tile__title,
.project-headline {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.tile__headline {
  max-width: 11ch;
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  line-height: 0.94;
}

.tile__title {
  max-width: 12ch;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 0.98;
}

.tile__eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
}

.tile__copy,
.project-copy,
.project-note__copy,
.project-meta__list p {
  margin: 0;
}

.tile__overlay {
  position: absolute;
  inset: auto 16px 16px;
  display: grid;
  gap: 8px;
  color: #ffffff;
  z-index: 1;
}

.tile__overlay .tile__eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.tile__media {
  position: relative;
  min-height: var(--tile-height, 280px);
  background: var(--surface-strong);
  overflow: hidden;
}

.tile__media::before,
.tile__media::after {
  content: "";
  position: absolute;
  inset: 0;
}

.tile--project .tile__media {
  min-height: 340px;
}

.tile--calm .tile__media {
  --tile-height: 362px;
}

.tile--health .tile__media {
  --tile-height: 428px;
}

.tile--notes .tile__media {
  --tile-height: 388px;
}

.tile--device .tile__media {
  --tile-height: 300px;
}

.tile--poster .tile__media {
  --tile-height: 470px;
}

.tile--brand .tile__media {
  --tile-height: 330px;
}

.tile--archive .tile__media {
  --tile-height: 420px;
}

.tile--calm .tile__media::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 52% 18%, rgba(255, 255, 255, 0.84), transparent 16%),
    linear-gradient(180deg, #111111 0%, #3a3938 50%, #8d7565 100%);
}

.tile--calm .tile__media::after {
  inset: 14% 18%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 65%),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.4), transparent 16%);
}

.tile--health .tile__media::before {
  background:
    linear-gradient(180deg, #f2f0ea 0%, #ddd7cd 100%);
}

.tile--health .tile__media::after {
  inset: 16% 24%;
  border-radius: 38px;
  background:
    linear-gradient(180deg, #ffffff, #fbfaf7 55%, #ebe4d9 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.08);
}

.tile--notes .tile__media::before {
  background:
    linear-gradient(140deg, #161212 0%, #32241d 44%, #946651 100%);
}

.tile--notes .tile__media::after {
  inset: 9%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 34%, transparent 34% 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.tile--device .tile__media::before {
  background:
    linear-gradient(180deg, #ece9e3 0%, #dbd5cb 100%);
}

.tile--device .tile__media::after {
  inset: 14% 32%;
  border-radius: 30px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f3efe8 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    0 20px 34px rgba(0, 0, 0, 0.08);
}

.tile--poster .tile__media::before {
  background:
    linear-gradient(180deg, #f7f7f7 0%, #ececec 100%);
}

.tile--poster .tile__media::after {
  inset: 12%;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.08) 54%, transparent 54%),
    radial-gradient(circle at 76% 22%, rgba(255, 255, 255, 0.88), transparent 12%);
}

.tile--brand .tile__media::before {
  background:
    linear-gradient(180deg, #fcfbf8 0%, #eeebe5 100%);
}

.tile--brand .tile__media::after {
  inset: 20% 18%;
  border-radius: 28px;
  background:
    radial-gradient(circle at 26% 28%, rgba(0, 0, 0, 0.88), transparent 14%),
    radial-gradient(circle at 74% 28%, rgba(0, 0, 0, 0.88), transparent 14%),
    radial-gradient(circle at 50% 60%, rgba(0, 0, 0, 0.88), transparent 12%),
    #14b8b0;
}

.tile--archive .tile__media::before {
  background:
    linear-gradient(180deg, #111111 0%, #2d2d2d 48%, #d8d1c7 100%);
}

.tile--archive .tile__media::after {
  inset: 12%;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(255, 255, 255, 0.18) 48% 49%, transparent 49% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 60%);
}

.tile__list {
  display: grid;
  gap: 12px;
}

.tile__list span {
  display: inline-block;
  min-width: 56px;
  color: var(--muted);
}

.tile__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tile__links a,
.zeg-footer__inner a {
  position: relative;
}

.tile__links a::after,
.zeg-footer__inner a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.tile__links a:hover::after,
.zeg-footer__inner a:hover::after {
  transform: scaleX(1);
}

.zeg-footer {
  padding: 0 0 20px;
}

.zeg-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 6px 0;
}

.zeg-project-page {
  background: var(--bg);
}

.project-frame {
  width: min(var(--page-width), calc(100vw - 16px));
  margin: 0 auto;
  padding: 48px 8px 16px;
}

.project-cover {
  display: grid;
  gap: 10px;
}

.project-cover__hero,
.project-cover__gallery {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #dfd7cc;
}

.project-cover__hero::after,
.project-cover__gallery figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.1));
  pointer-events: none;
}

.project-cover__hero img,
.project-cover__gallery img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.project-cover__hero img {
  aspect-ratio: 16 / 10;
}

.project-cover__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: transparent;
}

.project-cover__gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #e6dfd5;
}

.project-cover__gallery img {
  aspect-ratio: 6 / 7;
}

.project-shell {
  column-count: 2;
  column-gap: var(--gap);
}

.project-panel {
  display: block;
  margin: 0 0 var(--gap);
  break-inside: avoid;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
}

.js-enhanced .project-panel {
  transform: translateY(18px);
  opacity: 0;
}

.js-enhanced .project-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-panel--intro,
.project-panel--note,
.project-panel--meta {
  padding: 18px;
}

.project-panel--intro {
  min-height: 320px;
}

.project-panel--hero .project-media {
  min-height: 470px;
}

.project-panel--wide .project-media {
  min-height: 400px;
}

.project-panel--tall .project-media {
  min-height: 520px;
}

.project-kicker {
  margin: 0 0 10px;
  font-size: var(--nav-size);
  line-height: var(--nav-line);
  letter-spacing: var(--nav-tracking);
  color: var(--muted);
}

.project-headline {
  max-width: 10ch;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.94;
}

.project-copy {
  max-width: 34ch;
}

.project-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.project-nav a {
  position: relative;
}

.project-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.project-note__title {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.project-meta__list {
  display: grid;
  gap: 12px;
}

.project-meta__list p {
  display: grid;
  gap: 2px;
}

.project-meta__list span {
  color: var(--muted);
}

.project-media {
  position: relative;
  background: var(--surface-strong);
  overflow: hidden;
}

.project-media::before,
.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
}

.project-media--calm::before,
.project-media--calm-alt::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #121212 0%, #3a3938 46%, #8a7262 100%);
}

.project-media--calm::after {
  inset: 12% 14%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 70%),
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.32), transparent 16%);
}

.project-media--calm-alt::after {
  inset: 14% 22%;
  background:
    linear-gradient(180deg, #f6f0e8 0%, #e6ddd1 100%);
  border-radius: 26px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    0 22px 40px rgba(0, 0, 0, 0.08);
}

.project-media--health::before,
.project-media--health-alt::before {
  background:
    linear-gradient(180deg, #f3f0ea 0%, #ddd7cc 100%);
}

.project-media--health::after {
  inset: 14% 24%;
  border-radius: 40px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8f5ef 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    0 24px 42px rgba(0, 0, 0, 0.08);
}

.project-media--health-alt::after {
  inset: 12%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82) 0 42%, transparent 42% 100%),
    radial-gradient(circle at 76% 28%, rgba(0, 0, 0, 0.74), transparent 12%);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.project-media--notes::before,
.project-media--notes-alt::before {
  background:
    linear-gradient(140deg, #161212 0%, #35251d 42%, #956a55 100%);
}

.project-media--notes::after {
  inset: 9%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 36%, transparent 36% 100%);
}

.project-media--notes-alt::after {
  inset: 12%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 100%);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .work-card__image,
  .tile,
  .project-panel,
  .tile__links a::after,
  .zeg-footer__inner a::after {
    transition: none;
  }
}

/* Quiet Health case study */
.project-case {
  padding-top: 48px;
}

.project-case article {
  display: grid;
  gap: 0;
}

.case-hero {
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr) auto auto;
  min-height: min(820px, calc(100svh - 64px));
  padding: clamp(30px, 4vw, 58px) 4px clamp(52px, 7vw, 92px);
  border: 0;
  background: transparent;
}

.case-hero__eyebrow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  font-size: var(--nav-size);
  line-height: var(--nav-line);
  color: var(--muted);
}

.case-hero__eyebrow span:nth-child(2) {
  text-align: center;
}

.case-hero__eyebrow span:last-child {
  text-align: right;
}

.case-hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.86fr);
  gap: clamp(36px, 7vw, 112px);
  align-items: end;
  padding: clamp(64px, 10vh, 118px) 0 clamp(44px, 7vh, 76px);
}

.case-hero__category,
.case-hero__summary p,
.case-hero__facts,
.case-hero__facts dt,
.case-hero__facts dd,
.case-visual,
.case-visual figcaption,
.case-overview p,
.case-overview h2,
.case-gallery figure,
.case-gallery figcaption {
  margin: 0;
}

.case-hero__category {
  margin-bottom: clamp(20px, 3vh, 32px);
  font-size: var(--nav-size);
  line-height: var(--nav-line);
  color: var(--muted);
}

.case-hero h1 {
  max-width: 7ch;
  margin: 0;
  font-size: clamp(5.2rem, 10.5vw, 9.6rem);
  line-height: 0.78;
  letter-spacing: -0.075em;
  font-weight: 400;
}

.case-hero__summary {
  display: grid;
  gap: clamp(24px, 4vh, 40px);
  max-width: 520px;
  padding-bottom: 4px;
}

.case-hero__summary .case-hero__lead {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--text);
}

.case-hero__summary > p:last-child {
  max-width: 42ch;
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.72;
  color: var(--muted);
}

.case-hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.case-hero__facts div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 0 22px;
  border-left: 1px solid var(--line);
}

.case-hero__facts div:first-child {
  padding-left: 0;
  border-left: 0;
}

.case-hero__facts dt,
.case-hero__facts dd,
.case-visual figcaption,
.case-gallery figcaption {
  font-size: var(--nav-size);
  line-height: var(--nav-line);
}

.case-hero__facts dt,
.case-visual figcaption,
.case-gallery figcaption {
  color: var(--muted);
}

.case-hero__nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  font-size: var(--nav-size);
  line-height: var(--nav-line);
}

.case-hero__nav a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.case-hero__nav a:hover {
  opacity: 0.55;
}

.case-visual--hero {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(82px, 12vw, 164px);
}

.case-visual--hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  background: #e7e0d7;
}

.case-visual figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 0 4px;
}

.case-visual figcaption span:last-child {
  text-align: right;
}

.case-overview {
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) minmax(300px, 0.92fr) minmax(320px, 1fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
  padding: 28px 4px clamp(92px, 12vw, 164px);
  border-top: 1px solid var(--line);
}

.case-overview__index {
  font-size: var(--nav-size);
  line-height: var(--nav-line);
  color: var(--muted);
}

.case-overview h2 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 5.2vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 400;
}

.case-overview__copy {
  display: grid;
  gap: 24px;
  max-width: 50ch;
}

.case-overview__copy p {
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  line-height: 1.75;
  color: var(--muted);
}

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

.case-gallery figure {
  display: grid;
  gap: 12px;
}

.case-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 6 / 7;
  object-fit: cover;
  border-radius: var(--radius);
  background: #e7e0d7;
}

.case-gallery figcaption {
  padding: 0 4px;
}

@media (max-width: 900px) {
  .case-hero {
    grid-template-rows: auto auto auto auto;
    min-height: auto;
  }

  .case-hero__main {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .case-hero__summary {
    margin-left: 30%;
  }

  .case-hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 0;
  }

  .case-hero__facts div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .case-overview {
    grid-template-columns: minmax(120px, 0.38fr) minmax(0, 1.62fr);
  }

  .case-overview__copy {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .project-case {
    padding-top: 42px;
  }

  .case-hero {
    padding-top: 22px;
    padding-bottom: 58px;
  }

  .case-hero__eyebrow {
    grid-template-columns: 1fr 1fr;
  }

  .case-hero__eyebrow span:nth-child(2) {
    display: none;
  }

  .case-hero h1 {
    font-size: clamp(4.1rem, 23vw, 6.2rem);
  }

  .case-hero__summary {
    margin-left: 0;
  }

  .case-hero__facts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .case-hero__facts div,
  .case-hero__facts div:nth-child(3) {
    grid-template-columns: 88px 1fr;
    gap: 14px;
    padding: 11px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-hero__facts div:last-child {
    border-bottom: 0;
  }

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

  .case-overview__copy {
    grid-column: 1;
  }

  .case-gallery {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-hero__nav a {
    transition: none;
  }
}

@media (max-width: 980px) {
  .zeg-welcome__canvas,
  .zeg-welcome__inner {
    min-height: 780px;
  }

  .zeg-welcome__inner {
    grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
  }

  .zeg-welcome__copy-block {
    max-width: 320px;
  }

  .welcome-scene {
    min-height: 560px;
  }

  .welcome-panel--index {
    top: auto;
    right: 28px;
    bottom: 96px;
  }

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

  .work-card {
    grid-template-rows: auto minmax(118px, auto);
  }

  .work-card__title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }

  .work-card__copy {
    max-width: 28ch;
  }

  .project-shell {
    column-count: 1;
  }
}

@media (max-width: 700px) {
  .zeg-welcome__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .zeg-welcome__copy-block {
    max-width: 640px;
  }

  .welcome-scene {
    min-height: 600px;
  }
}

@media (max-width: 720px) {
  .zeg-menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .zeg-nav {
    position: absolute;
    top: calc(100% + 6px);
    right: 8px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    mix-blend-mode: normal;
  }

  .zeg-nav.is-open {
    display: flex;
    color: var(--text);
  }

  .zeg-welcome {
    min-height: auto;
    margin-bottom: 26px;
  }

  .zeg-welcome__canvas,
  .zeg-welcome__inner {
    min-height: 780px;
  }

  .zeg-welcome__inner {
    padding: 92px 20px 120px;
  }

  .zeg-welcome__headline {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .zeg-welcome__copy {
    max-width: 27ch;
    font-size: 0.98rem;
  }

  .zeg-welcome__note {
    max-width: 30ch;
    font-size: 0.72rem;
    letter-spacing: 0.11em;
  }

  .welcome-scene {
    min-height: 560px;
    border-radius: 28px;
  }

  .welcome-panel {
    position: relative;
  }

  .welcome-panel--statement,
  .welcome-panel--index,
  .welcome-panel--stamp {
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: auto;
    max-width: none;
  }

  .welcome-scene {
    display: grid;
    gap: 12px;
    padding: 18px;
    align-content: start;
  }

  .welcome-panel--statement {
    padding: 22px 20px 24px;
  }

  .welcome-panel--index,
  .welcome-panel--stamp {
    padding: 18px;
  }

  .welcome-panel--stamp {
    border-radius: 22px;
  }

  .welcome-scene__ring {
    right: 18px;
    bottom: 18px;
    width: 112px;
    box-shadow:
      0 0 0 10px rgba(255, 255, 255, 0.12),
      inset 0 0 30px rgba(255, 255, 255, 0.12);
  }

  .welcome-scene__measure {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 6px;
    padding: 0 2px;
  }

  .zeg-welcome__foot {
    left: 18px;
    right: 18px;
    bottom: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .zeg-work-section__lead {
    margin-bottom: 12px;
  }

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

  .work-card__meta {
    gap: 5px;
    padding-bottom: 4px;
  }

  .work-card__title {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1;
  }

  .work-card__copy {
    max-width: 32ch;
    font-size: 0.94rem;
  }

  .work-card__frame {
    aspect-ratio: 4 / 5;
  }

  .zeg-header__inner {
    mix-blend-mode: normal;
    color: var(--text);
  }

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

@media (max-width: 560px) {
  .zeg-welcome__canvas,
  .zeg-welcome__inner {
    min-height: 720px;
  }

  .zeg-welcome__eyebrow {
    margin-bottom: 12px;
  }

  .zeg-welcome__copy {
    margin-top: 24px;
    line-height: 1.58;
  }

  .welcome-panel__headline {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .welcome-panel__body,
  .welcome-index,
  .welcome-stamp {
    font-size: 0.8rem;
  }

  .welcome-scene__measure {
    flex-wrap: wrap;
  }

  .tile--intro {
    min-height: 280px;
  }

  .tile__headline,
  .project-headline {
    max-width: none;
  }
}

/* Reference-aligned override layer */
:root {
  --surface: #f1f1f1;
  --surface-strong: #ebebeb;
  --welcome-bg: #f1f1f1;
  --line: rgba(0, 0, 0, 0.06);
  --radius: 10px;
  --gap: 8px;
  --page-width: 1368px;
  --nav-size: 13px;
  --nav-line: 20px;
  --nav-tracking: 0;
  --body-size: 14px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 28px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--text);
  cursor: pointer;
  font-size: var(--nav-size);
  line-height: var(--nav-line);
  transition:
    background-color 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease;
}

.theme-toggle:hover {
  background: var(--surface-strong);
}

.theme-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

body {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

.zeg-header__inner,
.zeg-main,
.zeg-footer__inner,
.project-frame {
  width: min(var(--page-width), calc(100vw - 12px));
}

.zeg-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 2px 0;
}

.zeg-brand,
.zeg-nav a,
.zeg-header__meta a,
.zeg-menu-toggle,
.zeg-work-section__lead p,
.work-card__index,
.hero-block__eyebrow,
.hero-block__label,
.hero-block__tag,
.zeg-footer__inner {
  font-size: var(--nav-size);
  line-height: var(--nav-line);
  letter-spacing: 0;
  font-weight: 400;
}

.zeg-brand {
  justify-self: start;
}

.zeg-nav {
  justify-self: center;
  gap: 12px;
}

.zeg-header__meta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.zeg-main {
  padding: 42px 0 18px;
}

.zeg-welcome {
  min-height: auto;
  margin-bottom: 14px;
}

.zeg-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
}

.hero-block {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

.hero-block--intro,
.hero-block--mark {
  min-height: 320px;
  padding: 18px;
}

.hero-block--intro {
  flex-direction: column;
  justify-content: space-between;
}

.hero-block--feature {
  min-height: 360px;
  align-items: stretch;
  background: #e9e9e9;
}

.hero-block__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-block__label {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
  color: rgba(0, 0, 0, 0.78);
}

.hero-block__eyebrow,
.hero-block__copy,
.hero-block__tag {
  margin: 0;
  color: rgba(0, 0, 0, 0.62);
}

.hero-block__title {
  margin: 0;
  max-width: 9ch;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.hero-block__copy {
  max-width: 22ch;
  font-size: 0.94rem;
  line-height: 1.45;
}

.hero-block--mark {
  align-items: center;
  justify-content: center;
}

.hero-mark {
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 1;
  letter-spacing: -0.08em;
  color: rgba(0, 0, 0, 0.9);
}

.hero-block__tag {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
}

.zeg-work-section {
  padding-top: 0;
  margin-bottom: 18px;
  scroll-margin-top: 44px;
}

.zeg-work-section__lead {
  margin: 0 0 8px;
  padding: 0 2px;
}

.zeg-work-section--play {
  margin-bottom: 12px;
}

.zeg-work-section--play .work-card {
  grid-template-rows: auto;
  gap: 0;
}

.zeg-work-section--play .work-card__meta {
  display: none;
}

.work-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 10px 8px;
}

.work-card {
  grid-template-rows: auto auto;
  gap: 6px;
}

.work-card__frame {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

.work-card__frame::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.04));
}

.work-card__meta {
  gap: 0;
  padding: 0 2px 2px;
}

.work-card__index {
  margin-bottom: 2px;
  color: rgba(0, 0, 0, 0.44);
}

.work-card__title {
  max-width: 12ch;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.work-card__copy {
  max-width: 22ch;
  margin-top: 4px;
  font-size: 0.9rem;
  line-height: 1.38;
  color: rgba(0, 0, 0, 0.62);
}

.work-card--sleep .work-card__frame,
.work-card--pairing .work-card__frame,
.work-card--systems .work-card__frame,
.work-card--material .work-card__frame,
.work-card--motion .work-card__frame {
  aspect-ratio: 1;
}

.work-card--location .work-card__frame {
  aspect-ratio: 1;
}

.zeg-footer {
  padding-bottom: 12px;
}

.zeg-footer__inner {
  padding: 6px 2px 0;
}

@media (max-width: 760px) {
  .zeg-header__inner {
    grid-template-columns: 1fr auto auto;
  }

  .zeg-header__meta {
    gap: 8px;
  }

  .zeg-home-hero {
    grid-template-columns: 1fr 1fr;
  }

  .hero-block--mark {
    min-height: 240px;
  }

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

  .work-card__title {
    font-size: clamp(1.6rem, 4vw, 2rem);
  }
}

@media (max-width: 560px) {
  .zeg-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .zeg-header__meta {
    display: flex;
  }

  .zeg-header__meta a {
    display: none;
  }

  .zeg-main {
    padding-top: 40px;
  }

  .zeg-home-hero {
    grid-template-columns: 1fr;
  }

  .hero-block--intro,
  .hero-block--mark,
  .hero-block--feature {
    min-height: 240px;
  }

  .hero-block--feature {
    min-height: 300px;
  }

  .hero-block__title {
    max-width: 10ch;
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .work-gallery {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .work-card__title {
    max-width: 100%;
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }

  .work-card__copy {
    max-width: 26ch;
  }
}

/* Site-wide dark mode */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d0e;
  --surface: #171719;
  --surface-strong: #222225;
  --welcome-bg: #15171b;
  --text: #f2f2f0;
  --muted: rgba(242, 242, 240, 0.58);
  --line: rgba(255, 255, 255, 0.12);
}

body,
.zeg-header__inner,
.zeg-nav,
.work-card__frame,
.work-card__meta,
.project-panel,
.theme-toggle,
.welcome-stage,
.welcome-stage__frame,
.welcome-stage__link {
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    opacity 0.28s ease,
    transform 0.28s ease;
}

html[data-theme="dark"] .zeg-header__inner {
  color: var(--text);
}

html[data-theme="dark"] .zeg-nav {
  background: rgba(13, 13, 14, 0.96);
}

html[data-theme="dark"] .work-card__index,
html[data-theme="dark"] .hero-block__eyebrow,
html[data-theme="dark"] .hero-block__copy,
html[data-theme="dark"] .hero-block__tag,
html[data-theme="dark"] .work-card__copy,
html[data-theme="dark"] .welcome-stage__eyebrow,
html[data-theme="dark"] .welcome-stage__lead,
html[data-theme="dark"] .welcome-stage__footer,
html[data-theme="dark"] .welcome-stage__chip,
html[data-theme="dark"] .project-kicker,
html[data-theme="dark"] .project-meta__list span {
  color: var(--muted);
}

html[data-theme="dark"] .welcome-stage {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    linear-gradient(180deg, #181a1f 0%, #111216 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .welcome-stage__title {
  color: rgba(247, 248, 250, 0.96);
}

html[data-theme="dark"] .welcome-stage__aura--one {
  background: radial-gradient(circle, rgba(70, 87, 116, 0.62), rgba(70, 87, 116, 0));
}

html[data-theme="dark"] .welcome-stage__aura--two {
  background: radial-gradient(circle, rgba(48, 56, 72, 0.68), rgba(48, 56, 72, 0));
}

html[data-theme="dark"] .welcome-stage__mesh {
  opacity: 0.45;
}

html[data-theme="dark"] .welcome-stage__frame {
  background: rgba(255, 255, 255, 0.055);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .welcome-stage__frame::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.1)),
    radial-gradient(circle at 50% 6%, rgba(255, 255, 255, 0.09), transparent 24%);
}

html[data-theme="dark"] .welcome-stage__link {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(247, 248, 250, 0.94);
}

html[data-theme="dark"] .welcome-stage__link:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .work-card__frame::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(0, 0, 0, 0.14));
}

html[data-theme="dark"] .project-cover__hero::after,
html[data-theme="dark"] .project-cover__gallery figure::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.16));
}

@media (prefers-reduced-motion: reduce) {
  body,
  .zeg-header__inner,
  .zeg-nav,
  .work-card__frame,
  .work-card__meta,
  .project-panel,
  .theme-toggle,
  .welcome-stage,
  .welcome-stage__frame,
  .welcome-stage__link {
    transition: none;
  }
}

/* Welcome stage refinement */
.zeg-home-hero {
  display: block;
}

.welcome-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  min-height: calc(100vh - 74px);
  padding: clamp(22px, 3vw, 30px);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #f1f2f4 0%, #ececef 100%);
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.welcome-stage__aura,
.welcome-stage__mesh {
  position: absolute;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

.welcome-stage__aura {
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.82;
}

.welcome-stage__aura--one {
  top: -8%;
  right: 8%;
  width: clamp(180px, 22vw, 300px);
  height: clamp(180px, 22vw, 300px);
  background: radial-gradient(circle, rgba(208, 221, 241, 0.9), rgba(208, 221, 241, 0));
  animation: welcomeDrift 14s ease-in-out infinite alternate;
}

.welcome-stage__aura--two {
  left: 18%;
  bottom: -12%;
  width: clamp(220px, 26vw, 360px);
  height: clamp(220px, 26vw, 360px);
  background: radial-gradient(circle, rgba(235, 239, 247, 0.96), rgba(235, 239, 247, 0));
  animation: welcomeDrift 18s ease-in-out infinite alternate-reverse;
}

.welcome-stage__mesh {
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.26), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 44%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 80px
    );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.1));
}

.welcome-stage__content,
.welcome-stage__visual,
.welcome-stage__footer {
  position: relative;
  z-index: 1;
}

.welcome-stage__content {
  display: grid;
  align-content: center;
  gap: 18px;
  max-width: 460px;
  min-width: 0;
}

.welcome-stage__eyebrow,
.welcome-stage__lead,
.welcome-stage__footer,
.welcome-stage__chip,
.welcome-stage__link {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

.welcome-stage__eyebrow {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: rgba(0, 0, 0, 0.46);
}

.welcome-stage__title {
  margin: 0;
  max-width: 8ch;
  font-size: clamp(3.3rem, 8vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
  font-weight: 400;
  color: rgba(7, 17, 31, 0.96);
  text-wrap: balance;
}

.welcome-stage__lead {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.42;
  color: rgba(0, 0, 0, 0.62);
}

.welcome-stage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.welcome-stage__link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.54);
  color: rgba(7, 17, 31, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.35s var(--ease),
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.welcome-stage__link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 0, 0, 0.14);
}

.welcome-stage__visual {
  min-width: 0;
  display: grid;
  align-items: center;
}

.welcome-stage__frame {
  position: relative;
  width: min(100%, 760px);
  margin-left: auto;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
  box-shadow:
    0 20px 46px rgba(28, 35, 48, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  transform: translateY(0);
  animation: welcomeFloat 10s ease-in-out infinite;
}

.welcome-stage__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.02)),
    radial-gradient(circle at 50% 6%, rgba(255, 255, 255, 0.24), transparent 24%);
  pointer-events: none;
}

.welcome-stage__media {
  display: block;
  width: 100%;
  aspect-ratio: 1.28;
  object-fit: cover;
}

.welcome-stage__chip {
  position: absolute;
  max-width: 220px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(28, 35, 48, 0.06);
}

.welcome-stage__chip--top {
  left: 18px;
  top: 22px;
  animation: welcomeFloat 11s ease-in-out infinite reverse;
}

.welcome-stage__chip--bottom {
  right: 18px;
  bottom: 22px;
  text-align: right;
  animation: welcomeFloat 13s ease-in-out infinite;
}

.welcome-stage__footer {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  line-height: 20px;
  color: rgba(0, 0, 0, 0.38);
}

@keyframes welcomeFloat {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -6px, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes welcomeDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(10px, -12px, 0) scale(1.04);
  }
}

@media (max-width: 980px) {
  .welcome-stage {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 22px;
    padding-bottom: 72px;
  }

  .welcome-stage__content {
    max-width: 520px;
  }

  .welcome-stage__title {
    max-width: 10ch;
    font-size: clamp(3rem, 11vw, 4.8rem);
  }

  .welcome-stage__lead {
    max-width: 28ch;
  }

  .welcome-stage__frame {
    width: 100%;
  }

  .welcome-stage__media {
    aspect-ratio: 1.34;
  }
}

@media (max-width: 760px) {
  .welcome-stage {
    padding: 20px;
    gap: 18px;
  }

  .welcome-stage__title {
    font-size: clamp(2.8rem, 11vw, 4rem);
  }

  .welcome-stage__lead {
    font-size: 1rem;
  }

  .welcome-stage__chip {
    max-width: 180px;
    font-size: 12px;
    line-height: 18px;
  }

  .welcome-stage__footer {
    left: 20px;
    right: 20px;
    bottom: 18px;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .welcome-stage {
    padding: 18px;
    border-radius: 10px;
  }

  .welcome-stage__actions {
    gap: 8px;
  }

  .welcome-stage__link {
    min-height: 34px;
    padding: 0 12px;
  }

  .welcome-stage__frame {
    border-radius: 18px;
  }

  .welcome-stage__chip {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    max-width: none;
    margin-top: 10px;
  }

  .welcome-stage__visual {
    gap: 0;
  }

  .welcome-stage__footer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 6px;
    padding-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-stage__aura,
  .welcome-stage__frame,
  .welcome-stage__chip,
  .welcome-stage__link {
    animation: none !important;
    transition: none !important;
  }
}

/* About introduction */
.zeg-about {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(440px, 1.18fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(38px, 5vw, 82px);
  row-gap: clamp(30px, 4vh, 52px);
  align-items: stretch;
  min-height: calc(100svh - 48px);
  margin: 0 0 18px;
  padding: clamp(28px, 4vw, 58px);
  border-radius: 0;
  background: transparent;
  scroll-margin-top: 44px;
}

.zeg-about__top {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.zeg-about__top p,
.zeg-about__portrait,
.zeg-about__portrait figcaption,
.zeg-about__content p,
.zeg-about__content h2,
.zeg-about__experience h3 {
  margin: 0;
}

.zeg-about__top p,
.zeg-about__portrait figcaption,
.zeg-about__kicker,
.zeg-about__experience-head span,
.zeg-about__role,
.zeg-about__notes {
  font-size: var(--nav-size);
  line-height: var(--nav-line);
}

.zeg-about__top p:nth-child(2) {
  text-align: center;
}

.zeg-about__top p:last-child {
  text-align: right;
}

.zeg-about__portrait {
  display: grid;
  grid-template-rows: auto auto;
  align-self: start;
  min-height: 0;
  gap: 14px;
}

.zeg-about__portrait-frame {
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.36), transparent 48%),
    var(--surface-strong);
}

.zeg-about__portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: inherit;
}

.zeg-about__portrait img {
  position: absolute;
  left: 50%;
  bottom: -3%;
  width: 116%;
  max-width: none;
  height: auto;
  display: block;
  filter: contrast(1.02);
  transform: translateX(-50%);
}

.zeg-about__portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.zeg-about__portrait figcaption span:last-child {
  text-align: right;
}

.zeg-about__content {
  display: grid;
  align-content: start;
}

.zeg-about__kicker {
  margin-bottom: clamp(16px, 2.5vh, 26px) !important;
  color: var(--muted);
}

.zeg-about__content h2 {
  max-width: 12ch;
  font-size: clamp(3rem, 5.35vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 400;
  text-wrap: balance;
}

.zeg-about__intro {
  max-width: 55ch;
  margin-top: clamp(24px, 4vh, 44px) !important;
  font-size: clamp(0.95rem, 1.12vw, 1.08rem);
  line-height: 1.75;
  color: var(--muted);
}

.zeg-about__experience {
  display: grid;
  margin-top: clamp(24px, 3.8vh, 42px);
  border-top: 1px solid var(--line);
}

.zeg-about__experience article {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(0, 1.28fr);
  column-gap: 26px;
  padding: 14px 0 15px;
  border-bottom: 1px solid var(--line);
}

.zeg-about__experience-head {
  display: grid;
  align-content: start;
  gap: 2px;
}

.zeg-about__experience h3 {
  font-size: clamp(0.94rem, 1.1vw, 1.05rem);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.zeg-about__experience-head span,
.zeg-about__role {
  color: var(--muted);
}

.zeg-about__experience article > p:last-child {
  grid-column: 2;
  margin-top: 5px;
  font-size: clamp(0.88rem, 1vw, 0.98rem);
  line-height: 1.55;
  color: var(--muted);
}

.zeg-about__notes {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px !important;
  color: var(--muted);
}

.zeg-about__notes span:last-child {
  text-align: right;
}

.js-enhanced .zeg-about__top,
.js-enhanced .zeg-about__portrait,
.js-enhanced .zeg-about__content > * {
  opacity: 0;
  transform: translateY(14px);
}

.js-enhanced .zeg-about__portrait-frame {
  clip-path: inset(0 0 14% 0 round calc(var(--radius) - 2px));
}

.js-enhanced .zeg-about__portrait img {
  transform: translateX(-50%) translateY(10px) scale(1.035);
}

.js-enhanced .zeg-about.is-visible .zeg-about__top,
.js-enhanced .zeg-about.is-visible .zeg-about__portrait,
.js-enhanced .zeg-about.is-visible .zeg-about__content > * {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 1.05s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-enhanced .zeg-about.is-visible .zeg-about__portrait-frame {
  clip-path: inset(0 0 0 0 round calc(var(--radius) - 2px));
  transition: clip-path 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-enhanced .zeg-about.is-visible .zeg-about__portrait img {
  transform: translateX(-50%) translateY(0) scale(1);
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-enhanced .zeg-about.is-visible .zeg-about__portrait {
  transition-delay: 0.08s;
}

.js-enhanced .zeg-about.is-visible .zeg-about__content > :nth-child(1) {
  transition-delay: 0.12s;
}

.js-enhanced .zeg-about.is-visible .zeg-about__content > :nth-child(2) {
  transition-delay: 0.17s;
}

.js-enhanced .zeg-about.is-visible .zeg-about__content > :nth-child(3) {
  transition-delay: 0.22s;
}

.js-enhanced .zeg-about.is-visible .zeg-about__content > :nth-child(4) {
  transition-delay: 0.27s;
}

.js-enhanced .zeg-about.is-visible .zeg-about__content > :nth-child(5) {
  transition-delay: 0.32s;
}

@media (max-width: 1040px) {
  .zeg-about {
    grid-template-columns: minmax(240px, 0.72fr) minmax(390px, 1.28fr);
    column-gap: 34px;
  }

  .zeg-about__content h2 {
    font-size: clamp(2.9rem, 6vw, 4.7rem);
  }
}

@media (max-width: 760px) {
  .zeg-about {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: auto;
    gap: 30px;
    padding: 22px 18px 34px;
  }

  .zeg-about__top {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .zeg-about__top p:nth-child(2) {
    text-align: right;
  }

  .zeg-about__top p:last-child {
    display: none;
  }

  .zeg-about__portrait-frame {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .zeg-about__content h2 {
    font-size: clamp(2.8rem, 13vw, 4.25rem);
  }

  .zeg-about__experience article {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .zeg-about__experience article > p:last-child {
    grid-column: 1;
    margin-top: 0;
  }

  .zeg-about__notes {
    display: grid;
    gap: 6px;
  }

  .zeg-about__notes span:last-child {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-enhanced .zeg-about__top,
  .js-enhanced .zeg-about__portrait,
  .js-enhanced .zeg-about__content > *,
  .js-enhanced .zeg-about__portrait-frame,
  .js-enhanced .zeg-about__portrait img {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none !important;
  }
}

/* Frameless hero: keep the current grid and spacing, remove only the panel treatment. */
.welcome-stage,
html[data-theme="dark"] .welcome-stage {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.welcome-stage__aura,
.welcome-stage__mesh {
  display: none;
}

/* Three-part scroll motion: home, about, and projects. */
html {
  --section-entry-y: 12px;
  --section-motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-scroll-direction="up"] {
  --section-entry-y: -12px;
}

.js-enhanced [data-motion-section="home"] .welcome-stage__content,
.js-enhanced [data-motion-section="home"] .welcome-stage__visual,
.js-enhanced [data-motion-section="about"] .zeg-about__portrait,
.js-enhanced [data-motion-section="about"] .zeg-about__content,
.js-enhanced [data-motion-section="projects"] .zeg-work-section__lead.is-visible,
.js-enhanced [data-motion-section="projects"] .work-gallery {
  will-change: transform, opacity;
  transition:
    transform 1.25s var(--section-motion-ease),
    opacity 1.05s var(--section-motion-ease);
}

.js-enhanced [data-motion-section="home"]:not(.is-motion-active) .welcome-stage__content,
.js-enhanced [data-motion-section="about"]:not(.is-motion-active) .zeg-about__content,
.js-enhanced [data-motion-section="projects"]:not(.is-motion-active) .zeg-work-section__lead.is-visible,
.js-enhanced [data-motion-section="projects"]:not(.is-motion-active) .work-gallery {
  opacity: 0.88;
  transform: translate3d(0, var(--section-entry-y), 0);
}

.js-enhanced [data-motion-section="home"]:not(.is-motion-active) .welcome-stage__visual,
.js-enhanced [data-motion-section="about"]:not(.is-motion-active) .zeg-about__portrait {
  opacity: 0.92;
  transform: translate3d(0, calc(var(--section-entry-y) * 0.65), 0);
}

.js-enhanced [data-motion-section].is-motion-active .welcome-stage__content,
.js-enhanced [data-motion-section].is-motion-active .welcome-stage__visual,
.js-enhanced [data-motion-section].is-motion-active .zeg-about__portrait,
.js-enhanced [data-motion-section].is-motion-active .zeg-about__content,
.js-enhanced [data-motion-section].is-motion-active .zeg-work-section__lead.is-visible,
.js-enhanced [data-motion-section].is-motion-active .work-gallery {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.js-enhanced [data-motion-section="home"] .welcome-stage__visual,
.js-enhanced [data-motion-section="about"] .zeg-about__portrait,
.js-enhanced [data-motion-section="projects"] .work-gallery {
  transition-delay: 0.08s;
}

.js-enhanced [data-motion-section="projects"] .work-card:nth-child(2) {
  transition-delay: 0.1s;
}

.js-enhanced [data-motion-section="projects"] .work-card:nth-child(3) {
  transition-delay: 0.2s;
}

.js-enhanced [data-motion-section] .reveal {
  transition-duration: 1.05s;
  transition-timing-function: var(--section-motion-ease);
}

@media (prefers-reduced-motion: reduce) {
  .js-enhanced [data-motion-section] .welcome-stage__content,
  .js-enhanced [data-motion-section] .welcome-stage__visual,
  .js-enhanced [data-motion-section] .zeg-about__portrait,
  .js-enhanced [data-motion-section] .zeg-about__content,
  .js-enhanced [data-motion-section] .zeg-work-section__lead,
  .js-enhanced [data-motion-section] .work-gallery {
    opacity: 1;
    transform: none;
    transition: none !important;
  }
}

/* Coze Video case-study documents */
.case-visual--coze img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.case-document-flow {
  display: grid;
  gap: clamp(72px, 9vw, 126px);
}

.case-visual--document {
  display: grid;
  gap: 12px;
  margin: 0;
}

.case-visual--document img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.case-visual--ocestra img,
.case-document-flow--ocestra .case-visual--document img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.case-visual--yinshouke img,
.case-document-flow--yinshouke .case-visual--document img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f5f7fb;
}

.zeg-project-page {
  overflow-x: hidden;
}

.case-visual--document figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 0 4px;
  font-size: var(--nav-size);
  line-height: var(--nav-line);
  color: var(--muted);
}

.case-visual--document figcaption span:last-child {
  text-align: right;
}

.case-overview--chapter {
  padding-bottom: 0;
}

@media (max-width: 620px) {
  .case-document-flow {
    gap: 64px;
  }

  .case-visual--document figcaption {
    display: grid;
    gap: 2px;
  }

  .case-visual--document figcaption span:last-child {
    text-align: left;
  }
}

/* Centered cinematic home hero */
.zeg-welcome .welcome-stage,
html[data-theme="dark"] .zeg-welcome .welcome-stage {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  min-height: calc(100svh - 52px);
  padding: clamp(72px, 10vh, 118px) clamp(24px, 6vw, 88px) 88px;
  border-radius: 0;
  background: #080b12;
  box-shadow: none;
}

.zeg-welcome .welcome-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(4, 7, 12, 0.34);
}

.zeg-welcome .welcome-stage__content {
  justify-items: center;
  align-content: center;
  gap: clamp(16px, 2.5vh, 25px);
  width: min(100%, 900px);
  max-width: 900px;
  text-align: center;
}

.zeg-welcome .welcome-stage__eyebrow {
  color: rgba(255, 255, 255, 0.64);
}

.zeg-welcome .welcome-stage__title,
html[data-theme="dark"] .zeg-welcome .welcome-stage__title {
  max-width: none;
  font-size: clamp(5rem, 10vw, 9.2rem);
  line-height: 0.86;
  color: rgba(255, 255, 255, 0.97);
  text-shadow: 0 10px 42px rgba(0, 0, 0, 0.2);
}

.zeg-welcome .welcome-stage__lead,
html[data-theme="dark"] .zeg-welcome .welcome-stage__lead {
  max-width: 48ch;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  text-wrap: balance;
}

.zeg-welcome .welcome-stage__actions {
  justify-content: center;
  padding-top: 6px;
}

.zeg-welcome .welcome-stage__link,
html[data-theme="dark"] .zeg-welcome .welcome-stage__link {
  min-height: 40px;
  padding: 0 18px;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(8, 11, 18, 0.42);
  color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
}

.zeg-welcome .welcome-stage__link:hover,
html[data-theme="dark"] .zeg-welcome .welcome-stage__link:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
}

.zeg-welcome .welcome-stage__visual {
  display: none;
}

.zeg-welcome .welcome-stage__footer,
html[data-theme="dark"] .zeg-welcome .welcome-stage__footer {
  left: clamp(20px, 3vw, 42px);
  right: clamp(20px, 3vw, 42px);
  bottom: 22px;
  color: rgba(255, 255, 255, 0.52);
}

@media (max-width: 620px) {
  .zeg-welcome .welcome-stage,
  html[data-theme="dark"] .zeg-welcome .welcome-stage {
    min-height: calc(100svh - 46px);
    padding: 78px 20px 92px;
    background-position: 58% center;
  }

  .zeg-welcome .welcome-stage__title,
  html[data-theme="dark"] .zeg-welcome .welcome-stage__title {
    font-size: clamp(4rem, 22vw, 6.4rem);
  }

  .zeg-welcome .welcome-stage__lead,
  html[data-theme="dark"] .zeg-welcome .welcome-stage__lead {
    max-width: 31ch;
  }

  .zeg-welcome .welcome-stage__footer,
  html[data-theme="dark"] .zeg-welcome .welcome-stage__footer {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    margin-top: 0;
    padding-top: 0;
  }
}

/* Full-bleed home and a soft handoff into About. */
body.zeg-page {
  overflow-x: clip;
}

.zeg-main {
  padding-top: 0;
}

.zeg-welcome {
  left: 50%;
  width: 100vw;
  margin: 0 0 0 -50vw;
}

.zeg-welcome .welcome-stage,
html[data-theme="dark"] .zeg-welcome .welcome-stage {
  min-height: 100svh;
}

.zeg-welcome .welcome-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: clamp(150px, 28vh, 260px);
  background: linear-gradient(
    180deg,
    rgba(8, 11, 18, 0) 0%,
    rgba(8, 11, 18, 0.28) 34%,
    rgba(8, 11, 18, 0.82) 76%,
    #080b12 100%
  );
  pointer-events: none;
}

.welcome-stage__media-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #080b12;
  opacity: 0;
  transform: scale(1.018);
  transition:
    opacity 1.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 2.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.welcome-stage__background-media,
.welcome-stage__media-layer > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.045) translate3d(-0.35%, 0.2%, 0);
  will-change: transform;
  animation: landingMediaDrift 18s ease-in-out 1.1s infinite alternate;
}

.landing-ready .welcome-stage__media-layer {
  opacity: 1;
  transform: scale(1);
}

.zeg-welcome .welcome-stage__content,
.zeg-welcome .welcome-stage__footer {
  z-index: 3;
}

.js-enhanced .welcome-stage.reveal,
.js-enhanced .welcome-stage.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}

.js-enhanced [data-motion-section="home"] .welcome-stage__content {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.js-enhanced .welcome-stage__content > *,
.js-enhanced .welcome-stage__footer > * {
  opacity: 0;
  filter: blur(7px);
  transform: translate3d(0, 15px, 0);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-enhanced.landing-ready .welcome-stage__content > *,
.js-enhanced.landing-ready .welcome-stage__footer > * {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
  animation: landingCopyReveal 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.js-enhanced.landing-ready .welcome-stage__eyebrow {
  transition-delay: 0.26s;
  animation-delay: 0.26s;
}

.js-enhanced.landing-ready .welcome-stage__title {
  transition-delay: 0.42s;
  animation-delay: 0.42s;
}

.js-enhanced.landing-ready .welcome-stage__lead {
  transition-delay: 0.62s;
  animation-delay: 0.62s;
}

.js-enhanced.landing-ready .welcome-stage__actions {
  transition-delay: 0.82s;
  animation-delay: 0.82s;
}

.js-enhanced.landing-ready .welcome-stage__footer > :nth-child(1) {
  transition-delay: 1.04s;
  animation-delay: 1.04s;
}

.js-enhanced.landing-ready .welcome-stage__footer > :nth-child(2) {
  transition-delay: 1.12s;
  animation-delay: 1.12s;
}

.js-enhanced.landing-ready .welcome-stage__footer > :nth-child(3) {
  transition-delay: 1.2s;
  animation-delay: 1.2s;
}

@keyframes landingMediaDrift {
  0% {
    transform: scale(1.045) translate3d(-0.35%, 0.2%, 0);
  }

  100% {
    transform: scale(1.085) translate3d(0.45%, -0.35%, 0);
  }
}

@keyframes landingCopyReveal {
  0% {
    opacity: 0;
    filter: blur(7px);
    transform: translate3d(0, 15px, 0);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

.home-about-transition {
  position: relative;
  left: 50%;
  width: 100vw;
  height: clamp(96px, 14vh, 168px);
  margin: -1px 0 0 -50vw;
  background: linear-gradient(
    180deg,
    #080b12 0%,
    color-mix(in srgb, #080b12 72%, var(--bg)) 34%,
    color-mix(in srgb, #080b12 24%, var(--bg)) 72%,
    var(--bg) 100%
  );
  pointer-events: none;
}

.zeg-about {
  margin-top: 0;
}

@media (max-width: 620px) {
  .zeg-welcome .welcome-stage,
  html[data-theme="dark"] .zeg-welcome .welcome-stage {
    min-height: 100svh;
  }

  .home-about-transition {
    height: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-stage__media-layer,
  .js-enhanced .welcome-stage__content > *,
  .js-enhanced .welcome-stage__footer > * {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
    transition: none !important;
  }

  .welcome-stage__background-media,
  .welcome-stage__media-layer > video {
    animation: none;
    transform: scale(1.045);
  }
}

/* DreamX — Play 01 */
.work-card--dreamx .work-card__frame {
  background: #090610;
}

.work-card--dreamx .work-card__image {
  object-position: 56% center;
  filter: saturate(0.86) contrast(1.03);
}

.work-card--dreamx:hover .work-card__image {
  filter: saturate(1) contrast(1.04);
}

.dreamx-case .case-hero h1 {
  max-width: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5.6rem, 12vw, 11rem);
  line-height: 0.78;
  letter-spacing: -0.07em;
}

.dreamx-case .case-hero__lead,
.dreamx-case .case-overview h2 {
  text-wrap: balance;
}

.dreamx-case .case-overview__index {
  color: #be3d84;
}

html[data-theme="dark"] .dreamx-case .case-overview__index {
  color: #e77ab6;
}

.case-visual--dreamx img,
.case-document-flow--dreamx .case-visual--dreamx-screen img,
.case-document-flow--dreamx .case-visual--dreamx-art img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #08050f;
}

.case-visual--dreamx img,
.case-document-flow--dreamx .case-visual--dreamx-art img {
  object-position: center;
}

.case-document-flow--dreamx .case-visual--dreamx-screen img {
  object-position: center top;
}

.dreamx-case code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
  color: var(--text);
}

@media (max-width: 620px) {
  .dreamx-case .case-hero h1 {
    font-size: clamp(4.5rem, 25vw, 7rem);
  }

  .case-visual--dreamx img,
  .case-document-flow--dreamx .case-visual--dreamx-screen img,
  .case-document-flow--dreamx .case-visual--dreamx-art img {
    aspect-ratio: 4 / 3;
  }
}
