:root {
  --ink: #050506;
  --ink-2: #10100e;
  --paper: #f3efe7;
  --paper-soft: rgba(243, 239, 231, .72);
  --paper-muted: rgba(243, 239, 231, .48);
  --line: rgba(243, 239, 231, .18);
  --gold: #d5b56e;
  --gold-soft: rgba(213, 181, 110, .2);
  --shadow: rgba(0, 0, 0, .38);
  --sans: Inter, "Helvetica Neue", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", STSong, serif;
  --mono: "IBM Plex Mono", "JetBrains Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 12%, rgba(213, 181, 110, .11), transparent 30vw),
    linear-gradient(180deg, #050506 0%, #0b0a09 42%, #050506 100%);
  font-family: var(--sans);
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(243, 239, 231, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 239, 231, .028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(20px, 4vw, 72px);
  color: var(--paper);
  mix-blend-mode: difference;
}

.brand {
  display: grid;
  gap: 3px;
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.brand span:first-child {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  font-size: 13px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(520px, .98fr) minmax(420px, 1.02fr);
  align-items: center;
  gap: clamp(28px, 3vw, 58px);
  padding: 116px clamp(20px, 5vw, 92px) 40px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 76% 64%, rgba(213, 181, 110, .2), transparent 22vw),
    radial-gradient(circle at 88% 18%, rgba(243, 239, 231, .08), transparent 24vw);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26vh;
  background: linear-gradient(to top, var(--ink), transparent);
  pointer-events: none;
}

.painting-collage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.tile {
  position: absolute;
  display: block;
  object-fit: cover;
  opacity: .25;
  filter: saturate(.78) contrast(1.05);
  border: 1px solid rgba(243, 239, 231, .22);
  transform-origin: center;
}

.tile-a {
  right: 42vw;
  top: 8vh;
  width: clamp(150px, 16vw, 260px);
  aspect-ratio: 3 / 4;
  transform: rotate(-16deg);
}

.tile-b {
  right: -1vw;
  top: 8vh;
  width: clamp(360px, 46vw, 760px);
  aspect-ratio: 16 / 10;
  transform: rotate(7deg);
  opacity: .2;
}

.tile-c {
  right: 29vw;
  bottom: 3vh;
  width: clamp(260px, 32vw, 520px);
  aspect-ratio: 5 / 4;
  transform: rotate(12deg);
  opacity: .2;
}

.tile-d {
  right: -8vw;
  bottom: 15vh;
  width: clamp(260px, 34vw, 560px);
  aspect-ratio: 16 / 10;
  transform: rotate(-10deg);
  opacity: .18;
}

.hero-copy {
  position: relative;
  z-index: 3;
  min-width: 0;
  max-width: 610px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 9.5em;
  font-size: clamp(54px, 5.4vw, 98px);
  line-height: .94;
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(38px, 5vw, 88px);
  line-height: 1.03;
}

p {
  margin: 0;
  color: var(--paper-soft);
  font-size: clamp(17px, 1.25vw, 22px);
  line-height: 1.8;
}

.hero-lead {
  max-width: 33em;
  margin-top: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button,
.download-button {
  min-height: 48px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.button:hover,
.download-button:hover {
  transform: translateY(-2px);
}

.primary {
  border-color: var(--paper);
  color: var(--ink);
  background: var(--paper);
}

.ghost {
  color: var(--paper);
  background: rgba(243, 239, 231, .04);
  backdrop-filter: blur(16px);
}

.hero-visual {
  position: relative;
  z-index: 2;
  margin: 0;
  align-self: end;
  transform: translateX(2vw);
}

.hero-visual img {
  width: min(74vw, 1180px);
  margin-left: auto;
  filter: drop-shadow(0 38px 50px var(--shadow));
}

.art-story,
.download {
  padding: clamp(86px, 13vw, 190px) clamp(20px, 5vw, 92px);
}

.art-story {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(360px, 1.04fr) minmax(320px, .96fr);
  align-items: center;
  gap: clamp(36px, 7vw, 118px);
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(243, 239, 231, .96), rgba(243, 239, 231, .78)),
    url("./assets/wave.webp") center / cover;
}

.art-story::before {
  content: "";
  position: absolute;
  inset: clamp(20px, 3vw, 44px);
  border: 1px solid rgba(5, 5, 6, .16);
  pointer-events: none;
}

.story-ornament {
  position: absolute;
  left: -8vw;
  top: 8vh;
  width: min(58vw, 720px);
  color: rgba(5, 5, 6, .13);
  pointer-events: none;
}

.story-ornament svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.story-image {
  position: relative;
  z-index: 1;
}

.story-image::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 8%;
  bottom: 3%;
  height: 28%;
  background: rgba(5, 5, 6, .22);
  filter: blur(32px);
  transform: skewX(-18deg);
}

.story-image img {
  position: relative;
  z-index: 1;
  width: min(100%, 780px);
  filter: drop-shadow(0 28px 34px rgba(5, 5, 6, .32));
}

.story-copy {
  position: relative;
  z-index: 1;
  max-width: 690px;
}

.story-copy .eyebrow {
  color: rgba(5, 5, 6, .64);
}

.story-copy h2 {
  max-width: 8.6em;
  color: var(--ink);
}

.story-copy p:not(.eyebrow) {
  max-width: 32em;
  margin-top: 28px;
  color: rgba(5, 5, 6, .7);
}

.story-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.story-points span {
  border: 1px solid rgba(5, 5, 6, .18);
  padding: 11px 14px;
  color: rgba(5, 5, 6, .78);
  background: rgba(243, 239, 231, .38);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.download {
  position: relative;
  min-height: 88svh;
  display: grid;
  grid-template-columns: minmax(0, 760px) auto;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.download::before {
  content: "";
  position: absolute;
  right: -10vw;
  bottom: -14vh;
  width: 68vw;
  height: 68vw;
  border: 1px solid rgba(213, 181, 110, .18);
  transform: rotate(14deg);
  pointer-events: none;
}

.download-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.download-tile {
  position: absolute;
  object-fit: cover;
  opacity: .24;
  border: 1px solid rgba(243, 239, 231, .18);
  filter: saturate(.74);
}

.download-a {
  right: 14vw;
  top: 6vh;
  width: clamp(320px, 39vw, 640px);
  aspect-ratio: 5 / 4;
  transform: rotate(-9deg);
}

.download-b {
  right: -1vw;
  bottom: 2vh;
  width: clamp(190px, 22vw, 360px);
  aspect-ratio: 3 / 4;
  transform: rotate(12deg);
  opacity: .2;
}

.download-lines {
  position: absolute;
  right: clamp(20px, 5vw, 92px);
  top: 14vh;
  width: min(58vw, 820px);
  fill: none;
  stroke: rgba(213, 181, 110, .34);
  stroke-width: 2;
}

.download h2 {
  max-width: 10.5em;
}

.download p:not(.eyebrow) {
  max-width: 34em;
  margin-top: 24px;
}

.download-copy,
.download-button {
  position: relative;
  z-index: 1;
}

.download-button {
  min-width: min(100%, 310px);
  min-height: 76px;
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(20px, 5vw, 92px);
  border-top: 1px solid var(--line);
  color: var(--paper-muted);
  font-size: 13px;
}

.site-footer span:first-child {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 900;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(.2, 0, .2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    padding: 20px;
    mix-blend-mode: normal;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 112px 20px 48px;
  }

  .tile-a {
    right: -2vw;
    top: 14vh;
    width: 154px;
  }

  .tile-b {
    right: -44vw;
    top: 26vh;
    width: 390px;
  }

  .tile-c {
    left: -36vw;
    bottom: 10vh;
    width: 290px;
  }

  .tile-d {
    display: block;
    right: -28vw;
    bottom: 22vh;
    width: 240px;
  }

  .hero-copy {
    width: 100%;
    max-width: 350px;
  }

  .hero-copy p,
  .hero-copy h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(42px, 12.4vw, 56px);
  }

  h2 {
    font-size: clamp(34px, 10.5vw, 58px);
  }

  .hero-visual {
    transform: none;
  }

  .hero-visual img {
    width: 122%;
    max-width: none;
    margin-left: -8%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
    margin-bottom: clamp(24px, 7vw, 48px);
  }

  .button {
    min-width: 0;
    padding: 0 16px;
  }

  .art-story,
  .download {
    padding: 76px 20px;
  }

  .art-story,
  .download {
    grid-template-columns: 1fr;
  }

  .art-story {
    min-height: auto;
    gap: 34px;
    background:
      linear-gradient(180deg, rgba(243, 239, 231, .97), rgba(243, 239, 231, .82)),
      url("./assets/wave.webp") center / cover;
  }

  .art-story::before {
    inset: 14px;
  }

  .story-ornament {
    left: -42vw;
    top: 12vh;
    width: 126vw;
  }

  .story-image {
    order: 2;
  }

  .story-copy {
    order: 1;
  }

  .story-copy h2 {
    max-width: 100%;
  }

  .story-points {
    gap: 8px;
  }

  .story-points span {
    padding: 10px 11px;
    font-size: 11px;
  }

  .download {
    align-items: start;
    min-height: auto;
  }

  .download-a {
    right: -36vw;
    top: 8vh;
    width: 340px;
  }

  .download-b {
    right: 3vw;
    bottom: 4vh;
    width: 170px;
  }

  .download-lines {
    right: -36vw;
    top: 18vh;
    width: 520px;
    opacity: .8;
  }

  .download-button {
    width: 100%;
    min-height: 62px;
  }

  .site-footer {
    display: grid;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
