/* Premier Property Partners public site. Values come from tokens.css only. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
main { display: block; }
main:focus { outline: none; }
[id] { scroll-margin-top: var(--s-5); }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- focus ---------- */
:focus-visible {
  outline: 3px solid var(--focus-on-light);
  outline-offset: 3px;
}
.site-header :focus-visible,
.on-dark :focus-visible,
.site-footer :focus-visible,
.call-bar :focus-visible {
  outline-color: var(--focus-on-dark);
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--silver);
  color: var(--midnight);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: var(--s-3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn .icon { width: 1.15em; height: 1.15em; transition: transform 0.15s ease; }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-silver { background: var(--silver); color: var(--midnight); border-color: var(--silver); }
.btn-silver:hover { background: var(--white); border-color: var(--white); }

.btn-outline { background: transparent; color: var(--on-dark); border-color: var(--platinum); }
.btn-outline:hover { background: var(--glass-dark); border-color: var(--white); }

.btn-dark { background: var(--midnight); color: var(--white); border-color: var(--midnight); }
.btn-dark:hover { background: var(--midnight-2); border-color: var(--midnight-2); }

.btn-ghost { background: transparent; color: var(--midnight); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--midnight); background: var(--mist); }

.btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-weight: 600;
  color: var(--midnight);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.text-link:hover { text-decoration-thickness: 2px; }
.text-link .icon { width: 1em; height: 1em; }

/* ---------- header ---------- */
.site-header {
  background: var(--midnight);
  color: var(--on-dark);
  border-bottom: 1px solid var(--rule-dark);
  position: relative;
  z-index: 30;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--on-dark);
  text-decoration: none;
  min-height: 44px;
  flex: none;
}
.logo-svg { height: 56px; width: auto; aspect-ratio: 330 / 100; overflow: visible; }
.logo-svg .m-stripe path { stroke: var(--platinum); stroke-width: 1.5; }
.logo-svg .m-line path { stroke: var(--on-dark); stroke-width: 2.5; }
.logo-svg .m-line .m-tick { stroke-width: 1.6; }
.logo-svg .w-text { font-family: var(--font); }
.logo-svg .w-a { fill: var(--on-dark); }
.logo-svg .w-b { fill: var(--platinum); }
.logo-foot { height: 74px; }

.menu-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.85rem;
  background: transparent;
  color: var(--on-dark);
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.menu-btn .menu-close { display: none; }
.menu-btn[aria-expanded="true"] .menu-open { display: none; }
.menu-btn[aria-expanded="true"] .menu-close { display: block; }

.nav-list { list-style: none; display: flex; align-items: center; gap: 0; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.6rem;
  color: var(--on-dark-2);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover { color: var(--on-dark); }
.nav-link[aria-current] { color: var(--on-dark); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 4px;
  height: 2px;
  background: var(--silver);
}
.has-sub .nav-link { padding-right: 0.1rem; }
.sub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--on-dark-2);
  border-radius: var(--radius-sm);
}
.sub-btn:hover { color: var(--on-dark); }
.sub-btn { min-width: 44px; }
.sub-btn .icon { width: 17px; height: 17px; transition: transform 0.15s ease; }
.sub-btn[aria-expanded="true"] .icon { transform: rotate(180deg); }

.sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 5;
  min-width: 250px;
  padding: var(--s-3) var(--s-2) var(--s-2);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-menu);
}
.sub-menu-wide { display: none; left: auto; right: 0; min-width: min(580px, calc(100vw - 2rem)); grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s-4); padding-inline: var(--s-4); }
.sub-menu ul { list-style: none; }
.sub-head {
  padding: 0 0.75rem var(--s-2);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--midnight);
}
.sub-head a { color: inherit; text-decoration: none; }
.sub-head a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.has-sub.is-open .sub-menu { display: block; }
.has-sub.is-open .sub-menu-wide { display: grid; }
.sub-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}
.sub-menu a:hover { background: var(--mist); }
.sub-menu a[aria-current="page"] { background: var(--mist); font-weight: 700; }
.sub-menu .sub-head a { padding: 0; min-height: 0; display: inline; background: none; font-weight: 700; }
.sub-menu .sub-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--midnight);
  color: var(--white);
  flex: none;
}
.sub-menu .sub-icon .icon { width: 18px; height: 18px; }
.sub-menu :focus-visible { outline-color: var(--focus-on-light); outline-offset: -3px; }
.nav-cta-item { margin-left: 0.7rem; }
.nav-cta { min-height: 44px; padding: 0.55rem 1.05rem; font-size: var(--text-sm); }
.site-header .nav-cta:focus-visible { outline-offset: 3px; }

@media (hover: hover) and (min-width: 1240px) {
  .has-sub:hover .sub-menu { display: block; }
  .has-sub:hover .sub-menu-wide { display: grid; }
  .has-sub:hover::after {
    /* a bridge so the pointer can travel from the link into the menu */
    content: "";
    position: absolute;
    left: 0; right: 0; top: 100%;
    height: 8px;
  }
}
/* Without JavaScript the menus still open when focus is inside them. */
@media (min-width: 1240px) {
  html:not(.js) .has-sub:focus-within .sub-menu { display: block; }
  html:not(.js) .has-sub:focus-within .sub-menu-wide { display: grid; }
}

@media (max-width: 1239.98px) {
  .header-row { flex-wrap: wrap; row-gap: 0; padding-block: var(--s-2); }
  .logo-svg { height: 48px; }
  .js .menu-btn { display: inline-flex; }
  .site-nav { flex-basis: 100%; padding-bottom: var(--s-4); }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { flex-wrap: wrap; border-top: 1px solid var(--rule-dark); }
  .nav-link { flex: 1; padding-inline: 0.25rem; min-height: 48px; font-size: var(--text-md); }
  .has-sub .nav-link { padding-right: 0.25rem; }
  .nav-link[aria-current="page"]::after { left: 0.25rem; right: auto; width: 2.5rem; bottom: 6px; }
  .sub-btn { width: 48px; min-height: 48px; }
  .sub-btn .icon { width: 22px; height: 22px; }
  .sub-menu, .sub-menu-wide {
    display: none;
    position: static;
    flex-basis: 100%;
    min-width: 0;
    padding: 0 0 var(--s-2) var(--s-4);
    background: transparent;
    box-shadow: none;
  }
  /* Without JavaScript every page stays one tap away: the menus are listed open. */
  html:not(.js) .sub-menu { display: block; }
  .has-sub.is-open .sub-menu, .has-sub.is-open .sub-menu-wide { display: block; }
  .sub-head { color: var(--on-dark); padding-inline: 0.25rem; }
  .sub-col + .sub-col { margin-top: var(--s-3); }
  .sub-menu a { color: var(--on-dark-2); min-height: 44px; padding-inline: 0.25rem; }
  .sub-menu a:hover, .sub-menu a[aria-current="page"] { background: transparent; color: var(--on-dark); }
  .sub-menu .sub-icon { background: var(--midnight-2); width: 28px; height: 28px; }
  .sub-menu :focus-visible { outline-color: var(--focus-on-dark); outline-offset: 0; }
  .nav-cta-item { margin: var(--s-3) 0 0; border-top: 0 !important; }
  .nav-cta { width: 100%; min-height: 48px; font-size: var(--text-md); }
}

/* ---------- shared section pieces ---------- */
.section { padding-block: var(--section-y); }
.section-mist { background: var(--mist); }
.section-tight { padding-block: clamp(2rem, 4vw, 3rem); }

.section-title {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--midnight);
}
.section-title::before {
  content: "";
  width: 44px;
  height: 2px;
  background: var(--midnight);
  flex: none;
}
.section-title::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.section-head { text-align: center; max-width: 46rem; margin: 0 auto clamp(1.5rem, 3vw, 2.25rem); }
.section-head .kicker { display: block; margin-bottom: var(--s-2); font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--ink-3); }
.section-head h2 { font-size: var(--text-2xl); color: var(--midnight); }
.section-head p { margin-top: var(--s-3); color: var(--ink-2); }
.section-intro { max-width: 44rem; margin: calc(-1 * var(--s-3)) 0 var(--s-6); color: var(--ink-2); }

.eyebrow {
  display: inline-grid;
  gap: var(--s-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--on-dark-2);
}
.eyebrow::after { content: ""; width: 56px; height: 2px; background: var(--platinum); }

/* ---------- home hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 85% at 76% 40%, var(--art-sky-2), transparent 72%),
    linear-gradient(180deg, var(--midnight) 0%, var(--art-sky-1) 100%);
  color: var(--on-dark);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: var(--s-5);
  min-height: clamp(520px, 64vh, 660px);
}
.hero-copy { padding-block: clamp(3rem, 7vw, 5.5rem); position: relative; z-index: 1; }
.hero h1 {
  margin-top: var(--s-5);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.hero h1 .line { display: block; }
.hero-lead { margin-top: var(--s-5); max-width: 34rem; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--on-dark-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero-call { margin-top: var(--s-4); font-size: var(--text-sm); color: var(--on-dark-2); }
.hero-call a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); font-weight: 600; text-underline-offset: 0.2em; }

.hero-art { position: relative; align-self: stretch; min-height: 380px; margin-block: var(--s-4); }
.hero-art .art-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo-slot > .slot-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.photo-slot.has-photo > .slot-photo { opacity: 1; }
.photo-slot.has-photo > .art-svg { visibility: hidden; }
.hero-art.has-photo { margin-block: 0; margin-right: calc(-1 * var(--gutter)); }
.hero-art.has-photo > .slot-photo { -webkit-mask-image: linear-gradient(90deg, transparent 0%, var(--ink) 28%); mask-image: linear-gradient(90deg, transparent 0%, var(--ink) 28%); }

/* the one orchestrated moment: the skyline rises and its windows light in order */
.art-rise { animation: art-rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.art-lit { opacity: 0; animation: art-lit 0.9s ease forwards; }
.art-lit.d1 { animation-delay: 0.7s; }
.art-lit.d2 { animation-delay: 0.95s; }
.art-lit.d3 { animation-delay: 1.2s; }
.art-lit.d4 { animation-delay: 1.45s; }
.art-lit.d5 { animation-delay: 1.7s; }
@keyframes art-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes art-lit { to { opacity: 1; } }

.art-svg .art-edge { fill: none; stroke: var(--platinum); stroke-width: 1.3; stroke-linejoin: round; opacity: 0.85; }
.art-svg .art-grid { fill: none; stroke: var(--platinum); stroke-width: 1; opacity: 0.16; }
.art-svg .art-line { fill: none; stroke: var(--platinum); stroke-width: 1.6; stroke-linecap: round; }
.art-svg .art-line.thin { stroke-width: 1; opacity: 0.7; }
.art-svg .art-line.faint { opacity: 0.3; }
.art-svg .art-slat { fill: none; stroke: var(--platinum); stroke-width: 0.8; opacity: 0.4; }

@media (max-width: 899.98px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .hero-copy { padding-bottom: var(--s-4); }
  .hero-art { min-height: 0; aspect-ratio: 16 / 10; margin-inline: calc(-1 * var(--gutter)); margin-block: 0 var(--s-4); }
  .hero-art.has-photo { margin-right: calc(-1 * var(--gutter)); }
}
@media (max-width: 479.98px) {
  .hero-actions .btn { width: 100%; }
}

/* ---------- expertise strip ---------- */
.expertise { background: var(--paper); border-bottom: 1px solid var(--line); }
.expertise-list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.expertise-list li + li { border-left: 1px solid var(--line); }
.expertise-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-1);
  height: 100%;
  padding: var(--s-5) var(--s-4);
  text-align: center;
  text-decoration: none;
  color: var(--midnight);
}
.expertise-item .icon { width: 40px; height: 40px; stroke-width: 1.5; margin-bottom: var(--s-1); transition: transform 0.15s ease; }
.expertise-item:hover .icon { transform: translateY(-2px); }
.expertise-item strong { font-size: var(--text-lg); font-weight: 600; line-height: 1.2; }
.expertise-item span { font-size: var(--text-sm); color: var(--ink-3); line-height: 1.4; }
.expertise-item:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
@media (max-width: 899.98px) {
  .expertise-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expertise-list li:nth-child(3) { border-left: 0; }
  .expertise-list li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .expertise-item { padding-block: var(--s-4); }
}
@media (max-width: 419.98px) {
  .expertise-item strong { font-size: var(--text-md); }
  .expertise-item span { font-size: var(--text-xs); }
  .expertise-item { padding-inline: var(--s-2); }
}

/* ---------- division cards ---------- */
.division-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.division-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--midnight);
  color: var(--on-dark);
  border: 1px solid var(--midnight);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.division-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.division-card:has(.card-link:focus-visible) { outline: 3px solid var(--focus-on-light); outline-offset: 3px; }
.card-art {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, var(--art-sky-2) 0%, var(--midnight) 100%);
  overflow: hidden;
}
.card-art .art-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(0deg, var(--midnight), transparent); pointer-events: none; }
.division-body { display: flex; flex-direction: column; gap: var(--s-2); flex: 1; padding: 0 var(--s-5) var(--s-5); margin-top: calc(-1 * var(--s-5)); position: relative; z-index: 1; }
.division-body .kicker { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--on-dark-2); }
.division-body h3 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); line-height: 1.08; }
.division-body p { font-size: var(--text-sm); color: var(--on-dark-2); line-height: 1.5; }
.division-body .btn { align-self: flex-start; margin-top: auto; min-height: 44px; }
.division-body .btn-slot { margin-top: auto; padding-top: var(--s-3); }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline: none; }
@media (max-width: 999.98px) {
  .division-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .division-card { flex-direction: row; }
  .division-card .card-art { flex: 0 0 42%; aspect-ratio: auto; min-height: 220px; }
  .division-card .card-art::after { inset: 0 0 0 auto; width: 40%; height: auto; background: linear-gradient(270deg, var(--midnight), transparent); }
  .division-body { margin-top: 0; padding: var(--s-5); justify-content: center; }
}
@media (max-width: 599.98px) {
  .division-card { flex-direction: column; }
  .division-card .card-art { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .division-card .card-art::after { inset: auto 0 0 0; width: auto; height: 45%; background: linear-gradient(0deg, var(--midnight), transparent); }
  .division-body { margin-top: calc(-1 * var(--s-4)); padding: 0 var(--s-4) var(--s-5); }
}

/* ---------- services band ---------- */
.services-band { background: var(--midnight); color: var(--on-dark); }
.services-grid { display: grid; grid-template-columns: minmax(10rem, 1.1fr) repeat(6, minmax(0, 1fr)); align-items: stretch; }
.services-head { display: flex; flex-direction: column; justify-content: center; padding: var(--s-5) var(--s-5) var(--s-5) 0; }
.services-head .kicker { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--on-dark-2); }
.services-head h2 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); overflow-wrap: normal; line-height: 1.05; margin-top: var(--s-1); }
.services-list { display: contents; list-style: none; }
.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 100%;
  min-height: 112px;
  padding: var(--s-4) var(--s-2);
  border-left: 1px solid var(--rule-dark);
  text-align: center;
  text-decoration: none;
  color: var(--on-dark);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.25;
}
.service-item .icon { width: 30px; height: 30px; stroke-width: 1.5; color: var(--silver); }
.service-item:hover { background: var(--glass-dark); }
.service-item:hover span { text-decoration: underline; text-underline-offset: 0.2em; }
.services-grid > li { display: block; }
@media (max-width: 1099.98px) {
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .services-head { grid-column: 1 / -1; padding: var(--s-5) 0 var(--s-3); }
  .service-item { border-top: 1px solid var(--rule-dark); }
  .services-grid > li:nth-child(4), .services-grid > li:nth-child(7) { }
  .services-grid > li:nth-child(2) .service-item, .services-grid > li:nth-child(5) .service-item { border-left: 0; }
}
@media (max-width: 559.98px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid > li .service-item { border-left: 1px solid var(--rule-dark); }
  .services-grid > li:nth-child(even) .service-item { border-left: 0; }
}

/* ---------- properties ---------- */
.props { background: var(--paper); }
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin-bottom: var(--s-4); }
.filter-bar.is-left { justify-content: flex-start; }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 1.25rem;
  background: var(--paper);
  color: var(--midnight);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { border-color: var(--midnight); }
.chip[aria-pressed="true"] { background: var(--midnight); color: var(--white); border-color: var(--midnight); }
.chip[aria-pressed="true"]:focus-visible { outline-offset: 3px; }

.props-tools { display: grid; gap: var(--s-3); margin-bottom: var(--s-4); }
.props-tools .group-label { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-2); }
.search-field { position: relative; max-width: 26rem; }
.search-field .icon { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search-field .input { padding-left: 2.6rem; }
.result-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); min-height: 44px; margin-bottom: var(--s-3); }
.result-count { font-size: var(--text-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.props .link-btn { color: var(--midnight); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; font-size: var(--text-sm); }

.carousel { position: relative; }
.listing-track {
  list-style: none;
  display: flex;
  gap: var(--s-4);
  padding: var(--s-2) 2px var(--s-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.listing-track > li, .listing-grid > li { display: flex; }
.listing-track > .listing-card, .listing-grid > .listing-card { height: auto; }
.listing-track > li { flex: 0 0 calc((100% - 2 * var(--s-4)) / 3); scroll-snap-align: start; min-width: 0; }
.listing-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
.carousel-btn {
  position: absolute;
  top: 38%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--paper);
  color: var(--midnight);
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
}
.carousel-btn:hover { border-color: var(--midnight); }
.carousel-btn[aria-disabled="true"] { opacity: 0.35; cursor: not-allowed; }
.carousel-btn.prev { left: -22px; }
.carousel-btn.next { right: -22px; }
.carousel-btn .icon { width: 22px; height: 22px; }
.carousel-nav { display: contents; }

.listing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.listing-card:hover { border-color: var(--midnight); box-shadow: var(--shadow-lift); }
.listing-card:has(.listing-link:focus-visible) { outline: 3px solid var(--focus-on-light); outline-offset: 3px; }
.listing-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(160deg, var(--art-sky-2) 0%, var(--midnight) 100%); overflow: hidden; }
.listing-media .art-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.listing-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.listing-flag { position: absolute; left: var(--s-2); top: var(--s-2); padding: 0.15rem 0.6rem; background: var(--silver); color: var(--midnight); border-radius: var(--radius-sm); font-size: var(--text-xs); font-weight: 700; }
.listing-body { display: flex; flex-direction: column; gap: var(--s-2); flex: 1; padding: var(--s-3) var(--s-4) var(--s-4); }
.listing-meta { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.listing-meta .sep { margin-inline: 0.35em; color: var(--line-strong); }
.listing-title { font-size: 1.25rem; line-height: 1.2; }
.listing-link { color: var(--ink); text-decoration: none; }
.listing-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.listing-link:focus-visible { outline: none; }
.listing-where { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; font-size: var(--text-sm); color: var(--ink-2); }
.listing-where .icon { width: 1.1em; height: 1.1em; color: var(--midnight); }
.listing-where .bar { color: var(--line-strong); }
.listing-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: auto; padding-top: var(--s-2); }
.listing-price { font-weight: 700; color: var(--midnight); font-variant-numeric: tabular-nums; }
.listing-go { display: grid; place-items: center; width: 40px; height: 32px; background: var(--silver); color: var(--midnight); border-radius: var(--radius-sm); transition: transform 0.15s ease; }
.listing-go .icon { width: 18px; height: 18px; }
.listing-card:hover .listing-go { transform: translateX(3px); }

html:not(.js) .is-skeleton { display: none; }
.listing-card.is-skeleton { pointer-events: none; }
.listing-card.is-skeleton .listing-media, .listing-card.is-skeleton .sk { background: linear-gradient(90deg, var(--shimmer-a), var(--shimmer-b), var(--shimmer-a)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.listing-card.is-skeleton .sk { height: 1rem; border-radius: var(--radius-sm); }
.listing-card.is-skeleton .sk.w60 { width: 60%; }
.listing-card.is-skeleton .sk.w40 { width: 40%; }
.listing-card.is-skeleton .sk.w80 { width: 80%; height: 1.4rem; }
@keyframes shimmer { to { background-position: -200% 0; } }

.state-box {
  display: grid;
  justify-items: center;
  gap: var(--s-3);
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  background: var(--mist);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}
.state-box[hidden] { display: none; }
.state-box .icon { width: 36px; height: 36px; color: var(--midnight); stroke-width: 1.5; }
.state-box p { color: var(--ink-2); max-width: 32rem; }
.state-box .state-title { font-size: var(--text-lg); font-weight: 700; color: var(--midnight); }
.state-box.is-error { border-color: var(--danger); background: var(--danger-bg); border-style: solid; }
.state-box.is-error .icon { color: var(--danger); }
.state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }
.props-foot { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
.props-note { max-width: 46rem; margin-top: var(--s-6); font-size: var(--text-sm); color: var(--ink-3); }

@media (max-width: 1099.98px) {
  .listing-track > li { flex-basis: calc((100% - var(--s-4)) / 2); }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel-nav { display: flex; justify-content: flex-end; gap: var(--s-2); margin-top: var(--s-1); }
  .carousel-btn, .carousel-btn.prev, .carousel-btn.next { position: static; }
}
@media (max-width: 599.98px) {
  .listing-track > li { flex-basis: 84%; }
  .listing-grid { grid-template-columns: minmax(0, 1fr); }
  .filter-bar .chip { flex: 1 1 calc(50% - var(--s-2)); padding-inline: var(--s-3); }
}

/* ---------- subscribe band ---------- */
.subscribe-band { background: var(--silver); border-block: 1px solid var(--line); }
.subscribe-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding-block: clamp(2rem, 4vw, 3rem); }
.subscribe-copy { display: flex; gap: var(--s-4); align-items: flex-start; }
.subscribe-icon { display: grid; place-items: center; flex: none; width: 64px; height: 64px; color: var(--midnight); border-right: 1px solid var(--line-strong); padding-right: var(--s-4); width: 76px; }
.subscribe-icon .icon { width: 44px; height: 44px; stroke-width: 1.4; }
.subscribe-copy h2 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); color: var(--midnight); }
.subscribe-copy p { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--text-sm); }
.subscribe-form .field { margin-bottom: var(--s-3); }
.subscribe-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-3); align-items: start; }
.subscribe-btn { margin-top: calc(1.5rem + var(--s-2)); min-width: 10rem; }
.interest-group { margin: 0 0 var(--s-3); padding: 0; border: 0; min-width: 0; }
.interest-group legend { padding: 0; margin-bottom: var(--s-2); font-size: var(--text-sm); font-weight: 600; }
.interest-group .optional { font-weight: 400; color: var(--ink-3); }
.interest-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip-check { position: relative; display: inline-flex; }
.chip-check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip-check span { display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 1rem; background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 600; color: var(--midnight); }
.chip-check input:checked + span { background: var(--midnight); border-color: var(--midnight); color: var(--white); }
.chip-check input:focus-visible + span { outline: 3px solid var(--focus-on-light); outline-offset: 2px; }
.subscribe-form .consent-field { margin-bottom: var(--s-2); }
.subscribe-form .check label { color: var(--ink); }
@media (max-width: 899.98px) {
  .subscribe-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479.98px) {
  .subscribe-row { grid-template-columns: minmax(0, 1fr); }
  .subscribe-btn { margin-top: 0; width: 100%; }
  .subscribe-icon { display: none; }
}

/* ---------- direct line ---------- */
.direct-line { background: var(--paper); }
.direct-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding-block: clamp(2rem, 4vw, 3rem); }
.direct-grid h2 { font-size: var(--text-2xl); color: var(--midnight); line-height: 1.05; }
.direct-grid .direct-note { margin-top: var(--s-3); font-size: var(--text-sm); color: var(--ink-2); }
.direct-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.direct-list li { display: flex; flex-direction: column; gap: var(--s-3); align-items: flex-start; padding: var(--s-2) var(--s-5); }
.direct-list li + li { border-left: 1px solid var(--line); }
.direct-top { display: flex; align-items: center; gap: var(--s-3); font-size: var(--text-lg); font-weight: 600; line-height: 1.2; color: var(--midnight); }
.direct-top .icon { width: 40px; height: 40px; stroke-width: 1.5; }
.direct-list .btn { width: 100%; max-width: 15rem; min-height: 46px; }
@media (max-width: 999.98px) {
  .direct-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 679.98px) {
  .direct-list { grid-template-columns: minmax(0, 1fr); }
  .direct-list li { padding-inline: 0; }
  .direct-list li + li { border-left: 0; border-top: 1px solid var(--line); padding-top: var(--s-4); }
  .direct-list .btn { max-width: none; }
}

/* ---------- inner page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--midnight) 0%, var(--art-sky-1) 100%);
  color: var(--on-dark);
  padding-block: clamp(2rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem);
}
.page-hero .hero-grid-lines { position: absolute; right: 0; top: 0; height: 100%; width: min(48%, 620px); color: var(--platinum); opacity: 0.2; }
.page-hero .wrap { position: relative; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); align-items: center; }
.page-hero.has-art .page-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.page-hero h1 { margin-top: var(--s-4); max-width: 22ch; font-size: var(--text-2xl); font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; }
.page-hero .lead { margin-top: var(--s-4); max-width: 42rem; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--on-dark-2); }
.page-hero .lead a { color: var(--on-dark); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.page-hero .hero-actions { margin-top: var(--s-5); }
.page-hero-art { position: relative; aspect-ratio: 4 / 3; max-height: 280px; }
.page-hero-art .art-svg { width: 100%; height: 100%; }
@media (max-width: 899.98px) {
  .page-hero.has-art .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero-art { display: none; }
}

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; font-size: var(--text-sm); color: var(--on-dark-3); }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin-inline: 0.5rem; color: var(--on-dark-3); }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--on-dark-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.breadcrumbs a:hover { color: var(--on-dark); }
.breadcrumbs [aria-current="page"] { color: var(--on-dark-3); overflow-wrap: anywhere; }

.badge-row { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.badge { padding: 0.2rem 0.75rem; background: var(--glass-dark); border: 1px solid var(--rule-dark); border-radius: var(--radius-sm); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark); }
.badge-alert { background: var(--silver); color: var(--midnight); border-color: var(--silver); }

/* ---------- content layouts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 899.98px) { .split { grid-template-columns: minmax(0, 1fr); } }
.sticky-aside { position: sticky; top: var(--s-5); }
@media (max-width: 899.98px) { .sticky-aside { position: static; } }

.prose { max-width: 46rem; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { font-size: var(--text-xl); margin-top: var(--s-7); color: var(--midnight); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--text-lg); margin-top: var(--s-5); }
.prose p, .prose li { color: var(--ink-2); }
.prose .answer { font-size: var(--text-lg); line-height: 1.5; color: var(--ink); }
.prose ul { padding-left: 1.25rem; }
.prose ul > li + li { margin-top: var(--s-2); }
.prose li::marker { color: var(--midnight); }
.prose a:not(.btn) { color: var(--midnight); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.prose a:not(.btn):hover { text-decoration-thickness: 2px; }
.prose strong { color: var(--ink); }
.prose-section + .prose-section { margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.prose-section > h2 { margin-top: 0; }
.prose-section > * + * { margin-top: var(--s-4); }
.prose .notice, .notice { padding: var(--s-4); border-left: 4px solid var(--midnight); background: var(--mist); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2); font-size: var(--text-sm); }

.check-list { list-style: none; padding: 0 !important; display: grid; gap: var(--s-3); }
.check-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3); align-items: start; margin: 0 !important; }
.check-list .icon { color: var(--midnight); margin-top: 0.2em; width: 1.15em; height: 1.15em; }

.side-card { padding: clamp(1.25rem, 3vw, 2rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.side-card + .side-card { margin-top: var(--s-5); }
.side-card h2, .side-card h3 { font-size: var(--text-lg); color: var(--midnight); }
.side-card > * + * { margin-top: var(--s-3); }
.side-card p { color: var(--ink-2); font-size: var(--text-sm); }
.side-card .btn { width: 100%; }
.side-card.dark { background: var(--midnight); color: var(--on-dark); border-color: var(--midnight); }
.side-card.dark h2, .side-card.dark h3 { color: var(--on-dark); }
.side-card.dark p { color: var(--on-dark-2); }
.side-card .brand-logo { width: 100%; max-width: 320px; margin-inline: auto; border-radius: var(--radius-sm); }
.toc { list-style: none; display: grid; gap: 0; }
.toc a { display: flex; align-items: center; min-height: 44px; padding-block: 0.25rem; color: var(--ink-2); font-size: var(--text-sm); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.toc li:last-child a { border-bottom: 0; }
.toc a:hover { color: var(--midnight); text-decoration: underline; text-underline-offset: 0.2em; }
.phone-line { display: flex; align-items: center; gap: var(--s-3); font-size: var(--text-xl); font-weight: 700; color: var(--midnight); text-decoration: none; min-height: 44px; }
.phone-line .icon { width: 1.1em; height: 1.1em; }

.contact-list { list-style: none; display: grid; gap: var(--s-3); }
.contact-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3); align-items: center; }
.icon-tile { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--midnight); color: var(--white); }
.icon-tile .icon { width: 22px; height: 22px; }
.contact-list .icon-tile { width: 40px; height: 40px; }
.contact-list .icon-tile .icon { width: 20px; height: 20px; }
.contact-list .label { display: block; font-size: var(--text-xs); color: var(--ink-3); font-weight: 500; }
.contact-list a { display: inline-flex; align-items: center; min-height: 32px; color: var(--midnight); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.contact-list .value { color: var(--ink); font-weight: 600; }

/* related links row */
.related { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.related a { display: flex; align-items: center; gap: var(--s-3); min-height: 64px; height: 100%; padding: var(--s-3) var(--s-4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 600; line-height: 1.25; text-decoration: none; }
.related a:hover { border-color: var(--midnight); }
.related .icon-tile { width: 36px; height: 36px; flex: none; }
.related .icon-tile .icon { width: 18px; height: 18px; }
@media (max-width: 999.98px) { .related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 519.98px) { .related { grid-template-columns: minmax(0, 1fr); } }

/* CTA band */
.cta-band { background: var(--midnight); color: var(--on-dark); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.cta-band h2 { font-size: var(--text-xl); text-transform: uppercase; letter-spacing: 0.02em; }
.cta-band p { margin-top: var(--s-2); color: var(--on-dark-2); max-width: 40rem; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (max-width: 479.98px) { .cta-band .actions, .cta-band .actions .btn { width: 100%; } }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 60px; padding-block: var(--s-3); font-size: var(--text-lg); font-weight: 600; line-height: 1.3; color: var(--midnight); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 0.15s ease; color: var(--midnight); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq summary:focus-visible { outline-offset: 2px; }
.faq .faq-answer { padding-bottom: var(--s-5); color: var(--ink-2); max-width: 46rem; }
.faq .faq-answer > * + * { margin-top: var(--s-3); }
.faq .faq-answer a { color: var(--midnight); font-weight: 600; text-underline-offset: 0.2em; }
.faq-group + .faq-group { margin-top: var(--s-7); }
.faq-group > h2 { margin-bottom: var(--s-3); font-size: var(--text-xl); color: var(--midnight); }

/* ---------- forms ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form-layout.form-first { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 899.98px) { .form-layout, .form-layout.form-first { grid-template-columns: minmax(0, 1fr); } }

.form-card { padding: clamp(1.25rem, 4vw, 2.5rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.form-card h2 { font-size: var(--text-xl); color: var(--midnight); }
.form-card .form-intro { margin-top: var(--s-2); color: var(--ink-3); font-size: var(--text-sm); }
.form-card form { margin-top: var(--s-5); }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-4); }
@media (max-width: 599.98px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field { margin-bottom: var(--s-5); }
.field > label, .field > .label { display: block; margin-bottom: var(--s-2); font-weight: 600; font-size: var(--text-sm); color: var(--ink); }
.field .optional { font-weight: 400; color: var(--ink-3); }
.field .hint { margin: calc(-1 * var(--s-1)) 0 var(--s-2); font-size: var(--text-sm); color: var(--ink-3); }
.input, .select select, .textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: var(--text-md);
  line-height: 1.4;
  color: var(--ink);
}
.textarea { min-height: 150px; resize: vertical; }
.input:hover, .select select:hover, .textarea:hover { border-color: var(--ink-2); }
.input:focus-visible, .select select:focus-visible, .textarea:focus-visible { outline: 3px solid var(--focus-on-light); outline-offset: 1px; border-color: var(--midnight); }
.input[aria-invalid="true"], .select select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer; }
.select .icon { position: absolute; right: 0.85rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-2); }

.field-error { display: flex; align-items: flex-start; gap: var(--s-2); margin-top: var(--s-2); color: var(--danger); font-size: var(--text-sm); font-weight: 600; }
.field-error[hidden] { display: none; }
.field-error .icon { width: 1.1em; height: 1.1em; margin-top: 0.15em; }

.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3); align-items: start; }
.check input { width: 24px; height: 24px; margin: 0.1rem 0 0; accent-color: var(--midnight); cursor: pointer; }
.check label { font-size: var(--text-sm); color: var(--ink-2); cursor: pointer; padding-block: 0.1rem; }
.check-group { min-width: 0; margin: 0 0 var(--s-5); padding: var(--s-4); background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); }
.check-group .field { margin-bottom: var(--s-4); }
.check-group .field:last-child { margin-bottom: 0; }
.check-group .legal-links { margin-top: var(--s-2); padding-left: calc(24px + var(--s-3)); font-size: var(--text-sm); }
.check-group .legal-links a { color: var(--midnight); font-weight: 600; text-underline-offset: 0.2em; display: inline-flex; align-items: center; min-height: 32px; }

/* consent text is loaded from the server: a calm placeholder until it arrives */
.consent-text:empty::before { content: "Loading the consent wording"; color: var(--ink-3); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.form-actions .btn { min-width: 12rem; }
@media (max-width: 479.98px) { .form-actions .btn { width: 100%; } }
.form-note { margin-top: var(--s-4); font-size: var(--text-sm); color: var(--ink-3); }
.form-note a { color: var(--midnight); font-weight: 600; }
.form-status { font-size: var(--text-sm); color: var(--ink-3); }

/* honeypot: off-screen, out of the tab order and hidden from screen readers */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.alert, .error-summary { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); margin-bottom: var(--s-5); border-radius: var(--radius); border-left: 4px solid var(--danger); background: var(--danger-bg); color: var(--ink); }
.alert[hidden], .error-summary[hidden] { display: none; }
.alert .icon, .error-summary .icon { color: var(--danger); margin-top: 0.1em; }
.alert.is-info { border-left-color: var(--info); background: var(--info-bg); }
.alert.is-info .icon { color: var(--info); }
.alert-body { display: grid; gap: var(--s-2); min-width: 0; }
.alert-body p { font-size: var(--text-sm); }
.alert-action { justify-self: start; min-height: 44px; padding: 0.4rem 1rem; background: var(--paper); border: 1.5px solid var(--midnight); border-radius: var(--radius-sm); color: var(--midnight); font-weight: 600; }
.alert-action[hidden] { display: none; }
.error-summary:focus { outline: 3px solid var(--focus-on-light); outline-offset: 3px; }
.error-summary h2 { font-size: var(--text-md); color: var(--ink); }
.error-summary ul { list-style: none; display: grid; gap: var(--s-1); margin-top: var(--s-2); }
.error-summary a { display: inline-flex; align-items: center; min-height: 32px; color: var(--danger); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }

/* thank-you and notice pages */
.thanks-card { max-width: 44rem; }
.thanks-line { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border-radius: var(--radius); background: var(--ok-bg); border-left: 4px solid var(--ok); color: var(--ink); font-weight: 600; }
.thanks-line[hidden] { display: none; }
.thanks-line .icon { color: var(--ok); margin-top: 0.15em; }
.thanks-line.is-info { background: var(--info-bg); border-left-color: var(--info); }
.thanks-line.is-info .icon { color: var(--info); }
.ref { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* ---------- listing detail ---------- */
.listing-split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.listing-main > * + * { margin-top: var(--s-6); }
.listing-main h2 { font-size: var(--text-xl); color: var(--midnight); margin-bottom: var(--s-3); }
.gallery-main { margin: 0; aspect-ratio: 3 / 2; background: var(--mist); border-radius: var(--radius-lg); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: var(--s-2); margin-top: var(--s-3); }
.thumb { display: block; width: 100%; aspect-ratio: 3 / 2; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; background: var(--mist); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-pressed="true"] { border-color: var(--midnight); }
.gallery-art { aspect-ratio: 3 / 2; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(160deg, var(--art-sky-2) 0%, var(--midnight) 100%); }
.gallery-art .art-svg { width: 100%; height: 100%; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-5); margin: 0; }
.facts > div { display: flex; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-3); font-size: var(--text-sm); }
.facts dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.listing-about p { color: var(--ink-2); max-width: 46rem; }
.listing-about p + p { margin-top: var(--s-3); }
.attribution, .listing-note { font-size: var(--text-sm); color: var(--ink-3); }
.attribution a { color: var(--midnight); font-weight: 600; }
.inquiry-card { position: sticky; top: var(--s-5); }
.inquiry-price { font-size: var(--text-xl); font-weight: 700; color: var(--midnight); }
.inquiry-card .form-actions .btn { min-width: 0; width: 100%; }
.inquiry-card form { margin-top: var(--s-4); }
@media (max-width: 899.98px) {
  .listing-split { grid-template-columns: minmax(0, 1fr); }
  .inquiry-card { position: static; }
}
@media (max-width: 559.98px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.site-footer { background: var(--midnight); color: var(--on-dark-2); border-top: 1px solid var(--rule-dark); }
.footer-grid {
  display: grid;
  grid-template-columns: auto minmax(15rem, auto) minmax(11rem, auto) repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
  align-items: center;
  padding-block: clamp(2rem, 4vw, 2.75rem);
}
.footer-grid > * + * { border-left: 1px solid var(--rule-dark); padding-left: var(--s-5); }
.footer-grid > .footer-address { min-width: 0; }
.footer-phone { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 44px; color: var(--on-dark); font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 700; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; }
.footer-phone .icon { width: 1.3em; height: 1.3em; color: var(--platinum); }
.footer-phone:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.footer-sub { margin-top: var(--s-1); font-size: var(--text-sm); color: var(--on-dark-3); }
.footer-address { display: flex; gap: var(--s-3); align-items: flex-start; font-style: normal; font-size: var(--text-sm); line-height: 1.5; color: var(--on-dark); }
.footer-address .icon { color: var(--platinum); width: 1.5em; height: 1.5em; margin-top: 0.1em; }
.footer-head { font-size: var(--text-md); font-weight: 600; color: var(--on-dark); margin-bottom: var(--s-1); }
.footer-links { list-style: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--on-dark-2); font-size: var(--text-sm); text-decoration: none; }
.footer-links a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 0.2em; }
.footer-legal-bar { background: var(--midnight-3); }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-1) var(--s-5); padding-block: var(--s-3); font-size: var(--text-sm); color: var(--on-dark-3); }
.footer-legal .parent-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark-2); text-underline-offset: 0.2em; }
.footer-legal .eho { margin-left: 0.4em; white-space: nowrap; }
.footer-legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 var(--s-2); }
.footer-legal li + li::before { content: "|"; margin-right: var(--s-2); color: var(--on-dark-3); }
.footer-legal ul a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark-2); text-decoration: none; }
.footer-legal ul a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 0.2em; }
.footer-legal li[hidden] { display: none; }

@media (max-width: 1199.98px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s-6); align-items: start; }
  .footer-grid > * + * { border-left: 0; padding-left: 0; }
  .footer-grid > :nth-child(2), .footer-grid > :nth-child(3), .footer-grid > :nth-child(5), .footer-grid > :nth-child(6) { border-left: 1px solid var(--rule-dark); padding-left: var(--s-5); }
}
@media (max-width: 679.98px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .footer-grid > :nth-child(n) { border-left: 0; padding-left: 0; }
  .footer-grid > * + * { border-top: 1px solid var(--rule-dark); padding-top: var(--s-4); }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .footer-links a { min-height: 44px; }
}

.link-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; color: var(--on-dark-2); font-size: inherit; text-decoration: none; }
.link-btn:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- sticky call bar (phones) ---------- */
.call-bar { display: none; }
@media (max-width: 839.98px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .call-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: var(--s-2);
    padding: var(--s-2) var(--s-3) calc(var(--s-2) + env(safe-area-inset-bottom, 0px));
    background: var(--midnight);
    border-top: 1px solid var(--rule-dark);
  }
  .call-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 44px; border-radius: var(--radius-sm); font-weight: 700; font-size: var(--text-sm); text-decoration: none; text-align: center; line-height: 1.15; }
  .call-main { background: var(--silver); color: var(--midnight); }
  .call-alt { border: 1.5px solid var(--platinum); color: var(--on-dark); }
  .call-btn .icon { width: 1.15em; height: 1.15em; }
}

/* ---------- cookie bar (in the page flow, never fixed) ---------- */
.consent-bar { background: var(--silver); color: var(--ink); border-bottom: 1px solid var(--line); }
.consent-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); padding-block: var(--s-4); }
.consent-copy { max-width: 52rem; }
.consent-copy h2 { font-size: var(--text-md); }
.consent-copy p { font-size: var(--text-sm); color: var(--ink-2); margin-top: var(--s-1); }
.consent-copy a { display: inline-flex; align-items: center; min-height: 44px; color: var(--midnight); font-weight: 600; text-underline-offset: 0.2em; }
.consent-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.consent-actions .btn { min-width: 8rem; }
.consent-bar .btn-ghost { background: var(--paper); }

/* ---------- 404 ---------- */
.not-found-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .art-lit { opacity: 1; }
  .listing-card.is-skeleton .listing-media, .listing-card.is-skeleton .sk { animation: none; }
}

@media (max-width: 699.98px) {
  .page-hero .hero-grid-lines { width: 70%; opacity: 0.1; }
}

.nowrap { white-space: nowrap; }

@media (max-width: 479.98px) { .eyebrow { letter-spacing: 0.12em; } }
