/* =====================================================================
   Synergy Realty — styles.css   ·   "Modern Editorial Luxury"
   Warm near-monochrome, high-contrast serif (Fraunces) + DM Sans,
   restrained brass accent, tasteful L2 motion. Photography carries color.
   ===================================================================== */

/* ---- Tokens --------------------------------------------------------- */
:root {
  --ink:        #1a1815;  --ink-rgb: 26, 24, 21;
  --ink-soft:   #4a453d;  --ink-soft-rgb: 74, 69, 61;
  --muted:      #8b8578;  --muted-rgb: 139, 133, 120;
  --paper:      #ffffff;  --paper-rgb: 255, 255, 255;
  --paper-warm: #f5f2ec;  --paper-warm-rgb: 245, 242, 236;
  --paper-deep: #ebe6dc;  --paper-deep-rgb: 235, 230, 220;
  --line:       #e4dfd5;  --line-rgb: 228, 223, 213;
  --accent:     #a17c46;  --accent-rgb: 161, 124, 70;
  --accent-ink: #866637;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(var(--ink-rgb), 0.04);
  --shadow-md: 0 18px 50px -24px rgba(var(--ink-rgb), 0.28);
  --shadow-lg: 0 40px 90px -40px rgba(var(--ink-rgb), 0.35);

  --header-h: clamp(64px, 8vw, 88px);
}

/* ---- Reset / base --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 400; margin: 0; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

/* ---- Typography scale ---------------------------------------------- */
.display, h1, h2 { font-family: var(--font-display); line-height: 1.04; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.9rem, 6.4vw, 5.25rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4.2vw, 3.15rem); }
h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 500; line-height: 1.14; letter-spacing: -0.01em; }
h4 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1.1rem;
}
.lede { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.6; color: var(--ink-soft); }

/* ---- Layout helpers ------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--warm { background: var(--paper-warm); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-narrow { max-width: 48ch; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.stack > * + * { margin-top: 1.25rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }

/* ---- Scroll progress bar ------------------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(var(--progress, 0)); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-ink));
  z-index: 200; pointer-events: none;
}

/* ---- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  padding: 0.95em 1.9em; border: 1px solid var(--ink); border-radius: 999px;
  color: var(--ink); background: transparent; cursor: pointer; will-change: transform;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.3s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0) scale(0.97); box-shadow: none; }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--light { border-color: rgba(255,255,255,0.85); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---- Skip link ------------------------------------------------------ */
.skip-link { position: fixed; top: 0; left: 50%; transform: translate(-50%, -120%); z-index: 300; background: var(--ink); color: #fff; padding: 0.7rem 1.2rem; border-radius: 0 0 6px 6px; text-decoration: none; font-size: 0.85rem; transition: transform 0.25s var(--ease); }
.skip-link:focus { transform: translate(-50%, 0); }

/* ---- Header --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(var(--paper-rgb), 0.9);
  backdrop-filter: saturate(150%) blur(10px); -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(var(--paper-rgb), 0.96); }
.header-inner {
  max-width: var(--maxw); margin-inline: auto; padding: 0.9rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  transition: padding 0.3s var(--ease);
}
.site-header.is-scrolled .header-inner { padding-block: 0.6rem; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { width: auto; height: clamp(40px, 4.6vw, 54px); transition: height 0.3s var(--ease); }
.site-header.is-scrolled .brand-logo { height: clamp(34px, 4vw, 44px); }
.site-nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.3rem); }
.site-nav a { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--ink); position: relative; padding: 0.3rem 0; transition: color 0.25s var(--ease); }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0; background: var(--accent); transition: width 0.35s var(--ease); }
.site-nav a:hover { color: var(--accent-ink); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { width: 100%; }
.site-nav a[aria-current="page"] { color: var(--accent-ink); }
.nav-cta { border: 1px solid var(--ink); border-radius: 999px; padding: 0.55rem 1.25rem !important; }
.nav-cta::after { display: none; }
.site-nav a.nav-cta:hover { background: var(--ink); color: #fff; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; height: 1.5px; width: 100%; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav { position: fixed; inset: 0 0 0 auto; width: min(80vw, 340px); flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0.5rem; padding: 6rem var(--gutter) 2rem; background: var(--paper); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform 0.4s var(--ease); overflow-y: auto; }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav a { font-size: 1.05rem; letter-spacing: 0.08em; padding: 0.6rem 0; width: 100%; }
  .nav-cta { margin-top: 0.75rem; }
  body.nav-open { overflow: hidden; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(var(--ink-rgb), 0.4); z-index: 90; opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease); }
  .nav-scrim.is-open { opacity: 1; visibility: visible; }
}

/* ---- Hero ----------------------------------------------------------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: kenburns 20s var(--ease-out) forwards; }
@keyframes kenburns { to { transform: scale(1); } }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,15,0.34) 0%, rgba(20,18,15,0.14) 42%, rgba(20,18,15,0.74) 100%); }
.hero-content { position: relative; z-index: 1; color: #fff; max-width: var(--maxw); margin-inline: auto; width: 100%; padding: 0 var(--gutter) clamp(3rem, 7vw, 6rem); }
.hero-content .eyebrow { color: rgba(255,255,255,0.85); }
.hero-content h1 { color: #fff; max-width: 15ch; }
.hero-sub { color: rgba(255,255,255,0.92); font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 46ch; margin-top: 1.25rem; }
.hero-content .btn { margin-top: 2rem; }

/* Hero load sequence */
.hero-content > *, .page-hero-content > * { opacity: 0; transform: translateY(22px); animation: heroIn 0.9s var(--ease) forwards; }
.hero-content > *:nth-child(1), .page-hero-content > *:nth-child(1) { animation-delay: 0.08s; }
.hero-content > *:nth-child(2), .page-hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3), .page-hero-content > *:nth-child(3) { animation-delay: 0.32s; }
.hero-content > *:nth-child(4), .page-hero-content > *:nth-child(4) { animation-delay: 0.44s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; transform: none; }
  .hero-content > *, .page-hero-content > * { opacity: 1; transform: none; animation: none; }
}

/* ---- Page header (interior pages) ---------------------------------- */
.page-hero { position: relative; min-height: clamp(340px, 48vh, 560px); display: flex; align-items: flex-end; overflow: hidden; }
.page-hero .hero-media img { filter: saturate(0.97); }
.page-hero-content { position: relative; z-index: 1; color: #fff; max-width: var(--maxw); margin-inline: auto; width: 100%; padding: 0 var(--gutter) clamp(2.25rem, 4vw, 3.5rem); }
.page-hero-content h1 { color: #fff; }
.page-hero-content .eyebrow { color: rgba(255,255,255,0.85); }

.page-head { padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 20ch; }

/* ---- Two-column editorial block ------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media { overflow: hidden; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.9s var(--ease); }
.split:hover .split-media img { transform: scale(1.04); }
.split-body h2 { margin-bottom: 1rem; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 2rem; } .split--reverse .split-media { order: 0; } }

/* ---- Full-bleed image band ----------------------------------------- */
.band { position: relative; height: clamp(300px, 44vw, 540px); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band-scrim { position: absolute; inset: 0; background: rgba(20,18,15,0.26); }

/* ---- Spotlight surface (cards / columns) --------------------------- */
.spotlight { position: relative; isolation: isolate; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--accent-rgb), 0.12), transparent 60%);
  transition: opacity 0.4s var(--ease); pointer-events: none;
}
.spotlight:hover::before { opacity: 1; }

/* ---- Value columns (Who we are) ------------------------------------ */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3.5vw, 3rem); }
.col { padding: clamp(1.5rem, 2.5vw, 2.25rem); border: 1px solid var(--line); border-radius: 14px; background: rgba(var(--paper-rgb), 0.5); transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.col:hover { border-color: rgba(var(--accent-rgb), 0.4); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.col h3 { margin-bottom: 0.9rem; }
.col .num { display: block; font-family: var(--font-display); font-size: 1.05rem; font-style: italic; color: var(--accent); letter-spacing: 0.02em; margin-bottom: 0.6rem; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---- Pull quote ----------------------------------------------------- */
.quote { text-align: center; max-width: 24ch; margin-inline: auto; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.24; color: var(--ink); letter-spacing: -0.01em; }
.quote-max { max-width: 30ch; }
.quote cite { display: block; margin-top: 1.5rem; font-family: var(--font-sans); font-style: normal; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* ---- Dark editorial section ---------------------------------------- */
.section--dark { position: relative; background: var(--ink); color: rgba(255,255,255,0.72); overflow: hidden; }
.section--dark::after { content: ""; position: absolute; inset: 0; background: radial-gradient(1000px circle at 50% -10%, rgba(var(--accent-rgb), 0.12), transparent 60%); pointer-events: none; }
.section--dark h2, .section--dark blockquote { color: #fff; }
.section--dark .eyebrow { color: var(--accent); }
.section--dark .quote cite { color: rgba(255,255,255,0.55); }

/* ---- Checklist (sellers / buyers) ---------------------------------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.checklist li { position: relative; padding: 0.85rem 0 0.85rem 2.25rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 14px; height: 8px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.checklist--two { grid-template-columns: 1fr 1fr; column-gap: clamp(1.5rem, 4vw, 3.5rem); }
@media (max-width: 720px) { .checklist--two { grid-template-columns: 1fr; } }

/* ---- Leadership feature -------------------------------------------- */
.leader { display: grid; grid-template-columns: 380px 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.leader + .leader { margin-top: clamp(3rem, 6vw, 5.5rem); }
.leader--reverse { grid-template-columns: 1fr 380px; }
.leader--reverse .leader-photo { order: 2; }
.leader-photo { overflow: hidden; border-radius: 14px; }
.leader-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.9s var(--ease); }
.leader:hover .leader-photo img { transform: scale(1.04); }
.leader h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 0.25rem; }
.leader .role { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem; }
.leader .phone { display: inline-block; margin-top: 1rem; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.leader .phone:hover { border-color: var(--accent); }
@media (max-width: 760px) { .leader { grid-template-columns: 1fr; gap: 1.75rem; } .leader--reverse .leader-photo { order: 0; } .leader-photo img { aspect-ratio: 4 / 3; } }

/* ---- Team grid ------------------------------------------------------ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 880px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }
.agent { display: flex; flex-direction: column; padding: 0.5rem; border-radius: 14px; transition: background 0.4s var(--ease); }
.agent:hover { background: rgba(var(--paper-rgb), 0.6); }
.agent-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-deep); border-radius: 10px; }
.agent-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.agent:hover .agent-photo img { transform: scale(1.05); }
.agent-initials { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 3rem; font-style: italic; color: var(--muted); background: var(--paper-deep); }
.agent-body { padding: 1rem 0.5rem 0.25rem; }
.agent-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; }
.agent-title { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }
.agent-meta { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; align-items: center; font-size: 0.9rem; }
.agent-meta a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: border-color 0.25s var(--ease), color 0.25s var(--ease); }
.agent-meta a:hover { color: var(--accent-ink); border-color: var(--accent); }

/* ---- Join / CTA strip ---------------------------------------------- */
.cta-strip { position: relative; background: var(--ink); color: #fff; text-align: center; overflow: hidden; }
.cta-strip::after { content: ""; position: absolute; inset: 0; background: radial-gradient(800px circle at 50% 120%, rgba(var(--accent-rgb), 0.16), transparent 60%); pointer-events: none; }
.cta-strip > * { position: relative; z-index: 1; }
.cta-strip h2 { color: #fff; margin-bottom: 1rem; }
.cta-strip p { color: rgba(255,255,255,0.8); margin-inline: auto; }

/* ---- Contact -------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
@media (max-width: 840px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.contact-info dl { margin: 0; display: grid; gap: 1.75rem; }
.contact-info dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem; }
.contact-info dd { margin: 0; font-size: 1.05rem; color: var(--ink); font-style: normal; }
.contact-info dd a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-info dd a:hover { border-color: var(--accent); }

/* ---- Form ----------------------------------------------------------- */
.form-field { margin-bottom: 1.4rem; }
.form-field label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.5rem; }
.form-field input, .form-field select, .form-field textarea { width: 100%; font-family: var(--font-sans); font-size: 1rem; color: var(--ink); padding: 0.85rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; }

/* ---- Blog ----------------------------------------------------------- */
.post-list { display: grid; gap: 0; }
.post-item { display: grid; grid-template-columns: 180px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: baseline; padding: clamp(2rem, 4vw, 3rem) 0; border-bottom: 1px solid var(--line); }
.post-item:first-child { border-top: 1px solid var(--line); }
.post-meta { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.post-body h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 0.75rem; }
.post-body h2 a { text-decoration: none; transition: color 0.25s var(--ease); }
.post-body h2 a:hover { color: var(--accent-ink); }
.post-more { display: inline-block; margin-top: 1rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; transition: color 0.25s var(--ease), border-color 0.25s var(--ease); }
.post-more:hover { color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 640px) { .post-item { grid-template-columns: 1fr; gap: 0.75rem; } }

/* ---- Article body (blog posts) ------------------------------------- */
.article-body { font-size: 1.08rem; }
.article-body h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; margin: 2.25rem 0 0.85rem; }
.article-body p { margin-bottom: 1.2em; }
.article-body ul, .article-body ol { margin: 1.25rem 0 1.75rem; }
.article-body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body a:hover { color: var(--ink); }
.article-body .checklist li { padding-left: 2.25rem; }

/* ---- Footer --------------------------------------------------------- */
.site-footer { background: var(--paper-warm); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 0; }
.footer-inner { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.footer-name { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; color: var(--ink); margin-bottom: 1rem; letter-spacing: -0.01em; }
.footer-eho { height: 46px; width: auto; }
.footer-col-title { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.site-footer address, .footer-contact p { font-style: normal; color: var(--ink-soft); line-height: 1.8; margin: 0; }
.footer-contact a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.25s var(--ease); }
.footer-contact a:hover { border-color: var(--accent); }
.footer-links { display: grid; gap: 0.6rem; }
.footer-links a { font-size: 0.92rem; color: var(--ink-soft); text-decoration: none; transition: color 0.25s var(--ease); }
.footer-links a:hover { color: var(--accent-ink); }
.footer-nar img { height: 64px; width: auto; }
.footer-legal { max-width: var(--maxw); margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; padding: 1.5rem var(--gutter); border-top: 1px solid var(--line); }
.footer-legal p { font-size: 0.8rem; color: var(--muted); margin: 0; }
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-nar { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---- Focus visibility ---------------------------------------------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
a:focus:not(:focus-visible) { outline: none; }

/* ---- Reveal on scroll (only hidden when JS is active) -------------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* ---- Photo gallery + lightbox -------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.6rem, 1.4vw, 1.1rem); }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery-item { display: block; padding: 0; margin: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--paper-deep); cursor: zoom-in; aspect-ratio: 3 / 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.05); }

.lightbox { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem); background: rgba(20,18,15,0.94); opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease); }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-img { max-width: min(1100px, 94vw); max-height: 86vh; width: auto; height: auto; object-fit: contain; box-shadow: var(--shadow-lg); border-radius: 4px; }
.lightbox-btn { position: absolute; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.28); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; line-height: 1; transition: background 0.2s var(--ease); }
.lightbox-btn:hover { background: rgba(255,255,255,0.2); }
.lightbox-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox-prev { left: clamp(0.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(0.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: clamp(1rem, 3vw, 2rem); left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-size: 0.8rem; letter-spacing: 0.1em; }
@media (max-width: 600px) { .lightbox-prev { left: 0.4rem; } .lightbox-next { right: 0.4rem; } .lightbox-btn { width: 42px; height: 42px; font-size: 1.3rem; } }
