/* ============================
   PATENT FOLIO — THEME CSS
   ============================ */

:root {
  --bg: #F5F0E6;
  --bg-warm: #EDE6D8;
  --bg-dark: #1A1713;
  --fg: #1A1713;
  --fg-light: #6B5D47;
  --fg-muted: #9A8A70;
  --accent: #8B6914;
  --accent-warm: #C8923A;
  --border: #D4C9B0;
  --card-bg: #FAF7F0;
  --print-bg: #F0E8D5;
  --frame-dark: #2A2118;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- HERO ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 50%;
  width: 1px; height: 100%;
  background: var(--border);
}

.hero-inner {
  padding: 80px 60px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  display: inline-block;
  border: 1px solid var(--accent);
  padding: 4px 12px;
  border-radius: 2px;
}

.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(48px, 5.5vw, 88px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 18px;
  font-weight: 300;
  color: var(--fg-light);
  max-width: 420px;
  line-height: 1.65;
  margin-bottom: 52px;
}

.hero-prints {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.print-card {
  background: var(--print-bg);
  border: 1px solid var(--border);
  padding: 14px;
  position: relative;
  box-shadow: 2px 3px 12px rgba(90,74,32,0.12);
}

.print-card--m { transform: rotate(-2deg); }
.print-card--g { transform: rotate(1.5deg); }
.print-card--s { transform: rotate(-1deg); }

.print-inner { position: relative; }

.print-rule {
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
  margin-bottom: 10px;
}
.print-rule.bottom { margin-top: 10px; margin-bottom: 0; }

.print-drawing { padding: 8px 0; }
.print-drawing svg { display: block; width: 100%; height: auto; }

.print-meta { text-align: center; }
.print-patent {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--fg-light);
  margin-bottom: 2px;
}
.print-date {
  font-family: 'DM Sans', sans-serif;
  font-size: 8px;
  color: var(--fg-muted);
}

/* ---- HERO VISUAL ---- */
.hero-visual {
  padding: 80px 80px 80px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.hero-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.frame-matte {
  background: var(--bg-warm);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow:
    0 2px 4px rgba(90,74,32,0.08),
    0 8px 24px rgba(90,74,32,0.10),
    inset 0 0 0 4px var(--bg-warm);
}

.frame-print {
  background: var(--print-bg);
  border: 1px solid var(--border);
  position: relative;
}

.frame-print::before {
  content: 'U.S. PATENT NO. 3,081,602';
  position: absolute;
  bottom: 8px;
  left: 0; right: 0;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
}

.frame-print svg { display: block; width: 100%; height: auto; }

/* ---- SECTION SHARED ---- */
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 64px;
}

/* ---- THE COLLECTION ---- */
.collection {
  background: var(--bg-warm);
  padding: 100px 80px;
  border-top: 1px solid var(--border);
}

.collection-inner { max-width: 1200px; margin: 0 auto; }

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 64px;
  margin-bottom: 60px;
}

.collection-item {}

.item-visual {
  background: var(--print-bg);
  border: 1px solid var(--border);
  padding: 28px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.item-visual svg { width: 120px; height: auto; }

.item-label {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}

.item-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--fg-light);
  line-height: 1.6;
}

.collection-note {
  font-size: 13px;
  color: var(--fg-muted);
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

/* ---- HOW IT WORKS ---- */
.how-it-works {
  background: var(--bg-dark);
  padding: 100px 80px;
}

.hiw-inner { max-width: 1200px; margin: 0 auto; }

.how-it-works .section-label { color: var(--accent-warm); }
.how-it-works .section-headline { color: var(--bg); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 80px;
}

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--accent-warm);
  opacity: 0.5;
  margin-bottom: 20px;
  line-height: 1;
}

.step-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--bg);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 14px;
  font-weight: 300;
  color: rgba(245,240,230,0.6);
  line-height: 1.65;
}

.hiw-stat {
  border-top: 1px solid rgba(245,240,230,0.1);
  padding-top: 60px;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 900;
  color: var(--accent-warm);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  font-weight: 400;
  color: rgba(245,240,230,0.5);
  text-align: center;
}

.stat-divider {
  width: 1px;
  height: 64px;
  background: rgba(245,240,230,0.15);
}

/* ---- THE MODEL ---- */
.the-model {
  background: var(--bg);
  padding: 100px 80px;
  border-top: 1px solid var(--border);
}

.model-inner { max-width: 1200px; margin: 0 auto; }

.model-quote {
  max-width: 700px;
  margin: 0 auto 80px;
  text-align: center;
}

.model-quote blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 36px);
  font-style: italic;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.4;
  margin-bottom: 16px;
}

.model-quote cite {
  font-size: 13px;
  color: var(--fg-muted);
  font-style: normal;
}

.model-pitch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.pitch-block {}

.pitch-block h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 14px;
}

.pitch-block p {
  font-size: 15px;
  font-weight: 300;
  color: var(--fg-light);
  line-height: 1.7;
}

/* ---- CLOSING ---- */
.closing {
  background: var(--bg-warm);
  padding: 100px 80px;
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

.closing-frame {
  background: var(--print-bg);
  border: 1px solid var(--border);
  padding: 36px 24px;
  box-shadow: 4px 5px 20px rgba(90,74,32,0.12);
}

.closing-frame svg { display: block; width: 100%; height: auto; }

.closing-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 24px;
}

.closing-text p {
  font-size: 16px;
  font-weight: 300;
  color: var(--fg-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.closing-tagline {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--accent) !important;
  margin-top: 32px;
  font-weight: 700;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--fg);
  padding: 48px 80px;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--accent-warm);
  width: 48px;
  height: 48px;
  border: 2px solid var(--accent-warm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--bg);
}

.footer-tagline {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-style: italic;
  color: rgba(245,240,230,0.4);
  margin-bottom: 20px;
}

.footer-meta {
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: rgba(245,240,230,0.3);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero::before { display: none; }
  .hero-inner { padding: 60px 32px; }
  .hero-visual { padding: 0 32px 60px; }
  
  .hero-prints { gap: 12px; }
  .print-card--m, .print-card--g, .print-card--s { transform: rotate(0deg); }
  
  .collection { padding: 64px 32px; }
  .collection-grid { grid-template-columns: 1fr; }
  
  .steps { grid-template-columns: 1fr 1fr; }
  .model-pitch { grid-template-columns: 1fr; }
  
  .how-it-works { padding: 64px 32px; }
  .the-model { padding: 64px 32px; }
  .closing { padding: 64px 32px; }
  .closing-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer { padding: 40px 32px; }
  
  .stat-row { flex-direction: column; gap: 32px; }
  .stat-divider { display: none; }
  .stat-val { font-size: 48px; }
}

@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .collection-grid { gap: 32px; }
  .hero-headline { font-size: 42px; }
}