/* ==========================================================================
   Calgary Golf Homes — Jonathan Ashkin
   ========================================================================== */

:root {
  --ink: #0e1c15;
  --green-950: #0b1a12;
  --green-900: #122a1d;
  --green-800: #18382670;
  --green-700: #1f4a33;
  --green-600: #2b5e41;
  --fairway: #4a8358;
  --fairway-light: #7fae7a;
  --sand: #e8dfcb;
  --sand-dark: #d6c8a8;
  --cream: #f7f3ea;
  --paper: #fbf9f4;
  --brass: #b48a43;
  --brass-light: #d4b072;
  --flag: #c4452c;
  --muted: #5c6b62;
  --line: #ddd5c3;
  --line-dark: rgba(255, 255, 255, 0.14);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(14, 28, 21, 0.06), 0 8px 28px rgba(14, 28, 21, 0.08);
  --shadow-lg: 0 2px 4px rgba(14, 28, 21, 0.08), 0 24px 60px rgba(14, 28, 21, 0.18);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  font-variation-settings: "SOFT" 50, "opsz" 72;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1em; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.on-dark .eyebrow { color: var(--brass-light); }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 640px; }
.on-dark .lede { color: rgba(247, 243, 234, 0.78); }
.italic { font-style: italic; font-family: var(--font-display); }
.brass { color: var(--brass); }
.on-dark .brass { color: var(--brass-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brass); color: var(--green-950); }
.btn-primary:hover { background: var(--brass-light); }
.btn-dark { background: var(--green-900); color: var(--cream); }
.btn-dark:hover { background: var(--green-700); }
.btn-ghost { border-color: rgba(247, 243, 234, 0.35); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(247, 243, 234, 0.06); }
.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }
.btn svg { width: 16px; height: 16px; }

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.text-link:hover { color: var(--brass); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s;
  padding: 18px 0;
  color: var(--cream);
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(11, 26, 18, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-dark);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-family: var(--font-display); font-weight: 500; font-size: 1.22rem; letter-spacing: 0.01em; }
.logo-text span { font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.7; margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: 0.92rem; font-weight: 500; opacity: 0.86; transition: opacity 0.2s; position: relative; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--brass);
}
.nav .btn { opacity: 1; padding: 10px 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  color: inherit;
  border-radius: 10px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 86vw);
    background: var(--green-950);
    flex-direction: column;
    align-items: flex-start;
    padding: 96px 32px 32px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
  }
  .nav a { font-size: 1.15rem; }
  .nav-open .nav { transform: none; }
  .nav-toggle { position: relative; z-index: 2; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  background: var(--green-950);
  overflow: hidden;
  padding: 140px 0 72px;
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art svg { width: 100%; height: 100%; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,26,18,0.86) 0%, rgba(11,26,18,0.55) 45%, rgba(11,26,18,0) 75%),
              linear-gradient(0deg, rgba(11,26,18,0.7) 0%, rgba(11,26,18,0) 40%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { max-width: 820px; margin-bottom: 0.4em; }
.hero h1 em { font-style: italic; color: var(--brass-light); }
.hero .lede { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.season-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
  padding: 10px 18px 10px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(11, 26, 18, 0.5);
  backdrop-filter: blur(6px);
  font-size: 0.88rem;
}
.season-chip .dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--cream);
  background-image: radial-gradient(circle at 30% 30%, #fff, #dcd6c8 70%);
  box-shadow: inset -3px -3px 6px rgba(0,0,0,0.12);
  position: relative;
}
.season-chip .dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background-image: radial-gradient(rgba(0,0,0,0.13) 1px, transparent 1.5px);
  background-size: 5px 5px;
}
.season-chip strong { color: var(--brass-light); font-weight: 600; }

.page-hero {
  position: relative;
  background: var(--green-950);
  color: var(--cream);
  padding: 170px 0 90px;
  overflow: hidden;
}
.page-hero .contours { position: absolute; inset: 0; opacity: 0.22; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { max-width: 860px; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.bg-cream { background: var(--cream); }
.bg-sand { background: var(--sand); }
.bg-dark { background: var(--green-950); color: var(--cream); }
.bg-green { background: var(--green-900); color: var(--cream); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 52px; flex-wrap: wrap; }
.section-head > div { max-width: 680px; }
.section-head h2 { margin-bottom: 0.3em; }
.section-head p { color: var(--muted); margin: 0; }
.on-dark .section-head p { color: rgba(247,243,234,0.72); }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 34px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: var(--green-700); }
.stat .label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Intro split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-900);
  box-shadow: var(--shadow-lg);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait .monogram {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 6rem; color: var(--brass-light);
}
.portrait-tag {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  background: rgba(11, 26, 18, 0.86);
  backdrop-filter: blur(6px);
  color: var(--cream);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 0.85rem;
}
.portrait-tag strong { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; display: block; }
.portrait-wrap { position: relative; }
.portrait-wrap .ball-deco {
  position: absolute; width: 120px; height: 120px; right: -30px; top: -30px; z-index: 2;
}

blockquote.pull {
  margin: 28px 0;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--brass);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.45;
  font-style: italic;
}
blockquote.pull cite { display: block; margin-top: 10px; font-family: var(--font-body); font-style: normal; font-size: 0.82rem; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- Scorecard (approach) ---------- */
.scorecard {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.scorecard-head, .scorecard-row {
  display: grid;
  grid-template-columns: 74px 1fr 1.6fr 90px;
  align-items: stretch;
}
.scorecard-head {
  background: var(--green-700);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.scorecard-head > div, .scorecard-row > div { padding: 16px 20px; border-right: 1px solid var(--line-dark); }
.scorecard-head > div:last-child, .scorecard-row > div:last-child { border-right: 0; text-align: center; }
.scorecard-row { border-top: 1px solid var(--line-dark); transition: background 0.2s; }
.scorecard-row:hover { background: rgba(255,255,255,0.035); }
.scorecard-row .hole { font-family: var(--font-display); font-size: 2rem; color: var(--brass-light); line-height: 1; display: flex; align-items: center; justify-content: center; }
.scorecard-row h3 { font-size: 1.25rem; margin: 0 0 4px; }
.scorecard-row .golf { font-size: 0.82rem; color: rgba(247,243,234,0.6); }
.scorecard-row p { margin: 0; color: rgba(247,243,234,0.82); font-size: 0.97rem; }
.scorecard-row .par { display: flex; align-items: center; justify-content: center; }
.par-badge {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--brass-light);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.2rem; color: var(--brass-light);
}
.par-badge.birdie { box-shadow: 0 0 0 4px var(--green-950), 0 0 0 5px var(--brass-light); }
@media (max-width: 760px) {
  .scorecard-head { display: none; }
  .scorecard-row { grid-template-columns: 56px 1fr; }
  .scorecard-row > div { border-right: 0; padding: 14px 16px; }
  .scorecard-row .hole { grid-row: span 2; font-size: 1.6rem; border-right: 1px solid var(--line-dark); }
  .scorecard-row .par { display: none; }
  .scorecard-row > div:nth-child(3) { padding-top: 0; }
}

/* ---------- Community cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.community-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  text-align: left;
  border: 0;
  padding: 0;
  color: inherit;
}
.community-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.community-card:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.card-art { aspect-ratio: 16 / 10; position: relative; overflow: hidden; }
.card-art svg { width: 100%; height: 100%; }
.card-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(11,26,18,0.78); color: var(--cream);
  backdrop-filter: blur(4px);
}
.badge.brass { background: var(--brass); color: var(--green-950); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-area { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin-bottom: 6px; }
.card-body h3 { margin-bottom: 6px; }
.card-course { font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; align-items: flex-start; }
.card-course svg { width: 14px; height: 14px; flex: none; margin-top: 5px; color: var(--fairway); }
.card-body p { font-size: 0.95rem; color: #34433a; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.85rem; }
.price-tier { font-family: var(--font-display); letter-spacing: 0.1em; color: var(--green-700); }
.price-tier span { opacity: 0.25; }
.card-cta { font-weight: 600; color: var(--green-700); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Matcher ---------- */
.matcher {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .matcher { grid-template-columns: 1fr; } }
.matcher-controls { padding: clamp(28px, 4vw, 48px); border-right: 1px solid var(--line); }
@media (max-width: 900px) { .matcher-controls { border-right: 0; border-bottom: 1px solid var(--line); } }
.matcher-results { padding: clamp(28px, 4vw, 48px); background: var(--cream); }
.priority { margin-bottom: 22px; }
.priority-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; gap: 12px; }
.priority label { font-weight: 600; font-size: 0.95rem; }
.priority .hint { font-size: 0.8rem; color: var(--muted); }
.priority-level { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); font-weight: 600; min-width: 84px; text-align: right; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--fairway) var(--fill, 33%), var(--line) var(--fill, 33%));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #e6e0d2 75%);
  border: 1px solid #c9c1ae;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #e6e0d2 75%);
  border: 1px solid #c9c1ae;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: grab;
}
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--brass); outline-offset: 2px; }

.toggle { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; cursor: pointer; margin-top: 8px; }
.toggle input { width: 18px; height: 18px; accent-color: var(--green-700); }

.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.result {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center;
  background: #fff; border-radius: 12px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: 1px solid transparent; cursor: pointer; transition: border-color .2s, transform .2s;
  width: 100%; text-align: left; color: inherit;
}
.result:hover { border-color: var(--brass); transform: translateX(3px); }
.result .rank { font-family: var(--font-display); font-size: 1.6rem; color: var(--brass); text-align: center; }
.result h4 { font-size: 1.15rem; margin: 0 0 2px; }
.result .sub { font-size: 0.82rem; color: var(--muted); }
.match { text-align: right; }
.match strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--green-700); display: block; line-height: 1; }
.match span { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.result-note { font-size: 0.85rem; color: var(--muted); margin-top: 20px; }

/* ---------- Comparison table ---------- */
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 0.95rem; }
.compare th, .compare td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--green-900); color: var(--cream); font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; }
.compare thead th small { display: block; font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-light); margin-top: 4px; }
.compare tbody th { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; width: 150px; background: var(--cream); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.table-scroll .compare { min-width: 760px; }

/* ---------- Map ---------- */
.map-wrap {
  position: relative;
  background: var(--green-950);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.map-wrap svg { width: 100%; height: auto; }
.map-pin { cursor: pointer; }
.map-pin .pin-ring { transition: r 0.2s, opacity 0.2s; }
.map-pin:hover .pin-ring, .map-pin:focus .pin-ring, .map-pin.active .pin-ring { r: 16; opacity: 0.35; }
.map-pin text { font-family: var(--font-body); font-size: 19px; fill: var(--cream); paint-order: stroke; stroke: var(--green-950); stroke-width: 4px; font-weight: 500; pointer-events: none; }
.map-pin.dim { opacity: 0.22; }
.map-pin:focus { outline: none; }
.map-legend {
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
  font-size: 0.78rem; color: rgba(247,243,234,0.8);
  padding: 12px 18px; border-top: 1px solid var(--line-dark); background: #0b1a12;
}
.map-legend em { margin-left: auto; opacity: 0.55; font-style: normal; }
.map-split { grid-template-columns: 0.8fr 1.4fr; }
@media (max-width: 880px) { .map-split { grid-template-columns: 1fr; } }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; width: 90px; flex: none; }
@media (max-width: 640px) { .filter-label { width: 100%; } }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  color: var(--ink);
  transition: all 0.2s;
}
.chip:hover { border-color: var(--green-700); }
.chip[aria-pressed="true"] { background: var(--green-900); border-color: var(--green-900); color: var(--cream); }
.search-input {
  flex: 1; min-width: 220px;
  border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; font: inherit; font-size: 0.95rem; background: #fff;
}
.search-input:focus { outline: 2px solid var(--brass); outline-offset: 1px; }
.results-count { font-size: 0.9rem; color: var(--muted); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); grid-column: 1 / -1; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(8, 18, 12, 0.7);
  backdrop-filter: blur(4px);
}
.modal.open { display: flex; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-panel {
  background: var(--paper);
  border-radius: var(--radius);
  max-width: 860px; width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: rise .25s ease;
}
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(11,26,18,0.8); color: var(--cream); font-size: 1.4rem; line-height: 1;
}
.modal-art { aspect-ratio: 21 / 8; }
.modal-art svg { width: 100%; height: 100%; }
.modal-body { padding: clamp(24px, 4vw, 44px); }
.modal-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; margin-top: 20px; }
@media (max-width: 720px) { .modal-grid { grid-template-columns: 1fr; } }
.fact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.fact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.fact-list li span:first-child { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; padding-top: 2px; }
.fact-list li span:last-child { text-align: right; }
.take {
  background: var(--green-900); color: var(--cream);
  border-radius: 12px; padding: 22px 24px; margin: 22px 0;
  display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start;
}
.take img, .take .avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--green-700); }
.take .avatar { display: grid; place-items: center; font-family: var(--font-display); color: var(--brass-light); }
.take strong { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 6px; }
.take p { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1.08rem; line-height: 1.5; }
.score-bars { display: grid; gap: 10px; }
.score-bar { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; font-size: 0.82rem; color: var(--muted); }
.score-bar .track { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.score-bar .fill { height: 100%; background: var(--fairway); border-radius: 999px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-size: 0.75rem; padding: 4px 10px; border-radius: 999px; background: var(--sand); color: var(--green-900); }

/* ---------- Journal ---------- */
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 1000px) { .journal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .journal-grid { grid-template-columns: 1fr; } }
.post {
  display: flex; flex-direction: column;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-art { aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.post-art svg { width: 100%; height: 100%; }
.post-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.post-cat { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--brass); margin-bottom: 8px; }
.post h3 { font-size: 1.35rem; margin-bottom: 10px; }
.post p { font-size: 0.93rem; color: var(--muted); flex: 1; }
.post-meta { font-size: 0.8rem; color: var(--muted); display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; }
.post.soon { cursor: default; }
.post.soon:hover { transform: none; box-shadow: var(--shadow); }
.soon-flag { position: absolute; top: 14px; right: 14px; }

.post-featured {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
  background: var(--green-900); color: var(--cream);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; margin-bottom: 40px;
  box-shadow: var(--shadow-lg);
}
.post-featured .post-art { aspect-ratio: auto; min-height: 320px; }
.post-featured .post-body { padding: clamp(28px, 4vw, 52px); justify-content: center; }
.post-featured h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.post-featured p { color: rgba(247,243,234,0.75); flex: 0; }
@media (max-width: 860px) { .post-featured { grid-template-columns: 1fr; } .post-featured .post-art { min-height: 220px; } }

/* ---------- Article ---------- */
.article { font-size: 1.08rem; }
.article h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 2em; }
.article h3 { margin-top: 1.6em; }
.article p, .article li { color: #29372f; }
.article ul, .article ol { padding-left: 1.2em; }
.article li { margin-bottom: 0.5em; }
.article-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.88rem; color: rgba(247,243,234,0.7); margin-top: 24px; align-items: center; }
.article-meta img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; }
.author { display: flex; align-items: center; gap: 12px; }
.hole-step {
  display: grid; grid-template-columns: 72px 1fr; gap: 24px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.hole-step:last-of-type { border-bottom: 1px solid var(--line); }
.hole-step .hole-no {
  font-family: var(--font-display);
  text-align: center;
}
.hole-step .hole-no small { display: block; font-family: var(--font-body); font-size: 0.65rem; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }
.hole-step .hole-no span { font-size: 2.6rem; color: var(--brass); line-height: 1; }
.hole-step h3 { margin-top: 0; }
.hole-step p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .hole-step { grid-template-columns: 48px 1fr; gap: 16px; } .hole-step .hole-no span { font-size: 2rem; } }
.callout {
  background: var(--sand); border-radius: var(--radius); padding: 26px 28px; margin: 36px 0;
  border-left: 4px solid var(--brass);
}
.callout strong { display: block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-700); margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }

.toc { position: sticky; top: 100px; font-size: 0.9rem; }
.toc h4 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 10px; }
.toc a { text-decoration: none; color: var(--ink); opacity: 0.75; display: flex; gap: 10px; }
.toc a::before { content: counter(toc); font-family: var(--font-display); color: var(--brass); width: 18px; }
.toc a:hover { opacity: 1; }
.article-layout { display: grid; grid-template-columns: 220px 1fr; gap: 64px; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .toc { display: none; } }

/* ---------- About ---------- */
.profile-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.profile-card .head {
  background: var(--green-700); color: var(--cream);
  padding: 14px 22px; display: flex; justify-content: space-between; align-items: center;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
}
.profile-row { display: grid; grid-template-columns: 1fr 1.2fr; border-top: 1px solid var(--line); }
.profile-row > div { padding: 15px 22px; font-size: 0.93rem; }
.profile-row > div:first-child { background: var(--cream); color: var(--muted); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; display: flex; align-items: center; border-right: 1px solid var(--line); }
.profile-row .pending { color: var(--muted); font-style: italic; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }
.value { padding: 30px; border: 1px solid var(--line-dark); border-radius: var(--radius); }
.value .icon { width: 44px; height: 44px; color: var(--brass-light); margin-bottom: 18px; }
.value h3 { font-size: 1.35rem; }
.value p { color: rgba(247,243,234,0.75); margin: 0; font-size: 0.97rem; }

.awards { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.award { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font-size: 0.84rem; background: #fff; }
.award strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; color: var(--green-700); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: clamp(26px, 4vw, 48px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 8px; padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; font: inherit; font-size: 0.97rem; background: var(--paper); color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; background: #fff; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (max-width: 480px) { .check-grid { grid-template-columns: 1fr; } }
.check {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font-size: 0.9rem; cursor: pointer; background: var(--paper); transition: border-color .2s, background .2s;
}
.check:has(input:checked) { border-color: var(--green-700); background: #eef4ee; }
.check input { accent-color: var(--green-700); width: 16px; height: 16px; }
.consent { font-size: 0.8rem; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.consent input { margin-top: 4px; accent-color: var(--green-700); }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success.show { display: block; }
.form-success .flag-icon { width: 64px; height: 64px; margin: 0 auto 18px; color: var(--flag); }

.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list a, .contact-list div { display: flex; gap: 14px; align-items: center; text-decoration: none; font-size: 1rem; }
.contact-list .ico { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; flex: none; color: var(--brass-light); }
.contact-list .ico svg { width: 18px; height: 18px; }
.contact-list small { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--green-900); color: var(--cream);
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta-band .contours { position: absolute; inset: 0; opacity: 0.18; }
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 0.3em; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Season calendar ---------- */
.season { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: 28px; }
.month { text-align: center; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.month .bar { height: 54px; border-radius: 6px; margin-bottom: 8px; background: rgba(255,255,255,0.06); position: relative; }
.month.golf .bar { background: var(--fairway); }
.month.shoulder .bar { background: linear-gradient(180deg, var(--fairway) 0%, rgba(74,131,88,0.35) 100%); }
.month.buy .bar { background: repeating-linear-gradient(135deg, rgba(180,138,67,0.55) 0 6px, rgba(180,138,67,0.25) 6px 12px); }
.month.now .bar { outline: 2px solid var(--cream); outline-offset: 2px; }
.month.now { color: var(--brass-light); font-weight: 700; }
.season-legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; font-size: 0.82rem; color: rgba(247,243,234,0.75); }
.season-legend span { display: inline-flex; align-items: center; gap: 8px; }
.season-legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
@media (max-width: 560px) { .month { font-size: 0.58rem; letter-spacing: 0; } .month .bar { height: 40px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: rgba(247,243,234,0.75); padding: 80px 0 36px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-light); font-weight: 600; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--cream); }
.site-footer .logo { color: var(--cream); margin-bottom: 18px; }
.footer-bottom { margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 0.78rem; opacity: 0.7; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; }
.socials svg { width: 16px; height: 16px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--brass); color: var(--green-950); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.disclaimer { font-size: 0.8rem; color: var(--muted); margin-top: 28px; }
.article-meta .monogram { font-size: 0.9rem; }
.article-meta [data-agent-photo] img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero .lede, .page-hero .lede, .cta-band .lede, .bg-green .lede, .bg-dark .lede { color: rgba(247, 243, 234, 0.8); }
.hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: var(--brass-light); }
@media (max-width: 760px) {
  .hero::after { background: linear-gradient(0deg, rgba(11,26,18,0.92) 0%, rgba(11,26,18,0.7) 55%, rgba(11,26,18,0.35) 100%); }
}
