/* Loxley — black page, bone ink, one lime. Inter for the machine, Instrument Serif italic for the human voice. */
:root {
  --bg: #050605;
  --ink: #F4F4EF;
  --ink-2: rgba(244, 244, 239, 0.64);
  --ink-3: rgba(244, 244, 239, 0.4);
  --line: rgba(244, 244, 239, 0.12);
  --line-2: rgba(244, 244, 239, 0.26);
  --fill: rgba(244, 244, 239, 0.04);
  --lime: #C8F135;
  --lime-dim: rgba(200, 241, 53, 0.14);
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --voice: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 64px);
  --max: 1280px;
  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; color: inherit; }
::selection { background: var(--lime); color: #000; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--ink); color: #000; padding: 8px 12px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: -0.01em; }
.voice { font-family: var(--voice); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.quiet { color: var(--ink-3); } .small { font-size: 14px; } .tiny { font-size: 12px; }
.wrap { max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stack { display: grid; gap: 10px; align-content: start; }
.stack a { color: var(--ink-2); transition: color .2s; } .stack a:hover { color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--radius); border: 1px solid transparent; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .2s var(--ease), border-color .2s, color .2s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--lime); color: #0a0d02; } .btn-primary:hover { background: #d7ff4f; }
.btn-secondary { background: transparent; border-color: var(--line-2); } .btn-secondary:hover { border-color: var(--ink); }
.btn-quiet { background: none; color: var(--ink-2); padding-inline: 6px; } .btn-quiet:hover { color: var(--ink); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; background: linear-gradient(var(--bg) 30%, transparent); }
.nav-inner { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); padding: 20px var(--gutter); max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand img, .brand .mark { border-radius: 8px; flex: none; }
.nav-links { display: flex; gap: 24px; font-size: 14px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.ca-chip { background: var(--fill); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.ca-chip:hover { color: var(--ink); border-color: var(--line-2); }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; padding: 120px var(--gutter) 72px; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-copy { position: relative; z-index: 1; max-width: 680px; min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin-bottom: 22px; letter-spacing: 0.01em; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--lime-dim); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.hero-title { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.2rem); line-height: 0.98; font-weight: 650; letter-spacing: -0.045em; }
.hero-title .voice { font-weight: 400; color: var(--lime); letter-spacing: -0.02em; }
.hero-line { margin: 22px 0 36px; font-size: clamp(16px, 1rem + 0.3vw, 19px); color: var(--ink-2); max-width: 54ch; }

.job-line { position: relative; display: flex; gap: 16px; align-items: flex-end; border-bottom: 1px solid var(--line-2); padding-bottom: 16px; }
.job-line:focus-within { border-bottom-color: var(--lime); }
.job-input { flex: 1; min-width: 0; width: 100%; background: none; border: 0; outline: none; resize: none; padding: 0; font-size: clamp(1.6rem, 1rem + 1.9vw, 2.6rem); line-height: 1.2; caret-color: var(--lime); }
.btn-send { flex: none; width: 56px; height: 56px; border: 0; border-radius: 14px; background: var(--lime); color: #0a0d02; cursor: pointer; display: grid; place-items: center; transition: transform .15s, background .2s; }
.btn-send:hover { background: #d7ff4f; } .btn-send:active { transform: scale(.96); }
.btn-send svg { width: 24px; height: 24px; transform: rotate(45deg); }
.try-row { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-top: 14px; font-size: 15px; }
.try { background: none; border: 0; padding: 0; color: var(--ink-2); cursor: pointer; }
.try:hover { color: var(--ink); } .try[aria-pressed='true'] { color: var(--lime); }

/* sections */
.section { padding-block: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: 48px; align-content: start; }
.section-head .eyebrow { margin-bottom: 0; color: var(--lime); }
.h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); line-height: 1.04; font-weight: 650; letter-spacing: -0.035em; }
.h2 .voice { font-weight: 400; color: var(--lime); }
.lede { color: var(--ink-2); font-size: 18px; max-width: 46ch; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }

.flight { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--bg); padding: 26px 24px 28px; display: grid; gap: 8px; align-content: start; }
.step-n { color: var(--lime); font-size: 12px; }
.step h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.step p { color: var(--ink-2); font-size: 15px; }

.rules-card { position: sticky; top: 96px; border: 1px solid var(--line-2); border-radius: 18px; padding: 26px; background: radial-gradient(120% 80% at 100% 0%, var(--lime-dim), transparent 60%), var(--fill); display: grid; gap: 18px; }
.card-label { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.card-job { font-size: 28px; line-height: 1.2; }
.rules { list-style: none; padding: 0; display: grid; font-size: 15px; }
.rules li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); position: relative; }
.rules li::before { content: ''; position: absolute; left: 4px; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.rules li { animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.limits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.limits dt { font-size: 12px; color: var(--ink-3); } .limits dd { font-size: 14px; }
.card-done { font-size: 15px; color: var(--ink-2); padding-top: 4px; border-top: 1px dashed var(--line-2); padding-top: 16px; }
.card-done strong { color: var(--lime); font-weight: 600; }

.tithe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tithe { border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: grid; gap: 10px; background: var(--fill); transition: border-color .3s, transform .4s var(--ease); position: relative; overflow: hidden; }
.tithe:hover { border-color: var(--lime); }

.tithe h3 { font-size: 22px; letter-spacing: -0.02em; } .tithe p { color: var(--ink-2); font-size: 15px; }

.ca { display: grid; gap: 10px; margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.ca code { font-size: 14px; overflow-wrap: anywhere; }
.feed { border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.feed-list { list-style: none; padding: 0; margin-top: 12px; display: grid; font-size: 14px; }
.feed-list li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); animation: rise .5s var(--ease) both; }
.feed-list li:last-child { border-bottom: 0; }
.feed-list time { color: var(--ink-3); white-space: nowrap; font-size: 12px; }
.feed-list b { color: var(--lime); font-weight: 600; }

.foot { border-top: 1px solid var(--line); padding-block: 56px 32px; }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.foot-legal { margin-top: 48px; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .flight, .split { grid-template-columns: minmax(0, 1fr); }
  .rules-card { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ca-chip { display: none; }
  .hero { align-items: end; padding-top: 46vh; }
  .steps, .tithe-grid { grid-template-columns: minmax(0, 1fr); }
  .limits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn-send { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot-live, .rules li, .feed-list li { animation: none; }
}

/* ================= motion ================= */
/* the mark: lime hood, dark face, lime eyes that blink */
.mark .m-hood { fill: var(--lime); transition: transform .4s var(--ease); transform-origin: 50% 80%; }
.mark .m-face { fill: var(--bg); }
.mark .m-eyes { fill: none; stroke: var(--lime); stroke-width: 3.4; stroke-linecap: round; transform-origin: 50% 53%; animation: blink 4.2s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.brand:hover .mark .m-eyes { animation: glare .5s var(--ease) both; }
@keyframes glare { 50% { transform: scaleY(.15) translateY(1px); } }

/* intro: the hood is drawn, filled, the eyes open, then the curtain lifts */
.intro { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; align-content: center; gap: 18px; animation: lift .8s var(--ease) 1.75s forwards; pointer-events: none; }
.intro-mark { width: 96px; height: 96px; overflow: visible; }
.i-hood { fill: var(--lime); fill-opacity: 0; stroke: var(--lime); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .8s var(--ease) .1s forwards, fillin .35s ease .8s forwards; }
.i-face { fill: var(--bg); opacity: 0; animation: fade .3s ease .95s forwards; }
.i-eyes { fill: none; stroke: var(--lime); stroke-width: 3.4; stroke-linecap: round; transform-origin: 50% 53%; transform: scaleY(0); animation: open .35s var(--ease) 1.25s forwards; filter: drop-shadow(0 0 4px var(--lime)); }
.intro-word { font-weight: 700; font-size: 22px; letter-spacing: -.02em; opacity: 0; animation: fade .4s ease 1.1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; } }
@keyframes fade { to { opacity: 1; } }
@keyframes open { 60% { transform: scaleY(1.2); } to { transform: scaleY(1); } }
@keyframes lift { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
.intro { clip-path: inset(0 0 0 0); }

/* hero copy arrives after the intro */
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .ln > span { display: inline-block; transform: translateY(105%); animation: up 1s var(--ease) forwards; animation-delay: 1.95s; }
.hero-title .ln + .ln > span { animation-delay: 2.08s; }
.hero-copy .eyebrow, .hero-line, .job { opacity: 0; transform: translateY(14px); animation: up .9s var(--ease) forwards; }
.hero-copy .eyebrow { animation-delay: 1.85s; } .hero-line { animation-delay: 2.25s; } .job { animation-delay: 2.38s; }
@keyframes up { to { transform: none; opacity: 1; } }
.hero-canvas { cursor: crosshair; opacity: 0; animation: fade 1.2s ease 1.9s forwards; }

/* scroll progress, with the arrowhead riding its tip */
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, transparent, var(--lime)); transform-origin: 0 50%; transform: scaleX(0); }

/* marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); padding: 22px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: slide 38s linear infinite; font-size: clamp(28px, 2rem + 1.6vw, 56px); font-weight: 650; letter-spacing: -.04em; white-space: nowrap; }
.marquee-track span:nth-of-type(2n) { font-family: var(--voice); font-style: italic; font-weight: 400; color: var(--lime); }
.marquee-track svg { width: .62em; height: .62em; fill: var(--lime); flex: none; transform: rotate(90deg); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* headings rise word by word */
.h2.words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.h2.words .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); }
.h2.words.in .w > span { transform: none; }

/* cursor spotlight on cards */
.step, .rules-card, .feed { position: relative; }
.step::after, .tithe::after, .rules-card::after, .feed::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), rgba(200, 241, 53, .1), transparent 70%); opacity: 0; transition: opacity .3s; }
.step:hover::after, .tithe:hover::after, .rules-card:hover::after, .feed:hover::after { opacity: 1; }
.step { transition: background .3s; } .step:hover { background: #080a07; }
.step:hover .step-n { letter-spacing: .04em; } .step-n { transition: letter-spacing .4s var(--ease); }

/* tithe art */
.tithe-art { width: 100%; height: 110px; display: block; margin: -6px 0 4px; }

/* primary buttons: a sheen sweeps across */
.btn-primary, .btn-send { position: relative; overflow: hidden; transition: background .2s var(--ease), translate .25s var(--ease), transform .15s; }
.btn-primary::before, .btn-send::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); animation: sheen 4.5s ease-in-out infinite 3s; pointer-events: none; }
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn-send svg { position: relative; transition: transform .3s var(--ease); }
.btn-send:hover svg { transform: rotate(45deg) translate(2px, -2px); }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .hero-title .ln > span, .hero-copy .eyebrow, .hero-line, .job, .hero-canvas { animation: none; transform: none; opacity: 1; }
  .marquee-track, .mark .m-eyes, .btn-primary::before, .btn-send::before { animation: none; }
}

/* config-driven bits */
.announce { background: var(--lime); color: #0a0d02; text-align: center; font-size: 13px; font-weight: 600; padding: 7px var(--gutter); }
.announce[hidden] { display: none; }
.stack-r { display: grid; gap: 16px; align-content: start; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.stats[hidden], .stats div[hidden] { display: none; }
.stats div { background: var(--bg); padding: 18px 20px; display: grid; gap: 4px; }
.stats dt { font-size: 12px; color: var(--ink-3); }
.stats dd { font-size: 26px; font-weight: 650; letter-spacing: -.03em; color: var(--lime); }
