/* ==========================================================================
   迦源萌宠 · Atelier V3 Design System
   7 Curated Light/Dark Palettes · Editorial Rhythm · Low-Load Precision Motion
   ========================================================================== */

:root {
  --bg: #faf8f4;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3efe8;
  --surface-hover: #ede7dd;
  --ink: #1a1816;
  --ink-2: #4a453e;
  --muted: #6e675d;
  --line: #e7e1d7;
  --line-strong: #d3c9b8;
  --nav-bg: rgba(250, 248, 244, 0.84);
  --accent: #a6492d;
  --accent-hover: #8c3a21;
  --accent-soft: #f5e9e4;
  --accent-ring: rgba(166, 73, 45, 0.24);
  --on-accent: #ffffff;
  --btn-dark-bg: #1c1916;
  --btn-dark-hover: #312c26;
  --btn-dark-ink: #faf8f4;
  --spotlight: rgba(166, 73, 45, 0.08);
  --stage-bg: #1c1916;
  --stage-surface: #25211d;
  --stage-line: #37312b;
  --stage-ink: #f4efe7;
  --stage-muted: #b5aca0;
  --stage-accent: #eb9876;
  --stage-accent-soft: #f4c7b3;
  --plaque-bg: #ffffff;
  --plaque-border: #ece6dc;
  --shadow-sm: 0 2px 10px -4px rgba(34, 24, 14, 0.08);
  --shadow-md: 0 14px 36px -18px rgba(34, 24, 14, 0.16), 0 2px 8px -2px rgba(34, 24, 14, 0.06);
  --shadow-lg: 0 28px 64px -26px rgba(34, 24, 14, 0.24), 0 4px 14px -4px rgba(34, 24, 14, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --max-width: 1220px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  color-scheme: light;
}

/* Palette Overrides — Light */
:root[data-palette="orange"] {
  --bg: #fcfaf7;
  --surface-2: #f6efe7;
  --surface-hover: #efe4d7;
  --line: #eae0d4;
  --line-strong: #d8c7b5;
  --nav-bg: rgba(252, 250, 247, 0.86);
  --accent: #d45518;
  --accent-hover: #b64410;
  --accent-soft: #faeae0;
  --accent-ring: rgba(212, 85, 24, 0.26);
  --spotlight: rgba(212, 85, 24, 0.09);
  --stage-accent: #f69c64;
  --stage-accent-soft: #fbd0b3;
}

:root[data-palette="cloud"] {
  --bg: #f8fafd;
  --surface-2: #edf2f9;
  --surface-hover: #e2eaf5;
  --line: #dfe6f0;
  --line-strong: #c5d2e3;
  --nav-bg: rgba(248, 250, 253, 0.86);
  --accent: #0052d9;
  --accent-hover: #003ea6;
  --accent-soft: #e6effd;
  --accent-ring: rgba(0, 82, 217, 0.24);
  --spotlight: rgba(0, 82, 217, 0.08);
  --stage-bg: #131a26;
  --stage-surface: #1b2434;
  --stage-line: #2c384e;
  --stage-accent: #84b4ff;
  --stage-accent-soft: #bed8ff;
}

:root[data-palette="mist"] {
  --bg: #f6f8fa;
  --surface-2: #ecf1f5;
  --surface-hover: #e2e9ef;
  --line: #dce4ec;
  --line-strong: #c3d0dc;
  --nav-bg: rgba(246, 248, 250, 0.86);
  --accent: #2f6894;
  --accent-hover: #235277;
  --accent-soft: #e4eef6;
  --accent-ring: rgba(47, 104, 148, 0.24);
  --spotlight: rgba(47, 104, 148, 0.08);
  --stage-bg: #141c23;
  --stage-surface: #1c2630;
  --stage-line: #2d3c4a;
  --stage-accent: #8ac2ea;
  --stage-accent-soft: #c1e0f6;
}

:root[data-palette="sage"] {
  --bg: #f6f8f5;
  --surface-2: #ebf0e9;
  --surface-hover: #e0e8dd;
  --line: #dbe3d9;
  --line-strong: #c2cfc0;
  --nav-bg: rgba(246, 248, 245, 0.86);
  --accent: #3f6750;
  --accent-hover: #2f523e;
  --accent-soft: #e5efe9;
  --accent-ring: rgba(63, 103, 80, 0.24);
  --spotlight: rgba(63, 103, 80, 0.08);
  --stage-bg: #141c17;
  --stage-surface: #1d2721;
  --stage-line: #2e3d34;
  --stage-accent: #91c9a7;
  --stage-accent-soft: #c5e6d2;
}

:root[data-palette="rose"] {
  --bg: #faf7f8;
  --surface-2: #f3ecef;
  --surface-hover: #eadfe3;
  --line: #e7dce0;
  --line-strong: #d4c2c9;
  --nav-bg: rgba(250, 247, 248, 0.86);
  --accent: #934a62;
  --accent-hover: #79394e;
  --accent-soft: #f5e7ec;
  --accent-ring: rgba(147, 74, 98, 0.24);
  --spotlight: rgba(147, 74, 98, 0.08);
  --stage-bg: #1e1619;
  --stage-surface: #281e22;
  --stage-line: #3d2e34;
  --stage-accent: #e89cb4;
  --stage-accent-soft: #f5cbd8;
}

:root[data-palette="ink"] {
  --bg: #f9f9f8;
  --surface-2: #f0f0ee;
  --surface-hover: #e6e6e3;
  --line: #e2e2df;
  --line-strong: #c8c8c3;
  --nav-bg: rgba(249, 249, 248, 0.88);
  --accent: #1f242c;
  --accent-hover: #0e1116;
  --accent-soft: #e9eaed;
  --accent-ring: rgba(31, 36, 44, 0.22);
  --spotlight: rgba(31, 36, 44, 0.06);
  --stage-bg: #141619;
  --stage-surface: #1d2024;
  --stage-line: #2f333a;
  --stage-accent: #cbd5e1;
  --stage-accent-soft: #e2e8f0;
}

/* Dark Mode Tokens — Hand-Tuned Per Palette */
:root[data-color="dark"] {
  --bg: #141210;
  --bg-elevated: #1c1916;
  --surface: #1c1a17;
  --surface-2: #24211d;
  --surface-hover: #2d2924;
  --ink: #f2ede5;
  --ink-2: #cec6ba;
  --muted: #988f82;
  --line: #302c27;
  --line-strong: #464038;
  --nav-bg: rgba(20, 18, 16, 0.84);
  --accent: #e08465;
  --accent-hover: #ec9b7f;
  --accent-soft: rgba(224, 132, 101, 0.16);
  --accent-ring: rgba(224, 132, 101, 0.3);
  --on-accent: #141210;
  --btn-dark-bg: #f2ede5;
  --btn-dark-hover: #ffffff;
  --btn-dark-ink: #141210;
  --spotlight: rgba(224, 132, 101, 0.11);
  --stage-bg: #191613;
  --stage-surface: #231f1b;
  --stage-line: #38322b;
  --plaque-bg: #f3f0ea;
  --plaque-border: #3a342e;
  --shadow-sm: 0 2px 10px -4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 18px 42px -18px rgba(0, 0, 0, 0.62);
  --shadow-lg: 0 32px 72px -24px rgba(0, 0, 0, 0.78);
  color-scheme: dark;
}

:root[data-color="dark"][data-palette="orange"] {
  --bg: #151210;
  --surface: #1e1a16;
  --surface-2: #27221d;
  --surface-hover: #302a24;
  --accent: #f38c4e;
  --accent-hover: #f8a26d;
  --accent-soft: rgba(243, 140, 78, 0.17);
  --accent-ring: rgba(243, 140, 78, 0.3);
  --spotlight: rgba(243, 140, 78, 0.12);
}

:root[data-color="dark"][data-palette="cloud"] {
  --bg: #10141c;
  --surface: #171d28;
  --surface-2: #1f2736;
  --surface-hover: #273144;
  --line: #293345;
  --line-strong: #3c4a63;
  --nav-bg: rgba(16, 20, 28, 0.85);
  --accent: #6ea5ff;
  --accent-hover: #8cb9ff;
  --accent-soft: rgba(110, 165, 255, 0.16);
  --accent-ring: rgba(110, 165, 255, 0.3);
  --spotlight: rgba(110, 165, 255, 0.11);
  --stage-bg: #141a25;
  --stage-surface: #1c2433;
  --stage-line: #2e3b52;
}

:root[data-color="dark"][data-palette="mist"] {
  --bg: #11161b;
  --surface: #182028;
  --surface-2: #202a34;
  --surface-hover: #283440;
  --line: #2a3744;
  --line-strong: #3d4f60;
  --nav-bg: rgba(17, 22, 27, 0.85);
  --accent: #7cb6e0;
  --accent-hover: #9bc8ea;
  --accent-soft: rgba(124, 182, 224, 0.16);
  --accent-ring: rgba(124, 182, 224, 0.3);
  --spotlight: rgba(124, 182, 224, 0.11);
  --stage-bg: #151c23;
  --stage-surface: #1d2630;
  --stage-line: #2f3e4d;
}

:root[data-color="dark"][data-palette="sage"] {
  --bg: #111613;
  --surface: #18201b;
  --surface-2: #202a24;
  --surface-hover: #28342d;
  --line: #2a372f;
  --line-strong: #3d4f44;
  --nav-bg: rgba(17, 22, 19, 0.85);
  --accent: #82b999;
  --accent-hover: #9dcca9;
  --accent-soft: rgba(130, 185, 153, 0.16);
  --accent-ring: rgba(130, 185, 153, 0.3);
  --spotlight: rgba(130, 185, 153, 0.11);
  --stage-bg: #141c17;
  --stage-surface: #1c2720;
  --stage-line: #2e3f35;
}

:root[data-color="dark"][data-palette="rose"] {
  --bg: #171214;
  --surface: #201a1c;
  --surface-2: #292124;
  --surface-hover: #33292d;
  --line: #392d32;
  --line-strong: #524148;
  --nav-bg: rgba(23, 18, 20, 0.85);
  --accent: #df8fa9;
  --accent-hover: #eba9be;
  --accent-soft: rgba(223, 143, 169, 0.16);
  --accent-ring: rgba(223, 143, 169, 0.3);
  --spotlight: rgba(223, 143, 169, 0.11);
  --stage-bg: #1d1619;
  --stage-surface: #261d21;
  --stage-line: #3e2f36;
}

:root[data-color="dark"][data-palette="ink"] {
  --bg: #111214;
  --surface: #191b1e;
  --surface-2: #22252a;
  --surface-hover: #2b2f36;
  --line: #2e3239;
  --line-strong: #454b55;
  --nav-bg: rgba(17, 18, 20, 0.86);
  --accent: #c7d2e0;
  --accent-hover: #dfe7f1;
  --accent-soft: rgba(199, 210, 224, 0.14);
  --accent-ring: rgba(199, 210, 224, 0.28);
  --spotlight: rgba(199, 210, 224, 0.09);
  --stage-bg: #15171a;
  --stage-surface: #1e2126;
  --stage-line: #323740;
}

/* Smooth Theme Crossfade (applied transiently on manual theme switch) */
:root.theme-transitioning,
:root.theme-transitioning *,
:root.theme-transitioning *::before,
:root.theme-transitioning *::after {
  transition: background-color 0.28s ease, border-color 0.28s ease, color 0.22s ease, box-shadow 0.28s ease !important;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

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

/* Subtle static tactile paper grain (0% idle CPU) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

:root[data-color="dark"] body::before {
  opacity: 0.032;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent);
}

@supports not selector(::-webkit-scrollbar) {
  .dialog-shell,
  .preview-pre,
  .select-menu-list,
  .field textarea {
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
  }
}

.dialog-shell::-webkit-scrollbar,
.preview-pre::-webkit-scrollbar,
.select-menu-list::-webkit-scrollbar,
.field textarea::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.dialog-shell::-webkit-scrollbar-track,
.preview-pre::-webkit-scrollbar-track,
.select-menu-list::-webkit-scrollbar-track,
.field textarea::-webkit-scrollbar-track {
  background: transparent;
}

.dialog-shell::-webkit-scrollbar-track {
  margin: 22px 0;
}

.dialog-shell::-webkit-scrollbar-button,
.preview-pre::-webkit-scrollbar-button,
.select-menu-list::-webkit-scrollbar-button,
.field textarea::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.dialog-shell::-webkit-scrollbar-thumb,
.preview-pre::-webkit-scrollbar-thumb,
.select-menu-list::-webkit-scrollbar-thumb,
.field textarea::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 999px;
}

.dialog-shell::-webkit-scrollbar-thumb:hover,
.preview-pre::-webkit-scrollbar-thumb:hover,
.select-menu-list::-webkit-scrollbar-thumb:hover,
.field textarea::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--ink) 32%, transparent);
}

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 120;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--btn-dark-bg);
  color: var(--btn-dark-ink);
  font-size: 14px;
  font-weight: 600;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 3.2vw, 36px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.text-accent {
  color: var(--accent);
}

.section {
  padding: clamp(68px, 8.5vw, 112px) 0;
  position: relative;
}

.section-header-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 24px 48px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.section-header-split h2,
.about-narrative h2,
.faq-lead h2,
.contact-left h2 {
  font-size: clamp(1.75rem, 3.1vw, 2.55rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section-aside {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  justify-self: end;
  max-width: 390px;
}

.section-caption {
  margin-top: 20px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.25s var(--ease);
}

.btn-lg {
  padding: 13px 26px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--btn-dark-bg);
  color: var(--btn-dark-ink);
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.45);
}

.btn-primary:hover {
  background: var(--btn-dark-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.5);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--ink-2);
  padding: 11px 16px;
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-arrow {
  width: 15px;
  height: 15px;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   HEADER & APPEARANCE STUDIO
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--nav-bg);
  backdrop-filter: saturate(1.45) blur(16px);
  -webkit-backdrop-filter: saturate(1.45) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px -20px rgba(24, 18, 12, 0.35);
}

.reading-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #f59e0b));
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
  z-index: 2;
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

/* Exact mathematical crop of the top orange geometric monogram in jiayuan-logo.png (1581x623) */
.brand-mark {
  width: 36px;
  height: 28px;
  position: relative;
  overflow: hidden;
  flex: none;
  border-radius: 6px;
}

.brand-mark img {
  position: absolute;
  width: 126px;
  max-width: none;
  height: auto;
  left: -41px;
  top: -1px;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-lockup strong {
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.brand-lockup span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
  line-height: 1;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 12px;
}

.desktop-nav a {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.desktop-nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.tool-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.2s var(--ease);
}

.tool-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface-2);
}

.tool-btn[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.tool-btn svg {
  width: 18px;
  height: 18px;
}

.active-swatch-dot {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  border: 1.5px solid var(--surface);
}

.mode-trigger .icon-sun,
.mode-trigger .icon-moon {
  position: absolute;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

:root[data-color="light"] .mode-trigger .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

:root[data-color="light"] .mode-trigger .icon-moon {
  opacity: 0;
  transform: rotate(-45deg) scale(0.6);
}

:root[data-color="dark"] .mode-trigger .icon-sun {
  opacity: 0;
  transform: rotate(45deg) scale(0.6);
}

:root[data-color="dark"] .mode-trigger .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.header-cta {
  padding: 9px 18px;
  font-size: 14px;
}

.menu-toggle {
  display: none;
}

.menu-bars {
  width: 16px;
  height: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-bars i {
  display: block;
  height: 1.7px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}

.menu-toggle[aria-expanded="true"] .menu-bars i:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bars i:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Appearance Studio Popover */
.appearance-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: clamp(20px, 3.2vw, 36px);
  width: 344px;
  max-width: calc(100vw - 24px);
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  z-index: 80;
  animation: popoverIn 0.22s var(--ease);
}

@keyframes popoverIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-header h2 {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
}

.panel-header p {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.panel-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--surface-2);
  flex: none;
}

.panel-close:hover {
  color: var(--ink);
  background: var(--surface-hover);
}

.panel-close svg {
  width: 14px;
  height: 14px;
}

.panel-section {
  margin-bottom: 16px;
}

.panel-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.panel-label.inline {
  margin-bottom: 1px;
  color: var(--ink);
}

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

.palette-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.palette-chip:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.palette-chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.palette-chip[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.swatch-pair {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.swatch-pair i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.14);
}

.swatch-pair i:last-child {
  margin-left: -4px;
}

.mode-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.mode-segmented button {
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.mode-segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.panel-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.panel-footer-row small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

.motion-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.switch-track {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--line-strong);
  position: relative;
  transition: background-color 0.22s ease;
}

.switch-track i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s var(--ease);
}

.motion-switch[aria-pressed="true"] .switch-track {
  background: var(--accent);
}

.motion-switch[aria-pressed="true"] .switch-track i {
  transform: translateX(16px);
}

.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.mobile-nav-inner {
  display: grid;
  padding: 12px 20px 18px;
  gap: 4px;
}

.mobile-nav-inner a {
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.mobile-nav-inner a:hover {
  background: var(--surface-2);
  color: var(--accent);
}

/* ==========================================================================
   HERO STAGE — EDITORIAL SPLIT + INTERACTIVE SHOWCASE (ZERO COLLISIONS)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 4.4vh, 52px) 0 clamp(44px, 5.8vh, 70px);
}

.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.34;
  mask-image: radial-gradient(ellipse 78% 72% at 62% 38%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 62% 38%, #000 10%, transparent 80%);
}

.hero-contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contour-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.1;
  opacity: 0.16;
  stroke-dasharray: 2200;
  stroke-dashoffset: 2200;
  animation: drawContour 1.8s var(--ease) forwards;
}

.contour-path.p2 {
  opacity: 0.11;
  animation-delay: 0.2s;
}

.contour-path.p3 {
  opacity: 0.08;
  animation-delay: 0.4s;
}

@keyframes drawContour {
  to { stroke-dashoffset: 0; }
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(32px, 4.5vw, 60px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.hero-title {
  font-size: clamp(2.25rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.line-inner {
  display: inline-block;
  animation: lineRise 0.8s var(--ease) both;
  animation-delay: var(--delay, 0ms);
}

@keyframes lineRise {
  from { opacity: 0; transform: translateY(105%); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-enter {
  animation: fadeSlideUp 0.72s var(--ease) both;
  animation-delay: var(--delay, 0ms);
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.accent-emphasis {
  font-style: normal;
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.emphasis-arc {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  width: 100%;
  height: 11px;
  pointer-events: none;
}

.emphasis-arc path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.36;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: drawContour 0.9s var(--ease) 0.55s forwards;
}

.hero-lead {
  font-size: clamp(15px, 1.15vw, 16.5px);
  color: var(--ink-2);
  line-height: 1.78;
  max-width: 520px;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-handbook-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.hero-handbook-link svg {
  width: 15px;
  height: 15px;
}

.hero-handbook-link:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.proof-item strong {
  display: block;
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.proof-item span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

.hero-proof-source {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--muted);
}

/* Hero Right Column: Straight Architectural Studio Frame + Clean Dock Below */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
  perspective: 1100px;
}

.stage-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform;
}

.frame-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.frame-dots {
  display: inline-flex;
  gap: 5px;
}

.frame-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

.frame-dots i:first-child {
  background: var(--accent);
}

.frame-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.frame-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.frame-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eb610d;
}

.frame-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

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

.frame-motto {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.frame-note {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}

/* Hero Live Case Switcher Dock */
.hero-case-dock {
  display: flex;
  align-items: stretch;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-md);
}

.dock-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 4px 4px;
  border-radius: 12px;
  text-align: left;
  transition: background-color 0.2s ease;
}

.dock-main:hover {
  background: var(--surface-2);
}

.dock-thumb {
  width: 58px;
  height: 52px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
}

.dock-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dock-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dock-kicker {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
}

.dock-kicker em {
  font-style: normal;
  font-family: var(--font-mono);
}

.dock-meta strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-meta small {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-go {
  color: var(--muted);
  font-size: 16px;
  transition: transform 0.22s var(--ease), color 0.22s ease;
}

.dock-main:hover .dock-go {
  transform: translateX(3px);
  color: var(--accent);
}

.dock-controls {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--line);
  padding-left: 8px;
}

.dock-nav-btn {
  width: 30px;
  flex: 1;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  background: var(--surface-2);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dock-nav-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.dock-nav-btn svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   PARTNER BRAND WALL (14 VERIFIED SLIDE 11 BRANDS)
   ========================================================================== */
.brand-wall-section {
  padding: clamp(44px, 5.5vw, 68px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.brand-wall-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
  margin-bottom: 26px;
}

.wall-title-group h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-pills span {
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

.brand-plaque-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.brand-plaque {
  height: 72px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--plaque-bg);
  border: 1px solid var(--plaque-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s var(--ease);
}

.brand-plaque:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.brand-plaque img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: scale(var(--logo-scale, 1));
}

.brand-plaque-labeled {
  gap: 7px;
}

.brand-plaque-labeled img {
  max-height: 28px;
}

.brand-plaque-labeled span {
  font-size: 14.5px;
  font-weight: 700;
  color: #6f2b22;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   01 ABOUT: ASYMMETRIC MAGAZINE SPREAD
   ========================================================================== */
.about-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}

.lead-paragraph {
  margin-top: 22px;
  font-size: clamp(16px, 1.25vw, 17.5px);
  line-height: 1.78;
  color: var(--ink);
}

.body-paragraph {
  margin-top: 14px;
  color: var(--ink-2);
  line-height: 1.8;
}

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

.lifecycle-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.lifecycle-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.lifecycle-row h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.lifecycle-row p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.68;
}

.about-showcase {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.studio-figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.studio-photo-wrap {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--surface-2);
}

.studio-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.studio-figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.positioning-ledger {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 6px 20px;
}

.positioning-ledger > div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.positioning-ledger > div:last-child {
  border-bottom: 0;
}

.positioning-ledger dt {
  font-weight: 700;
  color: var(--accent);
}

.positioning-ledger dd {
  color: var(--ink-2);
}

/* ==========================================================================
   02 CORE ADVANTAGES + DARK-CONTRAST INTERACTIVE CREATOR PYRAMID
   ========================================================================== */
.creators-section {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, -999px) var(--my, -999px), var(--spotlight), transparent 65%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.spotlight-card:hover::after {
  opacity: 1;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: clamp(32px, 4.5vw, 48px);
}

.advantage-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.28s var(--ease), border-color 0.25s ease, box-shadow 0.28s var(--ease);
}

.advantage-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.adv-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.adv-icon svg {
  width: 21px;
  height: 21px;
}

.adv-index {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.7;
}

.advantage-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 4px;
}

.advantage-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
  flex: 1;
}

.adv-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
}

/* Dark-Contrast Creator Pyramid Showcase */
.pyramid-studio {
  background: var(--stage-bg);
  color: var(--stage-ink);
  border: 1px solid var(--stage-line);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-lg);
}

.pyramid-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 20px 40px;
  align-items: end;
  margin-bottom: 32px;
}

.pyramid-header .eyebrow {
  color: var(--stage-accent);
}

.pyramid-header h3 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.pyramid-sub {
  font-size: 14.5px;
  color: var(--stage-muted);
  line-height: 1.72;
}

.pyramid-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 3.6vw, 42px);
  align-items: center;
}

.pyramid-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pyramid-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--stage-surface);
  border: 1px solid var(--stage-line);
  color: var(--stage-ink);
  text-align: center;
  transition: transform 0.28s var(--ease), border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.28s var(--ease);
}

.pyramid-tier.tier-head { width: 66%; }
.pyramid-tier.tier-mid  { width: 84%; }
.pyramid-tier.tier-tail { width: 100%; }

.pyramid-tier:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.pyramid-tier.active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 26%, var(--stage-surface)), var(--stage-surface));
  border-color: color-mix(in srgb, var(--accent) 82%, #ffffff);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}

.tier-bar-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tier-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--stage-muted);
}

.pyramid-tier.active .tier-badge {
  background: var(--accent);
  color: var(--on-accent);
}

.pyramid-tier strong {
  font-size: 17px;
  font-weight: 700;
}

.tier-stats {
  font-size: 13px;
  color: var(--stage-muted);
}

.pyramid-inspector {
  background: var(--stage-surface);
  border: 1px solid var(--stage-line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.8vw, 30px);
}

.inspector-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.inspector-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--stage-accent);
}

.inspector-grade {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--stage-ink);
}

.inspector-headline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.inspector-headline h4 {
  font-size: 24px;
  font-weight: 800;
}

.inspector-fans {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--stage-muted);
}

.inspector-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--stage-accent-soft);
  margin-bottom: 14px;
}

.inspector-summary {
  font-size: 14.5px;
  color: var(--stage-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.inspector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.inspector-tags span {
  font-size: 12.5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--stage-ink);
}

.inspector-pair {
  font-size: 13.5px;
  color: var(--stage-muted);
  padding-top: 14px;
  border-top: 1px solid var(--stage-line);
  margin-bottom: 16px;
}

.inspector-case-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--stage-ink);
  font-size: 13.5px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.22s var(--ease);
}

.inspector-case-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: translateX(2px);
}

.pyramid-footnote {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--stage-line);
  font-size: 12px;
  color: var(--stage-muted);
}

/* ==========================================================================
   03 BRAND CASES — 2+3 BALANCED BENTO GALLERY + SLIDING FILTER PILL
   ========================================================================== */
.cases-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 28px;
}

.filter-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  position: relative;
}

.filter-slider {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.32s var(--ease), width 0.32s var(--ease);
  pointer-events: none;
  z-index: 0;
}

.filter-tab {
  position: relative;
  z-index: 1;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.filter-tab em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-left: 3px;
}

.filter-tab.active {
  color: var(--ink);
  font-weight: 700;
}

.filter-tab.active em {
  color: var(--accent);
}

.filter-status {
  font-size: 13.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* 6-Column Balanced Bento Math: Row 1 = 3+3, Row 2 = 2+2+2 */
.case-bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.case-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.25s ease, box-shadow 0.3s var(--ease);
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.case-flagship {
  grid-column: span 3;
}

.case-standard {
  grid-column: span 2;
}

/* Single-card filtered expansion */
.case-bento[data-visible-count="1"] .case-card:not([hidden]) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.case-bento[data-visible-count="1"] .case-card:not([hidden]) .case-stage {
  height: 100%;
  min-height: 320px;
}

.case-stage {
  position: relative;
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.case-flagship .case-stage {
  height: 312px;
}

.case-standard .case-stage {
  height: 256px;
}

.case-stage.tone-warm    { background: #f8efea; }
.case-stage.tone-cool    { background: #edf3f8; }
.case-stage.tone-sand    { background: #f7f1e8; }
.case-stage.tone-crimson { background: #f8ecec; }
.case-stage.tone-amber   { background: #f9f3e5; }

:root[data-color="dark"] .case-stage.tone-warm    { background: #26201c; }
:root[data-color="dark"] .case-stage.tone-cool    { background: #1c222a; }
:root[data-color="dark"] .case-stage.tone-sand    { background: #25211b; }
:root[data-color="dark"] .case-stage.tone-crimson { background: #271e1e; }
:root[data-color="dark"] .case-stage.tone-amber   { background: #272219; }

.case-pill {
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1c1916;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex: none;
}

.case-img-mat {
  width: 100%;
  flex: 1;
  min-height: 0;
  border-radius: 14px;
  background: #ffffff;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -12px rgba(24, 18, 12, 0.16);
  overflow: hidden;
}

.case-img-mat.is-cutout {
  background: radial-gradient(circle at 50% 54%, rgba(255, 255, 255, 0.94), rgba(247, 241, 232, 0.72));
  box-shadow: none;
}

:root[data-color="dark"] .case-img-mat.is-cutout {
  background: radial-gradient(circle at 50% 54%, rgba(255, 244, 234, 0.14), rgba(37, 33, 27, 0));
}

.case-img-mat img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.42s var(--ease);
}

.case-card:hover .case-img-mat img {
  transform: scale(1.03);
}

.case-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

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

.case-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 3px;
}

.case-head h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.28;
}

.case-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.case-kpi {
  text-align: right;
  flex: none;
}

.case-kpi strong {
  display: block;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.case-kpi small {
  font-size: 0.56em;
  font-weight: 700;
  margin-left: 1px;
}

.case-kpi span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
}

.case-excerpt {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
}

.case-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.case-chips span {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.case-actions-row {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.case-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.2s ease;
}

.case-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.22s var(--ease);
}

.case-btn:hover {
  color: var(--accent);
}

.case-btn:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   04 PARTNERSHIP MODELS + INTERACTIVE DIAGNOSTIC WORKBENCH
   ========================================================================== */
.partnership-section {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.plan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(26px, 3.2vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}

.plan-card.plan-featured {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow-md);
}

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.plan-badge.primary {
  background: var(--accent);
  color: var(--on-accent);
}

.plan-badge.subtle {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.plan-fit {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.plan-card h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
}

.plan-card h3 span {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.78em;
}

.plan-desc {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.75;
}

.plan-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.plan-metrics strong {
  display: block;
  font-size: clamp(1.65rem, 2.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.plan-metrics strong.metric-text {
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  padding-top: 4px;
}

.plan-metrics small {
  font-size: 0.56em;
  font-weight: 700;
  margin-left: 2px;
  color: var(--accent);
}

.plan-metrics span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 5px;
}

.plan-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.plan-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--ink-2);
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

/* Interactive Diagnostic Workbench */
.diagnostic-workbench {
  margin-top: clamp(36px, 5vw, 56px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(26px, 3.6vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  box-shadow: var(--shadow-md);
}

.diagnostic-left h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.diagnostic-intro {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.diag-group {
  margin-bottom: 18px;
}

.diag-group:last-child {
  margin-bottom: 0;
}

.diag-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 9px;
}

.diag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.diag-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.diag-chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.diag-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  box-shadow: 0 6px 16px -8px var(--accent-ring);
}

.diagnostic-right {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.8vw, 30px);
}

.diag-result-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.diag-result-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
}

.diag-selected-tag {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

.diagnostic-right h4 {
  font-size: 18.5px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 10px;
}

.diag-summary {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.72;
  margin-bottom: 18px;
}

.diag-specs {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.diag-specs > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  font-size: 13.5px;
}

.diag-specs dt {
  font-weight: 700;
  color: var(--ink);
}

.diag-specs dd {
  color: var(--ink-2);
}

.diag-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.diag-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

/* ==========================================================================
   05 FIVE-STEP STANDARD PROCESS RAIL + HANDBOOK STRIP
   ========================================================================== */
.process-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.rail-track {
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--line);
  z-index: 0;
  border-radius: 2px;
  overflow: hidden;
}

.rail-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}

.process-node {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.25s var(--ease), border-color 0.22s ease, box-shadow 0.25s var(--ease);
}

.process-node:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.process-node.active {
  border-color: var(--accent);
  box-shadow: 0 12px 26px -14px var(--accent-ring), 0 0 0 1px var(--accent);
}

.node-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.process-node.active .node-num,
.process-node.is-past .node-num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.process-node strong {
  font-size: 16px;
  font-weight: 700;
}

.process-node > span:last-child {
  font-size: 13px;
  color: var(--muted);
}

.process-detail-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.8vw, 30px);
  box-shadow: var(--shadow-sm);
}

.detail-step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.detail-step-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.detail-step-head h3 {
  font-size: 17.5px;
  font-weight: 700;
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 36px;
}

.detail-columns span {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 5px;
}

.detail-columns p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.72;
}

.handbook-banner {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.handbook-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.handbook-info h3 {
  font-size: 17.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.handbook-chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.handbook-chapters span {
  font-size: 12.5px;
  color: var(--ink-2);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}

/* ==========================================================================
   06 FAQ ACCORDION
   ========================================================================== */
.faq-section {
  border-top: 1px solid var(--line);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4.5vw, 60px);
  align-items: start;
}

.faq-lead p:last-child {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
  max-width: 360px;
}

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

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

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.2s ease;
}

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

.faq-list summary:hover {
  color: var(--accent);
}

.faq-plus {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  position: relative;
  flex: none;
  transition: background-color 0.22s ease, border-color 0.22s ease;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease);
}

.faq-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-list details[open] .faq-plus {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.faq-list details[open] .faq-plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  padding: 0 4px 20px;
}

.faq-answer p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.8;
}

/* ==========================================================================
   07 EXECUTIVE CONTACT CARD
   ========================================================================== */
.contact-section {
  padding-top: clamp(32px, 4vw, 56px);
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4.2vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(28px, 4.5vw, 56px);
  box-shadow: var(--shadow-lg);
}

.contact-lead {
  margin-top: 16px;
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.78;
  max-width: 520px;
}

.prep-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.prep-grid span {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 5px;
}

.prep-grid p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.contact-cta-row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-disclosure {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.contact-panel {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 6px;
}

.panel-company-head h3 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

.panel-company-head p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.row-info span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

.row-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

a.row-value:hover {
  color: var(--accent);
}

.mini-action-btn {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.mini-action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.qr-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
  transition: border-color 0.22s ease, transform 0.22s var(--ease), box-shadow 0.22s ease;
}

.qr-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Pure white quiet zone guarantees instant scan reliability even in Dark Mode */
.qr-quiet-zone {
  width: 92px;
  height: 112px;
  border-radius: 10px;
  background: #ffffff;
  padding: 5px;
  border: 1px solid #e6e2dc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
}

.qr-quiet-zone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-card-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qr-card-copy strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.qr-card-copy small {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.qr-zoom-hint {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
}

/* ==========================================================================
   FOOTER & MOBILE STICKY DOCK
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 36px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.footer-brand-col p {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  font-size: 12.5px;
  color: var(--muted);
}

.footer-note-btn {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-note-btn:hover {
  color: var(--accent);
}

.mobile-dock {
  display: none;
}

/* ==========================================================================
   SHARED MODAL DIALOGS (CASE DOSSIER / QR LIGHTBOX / LIVE-PREVIEW BRIEF)
   ========================================================================== */
.atelier-dialog {
  width: min(860px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: visible;
}

.atelier-dialog::backdrop {
  background: rgba(14, 12, 10, 0.62);
  backdrop-filter: blur(6px);
}

.atelier-dialog[open] {
  animation: dialogIn 0.24s var(--ease);
}

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dialog-shell {
  position: relative;
  max-height: calc(100dvh - 34px);
  border-radius: calc(var(--radius-xl) - 1px);
  overflow-y: auto;
  padding: clamp(22px, 3.2vw, 34px);
}

.dialog-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dialog-close:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.dialog-close svg {
  width: 15px;
  height: 15px;
}

/* Case Dossier Modal */
.dossier-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: start;
}

.dossier-visual {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.dossier-visual img {
  max-height: 360px;
  width: auto;
  object-fit: contain;
}

.dossier-title {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
}

.dossier-desc {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 18px;
}

.dossier-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

@media (min-width: 681px) {
  .dossier-metrics:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dossier-metrics:has(> :nth-child(3):last-child) .dossier-metric {
    padding: 11px 10px;
  }
  .dossier-metrics:has(> :nth-child(3):last-child) .dossier-metric strong {
    font-size: 14.5px;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }
}

.dossier-metric {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.dossier-metric strong {
  display: block;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.dossier-metric span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.dossier-rhythm {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.dossier-rhythm > div {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.dossier-rhythm strong {
  display: block;
  font-size: 13px;
  color: var(--accent);
}

.dossier-rhythm span {
  display: block;
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 2px;
}

.dossier-highlights {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}

.dossier-highlights li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.dossier-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

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

.dossier-pager {
  display: inline-flex;
  gap: 8px;
}

.dossier-disclaimer {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}

/* Brief Composer Modal (Split Live Preview) */
.brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 24px;
  margin-top: 18px;
}

.brief-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input {
  min-height: 44px;
}

.field textarea {
  resize: none;
  min-height: 94px;
  line-height: 1.65;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.72;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
  background: var(--surface);
}

/* Custom Editorial Select Dropdown (Replaces OS Native Select) */
.atelier-select {
  position: relative;
}

.select-trigger {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.select-trigger:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.select-trigger:focus-visible,
.select-trigger[aria-expanded="true"] {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.select-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-caret {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  transition: transform 0.22s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.select-caret svg {
  width: 14px;
  height: 14px;
}

.select-trigger:hover .select-caret {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.select-trigger[aria-expanded="true"] .select-caret {
  transform: rotate(180deg);
  background: var(--accent-soft);
  color: var(--accent);
}

.select-popover {
  position: absolute;
  z-index: 40;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 52px -14px rgba(24, 18, 12, 0.24), 0 6px 18px -4px rgba(24, 18, 12, 0.09);
  padding: 6px;
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top center;
  transition: opacity 0.18s var(--ease), transform 0.2s var(--ease);
  pointer-events: none;
}

:root[data-color="dark"] .select-popover {
  box-shadow: 0 26px 56px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.select-popover[data-placement="top"] {
  transform: translateY(6px) scale(0.985);
  transform-origin: bottom center;
}

.select-popover.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.select-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.select-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 368px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.select-option {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 7.5px 11px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.select-option:hover,
.select-option.is-active {
  background: var(--surface-2);
  color: var(--ink);
}

.select-option[aria-selected="true"] {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 24%, transparent);
  color: var(--accent);
  font-weight: 700;
}

.select-opt-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.select-opt-label {
  line-height: 1.38;
}

.select-opt-hint {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}

.select-option[aria-selected="true"] .select-opt-hint {
  color: color-mix(in srgb, var(--accent) 76%, var(--ink));
}

.select-opt-check {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: transparent;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.16s var(--ease), transform 0.18s var(--ease), background-color 0.16s var(--ease), color 0.16s var(--ease);
}

.select-opt-check svg {
  width: 11px;
  height: 11px;
}

.select-option[aria-selected="true"] .select-opt-check {
  background: var(--accent);
  color: var(--on-accent);
  opacity: 1;
  transform: scale(1);
}

.brief-preview-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}

.preview-head-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.preview-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.preview-badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.preview-pre {
  margin: 0;
  flex: 1;
  min-height: 268px;
  max-height: 410px;
  overflow-y: auto;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 12.8px;
  line-height: 1.66;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink-2);
}

.brief-actions {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 10px;
}

@media (max-width: 480px) {
  .brief-actions {
    grid-template-columns: 1fr;
  }
}

.brief-notice {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.6;
}

/* QR Lightbox Modal */
.qr-modal-box {
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.qr-modal-frame {
  background: #ffffff;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.qr-modal-frame img {
  width: min(300px, 72vw);
  height: auto;
  border-radius: 8px;
}

.qr-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Disclaimer Modal */
.disclaimer-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.disclaimer-item {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.disclaimer-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.disclaimer-item p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.7;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 120;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--btn-dark-bg);
  color: var(--btn-dark-ink);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 32px);
  text-align: center;
  animation: toastIn 0.24s var(--ease);
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Scroll Reveal (one-shot, zero layout shift) */
.reveal.reveal-pending {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s var(--ease) var(--reveal-delay, 0ms), transform 0.65s var(--ease) var(--reveal-delay, 0ms);
}

/* ==========================================================================
   REDUCED MOTION & MANUAL MOTION OFF
   ========================================================================== */
:root[data-motion="off"] *,
:root[data-motion="off"] *::before,
:root[data-motion="off"] *::after {
  animation: none !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

:root[data-motion="off"] .contour-path,
:root[data-motion="off"] .emphasis-arc path {
  stroke-dashoffset: 0 !important;
}

:root[data-motion="off"] .reveal.reveal-pending {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .contour-path,
  .emphasis-arc path {
    stroke-dashoffset: 0 !important;
  }
  .reveal.reveal-pending {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (1080px / 900px / 680px / 360px)
   ========================================================================== */
@media (max-width: 1080px) {
  .brand-plaque-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .advantage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .process-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .rail-track {
    display: none;
  }
}

@media (max-width: 920px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .hero-layout,
  .about-spread,
  .section-header-split,
  .pyramid-header,
  .pyramid-workbench,
  .plans-grid,
  .diagnostic-workbench,
  .faq-layout,
  .contact-card,
  .dossier-grid,
  .brief-grid,
  .case-bento[data-visible-count="1"] .case-card:not([hidden]) {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-aside {
    justify-self: start;
  }
  .pyramid-tier.tier-head,
  .pyramid-tier.tier-mid,
  .pyramid-tier.tier-tail {
    width: 100%;
  }
  .case-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .case-flagship,
  .case-standard {
    grid-column: span 1;
  }
  .brand-plaque-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 76px;
  }
  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .proof-item strong {
    font-size: 1.35rem;
  }
  .brand-plaque-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .advantage-grid,
  .case-bento,
  .process-rail,
  .detail-columns,
  .prep-grid,
  .field-row-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .filter-tabs {
    border-radius: 16px;
    width: 100%;
  }
  .filter-slider {
    display: none;
  }
  .filter-tab.active {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
  }
  .frame-tag {
    display: none;
  }
  .qr-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .mobile-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 55;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: var(--nav-bg);
    backdrop-filter: saturate(1.4) blur(16px);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-lg);
  }
  .mobile-dock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 8px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
  }
  .mobile-dock-btn svg {
    width: 15px;
    height: 15px;
    flex: none;
  }
  .mobile-dock-btn.primary {
    background: var(--btn-dark-bg);
    color: var(--btn-dark-ink);
  }
  .toast {
    bottom: 86px;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 14px;
  }
  .hero-proof {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .brand-lockup span {
    display: none;
  }
  .mobile-dock-btn {
    font-size: 12px;
    gap: 4px;
  }
}
