/* ============================================================
   Lvora — design system. Space Grotesk + Hanken Grotesk.
   Near-black / near-white dual theme, one vermilion accent.
   ============================================================ */
:root {
  --bg: #0A0A0D; --surface: #141419; --surface-2: #1C1C23;
  --text: #F5F4F1; --text-2: #CBCBD2; --muted: #92939C; --faint: #6A6B74;
  --line: rgba(255,255,255,.10); --line-2: rgba(255,255,255,.055);
  --accent: #E5502E; --accent-ink: #F2603C; --on-accent: #fff;
  --nav-bg: rgba(10,10,13,.6); --shadow: 0 18px 50px -24px rgba(0,0,0,.7);
  --font-d: 'Space Grotesk', system-ui, sans-serif;
  --font-b: 'Hanken Grotesk', system-ui, sans-serif;
  --container: 1120px; --radius: 16px;
}
[data-theme="light"] {
  --bg: #FAFAF8; --surface: #FFFFFF; --surface-2: #F4F3F0;
  --text: #17181C; --text-2: #3B3C43; --muted: #54565E; --faint: #6A6C75;
  --line: rgba(23,24,28,.12); --line-2: rgba(23,24,28,.06);
  --accent: #DC471E; --accent-ink: #C43E18; --on-accent: #fff;
  --nav-bg: rgba(250,250,248,.65); --shadow: 0 18px 44px -26px rgba(23,24,28,.28);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font-b);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: hidden;
  transition: background .5s ease, color .5s ease;
}
a { color: inherit; text-decoration: none; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
:where(a, button, input):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 44px); }
.container--narrow { max-width: 720px; }

/* ---------- Type ---------- */
.eyebrow { font-family: var(--font-d); font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.eyebrow--center { display: inline-block; }
.h2 { font-family: var(--font-d); font-weight: 600; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.06; letter-spacing: -.025em; margin-top: .5rem; }
.h2--center { max-width: 20ch; margin-inline: auto; }
.lede { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.55; max-width: 60ch; margin-top: 1.1rem; }
.lede--center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-d); font-weight: 600; font-size: .98rem; line-height: 1; padding: 14px 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease; white-space: nowrap; }
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px -8px var(--accent); }
.btn--primary:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); transform: translateY(-1px); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; backdrop-filter: blur(16px); background: var(--nav-bg); border-bottom: 1px solid transparent; transition: background .5s ease, border-color .35s ease; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { max-width: var(--container); margin-inline: auto; padding: 14px clamp(20px, 5vw, 44px); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand__mark { width: 22px; height: 22px; color: var(--accent); }
.brand__word { font-family: var(--font-d); font-weight: 600; font-size: 1.22rem; letter-spacing: -.02em; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { color: var(--muted); font-size: .95rem; transition: color .2s ease; }
.nav__links a:hover { color: var(--text); }
.nav__right { display: flex; align-items: center; gap: 12px; }
.toggle { width: 36px; height: 36px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--text) 18%, transparent); background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.toggle:hover { border-color: var(--text); }
.toggle svg { width: 17px; height: 17px; }
@media (max-width: 780px) { .nav__links { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__eyebrow { position: absolute; left: 0; right: 0; top: 22%; z-index: 3; text-align: center; font-family: var(--font-d); font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.hero__copy { position: absolute; left: 0; right: 0; bottom: 13%; z-index: 3; text-align: center; padding-inline: 24px; }
.hero__title { font-family: var(--font-d); font-weight: 500; font-size: clamp(1.25rem, 2.3vw, 1.65rem); line-height: 1.2; letter-spacing: -.015em; max-width: 22ch; margin-inline: auto; color: var(--text); }
.hero__sub { margin-top: 14px; color: var(--muted); max-width: 46ch; margin-inline: auto; font-size: 1rem; }
.hero__cta { margin-top: 26px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__scrollcue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; color: var(--faint); font-family: var(--font-d); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; }
@media (max-width: 520px) { .hero__eyebrow { top: 18%; } .hero__copy { bottom: 10%; } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 128px) 0; }
.section--alt { background: var(--surface); }
.section__head { max-width: 60ch; margin-bottom: clamp(40px, 6vw, 64px); }

/* What we build */
.build-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .build-grid { grid-template-columns: 1fr; } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.section--alt .card { background: var(--surface-2); }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--shadow); }
.card__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); margin-bottom: 20px; }
.card__icon svg { width: 23px; height: 23px; }
.card__title { font-family: var(--font-d); font-weight: 600; font-size: 1.28rem; letter-spacing: -.01em; }
.card__body { color: var(--muted); margin-top: 10px; font-size: 1.02rem; }

/* How we work */
.steps { list-style: none; padding: 0; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; padding: clamp(28px, 4vw, 40px) 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n { font-family: var(--font-d); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--accent); line-height: 1; letter-spacing: -.02em; }
.step__title { font-family: var(--font-d); font-weight: 600; font-size: 1.4rem; letter-spacing: -.01em; }
.step__body { color: var(--muted); margin-top: 8px; max-width: 58ch; font-size: 1.05rem; }

/* Work */
.work-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
@media (max-width: 720px) { .work-grid { grid-template-columns: 1fr; } }
.workcard { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 12px; min-height: 220px; }
.workcard__tag { font-family: var(--font-d); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.workcard--soon .workcard__tag { color: var(--muted); }
.workcard__name { font-family: var(--font-d); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; }
.workcard__desc { color: var(--muted); font-size: 1.02rem; }
.workcard__stack { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin-top: auto; }
.workcard__stack li { font-family: var(--font-d); font-size: .78rem; color: var(--text-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.workcard__link { margin-top: auto; font-family: var(--font-d); font-weight: 500; font-size: .95rem; color: var(--accent); }
.workcard__link:hover { text-decoration: underline; }
.stack { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.stack__label { font-family: var(--font-d); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.stack__list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 26px; padding: 0; margin: 0; }
.stack__list li { position: relative; font-family: var(--font-d); font-size: .92rem; color: var(--text-2); }
.stack__list li:not(:last-child)::after { content: "·"; position: absolute; right: -15px; color: var(--faint); }

/* Founders */
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .founders { grid-template-columns: 1fr; } }
.founder { display: flex; gap: 18px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); }
.section--alt .founder { background: var(--surface-2); }
.founder__av { flex-shrink: 0; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-family: var(--font-d); font-weight: 600; font-size: 1.05rem; }
.founder__name { font-family: var(--font-d); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; }
.founder__role { color: var(--muted); margin-top: 3px; font-size: 1rem; }

/* Contact */
.contact { position: relative; }
.contact__cta { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact__alt { margin-top: 16px; color: var(--muted); font-size: .92rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 54px 0 64px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-start; justify-content: space-between; }
.footer__tag { color: var(--muted); margin-top: 12px; max-width: 30ch; font-size: .96rem; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { color: var(--muted); font-size: .96rem; transition: color .2s; }
.footer__links a:hover { color: var(--text); }
.footer__legal { display: flex; flex-direction: column; gap: 6px; color: var(--faint); font-family: var(--font-d); font-size: .82rem; text-align: right; }
@media (max-width: 620px) { .footer__legal { text-align: left; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
