/* Nyasha Villa — main stylesheet. Shares the Pamusha design system; tokens live in tokens.css. */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; margin: 0; color: var(--text); font-variation-settings: "opsz" 144; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 300; line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; box-shadow: 0 0 0 5px var(--bg); }
::selection { background: color-mix(in srgb, var(--apricot) 45%, transparent); }
button { font: inherit; color: inherit; }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }
strong { font-weight: 500; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--btn-bg); color: var(--btn-text); padding: 0.75rem 1rem; z-index: 1000; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

/* Film grain */
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: var(--grain-opacity); mix-blend-mode: var(--grain-blend); }
.grain svg { width: 100%; height: 100%; }

/* ---------- Type utilities ---------- */
.display { font-family: var(--font-display); font-size: var(--fs-display); font-weight: 300; line-height: 1.02; letter-spacing: -0.02em; font-variation-settings: "opsz" 144; text-wrap: balance; }
.eyebrow { font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-text); line-height: 1.5; margin: 0 0 0.75rem; display: block; }
.eyebrow--sage { color: var(--sage-text); }
.lede { font-size: 1.25rem; line-height: 1.55; color: var(--text-soft); max-width: var(--prose); text-wrap: pretty; }
.small { font-size: var(--fs-small); line-height: 1.5; letter-spacing: 0.01em; }
.soft { color: var(--text-soft); }
.prose { max-width: var(--prose); text-wrap: pretty; }
.prose p + p { margin-top: 1em; }
.num { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 300; line-height: 1; letter-spacing: -0.01em; font-variation-settings: "opsz" 144; }
.serif-i { font-family: var(--font-display); font-weight: 300; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap--narrow, .wrap-narrow { width: min(100% - 2 * var(--gutter), 56rem); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--surface { background: var(--surface); }
.section--ink { background: var(--ink-band); color: var(--linen); --rule-strong: color-mix(in srgb, #F6F1E9 32%, transparent); --text: var(--linen); --text-soft: #C9C3B8; --rule: color-mix(in srgb, #F6F1E9 16%, transparent); --accent-text: var(--apricot); --btn-bg: var(--linen); --btn-text: var(--ink); --surface: #26303C; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--linen); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); max-width: 48rem; }
.section-head--center { text-align: center; margin-inline: auto; justify-items: center; }
.grid { display: grid; gap: var(--s-3); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; grid-template-columns: 1fr 1fr; }
.split--rev > :first-child { order: 2; }
@media (max-width: 56rem) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
}
@media (max-width: 36rem) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--pair { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}
.rule { border: 0; border-top: 1px solid var(--rule); }
.rule--full { width: 100%; }
.rule--accent { width: 3rem; border-top: 2px solid var(--accent); margin: 0; }
.stack > * + * { margin-top: var(--s-3); }
.cluster { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }

/* ---------- Ripple divider ---------- */
.ripple { display: block; width: 100%; height: 24px; color: var(--rule-strong); overflow: hidden; }
.ripple svg { width: 100%; height: 100%; }
.ripple path { stroke: currentColor; stroke-width: 1.2; fill: none; }
@media (prefers-reduced-motion: no-preference) {
  .ripple path { animation: drift 8s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: translateX(0); } to { transform: translateX(2px); } }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3rem; padding: 0.85rem 1.6rem; border-radius: var(--radius-pill); border: 1px solid transparent; font-weight: 500; font-size: 0.95rem; letter-spacing: 0.02em; text-decoration: none; cursor: pointer; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--btn-bg); color: var(--btn-text); }
.btn--primary:hover { background: color-mix(in srgb, var(--btn-bg) 88%, var(--accent)); }
.btn--accent { background: var(--apricot); color: var(--ink); }
.btn--accent:hover { background: #EBB283; }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--rule-strong); }
.btn--secondary:hover { border-color: currentColor; }
.btn--ghost { background: transparent; color: var(--text); padding-inline: 0.25rem; border-radius: 0; border: 0; border-bottom: 1px solid currentColor; min-height: 0; padding-block: 0.2rem; }
.btn--ghost:hover { transform: none; color: var(--accent-text); }
.btn--sm { min-height: 2.5rem; padding: 0.55rem 1.1rem; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn svg { width: 1.1em; height: 1.1em; }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.55; pointer-events: none; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header--overlay { position: fixed; left: 0; right: 0; background: transparent; --text: var(--linen); color: var(--linen); }
.site-header--overlay.is-scrolled { background: color-mix(in srgb, var(--bg) 94%, transparent); --text: initial; color: var(--text); }
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 94%, transparent); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.brand__mark { width: 2.5rem; height: 2.5rem; flex: none; }
.brand__mark svg { width: 100%; height: 100%; stroke: currentColor; }
.brand__text { display: grid; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 400; letter-spacing: 0.02em; font-variation-settings: "opsz" 48; }
.brand__desc { font-size: 0.625rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-soft); margin-top: 0.3rem; font-weight: 500; }
.site-header--overlay:not(.is-scrolled) .brand__desc { color: var(--linen); }
.nav__links { display: flex; gap: clamp(1rem, 2vw, 2rem); list-style: none; margin: 0; padding: 0; align-items: center; }
.nav__links a { text-decoration: none; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em; padding: 0.4rem 0; border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="page"] { border-bottom-color: currentColor; }
.nav__cta { display: flex; align-items: center; gap: 0.75rem; }
.nav__toggle { display: none; background: none; border: 1px solid var(--rule-strong); border-radius: var(--radius-pill); width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; cursor: pointer; }
.nav__toggle svg { width: 1.25rem; height: 1.25rem; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; }
.nav__toggle .x { display: none; }
.nav__toggle[aria-expanded="true"] .bars { display: none; }
.nav__toggle[aria-expanded="true"] .x { display: block; }
@media (max-width: 56rem) {
  .nav__links { position: fixed; inset: 4.5rem 0 auto 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 1rem var(--gutter) 2rem; gap: 0; border-bottom: 1px solid var(--rule); display: none; color: var(--text); }
  .nav__links.is-open { display: flex; max-height: calc(100vh - 4.5rem); overflow-y: auto; }
  .nav__links li { border-bottom: 1px solid var(--rule); }
  .nav__links a { display: block; padding: 1rem 0; font-size: 1.05rem; border-bottom: 0; }
  .nav__toggle { display: inline-flex; }
  .nav__cta .btn { display: none; }
  .nav__links .nav__mobile-cta { border: 0; padding-top: 1.25rem; }
  .nav__links .nav__mobile-cta .btn { display: inline-flex; }
  .site-header--overlay .nav__links { --text: var(--ink); }
}
@media (min-width: 56.01rem) { .nav__mobile-cta { display: none; } }

/* Mobile sticky book bar */
.book-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--rule); padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom)); display: none; align-items: center; justify-content: space-between; gap: 1rem; transform: translateY(100%); transition: transform var(--dur) var(--ease); }
.book-bar.is-visible { transform: translateY(0); }
.book-bar__meta { display: grid; line-height: 1.2; }
.book-bar__meta strong { font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; }
@media (max-width: 56rem) { .book-bar { display: flex; } body.has-book-bar { padding-bottom: 4.5rem; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: var(--linen); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media img, .hero__media .art { width: 100%; height: 100%; object-fit: cover; }
.hero__media img { position: absolute; inset: 0; z-index: 1; }
.hero__media img.is-missing { opacity: 0; }
.hero__media::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to bottom, rgba(20, 26, 33, 0.55) 0%, rgba(20, 26, 33, 0) 28%), linear-gradient(to top, rgba(20, 26, 33, 0.78) 0%, rgba(20, 26, 33, 0.35) 45%, rgba(20, 26, 33, 0.15) 100%); }
.hero__content { position: relative; padding-block: clamp(6rem, 8vw, 9rem) clamp(3rem, 5vw, 5rem); display: grid; gap: 1.5rem; max-width: 46rem; }
.hero__content .eyebrow { color: var(--apricot); }
.hero__content h1 { color: var(--linen); }
.hero__content .lede { color: color-mix(in srgb, var(--linen) 84%, transparent); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.hero .btn--primary { background: var(--linen); color: var(--ink); }
.hero .btn--primary:hover { background: #fff; }
.hero .btn--secondary { color: var(--linen); border-color: color-mix(in srgb, var(--linen) 55%, transparent); }
.hero .btn--secondary:hover { border-color: var(--linen); }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 2rem; font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: color-mix(in srgb, var(--linen) 70%, transparent); writing-mode: vertical-rl; display: none; }
@media (min-width: 56.01rem) { .hero__scroll { display: block; } }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(8rem, 6rem + 6vw, 12rem) clamp(3rem, 2rem + 3vw, 5rem); }
.page-hero h1 { max-width: 20ch; }

/* ---------- Facts strip ---------- */
.facts { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.facts__list li { padding: 1.75rem 1rem; display: grid; gap: 0.35rem; justify-items: center; text-align: center; border-left: 1px solid var(--rule); }
.facts__list li:first-child { border-left: 0; }
.facts__list .num { font-size: 2rem; }
.facts__list .small { color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.6875rem; font-weight: 500; }
@media (max-width: 56rem) { .facts__list { grid-template-columns: repeat(3, 1fr); } .facts__list li:nth-child(4) { border-left: 0; } .facts__list li:nth-child(n+4) { border-top: 1px solid var(--rule); } }
@media (max-width: 36rem) { .facts__list { grid-template-columns: repeat(2, 1fr); } .facts__list li:nth-child(5) { grid-column: 1 / -1; border-left: 0; } .facts__list li:nth-child(4) { border-left: 1px solid var(--rule); } .facts__list li:nth-child(3) { border-left: 0; } .facts__list li:nth-child(n+3) { border-top: 1px solid var(--rule); } }

/* ---------- Images & placeholder art ---------- */
.frame { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--radius); }
.frame--4x5 { aspect-ratio: 4 / 5; } .frame--3x2 { aspect-ratio: 3 / 2; } .frame--16x9 { aspect-ratio: 16 / 9; } .frame--1x1 { aspect-ratio: 1; } .frame--3x4 { aspect-ratio: 3 / 4; }
.frame--arch { border-radius: 999px 999px var(--radius) var(--radius); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity var(--dur) var(--ease); }
.frame img[data-fallback] { position: absolute; inset: 0; z-index: 1; }
.frame img.is-missing { opacity: 0; pointer-events: none; }
.frame .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.art svg { width: 100%; height: 100%; display: block; }
.frame__caption { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--linen); background: rgba(20, 26, 33, 0.55); padding: 0.4rem 0.7rem; border-radius: var(--radius-pill); backdrop-filter: blur(6px); }
figure { margin: 0; }
figcaption { font-size: var(--fs-small); color: var(--text-soft); margin-top: 0.75rem; }
@media (prefers-reduced-motion: no-preference) { .reveal .frame img { transform: scale(1.03); } .reveal.is-in .frame img { transform: scale(1); } }

/* ---------- Cards ---------- */
.card { display: grid; gap: 1rem; align-content: start; text-decoration: none; color: inherit; }
a.card h3 { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; transition: text-decoration-color var(--dur) var(--ease); }
a.card:hover h3 { text-decoration-color: var(--accent); }
.card h3 { margin-top: 0.25rem; }
.card p { color: var(--text-soft); }
.card__meta { font-size: var(--fs-small); color: var(--sage-text); letter-spacing: 0.04em; }
.feature { display: grid; gap: 0.75rem; padding: 2rem 0; border-top: 1px solid var(--rule); }
.feature__icon { width: 2rem; height: 2rem; color: var(--accent-text); }
.feature__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--text-soft); }
.feature .btn--ghost { justify-self: start; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.85rem; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--sage) 45%, transparent); color: var(--text); font-size: var(--fs-small); font-weight: 500; }
.chip--outline { background: transparent; border: 1px solid var(--rule-strong); }

/* Testimonials */
.quote { display: grid; gap: 1.25rem; padding: 2rem 0; border-top: 1px solid var(--rule); }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 300; line-height: 1.35; letter-spacing: -0.005em; text-wrap: pretty; }
.quote blockquote::before { content: "\201C"; color: var(--accent); margin-right: 0.1em; }
.quote cite { font-style: normal; font-size: var(--fs-small); color: var(--text-soft); }
.rating { display: inline-flex; align-items: baseline; gap: 0.6rem; }
.rating .num { font-size: 3.5rem; }

/* ---------- Accordion (details) ---------- */
.acc { border-top: 1px solid var(--rule); }
.acc:last-of-type { border-bottom: 1px solid var(--rule); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .plus { width: 1.5rem; height: 1.5rem; flex: none; position: relative; border: 1px solid var(--rule-strong); border-radius: 50%; }
.acc summary .plus::before, .acc summary .plus::after { content: ""; position: absolute; background: currentColor; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform var(--dur) var(--ease); }
.acc summary .plus::before { width: 0.65rem; height: 1px; }
.acc summary .plus::after { width: 1px; height: 0.65rem; }
.acc[open] summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__body { padding: 0 0 1.5rem; color: var(--text-soft); max-width: var(--prose); }
.acc__body ul { padding-left: 1.1em; }


/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 36rem) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; color: var(--text-soft); }
.field input, .field textarea, .field select { width: 100%; font: inherit; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--rule-strong); padding: 0.7rem 0; border-radius: 0; transition: border-color var(--dur) var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--accent-text); border-bottom-width: 2px; }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: var(--error-text); }
.field textarea { min-height: 7rem; resize: vertical; }
.field__error { font-size: var(--fs-small); color: var(--error-text); display: none; }
.field label .req { color: var(--text-soft); font-weight: 400; }
.field.is-invalid .field__error { display: block; }
.form__status { padding: 1rem 1.25rem; border-radius: 4px; background: color-mix(in srgb, var(--sage) 45%, transparent); display: none; }
.form__status.is-visible { display: block; }
.form__status.is-error { background: color-mix(in srgb, #B4462B 14%, transparent); }
.honey { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: 4rem 2.5rem; }
.site-footer .brand { margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 56rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36rem) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .footer-h { font-family: var(--font-body); font-size: var(--fs-eyebrow); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; color: var(--text-soft); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.site-footer a:hover { text-decoration-color: currentColor; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: var(--fs-small); color: var(--text-soft); }
[data-theme-set][aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.site-footer [role="group"] { flex-wrap: nowrap; gap: 0.35rem; }
.site-footer [role="group"] .btn--sm { padding-inline: 0.8rem; }
.footer-tagline { font-family: var(--font-display); font-weight: 300; font-size: 1.25rem; color: var(--text-soft); }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  html.js .reveal.is-in { opacity: 1; transform: none; }
  .reveal[data-delay="1"] { transition-delay: 0.12s; } .reveal[data-delay="2"] { transition-delay: 0.24s; } .reveal[data-delay="3"] { transition-delay: 0.36s; }
}

/* Contour texture (max one per page) */
.contour { position: relative; overflow: hidden; }
.contour::before { content: ""; position: absolute; inset: 0; background-image: url("../img/contour.svg"); background-size: 900px; background-repeat: repeat; opacity: 0.07; pointer-events: none; filter: var(--contour-filter, none); }
.contour > * { position: relative; }

/* Map card */
.map-card { border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.map-card iframe { width: 100%; height: 100%; border: 0; min-height: 22rem; display: block; filter: grayscale(0.35) sepia(0.12) contrast(0.95); background: var(--surface); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map-card iframe { filter: grayscale(0.5) invert(0.9) hue-rotate(180deg) contrast(0.9); } }
:root[data-theme="dark"] .map-card iframe { filter: grayscale(0.5) invert(0.9) hue-rotate(180deg) contrast(0.9); }
.map-card .art { height: 22rem; }

/* Gallery mosaic */
.mosaic { display: grid; gap: 0.75rem; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 14rem; }
.mosaic > :nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic > :nth-child(4) { grid-column: span 2; }
@media (max-width: 56rem) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 11rem; } .mosaic > :nth-child(1) { grid-column: span 2; } .mosaic > :nth-child(4) { grid-column: span 1; } }
.mosaic .frame { aspect-ratio: auto; height: 100%; }

/* Stat callout */
.callout { display: grid; gap: 1rem; padding: 2rem; background: var(--surface); border-radius: 4px; }
.callout .num { font-size: 3rem; }

/* Print */
@media print {
  .site-header, .book-bar, .grain, .site-footer, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .mcard { break-inside: avoid; border: 1px solid #ccc; }
}

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; display: none; }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: 1fr auto; align-items: center; }
.lightbox::backdrop { background: rgba(20, 26, 33, 0.92); backdrop-filter: blur(6px); }
.lightbox__stage { grid-column: 2; grid-row: 1; height: 82vh; display: grid; place-items: center; }
.lightbox__stage img, .lightbox__stage .art { max-width: 100%; max-height: 82vh; width: auto; height: auto; }
.lightbox__stage .art { width: min(90vw, 70vh); aspect-ratio: 1; }
.lightbox__stage .art svg { width: 100%; height: 100%; }
.lightbox__nav, .lightbox__close { background: transparent; border: 1px solid rgba(246, 241, 233, 0.4); color: #F6F1E9; width: 2.75rem; height: 2.75rem; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; margin: 0 1rem; display: grid; place-items: center; }
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(246, 241, 233, 0.12); }
.lightbox__nav--prev { grid-column: 1; grid-row: 1; } .lightbox__nav--next { grid-column: 3; grid-row: 1; }
.lightbox__close { position: fixed; top: 1rem; right: 1rem; margin: 0; }
.lightbox__caption { grid-column: 1 / -1; grid-row: 2; text-align: center; color: #F6F1E9; font-size: var(--fs-small); padding: 1rem; margin: 0; }
@media (max-width: 36rem) { .lightbox[open] { grid-template-columns: 1fr; } .lightbox__stage { grid-column: 1; height: 70vh; } .lightbox__nav { position: fixed; bottom: 4rem; } .lightbox__nav--prev { left: 1rem; } .lightbox__nav--next { right: 1rem; } }


/* Five-card grid: 3 + 2 with no dead cell */
.grid--five { grid-template-columns: repeat(6, 1fr); }
.grid--five > * { grid-column: span 2; }
.grid--five > :nth-child(n+4) { grid-column: span 3; }
@media (max-width: 56rem) { .grid--five { grid-template-columns: repeat(2, 1fr); } .grid--five > *, .grid--five > :nth-child(n+4) { grid-column: auto; } .mosaic > :last-child { grid-column: span 2; } }
@media (max-width: 36rem) { .grid--five { grid-template-columns: 1fr; } }

/* Images breathe on hover (slow and few) */
@media (prefers-reduced-motion: no-preference) {
  .card .frame img, .card .frame .art, [data-lightbox] img, [data-lightbox] .art { transition: transform 1.2s var(--ease); }
  .card:hover .frame img, .card:hover .frame .art, [data-lightbox]:hover img, [data-lightbox]:hover .art { transform: scale(1.03); }
}

.lightbox__caption[aria-live] { min-height: 1.5em; }

/* =====================================================================
   Nyasha Villa additions — built from the same tokens and motifs
   ===================================================================== */

/* ---------- Split hero: arched photograph on linen (the photos are portrait) ---------- */
.hero--split { min-height: auto; color: var(--text); align-items: center; padding-block: clamp(1.5rem, 0.5rem + 4vw, 5rem) clamp(3rem, 2rem + 3vw, 5rem); }
.hero--split .hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.hero--split .hero__content { padding: 0; max-width: 36rem; }
.hero--split .hero__content .eyebrow { color: var(--accent-text); }
.hero--split .hero__content h1 { color: var(--text); }
.hero--split .hero__content .lede { color: var(--text-soft); }
.hero--split .btn--primary { background: var(--btn-bg); color: var(--btn-text); }
.hero--split .btn--primary:hover { background: color-mix(in srgb, var(--btn-bg) 88%, var(--accent)); }
.hero--split .btn--secondary { color: var(--text); border-color: var(--rule-strong); }
.hero__photo { position: relative; }
.hero__photo .frame { aspect-ratio: 4 / 5; }
.hero__photo .frame img { object-position: 50% 32%; }
.hero__badge { position: absolute; left: -1.5rem; bottom: 2rem; z-index: 3; background: var(--bg); padding: 1rem 1.25rem; border-radius: 4px; display: grid; gap: 0.2rem; border: 1px solid var(--rule); }
.hero__badge .num { font-size: 2rem; }
.hero__badge .small { color: var(--text-soft); }
@media (max-width: 56rem) {
  .hero--split .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { order: -1; max-width: 26rem; width: 100%; margin-inline: auto; }
  .hero__badge { left: 0.75rem; bottom: 0.75rem; }
}
@media (prefers-reduced-motion: no-preference) { .hero__photo .frame img { animation: settle 1.4s var(--ease) both; } @keyframes settle { from { transform: scale(1.03); } } }

/* ---------- Quick availability strip ---------- */
.quick-book { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 0 1.5rem; align-items: end; padding: 1.5rem 1.75rem; background: var(--surface); border-radius: 4px; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.quick-book .field { gap: 0.15rem; min-width: 0; }
.quick-book input, .quick-book select { min-width: 0; }
.quick-book .btn { align-self: end; }
@media (max-width: 56rem) { .quick-book { grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; } .quick-book .field--guests { grid-column: 1 / -1; } .quick-book .btn { grid-column: 1 / -1; } }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 1.5rem; cursor: pointer; }
.field select option { color: var(--ink); background: var(--linen); }

/* ---------- Bedrooms ---------- */
.card__tags { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; list-style: none; margin: 0; padding: 0; font-size: var(--fs-small); color: var(--text-soft); }
.card__tags li::before { content: ""; display: inline-block; width: 0.35rem; height: 0.35rem; border-radius: 50%; background: var(--accent); margin-right: 0.45rem; vertical-align: 0.15em; }

/* ---------- Amenities ---------- */
.amenities { columns: 3 14rem; column-gap: 3rem; }
.amenity-group { break-inside: avoid; padding: 0 0 2rem; }
.amenity-group h3 { font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage-text); margin-bottom: 0.75rem; }
.amenity-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.amenity-group li { padding: 0.45rem 0; border-top: 1px solid var(--rule); }
.amenity-group--no li { color: var(--text-soft); text-decoration: line-through; text-decoration-color: var(--rule-strong); }

/* ---------- Ratings ---------- */
.rating-bars { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.75rem; max-width: 24rem; }
.rating-bars li { display: grid; grid-template-columns: 8rem 1fr 2rem; gap: 1rem; align-items: center; font-size: var(--fs-small); }
.rating-bars .bar { height: 2px; background: var(--rule); position: relative; }
.rating-bars .bar span { position: absolute; inset: 0 auto 0 0; background: var(--text); }
.rating-bars b { font-weight: 500; text-align: right; }

/* ---------- Host ---------- */
.host { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; }
.host__mono { width: 4.5rem; height: 4.5rem; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--sage) 55%, transparent); font-family: var(--font-display); font-size: 1.75rem; font-weight: 300; }
.kv-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.4rem; color: var(--text-soft); font-size: 1rem; }

/* ---------- Things to know ---------- */
.know { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 3rem; }
.know > div { border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.know h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.know ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; color: var(--text-soft); }
@media (max-width: 56rem) { .know { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; display: grid; justify-items: center; gap: 1.5rem; }
.cta-band h2 { font-size: var(--fs-h1); font-weight: 300; max-width: 18ch; }

/* =====================================================================
   Booking page
   ===================================================================== */
.book-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
@media (max-width: 60rem) { .book-layout { grid-template-columns: 1fr; } }
.step { padding-block: 2.5rem; border-top: 1px solid var(--rule); }
.step:first-child { border-top: 0; padding-top: 0; }
.step__head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.step__num { font-family: var(--font-display); font-weight: 300; font-size: 1.25rem; color: var(--accent-text); min-width: 1.5rem; }
.step__head h2 { font-size: 1.6rem; }
.step__head p { margin: 0.35rem 0 0; color: var(--text-soft); }

/* Date summary fields above the calendar */
.date-pair { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule-strong); border-radius: 4px; margin-bottom: 1.5rem; }
.date-pair > div { padding: 0.85rem 1.1rem; display: grid; gap: 0.15rem; }
.date-pair > div + div { border-left: 1px solid var(--rule-strong); }
.date-pair .lbl { font-size: var(--fs-eyebrow); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; color: var(--text-soft); }
.date-pair .val { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; }
.date-pair .val.is-empty { color: var(--text-soft); font-weight: 300; }

/* Calendar */
.cal { position: relative; }
.cal__bar { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.cal__bar > span { text-align: center; }
.cal__nav { background: transparent; border: 1px solid var(--rule-strong); border-radius: 50%; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; cursor: pointer; color: var(--text); transition: border-color var(--dur) var(--ease); }
.cal__nav:hover { border-color: currentColor; }
.cal__nav:disabled { opacity: 0.3; cursor: default; }
.cal__nav svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.cal__months { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 40rem) { .cal__months { grid-template-columns: 1fr; } .cal__month:nth-child(2) { display: none; } }
.cal__title { font-family: var(--font-display); font-size: 1.2rem; text-align: center; margin: 0 0 0.75rem; }
.cal table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; color: var(--text-soft); padding-bottom: 0.5rem; }
.cal td { padding: 1px 0; text-align: center; }
.cal__day { width: 100%; aspect-ratio: 1; max-height: 3rem; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 0.95rem; cursor: pointer; border-radius: 50%; position: relative; z-index: 1; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.cal__day:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--text); }
.cal__day:disabled { color: color-mix(in srgb, var(--text) 30%, transparent); cursor: default; }
.cal__day.is-blocked { text-decoration: line-through; text-decoration-color: var(--rule-strong); }
.cal__day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 18%; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: var(--accent); }
.cal td.in-range { background: color-mix(in srgb, var(--sage) 45%, transparent); }
.cal td.range-start { background: linear-gradient(to right, transparent 50%, color-mix(in srgb, var(--sage) 45%, transparent) 50%); }
.cal td.range-end { background: linear-gradient(to left, transparent 50%, color-mix(in srgb, var(--sage) 45%, transparent) 50%); }
.cal td.range-start.range-end { background: none; }
.cal .is-start, .cal .is-end { background: var(--btn-bg); color: var(--btn-text); }
.cal .is-start:hover, .cal .is-end:hover { box-shadow: none; }
.cal__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; margin-top: 1rem; font-size: var(--fs-small); color: var(--text-soft); }
.cal__clear { background: none; border: 0; padding: 0; font: inherit; font-size: var(--fs-small); color: var(--text); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.cal__msg { min-height: 1.5em; margin: 0.75rem 0 0; font-size: var(--fs-small); color: var(--accent-text); }

/* Guest steppers */
.guests { display: grid; }
.guest-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
.guest-row:last-child { border-bottom: 1px solid var(--rule); }
.guest-row__label { display: grid; }
.guest-row__label strong { font-weight: 500; }
.guest-row__label span { font-size: var(--fs-small); color: var(--text-soft); }
.stepper { display: flex; align-items: center; gap: 0.9rem; }
.stepper button { width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--rule-strong); background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; font-size: 1.15rem; line-height: 1; transition: border-color var(--dur) var(--ease); }
.stepper button:hover:not(:disabled) { border-color: currentColor; }
.stepper button:disabled { opacity: 0.3; cursor: default; }
.stepper output { min-width: 1.5rem; text-align: center; font-variant-numeric: tabular-nums; font-weight: 500; }

/* Summary card */
.summary { position: sticky; top: 6rem; background: var(--surface); border-radius: 4px; overflow: hidden; }
@media (max-width: 60rem) { .summary { position: static; } }
.summary__photo { aspect-ratio: 16 / 9; }
.summary__photo img { object-position: 50% 30%; }
.summary__body { padding: 1.75rem; display: grid; gap: 1.25rem; }
.summary__title { display: grid; gap: 0.25rem; }
.summary__title h2 { font-size: 1.5rem; }
.summary__stay { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; margin: 0; }
.summary__stay dt { font-size: var(--fs-eyebrow); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; color: var(--text-soft); }
.summary__stay dd { margin: 0.15rem 0 0; font-weight: 500; }
.price { list-style: none; margin: 0; padding: 1.25rem 0 0; border-top: 1px solid var(--rule); display: grid; gap: 0.55rem; }
.price li { display: flex; justify-content: space-between; gap: 1rem; color: var(--text-soft); }
.price li span:last-child { font-variant-numeric: tabular-nums; color: var(--text); }
.price .price__total { padding-top: 0.85rem; margin-top: 0.3rem; border-top: 1px solid var(--rule); color: var(--text); font-weight: 500; }
.price .price__total span:last-child { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; }
.price .price__save span:last-child { color: var(--sage-text); }
.summary__note { font-size: var(--fs-small); color: var(--text-soft); margin: 0; }
.summary__empty { color: var(--text-soft); margin: 0; }

/* How it works */
.steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 3rem; counter-reset: s; }
.steps-3 li { list-style: none; border-top: 1px solid var(--rule); padding-top: 1.5rem; counter-increment: s; }
.steps-3 li::before { content: counter(s); display: block; font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 300; color: var(--accent-text); line-height: 1; margin-bottom: 1rem; }
.steps-3 h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.steps-3 p { color: var(--text-soft); }
@media (max-width: 56rem) { .steps-3 { grid-template-columns: 1fr; gap: 2rem; } }
ol.steps-3 { padding: 0; margin: 0; }

/* Confirmation */
.confirm { display: grid; gap: 1.25rem; padding: 2rem; border: 1px solid var(--rule-strong); border-radius: 4px; }
.confirm[hidden] { display: none; }
.confirm .ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.06em; }
