:root {
  --bg: #030303;
  --fg: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.52);
  --faint: rgba(255, 255, 255, 0.18);
  --line: rgba(255, 255, 255, 0.22);
  --stage-a: 255, 72, 16;
  --stage-b: 255, 24, 18;
  --stage-c: 255, 178, 98;
  --stage-d: 22, 72, 190;
  --flow-x: 0px;
  --flow-y: 0px;
  --flow-x-soft: 0px;
  --flow-y-soft: 0px;
  --flow-x-micro: 0px;
  --flow-y-micro: 0px;
  --glass-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3CradialGradient id='g' cx='35%25' cy='30%25' r='70%25'%3E%3Cstop offset='0%25' stop-color='white' stop-opacity='.95'/%3E%3Cstop offset='38%25' stop-color='%23fff1dd' stop-opacity='.62'/%3E%3Cstop offset='70%25' stop-color='%23ff6a2a' stop-opacity='.34'/%3E%3Cstop offset='100%25' stop-color='%233d85ff' stop-opacity='.18'/%3E%3C/radialGradient%3E%3Cfilter id='b'%3E%3CfeGaussianBlur stdDeviation='.65'/%3E%3C/filter%3E%3C/defs%3E%3Ccircle cx='16' cy='16' r='9.5' fill='url(%23g)' stroke='white' stroke-opacity='.68' stroke-width='1.2'/%3E%3Ccircle cx='13' cy='12' r='3.2' fill='white' opacity='.36' filter='url(%23b)'/%3E%3C/svg%3E") 16 16, auto;
  --glass-cursor-active: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cdefs%3E%3CradialGradient id='g' cx='35%25' cy='30%25' r='72%25'%3E%3Cstop offset='0%25' stop-color='white' stop-opacity='1'/%3E%3Cstop offset='34%25' stop-color='%23fff1dd' stop-opacity='.66'/%3E%3Cstop offset='68%25' stop-color='%23ff6a2a' stop-opacity='.38'/%3E%3Cstop offset='100%25' stop-color='%233d85ff' stop-opacity='.2'/%3E%3C/radialGradient%3E%3Cfilter id='b'%3E%3CfeGaussianBlur stdDeviation='.8'/%3E%3C/filter%3E%3C/defs%3E%3Ccircle cx='20' cy='20' r='12.5' fill='url(%23g)' stroke='white' stroke-opacity='.72' stroke-width='1.35'/%3E%3Ccircle cx='16.5' cy='15' r='4' fill='white' opacity='.38' filter='url(%23b)'/%3E%3C/svg%3E") 20 20, auto;
  --font: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --display: "Barlow Condensed", "DIN Condensed", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--fg);
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

html.is-programmatic-scroll {
  scroll-behavior: auto;
  scroll-snap-type: none;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #030303;
  font-family: var(--font);
  letter-spacing: 0;
  cursor: var(--glass-cursor);
}

body.entry-open {
  overflow: hidden;
}

a,
button,
[role="button"] {
  cursor: var(--glass-cursor-active);
}

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

button {
  font: inherit;
}

input,
textarea {
  font: inherit;
}

.grain,
.lightfield {
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.grain {
  z-index: 2;
  opacity: 0.86;
  mix-blend-mode: overlay;
  background-image:
    url("./grain-coarse.png"),
    radial-gradient(circle at 40% 50%, rgba(255, 96, 36, 0.22), transparent 38%);
  background-size: 120px 120px, 100% 100%;
}

.lightfield {
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at calc(10% + var(--flow-x)) calc(43% + var(--flow-y)), rgba(var(--stage-a), 0.82), transparent 34%),
    radial-gradient(ellipse at calc(86% - var(--flow-x-soft)) calc(36% + var(--flow-y-soft)), rgba(var(--stage-b), 0.76), transparent 32%),
    radial-gradient(ellipse at calc(44% + var(--flow-x-soft)) calc(66% - var(--flow-y)), rgba(var(--stage-c), 0.58), transparent 44%),
    radial-gradient(ellipse at calc(53% - var(--flow-x)) calc(48% - var(--flow-y-soft)), rgba(var(--stage-d), 0.34), transparent 40%),
    #030303;
  transform: translate3d(var(--flow-x-micro), var(--flow-y-micro), 0) scale(1.08);
  will-change: transform, background;
}

.lightfield::before,
.lightfield::after {
  display: none;
}

.lightfield::before {
  background:
    radial-gradient(ellipse at 16% 68%, rgba(var(--stage-b), 0.58), transparent 26%),
    radial-gradient(ellipse at 42% 34%, rgba(var(--stage-c), 0.44), transparent 24%),
    radial-gradient(ellipse at 72% 62%, rgba(var(--stage-a), 0.42), transparent 26%),
    radial-gradient(ellipse at 88% 28%, rgba(var(--stage-d), 0.38), transparent 22%);
  border-radius: 44% 56% 48% 52% / 58% 36% 64% 42%;
  animation: liquidFieldA 18s ease-in-out infinite alternate;
}

.lightfield::after {
  background:
    radial-gradient(ellipse at 24% 34%, rgba(var(--stage-d), 0.48), transparent 22%),
    radial-gradient(ellipse at 48% 74%, rgba(var(--stage-a), 0.48), transparent 24%),
    radial-gradient(ellipse at 66% 40%, rgba(var(--stage-b), 0.4), transparent 21%),
    radial-gradient(ellipse at 90% 70%, rgba(var(--stage-c), 0.46), transparent 24%);
  border-radius: 58% 42% 62% 38% / 42% 64% 36% 58%;
  animation: liquidFieldB 24s ease-in-out infinite alternate;
}

.wave {
  position: absolute;
  left: calc(-20vw + var(--flow-x-soft));
  top: calc(0px + var(--flow-y-soft));
  width: 145vw;
  height: 46vh;
  border-radius: 48% 52% 44% 56% / 42% 58% 48% 52%;
  filter: blur(38px);
  opacity: 0.84;
  mix-blend-mode: screen;
  transform: rotate(-18deg);
  animation: drift 28s ease-in-out infinite alternate, liquidWave 14s ease-in-out infinite alternate;
}

.wave-a {
  top: calc(26vh + var(--flow-y-soft));
  background:
    radial-gradient(ellipse at calc(8% + var(--flow-x-soft)) calc(56% + var(--flow-y-soft)), rgba(var(--stage-a), 1), transparent 40%),
    radial-gradient(ellipse at calc(34% - var(--flow-x-soft)) calc(50% + var(--flow-y)), rgba(var(--stage-c), 0.72), transparent 30%),
    radial-gradient(ellipse at calc(60% + var(--flow-x)) calc(50% - var(--flow-y-soft)), rgba(var(--stage-b), 0.94), transparent 37%),
    radial-gradient(ellipse at calc(92% - var(--flow-x-soft)) calc(56% - var(--flow-y)), rgba(var(--stage-a), 0.98), transparent 36%);
}

.wave-b {
  top: calc(54vh - var(--flow-y-soft));
  left: calc(-20vw - var(--flow-x-soft));
  opacity: 0.86;
  transform: rotate(12deg);
  animation-duration: 34s;
  background:
    radial-gradient(ellipse at calc(16% - var(--flow-x)) calc(42% + var(--flow-y-soft)), rgba(var(--stage-d), 0.54), transparent 38%),
    radial-gradient(ellipse at calc(34% + var(--flow-x-soft)) calc(56% - var(--flow-y)), rgba(var(--stage-a), 1), transparent 36%),
    radial-gradient(ellipse at calc(58% - var(--flow-x-soft)) calc(42% + var(--flow-y)), rgba(var(--stage-c), 0.52), transparent 31%),
    radial-gradient(ellipse at calc(82% + var(--flow-x)) calc(52% - var(--flow-y-soft)), rgba(var(--stage-b), 0.88), transparent 40%);
}

.wave-c {
  top: calc(-7vh + var(--flow-y));
  left: calc(8vw + var(--flow-x));
  width: 110vw;
  height: 38vh;
  opacity: 0.42;
  transform: rotate(8deg);
  animation-duration: 40s;
  background:
    radial-gradient(ellipse at calc(24% + var(--flow-x)) calc(52% - var(--flow-y-soft)), rgba(var(--stage-b), 0.76), transparent 42%),
    radial-gradient(ellipse at calc(62% - var(--flow-x-soft)) calc(50% + var(--flow-y)), rgba(var(--stage-c), 0.46), transparent 40%),
    radial-gradient(ellipse at calc(82% + var(--flow-x-soft)) calc(52% + var(--flow-y-soft)), rgba(var(--stage-a), 0.56), transparent 34%);
}

@keyframes drift {
  0% {
    translate: -10vw -1vh;
  }
  100% {
    translate: 12vw 2vh;
  }
}

@keyframes liquidWave {
  0% {
    border-radius: 48% 52% 44% 56% / 42% 58% 48% 52%;
    scale: 1 1;
  }
  50% {
    border-radius: 62% 38% 58% 42% / 54% 42% 58% 46%;
    scale: 1.08 0.92;
  }
  100% {
    border-radius: 42% 58% 54% 46% / 60% 38% 52% 48%;
    scale: 0.96 1.08;
  }
}

@keyframes liquidFieldA {
  0% {
    transform: translate3d(-8vw, -2vh, 0) rotate(-8deg) scale(1.02);
    border-radius: 44% 56% 48% 52% / 58% 36% 64% 42%;
  }
  100% {
    transform: translate3d(8vw, 4vh, 0) rotate(7deg) scale(1.12);
    border-radius: 62% 38% 42% 58% / 40% 64% 36% 60%;
  }
}

@keyframes liquidFieldB {
  0% {
    transform: translate3d(7vw, 5vh, 0) rotate(9deg) scale(1);
    border-radius: 58% 42% 62% 38% / 42% 64% 36% 58%;
  }
  100% {
    transform: translate3d(-7vw, -3vh, 0) rotate(-6deg) scale(1.1);
    border-radius: 38% 62% 44% 56% / 66% 34% 58% 42%;
  }
}

@keyframes filmEdgeScan {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.86;
  }
}

@keyframes nextDrift {
  0%,
  100% {
    transform: translateY(-3px);
  }
  50% {
    transform: translateY(5px);
  }
}

@keyframes titleLava {
  0% {
    background-position: 8% 45%, 86% 55%, 0% 50%;
    filter: saturate(1.05) contrast(1.04);
  }
  45% {
    background-position: 42% 30%, 58% 70%, 52% 50%;
    filter: saturate(1.18) contrast(1.08);
  }
  100% {
    background-position: 78% 60%, 24% 42%, 100% 50%;
    filter: saturate(1.08) contrast(1.05);
  }
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 5vw, 78px);
  padding: 24px clamp(24px, 3.8vw, 76px);
  color: #fff;
  mix-blend-mode: normal;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.42);
}

.brand,
.site-nav a,
.nav-action,
.menu-button {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
}

.brand {
  font-size: 12px;
  letter-spacing: 0.12em;
}

.brand,
.site-nav a,
.nav-action {
  position: relative;
}

.brand::after,
.site-nav a::after,
.nav-action::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transition: right 420ms ease;
}

.brand:hover::after,
.site-nav a:hover::after,
.nav-action:hover::after {
  right: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(32px, 7vw, 120px);
}

.site-nav a::before,
.nav-action::before {
  content: "▸";
  margin-right: 8px;
  color: #fff;
  font-size: 10px;
}

.nav-action {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
}

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

main {
  position: relative;
  z-index: 3;
}

.admin-page main {
  z-index: 3;
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr);
  gap: clamp(30px, 6vw, 90px);
  min-height: 100svh;
  padding: 118px clamp(22px, 6vw, 94px) 70px;
}

.admin-form {
  align-content: start;
}

.admin-side {
  align-self: start;
  margin-top: clamp(116px, 18vh, 190px);
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.admin-side strong {
  display: block;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.admin-side p:not(.work-label) {
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 96px clamp(24px, 4vw, 76px) 46px;
}

.hero,
.gallery-empty,
.work,
.contact {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero-copy {
  display: grid;
  width: min(calc(100svh * 1.777), calc(100vw - 48px), 1500px);
  min-height: min(calc((100vw - 48px) * 0.5625), calc(100svh - 150px));
  align-content: center;
  justify-items: center;
  text-align: center;
}

.kicker,
.section-label,
.work-label {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
}

.hero h1 {
  position: relative;
  display: grid;
  gap: 0.04em;
  max-width: 1120px;
  margin: 0 auto;
  font-family: var(--display);
  font-size: clamp(66px, 9.4vw, 154px);
  font-weight: 800;
  font-style: normal;
  line-height: 0.78;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  transform: scaleX(0.72);
  transform-origin: center;
  text-wrap: nowrap;
  color: transparent;
  background:
    radial-gradient(ellipse at calc(22% + var(--flow-x-soft)) calc(38% + var(--flow-y-soft)), rgba(255, 246, 226, 1), transparent 28%),
    radial-gradient(ellipse at calc(74% - var(--flow-x-soft)) calc(58% - var(--flow-y-soft)), rgba(255, 98, 24, 0.94), transparent 30%),
    linear-gradient(105deg, rgba(244, 250, 255, 0.96), rgba(255, 190, 112, 0.92), rgba(238, 248, 255, 0.98), rgba(255, 88, 24, 0.84), rgba(244, 250, 255, 0.96));
  background-size: 180% 180%, 170% 170%, 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: titleLava 9s ease-in-out infinite alternate;
  text-shadow:
    0 0 18px rgba(255, 238, 210, 0.12),
    0 0 34px rgba(255, 72, 18, 0.08);
}

.hero h1 span {
  position: relative;
  display: block;
  color: transparent;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
}

.enter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: clamp(34px, 5vw, 72px);
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  transition: color 380ms ease, opacity 380ms ease;
}

.enter-button span {
  position: relative;
  display: inline-block;
  width: clamp(78px, 11vw, 160px);
  height: 1px;
  margin-left: 16px;
  background: rgba(255, 255, 255, 0.76);
  transition: width 420ms ease, opacity 420ms ease;
}

.enter-button span::after {
  content: "";
  position: absolute;
  right: 0;
  top: -5px;
  width: 14px;
  height: 1px;
  background: rgba(255, 255, 255, 0.76);
  rotate: 34deg;
  transform-origin: right center;
}

.enter-button:hover {
  color: #fff;
  opacity: 0.86;
}

.enter-button:hover span {
  width: clamp(100px, 14vw, 200px);
}

.scroll-mark {
  display: none;
}

.scroll-mark::after {
  content: "";
  position: absolute;
  left: -7px;
  bottom: 0;
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
  rotate: 45deg;
}

.contact {
  display: grid;
  min-height: 100svh;
  align-content: center;
  padding: 120px clamp(22px, 9vw, 132px);
}

.contact .section-label {
  margin-bottom: clamp(28px, 4vw, 58px);
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(42px, 6.6vw, 96px);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 0.92;
  text-transform: none;
}

.work {
  position: relative;
  --demo-top: clamp(78px, 12vh, 130px);
  --demo-h: min(33.333vw, 480px);
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(28px, 5.5vw, 92px);
  align-items: start;
  width: min(calc(100svh * 1.777), 100vw);
  min-height: 100svh;
  margin-inline: auto;
  padding: 88px clamp(22px, 7vw, 104px) 64px clamp(70px, 9vw, 138px);
}

.gallery-empty {
  position: relative;
  display: grid;
  align-items: center;
  width: min(calc(100svh * 1.777), 100vw);
  min-height: 100svh;
  margin-inline: auto;
  padding: 110px clamp(22px, 9vw, 138px) 76px clamp(70px, 9vw, 138px);
}

.empty-copy {
  max-width: 760px;
}

.empty-copy h2 {
  margin: 0 0 clamp(34px, 5vw, 70px);
  font-size: clamp(44px, 7.5vw, 116px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 0.9;
  text-transform: uppercase;
}

.film-edge {
  position: absolute;
  top: 16vh;
  bottom: 12vh;
  left: clamp(20px, 4vw, 58px);
  width: 18px;
  opacity: 0.76;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.32) 0 1px, transparent 1px 11px),
    linear-gradient(to right, transparent 0 7px, rgba(255, 255, 255, 0.18) 7px 8px, transparent 8px);
}

.film-edge::before {
  content: "";
  position: absolute;
  left: 7px;
  width: 1px;
  top: 0;
  height: calc(100% * var(--film-progress, 0));
  opacity: 0;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.22)),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.82) 0 1px, transparent 1px 10px);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.28);
  transition: height 680ms ease, opacity 420ms ease;
}

.is-stage-active .film-edge::before {
  opacity: 0.78;
  animation: filmEdgeScan 2.8s ease-in-out infinite;
}

.work-copy {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-self: start;
  min-height: var(--demo-h);
  max-width: 540px;
  margin-top: var(--demo-top);
}

.page-next {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: clamp(38px, 7vh, 74px);
  display: grid;
  justify-items: center;
  width: 34px;
  height: 52px;
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  transform: translateX(-50%);
  animation: nextDrift 2.6s ease-in-out infinite;
}

.page-next-mark {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  opacity: 0.72;
  rotate: 45deg;
  transition: opacity 360ms ease, translate 360ms ease;
}

.page-next-mark::before,
.page-next-mark::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.page-next-mark::before {
  right: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
}

.page-next-mark::after {
  right: 0;
  bottom: 0;
  width: 1px;
  height: 100%;
}

.page-next-mark-second {
  margin-top: -10px;
  opacity: 0.44;
}

.page-next:hover .page-next-mark {
  opacity: 1;
  translate: 0 2px;
}

.page-next:hover .page-next-mark-second {
  opacity: 0.72;
}

.work h2 {
  margin: 0;
  max-width: 7.4em;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 500;
  line-height: 0.96;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.type-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 28px;
}

.type-tags span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 9px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.outline-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 164px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.015);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: var(--glass-cursor-active);
  overflow: visible;
  transition: border-color 380ms ease, color 380ms ease, background 380ms ease, box-shadow 360ms ease;
}

.work-copy > .outline-button {
  margin-top: auto;
}

.outline-button:hover {
  border-color: rgba(255, 255, 255, 0.76);
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.outline-button:disabled {
  opacity: 0.42;
}

.outline-button::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), rgba(255, 92, 32, 0.2) 42%, transparent 70%);
  opacity: 0.18;
  scale: 0.72;
  filter: blur(10px);
  transition: opacity 420ms ease, scale 420ms ease;
  z-index: -1;
}

.outline-button.is-copied {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 0 24px rgba(255, 255, 255, 0.24),
    0 0 54px rgba(255, 88, 28, 0.34);
}

.outline-button.is-copied::after {
  opacity: 0.78;
  scale: 1.18;
}

.work-visual {
  position: relative;
  z-index: 3;
  width: min(50vw, 720px);
  margin: var(--demo-top) 0 0;
  justify-self: end;
  transform: translateY(var(--parallax, 0px));
}

.work-visual canvas,
.work-visual img,
.demo-placeholder {
  display: block;
  width: 100%;
  height: var(--demo-h);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.46);
}

.work-visual img {
  object-fit: contain;
  background: rgba(0, 0, 0, 0.22);
}

.demo-placeholder {
  display: grid;
  place-items: center;
  min-height: min(48vh, 520px);
  color: rgba(255, 255, 255, 0.42);
  background:
    radial-gradient(ellipse at 30% 40%, rgba(var(--stage-a), 0.34), transparent 38%),
    radial-gradient(ellipse at 70% 62%, rgba(var(--stage-d), 0.28), transparent 42%),
    rgba(0, 0, 0, 0.34);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.work-visual figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}

.contact-list {
  display: grid;
  gap: 16px;
  max-width: 620px;
  margin-left: clamp(18px, 3vw, 34px);
}

.contact-link {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  width: fit-content;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font);
  line-height: 1.2;
}

.contact-link span {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 30px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
}

.contact-link strong {
  color: rgba(255, 255, 255, 0.8);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.wechat-mark svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
  overflow: visible;
}

.entry-layer {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  align-items: start;
  padding: clamp(20px, 5vw, 76px);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  background:
    radial-gradient(ellipse at calc(12% + var(--flow-x)) calc(40% + var(--flow-y)), rgba(var(--stage-a), 0.42), transparent 36%),
    radial-gradient(ellipse at calc(86% - var(--flow-x-soft)) calc(62% - var(--flow-y-soft)), rgba(var(--stage-d), 0.28), transparent 42%),
    rgba(0, 0, 0, 0.9);
  transition: opacity 420ms ease, visibility 420ms ease;
}

.entry-layer.is-open {
  visibility: visible;
  opacity: 1;
}

.entry-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-block: clamp(34px, 5vh, 70px);
}

.entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(26px, 4vw, 54px);
}

.entry-close {
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.entry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px clamp(22px, 4vw, 54px);
}

.entry-title-block {
  grid-column: 1 / -1;
  max-width: 720px;
}

.entry-title-block h2 {
  margin: 0 0 14px;
  font-size: clamp(42px, 6vw, 92px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 0.92;
}

.entry-title-block p,
.entry-actions p {
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
}

.entry-form label {
  display: grid;
  gap: 10px;
}

.entry-form label span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.entry-form input,
.entry-form select,
.entry-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 0;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  outline: none;
}

.entry-form select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.72) 50%) calc(100% - 14px) 52% / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(255, 255, 255, 0.72) 50%, transparent 50%) calc(100% - 9px) 52% / 7px 7px no-repeat;
}

.entry-form select option {
  color: #050505;
  background: #f2f2f2;
}

.entry-form textarea {
  resize: vertical;
}

.entry-form input:focus,
.entry-form select:focus,
.entry-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.78);
}

.entry-wide,
.entry-actions {
  grid-column: 1 / -1;
}

.entry-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 10px;
}

.reveal {
  opacity: 0;
  filter: blur(12px);
  translate: 0 20px;
  transition: opacity 1100ms ease, filter 1100ms ease, translate 1100ms ease;
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  translate: 0 0;
}

@media (max-width: 700px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 20px 18px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 56px;
    left: 18px;
    right: 18px;
    display: none;
    grid-column: 1 / -1;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.82);
  }

  .site-nav.is-open {
    display: grid;
    gap: 16px;
  }

  .hero {
    min-height: 100svh;
    padding: 110px 18px 70px;
  }

  .hero-copy {
    width: 100%;
    min-height: auto;
    justify-items: start;
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(64px, 22vw, 104px);
    line-height: 0.82;
  }

  .contact {
    min-height: 100svh;
    padding: 86px 20px;
  }

  .work {
    --demo-top: 0px;
    --demo-h: min(62vw, 360px);
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: auto;
    padding: 92px 20px 82px 42px;
  }

  .gallery-empty {
    width: 100%;
    padding: 92px 20px 82px 42px;
  }

  .empty-copy h2 {
    font-size: clamp(42px, 13vw, 72px);
  }

  .film-edge {
    left: 16px;
    top: 80px;
    bottom: 70px;
  }

  .page-next {
    left: 50%;
    right: auto;
    bottom: 24px;
    height: 46px;
  }

  .work-copy {
    min-height: auto;
    margin-top: 0;
    max-width: none;
  }

  .work h2 {
    max-width: 7.4em;
    font-size: clamp(32px, 10vw, 46px);
  }

  .type-tags {
    margin-bottom: 28px;
  }

  .work-visual {
    margin-top: 0;
    width: 100%;
    justify-self: stretch;
  }

  .entry-form {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
    padding: 92px 20px 70px;
  }

  .admin-side {
    margin-top: 8px;
  }

  .entry-layer {
    align-items: start;
  }

}

@media (hover: none), (pointer: coarse) {
  body {
    cursor: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
