/* ------------------------------------------------------------------ *
 *  Self-hosted typefaces (Geist & Geist Mono, SIL OFL)                *
 *  Variable: weight axis 100..900 supported by browser; subset to     *
 *  300..600 / 400..500 in practice via styles below.                  *
 * ------------------------------------------------------------------ */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --fg: #f5f5f5;
  --fg-soft: #d4d4d4;
  --muted: #737373;
  --muted-2: #525252;
  --rule: #1a1a1a;
  --rule-strong: #262626;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.15);
  --max-w: 76rem;
  --pad-x: clamp(1.25rem, 4.5vw, 2.5rem);
  --ff-sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --ff-mono: "Geist Mono", "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-soft);
  background: var(--bg);
  font-feature-settings: "kern" 1, "ss01" 1, "cv01" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--fg);
  text-decoration: none;
}

/* ------------------------------------------------------------------ *
 *  Layout shell                                                       *
 * ------------------------------------------------------------------ */

.site-header,
main,
.site-footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  position: relative;
}

/* ------------------------------------------------------------------ *
 *  Header                                                             *
 * ------------------------------------------------------------------ */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--fg);
  font-family: var(--ff-mono);
  text-decoration: none;
}

.brand-status {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse 2.4s var(--ease) infinite;
  flex-shrink: 0;
}

.brand-name {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--fg);
}

.site-nav {
  display: flex;
  gap: 0.5rem;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.site-nav a {
  color: var(--muted);
  padding: 0.4rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 4px;
  transition:
    color 240ms var(--ease),
    border-color 240ms var(--ease),
    background 240ms var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--fg);
  border-color: var(--rule-strong);
  background: var(--bg-soft);
  text-decoration: none;
  outline: none;
}

/* ------------------------------------------------------------------ *
 *  Sections                                                           *
 * ------------------------------------------------------------------ */

main {
  padding-top: 0;
}

section {
  position: relative;
  padding: 7rem 0 6rem;
  border-bottom: 1px solid var(--rule);
}

section:last-of-type {
  border-bottom: none;
}

@media (max-width: 720px) {
  section {
    padding: 4rem 0 3.5rem;
  }
}

.section-label {
  margin: 0 0 1.5rem;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Hero eyebrow with rule */
.eyebrow {
  margin: 0 0 3rem;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: nowrap;
}

.eyebrow .tag {
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
}

.eyebrow .rule {
  display: inline-block;
  flex: 0 0 2.25rem;
  height: 1px;
  background: var(--rule-strong);
  transform-origin: left center;
}

.eyebrow > span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

@media (max-width: 480px) {
  .eyebrow .rule {
    flex-basis: 1.25rem;
  }
}

/* ------------------------------------------------------------------ *
 *  Hero                                                               *
 * ------------------------------------------------------------------ */

.hero {
  padding-top: 6rem;
  padding-bottom: 8rem;
}

.hero h1 {
  margin: 0 0 3rem;
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: clamp(2.75rem, 9vw, 7rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--fg);
  max-width: 14ch;
}

.hero-line {
  display: block;
}

.punctum {
  color: var(--accent);
  display: inline-block;
}

.lede {
  max-width: 36rem;
  margin: 0 0 3rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}

/* CTA */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition:
    border-color 280ms var(--ease),
    background 280ms var(--ease),
    color 280ms var(--ease);
}

.cta:hover,
.cta:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}

.cta-arrow {
  font-size: 1em;
  transition: transform 280ms var(--ease);
  display: inline-block;
}

.cta:hover .cta-arrow {
  transform: translateX(0.25rem);
}

/* ------------------------------------------------------------------ *
 *  About                                                              *
 * ------------------------------------------------------------------ */

h2 {
  margin: 0 0 2rem;
  font-family: var(--ff-sans);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 400;
  color: var(--fg);
}

.about-lead {
  max-width: 38rem;
  font-size: 1.125rem;
  line-height: 1.55;
  margin: 0;
  color: var(--fg-soft);
}

.subhead {
  margin: 4rem 0 1.5rem;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Principles */
.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 48rem;
  display: grid;
  border-top: 1px solid var(--rule);
}

.principles li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: 1.5rem 0.5rem;
  border-bottom: 1px solid var(--rule);
  transition:
    background 320ms var(--ease),
    padding 320ms var(--ease);
}

.principles li:hover {
  background: var(--bg-soft);
  padding-left: 1rem;
  padding-right: 1rem;
}

.ord {
  font-family: var(--ff-mono);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: left;
}

.principle-body strong {
  display: block;
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.principle-body span {
  color: var(--muted);
  font-size: 0.98rem;
}

@media (max-width: 480px) {
  .principles li {
    grid-template-columns: 3rem 1fr;
    gap: 0.75rem;
  }
}

/* ------------------------------------------------------------------ *
 *  Contact                                                            *
 * ------------------------------------------------------------------ */

.contact-intro {
  max-width: 32rem;
  color: var(--muted);
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

.contact-email {
  margin: 0;
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 400;
  font-family: var(--ff-sans);
}

.contact-email a {
  color: var(--fg);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  padding-bottom: 0.15em;
  transition:
    background-size 480ms var(--ease),
    color 320ms var(--ease);
  word-break: break-word;
}

.contact-email a:hover,
.contact-email a:focus-visible {
  color: var(--accent);
  background-size: 100% 1px;
  outline: none;
}

/* ------------------------------------------------------------------ *
 *  Footer                                                             *
 * ------------------------------------------------------------------ */

.site-footer {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
  border-top: 1px solid var(--rule);
  margin-top: 0;
  color: var(--muted);
  font-size: 0.85rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 2rem;
}

@media (max-width: 640px) {
  .site-footer {
    grid-template-columns: 1fr;
  }
}

.footer-col p {
  margin: 0 0 0.3rem;
}

.footer-label {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.85rem !important;
}

.legal-name {
  color: var(--fg);
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.legal-meta:empty {
  display: none;
}

.footer-col--right {
  text-align: right;
}

@media (max-width: 640px) {
  .footer-col--right {
    text-align: left;
  }
}

.copyright {
  margin: 0;
  color: var(--muted);
}

/* ------------------------------------------------------------------ *
 *  Prose pages (privacy)                                              *
 * ------------------------------------------------------------------ */

main.prose {
  max-width: 42rem;
  padding-top: 5rem;
  padding-bottom: 6rem;
}

@media (max-width: 720px) {
  main.prose {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }
}

.prose h1 {
  font-family: var(--ff-sans);
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 0.85rem;
  color: var(--fg);
}

.prose-meta {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 0 0 3rem;
  text-transform: uppercase;
}

.prose h2 {
  font-family: var(--ff-sans);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 2.5rem 0 0.85rem;
  color: var(--fg);
  line-height: 1.3;
}

.prose p {
  margin: 0 0 1.1rem;
  color: var(--fg-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.prose a {
  color: var(--fg);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 0.05em;
  text-decoration: none;
  transition:
    color 240ms var(--ease),
    border-color 240ms var(--ease);
}

.prose a:hover,
.prose a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}

.prose ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.prose ul li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--fg-soft);
  margin: 0 0 0.45rem;
  font-size: 1rem;
  line-height: 1.55;
}

.prose ul li::before {
  content: "·";
  position: absolute;
  left: 0.35rem;
  color: var(--accent);
  font-weight: 500;
}

.prose strong {
  color: var(--fg);
  font-weight: 500;
}

.prose em {
  font-style: italic;
  color: var(--fg-soft);
}

.footer-links {
  margin-top: 0.85rem;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.footer-links a {
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.1em;
  text-decoration: none;
  transition:
    color 240ms var(--ease),
    border-color 240ms var(--ease);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--fg);
  border-color: var(--rule-strong);
  outline: none;
}

/* ------------------------------------------------------------------ *
 *  Motion                                                             *
 * ------------------------------------------------------------------ */

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawline {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.eyebrow,
.hero-line,
.lede,
.cta {
  opacity: 0;
  animation: rise 720ms var(--ease) forwards;
  will-change: opacity, transform;
}

.eyebrow {
  animation-delay: 80ms;
}
.hero-line--1 {
  animation-delay: 220ms;
}
.hero-line--2 {
  animation-delay: 340ms;
}
.lede {
  animation-delay: 560ms;
}
.cta {
  animation-delay: 720ms;
}

.eyebrow .rule {
  animation: drawline 640ms cubic-bezier(0.6, 0.05, 0.2, 1) 200ms backwards;
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow,
  .hero-line,
  .lede,
  .cta,
  .eyebrow .rule,
  .brand-status {
    opacity: 1;
    animation: none;
    transform: none;
  }
  .principles li {
    transition: none;
  }
  .cta-arrow {
    transition: none;
  }
}

/* ------------------------------------------------------------------ *
 *  Focus                                                              *
 * ------------------------------------------------------------------ */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
