/* Karen Brooks Homes — modern, warm, editorial */
:root {
  --bg: #faf7f2;
  --bg-alt: #f2ece1;
  --surface: #ffffff;
  --ink: #1b1a17;
  --ink-soft: #524d44;
  --ink-mute: #857f74;
  --line: #e6dfd1;
  --brand: #8b6f47;     /* warm bronze */
  --brand-deep: #5c4a2f;
  --accent: #2d4a3e;    /* forest green */
  --accent-soft: #d7e2d6;
  --gold: #c9a961;
  --danger: #b04a3a;
  --shadow-sm: 0 1px 2px rgba(28,22,10,.06), 0 2px 8px rgba(28,22,10,.04);
  --shadow-md: 0 10px 30px -12px rgba(28,22,10,.22), 0 4px 12px rgba(28,22,10,.06);
  --shadow-lg: 0 24px 60px -20px rgba(28,22,10,.28);
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --max: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14120e;
    --bg-alt: #1c1913;
    --surface: #1f1c15;
    --ink: #f4efe4;
    --ink-soft: #cfc7b5;
    --ink-mute: #948b78;
    --line: #2e2a20;
    --brand: #c9a06a;
    --brand-deep: #a37f4a;
    --accent: #86ac96;
    --accent-soft: #263a31;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 10px 30px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; margin: 0 0 .5em; line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; color: var(--ink-soft); }
em { font-style: italic; color: var(--brand); }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 1rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem;
  font-weight: 500; font-size: .95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  will-change: transform;
}
.btn-sm { padding: .6rem 1.1rem; font-size: .85rem; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; gap: 24px;
}
/* Karen Brooks brand — rendered in HTML/CSS with three typefaces:
   • KB monogram → Bodoni Moda 800 (high-contrast Didot/Bodoni class)
   • "Karen Brooks" → Allura (closest free web match to Amsterdam Signature Four)
   • REALTOR® → Montserrat 300 with wide tracking                             */
.brand {
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none; line-height: 1;
}
.brand-mark {
  font-family: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: -.04em;
  display: inline-block;
  background: linear-gradient(135deg, #f4e4b8 0%, #d9bd7c 35%, #b8925a 70%, #8a6a3f 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  /* subtle metallic sheen via text-shadow */
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.08));
}
.brand-word {
  display: inline-flex; flex-direction: column; gap: 2px;
  padding-left: 12px;
  border-left: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
}
.brand-script {
  font-family: "Allura", "Pinyon Script", "Great Vibes", cursive;
  font-size: 1.85rem;
  line-height: .9;
  background: linear-gradient(135deg, #f4e4b8 0%, #d9bd7c 40%, #b8925a 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.brand-realtor {
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 300;
  font-size: .62rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 4px;
  border-top: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
  margin-top: 2px;
}
@media (max-width: 620px) {
  .brand-mark { font-size: 2rem; }
  .brand-script { font-size: 1.4rem; }
  .brand-realtor { font-size: .55rem; letter-spacing: .28em; }
}
@media (max-width: 420px) {
  .brand-word { display: none; }
}
/* Hero-over-video (dark) variant */
.hero.has-video ~ * .brand-realtor { color: var(--ink-soft); }
.site-header.is-scrolled .brand-mark { filter: none; }
.nav { display: flex; gap: 28px; }
.nav-link {
  font-size: .93rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--brand); border-radius: 2px;
}
.nav-cta { display: inline-flex; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s var(--ease); }

@media (max-width: 860px) {
  .nav {
    position: fixed; top: 76px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 24px; gap: 18px;
    transform: translateY(-120%); transition: transform .35s var(--ease);
  }
  .nav.is-open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 10vw, 120px);
  min-height: 88vh; display: flex; align-items: center;
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero-video.is-ready { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(15,12,8,.15) 0%, rgba(15,12,8,.45) 55%, rgba(15,12,8,.75) 100%),
    linear-gradient(90deg, rgba(15,12,8,.45) 0%, rgba(15,12,8,.05) 55%);
  pointer-events: none;
}
.hero-gradient {
  position: absolute; inset: -10%;
  background:
    radial-gradient(60% 50% at 80% 20%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
    radial-gradient(50% 40% at 15% 80%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-alt));
  animation: driftBg 22s ease-in-out infinite alternate;
  z-index: 0;
}
/* When the video hero is active, the text sits on dark footage, so flip type colors */
.hero.has-video .hero-title,
.hero.has-video .hero-stats dd { color: #fff; }
.hero.has-video .hero-title em { color: var(--gold); }
.hero.has-video .hero-sub { color: rgba(255,255,255,.88); }
.hero.has-video .eyebrow { color: var(--gold); }
.hero.has-video .hero-stats dt { color: rgba(255,255,255,.72); }
.hero.has-video .hero-stats > div { border-color: var(--gold); }
.hero.has-video .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.hero.has-video .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero.has-video .btn-primary { background: var(--gold); color: var(--brand-deep); }
.hero.has-video .btn-primary:hover { background: #fff; color: var(--ink); }
.hero.has-video .hero-scroll { border-color: rgba(255,255,255,.7); }
.hero.has-video .hero-scroll span { background: #fff; }
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
@keyframes driftBg {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-2%, 1%, 0) scale(1.04); }
}
.hero-inner { position: relative; z-index: 1; }
.hero-title { max-width: 18ch; margin-bottom: 1rem; }
.hero-title em { color: var(--brand); }
.hero-sub { max-width: 52ch; font-size: 1.15rem; color: var(--ink-soft); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 32px; margin: 4rem 0 0; padding: 0;
  max-width: 640px;
}
.hero-stats > div { border-left: 2px solid var(--brand); padding-left: 14px; }
.hero-stats dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.hero-stats dd { margin: .3rem 0 0; font-family: var(--serif); font-size: 2.2rem; color: var(--ink); }

.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 1px solid var(--ink-mute); border-radius: 12px;
  display: flex; justify-content: center; padding-top: 8px;
}
.hero-scroll span { width: 2px; height: 8px; background: var(--ink-soft); border-radius: 2px; animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0%,100%{transform:translateY(0);opacity:.4} 50%{transform:translateY(10px);opacity:1} }

/* Sections */
.section { padding: clamp(70px, 10vw, 130px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.section-title { margin: 0 0 .6rem; }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; }
.section-foot { text-align: center; margin-top: 3rem; }

/* Listings */
.listings-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.listing-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column;
}
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.listing-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: linear-gradient(135deg, var(--bg-alt), var(--line));
}
.listing-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.listing-card:hover .listing-media img { transform: scale(1.06); }
.listing-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--surface); color: var(--ink);
  padding: 6px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase;
}
.listing-badge.is-new { background: var(--accent); color: #fff; }
.listing-badge.is-pending { background: var(--gold); color: var(--brand-deep); }
.listing-badge.is-sold { background: var(--danger); color: #fff; }
.listing-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.listing-price { font-family: var(--serif); font-size: 1.8rem; color: var(--ink); }
.listing-address { color: var(--ink-soft); font-size: .95rem; }
.listing-meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  padding-top: 12px; margin-top: auto; border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--ink-mute);
}
.listing-meta strong { color: var(--ink); font-weight: 600; }

.skeleton {
  background: linear-gradient(90deg, var(--bg-alt) 0%, var(--line) 50%, var(--bg-alt) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  min-height: 400px; border-radius: var(--radius);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.split-media { position: relative; }
.split-photo {
  aspect-ratio: 4/5; border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 60% at 40% 30%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 70%),
    linear-gradient(135deg, var(--accent-soft), var(--bg-alt));
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.photo-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: var(--surface); padding: 10px 18px; border-radius: 999px;
  font-family: var(--serif); font-size: 1.1rem;
}
.check-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 10px; }
.check-list li {
  padding-left: 30px; position: relative; color: var(--ink-soft);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 8px 2px; background-position: center; background-repeat: no-repeat;
}
.check-list li::after {
  content: ""; position: absolute; left: 5px; top: 12px;
  width: 8px; height: 4px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Reviews grid (used on /reviews.html) */
.reviews-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.review {
  background: var(--surface); padding: 32px 28px;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .3s var(--ease);
}
.review:hover { transform: translateY(-3px); }
.review-stars { color: var(--gold); font-size: 1.1rem; letter-spacing: .1em; }
.review-quote { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--ink); margin: 0; }
.review-author { color: var(--ink-mute); font-size: .9rem; margin-top: auto; }
.review-author strong { color: var(--ink); font-weight: 600; }

/* Reviews carousel (used on / homepage) */
.review-carousel {
  position: relative;
  max-width: 820px; margin: 0 auto;
  padding: 0;
}
.review-track {
  position: relative;
  min-height: 340px;
}
.review-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 20px;
  align-items: center; text-align: center;
  padding: 40px 20px;
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s linear .6s;
  pointer-events: none;
}
.review-slide.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s;
  pointer-events: auto;
}
.review-slide .review-stars { color: var(--gold); font-size: 1.15rem; letter-spacing: .15em; }
.review-slide .review-quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.55;
  color: var(--ink); margin: 0;
  max-width: 62ch;
  position: relative;
}
.review-slide .review-quote::before,
.review-slide .review-quote::after {
  content: '"'; font-family: var(--serif); color: var(--brand);
  font-size: 3rem; line-height: 0; vertical-align: -.4em;
  opacity: .35;
}
.review-slide .review-quote::before { margin-right: .2em; }
.review-slide .review-quote::after { margin-left: .1em; }
.review-slide .review-author {
  font-family: var(--sans); font-size: .8rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--brand);
  font-weight: 600;
}

.carousel-nav {
  display: flex; justify-content: center; align-items: center; gap: 18px;
  margin-top: 24px;
}
.carousel-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: .25s var(--ease);
}
.carousel-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); border: 0; padding: 0; cursor: pointer;
  transition: .25s var(--ease);
}
.carousel-dot.is-active { width: 24px; border-radius: 4px; background: var(--brand); }
.carousel-dot:hover { background: var(--ink-mute); }
.carousel-dot.is-active:hover { background: var(--brand); }

/* CTA */
.section-cta { background: var(--ink); color: var(--bg); }
.section-cta h2 { color: var(--bg); }
.section-cta p { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.section-cta .btn-primary { background: var(--brand); color: var(--bg); }
.section-cta .btn-primary:hover { background: var(--gold); color: var(--ink); }
.section-cta .btn-ghost { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 40%, transparent); }
.section-cta .btn-ghost:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.cta-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-inner .hero-actions { justify-content: center; }

/* Footer */
.site-footer { background: var(--bg-alt); padding: 60px 0 24px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand { display: flex; gap: 14px; }
.footer-brand strong { display: block; font-family: var(--serif); font-size: 1.2rem; margin-bottom: 6px; }
.footer-brand p { font-size: .88rem; color: var(--ink-mute); margin: 0; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: var(--ink-soft); font-size: .9rem; }
.footer-nav a:hover { color: var(--ink); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact a { color: var(--ink-soft); font-size: .9rem; }
.footer-fine {
  padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .8rem; color: var(--ink-mute);
}
.footer-fine p { margin: 0; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-gradient { animation: none; }
  .listing-card:hover .listing-media img { transform: none; }
}

/* Pages */
.page-hero { padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 6vw, 60px); text-align: center; background: var(--bg-alt); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.page-hero p { max-width: 60ch; margin: 0 auto; color: var(--ink-soft); }

.filters {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 3rem;
}
.filter-btn {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-soft); font-size: .9rem;
  transition: .2s var(--ease);
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Contact form */
.form-wrap { max-width: 560px; margin: 0 auto; }
.form-row { display: grid; gap: 6px; margin-bottom: 18px; }
.form-row label { font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
.form-row input, .form-row textarea, .form-row select {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; background: var(--surface); color: var(--ink);
  transition: border-color .2s var(--ease);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--brand);
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-status { padding: 12px 16px; border-radius: var(--radius-sm); margin-top: 16px; display: none; }
.form-status.is-success { display: block; background: var(--accent-soft); color: var(--accent); }
.form-status.is-error { display: block; background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }

/* Detail page */
.listing-detail { padding: clamp(40px, 8vw, 80px) 0; }
.detail-hero { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; margin-bottom: 40px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; }
@media (max-width: 720px) { .detail-hero { grid-template-columns: 1fr; aspect-ratio: auto; } .detail-hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; } }
.detail-body { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; }
@media (max-width: 800px) { .detail-body { grid-template-columns: 1fr; } }
.detail-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; margin: 24px 0; padding: 20px; background: var(--bg-alt); border-radius: var(--radius); }
.detail-facts div { text-align: center; }
.detail-facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); }
.detail-facts dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.4rem; }
.detail-side { position: sticky; top: 100px; height: fit-content; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

/* Credentials strip */
.creds {
  padding: clamp(50px, 7vw, 80px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.creds-head { text-align: center; margin-bottom: 2.5rem; }
.creds-head p { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); margin: 0; }
.creds-row {
  display: grid; gap: 32px 40px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: center; justify-items: center;
}
.cred {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--ink-soft); text-align: center;
  transition: transform .3s var(--ease);
}
.cred:hover { transform: translateY(-3px); }
.cred img, .cred svg {
  width: 84px; height: 84px; object-fit: contain;
  filter: grayscale(15%);
  transition: filter .3s var(--ease);
}
.cred:hover img, .cred:hover svg { filter: none; }
.cred-label { font-size: .78rem; letter-spacing: .04em; color: var(--ink-mute); max-width: 140px; line-height: 1.35; }
.cred-label strong { display: block; color: var(--ink); font-weight: 600; font-size: .85rem; margin-bottom: 2px; }

/* NAOSA feature card */
.naosa {
  background:
    radial-gradient(70% 60% at 80% 20%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%),
    linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.naosa::before {
  content: "";
  position: absolute; inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><path d="M0 30h60M30 0v60" stroke="%23ffffff" stroke-opacity="0.04" stroke-width="1"/></svg>');
  pointer-events: none;
}
.naosa > * { position: relative; }
.naosa-mark { width: 120px; height: 120px; }
.naosa-mark svg, .naosa-mark img { width: 100%; height: 100%; }
.naosa-body h2 { color: #fff; margin: 0 0 .6rem; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.naosa-body p { color: color-mix(in srgb, #fff 85%, transparent); margin: 0; max-width: 58ch; }
.naosa-cta { display: flex; flex-direction: column; gap: 10px; }
.naosa .btn-primary { background: var(--gold); color: var(--brand-deep); }
.naosa .btn-primary:hover { background: #fff; color: var(--accent); }
.naosa .btn-ghost { color: #fff; border-color: color-mix(in srgb, #fff 40%, transparent); }
.naosa .btn-ghost:hover { background: #fff; color: var(--accent); border-color: #fff; }
@media (max-width: 780px) {
  .naosa { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 40px 28px; }
  .naosa-body p { margin: 0 auto; }
}
