/* ============================================================
   ECHTUAL — design system
   "echt + actual = authentic" — editorial, plain-spoken, real.
   Ink navy heritage + warm paper + brass accent.
   ============================================================ */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-italic.woff2') format('woff2');
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0b1c2c;          /* deep ink navy — heritage of the old brand */
  --ink-soft: #13293d;
  --ink-line: #24405a;
  --paper: #faf7f1;        /* warm paper */
  --paper-deep: #f2ecdf;
  --white: #ffffff;
  --brass: #e8a83e;        /* the one confident accent */
  --brass-deep: #c8871d;
  --text: #1c2b3a;
  --muted: #5c6b7a;
  --muted-on-ink: #9fb2c4;
  --line: #e3dccd;         /* hairline rules on paper — ledger lines */

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  --step-6: clamp(2.6rem, 1.4rem + 5.2vw, 5.6rem);   /* hero */
  --step-5: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem);   /* h1 inner pages */
  --step-4: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);     /* h2 */
  --step-3: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);    /* h3 */
  --step-1: clamp(1.05rem, 1rem + .25vw, 1.2rem);    /* lede */
  --step-0: 1rem;

  --space-section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --wrap: 72rem;
  --radius: 10px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 100;
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-3); }
p  { max-width: 65ch; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.section { padding-block: var(--space-section); }

/* accent italic word inside display headings */
.accent-i {
  font-style: italic;
  font-weight: 480;
  color: var(--brass);
}

/* kicker — small caps label, the "REAL." register */
.kicker {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: '';
  width: 2.2rem;
  height: 2px;
  background: var(--brass);
}
.on-ink .kicker { color: var(--brass); }

.lede { font-size: var(--step-1); color: var(--muted); max-width: 58ch; }
.on-ink .lede { color: var(--muted-on-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: #f0b955; }
.btn-ghost { border-color: var(--ink-line); color: var(--white); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-soft); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* text link with brass underline */
.link-real {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--brass);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
.link-real:hover { color: var(--brass-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 2.1rem; width: auto; max-width: none; }
.brand .brand-tag {
  margin-left: .8rem;
  padding-left: .8rem;
  border-left: 1px solid var(--ink-line);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-on-ink);
  white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 1.7rem; }
.site-nav a:not(.btn) {
  color: #d8e2ec;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  transition: color .15s ease;
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--brass); }
.site-nav .btn { padding: .55rem 1.2rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* services dropdown */
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: .3rem; }
.nav-drop {
  position: absolute;
  top: calc(100% + .9rem);
  left: 50%;
  translate: -50% 0;
  min-width: 15rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(11, 28, 44, .22);
  padding: .6rem;
  display: none;
}
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop { display: block; }
.nav-drop a {
  display: block;
  padding: .55rem .85rem;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 500;
}
.nav-drop a:hover { background: var(--paper); color: var(--brass-deep); }
/* invisible hover bridge across the gap between trigger and dropdown */
.nav-drop::before { content: ''; position: absolute; top: -1rem; left: 0; right: 0; height: 1rem; }

@media (max-width: 56rem) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-line);
    padding: .75rem 1.25rem 1.5rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem .25rem; border-bottom: 1px solid var(--ink-line); }
  .site-nav .btn { margin-top: 1rem; justify-content: center; border-bottom: 0; }
  .nav-drop { position: static; translate: none; display: block; box-shadow: none; background: none; padding: 0 0 0 1rem; min-width: 0; }
  .nav-drop a { color: var(--muted-on-ink); border-bottom: 0; padding: .55rem .25rem; }
  .nav-item > a { display: none; } /* replaced by expanded list on mobile */
  .brand .brand-tag { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::after { /* faint oversized wordmark ghost */
  content: 'echt.';
  position: absolute;
  right: -2rem;
  bottom: -5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24rem;
  line-height: 1;
  color: rgba(255, 255, 255, .025);
  pointer-events: none;
  user-select: none;
}
.hero .wrap { padding-block: clamp(5rem, 4rem + 6vw, 9rem) clamp(4rem, 3rem + 4vw, 6.5rem); position: relative; z-index: 1; }
.hero h1 {
  font-size: var(--step-6);
  color: var(--white);
  max-width: 15ch;
}
.hero .lede { margin-top: 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero-meta {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-line);
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 3rem;
  font-size: .85rem;
  color: var(--muted-on-ink);
}
.hero-meta strong { display: block; color: var(--white); font-size: 1.05rem; font-weight: 600; }

/* ---------- Section heads ---------- */
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head .lede { margin-top: 1rem; }

/* ---------- Service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(11, 28, 44, .1);
  border-color: var(--brass);
}
.card .card-no {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--brass-deep);
}
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); font-size: .95rem; flex-grow: 1; }
.card .card-link { font-weight: 600; font-size: .9rem; color: var(--ink); }
.card .card-link::after { content: ' \2192'; color: var(--brass-deep); }
.card:hover .card-link { color: var(--brass-deep); }

/* ---------- Story ("echt + actual") ---------- */
.story { background: var(--paper-deep); }
.story .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 2rem + 4vw, 6rem);
  align-items: center;
}
@media (max-width: 56rem) { .story .wrap { grid-template-columns: 1fr; } }
.story-formula {
  font-family: var(--font-display);
  color: var(--ink);
  display: grid;
  gap: .4rem;
}
.story-formula .row { display: flex; align-items: baseline; gap: 1rem; }
.story-formula .word { font-size: clamp(2.6rem, 2rem + 3vw, 4.2rem); font-weight: 560; letter-spacing: -.02em; }
.story-formula .word em { font-style: italic; font-weight: 460; color: var(--brass-deep); }
.story-formula .gloss { font-family: var(--font-body); font-size: .9rem; color: var(--muted); }
.story-formula .rule { height: 3px; background: var(--ink); margin-block: .8rem; max-width: 26rem; }
.story-body p + p { margin-top: 1rem; }

/* ---------- Stats / credentials strip ---------- */
.cred-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.8rem, 1.5rem + 3vw, 4.5rem);
  padding-block: 2.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cred-strip img { height: 3.4rem; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s ease, opacity .2s ease; }
.cred-strip img:hover { filter: none; opacity: 1; }

/* ---------- Founder ---------- */
.founder .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2.5rem, 2rem + 4vw, 5rem);
  align-items: start;
}
@media (max-width: 56rem) { .founder .wrap { grid-template-columns: 1fr; } }
.founder-photo {
  border-radius: var(--radius);
  margin-bottom: 1.6rem;
  box-shadow: 0 18px 45px rgba(11, 28, 44, .18);
}
.founder-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-3);
  line-height: 1.35;
  color: var(--ink);
  border-left: 3px solid var(--brass);
  padding-left: 1.4rem;
}
.founder-name { margin-top: 1.4rem; font-size: .9rem; color: var(--muted); }
.founder-name strong { display: block; color: var(--ink); font-size: 1.05rem; }
.founder-creds { list-style: none; padding: 0; display: grid; gap: .9rem; margin-top: 1.5rem; }
.founder-creds li { display: flex; gap: .8rem; align-items: baseline; color: var(--muted); }
.founder-creds li::before { content: '\2713'; color: var(--brass-deep); font-weight: 700; }

/* ---------- Pricing teaser / cards ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.4rem;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.price-card.featured { background: var(--ink); border-color: var(--ink); color: var(--white); }
.price-card.featured h3 { color: var(--white); }
.price-card .price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 560;
  color: var(--ink);
}
.price-card.featured .price { color: var(--brass); }
.price-card .price small { font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: var(--muted); }
.price-card.featured .price small { color: var(--muted-on-ink); }
.price-card ul { list-style: none; padding: 0; margin-top: .6rem; display: grid; gap: .55rem; font-size: .92rem; color: var(--muted); flex-grow: 1; }
.price-card.featured ul { color: var(--muted-on-ink); }
.price-card ul li { display: flex; gap: .6rem; }
.price-card ul li::before { content: '\2713'; color: var(--brass-deep); font-weight: 700; }
.price-card.featured ul li::before { color: var(--brass); }
.price-card .btn { margin-top: 1.4rem; justify-content: center; }

/* ---------- Insights ---------- */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.4rem;
}
.insight-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.insight-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(11,28,44,.1); border-color: var(--brass); }
.insight-card .tag { font-size: .72rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-deep); }
.insight-card h3 { font-size: 1.25rem; }
.insight-card p { color: var(--muted); font-size: .94rem; flex-grow: 1; }
.insight-card time { font-size: .8rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.3rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--brass-deep);
  line-height: 1;
  transition: rotate .2s ease;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details > div { padding: 0 0 1.4rem; color: var(--muted); }
.faq details > div p + p { margin-top: .8rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--white); }
.cta-band .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 2.5rem;
}
@media (max-width: 56rem) { .cta-band .wrap { grid-template-columns: 1fr; } }
.cta-band h2 { color: var(--white); font-size: var(--step-4); max-width: 22ch; }
.cta-band .lede { margin-top: .8rem; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-on-ink); border-top: 1px solid var(--ink-line); font-size: .9rem; }
.site-footer .wrap { padding-block: 3.5rem 2.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}
@media (max-width: 56rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36rem) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: var(--muted-on-ink); text-decoration: none; }
.site-footer a:hover { color: var(--brass); }
.site-footer .brand img { height: 1.8rem; margin-bottom: .6rem; }
.footer-zh { font-size: .85rem; letter-spacing: .12em; color: var(--muted-on-ink); margin-bottom: 1rem; }
.footer-legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: .8rem;
}
address { font-style: normal; line-height: 1.8; }

/* ---------- Inner-page hero ---------- */
.page-hero { background: var(--ink); color: var(--white); }
.page-hero .wrap { padding-block: clamp(3.5rem, 3rem + 3vw, 6rem); }
.page-hero h1 { font-size: var(--step-5); color: var(--white); max-width: 18ch; }
.page-hero .lede { margin-top: 1.2rem; }

/* prose blocks on inner pages */
.prose h2 { margin-top: 2.6rem; margin-bottom: .9rem; }
.prose h3 { margin-top: 2rem; margin-bottom: .7rem; }
.prose p + p { margin-top: 1rem; }
.prose ul { color: var(--muted); padding-left: 1.2rem; display: grid; gap: .5rem; margin-block: 1rem; }
.prose strong { color: var(--ink); }

/* two-col service layout */
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: start; }
@media (max-width: 56rem) { .split { grid-template-columns: 1fr; } }
.aside-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  position: sticky;
  top: 6rem;
}
.aside-card h3 { font-size: 1.15rem; margin-bottom: .8rem; }
.aside-card p { font-size: .92rem; color: var(--muted); }
.aside-card .btn { margin-top: 1.2rem; width: 100%; justify-content: center; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; }
.form-grid .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 36rem) { .form-grid .two { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .88rem; color: var(--ink); display: block; margin-bottom: .35rem; }
input, textarea, select {
  width: 100%;
  font: inherit;
  padding: .8rem .95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; translate: 0 22px; transition: opacity .6s ease, translate .6s ease; }
  .reveal.in { opacity: 1; translate: 0 0; }
}

/* ---------- Utility ---------- */
.on-ink { color: var(--white); }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass);
  color: var(--ink);
  padding: .6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Chat widget ---------- */
.chat-panel[hidden] { display: none !important; }
.chat-panel {
  position: fixed;
  right: 1.25rem;
  bottom: 5.4rem;
  z-index: 90;
  width: min(22rem, calc(100vw - 2.5rem));
  height: min(30rem, calc(100vh - 8rem));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(11, 28, 44, .3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-head {
  background: var(--ink);
  color: var(--white);
  padding: .8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
}
.chat-sub { display: block; font-size: .7rem; color: var(--muted-on-ink); margin-top: .15rem; }
.chat-close { background: none; border: 0; color: var(--muted-on-ink); font-size: 1.3rem; cursor: pointer; line-height: 1; }
.chat-close:hover { color: var(--white); }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.chat-msg { max-width: 85%; padding: .55rem .8rem; border-radius: 10px; font-size: .9rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: break-word; }
.chat-user { align-self: flex-end; background: var(--ink); color: var(--white); border-bottom-right-radius: 3px; }
.chat-assistant { align-self: flex-start; background: var(--paper); color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.chat-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); }
.chat-input { flex: 1; padding: .55rem .8rem; font-size: .9rem; }
.chat-send { border: 0; background: var(--brass); color: var(--ink); border-radius: 8px; width: 2.6rem; font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.chat-send:hover { background: #f0b955; }
.chat-foot { font-size: .75rem; color: var(--muted); padding: .5rem .9rem .7rem; }
.chat-foot a { color: var(--ink); font-weight: 600; }
@media print { .chat-panel { display: none; } .hero-l2, .hero-motto, .hero-rule { opacity: 1 !important; transform: none !important; } }

/* ---------- Self-serve tools ---------- */
.tool-card {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  margin: 2.2rem 0;
}
.tool-card h3 { margin-bottom: 1rem; }
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.tool-check { display: flex; align-items: end; }
.tool-check label { display: flex; align-items: center; gap: .55rem; font-weight: 500; margin: 0; padding-bottom: .6rem; }
.tool-check input { width: auto; }
.tool-verdict {
  margin-top: 1.2rem;
  padding: 1.1rem 1.2rem;
  background: var(--white);
  border-radius: 8px;
  border-left: 4px solid var(--line);
}
.tool-verdict p { margin: 0; }
.tool-verdict p + p { margin-top: .6rem; }
.verdict-good { border-left-color: var(--brass); }
.verdict-bad { border-left-color: var(--ink); }
.verdict-warn { border-left-color: var(--brass-deep); }
.tool-note { font-size: .8rem; color: var(--muted); margin-top: 1rem; }
.deadline-list { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .8rem; }
.deadline-list li { border-bottom: 1px solid var(--line); padding-bottom: .8rem; }
.deadline-list strong { font-size: 1.05rem; }
.deadline-count { color: var(--brass-deep); font-weight: 600; font-size: .85rem; margin-left: .4rem; }

/* chat handoff */
.chat-handoff { display: grid; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); background: var(--paper); }
.chat-handoff-note { font-size: .8rem; color: var(--muted); margin: 0; }
.chat-handoff .btn { justify-content: center; padding: .55rem 1rem; font-size: .85rem; }
.chat-handoff[hidden] { display: none !important; }
.chat-pass { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 600; font-size: .78rem; cursor: pointer; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; display: block; margin-bottom: .3rem; }
.chat-pass:hover { color: var(--brass-deep); }
.chat-pass[hidden] { display: none !important; }

/* ---------- Glossary ---------- */
.glossary { margin: 1.2rem 0 2rem; }
.glossary dt {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 1.4rem;
  scroll-margin-top: 6rem;
}
.glossary dd { margin: .3rem 0 0; color: var(--muted); }

/* ---------- Seasonal greeting banner ---------- */
.greeting-banner {
  background: var(--brass);
  color: var(--ink);
}
.greeting-banner .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .65rem;
}
.greeting-banner p { margin: 0; font-weight: 600; font-size: .95rem; max-width: none; }
.greeting-close { background: none; border: 0; color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; opacity: .7; }
.greeting-close:hover { opacity: 1; }

/* client sign-in row in footer */
.footer-signin { margin-top: 1rem; font-size: .8rem; }
.footer-signin a { font-weight: 600; }
/* article figures */
.prose figure { margin: 1.5rem 0; }
.prose figure img { border-radius: var(--radius); border: 1px solid var(--line); }

/* ---------- Tagline performance (homepage hero) ----------
   The hero performs the tagline as an equation, once per session: letters of
   line 1 are shaped into place, the working flashes in brackets (BOMDAS),
   the equals is stamped (the double rule = the accountant's total strike),
   and the result appears. Driven by main.js; without JS or under reduced
   motion everything below is simply visible. */
.hero-l1 .word { display: inline-block; white-space: nowrap; }
.hero-l1 .ch { display: inline-block; transition: transform .95s cubic-bezier(.2,.85,.25,1), opacity .55s ease; }
.tl-pending .hero-l1 .ch { opacity: 0; }
.tl-go .hero-l1 .ch { transform: none !important; opacity: 1; }

.hero-row2 { position: relative; display: inline-block; }
.hero-ops { position: absolute; left: .04em; top: .3em; font-family: var(--font-display); font-style: italic; font-size: .72em; line-height: 1; color: var(--brass); opacity: 0; white-space: nowrap; transition: opacity .12s ease; }
.hero-ops.on { opacity: 1; }

.hero-eq { height: 1.4rem; margin-top: 1.2rem; display: flex; align-items: center; }
.hero-rule { width: 11rem; height: 9px; border-top: 2.5px solid var(--brass); border-bottom: 2.5px solid var(--brass); opacity: 0; transform: scale(1.7); }
.tl-stamp .hero-rule { opacity: 1; transform: scale(1); transition: transform .2s cubic-bezier(.2,1.5,.4,1), opacity .1s ease; }

.hero-l2 { display: inline-block; opacity: 0; }
.tl-actual .hero-l2 { opacity: 1; transition: opacity .45s ease; }

.hero-motto { font-family: var(--font-display); font-style: italic; color: var(--brass); font-size: 1.25rem; margin: 1.1rem 0 0; opacity: 0; }
.tl-motto-in .hero-motto { opacity: 1; transition: opacity .6s ease; }

.tl-done .hero-l1 .ch { transform: none !important; opacity: 1; transition: none; }
.tl-done .hero-rule { opacity: 1; transform: none; transition: none; }
.tl-done .hero-l2 { opacity: 1; transition: none; }
.tl-done .hero-motto { opacity: 1; transition: none; }
.tl-done .hero-ops { display: none; }
html:not(.tl-pending):not(.tl-go):not(.tl-done) .hero-rule { opacity: 1; transform: none; }
html:not(.tl-pending):not(.tl-go):not(.tl-done) .hero-l2 { opacity: 1; }
html:not(.tl-pending):not(.tl-go):not(.tl-done) .hero-motto { opacity: 1; }

/* ---------- The actualize motif (brass = the firm's touch) ----------
   Whatever the visitor's touch reaches becomes real: cards rest dashed and
   actualize on hover, brass CTAs pour their fill in, kicker rules draw
   themselves once on view. Degrades to the plain solid look on touch
   devices and under reduced motion. */
.card { position: relative; }
@media (hover:hover) and (prefers-reduced-motion: no-preference) {
  .card { border-style: dashed; }
  .card .card-no { color: transparent; -webkit-text-stroke: 1.1px var(--brass-deep); transition: color .3s ease; }
  .card::after { content: '\2713'; position: absolute; top: 1.05rem; right: 1.15rem; color: var(--brass); font-weight: 700; opacity: 0; transform: scale(.4) rotate(-8deg); transition: opacity .25s ease .08s, transform .25s ease .08s; }
  .card:hover { border-style: solid; }
  .card:hover .card-no { color: var(--brass-deep); -webkit-text-stroke: 0; }
  .card:hover::after { opacity: 1; transform: scale(1) rotate(0); }
  .btn-brass { background-image: linear-gradient(var(--brass-deep), var(--brass-deep)); background-repeat: no-repeat; background-size: 0% 100%; transition: background-size .35s ease, color .18s ease; }
  .btn-brass:hover { background-color: var(--brass); background-size: 100% 100%; }
}
.kicker::after { content: ''; display: block; width: 0; height: 2px; background: var(--brass); transition: width .55s ease .12s; }
.kicker.drawn::after { width: 2.2rem; }
@media (prefers-reduced-motion: reduce) { .kicker::after { transition: none; } }

/* the tagline as a quiet standing line in every footer */
.footer-tagline { font-family: var(--font-display); font-style: italic; color: var(--muted-on-ink); margin: 1.8rem 0 0; font-size: 1rem; }
.footer-tagline em { color: var(--brass); }
