:root {
  --bg-page: #f3f2ee;
  --bg-card: #ffffff;
  --bg-placeholder: #ede9e0;
  --bg-hover: #faf9f6;
  --text-primary: #1a1814;
  --text-secondary: #7a7570;
  --text-muted: #b0aa9e;
  --accent-navy: #162555;
  --accent-green: #059669;
  --border: #e0ddd4;
  --border-hover: #c8c4b8;
  --border-active: #162555;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  font: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 15px 44px;
  background: rgba(243, 242, 238, 0.96);
  border-bottom: 0.5px solid var(--border);
  backdrop-filter: blur(8px);
}

.brand {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand span {
  color: var(--accent-navy);
}

.nav-badge {
  margin-right: auto;
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 3px 11px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--text-secondary);
  font-size: 14px;
}

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

.nav-print {
  border: 0;
  border-radius: 3px;
  padding: 8px 16px;
  background: var(--accent-navy);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}

.hero {
  padding: 68px 48px 52px;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 18px;
  letter-spacing: 0.2em;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(600px, 0.98fr) minmax(360px, 430px);
  gap: clamp(48px, 6vw, 108px);
  align-items: start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.hero h1,
.hub-hero h1,
.placeholder-main h1 {
  margin: 0;
  color: var(--text-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5.8vw, 72px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: 0;
}

.hero h1 em {
  color: var(--accent-navy);
  font-style: italic;
}

.hero h1 em.secondary {
  font-size: 0.88em;
}

.hero-accent {
  text-align: left;
}

.hero-accent span,
.hero-accent small {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-accent strong {
  display: block;
  color: var(--accent-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
}

.hero-accent small {
  color: var(--text-secondary);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.hero-rail {
  display: flex;
  flex-direction: column;
  gap: 34px;
  width: 100%;
  padding-top: 42px;
}

.hero-brief {
  border-top: 0.5px solid var(--border);
  padding-top: 24px;
}

.hero-brief p {
  max-width: 390px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
}

.hero-brief-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 26px;
  border-top: 0.5px solid var(--border);
}

.hero-brief-grid span {
  display: block;
  border-bottom: 0.5px solid var(--border);
  padding: 13px 0;
  color: var(--accent-navy);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.hero-copy {
  max-width: 680px;
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.75;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row.compact {
  gap: 4px;
}

.tag {
  display: inline-block;
  border-radius: 3px;
  padding: 5px 9px;
  font-size: 11px;
}

.tag-python { background: #eef2ff; color: #3730a3; }
.tag-llm { background: #f0fdf4; color: #166534; }
.tag-tg { background: #eff6ff; color: #1e40af; }
.tag-gws { background: #fef3c7; color: #92400e; }
.tag-script { background: #fdf4ff; color: #7e22ce; }
.tag-data { background: #f1f5f9; color: #475569; }
.tag-parse { background: #fff7ed; color: #9a3412; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0.5px solid var(--border-hover);
  border-radius: 4px;
  padding: 12px 20px;
  background: transparent;
  color: #444;
  cursor: pointer;
  font-size: 15px;
}

.button-primary {
  border-color: var(--accent-navy);
  background: var(--accent-navy);
  color: #fff;
}

.button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  background: var(--bg-card);
}

.metric {
  padding: 22px 24px;
  border-right: 0.5px solid var(--border);
}

.metric:last-child {
  border-right: 0;
}

.metric span,
.metric small {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  color: var(--text-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
}

.metric .navy {
  color: var(--accent-navy);
  letter-spacing: 0;
  text-transform: none;
}

.metric .green,
.green {
  color: var(--accent-green);
}

.projects-section {
  padding: 48px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-hint,
.muted-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

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

.project-card {
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  background: var(--bg-card);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.project-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.project-card.active {
  border: 1.5px solid var(--border-active);
}

.project-card.featured {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
}

.project-card.horizontal {
  grid-column: span 2;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.arrow {
  color: var(--border-hover);
  font-size: 16px;
}

.project-card h2 {
  margin: 10px 0 7px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
}

.project-card.featured h2 {
  font-size: 26px;
  line-height: 1.25;
}

.project-card p {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.project-card.featured p {
  font-size: 17px;
  line-height: 1.68;
}

.card-results {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 0.5px solid var(--bg-placeholder);
  padding-top: 14px;
}

.card-results strong {
  display: block;
  color: var(--accent-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.card-results span,
.result-hint {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
}

.result-hint {
  border-top: 0.5px solid var(--bg-placeholder);
  padding-top: 8px;
}

.purple {
  color: #7e22ce;
}

.detail-panel {
  display: none;
  border-top: 0.5px solid var(--border);
  padding: 48px;
  background: var(--bg-card);
}

.detail-panel.open {
  display: block;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.detail-head h2 {
  max-width: 700px;
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
}

.close-button {
  min-height: auto;
  border-radius: 3px;
  padding: 9px 16px;
  color: var(--text-secondary);
  font-size: 13px;
  white-space: nowrap;
}

.detail-photos {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  background: var(--bg-placeholder);
}

.ph-label {
  color: #b8b2a8;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ph-hint {
  color: #c8c3ba;
  font-size: 11px;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 22px;
}

.problem-grid p:last-child {
  margin: 8px 0 0;
  color: #444;
  font-size: 17px;
  line-height: 1.75;
}

.flow-row,
.pattern-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.flow-row {
  margin: 10px 0 20px;
}

.flow-node {
  border: 0.5px solid var(--border);
  border-radius: 3px;
  padding: 7px 12px;
  background: #faf9f7;
  color: #555;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.flow-arrow {
  color: #c8c3bc;
  font-size: 16px;
  padding: 0 2px;
}

.flow-node.purple { border-color: #e9d5ff; color: #7e22ce; }
.flow-node.green { border-color: #bbf7d0; color: #166534; }
.flow-node.amber { border-color: #fed7aa; color: #9a3412; }
.flow-node.blue { border-color: #bfdbfe; color: #1e40af; }

.detail-results {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.result-card {
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 15px 18px;
  background: #faf9f6;
}

.result-number {
  color: var(--accent-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}

.result-label {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 12px;
}

.detail-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}

.detail-github,
.detail-github a {
  color: var(--accent-navy);
  font-size: 14px;
}

.architecture-section,
.stack-section,
.contact-section {
  border-top: 0.5px solid var(--border);
  padding: 44px 48px;
}

.architecture-section,
.contact-section {
  background: var(--bg-card);
}

.architecture-section .section-label,
.stack-section .section-label {
  margin-bottom: 16px;
}

.pattern-row {
  margin-top: 7px;
}

.stack-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-top: 10px;
}

.stack-row > span {
  min-width: 180px;
  color: var(--text-muted);
  font-size: 14px;
}

.stack-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
}

.contact-section p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 16px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.contact-links a {
  color: var(--accent-navy);
  font-size: 16px;
}

.hub-main,
.placeholder-main {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.hub-hero {
  padding: 84px 0 34px;
}

.hub-lead,
.placeholder-main p {
  max-width: 760px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.75;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-bottom: 48px;
}

.hub-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  background: var(--bg-card);
}

.hub-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.hub-card.primary {
  border-color: var(--accent-navy);
}

.card-kicker {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.hub-card h2 {
  margin: 16px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.15;
}

.hub-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.62;
}

.card-link {
  margin-top: 24px;
  color: var(--accent-navy);
  font-size: 15px;
}

.placeholder-main {
  padding: 84px 0;
}

@media (max-width: 768px) {
  .site-nav {
    padding: 14px 20px;
  }

  .nav-actions a {
    display: none;
  }

  .nav-badge {
    display: none;
  }

  .hero,
  .projects-section,
  .detail-panel,
  .architecture-section,
  .stack-section,
  .contact-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    padding-top: 54px;
    padding-bottom: 38px;
  }

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

  .hero h1 {
    font-size: 42px;
  }

  .hub-hero h1,
  .placeholder-main h1 {
    font-size: 42px;
  }

  .hero-copy,
  .hub-lead,
  .placeholder-main p {
    font-size: 17px;
    line-height: 1.68;
  }

  .hero-rail {
    display: none;
  }

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

  .metric {
    padding: 18px 16px;
  }

  .metric strong {
    font-size: 28px;
  }

  .metric:nth-child(3) {
    border-right: 0;
  }

  .bento-grid,
  .hub-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-card.featured,
  .project-card.horizontal {
    grid-column: span 2;
  }

  .project-card {
    padding: 24px;
  }

  .project-card.featured {
    min-height: 0;
  }

  .project-card h2 {
    font-size: 18px;
  }

  .project-card.featured h2 {
    font-size: 24px;
  }

  .project-card p,
  .project-card.featured p {
    font-size: 15px;
  }

  .project-card.horizontal,
  .problem-grid,
  .contact-section {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .detail-photos {
    grid-template-columns: 1fr !important;
  }

  .stack-row {
    flex-direction: column;
    gap: 5px;
  }

  .hub-card {
    min-height: 260px;
    padding: 24px;
  }

  .hub-card h2 {
    font-size: 28px;
  }

  .hub-card p {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .metrics-strip,
  .bento-grid,
  .hub-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured,
  .project-card.horizontal {
    grid-column: span 1;
  }

  .section-head,
  .detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    gap: 8px;
  }

  .brand {
    font-size: 16px;
  }

  .hero h1,
  .hub-hero h1,
  .placeholder-main h1 {
    font-size: 38px;
  }

  .metrics-strip {
    grid-template-columns: 1fr 1fr;
  }

  .metric:nth-child(3) {
    border-right: 0.5px solid var(--border);
  }

  .metric:nth-child(2n) {
    border-right: 0;
  }

  .detail-head h2 {
    font-size: 30px;
  }

  .problem-grid p:last-child {
    font-size: 16px;
  }
}

@media print {
  nav {
    position: static;
  }

  .project-card {
    border: 0.5px solid #ccc !important;
    cursor: default;
  }

  #detail-panel {
    display: block !important;
  }

  .photo-placeholder {
    border: 1px dashed #ccc;
  }

  button,
  .button,
  .cta-row,
  .nav-actions {
    display: none !important;
  }

  a[href] {
    color: inherit;
    text-decoration: none;
  }

  @page {
    margin: 20mm;
    size: A4;
  }
}

/* Wave 2: Premium Editorial AI Systems */
.ai-page {
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1.6;
}

.ai-container {
  width: min(1280px, calc(100% - 72px));
  margin: 0 auto;
}

.ai-nav .nav-actions {
  gap: 22px;
}

.ai-nav .nav-print {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.ai-hero {
  border-bottom: 0.5px solid var(--border);
  padding: 72px 0 64px;
  background: linear-gradient(180deg, #f8f7f3 0%, var(--bg-page) 100%);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: clamp(48px, 7vw, 124px);
  align-items: end;
}

.hero-copy-block h1 {
  max-width: 860px;
  margin: 0;
  color: var(--text-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 6.5vw, 92px);
  font-weight: 400;
  line-height: 0.98;
}

.hero-subtitle {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--accent-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.4vw, 52px);
  font-style: italic;
  line-height: 1.08;
}

.hero-description {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1.75;
}

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

.hero-proof {
  border-left: 0.5px solid var(--border);
  padding-left: 34px;
}

.hero-portrait-card {
  display: none;
  overflow: hidden;
  margin: 0 0 22px;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  background: #f7f6f2;
}

.hero-portrait-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(42vh, 430px);
  object-fit: contain;
  object-position: center;
  background: #f7f6f2;
}

.proof-label {
  margin: 0;
  color: var(--accent-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.15;
}

.proof-role {
  margin: 12px 0 28px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.hero-result-list {
  display: grid;
  gap: 0;
  border-top: 0.5px solid var(--border);
}

.hero-result-list div {
  border-bottom: 0.5px solid var(--border);
  padding: 18px 0;
}

.hero-result-list span,
.premium-result-card span,
.case-category {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-result-list strong {
  display: block;
  margin-top: 6px;
  color: var(--text-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
}

.proof-person {
  border-top: 0.5px solid var(--border);
  margin: 24px 0 0;
  padding-top: 16px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.ai-section {
  border-bottom: 0.5px solid var(--border);
  padding: 68px 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.ai-section h2 {
  margin: 10px 0 0;
  color: var(--text-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.5vw, 52px);
  font-weight: 400;
  line-height: 1.08;
}

.capability-grid,
.services-grid,
.architecture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.capability-grid article,
.services-grid article,
.architecture-grid article,
.premium-result-card,
.case-card-button,
.resume-card {
  border: 0.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
}

.capability-grid article,
.services-grid article,
.architecture-grid article {
  padding: 24px;
}

.capability-grid h3,
.services-grid h3,
.architecture-grid h3,
.case-detail-grid h3,
.case-outcomes h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 650;
}

.capability-grid p,
.services-grid p,
.architecture-grid p {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
}

.section-head.editorial {
  align-items: end;
  margin-bottom: 28px;
}

.section-head.editorial h2 {
  max-width: 820px;
}

.premium-results {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.premium-result-card {
  min-height: 220px;
  padding: 22px;
}

.premium-result-card strong {
  display: block;
  margin-top: 18px;
  color: var(--accent-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
}

.premium-result-card p {
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.premium-result-card small {
  display: block;
  margin-top: 18px;
  color: var(--accent-green);
  font-size: 12px;
  text-transform: uppercase;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

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

.case-card.featured-case {
  grid-column: 1 / -1;
}

.case-card:not(.featured-case) {
  grid-column: span 2;
}

.case-card-button {
  display: grid;
  width: 100%;
  min-height: 0;
  grid-template-rows: auto;
  gap: 22px;
  padding: 24px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.case-card:not(.featured-case) .case-card-button {
  height: 100%;
  min-height: 305px;
  align-content: start;
}

.featured-case .case-card-button {
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.64fr);
  grid-template-rows: auto;
  gap: 30px;
  align-items: center;
  min-height: 0;
  padding: 28px;
}

.featured-case .case-thumb {
  min-height: 0;
}

.featured-case .proof-image img {
  min-height: 290px;
  max-height: 360px;
}

.case-card-button:hover,
.case-card.active .case-card-button {
  border-color: var(--border-active);
  background: var(--bg-hover);
}

.case-card h3 {
  margin: 12px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.12;
}

.featured-case h3 {
  font-size: 42px;
}

.case-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.62;
}

.case-results {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.case-results li {
  border-top: 0.5px solid var(--border);
  padding-top: 8px;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.45;
}

.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 18px;
}

.case-stack span {
  border-radius: 3px;
  padding: 5px 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
}

.case-thumb {
  min-height: 180px;
}

.proof-image {
  overflow: hidden;
  margin: 0;
  border: 0.5px solid var(--border);
  border-radius: 7px;
  background: #f7f6f2;
}

.proof-image[data-lightbox-src] {
  cursor: zoom-in;
}

.proof-image[data-lightbox-src]:focus-visible {
  outline: 2px solid var(--accent-navy);
  outline-offset: 3px;
}

.proof-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  object-position: top left;
}

.proof-image figcaption {
  border-top: 0.5px solid var(--border);
  padding: 9px 11px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.proof-placeholder {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0.5px dashed var(--border-hover);
  border-radius: 7px;
  background: var(--bg-placeholder);
  color: var(--text-muted);
}

.proof-placeholder span {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proof-placeholder small {
  margin-top: 6px;
  font-size: 12px;
}

.case-detail {
  display: none;
  border-bottom: 0.5px solid var(--border);
  padding: 0 0 68px;
  background: var(--bg-card);
}

.case-detail.open {
  display: block;
}

.case-detail-card {
  padding-top: 58px;
}

.case-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
  margin-bottom: 28px;
}

.case-detail-head h2 {
  max-width: 900px;
  margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 4vw, 62px);
  font-weight: 400;
  line-height: 1.04;
}

.case-detail-head p {
  max-width: 860px;
  margin: 18px 0 0;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.7;
}

.proof-collage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 10px;
  margin-bottom: 28px;
}

.proof-collage .proof-image img,
.proof-collage .proof-placeholder {
  min-height: 360px;
}

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

.case-detail-grid section,
.case-outcomes {
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  background: var(--bg-page);
}

.case-detail-grid p,
.case-outcomes li {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

.case-outcomes ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.case-proof-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.case-video-section {
  margin-top: 28px;
}

.video-grid {
  display: grid;
  gap: 10px;
}

.proof-video {
  overflow: hidden;
  margin: 0;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  background: #111;
}

.proof-video video {
  display: block;
  width: 100%;
  max-height: 620px;
  background: #111;
}

.proof-video figcaption {
  border-top: 0.5px solid var(--border);
  padding: 12px 14px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
}

.case-channel-link {
  display: grid;
  gap: 5px;
  max-width: 760px;
  margin: -8px 0 28px;
  padding: 16px 18px;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  background: #faf9f6;
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.case-channel-link:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.case-channel-link span {
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-channel-link strong {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.case-channel-link em {
  color: var(--accent-navy);
  font-size: 13px;
  font-style: normal;
}

.system-modules {
  margin-top: 34px;
}

.case-section-head {
  display: grid;
  gap: 8px;
  max-width: 860px;
  margin-bottom: 18px;
}

.case-section-head h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

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

.module-card {
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  background: var(--bg-page);
}

.module-card h4 {
  margin: 0 0 14px;
  color: var(--accent-navy);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.module-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
}

.module-card li {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.technical-scope {
  margin-top: 18px;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  background: #faf9f6;
}

.technical-scope summary {
  cursor: pointer;
  padding: 18px 22px;
  color: var(--accent-navy);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.technical-scope ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 0;
  padding: 0 24px 22px 42px;
}

.technical-scope li {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  padding: 28px;
}

.image-lightbox.open {
  display: grid;
  place-items: center;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(26, 24, 20, 0.72);
  cursor: zoom-out;
}

.lightbox-frame {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(1180px, 94vw);
  max-height: 92vh;
  margin: 0;
  overflow: hidden;
  border: 0.5px solid rgba(255, 255, 255, 0.34);
  border-radius: 10px;
  background: var(--bg-card);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.lightbox-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: calc(92vh - 74px);
  object-fit: contain;
  background: #111;
}

.lightbox-frame figcaption {
  border-top: 0.5px solid var(--border);
  padding: 14px 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0.5px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(26, 24, 20, 0.72);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.case-detail-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-top: 0.5px solid var(--border);
  margin-top: 28px;
  padding-top: 18px;
}

.case-detail-footer p,
.case-detail-footer a {
  color: var(--text-secondary);
  font-size: 13px;
}

.architecture-premium h2,
.services-section h2 {
  max-width: 820px;
  margin-bottom: 28px;
}

.mini-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 18px;
}

.mini-flow span {
  border: 0.5px solid var(--border);
  border-radius: 3px;
  padding: 6px 9px;
  background: #faf9f7;
  color: var(--accent-navy);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.stack-columns {
  display: grid;
  gap: 0;
  border-top: 0.5px solid var(--border);
}

.stack-columns div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  border-bottom: 0.5px solid var(--border);
  padding: 18px 0;
}

.stack-columns span {
  color: var(--accent-navy);
  font-weight: 650;
}

.stack-columns p {
  margin: 0;
  color: var(--text-secondary);
}

.resume-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.65fr);
  gap: 42px;
  padding: 32px;
}

.resume-card h2 {
  margin-top: 8px;
}

.resume-card p,
.resume-card li,
.contact-premium p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.65;
}

.resume-card ul {
  margin: 0;
  padding-left: 20px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.42fr);
  gap: 48px;
  align-items: center;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.channel-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: min(100%, 560px);
  margin-top: 24px;
  padding: 14px 16px 14px 14px;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

.channel-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
  transform: translateY(-1px);
}

.channel-card img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  border: 0.5px solid var(--border);
  background: var(--bg-placeholder);
}

.channel-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.channel-label {
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.channel-copy strong {
  color: var(--text-primary);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.channel-copy span:last-child {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
}

.channel-arrow {
  align-self: start;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
}

.quiet-link {
  color: var(--text-secondary);
  font-size: 14px;
}

.pdf-export {
  display: none;
}

.pdf-mode {
  background: #fff;
}

/* Sales / Account / Events */
.sales-page .sales-hero {
  background: linear-gradient(180deg, #f8f7f3 0%, #f2f0ea 100%);
}

.sales-page .hero-copy-block h1 {
  max-width: 940px;
  font-size: clamp(52px, 5.7vw, 84px);
}

.sales-page .hero-subtitle {
  max-width: 820px;
  color: #7a4f1d;
}

.sales-page .button-primary,
.sales-page .nav-print {
  border-color: #7a4f1d;
  background: #7a4f1d;
}

.sales-page .proof-label,
.sales-page .premium-result-card strong,
.sales-page .case-stack span,
.sales-page .mini-flow span {
  color: #7a4f1d;
}

.sales-page .case-stack span,
.sales-page .mini-flow span {
  background: #fff7ed;
}

.sales-page .sales-results {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sales-process-section h2 {
  max-width: 880px;
  margin-bottom: 24px;
}

.sales-process {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 28px;
}

.sales-process span {
  border: 0.5px solid var(--border);
  border-radius: 3px;
  padding: 8px 11px;
  background: #faf9f7;
  color: #7a4f1d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.sales-feature-case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.5fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 12px;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 30px;
  background: var(--bg-card);
}

.sales-feature-case h3,
.sales-case-card h3,
.sales-column-list h3 {
  margin: 12px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.1;
}

.sales-feature-case p,
.sales-case-card p,
.sales-column-list p,
.sales-column-list li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.68;
}

.sales-proof-placeholder {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  border: 0.5px dashed var(--border-hover);
  border-radius: 8px;
  padding: 28px;
  background: var(--bg-placeholder);
}

.sales-proof-placeholder span {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sales-proof-placeholder figcaption {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.sales-g20-proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-content: stretch;
}

.sales-g20-proof figure {
  overflow: hidden;
  margin: 0;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  background: #f7f6f2;
}

.sales-g20-proof figure:first-child {
  grid-column: 1 / -1;
}

.sales-g20-proof img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: top left;
}

.sales-g20-proof figure:first-child img {
  height: 240px;
}

.sales-g20-proof figcaption {
  border-top: 0.5px solid var(--border);
  padding: 9px 11px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

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

.sales-case-card {
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 26px;
  background: var(--bg-card);
}

.sales-case-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0 0;
}

.sales-case-card dl div {
  border-top: 0.5px solid var(--border);
  padding-top: 10px;
}

.sales-case-card dt {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sales-case-card dd {
  margin: 4px 0 0;
  color: var(--text-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.1;
}

.sales-event-category {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.sales-media-category {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(360px, 1fr);
  gap: 12px;
}

.sales-event-main,
.sales-media-main,
.sales-event-mini {
  border: 0.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
}

.sales-event-main,
.sales-media-main {
  padding: 28px;
}

.sales-event-main h3,
.sales-media-main h3 {
  margin: 12px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 3.4vw, 50px);
  font-weight: 400;
  line-height: 1.08;
}

.sales-event-main p,
.sales-media-main p,
.sales-event-mini p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
}

.sales-process.compact {
  margin-top: 20px;
}

.sales-event-case-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sales-media-case-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.sales-event-mini {
  padding: 22px;
}

.sales-event-mini span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sales-event-mini strong {
  display: block;
  margin-top: 10px;
  color: var(--text-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.15;
}

.sales-event-mini p {
  margin: 12px 0 0;
  font-size: 14px;
}

.sales-media-board {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 12px;
}

.sales-video-primary,
.sales-video-mini,
.sales-sound-card {
  overflow: hidden;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
}

.sales-video-primary {
  display: grid;
  min-height: 0;
}

.sales-video-mini img,
.sales-sound-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sales-video-primary > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.sales-channel-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  margin-top: 24px;
  padding: 12px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.56);
  transition: border-color 0.14s ease, background 0.14s ease;
}

.sales-channel-card:hover,
.sales-channel-card:focus-visible {
  border-color: #7a4f1d;
  background: #fff;
  outline: 0;
}

.sales-channel-card img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}

.sales-channel-card span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sales-channel-card strong {
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.2;
}

.sales-channel-card small,
.sales-channel-card em,
.sales-channel-card i {
  color: var(--text-secondary);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.sales-channel-card i {
  color: #7a4f1d;
}

.sales-video-primary h3,
.sales-sound-card h3 {
  margin: 12px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.05;
}

.sales-video-primary p,
.sales-video-mini p,
.sales-sound-card p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
}

.sales-detail-preserve-images .proof-collage,
.sales-detail-preserve-images .case-proof-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sales-detail-preserve-images .proof-image {
  display: grid;
  grid-template-rows: minmax(0, auto) auto;
  background: #faf9f6;
}

.sales-detail-preserve-images .proof-image img,
.sales-detail-preserve-images .proof-collage .proof-image img {
  width: 100%;
  height: auto;
  max-height: 520px;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  background: #f7f6f2;
}

.sales-detail-preserve-images .proof-image.primary img {
  max-height: 560px;
}

.sales-compact-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 24px;
}

.sales-compact-gallery .proof-image {
  border-radius: 6px;
}

.sales-compact-gallery .proof-image img {
  width: 100%;
  height: 118px;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  background: #f7f6f2;
}

.sales-compact-gallery .proof-image figcaption {
  padding: 7px 9px;
  font-size: 10px;
  line-height: 1.25;
}

.sales-related-cases {
  margin-top: 28px;
}

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

.sales-related-card {
  overflow: hidden;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 0;
  background: var(--bg-card);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.sales-related-card:hover {
  border-color: #7a4f1d;
  background: var(--bg-hover);
}

.sales-related-card img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.sales-related-card span,
.sales-related-card strong {
  display: block;
  margin-left: 16px;
  margin-right: 16px;
}

.sales-related-card span {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sales-related-card strong {
  margin-top: 7px;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
}

.sales-video-cases {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding: 0 2px 10px;
}

.sales-video-mini {
  display: grid;
  grid-template-rows: 168px minmax(0, 1fr);
  flex: 0 0 min(330px, 78vw);
  min-height: 390px;
  scroll-snap-align: start;
}

.sales-video-mini img {
  min-height: 0;
  height: 168px;
}

.sales-video-mini div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 22px 24px;
}

.sales-video-mini span {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sales-video-mini strong {
  margin-top: 10px;
  color: var(--text-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.12;
}

.sales-video-mini p {
  margin: 12px 0 0;
  font-size: 14px;
}

.sales-sound-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
  min-height: 230px;
}

.proof-image[data-lightbox-src],
.sales-lightbox-figure,
.sales-lightbox-image {
  cursor: zoom-in;
}

.sales-link-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
}

.sales-channel-card.detail {
  grid-template-columns: 64px minmax(0, 1fr);
  margin-top: 0;
  padding: 14px;
  background: #faf9f6;
}

.sales-channel-card.detail img {
  width: 64px;
  height: 64px;
}

.sales-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sales-inline-links a,
.sales-subtle-link {
  width: fit-content;
  border: 0.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--text-secondary);
  font-size: 12px;
  text-decoration: none;
  background: #faf9f6;
}

.sales-subtle-link {
  opacity: 0.72;
}

.sales-inline-links a:hover,
.sales-subtle-link:hover {
  border-color: #7a4f1d;
  color: #7a4f1d;
}

.sales-sound-card > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.sales-column-list {
  display: grid;
  gap: 12px;
}

.sales-column-list article {
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 26px;
  background: var(--bg-card);
}

.sales-column-list ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 20px;
}

.automation-side-section .button {
  margin-top: 18px;
}

.automation-side-section {
  border-block: 0.5px solid rgba(45, 65, 95, 0.16);
  background:
    linear-gradient(135deg, rgba(45, 65, 95, 0.09), rgba(122, 79, 29, 0.035) 42%, rgba(255, 255, 255, 0) 76%),
    var(--bg-secondary);
}

.automation-side-section .section-label,
.automation-side-section h2 {
  color: #2c405f;
}

.sales-clickable {
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, transform 0.14s ease;
}

.sales-clickable:hover,
.sales-clickable:focus-visible,
.sales-clickable.active {
  border-color: #7a4f1d;
  background: var(--bg-hover);
  outline: 0;
}

.sales-clickable:hover {
  transform: translateY(-1px);
}

.sales-open-hint {
  margin: 18px 0 0;
  color: #7a4f1d !important;
  font-size: 13px !important;
  font-weight: 650;
}

.sales-case-detail {
  background: var(--bg-card);
}

.sales-case-detail .proof-image img {
  object-fit: cover;
}

.pdf-mode .site-nav,
.pdf-mode main > section:not(.pdf-export) {
  display: none !important;
}

.pdf-mode .pdf-export {
  display: block;
  background: #fff;
}

.pdf-page {
  width: min(100% - 56px, 1120px);
  margin: 0 auto;
  padding: 48px 0;
  color: var(--text-primary);
}

.pdf-cover,
.pdf-section,
.pdf-project {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.pdf-cover h1,
.pdf-section h2,
.pdf-project h3 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

.pdf-cover h1 {
  max-width: 880px;
  font-size: 58px;
  line-height: 1.03;
}

.pdf-cover p,
.pdf-section p,
.pdf-project p,
.pdf-project li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.pdf-contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin-top: 22px;
  color: var(--text-primary);
  font-size: 13px;
}

.pdf-results-grid,
.pdf-case-grid,
.pdf-proof-grid,
.pdf-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.pdf-results-grid article,
.pdf-case-block,
.pdf-proof-image,
.pdf-project-footer {
  border: 0.5px solid var(--border);
  border-radius: 8px;
  background: #fbfaf7;
}

.pdf-results-grid article,
.pdf-case-block {
  padding: 16px;
}

.pdf-results-grid span,
.pdf-results-grid small,
.pdf-case-block h4 {
  display: block;
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pdf-results-grid strong {
  display: block;
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.05;
}

.pdf-project {
  break-inside: avoid;
  page-break-inside: avoid;
}

.pdf-project-head h3 {
  max-width: 860px;
  font-size: 40px;
  line-height: 1.08;
}

.pdf-proof-image {
  overflow: hidden;
  margin: 0;
}

.pdf-proof-image img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  object-position: top left;
  background: #fff;
}

.pdf-proof-image figcaption {
  border-top: 0.5px solid var(--border);
  padding: 9px 11px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.pdf-project .system-modules,
.pdf-project .technical-scope {
  margin-top: 18px;
}

.pdf-project .technical-scope summary {
  cursor: default;
}

.pdf-project-footer {
  margin-top: 18px;
  padding: 16px;
}

.pdf-final {
  border-bottom: 0;
}

@media (min-width: 1021px) {
  .hero-portrait-card {
    display: block;
  }
}

@media (max-width: 1020px) {
  .premium-results,
  .case-proof-gallery,
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .case-card.featured-case {
    grid-column: 1 / -1;
  }

  .case-card:not(.featured-case) {
    grid-column: span 1;
  }

  .featured-case .case-card-button {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: 0;
  }

  .featured-case .case-thumb {
    min-height: 220px;
  }

  .featured-case .proof-image,
  .featured-case .proof-image img {
    min-height: 220px;
  }
}

@media (max-width: 768px) {
  .ai-container {
    width: min(100% - 40px, 1280px);
  }

  .ai-hero {
    padding: 54px 0 42px;
  }

  .hero-layout,
  .two-column,
  .proof-collage,
  .case-detail-grid,
  .resume-card,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy-block h1 {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 28px;
  }

  .hero-description {
    font-size: 17px;
  }

  .hero-proof {
    border-left: 0;
    border-top: 0.5px solid var(--border);
    padding: 24px 0 0;
  }

  .channel-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
  }

  .channel-card img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .channel-copy strong {
    font-size: 22px;
  }

  .channel-arrow {
    display: none;
  }

  .capability-grid,
  .services-grid,
  .architecture-grid,
  .premium-results,
  .case-grid,
  .case-proof-gallery,
  .case-outcomes ul {
    grid-template-columns: 1fr;
  }

  .case-card.featured-case {
    grid-column: span 1;
  }

  .case-card:not(.featured-case) {
    grid-column: span 1;
  }

  .case-card-button {
    min-height: 0;
  }

  .featured-case h3,
  .case-card h3 {
    font-size: 30px;
  }

  .case-detail-head {
    grid-template-columns: 1fr;
  }

  .proof-collage .proof-image img,
  .proof-collage .proof-placeholder {
    min-height: 240px;
  }

  .module-grid,
  .technical-scope ul {
    grid-template-columns: 1fr;
  }

  .image-lightbox {
    padding: 14px;
  }

  .lightbox-frame {
    width: 96vw;
    max-height: 88vh;
  }

  .lightbox-frame img {
    max-height: calc(88vh - 92px);
  }

  .stack-columns div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 1020px) {
  .sales-page .sales-results,
  .sales-case-grid,
  .sales-event-category,
  .sales-media-category {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-feature-case,
  .sales-event-category,
  .sales-media-category,
  .sales-media-board {
    grid-template-columns: 1fr;
  }

  .sales-video-primary {
    min-height: 0;
  }

  .sales-video-cases {
    width: min(100%, 100vw - 40px);
  }

  .sales-sound-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .sales-sound-card img {
    height: auto;
    max-height: none;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  .sales-page .hero-copy-block h1 {
    font-size: 42px;
  }

  .sales-page .sales-results,
  .sales-case-grid,
  .sales-event-case-list,
  .sales-media-case-list,
  .sales-case-card dl {
    grid-template-columns: 1fr;
  }

  .sales-feature-case,
  .sales-case-card,
  .sales-event-main,
  .sales-media-main,
  .sales-event-mini,
  .sales-column-list article {
    padding: 22px;
  }

  .sales-g20-proof {
    grid-template-columns: 1fr;
  }

  .sales-g20-proof figure:first-child {
    grid-column: auto;
  }

  .sales-g20-proof img,
  .sales-g20-proof figure:first-child img {
    height: auto;
    max-height: 260px;
  }

  .sales-video-mini {
    flex-basis: min(310px, 82vw);
  }

  .sales-video-mini img {
    min-height: 0;
    max-height: none;
  }

  .sales-sound-card > div {
    padding: 24px;
  }

  .sales-sound-card h3 {
    margin: 8px 0 14px;
    font-size: 42px;
    line-height: 1.02;
  }

  .sales-detail-preserve-images .proof-collage,
  .sales-detail-preserve-images .case-proof-gallery,
  .sales-related-grid {
    grid-template-columns: 1fr;
  }

  .sales-compact-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-feature-case h3,
  .sales-case-card h3,
  .sales-event-main h3,
  .sales-media-main h3,
  .sales-column-list h3 {
    font-size: 29px;
  }
}

@media print {
  .ai-nav,
  .hero-actions,
  .case-detail-head .button,
  .contact-list .button,
  .image-lightbox {
    display: none !important;
  }

  body {
    background: #fff !important;
  }

  body.pdf-mode .pdf-export {
    display: block !important;
  }

  body.pdf-mode main > section:not(.pdf-export) {
    display: none !important;
  }

  body:not(.pdf-mode) .pdf-export {
    display: none !important;
  }

  .pdf-page {
    width: 100%;
    padding: 0;
  }

  .pdf-cover,
  .pdf-section,
  .pdf-project {
    padding: 18px 0;
  }

  .pdf-cover h1 {
    font-size: 44px;
  }

  .pdf-section h2,
  .pdf-project-head h3 {
    font-size: 28px;
  }

  .pdf-results-grid,
  .pdf-case-grid,
  .pdf-proof-grid,
  .module-grid,
  .technical-scope ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdf-proof-image img {
    max-height: 220px;
  }

  .pdf-project,
  .module-card,
  .pdf-case-block,
  .pdf-proof-image,
  .technical-scope li {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  a[href] {
    color: inherit;
    text-decoration: none;
  }

  @page {
    margin: 12mm;
    size: A4;
  }
}
