/* ================================================================
   Spain Nomad Lawyer — site stylesheet
   Palette: warm ivory paper, deep bottle green, near-black ink,
   restrained brass hairline accent.
   ================================================================ */

:root {
  --paper: #f6f1e7;
  --paper-2: #efe8d8;
  --paper-3: #faf7f0;
  --ink: #221f19;
  --muted: #5d5749;
  --green: #174036;
  --green-deep: #0e2c25;
  --green-soft: #e4e8e0;
  --brass: #a5813f;
  --brass-soft: #c8ab73;
  --line: #ddd4c2;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Seravek, "Gill Sans", Calibri, system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(34, 31, 25, 0.06), 0 8px 24px rgba(34, 31, 25, 0.07);
  --shadow-lift: 0 2px 4px rgba(34, 31, 25, 0.08), 0 14px 34px rgba(34, 31, 25, 0.12);
  --radius: 6px;
}

/* ---------------------------------------------------------------- reset */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.22rem; }
p, ul, ol { margin: 0 0 1em; }
a { color: var(--green); transition: color 0.2s ease, opacity 0.2s ease; }
a:hover { color: var(--brass); }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--brass-soft); color: var(--ink); }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }
.section { padding: 4rem 0; }
.section-tight { padding: 2.75rem 0; }
.section-alt { background: var(--paper-2); }
.section-green { background: var(--green); color: #f0ede4; }
.section-green h2, .section-green h3 { color: #f7f4ea; }
.section-green a { color: var(--brass-soft); }

.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.9rem;
}
.lede { font-size: 1.18rem; color: var(--muted); max-width: 44rem; }
.center { text-align: center; }
.backlink { font-size: 0.92rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--green); color: #fff; padding: 0.6rem 1rem;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.85rem 1.7rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-green { background: var(--green); color: #f5f2e8; }
.btn-green:hover { background: var(--green-deep); color: #fff; }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: #8f6e33; color: #fff; }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #f5f2e8; }
.btn-lg { font-size: 1.08rem; padding: 1rem 2.1rem; }
.btn-sm { font-size: 0.9rem; padding: 0.5rem 1.05rem; }
.text-link {
  font-size: 0.97rem;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}
.text-link:hover { background-size: 100% 1px; }

/* ---------------------------------------------------------------- header */

.site-header {
  background: var(--paper-3);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.35s ease, background-color 0.35s ease;
}
.site-header.scrolled {
  background: rgba(243, 238, 226, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px -14px rgba(34, 31, 25, 0.35);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 0.7rem; padding-bottom: 0.7rem;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--green);
}
.brand .monogram { color: var(--brass); flex: none; }
.brand-name {
  font-family: var(--serif); font-size: 1.18rem; letter-spacing: 0.02em; color: var(--ink);
}
.nav-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 1.4rem;
}
.nav-menu a:not(.btn) {
  text-decoration: none; color: var(--ink); font-size: 0.95rem;
  padding: 0.3rem 0; border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-menu a:not(.btn):hover { color: var(--green); border-bottom-color: var(--brass); }
.nav-menu a[aria-current="page"] { color: var(--green); border-bottom-color: var(--brass); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.45rem 0.8rem;
  color: var(--ink); font-size: 0.9rem;
  align-items: center; gap: 0.5rem;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 16px; height: 2px; background: var(--green);
  position: relative; content: ""; transition: transform 0.2s ease;
}
.nav-toggle-bars::before { position: absolute; top: -5px; }
.nav-toggle-bars::after { position: absolute; top: 5px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper-3); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { border-top: 1px solid var(--line); }
  .nav-menu li:first-child { border-top: none; }
  .nav-menu a:not(.btn) { display: block; padding: 0.8rem 0; }
  .nav-menu .nav-cta { border-top: none; padding-top: 0.9rem; }
  .nav-menu .nav-cta .btn { display: block; }
  .brand-name { font-size: 1.05rem; }
}

/* ---------------------------------------------------------------- hero */

.hero { background: var(--paper); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: center; padding: 3.5rem 0 4rem;
}
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lift);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--green-soft); color: var(--green);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.35rem 0.95rem; margin-bottom: 1.1rem;
}
.hero-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brass);
}
.hero h1 { margin-bottom: 0.5em; }
.hero-sub { font-size: 1.14rem; color: var(--muted); max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1.3rem; margin: 1.8rem 0 1.4rem; }
.trust-strip {
  font-size: 0.88rem; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 1rem; max-width: 36rem;
}
.trust-strip span { white-space: nowrap; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; padding: 2.25rem 0 3rem; }
}

/* subtle parallax on ambient bands — desktop pointers only */
.ambient-band {
  min-height: 260px;
  background-size: cover;
  background-position: center;
}
@media (min-width: 900px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ambient-band { background-attachment: fixed; }
}

/* ---------------------------------------------------------------- reveal animations */

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  html.js .reveal.in { opacity: 1; transform: none; }
  html.js .reveal-hero { animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
  html.js .reveal-hero-2 { animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both; }
  html.js .reveal-hero-3 { animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both; }

  /* slow, almost imperceptible drift on carousel photos */
  .carousel-slides img { animation: ken-burns 14s ease-in-out infinite alternate; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes ken-burns {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

/* reading progress — a thin brass thread across the top of guide articles */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brass), #c9a25e);
  z-index: 60; pointer-events: none;
}

:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* ---------------------------------------------------------------- steps / timeline */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.2rem;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  font-family: var(--serif); font-size: 1.5rem; color: var(--brass);
  width: 3.4rem; height: 3.4rem; border: 1px solid var(--brass-soft);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--paper-3);
}
.step h3 { margin-bottom: 0.35em; }
.step p { color: var(--muted); margin-bottom: 0; max-width: 40rem; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 0.55rem; top: 0.6rem; bottom: 0.6rem;
  width: 1px; background: var(--brass-soft);
}
.timeline li { position: relative; padding: 0 0 2.4rem 2.4rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 0.42rem;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--brass);
}
.timeline .tl-when {
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 0.3rem;
}
.timeline h3 { margin-bottom: 0.35em; }
.timeline p { color: var(--muted); max-width: 42rem; }

/* ---------------------------------------------------------------- cards */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 860px) { .card-grid { grid-template-columns: 1fr; } }

.t-card {
  background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.t-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.t-card blockquote { margin: 0 0 1.2rem; font-family: var(--serif); font-size: 1.05rem; line-height: 1.55; }
.t-card blockquote::before { content: "“"; color: var(--brass); font-size: 1.6rem; line-height: 0; margin-right: 0.1rem; }
.t-card-person { display: flex; align-items: center; gap: 0.8rem; }
.t-card-initials {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--green); color: #f0ead6;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 0.95rem; letter-spacing: 0.05em;
}
.t-card-person p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.t-card-person .t-name { font-weight: 600; color: var(--ink); }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 960px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--ink); }
.guide-card figure, .guide-card .thumb-wrap { overflow: hidden; }
.guide-card img {
  aspect-ratio: 8 / 5; object-fit: cover; width: 100%; display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.guide-card:hover img { transform: scale(1.04); }
.guide-card-body { padding: 1.3rem 1.4rem 1.5rem; }
.guide-card-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.55rem; }
.tag {
  color: var(--brass); font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; font-size: 0.74rem;
}
.guide-card h3 { font-size: 1.12rem; margin-bottom: 0.5em; transition: color 0.2s ease; }
.guide-card:hover h3 { color: var(--green); }
.guide-card-summary { font-size: 0.94rem; color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- guarantee letter */

.letter {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(250, 246, 236, 0.96)),
    var(--paper-2);
  border: 1px solid var(--brass-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem clamp(1.5rem, 5vw, 4rem);
  max-width: 46rem;
  margin: 0 auto;
}
.letter h2 { text-align: center; }
.letter p { font-family: var(--serif); font-size: 1.08rem; line-height: 1.75; }
.letter-foot { text-align: center; margin-top: 2rem; color: var(--brass); }
.letter-foot .monogram { display: inline-block; }
.letter-sig { font-family: var(--serif); font-style: italic; text-align: center; color: var(--muted); margin: 1.6rem 0 0; }

.mono-divider {
  display: flex; align-items: center; gap: 1rem; justify-content: center;
  color: var(--brass); margin: 2.5rem auto;
  max-width: 30rem;
}
.mono-divider .monogram { width: 30px; height: 30px; flex: none; }
.mono-line { flex: 1; height: 1px; background: var(--brass-soft); }

/* ---------------------------------------------------------------- pricing */

.price-card {
  background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2.6rem clamp(1.4rem, 4vw, 3rem);
  max-width: 46rem; margin: 0 auto;
}
.price-figure { font-family: var(--serif); font-size: 3rem; color: var(--green); margin: 0.2em 0 0.1em; }
.price-terms { color: var(--muted); font-size: 0.98rem; }
.price-card ul { padding-left: 1.2rem; }
.price-card li { margin-bottom: 0.45em; }
.margin-note {
  font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  background: #fbf6e9; border-left: 3px solid var(--brass);
  padding: 0.9rem 1.2rem; color: #5a4b28; font-size: 1rem;
  margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.price-addons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 46rem; margin: 1.5rem auto 0; }
@media (max-width: 640px) { .price-addons { grid-template-columns: 1fr; } }
.price-addon {
  background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
}
.price-addon h3 { font-size: 1.05rem; }
.price-addon p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.cost-table th, .cost-table td {
  text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.cost-table th { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cost-table td:last-child { white-space: nowrap; }

/* ---------------------------------------------------------------- checklist bullets */

.check-list { list-style: none; padding: 0; display: grid; gap: 1.1rem; max-width: 46rem; }
.check-list li { padding-left: 2rem; position: relative; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--brass); font-weight: 700;
}
.check-list strong { display: block; }
.check-list span { color: var(--muted); }

/* ---------------------------------------------------------------- accordion */

.acc { border-bottom: 1px solid var(--line); }
.acc:first-of-type { border-top: 1px solid var(--line); }
.acc-btn {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  gap: 1rem; background: none; border: none; text-align: left;
  font-family: var(--serif); font-size: 1.12rem; color: var(--ink);
  padding: 1.15rem 0.2rem; transition: color 0.2s ease;
}
.acc-btn:hover { color: var(--green); }
.acc-btn .acc-arrow {
  flex: none; transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); color: var(--brass);
}
.acc.open .acc-arrow { transform: rotate(180deg); }
.acc-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.acc.open .acc-panel { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; }
.acc-inner p, .acc-inner ul { color: var(--muted); max-width: 44rem; }
.acc-inner > :last-child { padding-bottom: 1.2rem; margin-bottom: 0; }
html:not(.js) .acc-panel { grid-template-rows: 1fr; }
.faq-section-label { margin-top: 2.6rem; }

/* ---------------------------------------------------------------- carousel */

.carousel { position: relative; max-width: 52rem; margin: 0 auto; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.carousel-slides { display: flex; transition: transform 0.5s ease; }
.carousel-slides img { flex: none; width: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(250, 247, 240, 0.92); border: 1px solid var(--line);
  border-radius: 50%; width: 2.6rem; height: 2.6rem;
  color: var(--green); font-size: 1.1rem; line-height: 1;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.carousel-btn:hover { color: var(--brass); background: #fff; }
.carousel-prev { left: 0.8rem; }
.carousel-next { right: 0.8rem; }
.carousel-dots { display: flex; justify-content: center; gap: 0.55rem; margin-top: 1rem; }
.carousel-dots .dot {
  width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--brass);
  background: transparent; padding: 0; transition: background-color 0.2s ease;
}
.carousel-dots .dot.active, .carousel-dots .dot:hover { background: var(--brass); }
html:not(.js) .carousel-btn, html:not(.js) .carousel-dots { display: none; }
html:not(.js) .carousel-slides { overflow-x: auto; }

/* ---------------------------------------------------------------- byline / article */

.article { padding: 3rem 0 4rem; }
.article-head { max-width: 46rem; margin: 0 auto 2rem; }
.article-body { max-width: 46rem; margin: 0 auto; }
.article-body h2 { margin-top: 2.2em; }
.article-body h3 { margin-top: 1.8em; }
.article-body a { text-underline-offset: 2px; }
.article-body table { margin: 1.4rem 0; }
.byline {
  display: flex; gap: 0.9rem; align-items: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1rem 0; margin: 1.6rem 0;
}
.byline img { border-radius: 50%; flex: none; object-fit: cover; }
.byline p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.byline-name { font-weight: 600; color: var(--ink); }
.byline-updated { color: var(--brass); }

.key-facts {
  background: var(--paper-2); border: 1px solid var(--line);
  border-left: 3px solid var(--brass); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.7rem; margin: 1.8rem 0;
}
.key-facts h2 {
  font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brass); margin: 0 0 0.8rem;
}
.key-facts ul { margin: 0; padding-left: 1.15rem; }
.key-facts li { margin-bottom: 0.4em; }

.related-guides { max-width: 46rem; margin: 3rem auto 0; }
.related-guides ul { list-style: none; padding: 0; }
.related-guides li { border-bottom: 1px solid var(--line); }
.related-guides li a {
  display: block; padding: 0.85rem 0.2rem; text-decoration: none;
  font-family: var(--serif); font-size: 1.05rem;
}
.related-hub { margin-top: 1rem; font-size: 0.95rem; }

/* ---------------------------------------------------------------- forms */

.form-grid { display: grid; gap: 1.2rem; max-width: 34rem; }
label { font-size: 0.92rem; font-weight: 600; display: block; margin-bottom: 0.35rem; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 64, 54, 0.14);
}
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.consent input { margin-top: 0.25rem; }
.consent label { font-weight: 400; margin: 0; display: inline; font-size: inherit; }
.form-note { font-size: 0.88rem; color: var(--muted); }
.form-error { color: #8c3320; font-size: 0.92rem; }

/* ---------------------------------------------------------------- quiz */

.quiz-shell {
  background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); max-width: 42rem; margin: 0 auto;
  padding: 2.2rem clamp(1.2rem, 4vw, 2.6rem) 2.6rem;
}
.quiz-progress { height: 4px; background: var(--paper-2); border-radius: 999px; overflow: hidden; margin-bottom: 1.8rem; }
.quiz-progress-bar { height: 100%; width: 0; background: var(--brass); transition: width 0.3s ease; }
.quiz-step { animation: fade-up 0.4s ease both; }
.quiz-q { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 1.2rem; }
.quiz-options { display: grid; gap: 0.7rem; }
.quiz-opt {
  text-align: left; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.9rem 1.1rem; font-size: 1rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.quiz-opt:hover { border-color: var(--green); background: #fff; transform: translateY(-1px); }
.quiz-opt.selected { border-color: var(--green); background: var(--green-soft); }
.quiz-back {
  background: none; border: none; color: var(--muted); font-size: 0.9rem;
  padding: 0; margin-top: 1.4rem; text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.quiz-back:hover { color: var(--green); }
.quiz-note { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }
.quiz-verdict { font-family: var(--serif); font-size: 1.7rem; margin-bottom: 0.6em; }
.quiz-notes { padding-left: 1.2rem; }
.quiz-notes li { margin-bottom: 0.6em; color: var(--muted); }
.quiz-multi-continue { margin-top: 1.2rem; }
.reassurances { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 52rem; margin: 0 auto; }
@media (max-width: 760px) { .reassurances { grid-template-columns: 1fr; } }
.reassurances p { font-size: 0.94rem; color: var(--muted); margin: 0; }
.reassurances strong { display: block; color: var(--ink); margin-bottom: 0.3rem; }

/* ---------------------------------------------------------------- cta band */

.cta-band { background: var(--green); color: #efe9d8; padding: 3.2rem 0; }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; }
.cta-band-line { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.55rem); margin: 0; max-width: 34rem; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--green-deep); color: #cfc9b8; padding: 3.2rem 0 2.6rem;
  font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .monogram { color: var(--brass-soft); }
.footer-name { font-family: var(--serif); font-size: 1.15rem; color: #f0ead6; margin: 0.8rem 0 0.4rem; }
.footer-trust { max-width: 20rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer-nav a { color: #cfc9b8; text-decoration: none; display: inline-block; padding: 0.25rem 0; }
.footer-nav a:hover { color: var(--brass-soft); }
.footer-legal p { margin-bottom: 0.4em; }
.footer-legal a { color: #cfc9b8; }
.footer-legal a:hover { color: var(--brass-soft); }

/* ---------------------------------------------------------------- misc pages */

.page-hero { padding: 3.2rem 0 1rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.quiet-list { list-style: none; padding: 0; }
.quiet-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.about-grid { display: grid; grid-template-columns: 2fr 3fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow-lift); width: 100%; }
.principle h3 { margin-bottom: 0.3em; }
.principle p { color: var(--muted); max-width: 40rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------------- premium details */

/* custom cursor — brass dot with a trailing ring (fine pointers only) */
@media (pointer: fine) {
  html.cursor-on, html.cursor-on body,
  html.cursor-on a, html.cursor-on button, html.cursor-on .btn,
  html.cursor-on summary, html.cursor-on [role="button"] { cursor: none; }
  html.cursor-on input, html.cursor-on textarea,
  html.cursor-on select, html.cursor-on option { cursor: auto; }
}
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; border-radius: 50%;
  pointer-events: none; z-index: 200;
  transform: translate(-50%, -50%);
  opacity: 0; will-change: transform;
}
html.cursor-on .cursor-dot, html.cursor-on .cursor-ring { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; background: var(--brass); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(165, 129, 63, 0.5);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              height 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease, background-color 0.3s ease,
              opacity 0.25s ease;
}
.cursor-ring.is-link {
  width: 52px; height: 52px;
  border-color: rgba(23, 64, 54, 0.55);
  background: rgba(23, 64, 54, 0.05);
}
.cursor-ring.is-down { width: 26px; height: 26px; }
html.cursor-hidden .cursor-dot, html.cursor-hidden .cursor-ring { opacity: 0; }

/* soft cross-fade between pages (View Transitions, progressive) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation-duration: 0.2s; }
  ::view-transition-new(root) { animation-duration: 0.3s; }
}

/* branded scrollbar */
html { scrollbar-color: #c2b591 var(--paper); }
::-webkit-scrollbar { width: 13px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb {
  background: #c2b591; border-radius: 8px;
  border: 3px solid var(--paper);
}
::-webkit-scrollbar-thumb:hover { background: var(--brass); }

/* hero photo — faint parallax follow on mouse (JS sets --px/--py) */
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-photo img {
    transform: translate3d(var(--px, 0), var(--py, 0), 0);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

/* cards warm to brass at the edges on hover */
.guide-card:hover, .t-card:hover { border-color: var(--brass-soft); }

/* monogram divider breathes on reveal */
.divider .monogram { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.divider:hover .monogram { transform: rotate(8deg) scale(1.06); }

/* ---------------------------------------------------------------- photo rotator */

.photo-rotator {
  position: relative; overflow: hidden;
  aspect-ratio: 21 / 8; border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
@media (max-width: 640px) { .photo-rotator { aspect-ratio: 4 / 3; } }
.photo-rotator img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 1.4s ease;
}
.photo-rotator img.on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .photo-rotator img.on { animation: rotator-drift 11s ease-in-out both; }
}
@keyframes rotator-drift {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}
.rotator-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 2.2rem 1.6rem 1.1rem;
  background: linear-gradient(transparent, rgba(14, 28, 24, 0.62));
  color: #f0ede4; font-family: var(--serif); font-size: 1.05rem;
  letter-spacing: 0.02em; text-align: center;
}
.rotator-caption span { color: var(--brass-soft); }

/* slim photo band used on inner pages */
.page-band {
  width: 100%; aspect-ratio: 21 / 8; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-lift);
}
@media (max-width: 640px) { .page-band { aspect-ratio: 16 / 10; } }

/* ------------------------------------------------ glossary / knowledge base */

/* the 40-60 word short definition — the page's opening statement */
.term-def {
  font-family: var(--serif); font-size: 1.22rem; line-height: 1.6;
  color: var(--ink); max-width: 46rem;
  border-left: 3px solid var(--brass); padding-left: 1.2rem;
  margin: 1.4rem 0 1.6rem;
}

/* vertical process flow used as the visual aid on term pages */
.term-flow {
  margin: 1.8rem 0; padding: 0; list-style: none;
  max-width: 30rem;
}
.term-flow li {
  position: relative; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.85rem 1.1rem; font-size: 0.95rem;
}
.term-flow li strong { font-family: var(--serif); font-weight: 600; }
.term-flow li + li { margin-top: 2rem; }
.term-flow li + li::before {
  content: "↓"; position: absolute; top: -1.85rem; left: 1.35rem;
  color: var(--brass); font-size: 1.15rem; line-height: 1.5rem;
}

/* related-terms chips */
.term-chips { list-style: none; padding: 0; margin: 0.8rem 0 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem; }
.term-chip {
  display: inline-block; border: 1px solid var(--line);
  border-radius: 999px; padding: 0.38rem 1rem;
  font-size: 0.88rem; color: var(--green); text-decoration: none;
  background: var(--paper-2);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.term-chip:hover {
  border-color: var(--brass); background: var(--green-soft);
  transform: translateY(-1px);
}

/* glossary index rows */
.gloss-cat { padding-top: 1.4rem; }
.gloss-cat .kicker { margin-bottom: 0.9rem; }
.gloss-list { display: grid; gap: 0.7rem; }
.gloss-row {
  position: relative; display: block; text-decoration: none; color: inherit;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 3rem 1rem 1.25rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.gloss-row:hover {
  border-color: var(--brass); box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
.gloss-row h3 { font-size: 1.05rem; margin: 0 0 0.15rem; }
.gloss-row p { margin: 0; color: var(--muted); font-size: 0.92rem; max-width: 44rem; }
.gloss-row .gloss-arrow {
  position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  color: var(--brass); opacity: 0; transition: opacity 0.25s ease, transform 0.25s ease;
}
.gloss-row:hover .gloss-arrow { opacity: 1; transform: translate(3px, -50%); }
