/* ==========================================================================
   Harmonora — "Graphite & Champagne" theme
   Near-black graphite, warm ivory type, one champagne accent, pearl 3D.
   ========================================================================== */
html, body { background: #0C0D0F; }

:root {
  --c-bg: #0C0D0F;
  --c-bg-2: #111214;
  --c-surface: #151618;
  --c-surface-2: #1A1B1E;
  --c-glass: rgba(20, 38, 31, .58);
  --c-primary: #EFE8DC;          /* headings / ink on dark */
  --c-ink: #EFE8DC;
  --c-text: #D6D2CB;
  --c-muted: #9C978F;
  --c-line: rgba(239, 232, 220, .10);
  --c-line-2: rgba(239, 232, 220, .18);
  --c-accent: #CBB592;
  --c-accent-dark: #B39C76;
  --c-accent-soft: rgba(224, 154, 114, .14);
  --c-sage: #B8B2A6;
  --c-sage-soft: rgba(147, 198, 166, .14);
  --c-white: #FFFFFF;
  --c-error: #E59A8C;
  --c-success: #B8B2A6;

  --f-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --f-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 28px;
  --shadow-s: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 24px -12px rgba(0,0,0,.5);
  --shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 30px 60px -30px rgba(0,0,0,.75);
  --glow: 0 0 0 1px rgba(203,181,146,.35), 0 10px 40px -10px rgba(203,181,146,.55);
  --container: 1220px;
  --container-narrow: 760px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); color-scheme: dark; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(184,178,166,.07), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(203,181,146,.05), transparent 60%),
    var(--c-bg);
}
/* film grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.nav-locked { overflow: hidden; }
::selection { background: rgba(203,181,146,.35); color: #fff; }
img, svg { max-width: 100%; display: block; }
a { color: var(--c-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: #E3D5BC; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 400;
  color: var(--c-ink);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
  font-variation-settings: "opsz" 144;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 300; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 300; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.42rem); line-height: 1.22; letter-spacing: -0.015em; }
h4 { font-size: 1.1rem; }
h1 em, h2 em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(100deg, #E3D5BC 0%, #CBB592 40%, #B8B2A6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; }
strong { color: var(--c-ink); font-weight: 600; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--c-accent); color: #15130F; padding: .6rem 1rem; border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; color: #15130F; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, var(--container-narrow)); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section--sand {
  background: linear-gradient(180deg, rgba(26,26,28,.55), rgba(18,18,20,.55));
  border-block: 1px solid var(--c-line);
}
.section--forest {
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(203,181,146,.16), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(184,178,166,.14), transparent 60%),
    #111214;
  color: var(--c-text); border-block: 1px solid var(--c-line);
}
.section--forest h2, .section--forest h3 { color: var(--c-ink); }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; font-size: .74rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; margin-bottom: 1.1rem;
  /* React Bits ShinyText-style sweep */
  background: linear-gradient(110deg, #8F8068 35%, #F5EBDA 50%, #8F8068 65%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 5s linear infinite;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--c-accent)); flex: none;
}
@keyframes shine { from { background-position: 125% 0; } to { background-position: -125% 0; } }
.section--forest .eyebrow { color: transparent; }
.lead { font-size: clamp(1.06rem, 1.7vw, 1.2rem); color: var(--c-muted); line-height: 1.65; }
.section--forest .lead { color: #BDB8B0; }
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 959px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 4.5rem; } .split--wide-left { grid-template-columns: 1.15fr .85fr; } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--c-ink); --btn-fg: #0C0D0F;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; position: relative; isolation: isolate; overflow: hidden;
  font: 600 .96rem/1 var(--f-sans); letter-spacing: -.005em;
  padding: 1rem 1.6rem; border-radius: 999px; border: 1px solid var(--btn-bg);
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn::after { /* sheen */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%) -150% 0 / 200% 100% no-repeat;
  transition: background-position .8s var(--ease);
}
.btn:hover::after { background-position: 150% 0; }
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(239,232,220,.45); }
.btn--accent { --btn-bg: var(--c-accent); --btn-fg: #15130F; box-shadow: 0 10px 34px -12px rgba(203,181,146,.7); }
.btn--accent:hover { background: #DCC9A8; border-color: #DCC9A8; box-shadow: var(--glow); }
.btn--ghost { background: rgba(239,232,220,.04); color: var(--c-ink); border-color: var(--c-line-2); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(239,232,220,.1); color: var(--c-ink); border-color: rgba(239,232,220,.35); box-shadow: none; }
.btn--light { --btn-bg: var(--c-ink); --btn-fg: #0C0D0F; }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn--sm { padding: .78rem 1.2rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: .45rem; align-items: center; color: var(--c-ink); border-bottom: 1px solid var(--c-line-2); padding-bottom: .2rem; }
.text-link::after { content: "→"; color: var(--c-accent); transition: transform .3s var(--ease); }
.text-link:hover { color: var(--c-ink); border-color: var(--c-accent); }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(10, 21, 17, .35);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  transition: background .3s;
}
body.nav-locked .site-header::before { background: var(--c-bg); }
.site-header.is-scrolled { border-color: var(--c-line); }
.site-header.is-scrolled::before { background: rgba(10, 21, 17, .78); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--c-ink); }
.brand:hover { color: var(--c-ink); }
.brand svg { width: 36px; height: 36px; flex: none; transition: transform .8s var(--ease); }
.brand:hover svg { transform: rotate(-12deg) scale(1.06); }
.brand svg circle:first-child { fill: #1A1A1C; stroke: rgba(203,181,146,.45); stroke-width: 1; }
.brand-name { font-family: var(--f-serif); font-size: 1.5rem; font-weight: 400; letter-spacing: -.02em; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid var(--c-line-2); background: rgba(239,232,220,.05); cursor: pointer; color: var(--c-ink);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .3s var(--ease), background .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.primary-nav {
  position: fixed; inset: var(--header-h) 0 0 0; background: var(--c-bg);
  padding: 1.5rem 1.25rem 2rem; overflow-y: auto;
  transform: translateX(100%); visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s linear .45s;
}
.primary-nav.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
.nav-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.nav-list a {
  display: block; padding: 1rem .25rem; border-bottom: 1px solid var(--c-line);
  font-family: var(--f-serif); font-size: 1.6rem; font-weight: 300; text-decoration: none; color: var(--c-ink);
}
.nav-list a[aria-current="page"] { color: var(--c-accent); }
.nav-cta { width: 100%; }

@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static; transform: none; visibility: visible; background: none; padding: 0; overflow: visible;
    display: flex; align-items: center; gap: 1.5rem; transition: none;
  }
  .nav-list {
    display: flex; gap: .25rem; margin: 0; padding: .3rem; border-radius: 999px;
    background: rgba(239,232,220,.04); border: 1px solid var(--c-line);
  }
  .nav-list a {
    padding: .5rem .95rem; border: 0; border-radius: 999px; font-family: var(--f-sans); font-size: .88rem; font-weight: 500; color: var(--c-muted);
    transition: color .2s, background .25s;
  }
  .nav-list a:hover { color: var(--c-ink); background: rgba(239,232,220,.06); }
  .nav-list a[aria-current="page"] { color: var(--c-ink); background: rgba(239,232,220,.1); }
  .nav-cta { width: auto; }
}

/* ---------- 3D + aurora stage (injected by fx.js) ---------- */
.fx-aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fx-aurora canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fx-aurora::after { /* fade aurora into page */
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(180deg, transparent, var(--c-bg));
}
.fx-3d { position: absolute; z-index: 0; pointer-events: none; }
.fx-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.hero > .container, .page-hero > .container, .article-hero > .container { position: relative; z-index: 2; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); position: relative; overflow: hidden; isolation: isolate; }


.hero-grid { display: grid; gap: 3rem; align-items: center; position: relative; }
@media (min-width: 1040px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; } }
.hero h1 { margin-bottom: .45em; }
.hero h1 em { display: inline; }
.hero .lead { max-width: 540px; color: #BDB8B0; }
.promise-list { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; padding: 0; margin: 1.8rem 0 2.2rem; font-size: .88rem; font-weight: 500; color: var(--c-ink); }
.promise-list li {
  display: inline-flex; align-items: center; gap: .5rem; padding: .48rem .9rem .48rem .55rem; border-radius: 999px;
  background: rgba(239,232,220,.05); border: 1px solid var(--c-line); backdrop-filter: blur(10px);
}
.promise-list li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--c-sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230C0D0F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
  box-shadow: 0 0 12px rgba(184,178,166,.6);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-note { font-size: .85rem; color: var(--c-muted); margin-top: 1.4rem; }

.page-hero { padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3.5rem, 6vw, 5rem); position: relative; overflow: hidden; isolation: isolate; min-height: 440px; }



.page-hero .lead { max-width: 620px; }
.breadcrumb { font-size: .82rem; color: var(--c-muted); margin-bottom: 1.5rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--c-line-2); }
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-accent); }

/* ---------- Trust bar ---------- */
.trust-bar {
  position: relative; z-index: 3; padding: 0; margin-top: -2rem;
}
.trust-list {
  list-style: none; margin: 0; padding: 1.4rem 1.5rem; display: grid; gap: 1rem; text-align: center;
  border-radius: var(--radius-l); border: 1px solid var(--c-line);
  background: linear-gradient(180deg, rgba(239,232,220,.06), rgba(239,232,220,.02)); backdrop-filter: blur(18px);
  box-shadow: var(--shadow); font-size: .9rem; color: var(--c-muted);
}
@media (min-width: 760px) { .trust-list { grid-template-columns: repeat(3, 1fr); } .trust-list li + li { border-left: 1px solid var(--c-line); } }
.trust-list li { padding: .4rem 1rem; }
.trust-list strong {
  display: block; font-family: var(--f-serif); font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.03em; line-height: 1.1; margin-bottom: .25rem;
  background: linear-gradient(180deg, #F7F2EA, #CBB592); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.trust-note { text-align: center; font-size: .75rem; color: var(--c-muted); margin: .75rem 0 0; }

/* ---------- Cards (SpotlightCard + 3D tilt via fx.js) ---------- */
.card {
  background: linear-gradient(180deg, rgba(239,232,220,.055), rgba(239,232,220,.02));
  border-radius: var(--radius); padding: 2rem; position: relative; isolation: isolate;
  border: 1px solid var(--c-line); box-shadow: var(--shadow-s);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
  transform-style: preserve-3d;
}
.card::before { /* spotlight */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(203,181,146,.16), transparent 70%);
  transition: opacity .4s;
}
.card::after { /* border glow */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), rgba(220,205,178,.9), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: opacity .4s;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card:hover { border-color: var(--c-line-2); box-shadow: var(--shadow); }
.card--white { background: linear-gradient(180deg, rgba(239,232,220,.07), rgba(239,232,220,.03)); }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--c-muted); }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.4rem;
  color: var(--c-accent);
  background: linear-gradient(145deg, rgba(203,181,146,.22), rgba(184,178,166,.10));
  border: 1px solid rgba(203,181,146,.28);
  box-shadow: 0 10px 24px -12px rgba(203,181,146,.6), inset 0 1px 0 rgba(255,255,255,.12);
  transform: translateZ(30px);
}
.card-icon svg { width: 26px; height: 26px; }

.specialty-card { cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; display: flex; flex-direction: column; }
.specialty-card .card-link { margin-top: auto; padding-top: 1.25rem; font-weight: 600; color: var(--c-ink); font-size: .9rem; display: inline-flex; gap: .4rem; align-items: center; }
.specialty-card .card-link::after { content: "→"; color: var(--c-accent); transition: transform .3s var(--ease); }
.specialty-card:hover .card-link::after { transform: translateX(5px); }
.specialty-card p { font-size: .95rem; }

.steps { counter-reset: step; }
.step-card { padding-top: 2.5rem; overflow: hidden; }
.step-card::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; right: 1.25rem; top: .5rem; z-index: -1; opacity: 1;
  font-family: var(--f-serif); font-weight: 300; font-size: 6rem; line-height: 1; letter-spacing: -.05em;
  background: linear-gradient(180deg, rgba(203,181,146,.55), rgba(203,181,146,0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  inset: .25rem 1.25rem auto auto; width: auto; height: auto; padding: 0; border-radius: 0; -webkit-mask: none; mask: none;
}
.step-card::after { display: none; }
.step-card h3 { max-width: 85%; margin-top: 2.5rem; }

.pill {
  display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: .32rem .75rem; border-radius: 999px; background: var(--c-sage-soft); color: var(--c-sage); border: 1px solid rgba(184,178,166,.25);
}
.pill--accent { background: var(--c-accent-soft); color: #DCC9A8; border-color: rgba(203,181,146,.3); }

.check-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.check-list li { padding-left: 2rem; position: relative; margin-bottom: .8rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .32rem; width: 20px; height: 20px; border-radius: 50%;
  background: var(--c-sage-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23B8B2A6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
  border: 1px solid rgba(184,178,166,.3);
}

/* ---------- Article cards ---------- */
.post-card {
  background: linear-gradient(180deg, rgba(239,232,220,.05), rgba(239,232,220,.015));
  border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; position: relative;
  display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
  transform-style: preserve-3d;
}
.post-card:hover { box-shadow: var(--shadow); border-color: var(--c-line-2); }
.post-card[hidden] { display: none; }
.post-art { aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.post-art svg { width: 100%; height: 100%; transition: transform 1.2s var(--ease); filter: saturate(.9) brightness(.85); }
.post-card:hover .post-art svg { transform: scale(1.07); }
.post-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(12,13,15,.65)); }
.post-body { padding: 1.5rem 1.6rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .78rem; color: var(--c-muted); display: flex; gap: .55rem; flex-wrap: wrap; align-items: center; margin-bottom: .85rem; }
.post-card h3 { font-size: 1.28rem; margin-bottom: .6rem; }
.post-card h3 a { text-decoration: none; color: var(--c-ink); transition: color .2s; }
.post-card:hover h3 a { color: #E3D5BC; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { color: var(--c-muted); font-size: .94rem; margin-bottom: 0; }

.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
  font: 500 .88rem var(--f-sans); padding: .65rem 1.15rem; border-radius: 999px; cursor: pointer;
  background: rgba(239,232,220,.04); border: 1px solid var(--c-line); color: var(--c-muted); transition: all .25s var(--ease);
}
.filter-btn:hover { border-color: var(--c-line-2); color: var(--c-ink); }
.filter-btn[aria-pressed="true"] { background: var(--c-ink); border-color: var(--c-ink); color: #0C0D0F; }
.filter-count { font-size: .88rem; color: var(--c-muted); margin: -1rem 0 1.5rem; }

/* ---------- Quiz (glass) ---------- */
.quiz-shell {
  position: relative; border-radius: var(--radius-l); padding: clamp(1.4rem, 3.2vw, 2.25rem);
  background: linear-gradient(180deg, rgba(28,28,30,.74), rgba(16,16,18,.84));
  border: 1px solid var(--c-line-2);
  backdrop-filter: blur(26px) saturate(120%); -webkit-backdrop-filter: blur(26px) saturate(120%);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 50px 100px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.2);
}
.quiz-shell::before { /* rotating conic rim */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--rim, 0deg), transparent 0 70%, rgba(203,181,146,.9) 80%, rgba(184,178,166,.8) 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: rim 7s linear infinite;
}
@property --rim { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rim { to { --rim: 360deg; } }
.quiz-header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .9rem; }
.quiz-title { font-family: var(--f-serif); font-size: 1.3rem; color: var(--c-ink); margin: 0; font-weight: 400; }
.quiz-count { font-size: .76rem; font-weight: 600; color: var(--c-muted); white-space: nowrap; letter-spacing: .06em; text-transform: uppercase; }
.quiz-progress { height: 4px; background: rgba(239,232,220,.08); border-radius: 999px; overflow: hidden; margin-bottom: 1.7rem; }
.quiz-progress span { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--c-sage), var(--c-accent)); border-radius: inherit; transition: width .6s var(--ease); box-shadow: 0 0 14px rgba(203,181,146,.8); }
.quiz-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz-step[hidden] { display: none; }
.quiz-step:not([hidden]) { animation: stepIn .6s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px) rotateX(-8deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.quiz-step legend, .quiz-q { font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 1.6rem); color: var(--c-ink); margin-bottom: .4rem; padding: 0; line-height: 1.22; letter-spacing: -.02em; }
.quiz-help { color: var(--c-muted); font-size: .9rem; margin-bottom: 1.3rem; }
.quiz-sub { font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin: 1.5rem 0 .7rem; color: var(--c-muted); }
.option-grid { display: grid; gap: .6rem; }
@media (min-width: 520px) { .option-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 520px) { .option-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.option { position: relative; display: block; }
.option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.option-card {
  display: flex; gap: .85rem; align-items: center; padding: .85rem .95rem; border-radius: 14px;
  border: 1px solid var(--c-line); background: rgba(239,232,220,.03);
  transition: border-color .25s, background .25s, box-shadow .3s, transform .3s var(--ease); height: 100%;
}
.option-card .o-ico {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; color: var(--c-accent);
  background: rgba(203,181,146,.1); border: 1px solid rgba(203,181,146,.2); transition: all .3s var(--ease);
}
.option-card .o-ico svg { width: 20px; height: 20px; }
.option-card strong { display: block; font-weight: 600; font-size: .93rem; line-height: 1.3; color: var(--c-ink); }
.option-card small { display: block; color: var(--c-muted); font-size: .8rem; line-height: 1.35; margin-top: .15rem; }
.option input:hover + .option-card { border-color: rgba(203,181,146,.45); background: rgba(203,181,146,.05); transform: translateY(-1px); }
.option input:checked + .option-card {
  border-color: var(--c-accent); background: linear-gradient(135deg, rgba(203,181,146,.16), rgba(184,178,166,.06));
  box-shadow: 0 0 0 1px var(--c-accent) inset, 0 12px 30px -16px rgba(203,181,146,.8);
}
.option input:checked + .option-card .o-ico { background: var(--c-accent); color: #15130F; border-color: var(--c-accent); }
.option input:focus-visible + .option-card { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.option-card--compact { justify-content: center; text-align: center; padding: .8rem .75rem; }

.field { margin-bottom: 1rem; }
.field label, .field .label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: .45rem; color: var(--c-ink); }
.field .optional { font-weight: 400; color: var(--c-muted); }
.input, .select, .textarea {
  width: 100%; font: 400 1rem var(--f-sans); color: var(--c-ink); background: rgba(0,0,0,.45);
  border: 1px solid var(--c-line-2); border-radius: 12px; padding: .85rem 1rem; transition: border-color .25s, box-shadow .25s, background .25s;
}
.input::placeholder, .textarea::placeholder { color: #6F6A64; }
.select option { background: #151618; color: var(--c-ink); }
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23CBB592' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 16px; padding-right: 2.5rem; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-accent); background: rgba(0,0,0,.6); box-shadow: 0 0 0 4px rgba(203,181,146,.15); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--c-error); }
.field-error, .step-error { color: var(--c-error); font-size: .84rem; margin-top: .35rem; display: none; }
.field.has-error .field-error { display: block; }
.step-error.is-visible { display: block; margin: .9rem 0 0; font-weight: 600; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row--2 { grid-template-columns: 1fr 1fr; } }
.or-divider { display: flex; align-items: center; gap: .75rem; color: var(--c-muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin: .25rem 0 .9rem; }
.or-divider::before, .or-divider::after { content: ""; height: 1px; background: var(--c-line); flex: 1; }

.consent {
  display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; border-radius: 14px;
  background: rgba(239,232,220,.04); border: 1px solid var(--c-line); font-size: .86rem; line-height: 1.55; margin: 1.1rem 0 .4rem;
}
.consent input { width: 20px; height: 20px; flex: none; margin-top: .1rem; accent-color: var(--c-accent); cursor: pointer; }
.consent.has-error { box-shadow: inset 0 0 0 1px var(--c-error); }
.consent-error { color: var(--c-error); font-size: .84rem; display: none; margin-bottom: .5rem; }
.consent.has-error + .consent-error { display: block; }
.form-small { font-size: .78rem; color: var(--c-muted); line-height: 1.55; }

.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: 1.6rem; }
.quiz-nav [data-quiz-back][hidden] { display: none; }
.quiz-nav .spacer { flex: 1; }
.quiz-nav [data-quiz-next] { --btn-bg: var(--c-accent); --btn-fg: #15130F; }

.quiz-loading { text-align: center; padding: 2.5rem 0; }
.quiz-loading[hidden] { display: none; }
.spinner {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1.25rem; position: relative;
  background: conic-gradient(from 0deg, transparent, var(--c-sage), var(--c-accent));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: spin 1.1s linear infinite; filter: drop-shadow(0 0 10px rgba(203,181,146,.7));
}
@keyframes spin { to { transform: rotate(360deg); } }

.quiz-success[hidden] { display: none; }
.quiz-success:not([hidden]) { animation: stepIn .7s var(--ease) both; }
.success-badge { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #EFE6D6, var(--c-sage)); color: #0C0D0F; display: grid; place-items: center; margin-bottom: 1.1rem; box-shadow: 0 0 40px rgba(184,178,166,.55); }
.success-badge svg { width: 30px; height: 30px; }
.summary-list { list-style: none; padding: 0; margin: 1rem 0 1.4rem; border-top: 1px solid var(--c-line); }
.summary-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--c-line); font-size: .92rem; }
.summary-list span:first-child { color: var(--c-muted); }
.summary-list span:last-child { font-weight: 600; text-align: right; color: var(--c-ink); }
.match-types { display: flex; flex-wrap: wrap; gap: .45rem; margin: .4rem 0 1.25rem; }
.next-steps { counter-reset: ns; list-style: none; padding: 0; margin: 0 0 1.25rem; }
.next-steps li { counter-increment: ns; padding-left: 2.5rem; position: relative; margin-bottom: .85rem; font-size: .94rem; }
.next-steps li::before { content: counter(ns); position: absolute; left: 0; top: 0; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--c-accent); color: #15130F; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.ref-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(239,232,220,.08); color: var(--c-ink); padding: .15rem .45rem; border-radius: 6px; }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--c-line); }
.faq-item { border-bottom: 1px solid var(--c-line); transition: background .3s; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left;
  background: none; border: 0; padding: 1.45rem 0; cursor: pointer; font: 400 1.18rem/1.4 var(--f-serif); color: var(--c-ink); letter-spacing: -.01em;
  transition: color .2s;
}
.faq-q:hover { color: #E3D5BC; }
.faq-q::after {
  content: ""; width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--c-line-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%23CBB592' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/13px no-repeat;
  transition: transform .4s var(--ease), background-color .3s, border-color .3s;
}
.faq-q[aria-expanded="true"]::after { transform: rotate(135deg); background-color: rgba(203,181,146,.12); border-color: rgba(203,181,146,.4); }
.faq-a { padding: 0 3rem 1.4rem 0; color: var(--c-muted); }
.faq-a:not([hidden]) { animation: stepIn .5s var(--ease) both; }
.faq-a[hidden] { display: none; }

/* ---------- Banners ---------- */
.banner {
  border-radius: var(--radius-l); padding: clamp(2.25rem, 5vw, 4rem);
  display: grid; gap: 1.75rem; align-items: center; position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(600px 300px at 100% 100%, rgba(203,181,146,.35), transparent 65%),
    radial-gradient(500px 300px at 0% 0%, rgba(184,178,166,.22), transparent 65%),
    linear-gradient(135deg, #1C1C1F, #121315);
  border: 1px solid var(--c-line-2); color: #C9C4BC;
}
.banner::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -130px; bottom: -230px; border-radius: 50%; z-index: -1;
  border: 1px solid rgba(220,205,178,.35);
  box-shadow: 0 0 0 40px rgba(220,205,178,.05), 0 0 0 80px rgba(220,205,178,.035), 0 0 0 120px rgba(220,205,178,.02);
  animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08); } }
.banner h2 { color: var(--c-ink); margin-bottom: .5rem; }
.banner p { margin: 0; max-width: 560px; }
.banner > * { position: relative; z-index: 1; }
.banner .btn--light, .banner .btn:not(.btn--ghost) { --btn-bg: var(--c-accent); --btn-fg: #15130F; }
@media (min-width: 860px) { .banner { grid-template-columns: 1fr auto; } }

.notice {
  border: 1px solid rgba(203,181,146,.25); border-left: 3px solid var(--c-accent); background: rgba(203,181,146,.06); padding: 1.1rem 1.3rem; border-radius: 0 14px 14px 0;
  font-size: .9rem; color: var(--c-text); margin: 1.5rem 0;
}
.notice strong { color: #E3D5BC; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: 14px; border: 1px solid var(--c-line); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; background: rgba(239,232,220,.02); }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--c-line); vertical-align: top; }
th { background: rgba(239,232,220,.06); font-weight: 600; color: var(--c-ink); }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(239,232,220,.03); }

/* ---------- Article ---------- */
.article-hero { padding: clamp(3.5rem, 8vw, 6rem) 0 2.5rem; position: relative; overflow: hidden; isolation: isolate; }
.article-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.article-dek { font-size: clamp(1.1rem, 2vw, 1.3rem); color: #BDB8B0; font-family: var(--f-serif); font-weight: 300; line-height: 1.5; }
.article-byline { display: flex; align-items: center; gap: .85rem; margin-top: 1.75rem; font-size: .88rem; color: var(--c-muted); flex-wrap: wrap; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--c-accent), #7A6A50); color: #15130F; display: grid; place-items: center; font-family: var(--f-serif); font-size: 1.05rem; flex: none; box-shadow: 0 0 0 3px rgba(203,181,146,.18); }
.article-byline strong { color: var(--c-ink); display: block; font-weight: 600; }
.prose { font-size: 1.08rem; line-height: 1.85; color: #CFCAC2; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 2.4em; font-weight: 400; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8em; }
.prose ul, .prose ol { margin: 0 0 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--c-accent); }
.prose blockquote { margin: 2.2rem 0; padding: .4rem 0 .4rem 1.6rem; border-left: 2px solid var(--c-accent); font-family: var(--f-serif); font-weight: 300; font-size: 1.35rem; line-height: 1.5; color: var(--c-ink); }
.cta-card {
  margin: 2.75rem 0; padding: 2rem; border-radius: var(--radius); color: #C9C4BC;
  background: radial-gradient(400px 200px at 100% 0%, rgba(203,181,146,.25), transparent 70%), linear-gradient(135deg, #1C1C1F, #121315);
  border: 1px solid var(--c-line-2);
  display: grid; gap: 1rem; font-size: 1rem; line-height: 1.6;
}
.cta-card h3 { color: var(--c-ink); margin: 0; font-size: 1.4rem; }
.cta-card p { margin: 0; }
.cta-card .btn { justify-self: start; }
.author-box { display: flex; gap: 1.1rem; padding: 1.6rem; border-radius: var(--radius); background: rgba(239,232,220,.04); border: 1px solid var(--c-line); margin: 3rem 0 0; }
.author-box .avatar { width: 56px; height: 56px; font-size: 1.3rem; }
.author-box h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.author-box p { font-size: .92rem; color: var(--c-muted); margin: 0; }
.article-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 2rem; }

/* reading progress (fx.js) */
.fx-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--c-sage), var(--c-accent)); box-shadow: 0 0 10px rgba(203,181,146,.8); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; overflow: hidden; color: #97928A; padding: clamp(4rem, 7vw, 6rem) 0 2rem; font-size: .9rem;
  background: radial-gradient(800px 300px at 50% 0%, rgba(203,181,146,.08), transparent 70%), #08090A;
  border-top: 1px solid var(--c-line);
}
.site-footer::before { /* giant watermark */
  content: "Harmonora"; position: absolute; left: 50%; bottom: -0.22em; transform: translateX(-50%); z-index: 0; pointer-events: none;
  font-family: var(--f-serif); font-weight: 300; font-size: clamp(6rem, 21vw, 19rem); letter-spacing: -.05em; line-height: 1; white-space: nowrap;
  background: linear-gradient(180deg, rgba(239,232,220,.06), rgba(239,232,220,0) 80%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.site-footer > .container { position: relative; z-index: 1; }
.site-footer a { color: #CFCAC2; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--c-accent); }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer .brand { color: var(--c-ink); margin-bottom: 1rem; }
.footer-col h2 { font: 600 .72rem var(--f-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .6rem; }
.footer-legal { border-top: 1px solid var(--c-line); margin-top: 3rem; padding-top: 1.75rem; font-size: .8rem; line-height: 1.65; color: #827D76; }
.footer-legal p { margin-bottom: .8rem; }
.footer-legal strong { color: #CFCAC2; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 2rem; }
.text-center { text-align: center; }
.muted { color: var(--c-muted); }
.stack > * + * { margin-top: 1rem; }
.form-success { display: none; padding: 1.5rem; background: var(--c-sage-soft); border: 1px solid rgba(184,178,166,.3); border-radius: var(--radius); }
.form-success.is-visible { display: block; animation: stepIn .6s var(--ease) both; }
.form-success h3 { margin-bottom: .4rem; }
.stat {
  font-family: var(--f-serif); font-weight: 300; font-size: clamp(2.6rem, 4vw, 3.4rem); letter-spacing: -.04em; line-height: 1; margin-bottom: .6rem;
  background: linear-gradient(180deg, #F7F2EA, #CBB592); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.badge-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.badge { border: 1px solid var(--c-line); background: rgba(239,232,220,.04); padding: .6rem .95rem; border-radius: 12px; font-size: .86rem; transition: border-color .25s, transform .3s var(--ease); }
.badge:hover { border-color: rgba(203,181,146,.4); transform: translateY(-2px); }
.badge strong { color: var(--c-ink); }
.anchor-nav { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* ---------- Scroll reveal (fx.js adds .fx-r / .is-in) ---------- */
.fx-ready .fx-r { opacity: 0; transform: perspective(900px) translateY(36px) rotateX(10deg); filter: blur(8px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.fx-ready .fx-r.is-in { opacity: 1; transform: none; filter: none; }

/* BlurText words (React Bits port) */
.bt-w { display: inline-block; white-space: pre; will-change: transform, filter, opacity; }
.fx-ready .bt .bt-w { opacity: 0; filter: blur(12px); transform: translateY(-0.45em); }
.fx-ready .bt.is-in .bt-w { animation: btIn .9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + var(--bd, 0ms)); }
@keyframes btIn {
  0% { opacity: 0; filter: blur(12px); transform: translateY(-0.45em); }
  50% { opacity: .6; filter: blur(5px); transform: translateY(0.05em); }
  100% { opacity: 1; filter: blur(0); transform: none; }
}
.bt-em { background: none !important; color: inherit !important; }
.bt-em .bt-w {
  background: linear-gradient(100deg, #E3D5BC 0%, #CBB592 55%, #EDE3D2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em;
}
.fx-ready .hero h1:not(.bt), .fx-ready .page-hero h1:not(.bt), .fx-ready .article-hero h1:not(.bt) { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .fx-ready .fx-r, .fx-ready .bt .bt-w { opacity: 1 !important; transform: none !important; filter: none !important; }
  .eyebrow { animation: none; }
}

/* footer + banner 3D fixes */
.site-footer .btn, .site-footer .btn:hover { color: var(--btn-fg); text-decoration: none; }
.banner > .fx-3d { position: absolute; z-index: 0; width: 520px; aspect-ratio: 1; right: -150px; opacity: .9; top: 50%; transform: translateY(-50%); }
@media (max-width: 859px) { .banner > .fx-3d { width: 360px; right: -140px; top: auto; bottom: -140px; transform: none; opacity: .55; } }

/* ==========================================================================
   v2: 3D placement, monochrome details, mobile
   ========================================================================== */
.page-hero .container > *:not(.fx-3d) { max-width: 760px; }
.hero-copy, .quiz-shell { position: relative; z-index: 1; }

/* 3D lives inside the layout grid so it never sits under text on phones */
.hero-grid > .fx-3d { width: min(1000px, 78vw); aspect-ratio: 1; right: -24%; top: 50%; transform: translateY(-50%); }
.page-hero .container > .fx-3d { width: min(600px, 52vw); aspect-ratio: 1; right: -8%; top: 50%; transform: translateY(-50%); }
@media (max-width: 1039px) {
  .hero-grid { gap: 1.5rem; }
  .hero-grid > .fx-3d { position: relative; order: 2; width: calc(100% + 2.5rem); margin: -1.5rem -1.25rem -2rem; height: min(92vw, 420px); aspect-ratio: auto; right: auto; top: auto; transform: none; }
  .hero-copy { order: 1; } .quiz-shell { order: 3; }
}
@media (max-width: 860px) {
  .page-hero { min-height: 0; }
  .page-hero .container > .fx-3d { position: relative; width: calc(100% + 2.5rem); max-width: none; margin: .5rem -1.25rem -2.5rem; height: min(80vw, 340px); aspect-ratio: auto; right: auto; top: auto; transform: none; }
}

/* brand mark + quieter details */
.brand svg path:first-of-type { stroke: #EFE8DC; }
.brand svg path:last-of-type, .brand svg circle:last-child { stroke: #CBB592; }
.brand svg circle:last-child { fill: #CBB592; stroke: none; }
.post-art svg { filter: grayscale(1) sepia(.22) brightness(.78) contrast(1.05); }
.post-card:hover .post-art svg { filter: grayscale(.6) sepia(.25) brightness(.85); }
.eyebrow { animation-duration: 7s; }

/* ---------- Mobile polish ---------- */
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: .98rem; }
  .container, .container--narrow { width: min(100% - 2.25rem, var(--container)); }
  .section { padding: 4rem 0; }
  .section--tight { padding: 2.75rem 0; }
  .section-head { margin-bottom: 2rem; }
  h1 { font-size: clamp(2.25rem, 10.5vw, 2.9rem); letter-spacing: -.03em; line-height: 1.06; }
  h2 { font-size: clamp(1.8rem, 8.2vw, 2.25rem); }
  .eyebrow { font-size: .68rem; letter-spacing: .16em; line-height: 1.5; }
  .eyebrow::before { width: 14px; }
  .lead { font-size: 1.02rem; }
  .brand svg { width: 32px; height: 32px; }
  .brand-name { font-size: 1.3rem; }
  .nav-toggle { width: 44px; height: 44px; }
  .nav-list a { font-size: 1.45rem; padding: .9rem .25rem; }

  .hero { padding: 2.25rem 0 3.5rem; }
  .promise-list { margin: 1.4rem 0 1.6rem; gap: .45rem; font-size: .82rem; }
  .promise-list li { padding: .4rem .75rem .4rem .45rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-note { font-size: .8rem; }

  .quiz-shell { padding: 1.25rem 1.1rem 1.4rem; border-radius: 22px; }
  .quiz-header { align-items: center; }
  .quiz-title { font-size: 1.1rem; }
  .quiz-count { font-size: .68rem; }
  .option-card { padding: .75rem .8rem; gap: .7rem; }
  .option-card .o-ico { width: 34px; height: 34px; border-radius: 10px; }
  .option-card .o-ico svg { width: 18px; height: 18px; }
  .quiz-nav .btn { min-height: 46px; }
  .quiz-nav [data-quiz-next] { flex: 1; }

  .trust-bar { margin-top: 0; }
  .trust-list { padding: 1rem; gap: 0; border-radius: 20px; }
  .trust-list li { padding: .9rem .5rem; }
  .trust-list li + li { border-top: 1px solid var(--c-line); }

  .card { padding: 1.5rem; border-radius: 18px; }
  .card-icon { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 1.1rem; }
  .step-card::before { font-size: 4.5rem; }
  .step-card h3 { margin-top: 1.75rem; }

  .page-hero { padding: 2.5rem 0 2.5rem; }
  .breadcrumb { margin-bottom: 1rem; }
  .anchor-nav { gap: .4rem; }
  .anchor-nav .btn { padding: .6rem .9rem; font-size: .82rem; }

  .banner { padding: 2rem 1.4rem 2.2rem; border-radius: 22px; }
  .banner .btn { width: 100%; }
  .banner > .fx-3d { width: 300px; right: -150px; top: auto; bottom: -170px; transform: none; opacity: .35; }

  .faq-q { font-size: 1.05rem; padding: 1.15rem 0; }
  .faq-q::after { width: 30px; height: 30px; }
  .faq-a { padding-right: 0; }

  .article-hero { padding: 2.5rem 0 1.5rem; }
  .article-hero h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .prose { font-size: 1.02rem; line-height: 1.8; }
  .prose blockquote { font-size: 1.15rem; padding-left: 1.1rem; }
  .cta-card { padding: 1.5rem; }
  .cta-card .btn { justify-self: stretch; }
  .author-box { flex-direction: column; }
  th, td { padding: .7rem .8rem; }

  .filter-bar { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1.125rem; padding: 0 1.125rem .25rem; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { flex: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .site-footer::before { font-size: 27vw; }
  .footer-bottom { flex-direction: column; gap: .4rem; }
}
@media (max-width: 380px) { .footer-grid { grid-template-columns: 1fr; } }
.page-hero .container > *:not(.fx-3d) { position: relative; z-index: 1; }
@media (max-width: 640px) { .table-wrap table { min-width: 560px; } }
