:root {
  --bg: #ffffff;
  --surface: #f1f2ee;
  --surface-2: #e4e6df;
  --ink: #11140f;
  --muted: #4c5148;
  --accent: #1c3a2b;
  --accent-ink: #ffffff;
  --field: #1c3a2b;
  --field-ink: #ffffff;

  --font: 'Archivo', system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);

  --gap: 12px;
  --bar: 64px;
  --pad: clamp(20px, 4vw, 64px);
  --section: clamp(96px, 12vw, 176px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.02em; line-height: 1.02; }
p { max-width: 62ch; text-wrap: pretty; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.field :focus-visible { outline-color: var(--field-ink); }

.head { font-size: var(--step-head); }
.lead { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.01em; }
.small { font-size: var(--step-small); }
.muted { color: var(--muted); }
.fig { font-variant-numeric: tabular-nums; }

/* Buttons: flat, square, one shape on the whole site. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; transition: background-color 180ms, transform 140ms var(--ease); }
.btn:hover { background: var(--ink); }
.btn:active { transform: scale(0.98); }
.btn.alt { background: var(--surface-2); color: var(--ink); }
.btn.alt:hover { background: var(--ink); color: var(--bg); }
.link { font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 2px; transition: color 180ms; }
.link:hover { color: var(--accent); }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); height: var(--bar); padding: 0 12px 0 clamp(16px, 2vw, 28px); background: var(--bg); }
.bar-mark { font-weight: 600; letter-spacing: 0.02em; text-decoration: none; }
.bar nav { display: flex; gap: clamp(16px, 2.4vw, 32px); }
.bar nav a { text-decoration: none; font-weight: 500; transition: color 180ms; }
.bar nav a:hover { color: var(--accent); }
.bar .btn { margin-left: auto; min-height: 44px; padding: 0 20px; white-space: nowrap; }
.bar .btn .sm { display: none; }

/* The split stage */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); padding: 0 var(--gap); }
.stage { position: sticky; top: calc(var(--bar) + 0px); height: calc(100svh - var(--bar) - var(--gap)); background: var(--surface); overflow: hidden; grid-column: 2; grid-row: 1; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.06); }
.stage img.on { opacity: 1; animation: drift 14s ease-out both; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.stage-cap { position: absolute; left: 0; bottom: 0; z-index: 99999; display: flex; gap: 20px; align-items: baseline; padding: 14px 20px; background: var(--bg); max-width: 100%; }
.stage-cap b { font-weight: 600; }
.col { grid-column: 1; grid-row: 1; min-width: 0; }

/* Hero card */
.card { container-type: inline-size; display: flex; flex-direction: column; min-height: calc(100svh - var(--bar) - var(--gap)); background: var(--surface); text-align: center; }
.card-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(20px, 3vh, 32px); padding: clamp(24px, 4vh, 48px) 28px; }
.wordmark { display: block; width: 100%; height: auto; fill: var(--ink); font-family: var(--font); font-weight: 400; overflow: visible; }
.card h1 { width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.card-body > p { max-width: 42ch; }
.card-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 32px; padding: 0 20px 28px; }

/* Reading column */
.read { padding: var(--section) var(--pad) 0; max-width: 720px; margin-inline: auto; }
.giant { container-type: inline-size; }
.giant h2 { font-size: 53cqw; line-height: 0.8; letter-spacing: -0.05em; margin-left: -0.05em; }
.read > p.lead { margin-top: 32px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.chip { min-height: 44px; padding: 0 16px; background: var(--surface); font-weight: 500; transition: background-color 180ms, color 180ms, transform 140ms var(--ease); }
.chip:hover { background: var(--surface-2); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--bg); }

.plots { display: grid; gap: 6px; margin-top: 20px; }
.plot { background: var(--surface); transition: background-color 180ms; }
.plot[open], .plot:hover { background: var(--surface-2); }
.plot summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; gap: 16px; align-items: center; min-height: 64px; padding: 10px 18px; cursor: pointer; list-style: none; }
.plot summary::-webkit-details-marker { display: none; }
.plot-name { font-weight: 600; }
.plot-area { display: block; color: var(--muted); font-size: var(--step-small); }
.plot-plus { position: relative; width: 16px; height: 16px; transition: transform 240ms var(--ease); }
.plot-plus::before, .plot-plus::after { content: ''; position: absolute; background: var(--ink); }
.plot-plus::before { left: 0; right: 0; top: 7px; height: 2px; }
.plot-plus::after { top: 0; bottom: 0; left: 7px; width: 2px; }
.plot[open] .plot-plus { transform: rotate(45deg); }
.plot-open { display: grid; gap: 18px; padding: 2px 18px 22px; }
.plot-img { display: none; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.spec { display: grid; gap: 8px; font-size: var(--step-body); }
.spec div { display: flex; justify-content: space-between; gap: 20px; }
.spec dt { color: var(--muted); flex: none; }
.spec dd { text-align: right; font-variant-numeric: tabular-nums; }
.empty { padding: 20px 18px; background: var(--surface); }

/* Intro: a narrow column against an empty field */
.intro { display: grid; gap: 20px; max-width: 34ch; margin-left: clamp(0px, 8%, 72px); padding-bottom: 0; }
.intro p:first-child { font-weight: 600; }

/* Size up a plot */
.tool { margin-top: 32px; padding: clamp(20px, 3vw, 32px); background: var(--surface); }
.tool label { display: block; font-weight: 600; margin-bottom: 8px; }
.tool-size { margin-bottom: 24px; }
input[type='range'] { width: 100%; height: 44px; accent-color: var(--accent); cursor: grab; }
select, input[type='text'], input[type='tel'], textarea { width: 100%; min-height: 48px; padding: 10px 12px; background: var(--bg); border: 0; border-radius: 0; }
.tool-out { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cells { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 3px; margin: 24px 0 8px; }
.cells i { aspect-ratio: 1 / 2; background: var(--surface-2); transition: background-color 180ms; }
.cells i.on { background: var(--accent); }
.tool .spec { margin-top: 24px; }

/* Neighbourhoods drag row */
.hoods { padding-top: var(--section); }
.hoods-top span { white-space: nowrap; }
.hoods-top { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 0 clamp(20px, 6vw, 86px); margin-bottom: 32px; }
.row { display: flex; gap: var(--gap); height: 68svh; min-height: 420px; padding-inline: clamp(20px, 6vw, 86px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; }
.row::-webkit-scrollbar { display: none; }
.row.drag { cursor: grabbing; scroll-snap-type: none; }
.mod { flex: none; height: 100%; display: flex; flex-direction: column; gap: var(--gap); scroll-snap-align: start; }
.mod.tall { aspect-ratio: 3 / 4; }
.mod.pair { aspect-ratio: 2 / 3; }
.mod.wide { aspect-ratio: 16 / 10; }
.tile { position: relative; display: block; flex: 1 1 0; min-height: 0; overflow: hidden; background: var(--surface); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile span { position: absolute; left: 0; bottom: 0; padding: 8px 14px; background: var(--bg); font-weight: 600; transition: padding 240ms var(--ease); }
.tile:hover span { padding-right: 26px; }

/* From viewing to title */
.field { background: var(--field); color: var(--field-ink); }
.steps { margin-top: var(--section); padding: clamp(64px, 9vw, 128px) clamp(20px, 6vw, 86px) 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; }
.steps h2 { font-size: var(--step-head); }
.steps p { margin-top: 24px; max-width: 34ch; }
.slip { background: var(--bg); color: var(--ink); padding: 8px clamp(20px, 3vw, 36px) 44px; margin-bottom: -1px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 96.5% 100%, 93% calc(100% - 14px), 89.5% 100%, 86% calc(100% - 14px), 82.5% 100%, 79% calc(100% - 14px), 75.5% 100%, 72% calc(100% - 14px), 68.5% 100%, 65% calc(100% - 14px), 61.5% 100%, 58% calc(100% - 14px), 54.5% 100%, 51% calc(100% - 14px), 47.5% 100%, 44% calc(100% - 14px), 40.5% 100%, 37% calc(100% - 14px), 33.5% 100%, 30% calc(100% - 14px), 26.5% 100%, 23% calc(100% - 14px), 19.5% 100%, 16% calc(100% - 14px), 12.5% 100%, 9% calc(100% - 14px), 5.5% 100%, 2% calc(100% - 14px), 0 100%); max-width: 620px; justify-self: end; width: 100%; }
.slip h3 { font-size: var(--step-body); font-weight: 600; letter-spacing: 0; margin-top: 28px; margin-bottom: 8px; line-height: 1.3; }
.slip li { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; }
.slip li .dots { flex: 1; align-self: flex-end; margin-bottom: 7px; min-width: 16px; border-bottom: 3px dotted var(--muted); }
.slip li .t { flex: none; font-variant-numeric: tabular-nums; }
.slip .total { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 44px; margin-top: 28px; padding: 8px 14px; background: var(--ink); color: var(--bg); font-weight: 600; }
.steps-tail { height: clamp(64px, 9vw, 128px); }

/* Horses */
.horses { padding-top: var(--section); }
.horses-word { container-type: inline-size; padding: 0 var(--gap); }
.horses-word h2 { font-size: 27.5cqw; line-height: 0.82; letter-spacing: -0.05em; margin-left: -0.04em; }
.horses > .lead { padding: 28px clamp(20px, 6vw, 86px) 0; }
.show { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; min-height: 88svh; padding: clamp(32px, 5vw, 64px) 40px 0; align-items: center; }
.plate { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface); }
.show-body { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; align-self: stretch; padding: 8px 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.tab { min-height: 44px; font-size: var(--step-lead); color: var(--muted); transition: color 180ms; }
.tab:hover { color: var(--ink); }
.tab[aria-selected='true'] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.show h3 { font-size: var(--step-head); }
.show-desc { margin-top: 20px; max-width: 42ch; }
.show-price { margin-top: 28px; font-size: var(--step-lead); font-variant-numeric: tabular-nums; }
.show .spec { margin-top: 20px; max-width: 460px; }
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cta .btn { min-height: 72px; padding: 0 16px; text-align: center; }

.ride { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--gap); padding: var(--section) var(--gap) 0; }
.ride img { width: 100%; height: 100%; min-height: 62svh; object-fit: cover; }
.ride-text { display: flex; flex-direction: column; justify-content: flex-end; gap: 20px; padding: clamp(20px, 3vw, 44px); background: var(--surface); }
.ride-text h2 { font-size: var(--step-head); }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 40px; padding: var(--section) clamp(20px, 6vw, 86px) 0; }
.faq h2 { font-size: var(--step-head); }
.faq-text { columns: 2; column-gap: 56px; }
.faq-text p { break-inside: avoid; margin-bottom: 20px; line-height: 1.55; }
.faq-text b { font-weight: 600; }

/* Contact */
.contact { position: relative; margin-top: var(--section); min-height: 100svh; }
.contact > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visit { position: sticky; top: calc(var(--bar) + 24px); z-index: 1; float: right; width: min(420px, 100%); margin: 60px clamp(16px, 4vw, 60px); padding: 32px; background: var(--bg); }
.contact::after { content: ''; display: block; clear: both; }
.visit h2 { font-size: var(--step-lead); line-height: 1.2; }
.visit .spec { margin: 20px 0; }
.form { display: grid; gap: 10px; }
.form label { display: grid; gap: 4px; font-weight: 500; }
.form select, .form input, .form textarea { background: var(--surface); }
.form textarea { min-height: 88px; resize: vertical; }
.form .btn { width: 100%; }
.form-note { color: var(--muted); }

/* Footer */
.foot { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.foot-img { position: relative; overflow: hidden; }
.foot-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foot-menu { display: flex; flex-direction: column; padding: 72px clamp(20px, 6vw, 96px) 28px; background: var(--surface); }
.foot-mark { font-weight: 600; letter-spacing: 0.02em; }
.foot-menu ul { display: grid; gap: 22px; margin-top: 56px; }
.foot-menu li a { display: inline-block; font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; text-decoration: none; transition: transform 240ms var(--ease), color 180ms; }
.foot-menu li a:hover { transform: translateX(12px); color: var(--accent); }
.foot-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; }
.foot-legal { margin-top: auto; padding-top: 40px; color: var(--muted); }
.foot-legal p + p { margin-top: 4px; }

/* Listing page */
.item { padding: clamp(28px, 5vw, 64px) var(--pad) var(--section); max-width: 720px; margin-inline: auto; }
.back { display: inline-block; margin-bottom: 28px; }
.item h1 { font-size: var(--step-head); }
.item-where { margin-top: 12px; font-size: var(--step-lead); }
.item-price { margin-top: 28px; font-size: var(--step-lead); font-weight: 600; }
.item-img { display: none; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.item-thumbs { display: flex; gap: 6px; margin-top: 32px; }
.thumb { width: 96px; aspect-ratio: 1; overflow: hidden; background: var(--surface); transition: transform 140ms var(--ease); }
.thumb:active { transform: scale(0.96); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-text { margin-top: 32px; }
.item .spec { margin-top: 32px; padding: 20px; background: var(--surface); }
.item h2 { font-size: var(--step-lead); line-height: 1.2; margin: 56px 0 18px; }
.more { display: grid; gap: 6px; }
.more a { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; padding: 8px 18px; background: var(--surface); text-decoration: none; font-weight: 500; transition: background-color 180ms; }
.more a:hover { background: var(--surface-2); }

/* Entrances */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease) var(--d, 0ms), transform 800ms var(--ease) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .stage img, .stage img.on { animation: none; transform: none; transition: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .tile img, .btn, .chip, .foot-menu li a { transition: none; }
}

@media (max-width: 560px) {
  .bar .btn .lg { display: none; }
  .bar .btn .sm { display: inline; }
  .bar nav a:last-child { display: none; }
  .bar, .bar nav { gap: 12px; }
  .bar nav a { font-size: var(--step-small); }
  .slip li { justify-content: space-between; }
  .slip li .dots { display: none; }
}

@media (max-width: 380px) {
  .bar nav { display: none; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .stage { position: relative; top: 0; grid-column: 1; grid-row: 1; height: 48svh; }
  .stage-cap { display: none; }
  .col { grid-column: 1; grid-row: 2; }
  .card { min-height: 0; margin-top: -24px; position: relative; z-index: 2; }
  .card-body { padding: 28px 20px; }
  .card-body > .btn { order: 2; }
  .card-body > p { order: 3; }
  .card-foot { display: none; }
  .read { padding-inline: 8px; }
  .plot-img { display: block; }
  .intro { max-width: 78%; margin-left: 0; }
  .row { height: 62svh; gap: 8px; padding-inline: 20px; }
  .mod.tall { aspect-ratio: auto; width: 72vw; }
  .mod.pair { aspect-ratio: auto; width: 64vw; }
  .mod.wide { aspect-ratio: auto; width: 88vw; }
  .steps { grid-template-columns: 1fr; }
  .slip { justify-self: stretch; }
  .show { grid-template-columns: 1fr; gap: 24px; padding: 28px 16px 0; min-height: 0; }
  .ride { grid-template-columns: 1fr; }
  .ride img { min-height: 48svh; }
  .faq { grid-template-columns: 1fr; gap: 24px; }
  .faq-text { columns: 1; }
  .contact { min-height: 70svh; padding-top: 58svh; margin-top: var(--section); }
  .contact > img { height: 70svh; }
  .visit { position: relative; top: 0; float: none; width: calc(100% - 32px); margin: 0 16px; }
  .foot { grid-template-columns: 1fr; min-height: 0; }
  .foot-img { height: 50svh; }
  .foot-menu { padding: 40px 20px 24px; }
  .foot-menu ul { margin-top: 28px; gap: 16px; }
  .foot-menu li a { font-size: 8vw; }
  .foot-blocks { grid-template-columns: 1fr; margin-top: 40px; }
  .item { padding-inline: 8px; }
  .item-thumbs { display: none; }
  .item-img { display: block; margin-bottom: 24px; }
  .bar .btn { padding: 0 14px; }
}
