/* =============================================================
   MyInscribe — main stylesheet
   Ported 1:1 from the approved design system.

   1. Tokens & base          5. Home sections
   2. Typography & layout    6. Sub-page sections
   3. Components             7. Blog
   4. Navigation & footer    8. Forms
                             9. Accessibility & motion
   ============================================================= */

/* ---------- 1. Tokens & base ---------- */
:root {
  --bg: #fbfbf9;
  --ink: #131511;
  --mut: #6b6f66;
  --faint: #8a8e83;
  --soft: #55584f;
  --body: #4a4d45;
  --ghost: #b3b6ac;
  --hair: rgba(19, 21, 17, .12);
  --ac: #0F9E6E;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

.dark {
  background: #101210;
  color: #f2f3ef;
  --ink: #f2f3ef;
  --mut: #9aa093;
  --hair: rgba(242, 243, 239, .14);
}

/* ---------- 2. Typography & layout ---------- */
.serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 56px);
  width: 100%;
}

.h1 {
  font-size: clamp(48px, 7.2vw, 108px);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}

.h1--sub { font-size: clamp(44px, 6.4vw, 96px); line-height: .99; }

.h2 {
  font-size: clamp(36px, 4.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}

.h2--sub { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.03; letter-spacing: -.033em; }

.lead {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.6;
  color: var(--mut);
  max-width: 54ch;
  margin: 0;
  text-wrap: pretty;
}
.dark .lead { color: #9aa093; }

.lab {
  font-size: 13px;
  color: var(--faint);
  letter-spacing: .01em;
  font-weight: 500;
  margin: 0;
}
.dark .lab { color: #7c8276; }

.sec { padding: clamp(96px, 11vw, 170px) 0; }
.sec--flush { padding-top: 0; }

.split {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

/* Spacing / measure utilities (replace the prototype's inline styles) */
.mt-24 { margin-top: 24px; }
.mt-30 { margin-top: 30px; }
.mt-32 { margin-top: 32px; }
.mb-sec { margin-bottom: clamp(36px, 4vw, 56px); }
.mw-12 { max-width: 12.5ch; }
.mw-13 { max-width: 13ch; }
.mw-14 { max-width: 14ch; }
.mw-15 { max-width: 15ch; }
.mw-16 { max-width: 16ch; }
.mw-18 { max-width: 18ch; }
.accent { color: var(--ac); }

/* Scroll reveal: hidden only when JS is running, revealed by IO. */
html.js .rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.1s cubic-bezier(.2, .7, .2, 1), transform 1.1s cubic-bezier(.2, .7, .2, 1);
}
html.js .rv.in { opacity: 1; transform: none; }

/* ---------- 3. Components ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 15.5px;
  font-weight: 500;
  padding: 16px 30px;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: -.01em;
  background: var(--ink);
  color: #fbfbf9;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .25s, transform .3s var(--ease);
}
.btn:hover { transform: translateY(-1px); opacity: .88; }
.dark .btn { background: #fbfbf9; color: #101210; }
.btn[disabled] { opacity: .55; cursor: wait; transform: none; }

.tlk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -.01em;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 3px;
  transition: border-color .25s;
}
.tlk:hover { border-color: var(--ink); }

.arr { font-size: 15px; transition: transform .3s; }
.tlk:hover .arr, .btn:hover .arr { transform: translateX(3px); }

.plus {
  font-size: 22px;
  font-weight: 400;
  color: var(--faint);
  transition: transform .35s var(--ease);
  line-height: 1;
}

.crumbs { font-size: 13px; color: var(--faint); margin: 0 0 22px; }
.crumbs a { text-decoration: none; color: var(--soft); }
.crumbs a:hover { color: var(--ink); }

/* ---------- 4. Navigation & footer ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(251, 251, 249, .7);
}

.navin {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 56px);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -.025em;
  color: #131511;
  text-decoration: none;
}

.navlinks { display: flex; align-items: center; gap: 34px; }
.navlist { display: contents; list-style: none; margin: 0; padding: 0; }

.navlink {
  font-size: 14.5px;
  color: #55584f;
  text-decoration: none;
  letter-spacing: -.01em;
  transition: color .2s;
}
.navlink:hover { color: #131511; }
.navon, .current-menu-item > .navlink { color: #131511; font-weight: 500; }

.navcta {
  font-size: 14.5px;
  font-weight: 500;
  color: #131511;
  text-decoration: none;
  border-bottom: 1px solid rgba(19, 21, 17, .35);
  padding-bottom: 2px;
  transition: border-color .2s;
}
.navcta:hover { border-color: #131511; }

.navtoggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  margin-right: -8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.navtoggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #131511;
  transition: transform .3s var(--ease), opacity .2s;
}

/* Footer (dark act) */
.foot { padding: 72px 0 44px; }
.footgrid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 72px;
}
.fhead { font-size: 13px; color: #7c8276; margin: 0 0 16px; font-weight: 500; }
.flink {
  display: block;
  font-size: 15px;
  color: #c6cbc0;
  text-decoration: none;
  padding: 5px 0;
  transition: color .2s;
}
.flink:hover { color: #fff; }
.fbase {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--hair);
  font-size: 13px;
  color: #7c8276;
  flex-wrap: wrap;
  gap: 12px;
}
.gr8 { display: flex; flex-direction: column; gap: 8px; }
.foot .lead { font-size: 15px; max-width: 32ch; margin-top: 8px; }
.foot .logo { color: #f2f3ef; }
.footlist { list-style: none; margin: 0; padding: 0; }

/* Simple footer used on light sub-pages */
.fbase--page {
  padding: 36px 0;
  margin-top: clamp(60px, 7vw, 100px);
  color: var(--faint);
}
.fbase--page a { text-decoration: none; color: var(--soft); transition: color .2s; }
.fbase--page a:hover { color: var(--ink); }

/* ---------- 5. Home sections ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
}
.herocv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.herotxt { position: relative; z-index: 2; }
.hero .lead { margin-top: 32px; }

.eyeb { font-size: 14px; color: #55584f; margin: 0 0 30px; letter-spacing: -.005em; }
.eyeb b { font-weight: 500; color: #131511; }

.herobtns {
  display: flex;
  gap: 30px;
  margin-top: 48px;
  align-items: center;
  flex-wrap: wrap;
}

.stats { display: flex; gap: 0; margin-top: clamp(64px, 8vw, 110px); flex-wrap: wrap; }
.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: clamp(28px, 4vw, 56px);
  margin-right: clamp(28px, 4vw, 56px);
  border-right: 1px solid var(--hair);
}
.stat:last-child { border-right: none; }
.statn { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.03em; }
.statl { font-size: 13.5px; color: var(--faint); }

/* Logo strip */
.strip { padding: 44px 0 60px; }
.striplab { font-size: 13px; color: var(--faint); margin: 0 0 26px; }
.marks {
  display: flex;
  align-items: baseline;
  gap: clamp(28px, 4.5vw, 64px);
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mark {
  font-size: 19px;
  letter-spacing: -.02em;
  color: var(--ghost);
  font-weight: 600;
  white-space: nowrap;
  transition: color .3s;
  cursor: default;
}
.mark:hover { color: #131511; }
.mark img { display: block; max-height: 28px; width: auto; filter: grayscale(1); opacity: .55; transition: opacity .3s, filter .3s; }
.mark:hover img { filter: none; opacity: 1; }
.mk2 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 22px; letter-spacing: 0; }
.mk3 { font-family: 'Geist Mono', monospace; font-weight: 400; font-size: 16px; letter-spacing: .04em; }

/* "Search has changed" engine flow */
.engflow {
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.18;
  letter-spacing: -.03em;
  font-weight: 500;
  margin: clamp(40px, 5vw, 72px) 0 0;
  max-width: 22ch;
  text-wrap: balance;
}
.engflow .en { white-space: nowrap; transition: color .3s; }
.engflow .en:hover { color: #3ecf96; }
.engflow .dim { color: #565c52; }
.changed .lead { margin-top: 28px; }

/* Philosophy */
.philq {
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -.032em;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
  max-width: 20ch;
}
.phil { padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--hair); }
.phil:first-child { border-top: none; padding-top: 0; }
.philp {
  font-size: 16px;
  line-height: 1.65;
  color: var(--mut);
  margin: 20px 0 0;
  max-width: 52ch;
  text-wrap: pretty;
}

/* Service ledger (accordion) */
.svc { border-top: 1px solid var(--hair); }
.svc:last-of-type { border-bottom: 1px solid var(--hair); }
.svchd {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 30px 0;
  cursor: pointer;
  list-style: none;
  transition: padding-left .35s var(--ease);
}
.svchd:hover { padding-left: 10px; }
.svchd::-webkit-details-marker { display: none; }
.svctitle { font-size: clamp(22px, 2.3vw, 32px); font-weight: 500; letter-spacing: -.028em; }
.svcsum { font-size: 15px; line-height: 1.55; color: var(--mut); }
.svc[open] .plus { transform: rotate(45deg); }
.svcbody {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  padding: 6px 0 44px;
  animation: svcIn .5s var(--ease);
}
@keyframes svcIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.svclab { font-size: 13px; color: var(--ac); font-weight: 500; margin: 0 0 10px; }
.svctxt { font-size: 15px; line-height: 1.6; color: var(--body); margin: 0; text-wrap: pretty; }
.svcmore { margin-top: 44px; }

/* Framework rows */
.fwintro { margin: 26px 0 clamp(36px, 4vw, 56px); }
.fwrow {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: baseline;
  padding: clamp(30px, 3.6vw, 44px) 0;
  border-top: 1px solid var(--hair);
  transition: padding-left .35s var(--ease);
}
.fwrow:hover { padding-left: 12px; }
.fwrow:last-child { border-bottom: 1px solid var(--hair); }
.fwname { font-size: clamp(24px, 2.6vw, 38px); font-weight: 500; letter-spacing: -.03em; }
.fwname i {
  font-family: 'Geist Mono', monospace;
  font-style: normal;
  font-size: .45em;
  color: #565c52;
  vertical-align: super;
  margin-right: 14px;
  letter-spacing: 0;
}
.fwdesc { font-size: 15.5px; line-height: 1.6; color: var(--mut); margin: 0; text-wrap: pretty; }

/* Case teasers */
.case {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: baseline;
  padding: clamp(36px, 4.4vw, 56px) 0;
  border-top: 1px solid var(--hair);
  text-decoration: none;
  color: inherit;
  transition: padding-left .35s var(--ease);
}
.case:hover { padding-left: 12px; }
.case:last-of-type { border-bottom: 1px solid var(--hair); }
.caseco { display: flex; flex-direction: column; gap: 6px; }
.casenm { font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -.025em; }
.casetag { font-size: 13.5px; color: var(--faint); }
.casen {
  font-size: clamp(56px, 6vw, 92px);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: .95;
  transition: color .35s;
}
.case:hover .casen { color: var(--ac); }
.casem { font-size: 14px; color: var(--faint); margin-top: 6px; display: block; letter-spacing: -.005em; }
.casep { font-size: 15.5px; line-height: 1.6; color: var(--mut); margin: 0; text-wrap: pretty; }

/* Industries */
.indflow {
  font-size: clamp(26px, 3.2vw, 46px);
  line-height: 1.35;
  letter-spacing: -.028em;
  font-weight: 500;
  margin: 0;
  max-width: 26ch;
  color: var(--ghost);
}
.indflow .on { color: #131511; transition: color .3s; }
.indflow .on:hover { color: var(--ac); }

/* Process steps */
.plist { list-style: none; margin: 0; padding: 0; }
.pstep {
  display: grid;
  grid-template-columns: 64px 220px 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--hair);
}
.pstep:last-child { border-bottom: 1px solid var(--hair); }
.pnum { font-family: 'Geist Mono', monospace; font-size: 13px; color: var(--faint); }
.pname { font-size: clamp(19px, 1.8vw, 24px); font-weight: 500; letter-spacing: -.02em; }
.pdesc { font-size: 15px; line-height: 1.6; color: var(--mut); margin: 0; text-wrap: pretty; }

/* Testimonials */
.tst { margin: 0; padding: clamp(44px, 5vw, 64px) 0; border-top: 1px solid var(--hair); }
.tst:first-child { border-top: none; padding-top: 0; }
.tstq {
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1.22;
  letter-spacing: -.025em;
  font-weight: 400;
  margin: 0;
  max-width: 28ch;
  text-wrap: balance;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
}
.tsta { font-size: 14.5px; color: var(--faint); margin: 26px 0 0; }
.tsta b { color: #131511; font-weight: 500; }

/* FAQ */
.faq { border-top: 1px solid var(--hair); }
.faq:last-of-type { border-bottom: 1px solid var(--hair); }
.faqhd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 500;
  letter-spacing: -.018em;
}
.faqhd::-webkit-details-marker { display: none; }
.faqbody { padding: 0 0 32px; max-width: 62ch; }
.faq[open] .plus { transform: rotate(45deg); }

/* Final CTA */
.cta { display: flex; flex-direction: column; gap: 40px; }
.ctah {
  font-size: clamp(52px, 8.4vw, 132px);
  line-height: .97;
  letter-spacing: -.045em;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
.ctah--sub { font-size: clamp(48px, 7.4vw, 116px); }
.cta--page { gap: 36px; }

/* ---------- 6. Sub-page sections ---------- */
.phero { padding-top: 200px; padding-bottom: clamp(72px, 8vw, 110px); }
.phero .h1 { margin-top: 24px; }
.phero .lead { margin-top: 30px; }

/* Services page ledger */
.svclist { padding-bottom: clamp(80px, 9vw, 130px); }
.srow {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(28px, 5vw, 88px);
  align-items: baseline;
  padding: clamp(44px, 5.4vw, 72px) 0;
  border-top: 1px solid var(--hair);
}
.srow:last-of-type { border-bottom: 1px solid var(--hair); }
.st { font-size: clamp(30px, 3.4vw, 48px); font-weight: 500; letter-spacing: -.032em; margin: 0; }
.st i {
  font-family: 'Geist Mono', monospace;
  font-style: normal;
  font-size: .4em;
  color: var(--faint);
  vertical-align: super;
  margin-right: 16px;
  letter-spacing: 0;
}
.ssub { font-size: 15px; color: var(--mut); margin: 12px 0 0; max-width: 30ch; line-height: 1.55; }
.sd { font-size: 16.5px; line-height: 1.65; color: var(--body); margin: 0; text-wrap: pretty; }
.sls { margin: 22px 0 0; font-size: 14px; color: var(--faint); line-height: 1.9; }

.deliv { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: clamp(36px, 4vw, 56px); }
.dl {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: baseline;
  padding: clamp(28px, 3.4vw, 40px) 0;
  border-top: 1px solid var(--hair);
}
.dl:last-child { border-bottom: 1px solid var(--hair); }
.dln { font-size: clamp(21px, 2.2vw, 30px); font-weight: 500; letter-spacing: -.025em; }
.dld { font-size: 15.5px; line-height: 1.6; color: var(--mut); margin: 0; }

/* Case studies page (memos) */
.memo { padding: clamp(56px, 6.4vw, 88px) 0; border-top: 1px solid var(--hair); }
.memohd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 4vw, 52px);
}
.memoco { font-size: clamp(28px, 3.2vw, 44px); font-weight: 500; letter-spacing: -.032em; margin: 0; }
.memotag { font-size: 14px; color: var(--faint); }
.mets { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: clamp(40px, 4.6vw, 60px); }
.met {
  display: flex;
  flex-direction: column;
  padding-right: clamp(32px, 4.5vw, 64px);
  margin-right: clamp(32px, 4.5vw, 64px);
  border-right: 1px solid var(--hair);
}
.met:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.metn { font-size: clamp(48px, 5.4vw, 84px); font-weight: 500; letter-spacing: -.05em; line-height: .95; }
.metl { font-size: 14px; color: var(--faint); margin-top: 12px; }
.blks { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); }
.blkl { font-size: 13px; color: var(--ac); font-weight: 500; margin: 0 0 12px; }
.blkt { font-size: 15.5px; line-height: 1.65; color: var(--body); margin: 0; text-wrap: pretty; }
.tl { display: flex; gap: 0; margin-top: clamp(36px, 4vw, 52px); }
.tlp {
  flex: 1;
  padding: 16px 16px 0 0;
  border-top: 1px solid rgba(19, 21, 17, .3);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tlm { font-family: 'Geist Mono', monospace; font-size: 11.5px; color: var(--faint); }
.tlt { font-size: 14px; font-weight: 500; }
.note {
  font-size: 13px;
  color: var(--faint);
  margin: clamp(40px, 5vw, 64px) 0 0;
  border-top: 1px solid var(--hair);
  padding-top: 24px;
}

/* About page */
.story { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.nums { display: flex; gap: 0; flex-wrap: wrap; margin-top: clamp(36px, 4vw, 56px); }
.num {
  display: flex;
  flex-direction: column;
  padding-right: clamp(32px, 4.5vw, 72px);
  margin-right: clamp(32px, 4.5vw, 72px);
  border-right: 1px solid var(--hair);
}
.num:last-child { border-right: none; }
.numn { font-size: clamp(44px, 5vw, 76px); font-weight: 500; letter-spacing: -.05em; line-height: .95; }
.numl { font-size: 14px; color: var(--mut); margin-top: 12px; }
.rules { margin-top: clamp(36px, 4vw, 56px); }
.rule {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: baseline;
  padding: clamp(30px, 3.6vw, 44px) 0;
  border-top: 1px solid var(--hair);
}
.rule:last-of-type { border-bottom: 1px solid var(--hair); }
.rulen { font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.027em; }
.rulen i {
  font-family: 'Geist Mono', monospace;
  font-style: normal;
  font-size: .45em;
  color: var(--faint);
  vertical-align: super;
  margin-right: 14px;
  letter-spacing: 0;
}
.ruled { font-size: 15.5px; line-height: 1.6; color: var(--mut); margin: 0; text-wrap: pretty; }
.toolsintro { margin: 26px 0 clamp(30px, 3.4vw, 44px); }
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.tool {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  align-items: baseline;
  padding: 26px clamp(24px, 3vw, 48px) 26px 0;
  border-top: 1px solid var(--hair);
}
.tooln { font-size: clamp(19px, 1.9vw, 25px); font-weight: 500; letter-spacing: -.02em; }
.toold { font-size: 14.5px; color: var(--mut); margin: 0; line-height: 1.55; }

/* Contact page */
.cmain {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 140px);
  align-items: start;
  padding-top: 190px;
  padding-bottom: 100px;
}
.cmain .h1 { font-size: clamp(40px, 5.2vw, 76px); line-height: 1; margin-top: 22px; }
.cmain .lead { margin: 26px 0 44px; }
.exp {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--hair);
  align-items: baseline;
}
.exp:last-child { border-bottom: 1px solid var(--hair); }
.expn { font-family: 'Geist Mono', monospace; font-size: 12.5px; color: var(--faint); }
.expt { font-size: 15.5px; line-height: 1.55; color: var(--mut); margin: 0; }
.expt b { color: #131511; font-weight: 500; }

/* ---------- 7. Blog ---------- */
.bloghero { padding-top: 200px; padding-bottom: clamp(48px, 6vw, 72px); }
.bloghero .h1 { margin-top: 24px; }
.bloghero .lead { margin-top: 30px; }
.postmeta { display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; font-size: 14px; color: var(--faint); margin-top: 28px; }
.postmeta a { text-decoration: none; color: var(--soft); }
.postmeta a:hover { color: var(--ink); }

.alist { padding-bottom: clamp(80px, 9vw, 130px); }
.acard {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: clamp(24px, 4vw, 64px);
  align-items: baseline;
  padding: clamp(32px, 4vw, 48px) 0;
  border-top: 1px solid var(--hair);
  text-decoration: none;
  color: inherit;
  transition: padding-left .35s var(--ease);
}
.acard:hover { padding-left: 12px; }
.acard:last-of-type { border-bottom: 1px solid var(--hair); }
.acard-date { font-family: 'Geist Mono', monospace; font-size: 12.5px; color: var(--faint); }
.acard-title { font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.028em; margin: 0; transition: color .3s; }
.acard:hover .acard-title { color: var(--ac); }
.acard-ex { font-size: 15px; line-height: 1.6; color: var(--mut); margin: 10px 0 0; max-width: 60ch; }

.pagination { display: flex; gap: 8px; margin-top: 48px; font-size: 14.5px; }
.pagination .page-numbers {
  padding: 8px 14px;
  border: 1px solid var(--hair);
  border-radius: 100px;
  text-decoration: none;
  color: var(--soft);
  transition: border-color .2s, color .2s;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { border-color: var(--ink); color: var(--ink); }

.article-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 720px);
  gap: clamp(40px, 5vw, 88px);
  justify-content: center;
  padding-bottom: clamp(80px, 9vw, 130px);
}
.article-side { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: 36px; }
.toc { font-size: 14px; }
.toc ol { list-style: none; margin: 14px 0 0; padding: 0; }
.toc a {
  display: block;
  padding: 6px 0;
  text-decoration: none;
  color: var(--soft);
  border-left: 1px solid var(--hair);
  padding-left: 14px;
  transition: color .2s, border-color .2s;
}
.toc a:hover, .toc a.on { color: var(--ink); border-color: var(--ink); }
.toc .lv3 { padding-left: 28px; font-size: 13px; }

.share { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.share-lnk {
  font-size: 14px;
  color: var(--soft);
  text-decoration: none;
  background: none;
  border: none;
  border-bottom: 1px solid var(--hair);
  padding: 0 0 2px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .2s, color .2s;
}
.share-lnk:hover { border-color: var(--ink); color: var(--ink); }

.entry-content { font-size: 17px; line-height: 1.75; color: #2e312b; }
.entry-content > * { margin: 0 0 1.5em; }
.entry-content h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.028em; font-weight: 500; line-height: 1.15; margin: 2.2em 0 .7em; }
.entry-content h3 { font-size: clamp(20px, 2vw, 25px); letter-spacing: -.02em; font-weight: 500; margin: 2em 0 .6em; }
.entry-content a { color: var(--ac); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content blockquote {
  border-left: 2px solid var(--ac);
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.25em;
  line-height: 1.4;
  color: var(--ink);
}
.entry-content img { border-radius: 4px; }
.entry-content pre { background: #101210; color: #f2f3ef; padding: 20px 24px; border-radius: 6px; overflow-x: auto; font-size: 14px; }
.entry-content code { font-family: 'Geist Mono', monospace; font-size: .92em; }
.entry-content li { margin-bottom: .4em; }
.wp-block-image figcaption { font-size: 13px; color: var(--faint); }

.authorbox {
  display: flex;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--hair);
  margin-top: clamp(48px, 5vw, 64px);
  padding-top: 32px;
}
.authorbox img { border-radius: 100px; }
.authorbox-name { font-size: 16px; font-weight: 500; margin: 0; }
.authorbox-name a { text-decoration: none; }
.authorbox-bio { font-size: 14.5px; color: var(--mut); margin: 6px 0 0; line-height: 1.55; }

.related { border-top: 1px solid var(--hair); padding-top: clamp(40px, 5vw, 56px); margin-top: clamp(48px, 5vw, 72px); }

/* ---------- 8. Forms ---------- */
.form { display: flex; flex-direction: column; gap: 26px; padding-top: 8px; }
.fld { display: flex; flex-direction: column; gap: 9px; }
.flb { font-size: 13px; color: var(--faint); font-weight: 500; }
.fin {
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  padding: 12px 2px;
  border: none;
  border-bottom: 1px solid rgba(19, 21, 17, .22);
  background: transparent;
  color: #131511;
  outline: none;
  transition: border-color .25s;
  width: 100%;
  resize: vertical;
  border-radius: 0;
}
.fin:focus { border-color: #131511; }
.fin::placeholder { color: var(--ghost); }
.fin[aria-invalid="true"] { border-color: #c0392b; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.fnote { font-size: 13px; color: var(--faint); margin: 0; }
.faction { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ferr { font-size: 14px; color: #c0392b; margin: 0; }
.sent {
  border-top: 2px solid var(--ac);
  padding: 18px 0 0;
  font-size: 15px;
  color: #0c7a56;
  line-height: 1.55;
}
/* Honeypot: hidden from humans, present for bots. */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Search form (archives / 404) */
.searchform { display: flex; gap: 16px; max-width: 480px; }

/* ---------- 9. Accessibility & motion ---------- */
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; border-radius: 2px; }
.nav a:focus-visible, .btn:focus-visible { outline-offset: 4px; }
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .svchd { grid-template-columns: 1fr auto; }
  .svcsum { display: none; }
  .svcbody { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .pstep { grid-template-columns: 64px 1fr; }
  .pdesc { grid-column: 2; }
  .footgrid { grid-template-columns: 1fr 1fr; }
  .fwrow, .srow, .dl, .rule, .blks { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr; }
  .tool { grid-template-columns: 1fr; }
  .tl { flex-direction: column; gap: 14px; }
  .tlp { border-top: none; border-left: 1px solid rgba(19, 21, 17, .3); padding: 2px 0 2px 14px; }
  .cmain { grid-template-columns: 1fr; padding-top: 150px; }
  .article-grid { grid-template-columns: minmax(0, 720px); }
  .article-side { position: static; flex-direction: row; flex-wrap: wrap; gap: 40px; }
  .acard { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 720px) {
  .navlinks {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(251, 251, 249, .97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--hair);
    padding: 8px clamp(24px, 4vw, 56px) 24px;
    display: none;
  }
  .navlinks.open { display: flex; }
  .navlist { display: flex; flex-direction: column; width: 100%; }
  .navlink { display: block; padding: 14px 0; font-size: 17px; width: 100%; }
  .navcta { margin-top: 14px; font-size: 16px; }
  .navtoggle { display: flex; }
  .navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .stats { gap: 20px; }
  .stat { padding-right: 24px; margin-right: 0; }
  .footgrid { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
  .mets { gap: 24px; }
  .met, .num { padding-right: 24px; margin-right: 0; border-right: none; }
}
