:root {
  --paper: #f2f0e8;
  --paper-deep: #e7e3d7;
  --ink: #151714;
  --muted: #686b62;
  --line: rgba(21, 23, 20, .18);
  --green: #174d3c;
  --lime: #c8f26b;
  --white: #fffdf7;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
  --serif: "Newsreader", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { color: var(--white); background: var(--green); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; background: var(--ink); color: var(--white); transition: top .2s; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, height .3s;
}
.site-header.scrolled { height: 64px; background: rgba(242, 240, 232, .9); border-color: var(--line); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-size: 1.05rem; font-weight: 700; letter-spacing: .12em; }
.brand-mark { width: 27px; height: 27px; display: flex; align-items: flex-end; gap: 2px; transform: rotate(-8deg); }
.brand-mark span { width: 7px; background: var(--ink); border-radius: 2px 2px 0 0; }
.brand-mark span:nth-child(1) { height: 20px; }
.brand-mark span:nth-child(2) { height: 27px; }
.brand-mark span:nth-child(3) { height: 14px; }
.site-nav { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 3rem); font-size: .78rem; font-weight: 600; }
.site-nav > a:not(.nav-cta) { position: relative; }
.site-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.35rem; height: 1px; background: var(--ink); transition: right .25s; }
.site-nav > a:not(.nav-cta):hover::after { right: 0; }
.nav-cta { padding: .68rem 1rem; border: 1px solid var(--ink); border-radius: 100px; transition: color .2s, background .2s; }
.nav-cta:hover { color: var(--paper); background: var(--ink); }
.menu-toggle { display: none; }

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  padding: 9rem clamp(1.25rem, 5vw, 6rem) 5rem;
  overflow: hidden;
}
.eyebrow { display: flex; align-items: center; gap: .65rem; margin: 0 0 1.8rem; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow span { width: 24px; height: 1px; background: currentColor; }
.eyebrow.light { color: var(--lime); }
h1, h2 { margin: 0; font-weight: 500; letter-spacing: -.055em; line-height: .91; }
h1 { max-width: 760px; font-size: clamp(4rem, 7.6vw, 8.2rem); }
h1 em, h2 em { font-family: var(--serif); font-weight: 500; }
.hero-lede { max-width: 610px; margin: 2rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.22rem); line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 2rem; margin-top: 2.3rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 2rem; padding: 1rem 1.25rem; border-radius: 100px; font-size: .8rem; font-weight: 700; }
.button-primary { color: var(--white); background: var(--green); box-shadow: 0 8px 24px rgba(23, 77, 60, .15); transition: transform .2s, box-shadow .2s; }
.button-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(23, 77, 60, .22); }
.text-link { padding: .6rem 0; border-bottom: 1px solid var(--ink); font-size: .78rem; font-weight: 600; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; margin-top: 3.8rem; color: var(--muted); font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; }
.hero-meta span { display: flex; align-items: center; gap: .55rem; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

.hero-visual { position: relative; min-height: min(640px, 70vw); border-radius: 46% 46% 42% 40%; background: var(--green); box-shadow: 0 35px 80px rgba(18, 50, 39, .18); isolation: isolate; }
.visual-grid { position: absolute; inset: 0; opacity: .17; background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px); background-size: 36px 36px; border-radius: inherit; }
.orbit { position: absolute; border: 1px solid rgba(200, 242, 107, .35); border-radius: 50%; }
.orbit-one { width: 72%; aspect-ratio: 1; left: 14%; top: 14%; }
.orbit-two { width: 48%; aspect-ratio: 1; left: 26%; top: 26%; }
.content-card { position: absolute; z-index: 2; width: 42%; padding: 1.2rem; border: 1px solid rgba(255,255,255,.32); background: rgba(255,255,255,.9); box-shadow: 0 18px 40px rgba(0,0,0,.16); backdrop-filter: blur(8px); }
.content-card p { margin: 1rem 0 0; font-family: var(--serif); font-size: clamp(1rem, 1.6vw, 1.5rem); line-height: 1.05; }
.card-label { font-family: var(--mono); font-size: .52rem; letter-spacing: .1em; }
.card-source { top: 11%; left: 6%; transform: rotate(-5deg); }
.card-brief { top: 40%; right: 5%; transform: rotate(4deg); }
.card-output { bottom: 7%; left: 17%; transform: rotate(-2deg); }
.source-lines { display: grid; gap: .35rem; margin-top: 1.4rem; }
.source-lines span { height: 5px; background: var(--paper-deep); }
.source-lines span:nth-child(1) { width: 86%; }
.source-lines span:nth-child(2) { width: 67%; }
.source-lines span:nth-child(3) { width: 76%; }
.brief-dots { display: flex; gap: 5px; margin-top: 1.5rem; }
.brief-dots i { width: 8px; height: 8px; background: var(--green); border-radius: 50%; }
.brief-dots i:nth-child(2) { background: var(--lime); }
.brief-dots i:nth-child(3) { background: #d8d3c5; }
.output-icons { display: flex; gap: .55rem; margin-top: 1.3rem; }
.output-icons span { display: grid; place-items: center; width: 34px; height: 34px; color: var(--white); background: var(--green); border-radius: 50%; font-family: var(--mono); font-size: .66rem; }
.output-icons span:nth-child(2) { background: var(--lime); color: var(--ink); }
.output-icons span:nth-child(3) { background: #d8d3c5; color: var(--ink); }
.visual-stamp { position: absolute; z-index: 3; right: 9%; top: 10%; width: 72px; height: 72px; display: grid; place-items: center; color: var(--lime); border: 1px solid var(--lime); border-radius: 50%; font-family: var(--mono); font-size: .52rem; line-height: 1.25; text-align: center; transform: rotate(9deg); }
.visual-stamp span { display: block; font-size: .75rem; }

.ticker { overflow: hidden; padding: 1.25rem 0; color: var(--white); background: var(--ink); }
.ticker-track { width: max-content; display: flex; align-items: center; gap: 2.2rem; animation: ticker 24s linear infinite; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; }
.ticker-track i { color: var(--lime); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { padding: clamp(6rem, 10vw, 10rem) clamp(1.25rem, 5vw, 6rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 5rem; }
.section-heading h2, .principles-top h2 { font-size: clamp(3rem, 5.5vw, 6.3rem); }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.workflow-step { position: relative; padding: 2.2rem 2.5rem 0 0; }
.workflow-step + .workflow-step { padding-left: 2.5rem; border-left: 1px solid var(--line); }
.step-number { position: absolute; top: 2rem; right: 2rem; color: var(--muted); font-family: var(--mono); font-size: .65rem; }
.step-icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 5rem; border: 1px solid var(--line); border-radius: 50%; font-family: var(--serif); font-size: 1.8rem; }
.workflow-step h3, .principle-card h3 { margin: 0 0 1rem; font-family: var(--serif); font-size: 1.65rem; font-weight: 600; }
.workflow-step p, .principle-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.75; }

.formats { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(3rem, 8vw, 9rem); color: var(--white); background: var(--green); }
.formats-intro { position: sticky; top: 8rem; align-self: start; }
.formats-intro h2 { font-size: clamp(3.5rem, 6vw, 6.8rem); }
.formats-intro > p:last-child { max-width: 400px; margin-top: 2rem; color: rgba(255,255,255,.62); font-size: .95rem; line-height: 1.75; }
.format-list { border-top: 1px solid rgba(255,255,255,.24); }
.format-row { display: grid; grid-template-columns: 34px 1fr auto 34px; gap: 1rem; align-items: center; padding: 2rem 0; border-bottom: 1px solid rgba(255,255,255,.24); transition: padding .25s, background .25s; }
.format-row:hover { padding-left: 1rem; padding-right: 1rem; background: rgba(255,255,255,.07); }
.format-index, .format-tag { font-family: var(--mono); font-size: .58rem; letter-spacing: .09em; }
.format-index { color: var(--lime); }
.format-tag { color: rgba(255,255,255,.5); }
.format-row h3 { margin: 0 0 .45rem; font-family: var(--serif); font-size: 1.55rem; font-weight: 500; }
.format-row p { margin: 0; color: rgba(255,255,255,.55); font-size: .77rem; }
.format-arrow { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; }

.principles-top { display: flex; justify-content: space-between; align-items: end; margin-bottom: 5rem; }
.principles-top .eyebrow { align-self: start; }
.principle-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.principle-card { min-height: 300px; padding: 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle-icon { display: block; margin-bottom: 4.5rem; color: var(--green); font-family: var(--mono); font-size: .65rem; }
.principle-card p { max-width: 440px; }

.mascot { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 9rem); align-items: center; border-top: 1px solid var(--line); }
.mascot-portrait { position: relative; overflow: hidden; min-height: 540px; border-radius: 46% 46% 42% 40%; background: var(--green); isolation: isolate; }
.mascot-portrait img { position: absolute; z-index: 1; left: 10%; bottom: -3%; width: 80%; height: auto; filter: drop-shadow(0 24px 28px rgba(0,0,0,.2)); }
.mascot-copy h2 { font-size: clamp(3.5rem, 6vw, 6.8rem); }
.mascot-copy > p:last-child { max-width: 480px; margin: 2rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.75; }

.get-started { padding-top: 2rem; }
.start-card { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 7vw, 8rem); align-items: center; padding: clamp(2rem, 5vw, 5rem); color: var(--white); background: var(--ink); }
.start-copy h2 { font-size: clamp(3rem, 5vw, 5.8rem); }
.start-copy > p:last-child { max-width: 440px; margin-top: 2rem; color: rgba(255,255,255,.58); line-height: 1.7; }
.code-panel { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.2); background: #20231f; }
.code-header { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 1rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.code-header > span { width: 7px; height: 7px; border-radius: 50%; background: #6e716b; }
.code-header > span:first-child { background: #f07f65; }
.code-header > span:nth-child(2) { background: #e9c65b; }
.code-header > span:nth-child(3) { background: var(--lime); }
.code-header b { margin-left: auto; color: rgba(255,255,255,.35); font-family: var(--mono); font-size: .55rem; font-weight: 400; letter-spacing: .1em; }
.code-panel code { display: block; padding: 2rem 1.5rem 4rem; color: #d9ddd7; font-family: var(--mono); font-size: clamp(.6rem, 1vw, .75rem); line-height: 1.9; white-space: pre-wrap; }
.prompt { color: var(--lime); }
.copy-button { position: absolute; right: 1rem; bottom: 1rem; padding: .6rem .85rem; color: var(--ink); background: var(--lime); border: 0; border-radius: 100px; cursor: pointer; font-size: .65rem; font-weight: 700; }
.copy-button:hover { background: var(--white); }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 3rem; padding: 4rem clamp(1.25rem, 5vw, 6rem) 2rem; border-top: 1px solid var(--line); }
.footer-brand p { margin: 1rem 0 0; color: var(--muted); font-family: var(--serif); font-size: 1.15rem; }
.footer-links { display: flex; gap: 2rem; font-size: .75rem; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: .3rem; }
.copyright { grid-column: 1 / -1; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .58rem; text-transform: uppercase; letter-spacing: .08em; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 9rem; }
  .hero-visual { min-height: 560px; }
  .section-heading, .principles-top { display: block; }
  .section-heading .eyebrow, .principles-top .eyebrow { margin-bottom: 2rem; }
  .formats { grid-template-columns: 1fr; }
  .formats-intro { position: static; }
  .mascot { grid-template-columns: 1fr; }
  .start-card { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header { height: 66px; }
  .menu-toggle { z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 42px; height: 42px; padding: 0 9px; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle > span:not(.sr-only) { width: 100%; height: 1px; background: var(--ink); transition: transform .25s; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 2rem; padding: 5rem 2rem; background: var(--paper); opacity: 0; visibility: hidden; transform: translateY(-15px); transition: opacity .25s, visibility .25s, transform .25s; font-size: 1.25rem; }
  .site-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-cta { margin-top: 1rem; }
  .hero { min-height: auto; padding-top: 8rem; }
  h1 { font-size: clamp(3.7rem, 18vw, 5.6rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .hero-meta { margin-top: 2.5rem; }
  .hero-visual { min-height: 470px; border-radius: 40% 44% 36% 35%; }
  .content-card { width: 48%; padding: .9rem; }
  .card-source { left: 3%; }
  .card-brief { right: 2%; }
  .card-output { left: 12%; }
  .visual-stamp { right: 3%; top: 8%; width: 60px; height: 60px; }
  .workflow-grid, .principle-grid { grid-template-columns: 1fr; }
  .workflow-step, .workflow-step + .workflow-step { padding: 2rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .step-icon { margin-bottom: 3rem; }
  .step-number { right: 0; }
  .format-row { grid-template-columns: 24px 1fr 28px; }
  .format-tag { display: none; }
  .format-row p { max-width: 260px; }
  .principle-card { min-height: 250px; }
  .principle-icon { margin-bottom: 3rem; }
  .mascot-portrait { min-height: 430px; }
  .mascot-portrait img { left: 6%; width: 88%; }
  .start-card { padding: 2rem 1.25rem; }
  .code-panel code { padding: 1.5rem 1rem 4rem; font-size: .58rem; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
