/* ===== LOGO EVOLUTION ARCHIVE — GLOBAL STYLES ===== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --border: #e2ddd6;
  --text-primary: #1a1814;
  --text-secondary: #6b6560;
  --text-muted: #9e9890;
  --accent: #2a2520;
  --brand-tag-bg: #eeebe5;
  --timeline-line: #d5d0c8;
  --card-shadow-hover: 0 4px 8px rgba(0,0,0,0.08), 0 16px 40px rgba(0,0,0,0.08);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* HEADER */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-logo span { font-weight: 400; font-style: italic; color: var(--text-secondary); }
.site-nav { display: flex; gap: 28px; list-style: none; }
.site-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--text-primary); }

/* PAGE HERO */
.page-hero {
  border-bottom: 1px solid var(--border);
  padding: 72px 32px 64px;
  max-width: 1200px;
  margin: 0 auto;
}
.page-hero .eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 640px;
}
.page-hero h1 em { font-style: italic; color: var(--text-secondary); }
.page-hero .sub {
  margin-top: 20px;
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  font-weight: 300;
  line-height: 1.7;
}

/* BRAND GRID */
.brand-grid-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px;
}
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px;
}
.brand-card {
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.brand-card:hover {
  box-shadow: var(--card-shadow-hover);
  z-index: 1;
  transform: translateY(-2px);
}
.brand-card .logo-thumb {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.brand-card .logo-thumb svg { height: 52px; width: auto; max-width: 130px; }
.brand-card .logo-thumb img {
  max-height: 72px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.brand-card .logo-thumb .thumb-fallback { display: none; }
.brand-card .brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand-card .brand-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}
.brand-card .brand-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}
.brand-card .arrow {
  font-size: 16px;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.brand-card:hover .arrow { transform: translateX(4px); }

/* BRAND PAGE HERO */
.brand-hero {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.brand-hero .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}
.breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--text-primary); }
.brand-hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.brand-hero .founded {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { padding: 20px 0; border-top: 1px solid var(--border); }
.stat .value {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat .label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
  font-weight: 500;
}

/* TIMELINE */
.timeline-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px;
}
.timeline-section .section-label { margin-bottom: 48px; }
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--timeline-line);
}
.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  padding: 0 0 64px 40px;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--timeline-line);
}
.timeline-item.featured::before {
  background: var(--text-primary);
  box-shadow: 0 0 0 1px var(--text-primary);
}
.timeline-year { padding-top: 6px; }
.timeline-year .year {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.timeline-year .era-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--brand-tag-bg);
  padding: 3px 8px;
  border-radius: 2px;
}
.timeline-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
}
.logo-display {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 28px;
  border: 1px solid var(--border);
}
.logo-display svg { max-width: 140px; max-height: 90px; width: 100%; height: auto; }
.logo-display img { max-width: 180px; max-height: 120px; width: 100%; height: auto; object-fit: contain; cursor: zoom-in; }

/* ── Lightbox ─────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-inner {
  position: relative;
  max-width: min(1200px, 92vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  /* respect each entry's bg — set via data-bg */
  border: 1px solid rgba(255,255,255,0.06);
}
.lightbox-caption {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  text-align: center;
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s;
}
.lightbox-close:hover { color: #fff; }
.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 16px 20px;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  user-select: none;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev:hover,
.lightbox-next:hover { color: #fff; }
.img-missing {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  width: 100%;
  height: 80px;
  border: 1px dashed var(--border);
  border-radius: 2px;
}
.timeline-details h2 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.timeline-details .desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.facts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.facts-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.facts-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-size: 11px;
  top: 2px;
}
.effectiveness {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.effectiveness .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.rating-bar {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.rating-bar .fill { height: 100%; background: var(--text-primary); }
.rating-value {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

/* PATTERN PAGES */
.pattern-hero {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.pattern-hero .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px 56px;
}
.pattern-hero .pattern-number {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.pattern-hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 700px;
}
.pattern-hero .lead {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 620px;
  font-weight: 300;
}

.pattern-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px;
}

/* Principle pull-quote */
.principle {
  border-left: 3px solid var(--text-primary);
  padding: 20px 28px;
  margin: 40px 0;
  background: var(--surface);
}
.principle p {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--text-primary);
}
.principle cite {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Essay prose */
.essay {
  max-width: 680px;
}
.essay p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.essay h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 40px 0 16px;
  color: var(--text-primary);
}

/* Comparison grid */
.comparison-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.comparison-section .section-label { margin-bottom: 36px; }

/* Full-width editorial comparison rows */
.comparison-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.comparison-row {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.comparison-row .row-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 24px 36px 20px;
  border-bottom: 1px solid var(--border);
}
.comparison-row .row-brand {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}
.comparison-row .row-label {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Logo strip — the big visual */
.logos-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 36px;
  gap: 0;
  background: var(--bg);
}
.logo-cell-big {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
}
.logo-cell-big img {
  max-height: 180px;
  max-width: 260px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.logo-cell-big .img-missing {
  height: 140px;
  width: 180px;
  font-size: 11px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  color: var(--text-muted);
}
.logo-cell-big .year-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.arrow-big {
  font-size: 28px;
  color: var(--border);
  padding: 0 8px;
  flex-shrink: 0;
  line-height: 1;
  padding-bottom: 32px; /* align with logo center, offset for year-tag */
}

/* Row footer: lesson + outcome side by side */
.row-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  padding: 28px 36px;
  border-top: 1px solid var(--border);
  align-items: start;
}
.row-lesson {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}
.row-outcome {
  text-align: right;
  min-width: 220px;
  flex-shrink: 0;
}
.row-outcome .outcome-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}
.row-outcome .outcome-value {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Patterns index grid */
.patterns-index {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px;
}
.pattern-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2px;
}
.pattern-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px 32px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.pattern-card:hover { box-shadow: var(--card-shadow-hover); z-index: 1; transform: translateY(-2px); }
.pattern-card .p-number {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pattern-card .p-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.pattern-card .p-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.pattern-card .p-brands {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.pattern-card .arrow { font-size: 16px; color: var(--text-muted); transition: transform 0.2s; }
.pattern-card:hover .arrow { transform: translateX(4px); }

@media (max-width: 768px) {
  .pattern-hero .inner { padding: 40px 20px; }
  .pattern-body { padding: 40px 20px; }
  .logos-strip { flex-wrap: wrap; padding: 32px 20px; }
  .row-footer { grid-template-columns: 1fr; gap: 16px; }
  .row-outcome { text-align: left; min-width: 0; }
}

/* CONTEMPORARY QUOTES */
.quotes-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 20px;
}
.quote-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 20px 22px;
}
.quote-card blockquote {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}
.quote-card blockquote::before { content: '\201C'; }
.quote-card blockquote::after  { content: '\201D'; }
.quote-card .quote-attribution {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1.5;
}
.quote-card .quote-attribution strong {
  color: var(--text-secondary);
  font-weight: 500;
}
.quote-card.quote-positive { border-left: 3px solid #4a7c59; }
.quote-card.quote-negative { border-left: 3px solid #b85c3a; }
.quote-card.quote-neutral  { border-left: 3px solid var(--border); }
@media (max-width: 640px) {
  .quotes-block { grid-template-columns: 1fr; }
}

/* BRAND NEW LINK */
.brandnew-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 2px;
  margin-top: 12px;
  letter-spacing: 0.02em;
  transition: color 0.15s, border-color 0.15s;
}
.brandnew-link:hover { color: var(--text-primary); border-color: var(--text-secondary); }
.brandnew-link::before { content: '↗'; font-size: 10px; }

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 32px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-footer .copy { font-size: 12px; color: var(--text-muted); }
.site-footer .tagline {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .page-hero { padding: 48px 20px 40px; }
  .brand-hero .inner { grid-template-columns: 1fr; padding: 40px 20px; }
  .timeline-item { grid-template-columns: 1fr; gap: 16px; padding-left: 28px; }
  .timeline-content { grid-template-columns: 1fr; }
  .brand-stats { grid-template-columns: repeat(2, 1fr); }
  .site-header .inner, .timeline-section, .brand-grid-section, .site-footer { padding-left: 20px; padding-right: 20px; }
}
