/* ==========================================================================
   三支铅笔官网 2.0 (V4 · Impeccable Distilled Edition)
   Principles:
   - Strictly 2 surfaces: Clean Warm White (#FAFAF8 / #FFFFFF) + Grounded Deep Ink (#111110)
   - Brand Orange (#E04800) ONLY on Logo Tip + 1 Primary CTA per page
   - Zero kickers/eyebrows above headings, zero decorative numbers, zero <table> clutter
   - Calm, steady card rhythm; 50% shorter copy; WCAG 2.2 AA/AAA
   ========================================================================== */

:root {
  --bg: #FAFAF8;
  --bg-tint: #F3F2EE;
  --surface: #FFFFFF;
  --dark: #111110;
  --dark-card: #1A1A18;
  --ink: #161614;
  --ink-2: #52514C;
  --ink-3: #6E6C66;
  --ink-light: #F6F5F0;
  --ink-light-2: #A8A69E;
  --line: #E6E4DD;
  --line-strong: #CECCC3;
  --line-dark: #292926;
  --orange: #E04800;
  --orange-hover: #C23D00;

  --font-sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1180px;
  --measure: 38rem;
  --header-h: 68px;
  --radius: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

::selection {
  background: rgba(224, 72, 0, 0.16);
  color: var(--ink);
}

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

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

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

.hero-dark :focus-visible,
.site-footer :focus-visible {
  outline-color: #FFFFFF;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--dark);
  color: #FFFFFF;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
}

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

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

/* Containers & Sections */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.prose {
  max-width: var(--measure);
}

.section {
  padding: 76px 0;
}

.section--compact {
  padding: 52px 0;
}

.section--white {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--tint {
  background: var(--bg-tint);
}

/* Signature Brand Orange Band (White Text, Crisp Contrast) */
.section--orange {
  background: var(--orange);
  color: #FFFFFF;
}

.section--orange h2,
.section--orange h3 {
  color: #FFFFFF;
}

.section--orange .t-body {
  color: rgba(255, 255, 255, 0.9);
}

.orange-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.orange-card h3 {
  font-size: 1.15rem;
  color: #FFFFFF;
}

.orange-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.9);
}

/* Typography (Clean, Direct, Zero Eyebrows) */
h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.t-hero {
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  line-height: 1.18;
  font-weight: 600;
}

.t-page {
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  line-height: 1.24;
  font-weight: 600;
}

.t-section {
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
  line-height: 1.3;
  font-weight: 600;
}

.t-lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--ink-2);
  max-width: var(--measure);
}

.t-body {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.72;
  color: var(--ink-2);
}

.t-meta {
  font-size: 0.86rem;
  color: var(--ink-3);
  line-height: 1.55;
}

.t-num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.nowrap {
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 0.94rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--orange);
  color: #FFFFFF;
  border-color: var(--orange);
}

.btn--primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
}

.btn--ink {
  background: var(--dark);
  color: #FFFFFF;
  border-color: var(--dark);
}

.btn--ink:hover {
  background: #2C2C28;
  border-color: #2C2C28;
}

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

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

.btn--ghost-light {
  background: transparent;
  color: var(--ink-light);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn--ghost-light:hover {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.btn--sm {
  min-height: 38px;
  padding: 7px 16px;
  font-size: 0.88rem;
}

.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 0.18s var(--ease);
}

.link-inline:hover {
  border-bottom-color: var(--ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

/* Optional Top Announcement */
.top-banner {
  display: none;
  background: var(--dark);
  color: var(--ink-light);
  font-size: 0.86rem;
  text-align: center;
  padding: 9px 16px;
}

.top-banner.is-visible {
  display: block;
}

.top-banner a {
  text-decoration: underline;
  margin-left: 8px;
}

/* Consistent White Header Site-Wide */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link img {
  height: 26px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 8px 13px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.18s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 0;
  height: 2px;
  background: var(--ink);
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: 6px;
  align-items: center;
  justify-content: center;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 88;
  background: var(--surface);
  padding: 16px 24px 80px;
  overflow-y: auto;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 12px 2px;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.mobile-nav-link.is-active {
  color: var(--orange);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-3);
  margin-bottom: 16px;
}

.breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Grounded Dark Homepage Hero (Steady Authority — Familiar & Dignified) */
.hero-dark {
  background: var(--dark);
  color: var(--ink-light);
  padding: 56px 0 0;
}

.hero-dark h1 {
  color: var(--ink-light);
}

.hero-dark .t-lead {
  color: var(--ink-light-2);
}

.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: end;
}

.hero-copy {
  padding-bottom: 64px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 36px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}

.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink-light);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.hero-stat span {
  font-size: 0.83rem;
  color: var(--ink-light-2);
}

.hero-portrait {
  position: relative;
  margin: 0;
  background: #ECEBE6;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  max-width: 420px;
  justify-self: end;
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 4.35;
  object-fit: cover;
  object-position: center top;
  mix-blend-mode: multiply;
}

.hero-portrait-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 5px 12px;
  background: rgba(17, 17, 16, 0.78);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* Page Head & Section Head */
.page-head {
  padding: 40px 0 28px;
}

.page-head--tight {
  padding: 24px 0 18px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 32px;
}

/* Unified Clean Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

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

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

/* Clean Unified Cards (Border OR Tint, Never Heavy Shadows) */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
}

.card--featured {
  border-color: var(--ink);
}

.service-title {
  font-size: 1.38rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.card-price {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.course-bundle {
  margin-top: 24px;
  background: var(--dark);
  color: var(--ink-light);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px 36px;
}

.course-bundle h3 {
  color: var(--ink-light);
  font-size: 1.38rem;
  margin-bottom: 8px;
}

.course-bundle p {
  margin: 0;
  max-width: 44rem;
  color: var(--ink-light-2);
  font-size: 0.95rem;
  line-height: 1.72;
}

.course-bundle-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.course-bundle-price strong {
  font-size: 1.7rem;
  font-weight: 600;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

.course-bundle-price del {
  font-size: 0.95rem;
  color: var(--ink-light-2);
}

.card-list {
  margin: 4px 0 10px;
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.7;
}

.card-list li + li {
  margin-top: 3px;
}

/* Case Cards (Unified Clean 2-Col Rhythm, Zero Clutter) */
.case-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

.case-card:hover {
  border-color: var(--ink);
}

.case-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-tint);
  overflow: hidden;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.case-media--contain {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.case-media--contain img {
  object-fit: contain;
}

.case-card:hover .case-media img {
  transform: scale(1.02);
}

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

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

.case-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.case-result {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  margin: 4px 0 0;
}

/* Clean Before -> After Comparison Cards (Replaces Dense Tables!) */
.compare-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compare-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compare-before {
  font-size: 0.88rem;
  color: var(--ink-3);
  text-decoration: line-through;
}

.compare-after {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.55;
}

/* Clean Chapter List (Replaces TOC Table!) */
.chapter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.chapter-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

/* Report Banner Card (Calm, Crisp, Zero Loudness) */
.report-card {
  display: grid;
  grid-template-columns: 3.4fr 8.6fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.report-cover {
  background: var(--bg-tint);
  padding: 10px;
  border-radius: 4px;
}

.report-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* Uniform Bordered Client Logo Grid (Solves Visual Weight Imbalance Across Aspect Ratios) */
.client-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
}

.client-cell {
  height: 92px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.client-cell img {
  max-height: 44px;
  max-width: 136px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.78;
  transition: opacity 0.2s var(--ease);
}

.client-cell:hover img {
  opacity: 1;
}

/* Pure Logo Brand Matrix on About Page (Full Client Showcase, Pure Logos Only) */
.brand-matrix {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.brand-matrix-item {
  height: 104px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease);
}

.brand-matrix-item:hover {
  border-color: var(--line-strong);
}

.brand-matrix-item img {
  max-height: 46px;
  max-width: 142px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.84;
  transition: opacity 0.2s var(--ease);
}

.brand-matrix-item:hover img {
  opacity: 1;
}

/* Case Detail Story */
.story-hero-img {
  margin: 24px 0 0;
}

.story-hero-img img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  background: var(--bg-tint);
  border-radius: var(--radius);
}

.story-hero-img figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.story-block {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: 20px 44px;
}

.story-block h2 {
  font-size: 1.15rem;
}

.story-body p {
  margin: 0 0 14px;
  max-width: var(--measure);
  color: var(--ink-2);
}

.story-body p:last-child {
  margin-bottom: 0;
}

/* Photos & Videos */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.photo-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
}

.photo-btn img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.photo-btn--portrait img {
  aspect-ratio: 3 / 4;
}

.photo-cap {
  display: block;
  padding: 10px 12px;
  font-size: 0.84rem;
  color: var(--ink-2);
}

/* Redesigned Media Page: Profile + Account Data + Crisp Typographic Viral Works */
.media-profile {
  display: grid;
  grid-template-columns: 3.4fr 8.6fr;
  gap: 36px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.media-avatar {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ECEBE6;
}

.media-avatar img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  object-position: center top;
  mix-blend-mode: multiply;
}

.media-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 24px;
}

.media-platform-tag {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--bg-tint);
  padding: 4px 12px;
  border-radius: 4px;
}

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

.media-stat-item strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.media-stat-item span {
  font-size: 0.85rem;
  color: var(--ink-3);
}

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

.media-work-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.media-work-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--bg-tint);
  overflow: hidden;
}

.media-work-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-work-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.media-work-views {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.media-work-views span {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 5px;
}

/* Collapsible Disclosures & FAQ */
.disclosure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 22px;
}

.disclosure summary {
  list-style: none;
  padding: 18px 0;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.disclosure summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--ink-3);
}

.disclosure[open] summary::after {
  content: "−";
}

.disclosure-body {
  padding: 0 0 22px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 22px;
}

.faq-item summary {
  list-style: none;
  padding: 18px 0;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--ink-3);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 0 18px;
  font-size: 0.94rem;
  color: var(--ink-2);
  line-height: 1.72;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: var(--ink-light-2);
  padding: 56px 0 44px;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 5fr 3fr 4fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-title {
  color: var(--ink-light);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px 18px;
}

.footer-nav a:hover,
.footer-bottom a:hover {
  color: var(--ink-light);
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 0.83rem;
}

/* Mobile-Only Single Task Bar */
.mobile-action-bar {
  display: none;
}

/* Serene QR-First Conversion Modal (Progressive Disclosure Backup Form!) */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(17, 17, 16, 0.62);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 360px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-close {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
}

.modal-close:hover {
  border-color: var(--ink);
}

.modal-content {
  padding: 28px 24px 30px;
  text-align: center;
}

.modal-qr-img {
  width: 224px;
  height: 224px;
  object-fit: contain;
  margin: 0 auto 14px;
  background: var(--surface);
  border-radius: 4px;
}

.modal-qr-caption {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(17, 17, 16, 0.94);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 12px;
  color: #EAE8E1;
  font-size: 0.9rem;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 1.5rem;
  border-radius: 6px;
}

/* Maintenance Mode Overlay */
.maintenance-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
}

.maintenance-overlay.is-active {
  display: flex;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .report-card,
  .media-profile,
  .story-block,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .media-avatar {
    max-width: 280px;
  }

  .hero-copy {
    padding-bottom: 8px;
  }

  .hero-portrait {
    justify-self: start;
    max-width: 340px;
  }

  .report-card .prose {
    order: -1;
  }

  .report-cover {
    max-width: 260px;
  }

  .grid-3,
  .grid-4,
  .media-works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-grid,
  .brand-matrix {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 52px 0;
  }

  .section--compact {
    padding: 36px 0;
  }

  .hero-dark {
    padding: 32px 0 0;
  }

  .page-head {
    padding: 24px 0 18px;
  }

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

  .menu-toggle {
    display: inline-flex;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .compare-list,
  .chapter-list,
  .photo-grid,
  .media-works-grid,
  .media-stats-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .report-card,
  .media-profile,
  .course-bundle {
    padding: 22px;
    gap: 22px;
  }

  .client-grid,
  .brand-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-cell,
  .brand-matrix-item {
    height: 78px;
    padding: 12px 16px;
  }

  .client-cell img,
  .brand-matrix-item img {
    max-height: 36px;
    max-width: 116px;
  }

  .mobile-action-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 75;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-action-bar .btn {
    width: 100%;
  }

  body.has-mobile-bar .site-footer {
    padding-bottom: 96px;
  }
}
