:root {
  --void: #07080b;
  --ink: #0c0d12;
  --panel: #12141b;
  --panel-2: #181b24;
  --line: rgba(236, 230, 220, 0.1);
  --line-strong: rgba(236, 230, 220, 0.18);
  --bone: #ece6dc;
  --bone-dim: #9c9588;
  --ember: #e07a3d;
  --ember-hot: #f19a5c;
  --ember-soft: rgba(224, 122, 61, 0.14);
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.75rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(224, 122, 61, 0.16), transparent 58%),
    radial-gradient(700px 480px at 92% 8%, rgba(72, 92, 140, 0.16), transparent 55%);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--bone);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ember-hot);
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 0.9rem;
  background: var(--ember);
  color: #1a0d06;
  text-decoration: none;
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

.kicker,
.meta-line,
.num,
.chip,
.copy,
.footer-domain {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.7em;
}

h1 {
  font-size: clamp(3.4rem, 11vw, 7.4rem);
}

h2 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

h3 {
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  margin-bottom: 0.45em;
}

p {
  margin: 0 0 1em;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem var(--gutter);
  background: color-mix(in srgb, var(--void) 72%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--bone);
}

.mark {
  width: 28px;
  height: 28px;
  color: var(--bone);
}

.nav-word {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--bone-dim);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--bone);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 860px);
  display: grid;
  align-items: end;
  padding: clamp(4rem, 10vw, 7.5rem) var(--gutter) 4.5rem;
  overflow: hidden;
}

.orbits {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 18ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--ember-hot);
}

.lede {
  max-width: 38rem;
  color: var(--bone-dim);
  font-size: 1.12rem;
}

.lede a {
  color: var(--bone);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  transition: transform 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ember);
  color: #1a0d06;
}

.btn-primary:hover {
  background: var(--ember-hot);
  color: #1a0d06;
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--bone);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  color: var(--bone);
  border-color: color-mix(in srgb, var(--ember) 50%, var(--line-strong));
}

.band {
  position: relative;
  z-index: 1;
  border-block: 1px solid var(--line);
  padding: 2.4rem var(--gutter);
}

.band p {
  max-width: 46rem;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.section,
.contact {
  scroll-margin-top: 4.75rem;
}

.section {
  position: relative;
  z-index: 1;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 7rem) var(--gutter);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.6rem;
}

.section-copy {
  color: var(--bone-dim);
}

.flagship {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, var(--ember-soft), transparent 42%),
    var(--panel);
  margin-bottom: 1.1rem;
}

.flagship-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.chip {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--ember) 55%, transparent);
  color: var(--ember-hot);
}

.flagship p,
.project p,
.principles p {
  color: var(--bone-dim);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 1.1rem 0 1.4rem;
  list-style: none;
}

.tags li {
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--bone-dim);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--bone);
}

.text-link:hover {
  color: var(--ember-hot);
}

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

.project {
  padding: 1.45rem 1.4rem 1.5rem;
  border: 1px solid var(--line);
  background: var(--ink);
  transition: border-color 180ms var(--ease), transform 180ms var(--ease), background 180ms var(--ease);
}

.project:hover {
  border-color: var(--line-strong);
  background: var(--panel);
  transform: translateY(-2px);
}

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

.principles article {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.num {
  display: block;
  margin-bottom: 1rem;
  color: var(--ember);
}

.contact {
  position: relative;
  z-index: 1;
  margin: 0 var(--gutter) 5rem;
  padding: clamp(2.4rem, 5vw, 3.4rem);
  border: 1px solid var(--line);
  background: var(--panel);
}

.contact h2 {
  margin-bottom: 0.4em;
}

.contact p {
  max-width: 34rem;
  color: var(--bone-dim);
}

.footer {
  position: relative;
  z-index: 1;
  padding: 2.4rem var(--gutter) 3rem;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.footer-brand {
  margin: 0 0 0.25rem;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.footer-domain {
  margin: 0;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.3rem;
}

.footer nav a {
  color: var(--bone-dim);
  text-decoration: none;
}

.footer nav a:hover {
  color: var(--bone);
}

.disclaimer {
  max-width: 48rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--bone-dim);
}

.disclaimer a {
  color: var(--bone);
}

.copy {
  margin: 1.4rem 0 0;
}

.legal {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 7rem) var(--gutter) 5rem;
}

.legal h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
}

.legal h2 {
  font-size: 1.8rem;
  margin-top: 1.8em;
}

.legal p {
  color: var(--bone-dim);
}

.legal a {
  color: var(--bone);
}

@media (max-width: 820px) {
  .project-grid,
  .principles {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    max-width: none;
  }
}

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

  .footer-top {
    flex-direction: column;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .project {
    transition: none;
  }

  .btn:hover,
  .project:hover {
    transform: none;
  }
}
