/* ============================================================
   Solā Collective — design system
   Colours sampled from Sola Collective Branding.pdf
   ============================================================ */

:root {
  --paper:   #F9F5EB;
  --sand:    #F2EBDC;
  --sand-2:  #EDE5D3;
  --ink:     #262A1F;
  --rule:    #DAD8CD;
  --muted:   #54564B;
  --pacific: #22434B;
  --pacific-soft: #35606B;

  /* spacing scale */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1400px;
  --band: clamp(88px, 10vw, 152px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --spring: cubic-bezier(0.16, 1, 0.3, 1);

  /* layered, colour-tinted shadows */
  --lift-1: 0 1px 2px rgba(38,42,31,.05), 0 4px 10px -4px rgba(38,42,31,.07);
  --lift-2: 0 2px 4px rgba(38,42,31,.06), 0 14px 32px -12px rgba(38,42,31,.16);
  --lift-3: 0 4px 8px rgba(38,42,31,.07), 0 40px 80px -24px rgba(38,42,31,.28);
}

* { box-sizing: border-box; }

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

/* keep anchor targets clear of the sticky header */
:target, section[id], #homes, #services, #places, #contact { scroll-margin-top: 92px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Figtree', ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

/* Paper grain — very low opacity SVG noise for depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}

/* Ambient warmth — layered radial gradients, no hard edges */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 82% -8%,  rgba(34,67,75,.07), transparent 62%),
    radial-gradient(900px 520px at 4% 8%,     rgba(214,196,158,.24), transparent 60%);
}

main, header, footer { position: relative; z-index: 1; }

::selection { background: var(--ink); color: var(--paper); }

/* ---------- Layout primitives ---------- */

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

/* Full-bleed hairline — the recurring "horizon" */
.horizon {
  height: 1px;
  width: 100%;
  background: var(--rule);
  border: 0;
  margin: 0;
}

.band { padding-block: var(--band); }

/* ---------- Typography ---------- */

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: .17em;
  text-transform: uppercase;
  font-weight: 500;
}

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: .19em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::after {
  content: '';
  height: 1px;
  flex: 1;
  max-width: 88px;
  background: var(--rule);
}

.display {
  font-weight: 300;
  letter-spacing: -.042em;
  line-height: .95;
  margin: 0;
  text-wrap: balance;
}

h2.section-title {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -.038em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1rem, 1.25vw, 1.1875rem);
  line-height: 1.72;
  color: var(--muted);
  max-width: 46ch;
  margin: 0;
}

/* ---------- Focus ---------- */

:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--pacific);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: 8px;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 200;
  transition: transform .2s var(--ease);
}
.skip:focus { transform: translateY(0); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(249,245,235,.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--rule);
  background: rgba(249,245,235,.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  height: 74px;
}

/* Wordmark — the macron travels from over the "a" to under the word */
.wordmark {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: .34em;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.035em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  padding-block: 10px;
  flex: none;
}
.wm-a { position: relative; }
.wm-macron {
  position: absolute;
  left: 0;
  top: -.30em;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transform-origin: left center;
  transform: translate(var(--mx, 0px), var(--my, 0px)) scaleX(var(--ms, 1));
  transition: transform .55s var(--spring);
}
.wordmark:hover .wm-macron,
.wordmark:focus-visible .wm-macron {
  --mx: var(--mx-h, 0px);
  --my: var(--my-h, 0px);
  --ms: var(--ms-h, 1);
}
.wm-rest { font-weight: 300; letter-spacing: -.03em; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.nav-link {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding-block: 6px;
  transition: color .25s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s var(--spring);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */

.btn {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .35s var(--spring), background-color .3s var(--ease),
              color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); }

.btn-primary {
  background: var(--pacific);
  color: #F4F1E6;
  box-shadow: var(--lift-1);
}
.btn-primary:hover {
  background: var(--pacific-soft);
  transform: translateY(-1px);
  box-shadow: var(--lift-2);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(38,42,31,.04);
  transform: translateY(-1px);
}

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { transform: translateY(-1px); box-shadow: var(--lift-2); }

.btn-lg { padding: 16px 30px; font-size: 11px; }

.btn .arrow {
  display: inline-block;
  transition: transform .4s var(--spring);
}
.btn:hover .arrow { transform: translateX(4px); }

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

.hero { padding-top: clamp(48px, 7vw, 96px); }

.hero h1 {
  font-size: clamp(2.75rem, 7.4vw, 6.6rem);
  margin-top: clamp(20px, 2.4vw, 34px);
}

/* Lede sits below the headline and hard left, flush with the h1. */
.hero-sub {
  display: grid;
  grid-template-columns: minmax(0, min(48ch, 42%)) minmax(0, 1fr);
  margin-top: clamp(30px, 3.6vw, 52px);
  padding-bottom: clamp(36px, 4.2vw, 60px);
}

/* The dynamic clause driven by the horizon rail.
   The bar sits ABOVE the words — the macron, enlarged. */
.term-phrase {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding-bottom: .17em;
}
.term-phrase::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: clamp(4px, .62vw, 8px);
  background: var(--pacific);
  border-radius: 99px;
  transform-origin: left center;
  animation: draw .7s var(--spring) both;
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@keyframes swap {
  from { opacity: 0; transform: translateY(.22em); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-aside {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}

/* ---------- The horizon rail (signature) ---------- */

.rail-wrap { position: relative; padding-block: clamp(28px, 3.4vw, 44px) 0; }

.rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s5);
  flex-wrap: wrap;
  margin-bottom: clamp(26px, 3vw, 40px);
}

.rail {
  position: relative;
  height: 36px;
  touch-action: pan-y;
}

/* the line itself runs edge to edge of the viewport */
.rail-track {
  position: absolute;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  top: 22px;
  height: 1.5px;
  background: rgba(38,42,31,.17);
}

.rail-fill {
  position: absolute;
  left: calc(50% - 50vw);
  top: 22px;
  height: 1.5px;
  background: var(--ink);
  width: calc(50vw - 50% + var(--pos, 0px));
  transition: width .5s var(--spring);
}

.rail-stops {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rail-stop {
  position: absolute;
  top: 22px;
  transform: translateX(-50%);
  width: 1.5px;
  height: 9px;
  background: rgba(38,42,31,.26);
  transition: background-color .4s var(--ease);
}
.rail-stop.is-past { background: var(--ink); }

/* Mark C — the enclosure/dome, riding the horizon */
.rail-dome {
  position: absolute;
  top: 22px;
  left: 0;
  width: 34px;
  height: 17px;
  margin-left: -17px;
  background: var(--ink);
  border-radius: 999px 999px 0 0;
  transform: translate(var(--pos, 0px), -17px);
  transition: transform .5s var(--spring), box-shadow .3s var(--ease);
  box-shadow: 0 8px 16px -8px rgba(38,42,31,.55);
  pointer-events: none;
}
.rail-dome::after {
  content: '';
  position: absolute;
  inset: -9px -9px 0 -9px;
  border-radius: 999px 999px 0 0;
  border: 2px solid var(--pacific);
  border-bottom: 0;
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.rail:has(.rail-input:focus-visible) .rail-dome::after { opacity: 1; }
.rail:hover .rail-dome { box-shadow: 0 10px 22px -8px rgba(38,42,31,.6); }

.rail-input {
  position: absolute;
  left: 0;
  top: 6px;
  width: 100%;
  height: 30px;
  margin: 0;
  opacity: 0;
  cursor: grab;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.rail-input:active { cursor: grabbing; }
.rail-input::-webkit-slider-thumb { -webkit-appearance: none; width: 42px; height: 30px; }
.rail-input::-moz-range-thumb { width: 42px; height: 30px; border: 0; }

.rail-labels {
  position: relative;
  height: 30px;
  margin-top: 0;
}
.rail-label {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 6px 4px;
  transition: color .3s var(--ease), transform .4s var(--spring);
}
.rail-label:hover { color: var(--ink); }
.rail-label[aria-current='true'] {
  color: var(--ink);
  font-weight: 500;
}
.rail-label:first-child { transform: translateX(0); }
.rail-label:last-child  { transform: translateX(-100%); }

/* ---------- Search row ---------- */

.search {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255,253,248,.72);
  padding: 6px 6px 6px 8px;
  box-shadow: var(--lift-1);
  margin-top: clamp(26px, 3vw, 40px);
  transition: box-shadow .35s var(--ease), border-color .3s var(--ease);
}
.search:focus-within { border-color: #C4C0B2; box-shadow: var(--lift-2); }

.field {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 20px;
  border-right: 1px solid var(--rule);
  min-width: 0;
}
.field:nth-of-type(3) { border-right: 0; }
.field label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field select,
.field input {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 0;
  width: 100%;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-weight: 400;
}
.field input { cursor: text; }
.field select:focus, .field input:focus { outline: none; }
.field:focus-within label { color: var(--ink); }

.search .btn { align-self: center; }

/* ---------- Hero image band ---------- */

.hero-band {
  position: relative;
  height: clamp(280px, 42vw, 560px);
  overflow: hidden;
  background: linear-gradient(160deg, var(--sand-2), var(--ink));
}
.hero-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  animation: settle 1.8s var(--spring) both;
}
@keyframes settle { from { transform: scale(1.1); } to { transform: scale(1); } }

/* A light foot, only enough to seat the photo on the page. The tags and notes
   that sit over a card carry their own pill backgrounds, so nothing here is
   holding up legibility — it can stay subtle. */
.img-treat::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(38,42,31,.22), rgba(38,42,31,0) 42%);
  pointer-events: none;
}

/* The hero caption is bare text on the photograph, so it does need a real
   gradient under it — but only across the bottom band where the words sit. */
.hero-band.img-treat::before {
  background: linear-gradient(to top, rgba(38,42,31,.72) 0%, rgba(38,42,31,.28) 18%, rgba(38,42,31,0) 46%);
}

/* A whisper of sand to keep the photographs in the same family as the paper.
   Multiply darkens, so this is kept low. */
.img-treat::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--sand);
  mix-blend-mode: multiply;
  opacity: .05;
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(20px, 2.6vw, 34px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s5);
  color: rgba(249,245,235,.9);
  flex-wrap: wrap;
}
.hero-caption .mono { color: rgba(249,245,235,.72); }

/* ---------- Stat rail ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}
.stat {
  padding: clamp(22px, 2.6vw, 34px) clamp(14px, 2vw, 28px);
  border-right: 1px solid var(--rule);
}
.stat:last-child { border-right: 0; }
.stat dt {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.stat dd {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: 1.05;
}

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

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(34px, 4vw, 56px);
}

.filters {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  padding-bottom: clamp(24px, 3vw, 34px);
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(32px, 3.6vw, 48px);
}

.chip {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: transform .3s var(--spring), background-color .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease);
}
.chip:hover { color: var(--ink); border-color: #C4C0B2; transform: translateY(-1px); }
.chip[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.chip:active { transform: translateY(0) scale(.97); }

.filter-count {
  margin-left: auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(24px, 2.6vw, 40px) clamp(20px, 2.2vw, 32px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-decoration: none;   /* the results page renders cards as links */
  transition: transform .5s var(--spring);
  animation: rise .55s var(--spring) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card:hover { transform: translateY(-4px); }

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 3px;
  background: linear-gradient(150deg, var(--sand-2), #A9A998);
  box-shadow: var(--lift-1);
  transition: box-shadow .45s var(--ease);
}
.card:hover .card-media { box-shadow: var(--lift-2); }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.005);
  transition: transform .8s var(--spring);
}
.card:hover .card-media img { transform: scale(1.055); }

.card-tag {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(249,245,235,.93);
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.card-tag.is-now { background: var(--pacific); color: #F4F1E6; }
.card-tag.is-let { background: rgba(38,42,31,.9); color: rgba(249,245,235,.82); }

/* Homes outside the chosen term stay visible but recede. */
.card.is-off { opacity: .58; }
.card.is-off:hover, .card.is-off:focus-visible { opacity: 1; }

.card-note {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(249,245,235,.9);
  color: var(--muted);
  backdrop-filter: blur(6px);
}

/* Let homes stay on the list but read as archive, not offer. */
.card.is-let .card-media img { filter: saturate(.72); }
.card.is-let:hover .card-media img { filter: saturate(1); }
.card.is-let .card-price { color: var(--muted); }

.card-body { padding-top: 18px; }

.card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.card-name {
  font-size: 1.24rem;
  font-weight: 400;
  letter-spacing: -.024em;
  line-height: 1.25;
  margin: 0;
  position: relative;
  display: inline-block;
}
.card-name::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .5s var(--spring);
}
.card:hover .card-name::after { transform: scaleX(1); }

.card-price {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: -.01em;
  font-weight: 500;
  white-space: nowrap;
  flex: none;
}
.card-price span {
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.card-meta {
  margin-top: 7px;
  font-size: 14.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.card-meta i { font-style: normal; opacity: .42; }

/* term availability strip — the horizon, miniaturised */
.card-terms {
  display: flex;
  gap: 3px;
  margin-top: 15px;
  align-items: center;
}
.card-terms .seg {
  height: 2px;
  flex: 1;
  background: var(--rule);
  border-radius: 2px;
  transition: background-color .4s var(--ease);
}
.card-terms .seg.on { background: var(--ink); }
.card-terms .seg.here { background: var(--pacific); }
.card-terms .cap {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 8px;
  flex: none;
}

.empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--rule);
  border-radius: 3px;
  padding: clamp(40px, 6vw, 76px) var(--s6);
  text-align: center;
  background: rgba(242,235,220,.4);
}
.empty h3 {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -.03em;
  margin: 0 0 10px;
}
.empty p { color: var(--muted); margin: 0 auto 22px; max-width: 42ch; }

/* ============================================================
   Services — the four marks
   ============================================================ */

.services { background: var(--sand); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  margin-top: clamp(36px, 4vw, 60px);
}

.service {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(26px, 2.8vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: transparent;
  transition: background-color .45s var(--ease);
}
.service:hover { background: rgba(249,245,235,.6); }

.service svg { display: block; color: var(--ink); }
.service .mark-wrap {
  height: 56px;
  display: flex;
  align-items: center;
  transition: transform .6s var(--spring);
}
.service:hover .mark-wrap { transform: translateY(-3px); }

.service .mono { color: var(--muted); }
.service h3 {
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: -.028em;
  margin: 0;
  line-height: 1.2;
}
.service p {
  margin: 0;
  font-size: 15px;
  line-height: 1.68;
  color: var(--muted);
}

/* ============================================================
   Places
   ============================================================ */

.places {
  border-top: 1px solid var(--rule);
}
.place {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.1fr) auto auto;
  align-items: center;
  gap: clamp(14px, 2.4vw, 40px);
  padding: clamp(20px, 2.2vw, 28px) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  background: transparent;
  border-left: 0; border-right: 0; border-top: 0;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background-color .4s var(--ease), padding-inline .5s var(--spring);
}
.place:hover {
  background: rgba(242,235,220,.62);
  padding-inline: clamp(8px, 1.4vw, 20px);
}
.place .idx {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
}
.place .name {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 300;
  letter-spacing: -.035em;
}
.place .note { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.place .from {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  white-space: nowrap;
}
.place .from em { font-style: normal; color: var(--muted); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; }
.place .go {
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  flex: none;
  transition: transform .45s var(--spring), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.place:hover .go {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: translateX(4px);
}

/* ============================================================
   Stewardship band
   ============================================================ */

.creed {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.creed::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(760px 420px at 88% 110%, rgba(53,96,107,.55), transparent 66%);
  pointer-events: none;
}
.creed .shell { position: relative; z-index: 1; }
.creed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.creed blockquote {
  margin: 0;
  font-size: clamp(1.75rem, 3.9vw, 3.15rem);
  font-weight: 300;
  letter-spacing: -.04em;
  line-height: 1.1;
  text-wrap: balance;
}
.creed .mono { color: rgba(249,245,235,.55); }
.creed p { color: rgba(249,245,235,.72); font-size: 16px; line-height: 1.75; margin: 0 0 26px; }
.creed .btn-ghost { color: var(--paper); border-color: rgba(249,245,235,.3); }
.creed .btn-ghost:hover { border-color: var(--paper); background: rgba(249,245,235,.08); }

/* macron divider used inside the creed */
.macron-rule {
  width: 64px;
  height: 3px;
  background: var(--paper);
  border-radius: 3px;
  margin-bottom: clamp(26px, 3vw, 40px);
  opacity: .85;
}

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

.site-footer {
  background: var(--paper);
  padding-top: clamp(56px, 6vw, 88px);
  padding-bottom: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .8fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.footer-grid h4 {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  position: relative;
  transition: opacity .25s var(--ease);
}
.footer-grid a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s var(--spring);
}
.footer-grid a:hover::after, .footer-grid a:focus-visible::after { transform: scaleX(1); }

.colophon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.colophon .mono { color: var(--muted); }

/* ============================================================
   Property panel
   ============================================================ */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(38,42,31,.42);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

.panel {
  position: fixed;
  z-index: 100;
  top: 0; right: 0; bottom: 0;
  width: min(880px, 100vw);
  background: var(--paper);
  box-shadow: var(--lift-3);
  transform: translateX(101%);
  transition: transform .55s var(--spring);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.panel.is-open { transform: translateX(0); }

.panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: 16px var(--s6);
  border-bottom: 1px solid var(--rule);
  flex: none;
  background: rgba(249,245,235,.94);
}

.icon-btn {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  transition: transform .35s var(--spring), background-color .25s var(--ease), border-color .25s var(--ease);
}
.icon-btn:hover { background: var(--sand); border-color: #C4C0B2; transform: rotate(90deg); }
.icon-btn:active { transform: rotate(90deg) scale(.94); }

.panel-scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1; }

.panel-hero {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--sand-2), #A9A998);
}
.panel-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 2px;
  background: var(--rule);
}
.thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--sand-2);
  position: relative;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--spring), opacity .3s var(--ease); opacity: .78; }
.thumb:hover img, .thumb[aria-current='true'] img { opacity: 1; transform: scale(1.06); }
.thumb[aria-current='true']::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--ink);
}

.panel-body { padding: clamp(28px, 3.4vw, 44px) var(--s6) var(--s8); }

.panel-body h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin: 10px 0 0;
}

.spec-row {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  flex-wrap: wrap;
  padding: 22px 0;
  margin-top: 22px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.spec dt {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.spec dd { margin: 0; font-size: 16px; }

.panel-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: clamp(28px, 3.6vw, 52px);
  margin-top: clamp(28px, 3.2vw, 40px);
  align-items: start;
}

.panel-cols > div > p { color: var(--muted); margin: 0 0 20px; }

.staging-note {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  border-left: 2px solid var(--rule);
  padding-left: 14px;
  margin: 0 0 20px !important;
}

.amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
.amenities li {
  font-size: 14.5px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.amenities li::before {
  content: '';
  width: 10px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  flex: none;
  transform: translateY(-3px);
  opacity: .55;
}

/* booking card */
.booking {
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: rgba(242,235,220,.55);
  padding: 22px;
  position: sticky;
  top: 12px;
  box-shadow: var(--lift-1);
}
.booking .rate {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 16px;
}
.booking .rate b { font-size: 1.7rem; font-weight: 400; letter-spacing: -.035em; }
.booking .rate span { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }

.date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ifield {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 8px 11px;
  background: rgba(255,253,248,.75);
  transition: border-color .25s var(--ease);
}
.ifield:focus-within { border-color: var(--pacific); }
.ifield label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}
.ifield input, .ifield select, .ifield textarea {
  border: 0; background: transparent; font: inherit; font-size: 14.5px; color: var(--ink);
  padding: 0; width: 100%; appearance: none; -webkit-appearance: none;
}
.ifield input:focus, .ifield select:focus, .ifield textarea:focus { outline: none; }
.ifield textarea { resize: vertical; min-height: 3.4em; line-height: 1.5; }

/* Something went wrong on the way out — the request did not send. */
.bk-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(150,60,40,.3);
  border-radius: 3px;
  background: rgba(150,60,40,.06);
  color: #7c3a29;
  font-size: 12.5px;
  line-height: 1.5;
}
.bk-error:empty { display: none; }

.booking .btn[aria-busy='true'] { opacity: .6; pointer-events: none; }

/* ---------- Tenancy application ---------- */

/* The link between the two forms, both directions. */
.apply-switch {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}
.apply-switch button {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pacific);
  cursor: pointer;
}
.apply-switch button:hover { color: var(--ink); text-decoration: underline; }

/* The application runs long, so it scrolls within the panel column. */
.booking.application { max-height: none; }

/* The home name is a whole phrase here, not a figure — give it the full width
   and set the rate beneath rather than fighting it for the line. */
.booking.application .rate {
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.booking.application .rate b { line-height: 1.25; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.consent input {
  flex: 0 0 auto;
  width: 15px; height: 15px;
  margin: 1px 0 0;
  accent-color: var(--pacific);
  cursor: pointer;
}

.tally { margin-top: 18px; display: grid; gap: 9px; }
.tally-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: 14px; color: var(--muted);
}
.tally-row b { font-weight: 400; color: var(--ink); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; }
.tally-total {
  margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--rule);
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.tally-total span { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tally-total b { font-size: 1.35rem; font-weight: 400; letter-spacing: -.03em; }

.booking .btn { width: 100%; margin-top: 18px; }
.booking .fine { font-size: 12px; color: var(--muted); text-align: center; margin: 12px 0 0; line-height: 1.5; }

/* ---------- Availability calendar ---------- */

.cal {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.cal-title {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin: 0;
}

.cal-nav { display: flex; gap: 4px; }

.cal-nav button {
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.cal-nav button:hover:not(:disabled) { background: var(--sand-2); border-color: #C4C0B2; }
.cal-nav button:disabled { opacity: .3; cursor: default; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-dow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--muted);
  text-align: center;
  padding-bottom: 4px;
}

.cal-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease);
}

.cal-day.is-blank { visibility: hidden; }

.cal-day.is-past { color: rgba(38,42,31,.25); cursor: default; }

/* Booked nights read as struck out rather than merely greyed, so the state
   survives being seen in a hurry or by someone who cannot pick out the tint. */
.cal-day.is-booked {
  color: rgba(38,42,31,.34);
  background: var(--sand-2);
  text-decoration: line-through;
  cursor: not-allowed;
}

.cal-day.is-free:hover { background: var(--sand-2); }

/* Read-only days: nothing to click, so nothing that looks clickable. */
.cal-day.is-flat { cursor: default; }
.cal-day.is-flat.is-free:hover { background: transparent; }

.cal-day.is-span { background: rgba(34,67,75,.13); border-radius: 0; }

.cal-day.is-edge {
  background: var(--pacific);
  color: var(--paper);
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 14px 0 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i {
  width: 11px; height: 11px;
  border-radius: 2px;
  display: inline-block;
}
.cal-legend .k-free   { border: 1px solid var(--rule); }
.cal-legend .k-booked { background: var(--sand-2); border: 1px solid var(--rule); }
.cal-legend .k-yours  { background: var(--pacific); }

.cal-note {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}

.booked {
  text-align: center;
  padding: 14px 4px 6px;
  animation: swap .5s var(--spring) both;
}
.booked .dome-ok {
  width: 44px; height: 22px;
  background: var(--pacific);
  border-radius: 999px 999px 0 0;
  margin: 0 auto 16px;
}
.booked h4 { font-size: 1.2rem; font-weight: 400; letter-spacing: -.03em; margin: 0 0 8px; }
.booked p { font-size: 14px; color: var(--muted); margin: 0 0 18px; line-height: 1.6; }

/* ============================================================
   Book a viewing

   The panel form books a stay in a particular home. This one books half an
   hour of somebody's time, which is a different thing: it asks for a day and a
   window rather than a rate, and it never claims to have confirmed anything.
   ============================================================ */

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(560px, 48%));
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}

.form-grid h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -.033em;
  font-weight: 300;
  margin: 0 0 22px;
  max-width: 16ch;
}

/* How a viewing actually goes — numbered, so it reads as a sequence. */
.how { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: how; }
.how li {
  position: relative;
  padding-left: 40px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  counter-increment: how;
}
.how li::before {
  content: counter(how, decimal-leading-zero);
  position: absolute;
  left: 0; top: .1em;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--pacific);
  border: 1px solid var(--rule);
  border-radius: 999px;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  background: var(--paper);
}

/* The form itself reuses .booking, minus the sticky — this one is not beside
   anything it needs to keep pace with. */
.booking.standalone { position: static; padding: clamp(20px, 2.4vw, 30px); }

.booking.standalone .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

/* The time windows — a radio group wearing chips, so the choice is visible
   without opening anything. */
.windows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.window {
  position: relative;
  display: block;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 10px 12px;
  background: rgba(255,253,248,.75);
  cursor: pointer;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.window input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  margin: 0;
  pointer-events: none;
}
.window b { display: block; font-size: 13.5px; font-weight: 500; letter-spacing: -.01em; }
.window span {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--muted);
  margin-top: 2px;
}
.window:hover { border-color: var(--pacific-soft); }
.window.is-on {
  border-color: var(--pacific);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--pacific);
}
.window:focus-within { outline: 2px solid var(--pacific); outline-offset: 2px; }

/* A remark about the day that was picked — closed Sundays and Mondays, or a
   home with guests in it. Advice, not an error. */
.day-note {
  margin: 10px 0 0;
  padding: 9px 12px;
  border-left: 2px solid var(--pacific);
  background: rgba(242,235,220,.7);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.day-note:empty { display: none; }
.day-note.is-stop { border-left-color: #7c3a29; color: #7c3a29; background: rgba(150,60,40,.06); }

.booking.standalone .fine { font-size: 12px; color: var(--muted); margin: 12px 0 0; line-height: 1.55; }

@media (max-width: 900px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .windows { grid-template-columns: minmax(0, 1fr); }
  .booking.standalone .field-row { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   Reveal on scroll
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .9s var(--spring);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1080px) {
  .hero-sub { grid-template-columns: 1fr; }
  .hero-aside { grid-column: 1; max-width: 52ch; }
  .section-head { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creed-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-cols { grid-template-columns: 1fr; }
  .booking { position: static; }
}

@media (max-width: 860px) {
  .nav .nav-link { display: none; }
  .nav .nav-link.is-key { display: inline-flex; }
  /* minmax(0,…) keeps the date input's intrinsic width from starving the others */
  .search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 20px; padding: 8px; gap: 4px; }
  .field { border-right: 0; border-bottom: 1px solid var(--rule); padding: 10px 14px; }
  .field:nth-of-type(3) { grid-column: 1 / -1; border-bottom: 0; }
  .search .btn { grid-column: 1 / -1; width: 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .place { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; }
  .place .idx, .place .note { display: none; }
}

@media (max-width: 380px) {
  .header-inner { gap: var(--s3); }
  .wordmark { font-size: 17px; }
  .btn { padding: 12px 16px; letter-spacing: .1em; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .rail-label { font-size: 9px; letter-spacing: .08em; }
  .rail-label:nth-child(2), .rail-label:nth-child(4) { opacity: 0; }
  .panel-body { padding-inline: var(--s5); }
  .panel-bar { padding-inline: var(--s5); }
  .amenities { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
}

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