/* =========================================================
   Chandler South: Sarasota Luxury & Coastal Real Estate
   Palette: Gulf ink, warm sand, ivory, sunset brass
   ========================================================= */

:root {
  --ink: #0E1A24;
  --ink-2: #16283A;
  --ivory: #FBF8F3;
  --sand: #F3ECE2;
  --shell: #E6DBCB;
  --stone: #6B6760;
  --text: #1C2530;
  --muted: #5E6770;
  --brass: #B07D52;
  --brass-light: #D8B08A;
  --line: rgba(14, 26, 36, 0.12);
  --line-light: rgba(251, 248, 243, 0.18);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
em { font-style: italic; font-weight: 300; }
::selection { background: var(--brass); color: var(--ivory); }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--ivory); padding: 10px 16px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-sand { background: var(--sand); }
.section-ink { background: var(--ink); color: var(--ivory); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--brass-light); }

.section-title { font-size: clamp(2.3rem, 5vw, 4rem); margin-bottom: 24px; }
.section-title em { color: var(--brass); }
.section-ink .section-title em { color: var(--brass-light); }
.section-sub { font-size: 1.08rem; color: var(--muted); max-width: 560px; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--text); }

.section-head { margin-bottom: clamp(48px, 6vw, 72px); }
.section-head-split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-head-split .section-title { margin-bottom: 0; }
.section-head-center { text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-head-center .section-sub { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border: 1px solid transparent; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-small { padding: 11px 20px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-dark:hover { background: var(--brass); }
.btn-light { background: var(--ivory); color: var(--ink); }
.btn-light:hover { background: var(--brass-light); }
.btn-ghost-light { border-color: rgba(251, 248, 243, 0.55); color: var(--ivory); }
.btn-ghost-light:hover { background: var(--ivory); color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: var(--ivory);
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.site-header.is-scrolled {
  --header-h: 70px;
  background: rgba(251, 248, 243, 0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark-name { font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.01em; }
.wordmark-tag { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; opacity: .75; margin-top: 6px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav a:not(.btn) {
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em; position: relative; padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.is-scrolled .nav-cta { background: var(--ink); color: var(--ivory); }
.is-scrolled .nav-cta:hover { background: var(--brass); }

.nav-toggle {
  display: none; width: 44px; height: 44px; background: none; border: 0; padding: 0;
  position: relative; color: inherit;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 26px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--ivory); overflow: hidden; isolation: isolate;
}
.hero-media {
  position: absolute; inset: -5% 0 0; z-index: -2;
  background: #2b3a4a url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=2000&q=80") center 60% / cover no-repeat;
  animation: heroZoom 18s var(--ease) forwards;
  will-change: transform;
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 26, 36, 0.55) 0%, rgba(14, 26, 36, 0.05) 35%, rgba(14, 26, 36, 0.15) 55%, rgba(14, 26, 36, 0.85) 100%);
}
.hero-content { padding-top: calc(var(--header-h) + 60px); padding-bottom: 48px; }
.hero-title {
  font-size: clamp(3.4rem, 10vw, 8.5rem); line-height: 0.95; letter-spacing: -0.03em; margin-bottom: 28px;
}
.hero-title em { color: var(--brass-light); }
.hero-sub { max-width: 540px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); opacity: .92; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-intent {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding-top: 24px; padding-bottom: 32px;
  border-top: 1px solid var(--line-light);
}
.hero-intent-label { font-family: var(--serif); font-style: italic; font-size: 1.1rem; opacity: .85; }
.intent-options { display: flex; flex-wrap: wrap; gap: 10px; }
.intent-options a {
  font-size: 13px; letter-spacing: 0.06em; padding: 9px 18px;
  border: 1px solid var(--line-light); border-radius: 100px;
  background: rgba(14, 26, 36, 0.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .3s, color .3s, border-color .3s;
}
.intent-options a:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

/* ---------- Stats ---------- */
.stats { background: var(--ink); color: var(--ivory); padding: clamp(44px, 6vw, 64px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 0 clamp(12px, 2vw, 28px); border-left: 1px solid var(--line-light); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1; color: var(--brass-light); margin-bottom: 10px; }
.stat-label { font-size: 13px; letter-spacing: 0.04em; opacity: .75; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1fr; gap: clamp(48px, 8vw, 120px); align-items: center; }
.about-media { position: relative; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background:
    var(--portrait, none) center / cover no-repeat,
    radial-gradient(120% 80% at 80% 10%, #D8B08A 0%, transparent 55%),
    linear-gradient(160deg, #1d3448 0%, #0E1A24 100%);
  display: grid; place-items: center;
}
.portrait-monogram {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(6rem, 14vw, 11rem); color: rgba(251, 248, 243, 0.9); letter-spacing: -0.04em;
}
.portrait.has-photo .portrait-monogram { display: none; }
.about-badge {
  position: absolute; right: -24px; bottom: 40px;
  background: var(--ivory); padding: 22px 28px; box-shadow: 0 20px 50px rgba(14, 26, 36, 0.14);
  display: flex; flex-direction: column;
}
.about-badge-top { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.about-badge-main { font-family: var(--serif); font-size: 1.6rem; }
.about-copy p:not(.eyebrow):not(.lead):not(.signature) { color: var(--muted); }
.signature { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 2rem; color: var(--brass); margin: 28px 0 32px; }
.about-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* ---------- Specialties ---------- */
.specialty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.specialty-card { background: var(--ivory); overflow: hidden; border-radius: var(--radius); }
.specialty-img, .listing-img, .post-img, .marketing-banner-img {
  background: var(--shell) var(--img) center / cover no-repeat;
  transition: transform 1.2s var(--ease);
}
.specialty-img { aspect-ratio: 4 / 5; }
.specialty-card:hover .specialty-img { transform: scale(1.05); }
.specialty-body { padding: 30px 30px 36px; position: relative; background: var(--ivory); }
.specialty-num { font-family: var(--serif); font-style: italic; color: var(--brass); font-size: 1rem; }
.specialty-body h3 { font-size: 1.9rem; margin: 6px 0 14px; }
.specialty-body p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- Listings ---------- */
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tab {
  background: none; border: 1px solid var(--line); border-radius: 100px;
  padding: 9px 20px; font-size: 13px; letter-spacing: 0.05em; color: var(--text);
  transition: all .3s var(--ease);
}
.filter-tab:hover { border-color: var(--ink); }
.filter-tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.listing { cursor: pointer; }
.listing.is-hidden { display: none; }
.listing-img { aspect-ratio: 4 / 3; border-radius: var(--radius); position: relative; overflow: hidden; }
.listing-img::after { content: ""; position: absolute; inset: 0; background: rgba(14, 26, 36, 0); transition: background .5s; }
.listing:hover .listing-img { transform: scale(1.02); }
.listing:hover .listing-img::after { background: rgba(14, 26, 36, 0.12); }
.listing-tag {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  background: var(--ivory); color: var(--ink);
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 2px;
}
.listing-body { padding-top: 22px; }
.listing-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.listing-top h3 { font-size: 1.45rem; }
.listing-price { font-family: var(--serif); font-size: 1.2rem; color: var(--brass); white-space: nowrap; }
.listing-loc { font-size: 14px; color: var(--muted); margin: 6px 0 16px; }
.listing-specs { display: flex; gap: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.listing-specs strong { color: var(--text); font-weight: 600; }

.homes-foot {
  margin-top: clamp(56px, 7vw, 88px); padding: 36px 0 0; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.homes-foot p { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 0; max-width: 640px; }

/* ---------- Areas ---------- */
.areas-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(48px, 8vw, 120px); align-items: start; }
.areas-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.areas-intro p:not(.eyebrow) { opacity: .75; max-width: 420px; margin-bottom: 36px; }
.area {
  display: grid; grid-template-columns: 56px 1fr; gap: 12px;
  padding: 28px 0; border-top: 1px solid var(--line-light);
  transition: padding .45s var(--ease);
}
.area:last-child { border-bottom: 1px solid var(--line-light); }
.area-num { font-family: var(--serif); font-style: italic; color: var(--brass-light); padding-top: 8px; }
.area h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); transition: color .35s; }
.area p {
  margin: 0; opacity: .7; font-size: 15px; max-width: 520px;
  max-height: 0; overflow: hidden; transition: max-height .5s var(--ease), margin .5s var(--ease), opacity .5s;
}
.area:hover, .area.is-open { padding-left: 12px; }
.area:hover h3, .area.is-open h3 { color: var(--brass-light); }
.area:hover p, .area.is-open p { max-height: 120px; margin-top: 10px; }

/* ---------- Marketing ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 36px 28px 0 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step-num { font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--brass); line-height: 1; display: block; margin-bottom: 20px; }
.step h3 { font-size: 1.6rem; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

.marketing-banner {
  position: relative; margin-top: clamp(64px, 8vw, 110px); border-radius: var(--radius); overflow: hidden;
  min-height: 440px; display: flex; align-items: flex-end; color: var(--ivory); isolation: isolate;
}
.marketing-banner-img { position: absolute; inset: 0; z-index: -2; }
.marketing-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(14, 26, 36, 0.88) 0%, rgba(14, 26, 36, 0.5) 50%, rgba(14, 26, 36, 0.1) 100%);
}
.marketing-banner:hover .marketing-banner-img { transform: scale(1.03); }
.marketing-banner-copy { padding: clamp(32px, 5vw, 64px); max-width: 560px; }
.marketing-banner-copy h3 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 16px; }
.marketing-banner-copy p { opacity: .85; margin-bottom: 28px; }

/* ---------- Academy ---------- */
.academy-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 72px); }
.academy-head .section-title { margin-bottom: 0; }
.academy-head .section-sub { margin: 0; }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.course {
  background: var(--ivory); padding: clamp(28px, 3vw, 40px); border-radius: var(--radius);
  display: flex; flex-direction: column; border: 1px solid transparent;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.course:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(14, 26, 36, 0.1); }
.course-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); margin-bottom: 18px; }
.course h3 { font-size: 1.8rem; margin-bottom: 14px; }
.course > p { color: var(--muted); font-size: 15px; }
.course-points { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.course-points li { position: relative; padding: 8px 0 8px 22px; font-size: 14px; }
.course-points li::before { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 1px; background: var(--brass); }
.course-featured { background: var(--ink); color: var(--ivory); }
.course-featured .course-kicker { color: var(--brass-light); }
.course-featured > p { color: rgba(251, 248, 243, 0.72); }
.course-featured .course-points { border-color: var(--line-light); }
.course-featured .course-points li::before { background: var(--brass-light); }

.waitlist {
  margin-top: clamp(40px, 5vw, 64px); padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--shell); border-radius: var(--radius); background: var(--ivory);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center;
}
.waitlist h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 8px; }
.waitlist p { color: var(--muted); margin: 0; }
.waitlist-form { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist-form input { flex: 1 1 220px; }
.waitlist-form .form-status { flex-basis: 100%; }
.academy-speaking { margin: 36px 0 0; text-align: center; color: var(--muted); display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; }
.academy-speaking .link-arrow { color: var(--ink); }

/* ---------- Testimonials ---------- */
.testimonials { text-align: center; }
.testimonials .eyebrow { justify-content: center; }
.quote-slider { position: relative; display: grid; max-width: 980px; margin: 0 auto; }
.quote {
  grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), visibility .7s;
}
.quote.is-active { opacity: 1; visibility: visible; transform: none; }
.quote blockquote {
  margin: 0 0 32px; font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem); line-height: 1.3;
}
.quote figcaption { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-light); }
.placeholder-note { opacity: .5; letter-spacing: .08em; text-transform: none; }
.quote-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 48px; }
.quote-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-light);
  background: none; color: var(--ivory); font-size: 18px; transition: background .3s, color .3s;
}
.quote-btn:hover { background: var(--ivory); color: var(--ink); }
.quote-dots { display: flex; gap: 10px; }
.quote-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--line-light); transition: background .3s, width .3s; }
.quote-dot.is-active { background: var(--brass-light); width: 24px; border-radius: 4px; }

/* ---------- Journal ---------- */
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 36px); }
.post { cursor: pointer; }
.post-img { aspect-ratio: 3 / 2; border-radius: var(--radius); margin-bottom: 22px; }
.post:hover .post-img { transform: scale(1.02); }
.post-cat { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); }
.post h3 { font-size: 1.45rem; margin: 10px 0 10px; transition: color .3s; }
.post:hover h3 { color: var(--brass); }
.post p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 120px); }
.contact-info > p:not(.eyebrow) { color: var(--muted); max-width: 440px; }
.contact-list { margin: 36px 0; }
.contact-list li { display: flex; flex-direction: column; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list span { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); margin-bottom: 2px; }
.contact-list a { font-family: var(--serif); font-size: 1.35rem; }
.contact-list a:hover { color: var(--brass); }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: background .3s, border-color .3s, color .3s;
}
.socials a:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.socials svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.socials svg .fill { fill: currentColor; stroke: none; }

.contact-form { background: var(--ivory); padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); box-shadow: 0 30px 60px rgba(14, 26, 36, 0.06); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 12px 0; border-radius: 0; transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
select {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23B07D52' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right 4px center no-repeat;
  padding-right: 24px; cursor: pointer;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass); }
input.is-invalid { border-color: #B4533C; }
.waitlist-form input { border: 1px solid var(--line); padding: 14px 18px; border-radius: var(--radius); background: #fff; }
.form-status { margin: 14px 0 0; font-size: 14px; min-height: 1.2em; color: var(--brass); }
.form-status.is-error { color: #B4533C; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--ivory); padding: clamp(64px, 8vw, 96px) 0 36px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid var(--line-light); }
.footer-mark { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1; margin: 0 0 10px; }
.footer-tag { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--brass-light); font-size: 1.2rem; margin: 0; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-size: 13px; letter-spacing: 0.08em; opacity: .75; transition: opacity .3s; }
.footer-nav a:hover { opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; font-size: 12px; opacity: .6; }
.footer-bottom p { margin: 0; }
.eho { display: inline-flex; align-items: center; gap: 8px; }
.eho svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.credit a:hover { color: var(--brass-light); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .listing-grid, .journal-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step { padding-bottom: 36px; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .nav-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 22px;
    background: var(--ink); color: var(--ivory);
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 2rem; letter-spacing: 0; }
  .nav .nav-cta { margin-top: 16px; background: var(--ivory); color: var(--ink); }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open .site-header { color: var(--ivory); }
  /* backdrop-filter would trap the fixed menu inside the header, so drop it while open */
  .nav-open .site-header.is-scrolled { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-open .wordmark { position: relative; z-index: 2; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }

  .about-grid, .areas-grid, .contact-grid, .academy-head, .waitlist { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
  .about-badge { right: 16px; }
  .areas-intro { position: static; }
  .specialty-grid, .course-grid { grid-template-columns: 1fr; }
  .specialty-card { display: grid; grid-template-columns: 1fr 1.2fr; }
  .specialty-img { aspect-ratio: auto; min-height: 260px; }
}

@media (max-width: 640px) {
  .hero-intent { gap: 14px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .listing-grid, .journal-grid, .process { grid-template-columns: 1fr; }
  .step, .step + .step { padding-left: 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .specialty-card { grid-template-columns: 1fr; }
  .specialty-img { aspect-ratio: 16 / 11; min-height: 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .area { grid-template-columns: 40px 1fr; }
  .area p { max-height: none; margin-top: 10px; }
  .waitlist-form .btn { width: 100%; }
  .about-badge { padding: 16px 20px; bottom: 20px; }
  .marketing-banner { min-height: 380px; }
  .marketing-banner::before { background: linear-gradient(0deg, rgba(14, 26, 36, 0.9) 0%, rgba(14, 26, 36, 0.35) 100%); }
}
