/* ==========================================================================
   Stemic Technologies — site styles
   Plain CSS, no framework. Edit the tokens below to re-theme the site.
   ========================================================================== */

/* Self-hosted fonts (SIL Open Font License) */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque.woff2") format("woff2-variations"), url("/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --paper: #f3f1ec;
  --paper-2: #e9e6de;
  --card: #fbfaf7;
  --ink: #16150f;
  --ink-2: #3a3932;
  --muted: #6d6b62;
  --line: #d6d1c5;
  --line-2: #c4beb0;
  --accent: #e2552c;
  --accent-ink: #ffffff;
  --deep: #10261f;
  --deep-2: #17342b;
  --deep-line: #2c4a40;
  --ok: #2f7d55;

  --f-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 600; line-height: 1.02; letter-spacing: -0.025em; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- small type helpers ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.eyebrow.no-rule::before { display: none; }
.tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  line-height: 1.3;
}
.tag.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.tag.dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 24px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.light:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.small { height: 42px; padding: 0 18px; font-size: 14px; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color .2s, gap .3s var(--ease);
}
.link:hover { color: var(--accent); gap: 12px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 241, 236, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }

.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 30px; width: auto; }
.foot-grid .logo img { height: 32px; }

.site-header nav { margin: 0 auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav > li > a, .nav > li > button {
  display: inline-flex; align-items: center; gap: 6px;
  height: var(--header-h);
  padding: 0 14px;
  font-size: 15px;
  color: var(--ink-2);
  position: relative;
}
.nav > li > a::after, .nav > li > button::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 22px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav > li > a:hover::after, .nav > li > button:hover::after, .nav > li > a[aria-current="page"]::after { transform: scaleX(1); }
.nav > li > a[aria-current="page"] { color: var(--ink); }
.nav .chev { width: 10px; height: 10px; transition: transform .25s; }

.dropdown {
  position: absolute; top: calc(var(--header-h) - 10px); left: 0;
  width: 340px; background: var(--card); border: 1px solid var(--line);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  box-shadow: 0 24px 48px -24px rgba(22, 21, 15, .25);
}
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-drop:hover .chev { transform: rotate(180deg); }
.dropdown a { display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; padding: 12px; transition: background .2s; }
.dropdown a:hover { background: var(--paper); }
.dropdown .num { grid-row: span 2; font-family: var(--f-mono); font-size: 12px; color: var(--accent); padding-top: 3px; }
.dropdown strong { font-weight: 500; font-size: 15px; }
.dropdown small { color: var(--muted); font-size: 13px; line-height: 1.4; }

.header-side { display: flex; align-items: center; gap: 22px; }
.socials { display: flex; gap: 14px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.socials a { color: var(--muted); transition: color .2s; }
.socials a:hover { color: var(--accent); }

.burger { display: none; width: 44px; height: 44px; position: relative; margin-left: auto; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--paper); padding: 24px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  overflow-y: auto;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu > a { font-family: var(--f-display); font-size: 34px; font-weight: 500; letter-spacing: -0.03em; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .sub { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 6px; }
.mobile-menu .sub a { font-size: 14px; border: 1px solid var(--line-2); padding: 6px 12px; }
.mobile-menu > a.btn { margin-top: 24px; justify-content: center; font-family: var(--f-body); font-size: 16px; letter-spacing: 0; padding: 0 24px; border-bottom: 1px solid var(--ink); }
.mobile-menu .socials { margin-top: 24px; font-size: 14px; }
body.menu-open { overflow: hidden; }

/* ==========================================================================
   Hero slider
   ========================================================================== */
.hero { position: relative; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 56px 1fr; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); max-height: 900px; }
.hero-rail {
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 32px 0;
}
.hero-rail .socials { writing-mode: vertical-rl; transform: rotate(180deg); gap: 22px; }
.hero-count { font-family: var(--f-mono); font-size: 13px; writing-mode: vertical-rl; transform: rotate(180deg); color: var(--muted); }
.hero-count b { color: var(--ink); font-weight: 500; }

.slides { position: relative; overflow: hidden; }
.slide {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: clamp(32px, 5vw, 72px) var(--gutter) clamp(96px, 9vw, 120px);
  opacity: 0; visibility: hidden;
  transition: opacity .7s var(--ease), visibility .7s;
}
.slide > .copy, .slide > .visual { min-width: 0; }
.slide.is-active { opacity: 1; visibility: visible; position: relative; }
.slide .copy > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.slide.is-active .copy > * { opacity: 1; transform: none; }
.slide.is-active .copy > *:nth-child(2) { transition-delay: .08s; }
.slide.is-active .copy > *:nth-child(3) { transition-delay: .16s; }
.slide.is-active .copy > *:nth-child(4) { transition-delay: .24s; }

.slide h1, .slide .h1 { font-size: clamp(44px, 7vw, 104px); margin: 22px 0 26px; font-weight: 600; }
.slide h1 em, .slide .h1 em { font-style: normal; color: var(--accent); }
.slide .lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 520px; }
.slide .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.slide .visual { opacity: 0; transform: translateX(30px); transition: opacity .9s var(--ease) .1s, transform 1s var(--ease) .1s; }
.slide.is-active .visual { opacity: 1; transform: none; }

.hero-controls {
  position: absolute; left: 56px; right: 0; bottom: 0;
  display: flex; align-items: stretch; border-top: 1px solid var(--line); height: 64px; background: var(--paper);
}
.hero-tabs { display: flex; flex: 1; }
.hero-tab {
  flex: 1; text-align: left; padding: 0 var(--gutter); border-right: 1px solid var(--line);
  font-size: 14px; color: var(--muted); position: relative; display: flex; align-items: center; gap: 12px;
}
.hero-tab .n { font-family: var(--f-mono); font-size: 12px; }
.hero-tab.is-active { color: var(--ink); }
.hero-tab .bar { position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--accent); }
.hero-tab.is-active .bar { animation: fill var(--slide-ms, 7000ms) linear forwards; }
.hero.paused .hero-tab.is-active .bar { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.hero-arrows { display: flex; }
.hero-arrows button { width: 64px; border-left: 1px solid var(--line); display: grid; place-items: center; transition: background .2s, color .2s; }
.hero-arrows button:hover { background: var(--ink); color: var(--paper); }

/* ---------- "screen" mockups used as visuals ---------- */
.screen {
  background: var(--card); border: 1px solid var(--line-2);
  box-shadow: 18px 18px 0 -1px var(--paper-2), 18px 18px 0 0 var(--line-2);
  font-size: 13px;
}
.screen-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.screen-bar i { width: 8px; height: 8px; border: 1px solid var(--line-2); border-radius: 50%; display: inline-block; }
.screen-bar span { margin-left: auto; }
.screen-body { padding: 18px; overflow-x: auto; }

.code { font-family: var(--f-mono); font-size: 12.5px; line-height: 1.75; margin: 0; white-space: pre; overflow: hidden; color: var(--ink-2); }
.code .k { color: #9b3c1f; }
.code .t { color: #2d5f8a; }
.code .s { color: var(--ok); }
.code .c { color: #9a978c; }
.code .ln { display: inline-block; width: 26px; color: #b6b2a6; user-select: none; }

.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-2); }
.inv-head h4 { font-family: var(--f-body); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.inv-head small { color: var(--muted); font-family: var(--f-mono); font-size: 11px; }
.inv-table { width: 100%; border-collapse: collapse; margin: 10px 0 4px; }
.inv-table td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.inv-table td:last-child { text-align: right; font-family: var(--f-mono); font-size: 12px; }
.inv-total { display: flex; justify-content: space-between; padding-top: 10px; font-weight: 600; }
.inv-total span:last-child { font-family: var(--f-mono); }
.stamp { margin-top: 16px; display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); }
.stamp .qr { width: 44px; height: 44px; flex: none; background:
  conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0 / 11px 11px; border: 3px solid var(--card); outline: 1px solid var(--ink); }
.stamp small { display: block; font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); line-height: 1.5; }
.ok-dot { display: inline-block; width: 7px; height: 7px; background: var(--ok); border-radius: 50%; margin-right: 6px; }

.log { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: 11.5px; }
.log th { text-align: left; font-weight: 400; color: var(--muted); padding: 6px 6px 8px 0; border-bottom: 1px solid var(--line); text-transform: uppercase; font-size: 10px; letter-spacing: .06em; }
.log td { padding: 9px 6px 9px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.log tr.new td { animation: flash 2.4s ease-out; }
@keyframes flash { 0% { background: rgba(226, 85, 44, .16); } 100% { background: transparent; } }
.state { display: inline-block; padding: 2px 6px; font-size: 10px; border: 1px solid; }
.state.ok { color: var(--ok); }
.state.retry { color: var(--accent); }
.log-foot { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }

/* ==========================================================================
   Sections — general
   ========================================================================== */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section.tight { padding: clamp(56px, 7vw, 96px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(36px, 5vw, 68px); margin-top: 18px; }
.section-head p { color: var(--ink-2); max-width: 460px; justify-self: end; margin: 0; }
.section.dark { background: var(--deep); color: #e8ece6; }
.section.dark .eyebrow { color: #9db3a9; }
.section.dark p { color: #b9c7c0; }

/* ---------- counter + category cards (template "products for you") ---------- */
.promo { display: grid; grid-template-columns: .8fr 1fr 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promo-count { padding: 36px 32px 36px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.big-num { font-family: var(--f-display); font-size: clamp(64px, 8vw, 120px); font-weight: 600; line-height: .9; letter-spacing: -0.05em; }
.big-num sup { font-size: .35em; color: var(--accent); vertical-align: top; margin-left: 4px; }
.promo-count p { color: var(--muted); max-width: 220px; margin: 12px 0 0; }
.cat {
  position: relative; padding: 32px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 420px; overflow: hidden;
  transition: background .35s var(--ease);
}
.cat:last-child { border-right: 0; }
.cat:hover { background: var(--card); }
.cat .tag { align-self: flex-start; }
.cat h3 { font-size: clamp(26px, 2.4vw, 34px); margin: 20px 0 12px; }
.cat p { color: var(--ink-2); font-size: 15px; }
.cat .art { margin-top: auto; padding-top: 24px; }
.cat .link { margin-top: 20px; align-self: flex-start; }
.cat-art { height: 120px; border: 1px solid var(--line); background: var(--paper); position: relative; overflow: hidden; transition: border-color .3s; }
.cat:hover .cat-art { border-color: var(--line-2); }

/* small abstract diagrams inside category cards */
.art-bc { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 14px; height: 100%; align-items: end; }
.art-bc span { background: var(--ink); transition: height .6s var(--ease); }
.art-bc span:nth-child(3n) { background: var(--accent); }
.cat:hover .art-bc span { filter: none; }
.art-erp { padding: 14px; display: flex; flex-direction: column; gap: 7px; }
.art-erp div { height: 9px; background: var(--line); position: relative; }
.art-erp div::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 50%); background: var(--ink); transition: width .8s var(--ease); }
.cat:hover .art-erp div::after { width: calc(var(--w, 50%) + 18%); }
.art-erp div:nth-child(2)::after { background: var(--accent); }
.art-api { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 18px; }
.art-api .node { width: 46px; height: 46px; border: 1px solid var(--ink); display: grid; place-items: center; font-family: var(--f-mono); font-size: 10px; background: var(--card); z-index: 1; }
.art-api .node.mid { background: var(--ink); color: var(--paper); }
.art-api .wire { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 10px); background-size: 20px 1px; animation: wire 1.2s linear infinite; }
@keyframes wire { to { background-position: 20px 0; } }

/* ---------- marquee (stats strip) ---------- */
.strip { border-bottom: 1px solid var(--line); overflow: hidden; padding: 26px 0; }
.marquee { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.strip:hover .marquee { animation-play-state: paused; }
.marquee span { font-family: var(--f-display); font-size: clamp(28px, 3.5vw, 48px); font-weight: 500; letter-spacing: -0.03em; padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee span::after { content: ""; width: 12px; height: 12px; background: var(--accent); transform: rotate(45deg); display: inline-block; }
.marquee span:nth-child(even) { color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- filter tabs + systems grid (template "featured products") ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 32px; }
.filter { height: 40px; padding: 0 16px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); transition: background .2s, color .2s, border-color .2s; }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter sup { font-family: var(--f-mono); font-size: 10px; margin-left: 4px; color: inherit; opacity: .6; }

.systems { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sys {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 26px 24px 24px; display: flex; flex-direction: column; min-height: 300px; position: relative;
  transition: background .3s var(--ease), opacity .3s, transform .3s var(--ease);
}
.sys:hover { background: var(--card); }
.sys.is-hidden { display: none; }
.sys .top { display: flex; justify-content: space-between; align-items: flex-start; }
.sys .ico { width: 44px; height: 44px; border: 1px solid var(--ink); display: grid; place-items: center; transition: background .3s, color .3s; }
.sys:hover .ico { background: var(--ink); color: var(--paper); }
.sys .ico svg { width: 20px; height: 20px; }
.sys h3 { font-size: 22px; margin: 28px 0 10px; letter-spacing: -0.02em; }
.sys p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.sys ul { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.sys li { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.sys li:not(:last-child)::after { content: " /"; color: var(--line-2); }
.section-foot { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- deal banner ---------- */
.deal { position: relative; background: var(--deep); color: #e8ece6; overflow: hidden; }
.deal-inner { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 520px; }
.deal-copy { padding: clamp(48px, 6vw, 88px) clamp(24px, 4vw, 64px) clamp(48px, 6vw, 88px) 0; display: flex; flex-direction: column; justify-content: center; }
.deal-copy .eyebrow { color: #9db3a9; }
.deal-copy h2 { font-size: clamp(42px, 6vw, 88px); margin: 22px 0 22px; }
.deal-copy h2 em { font-style: normal; color: var(--accent); }
.deal-copy p { color: #b9c7c0; max-width: 480px; font-size: 17px; }
.deal-copy .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.deal-copy .btn.ghost { color: #e8ece6; border-color: var(--deep-line); }
.deal-copy .btn.ghost:hover { background: #e8ece6; color: var(--deep); border-color: #e8ece6; }
.deal-visual { border-left: 1px solid var(--deep-line); display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 4vw, 56px); gap: 0; }
.upgrade-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--deep-line); }
.upgrade-row:first-child { border-top: 1px solid var(--deep-line); }
.upgrade-row .from { color: #7f978d; font-family: var(--f-mono); font-size: 13px; text-decoration: line-through; text-decoration-color: rgba(226, 85, 44, .7); }
.upgrade-row .to { font-family: var(--f-mono); font-size: 13px; text-align: right; }
.upgrade-row .arrow { color: var(--accent); }

/* ---------- features (template "free shipping / 24/7 / money back") ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature { padding: 40px 32px 40px 0; display: grid; grid-template-columns: 52px 1fr; gap: 20px; }
.feature + .feature { padding-left: 32px; border-left: 1px solid var(--line); }
.feature .ico { width: 52px; height: 52px; border: 1px solid var(--ink); display: grid; place-items: center; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-family: var(--f-body); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin: 2px 0 6px; line-height: 1.3; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- work list (template "best sellers") ---------- */
.work-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.work-split .intro h2 { font-size: clamp(36px, 5vw, 68px); margin: 18px 0 20px; }
.work-split .intro p { color: var(--ink-2); max-width: 380px; }
.work-split .intro .link { margin-top: 12px; }
.work-list { border-top: 1px solid var(--ink); }
.work-item { display: grid; grid-template-columns: 132px 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding .35s var(--ease); }
.work-item:hover { padding-left: 10px; }
.work-thumb { width: 132px; height: 96px; border: 1px solid var(--line-2); background: var(--card); position: relative; overflow: hidden; }
.work-item h3 { font-size: 22px; letter-spacing: -0.02em; margin: 8px 0 6px; transition: color .2s; }
.work-item:hover h3 { color: var(--accent); }
.work-item p { color: var(--muted); font-size: 14.5px; margin: 0; max-width: 460px; }
.work-item .go { width: 44px; height: 44px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .25s, color .25s, border-color .25s; }
.work-item:hover .go { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.thumb-loans { padding: 10px; display: flex; flex-direction: column; gap: 5px; font-family: var(--f-mono); font-size: 8px; color: var(--muted); }
.thumb-loans div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.thumb-loans div b { color: var(--ink); font-weight: 500; }
.thumb-loans div.late b { color: var(--accent); }
.thumb-mpesa { display: grid; place-items: center; height: 100%; }
.thumb-mpesa .ring { width: 54px; height: 54px; border-radius: 50%; border: 6px solid var(--line); border-top-color: var(--ok); border-right-color: var(--ok); border-bottom-color: var(--ok); }
.thumb-up { display: flex; align-items: end; gap: 6px; height: 100%; padding: 12px; }
.thumb-up span { flex: 1; background: var(--line-2); }
.thumb-up span:last-child, .thumb-up span:nth-last-child(2) { background: var(--ink); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--deep-line); }
.step { padding: 36px 32px 0 0; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--deep-line); }
.step .n { font-family: var(--f-mono); font-size: 13px; color: var(--accent); }
.step h3 { font-size: clamp(24px, 2.4vw, 32px); margin: 56px 0 14px; color: #f3f1ec; }
.step p { font-size: 15px; }

/* ---------- blog cards ---------- */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 40px); }
.post { display: flex; flex-direction: column; }
.post-cover { aspect-ratio: 16 / 9; border: 1px solid var(--line); background: var(--card); position: relative; overflow: hidden; }
.post-cover .inner { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.post:hover .post-cover .inner { transform: scale(1.04); }
.post-meta { display: flex; gap: 14px; align-items: center; margin: 20px 0 12px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.post h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em; margin-bottom: 12px; transition: color .2s; }
.post:hover h3 { color: var(--accent); }
.post p { color: var(--ink-2); font-size: 15px; }
.post .link { align-self: flex-start; margin-top: 4px; }

.cover-grid { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; }
.cover-word { position: absolute; left: 24px; bottom: 18px; font-family: var(--f-display); font-weight: 600; font-size: clamp(40px, 6vw, 84px); letter-spacing: -0.05em; line-height: .9; }
.cover-word em { font-style: normal; color: var(--accent); }
.cover-chip { position: absolute; right: 20px; top: 20px; }

/* ---------- CTA ---------- */
.cta { border-top: 1px solid var(--line); }
.cta-inner { display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: end; padding: clamp(64px, 9vw, 120px) 0; }
.cta h2 { font-size: clamp(44px, 7.5vw, 116px); }
.cta h2 em { font-style: normal; color: var(--accent); }
.cta .side p { color: var(--ink-2); }
.cta .side .actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.cta .side .btn { justify-content: space-between; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #c9c6bc; padding-top: clamp(56px, 7vw, 96px); }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr 1.1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid #2c2b25; }
.foot-grid > div > p { margin: 18px 0 22px; max-width: 320px; font-size: 15px; color: #a19e94; }
.foot-grid h4 { font-family: var(--f-mono); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; color: #8a877d; margin-bottom: 18px; }
.foot-grid li { margin-bottom: 10px; font-size: 15px; }
.foot-contact { font-size: 15px; line-height: 1.9; }
.foot-contact a { border-bottom: 1px solid #3a3932; }
.site-footer .socials a { color: #a19e94; }
.site-footer .socials a:hover { color: var(--accent); }
.subscribe { display: flex; border-bottom: 1px solid #5a5850; margin-top: 6px; }
.subscribe input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 14px 0; color: #f3f1ec; outline: none; }
.subscribe input::placeholder { color: #77746b; }
.subscribe button { padding: 0 4px 0 16px; color: #f3f1ec; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.subscribe button:hover { color: var(--accent); }
.form-note { font-size: 13px; color: #8a877d; margin-top: 10px; min-height: 20px; }
.form-note.ok { color: #8fd3ad; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px 0 28px; font-size: 13px; color: #7d7a71; }
.foot-big { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.06em; font-size: clamp(80px, 22vw, 340px); line-height: .78; color: #1f1e19; padding-top: 24px; overflow: hidden; user-select: none; white-space: nowrap; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-head { border-bottom: 1px solid var(--line); padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 5vw, 64px); }
.crumbs { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; gap: 8px; }
.crumbs a:hover { color: var(--accent); }
.page-head h1 { font-size: clamp(48px, 8vw, 120px); margin: 24px 0 0; max-width: 14ch; }
.page-head h1 em { font-style: normal; color: var(--accent); }
.page-head .lede { margin-top: 28px; max-width: 620px; font-size: 18px; color: var(--ink-2); }
.page-head-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.jump { display: flex; flex-direction: column; gap: 0; min-width: 240px; border-top: 1px solid var(--line); }
.jump a { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; transition: color .2s, padding .3s var(--ease); }
.jump a span { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.jump a:hover { color: var(--accent); padding-left: 6px; }

.offer { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 6vw, 96px); padding: clamp(56px, 7vw, 96px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: var(--header-h); }
.offer:last-of-type { border-bottom: 0; }
.offer-side { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.offer-side .n { font-family: var(--f-mono); color: var(--accent); font-size: 13px; }
.offer-side h2 { font-size: clamp(34px, 3.6vw, 52px); margin: 16px 0 16px; }
.offer-side p { color: var(--muted); font-size: 15px; }
.offer-body > p.big { font-family: var(--f-display); font-size: clamp(22px, 2.3vw, 32px); line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); max-width: 760px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: 36px; }
.checks li { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; }
.checks li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.checks li::before { content: ""; width: 10px; height: 10px; border: 1px solid var(--ink); margin-top: 7px; }
.checks b { font-weight: 600; display: block; }
.checks span { color: var(--muted); font-size: 14px; }
.offer-body .screen { margin-top: 40px; max-width: 640px; }

.case { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); padding: clamp(56px, 7vw, 96px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: var(--header-h); }
.case:nth-child(even) .case-visual { order: -1; }
.case h2 { font-size: clamp(34px, 4vw, 58px); margin: 18px 0 20px; }
.case dl { display: grid; grid-template-columns: 120px 1fr; margin: 28px 0 0; border-top: 1px solid var(--line); }
.case dt, .case dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 15px; }
.case dt { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 17px; }
.case-visual { align-self: center; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.about-grid .big { font-family: var(--f-display); font-size: clamp(26px, 3vw, 42px); line-height: 1.15; letter-spacing: -0.025em; margin: 0; }
.about-grid .big em { font-style: normal; color: var(--accent); }
.about-grid .body p { color: var(--ink-2); font-size: 17px; }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--deep-line); }
.principle { padding: 36px 32px 36px 0; border-bottom: 1px solid var(--deep-line); }
.principle:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--deep-line); }
.principle .n { font-family: var(--f-mono); font-size: 13px; color: var(--accent); }
.principle h3 { font-size: 28px; margin: 18px 0 10px; color: #f3f1ec; }
.principle p { margin: 0; }
.integr { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.integr > div { padding: 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.integr h3 { font-size: 22px; margin-bottom: 10px; }
.integr p { color: var(--muted); font-size: 14.5px; margin: 0; }
.integr .mono { font-family: var(--f-mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 26px; }

/* insights (accordion articles) */
.articles { border-top: 1px solid var(--ink); }
.article { border-bottom: 1px solid var(--line); }
.article summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 140px 1fr 44px; gap: 24px; align-items: center; padding: 28px 0; }
.article summary::-webkit-details-marker { display: none; }
.article summary .meta { font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; line-height: 1.7; }
.article summary h2 { font-size: clamp(24px, 2.8vw, 38px); letter-spacing: -0.025em; transition: color .2s; }
.article summary:hover h2 { color: var(--accent); }
.article summary .plus { width: 44px; height: 44px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .3s var(--ease), background .2s, color .2s; }
.article[open] summary .plus { transform: rotate(45deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.article .content { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 0 0 40px; }
.article .content > div { max-width: 720px; color: var(--ink-2); font-size: 17px; }
.article .content h3 { font-family: var(--f-body); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 28px 0 8px; }
.article .content ul { list-style: square; padding-left: 20px; margin: 0 0 1em; }
.article .content li { margin-bottom: 6px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); }
.contact-info { border-top: 1px solid var(--ink); }
.contact-info > div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.contact-info .eyebrow { margin-bottom: 8px; }
.contact-info a.v, .contact-info .v { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; font-weight: 500; display: block; transition: color .2s; }
.contact-info a.v:hover { color: var(--accent); }
.contact-info small { color: var(--muted); font-size: 14px; display: block; margin-top: 4px; }
.map { margin-top: 28px; border: 1px solid var(--line-2); aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

.form { background: var(--card); border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); }
.form h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 8px; }
.form > p { color: var(--muted); }
.field { margin-top: 22px; }
.field label { display: block; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 10px 0 12px; font-size: 17px; outline: none; border-radius: 0; transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; margin: 0; text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-size: 14px; color: var(--ink-2); }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-2); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form .btn { margin-top: 32px; }
.form .form-note { color: var(--muted); }
.form .form-note.ok { color: var(--ok); }
.form .form-note.err { color: var(--accent); }

/* 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.nf h1 { font-size: clamp(120px, 26vw, 320px); letter-spacing: -0.07em; line-height: .8; }
.nf h1 em { font-style: normal; color: var(--accent); }
.nf p { color: var(--ink-2); margin: 24px auto 32px; max-width: 420px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .header-side .socials { display: none; }
  .systems { grid-template-columns: repeat(3, 1fr); }
  .promo { grid-template-columns: 1fr 1fr 1fr; }
  .promo-count { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; align-items: end; padding: 32px 0; }
  .cat:first-of-type { padding-left: 0; }
  .integr { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  :root { --header-h: 66px; }
  .nav, .header-side { display: none; }
  .burger { display: block; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .hero-rail { display: none; }
  .hero-controls { left: 0; }
  .hero-tab .label { display: none; }
  .slide { grid-template-columns: minmax(0, 1fr); padding-bottom: 112px; gap: 40px; }
  .slide .screen { box-shadow: 10px 10px 0 -1px var(--paper-2), 10px 10px 0 0 var(--line-2); margin-right: 10px; }
  .slide .visual { max-width: 560px; }
  .section-head { grid-template-columns: 1fr; }
  .section-head p { justify-self: start; }
  .deal-inner { grid-template-columns: 1fr; }
  .deal-copy { padding-right: 0; }
  .deal-visual { border-left: 0; border-top: 1px solid var(--deep-line); padding: 40px 0 56px; }
  .work-split { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child, .foot-grid > div:last-child { grid-column: 1 / -1; }
  .page-head-grid { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; gap: 28px; }
  .offer-side { position: static; }
  .case { grid-template-columns: 1fr; }
  .case:nth-child(even) .case-visual { order: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .systems { grid-template-columns: 1fr 1fr; }
  .promo { grid-template-columns: 1fr; }
  .promo-count { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cat { border-right: 0; border-bottom: 1px solid var(--line); padding: 32px 0; min-height: 0; }
  .cat:last-child { border-bottom: 0; }
  .features { grid-template-columns: 1fr; }
  .feature, .feature + .feature { padding: 28px 0; border-left: 0; }
  .feature + .feature { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--deep-line); }
  .step h3 { margin-top: 20px; }
  .posts { grid-template-columns: 1fr; }
  .work-item { grid-template-columns: 88px 1fr; gap: 16px; }
  .work-thumb { width: 88px; height: 72px; }
  .work-item .go { display: none; }
  .checks { grid-template-columns: 1fr; }
  .checks li:nth-child(even) { padding-left: 0; border-left: 0; }
  .principles { grid-template-columns: 1fr; }
  .principle:nth-child(even) { padding-left: 0; border-left: 0; }
  .integr { grid-template-columns: 1fr; }
  .article summary { grid-template-columns: 1fr 44px; }
  .article summary .meta { grid-column: 1 / -1; }
  .article .content { grid-template-columns: 1fr; }
  .article .content > span { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .case dl { grid-template-columns: 96px 1fr; }
  .log th:nth-child(3), .log td:nth-child(3) { display: none; }
}

@media (max-width: 480px) {
  .systems { grid-template-columns: 1fr; }
  .sys { min-height: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .slide .actions .btn { flex: 1; justify-content: center; }
  .hero-arrows button { width: 54px; }
}

/* ==========================================================================
   Notes index + article pages
   ========================================================================== */
.notes { border-top: 1px solid var(--ink); }
.note-link { display: grid; grid-template-columns: 160px 1fr 44px; gap: 24px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); }
.note-link .meta { font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; line-height: 1.7; }
.note-link h2 { font-size: clamp(24px, 2.8vw, 38px); letter-spacing: -0.025em; transition: color .2s; }
.note-link p { margin: 10px 0 0; color: var(--ink-2); max-width: 680px; font-size: 15.5px; }
.note-link .go { width: 44px; height: 44px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .25s, color .25s, border-color .25s; }
.note-link:hover h2 { color: var(--accent); }
.note-link:hover .go { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.post-head h1 { max-width: 18ch; font-size: clamp(40px, 6vw, 84px); }
.post-meta-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.post-body { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(32px, 6vw, 96px); padding: clamp(48px, 6vw, 88px) 0; }
.post-aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; font-size: 14px; color: var(--muted); }
.post-aside .btn { margin-top: 16px; }
.prose { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose > p:first-child { font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); }
.prose h2 { font-family: var(--f-body); font-size: 22px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); margin: 40px 0 10px; line-height: 1.3; }
.prose ul { list-style: square; padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.prose .callout { margin-top: 40px; padding: 24px; border: 1px solid var(--line-2); background: var(--card); font-size: 16px; }
.prose .callout b { color: var(--ink); }
.more-notes { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0; }
.more-notes h2 { font-size: clamp(28px, 3vw, 40px); margin: 14px 0 24px; }

@media (max-width: 980px) {
  .post-body { grid-template-columns: 1fr; }
  .post-aside { position: static; order: 2; border-top: 1px solid var(--line); padding-top: 24px; }
}
@media (max-width: 760px) {
  .note-link { grid-template-columns: 1fr 44px; }
  .note-link .meta { grid-column: 1 / -1; }
}
