/* finesse · register=brand · A=warm-paper+persimmon · B=story-title-display · C=key-visual-plus-cover-shelf · D=css-kenburns-scroll-stroke · E=otome-illustrated-covers · SOUL=8 SPECTACLE=7 DENSITY=5 */

:root {
  --bg: #f6f0ec;
  --surface: #fff8f5;
  --ink: #2c2230;
  --muted: #6d5e6c;
  --dim: #5c4e5c;
  --accent: #ef6a32;
  --accent-ink: #2a120c;
  --accent-soft: #ffd9c8;
  --line: rgba(44, 34, 48, 0.12);
  --line-strong: rgba(44, 34, 48, 0.22);
  --shadow: rgba(44, 34, 48, 0.14);
  --font-display: "ZCOOL XiaoWei", "Noto Sans SC", serif;
  --font-body: "Noto Sans SC", "Nunito", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-ui: "Nunito", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 14px;
  --nav-h: 64px;
  --z-nav: 60;
  --track-open: 0.08em;
  --track-tight: 0.01em;
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body { overflow-x: clip; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }

button,
a { font: inherit; }

button {
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a { color: inherit; }

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3,
.mark,
.domain {
  overflow-wrap: anywhere;
  min-width: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 80;
  transform: translateY(-140%);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 14px;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip:focus { transform: none; }

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--nav-h);
  padding: 0 clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.logo,
.mark {
  font-family: var(--font-ui);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.logo {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  line-height: 1.05;
}

.nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav__links a,
.nav__panel a,
.nav__more,
.lang,
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
}

.nav__links a,
.nav__panel a,
.nav__more { padding: 0 10px; }

.nav__more { display: none; margin-left: auto; }

.nav__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 8px clamp(16px, 4vw, 40px) 16px;
}

.nav__panel[hidden] { display: none; }

.lang {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0 14px;
  font-family: var(--font-ui);
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: clamp(28px, 6vh, 72px) clamp(20px, 4vw, 56px) clamp(12px, 3vh, 28px);
  max-width: 1200px;
  margin: 0 auto;
}

.mark {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
  line-height: 1.05;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
  white-space: pre-line;
}

.lede {
  max-width: 28em;
  margin: 16px 0 0;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  padding: 0 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-ui);
  font-weight: 800;
  border-radius: var(--radius);
}

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.hero__art {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 24px 50px var(--shadow);
  background: var(--accent-soft);
}

.hero__img {
  width: 100%;
  height: min(68vh, 620px);
  object-fit: cover;
  transform-origin: 62% 40%;
  animation: ken 16s var(--ease) infinite alternate;
}

.band { padding: clamp(64px, 10vh, 108px) clamp(20px, 4vw, 56px); }

.band__inner { max-width: 1120px; margin: 0 auto; }

.length h2,
.worlds h2,
.steps h2,
.close h2 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.promise { padding-top: 8px; }

.promise__line {
  margin: 0;
  max-width: 40em;
  color: var(--muted);
  font-size: 18px;
}

.length__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.72fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.seg {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.seg button {
  min-height: 44px;
  padding: 0 16px;
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-ui);
  font-weight: 800;
}

.seg button[aria-selected="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.length h3,
.work h3,
.steps h3 {
  margin: 12px 0 6px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.length p,
.work p,
.steps p,
.close__body {
  margin: 0;
  color: var(--muted);
}

.length__frame {
  margin: 0;
  min-width: 0;
  position: relative;
}

.length__frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  view-transition-name: length-photo;
  box-shadow: 0 18px 40px var(--shadow);
}

.rule {
  display: block;
  width: 120px;
  height: 8px;
  margin: 0 0 12px;
}

.rule line {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 0;
}

@supports (animation-timeline: view()) {
  .rule line {
    animation: draw linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
}

.shelf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.work { min-width: 0; }

.work a {
  display: block;
  text-decoration: none;
  min-width: 0;
}

.work img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.work h3 { white-space: nowrap; }

.steps ol {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.num {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.1;
  color: var(--accent);
}

.close__inner { max-width: 720px; }

.domain {
  margin: 22px 0;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: clamp(22px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: var(--track-open);
  animation: loosen 7s var(--ease) infinite alternate;
}

.fine {
  margin: 22px 0 0;
  color: var(--dim);
  font-size: 14px;
  max-width: 40em;
}

@keyframes ken {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes draw {
  from { stroke-dashoffset: 120; }
  to { stroke-dashoffset: 0; }
}

@keyframes loosen {
  from { letter-spacing: var(--track-tight); }
  to { letter-spacing: var(--track-open); }
}

@media (prefers-reduced-transparency: reduce) {
  .nav {
    background: var(--bg);
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__img {
    animation: none !important;
    transform: none;
  }

  .rule line {
    animation: none !important;
    stroke-dashoffset: 0;
  }

  .domain {
    animation: none !important;
    letter-spacing: var(--track-open);
  }
}

@media (max-width: 800px) {
  .nav__links { display: none; }
  .nav__more { display: inline-flex; }

  .hero,
  .length__grid,
  .shelf {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__img { height: 52vh; }

  .shelf {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .work {
    flex: 0 0 74%;
    scroll-snap-align: start;
  }
}
