:root {
  color-scheme: dark;
  --bg: #070706;
  --ink: #f7f2e9;
  --muted: #aaa49b;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --accent: #d8b070;
  --cool: #8fb0aa;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  scrollbar-color: rgba(247, 242, 233, 0.42) rgba(0, 0, 0, 0.18);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Readex Pro", system-ui, -apple-system, "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

.hero,
.category-page,
.video-page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-motion,
.hero-photo,
.hero-shade,
.page-bg,
.page-shade,
.floating-info {
  position: absolute;
  inset: 0;
}

.hero-motion {
  z-index: 0;
  overflow: hidden;
  background: #000;
}

.hero-photo {
  z-index: 1;
  background-image: url("./assets/hero-lake-final.png");
  background-size: cover;
  background-position: center 54%;
  filter: saturate(0.99) contrast(1.02) brightness(1.04);
  transform: scale(1.018);
  animation: lake-camera 20s ease-in-out infinite alternate;
  will-change: transform;
}

.water-layer {
  position: absolute;
  z-index: 2;
  left: -10%;
  right: -10%;
  bottom: -3%;
  height: 79%;
  opacity: 0.18;
  mix-blend-mode: screen;
  background:
    repeating-linear-gradient(
      174deg,
      rgba(255, 255, 255, 0) 0 14px,
      rgba(255, 255, 255, 0.18) 15px 17px,
      rgba(255, 255, 255, 0) 18px 34px
    );
  filter: blur(0.8px);
  transform-origin: center bottom;
  animation: lake-ripple-a 9s linear infinite;
  will-change: transform;
}

.water-layer-b {
  opacity: 0.1;
  background:
    repeating-linear-gradient(
      186deg,
      rgba(255, 255, 255, 0) 0 22px,
      rgba(255, 255, 255, 0.16) 23px 25px,
      rgba(255, 255, 255, 0) 26px 50px
    );
  animation: lake-ripple-b 13s linear infinite reverse;
}

.wind-layer {
  position: absolute;
  z-index: 3;
  inset: 0;
  opacity: 0.13;
  mix-blend-mode: soft-light;
  background:
    linear-gradient(100deg, transparent 0 22%, rgba(255, 255, 255, 0.24) 34%, transparent 48%),
    linear-gradient(84deg, transparent 0 60%, rgba(255, 255, 255, 0.18) 70%, transparent 82%);
  transform: translate3d(-12%, 0, 0);
  animation: wind-sheen 8.5s ease-in-out infinite;
  will-change: transform, opacity;
}

.hair-breeze {
  position: absolute;
  z-index: 3;
  left: 46.5%;
  top: 58%;
  width: clamp(86px, 8vw, 138px);
  height: clamp(70px, 7vw, 118px);
  border-radius: 50%;
  opacity: 0.22;
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse at 58% 42%, rgba(255, 255, 255, 0.28), transparent 36%),
    repeating-linear-gradient(104deg, transparent 0 9px, rgba(255, 255, 255, 0.16) 10px 11px, transparent 12px 24px);
  filter: blur(5px);
  transform: translate3d(-50%, -50%, 0) skewX(-8deg);
  animation: hair-breeze 5.8s ease-in-out infinite;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-shade {
  z-index: 4;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.04) 50%, rgba(0, 0, 0, 0.43)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.5) 84%, #000);
}

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 58px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 400;
  text-transform: lowercase;
  pointer-events: none;
}

.topbar a {
  pointer-events: auto;
}

.brand-pill,
.topbar div,
.nav-cta {
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.9);
  backdrop-filter: blur(16px);
}

.brand-pill {
  gap: 9px;
  padding: 12px 22px 12px 16px;
}

.brand-symbol {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 12px;
  font-weight: 700;
}

.topbar div {
  gap: 2px;
  padding: 8px 10px;
}

.topbar div a {
  padding: 9px 18px;
  color: rgba(255, 255, 255, 0.68);
  transition: color 180ms ease;
}

.topbar div a:hover {
  color: #fff;
}

.nav-cta {
  padding: 12px 22px;
  background: #fff;
  color: #000;
  transition: background 180ms ease;
}

.nav-cta:hover {
  background: #e5e5e5;
}

.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 8;
  height: 100%;
  width: 100%;
}

.hero-title {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hero-word {
  position: absolute;
  color: #fff;
  font-size: clamp(62px, 13vw, 190px);
  font-weight: 500;
  text-transform: lowercase;
  text-shadow: 0 28px 90px rgba(0, 0, 0, 0.54);
  white-space: nowrap;
}

.hero-word-a {
  left: clamp(20px, 3vw, 42px);
  top: 18%;
}

.hero-word-b {
  right: clamp(20px, 4vw, 58px);
  top: 39%;
}

.hero-word-c {
  left: clamp(42px, 5vw, 86px);
  top: 70%;
}

.profile-panel {
  position: absolute;
  z-index: 10;
  left: clamp(20px, 4vw, 58px);
  top: 45%;
  display: grid;
  gap: 7px;
  max-width: 260px;
  color: rgba(255, 255, 255, 0.9);
}

.profile-panel p,
.profile-panel span,
.profile-panel small {
  margin: 0;
}

.profile-panel p {
  font-size: 15px;
  font-weight: 600;
  text-transform: lowercase;
}

.profile-panel span,
.profile-panel small {
  font-size: 14px;
  line-height: 1.42;
}

.profile-panel span {
  color: rgba(255, 255, 255, 0.72);
}

.profile-panel small {
  color: rgba(255, 255, 255, 0.9);
}

.hero-stat {
  position: absolute;
  z-index: 10;
  color: #fff;
}

.hero-stat div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-stat strong {
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 500;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.hero-stat p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.4;
}

.diag {
  display: block;
  width: clamp(54px, 7vw, 100px);
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(20deg);
}

.diag.reverse {
  transform: rotate(-20deg);
}

.hero-stat-top {
  right: clamp(24px, 8vw, 130px);
  top: 14%;
  text-align: right;
}

.hero-stat-left {
  left: clamp(24px, 6vw, 96px);
  bottom: 16%;
}

.hero-stat-right {
  right: clamp(24px, 6vw, 96px);
  bottom: 11%;
  text-align: right;
}

.floating-info {
  z-index: 7;
  inset: 8vh 0 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.58;
}

.float-track {
  position: absolute;
  bottom: -38vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: float-up 34s linear infinite;
  will-change: transform;
}

.float-track span {
  width: max-content;
  max-width: min(360px, 34vw);
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.45);
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(15px, 1.12vw, 18px);
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.float-a {
  right: clamp(24px, 4vw, 64px);
  animation-delay: -18s;
  align-items: flex-end;
}

.float-b {
  right: clamp(34px, 7vw, 112px);
  animation-duration: 29s;
  animation-delay: -7s;
  align-items: flex-end;
}

.scroll-cue {
  position: absolute;
  z-index: 10;
  left: clamp(20px, 4vw, 58px);
  bottom: 32px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.68);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 400;
  text-transform: lowercase;
  backdrop-filter: blur(14px);
}

.category-page,
.video-page {
  display: grid;
  align-items: center;
  padding: 96px clamp(18px, 4vw, 58px) 54px;
  background: #090907;
}

.page-bg {
  z-index: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.48) saturate(0.88);
  transform: scale(1.08);
}

.page-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.34) 48%, rgba(0, 0, 0, 0.72)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.68));
}

.page-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.55fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  width: min(1480px, 100%);
  margin: 0 auto;
}

.page-copy h2 {
  margin: 14px 0 0;
  font-size: clamp(52px, 8vw, 118px);
  line-height: 0.9;
  letter-spacing: 0;
}

.page-copy p:not(.section-kicker) {
  max-width: 440px;
  margin: 22px 0 0;
  color: rgba(247, 242, 233, 0.7);
  font-size: 15px;
  line-height: 1.8;
}

.project-strip {
  display: grid;
  grid-template-columns: repeat(var(--columns, 4), minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.project-card {
  position: relative;
  min-height: clamp(420px, 58vh, 620px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease;
  contain: layout paint;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.78));
  pointer-events: none;
}

.project-card:hover {
  transform: translate3d(0, -6px, 0);
  border-color: rgba(216, 176, 112, 0.56);
  background: rgba(255, 255, 255, 0.07);
}

.stack {
  position: absolute;
  inset: 18px 18px 112px;
}

.stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  background: #181713;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
  transform: translate3d(var(--x, 0), var(--y, 0), 0) rotate(var(--r, 0deg)) scale(var(--s, 1));
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), filter 420ms ease;
  will-change: transform;
}

.stack img:nth-child(1) {
  z-index: 4;
}

.stack img:nth-child(2) {
  z-index: 3;
  --x: 10px;
  --y: 10px;
  --r: 1.4deg;
  filter: brightness(0.88);
}

.stack img:nth-child(3) {
  z-index: 2;
  --x: 20px;
  --y: 20px;
  --r: 2.8deg;
  filter: brightness(0.76);
}

.stack img:nth-child(4) {
  z-index: 1;
  --x: 30px;
  --y: 30px;
  --r: 4.2deg;
  filter: brightness(0.64);
}

.project-card:hover .stack img:nth-child(1) {
  --x: -18px;
  --y: -8px;
  --r: -3.8deg;
}

.project-card:hover .stack img:nth-child(2) {
  --x: 8px;
  --y: 2px;
  --r: -0.5deg;
}

.project-card:hover .stack img:nth-child(3) {
  --x: 34px;
  --y: 13px;
  --r: 3.2deg;
}

.project-card:hover .stack img:nth-child(4) {
  --x: 58px;
  --y: 24px;
  --r: 6.2deg;
}

.brand-card .stack {
  inset: 44px 42px 130px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.brand-card .stack img {
  position: relative;
  inset: auto;
  width: 84%;
  height: 84%;
  object-fit: contain;
  padding: 22px;
  background: #f5f2ea;
}

.brand-card:hover .stack img:nth-child(1) {
  --s: 1.035;
}

.project-meta {
  position: absolute;
  z-index: 3;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
}

.project-meta strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.12;
}

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

.video-page .page-inner {
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.72fr);
}

.page-video-frame {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.page-video-frame strong {
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.page-video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 76vh;
  border-radius: 6px;
  background: #000;
  object-fit: contain;
  cursor: pointer;
}

.project-dialog {
  width: min(1220px, 94vw);
  max-height: 91svh;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: #0b0b0a;
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.72);
}

.project-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: sticky;
  top: 14px;
  left: calc(100% - 58px);
  z-index: 5;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: var(--ink);
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.dialog-body {
  padding: 28px;
}

.dialog-head {
  padding: 4px 0 28px;
}

.dialog-head h3 {
  margin: 10px 0 0;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.92;
  letter-spacing: 0;
}

.dialog-media {
  display: grid;
  gap: 22px;
}

.dialog-media img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
  background: #171614;
}

@keyframes lake-camera {
  to {
    transform: scale(1.07) translate3d(-0.8%, 0.5%, 0);
  }
}

@keyframes lake-ripple-a {
  from {
    transform: translate3d(-1.5%, 0, 0) skewY(-1.5deg) scaleY(1);
  }

  50% {
    transform: translate3d(1.5%, -1.2%, 0) skewY(1deg) scaleY(1.025);
  }

  to {
    transform: translate3d(-1.5%, 0, 0) skewY(-1.5deg) scaleY(1);
  }
}

@keyframes lake-ripple-b {
  from {
    transform: translate3d(1.8%, 0, 0) skewY(1deg);
  }

  50% {
    transform: translate3d(-1.8%, 1%, 0) skewY(-1deg);
  }

  to {
    transform: translate3d(1.8%, 0, 0) skewY(1deg);
  }
}

@keyframes wind-sheen {
  0%,
  100% {
    opacity: 0.08;
    transform: translate3d(-16%, 0, 0);
  }

  45% {
    opacity: 0.2;
    transform: translate3d(16%, -1%, 0);
  }
}

@keyframes hair-breeze {
  0%,
  100% {
    opacity: 0.12;
    transform: translate3d(-54%, -50%, 0) skewX(-8deg) scaleX(0.92);
  }

  45% {
    opacity: 0.25;
    transform: translate3d(-44%, -53%, 0) skewX(-15deg) scaleX(1.08);
  }

  70% {
    opacity: 0.17;
    transform: translate3d(-48%, -48%, 0) skewX(-4deg) scaleX(1);
  }
}

@keyframes float-up {
  from {
    transform: translate3d(0, 22vh, 0);
  }

  to {
    transform: translate3d(0, -150vh, 0);
  }
}

@media (max-width: 1120px) {
  .page-inner,
  .video-page .page-inner {
    grid-template-columns: 1fr;
    align-content: center;
  }

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

  .profile-panel {
    width: min(430px, 46vw);
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 18px;
  }

  .topbar div {
    display: none;
  }

  .brand-pill {
    padding: 10px 16px 10px 12px;
  }

  .nav-cta {
    padding: 10px 16px;
  }

  .hero-photo {
    background-position: 48% 50%;
  }

  .hero-word {
    font-size: clamp(44px, 16.5vw, 76px);
  }

  .hero-word-a {
    left: 18px;
    top: 17%;
  }

  .hero-word-b {
    right: 18px;
    top: 29%;
  }

  .hero-word-c {
    left: 18px;
    top: 41%;
  }

  .profile-panel {
    left: 18px;
    top: 56%;
    right: auto;
    width: auto;
    max-width: 260px;
  }

  .hero-stat-top {
    top: 18%;
    right: 18px;
  }

  .hero-stat-left {
    left: 18px;
    bottom: 15%;
  }

  .hero-stat-right {
    display: none;
  }

  .hero-stat strong {
    font-size: 34px;
  }

  .diag {
    display: none;
  }

  .float-track span {
    max-width: 72vw;
  }

  .float-a,
  .float-c {
    display: none;
  }

  .float-b {
    left: auto;
    right: 18px;
    opacity: 0.52;
  }

  .category-page,
  .video-page {
    min-height: 100svh;
    padding: 86px 18px 30px;
  }

  .page-inner,
  .video-page .page-inner {
    gap: 20px;
  }

  .page-copy h2 {
    font-size: clamp(44px, 16vw, 72px);
  }

  .page-copy p:not(.section-kicker) {
    margin-top: 14px;
    font-size: 14px;
  }

  .project-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 2px 4px 14px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .project-card {
    flex: 0 0 min(82vw, 420px);
    min-height: clamp(360px, 56svh, 460px);
    scroll-snap-align: start;
  }

  .stack {
    inset: 14px 14px 106px;
  }

  .dialog-body {
    padding: 18px;
  }
}
