:root {
  --bg: #faf8f3;
  --ink: #1a1814;
  --ink-soft: #4a4640;
  --ink-mute: #8a847a;
  --line: #d9d2c4;
  --line-soft: #e8e2d3;
  --accent: #d63a1f;
  --accent-soft: #f08974;
  --accent-tint: rgba(214, 58, 31, 0.08);

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;
  --fs-5xl: 4rem;
  --fs-6xl: 5.5rem;
  --fs-7xl: 7rem;

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;
  --sp-4: 16px; --sp-6: 24px; --sp-8: 32px;
  --sp-12: 48px; --sp-16: 64px; --sp-24: 96px;
  --sp-32: 128px; --sp-48: 192px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 600ms;

  --radius: 16px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

h1 { font-size: var(--fs-7xl); }
h2 { font-size: var(--fs-5xl); }
h3 { font-size: var(--fs-3xl); }
h4 { font-size: var(--fs-2xl); }

::selection {
  background: var(--accent);
  color: white;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

a:hover { color: var(--accent); }

p {
  max-width: 65ch;
  color: var(--ink-soft);
  font-size: var(--fs-lg);
  line-height: 1.6;
}

p.lead {
  font-size: var(--fs-xl);
  color: var(--ink);
  line-height: 1.5;
}

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.section {
  padding: var(--sp-32) 0;
}

.section-head {
  margin-bottom: var(--sp-16);
  max-width: 800px;
}

.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.section-title {
  font-size: var(--fs-5xl);
  font-weight: 500;
  margin-bottom: var(--sp-6);
}

.section-sub {
  font-size: var(--fs-xl);
  color: var(--ink-soft);
  max-width: 60ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-8);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: var(--fs-base);
  transition: all var(--dur-base) var(--ease-out);
  cursor: pointer;
  border: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(214, 58, 31, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-2px);
}

/* Reveal animation */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.js-reveal .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--sp-6) 0;
  transition: all var(--dur-base) var(--ease-out);
  background: transparent;
}

.nav.scrolled {
  background: rgba(250, 248, 243, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  padding: var(--sp-4) 0;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.nav-logo {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: var(--fs-xl);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: var(--sp-8);
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out);
}

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

.nav-cta {
  background: var(--ink);
  color: var(--bg) !important;
  padding: var(--sp-3) var(--sp-6);
  border-radius: 999px;
  font-size: var(--fs-sm) !important;
  font-weight: 500;
  transition: all var(--dur-base) var(--ease-out);
}

.nav-cta:hover {
  background: var(--accent);
  color: white !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  transition: all var(--dur-base) var(--ease-out);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 248, 243, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99;
  padding: var(--sp-32) var(--sp-6) var(--sp-12);
  flex-direction: column;
  gap: var(--sp-8);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-family: 'Fraunces', serif;
  font-size: var(--fs-3xl);
  font-weight: 500;
  color: var(--ink);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line-soft);
}

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

.nav-mobile .btn {
  margin-top: var(--sp-8);
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-base);
  justify-content: center;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--sp-32);
  padding-bottom: var(--sp-24);
  position: relative;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  width: 100%;
}

.hero h1 {
  font-size: var(--fs-7xl);
  max-width: 16ch;
  margin-bottom: var(--sp-8);
}

.hero h1 .accent {
  color: var(--accent);
}

.hero p.lead {
  margin-bottom: var(--sp-12);
  max-width: 55ch;
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  gap: var(--sp-8);
  margin-top: var(--sp-12);
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--ink-mute);
}

.hero-trust-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}

/* Stats bar */
.stats-bar {
  display: flex;
  gap: var(--sp-24);
  padding: var(--sp-12) 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.stat-num {
  font-family: 'Fraunces', serif;
  font-size: var(--fs-4xl);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}

.stat-label {
  font-size: var(--fs-sm);
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Work grid — bento layout */
.work-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-6);
}

.work-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line-soft);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  text-decoration: none;
  display: block;
}

.work-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(26, 24, 20, 0.12);
}

.work-tile.wide { grid-column: span 3; aspect-ratio: 16/10; }
.work-tile.standard { grid-column: span 2; aspect-ratio: 4/3; }
.work-tile.narrow { grid-column: span 2; aspect-ratio: 4/3; }

.work-tile-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--line-soft), var(--line));
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-tile-bg .work-tile-initial {
  font-family: 'Fraunces', serif;
  font-size: var(--fs-7xl);
  font-weight: 500;
  color: var(--ink-mute);
  opacity: 0.3;
}

.work-tile-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-6);
  background: linear-gradient(to top, rgba(26, 24, 20, 0.85), transparent);
  color: white;
}

.work-tile-name {
  font-family: 'Fraunces', serif;
  font-size: var(--fs-xl);
  font-weight: 500;
  margin-bottom: var(--sp-1);
  color: white;
}

.work-tile-tag {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  color: white;
}

.work-tile-arrow {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: all var(--dur-base) var(--ease-out);
}

.work-tile:hover .work-tile-arrow {
  opacity: 1;
  transform: translateY(0);
}

.work-tile-arrow svg {
  width: 16px;
  height: 16px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 2;
}

/* How it works */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-12);
}

.step {
  padding: var(--sp-8) 0;
}

.step-num {
  font-family: 'Fraunces', serif;
  font-size: var(--fs-7xl);
  color: var(--accent);
  font-weight: 500;
  line-height: 1;
  margin-bottom: var(--sp-6);
}

.step-title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-4);
}

.step-desc {
  font-size: var(--fs-base);
  color: var(--ink-soft);
}

.step-icon {
  width: 32px;
  height: 32px;
  stroke: var(--ink-mute);
  fill: none;
  stroke-width: 1.5;
  margin-bottom: var(--sp-6);
}

/* Two things */
.two-things {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-12);
}

.two-things-card {
  background: white;
  padding: var(--sp-12);
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  transition: border-color var(--dur-base) var(--ease-out);
}

.two-things-card:hover {
  border-color: var(--line);
}

.two-things-card h3 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-6);
}

.two-things-card p {
  font-size: var(--fs-base);
  color: var(--ink-soft);
  line-height: 1.6;
}

.two-things-list {
  list-style: none;
  margin-top: var(--sp-8);
}

.two-things-list li {
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  font-size: var(--fs-base);
  color: var(--ink-soft);
}

.two-things-list li::before {
  content: '—';
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8);
}

.testimonial {
  padding: var(--sp-8) var(--sp-8) var(--sp-8) var(--sp-12);
  border-left: 2px solid var(--accent);
  background: white;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.testimonial-quote {
  font-family: 'Fraunces', serif;
  font-size: var(--fs-2xl);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: var(--sp-6);
  color: var(--ink);
}

.testimonial-author {
  font-size: var(--fs-sm);
  color: var(--ink-mute);
  font-weight: 500;
}

.testimonial-author strong {
  color: var(--ink-soft);
  font-weight: 600;
}

/* Final CTA */
.final-cta {
  background: var(--ink);
  color: var(--bg);
  padding: var(--sp-32) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(214, 58, 31, 0.12), transparent 60%);
  pointer-events: none;
}

.final-cta .container { position: relative; }

.final-cta h2 {
  color: var(--bg);
  font-size: var(--fs-6xl);
  margin-bottom: var(--sp-8);
}

.final-cta p {
  color: rgba(250, 248, 243, 0.7);
  margin: 0 auto var(--sp-12);
  max-width: 50ch;
}

.final-cta .btn-primary {
  background: var(--accent);
  color: white;
}

.final-cta .btn-primary:hover {
  background: var(--bg);
  color: var(--ink);
}

/* Footer */
.footer {
  padding: var(--sp-24) 0 var(--sp-12);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-16);
}

.footer-logo {
  font-family: 'Fraunces', serif;
  font-size: var(--fs-4xl);
  font-weight: 500;
  margin-bottom: var(--sp-6);
}

.footer-manifesto {
  font-size: var(--fs-lg);
  color: var(--ink-soft);
  max-width: 35ch;
  line-height: 1.5;
}

.footer-col h4 {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  margin-bottom: var(--sp-6);
  font-weight: 500;
}

.footer-col ul { list-style: none; }

.footer-col li {
  margin-bottom: var(--sp-3);
}

.footer-col a {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

.footer-col a:hover { color: var(--accent); }

.footer-fine {
  padding-top: var(--sp-8);
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--ink-mute);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: opacity 0.01ms, transform 0.01ms;
  }
  html { scroll-behavior: auto; }
}

/* Responsive — tablet */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .work-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .work-tile.wide { grid-column: span 4; }
  .work-tile.standard { grid-column: span 2; }
  .work-tile.narrow { grid-column: span 2; }

  .hero h1 { font-size: var(--fs-5xl); }
  h1 { font-size: var(--fs-5xl); }
  h2 { font-size: var(--fs-3xl); }
}

/* Responsive — mobile */
@media (max-width: 768px) {
  h1 { font-size: var(--fs-4xl); }
  h2 { font-size: var(--fs-2xl); }
  h3 { font-size: var(--fs-xl); }

  .section { padding: var(--sp-16) 0; }
  .container { padding: 0 var(--sp-4); }

  .hero { min-height: 90vh; padding-top: var(--sp-24); }
  .hero h1 { font-size: var(--fs-4xl); margin-bottom: var(--sp-6); }
  .hero p.lead { font-size: var(--fs-lg); }

  .work-grid {
    grid-template-columns: 1fr;
  }
  .work-tile.wide,
  .work-tile.standard,
  .work-tile.narrow {
    grid-column: span 1;
    aspect-ratio: 16/10;
  }

  .how-it-works { grid-template-columns: 1fr; gap: var(--sp-8); }

  .two-things { grid-template-columns: 1fr; }

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

  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-fine { flex-direction: column; gap: var(--sp-2); }

  .stats-bar { gap: var(--sp-12); }

  .final-cta h2 { font-size: var(--fs-3xl); }

  .step-num { font-size: var(--fs-5xl); }
}