:root {
  --bg: #f7f6f2;
  --bg-2: #eceae4;
  --surface: rgba(255, 255, 255, 0.42);
  --line: rgba(31, 33, 36, 0.18);
  --text: #1c1f24;
  --text-dim: #5a606a;
  --accent: #155f85;
  --focus: #209f83;
  --header-bg: rgba(247, 246, 242, 0.82);
  --container: 1080px;
  --shadow: 0 20px 40px rgba(15, 20, 28, 0.08);
}

:root[data-theme="dark"] {
  --bg: #101317;
  --bg-2: #171c23;
  --surface: rgba(24, 31, 40, 0.62);
  --line: rgba(198, 210, 224, 0.2);
  --text: #e8edf4;
  --text-dim: #a8b2bf;
  --accent: #8cd1f4;
  --focus: #5cd0b2;
  --header-bg: rgba(16, 19, 23, 0.8);
  --shadow: 0 24px 46px rgba(2, 4, 7, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(170deg, var(--bg), var(--bg-2));
  line-height: 1.65;
  overflow-x: hidden;
}

h1,
h2,
h3,
.eyebrow {
  font-family: "Instrument Serif", serif;
  letter-spacing: 0.01em;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 3.2rem));
  margin: 0 auto;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.wash {
  position: absolute;
  border-radius: 999px;
  filter: blur(50px);
}

.wash-a {
  width: 400px;
  height: 400px;
  top: -140px;
  right: -120px;
  background: rgba(33, 159, 131, 0.16);
}

.wash-b {
  width: 440px;
  height: 440px;
  left: -120px;
  bottom: -160px;
  background: rgba(64, 127, 187, 0.14);
}

.grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.05) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  opacity: 0.25;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(8px);
}

.nav-row {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 0.97rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.6rem;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.site-nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.93rem;
  color: var(--text-dim);
}

.site-nav a:hover {
  color: var(--text);
}

.theme-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 0.52rem 0.9rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.79rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--focus);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.hero {
  padding: 8.2rem 0 4.2rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.84rem;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 1.5rem 0 0;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  line-height: 0.95;
  max-width: 14ch;
}

h1 span {
  display: block;
  opacity: 0.78;
  margin-top: 0.35rem;
}

.lead {
  margin: 2rem 0 0;
  max-width: 65ch;
  color: var(--text-dim);
  font-size: 1.08rem;
}

.hero-meta {
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  max-width: 45rem;
}

.hero-meta li {
  border-top: 1px solid var(--line);
  padding-top: 0.72rem;
  color: var(--text-dim);
}

.hero-meta strong {
  color: var(--text);
  font-weight: 700;
}

.section {
  padding: 4rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.8rem;
  max-width: 58ch;
}

h2 {
  margin: 0.65rem 0 0;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.02;
}

.minimal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.minimal-grid article {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

h3 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.12;
}

p {
  margin: 0.7rem 0 0;
  color: var(--text-dim);
}

.licensing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pathway {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.2rem;
}

.pathway li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.pathway span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
}

.contact-shell {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.inline-link {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.08rem;
  font-weight: 600;
}

.inline-link:hover {
  border-color: var(--focus);
}

.site-footer {
  padding: 1.6rem 0 2.2rem;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.active {
  animation: reveal 0.7s ease forwards;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .minimal-grid,
  .licensing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(var(--container), calc(100% - 1.7rem));
  }

  .nav-row {
    min-height: 72px;
  }

  .hero {
    padding-top: 5.8rem;
  }

  .pathway li {
    grid-template-columns: 1fr;
  }

  .contact-shell {
    padding: 1.3rem;
  }
}
