:root {
  --bg: #fbfaf7;
  --ink: #16151a;
  --muted: #6b6873;
  --line: #e7e4dd;
  --accent: #2f6b4f;
  --accent-ink: #ffffff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121215;
    --ink: #f1efe9;
    --muted: #a19ea8;
    --line: #2a2a30;
    --accent: #7fd1a6;
    --accent-ink: #0e1f16;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: inherit; }

.bar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  transition: box-shadow 200ms ease;
}

.bar.scrolled { box-shadow: 0 1px 0 var(--line); }

.brand { font-weight: 800; text-decoration: none; letter-spacing: -0.02em; }

.bar-cta, .cta {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  transition: transform 150ms ease, opacity 150ms ease;
}

.bar-cta { padding: 0.4rem 1rem; font-size: 0.9rem; }
.cta { padding: 0.8rem 1.6rem; }
.bar-cta:hover, .cta:hover { transform: translateY(-1px); opacity: 0.9; }

main { max-width: 64rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem); }

.bar-links { display: flex; align-items: center; gap: clamp(0.75rem, 2.5vw, 1.5rem); font-size: 0.95rem; }
.bar-links a:not(.bar-cta) { text-decoration: none; color: var(--muted); }
.bar-links a:not(.bar-cta):hover { color: var(--ink); }

h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 1rem; }
h3 { margin: 0; letter-spacing: -0.01em; }

.eyebrow { margin: 0 0 1rem; color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.eyebrow a { text-decoration: none; }

.hero { padding: clamp(4rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 5rem); }
.hero h1 { margin: 0; max-width: 16ch; font-size: clamp(2.6rem, 8vw, 4.8rem); line-height: 0.98; letter-spacing: -0.04em; }
.hero-small { padding-bottom: 2rem; }
.hero-small h1 { max-width: none; }
.lede { max-width: 44ch; color: var(--muted); font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.cta-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; padding-bottom: 5rem; }
.point { padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; }
.point h2 { font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.point p { margin: 0; color: var(--muted); }

.how { padding-bottom: 5rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 1rem; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); display: block; color: var(--accent); font-weight: 700; margin-bottom: 0.25rem; }
.steps p { margin: 0.25rem 0 0; color: var(--muted); }

.work { padding-bottom: 5rem; }
.work-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.5rem; }
.work-card { display: block; text-decoration: none; }
.work-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 0.75rem; border: 1px solid var(--line); }
.work-card:hover img { opacity: 0.92; }
.work-kind { display: block; margin-top: 0.9rem; color: var(--accent); font-size: 0.85rem; font-weight: 600; }
.work-card h3 { font-size: 1.3rem; }
.work-card p { margin: 0.25rem 0 0; color: var(--muted); }

.built { padding-bottom: 3rem; max-width: 44rem; }
.built ul { margin: 0; padding-left: 1.2rem; }
.built li { margin: 0.5rem 0; }

.shots { display: grid; gap: 2.5rem; padding-bottom: 5rem; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 0.75rem; border: 1px solid var(--line); }
.shot figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.95rem; }

.contact { padding: 3rem 0 5rem; border-top: 1px solid var(--line); }
.contact p { max-width: 44ch; color: var(--muted); }
.contact .cta { margin-top: 0.5rem; }

@media (max-width: 34rem) {
  .bar-links a:not(.bar-cta) { display: none; }
}

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.foot { padding: 2rem clamp(1rem, 4vw, 3rem); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.foot p { margin: 0.25rem 0; }
.foot-small { font-size: 0.8rem; }
