/* ============================================
   Jason Miller — Emerald Coast Real Estate
   "Emerald Coast Editorial" — high-end real estate
   magazine meets data command center.
   ============================================ */

/* ===== DESIGN TOKENS ===== */
:root {
  /* Core palette — refined, richer */
  --navy: #07111d;
  --navy-deep: #040a13;
  --navy-soft: #0d1b2c;
  --teal: #0a8f73;          /* emerald */
  --teal-light: #14b894;
  --teal-deep: #065f4d;
  --sand: #f4ede0;
  --sand-dark: #e8dcc4;
  --cream: #faf7f0;
  --paper: #fdfcf8;
  --white: #ffffff;
  --amber: #d4a017;         /* refined amber-gold */
  --amber-hover: #b8890e;
  --coral: #e07856;
  --steel: #3a5a7a;
  --green-invest: #5a8a3a;
  --charcoal: #14181f;
  --ink: #0d1117;
  --gray: #545b66;
  --gray-light: #8b94a0;
  --border: #e2dccc;
  --border-soft: #ece6d8;
  --success: #2d7a4f;

  /* Per-niche accent (overridable via body class) */
  --accent: var(--teal);
  --accent-light: var(--teal-light);
  --accent-deep: var(--teal-deep);
  --accent-soft: rgba(10, 143, 115, 0.10);

  /* Typography */
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type scale — dramatic contrast */
  --fs-display: clamp(3rem, 7.5vw, 6.5rem);
  --fs-h1: clamp(2.6rem, 5.5vw, 4.6rem);
  --fs-h2: clamp(2rem, 4vw, 3.4rem);
  --fs-h3: clamp(1.4rem, 2.6vw, 2rem);
  --fs-h4: clamp(1.15rem, 1.6vw, 1.35rem);
  --fs-lead: clamp(1.15rem, 1.6vw, 1.4rem);
  --fs-body: 1.02rem;
  --fs-small: 0.88rem;
  --fs-eyebrow: 0.74rem;

  /* Layout */
  --max-width: 1320px;
  --gutter: 2.5rem;
  --radius: 2px;
  --radius-lg: 6px;
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Niche accent overrides ===== */
body.military {
  --accent: var(--steel);
  --accent-light: #5a82a8;
  --accent-deep: #2a4258;
  --accent-soft: rgba(58, 90, 122, 0.10);
}
body.vacation {
  --accent: #1a9b8c;
  --accent-light: #2bbfb0;
  --accent-deep: #0f6b60;
  --accent-soft: rgba(26, 155, 140, 0.10);
  --accent-2: var(--coral);
}
body.investors {
  --accent: #b8941f;
  --accent-light: #d4af3a;
  --accent-deep: #8a6e15;
  --accent-soft: rgba(184, 148, 31, 0.10);
  --accent-2: var(--green-invest);
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grain / atmosphere overlay on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

::selection { background: var(--accent); color: #fff; }

img { max-width: 100%; display: block; }

a { color: inherit; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--ink);
  font-variation-settings: "opsz" 96, "SOFT" 50;
}

h1 { font-size: var(--fs-h1); font-weight: 500; }
h2 { font-size: var(--fs-h2); font-weight: 500; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -0.01em; }

p { font-size: var(--fs-body); color: var(--gray); }
.lead { font-size: var(--fs-lead); color: var(--gray); line-height: 1.5; font-weight: 300; }

/* Eyebrow — sans label with leading rule */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.no-rule::before { display: none; }

.accent { color: var(--accent); }
.amber { color: var(--amber); }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: 6.5rem 0; position: relative; }
section.tight { padding: 4rem 0; }

.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  section { padding: 4.5rem 0; }
  :root { --gutter: 1.5rem; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  :root { --gutter: 1.25rem; }
}

/* ===== SECTION HEADERS ===== */
.section-header { max-width: 720px; margin-bottom: 3.5rem; }
.section-header.text-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header.text-center .eyebrow { justify-content: center; }
.section-header h2 { margin-bottom: 1rem; }
.section-header .lead { max-width: 560px; }
.section-header.text-center .lead { margin-left: auto; margin-right: auto; }

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(7, 17, 29, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition), border-color var(--transition);
}

nav .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  font-variation-settings: "opsz" 24;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.015em;
  display: flex;
  align-items: baseline;
  gap: 0.1em;
}
nav .logo span { color: var(--accent-light); }

nav .nav-links {
  display: flex;
  gap: 2.4rem;
  align-items: center;
  list-style: none;
}

nav .nav-links a {
  font-size: 0.84rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
  transition: color var(--transition-fast);
}
nav .nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--accent-light);
  transition: width var(--transition);
}
nav .nav-links a:hover { color: var(--white); }
nav .nav-links a:hover::after { width: 100%; }

nav .nav-cta {
  background: transparent;
  color: var(--white) !important;
  padding: 0.55rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  font-weight: 500 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.74rem !important;
  transition: all var(--transition);
}
nav .nav-cta::after { display: none; }
nav .nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white) !important;
}

nav .menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.25rem;
}

@media (max-width: 860px) {
  nav .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1.5rem var(--gutter) 2rem;
    gap: 1.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  nav .nav-links.open { display: flex; }
  nav .nav-links a { font-size: 1rem; }
  nav .menu-toggle { display: block; }
}

/* ===== BUTTONS — editorial, distinctive ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  border: none;
  cursor: pointer;
  position: relative;
  transition: all var(--transition);
  overflow: hidden;
  isolation: isolate;
}
.btn::after {
  content: '\2192';
  font-size: 0.9rem;
  transition: transform var(--transition);
}
.btn:hover::after { transform: translateX(4px); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.btn-outline::after { color: var(--white); }
.btn-outline:hover {  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--ink); transform: translateY(-2px); }

.btn-lg { padding: 1.15rem 2.4rem; font-size: 0.86rem; }
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.72rem; margin-top: 0.8rem; }

/* ===== HERO — full-bleed editorial ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  padding-top: 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(4,10,19,0.92) 0%, rgba(7,17,29,0.7) 38%, rgba(7,17,29,0.3) 70%, rgba(10,143,115,0.25) 100%),
    url('https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?w=1920&q=80') center/cover no-repeat;
  z-index: 0;
}
/* gradient mesh atmosphere */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(20,184,148,0.22), transparent 45%),
              radial-gradient(circle at 15% 90%, rgba(7,17,29,0.5), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding-bottom: 4rem;
  padding-top: 6rem;
}

.hero-persona-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}
.hero-persona {
  flex-shrink: 0;
  text-align: center;
}
.hero-headshot {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  display: block;
}
.hero-persona-label {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent-light);
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-persona-text {
  flex: 1;
}

.cta-headshot-wrap {
  margin-bottom: 2rem;
}
.cta-headshot {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  display: block;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
  color: var(--white);
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 0.98;
}
.hero h1 br + br { } /* keep editorial line breaks */

.hero .lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--fs-lead);
  font-weight: 300;
  margin-bottom: 2.6rem;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== HERO STATS — magazine infographic ===== */
.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 1.8rem;
}
.hero-stat {
  text-align: left;
  padding-right: 1.5rem;
  position: relative;
}
.hero-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.12);
}
.hero-stat .num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 500;
  font-variation-settings: "opsz" 96;
  color: var(--accent-light);
  display: block;
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero-stat .label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 0.6rem;
  display: block;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .hero { min-height: 92vh; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .hero-stat:nth-child(2)::after { display: none; }
  .hero-content { padding-bottom: 3rem; }
}

/* ===== NICHES — asymmetric editorial cards ===== */
.niches { background: var(--cream); }

.niche-cards {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.niche-card {
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 1px 2px rgba(7,17,29,0.06);
  border: 1px solid var(--border-soft);
  position: relative;
  display: block;
}

/* First card — feature, tall, image-led */
.niche-cards .niche-card:first-child {
  grid-row: span 2;
}
.niche-cards .niche-card:first-child .card-img { height: 420px; }

/* Right column cards — stacked, image left or compact */
.niche-cards .niche-card:nth-child(2),
.niche-cards .niche-card:nth-child(3) {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  align-items: stretch;
}
.niche-cards .niche-card:nth-child(2) .card-img,
.niche-cards .niche-card:nth-child(3) .card-img { height: 100%; min-height: 240px; }

.niche-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(7,17,29,0.28);
}

.niche-card .card-img {
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform var(--transition);
}
.niche-card:hover .card-img { transform: scale(1.04); }
.niche-card .card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,10,19,0.55), transparent 55%);
}

/* per-niche accent bar */
.niche-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  z-index: 2;
}
.niche-card:hover::before { transform: scaleX(1); }
.niche-cards .niche-card:nth-child(1) { --accent: var(--steel); --accent-light: #5a82a8; }
.niche-cards .niche-card:nth-child(2) { --accent: #1a9b8c; --accent-light: #2bbfb0; }
.niche-cards .niche-card:nth-child(3) { --accent: #b8941f; --accent-light: #d4af3a; }

.niche-card .card-body { padding: 1.8rem; }
.niche-cards .niche-card:nth-child(2) .card-body,
.niche-cards .niche-card:nth-child(3) .card-body { padding: 1.4rem 1.5rem; }

.niche-card .card-body .eyebrow { margin-bottom: 0.6rem; }
.niche-card .card-body .eyebrow::before { width: 1.2rem; }
.niche-card .card-body h3 { margin-bottom: 0.8rem; }
.niche-cards .niche-card:nth-child(2) .card-body h3,
.niche-cards .niche-card:nth-child(3) .card-body h3 { font-size: 1.35rem; }
.niche-card .card-body p { font-size: 0.92rem; margin-bottom: 1.1rem; }
.niche-card .card-link {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition);
}
.niche-card .card-link::after { content: '\2192'; }
.niche-card:hover .card-link { gap: 0.7rem; }

@media (max-width: 900px) {
  .niche-cards { grid-template-columns: 1fr; }
  .niche-cards .niche-card:first-child { grid-row: auto; }
  .niche-cards .niche-card:first-child .card-img { height: 280px; }
  .niche-cards .niche-card:nth-child(2),
  .niche-cards .niche-card:nth-child(3) { grid-template-columns: 1fr; }
  .niche-cards .niche-card:nth-child(2) .card-img,
  .niche-cards .niche-card:nth-child(3) .card-img { height: 220px; min-height: 0; }
}

/* ===== MARKET INTEL BAND — data command center ===== */
.market-band {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.market-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(20,184,148,0.12), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(212,160,23,0.08), transparent 45%);
  pointer-events: none;
}
.market-band .container { position: relative; z-index: 1; }
.market-band .grid-4 { gap: 0; }

.market-band .stat-block {
  text-align: left;
  padding: 0.5rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
.market-band .stat-block:last-child { border-right: none; }
.market-band .stat-block::before {
  content: attr(data-i);
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.3);
  display: block;
  margin-bottom: 0.6rem;
}

.market-band .stat-num {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 500;
  font-variation-settings: "opsz" 96;
  color: var(--teal-light);
  display: block;
  line-height: 1;
  margin-bottom: 0.7rem;
  letter-spacing: -0.03em;
}
.market-band .stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}
.market-band .stat-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.3rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .market-band .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0; }
  .market-band .stat-block { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 1rem 0.5rem; }
  .market-band .stat-block:nth-last-child(-n+2) { border-bottom: none; }
}

/* ===== AREAS SECTION ===== */
.areas { background: var(--sand); }
.areas .area-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.9rem;
}

.area-tile {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 1.3rem;
  transition: all var(--transition);
  isolation: isolate;
}
.area-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,10,19,0.88) 0%, rgba(4,10,19,0.15) 55%, transparent 100%);
  transition: opacity var(--transition);
  z-index: 0;
}
.area-tile::after {
  content: '';
  position: absolute;
  left: 1.3rem; bottom: 0;
  width: 2rem; height: 2px;
  background: var(--accent-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  z-index: 1;
}
.area-tile:hover { transform: scale(1.03); }
.area-tile:hover::after { transform: scaleX(1); }

.area-tile .area-name {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  font-variation-settings: "opsz" 24;
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) { .areas .area-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .areas .area-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== SPLIT CONTENT ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.split.reverse .split-text { order: 2; }

.split-text h2 { margin-bottom: 1.2rem; }
.split-text .lead { margin-bottom: 1.5rem; }

.split-img {
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
  box-shadow: 0 30px 60px -30px rgba(7,17,29,0.4);
}
/* editorial image frame accent */
.split-img::after {
  content: '';
  position: absolute;
  top: -14px; left: -14px;
  width: 60px; height: 60px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  opacity: 0.7;
}
.split.reverse .split-img::after {
  top: -14px; left: auto; right: -14px;
  border-left: none;
  border-right: 2px solid var(--accent);
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2.2rem; }
  .split.reverse .split-text { order: 0; }
}

/* ===== FEATURES / VALUE ===== */
.features { background: var(--white); }
.feature-item {
  padding: 1.8rem 1.8rem 1.8rem 2rem;
  border-left: 2px solid var(--accent);
  background: var(--cream);
  margin-bottom: 1.2rem;
  border-radius: 0;
  position: relative;
  transition: transform var(--transition), background var(--transition);
}
.feature-item:last-child { margin-bottom: 0; }
.feature-item:hover {
  transform: translateX(4px);
  background: var(--paper);
}
.feature-item::before {
  content: '';
  position: absolute;
  left: -2px; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0.3);
  transform-origin: top;
  transition: transform var(--transition);
}
.feature-item:hover::before { transform: scaleY(1); }
.feature-item h4 { margin-bottom: 0.55rem; color: var(--ink); }
.feature-item p { font-size: 0.93rem; margin: 0; }

/* ===== LEAD CAPTURE FORM — editorial premium ===== */
.lead-form-section {
  background: var(--navy-deep);
  color: var(--white);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.lead-form-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(20,184,148,0.14), transparent 45%),
    radial-gradient(circle at 15% 90%, rgba(58,90,122,0.12), transparent 50%);
  pointer-events: none;
}
.lead-form-section .container { position: relative; z-index: 1; }

.lead-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid var(--accent);
  border-radius: 0;
  padding: 3rem 3rem 2.5rem;
  max-width: 620px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lead-form .eyebrow { color: var(--accent-light); }
.lead-form .eyebrow::before { background: var(--accent-light); }
.lead-form h3 {
  color: var(--white);
  margin-bottom: 0.7rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.lead-form > p { color: rgba(255, 255, 255, 0.7); margin-bottom: 2.2rem; font-size: 1rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 0.2rem; }
.form-field { margin-bottom: 1.4rem; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.55rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 0 0.85rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  transition: border-color var(--transition);
}
.form-field textarea { padding-top: 0.6rem; resize: vertical; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255, 255, 255, 0.35); }

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%23ffffff80' stroke-width='1.2' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.3rem center;
  padding-right: 1.5rem;
}
.form-field select option { color: var(--charcoal); background: var(--white); }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent-light);
}
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 1px solid var(--accent-light);
  outline-offset: 4px;
}

.lead-form .btn-primary { width: 100%; justify-content: center; margin-top: 0.8rem; }
.lead-form .form-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-top: 1.2rem;
  text-align: center;
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .lead-form { padding: 2rem 1.5rem; }
}

/* form success/error messages (from JS) */
.form-message {
  font-size: 0.9rem !important;
  text-align: center;
  padding: 1rem !important;
  margin-top: 1rem;
  letter-spacing: 0.01em;
}

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--sand); }
.testimonials .grid-3 { gap: 1.5rem; align-items: start; }

.testimonial {
  background: var(--white);
  padding: 2.5rem 2.2rem 2rem;
  border-radius: 0;
  border: none;
  border-top: 2px solid var(--accent);
  position: relative;
  transition: transform var(--transition);
}
.testimonial:hover { transform: translateY(-4px); }
/* stagger accent colors */
.testimonials .grid-3 .testimonial:nth-child(2) { border-top-color: var(--coral); }
.testimonials .grid-3 .testimonial:nth-child(3) { border-top-color: var(--amber); }

.testimonial .quote-mark {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 500;
  color: var(--accent);
  opacity: 0.18;
  position: absolute;
  top: 0.6rem;
  left: 1.5rem;
  line-height: 1;
  font-variation-settings: "opsz" 144;
}

.testimonial blockquote {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: var(--charcoal);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 1.6rem;
  position: relative;
  z-index: 1;
  font-variation-settings: "opsz" 14;
}

.testimonial .author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-soft);
  padding-top: 1.2rem;
}
.testimonial .author-info .name {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.testimonial .author-info .role {
  font-size: 0.78rem;
  color: var(--gray);
  letter-spacing: 0.04em;
}

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--accent);
  color: var(--white);
  text-align: center;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1), transparent 55%);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin-bottom: 1rem; font-weight: 500; }
.cta-band p { color: rgba(255, 255, 255, 0.9); margin-bottom: 2rem; font-size: 1.15rem; font-weight: 300; }
.cta-band .btn-primary { background: var(--navy); }
.cta-band .btn-primary:hover { background: var(--ink); }

/* ===== FOOTER ===== */
footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.55);
  padding: 4rem 0 1.5rem;
  position: relative;
}

footer .footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

footer .footer-brand .logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  font-variation-settings: "opsz" 24;
  color: var(--white);
  margin-bottom: 1rem;
  display: block;
  letter-spacing: -0.015em;
}
footer .footer-brand .logo span { color: var(--accent-light); }
footer .footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.45); max-width: 320px; line-height: 1.55; }

footer .footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.1rem;
}

footer .footer-col ul { list-style: none; }
footer .footer-col ul li { margin-bottom: 0.65rem; }
footer .footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}
footer .footer-col ul a:hover { color: var(--white); padding-left: 0.3rem; }

footer .social-links {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.2rem;
}
footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: all var(--transition);
}
footer .social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.02em;
}

footer .footer-bottom .legal a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color var(--transition-fast);
}
footer .footer-bottom .legal a:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 768px) {
  footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  footer .footer-brand { grid-column: 1 / -1; }
  footer .footer-bottom { flex-direction: column; gap: 0.8rem; text-align: center; }
}

/* ===== PAGE HEADER (landing pages) ===== */
.page-header {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  padding-top: 64px;
  overflow: hidden;
}

.page-header .ph-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.page-header .ph-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(4,10,19,0.9) 0%, rgba(7,17,29,0.6) 45%, rgba(7,17,29,0.2) 100%),
    radial-gradient(circle at 85% 25%, var(--accent-soft), transparent 50%);
}

.page-header .ph-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-bottom: 4rem;
}
.page-header .ph-content .eyebrow { color: var(--accent-light); }
.page-header .ph-content .eyebrow::before { background: var(--accent-light); }
.page-header h1 {
  margin-bottom: 1.3rem;
  color: var(--white);
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.02;
}
.page-header .lead {
  color: rgba(255,255,255,0.88);
  margin-bottom: 2.4rem;
  font-weight: 300;
}

@media (max-width: 768px) {
  .page-header { min-height: 65vh; }
}

/* ===== DISCLOSURE ===== */
.disclosure {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.3);
  padding: 1.3rem 0;
  font-size: 0.76rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  letter-spacing: 0.02em;
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }

/* ===== MOTION: page-load staggered reveal ===== */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero .eyebrow,
.hero h1,
.hero .lead,
.hero .hero-ctas,
.hero .hero-stats {
  opacity: 0;
  animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero .eyebrow   { animation-delay: 0.15s; }
.hero h1         { animation-delay: 0.30s; }
.hero .lead      { animation-delay: 0.50s; }
.hero .hero-ctas { animation-delay: 0.68s; }
.hero .hero-stats{ animation-delay: 0.85s; }

.page-header .ph-content .eyebrow,
.page-header .ph-content h1,
.page-header .ph-content .lead,
.page-header .ph-content .hero-ctas {
  opacity: 0;
  animation: heroRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.page-header .ph-content .eyebrow   { animation-delay: 0.18s; }
.page-header .ph-content h1         { animation-delay: 0.34s; }
.page-header .ph-content .lead      { animation-delay: 0.52s; }
.page-header .ph-content .hero-ctas { animation-delay: 0.70s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero .eyebrow, .hero h1, .hero .lead, .hero .hero-ctas, .hero .hero-stats,
  .page-header .ph-content > * { opacity: 1 !important; }
}

/* ===== ACCESSIBILITY: focus states ===== */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}
