:root {
  --bg: #0c0d0b;
  --bg-soft: #11120f;
  --surface: #161713;
  --surface-2: #1c1d18;
  --ink: #f1ecdf;
  --muted: #a39e91;
  --faint: #928d81;
  --line: rgba(241, 236, 223, 0.13);
  --line-strong: rgba(241, 236, 223, 0.28);
  --gold: #c7a46a;
  --gold-bright: #e6c38b;
  --gold-dim: rgba(199, 164, 106, 0.18);
  --red: #b75f4c;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --pad: clamp(20px, 4.5vw, 72px);
  --max: 1360px;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background-image: url("img/noise.svg");
  background-size: 160px 160px;
  opacity: 0.035;
  mix-blend-mode: soft-light;
}

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

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

p,
h1,
h2,
h3,
h4,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--gold);
  color: #14130f;
}

:focus-visible {
  outline: 1px solid var(--gold-bright);
  outline-offset: 4px;
}

.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 400;
  padding: 12px 18px;
  background: var(--gold);
  color: #11120f;
  font-size: 13px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 300;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #8e6e3f, var(--gold-bright));
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.19em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
}

.eyebrow--plain::before {
  display: none;
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

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

.btn--gold {
  background: var(--gold);
  color: #12120e;
}

.btn--gold:hover {
  background: var(--gold-bright);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

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

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.arrow-link span {
  transition: transform 0.25s ease;
}

.arrow-link:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
}

.arrow-link:hover span {
  transform: translate(3px, -3px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 13, 11, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(12, 13, 11, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.brand-mark::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(199, 164, 106, 0.35);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(199, 164, 106, 0.25);
  border-radius: 50%;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.brand-sub {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.21em;
  line-height: 1.2;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.5vw, 52px);
  margin-left: auto;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.3s var(--ease);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.main-nav .nav-num {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.header-cta::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.header-cta:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 17px;
  height: 1px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle::before,
.menu-toggle::after {
  content: "";
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  min-height: clamp(660px, calc(100svh - var(--header-h)), 940px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0b0c09;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 34%;
  filter: saturate(0.92) brightness(0.91);
  transform: scale(1.015);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 11, 9, 0.97) 0%, rgba(10, 11, 9, 0.8) 34%, rgba(10, 11, 9, 0.12) 72%, rgba(10, 11, 9, 0.35) 100%),
    linear-gradient(0deg, rgba(10, 11, 9, 0.94) 0%, rgba(10, 11, 9, 0.18) 48%, rgba(10, 11, 9, 0.22) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  padding-top: 100px;
  padding-bottom: clamp(52px, 8vh, 90px);
}

.hero-copy {
  max-width: 750px;
}

.hero-title {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: clamp(3.25rem, 8.2vw, 8.2rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.hero-title em {
  display: block;
  margin-top: 0.07em;
  margin-left: clamp(0px, 4vw, 58px);
  color: var(--gold-bright);
  font-style: normal;
}

.hero-lede {
  max-width: 33rem;
  margin-top: 30px;
  color: rgba(241, 236, 223, 0.74);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-meta span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.hero-meta b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-rail {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
  align-self: flex-end;
  padding-bottom: 10px;
  color: rgba(241, 236, 223, 0.72);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero-rail::before {
  content: "";
  width: 1px;
  height: 72px;
  background: linear-gradient(var(--gold), transparent);
}

.concept-strip {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.concept-track {
  display: flex;
  width: max-content;
  padding: 17px 0;
  animation: drift 42s linear infinite;
}

.concept-group {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.concept-group i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
}

@keyframes drift {
  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: clamp(78px, 11vw, 150px) 0;
}

.section--tight {
  padding-top: clamp(58px, 7vw, 92px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 28px 64px;
  padding-top: 22px;
  margin-bottom: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.section-head h2 {
  max-width: 13ch;
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.9vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.section-head p {
  max-width: 26rem;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
}

.section-head p + p {
  margin-top: 12px;
}

.statement {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: end;
}

.statement-text {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.4vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.38;
}

.statement-text span {
  color: var(--faint);
}

.statement-side {
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.95;
}

.statement-side .mono {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
}

.sim-section {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 16% 22%, rgba(199, 164, 106, 0.07), transparent 30%),
    radial-gradient(circle at 92% 76%, rgba(96, 111, 86, 0.09), transparent 36%),
    var(--bg-soft);
}

.sim-section .section-head h2 {
  max-width: 10ch;
}

.sim-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.78fr);
  gap: clamp(22px, 3.5vw, 48px);
  align-items: start;
}

.sim-stage {
  --brightness: 1;
  --bokeh-blur: 5px;
  --bokeh-opacity: 0.92;
  --focus-x: 23%;
  --focus-y: 38%;
  --ghost-opacity: 0;
  --ghost-blur: 1px;
  --ghost-x: 0px;
  --grain-opacity: 0.04;
  --wash: 0;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #080907;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.28);
}

.sim-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  filter: brightness(var(--brightness));
  transition: filter 0.24s ease;
}

.sim-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.sim-blur {
  position: absolute;
  inset: -8px;
  background-image: url("img/simulator-portrait.jpg");
  background-position: center 40%;
  background-size: cover;
  filter: blur(var(--bokeh-blur));
  opacity: var(--bokeh-opacity);
  -webkit-mask-image: radial-gradient(ellipse var(--focus-x) var(--focus-y) at 38% 42%, transparent 0%, transparent 48%, rgba(0, 0, 0, 0.4) 78%, #000 100%);
  mask-image: radial-gradient(ellipse var(--focus-x) var(--focus-y) at 38% 42%, transparent 0%, transparent 48%, rgba(0, 0, 0, 0.4) 78%, #000 100%);
  transition: filter 0.24s ease, opacity 0.24s ease, -webkit-mask-image 0.24s ease, mask-image 0.24s ease;
}

.sim-ghost {
  position: absolute;
  inset: 0;
  background-image: url("img/simulator-portrait.jpg");
  background-position: center 40%;
  background-size: cover;
  opacity: var(--ghost-opacity);
  filter: blur(var(--ghost-blur));
  transform: translateX(var(--ghost-x)) scale(1.012);
  mix-blend-mode: screen;
  transition: opacity 0.24s ease, filter 0.24s ease, transform 0.24s ease;
}

.sim-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: url("img/noise.svg");
  background-size: 130px 130px;
  opacity: var(--grain-opacity);
  mix-blend-mode: soft-light;
  transition: opacity 0.24s ease;
}

.sim-wash {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: #f8efdc;
  opacity: var(--wash);
  mix-blend-mode: screen;
  transition: opacity 0.24s ease;
}

.sim-vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    radial-gradient(circle at 46% 44%, transparent 34%, rgba(0, 0, 0, 0.36) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.46), transparent 26%, transparent 76%, rgba(0, 0, 0, 0.26));
}

.sim-hud {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(13px, 2vw, 22px);
  pointer-events: none;
  color: rgba(255, 248, 232, 0.76);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hud-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hud-rec {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hud-rec::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cf6b55;
  box-shadow: 0 0 10px rgba(207, 107, 85, 0.75);
}

.hud-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.hud-values span {
  padding: 4px 7px;
  background: rgba(7, 8, 6, 0.34);
  backdrop-filter: blur(4px);
}

.focus-box {
  position: absolute;
  left: 26%;
  top: 27%;
  width: 26%;
  height: 43%;
  border: 1px solid rgba(230, 195, 139, 0.45);
}

.focus-box::before,
.focus-box::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--gold-bright);
}

.focus-box::before {
  left: -1px;
  top: -1px;
  border-left: 1px solid;
  border-top: 1px solid;
}

.focus-box::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.sim-caption {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-strong);
  border-top: 0;
  background: var(--surface);
}

.sim-caption div {
  padding: 13px 14px;
  border-right: 1px solid var(--line);
}

.sim-caption div:last-child {
  border-right: 0;
}

.sim-caption span {
  display: block;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.sim-caption strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.sim-footer-note {
  margin-top: 13px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.8;
}

.sim-controls {
  padding: clamp(20px, 2.6vw, 32px);
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.sim-readout {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.readout-label {
  display: block;
  margin-bottom: 5px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

#expLabel {
  font-family: var(--serif);
  font-size: clamp(22px, 2.1vw, 29px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ev-readout {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--gold-bright);
  font-family: var(--mono);
}

.ev-readout strong {
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 400;
  letter-spacing: -0.05em;
}

.ev-readout small {
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.meter {
  position: relative;
  margin: 18px 0 14px;
  padding-bottom: 15px;
}

.meter-track {
  position: relative;
  height: 23px;
  border-top: 1px solid var(--line-strong);
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 1px), var(--line) calc(10% - 1px), var(--line) 10%);
}

.meter-track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 9px;
  background: var(--gold);
  opacity: 0.7;
}

.meter-needle {
  position: absolute;
  left: 50%;
  top: -6px;
  width: 2px;
  height: 17px;
  background: var(--gold-bright);
  box-shadow: 0 0 12px rgba(230, 195, 139, 0.45);
  transform: translateX(-50%);
  transition: left 0.28s var(--ease), background 0.2s ease;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.control {
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.control-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.control-head label {
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.control-head output {
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.control-hint {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.range {
  --progress: 0%;
  display: block;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: grab;
}

.range:active {
  cursor: grabbing;
}

.range::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0 var(--progress), rgba(241, 236, 223, 0.16) var(--progress) 100%);
}

.range::-moz-range-track {
  height: 2px;
  background: rgba(241, 236, 223, 0.16);
}

.range::-moz-range-progress {
  height: 2px;
  background: var(--gold);
}

.range::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -6px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--gold-bright);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 4px rgba(199, 164, 106, 0.08);
}

.range::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 1px solid var(--gold-bright);
  border-radius: 50%;
  background: var(--bg);
}

.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.preset {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.preset:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.preset.is-active {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold-bright);
}

.sim-tip {
  margin-top: 18px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
  line-height: 1.8;
}

.sim-tip strong {
  color: var(--muted);
  font-weight: 400;
}

.chapter-list {
  border-top: 1px solid var(--line);
}

.chapter-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(190px, 300px) 34px;
  align-items: center;
  gap: clamp(18px, 4vw, 52px);
  padding: clamp(22px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.35s var(--ease), background 0.35s ease;
}

.chapter-row:hover {
  padding-left: 10px;
}

.chapter-no {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.chapter-copy {
  display: grid;
  grid-template-columns: minmax(170px, 0.6fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 24px;
}

.chapter-copy h3 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.3vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
  transition: color 0.3s ease;
}

.chapter-row:hover .chapter-copy h3 {
  color: var(--gold-bright);
}

.chapter-copy p {
  max-width: 33rem;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.chapter-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: var(--surface);
}

.chapter-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.9);
  transition: transform 0.6s var(--ease), filter 0.4s ease;
}

.chapter-row:hover .chapter-thumb img {
  transform: scale(1.06);
  filter: saturate(1) brightness(0.97);
}

.chapter-arrow {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 19px;
  line-height: 1;
  transition: color 0.25s ease, transform 0.25s ease;
}

.chapter-row:hover .chapter-arrow {
  color: var(--gold-bright);
  transform: translate(4px, -4px);
}

.field-notes {
  display: grid;
  grid-template-columns: 0.7fr 2.3fr;
  gap: clamp(30px, 6vw, 80px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.field-intro .mono {
  color: var(--gold);
}

.field-intro h2 {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.field-intro p {
  margin-top: 18px;
  max-width: 24rem;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.note-card {
  min-height: 220px;
  padding: 24px;
  background: var(--bg);
}

.note-card .mono {
  color: var(--faint);
}

.note-card h3 {
  margin-top: 34px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.note-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: clamp(60px, 8vw, 106px) 0 clamp(50px, 6vw, 80px);
}

.page-hero::after {
  content: attr(data-chapter);
  position: absolute;
  right: var(--pad);
  bottom: -0.33em;
  color: transparent;
  font-family: var(--serif);
  font-size: clamp(10rem, 28vw, 25rem);
  font-weight: 500;
  letter-spacing: -0.09em;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(241, 236, 223, 0.065);
  pointer-events: none;
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: end;
}

.page-title {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -0.062em;
  line-height: 0.98;
}

.page-title em {
  color: var(--gold-bright);
  font-style: normal;
}

.page-lede {
  max-width: 37rem;
  margin-top: 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 30px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-meta span::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
}

.page-figure {
  position: relative;
}

.page-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
  border: 1px solid var(--line);
}

.page-figure--wide img {
  aspect-ratio: 4 / 3;
}

.figure-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-transform: uppercase;
}

.hero-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 9px;
  padding-bottom: 24px;
}

.hero-collage figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.hero-collage figure:nth-child(2) {
  transform: translateY(-24px);
}

.hero-collage img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  filter: saturate(0.84) brightness(0.9);
}

.article-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 860px);
  justify-content: space-between;
  gap: clamp(40px, 8vw, 120px);
  padding-top: clamp(48px, 7vw, 90px);
  padding-bottom: clamp(80px, 12vw, 150px);
}

.side-index {
  position: sticky;
  top: calc(var(--header-h) + 30px);
  align-self: start;
  max-height: calc(100svh - var(--header-h) - 60px);
  overflow-y: auto;
  scrollbar-width: none;
}

.side-index::-webkit-scrollbar {
  display: none;
}

.side-index > .mono {
  display: block;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--faint);
}

.side-index ol {
  margin-top: 10px;
}

.side-index a {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  padding: 9px 0;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.03em;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.side-index a span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.side-index a:hover,
.side-index a.is-active {
  color: var(--gold-bright);
}

.side-index a.is-active span {
  color: var(--gold);
}

.article {
  min-width: 0;
}

.article-section {
  padding-bottom: clamp(54px, 7vw, 92px);
  margin-bottom: clamp(54px, 7vw, 92px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 30px);
}

.article-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.article-section > .eyebrow {
  margin-bottom: 18px;
}

.article-section h2 {
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.14;
}

.article-section h3 {
  margin: 34px 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.article-section p {
  max-width: 68ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

.article-section p + p {
  margin-top: 16px;
}

.article-section p strong {
  color: var(--ink);
  font-weight: 500;
}

.article-section p em {
  color: var(--gold-bright);
  font-style: normal;
}

.article-section .lead {
  max-width: 30em;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.15vw, 1.65rem);
  letter-spacing: -0.02em;
  line-height: 1.75;
}

.pullquote {
  margin: 34px 0;
  padding: 6px 0 6px 24px;
  border-left: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  letter-spacing: -0.025em;
  line-height: 1.65;
}

.pullquote cite {
  display: block;
  margin-top: 12px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.note-box {
  margin-top: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(199, 164, 106, 0.055), transparent 55%),
    var(--surface);
}

.note-box .mono {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
}

.note-box p {
  max-width: none;
  font-size: 13px;
  line-height: 1.9;
}

.note-box--warning {
  border-color: rgba(183, 95, 76, 0.32);
  background: rgba(183, 95, 76, 0.05);
}

.note-box--warning .mono {
  color: #cf826e;
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  padding: 22px 22px 22px 0;
  border-right: 1px solid var(--line);
}

.fact:last-child {
  border-right: 0;
  padding-right: 0;
}

.fact b {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.fact span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.exposure-map {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 4vw, 46px);
  align-items: center;
  margin-top: 30px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  background: var(--surface);
}

.exposure-diagram {
  width: 100%;
  max-width: 340px;
  height: auto;
  margin-inline: auto;
}

.exposure-diagram text {
  fill: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.1em;
}

.exposure-diagram .diagram-small {
  fill: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
}

.exposure-diagram .diagram-gold {
  fill: var(--gold-bright);
}

.exposure-key li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.exposure-key li:first-child {
  border-top: 0;
}

.exposure-key b {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exposure-key span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.sim-link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.sim-link-box:hover {
  border-color: var(--gold);
  background: rgba(199, 164, 106, 0.04);
}

.sim-link-box span:last-child {
  color: var(--gold-bright);
}

.fstop-rail {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 0;
  margin: 28px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.fstop-rail span {
  position: relative;
  padding-top: 14px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
}

.fstop-rail span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 8px;
  background: var(--line-strong);
}

.fstop-rail span:nth-child(8)::before {
  background: var(--gold);
}

.fstop-rail small {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 11px;
}

.aperture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 26px;
  border: 1px solid var(--line);
  background: var(--line);
}

.aperture-card {
  padding: 24px 18px;
  background: var(--surface);
  text-align: center;
}

.aperture-disc {
  --hole: 50%;
  position: relative;
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  margin: 0 auto 16px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    conic-gradient(from 18deg, rgba(199, 164, 106, 0.2) 0 23deg, transparent 23deg 38deg, rgba(199, 164, 106, 0.1) 38deg 61deg, transparent 61deg 82deg, rgba(199, 164, 106, 0.22) 82deg 105deg, transparent 105deg 126deg, rgba(199, 164, 106, 0.08) 126deg 148deg, transparent 148deg 170deg, rgba(199, 164, 106, 0.2) 170deg 193deg, transparent 193deg 214deg, rgba(199, 164, 106, 0.1) 214deg 236deg, transparent 236deg 258deg, rgba(199, 164, 106, 0.22) 258deg 281deg, transparent 281deg 302deg, rgba(199, 164, 106, 0.08) 302deg 324deg, transparent 324deg 346deg),
    radial-gradient(circle at 33% 28%, #3b3b31, #171814 60%);
}

.aperture-disc::before {
  content: "";
  width: var(--hole);
  height: var(--hole);
  border: 1px solid rgba(230, 195, 139, 0.32);
  border-radius: 50%;
  background: #080907;
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.65);
}

.aperture-disc::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(241, 236, 223, 0.08);
  border-radius: 50%;
}

.aperture-card h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.aperture-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.shutter-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin: 26px 0 18px;
  border: 1px solid var(--line);
  background: var(--line);
}

.shutter-stop {
  padding: 18px 12px;
  background: var(--surface);
}

.shutter-stop b {
  display: block;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.shutter-stop span {
  display: block;
  margin-top: 6px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.6;
}

.iso-scale {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 96px;
  margin: 26px 0 12px;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--line-strong);
}

.iso-scale span {
  position: relative;
  flex: 1;
  height: var(--h);
  min-height: 14px;
  background:
    linear-gradient(0deg, rgba(199, 164, 106, calc(0.1 + var(--n) * 0.035)), rgba(199, 164, 106, calc(0.05 + var(--n) * 0.02))),
    repeating-linear-gradient(135deg, transparent 0 3px, rgba(241, 236, 223, calc(0.01 + var(--n) * 0.012)) 3px 4px),
    var(--surface);
  border: 1px solid var(--line);
}

.iso-scale span::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
}

.iso-scale-caption {
  margin-top: 30px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.focal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 26px;
}

.focal-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.focal-frame {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.focal-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transform: scale(var(--zoom, 1));
  filter: saturate(0.82) brightness(0.92);
  transition: transform 0.5s var(--ease);
}

.focal-card:hover .focal-frame img {
  transform: scale(calc(var(--zoom, 1) + 0.04));
}

.focal-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 13px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.focal-card figcaption b {
  color: var(--gold-bright);
  font-weight: 400;
}

.visual-note {
  margin-top: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-align: right;
}

.composition-figure {
  position: relative;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.composition-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.7) brightness(0.82);
}

.thirds {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent calc(33.333% - 0.5px), rgba(241, 236, 223, 0.35) calc(33.333% - 0.5px), rgba(241, 236, 223, 0.35) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px)),
    linear-gradient(90deg, transparent calc(66.666% - 0.5px), rgba(241, 236, 223, 0.35) calc(66.666% - 0.5px), rgba(241, 236, 223, 0.35) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px)),
    linear-gradient(0deg, transparent calc(33.333% - 0.5px), rgba(241, 236, 223, 0.35) calc(33.333% - 0.5px), rgba(241, 236, 223, 0.35) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px)),
    linear-gradient(0deg, transparent calc(66.666% - 0.5px), rgba(241, 236, 223, 0.35) calc(66.666% - 0.5px), rgba(241, 236, 223, 0.35) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px));
  pointer-events: none;
}

.composition-label {
  position: absolute;
  left: 17%;
  top: 31%;
  width: 11px;
  height: 11px;
  border: 1px solid var(--gold-bright);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(230, 195, 139, 0.1);
}

.light-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 26px;
}

.light-card {
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.light-diagram {
  --angle: 0deg;
  --sx: 50%;
  --sy: 0%;
  position: relative;
  height: 128px;
  margin-bottom: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--sx) var(--sy), rgba(230, 195, 139, 0.38), transparent 36%),
    linear-gradient(160deg, #20211b, #11120f 70%);
}

.light-diagram::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 57%;
  width: 27px;
  height: 39px;
  border-radius: 50% 50% 45% 45%;
  background: #090a08;
  border: 1px solid rgba(230, 195, 139, 0.32);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.85);
}

.light-diagram::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 57%;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: rotate(var(--angle));
  transform-origin: left center;
}

.light-card h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.light-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.kelvin-band {
  position: relative;
  height: 30px;
  margin: 28px 0 8px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, #4c668c 0%, #8fa3ad 30%, #c3c0ad 50%, #d2ac74 72%, #c9874f 100%);
}

.kelvin-mark {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(10, 11, 9, 0.75);
}

.kelvin-mark::after {
  content: attr(data-label);
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.kelvin-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-bottom: 28px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 28px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.checklist li {
  position: relative;
  padding: 13px 0 13px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 21px;
  width: 8px;
  height: 4px;
  border-left: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(-45deg);
}

.chapter-next {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(120deg, rgba(199, 164, 106, 0.08), transparent 55%),
    var(--surface);
  transition: border-color 0.25s ease;
}

.chapter-next:hover {
  border-color: var(--gold);
}

.chapter-next .mono {
  color: var(--gold);
}

.chapter-next h3 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.chapter-next .chapter-arrow {
  font-size: 26px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.principle {
  padding: 24px 22px 26px;
  background: var(--bg);
}

.principle .mono {
  color: var(--gold);
}

.principle h3 {
  margin: 26px 0 10px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.principle p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.pose-category {
  margin-bottom: clamp(58px, 8vw, 100px);
}

.pose-category:last-of-type {
  margin-bottom: 0;
}

.category-head {
  display: grid;
  grid-template-columns: 72px minmax(160px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: end;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line-strong);
}

.category-no {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.category-head h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.category-head p {
  max-width: 30rem;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.pose-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line);
}

.pose-card {
  position: relative;
  min-height: 196px;
  padding: 22px 18px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background 0.28s ease;
}

.pose-card:hover {
  background: rgba(199, 164, 106, 0.045);
}

.pose-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pose-num {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.pose-tag {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pose-card h3 {
  margin: 30px 0 9px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.55vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.pose-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.pose-category--wide .pose-grid {
  grid-template-columns: repeat(3, 1fr);
}

.pose-category--wide .pose-card {
  min-height: 188px;
}

.scene-method {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr);
  gap: 1px;
  margin-top: 26px;
  border: 1px solid var(--line);
  background: var(--line);
}

.method-intro {
  padding: 22px;
  background: var(--surface);
}

.method-intro .mono {
  color: var(--gold);
}

.method-intro p {
  max-width: 28rem;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.scene-method ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
}

.scene-method li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 20px;
  border-left: 1px solid var(--line);
}

.scene-method li:first-child {
  border-left: 0;
}

.scene-method li span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.scene-method li strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.scene-method li small {
  color: var(--faint);
  font-size: 11px;
  line-height: 1.7;
}

.scene-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 clamp(36px, 5vw, 58px);
}

.scene-jump a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.scene-jump a span {
  color: var(--gold);
  font-size: 11px;
}

.scene-jump a:hover,
.scene-jump a:focus-visible {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold-bright);
}

.scene-list {
  display: grid;
  gap: clamp(52px, 7vw, 88px);
}

.scene {
  scroll-margin-top: calc(var(--header-h) + 26px);
}

.scene-head {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  padding-bottom: clamp(22px, 3vw, 32px);
  border-bottom: 1px solid var(--line-strong);
}

.scene-index {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scene-title h3 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.scene-title h3 em {
  color: var(--gold-bright);
  font-style: normal;
}

.scene-brief > p {
  max-width: 36rem;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.95;
}

.scene-specs {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.scene-specs li {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.scene-specs span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scene-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.scene-plan + .scene-shots {
  margin-top: 14px;
}

.shot {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 20px 0;
  background: var(--surface);
}

.shot-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.shot-no {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.shot-size {
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.shot-lens {
  margin-left: auto;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.shot h4 {
  margin: 18px 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.32;
}

.shot-pose {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.shot-pose span {
  display: block;
  margin-bottom: 5px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shot-line {
  margin-top: auto;
}

.shot-line .mono {
  display: block;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.shot-line p {
  margin-top: 10px;
  padding-bottom: 22px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.8;
}

.scene-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 14px;
  border: 1px solid var(--line);
  background: var(--line);
}

.scene-footer > div {
  padding: 16px 18px;
  background: var(--bg);
}

.scene-footer .mono {
  color: var(--gold);
}

.scene-footer p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.scene-plan {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.plan-head .mono {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.plan-head p {
  color: var(--faint);
  font-size: 11px;
  line-height: 1.7;
}

.plan-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1px;
  background: var(--line);
}

.plan-map {
  padding: 14px 18px 12px;
  background: var(--bg-soft);
}

.plan-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.plan-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.plan-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.plan-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.plan-legend .key-p {
  background: var(--gold);
}

.plan-legend .key-m {
  background: var(--ink);
}

.plan-legend .key-l {
  width: 11px;
  height: 1px;
  border-radius: 0;
  background: var(--gold);
}

.plan-legend .key-d {
  width: 14px;
  height: 1px;
  border-radius: 0;
  background: repeating-linear-gradient(90deg, var(--muted) 0 3px, transparent 3px 5px);
}

.plan-shots {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--surface);
}

.plan-shots li {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  flex: 1;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.plan-shots li:first-child {
  border-top: 0;
}

.plan-thumb {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg);
}

.plan-thumb svg {
  display: block;
  width: 100%;
  height: auto;
}

.plan-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.plan-step {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.plan-copy strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.plan-copy small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.plan-svg .thirds {
  fill: none;
  stroke: rgba(241, 236, 223, 0.07);
  stroke-width: 0.6;
  stroke-dasharray: 2 4;
}

.plan-svg .zone {
  fill: rgba(241, 236, 223, 0.055);
}

.plan-svg .ghost {
  fill: none;
  stroke: rgba(241, 236, 223, 0.22);
  stroke-width: 1;
}

.plan-svg .scene-line {
  fill: none;
  stroke: rgba(241, 236, 223, 0.34);
  stroke-width: 1;
}

.plan-svg .scene-faint {
  fill: none;
  stroke: rgba(241, 236, 223, 0.18);
  stroke-width: 1;
}

.plan-svg .dash {
  fill: none;
  stroke: rgba(241, 236, 223, 0.4);
  stroke-width: 1;
  stroke-dasharray: 4 5;
}

.plan-svg .light {
  fill: none;
  stroke: rgba(199, 164, 106, 0.5);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.plan-svg .cone {
  fill: rgba(199, 164, 106, 0.12);
  stroke: rgba(199, 164, 106, 0.5);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.plan-svg .cam {
  fill: var(--gold);
}

.plan-svg .cam-label {
  fill: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.plan-svg .model {
  fill: var(--ink);
}

.plan-svg .model-label {
  fill: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.plan-svg .map-label {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.plan-svg .lens-label {
  fill: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.plan-svg .sun {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
}

.plan-svg .glow {
  fill: rgba(199, 164, 106, 0.1);
}

.plan-svg .frame-accent {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
}

.plan-svg .fig {
  color: var(--ink);
}

.plan-svg .fig-muted {
  color: var(--muted);
}

.figure-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.quote-band {
  padding: clamp(36px, 5vw, 58px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote-band blockquote {
  max-width: 25em;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.4vw, 3.2rem);
  letter-spacing: -0.035em;
  line-height: 1.4;
}

.quote-band blockquote span {
  color: var(--gold-bright);
}

.quote-band cite {
  display: block;
  margin-top: 20px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--line);
  background: var(--line);
}

.guide-item {
  padding: 22px;
  background: var(--surface);
}

.guide-item .mono {
  color: var(--gold);
}

.guide-item p {
  margin-top: 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
}

.guide-item span {
  display: block;
  margin-top: 8px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.8;
}

.prep-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 30px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.prep-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.prep-list b {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 18px 34px 18px 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 300;
  transition: transform 0.25s ease;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  max-width: 62ch;
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.95;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 3vw, 36px);
}

.style-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface);
}

.grade {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #1a1b16;
}

.grade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transition: transform 0.8s var(--ease), filter 0.5s ease;
}

.style-card:hover .grade img {
  transform: scale(1.035);
}

.grade::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grade--airy img {
  filter: saturate(0.72) contrast(0.86) brightness(1.09) sepia(0.04);
}

.grade--airy::after {
  background: linear-gradient(180deg, rgba(232, 239, 235, 0.16), transparent 46%, rgba(255, 241, 218, 0.1));
  mix-blend-mode: screen;
}

.grade--film img {
  filter: saturate(0.78) contrast(0.93) brightness(1.02) sepia(0.19);
}

.grade--film::after {
  background:
    radial-gradient(circle at 20% 15%, rgba(230, 185, 125, 0.17), transparent 30%),
    linear-gradient(160deg, transparent 52%, rgba(41, 67, 53, 0.2));
  mix-blend-mode: soft-light;
}

.grade--cinema img {
  filter: saturate(0.96) contrast(1.17) brightness(0.94);
}

.grade--cinema::after {
  background:
    linear-gradient(145deg, rgba(26, 74, 76, 0.28), transparent 42%, rgba(197, 112, 53, 0.24)),
    radial-gradient(circle at 70% 25%, rgba(233, 157, 82, 0.19), transparent 34%);
  mix-blend-mode: soft-light;
}

.grade--muted img {
  filter: saturate(0.5) contrast(0.88) brightness(1.03);
}

.grade--muted::after {
  background: linear-gradient(130deg, rgba(153, 153, 136, 0.16), rgba(199, 174, 159, 0.12));
  mix-blend-mode: soft-light;
}

.grade--bw img {
  filter: grayscale(1) contrast(1.19) brightness(0.96);
}

.grade--bw::after {
  background: radial-gradient(circle at 50% 44%, transparent 26%, rgba(0, 0, 0, 0.34));
}

.grade--oil img {
  filter: saturate(1.26) contrast(1.1) brightness(0.95) sepia(0.07);
}

.grade--oil::after {
  background: linear-gradient(160deg, rgba(135, 66, 32, 0.12), transparent 46%, rgba(57, 54, 27, 0.18));
  mix-blend-mode: multiply;
}

.grade-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  background: rgba(9, 10, 8, 0.62);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.grade-label::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-bright);
}

.style-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}

.style-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.style-heading h2,
.style-heading h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.style-index {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.style-mood {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.style-use {
  margin-top: 8px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.75;
}

.style-use b {
  color: var(--muted);
  font-weight: 400;
}

.recipe {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 18px;
  border: 1px solid var(--line);
  background: var(--line);
}

.recipe > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  background: rgba(12, 13, 11, 0.45);
}

.recipe dt {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.recipe dd {
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 11px;
  text-align: right;
}

.style-hsl {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.8;
}

.style-hsl b {
  color: var(--gold);
  font-weight: 400;
}

.workflow {
  border-top: 1px solid var(--line);
}

.workflow-step {
  display: grid;
  grid-template-columns: 68px minmax(150px, 0.45fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.workflow-num {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.workflow-step h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.workflow-step p {
  max-width: 45rem;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.skin-panel {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: 0;
  margin-top: 26px;
  border: 1px solid var(--line);
}

.skin-panel figure {
  overflow: hidden;
}

.skin-panel img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.92);
}

.skin-copy {
  padding: clamp(22px, 3vw, 34px);
  background: var(--surface);
}

.skin-copy .mono {
  color: var(--gold);
}

.skin-copy h3 {
  margin: 12px 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.skin-copy p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.skin-copy ul {
  margin-top: 16px;
}

.skin-copy li {
  position: relative;
  padding: 5px 0 5px 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.skin-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 5px;
  height: 1px;
  background: var(--gold);
}

.master-table-wrap {
  margin-top: 26px;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.master-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 11px;
}

.master-table th,
.master-table td {
  padding: 13px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.master-table th:last-child,
.master-table td:last-child {
  border-right: 0;
}

.master-table tr:last-child td {
  border-bottom: 0;
}

.master-table th {
  background: rgba(199, 164, 106, 0.07);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.master-table td {
  color: var(--muted);
}

.master-table td:first-child {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
}

.end-note {
  margin-top: 34px;
  padding: 24px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.7;
  letter-spacing: -0.02em;
}

.end-note span {
  color: var(--gold-bright);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.6fr);
  gap: 36px;
  padding-top: clamp(46px, 6vw, 70px);
  padding-bottom: clamp(40px, 5vw, 60px);
}

.footer-brand .brand {
  margin-bottom: 20px;
}

.footer-brand p {
  max-width: 26rem;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.9;
}

.footer-col .mono {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.8;
  text-transform: uppercase;
}

.js.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js.reveal-ready .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 1180px) {
  .chapter-row {
    grid-template-columns: 50px minmax(0, 1fr) 210px 28px;
    gap: 22px;
  }

  .chapter-copy {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .chapter-copy h3 {
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  }

  .pose-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pose-category--wide .pose-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1000px) {
  .hero-title {
    font-size: clamp(3.1rem, 9vw, 6rem);
  }

  .hero-rail {
    display: none;
  }

  .sim-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  }

  .sim-controls {
    padding: 20px;
  }

  .article-shell {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 46px;
  }

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

  .footer-top {
    grid-template-columns: 1.2fr repeat(3, 0.6fr);
    gap: 24px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 66px;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 110;
    display: block;
    padding: 18px var(--pad) 26px;
    border-bottom: 1px solid var(--line-strong);
    background: rgba(12, 13, 11, 0.98);
    backdrop-filter: blur(22px);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .mobile-menu a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 25px;
    letter-spacing: -0.02em;
  }

  .mobile-menu a span {
    color: var(--gold);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .mobile-menu a:last-child {
    border-bottom: 0;
    color: var(--gold-bright);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .hero {
    min-height: 760px;
  }

  .hero-media img {
    object-position: 58% 28%;
  }

  .hero-media::after {
    background:
      linear-gradient(0deg, rgba(10, 11, 9, 0.98) 0%, rgba(10, 11, 9, 0.76) 38%, rgba(10, 11, 9, 0.12) 76%, rgba(10, 11, 9, 0.3) 100%),
      linear-gradient(90deg, rgba(10, 11, 9, 0.44), transparent 75%);
  }

  .hero-inner {
    align-items: flex-end;
    min-height: 700px;
    padding-top: 340px;
  }

  .hero-copy {
    max-width: 600px;
  }

  .hero-title {
    font-size: clamp(3.1rem, 12vw, 5.2rem);
  }

  .hero-lede {
    max-width: 30rem;
  }

  .section-head,
  .statement,
  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section-head h2 {
    max-width: 15ch;
  }

  .section-head p {
    max-width: 34rem;
  }

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

  .sim-stage {
    aspect-ratio: 16 / 10;
  }

  .chapter-row {
    grid-template-columns: 40px minmax(0, 1fr) 160px 24px;
    gap: 16px;
  }

  .chapter-copy p {
    display: none;
  }

  .field-notes {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .notes-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-hero::after {
    bottom: -0.22em;
    opacity: 0.8;
  }

  .page-hero-grid {
    gap: 38px;
  }

  .page-figure {
    max-width: 560px;
  }

  .page-figure img {
    aspect-ratio: 3 / 2;
  }

  .hero-collage {
    max-width: 540px;
  }

  .hero-collage img {
    aspect-ratio: 3 / 4;
  }

  .article-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 28px;
  }

  .side-index {
    position: static;
    max-height: none;
    margin-bottom: 34px;
    overflow: visible;
    border-bottom: 1px solid var(--line);
  }

  .side-index > .mono {
    display: none;
  }

  .side-index ol {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    margin: 0;
    padding-bottom: 13px;
    scrollbar-width: none;
  }

  .side-index ol::-webkit-scrollbar {
    display: none;
  }

  .side-index a {
    display: flex;
    gap: 6px;
    padding: 9px 0;
    white-space: nowrap;
  }

  .side-index a span {
    font-size: 11px;
  }

  .exposure-map {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .exposure-diagram {
    max-width: 280px;
  }

  .pose-grid,
  .pose-category--wide .pose-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scene-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .scene-method {
    grid-template-columns: 1fr;
  }

  .scene-method ol {
    border-top: 1px solid var(--line);
  }

  .plan-body {
    grid-template-columns: 1fr;
  }

  .category-head {
    grid-template-columns: 50px 1fr;
    gap: 12px 18px;
  }

  .category-head p {
    grid-column: 2;
  }

  .style-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .style-card {
    max-width: 720px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .hero {
    min-height: 710px;
  }

  .hero-inner {
    min-height: 660px;
    padding-top: 280px;
  }

  .hero-title {
    font-size: clamp(2.8rem, 13.5vw, 4.6rem);
  }

  .hero-title em {
    margin-left: 0;
  }

  .hero-lede {
    margin-top: 22px;
    font-size: 13px;
    line-height: 1.9;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-meta {
    margin-top: 28px;
    gap: 10px 20px;
  }

  .hero-meta b {
    font-size: 16px;
  }

  .btn {
    min-height: 44px;
    padding: 0 16px;
    font-size: 11px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-sub {
    font-size: 11px;
  }

  .section-head h2 {
    font-size: clamp(2.25rem, 10vw, 3.4rem);
  }

  .statement-text {
    font-size: clamp(1.55rem, 6.9vw, 2.2rem);
    line-height: 1.5;
  }

  .sim-stage {
    aspect-ratio: 4 / 3;
  }

  .sim-hud {
    font-size: 11px;
  }

  .hud-values {
    gap: 6px;
  }

  .hud-values span {
    padding: 3px 5px;
  }

  .sim-caption div {
    padding: 10px;
  }

  .sim-caption span {
    font-size: 11px;
  }

  .sim-caption strong {
    font-size: 11px;
  }

  .sim-controls {
    padding: 18px;
  }

  .range {
    height: 34px;
  }

  .preset {
    padding: 11px 12px;
  }

  .meter {
    margin-top: 14px;
  }

  .chapter-row {
    grid-template-columns: 30px minmax(0, 1fr) 32px;
    gap: 12px;
    padding: 22px 0;
  }

  .chapter-thumb {
    display: none;
  }

  .chapter-copy h3 {
    font-size: 1.9rem;
  }

  .chapter-arrow {
    font-size: 16px;
  }

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

  .note-card {
    min-height: 0;
  }

  .note-card h3 {
    margin-top: 22px;
  }

  .page-title {
    font-size: clamp(2.9rem, 13.5vw, 4.7rem);
  }

  .page-lede {
    font-size: 13px;
  }

  .page-hero {
    padding-top: 48px;
  }

  .page-hero::after {
    font-size: 15rem;
    right: 12px;
  }

  .hero-collage {
    gap: 6px;
    padding-bottom: 8px;
  }

  .hero-collage figure:nth-child(2) {
    transform: translateY(-12px);
  }

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

  .principle {
    padding: 20px;
  }

  .principle h3 {
    margin-top: 14px;
  }

  .article-section h2 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .article-section p {
    font-size: 14px;
    line-height: 1.95;
  }

  .fact-row {
    grid-template-columns: 1fr;
  }

  .fact {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact:last-child {
    border-bottom: 0;
  }

  .fact b {
    display: inline;
    margin-right: 8px;
    font-size: 1.5rem;
  }

  .fstop-rail span {
    font-size: 11px;
  }

  .fstop-rail small {
    display: none;
  }

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

  .aperture-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap: 16px;
    text-align: left;
  }

  .aperture-card p {
    grid-column: 1 / -1;
  }

  .aperture-disc {
    width: 70px;
    height: 70px;
    margin: 0;
  }

  .shutter-scale {
    grid-template-columns: 1fr;
  }

  .shutter-stop {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 11px 14px;
  }

  .shutter-stop span {
    margin-top: 0;
  }

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

  .focal-frame {
    aspect-ratio: 16 / 9;
  }

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

  .checklist,
  .prep-list {
    grid-template-columns: 1fr;
  }

  .principle {
    padding: 20px 18px;
  }

  .pose-grid,
  .pose-category--wide .pose-grid {
    grid-template-columns: 1fr;
  }

  .pose-card {
    min-height: 0;
    padding: 19px 18px 22px;
  }

  .pose-card h3 {
    margin-top: 20px;
  }

  .category-head {
    grid-template-columns: 36px 1fr;
    gap: 8px 14px;
  }

  .category-head h2 {
    font-size: 2rem;
  }

  .category-head p {
    font-size: 11px;
  }

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

  .scene-title h3 {
    font-size: 1.95rem;
  }

  .scene-method ol {
    grid-template-columns: 1fr;
  }

  .scene-method li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: baseline;
    gap: 2px 12px;
    padding: 16px 18px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .scene-method li:first-child {
    border-top: 0;
  }

  .scene-method li span {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .scene-method li strong {
    grid-column: 2;
    grid-row: 1;
    font-size: 18px;
  }

  .scene-method li small {
    grid-column: 2;
    grid-row: 2;
    font-size: 11px;
  }

  .plan-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 14px;
  }

  .plan-map {
    padding: 10px 12px;
  }

  .plan-shots li {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 13px;
  }

  .plan-copy strong {
    font-size: 14px;
  }

  .plan-svg .map-label,
  .plan-svg .lens-label {
    display: none;
  }

  .plan-svg .cam-label {
    font-size: 11px;
  }

  .plan-svg .model-label {
    font-size: 11px;
  }

  .scene-jump {
    gap: 6px;
    margin-bottom: 34px;
  }

  .scene-jump a {
    padding: 10px 11px;
  }

  .scene-shots {
    grid-template-columns: 1fr;
  }

  .shot {
    padding: 20px 18px 0;
  }

  .shot-line {
    margin-top: 18px;
  }

  .shot-line p {
    padding-bottom: 20px;
  }

  .scene-footer {
    grid-template-columns: 1fr;
  }

  .style-content {
    padding: 18px;
  }

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

  .workflow-step {
    grid-template-columns: 36px 1fr;
    gap: 10px 14px;
    padding: 20px 0;
  }

  .workflow-step p {
    grid-column: 2;
  }

  .skin-panel {
    grid-template-columns: 1fr;
  }

  .skin-panel img {
    min-height: 220px;
  }

  .master-table {
    min-width: 640px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 460px) {
  .hero-inner {
    padding-top: 250px;
  }

  .hero-title {
    font-size: clamp(2.55rem, 13vw, 3.7rem);
  }

  .concept-track {
    animation-duration: 30s;
  }

  .sim-hud .hud-values span:nth-child(2) {
    display: none;
  }

  .focus-box {
    left: 23%;
    top: 30%;
    width: 31%;
    height: 36%;
  }

  .preset {
    flex: 1 1 auto;
    text-align: center;
  }

  .page-meta {
    gap: 8px 15px;
  }

  .article-section p {
    font-size: 13.5px;
  }

  .style-heading h2,
  .style-heading h3 {
    font-size: 1.65rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* Combo builder */

.combo-promo {
  padding-top: 0;
}

.combo-promo-card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(90% 120% at 8% 0%, rgba(199, 164, 106, 0.13), transparent 55%),
    linear-gradient(120deg, #1a1b16, #11120f 62%, #0d0e0c);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.combo-promo-card::after {
  content: "+";
  position: absolute;
  right: 3%;
  top: -0.24em;
  color: rgba(199, 164, 106, 0.08);
  font-family: var(--serif);
  font-size: clamp(13rem, 26vw, 24rem);
  line-height: 1;
  pointer-events: none;
}

.combo-promo-card:hover {
  border-color: rgba(199, 164, 106, 0.55);
}

.combo-promo-copy {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.combo-promo-copy > .mono {
  color: var(--gold);
  font-size: 11px;
}

.combo-promo-copy h2 {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.combo-promo-copy h2 em {
  color: var(--gold-bright);
  font-style: normal;
}

.combo-promo-copy p {
  max-width: 34rem;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.combo-promo-tokens {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  margin-top: 20px;
}

.combo-promo-tokens span {
  padding: 4px 7px;
  border: 1px solid rgba(241, 236, 223, 0.11);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.combo-promo-tokens i {
  color: var(--faint);
  font-size: 11px;
  font-style: normal;
}

.combo-promo-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--gold);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  text-transform: uppercase;
}

.combo-promo-link i {
  font-style: normal;
  transition: transform 0.25s ease;
}

.combo-promo-card:hover .combo-promo-link i {
  transform: translate(3px, -3px);
}

.combo-hero {
  background:
    radial-gradient(120% 90% at 84% 8%, rgba(199, 164, 106, 0.1), transparent 58%),
    linear-gradient(180deg, #0d0e0c, var(--bg));
}

.combo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(241, 236, 223, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 236, 223, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle at 72% 42%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 72% 42%, #000 0%, transparent 72%);
  pointer-events: none;
}

.combo-hero .page-hero-grid {
  align-items: center;
}

.formula-panel {
  position: relative;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(28, 29, 24, 0.92), rgba(13, 14, 11, 0.97));
}

.formula-panel::after {
  content: "";
  position: absolute;
  inset: 10px -1px auto auto;
  width: 54px;
  height: 1px;
  background: var(--gold);
}

.formula-kicker {
  color: var(--gold);
  font-size: 11px;
}

.formula-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 10px;
  margin-top: 22px;
}

.formula-result {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.formula-line b {
  color: var(--gold);
  font-size: 18px;
  font-weight: 400;
}

.formula-tokens {
  display: flex;
  flex: 1 1 240px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 5px;
}

.formula-tokens span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: rgba(241, 236, 223, 0.02);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.formula-tokens i {
  color: var(--faint);
  font-size: 11px;
  font-style: normal;
}

.formula-panel p {
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.95;
}

.formula-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.combo-section {
  padding-top: clamp(58px, 7vw, 96px);
}

.combo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(340px, 0.68fr);
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
}

.combo-preview-col {
  min-width: 0;
}

.preview-card {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.preview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.preview-head .mono {
  color: var(--faint);
  font-size: 11px;
}

.preview-code {
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.combo-stage {
  --scene-line: rgba(241, 236, 223, 0.28);
  --scene-fill: rgba(241, 236, 223, 0.06);
  --scene-strong: rgba(241, 236, 223, 0.48);
  --glow: #e6c38b;
  --rim: #e6c38b;
  --fig-shadow: rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  background: #0a0b09;
}

.combo-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
}

.stage-grain {
  position: absolute;
  inset: 0;
  background-image: url("img/noise.svg");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
  opacity: 0.45;
  pointer-events: none;
}

.combo-svg .art-fill {
  fill: var(--scene-fill);
}

.combo-svg .art-line {
  fill: none;
  stroke: var(--scene-line);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.combo-svg .art-line .faint {
  stroke-width: 1.2;
  opacity: 0.55;
}

.combo-svg .art-line .strong {
  stroke: var(--scene-strong);
}

.combo-svg .light-source,
.combo-svg .atmosphere {
  mix-blend-mode: screen;
}

.combo-svg .figure {
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.28));
}

.combo-svg .fig-torso {
  stroke-width: 1.2;
}

.combo-svg .fig-rim {
  mix-blend-mode: screen;
  opacity: 0.55;
}

.combo-svg .frame-ui {
  pointer-events: none;
}

.combo-svg .ui-thirds path {
  fill: none;
  stroke: rgba(241, 236, 223, 0.66);
  stroke-width: 1;
}

.combo-svg .ui-corners path {
  fill: none;
  stroke: rgba(241, 236, 223, 0.5);
  stroke-width: 1;
}

.combo-svg .ui-label,
.combo-svg .ui-sub,
.combo-svg .ui-callout {
  paint-order: stroke;
  stroke: rgba(5, 6, 5, 0.6);
  stroke-width: 2px;
  stroke-linejoin: round;
}

.combo-svg .ui-label {
  fill: rgba(241, 236, 223, 0.84);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.combo-svg .ui-sub {
  fill: rgba(241, 236, 223, 0.5);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.combo-svg .ui-callout {
  fill: rgba(230, 195, 139, 0.86);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.combo-svg .focus-box path {
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 1.1;
  opacity: 0.8;
}

.combo-svg .focus-box circle {
  fill: var(--gold-bright);
}

.combo-svg .crop-line path {
  fill: none;
  stroke: rgba(241, 236, 223, 0.4);
  stroke-width: 1;
}

.preview-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

#previewMeta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mini-btn {
  appearance: none;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.mini-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.mini-btn:active {
  transform: translateY(1px);
}

.mini-btn--gold {
  border-color: rgba(199, 164, 106, 0.6);
  background: rgba(199, 164, 106, 0.08);
  color: var(--gold-bright);
}

.mini-btn--gold:hover {
  background: rgba(199, 164, 106, 0.16);
}

.preview-caption {
  padding: 15px 18px 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1.8;
}

.preview-caption::before {
  content: "— ";
  color: var(--gold);
}

.stage-legend {
  display: grid;
  gap: 0;
  padding: 0 18px 8px;
  border-top: 1px solid var(--line);
}

.stage-legend li {
  display: grid;
  grid-template-columns: 22px 42px minmax(74px, auto) minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(241, 236, 223, 0.07);
}

.stage-legend li:last-child {
  border-bottom: 0;
}

.legend-no {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.legend-key {
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.stage-legend strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

.stage-legend small {
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

.combo-controls {
  min-width: 0;
}

.controls-head {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.controls-head .mono {
  color: var(--gold);
  font-size: 11px;
}

.controls-head p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.combo-form {
  margin-top: 8px;
}

.combo-group {
  min-width: 0;
  margin: 0;
  padding: 16px 0 18px;
  border: 0;
  border-top: 1px solid var(--line);
}

.combo-group legend {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  width: 100%;
  padding: 0;
}

.group-no {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.group-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.group-en {
  margin-left: auto;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.combo-group legend small {
  flex: 0 0 100%;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.combo-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.combo-option {
  position: relative;
  display: block;
  padding: 9px 10px 8px;
  border: 1px solid var(--line);
  background: rgba(241, 236, 223, 0.015);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.combo-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.option-label {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.option-tag {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1.45;
}

.combo-option:hover {
  border-color: var(--line-strong);
  background: rgba(241, 236, 223, 0.035);
}

.combo-option.is-selected {
  border-color: rgba(199, 164, 106, 0.7);
  background: rgba(199, 164, 106, 0.1);
}

.combo-option.is-selected .option-label {
  color: var(--gold-bright);
}

.combo-option.is-selected .option-tag {
  color: rgba(199, 164, 106, 0.8);
}

.combo-option:has(input:focus-visible) {
  outline: 1px solid var(--gold-bright);
  outline-offset: 2px;
}

.combo-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.combo-hint {
  color: var(--faint);
  font-size: 12px;
  line-height: 1.6;
}

.combo-noscript {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(183, 95, 76, 0.4);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.combo-output {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #0d0e0c, #0b0c0a);
}

.recipe-card {
  position: relative;
  padding: clamp(24px, 3.4vw, 52px);
  border: 1px solid var(--line);
  background: var(--surface);
}

.recipe-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.recipe-head h2 {
  max-width: 20ch;
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.8vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.recipe-stamp {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(199, 164, 106, 0.45);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.recipe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.recipe-tags span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.recipe-tags span:first-child {
  border-color: rgba(199, 164, 106, 0.4);
  color: var(--gold-bright);
}

.recipe-body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: 34px;
}

.recipe-block + .recipe-block {
  margin-top: 26px;
}

.recipe-text .mono,
.recipe-side > .mono,
.talk-head .mono {
  color: var(--gold);
  font-size: 11px;
}

.recipe-block p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 2;
}

.recipe-side {
  padding-left: clamp(20px, 3vw, 34px);
  border-left: 1px solid var(--line);
}

.recipe-specs {
  margin-top: 16px;
}

.recipe-specs div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(241, 236, 223, 0.1);
}

.recipe-specs dt {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.recipe-specs dd {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}

.recipe-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

#copyStatus {
  color: var(--gold-bright);
  font-size: 11px;
}

.recipe-talk {
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.talk-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.talk-head p {
  max-width: 32rem;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.8;
  text-align: right;
}

.talk-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 34px);
  margin-top: 24px;
}

.talk-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}

.talk-no {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
}

.talk-label {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.talk-item blockquote {
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.65;
}

.talk-item small {
  display: block;
  margin-top: 8px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.7;
}

.combo-next {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 28px;
  margin-top: clamp(26px, 3vw, 40px);
}

@media (min-width: 1001px) and (min-height: 880px) {
  .combo-preview-col {
    position: sticky;
    top: calc(var(--header-h) + 22px);
  }
}

@media (max-width: 1180px) {
  .combo-layout {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    gap: 30px;
  }
}

@media (max-width: 1000px) {
  .combo-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .combo-controls {
    order: 1;
  }

  .combo-preview-col {
    order: 2;
    position: static;
  }

  .combo-options {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .recipe-body {
    grid-template-columns: 1fr;
  }

  .recipe-side {
    padding-top: 24px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .recipe-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }

  .talk-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .combo-hero .page-hero-grid {
    align-items: start;
  }

  .formula-panel {
    max-width: 560px;
  }

  .recipe-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .talk-head {
    flex-direction: column;
    gap: 10px;
  }

  .talk-head p {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .combo-svg .ui-label,
  .combo-svg .ui-sub,
  .combo-svg .ui-callout {
    display: none;
  }

  .combo-promo-card {
    padding: 26px 22px;
  }

  .combo-promo-link {
    width: 100%;
    justify-content: space-between;
  }

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

  .preview-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .preview-actions {
    width: 100%;
  }

  .preview-actions .mini-btn {
    flex: 1 1 auto;
  }

  .stage-legend li {
    grid-template-columns: 20px 38px minmax(66px, auto) minmax(0, 1fr);
    gap: 8px;
  }

  .stage-legend small {
    text-align: left;
  }

  .recipe-specs {
    grid-template-columns: 1fr;
  }

  .combo-next {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 460px) {
  .formula-panel {
    padding: 20px;
  }

  .formula-line {
    gap: 10px;
  }

  .formula-result {
    font-size: 22px;
  }

  .formula-tokens span {
    padding: 4px 6px;
    font-size: 11px;
  }

  .preview-head {
    padding: 11px 13px;
  }

  .preview-caption {
    padding: 13px 14px;
    font-size: 12.5px;
  }

  .stage-legend {
    padding: 0 14px 6px;
  }

  .stage-legend strong {
    font-size: 11px;
  }

  .stage-legend small {
    font-size: 12px;
  line-height: 1.5;
  }

  .combo-group legend small {
    font-size: 11px;
  }

  .recipe-card {
    padding: 22px 18px;
  }

  .recipe-tags span {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js.reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Chapter jump (color page)
   ============================================================ */

[hidden] {
  display: none !important;
}

#costume,
#thinking,
#pantone,
#lab,
#analyze {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.costume-style[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.page-jump {
  display: flex;
  flex-wrap: wrap;
  width: min(calc(100% - 2 * var(--pad)), var(--max));
  margin: clamp(30px, 4vw, 50px) auto 0;
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}

.page-jump a {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 14px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: background 0.3s ease, color 0.3s ease;
}

.page-jump a span {
  color: var(--gold);
  font-size: 11px;
}

.page-jump a:hover {
  background: #1e1f1a;
  color: var(--ink);
}

/* ============================================================
   Costume pose library (posing page)
   ============================================================ */

.costume-app {
  margin-top: 6px;
}

.costume-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.costume-tab {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "no name"
    "no en"
    "no count";
  gap: 2px 14px;
  padding: 20px 22px;
  border: 0;
  background: var(--surface);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.costume-tab::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: transparent;
  transition: background 0.3s ease;
}

.costume-tab:hover {
  background: #1c1d18;
  color: var(--ink);
}

.costume-tab[aria-selected="true"] {
  background: #20211b;
  color: var(--ink);
}

.costume-tab[aria-selected="true"]::after {
  background: var(--gold);
}

.costume-tab-no {
  grid-area: no;
  align-self: center;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.costume-tab-name {
  grid-area: name;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.costume-tab-en {
  grid-area: en;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.costume-tab-count {
  grid-area: count;
  margin-top: 5px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.5;
}

.costume-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 22px;
}

.costume-note {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.costume-style-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.costume-style-nav a {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.costume-style-nav a:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.costume-summary {
  max-width: 64ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.95;
}

.costume-panel {
  display: grid;
  gap: clamp(26px, 3vw, 44px);
  margin-top: clamp(26px, 3.4vw, 44px);
}

.costume-style {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  border: 1px solid var(--line);
  background: var(--surface);
}

.costume-media {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  background: #101109;
  border-right: 1px solid var(--line);
}

.costume-media-frame {
  position: relative;
  flex: 1;
  min-height: 380px;
  overflow: hidden;
  background: #161713;
}

.costume-media-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
  transition: transform 0.9s var(--ease);
}

.costume-style:hover .costume-media-frame img {
  transform: scale(1.025);
}

.costume-media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 11, 9, 0.28), transparent 26%, transparent 76%, rgba(10, 11, 9, 0.34));
}

.costume-media-index {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 5px 8px;
  border: 1px solid rgba(241, 236, 223, 0.18);
  background: rgba(12, 13, 11, 0.66);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(6px);
}

.costume-media figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.costume-palette {
  display: flex;
  gap: 4px;
}

.costume-palette span {
  width: 13px;
  height: 13px;
  border: 1px solid rgba(241, 236, 223, 0.18);
}

.costume-body {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 34px);
}

.costume-head .mono {
  color: var(--gold);
}

.costume-head h3 {
  margin-top: 9px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.costume-intro {
  max-width: 54ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.9;
}

.costume-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.costume-keywords li {
  padding: 4px 9px;
  border: 1px solid rgba(199, 164, 106, 0.36);
  color: var(--gold);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.costume-poses {
  margin-top: clamp(18px, 2vw, 26px);
  border-top: 1px solid var(--line);
}

.costume-pose {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease;
}

.costume-pose:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.costume-pose:hover {
  background: rgba(241, 236, 223, 0.025);
}

.costume-pose-num {
  padding-top: 2px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.costume-pose h4 {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.costume-pose p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.costume-cue {
  display: inline-block;
  margin-top: 7px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
}

.costume-noscript {
  padding: 24px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* ============================================================
   Tone recipes
   ============================================================ */

.tone-app {
  margin-top: 4px;
}

.tone-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.tone-tabs button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  padding: 15px 16px;
  border: 0;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.02rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.tone-tabs button span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.tone-tabs button small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tone-tabs button:hover {
  background: #1c1d18;
  color: var(--ink);
}

.tone-tabs button[aria-selected="true"] {
  background: #20211b;
  color: var(--ink);
  box-shadow: inset 0 2px 0 var(--gold);
}

.tone-tabs button[aria-selected="true"] small {
  color: var(--gold);
}

.tone-panels {
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--surface);
}

.tone-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
}

.tone-summary {
  padding: clamp(22px, 3vw, 38px);
  border-right: 1px solid var(--line);
}

.tone-summary .mono {
  color: var(--gold);
}

.tone-summary h3 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.18;
  text-wrap: balance;
}

.tone-summary p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.9;
}

.tone-swatches {
  display: flex;
  gap: 1px;
  margin-top: 22px;
  border: 1px solid var(--line);
}

.tone-swatches span {
  height: 52px;
  flex: 1;
}

.tone-steps {
  padding: clamp(18px, 2.4vw, 30px) clamp(22px, 3vw, 38px);
}

.tone-steps > li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.tone-steps > li:first-child {
  padding-top: 0;
}

.tone-steps > li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.tone-step-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(199, 164, 106, 0.5);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.tone-steps h4 {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.4;
}

.tone-steps p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.tone-why {
  display: block;
  margin-top: 8px;
  padding-left: 11px;
  border-left: 1px solid rgba(199, 164, 106, 0.45);
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.8;
}

.tone-why b {
  margin-right: 8px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

/* ============================================================
   Pantone color of the year
   ============================================================ */

#pantone-title {
  max-width: 18ch;
}

.pantone-feature {
  display: grid;
  grid-template-columns: minmax(240px, 0.86fr) minmax(0, 1.14fr);
  border: 1px solid var(--line);
  background: var(--surface);
}

.pantone-feature-swatch {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 380px;
  padding: 26px;
  color: #5c574c;
  border-right: 1px solid var(--line);
}

.pantone-feature-swatch::after {
  content: "COLOR OF THE YEAR";
  position: absolute;
  top: 24px;
  left: 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 0.55;
}

.pantone-feature-swatch span {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.pantone-feature-copy {
  padding: clamp(24px, 3.4vw, 48px);
}

.pantone-feature-copy .mono {
  color: var(--gold);
}

.pantone-feature-copy h3 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.pantone-feature-copy h3 em {
  color: var(--gold-bright);
  font-style: normal;
  font-size: 0.55em;
  letter-spacing: 0.04em;
}

.pantone-feature-copy p {
  max-width: 48ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.pantone-feature-copy ul {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.pantone-feature-copy li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.pantone-feature-copy li b {
  display: inline-block;
  min-width: 3.2em;
  margin-right: 8px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.pantone-code {
  display: inline-block;
  margin-top: 18px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.pantone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin-top: clamp(26px, 3vw, 42px);
}

.pantone-card {
  background: var(--surface);
  outline: 1px solid var(--line);
  outline-offset: -1px;
}

.pantone-swatch {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1 / 1;
  padding: 11px 12px;
}

.pantone-year {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pantone-swatch-code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.72;
}

.pantone-card-copy {
  padding: 11px 12px 13px;
  border-top: 1px solid var(--line);
}

.pantone-card-copy h4 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}

.pantone-card-copy p {
  margin-top: 3px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.pantone-card-copy span {
  display: block;
  margin-top: 6px;
  color: #928d81;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.pantone-uses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(26px, 3vw, 42px);
  border: 1px solid var(--line);
  background: var(--line);
}

.pantone-use {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  background: var(--surface);
}

.pantone-dot {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 1px solid rgba(241, 236, 223, 0.22);
  border-radius: 50%;
}

.pantone-use .mono {
  color: var(--gold);
  font-size: 11px;
}

.pantone-use h4 {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.35;
}

.pantone-use p {
  margin-top: 5px;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.8;
}

.pantone-note {
  margin-top: 16px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.8;
}

/* ============================================================
   Color lab
   ============================================================ */

.color-lab {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  border: 1px solid var(--line);
  background: var(--surface);
}

.lab-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: #101109;
}

.lab-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 42%, #171812, #0a0b09 72%);
  overflow: hidden;
}

.lab-frame canvas {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 560px;
  margin: auto;
}

.lab-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border: 1px solid rgba(199, 164, 106, 0.4);
  background: rgba(12, 13, 11, 0.72);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  backdrop-filter: blur(6px);
}

.lab-hold {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(241, 236, 223, 0.3);
  background: rgba(12, 13, 11, 0.78);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
  touch-action: none;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lab-hold:hover,
.lab-hold.is-holding {
  border-color: var(--gold);
  background: var(--gold);
  color: #11120f;
}

.lab-foot {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.lab-foot canvas {
  display: block;
  width: 100%;
  height: 56px;
  border: 1px solid var(--line);
  background: #0a0b09;
}

.lab-foot p {
  color: var(--faint);
  font-size: 12px;
  line-height: 1.75;
}

.lab-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(18px, 2.2vw, 28px);
  border-left: 1px solid var(--line);
}

.lab-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lab-preset {
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.lab-preset:hover {
  border-color: rgba(199, 164, 106, 0.6);
  color: var(--ink);
}

.lab-preset.is-active {
  border-color: var(--gold);
  background: rgba(199, 164, 106, 0.12);
  color: var(--gold-bright);
}

.lab-sliders {
  display: grid;
  gap: 7px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.lab-slider {
  padding-top: 9px;
}

.lab-slider label {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 10px;
}

.lab-slider label span {
  color: var(--ink);
  font-size: 11.5px;
}

.lab-slider label small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.lab-slider label b {
  min-width: 2.4em;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-align: right;
}

.lab-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 18px;
  margin-top: 2px;
  background: transparent;
  cursor: pointer;
}

.lab-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: #35362e;
}

.lab-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(199, 164, 106, 0.14);
}

.lab-slider input[type="range"]::-moz-range-track {
  height: 2px;
  background: #35362e;
}

.lab-slider input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
}

.lab-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.lab-reset {
  padding: 8px 13px;
  border: 1px solid rgba(241, 236, 223, 0.28);
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.lab-reset:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.lab-status {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

/* ============================================================
   Local image analysis
   ============================================================ */

.analyzer {
  border: 1px solid var(--line);
  background: var(--surface);
}

.analyzer-upload {
  padding: clamp(16px, 2vw, 24px);
}

.analyzer-file {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.analyzer-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(26px, 4vw, 44px) 22px;
  border: 1px dashed rgba(199, 164, 106, 0.4);
  background: #101109;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.analyzer-drop:hover,
.analyzer-drop.is-over,
.analyzer-upload:focus-within .analyzer-drop {
  border-color: var(--gold-bright);
  background: #14150f;
}

.analyzer-drop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  border: 1px solid rgba(199, 164, 106, 0.5);
  border-radius: 50%;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
}

.analyzer-drop-title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: -0.02em;
}

.analyzer-drop-sub {
  color: var(--muted);
  font-size: 11.5px;
}

.analyzer-drop-meta {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.analyzer-privacy {
  margin-top: 10px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.analyzer-cache {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 12px auto 0;
  padding: 10px 14px;
  border: 1px dashed rgba(199, 164, 106, 0.35);
}

.analyzer-cache .mono {
  color: var(--gold);
  font-size: 11px;
}

.analyzer-cache p {
  flex: 1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.analyzer-cache button {
  padding: 5px 9px;
  border: 1px solid rgba(241, 236, 223, 0.24);
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.analyzer-cache button:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.analyzer-status {
  min-height: 1.6em;
  margin-top: 10px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: center;
}

.analyzer-result {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  border-top: 1px solid var(--line);
}

.analyzer-image {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: #0a0b09;
  border-right: 1px solid var(--line);
}

.analyzer-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 640px;
  object-fit: contain;
  background: #0a0b09;
}

.analyzer-image figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.analyzer-data {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(18px, 2.4vw, 32px);
  min-width: 0;
}

.analyzer-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.analyzer-title-row h3 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.analyzer-title-row .mono {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 11px;
}

.analyzer-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.analysis-stat {
  padding: 11px 12px;
  background: #101109;
}

.analysis-stat span {
  display: block;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.analysis-stat b {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.15;
}

.analysis-stat small {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
}

.analyzer-block h4 {
  margin-bottom: 9px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.analyzer-palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 6px;
}

.palette-chip-color {
  display: flex;
  align-items: flex-end;
  height: 62px;
  padding: 6px 7px;
  border: 1px solid rgba(241, 236, 223, 0.1);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  line-height: 1;
}

.palette-chip-share {
  display: block;
  padding-top: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: right;
}

.analyzer-notes {
  display: grid;
  gap: 6px;
}

.analyzer-notes li {
  position: relative;
  padding-left: 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.analyzer-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 5px;
  height: 1px;
  background: var(--gold);
}

.analyzer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.analyzer-actions button {
  padding: 9px 14px;
  border: 1px solid rgba(241, 236, 223, 0.26);
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.analyzer-actions button:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.analyzer-actions .analyzer-primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #11120f;
}

.analyzer-actions .analyzer-primary:hover {
  background: var(--gold-bright);
  color: #11120f;
}

/* ============================================================
   Responsive: costume, tone, pantone, lab, analyzer
   ============================================================ */

@media (max-width: 1180px) {
  .costume-style {
    grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr);
  }

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

  .color-lab {
    grid-template-columns: 1fr;
  }

  .lab-controls {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .lab-sliders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
  }

  .lab-actions {
    margin-top: 4px;
  }
}

@media (max-width: 1000px) {
  .costume-style {
    grid-template-columns: 1fr;
  }

  .costume-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .costume-media-frame {
    flex: none;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .tone-panel {
    grid-template-columns: 1fr;
  }

  .tone-summary {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pantone-feature {
    grid-template-columns: 1fr;
  }

  .pantone-feature-swatch {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .analyzer-result {
    grid-template-columns: 1fr;
  }

  .analyzer-image {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .analyzer-image img {
    max-height: 480px;
  }
}

@media (max-width: 900px) {
  .page-jump a {
    flex: 1 1 calc(25% - 1px);
  }

  .tone-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pantone-grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  }

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

@media (max-width: 720px) {
  .page-jump {
    flex-wrap: wrap;
  }

  .page-jump a {
    flex: 1 1 auto;
    padding: 11px 12px;
  }

  .costume-tabs {
    grid-template-columns: 1fr;
  }

  .costume-tab {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "no name count"
      "no en count";
    gap: 1px 14px;
    align-items: center;
    padding: 14px 16px;
  }

  .costume-tab-count {
    margin-top: 0;
    text-align: right;
  }

  .costume-nav-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .costume-body {
    padding: 18px 16px;
  }

  .costume-pose {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
  }

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

  .tone-summary,
  .tone-steps {
    padding: 20px 16px;
  }

  .tone-steps > li {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
  }

  .tone-step-tag {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .pantone-feature-copy {
    padding: 22px 18px;
  }

  .pantone-uses {
    grid-template-columns: 1fr;
  }

  .pantone-grid {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  }

  .pantone-swatch {
    padding: 9px;
  }

  .pantone-year {
    font-size: 1.15rem;
  }

  .lab-preview {
    padding: 12px;
  }

  .lab-frame {
    min-height: 220px;
  }

  .lab-foot {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .lab-sliders {
    grid-template-columns: 1fr;
  }

  .lab-controls {
    padding: 16px;
  }

  .analyzer-upload {
    padding: 14px;
  }

  .analyzer-drop {
    padding: 24px 14px;
  }

  .analyzer-data {
    padding: 18px 16px;
  }

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

@media (max-width: 460px) {
  .costume-tab {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "no name"
      "no en"
      "no count";
  }

  .costume-tab-count {
    text-align: left;
  }

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

  .pantone-card-copy {
    padding: 9px 8px 11px;
  }

  .pantone-card-copy h4 {
    font-size: 0.9rem;
  }

  .pantone-card-copy p {
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .pantone-swatch {
    padding: 8px;
  }

  .pantone-swatch-code {
    font-size: 11px;
    letter-spacing: 0.02em;
  }

  .palette-chip-color {
    height: 52px;
  }

  .analyzer-actions button {
    flex: 1 1 auto;
  }

  .lab-hold {
    right: 8px;
    bottom: 8px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .lab-badge {
    top: 8px;
    left: 8px;
  }
}

/* ===== Scene practice photography ===== */
.scene-photo {
  margin-top: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  background: var(--surface);
}

.scene-photo-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.9 / 1;
  background: var(--bg);
}

.scene-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 8, 6, 0.28), transparent 28%),
    linear-gradient(0deg, rgba(7, 8, 6, 0.22), transparent 24%);
}

.scene-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.96);
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
}

.scene-photo:hover .scene-photo-frame img {
  transform: scale(1.015);
  filter: saturate(1.02);
}

.scene-photo-tag {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(241, 236, 223, 0.22);
  background: rgba(12, 13, 11, 0.62);
  backdrop-filter: blur(12px);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scene-photo-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px rgba(230, 195, 139, 0.9);
}

.scene-photo figcaption {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2.4vw, 30px);
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.85;
}

.scene-photo figcaption .mono {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.plan-thumb--photo {
  position: relative;
  aspect-ratio: 3 / 2;
  border-color: var(--line-strong);
}

.plan-thumb--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--zoom, 1));
  transform-origin: var(--fx, 50%) var(--fy, 30%);
  filter: saturate(0.94) contrast(1.02);
}

.plan-thumb--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(241, 236, 223, 0.06);
}

@media (max-width: 1000px) {
  .scene-photo-frame {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 720px) {
  .scene-photo-frame {
    aspect-ratio: 3 / 2;
  }

  .scene-photo figcaption {
    flex-direction: column;
    gap: 5px;
    padding: 12px 14px;
  }

  .scene-photo-tag {
    top: 10px;
    left: 10px;
    padding: 6px 9px;
    font-size: 11px;
  }
}

/* ===== Combo photographic stage ===== */
.combo-stage--photo {
  aspect-ratio: 3 / 2;
  isolation: isolate;
}

.combo-scene-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: perspective(1400px) translateY(var(--photo-lift, 0%)) rotateX(var(--angle-tilt, 0deg)) scale(var(--photo-zoom, 1));
  transform-origin: var(--focus-x, 50%) var(--focus-y, 30%);
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
  will-change: transform;
}

.combo-stage[data-light="golden"] .combo-scene-photo {
  filter: saturate(1.08) sepia(0.12) contrast(1.02) brightness(1.02);
}

.combo-stage[data-light="window"] .combo-scene-photo {
  filter: saturate(0.98) brightness(1.05) contrast(0.98);
}

.combo-stage[data-light="overcast"] .combo-scene-photo {
  filter: saturate(0.78) contrast(0.9) brightness(1.03);
}

.combo-stage[data-light="hard"] .combo-scene-photo {
  filter: saturate(1.02) contrast(1.18) brightness(1.01);
}

.combo-stage[data-light="blue"] .combo-scene-photo {
  filter: saturate(0.88) brightness(0.86) contrast(1.08) hue-rotate(-8deg);
}

.combo-light-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: soft-light;
}

.combo-stage[data-light="golden"] .combo-light-wash {
  background:
    radial-gradient(circle at 76% 10%, rgba(255, 213, 150, 0.9), transparent 56%),
    linear-gradient(115deg, rgba(255, 190, 120, 0.18), transparent 55%);
  opacity: 0.62;
}

.combo-stage[data-light="window"] .combo-light-wash {
  background: linear-gradient(100deg, rgba(255, 232, 200, 0.78), transparent 62%);
  mix-blend-mode: screen;
  opacity: 0.5;
}

.combo-stage[data-light="overcast"] .combo-light-wash {
  background: linear-gradient(180deg, rgba(190, 205, 195, 0.4), rgba(20, 25, 22, 0.14));
  opacity: 0.6;
}

.combo-stage[data-light="hard"] .combo-light-wash {
  background:
    radial-gradient(circle at 82% -4%, rgba(255, 245, 220, 0.95), transparent 48%),
    linear-gradient(120deg, transparent 34%, rgba(0, 0, 0, 0.42));
  mix-blend-mode: overlay;
  opacity: 0.7;
}

.combo-stage[data-light="blue"] .combo-light-wash {
  background: linear-gradient(180deg, rgba(60, 105, 160, 0.78), rgba(15, 30, 60, 0.5));
  mix-blend-mode: color;
  opacity: 0.72;
}

.combo-photo-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(5, 6, 5, 0.42) 100%),
    linear-gradient(0deg, rgba(5, 6, 5, 0.26), transparent 24%);
}

.combo-frame-guides {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.55;
}

.combo-frame-guides i {
  position: absolute;
  background: rgba(241, 236, 223, 0.28);
  box-shadow: 0 0 0 1px rgba(5, 6, 5, 0.08);
}

.combo-frame-guides i:nth-child(1),
.combo-frame-guides i:nth-child(2) {
  top: 0;
  bottom: 0;
  width: 1px;
}

.combo-frame-guides i:nth-child(3),
.combo-frame-guides i:nth-child(4) {
  left: 0;
  right: 0;
  height: 1px;
}

.combo-frame-guides i:nth-child(1) { left: 33.333%; }
.combo-frame-guides i:nth-child(2) { left: 66.666%; }
.combo-frame-guides i:nth-child(3) { top: 33.333%; }
.combo-frame-guides i:nth-child(4) { top: 66.666%; }

.combo-frame-tag {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(241, 236, 223, 0.24);
  background: rgba(10, 11, 9, 0.64);
  backdrop-filter: blur(12px);
  font-family: var(--mono);
  line-height: 1;
}

.combo-frame-tag b {
  color: var(--gold-bright);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.combo-frame-tag span {
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.combo-photo-note {
  position: absolute;
  z-index: 4;
  right: 14px;
  bottom: 13px;
  color: rgba(241, 236, 223, 0.72);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.combo-stage .stage-grain {
  z-index: 3;
}

.combo-cast-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px 6px 6px;
  border: 1px solid rgba(241, 236, 223, 0.18);
  background: rgba(10, 11, 9, 0.66);
  backdrop-filter: blur(12px);
}

.combo-cast-chip img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  object-position: 50% 24%;
  border: 1px solid rgba(241, 236, 223, 0.2);
}

.combo-cast-chip div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.combo-cast-chip .mono {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.combo-cast-chip b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.combo-cast-chip small {
  color: rgba(241, 236, 223, 0.72);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.combo-refs {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 1px;
  border-top: 1px solid rgba(241, 236, 223, 0.12);
  background: rgba(241, 236, 223, 0.12);
}

.combo-ref {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  margin: 0;
  padding: 10px 12px;
  background: #0d0e0b;
}

.combo-ref-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 98px;
  overflow: hidden;
  border: 1px solid rgba(241, 236, 223, 0.08);
  background: #080907;
}

.combo-ref-media img {
  display: block;
  width: 100%;
  height: 100%;
}

.combo-ref--model .combo-ref-media img {
  object-fit: cover;
  object-position: 50% 26%;
}

.combo-ref--pose .combo-ref-media img {
  object-fit: contain;
}

.combo-ref figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.combo-ref figcaption .mono {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.combo-ref figcaption b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.15;
}

.combo-ref figcaption small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.combo-ref--angle .combo-ref-media {
  border-color: rgba(199, 164, 106, 0.18);
}

.combo-ref-media--gauge {
  padding: 5px 6px;
}

.angle-gauge {
  display: block;
  width: 100%;
  height: 100%;
}

.gauge-horizon {
  stroke: rgba(241, 236, 223, 0.22);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.gauge-axis {
  stroke: rgba(241, 236, 223, 0.18);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.gauge-head {
  fill: rgba(241, 236, 223, 0.34);
}

.gauge-body {
  stroke: rgba(241, 236, 223, 0.3);
  stroke-width: 1.4;
}

.gauge-sight {
  stroke: var(--gold);
  stroke-width: 1;
  stroke-opacity: 0.55;
}

.gauge-cam rect,
.gauge-cam path {
  fill: var(--gold-bright);
}

.gauge-measure {
  stroke: var(--gold);
  stroke-width: 1;
  stroke-opacity: 0.45;
  stroke-dasharray: 2 3;
}

.gauge-caption,
.gauge-tick {
  fill: rgba(241, 236, 223, 0.42);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.gauge-value {
  fill: rgba(241, 236, 223, 0.62);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .combo-cast-chip {
    top: 8px;
    left: 8px;
    gap: 7px;
    padding: 4px 7px 4px 4px;
  }

  .combo-cast-chip img {
    width: 30px;
    height: 30px;
  }

  .combo-cast-chip b {
    font-size: 12px;
  }

  .combo-cast-chip small {
    display: none;
  }

  .combo-refs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .combo-ref {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 8px;
  }

  .combo-ref-media {
    width: 100%;
    height: 82px;
  }

  .combo-ref figcaption b {
    font-size: 13px;
  }

  .combo-ref figcaption small {
    display: none;
  }
}

@media (max-width: 720px) {
  .combo-frame-tag {
    top: 10px;
    right: 10px;
    padding: 6px 8px;
  }

  .combo-frame-tag b {
    font-size: 11px;
  }

  .combo-photo-note {
    display: none;
  }
}

/* ===== Fixed rail navigation ===== */
.rail-nav {
  position: fixed;
  z-index: 130;
  top: 50%;
  right: clamp(10px, 1.7vw, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  transform: translateY(-50%);
  pointer-events: none;
}

.rail-top {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(12, 13, 11, 0.6);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.rail-top:hover,
.rail-top:focus-visible {
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(199, 164, 106, 0.2);
}

.rail-track {
  position: relative;
  width: 1px;
  height: clamp(96px, 16vh, 168px);
  background: rgba(241, 236, 223, 0.14);
  pointer-events: none;
}

.rail-progress {
  position: absolute;
  top: 0;
  left: -0.5px;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, var(--gold-bright), rgba(199, 164, 106, 0.18));
  box-shadow: 0 0 10px rgba(230, 195, 139, 0.55);
  transition: height 0.12s linear;
}

.rail-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: auto;
}

.rail-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 20px;
}

.rail-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(241, 236, 223, 0.28);
  transition: background 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.rail-link:hover .rail-dot,
.rail-link:focus-visible .rail-dot {
  background: var(--gold);
  transform: scale(1.35);
}

.rail-link.is-active .rail-dot {
  background: var(--gold-bright);
  transform: scale(1.7);
  box-shadow: 0 0 0 3px rgba(199, 164, 106, 0.12), 0 0 14px rgba(230, 195, 139, 0.8);
}

.rail-label {
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  padding: 5px 9px;
  border: 1px solid var(--line);
  background: rgba(12, 13, 11, 0.84);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(8px, -50%);
  pointer-events: none;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  transition: opacity 0.22s ease, transform 0.22s var(--ease), visibility 0.22s;
}

.rail-link:hover .rail-label,
.rail-link:focus-visible .rail-label {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}

.rail-link.is-active .rail-label {
  border-color: rgba(199, 164, 106, 0.34);
  color: var(--gold-bright);
}

.rail-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  pointer-events: none;
}

.rail-counter b {
  color: var(--gold-bright);
  font-weight: 500;
}

.rail-counter i {
  font-style: normal;
  opacity: 0.5;
}

@media (min-width: 1600px) {
  .rail-link.is-active .rail-label {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
  }
}

@media (max-height: 720px) {
  .rail-nav {
    gap: 7px;
  }

  .rail-track {
    height: 74px;
  }

  .rail-link {
    height: 17px;
  }
}

@media (max-width: 860px) {
  .rail-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rail-top,
  .rail-dot,
  .rail-label,
  .rail-progress {
    transition: none;
  }
}

/* ============================================================
   Develop workspace (color page)
   ============================================================ */

.lr-lab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  border: 1px solid var(--line);
  background: #11120f;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.lr-topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #0d0e0b;
}

.lr-file {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lr-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(199, 164, 106, 0.12);
}

.lr-file > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.lr-file b {
  max-width: 320px;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lr-file span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.lr-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.lr-toolbar::-webkit-scrollbar {
  display: none;
}

.lr-tool {
  flex: none;
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.lr-tool:hover:not(:disabled) {
  border-color: var(--line-strong);
  color: var(--ink);
}

.lr-tool:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.lr-tool--gold {
  border-color: var(--gold);
  background: var(--gold);
  color: #14120c;
  font-weight: 700;
}

.lr-tool--gold:hover:not(:disabled) {
  border-color: var(--gold-bright);
  background: var(--gold-bright);
  color: #0d0e0b;
}

.lr-stage-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  background: #101109;
}

.lr-stage {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 18px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 40%, #171812, #080907 74%);
  overflow: hidden;
}

.lr-canvas-stack {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}

.lr-canvas-stack canvas {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(66vh, 720px);
}

.lr-canvas-stack #labOriginalCanvas {
  display: none;
}

.lr-stage.is-picking canvas {
  cursor: crosshair;
}

.lr-split-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  z-index: 4;
  width: 1px;
  background: rgba(241, 236, 223, 0.68);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
  transform: translateX(-0.5px);
  pointer-events: none;
}

.lr-split-line i {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(241, 236, 223, 0.55);
  border-radius: 50%;
  background: rgba(12, 13, 11, 0.82);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(6px);
}

.lr-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  padding: 5px 9px;
  border: 1px solid rgba(199, 164, 106, 0.4);
  background: rgba(12, 13, 11, 0.72);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  backdrop-filter: blur(6px);
}

.lr-stage .lab-hold {
  z-index: 5;
}

.lr-stage.is-picking .lab-hold {
  opacity: 0.4;
  pointer-events: none;
}

.lr-stage-meta {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 4;
  max-width: calc(100% - 150px);
  padding: 4px 7px;
  overflow: hidden;
  background: rgba(12, 13, 11, 0.6);
  color: rgba(241, 236, 223, 0.72);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.lr-picker-tip {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 6;
  padding: 7px 12px;
  background: rgba(199, 164, 106, 0.94);
  color: #15120b;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  transform: translateX(-50%);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

.lr-empty {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 24px;
  background: radial-gradient(circle at 50% 40%, #171812, #080907 74%);
  text-align: center;
}

.lr-empty[hidden] {
  display: none;
}

.lr-empty .mono {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.lr-empty p {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 22px);
}

.lr-empty small {
  max-width: 280px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.lr-empty button {
  margin-top: 5px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.22s ease, color 0.22s ease;
}

.lr-empty button:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.lr-lab.is-empty .lr-modules,
.lr-lab.is-empty .lr-presets {
  opacity: 0.38;
}

.lr-underbar {
  display: grid;
  grid-template-columns: minmax(170px, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.lr-hist {
  position: relative;
  border: 1px solid var(--line);
  background: #0a0b09;
}

.lr-hist canvas {
  display: block;
  width: 100%;
  height: 68px;
}

.lr-hist-caption {
  position: absolute;
  right: 6px;
  bottom: 3px;
  color: rgba(241, 236, 223, 0.72);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.lr-status {
  min-height: 2.8em;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.7;
}

.lr-preset-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.lr-preset-bar > .mono {
  flex: none;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.13em;
}

.lr-presets {
  display: flex;
  flex: 1;
  gap: 5px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.lr-presets::-webkit-scrollbar {
  height: 4px;
}

.lr-presets::-webkit-scrollbar-thumb {
  background: rgba(199, 164, 106, 0.3);
}

.lr-preset {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.lr-preset i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.lr-preset:hover {
  border-color: rgba(199, 164, 106, 0.55);
  color: var(--ink);
}

.lr-preset.is-active {
  border-color: var(--gold);
  background: rgba(199, 164, 106, 0.11);
  color: var(--gold-bright);
}

.lr-panel {
  position: sticky;
  top: calc(var(--header-h) + 10px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 20px);
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-left: 1px solid var(--line);
  background: #131410;
  scrollbar-width: thin;
  scrollbar-color: rgba(199, 164, 106, 0.32) transparent;
}

.lr-panel::-webkit-scrollbar {
  width: 6px;
}

.lr-panel::-webkit-scrollbar-thumb {
  background: rgba(199, 164, 106, 0.32);
}

.lr-panel-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(19, 20, 16, 0.97);
  backdrop-filter: blur(10px);
}

.lr-panel-head .mono {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.13em;
}

.lr-panel-head > span:last-child {
  color: var(--faint);
  font-size: 11px;
}

.lr-module {
  border-bottom: 1px solid var(--line);
}

.lr-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lr-module-head:hover {
  background: rgba(241, 236, 223, 0.025);
}

.lr-module-head i {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  transition: transform 0.3s var(--ease), color 0.3s ease;
}

.lr-module.is-open .lr-module-head i {
  color: var(--gold);
  transform: rotate(45deg);
}

.lr-module-body {
  display: none;
  padding: 2px 16px 16px;
}

.lr-module.is-open .lr-module-body {
  display: block;
}

.lr-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lr-row--split {
  justify-content: space-between;
  margin-bottom: 4px;
}

.lr-seg {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
}

.lr-seg button {
  padding: 6px 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lr-seg button.is-active {
  background: rgba(199, 164, 106, 0.16);
  color: var(--gold-bright);
}

.lr-ghost,
.lr-mini {
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lr-mini {
  padding: 4px 7px;
  font-size: 11px;
}

.lr-ghost:hover,
.lr-mini:hover,
.lr-mini.is-active {
  border-color: rgba(199, 164, 106, 0.55);
  color: var(--gold-bright);
}

.lr-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 0 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(241, 236, 223, 0.06);
}

.lr-subhead .mono {
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lr-subhead-hint {
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
}

.lr-control {
  margin: 9px 0;
}

.lr-control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.lr-control-head label {
  color: #b9b3a4;
  font-size: 11px;
  letter-spacing: 0.02em;
  cursor: default;
  user-select: none;
}

.lr-num {
  width: 58px;
  padding: 1px 3px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  text-align: right;
  appearance: textfield;
  -moz-appearance: textfield;
}

.lr-num::-webkit-inner-spin-button,
.lr-num::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.lr-num:hover,
.lr-num:focus {
  border-color: var(--line-strong);
  background: #0a0b09;
  outline: none;
}

.lr-hint {
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.lr-range {
  display: block;
  width: 100%;
  height: 14px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  --p: 50%;
}

.lr-range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold) 0, var(--gold) var(--p), rgba(241, 236, 223, 0.14) var(--p), rgba(241, 236, 223, 0.14) 100%);
}

.lr-range::-moz-range-track {
  height: 3px;
  border-radius: 99px;
  background: rgba(241, 236, 223, 0.14);
}

.lr-range::-moz-range-progress {
  height: 3px;
  border-radius: 99px;
  background: var(--gold);
}

.lr-range::-webkit-slider-thumb {
  width: 11px;
  height: 11px;
  margin-top: -4px;
  border: 2px solid #14150f;
  border-radius: 50%;
  background: #f1ecdf;
  box-shadow: 0 0 0 1px rgba(199, 164, 106, 0.72);
  -webkit-appearance: none;
}

.lr-range::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 2px solid #14150f;
  border-radius: 50%;
  background: #f1ecdf;
  box-shadow: 0 0 0 1px rgba(199, 164, 106, 0.72);
}

.lr-range:focus-visible {
  outline: 1px solid rgba(199, 164, 106, 0.55);
  outline-offset: 4px;
}

.lr-range.has-track::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--track);
}

.lr-range.has-track::-moz-range-track {
  height: 4px;
  background: var(--track);
}

.lr-range.has-track::-webkit-slider-thumb {
  margin-top: -3.5px;
}

.lr-range.has-track::-moz-range-progress {
  background: transparent;
}

.lr-note {
  margin: 12px 0 0;
  padding-left: 10px;
  border-left: 1px solid rgba(199, 164, 106, 0.32);
  color: var(--faint);
  font-size: 12px;
  line-height: 1.7;
}

.lr-band-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 10px;
}

.lr-band-tabs button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--faint);
  font-size: 11px;
  cursor: pointer;
}

.lr-band-tabs i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
}

.lr-band-tabs button.is-active {
  border-color: var(--line-strong);
  background: rgba(241, 236, 223, 0.03);
  color: var(--ink);
}

.lr-wheels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 12px;
}

.lr-wheel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  outline: none;
}

.lr-wheel-face {
  position: relative;
  width: 100%;
  max-width: 88px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff3b30, #ffc400, #39c76a, #2fd1cf, #2e7cff, #9b5de5, #ff3d9a, #ff3b30);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 4px 18px rgba(0, 0, 0, 0.35);
  cursor: crosshair;
  touch-action: none;
}

.lr-wheel-face::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 240, 235, 0.98) 0%, rgba(242, 240, 235, 0.86) 24%, rgba(242, 240, 235, 0.22) 57%, rgba(242, 240, 235, 0) 72%);
  content: "";
  pointer-events: none;
}

.lr-wheel-dot {
  position: absolute;
  top: var(--wy, 50%);
  left: var(--wx, 50%);
  z-index: 2;
  width: 11px;
  height: 11px;
  border: 2px solid #0b0c09;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.lr-wheel:focus-visible .lr-wheel-face {
  box-shadow: 0 0 0 2px var(--gold), 0 4px 18px rgba(0, 0, 0, 0.35);
}

.lr-wheel-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.07em;
}

.lr-wheel-value {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
}

.lr-wheel .lr-range--lum {
  height: 12px;
}

.lr-wheel .lr-range--lum::-webkit-slider-runnable-track {
  height: 2px;
}

.lr-wheel .lr-range--lum::-webkit-slider-thumb {
  width: 9px;
  height: 9px;
  margin-top: -4px;
}

.lr-curve-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 2px 0 10px;
}

.lr-curve-tabs {
  display: flex;
  gap: 4px;
}

.lr-curve-tabs button {
  width: 30px;
  height: 22px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
}

.lr-curve-tabs button.is-active {
  border-color: var(--gold);
  background: rgba(199, 164, 106, 0.1);
  color: var(--gold-bright);
}

#lrCurvePreset {
  max-width: 92px;
  padding: 4px 5px;
  border: 1px solid var(--line);
  background: #0c0d0b;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.lr-curve-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: #0a0b09;
  cursor: crosshair;
  touch-action: none;
}

.lr-curve-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
}

.lr-curve-foot button {
  padding: 4px 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}

.lr-curve-foot button:hover {
  border-color: rgba(199, 164, 106, 0.55);
  color: var(--gold-bright);
}

.lr-history-box {
  border-top: 1px solid var(--line);
  background: #0f100c;
}

.lr-history-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px 8px;
  background: rgba(15, 16, 12, 0.98);
}

.lr-history-head .mono {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.lr-history-head button {
  border: 0;
  background: none;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
}

.lr-history-head button:hover {
  color: var(--ink);
}

.lr-history-list {
  max-height: 170px;
  margin: 0;
  padding: 0 0 10px;
  overflow: auto;
  list-style: none;
}

.lr-history-list button {
  display: flex;
  gap: 9px;
  width: 100%;
  padding: 5px 16px;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
}

.lr-history-list button span {
  color: rgba(241, 236, 223, 0.72);
}

.lr-history-list button:hover {
  background: rgba(241, 236, 223, 0.03);
  color: var(--ink);
}

.lr-history-list li.is-current button {
  color: var(--gold-bright);
}

.lr-history-list li.is-current button span {
  color: var(--gold);
}

@media (max-width: 1180px) {
  .lr-lab {
    grid-template-columns: minmax(0, 1fr) 336px;
  }

  .lr-file b {
    max-width: 220px;
  }
}

@media (max-width: 1000px) {
  .lr-lab {
    grid-template-columns: minmax(0, 1fr);
  }

  .lr-topbar {
    grid-column: 1;
  }

  .lr-panel {
    position: static;
    max-height: none;
    overflow: visible;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .lr-stage-col {
    padding: 14px;
  }

  .lr-wheels {
    max-width: 420px;
  }

  .lr-canvas-stack canvas {
    max-height: 70vh;
  }
}

@media (max-width: 720px) {
  .lr-topbar {
    flex-wrap: wrap;
    min-height: 0;
    padding: 10px 12px;
  }

  .lr-file {
    order: 1;
  }

  .lr-toolbar {
    order: 3;
    width: 100%;
    padding-bottom: 2px;
  }

  .lr-stage-col {
    gap: 10px;
    padding: 10px;
  }

  .lr-stage {
    min-height: 0;
    padding: 10px;
  }

  .lr-canvas-stack canvas {
    max-height: none;
  }

  .lr-badge {
    top: 10px;
    left: 10px;
  }

  .lr-stage .lab-hold {
    right: 10px;
    bottom: 10px;
  }

  .lr-stage-meta {
    bottom: 10px;
    left: 10px;
    max-width: calc(100% - 130px);
    font-size: 11px;
  }

  .lr-picker-tip {
    top: 44px;
    width: max-content;
    max-width: calc(100% - 24px);
    text-align: center;
  }

  .lr-underbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .lr-hist canvas {
    height: 56px;
  }

  .lr-preset-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .lr-presets {
    width: 100%;
  }

  .lr-status {
    min-height: 0;
    font-size: 11px;
  }

  .lr-wheels {
    max-width: none;
  }
}

@media (max-width: 460px) {
  .lr-file b {
    max-width: 150px;
    font-size: 11px;
  }

  .lr-file span {
    font-size: 11px;
  }

  .lr-tool {
    padding: 6px 8px;
    font-size: 11px;
  }

  .lr-stage {
    padding: 6px;
  }

  .lr-stage-meta {
    display: none;
  }

  .lr-module-head,
  .lr-module-body,
  .lr-panel-head {
    padding-right: 12px;
    padding-left: 12px;
  }

  .lr-history-list button {
    padding-right: 12px;
    padding-left: 12px;
  }

  .lr-control-head label {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lr-tool,
  .lr-preset,
  .lr-module-head i,
  .lr-range,
  .lr-stage .lab-hold {
    transition: none;
  }
}
