/* ============================================================================
   CannaForge design system
   Light-first, editorial, "tailored systems". Token-driven.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-italic-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* --- Tokens ---------------------------------------------------------------- */
:root {
  --paper: #faf7f1;
  --paper-2: #f2ede2;
  --card: #ffffff;
  --ink: #1a1613;
  --ink-soft: #554f46;
  --line: #e5ded0;
  --line-strong: #cfc5b1;
  --ember: #b23508;
  --ember-deep: #8c2a06;
  --ember-wash: #fbeee6;
  --spruce: #2e4636;
  --spruce-wash: #edf2ee;
  --coal: #171310;
  --coal-2: #241e18;
  --paper-on-coal: #f5f0e6;
  --soft-on-coal: #beb5a4;
  --line-on-coal: #3a322a;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --text-lg: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --text-xl: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem);
  --text-2xl: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  --text-hero: clamp(2.5rem, 1.8rem + 3.6vw, 4.4rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: clamp(4rem, 3rem + 5vw, 8rem);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;

  --shadow-soft: 0 1px 2px rgba(26, 22, 19, 0.05), 0 8px 28px rgba(26, 22, 19, 0.07);
  --header-h: 76px;
  --header-h-compact: 60px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset / base ---------------------------------------------------------- */
*, *::before, *::after { 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: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 640; letter-spacing: -0.015em; }
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--ember); text-underline-offset: 3px; }
a:hover { color: var(--ember-deep); }
ul, ol { padding-left: 1.25rem; }
::selection { background: var(--ember); color: #fff; }

.container { width: min(1160px, calc(100% - 2.5rem)); margin-inline: auto; }
.container-narrow { width: min(760px, calc(100% - 2.5rem)); margin-inline: auto; }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem;
  border-radius: var(--radius-sm); transition: top 0.15s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* --- Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: 600 1rem/1 var(--font-body);
  padding: 0.9rem 1.5rem; min-height: 48px;
  border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ember); color: #fff; }
.btn-primary:hover { background: var(--ember-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: 0.6rem 1.1rem; min-height: 40px; font-size: var(--text-sm); }

.cta-group { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* --- Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--header-h);
  transition: height 0.25s var(--ease);
}
.site-header.scrolled .header-inner { height: var(--header-h-compact); }

.wordmark {
  font-family: var(--font-display);
  font-size: 1.6rem; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: baseline; letter-spacing: 0.005em;
}
.wordmark em { font-style: italic; color: var(--ember); }
.wordmark-img { width: 30px; height: 30px; margin-right: 0.5rem; align-self: center; }
.wordmark:hover { color: var(--ink); }

.primary-nav { display: flex; gap: 1.75rem; }
.primary-nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; font-weight: 520;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--ember); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.menu-toggle {
  display: none; background: none; border: 1.5px solid var(--line-strong);
  border-radius: 999px; width: 44px; height: 44px; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-bars { display: flex; flex-direction: column; gap: 5px; width: 18px; }
.menu-bars i { height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.menu-toggle[aria-expanded='true'] .menu-bars i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-bars i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 1rem 1.25rem 1.5rem;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-menu a {
  color: var(--ink); text-decoration: none; font-size: 1.15rem; font-weight: 560;
  padding: 0.8rem 0.25rem; border-bottom: 1px solid var(--line);
}
.mobile-menu a.btn { margin-top: 1rem; border-bottom: none; color: #fff; text-align: center; }
.mobile-menu.open { display: block; }

@media (max-width: 860px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
}

/* --- Breadcrumbs ------------------------------------------------------------ */
.breadcrumbs { padding: 1rem 0 0; font-size: var(--text-sm); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: '/'; margin-right: 0.4rem; color: var(--line-strong); }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); }

/* --- Sections --------------------------------------------------------------- */
.section { padding-block: var(--space-7); }
.section-tight { padding-block: var(--space-6); }
.section-alt { background: var(--card); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: var(--space-5); }
.section-head-center { margin-inline: auto; text-align: center; }
.kicker {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ember); margin-bottom: 0.75rem;
}
.lede { font-size: var(--text-md); color: var(--ink-soft); }

/* --- Announcement strip ------------------------------------------------------ */
.announce {
  background: var(--coal); color: var(--paper-on-coal);
  text-align: center; font-size: var(--text-sm); padding: 0.55rem 1rem;
}
.announce strong { color: #fff; font-weight: 600; }

/* --- Hero -------------------------------------------------------------------- */
.hero { padding-block: var(--space-6) var(--space-7); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 6fr);
  gap: var(--space-6); align-items: center;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 400; letter-spacing: 0;
  font-size: var(--text-hero); line-height: 1.05; margin-bottom: 1.25rem;
}
.hero h1 em { font-style: italic; color: var(--ember); }
.hero .hero-sub { font-size: var(--text-md); color: var(--ink-soft); max-width: 34rem; margin-bottom: 1.75rem; }
.hero-trust { margin-top: 2.25rem; }

.trust-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 1.25rem; }
.trust-label { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.trust-names { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; }
.trust-names li {
  font-family: var(--font-display); font-size: 1.15rem; color: var(--ink);
  white-space: nowrap;
}

/* --- Forge diagram ----------------------------------------------------------- */
.hero-visual { min-width: 0; }
.forge-diagram { width: 100%; height: auto; }
.forge-diagram text { font: 500 13px var(--font-body); fill: var(--ink); }
.fd-chip rect { fill: var(--card); stroke: var(--line-strong); rx: 7; }
.fd-chip { transform-box: fill-box; }
.fd-lines path, .fd-outlines path {
  fill: none; stroke: var(--line-strong); stroke-width: 1.5;
  stroke-dasharray: 4 5;
}
.fd-core rect { fill: var(--coal); }
.fd-spark { fill: var(--ember); }
.fd-card rect { fill: var(--card); stroke: var(--line); }
.fd-card circle { fill: var(--spruce); }
.fd-outlines path { stroke: var(--ember); opacity: 0.55; stroke-dasharray: none; }

@media (prefers-reduced-motion: no-preference) {
  .fd-lines path { animation: fd-flow 2.6s linear infinite; }
  @keyframes fd-flow { to { stroke-dashoffset: -18; } }
  .fd-spark { transform-origin: 44px 49px; animation: fd-glow 3.2s var(--ease) infinite alternate; }
  @keyframes fd-glow { from { opacity: 0.75; transform: scale(0.96); } to { opacity: 1; transform: scale(1.05); } }
  .fd-chip { animation: fd-drift 5.5s ease-in-out infinite alternate; }
  .fd-chip:nth-child(2n) { animation-delay: -2.2s; }
  .fd-chip:nth-child(3n) { animation-delay: -3.8s; }
  @keyframes fd-drift { from { transform: translate(var(--tx, 0), 0); } to { transform: translate(var(--tx, 0), 5px); } }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .hero-visual { max-width: 520px; }
}

/* --- Problem list ------------------------------------------------------------ */
.problem-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.problem-list li {
  padding: 1.15rem 0.25rem 1.15rem 2rem; border-bottom: 1px solid var(--line);
  position: relative; font-size: var(--text-md); color: var(--ink);
}
.problem-list li::before {
  content: ''; position: absolute; left: 0.25rem; top: 1.75rem;
  width: 9px; height: 9px; background: var(--ember); border-radius: 2px; transform: rotate(45deg);
}
@media (max-width: 760px) { .problem-list { grid-template-columns: 1fr; } }

/* --- Before / After ----------------------------------------------------------- */
.before-after {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-4);
  align-items: stretch;
}
.ba-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); }
.ba-after { border-color: var(--spruce); box-shadow: var(--shadow-soft); }
.ba-tag {
  display: inline-block; font: 700 0.75rem/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--paper-2); color: var(--ink-soft); padding: 0.45rem 0.8rem; border-radius: 999px;
}
.ba-tag-after { background: var(--spruce-wash); color: var(--spruce); }
.ba-col ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.ba-col li { padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.ba-col li:last-child { border-bottom: none; }
.ba-before li { color: var(--ink-soft); }
.ba-arrow { display: flex; align-items: center; color: var(--ember); width: 48px; }
@media (max-width: 760px) {
  .before-after { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); margin-inline: auto; width: 36px; }
}

/* --- Services ---------------------------------------------------------------- */
.service-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto;
  gap: var(--space-4); align-items: center;
  padding: var(--space-5) 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: background 0.2s;
}
.service-row:hover { background: color-mix(in srgb, var(--card) 60%, transparent); color: var(--ink); }
.service-row h3 {
  font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl);
  margin: 0.25rem 0 0;
}
.service-row:hover h3 { color: var(--ember); }
.service-num { font: 600 0.85rem var(--font-body); color: var(--ember); letter-spacing: 0.08em; }
.service-desc p { margin: 0 0 0.5rem; color: var(--ink-soft); }
.service-outcome { font-style: italic; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.service-go {
  width: 48px; height: 48px; border: 1.5px solid var(--line-strong); border-radius: 999px;
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.service-row:hover .service-go { background: var(--ember); border-color: var(--ember); color: #fff; }
@media (max-width: 860px) {
  .service-row { grid-template-columns: 1fr; gap: var(--space-2); padding: var(--space-4) 0; }
  .service-go { display: none; }
}

/* --- Use cases ---------------------------------------------------------------- */
.use-case {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-5); margin-bottom: var(--space-4);
}
.uc-tag {
  display: inline-block; font: 700 0.72rem/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--spruce); background: var(--spruce-wash); padding: 0.4rem 0.75rem; border-radius: 999px;
  margin: 0 0 0.75rem;
}
.use-case h3 { font-size: var(--text-lg); margin-bottom: 1.25rem; }
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin: 0; }
.uc-grid dt { font: 700 0.78rem var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 0.35rem; }
.uc-grid dd { margin: 0; font-size: 0.95rem; }
@media (max-width: 900px) { .uc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .uc-grid { grid-template-columns: 1fr; gap: var(--space-3); } .use-case { padding: var(--space-4); } }

/* --- Process ------------------------------------------------------------------ */
.process { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.process-step {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-4);
  padding: var(--space-4) 0; border-bottom: 1px solid var(--line);
}
.process-step:last-child { border-bottom: none; }
.process-num {
  font-family: var(--font-display); font-size: 2rem; color: var(--ember);
  font-variant-numeric: tabular-nums; line-height: 1; padding-top: 0.2rem; min-width: 3.2rem;
}
.process-body h3 { margin-bottom: 0.35rem; }
.process-body p { margin: 0; color: var(--ink-soft); max-width: 46rem; }

/* --- Philosophy (dark band) ---------------------------------------------------- */
.philosophy { background: var(--coal); color: var(--paper-on-coal); }
.philosophy .kicker { color: var(--ember); }
.philosophy h2 { color: #fff; font-family: var(--font-display); font-weight: 400; font-size: var(--text-2xl); }
.philosophy h2 em { font-style: italic; color: var(--ember); }
.philosophy .lede { color: var(--soft-on-coal); }
.phil-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--space-6); margin-top: var(--space-5); }
.phil-grid p { border-top: 1px solid var(--line-on-coal); padding: 1.1rem 0; margin: 0; color: var(--paper-on-coal); }
.phil-grid p strong { color: #fff; }
@media (max-width: 760px) { .phil-grid { grid-template-columns: 1fr; } }

/* --- Principles ----------------------------------------------------------------- */
.principles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.principles li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); }
.principles h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.principles p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .principles { grid-template-columns: 1fr; } }

/* --- FAQ -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0.25rem; cursor: pointer; list-style: none;
  font-weight: 600; font-size: var(--text-md);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-marker { position: relative; width: 20px; height: 20px; flex: none; }
.faq-marker::before, .faq-marker::after {
  content: ''; position: absolute; background: var(--ember); border-radius: 2px;
  transition: transform 0.25s var(--ease);
}
.faq-marker::before { width: 100%; height: 2.5px; top: 8.75px; }
.faq-marker::after { height: 100%; width: 2.5px; left: 8.75px; }
.faq-item[open] .faq-marker::after { transform: scaleY(0); }
.faq-a { padding: 0 3rem 1.5rem 0.25rem; color: var(--ink-soft); max-width: 46rem; }
.faq-a p { margin-bottom: 0.6em; }
.faq-a p:last-child { margin-bottom: 0; }

/* --- Founder / About --------------------------------------------------------------- */
.founder-band { background: var(--card); border-block: 1px solid var(--line); }
.founder-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-6); align-items: center; }
.founder-photo {
  aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(145deg, var(--paper-2), var(--line));
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-photo .founder-glyph { font-family: var(--font-display); font-size: 4rem; color: var(--line-strong); }
@media (max-width: 820px) { .founder-grid { grid-template-columns: 1fr; } .founder-photo { max-width: 340px; } }

/* --- Insights ----------------------------------------------------------------------- */
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.insight-card a {
  display: flex; flex-direction: column; height: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-4); text-decoration: none; color: var(--ink);
  transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.insight-card a:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-soft); color: var(--ink); }
.insight-meta { font-size: var(--text-sm); color: var(--ink-soft); margin-bottom: 0.6rem; }
.insight-card h3 { font-size: 1.2rem; }
.insight-excerpt { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.insight-more { color: var(--ember); font-weight: 600; font-size: 0.95rem; }
.insight-card a:hover .insight-more { text-decoration: underline; }
@media (max-width: 900px) { .insight-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .insight-grid { grid-template-columns: 1fr; } }

/* --- Article ------------------------------------------------------------------------- */
.article-head { padding: var(--space-6) 0 var(--space-5); }
.article-head h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-2xl); max-width: 18em; }
.article-meta { color: var(--ink-soft); font-size: var(--text-sm); }
.article-body { font-size: var(--text-md); }
.article-body h2 { font-size: var(--text-lg); margin-top: 2.2em; }
.article-body h3 { font-size: 1.15rem; margin-top: 1.8em; }
.article-body ul, .article-body ol { margin-bottom: 1.2em; }
.article-body li { margin-bottom: 0.4em; }
.article-body blockquote {
  margin: 1.6em 0; padding: 0.2em 0 0.2em 1.25em; border-left: 3px solid var(--ember);
  font-family: var(--font-display); font-size: 1.3em; font-style: italic; color: var(--ink);
}
.article-cta {
  margin-top: var(--space-6); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-5);
}
.article-cta h2 { font-size: var(--text-lg); }
.article-cta p { color: var(--ink-soft); }

/* --- Final CTA ------------------------------------------------------------------------ */
.final-cta { background: var(--coal); color: var(--paper-on-coal); padding-block: var(--space-7); }
.final-cta-inner { max-width: 720px; }
.final-cta h2 { color: #fff; font-family: var(--font-display); font-weight: 400; font-size: var(--text-2xl); }
.final-cta p { color: var(--soft-on-coal); font-size: var(--text-md); margin-bottom: 1.75rem; }

/* --- Contact ---------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-6); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside p { color: var(--ink-soft); }
.contact-aside .contact-direct { font-size: var(--text-md); }
.contact-expect { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-expect li { padding: 0.8rem 0 0.8rem 2rem; border-top: 1px solid var(--line); position: relative; }
.contact-expect li::before {
  content: ''; position: absolute; left: 0.25rem; top: 1.3rem;
  width: 8px; height: 8px; background: var(--spruce); border-radius: 999px;
}

.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } .contact-form { padding: var(--space-4); } }
.field { margin-bottom: var(--space-3); }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.field .optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.5 var(--font-body); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2.5px solid var(--ember); outline-offset: 1px; border-color: var(--ember);
}
.field.invalid input, .field.invalid textarea { border-color: #b3261e; }
.field-error { color: #99231c; font-size: var(--text-sm); margin: 0.35rem 0 0; font-weight: 500; }
.hp-wrap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { font-size: var(--text-sm); color: var(--ink-soft); }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn-spinner {
  width: 16px; height: 16px; border: 2.5px solid rgba(255,255,255,0.35); border-top-color: #fff;
  border-radius: 999px;
}
@media (prefers-reduced-motion: no-preference) { .btn-spinner { animation: spin 0.7s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } }
.form-status { margin-top: var(--space-3); font-weight: 500; }
.form-status.ok { color: var(--spruce); }
.form-status.err { color: #99231c; }
.form-status .status-card {
  background: var(--spruce-wash); border: 1px solid var(--spruce); color: var(--spruce);
  border-radius: var(--radius); padding: var(--space-3) var(--space-4);
}

/* --- Work page --------------------------------------------------------------------------- */
.work-section-label {
  display: inline-block; font: 700 0.75rem/1 var(--font-body); letter-spacing: 0.11em; text-transform: uppercase;
  padding: 0.45rem 0.85rem; border-radius: 999px; margin-bottom: var(--space-3);
}
.work-label-verified { background: var(--spruce-wash); color: var(--spruce); }
.work-label-concept { background: var(--ember-wash); color: var(--ember-deep); }
.work-client { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius-lg); padding: var(--space-5); margin-bottom: var(--space-4); }
.work-client h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); }
.work-client .work-role { color: var(--ink-soft); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.work-client ul { margin: 1rem 0 0; }
.work-client li { margin-bottom: 0.5rem; }
.work-note { font-size: var(--text-sm); color: var(--ink-soft); border-left: 3px solid var(--line-strong); padding-left: 1rem; }
.empty-state {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg);
  padding: var(--space-5); text-align: center; color: var(--ink-soft);
}

/* --- Homepage client cards ------------------------------------------------------------------ */
.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.client-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); }
.client-card h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); margin: 0.2rem 0 0.75rem; }
.client-card ul { list-style: none; padding: 0; margin: 0; }
.client-card li { padding: 0.55rem 0 0.55rem 1.4rem; border-top: 1px solid var(--line); position: relative; font-size: 0.95rem; }
.client-card li::before { content: ''; position: absolute; left: 0; top: 1.05rem; width: 7px; height: 7px; background: var(--ember); border-radius: 2px; transform: rotate(45deg); }
@media (max-width: 900px) { .client-grid { grid-template-columns: 1fr; } }

/* --- Compact process steps ------------------------------------------------------------------- */
.steps-compact { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); counter-reset: none; }
.steps-compact li { border-top: 2px solid var(--line-strong); padding-top: 1rem; }
.steps-compact span { font-family: var(--font-display); color: var(--ember); font-size: 1.3rem; }
.steps-compact h3 { font-size: 1.05rem; margin: 0.3rem 0 0.25rem; }
.steps-compact p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
@media (max-width: 900px) { .steps-compact { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps-compact { grid-template-columns: 1fr; gap: var(--space-3); } }

/* --- Callout ------------------------------------------------------------------------------- */
.callout { background: var(--ember-wash); border: 1px solid color-mix(in srgb, var(--ember) 30%, transparent); border-radius: var(--radius); padding: var(--space-4); margin: 1.5em 0; }
.callout p:last-child { margin-bottom: 0; }
.callout-title { font-weight: 700; margin-bottom: 0.35rem; }

/* --- Footer ---------------------------------------------------------------------------------- */
.site-footer { background: var(--coal); color: var(--soft-on-coal); padding: var(--space-6) 0 var(--space-4); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: var(--space-5); }
.wordmark-footer { font-size: 1.5rem; color: var(--paper-on-coal); }
.wordmark-footer:hover { color: #fff; }
.footer-brand p { max-width: 30rem; margin-top: 0.75rem; }
.footer-trust { font-size: var(--text-sm); }
.footer-head { font: 700 0.78rem var(--font-body); text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: var(--soft-on-coal); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-loc { color: var(--soft-on-coal); }
.footer-legal {
  margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--line-on-coal);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: var(--text-sm);
}
.footer-legal ul { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal li { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* --- Reveal on scroll -------------------------------------------------------------------------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* --- Legal pages ---------------------------------------------------------------------------------- */
.legal-body h2 { font-size: var(--text-lg); margin-top: 2em; }
.legal-note {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-3) var(--space-4); font-size: var(--text-sm); color: var(--ink-soft);
}

/* --- 404 --------------------------------------------------------------------------------------------- */
.page-404 { text-align: center; padding-block: var(--space-7); }
.page-404 h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-hero); }
.page-404 p { color: var(--ink-soft); font-size: var(--text-md); }

/* --- Utility ------------------------------------------------------------------------------------------- */
.tabular { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
