:root {
  --ink: #0b0b0b;
  --ink-2: #161616;
  --ink-3: #242424;
  --paper: #ffffff;
  --paper-2: #f3f3f1;
  --muted: #6b6b6b;
  --muted-dark: #a3a3a3;
  --green: #8be04e;
  --green-deep: #2e7d18;
  --line: #e2e2df;
  --radius: 14px;
  --wrap: 1160px;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p a, li a, .prose a { color: var(--green-deep); text-underline-offset: 3px; }
.dark p a, .dark li a { color: var(--green); }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 760px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--green); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.site-header {
  background: var(--ink);
  color: var(--paper);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--ink-3);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand img { width: 168px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: .92rem;
  padding: 8px 12px; border-radius: 999px; color: #e9e9e9;
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--ink-3); color: #fff; }
.nav a[aria-current="page"] { background: var(--green); color: var(--ink); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--ink-3); color: #fff;
  border-radius: 10px; padding: 8px 12px; font: 600 .9rem var(--body); cursor: pointer;
}
@media (max-width: 1180px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; background: var(--ink);
    padding: 8px 16px 18px; border-bottom: 1px solid var(--ink-3);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .brand img { width: 140px; }
}

/* ---------- buttons, tags ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: 700 1rem var(--body); text-decoration: none;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-green { background: var(--green); color: var(--ink); }
.btn-green:hover { background: #a2ec6c; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-line { border-color: currentColor; color: inherit; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.kicker {
  display: inline-block; font: 700 .78rem var(--body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-deep); margin-bottom: 14px;
}
.dark .kicker { color: var(--green); }
.sticker {
  display: inline-block; background: var(--green); color: var(--ink);
  font: 800 .85rem var(--display); text-transform: uppercase; letter-spacing: .04em;
  padding: 8px 14px; border-radius: 6px; transform: rotate(-3deg);
  box-shadow: 3px 3px 0 var(--ink);
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.tight { padding: clamp(44px, 6vw, 72px) 0; }
.dark { background: var(--ink); color: #f1f1f1; }
.dark .muted { color: var(--muted-dark); }
.soft { background: var(--paper-2); }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.wide-left { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 860px) { .split, .split.wide-left { grid-template-columns: 1fr; } }

/* ---------- home hero / video ---------- */
.hero { background: var(--ink); color: #fff; padding: 28px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 70%;
  background: radial-gradient(ellipse at center, rgba(139,224,78,.18), transparent 65%);
  pointer-events: none;
}
.video-frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: var(--radius); overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px var(--ink-3), 0 30px 80px rgba(0,0,0,.6);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero-copy { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-top: 48px; }
.hero-copy h1 em { font-style: italic; color: var(--green); }
.hero-copy p { color: #cfcfcf; margin: 0; }
@media (max-width: 860px) { .hero-copy { grid-template-columns: 1fr; gap: 18px; margin-top: 32px; } }

/* ---------- marquee ---------- */
.marquee { background: var(--green); color: var(--ink); overflow: hidden; border-block: 2px solid var(--ink); }
.marquee-track {
  display: flex; width: max-content; gap: 0;
  animation: marquee 32s linear infinite;
  font: 800 clamp(1rem, 2vw, 1.35rem) var(--display); text-transform: uppercase; letter-spacing: .02em;
  padding: 14px 0; white-space: nowrap;
}
.marquee-track span { padding: 0 22px; }
.marquee-track span::after { content: "✦"; margin-left: 44px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } html { scroll-behavior: auto; } }

/* ---------- machine feature ---------- */
.machine-shot { position: relative; }
.machine-shot img { margin-inline: auto; max-height: 620px; width: auto; }
.machine-shot .sticker { position: absolute; top: 8%; right: 4%; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink-3); }
.stat { padding: 34px 22px; border-right: 1px solid var(--ink-3); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 800 clamp(2.2rem, 4.5vw, 3.4rem)/1 var(--display); color: var(--green); letter-spacing: -0.03em; }
.stat span { display: block; margin-top: 10px; color: var(--muted-dark); font-size: .95rem; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--ink-3); }
}

/* ---------- book ---------- */
.book-link { display: block; text-decoration: none; position: relative; max-width: 380px; margin-inline: auto; }
.book-link img {
  border-radius: 6px; box-shadow: 14px 14px 0 var(--ink), 0 24px 60px rgba(0,0,0,.25);
  transition: transform .25s;
}
.book-link:hover img { transform: rotate(-1.5deg) translateY(-6px); }
.dark .book-link img { box-shadow: 14px 14px 0 var(--green), 0 24px 60px rgba(0,0,0,.5); }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); border-color: var(--ink); }
.card .thumb { aspect-ratio: 16/10; background: var(--paper-2); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.card .meta { font-size: .82rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.card h3 { margin: 10px 0 10px; }
.card p { margin: 0; color: #3b3b3b; font-size: .98rem; }
.card .more { margin-top: auto; padding-top: 18px; font-weight: 700; color: var(--green-deep); }
.dark .card { background: var(--ink-2); border-color: var(--ink-3); }
.dark .card:hover { border-color: var(--green); box-shadow: none; }
.dark .card p { color: #c9c9c9; }
.dark .card .meta { color: var(--muted-dark); }
.dark .card .more { color: var(--green); }

.promo { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; text-decoration: none; color: #fff; border: 1px solid var(--ink-3); }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.92) 10%, rgba(0,0,0,.15) 70%); }
.promo:hover img { transform: scale(1.04); }
.promo .body { position: relative; z-index: 1; padding: 28px; }
.promo h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.promo p { margin: 0; color: #d6d6d6; }
.promo .more { display: inline-block; margin-top: 14px; color: var(--green); font-weight: 700; }

/* ---------- page header ---------- */
.page-head { background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 46px solid var(--green); opacity: .12;
}
.page-head .lead { color: #cfcfcf; max-width: 720px; margin: 0; }
.page-head h1 { max-width: 900px; }

/* ---------- lists, features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.feature { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.feature .num { font: 800 .9rem var(--display); color: var(--ink); background: var(--green); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 16px; }
.feature p { margin: 0; color: #3b3b3b; }

.tenlist { counter-reset: ten; list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.tenlist li {
  counter-increment: ten; display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: center;
  padding: 16px 18px; background: var(--ink-2); border-radius: 10px;
}
.tenlist li::before { content: counter(ten, decimal-leading-zero); font: 800 1.4rem var(--display); color: var(--green); }
.tenlist li.hot { background: var(--green); color: var(--ink); font-weight: 600; }
.tenlist li.hot::before { color: var(--ink); }

/* ---------- timeline ---------- */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 0 36px; padding-bottom: 44px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 86px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--paper); }
.timeline .year { font: 800 1.35rem var(--display); }
.timeline h3 { margin-bottom: 6px; }
.timeline p { margin: 0; color: #3b3b3b; }
.timeline figure { margin: 18px 0 0; max-width: 340px; }
.timeline li > div { padding-left: 10px; }
@media (max-width: 600px) {
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 30px; }
  .timeline li::before { left: 0; }
  .timeline li > div { padding-left: 0; }
}

figure { margin: 0; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; line-height: 1.45; }
.dark figcaption { color: var(--muted-dark); }
.framed img { border-radius: 10px; border: 1px solid var(--line); }
.dark .framed img { border-color: var(--ink-3); }
.ai-tag { display: inline-block; font: 700 .7rem var(--body); letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--green); padding: 3px 8px; border-radius: 4px; margin-right: 6px; vertical-align: 1px; }
.dark .ai-tag { background: var(--green); color: var(--ink); }

blockquote, .pull {
  margin: 0; padding: 4px 0 4px 26px; border-left: 5px solid var(--green);
  font: 600 clamp(1.2rem, 2.2vw, 1.55rem)/1.45 var(--display); letter-spacing: -0.01em;
}
.pull cite { display: block; margin-top: 12px; font: 500 .9rem var(--body); font-style: normal; color: var(--muted); }

.toc { columns: 2; column-gap: 40px; padding: 0; margin: 0; list-style: none; }
.toc li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--ink-3); display: flex; justify-content: space-between; gap: 16px; }
.toc li span { color: var(--muted-dark); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .toc { columns: 1; } }

.fact-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.fact-strip span { border: 1px solid var(--ink-3); padding: 7px 14px; border-radius: 999px; font-size: .9rem; }
.page-head .fact-strip span { border-color: #3a3a3a; color: #ddd; }

.countdown { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.countdown div { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 12px; padding: 14px 18px; min-width: 92px; text-align: center; }
.countdown b { display: block; font: 800 2rem/1 var(--display); color: var(--green); font-variant-numeric: tabular-nums; }
.countdown small { color: var(--muted-dark); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; font-weight: 700; }

/* ---------- blog prose ---------- */
.prose { font-size: 1.08rem; line-height: 1.8; }
.prose h2 { font-size: 1.8rem; margin-top: 1.8em; }
.prose blockquote { margin: 1.6em 0; }
.prose img { border-radius: 10px; margin: 1.6em auto; }
.prose ul, .prose ol { padding-left: 1.3em; }
.post-head .meta { color: var(--muted-dark); font-weight: 600; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.post-hero { margin-top: -40px; }
.post-hero img { border-radius: var(--radius); margin-inline: auto; max-height: 520px; width: auto; box-shadow: 0 20px 50px rgba(0,0,0,.15); background: #fff; }
.source-note { margin-top: 48px; padding: 18px 22px; background: var(--paper-2); border-radius: 10px; font-size: .95rem; color: #3b3b3b; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green); color: var(--ink); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 48px 0; }
.cta-band h2 { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.4rem); max-width: 720px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #bdbdbd; padding: 64px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer img { width: 190px; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font: 700 .8rem var(--body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #e3e3e3; text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.footer-base { border-top: 1px solid var(--ink-3); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: #8a8a8a; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .machine-shot img { max-height: 440px; }
  .post-hero { margin-top: 0; padding-top: 32px; }
  .post-hero img { max-height: 340px; }
}

/* web design credit */
.credit {
  margin-top: 48px; display: flex; align-items: center; gap: 18px;
  padding: 22px 26px; border: 1px solid var(--ink-3); border-left: 5px solid var(--green);
  border-radius: 12px; background: var(--ink-2);
}
.credit-mark {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: var(--ink); font-size: 1.2rem;
}
.credit p { margin: 0; line-height: 1.3; }
.credit-label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 4px; }
.credit strong { font: 800 clamp(1.15rem, 2.4vw, 1.5rem) var(--display); color: #fff; letter-spacing: -0.01em; }
.credit + .footer-base { margin-top: 28px; }
.site-footer a.credit { text-decoration: none; transition: border-color .2s, background .2s; }
.site-footer a.credit:hover { background: #1d1d1d; border-color: var(--green); }
.credit-go { margin-left: auto; font-weight: 700; color: var(--green); white-space: nowrap; }
@media (max-width: 520px) { .credit-go { display: none; } }

/* nav: compact pills so nine items fit, Contact as a button */
.nav a { padding: 8px 11px; font-size: .9rem; }
.nav a[href="/contact"] { border: 1.5px solid var(--green); color: var(--green); margin-left: 4px; }
.nav a[href="/contact"][aria-current="page"], .nav a[href="/contact"]:hover { background: var(--green); color: var(--ink); }
@media (max-width: 1180px) { .nav a[href="/contact"] { margin: 6px 0 0; text-align: center; } }

/* book PDF call-out */
.pdf-cta {
  margin-top: 26px; display: flex; align-items: center; gap: 18px; text-decoration: none;
  padding: 18px 22px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper);
  box-shadow: 6px 6px 0 var(--green); transition: transform .15s, box-shadow .15s;
}
.pdf-cta:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--green); }
.pdf-badge { flex: none; background: var(--ink); color: var(--green); font: 800 .95rem var(--display); padding: 12px 10px; border-radius: 8px; letter-spacing: .04em; }
.pdf-cta strong { display: block; font: 800 1.2rem var(--display); color: var(--ink); }
.pdf-cta small { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.pdf-go { margin-left: auto; font: 800 1.6rem var(--display); color: var(--green-deep); }

/* fight image -> video */
.play-link { position: relative; display: block; border-radius: 14px; overflow: hidden; }
.play-link img { width: 100%; transition: transform .5s, filter .3s; }
.play-link:hover img { transform: scale(1.02); filter: brightness(.85); }
.play-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  background: var(--green); color: var(--ink); font: 800 clamp(.95rem, 2vw, 1.25rem) var(--display);
  padding: 14px 24px 14px 14px; border-radius: 999px; box-shadow: 0 12px 40px rgba(0,0,0,.45);
  transition: transform .2s;
}
.play-link:hover .play-badge { transform: translate(-50%, -50%) scale(1.06); }
.play-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--green); display: grid; place-items: center; font-size: 1rem; padding-left: 3px; }

/* contact form */
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.contact-form label { display: grid; gap: 7px; font-weight: 600; font-size: .95rem; }
.contact-form .opt { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 400 1rem var(--body); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 14px; width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(139,224,78,.45); }
.contact-form button { justify-self: start; border: 0; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { padding: 18px 20px; border-radius: 12px; margin-bottom: 22px; }
.form-note.ok { background: var(--green); color: var(--ink); font-size: 1.1rem; }
.form-note.err { background: #fde8e8; color: #8a1c1c; border: 1px solid #f3b7b7; }
.contact-aside { background: var(--ink); color: #e9e9e9; border-radius: var(--radius); padding: 28px; }
.contact-aside h3 { color: #fff; }
.contact-aside ul { margin: 0; padding-left: 1.1em; display: grid; gap: 10px; }
.contact-aside a { color: var(--green); }
