/* ─── Variables ─── */
:root {
  --bg: #F5F1EB;
  --bg-warm: #EDE8DF;
  --fg: #1A1714;
  --fg-muted: #6B6560;
  --accent: #A8502A;
  --accent-light: #C97A5A;
  --accent-surface: #F0E8DF;
  --border: #D6CEC4;
  --border-dark: #B8B0A4;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;
  --space-2xl: 10rem;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Typography ─── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; }

/* ─── Manifesto ─── */
.manifesto {
  padding: var(--space-2xl) var(--space-lg);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.manifesto__grid {
  display: grid;
  grid-template-columns: 160px 1fr 320px;
  gap: var(--space-lg);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.manifesto__label {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-top: 0.5rem;
}

.label-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.manifesto__headline {
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: var(--fg);
}

.manifesto__line { display: block; }
.manifesto__line--one { color: var(--fg); }
.manifesto__line--two { color: var(--fg); padding-left: 2rem; }
.manifesto__line--three { padding-left: 5rem; }
.manifesto__line--three em { font-style: italic; color: var(--accent); }

.manifesto__sub {
  margin-top: var(--space-md);
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 360px;
  line-height: 1.7;
  font-weight: 300;
}

/* Grid art */
.manifesto__grid-art {
  height: 380px;
  position: relative;
}

.grid-overlay {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  height: 100%;
  gap: 2px;
}

.grid-cell {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.grid-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-surface);
  transform: scale(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}

.grid-cell--2::after { background: transparent; }
.grid-cell--4::after { background: transparent; }
.grid-cell--6::after { background: transparent; }
.grid-cell--8::after { background: transparent; }

/* ─── Proof ─── */
.proof {
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
}

.proof__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.proof__heading {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.proof__body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.proof__stat-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-left: var(--space-lg);
  border-left: 1px solid var(--border);
  justify-content: center;
  height: 100%;
}

.proof__stat { display: flex; flex-direction: column; gap: 0.25rem; }

.proof__num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}

.proof__desc {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── Principles ─── */
.principles {
  padding: var(--space-xl) var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.principles__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  max-width: 1280px;
  margin: 0 auto var(--space-lg);
}

.principles__title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 500;
}

.principles__rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.principles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 1280px;
  margin: 0 auto;
}

.principle { position: relative; padding-top: var(--space-md); }

.principle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.principle__number {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  margin-bottom: var(--space-sm);
}

.principle__heading {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.principle__body {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ─── Showcase ─── */
.showcase {
  padding: var(--space-xl) var(--space-lg);
  background: var(--fg);
  color: var(--bg);
}

.showcase__inner { max-width: 1280px; margin: 0 auto; }

.showcase__label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
  margin-bottom: var(--space-md);
}

.showcase__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.showcase__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-sm);
}

.showcase__card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.showcase__card:hover { border-color: rgba(255,255,255,0.25); }

.showcase__card--primary {
  border-color: var(--accent);
  background: rgba(168, 80, 42, 0.08);
}

.showcase__card-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  display: block;
  margin-bottom: var(--space-sm);
}

.showcase__card-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
  color: var(--bg);
}

.showcase__card-desc {
  font-size: 0.85rem;
  color: rgba(245,241,235,0.6);
  line-height: 1.7;
}

.showcase__card-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

/* ─── Closing ─── */
.closing {
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg);
}

.closing__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.closing__rule {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto var(--space-lg);
}

.closing__quote {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
  color: var(--fg);
  margin-bottom: var(--space-md);
}

.closing__sub {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
}

.closing__accent {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin: var(--space-lg) auto 0;
}

/* ─── Footer ─── */
.footer {
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__brand { display: flex; flex-direction: column; gap: 0.25rem; }

.footer__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.footer__tagline {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-style: italic;
}

.footer__meta {
  font-size: 0.75rem;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .manifesto__grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .manifesto__grid-art { display: none; }
  .manifesto__line--two { padding-left: 1rem; }
  .manifesto__line--three { padding-left: 2.5rem; }

  .proof__inner { grid-template-columns: 1fr; }
  .proof__stat-row { flex-direction: row; border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: var(--space-md); }
  .proof__stat { flex: 1; }

  .principles__grid { grid-template-columns: 1fr; gap: var(--space-md); }

  .showcase__grid { grid-template-columns: 1fr; }
  .showcase__card--primary { min-height: 220px; }

  .footer__inner { flex-direction: column; gap: var(--space-sm); text-align: center; }
}

@media (max-width: 480px) {
  .manifesto { padding: var(--space-xl) var(--space-sm); }
  .manifesto__headline { font-size: clamp(3rem, 14vw, 5rem); }
  .proof, .principles, .showcase, .closing { padding: var(--space-lg) var(--space-sm); }
  .proof__stat-row { flex-direction: column; }
  .closing__quote { font-size: clamp(1.6rem, 6vw, 2.5rem); }
}