:root {
  --paper: #eaf4fb;
  --mist: #ddecf8;
  --ink: #0b1f33;
  --muted: #5d7c99;
  --line: rgba(93, 124, 153, 0.18);
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.26);
  --glass-strong: rgba(255, 255, 255, 0.46);
  --blue: #2f93c6;
  --blue-soft: #a9dcf5;
  --deep-blue: #061a2d;
  --shadow: 0 28px 90px rgba(11, 31, 51, 0.16);
  --scroll-progress: 0;
  --pointer-x: 0;
  --pointer-y: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 255, 255, 0.78), transparent 30vw),
    linear-gradient(180deg, var(--paper) 0%, var(--mist) 42%, #eef8fc 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  animation: pageFade 0.9s ease both;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(115deg, rgba(234, 244, 251, 0.88), rgba(221, 236, 248, 0.7)),
    url("assets/rach-ocean-profile.jpg");
  background-size: cover;
  background-position: 54% 58%;
  filter: blur(30px) saturate(1.08);
  transform: scale(1.08);
  opacity: 0.22;
  pointer-events: none;
}

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

svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex: 0 0 auto;
}

.ambient-photo {
  position: fixed;
  inset: -8vh -8vw;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(234, 244, 251, 0.74), rgba(221, 236, 248, 0.82)),
    url("assets/rach-ocean-profile.jpg");
  background-size: cover;
  background-position:
    calc(54% + var(--pointer-x) * 2%) calc(60% + var(--pointer-y) * 2%);
  filter: blur(calc(26px + var(--scroll-progress) * 22px)) saturate(1.05);
  opacity: calc(0.18 + var(--scroll-progress) * 0.24);
  transform: scale(calc(1.08 + var(--scroll-progress) * 0.03));
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: clamp(14px, 2.2vw, 26px);
  left: 50%;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  min-height: 50px;
  padding: 7px 9px 7px 18px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(234, 244, 251, 0.18);
  color: rgba(255, 255, 255, 0.88);
  transform: translateX(-50%);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    color 0.35s ease;
}

.site-header.is-scrolled {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(234, 244, 251, 0.68);
  box-shadow: 0 18px 70px rgba(11, 31, 51, 0.12);
  color: var(--ink);
  backdrop-filter: blur(22px) saturate(1.16);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.nav-links a {
  position: relative;
  overflow: hidden;
  padding: 9px 14px;
  border-radius: 999px;
  color: inherit;
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(169, 220, 245, 0.42), transparent);
  opacity: 0;
  transform: translateX(-55%);
  transition:
    opacity 0.25s ease,
    transform 0.45s ease;
}

.nav-links a:hover::after {
  opacity: 1;
  transform: translateX(55%);
}

.primary-button,
.secondary-button,
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 999px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(118px, 15vh, 168px) clamp(26px, 7vw, 108px) clamp(36px, 6vh, 68px);
  color: var(--white);
}

.hero-bg,
.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg {
  z-index: 0;
  background-image: url("assets/rach-ocean-profile.jpg");
  background-size: cover;
  background-position:
    calc(54% + var(--pointer-x) * 3%) calc(58% + var(--pointer-y) * 2%);
  filter:
    blur(calc(var(--scroll-progress) * 10px))
    saturate(calc(1.06 - var(--scroll-progress) * 0.1))
    contrast(0.96);
  transform: scale(calc(1.015 + var(--scroll-progress) * 0.075));
  animation: slowDrift 18s ease-in-out infinite alternate;
}

.hero-vignette {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(234, 244, 251, 0.22) 0%, rgba(11, 31, 51, calc(0.12 + var(--scroll-progress) * 0.34)) 58%, rgba(6, 26, 45, calc(0.5 + var(--scroll-progress) * 0.22)) 100%),
    linear-gradient(90deg, rgba(6, 26, 45, calc(0.58 + var(--scroll-progress) * 0.12)) 0%, rgba(6, 26, 45, 0.28) 40%, rgba(6, 26, 45, 0.04) 76%),
    radial-gradient(circle at 76% 82%, rgba(169, 220, 245, 0.24), transparent 28vw);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 28vh;
  background: linear-gradient(180deg, rgba(234, 244, 251, 0.48), rgba(234, 244, 251, 0));
  backdrop-filter: blur(5px);
  opacity: 0.86;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 28vh;
  background: linear-gradient(180deg, transparent, rgba(234, 244, 251, 0.94));
  backdrop-filter: blur(calc(1px + var(--scroll-progress) * 10px));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(860px, 100%);
  margin: 0 0 clamp(42px, 7vh, 82px);
  opacity: calc(1 - var(--scroll-progress) * 1.18);
  transform: translateY(calc(var(--scroll-progress) * -36px));
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: rgba(208, 236, 249, 0.92);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 26px;
  font-family:
    "Times New Roman", "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(56px, 9.5vw, 138px);
  font-weight: 560;
  line-height: 0.92;
  letter-spacing: 0.015em;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 6.4vw, 86px);
  font-weight: 680;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.08;
}

.hero-text {
  max-width: 520px;
  margin-bottom: 30px;
  color: rgba(239, 248, 252, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

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

.primary-button,
.secondary-button,
.contact-button {
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.13);
  color: var(--white);
  font-size: 13px;
  font-weight: 610;
  letter-spacing: 0.01em;
  backdrop-filter: blur(20px) saturate(1.12);
}

.secondary-button {
  background: rgba(234, 244, 251, 0.16);
}

.primary-button:hover,
.secondary-button:hover,
.contact-button:hover {
  border-color: rgba(169, 220, 245, 0.72);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 28px rgba(169, 220, 245, 0.22);
  transform: translateY(-1px);
}

.hero-index {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(840px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(234, 244, 251, 0.1);
  backdrop-filter: blur(18px) saturate(1.12);
  opacity: calc(1 - var(--scroll-progress) * 1.32);
  transform: translateY(calc(var(--scroll-progress) * -18px));
}

.hero-index div {
  padding: 18px;
  background: rgba(234, 244, 251, 0.08);
}

.hero-index strong {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1;
}

.hero-index span {
  color: rgba(239, 248, 252, 0.72);
  font-size: 13px;
}

.scroll-cue {
  position: absolute;
  z-index: 4;
  right: clamp(26px, 7vw, 108px);
  bottom: clamp(36px, 6vh, 68px);
  display: grid;
  width: 34px;
  height: 58px;
  place-items: start center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  opacity: calc(1 - var(--scroll-progress) * 1.6);
}

.scroll-cue span {
  width: 3px;
  height: 12px;
  margin-top: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  animation: scrollPulse 1.8s ease infinite;
}

.section {
  position: relative;
  padding: clamp(86px, 12vw, 160px) clamp(24px, 7vw, 108px);
}

.reveal-section {
  opacity: calc(0.36 + var(--scroll-progress) * 0.64);
  filter: blur(calc((1 - var(--scroll-progress)) * 5px));
  transform: translateY(calc((1 - var(--scroll-progress)) * 22px));
}

.intro {
  margin-top: -1px;
  background:
    linear-gradient(180deg, rgba(234, 244, 251, 0.96), rgba(221, 236, 248, 0.78)),
    radial-gradient(circle at 82% 10%, rgba(169, 220, 245, 0.32), transparent 34vw);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.62fr);
  gap: clamp(34px, 7vw, 110px);
  align-items: end;
}

.intro-grid p {
  color: var(--muted);
  font-size: clamp(18px, 1.55vw, 21px);
}

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

.card {
  min-height: 324px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.28)),
    rgba(234, 244, 251, 0.52);
  box-shadow: 0 24px 80px rgba(11, 31, 51, 0.08);
  backdrop-filter: blur(20px) saturate(1.12);
}

.card-number {
  display: inline-block;
  margin-bottom: 58px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.12em;
}

.card p,
.work-copy p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(34px, 6vw, 90px);
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(125deg, rgba(6, 26, 45, 0.96), rgba(11, 31, 51, 0.78)),
    url("assets/rach-ocean-profile.jpg");
  background-size: cover;
  background-position: center 62%;
}

.split::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(169, 220, 245, 0.08);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.split > * {
  position: relative;
}

.split .section-kicker {
  color: rgba(169, 220, 245, 0.9);
}

.series-list {
  display: grid;
  gap: 0;
}

.series-list a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 94px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.series-list span {
  color: rgba(169, 220, 245, 0.9);
  font-weight: 780;
}

.series-list strong {
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1.12;
}

.series-list em {
  color: rgba(239, 248, 252, 0.62);
  font-style: normal;
  white-space: nowrap;
}

.work-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(221, 236, 248, 0.68), rgba(234, 244, 251, 0.96)),
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.82), transparent 28vw);
}

.work-copy {
  max-width: 910px;
}

.work-copy h2 {
  margin-bottom: 20px;
}

.work-copy p {
  max-width: 700px;
  font-size: clamp(18px, 1.5vw, 21px);
}

.contact-button {
  min-height: 48px;
  color: var(--ink);
  border-color: rgba(93, 124, 153, 0.18);
  background: rgba(255, 255, 255, 0.4);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(24px, 7vw, 108px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer div {
  display: flex;
  gap: 18px;
}

.reveal-item {
  opacity: 0;
  animation: revealUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal-item:nth-child(1) {
  animation-delay: 0.1s;
}

.reveal-item:nth-child(2) {
  animation-delay: 0.22s;
}

.reveal-item:nth-child(3) {
  animation-delay: 0.34s;
}

.reveal-item:nth-child(4) {
  animation-delay: 0.46s;
}

.hero-index.reveal-item {
  animation-delay: 0.62s;
}

@media (max-width: 980px) {
  .intro-grid,
  .split,
  .work-band {
    grid-template-columns: 1fr;
  }

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

  .hero-bg {
    background-position:
      calc(62% + var(--pointer-x) * 2%) calc(56% + var(--pointer-y) * 2%);
  }
}

@media (max-width: 720px) {
  .site-header {
    top: 12px;
    width: calc(100% - 24px);
    min-height: 50px;
    padding: 8px 9px 8px 16px;
  }

  .brand {
    font-size: 13px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 100svh;
    padding: 104px 20px 30px;
  }

  .hero-bg {
    background-position: 57% 54%;
  }

  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(234, 244, 251, 0.16) 0%, rgba(11, 31, 51, 0.24) 48%, rgba(6, 26, 45, 0.72) 100%),
      linear-gradient(90deg, rgba(6, 26, 45, 0.58), rgba(6, 26, 45, 0.08) 82%);
  }

  h1 {
    font-size: clamp(50px, 15vw, 72px);
    line-height: 0.94;
  }

  .hero-copy {
    margin-bottom: 28px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-index {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .hero-index div {
    padding: 14px 16px;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding: 80px 20px;
  }

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

  .card {
    min-height: 246px;
  }

  .card-number {
    margin-bottom: 34px;
  }

  .series-list a {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .series-list em {
    grid-column: 2;
  }

  .site-footer {
    flex-direction: column;
    padding: 28px 20px;
  }
}

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

@keyframes pageFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slowDrift {
  from {
    background-position:
      calc(54% + var(--pointer-x) * 3%) calc(58% + var(--pointer-y) * 2%);
  }
  to {
    background-position:
      calc(56% + var(--pointer-x) * 3%) calc(57% + var(--pointer-y) * 2%);
  }
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(14px);
  }
}
