/* Online Sales Domination — 2026 redesign */
@view-transition { navigation: auto; }
:root {
  --ink: #060914; --ink-2: #0c1226; --ink-3: #151d3a; --line: rgba(255,255,255,.1);
  --paper: #f4f1ea; --paper-2: #ebe6da; --text: #10152a; --muted: #5d6480;
  --red: #ff2d46; --red-2: #ff6a3d; --ice: #8fd0ff; --blue: #2f6bff;
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --body: "Source Serif 4", Georgia, serif;
  --ui: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: min(1240px, 100% - 48px);
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: #fff; font-family: var(--ui); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wrap { width: var(--wrap); margin-inline: auto; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; font-stretch: 100%; text-transform: none; }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--ice); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.paper .eyebrow { color: var(--muted); }
h1, h2, h3 { font-family: var(--display); font-weight: 900; font-stretch: 118%; letter-spacing: -.035em; line-height: .95; margin: 0; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; border-radius: 4px; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(6,9,20,.78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-stretch: 112%; letter-spacing: .02em; font-size: 14px; text-transform: uppercase; line-height: 1.05; }
.brand i { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--red), var(--red-2)); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(255,45,70,.45); flex: none; }
.brand i svg { width: 22px; height: 22px; }
.brand span b { color: var(--red); font-weight: 900; }
.nav-links { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.nav-links a { padding: 10px 14px; border-radius: 999px; color: rgba(255,255,255,.78); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: #fff; background: rgba(255,255,255,.08); }
.kbtn { display: inline-flex; align-items: center; gap: 10px; padding: 9px 12px 9px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: rgba(255,255,255,.7); background: rgba(255,255,255,.04); transition: border-color .2s, color .2s; }
.kbtn:hover { border-color: rgba(255,255,255,.35); color: #fff; }
.kbtn kbd { font: 600 11px var(--ui); padding: 3px 6px; border-radius: 6px; background: rgba(255,255,255,.1); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); }
.burger span { display: block; width: 18px; height: 2px; background: #fff; margin: 4px auto; transition: transform .3s; }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 140px 0 44px; overflow: hidden; isolation: isolate;
  background: radial-gradient(1200px 700px at var(--mx, 70%) var(--my, 30%), rgba(47,107,255,.22), transparent 60%), radial-gradient(900px 600px at 85% 90%, rgba(255,45,70,.16), transparent 60%), var(--ink); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 220px; background: linear-gradient(transparent, var(--ink)); z-index: -1; pointer-events: none; }
.hero h1 { font-size: clamp(54px, 11.2vw, 190px); text-transform: uppercase; line-height: .84; font-stretch: 125%; margin: 22px 0 0; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .serif { font-size: 1.02em; text-transform: lowercase; color: var(--red); letter-spacing: -.03em; padding-right: .08em; }
@keyframes rise { to { transform: none; } }
.hero-sub { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; margin-top: 34px; }
.hero-sub p { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.4; color: rgba(255,255,255,.8); margin: 0; max-width: 34ch; font-family: var(--body); }
.rot { display: inline-grid; height: 1.4em; overflow: hidden; vertical-align: bottom; color: #fff; font-weight: 600; transition: width .5s var(--ease); }
.rot span { grid-area: 1/1; justify-self: start; transform: translateY(110%); opacity: 0; transition: transform .6s var(--ease), opacity .4s; white-space: nowrap; }
.rot span.on { transform: none; opacity: 1; }
.rot span.off { transform: translateY(-110%); opacity: 0; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.btn { --bg: #fff; --fg: var(--ink); display: inline-flex; align-items: center; gap: 12px; padding: 17px 24px; border-radius: 999px; background: var(--bg); color: var(--fg); font-weight: 800; font-size: 15px; letter-spacing: .01em; transition: transform .25s var(--ease), box-shadow .25s; will-change: transform; }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn.red { --bg: var(--red); --fg: #fff; box-shadow: 0 14px 40px -8px rgba(255,45,70,.65); }
.btn.ghost { --bg: transparent; --fg: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn.dark { --bg: var(--ink); --fg: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 54px; border-top: 1px solid var(--line); }
.stats div { padding: 20px 20px 0 0; }
.stats div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats b { display: block; font: 900 clamp(30px, 3.4vw, 48px)/1 var(--display); font-stretch: 118%; letter-spacing: -.04em; }
.stats span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); }

/* marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--ink); }
.marquee div { display: flex; gap: 42px; width: max-content; animation: slide 38s linear infinite; }
.marquee span { font: 900 clamp(26px, 4vw, 54px)/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.4); white-space: nowrap; display: flex; align-items: center; gap: 42px; }
.marquee span:nth-child(3n+1) { color: #fff; -webkit-text-stroke: 0; }
.marquee span::after { content: "✦"; color: var(--red); -webkit-text-stroke: 0; font-size: .5em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* sections */
section { position: relative; }
.pad { padding: clamp(72px, 10vw, 140px) 0; }
.paper { background: var(--paper); color: var(--text); }
.sec-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { font-size: clamp(40px, 6.4vw, 96px); text-transform: uppercase; margin-top: 18px; }
.sec-head h2 .serif { text-transform: lowercase; color: var(--red); font-size: 1.04em; }
.sec-head p { font-family: var(--body); font-size: 19px; color: rgba(255,255,255,.72); margin: 0; max-width: 40ch; justify-self: end; }
.paper .sec-head p { color: var(--muted); }

/* topics */
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.topic { position: relative; min-height: 270px; border-radius: 22px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: var(--ink-2); color: #fff; isolation: isolate; transition: transform .5s var(--ease); }
.topic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .62; transform: scale(1.08); transition: transform 1.2s var(--ease), opacity .6s; filter: saturate(.85); }
.topic::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,9,20,.35), rgba(6,9,20,.92)); transition: opacity .5s; }
.topic:hover { transform: translateY(-6px); }
.topic:hover img { transform: scale(1); opacity: .85; }
.topic .n { font: 900 15px var(--display); letter-spacing: .1em; display: flex; justify-content: space-between; align-items: center; }
.topic .n em { font-style: normal; font-size: 12px; letter-spacing: .14em; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); }
.topic h3 { font-size: clamp(24px, 2.4vw, 36px); text-transform: uppercase; overflow-wrap: anywhere; }
.topic p { margin: 10px 0 0; font-family: var(--body); color: rgba(255,255,255,.8); font-size: 16px; }
.topic .go { position: absolute; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--red); display: grid; place-items: center; transform: scale(0) rotate(-45deg); transition: transform .45s var(--ease); }
.topic:hover .go { transform: none; }
.topic .go svg { width: 18px; height: 18px; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
.card { display: flex; flex-direction: column; gap: 16px; perspective: 900px; }
.card .ph { position: relative; aspect-ratio: 16/10; border-radius: 18px; overflow: hidden; background: var(--ink-3); transition: transform .35s var(--ease), box-shadow .35s; transform-style: preserve-3d; box-shadow: 0 1px 0 rgba(0,0,0,.05); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .ph { box-shadow: 0 30px 60px -24px rgba(6,9,20,.55); }
.card:hover .ph img { transform: scale(1.06); }
.card .tag { position: absolute; left: 14px; top: 14px; z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; background: rgba(6,9,20,.72); color: #fff; backdrop-filter: blur(8px); }
.card h3 { font-size: clamp(21px, 1.9vw, 27px); line-height: 1.04; font-stretch: 108%; letter-spacing: -.025em; transition: color .2s; }
.card:hover h3 { color: var(--red); }
.card p { margin: 0; font-family: var(--body); font-size: 16.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dark .card p { color: rgba(255,255,255,.65); }
.card .meta { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; display: flex; gap: 10px; align-items: center; }
.card .meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--red); }
.feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; margin-bottom: 26px; }
.feature .ph { aspect-ratio: 16/9; border-radius: 26px; }
.feature h3 { font-size: clamp(30px, 3.5vw, 52px); font-stretch: 110%; text-transform: uppercase; line-height: .96; }
.feature p { font-size: 19px; -webkit-line-clamp: 4; margin-top: 16px; }
.feature .btn { margin-top: 26px; align-self: flex-start; }
.feature .txt { display: flex; flex-direction: column; }
.more { display: flex; justify-content: center; margin-top: 56px; }

/* start path */
.path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); counter-reset: s; }
.path a { padding: 34px 28px 34px 0; border-bottom: 1px solid var(--line); position: relative; counter-increment: s; display: block; transition: padding .4s var(--ease); }
.path a + a { padding-left: 28px; border-left: 1px solid var(--line); }
.path a::before { content: "0" counter(s); font: 900 clamp(70px, 9vw, 140px)/.8 var(--display); font-stretch: 125%; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.3); display: block; margin-bottom: 28px; transition: color .4s, -webkit-text-stroke-color .4s; }
.path a:hover::before { color: var(--red); -webkit-text-stroke-color: var(--red); }
.path h3 { font-size: 26px; font-stretch: 110%; text-transform: uppercase; }
.path p { font-family: var(--body); color: rgba(255,255,255,.68); margin: 12px 0 18px; }
.path small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ice); font-weight: 700; }

/* calculator */
.calc { display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; align-items: stretch; }
.panel { border-radius: 28px; padding: clamp(24px, 3vw, 40px); background: #fff; box-shadow: 0 40px 80px -50px rgba(16,21,42,.45); }
.panel.dark { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.panel.dark::before { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -220px; background: radial-gradient(closest-side, rgba(255,45,70,.4), transparent); pointer-events: none; }
.field { margin-bottom: 30px; }
.field label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.field output { font: 900 30px/1 var(--display); font-stretch: 116%; letter-spacing: -.03em; color: var(--text); text-transform: none; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--red) var(--p, 50%), var(--paper-2) var(--p, 50%)); outline-offset: 6px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 0 6px 16px rgba(16,21,42,.3); cursor: grab; transition: transform .2s; }
input[type=range]::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }
.note { font-family: var(--body); font-size: 14.5px; color: var(--muted); margin: 0; }
.rev small { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 600; }
.rev b { display: block; font: 900 clamp(52px, 7vw, 104px)/.9 var(--display); font-stretch: 122%; letter-spacing: -.05em; margin: 10px 0 6px; font-variant-numeric: tabular-nums; }
.rev p { margin: 0; color: rgba(255,255,255,.7); font-family: var(--body); }
.funnel { display: grid; gap: 8px; margin: 30px 0; }
.funnel div { height: 44px; border-radius: 12px; background: linear-gradient(90deg, rgba(143,208,255,.9), rgba(47,107,255,.9)); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); min-width: 190px; width: var(--w, 100%); transition: width .6s var(--ease); white-space: nowrap; }
.funnel div:nth-child(2) { background: linear-gradient(90deg, #ffd0a8, var(--red-2)); }
.funnel div:nth-child(3) { background: linear-gradient(90deg, #ff8a9a, var(--red)); color: #fff; }
.levers { display: grid; gap: 10px; }
.levers h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 600; }
.lever { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.04); transition: background .25s, border-color .25s, transform .25s var(--ease); position: relative; }
.lever:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.3); transform: translateX(4px); }
.lever.best { border-color: var(--red); background: rgba(255,45,70,.12); }
.lever.best::after { content: "Biggest win"; position: absolute; right: 14px; top: -9px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; background: var(--red); padding: 3px 9px; border-radius: 99px; }
.lever b { font-weight: 700; font-size: 15.5px; }
.lever em { font-style: normal; font: 900 20px var(--display); font-stretch: 112%; color: #7dffb0; font-variant-numeric: tabular-nums; }
.lever span { grid-column: 1 / -1; font-size: 13.5px; color: rgba(255,255,255,.6); }

/* library */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip { padding: 11px 18px; border-radius: 999px; border: 1.5px solid rgba(16,21,42,.18); font-weight: 700; font-size: 14px; transition: all .25s var(--ease); display: inline-flex; gap: 8px; align-items: center; }
.chip sup { font-size: 10px; opacity: .6; }
.chip:hover { border-color: var(--text); }
.chip[aria-pressed=true] { background: var(--text); color: #fff; border-color: var(--text); }
.card.hide { display: none; }
.page-hero { padding: 170px 0 70px; background: radial-gradient(900px 500px at 80% 0%, rgba(47,107,255,.25), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(255,45,70,.16), transparent 60%), var(--ink); }
.page-hero h1 { font-size: clamp(48px, 9vw, 140px); text-transform: uppercase; font-stretch: 125%; margin-top: 20px; line-height: .86; }
.page-hero h1 .serif { text-transform: lowercase; color: var(--red); }
.page-hero p { font-family: var(--body); font-size: 20px; color: rgba(255,255,255,.75); max-width: 52ch; margin: 26px 0 0; }
.arch { border-top: 1px solid rgba(16,21,42,.14); }
.arch a { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid rgba(16,21,42,.14); transition: padding .35s var(--ease), color .2s; }
.arch a:hover { padding-left: 14px; color: var(--red); }
.arch time { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.arch b { font: 800 clamp(18px, 1.8vw, 24px)/1.1 var(--display); font-stretch: 106%; letter-spacing: -.02em; }
.arch span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.arch-h { font-size: clamp(28px, 3vw, 44px); text-transform: uppercase; margin: 70px 0 24px; }
.arch-h:first-child { margin-top: 0; }

/* article */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--red), var(--red-2)); z-index: 60; }
.post-hero { padding: 150px 0 0; background: radial-gradient(900px 500px at 85% 0%, rgba(47,107,255,.24), transparent 60%), var(--ink); }
.post-hero .crumbs { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.6); }
.post-hero .crumbs a { padding: 7px 13px; border-radius: 99px; background: var(--red); color: #fff; }
.post-hero .crumbs a.back { background: rgba(255,255,255,.1); }
.post-hero h1 { font-size: clamp(38px, 6.6vw, 104px); text-transform: uppercase; font-stretch: 120%; max-width: 17ch; margin: 26px 0 0; line-height: .9; }
.post-hero .cover { margin-top: 54px; border-radius: 28px 28px 0 0; overflow: hidden; aspect-ratio: 21/9; background: var(--ink-3); }
.post-hero .cover img { width: 100%; height: 100%; object-fit: cover; view-transition-name: cover; }
.post-hero.nocover { padding-bottom: 70px; }
.article { background: var(--paper); color: var(--text); padding: clamp(48px, 7vw, 96px) 0; }
.article .cols { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 60px; justify-content: center; }
.aside { position: sticky; top: 110px; align-self: start; font-size: 13px; color: var(--muted); display: grid; gap: 22px; }
.aside dt { letter-spacing: .16em; text-transform: uppercase; font-weight: 700; font-size: 11px; margin-bottom: 4px; }
.aside dd { margin: 0; color: var(--text); font-weight: 700; font-size: 15px; }
.aside dl { margin: 0; display: grid; gap: 18px; }
.aside .old { padding: 14px; border-radius: 14px; background: var(--paper-2); font-family: var(--body); font-size: 14px; line-height: 1.45; }
.prose { font-family: var(--body); font-size: clamp(18px, 1.35vw, 20.5px); line-height: 1.68; overflow-wrap: break-word; }
.prose > p:first-of-type::first-letter { font: 900 4.6em/.78 var(--display); font-stretch: 120%; float: left; padding: .06em .12em 0 0; color: var(--red); }
.prose p { margin: 0 0 1.25em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); font-stretch: 110%; font-weight: 900; letter-spacing: -.025em; line-height: 1.05; margin: 1.8em 0 .6em; font-size: 1.5em; text-wrap: balance; }
.prose h1 { font-size: 1.7em; margin: 1.6em 0 .6em; line-height: 1; }
.prose a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose img { border-radius: 16px; margin: 1.6em 0; height: auto; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 16px; margin: 1.4em 0; background: #000; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.25em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--red); font-weight: 700; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--red); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; font-size: .85em; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid rgba(16,21,42,.15); padding: 8px 10px; text-align: left; }
.plain .prose > p:first-of-type::first-letter { all: unset; }
.next { background: var(--ink); }
.next .grid .card h3 { color: #fff; }
.next .grid .card:hover h3 { color: var(--red); }

/* footer */
footer { background: var(--ink); border-top: 1px solid var(--line); padding: 70px 0 30px; overflow: hidden; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.foot h4 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0 0 16px; font-weight: 600; }
.foot .brand { display: flex; padding: 0; }
.foot .brand:hover { transform: none; color: #fff; }
.foot a:not(.brand) { display: block; padding: 5px 0; color: rgba(255,255,255,.82); font-size: 15px; transition: color .2s, transform .25s var(--ease); }
.foot a:not(.brand):hover { color: var(--red); transform: translateX(4px); }
.foot p { font-family: var(--body); color: rgba(255,255,255,.65); max-width: 32ch; margin: 18px 0 0; }
.giant { font: 900 clamp(48px, 13.4vw, 232px)/.8 var(--display); font-stretch: 125%; letter-spacing: -.06em; text-transform: uppercase; margin: 70px 0 0 -.04em; white-space: nowrap; background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.45); margin-top: -10px; }

/* search */
.search { position: fixed; inset: 0; z-index: 100; background: rgba(6,9,20,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; place-items: start center; padding: 12vh 20px 20px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.search.open { opacity: 1; pointer-events: auto; }
.search .box { width: min(680px, 100%); background: #fff; color: var(--text); border-radius: 22px; overflow: hidden; transform: translateY(16px) scale(.98); transition: transform .35s var(--ease); box-shadow: 0 40px 100px -20px rgba(0,0,0,.7); }
.search.open .box { transform: none; }
.search input { width: 100%; border: 0; outline: 0; padding: 24px 26px; font: 700 22px var(--ui); background: none; color: inherit; border-bottom: 1px solid rgba(16,21,42,.1); }
.search ul { list-style: none; margin: 0; padding: 8px; max-height: 52vh; overflow: auto; }
.search li a { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; }
.search li a.sel, .search li a:hover { background: var(--paper); }
.search li img, .search li .noimg { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--ink-3); }
.search li b { display: block; font-weight: 800; font-size: 16px; line-height: 1.2; }
.search li span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.search .empty { padding: 26px; font-family: var(--body); color: var(--muted); }

/* reveal */
.rv { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; background: rgba(6,9,20,.97); flex-direction: column; align-items: stretch; padding: 14px 24px 26px; gap: 2px; border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .4s var(--ease); }
  .nav-links a { font-size: 20px; padding: 14px 6px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav.open .nav-links { transform: none; }
  .nav.open { background: rgba(6,9,20,.97); }
  .burger { display: block; }
  .kbtn kbd { display: none; }
  .hero-sub, .sec-head, .calc, .feature { grid-template-columns: 1fr; }
  .cta-row { justify-content: flex-start; }
  .sec-head p { justify-self: start; }
  .topics, .grid { grid-template-columns: repeat(2, 1fr); }
  .path { grid-template-columns: 1fr; }
  .path a + a { padding-left: 0; border-left: 0; }
  .article .cols { grid-template-columns: minmax(0, 720px); }
  .aside { position: static; grid-template-columns: 1fr; }
  .aside dl { grid-template-columns: repeat(3, auto); justify-content: start; gap: 28px; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  :root { --wrap: calc(100% - 36px); }
  .hero { padding-top: 120px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats div:nth-child(n+3) { margin-top: 18px; border-top: 1px solid var(--line); }
  .topics, .grid { grid-template-columns: 1fr; }
  .topic { min-height: 220px; }
  .topic .go { transform: none; }
  .brand span { font-size: 12px; }
  .arch a { grid-template-columns: 1fr; gap: 4px; }
  .arch span { display: none; }
  .post-hero .cover { aspect-ratio: 16/10; border-radius: 18px 18px 0 0; margin-top: 36px; }
  .foot { grid-template-columns: 1fr; }
  .aside dl { grid-template-columns: 1fr 1fr; }
  .btn { padding: 15px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .marquee div { animation: none; }
}
