:root {
  --canvas: #050708;
  --surface: #0c0f11;
  --surface-raised: #111417;
  --ink: #e5e9e8;
  --muted: #929a9c;
  --accent: #a58b63;
  --line: rgba(229, 233, 232, 0.14);
  --display: "Syne", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: var(--body); }
button, a { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.shell-wide { width: min(1540px, calc(100% - 48px)); margin-inline: auto; }

.topbar { position: fixed; z-index: 20; top: 16px; left: 50%; display: grid; grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr); align-items: center; width: min(1120px, calc(100% - 36px)); min-height: 62px; padding: 7px 10px 7px 18px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; color: #e7e8e4; background: rgba(10, 13, 13, 0.92); box-shadow: 0 20px 42px rgba(0, 0, 0, 0.3); backdrop-filter: blur(18px); transform: translateX(-50%); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-size: 12px; font-weight: 700; text-decoration: none; }
.brand img { width: 23px; height: 23px; }
.topnav { display: flex; align-items: center; gap: clamp(15px, 2vw, 30px); }
.topnav a { position: relative; padding: 12px 0; color: rgba(232, 234, 230, 0.57); font-size: 11px; text-decoration: none; }
.topnav a::after { position: absolute; right: 0; bottom: 7px; left: 0; height: 1px; content: ""; background: var(--accent); transform: scaleX(0); transition: transform 220ms ease-out; }
.topnav a:hover, .topnav a.is-active { color: var(--ink); }
.topnav a.is-active::after { transform: scaleX(1); }
.return-link, .back-button { justify-self: end; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 19px; border-radius: 999px; color: #101312; background: #f3f4ed; font-size: 11px; font-weight: 700; text-decoration: none; transition: transform 220ms ease-out, background-color 220ms ease-out; }
.return-link:hover, .back-button:hover { transform: translateY(-2px); background: #fff; }
.return-link:focus-visible, .back-button:focus-visible, .poster-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.hero { display: grid; grid-template-columns: minmax(300px, 0.72fr) minmax(420px, 1fr); min-height: 100svh; gap: clamp(48px, 7vw, 120px); align-items: center; padding: 124px max(4vw, 48px) 64px; }
.hero-copy { max-width: 520px; justify-self: end; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; }
h1 { font-size: clamp(70px, 8vw, 132px); line-height: 1.08; letter-spacing: -0.04em; }
h1 .hero-title-skill { display: inline-block; margin: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: none; }
h1 .hero-subtitle { display: block; margin-top: 28px; color: var(--accent); font: 400 11px/1.4 var(--mono); letter-spacing: 0.15em; text-transform: uppercase; }
.hero-intro { max-width: 470px; margin: 38px 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.hero-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 38px 0 0; border-top: 1px solid var(--line); }
.hero-facts div { padding: 15px 0; border-bottom: 1px solid var(--line); }
.hero-facts div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.hero-facts dt { color: var(--accent); font: 400 9px/1.4 var(--mono); letter-spacing: 0.11em; text-transform: uppercase; }
.hero-facts dd { margin: 6px 0 0; font-size: 13px; }

.poster-button { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 14px; background: #e8e4db; cursor: zoom-in; }
.poster-button img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), filter 280ms ease-out; }
.poster-button:hover img { transform: scale(1.012); filter: brightness(1.025); }
.poster-caption { position: absolute; right: 12px; bottom: 12px; left: 12px; display: flex; justify-content: space-between; gap: 20px; padding: 11px 13px; border-radius: 10px; color: #f3f4ed; background: rgba(8, 10, 11, 0.84); font: 400 9px/1.3 var(--mono); letter-spacing: 0.08em; pointer-events: none; }
.poster-caption strong { font-weight: 500; }

.hero-carousel { width: min(600px, 100%); justify-self: start; }
.hero-carousel-track { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 14px; background: #e8e4db; box-shadow: 0 28px 52px rgba(0, 0, 0, 0.2); }
.hero-slide { position: absolute; inset: 0; visibility: hidden; opacity: 0; border-radius: 0; transform: scale(0.985); transition: opacity 460ms ease, transform 620ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 620ms; }
.hero-slide.is-active { z-index: 1; visibility: visible; opacity: 1; transform: scale(1); transition-delay: 0s; }
.hero-carousel .poster-caption { display: none; }

.system-section { padding: 148px 0 136px; border-top: 1px solid var(--line); background: var(--surface); }
.system-heading, .section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr); gap: 56px; align-items: end; }
h2 { max-width: 11ch; font-size: clamp(54px, 6vw, 96px); line-height: 1.14; letter-spacing: -0.04em; text-wrap: balance; }
.system-heading > p, .section-heading > p { max-width: 470px; margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.system-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.system-strip > div { min-height: 188px; padding: 26px 24px 30px 0; }
.system-strip > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.system-strip span, .style-chapter__copy > span { color: var(--accent); font: 400 9px/1.4 var(--mono); letter-spacing: 0.11em; }
.system-strip strong { display: block; margin-top: 40px; font-size: 18px; font-weight: 500; }
.system-strip p { margin: 11px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }

.styles-section { padding: 150px 0 0; }
.section-heading { margin-bottom: 110px; }
.style-chapter { padding: 132px 0 150px; border-top: 1px solid var(--line); }
.style-chapter__lead { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 8vw, 130px); align-items: center; }
.style-chapter__copy { max-width: 500px; justify-self: end; }
.style-chapter__copy h3 { max-width: 100%; margin-top: 20px; font-size: clamp(38px, 4vw, 68px); line-height: 1.18; letter-spacing: -0.04em; text-wrap: balance; }
.style-chapter__copy p { max-width: 420px; margin: 28px 0 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.style-chapter__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 34px); width: 100%; margin: 0; }
.style-chapter__gallery .poster-button { aspect-ratio: 3 / 4; }
.style-chapter--reverse .style-chapter__copy { grid-column: 2; justify-self: start; }
.style-chapter--reverse .style-chapter__gallery { grid-row: 1; grid-column: 1; }
.archive-section { scroll-margin-top: 112px; background: var(--surface); }

.closing { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); }
.closing p { margin: 0; font-size: 11px; }

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

@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topnav { display: none; }
  .hero { grid-template-columns: 1fr 1fr; gap: 36px; padding-inline: 24px; }
  h1 { font-size: clamp(58px, 10vw, 94px); }
  .system-heading, .section-heading { grid-template-columns: 1fr; }
  .system-strip { grid-template-columns: 1fr 1fr; }
  .system-strip > div:nth-child(3) { border-left: 0; }
  .system-strip > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .style-chapter__lead { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px; }
}

@media (max-width: 700px) {
  .shell, .shell-wide { width: min(100% - 32px, 600px); }
  .topbar { top: 10px; width: calc(100% - 20px); min-height: 54px; padding: 5px 6px 5px 13px; }
  .brand { font-size: 11px; }
  .return-link { min-height: 38px; padding: 0 13px; font-size: 10px; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 24px; padding: 94px 16px 78px; }
  .hero-copy { display: contents; }
  .hero h1 { order: 0; }
  .hero h1 .hero-subtitle { margin-top: 14px; }
  .hero-carousel { order: 1; width: min(100%, 520px); justify-self: center; }
  .hero-intro { order: 2; margin-top: 8px; }
  .hero-facts { order: 3; width: 100%; margin-top: 0; }
  h1 { font-size: clamp(58px, 18vw, 86px); }
  h2 { font-size: clamp(46px, 14vw, 72px); }
  .system-section, .styles-section { padding-block: 92px; }
  .styles-section { padding-bottom: 0; }
  .style-chapter { padding: 92px 0; }
  .system-strip { grid-template-columns: 1fr; margin-top: 54px; }
  .system-strip > div + div { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .system-strip > div { min-height: 0; padding: 22px 0 26px; }
  .system-strip strong { margin-top: 24px; }
  .section-heading { margin-bottom: 68px; }
  .style-chapter__lead { grid-template-columns: 1fr; gap: 40px; }
  .style-chapter--reverse .style-chapter__copy, .style-chapter--reverse .style-chapter__gallery { grid-column: 1; }
  .style-chapter--reverse .style-chapter__copy { grid-row: 1; justify-self: start; }
  .style-chapter--reverse .style-chapter__gallery { grid-row: 2; }
  .style-chapter__copy { justify-self: start; }
  .style-chapter__copy h3 { font-size: clamp(38px, 12vw, 58px); }
  .style-chapter__gallery, .style-chapter__gallery--right, .style-chapter__gallery--left { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin: 0; gap: 16px; }
  .poster-caption { font-size: 8px; }
  .closing { display: block; }
  .back-button { margin-top: 20px; }
}
