:root {
  --ink: #17202b;
  --ink-soft: #5c6772;
  --sun: #e07a32;
  --sun-deep: #c45e1c;
  --ridge: #7c8494;
  --mountain: #465464;
  --sky: #b7cce0;
  --mist: #e7eef3;
  --foam: #f3f6f8;
  --navy: #1b2734;
  --line: rgba(23, 32, 43, 0.12);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--mist);
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.moment-wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  color: var(--ink);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(231, 238, 243, 0.92);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 10px;
}

.brand small {
  display: block;
  font-family: Sora, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.72;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 14px;
  opacity: 0.78;
}

.nav a:hover,
.nav a.is-active {
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.moment-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.moment-btn-sun {
  background: var(--sun);
  color: #fff;
}

.moment-btn-sun:hover {
  background: var(--sun-deep);
}

.moment-btn-line {
  border-color: var(--line);
  color: var(--ink);
}

.moment-btn-line:hover {
  border-color: var(--ink);
}

.moment-btn-navy {
  background: var(--navy);
  color: #fff;
}

.moment-btn-navy:hover {
  background: #101820;
}

/* Hero: full-bleed lifestyle scene */
.moment-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
}

.moment-hero-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  transform: scale(1.08);
  animation: hero-settle 16s ease-out forwards;
}

.moment-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.5) 34%,
    rgba(255, 255, 255, 0.12) 58%,
    transparent 76%
  );
}

.moment-hero-copy {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 108px 0 64px;
  max-width: 640px;
  margin-left: max(20px, calc((100% - var(--max)) / 2));
  animation: rise 1.1s ease both;
}

.moment-brand-name {
  margin: 0;
  font-size: clamp(56px, 10vw, 112px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0.14em;
}

.moment-brand-en {
  margin: 16px 0 0;
  font-family: Sora, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.72;
}

.moment-hero h1 {
  margin: 28px 0 0;
  max-width: 16em;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.moment-hero .support {
  margin: 14px 0 0;
  max-width: 22em;
  font-size: 16px;
  color: var(--ink-soft);
}

.moment-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Record: the logo as a place */
.moment-place {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  scroll-margin-top: 72px;
  background: linear-gradient(180deg, #8eb4d2 0%, #c5d7e6 42%, #e4edf3 72%);
}

.moment-sun {
  position: absolute;
  top: 14%;
  left: 12%;
  width: clamp(88px, 12vw, 140px);
  height: clamp(88px, 12vw, 140px);
  border-radius: 50%;
  background: var(--sun);
  animation: sun-lift 2.8s ease both;
}

.moment-peak {
  position: absolute;
  bottom: 0;
  pointer-events: none;
}

.moment-peak-back {
  right: -6%;
  width: 72%;
  height: 44%;
  background: var(--ridge);
  clip-path: polygon(18% 100%, 58% 16%, 100% 100%);
}

.moment-peak-front {
  left: -8%;
  width: 70%;
  height: 52%;
  background: var(--mountain);
  clip-path: polygon(0 100%, 38% 10%, 86% 100%);
}

.moment-place-copy {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 22vh 0 42vh;
  max-width: 640px;
}

.moment-place-copy h2,
.moment-rewind-copy h2,
.moment-film-copy h2,
.moment-keep h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.moment-place-copy p,
.moment-rewind-copy p,
.moment-film-copy p,
.moment-keep p {
  margin: 16px 0 0;
  max-width: 28em;
  font-size: 18px;
  color: var(--ink-soft);
}

.moment-place-copy p {
  color: var(--ink);
}

/* Rewind: calendar plane + date block */
.moment-rewind {
  background: var(--foam);
}

.moment-rewind-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 56px;
  align-items: center;
  min-height: 88vh;
  padding: 120px 0;
}

.moment-board {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  height: min(68vh, 640px);
  animation: rise 1s ease both;
}

.moment-board-photo {
  margin: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #d7e2ea;
}

.moment-board-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 14%;
  transform: scale(1.06);
  animation: shot-settle 1.6s ease both;
}

.moment-date {
  margin: 0;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 28px;
  border-left: 6px solid var(--sun);
  font-family: Sora, sans-serif;
  line-height: 0.85;
}

.moment-date b {
  display: block;
  font-size: clamp(72px, 10vw, 128px);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.moment-date span {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

/* Film: stills in a flat timeline */
.moment-film {
  padding: 120px 0 0;
  background: var(--mist);
}

.moment-film-copy {
  margin-bottom: 56px;
}

.moment-span {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.moment-span li {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: min(54vh, 520px);
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  animation: rise 0.9s ease both;
}

.moment-span li:nth-child(2) {
  animation-delay: 0.08s;
}

.moment-span li:nth-child(3) {
  animation-delay: 0.16s;
}

.moment-span li:nth-child(4) {
  animation-delay: 0.24s;
}

.moment-span img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moment-span li:nth-child(1) img {
  object-position: 50% 18%;
}

.moment-span li:nth-child(2) img {
  object-position: 62% 48%;
}

.moment-span li:nth-child(3) img {
  object-position: 40% 35%;
}

.moment-span li:nth-child(4) img {
  object-position: 55% 42%;
}

.moment-span > li > span:last-child {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.18em;
  border-top: 2px solid var(--sun);
}

.moment-span-shot {
  position: relative;
  min-height: 0;
  height: 100%;
  margin: 0;
}

.moment-span-end .moment-play {
  position: absolute;
  left: 50%;
  top: 50%;
}

.moment-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sun);
  animation: play-breathe 3.6s ease-in-out infinite;
}

.moment-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-50%, -50%);
}

/* Keep */
.moment-keep {
  padding: 120px 0 100px;
  background:
    linear-gradient(180deg, rgba(176, 204, 224, 0.35), rgba(231, 238, 243, 0.2)),
    var(--foam);
  text-align: center;
}

.moment-keep h2,
.moment-keep p {
  margin-left: auto;
  margin-right: auto;
}

.moment-keep .moment-cta {
  justify-content: center;
}

.moment-keep-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  object-fit: cover;
  border-radius: 18px;
}

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.58);
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr;
  gap: 40px 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
  margin: 0 0 16px;
}

.site-footer h3 {
  font-size: 18px;
  letter-spacing: 0.08em;
}

.site-footer h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.42);
}

.site-footer p {
  margin: 0 0 8px;
}

.footer-brand p {
  max-width: 22em;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.site-footer a:hover {
  color: #fff;
}

.icp {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: 13px;
}

@keyframes hero-settle {
  to {
    transform: scale(1.02);
  }
}

@keyframes shot-settle {
  to {
    transform: scale(1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sun-lift {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes play-breathe {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 72px;
    background: var(--foam);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .nav.is-open {
    display: flex;
  }

  .moment-hero {
    align-items: flex-end;
  }

  .moment-hero-copy {
    padding: 24px 0 48px;
    margin-left: auto;
    margin-right: auto;
  }

  .moment-hero-visual {
    object-position: 55% 42%;
  }

  .moment-hero-veil {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.2) 42%,
      rgba(255, 255, 255, 0.9) 100%
    );
  }

  .moment-rewind-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 36px;
    padding: 80px 0;
  }

  .moment-board,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .moment-board {
    height: auto;
  }

  .moment-board-photo {
    aspect-ratio: 4 / 5;
    max-height: 520px;
  }

  .moment-date {
    min-height: 180px;
    border-left: 0;
    border-top: 6px solid var(--sun);
  }

  .moment-place-copy {
    padding: 18vh 0 36vh;
  }

  .moment-keep {
    padding: 80px 0;
  }

  .moment-film {
    padding: 80px 0 0;
  }

  .moment-film-copy {
    margin-bottom: 36px;
  }

  .moment-span {
    grid-template-columns: 1fr 1fr;
  }

  .moment-span li {
    min-height: 220px;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
  }

  .footer-nav h4 {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .moment-hero-visual,
  .moment-hero-copy,
  .moment-sun,
  .moment-play,
  .moment-board,
  .moment-board-photo img,
  .moment-span li {
    animation: none;
  }

  .moment-hero-visual {
    transform: scale(1.02);
  }

  .moment-play {
    transform: translate(-50%, -50%);
  }
}
