/*
Theme Name: SVM
Theme URI: https://thesvm.com/
Author: SVM Ltd
Author URI: https://thesvm.com/
Description: Editorial, high-contrast WordPress theme for The SVM — Strategic Value Management. Warm paper background, near-black ink, heavy grotesk headings with serif italic accents, dark mode, animated hero and a built-in contact form.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: svm
Tags: business, portfolio, one-column, custom-menu, custom-logo, editor-style, featured-images, threaded-comments, translation-ready, dark-mode
*/

/* =========================================================
   1. Design tokens
   ========================================================= */
:root {
  --radius: 0.75rem;
  --background: oklch(0.958 0.011 95);
  --foreground: oklch(0.17 0.004 95);
  --card: oklch(0.975 0.008 95);
  --card-foreground: oklch(0.17 0.004 95);
  --primary: oklch(0.16 0.004 95);
  --primary-foreground: oklch(0.97 0.01 95);
  --secondary: oklch(0.93 0.012 95);
  --muted: oklch(0.93 0.012 95);
  --muted-foreground: oklch(0.5 0.008 95);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.87 0.012 95);
  --input: oklch(0.87 0.012 95);
  --ink: oklch(0.16 0.004 95);
  --ink-foreground: oklch(0.97 0.01 95);
  --wax: oklch(0.28 0.14 25);
  --font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --maxw: 80rem;
}

html.dark {
  --background: oklch(0.16 0.004 95);
  --foreground: oklch(0.96 0.008 95);
  --card: oklch(0.2 0.004 95);
  --card-foreground: oklch(0.96 0.008 95);
  --primary: oklch(0.96 0.008 95);
  --primary-foreground: oklch(0.16 0.004 95);
  --secondary: oklch(0.26 0.004 95);
  --muted: oklch(0.26 0.004 95);
  --muted-foreground: oklch(0.68 0.008 95);
  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 16%);
  --ink: oklch(0.16 0.004 95);
  --ink-foreground: oklch(0.96 0.008 95);
  --wax: oklch(0.45 0.19 25);
}

/* Fallback for browsers without oklch */
@supports not (color: oklch(0 0 0)) {
  :root {
    --background: #f5f2ea;
    --foreground: #1b1a17;
    --card: #faf7f0;
    --card-foreground: #1b1a17;
    --primary: #191814;
    --primary-foreground: #f7f4ec;
    --secondary: #e9e5db;
    --muted: #e9e5db;
    --muted-foreground: #6f6b61;
    --border: #d8d3c7;
    --input: #d8d3c7;
    --ink: #191814;
    --ink-foreground: #f7f4ec;
    --wax: #6b1f18;
  }
  html.dark {
    --background: #191814;
    --foreground: #f2efe8;
    --card: #232219;
    --card-foreground: #f2efe8;
    --primary: #f2efe8;
    --primary-foreground: #191814;
    --secondary: #302e26;
    --muted: #302e26;
    --muted-foreground: #a8a498;
    --border: rgba(255, 255, 255, 0.12);
    --input: rgba(255, 255, 255, 0.16);
    --wax: #8c2a1f;
  }
}

/* =========================================================
   2. Base
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

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

.section-anchor { scroll-margin-top: 7rem; }
.contact-split { align-items: start; }
.contact-email { display: block; overflow-wrap: anywhere; }

.footer-list ul { display: grid; gap: 0.65rem; }

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

::selection {
  background: var(--foreground);
  color: var(--background);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  clip: auto;
  width: auto;
  height: auto;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--ink-foreground);
  border-radius: 999px;
}

/* =========================================================
   3. Layout helpers
   ========================================================= */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .wrap { padding-inline: 1.5rem; }
}

@media (min-width: 1024px) {
  .wrap { padding-inline: 2rem; }
}

.wrap-narrow { max-width: 56rem; }
.wrap-mid { max-width: 72rem; }

.section { padding-block: 6rem; }
.section-sm { padding-block: 4rem; }
.band {
  border-block: 1px solid var(--border);
  background: var(--card);
}
.band-ink {
  border-block: 1px solid var(--border);
  background: var(--ink);
  color: var(--ink-foreground);
}

.grid { display: grid; gap: 1rem; }
.gap-lg { gap: 2.5rem; }

@media (min-width: 768px) {
  .md-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .xl-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* =========================================================
   4. Typography
   ========================================================= */
.display {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.92;
}

.editorial {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.eyebrow-rule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow-rule::before {
  content: "";
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--foreground);
}

.h-xl { font-size: clamp(3rem, 8vw, 6.5rem); }
.h-lg { font-size: clamp(2.5rem, 5vw, 3.75rem); }
.h-md { font-size: 1.875rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.h-sm { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }

.lead {
  font-size: 1.125rem;
  line-height: 1.8;
}

.muted { color: var(--muted-foreground); }
.small { font-size: 0.875rem; line-height: 1.6; }
.tiny { font-size: 0.8125rem; }
.strong { font-weight: 600; }
.center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }
.mt-6 { margin-top: 3.5rem; }
.maxw-md { max-width: 28rem; }
.maxw-lg { max-width: 36rem; }
.maxw-xl { max-width: 42rem; }

/* =========================================================
   5. Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-solid {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-outline {
  border-color: var(--foreground);
  color: var(--foreground);
}

.btn-invert {
  background: var(--ink-foreground);
  color: var(--ink);
}

.btn-ghost-invert {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--ink-foreground);
}

.btn-full { width: 100%; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding-inline: 0.5rem;
}

.arrow-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  transition: transform 0.25s ease;
}

.arrow-link:hover .arrow-dot { transform: translateX(4px); }

.icon { width: 1rem; height: 1rem; }

/* =========================================================
   6. Header / navigation
   ========================================================= */
.announce {
  background: var(--ink);
  color: var(--ink-foreground);
}

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  padding-block: 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.announce-inner a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
}

.nav-shell { padding-top: 1rem; }

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding-left: 1rem;
  padding-right: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in oklab, var(--card) 85%, transparent);
  backdrop-filter: blur(12px);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.wordmark img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

html.dark .wordmark img,
html.dark .footer-mark img {
  filter: invert(1);
}

.wordmark span {
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.wordmark span i { font-style: normal; color: var(--muted-foreground); }

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
}

.nav-links ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
}

.nav-links a {
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover { color: var(--foreground); }

.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links a[aria-current="page"] {
  background: var(--secondary);
  color: var(--foreground);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 900px) {
  .nav-actions { display: flex; }
}

.socials {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.socials.divider {
  margin-right: 0.25rem;
  padding-right: 0.5rem;
  border-right: 1px solid var(--border);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-foreground);
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.social-btn svg { width: 1rem; height: 1rem; }

.social-btn:hover {
  transform: translateY(-2px);
  color: var(--foreground);
  background: var(--secondary);
  border-color: color-mix(in oklab, var(--foreground) 40%, transparent);
}

.socials.md .social-btn { width: 2.75rem; height: 2.75rem; }
.socials.md .social-btn svg { width: 1.15rem; height: 1.15rem; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--foreground);
}

.theme-toggle:hover { background: var(--secondary); }
.theme-toggle svg { width: 1.1rem; height: 1.1rem; }
.theme-toggle .icon-moon { display: none; }
html.dark .theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-moon { display: block; }

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: var(--ink);
  overflow: hidden;
  transition: transform 0.25s ease;
}

.pill-btn:hover { transform: scale(1.05); }

.pill-btn img {
  width: 78%;
  height: 78%;
  border-radius: 999px;
  object-fit: contain;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.menu-toggle svg { width: 1.25rem; height: 1.25rem; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
}

.mobile-panel {
  display: none;
  margin-top: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--card);
}

.mobile-panel.open { display: block; }

@media (min-width: 900px) {
  .mobile-panel, .mobile-panel.open { display: none; }
}

.mobile-panel ul { display: flex; flex-direction: column; gap: 0.25rem; }

.mobile-panel a {
  display: block;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.mobile-panel .current-menu-item > a,
.mobile-panel .current_page_item > a {
  background: var(--secondary);
  color: var(--foreground);
}

.mobile-extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: color-mix(in oklab, var(--secondary) 50%, transparent);
}

.mobile-center {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}

/* =========================================================
   7. Hero
   ========================================================= */
.hero { padding-top: 3.5rem; padding-bottom: 4rem; }

.hero-rule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.35fr 1fr; }
}

.hero-title {
  font-size: clamp(3.5rem, 11vw, 9rem);
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  animation: word-reveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title .word-soft {
  animation: word-reveal-soft 0.85s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.keep-box {
  display: inline-block;
  border: 2px solid var(--foreground);
  border-radius: 1rem;
  background: var(--card);
  padding: 0 1rem 0.5rem;
}

.ink-underline {
  margin-top: 1rem;
  width: 100%;
  max-width: 36rem;
  height: 1rem;
  color: var(--foreground);
}

.ink-underline path {
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: ink-draw 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.9s forwards;
}

.tile-col {
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .tile-col { justify-content: flex-end; }
}

.stamp-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 11rem;
  height: 11rem;
  border-radius: 2rem;
  background: var(--ink);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: rotate(-4deg);
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.45s ease;
  animation: stamp-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform;
}

@media (min-width: 640px) {
  .stamp-tile { width: 14rem; height: 14rem; }
}

.stamp-tile:hover {
  transform: perspective(700px) rotateX(6deg) rotateY(-8deg) rotate(-2deg) scale(1.04);
}

.stamp-tile img {
  width: 6rem;
  height: 6rem;
  object-fit: contain;
  filter: invert(1);
}

@media (min-width: 640px) {
  .stamp-tile img { width: 8rem; height: 8rem; }
}

.hero-split {
  display: grid;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .hero-split { grid-template-columns: 1.1fr 1fr; }
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

@media (min-width: 1024px) {
  .hero-metrics { justify-self: end; }
}

.hero-metrics .num { font-size: 3rem; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* =========================================================
   8. Marquee
   ========================================================= */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--card);
  padding-block: 1.5rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
}

.marquee-track span.item {
  display: flex;
  align-items: center;
  gap: 3rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .marquee-track span.item { font-size: 1.875rem; }
}

.marquee-track em { font-style: normal; color: var(--muted-foreground); }

/* =========================================================
   9. Cards, stats, tiers, testimonials, faq
   ========================================================= */
.section-head {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .section-head {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }
  .section-head .section-desc { justify-self: end; }
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--card);
  color: var(--card-foreground);
  padding: 1.75rem;
}

.card-ink {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--ink-foreground);
}

.card-ink .muted,
.card-ink .eyebrow { color: rgba(255, 255, 255, 0.6); }

.card-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; }

.card-list li {
  display: flex;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.card-ink .card-list li { border-top-color: rgba(255, 255, 255, 0.15); }

.card-list li .mark { color: var(--muted-foreground); }
.card-ink .card-list li .mark { color: rgba(255, 255, 255, 0.5); }

.card-cta {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.stat { border-top: 1px solid var(--border); padding-top: 1.25rem; }
.stat .num { font-size: clamp(3rem, 5vw, 3.75rem); font-variant-numeric: tabular-nums; }

.tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tier-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

.card-ink .tier-chip { border-color: rgba(255, 255, 255, 0.3); }

.tier-price { margin-top: 1.5rem; font-family: var(--font-serif); font-style: italic; font-size: 1.875rem; }

.quote-mark { font-family: var(--font-serif); font-style: italic; font-size: 3rem; line-height: 1; }

.quote-foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.quote-foot img {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
  filter: grayscale(1);
}

.photo-frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 2rem;
}

.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.split-photo {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .split-photo { grid-template-columns: 1.2fr 1fr; }
  .split-photo.reverse { grid-template-columns: 0.8fr 1.2fr; }
}

.manifesto-quote {
  margin-top: 2rem;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .manifesto-quote { font-size: 2.25rem; }
}

.sign-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Wax seal */
.wax-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  flex: 0 0 auto;
  transform: rotate(-6deg);
  background-color: var(--wax);
  border-radius: 46% 54% 42% 58% / 56% 44% 58% 42%;
  background-image:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 78% 84%, rgba(0, 0, 0, 0.55) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.18), transparent 70%);
  box-shadow:
    0 10px 18px -6px rgba(0, 0, 0, 0.55),
    inset 0 -3px 6px rgba(0, 0, 0, 0.5),
    inset 0 3px 5px rgba(255, 255, 255, 0.18);
}

.wax-seal::before,
.wax-seal::after {
  content: "";
  position: absolute;
}

.wax-seal::before {
  inset: 4px;
  opacity: 0.7;
  border-radius: 54% 46% 58% 42% / 44% 56% 42% 58%;
  background-image: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.14), transparent 40%);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.45), inset 0 -2px 3px rgba(255, 255, 255, 0.12);
}

.wax-seal::after {
  inset: 10px;
  opacity: 0.4;
  border-radius: 50% 50% 48% 52% / 52% 48% 50% 50%;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6), inset 0 -1px 2px rgba(255, 255, 255, 0.15);
}

.wax-seal img {
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  opacity: 0.95;
  filter: invert(1) drop-shadow(0 1px 0 rgba(255, 255, 255, 0.25)) drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.7));
}

/* CTA block */
.cta-block {
  display: grid;
  gap: 3rem;
  border: 1px solid var(--ink);
  border-radius: 2rem;
  background: var(--ink);
  color: var(--ink-foreground);
  padding: 2rem;
}

@media (min-width: 768px) {
  .cta-block { padding: 3.5rem; }
}

@media (min-width: 1024px) {
  .cta-block { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-side { justify-self: end; text-align: right; }
  .cta-side p.maxw-xs { margin-left: auto; }
}

.cta-block .muted { color: rgba(255, 255, 255, 0.7); }
.cta-block .eyebrow { color: rgba(255, 255, 255, 0.5); }
.maxw-xs { max-width: 20rem; }
.cta-mail { display: block; margin-top: 1rem; font-size: 1.875rem; }

@media (min-width: 768px) {
  .cta-mail { font-size: 2.25rem; }
}

/* Approach rows */
.method-row {
  display: grid;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-block: 3rem;
}

@media (min-width: 768px) {
  .method-row {
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 3rem;
  }
  .method-row .step { width: 6rem; }
}

.method-row .step { font-size: 3rem; color: var(--muted-foreground); }

/* =========================================================
   10. Forms
   ========================================================= */
.form-card {
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: var(--card);
  padding: 1.75rem;
}

@media (min-width: 768px) {
  .form-card { padding: 2.5rem; }
}

.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }

.field label { font-size: 0.875rem; font-weight: 600; }

.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--input);
  border-radius: 0.75rem;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea { resize: vertical; min-height: 9rem; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--foreground);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--foreground) 12%, transparent);
}

.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.notice-ok { background: var(--secondary); border: 1px solid var(--border); }
.notice-error { background: color-mix(in oklab, var(--destructive) 12%, transparent); border: 1px solid var(--destructive); }

.success-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding-block: 2.5rem;
}

/* =========================================================
   11. Blog
   ========================================================= */
.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--card);
  overflow: hidden;
  transition: transform 0.25s ease;
}

.post-card:hover { transform: translateY(-3px); }

.post-thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 1.75rem; }

.post-meta {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.entry-content {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.entry-content > * + * { margin-top: 1.25rem; }

.entry-content h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.025em; margin-top: 2.5rem; }
.entry-content h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 2rem; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul { list-style: disc; padding-left: 1.25rem; }
.entry-content ol { list-style: decimal; padding-left: 1.25rem; }
.entry-content li + li { margin-top: 0.5rem; }
.entry-content blockquote {
  border-left: 3px solid var(--foreground);
  padding-left: 1.25rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.375rem;
}
.entry-content img, .entry-content iframe { border-radius: 1.25rem; }
.entry-content code, .entry-content pre {
  background: var(--secondary);
  border-radius: 0.5rem;
  font-size: 0.9em;
}
.entry-content code { padding: 0.15em 0.4em; }
.entry-content pre { padding: 1rem 1.25rem; overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 0.6rem 0.8rem; text-align: left; }

.alignwide, .alignfull { max-width: 100%; }
.aligncenter { margin-inline: auto; }

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 3.5rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pagination .page-numbers.current {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.post-nav {
  display: grid;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-nav .next { text-align: right; }
}

.comments-area { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.comment-list { display: flex; flex-direction: column; gap: 1.5rem; }
.comment-list li { border: 1px solid var(--border); border-radius: 1.25rem; padding: 1.25rem; background: var(--card); }
.comment-list .children { margin-top: 1.25rem; padding-left: 1.25rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  font: inherit;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--input);
  border-radius: 0.75rem;
  padding: 0.7rem 0.9rem;
}
.comment-form .submit {
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  background: var(--primary);
  color: var(--primary-foreground);
  border: 0;
}

/* =========================================================
   12. Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: 3rem; }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: span 2; }
}

.footer-list { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-list a { font-size: 0.875rem; color: color-mix(in oklab, var(--foreground) 80%, transparent); }
.footer-list a:hover { color: var(--foreground); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* =========================================================
   13. Animations
   ========================================================= */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes stamp-in {
  0% { opacity: 0; transform: scale(1.35) rotate(-14deg) translateY(-30px); }
  60% { transform: scale(0.96) rotate(2deg) translateY(6px); }
  100% { opacity: 1; transform: scale(1) rotate(-4deg) translateY(0); }
}

@keyframes word-reveal {
  0% { opacity: 0; transform: translateY(22px) rotateX(-12deg); }
  100% { opacity: 1; transform: translateY(0) rotateX(0); }
}

@keyframes word-reveal-soft {
  0% { opacity: 0; transform: translateY(26px) rotateX(-10deg); }
  60% { transform: translateY(-3px) rotateX(2deg); }
  100% { opacity: 1; transform: translateY(0) rotateX(0); }
}

@keyframes ink-draw {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .stamp-tile,
  .hero-title .word,
  .ink-underline path,
  .marquee-track {
    animation: none !important;
    opacity: 1;
  }
  .ink-underline path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* WordPress admin bar offset */
body.admin-bar .site-header { top: 32px; }

@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* Optional hero image (Appearance > SVM Content > Hero image) */
.hero-figure {
	margin: 1.25rem 0 0;
	border-radius: 1.25rem;
	overflow: hidden;
	border: 1px solid var(--line, rgba(0,0,0,.12));
}

.hero-figure img {
	display: block;
	width: 100%;
	height: auto;
	filter: grayscale(100%) contrast(1.05);
}

/* ---------------------------------------------------------
 * Cookie notice
 * ------------------------------------------------------- */
.cookie-notice {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 90;
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-notice.open {
	opacity: 1;
	transform: translateY(0);
}

.cookie-inner {
	position: relative;
	max-width: 44rem;
	margin: 0 auto;
	padding: 20px 20px 18px;
	border: 1px solid var(--border);
	border-radius: 26px;
	background: color-mix(in oklab, var(--card) 95%, transparent);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
	backdrop-filter: blur(10px);
}

.cookie-text {
	margin: 0;
	padding-right: 28px;
	font-size: 0.9rem;
	line-height: 1.6;
	color: color-mix(in oklab, var(--foreground) 80%, transparent);
}

.cookie-text strong {
	color: var(--foreground);
}

.cookie-text a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cookie-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 16px;
}

.cookie-actions .btn {
	padding: 10px 22px;
	font-size: 0.875rem;
}

.cookie-decline,
.cookie-settings-link {
	border: 0;
	background: none;
	padding: 0;
	font: inherit;
	font-size: 0.875rem;
	color: var(--muted-foreground);
	cursor: pointer;
	transition: color 0.2s ease;
}

.cookie-decline:hover,
.cookie-settings-link:hover {
	color: var(--foreground);
}

.cookie-close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 999px;
	background: none;
	color: var(--muted-foreground);
	cursor: pointer;
}

.cookie-close svg {
	width: 16px;
	height: 16px;
}

.cookie-close:hover {
	background: var(--secondary);
	color: var(--foreground);
}

@media (min-width: 720px) {
	.cookie-notice {
		bottom: 24px;
	}

	.cookie-inner {
		display: flex;
		align-items: center;
		gap: 24px;
		padding: 16px 48px 16px 26px;
	}

	.cookie-text {
		padding-right: 0;
	}

	.cookie-actions {
		margin-top: 0;
		flex: none;
	}
}
