/* ========================================
   RECLAIM | CHICAGO — Design System
   Palette: warm oak + forest green + cream
   Fonts: Zodiak (display) + Work Sans (body)
   ======================================== */

:root,
[data-theme='light'] {
  /* Surfaces — clean white/light blue */
  --color-bg: #f0f4fa;
  --color-surface: #ffffff;
  --color-surface-2: #f7faff;
  --color-surface-offset: #e8eef8;
  --color-surface-offset-2: #dde6f5;
  --color-divider: #ccd8ee;
  --color-border: #bfcfe8;

  /* Text */
  --color-text: #0f1c2e;
  --color-text-muted: #4a5e78;
  --color-text-faint: #94a8c0;
  --color-text-inverse: #ffffff;

  /* Primary — deep navy blue */
  --color-primary: #1a4480;
  --color-primary-hover: #133266;
  --color-primary-active: #0c2248;
  --color-primary-highlight: #d0dcf0;

  /* Accent — sky blue */
  --color-accent: #2172c4;
  --color-accent-hover: #185faa;
  --color-accent-highlight: #daeaf8;

  /* Condition badges */
  --color-excellent: #1a6e3c;
  --color-excellent-bg: #d8f0e4;
  --color-good: #5a6e14;
  --color-good-bg: #eaf0d0;
  --color-asis: #5a6278;
  --color-asis-bg: #e2e6ef;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* Transition */
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px oklch(0.18 0.08 240 / 0.07);
  --shadow-md: 0 4px 16px oklch(0.18 0.08 240 / 0.1);
  --shadow-lg: 0 12px 40px oklch(0.18 0.08 240 / 0.14);
  --shadow-card: 0 2px 8px oklch(0.18 0.08 240 / 0.08);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Type */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-hero: clamp(2.25rem, 1rem + 3.5vw, 4rem);

  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'Work Sans', 'system-ui', sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
}

[data-theme='dark'] {
  --color-bg: #0b1220;
  --color-surface: #111a2e;
  --color-surface-2: #151f35;
  --color-surface-offset: #0e1628;
  --color-surface-offset-2: #121b30;
  --color-divider: #1e2d48;
  --color-border: #28405e;
  --color-text: #c8d8ee;
  --color-text-muted: #7090b0;
  --color-text-faint: #3d5470;
  --color-text-inverse: #0b1220;
  --color-primary: #6699dd;
  --color-primary-hover: #4d80cc;
  --color-primary-active: #3368bb;
  --color-primary-highlight: #1a3058;
  --color-accent: #5aabee;
  --color-accent-hover: #42a0ee;
  --color-accent-highlight: #142840;
  --color-excellent: #4ab870;
  --color-excellent-bg: #0e2a1c;
  --color-good: #a8c040;
  --color-good-bg: #1e2808;
  --color-asis: #8898b0;
  --color-asis-bg: #161e2c;
  --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.35);
  --shadow-md: 0 4px 16px oklch(0 0 0 / 0.45);
  --shadow-lg: 0 12px 40px oklch(0 0 0 / 0.55);
  --shadow-card: 0 2px 8px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0b1220;
    --color-surface: #111a2e;
    --color-surface-2: #151f35;
    --color-surface-offset: #0e1628;
    --color-surface-offset-2: #121b30;
    --color-divider: #1e2d48;
    --color-border: #28405e;
    --color-text: #c8d8ee;
    --color-text-muted: #7090b0;
    --color-text-faint: #3d5470;
    --color-text-inverse: #0b1220;
    --color-primary: #6699dd;
    --color-primary-hover: #4d80cc;
    --color-primary-active: #3368bb;
    --color-primary-highlight: #1a3058;
    --color-accent: #5aabee;
    --color-accent-hover: #42a0ee;
    --color-accent-highlight: #142840;
    --color-excellent: #4ab870;
    --color-excellent-bg: #0e2a1c;
    --color-good: #a8c040;
    --color-good-bg: #1e2808;
    --color-asis: #8898b0;
    --color-asis-bg: #161e2c;
    --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.35);
    --shadow-md: 0 4px 16px oklch(0 0 0 / 0.45);
    --shadow-lg: 0 12px 40px oklch(0 0 0 / 0.55);
    --shadow-card: 0 2px 8px oklch(0 0 0 / 0.4);
  }
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.15; }
p, li { text-wrap: pretty; }
button { cursor: pointer; background: none; border: none; }

a, button, input, textarea, select {
  transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), opacity var(--transition);
}

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

::selection {
  background: oklch(from var(--color-primary) l c h / 0.2);
  color: var(--color-text);
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow var(--transition);
}

.header-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-8);
  height: 64px;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.logo {
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}
.logo:hover { opacity: 0.75; }

.logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo-city {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-left: 0.5rem;
  border-left: 1px solid var(--color-border);
  line-height: 1;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-left: auto;
}

.header-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
}
.header-nav a:hover { color: var(--color-text); }

.btn-nav {
  background: var(--color-primary);
  color: var(--color-text-inverse) !important;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-sm);
  white-space: nowrap;
}
.btn-nav:hover { background: var(--color-primary-hover) !important; color: var(--color-text-inverse) !important; }



/* ========== HERO ========== */
.hero-section {
  position: relative;
  width: 100%;
  overflow: visible;
}

.hero-bg-texture {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 70% 20%, oklch(from var(--color-primary) l c h / 0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, oklch(from var(--color-accent) l c h / 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: clamp(var(--space-10), 5vw, var(--space-16)) var(--space-8);
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-block;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.5vw + 1rem, 3.5rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.12;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.hero-heading em {
  font-style: italic;
  color: var(--color-primary);
}

.hero-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: var(--space-8);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  text-decoration: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-sm);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-lg); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: var(--text-sm);
  border: 1.5px solid var(--color-border);
}
.btn-secondary:hover { background: var(--color-surface-offset); border-color: var(--color-text-muted); }

.hero-trust {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-4);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}
.trust-item svg { color: var(--color-primary); flex-shrink: 0; }

/* Hero visual */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-start;
  min-width: 0;
  overflow: visible;
}

.hero-listing-preview {
  width: 100%;
  max-width: 420px;
  min-width: 0;
}

/* ========== LISTING CARD ========== */
.listing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.listing-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.listing-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.listing-card:hover .listing-img-wrap img { transform: scale(1.03); }

.listing-info {
  padding: var(--space-4) var(--space-5);
}

.listing-provenance {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 500;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.listing-provenance svg { color: var(--color-accent); flex-shrink: 0; }

.listing-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.listing-detail { font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-4); }

.listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-3);
}
.listing-price { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: var(--color-text); }
.listing-location { font-size: var(--text-xs); color: var(--color-text-muted); }

/* Condition badges */
.condition-badge {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px var(--space-2);
  border-radius: var(--radius-full);
}
.condition-badge.excellent { background: var(--color-excellent-bg); color: var(--color-excellent); }
.condition-badge.good { background: var(--color-good-bg); color: var(--color-good); }
.condition-badge.asis { background: var(--color-asis-bg); color: var(--color-asis); }

.verified-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: flex;
  align-items: center;
  gap: 4px;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(8px);
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 700;
  padding: 4px var(--space-2);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ========== SECTIONS ========== */
.section {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
}

.section-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-5);
}

.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 55ch;
  line-height: 1.7;
  margin-bottom: var(--space-12);
}

/* ========== LISTING FORMATS ========== */
.listings-section { background: var(--color-surface-offset); }

.listing-formats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.format-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.format-card--wide {
  grid-column: 1 / -1;
}

.format-tag {
  display: inline-flex;
  align-self: flex-start;
  background: var(--color-accent-highlight);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.mock-listing {
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mock-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.mock-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.lot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  aspect-ratio: 16/9;
}
.lot-grid img { height: 100%; aspect-ratio: auto; }

.mock-info { padding: var(--space-3) var(--space-4); }
.mock-provenance {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 11px;
  color: var(--color-text-faint);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-1);
}
.mock-provenance svg { color: var(--color-accent); }
.mock-title { font-family: var(--font-display); font-size: var(--text-base); font-weight: 700; color: var(--color-text); margin-bottom: var(--space-1); }
.mock-dims { font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-3); }
.mock-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-2);
}
.mock-price { font-family: var(--font-display); font-weight: 700; color: var(--color-text); font-size: var(--text-lg); }
.mock-action {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

/* Project listing format */
.mock-listing--project { padding: var(--space-4); }
.project-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}
.project-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.project-name { font-family: var(--font-display); font-size: var(--text-base); font-weight: 700; color: var(--color-text); line-height: 1.3; }
.project-meta { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-1); }

.project-items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}
.project-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.project-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.project-item span {
  display: block;
  padding: var(--space-2) var(--space-2) 0;
  font-weight: 500;
  color: var(--color-text);
  font-size: 11px;
}
.pitem-price { color: var(--color-text-muted) !important; font-weight: 400 !important; padding-bottom: var(--space-2) !important; }
.project-item--more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-offset);
  min-height: 80px;
  font-size: var(--text-sm) !important;
  font-weight: 600 !important;
  color: var(--color-text-muted) !important;
}
.project-item--more span { padding: 0 !important; }

.format-desc { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }

/* ========== CONDITION GRADING ========== */
.grading-section { background: var(--color-bg); }

.grades-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.grade-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}

.grade-card .grade-desc {
  flex: 1;
}

.grade-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}
.excellent-dot { background: var(--color-excellent); }
.good-dot { background: var(--color-good); }
.asis-dot { background: var(--color-asis); }

.grade-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.grade-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

.grade-example {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  background: var(--color-surface-offset);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  line-height: 1.5;
  font-style: italic;
}

/* ========== HOW IT WORKS ========== */
.how-section { background: var(--color-surface-offset); }

.how-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.track {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
}

.track .steps {
  flex: 1;
}

.seller-track { border-top: 3px solid var(--color-primary); }
.buyer-track { border-top: 3px solid var(--color-accent); }

.track-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}
.seller-track .track-label { color: var(--color-primary); }
.buyer-track .track-label { color: var(--color-accent); }

.track-heading {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: var(--space-8);
}

.steps { display: flex; flex-direction: column; gap: var(--space-5); margin-bottom: var(--space-6); }

.step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.step-num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-faint);
  width: 28px;
  flex-shrink: 0;
  padding-top: 2px;
}

.step-content strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.step-content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.track-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.track-note svg { flex-shrink: 0; margin-top: 1px; color: var(--color-primary); }

/* ========== SAMPLE LISTINGS SCROLL ========== */
.sample-section { background: var(--color-bg); overflow: hidden; }
.sample-section .section-inner { margin-bottom: var(--space-8); }

.listings-scroll {
  overflow-x: auto;
  padding: 0 var(--space-8) var(--space-6);
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  -webkit-overflow-scrolling: touch;
}

.scroll-track {
  display: flex;
  gap: var(--space-4);
  min-width: max-content;
}

.scroll-card {
  width: 240px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.scroll-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.scroll-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.scroll-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.scroll-card:hover .scroll-img img { transform: scale(1.04); }

.scroll-provenance {
  padding: var(--space-3) var(--space-4) var(--space-1);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.scroll-title {
  padding: 0 var(--space-4) var(--space-1);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.3;
}

.scroll-price {
  padding: var(--space-2) var(--space-4) var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}

/* ========== REGISTER ========== */
.register-section { background: var(--color-surface-offset); }

.register-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-8);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-16);
  align-items: start;
}

.register-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-5);
}

.register-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 48ch;
  margin-bottom: var(--space-8);
}

.register-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.register-perks li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.register-perks svg { color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }

/* Form */
.register-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  background: var(--color-surface-2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text);
  width: 100%;
  line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.12);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-text-faint); }

/* Role toggle */
.role-toggle {
  display: flex;
  gap: var(--space-3);
}

.role-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  cursor: pointer;
  transition: all var(--transition);
}

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

.role-btn.active {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-base);
  box-shadow: var(--shadow-md);
  width: 100%;
  border: none;
  cursor: pointer;
}
.btn-submit:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-lg); }

.form-fine {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* Success state */
.form-success {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.success-icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.form-success p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 40ch;
  margin: 0 auto;
}

/* Seller-only field */
.seller-only { transition: opacity var(--transition); }
.seller-only.hidden { display: none; }

/* ========== FOUNDER ========== */
.founder-section {
  background: var(--color-primary);
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
}

.founder-inner {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.founder-quote {
  text-align: center;
}

.founder-quote p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: #ffffff;
  line-height: 1.5;
  margin-bottom: var(--space-8);
  max-width: none;
}

.founder-quote footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.founder-quote strong {
  font-size: var(--text-base);
  font-weight: 700;
  color: #ffffff;
}

.founder-quote span {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-divider);
  padding: var(--space-10) 0;
}

.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.footer-logo { display: flex; align-items: baseline; gap: 0.45rem; }
.footer-logo .logo-wordmark { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.03em; color: var(--color-text-muted); }
.footer-logo .logo-city { font-family: var(--font-body); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-faint); padding-left: 0.45rem; border-left: 1px solid var(--color-border); }
.footer-tag { font-size: var(--text-sm); color: var(--color-text-muted); }
.footer-fine { font-size: var(--text-xs); color: var(--color-text-faint); }
.footer-fine a { color: var(--color-text-muted); text-decoration: none; }
.footer-fine a:hover { color: var(--color-text); }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: var(--space-10);
    padding-top: var(--space-12);
  }

  .hero-visual { justify-content: flex-start; }
  .hero-listing-preview { max-width: 100%; }

  .listing-formats-grid {
    grid-template-columns: 1fr;
  }
  .format-card--wide { grid-column: auto; }

  .grades-row { grid-template-columns: 1fr; gap: var(--space-4); }

  .how-tracks { grid-template-columns: 1fr; }

  .register-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .project-items-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .header-nav a:not(.btn-nav) { display: none; }

  .hero-heading { font-size: clamp(2.2rem, 10vw, 4rem); }

  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; justify-content: center; }

  .section-inner { padding: 0 var(--space-5); }
  .listings-scroll { padding: 0 var(--space-5) var(--space-5); }
  .register-inner { padding: 0 var(--space-5); }
  .founder-inner { padding: 0 var(--space-5); }

  .register-form { padding: var(--space-5); }

  .role-toggle { flex-direction: column; }

  .how-tracks { grid-template-columns: 1fr; }

  .section-heading { font-size: var(--text-xl); }

  .grades-row { grid-template-columns: 1fr; }
}

/* ========== ANIMATIONS ========== */
@media (prefers-reduced-motion: no-preference) {
  .hero-content > * {
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }
  .hero-eyebrow { animation-delay: 0.05s; }
  .hero-heading { animation-delay: 0.1s; }
  .hero-sub { animation-delay: 0.18s; }
  .hero-ctas { animation-delay: 0.24s; }
  .hero-trust { animation-delay: 0.3s; }
  .hero-visual { animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
