/* ==========================================================
   Pilarski Real Estate Group — Shared Styles
   ========================================================== */

:root {
  --bg:           #0a0a0a;
  --bg-soft:      #121212;
  --bg-elevated:  #181818;
  --bg-card:      #161616;
  --text:         #f3ede4;
  --text-strong:  #ffffff;
  --text-muted:   #9a948c;
  --text-subtle:  #6a655f;
  --accent:       #c9a961;
  --accent-soft:  #b8985a;
  --border:       #262422;
  --border-soft:  #1c1a18;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --max:    1320px;
  --max-md: 1100px;
  --max-sm: 820px;

  --pad-x:  clamp(20px, 4vw, 56px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.005em;
}

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

a { color: inherit; text-decoration: none; transition: opacity .25s ease, color .25s ease; }
a:hover { opacity: .75; }

/* ==========================================================
   Layout helpers
   ========================================================== */

.container       { max-width: var(--max);    margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.container-md    { max-width: var(--max-md); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.container-sm    { max-width: var(--max-sm); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

.section         { padding: clamp(72px, 10vw, 140px) 0; }
.section-tight   { padding: clamp(48px, 7vw, 96px) 0; }

/* ==========================================================
   Typography
   ========================================================== */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--text-strong);
  letter-spacing: -0.005em;
  line-height: 1.08;
}

h1 { font-size: clamp(40px, 6.5vw, 84px); }
h2 { font-size: clamp(32px, 4.5vw, 56px); line-height: 1.1; }
h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; }
h4 { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.3; }

em, .accent {
  font-style: italic;
  font-family: var(--serif);
  color: var(--text-strong);
}

p { color: var(--text); }
p + p { margin-top: 1em; }

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 62ch;
}

.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }

/* ==========================================================
   Buttons
   ========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--text-strong);
  color: var(--text-strong);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.btn:hover { background: var(--text-strong); color: var(--bg); opacity: 1; }

.btn-accent {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-accent:hover { background: var(--accent); color: var(--bg); }

.btn-ghost {
  border-color: var(--border);
  color: var(--text-muted);
}
.btn-ghost:hover { border-color: var(--text-strong); color: var(--text-strong); background: transparent; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-strong);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); opacity: 1; }
.link-arrow::after { content: "→"; font-size: 14px; letter-spacing: 0; }

/* ==========================================================
   Header / Navigation
   ========================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-strong);
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.01em;
}
.nav-brand .brand-mark {
  width: 38px; height: 38px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
}
.nav-brand em { font-style: italic; color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-strong); opacity: 1; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-cta:hover { background: var(--accent); color: var(--bg); opacity: 1; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-strong);
  font-size: 20px;
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ==========================================================
   Hero
   ========================================================== */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
}
.hero-media {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(0.95);
  transform: scale(1.04);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0) 30%, rgba(10,10,10,0) 50%, rgba(10,10,10,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad-x) clamp(60px, 8vw, 100px);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.hero h1 {
  max-width: 18ch;
  margin-top: 24px;
}
.hero .lede {
  margin-top: 28px;
  color: rgba(243,237,228,0.82);
  max-width: 58ch;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-meta {
  position: absolute;
  bottom: clamp(24px, 4vw, 48px);
  right: var(--pad-x);
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243,237,228,0.55);
  text-align: right;
  max-width: 220px;
  line-height: 1.6;
}
@media (max-width: 720px) {
  .hero-meta { display: none; }
}

/* Compact hero variant for sub-pages */
.hero-compact {
  min-height: 62vh;
}

/* ==========================================================
   Section heads
   ========================================================== */

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head h2 {
  max-width: 22ch;
}
.section-head .lede {
  max-width: 58ch;
}
@media (min-width: 900px) {
  .section-head.split {
    grid-template-columns: 1.1fr 1fr;
    align-items: end;
    gap: 56px;
  }
}

/* ==========================================================
   About / Meet Julian
   ========================================================== */

.about {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.about-grid {
  display: grid;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1.1fr; }
}
.about-image {
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.about-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about-stats .stat .num {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-style: italic;
  color: var(--accent);
}
.about-stats .stat .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================
   Listings grid
   ========================================================== */

.listings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 720px)  { .listings-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .listings-grid { grid-template-columns: repeat(3, 1fr); } }

.listing {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  transition: transform .35s ease, border-color .35s ease;
}
.listing:hover { transform: translateY(-4px); border-color: var(--border); opacity: 1; }
.listing-image {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
}
.listing-tag {
  position: absolute;
  top: 16px; left: 16px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: rgba(10,10,10,0.7);
  color: var(--accent);
  padding: 6px 12px;
  border: 1px solid rgba(201,169,97,0.4);
  backdrop-filter: blur(4px);
}
.listing-body {
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.listing-loc {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.listing h3 {
  font-size: 26px;
  font-style: italic;
}
.listing-stats {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}
.listing-stats span strong {
  color: var(--text-strong);
  font-weight: 500;
  display: block;
  font-size: 15px;
  font-family: var(--serif);
}
.listing-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.listing-price {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--accent);
}

/* ==========================================================
   Communities
   ========================================================== */

.community-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .community-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .community-grid { grid-template-columns: repeat(3, 1fr); } }

.community {
  position: relative;
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  border: 1px solid var(--border-soft);
}
.community::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 30%, rgba(10,10,10,0.92) 100%);
  transition: opacity .4s ease;
}
.community-body {
  position: relative;
  z-index: 2;
  color: var(--text-strong);
}
.community-body .eyebrow {
  color: rgba(243,237,228,0.65);
}
.community-body h3 {
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 32px);
  margin-top: 6px;
}
.community-body p {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(243,237,228,0.78);
  line-height: 1.55;
  max-width: 38ch;
}
.community:hover { opacity: 1; }
.community:hover::after { opacity: .7; }

/* Communities full page — wider feature variant */
.community-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 80px;
  align-items: center;
}
@media (min-width: 900px) {
  .community-feature { grid-template-columns: 1.1fr 1fr; gap: 60px; }
  .community-feature.reverse > :first-child { order: 2; }
}
.community-feature .img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
}
.community-feature h3 { font-style: italic; }

/* ==========================================================
   Instagram feed
   ========================================================== */

.instagram {
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
}
.ig-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
@media (min-width: 720px)  { .ig-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .ig-grid { grid-template-columns: repeat(6, 1fr); } }
.ig-tile {
  aspect-ratio: 1/1;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.ig-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(10,10,10,0);
  transition: background .35s ease;
}
.ig-tile:hover::after { background: rgba(10,10,10,0.45); }

.ig-handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.ig-handle .handle {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--text-strong);
}
.ig-handle .handle span { color: var(--accent); }

/* ==========================================================
   Testimonials
   ========================================================== */

.testimonials {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 720px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
.testimonial {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testimonial blockquote {
  font-family: var(--serif);
  font-size: clamp(20px, 1.7vw, 24px);
  font-style: italic;
  line-height: 1.5;
  color: var(--text-strong);
}
.testimonial blockquote::before {
  content: "“";
  color: var(--accent);
  font-size: 50px;
  display: block;
  line-height: 0.3;
  margin-bottom: 18px;
}
.testimonial cite {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================
   Blog teaser
   ========================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 720px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.blog-card .date {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.blog-card h3 {
  font-size: 22px;
  font-style: italic;
}
.blog-card:hover h3 { color: var(--accent); transition: color .25s ease; }

/* ==========================================================
   Newsletter
   ========================================================== */

.newsletter {
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
}
.newsletter-inner {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .newsletter-inner { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 80px; }
}
.newsletter h2 {
  max-width: 16ch;
}
.newsletter form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.newsletter input[type="email"],
.newsletter input[type="text"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text-strong);
  letter-spacing: 0.01em;
}
.newsletter input::placeholder { color: var(--text-subtle); }
.newsletter input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

/* ==========================================================
   Buyer / Seller content blocks
   ========================================================== */

.value-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }

.value {
  border: 1px solid var(--border-soft);
  padding: 36px 32px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .25s ease, transform .25s ease;
}
.value:hover { border-color: var(--accent); transform: translateY(-3px); }
.value .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 40px;
  color: var(--accent);
  line-height: 1;
}
.value h3 { font-size: 22px; font-style: italic; }
.value p { color: var(--text-muted); font-size: 15px; line-height: 1.65; }

/* Step list (process) */
.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
@media (min-width: 720px) {
  .step { grid-template-columns: 120px 1fr 1fr; gap: 48px; }
}
.step .step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--accent);
  line-height: 1;
}
.step h3 {
  font-style: italic;
  font-size: clamp(22px, 2vw, 28px);
}
.step p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Two-up split CTA section (selling/buying) */
.split-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 60px;
}
@media (min-width: 900px) { .split-cta { grid-template-columns: 1fr 1fr; } }
.split-cta .card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.split-cta .card h3 { font-style: italic; font-size: 30px; }
.split-cta .card p  { color: var(--text-muted); }
.split-cta .card .actions {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* ==========================================================
   Footer
   ========================================================== */

.site-footer {
  background: #060606;
  border-top: 1px solid var(--border-soft);
  padding: 80px 0 40px;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  margin-bottom: 56px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand .mark {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--text-strong);
}
.footer-brand .mark em { color: var(--accent); }
.footer-brand p { font-size: 14px; color: var(--text-muted); max-width: 36ch; }

.footer-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text); }
.footer-col a:hover { color: var(--accent); opacity: 1; }

/* Brokerage affiliation row — understated centred RLP mark between hairlines */
.footer-rlp-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 8px 0 32px;
}
.footer-rlp-row::before,
.footer-rlp-row::after {
  content: "";
  flex: 0 1 80px;
  height: 1px;
  background: var(--border-soft);
}
.footer-rlp-row .rlp-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-subtle);
  white-space: nowrap;
}
.footer-rlp-row img.rlp-logo {
  height: 26px;
  width: auto;
  opacity: 0.55;
  transition: opacity .25s ease;
}
.footer-rlp-row:hover img.rlp-logo { opacity: 0.85; }

.footer-base {
  border-top: 1px solid var(--border-soft);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-subtle);
}

/* ==========================================================
   Misc utilities
   ========================================================== */

.center { text-align: center; }
.divider { height: 1px; background: var(--border-soft); margin: 64px 0; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-card);
}

/* Reveal animation (entry) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================
   Brand logo (pilarskigroup.com circle mark)
   ========================================================== */

.nav-brand img.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
}
.nav-brand .brand-wordmark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--text-strong);
}
.nav-brand .brand-wordmark em { font-style: italic; color: var(--accent); }

.footer-brand .brand-mark-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-brand img.brand-logo {
  width: 50px;
  height: 50px;
}
.footer-brand .mark {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--text-strong);
}
.footer-brand .mark em { color: var(--accent); }
.footer-brand img.brand-wordmark-image {
  height: 40px;
  width: auto;
  max-width: 100%;
  opacity: 0.78;
  transition: opacity .25s ease;
}
.footer-brand:hover img.brand-wordmark-image { opacity: 1; }

/* ==========================================================
   Team grid (Meet the Team page + teaser)
   ========================================================== */

.team-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  transition: border-color .25s ease, transform .25s ease;
}
.team-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.team-card .portrait {
  aspect-ratio: 1/1;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
}
.team-card-body {
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.team-card-body .role {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.team-card-body h3 {
  font-size: 28px;
  font-style: italic;
}
.team-card-body p { color: var(--text-muted); font-size: 14px; }
.team-card-body .contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.team-card-body .contact a { color: var(--text-strong); }
.team-card-body .contact a:hover { color: var(--accent); opacity: 1; }

/* Full team-page bio block */
.team-bio {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  padding: clamp(60px, 8vw, 100px) 0;
  border-bottom: 1px solid var(--border-soft);
}
@media (min-width: 900px) {
  .team-bio { grid-template-columns: 0.9fr 1.3fr; gap: 80px; align-items: start; }
  .team-bio.reverse > :first-child { order: 2; }
}
.team-bio .portrait-lg {
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  background-color: #1a1a1a;
  position: sticky;
  top: 100px;
}
.team-bio h2 {
  font-size: clamp(36px, 4vw, 52px);
  margin-bottom: 8px;
}
.team-bio .role {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  display: block;
}
.team-bio .contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--text-muted);
}
.team-bio .contact-line a { color: var(--text-strong); }
.team-bio .contact-line a:hover { color: var(--accent); opacity: 1; }
.team-bio p { margin-top: 18px; color: var(--text); }
.team-bio p.lede { color: var(--text-strong); font-family: var(--serif); font-size: clamp(20px, 1.7vw, 24px); font-style: italic; line-height: 1.55; }
.team-bio h3 {
  margin-top: 48px;
  font-size: 24px;
  font-style: italic;
  color: var(--accent);
}
.team-bio blockquote {
  margin-top: 32px;
  padding: 28px 32px;
  border-left: 2px solid var(--accent);
  background: var(--bg-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--text-strong);
}
.team-bio blockquote cite {
  display: block;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 14px;
}
.team-bio ul.awards {
  list-style: none;
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.team-bio ul.awards li {
  position: relative;
  padding-left: 24px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}
.team-bio ul.awards li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--serif);
}

/* ==========================================================
   Guide-request modal
   ========================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6,6,6,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .3s ease;
}
.modal-backdrop.open {
  display: flex;
  opacity: 1;
}
.modal-card {
  background: var(--bg);
  border: 1px solid var(--border);
  max-width: 520px;
  width: 100%;
  padding: 48px 40px;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text-strong); }

.modal-card h3 {
  font-size: 28px;
  font-style: italic;
  margin-bottom: 12px;
}
.modal-card .modal-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}
.modal-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

.modal-card form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.modal-card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.modal-card input[type="text"],
.modal-card input[type="email"],
.modal-card input[type="tel"],
.modal-card textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text-strong);
  letter-spacing: 0.01em;
  resize: vertical;
}
.modal-card input:focus,
.modal-card textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.modal-card .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* Success state */
.modal-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.modal-success.show { display: block; }
.modal-success .check {
  width: 56px;
  height: 56px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 28px;
  margin: 0 auto 24px;
  font-style: italic;
}
.modal-success h3 { margin-bottom: 14px; }
.modal-success p { margin-bottom: 24px; }

/* ==========================================================
   Inline contact / evaluation form (sellers + buyers pages)
   ========================================================== */

.inline-form {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 48px 40px;
}
.inline-form h3 {
  font-size: 28px;
  font-style: italic;
  margin-bottom: 8px;
}
.inline-form > p { color: var(--text-muted); margin-bottom: 28px; font-size: 15px; }
.inline-form form {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .inline-form .two-col { grid-template-columns: 1fr 1fr; gap: 24px; } }
.inline-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.inline-form input,
.inline-form textarea,
.inline-form select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text-strong);
  letter-spacing: 0.01em;
}
.inline-form input:focus,
.inline-form textarea:focus,
.inline-form select:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.inline-form textarea { min-height: 100px; resize: vertical; }
