/* ============================================================
   Wendmark — Moss & Oatmeal (rust-warmed)
   ============================================================ */
:root {
  --primary: #3F5540;
  --secondary: #7C8A6E;
  --accent: #B5562C;
  --bg: #F4EFE4;
  --fg: #23271F;

  --primary-d: #324331;
  --secondary-l: #9aa78d;
  --accent-d: #9c4622;
  --accent-soft: rgba(181, 86, 44, 0.10);
  --line: rgba(35, 39, 31, 0.14);
  --line-soft: rgba(35, 39, 31, 0.08);
  --card: #FBF8F1;
  --card-2: #F0E9DA;
  --shadow: 0 1px 2px rgba(35,39,31,.05), 0 12px 30px -18px rgba(35,39,31,.30);
  --shadow-lg: 0 2px 4px rgba(35,39,31,.06), 0 28px 60px -30px rgba(35,39,31,.40);

  --radius: 14px;            /* ONE radius */
  --maxw: 1180px;
  --read: 68ch;

  --font-display: "Roboto Slab", Georgia, serif;
  --font-body: "Rosario", system-ui, sans-serif;
  --font-mono: "Courier Prime", ui-monospace, monospace;

  --sp: clamp(4.5rem, 9vw, 8rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.075rem;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--primary-d); margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.42rem); }
p { margin: 0 0 1.1rem; }
em { font-style: italic; color: var(--accent); }

a { color: var(--accent); text-decoration-color: rgba(181,86,44,.35); text-underline-offset: 3px; }
a:hover { color: var(--accent-d); text-decoration-color: var(--accent-d); }

img { max-width: 100%; height: auto; display: block; }

::selection { background: rgba(181,86,44,.20); color: var(--fg); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.section { padding-block: var(--sp); }
.center { text-align: center; margin-inline: auto; }

.visually-hidden, .skip-link:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: .75rem; left: .75rem; z-index: 200;
  background: var(--primary); color: #fff; padding: .6rem 1rem; border-radius: var(--radius);
  font-family: var(--font-mono); font-size: .85rem;
}

/* ---------- eyebrow ---------- */
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  color: var(--accent);
  margin: 0 0 1rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }
.center .eyebrow { justify-content: center; }

.lede { font-size: clamp(1.1rem, 1.7vw, 1.28rem); color: rgba(35,39,31,.82); max-width: var(--read); }
.center .lede { margin-inline: auto; }

.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  background: var(--accent); color: #FBF8F1;
  padding: .85rem 1.5rem; border-radius: var(--radius); border: 2px solid var(--accent);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 8px 20px -12px rgba(181,86,44,.65);
}
.btn:hover { background: var(--accent-d); border-color: var(--accent-d); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(181,86,44,.7); }
.btn svg { transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--primary-d); border-color: var(--secondary); box-shadow: none; }
.btn-ghost:hover { background: rgba(124,138,110,.14); color: var(--primary-d); border-color: var(--primary); transform: translateY(-2px); }
.btn-sm { padding: .5rem 1rem; font-size: .92rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; text-decoration: none; color: var(--accent);
}
.text-link svg { transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(4px); }

.dot { color: var(--secondary); margin-inline: .15rem; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,239,228,.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto;
  display: flex; align-items: center; gap: 1.5rem;
  padding-block: .85rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: var(--radius); background: var(--primary); color: var(--bg);
  flex: none;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; color: var(--primary-d); }
.brand-sub { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--secondary); }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a:not(.btn) {
  text-decoration: none; color: var(--fg); font-weight: 500; font-size: .98rem;
  position: relative; padding-block: .3rem;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); transition: width .22s ease;
}
.nav-links a:not(.btn):hover { color: var(--accent); }
.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--accent); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { width: 26px; height: 2px; background: var(--primary-d); border-radius: 2px; transition: .25s; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .3rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.4rem;
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .3s ease, opacity .2s ease;
  }
  .nav-links.open { max-height: 420px; opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: .65rem .2rem; border-bottom: 1px solid var(--line-soft); }
  .nav-links .btn { margin-top: .6rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(3rem, 6vw, 5.5rem); padding-bottom: var(--sp); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 88% 6%, rgba(124,138,110,.30), transparent 60%),
    radial-gradient(50% 50% at 5% 95%, rgba(181,86,44,.10), transparent 60%),
    linear-gradient(180deg, rgba(63,85,64,.06), transparent 40%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(63,85,64,.10) 1px, transparent 1.4px);
  background-size: 26px 26px; opacity: .35; mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-title { margin-bottom: 1rem; }
.hero-sub { font-size: clamp(1.12rem, 1.8vw, 1.32rem); color: rgba(35,39,31,.84); max-width: 46ch; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.6rem; }
.hero-trust { display: flex; gap: clamp(1.2rem, 4vw, 2.6rem); margin: 0; flex-wrap: wrap; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--accent); margin: 0; line-height: 1; }
.hero-trust dd { margin: .35rem 0 0; font-size: .82rem; color: var(--secondary); max-width: 14ch; line-height: 1.35; }

.hero-media { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.hero-media img { width: 100%; aspect-ratio: 760/434; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); border-radius: var(--radius); pointer-events: none; }
.hero-badge {
  position: absolute; left: 1rem; bottom: 1rem;
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(244,239,228,.92); backdrop-filter: blur(6px);
  padding: .45rem .85rem; border-radius: var(--radius); font-size: .82rem; font-weight: 600; color: var(--primary-d);
  box-shadow: var(--shadow);
}
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(181,86,44,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(181,86,44,.45); } 70% { box-shadow: 0 0 0 10px rgba(181,86,44,0); } 100% { box-shadow: 0 0 0 0 rgba(181,86,44,0); } }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(124,138,110,.5); }
.card-ico {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 1.1rem;
  border-radius: var(--radius); background: var(--accent-soft); color: var(--accent);
}
.card-ico svg, .value-card .card-ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .5rem; }
.card p { margin: 0; color: rgba(35,39,31,.78); }

@media (max-width: 820px) { .card-grid { grid-template-columns: 1fr; } }

/* ---------- stats band ---------- */
.stats-band { background: linear-gradient(180deg, var(--card-2), var(--bg)); border-block: 1px solid var(--line-soft); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat { text-align: center; padding: 1.6rem 1rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 4.5vw, 3rem); color: var(--accent); margin: 0 0 .35rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { margin: 0; font-size: .92rem; color: rgba(35,39,31,.72); line-height: 1.4; }
@media (max-width: 820px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- feature split ---------- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.split-media img { width: 100%; aspect-ratio: 640/366; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: grid; gap: .85rem; }
.ticks li { display: flex; gap: .75rem; align-items: flex-start; color: rgba(35,39,31,.86); }
.ticks li span { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(124,138,110,.16); color: var(--primary); }
.ticks li span svg { width: 19px; height: 19px; }
@media (max-width: 820px) { .split-grid { grid-template-columns: 1fr; } .split-media { order: -1; } }

/* ---------- journal / posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.post-card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-media { display: block; overflow: hidden; }
.post-media img { width: 100%; aspect-ratio: 600/340; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-body { padding: 1.6rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.post-kicker { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; color: var(--accent); margin: 0 0 .6rem; }
.post-card h3 { margin-bottom: .55rem; }
.post-card h3 a { color: var(--primary-d); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-excerpt { color: rgba(35,39,31,.76); margin-bottom: 1rem; }
.post-meta { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--secondary); margin: 0 0 1.1rem; }
.post-meta svg { width: 16px; height: 16px; }
.post-body .text-link { margin-top: auto; }
@media (max-width: 760px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- blogroll ---------- */
.blogroll-sec { background: linear-gradient(180deg, var(--bg), var(--card-2)); }
.roll-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,3.5rem); align-items: start; }
.blogroll { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.blogroll a {
  display: flex; align-items: center; gap: 1rem; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.05rem 1.25rem; color: var(--fg); box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.blogroll a:hover { transform: translateX(4px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.roll-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.roll-ico svg { width: 20px; height: 20px; }
.roll-text { display: flex; flex-direction: column; flex: 1; }
.roll-text strong { color: var(--primary-d); font-family: var(--font-display); font-weight: 600; }
.roll-text small { color: var(--secondary); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.blogroll a > svg:last-child { color: var(--accent); flex: none; width: 18px; height: 18px; }
@media (max-width: 820px) { .roll-wrap { grid-template-columns: 1fr; } }

/* ---------- quotes ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.quote-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.2rem 1.7rem 1.7rem; box-shadow: var(--shadow);
}
.quote-mark { position: absolute; top: 1.2rem; right: 1.3rem; color: rgba(124,138,110,.35); }
.quote-mark svg { width: 34px; height: 34px; }
.quote-card blockquote { margin: 0 0 1.3rem; }
.quote-card blockquote p { margin: 0; font-size: 1.05rem; color: rgba(35,39,31,.9); }
.quote-card figcaption { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); padding-top: 1rem; }
.q-name { font-family: var(--font-display); font-weight: 600; color: var(--primary-d); }
.q-role { font-size: .82rem; color: var(--secondary); }
@media (max-width: 880px) { .quote-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  background: linear-gradient(120deg, var(--primary), var(--primary-d));
  color: #F4EFE4; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.4rem);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 80% at 90% 10%, rgba(181,86,44,.30), transparent 60%);
}
.cta-copy { position: relative; max-width: 56ch; }
.cta-copy h2 { color: #FBF8F1; margin-bottom: .5rem; }
.cta-copy p { color: rgba(244,239,228,.86); margin: 0; }
.cta-inner .btn { position: relative; flex: none; }
@media (max-width: 760px) { .cta-inner { flex-direction: column; align-items: flex-start; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; padding-top: clamp(2.6rem, 5vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(55% 60% at 92% 0%, rgba(124,138,110,.26), transparent 62%), linear-gradient(180deg, rgba(63,85,64,.05), transparent 35%);
}
.page-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.page-hero-media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.page-hero-media img { width: 100%; object-fit: cover; }
.page-hero .btn { margin-top: 1.6rem; }
@media (max-width: 880px) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero-media { order: -1; } }

/* ---------- about story / pull ---------- */
.about-story p { font-size: 1.12rem; max-width: var(--read); }
.pull {
  margin: 2rem 0 0; padding: 1.4rem 1.6rem; border-left: 4px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--primary-d); font-style: italic;
}

/* ---------- values ---------- */
.value-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.7rem; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.value-card h3 { margin-bottom: .5rem; }
.value-card p { margin: 0; color: rgba(35,39,31,.78); }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.team-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.team-photo { width: 100%; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; margin-bottom: 1.1rem; background: var(--card-2); display: grid; place-items: center; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo--mono { background: linear-gradient(140deg, var(--secondary), var(--primary)); }
.team-initials { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; color: var(--bg); }
.team-card h3 { margin-bottom: .15rem; }
.team-role { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 0 0 .7rem; }
.team-bio { margin: 0; color: rgba(35,39,31,.78); font-size: .97rem; }
@media (max-width: 880px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- services ---------- */
.service-stack { display: grid; gap: 1.4rem; }
.service-row {
  display: grid; grid-template-columns: 64px 1fr; gap: 1.6rem; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(124,138,110,.5); }
.service-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent); }
.service-icon svg { width: 30px; height: 30px; }
.service-kicker { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; color: var(--secondary); margin: 0 0 .35rem; }
.service-main h3 { margin-bottom: .55rem; }
.service-desc { color: rgba(35,39,31,.8); margin-bottom: 1rem; max-width: var(--read); }
.service-main .ticks { margin: 0; }
.service-main .ticks li span { width: 28px; height: 28px; }
.service-main .ticks li span svg { width: 16px; height: 16px; }
@media (max-width: 620px) { .service-row { grid-template-columns: 1fr; gap: 1.1rem; padding: 1.6rem; } }

/* ---------- steps ---------- */
.steps-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.7rem; box-shadow: var(--shadow); position: relative; }
.step-n { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; color: var(--bg); background: var(--accent); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 1.1rem; }
.step h3 { margin-bottom: .4rem; }
.step p { margin: 0; color: rgba(35,39,31,.78); }
@media (max-width: 820px) { .steps-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-points { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .9rem; }
.contact-points li { display: flex; align-items: center; gap: .75rem; color: var(--fg); }
.contact-points li svg { color: var(--accent); flex: none; width: 22px; height: 22px; }
.contact-points a { font-weight: 600; }

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-lg); }
.form-title { margin-bottom: .3rem; }
.form-sub { color: var(--secondary); margin-bottom: 1.6rem; font-size: .95rem; }
.contact-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--primary-d); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--fg);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: .8rem 1rem; width: 100%; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(35,39,31,.42); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--accent-d); }
.contact-form .btn { margin-top: .3rem; }
.form-thanks { margin: 1.2rem 0 0; padding: 1rem 1.2rem; border-radius: var(--radius); background: rgba(124,138,110,.16); border: 1px solid var(--secondary); color: var(--primary-d); font-weight: 500; }
.form-fine { margin: 1rem 0 0; font-size: .8rem; color: var(--secondary); }
.contact-reassure p { max-width: var(--read); margin-inline: auto; color: rgba(35,39,31,.82); }

/* ---------- article ---------- */
.article-hero { padding-top: clamp(2rem, 4vw, 3.5rem); padding-bottom: 1.5rem; }
.crumbs { font-family: var(--font-mono); font-size: .78rem; color: var(--secondary); margin-bottom: 1.2rem; }
.crumbs a { color: var(--secondary); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.article-hero h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); margin-bottom: .8rem; }
.article-lede { font-size: 1.22rem; color: rgba(35,39,31,.82); max-width: var(--read); }
.article-meta { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .85rem; color: var(--secondary); font-family: var(--font-mono); }
.article-meta svg { width: 17px; height: 17px; }

.article-figure { margin: 1.5rem auto 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.article-figure img { width: 100%; object-fit: cover; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; padding-top: clamp(2.4rem, 4vw, 3.4rem); padding-bottom: var(--sp); }
.article-body { max-width: var(--read); font-size: 1.12rem; }
.article-body > p, .article-body > ul, .article-body > ol, .article-body > h2, .article-body > h3, .article-body > section, .article-body > table, .article-body > figure { max-width: var(--read); }
.article-body p { margin: 0 0 1.3rem; }
.article-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.4rem 0 .9rem; padding-top: .4rem; }
.article-body h3 { font-size: clamp(1.18rem, 2vw, 1.4rem); margin: 1.9rem 0 .7rem; color: var(--primary); }
.article-body a { font-weight: 600; }
.article-body img { border-radius: var(--radius); margin: 1.6rem 0; box-shadow: var(--shadow); border: 1px solid var(--line); height: auto; }
.article-body ul, .article-body ol { padding-left: 1.3rem; margin: 0 0 1.4rem; }
.article-body li { margin-bottom: .55rem; }
.article-body ul { list-style: none; padding-left: 0; }
.article-body ul li { position: relative; padding-left: 1.6rem; }
.article-body ul li::before { content: ""; position: absolute; left: .15rem; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.article-body ol { list-style: none; counter-reset: oli; padding-left: 0; }
.article-body ol li { position: relative; padding-left: 2.2rem; counter-increment: oli; }
.article-body ol li::before { content: counter(oli); position: absolute; left: 0; top: .05em; width: 1.55rem; height: 1.55rem; background: var(--accent-soft); color: var(--accent); border-radius: 8px; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: .82rem; }
.article-body em { font-style: italic; color: var(--primary); display: inline-block; }
.article-body strong { color: var(--primary-d); }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .98rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.article-body th { background: var(--card-2); text-align: left; font-family: var(--font-display); }
.article-body th, .article-body td { padding: .8rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.article-body tr:last-child td { border-bottom: 0; }
.article-body section { margin: 0 0 1rem; }
.article-body section h2 { margin-top: 2.6rem; }

.article-sources { margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.article-sources h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.source-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.source-list a { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; text-decoration: none; }
.source-list a svg { width: 18px; height: 18px; flex: none; }
.source-list a:hover { text-decoration: underline; }

.article-aside { position: sticky; top: 90px; }
.aside-card { background: linear-gradient(160deg, var(--card), var(--card-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.aside-kicker { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; color: var(--accent); margin: 0 0 .5rem; }
.aside-card h2 { font-size: 1.32rem; margin-bottom: .6rem; }
.aside-card p { font-size: .95rem; color: rgba(35,39,31,.8); margin-bottom: 1.2rem; }
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; } .article-aside { position: static; } }

/* related */
.related-sec { border-top: 1px solid var(--line); background: var(--card-2); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.related-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.related-media img { width: 100%; aspect-ratio: 480/272; object-fit: cover; }
.related-card > div { padding: 1.3rem 1.4rem 1.5rem; }
.related-card h3 { font-size: 1.15rem; margin-bottom: .7rem; }
.related-card h3 a { color: var(--primary-d); text-decoration: none; }
.related-card h3 a:hover { color: var(--accent); }

/* ---------- footer ---------- */
.site-footer { background: var(--primary-d); color: #E7E0D0; padding-top: clamp(3rem, 6vw, 4.5rem); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr; gap: 2rem; padding-bottom: 2.6rem; }
.footer-brand .brand-mark { background: var(--accent); color: #fff; margin-bottom: 1rem; }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #FBF8F1; margin: 0 0 .6rem; }
.footer-blurb { color: rgba(231,224,208,.74); font-size: .92rem; margin-bottom: 1rem; max-width: 34ch; }
.footer-mail { display: flex; align-items: center; gap: .5rem; }
.footer-mail svg { color: var(--secondary-l); width: 22px; height: 22px; }
.footer-mail a { color: #FBF8F1; font-weight: 600; }
.footer-h { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--secondary-l); margin: .2rem 0 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-col a { color: rgba(231,224,208,.82); text-decoration: none; font-size: .94rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); }
.footer-roll a { display: inline-flex; align-items: center; gap: .45rem; }
.footer-roll svg { color: var(--secondary-l); flex: none; width: 18px; height: 18px; }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem; border-top: 1px solid rgba(231,224,208,.16); }
.footer-base p { margin: 0; font-size: .82rem; color: rgba(231,224,208,.6); }
.footer-note { font-family: var(--font-mono); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal-now { opacity: 0; transform: translateY(18px); }
.reveal-now.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-now { opacity: 1 !important; transform: none !important; transition: none !important; }
  .dot-live { animation: none; }
  .post-card:hover .post-media img { transform: none; }
}
