:root {
  --bg: #f5f3ee;
  --bg-2: #efece4;
  --ink: #1a1f1a;
  --sage: #3d5a3a;
  --sage-light: #7a9275;
  --purple: #6b4e8b;
  --purple-light: #a89bbf;
  --rule: rgba(26, 31, 26, 0.12);
  --muted: rgba(26, 31, 26, 0.7);
  --muted-2: rgba(26, 31, 26, 0.5);
  --muted-3: rgba(26, 31, 26, 0.4);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", -apple-system, system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--sage); color: var(--bg); }

a { cursor: pointer; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 56px;
  background: rgba(245, 243, 238, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.nav-name {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
  font-weight: 450;
}
.nav-links a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--sage); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 71px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  padding: 120px 56px 80px;
  align-items: center;
}
.hero-text { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
  margin-bottom: 28px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}
.dot.small { width: 5px; height: 5px; }

.hero h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(48px, 6.4vw, 96px);
  font-weight: 350;
  letter-spacing: -2.5px;
  line-height: 0.96;
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.hero h1 em {
  font-style: italic;
  color: var(--sage);
}
.lede {
  font-size: 18px;
  line-height: 1.55;
  max-width: 460px;
  margin-top: 36px;
  color: var(--muted);
  font-weight: 400;
}
.hero-cta {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.1px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .25s, background .25s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--sage);
}
.link-underline {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* ---------- Orb ---------- */
.orb {
  position: relative;
  height: 520px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(122, 146, 117, 0.13), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(168, 155, 191, 0.10), transparent 55%);
}
#particles {
  width: 100%;
  height: 100%;
  display: block;
}
.orb-word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 40px;
  font-weight: 300;
  color: rgba(26, 31, 26, 0.18);
  letter-spacing: -1px;
}
.tick {
  position: absolute;
  width: 14px;
  height: 14px;
  opacity: 0.3;
  border-color: var(--ink);
  border-style: solid;
  border-width: 0;
}
.tick-tl { top: 16px; left: 16px; border-top-width: 1px; border-left-width: 1px; }
.tick-tr { top: 16px; right: 16px; border-top-width: 1px; border-right-width: 1px; }
.tick-bl { bottom: 16px; left: 16px; border-bottom-width: 1px; border-left-width: 1px; }
.tick-br { bottom: 16px; right: 16px; border-bottom-width: 1px; border-right-width: 1px; }

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 56px;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted-3);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}
.scroll-line {
  width: 32px;
  height: 1px;
  background: rgba(26, 31, 26, 0.3);
}

/* ---------- About ---------- */
.about {
  padding: 120px 56px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 80px;
}
.section-label {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
}
.big-quote {
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 350;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 0;
  max-width: 820px;
}
.pillars {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  border-top: 1px solid var(--rule);
  padding-top: 36px;
}
.pillar-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pillar p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(26, 31, 26, 0.65);
  margin: 0;
}

/* ---------- Apps ---------- */
.apps {
  padding: 120px 56px 140px;
  border-top: 1px solid var(--rule);
  background: var(--bg-2);
  position: relative;
}
.apps-header {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 80px;
  margin-bottom: 72px;
}
.apps h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 350;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin: 0;
  max-width: 720px;
}
.apps h2 em {
  font-style: italic;
  color: var(--sage);
}

.app-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}
.app-row {
  display: grid;
  grid-template-columns: 60px 1.4fr 1fr 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  position: relative;
  transition: padding-left .35s cubic-bezier(.2, .7, .3, 1);
  text-decoration: none;
  color: inherit;
}
.app-row:hover { padding-left: 24px; }

.app-num {
  font-size: 12px;
  color: var(--muted-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}
.app-name {
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 350;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--ink);
  transition: color .35s, font-style .35s;
}
.app-row:hover .app-name { font-style: italic; }
.app-row[data-accent="purple"]:hover .app-name { color: var(--purple); }
.app-row[data-accent="sage"]:hover .app-name { color: var(--sage); }

.app-domain {
  font-size: 12px;
  margin-top: 8px;
  font-family: "JetBrains Mono", "SF Mono", monospace;
  color: var(--muted-2);
  letter-spacing: 0.3px;
}
.app-tag {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 360px;
}
.app-cat {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}
.app-row[data-accent="purple"] .app-cat { color: var(--purple); }
.app-row[data-accent="sage"] .app-cat { color: var(--sage); }

.app-cta {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--ink);
  transition: all .35s;
  text-decoration: none;
}
.app-row:hover .app-cta {
  background: var(--ink);
  color: var(--bg);
  transform: rotate(-45deg);
}

/* ---------- Footer ---------- */
.footer {
  padding: 100px 56px 40px;
  border-top: 1px solid var(--rule);
  background: var(--ink);
  color: var(--bg);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 100px;
}
.footer h3 {
  font-family: "Fraunces", serif;
  font-size: clamp(40px, 5.4vw, 80px);
  font-weight: 350;
  letter-spacing: -2px;
  line-height: 0.98;
  margin: 0;
}
.footer h3 em {
  font-style: italic;
  color: var(--purple-light);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 12px;
}
.email {
  font-size: 22px;
  color: var(--bg);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: -0.3px;
  border-bottom: 1px solid rgba(245, 243, 238, 0.3);
  padding-bottom: 12px;
  transition: border-color .2s;
  align-self: flex-start;
}
.email:hover { border-color: var(--purple-light); }
.socials {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: rgba(245, 243, 238, 0.6);
}
.socials a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
.socials a:hover { color: var(--bg); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 28px;
  border-top: 1px solid rgba(245, 243, 238, 0.12);
  font-size: 12px;
  color: rgba(245, 243, 238, 0.5);
}
.copyright {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(245, 243, 238, 0.5);
}
.footer .copyright .mark { color: var(--bg); }
.legal-links {
  display: flex;
  gap: 28px;
}
.legal-links a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
.legal-links a:hover { color: var(--bg); }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2, .7, .3, 1), transform .9s cubic-bezier(.2, .7, .3, 1);
}
.reveal.shown {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Overlay ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 31, 26, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}
.overlay[hidden] { display: none; }
.overlay-card {
  background: var(--bg);
  color: var(--ink);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  padding: 60px 56px;
  position: relative;
}
.overlay-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: 1px solid var(--rule);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink);
  font-family: inherit;
  line-height: 1;
}
.overlay-eyebrow {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
  margin-bottom: 16px;
}
.overlay-card h1 {
  font-family: "Fraunces", serif;
  font-size: 42px;
  font-weight: 350;
  letter-spacing: -1.5px;
  margin: 0 0 28px;
}
.overlay-body {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(26, 31, 26, 0.75);
  white-space: pre-wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { padding: 18px 24px; }
  .nav-links { gap: 22px; }
  .hero {
    grid-template-columns: 1fr;
    padding: 80px 24px 60px;
    gap: 56px;
  }
  .orb { height: 360px; }
  .scroll-indicator { display: none; }
  .about {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 80px 24px;
  }
  .pillars {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .apps { padding: 80px 24px 100px; }
  .apps-header {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 48px;
  }
  .app-row {
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 28px 0;
  }
  .app-row:hover { padding-left: 0; }
  .app-num { display: none; }
  .app-tag { grid-column: 1 / -1; max-width: none; }
  .app-cat { grid-column: 1 / -1; }
  .footer { padding: 72px 24px 28px; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 56px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .overlay { padding: 16px; }
  .overlay-card { padding: 48px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-primary, .app-row, .app-cta, .app-name { transition: none; }
}
