:root {
  --mx: 50vw;
  --my: 50vh;
  --bg: #050505;
  --surface: #101010;
  --surface-2: #181818;
  --text: #f5f2e8;
  --muted: #aaa69a;
  --line: rgba(245, 242, 232, 0.14);
  --strong-line: rgba(245, 242, 232, 0.34);
  --orange: #ff8a1d;
  --gold: #ffd059;
  --blue: #73a7ff;
  --invert: #070707;
  --max: 1180px;
}

:root[data-theme="light"] {
  --bg: #f5f2e8;
  --surface: #fffaf0;
  --surface-2: #e9e1d1;
  --text: #11100e;
  --muted: #69645b;
  --line: rgba(17, 16, 14, 0.14);
  --strong-line: rgba(17, 16, 14, 0.3);
  --invert: #fffaf0;
}

* {
  box-sizing: border-box;
  font-family:
    "Inter", "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei",
    "Noto Sans CJK SC", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--bg) 92%, var(--surface))),
    var(--bg);
  letter-spacing: 0;
  transition:
    background 260ms ease,
    color 260ms ease;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before {
  opacity: 0.38;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    radial-gradient(circle, color-mix(in srgb, var(--text) 24%, transparent) 0.5px, transparent 0.7px);
  background-size:
    62px 62px,
    62px 62px,
    4px 4px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 84%);
}

body::after {
  z-index: -1;
  opacity: 0.72;
  background:
    linear-gradient(105deg, transparent 0 18%, rgba(255, 138, 29, 0.18) 34%, transparent 52%),
    linear-gradient(255deg, transparent 0 26%, rgba(255, 208, 89, 0.12) 42%, transparent 65%),
    linear-gradient(180deg, transparent, rgba(115, 167, 255, 0.08), transparent);
  background-size:
    190% 100%,
    210% 100%,
    100% 170%;
  animation: amber-flow 9s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

:root[data-theme="light"] body::after {
  opacity: 0.46;
  mix-blend-mode: multiply;
}

@keyframes amber-flow {
  from {
    background-position:
      0% 50%,
      100% 50%,
      50% 0%;
  }

  to {
    background-position:
      100% 50%,
      0% 50%,
      50% 100%;
  }
}

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

button {
  font: inherit;
}

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 58px);
  color: color-mix(in srgb, var(--text) 88%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 92%, transparent), transparent);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 14px;
  font-weight: 680;
}

.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 13px;
}

nav a,
.back-link {
  transition: color 180ms ease;
}

nav a:hover,
.back-link:hover {
  color: var(--text);
}

.theme-toggle {
  display: inline-grid;
  grid-template-columns: auto 26px auto;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--strong-line);
}

.theme-toggle i {
  position: relative;
  width: 26px;
  height: 16px;
  border: 1px solid var(--strong-line);
  overflow: hidden;
}

.theme-toggle i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] .theme-toggle i::after {
  transform: translateX(10px);
}

.theme-ripple {
  position: fixed;
  z-index: 220;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateZ(0);
  transition: opacity 180ms ease;
  contain: paint;
  will-change: opacity;
}

.theme-ripple.active {
  opacity: 0.92;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 72px clamp(18px, 5vw, 58px) 36px;
  isolation: isolate;
}

.hero-flow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.86;
  background:
    linear-gradient(118deg, transparent 8%, rgba(255, 138, 29, 0.24) 36%, transparent 58%),
    linear-gradient(22deg, transparent 12%, rgba(255, 208, 89, 0.12) 45%, transparent 78%);
  background-size:
    190% 100%,
    160% 100%;
  filter: blur(18px);
  animation: hero-amber 8s ease-in-out infinite alternate;
}

@keyframes hero-amber {
  from {
    background-position:
      0% 50%,
      100% 50%;
  }

  to {
    background-position:
      100% 50%,
      0% 50%;
  }
}

.hero-stage {
  position: relative;
  width: min(100%, 1440px);
  min-height: calc(100svh - 108px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(380px, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding-bottom: 0;
}

.mini-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mini-label::before,
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero-brand {
  margin: 18px 0 0;
  font-size: clamp(46px, 6.1vw, 92px);
  font-weight: 830;
  line-height: 0.9;
  letter-spacing: 0;
}

.growth-line {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.22em;
  row-gap: 0.04em;
  max-width: 560px;
  margin-top: 16px;
  color: var(--orange);
  font-size: clamp(28px, 4.2vw, 58px);
  font-weight: 900;
  line-height: 0.92;
}

.growth-word {
  display: inline-flex;
  white-space: nowrap;
}

.growth-letter {
  display: inline-block;
  min-width: 0.18em;
  transform-origin: 50% 100%;
  animation: grow-letter 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  animation-delay: calc(var(--i) * 48ms);
  text-shadow: 0 0 28px rgba(255, 138, 29, 0.32);
}

@keyframes grow-letter {
  0%,
  100% {
    transform: translateY(0) scaleY(0.82);
    opacity: 0.62;
  }

  42% {
    transform: translateY(-0.12em) scaleY(1.12);
    opacity: 1;
  }
}

.hero-mantra {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 18px 0 0;
  overflow: hidden;
  color: color-mix(in srgb, var(--text) 86%, var(--gold));
  font-size: clamp(14px, 1.45vw, 18px);
  font-weight: 720;
  line-height: 1.55;
}

.hero-mantra span {
  display: inline-block;
  transform-origin: 0 100%;
  animation: mantra-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-mantra::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translateX(-130%);
  background: linear-gradient(
    105deg,
    transparent 0%,
    color-mix(in srgb, var(--gold) 52%, transparent) 46%,
    transparent 72%
  );
  mix-blend-mode: screen;
  animation: mantra-sweep 4.6s ease-in-out 900ms infinite;
}

@keyframes mantra-rise {
  from {
    opacity: 0;
    transform: translateY(0.75em) scaleY(0.86);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    filter: blur(0);
  }
}

@keyframes mantra-sweep {
  0%,
  42% {
    transform: translateX(-130%);
    opacity: 0;
  }

  58% {
    opacity: 0.8;
  }

  84%,
  100% {
    transform: translateX(130%);
    opacity: 0;
  }
}

.hero-desc {
  max-width: 420px;
  margin: 14px 0 0;
  color: color-mix(in srgb, var(--text) 78%, var(--muted));
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.75;
}

.hero-actions,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 26px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--line);
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 64%, transparent);
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.btn::before,
.filter-btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  padding: 1px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 138, 29, 0.08) 18%,
    rgba(255, 138, 29, 0.96) 44%,
    rgba(255, 208, 89, 0.95) 52%,
    rgba(255, 91, 18, 0.9) 62%,
    transparent 100%
  );
  background-size: 240% 100%;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: button-border-flow 1.15s linear infinite paused;
  transition: opacity 160ms ease;
}

.btn:hover::before,
.filter-btn:hover::before {
  opacity: 1;
  animation-play-state: running;
}

@keyframes button-border-flow {
  from {
    background-position: 120% 50%;
  }

  to {
    background-position: -120% 50%;
  }
}

.btn:hover,
.filter-btn:hover,
.filter-btn.active {
  transform: translateY(-1px);
  border-color: var(--strong-line);
  background: color-mix(in srgb, var(--text) 10%, var(--surface));
}

.btn.primary {
  color: var(--invert);
  border-color: var(--text);
  background: var(--text);
}

.hero-visual {
  position: relative;
  z-index: 2;
  min-height: min(52vw, 640px);
}

.hero-nebula,
.hero-art,
.hero-character {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.hero-nebula {
  inset: 8% -12% 4% 0;
  display: none;
}

:root[data-theme="light"] .hero-nebula {
  display: none;
}

.hero-art {
  right: max(-12vw, -140px);
  bottom: clamp(0px, 3vw, 42px);
  width: min(74vw, 980px);
  aspect-ratio: 16 / 9;
  animation: ape-float 5.6s ease-in-out infinite alternate;
}

.hero-character {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  transform-origin: 58% 54%;
  filter: drop-shadow(0 28px 46px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 34px rgba(255, 138, 29, 0.22));
  will-change: opacity, transform, filter;
}

.ape-pixel,
.ape-astronaut {
  opacity: 0;
  transform: scale(0.985) translate3d(1%, 1%, 0);
  transition:
    opacity 680ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-art[data-state="pixel"] .ape-pixel,
.hero-art[data-state="astronaut"] .ape-astronaut {
  opacity: 1;
  transform: scale(1) translate3d(0, 0, 0);
  animation: character-breathe 3s ease-in-out infinite;
}

.burn-character {
  z-index: 4;
  opacity: 0;
  mix-blend-mode: screen;
  filter:
    brightness(1.82)
    sepia(1)
    saturate(5.6)
    hue-rotate(-13deg);
  -webkit-mask-image: linear-gradient(
    102deg,
    transparent 0%,
    transparent 31%,
    rgba(0, 0, 0, 0.55) 40%,
    #000 48%,
    rgba(0, 0, 0, 0.65) 57%,
    transparent 68%,
    transparent 100%
  );
  -webkit-mask-size: 260% 100%;
  -webkit-mask-position: 140% 50%;
  mask-image: linear-gradient(
    102deg,
    transparent 0%,
    transparent 31%,
    rgba(0, 0, 0, 0.55) 40%,
    #000 48%,
    rgba(0, 0, 0, 0.65) 57%,
    transparent 68%,
    transparent 100%
  );
  mask-size: 260% 100%;
  mask-position: 140% 50%;
  will-change: opacity, transform, mask-position;
}

@keyframes ape-float {
  from {
    transform: translate3d(0, 0, 0) rotate(-0.6deg);
  }

  to {
    transform: translate3d(-1.2%, -2.4%, 0) rotate(0.5deg);
  }
}

@keyframes character-breathe {
  0%,
  100% {
    transform: scale(1) translate3d(0, 0, 0);
    filter: drop-shadow(0 28px 46px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 30px rgba(255, 138, 29, 0.24));
  }

  50% {
    transform: scale(1.016) translate3d(0, -0.7%, 0);
    filter: drop-shadow(0 30px 48px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 42px rgba(255, 138, 29, 0.4));
  }
}

@keyframes character-burn-sweep {
  0% {
    opacity: 0;
    -webkit-mask-position: 132% 50%;
    mask-position: 132% 50%;
    transform: scale(0.99) translate3d(1.2%, 1.2%, 0);
  }

  14% {
    opacity: 0.98;
  }

  64% {
    opacity: 1;
    -webkit-mask-position: -40% 50%;
    mask-position: -40% 50%;
    transform: scale(1.02) translate3d(0, -0.5%, 0);
  }

  100% {
    opacity: 0;
    -webkit-mask-position: -62% 50%;
    mask-position: -62% 50%;
    transform: scale(1.01) translate3d(0, 0, 0);
  }
}

.hero-art.is-burning .burn-character {
  animation: character-burn-sweep 920ms cubic-bezier(0.22, 1, 0.36, 1);
}

.back-top {
  position: fixed;
  z-index: 70;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  cursor: pointer;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.94);
  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
  backdrop-filter: blur(12px);
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-top:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: var(--strong-line);
  background: color-mix(in srgb, var(--text) 10%, var(--surface));
}

.section {
  padding: clamp(76px, 9vw, 122px) clamp(18px, 5vw, 58px);
}

.section.compact {
  padding-top: clamp(60px, 7vw, 92px);
}

.inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.4fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 28px;
}

.section-title,
.project-title h1 {
  margin: 8px 0 0;
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 760;
  line-height: 0.98;
}

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

.filter-bar {
  margin-bottom: 18px;
}

.filter-btn {
  position: relative;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  color: color-mix(in srgb, var(--text) 78%, transparent);
  background: transparent;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
}

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

.work-card {
  min-height: 420px;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--strong-line);
}

.work-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-cover img {
  transform: scale(1.07);
}

.work-meta {
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 18px;
}

.work-title-row {
  display: grid;
  gap: 10px;
}

.work-title-row h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 680;
  line-height: 1.28;
}

.work-title-row span,
.mini-meta {
  color: var(--muted);
  font-size: 12px;
}

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

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.page-btn {
  min-width: 38px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  color: color-mix(in srgb, var(--text) 78%, transparent);
  background: transparent;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.page-btn:hover:not(:disabled),
.page-btn.active {
  color: var(--invert);
  border-color: var(--orange);
  background: var(--orange);
  transform: translateY(-1px);
}

.page-btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.more-section {
  position: relative;
}

.masonry {
  column-count: 3;
  column-gap: 14px;
}

.masonry-item {
  break-inside: avoid;
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  opacity: 0;
  transform: translateY(18px);
  animation: masonry-in 620ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay);
}

.masonry-item img {
  width: 100%;
  height: auto;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.masonry-item:hover img {
  transform: scale(1.025);
}

@keyframes masonry-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 34px;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--orange) 16%, transparent), transparent 38%),
    color-mix(in srgb, var(--surface) 82%, transparent);
}

.contact-copy {
  display: grid;
  gap: 10px;
  align-content: end;
}

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

.project-view {
  padding-top: 116px;
}

.project-hero {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 58px) 34px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 14px;
}

.project-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.34fr);
  gap: 38px;
  align-items: end;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.project-title h1 {
  max-width: 920px;
  font-size: clamp(44px, 8vw, 110px);
}

.project-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.project-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.project-strip span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.gallery {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 20px clamp(12px, 4vw, 34px) 96px;
}

.gallery img {
  width: 100%;
  height: auto;
  margin: 0 auto 14px;
  background: var(--surface-2);
}

.gallery-empty {
  border: 1px solid var(--line);
  padding: 32px;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer {
  padding: 32px clamp(18px, 5vw, 58px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer .inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 1100px) {
  .hero-stage {
    grid-template-columns: minmax(330px, 0.9fr) minmax(360px, 1fr);
  }

  .hero-art {
    width: min(82vw, 900px);
  }

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

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    min-height: 66px;
    gap: 12px;
    padding-inline: 16px;
  }

  .brand span {
    display: none;
  }

  nav {
    justify-content: center;
    gap: 14px;
    font-size: 12px;
  }

  .theme-toggle {
    grid-template-columns: 26px;
    padding: 0 8px;
  }

  .theme-toggle span {
    display: none;
  }

  .hero {
    padding: 68px 16px 26px;
  }

  .hero-stage {
    min-height: calc(100svh - 94px);
    grid-template-columns: 1fr;
    align-content: start;
    gap: 10px;
  }

  .hero-copy {
    order: 2;
    max-width: none;
    padding-bottom: 0;
  }

  .hero-brand {
    max-width: 7em;
    font-size: clamp(40px, 13vw, 68px);
  }

  .growth-line {
    max-width: 100%;
    font-size: clamp(27px, 9.4vw, 52px);
  }

  .hero-desc {
    max-width: 36em;
    margin-top: 16px;
  }

  .hero-visual {
    order: 1;
    min-height: clamp(260px, 48svh, 430px);
  }

  .hero-nebula {
    inset: 0 -30% 0 auto;
    opacity: 0.22;
  }

  .hero-art {
    right: -34vw;
    bottom: 0;
    width: min(144vw, 720px);
  }

  .section-head,
  .project-title,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .masonry {
    column-count: 2;
  }
}

@media (max-width: 620px) {
  nav {
    gap: 10px;
  }

  .hero-visual {
    min-height: clamp(220px, 43svh, 360px);
  }

  .hero-art {
    right: -6vw;
    bottom: clamp(58px, 16vw, 78px);
    width: min(98vw, 560px);
  }

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

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

  .masonry {
    column-count: 1;
  }

  .site-footer .inner {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .site-header {
    gap: 8px;
  }

  nav {
    font-size: 11px;
  }

  .hero-actions .btn {
    flex: 1 1 132px;
  }

  .hero-art {
    right: -8vw;
    bottom: clamp(58px, 16vw, 74px);
    width: 98vw;
  }
}

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