:root {
  color-scheme: dark;
  --background: #000;
  --foreground: #fff;
  --muted: #a6a6a6;
  --line: #333;
  --surface: #0d0d0d;
  --gutter: clamp(1.25rem, 6vw, 7rem);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--foreground); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; width: 100%; height: auto; }
a:focus-visible, button:focus-visible { outline: 2px solid #c5f3ee; outline-offset: 5px; }
.topbar, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-inline: var(--gutter);
  padding-block: 1rem;
}
.brand, .topbar nav { display: flex; align-items: center; gap: .65rem; }
.brand { font-size: 1.12rem; font-weight: 700; letter-spacing: -.045em; }
.mark {
  width: 1.4rem;
  height: 1.4rem;
  background: #fff;
  clip-path: polygon(4% 16%, 30% 33%, 70% 33%, 96% 16%, 96% 68%, 73% 90%, 27% 90%, 4% 68%);
  position: relative;
}
.mark::after {
  content: "";
  position: absolute;
  inset: 53% 27% auto;
  height: 14%;
  background: linear-gradient(90deg, #000 28%, transparent 28% 72%, #000 72%);
}
.topbar nav { gap: clamp(1rem, 3vw, 2.25rem); font-size: .875rem; }
.nav-preview, .footer { color: var(--muted); }
.nav-preview:hover, .footer a:hover { color: #fff; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .6rem; background: #fff; color: #000; font-weight: 600; }
.button:hover { background: #e4e4e4; }
.nav-button { padding: .65rem .9rem; border-radius: .5rem; }
.hero { overflow: clip; }
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 70rem);
  padding: clamp(4rem, 8vw, 6.4rem) 1.25rem 0;
  margin: auto;
  text-align: center;
  transform: translateY(var(--copy-offset, 0));
  opacity: var(--copy-opacity, 1);
}
.glass {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  position: relative;
  isolation: isolate;
  padding: .48rem .72rem;
  border-radius: .7rem;
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .12);
  backdrop-filter: blur(4px);
  color: #d1d1d1;
  font-size: .82rem;
  font-weight: 500;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, #fff6, #fff2 30%, transparent 50%, #fff2 80%, #fff5);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.glass span:first-child { padding: .15rem .4rem; border-radius: .28rem; background: #fff; color: #000; }
.glass-arrow { color: #aaa; }
.glass:hover { color: #fff; }
h1 {
  margin: 1.4rem 0 .85rem;
  font-size: clamp(2.7rem, 7.1vw, 6.7rem);
  font-weight: 500;
  line-height: .99;
  letter-spacing: -.075em;
}
h1 > span { display: block; margin-top: .11em; }
h1 em { font: italic 400 1.19em/.88 "Instrument Serif", Georgia, serif; letter-spacing: -.035em; }
.hero-subtitle { margin: 1.25rem auto 1.65rem; color: hsl(210 17% 95%); font-size: clamp(.95rem, 2vw, 1.12rem); line-height: 1.6; }
.primary { padding: .85rem 1.4rem; border-radius: 5rem; transition: transform .2s ease, background .2s ease; }
.primary:hover { transform: scale(1.03); }
.primary:active { transform: scale(.98); }
.media {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  padding: clamp(2.75rem, 6vw, 5rem) 1.25rem clamp(2.5rem, 7vw, 6rem);
  background: radial-gradient(ellipse at 50% 51%, #17302f 0%, #0a1415 49%, #000 76%);
}
.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(#000, transparent 19% 69%, #000);
  pointer-events: none;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; object-fit: cover; opacity: .54; }
.showcase {
  display: block;
  width: min(100%, 66rem);
  border: 1px solid #ffffff32;
  border-radius: clamp(.7rem, 2vw, 1.25rem);
  background: #111;
  box-shadow: 0 24px 100px #000b;
  overflow: hidden;
  transform: translateY(var(--preview-offset, 0));
}
.showcase-label { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; font-size: .8rem; }
.showcase-label > span { color: #ccc; }
.showcase:hover, .work-card:hover { border-color: #fff8; }
.video-button {
  position: absolute;
  z-index: 1;
  top: .55rem;
  right: max(1.25rem, calc((100% - 66rem) / 2));
  padding: .35rem .65rem;
  border: 1px solid #ffffff45;
  border-radius: .4rem;
  color: #ddd;
  background: #000d;
  cursor: pointer;
  font-size: .75rem;
}
.work-section { width: min(66rem, calc(100% - var(--gutter) * 2)); margin-inline: auto; padding: clamp(2.25rem, 7vw, 6rem) 0 clamp(3rem, 9vw, 7.5rem); scroll-margin-top: 1.5rem; }
.section-header { display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.section-header h2 { margin: 0; font-size: .9rem; font-weight: 500; }
.section-header a { font-size: .85rem; color: #d8d8d8; }
.section-header a:hover { text-decoration: underline; }
.reveal { margin: clamp(1.8rem, 5vw, 4rem) 0; max-width: 44rem; font-size: clamp(1.85rem, 4.65vw, 3.6rem); line-height: 1.26; font-weight: 500; letter-spacing: -.06em; }
.reveal span { display: inline-block; opacity: var(--phrase-opacity, 1); }
.works-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.25rem); }
.work-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
}
.work-card img { grid-column: 1 / -1; aspect-ratio: 16/8; object-fit: cover; }
.work-card div { padding: 1rem; }
.work-card h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.work-card p { margin: .25rem 0 0; color: var(--muted); font-size: .85rem; }
.card-arrow { margin-right: 1rem; }
.footer { border-top: 1px solid var(--line); padding-block: 1.5rem; font-size: .85rem; }
@media (max-width: 38rem) {
  .nav-preview { display: none; }
  h1 { font-size: clamp(2.25rem, 11vw, 4.15rem); }
  .works-grid { grid-template-columns: minmax(0, 1fr); }
  .media { padding-bottom: 3rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .entrance { animation: arrive .65s ease-out backwards; }
  h1.entrance { animation-delay: .1s; }
  .hero-subtitle.entrance { animation-delay: .2s; }
  .primary.entrance { animation-delay: .3s; }
  .media.entrance { animation-duration: .8s; animation-delay: .4s; }
  @keyframes arrive {
    from { opacity: 0; translate: 0 1.2rem; }
    to { opacity: 1; translate: 0; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .primary { transition: none; }
  .primary:hover, .primary:active { transform: none; }
}
