:root {
  --ink: #0b1f19;
  --ink-2: #133128;
  --ink-3: #1d4436;
  --cream: #f7f2e7;
  --paper: #fffdf8;
  --mint: #c8f5d9;
  --lime: #d9ff6f;
  --emerald: #0f6b4a;
  --coral: #ff7a59;
  --muted: #5b6b63;
  --line: rgba(11, 31, 25, 0.12);
  --line-dark: rgba(247, 242, 231, 0.16);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 30px 80px rgba(11, 31, 25, 0.18);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.15; }
::selection { background: var(--lime); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--lime); color: var(--ink); padding: 10px 16px;
  border-radius: 999px; font-weight: 700;
}
.skip:focus { top: 16px; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.section { padding: clamp(70px, 9vw, 128px) 0; }
.section-tight { padding: clamp(52px, 6vw, 84px) 0; }
.dark { background: var(--ink); color: var(--cream); }
.dark .muted { color: rgba(247, 242, 231, 0.68); }
.muted { color: var(--muted); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--emerald);
}
.dark .kicker { color: var(--lime); }
.kicker::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.65;
}
.section-head { max-width: 760px; margin-bottom: clamp(30px, 4vw, 54px); }
.section-head h2 { margin-top: 16px; text-wrap: balance; }
.section-head p:not(.kicker) {
  margin-top: 20px; font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  max-width: 640px; color: var(--muted);
}
.dark .section-head p:not(.kicker) { color: rgba(247, 242, 231, 0.7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head.center p { margin-inline: auto; }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 74px; display: flex; align-items: center;
  background: rgba(11, 31, 25, 0.76);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  color: var(--cream);
  transition: background 0.25s, border-color 0.25s;
}
.site-header.scrolled { background: rgba(11, 31, 25, 0.94); border-bottom-color: var(--line-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand span small { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247, 242, 231, 0.58); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 0.88rem; font-weight: 500; }
.nav a { text-decoration: none; color: rgba(247, 242, 231, 0.78); transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-cta .email { font-size: 0.84rem; color: rgba(247, 242, 231, 0.7); text-decoration: none; }
.header-cta .email:hover { color: var(--lime); }
.nav-toggle { display: none; background: none; border: 0; color: var(--cream); padding: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent; font-size: 0.92rem; font-weight: 650;
  text-decoration: none; cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #e6ff9a; }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { border-color: rgba(247, 242, 231, 0.32); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(247, 242, 231, 0.08); }
.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); background: rgba(11, 31, 25, 0.04); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.84rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; color: var(--ink-2); background: rgba(255, 253, 248, 0.62);
}
.dark .pill { border-color: var(--line-dark); color: var(--cream); background: rgba(247, 242, 231, 0.06); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(15, 107, 74, 0.12); }
.dark .dot { background: var(--lime); box-shadow: 0 0 0 4px rgba(217, 255, 111, 0.12); }

.stat-strip { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 24px 20px; border-left: 1px solid var(--line-dark); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 600; line-height: 1; color: var(--cream); }
.stat span { display: block; margin-top: 8px; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(247, 242, 231, 0.55); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 1px 0 rgba(11, 31, 25, 0.03);
}
.dark .card { background: var(--ink-2); border-color: var(--line-dark); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; font-size: 0.94rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.36em; width: 17px; height: 17px;
  border-radius: 50%; background: var(--lime);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 17 17'%3E%3Cpath d='m5 8.5 2.2 2.2L12 5.8' fill='none' stroke='%230b1f19' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.dark .check-list li::before { box-shadow: 0 0 0 1px rgba(217, 255, 111, 0.2); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

.site-footer { background: var(--ink); color: var(--cream); padding: 54px 0 32px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 16px; max-width: 340px; font-size: 0.9rem; color: rgba(247, 242, 231, 0.62); }
.footer-col h4 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247, 242, 231, 0.52); margin-bottom: 16px; }
.footer-col a { display: block; padding: 5px 0; color: rgba(247, 242, 231, 0.78); text-decoration: none; font-size: 0.92rem; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 0.78rem; color: rgba(247, 242, 231, 0.52); }
.footer-bottom a { color: inherit; }

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.open .nav {
    display: flex; position: absolute; left: 0; right: 0; top: 74px;
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 22px 24px 28px; background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
  }
  .site-header.open .nav a { padding: 10px 0; font-size: 1rem; }
  .header-cta .email { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--line-dark); }
  .stat:nth-child(4) { border-top: 1px solid var(--line-dark); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .container, .narrow { width: min(calc(100% - 32px), var(--max)); }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .btn { min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

html, body { overflow-x: clip; }
.hero-grid > *, .desktop-grid > *, .gallery-shell, .mac-window, .browser-frame { min-width: 0; }
.browser-frame img, .gallery-shot img, .shot-card img { width: 100%; height: auto; }

code, kbd {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.84em; background: rgba(11, 31, 25, 0.07);
  border: 1px solid rgba(11, 31, 25, 0.08); border-radius: 5px;
  padding: 1px 5px; white-space: nowrap;
}
@media (max-width: 520px) { .header-cta .btn-sm { display: none; } }
.brand span small, .nav a, .header-cta .email, .btn { white-space: nowrap; }
@media (max-width: 1180px) { .header-cta .email { display: none; } }
