/* Hallmark tokens — coastal dusk, image-first */
:root {
  --ink: #0a1a1e;
  --foam: #f2f7f8;
  --mute: rgba(242, 247, 248, 0.72);
  --sea: #0e7c86;
  --sea-deep: #0a3d44;
  --veil: rgba(6, 22, 26, 0.42);
  --veil-soft: rgba(6, 22, 26, 0.28);
  --line: rgba(242, 247, 248, 0.22);
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-ui: "Instrument Sans", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  overflow-x: clip;
  background: var(--ink);
  color: var(--foam);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

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

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 8px 12px;
  background: var(--foam);
  color: var(--ink);
}
.skip:focus { left: 12px; top: 12px; }

/* —— Top bar —— */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 4vw, 40px);
  mix-blend-mode: normal;
  transition: background 0.35s ease, backdrop-filter 0.35s ease;
}

.topbar.is-solid {
  background: rgba(10, 26, 30, 0.78);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: normal;
}

.chapters {
  display: flex;
  gap: clamp(12px, 3vw, 28px);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.chapters a {
  opacity: 0.78;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  white-space: nowrap;
}

.chapters a:hover,
.chapters a:focus-visible {
  opacity: 1;
  border-bottom-color: var(--foam);
  outline: none;
}

@media (max-width: 720px) {
  .chapters { display: none; }
}

/* —— Full-bleed panels —— */
.panel {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  place-items: stretch;
  overflow: clip;
}

.panel-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.panel.is-in .panel-photo {
  transform: scale(1);
}

.panel-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 22, 26, 0.35) 0%, var(--veil) 55%, rgba(6, 22, 26, 0.7) 100%);
  pointer-events: none;
}

.veil-soft {
  background: linear-gradient(120deg, var(--veil-soft) 0%, rgba(6, 22, 26, 0.15) 45%, rgba(6, 22, 26, 0.55) 100%);
}

.panel-copy {
  position: relative;
  z-index: 2;
  align-self: end;
  max-width: min(34rem, 92vw);
  padding: clamp(28px, 6vw, 72px);
  min-width: 0;
}

.hero-copy {
  align-self: center;
  justify-self: start;
  padding-top: 18vh;
}

.copy-br { justify-self: end; text-align: right; }
.copy-bl { justify-self: start; text-align: left; }

.kicker {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--mute);
  text-transform: uppercase;
}

.display {
  margin: 0;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(4.2rem, 14vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  min-width: 0;
}

.panel-copy h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
  min-width: 0;
}

.tagline,
.panel-copy p:not(.kicker) {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  color: var(--mute);
  max-width: 36ch;
}

.copy-br .tagline,
.copy-br p:not(.kicker) {
  margin-left: auto;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--mute);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  color: var(--foam);
  border-color: var(--foam);
  outline: none;
}

/* —— Horizontal film strip —— */
.strip {
  background: var(--ink);
  padding: clamp(28px, 5vw, 56px) 0;
  border-top: 1px solid rgba(242, 247, 248, 0.08);
}

.strip-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(72vw, 420px), 1fr);
  gap: 14px;
  overflow-x: auto;
  padding: 0 clamp(16px, 4vw, 40px);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.strip-track figure {
  margin: 0;
  scroll-snap-align: start;
  min-width: 0;
}

.strip-track img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  filter: saturate(1.05) contrast(1.02);
}

.strip-track figcaption {
  margin-top: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--mute);
}

/* —— Join —— */
.join {
  background: linear-gradient(180deg, var(--sea-deep), #061316);
  padding: clamp(64px, 10vw, 120px) clamp(16px, 4vw, 40px);
}

.join-inner {
  max-width: 640px;
  min-width: 0;
}

.join h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-style: normal;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  overflow-wrap: anywhere;
}

.join p {
  margin: 0 0 28px;
  color: var(--mute);
  line-height: 1.65;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--foam);
  outline-offset: 3px;
}

.btn.solid {
  background: var(--foam);
  color: var(--ink);
}

.btn.solid:hover { transform: translateY(-1px); }

.btn.ghost {
  border: 1px solid var(--line);
  color: var(--foam);
}

.btn.ghost:hover {
  border-color: var(--foam);
}

/* —— Footer / ICP —— */
.site-footer {
  background: #040c0e;
  padding: 28px clamp(16px, 4vw, 40px) 36px;
  border-top: 1px solid rgba(242, 247, 248, 0.08);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.footer-brand span,
.footer-links {
  color: var(--mute);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--foam);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.beian {
  color: var(--mute);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel-photo { transition: none; transform: none; }
  .panel.is-in .panel-photo { transform: none; }
}
