:root {
  --ink: #0b1419;
  --ink-soft: #122029;
  --panel: rgba(247, 244, 236, 0.92);
  --panel-solid: #f7f4ec;
  --line: rgba(11, 20, 25, 0.12);
  --text: #102027;
  --muted: #5a6b73;
  --teal: #0f766e;
  --teal-bright: #14b8a6;
  --amber: #b8893d;
  --aggressive: #b45309;
  --stable: #0f766e;
  --agent: #1d4e6b;
  --display: "Sora", "Instrument Sans", sans-serif;
  --sans: "Instrument Sans", "Sora", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 4px;
  --shadow: 0 18px 50px rgba(8, 18, 24, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--panel-solid);
  font-family: var(--sans);
  background: var(--ink);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1000px 520px at 18% 12%, rgba(20, 184, 166, 0.22), transparent 60%),
    radial-gradient(900px 480px at 88% 18%, rgba(184, 137, 61, 0.18), transparent 55%),
    linear-gradient(165deg, #081018 0%, #0d1c24 42%, #132a2e 100%);
}
.hero-visual {
  width: 100%;
  height: 100%;
  opacity: 0.9;
  animation: drift 18s ease-in-out infinite alternate;
}
.candles rect {
  transform-origin: bottom;
  animation: rise 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.candles rect:nth-child(2) { animation-delay: 0.08s; }
.candles rect:nth-child(3) { animation-delay: 0.14s; }
.candles rect:nth-child(4) { animation-delay: 0.2s; }
.candles rect:nth-child(5) { animation-delay: 0.26s; }
.candles rect:nth-child(6) { animation-delay: 0.1s; }
.candles rect:nth-child(7) { animation-delay: 0.18s; }
.candles rect:nth-child(8) { animation-delay: 0.24s; }
.candles rect:nth-child(9) { animation-delay: 0.3s; }
.candles rect:nth-child(10) { animation-delay: 0.36s; }
.wave { animation: waveShift 12s ease-in-out infinite alternate; }

.topbar,
main {
  position: relative;
  z-index: 1;
}

.topbar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px 0;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(247, 244, 236, 0.28);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--panel-solid);
}

.hero {
  min-height: calc(100vh - 70px);
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(48px, 12vh, 120px) 24px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.brand {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  max-width: 14ch;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero h1 {
  margin: 8px 0 0;
  max-width: 16ch;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: rgba(247, 244, 236, 0.92);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}
.support {
  margin: 0;
  max-width: 42ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(232, 236, 230, 0.78);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.cta.primary {
  background: var(--panel-solid);
  color: var(--ink);
}
.cta.primary:hover { transform: translateY(-2px); }
.cta.ghost {
  border: 1px solid rgba(247, 244, 236, 0.35);
  color: var(--panel-solid);
  background: transparent;
}
.cta.ghost:hover {
  border-color: rgba(247, 244, 236, 0.7);
  transform: translateY(-2px);
}

.capabilities {
  background: var(--panel-solid);
  color: var(--text);
  padding: 72px 24px 96px;
  box-shadow: var(--shadow);
}
.section-head {
  max-width: 1120px;
  margin: 0 auto 36px;
}
.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}
.section-head p {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
  line-height: 1.55;
}

.entries {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.entry {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.entry:hover {
  border-color: rgba(15, 118, 110, 0.45);
  transform: translateY(-2px);
  background: #ffffff;
}
.entry:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.entry-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 8px;
}
.entry h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.entry .role {
  margin: 0;
  font-weight: 600;
  color: var(--teal);
}
.entry.tone-aggressive .role { color: var(--aggressive); }
.entry.tone-agent .role { color: var(--agent); }
.entry.tone-stable .role { color: var(--stable); }
.entry .summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.entry .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.entry .go {
  justify-self: end;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.entry .go::after {
  content: " →";
}

.footnote {
  max-width: 1120px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .entry {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .entry .go { justify-self: start; }
  .hero { min-height: calc(100svh - 70px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rise {
  from { transform: scaleY(0.2); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}
@keyframes drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.2%, -1%, 0); }
}
@keyframes waveShift {
  from { transform: translateX(0); }
  to { transform: translateX(-2%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
