/* Osa Realty — sand and moss, Gambetta + Switzer, colour by chapter */
:root {
  --bg: #ddd6c6;
  --surface: #cbc2ad;
  --sage: #aab08f;
  --olive: #56653f;
  --deep: #2f4220;
  --night: #1f2418;
  --ink: #2a2a26;
  --muted: #4f4d45;
  --accent: #4f6238;
  --accent-hover: #3f5030;
  --accent-ink: #ffffff;
  --paper: #e8e6e0;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-head: clamp(2.5rem, 1.4rem + 3.4vw, 4.75rem);
  --step-display: clamp(4rem, 10.4vw, 10rem);

  --m: clamp(16px, 2.4vw, 32px);
  --gap-section: clamp(88px, 10vw, 160px);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --font: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --serif: "Gambetta", Georgia, serif;
  --step-sub: clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--step-body); line-height: 1.5;
  letter-spacing: -0.01em; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 60; background: var(--ink); color: #fff; padding: 12px 16px; }
.skip:focus { top: 12px; }

.wrap { padding-inline: var(--m); }
.h-head { font-family: var(--serif); font-size: var(--step-head); line-height: .98; letter-spacing: -0.015em; }
.h-sub { font-family: var(--serif); font-size: var(--step-sub); line-height: 1.05; letter-spacing: -0.015em; }

/* Buttons: square-cornered, flat, one fill */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 0;
  font-size: var(--step-body); font-weight: 500; text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: #fff; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); }

/* ---------- Chapter bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: 60px;
  display: flex; align-items: center; gap: 32px; padding-inline: var(--m);
  background: var(--bar-bg, var(--bg)); color: var(--bar-ink, var(--ink));
  transform: translateY(-100%);
  transition: transform .45s var(--ease-out), background-color .3s ease, color .3s ease;
}
.bar.is-shown { transform: none; }
.bar__mark { font-family: var(--serif); font-size: var(--step-lead); text-decoration: none; margin-right: auto; letter-spacing: -0.01em; }
.bar__links { display: flex; gap: 28px; }
.bar__links a, .bar__cta { font-size: var(--step-small); text-decoration: none; }
.bar__links a { position: relative; }
.bar__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out); }
.bar__links a:hover::after, .bar__links a[aria-current="true"]::after { transform: scaleX(1); }
.bar__cta { font-weight: 500; padding: 10px 16px; background: var(--accent); color: #fff; transition: background-color .2s; }
.bar__cta:hover { background: var(--accent-hover); }

/* ---------- 1. Hero ---------- */
.hero {
  height: 100svh; min-height: 620px; padding: 10px; background: var(--paper);
  display: grid; grid-template-columns: 5fr 1fr; gap: 10px;
}
.hero__panel { position: relative; overflow: hidden; border-radius: 12px; background: #8a5a4a; isolation: isolate; }
.hero__img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; object-position: 50% 70%; z-index: -2; will-change: transform; }
.hero__scrim { /* taste-skill-ignore: neutral scrim over photo */
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(18, 14, 12, .5) 0%, rgba(18, 14, 12, 0) 32%); /* taste-skill-ignore */
}
.hero__mark { position: absolute; top: 22px; left: 28px; color: #fff; font-family: var(--serif); font-size: var(--step-sub); text-decoration: none; letter-spacing: -0.01em; }
.hero__title {
  position: absolute; top: 13%; left: 0; right: 0; text-align: center; color: #fff;
  font-family: var(--serif); font-size: var(--step-display); line-height: .9; letter-spacing: -0.025em;
  will-change: transform;
}
.hero__title span { display: block; }
.hero__lede { position: absolute; left: 28px; bottom: 36px; max-width: 34ch; color: #fff; font-size: var(--step-body); line-height: 1.45; }
.hero__cta { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); }
.hero__cta:active { transform: translateX(-50%) scale(.97); }

.swatches { display: grid; grid-template-rows: repeat(5, 1fr); border-radius: 12px; overflow: hidden; }
.swatches a {
  background: var(--sw); color: var(--sw-ink); padding: 20px; text-decoration: none;
  font-size: var(--step-body); line-height: 1.25; position: relative;
  transition: padding-left .3s var(--ease-out);
}
.swatches a::after { content: "↓"; position: absolute; left: 20px; bottom: 16px; opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .3s var(--ease-out); }
.swatches a:hover, .swatches a:focus-visible { padding-left: 28px; }
.swatches a:hover::after, .swatches a:focus-visible::after { opacity: 1; transform: none; }
.swatches a:focus-visible { outline-offset: -6px; outline-color: currentColor; }

/* ---------- 2. Shores ---------- */
.chapter { padding-block: var(--gap-section); }
.shores { background: var(--bg); }
.shores__head {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  margin-bottom: 64px; align-items: end;
}
.shores__head h2 { grid-column: 1 / span 7; }
.shores__intro { grid-column: 9 / span 4; font-size: var(--step-body); }

.band { display: flex; height: 72svh; min-height: 480px; }
.band__panel { position: relative; flex: var(--g) 1 0; min-width: 0; overflow: hidden; color: #fff; transition: flex-grow .6s var(--ease-out); }
@media (hover: hover) { .band:hover .band__panel:hover { flex-grow: 6; } }
.band__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.band__panel:hover img { transform: scale(1.04); }
.band__text { /* taste-skill-ignore: neutral scrim over photo */
  position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(16, 18, 12, .55) 0%, rgba(16, 18, 12, 0) 34%, rgba(16, 18, 12, 0) 58%, rgba(16, 18, 12, .66) 100%); /* taste-skill-ignore */
}
.band__text h3 { font-family: var(--serif); font-size: var(--step-sub); line-height: 1; max-width: 11ch; }
.band__text p { font-size: var(--step-small); max-width: 30ch; line-height: 1.4; }

/* the commute map */
.commute { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-top: 120px; align-items: start; }
.commute__panel { grid-column: 1 / span 4; display: grid; gap: 22px; }
.office__label { display: block; font-size: var(--step-small); color: var(--muted); margin-bottom: 10px; }
.office__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.office__opts button, .filter button {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 0;
  background: var(--surface); color: var(--ink); font-size: var(--step-small);
  transition: background-color .2s, color .2s, transform .16s var(--ease-out);
}
.office__opts button:hover, .filter button:hover { background: #bdb39b; }
.office__opts button:active, .filter button:active { transform: scale(.96); }
.office__opts button[aria-pressed="true"], .filter button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.times { width: 100%; border-collapse: collapse; font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.times th, .times td { text-align: left; padding: 9px 0; font-weight: 400; }
.times thead th { color: var(--muted); }
.times td { text-align: right; white-space: nowrap; padding-left: 10px; }
.times tbody th { font-weight: 500; }
.times tbody tr { transition: background-color .3s; }
.times tbody tr.is-hl { background: var(--surface); }
.times td.flash { animation: tick .5s var(--ease-out); }
@keyframes tick { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.commute__note { font-size: var(--step-small); color: var(--muted); }

.map { grid-column: 6 / span 7; margin: 0; background: #bcc2a6; }
.map__svg { display: block; width: 100%; height: auto; }
.m-lagoon { fill: #bcc2a6; }
.m-ocean { fill: #9ea78a; }
.m-land { fill: #ebe8e1; }
.m-hl { fill: #ebe8e1; transition: fill .4s ease; }
.m-hl.is-on { fill: #d6cdb6; }
.m-bridge { fill: none; stroke: #8b8676; stroke-width: 5; stroke-linecap: round; }
.m-water { font-family: var(--serif); font-size: 30px; fill: #4c5440; font-style: italic; }
.m-place { font-family: var(--font); font-size: 18px; fill: #4f4d45; }
.m-small { font-size: 16px; }
.m-route { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.m-ferry { fill: none; stroke: #2f4220; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 12; }
.m-area circle { fill: var(--ink); }
.m-area .m-t { font-family: var(--serif); font-size: 38px; fill: var(--ink); }
.m-area .m-n { font-family: var(--font); font-size: 16px; fill: #4f4d45; }
.m-area .m-f { font-family: var(--font); font-size: 16px; fill: #2f4220; font-weight: 500; }
.m-area .m-bg { fill: #ebe8e1; }
.m-office rect { fill: var(--accent); }
.m-office text { font-family: var(--font); font-size: 17px; fill: #fff; font-weight: 500; }

/* ---------- 3. Homes ---------- */
.homes { background: var(--surface); }
.homes__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 72px; }
.homes__title { max-width: 14ch; }
.filter { display: flex; gap: 6px; }
.filter button { background: var(--bg); }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 72px; align-items: start; }
.card { margin: 0; }
.card[hidden] { display: none; }
.card--a { grid-column: 1 / span 7; }
.card--b { grid-column: 9 / span 4; margin-top: 72px; }
.card--c { grid-column: 2 / span 4; }
.card--d { grid-column: 7 / span 6; margin-top: 56px; }
.card--e { grid-column: 1 / span 6; }
.card--f { grid-column: 8 / span 4; margin-top: 64px; }
.card__link { display: block; text-decoration: none; }
.card__img { overflow: hidden; background: #b9b09a; }
.card__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.card--b .card__img img, .card--c .card__img img, .card--f .card__img img { aspect-ratio: 4 / 5; }
.card--d .card__img img { aspect-ratio: 3 / 2; }
.card__link:hover .card__img img { transform: scale(1.05); }
.card__meta { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; row-gap: 4px; padding-top: 18px; align-items: baseline; }
.card__meta h3 { font-family: var(--serif); font-size: var(--step-sub); line-height: 1.05; }
.card__place { grid-column: 1; font-size: var(--step-small); color: var(--muted); }
.card__price { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card__price span { display: block; font-weight: 400; color: var(--muted); font-size: var(--step-small); }
.card__link::after { content: "View this home →"; display: inline-block; margin-top: 10px; font-size: var(--step-small); font-weight: 500; transform: translateX(-4px); opacity: .0; transition: opacity .3s, transform .4s var(--ease-out); }
.card__link:hover::after, .card__link:focus-visible::after { opacity: 1; transform: none; }

.more { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-top: 160px; }
.more__intro { grid-column: 1 / span 4; display: grid; gap: 18px; align-content: start; }
.more__intro p { font-size: var(--step-small); color: var(--muted); max-width: 40ch; }
.listings { grid-column: 6 / span 7; width: 100%; border-collapse: collapse; font-size: var(--step-body); }
.listings tbody + tbody tr:first-child > * { padding-top: 40px; }
.listings td, .listings th { padding: 13px 0; text-align: left; vertical-align: baseline; font-weight: 400; }
.listings td:first-child { width: 22%; color: var(--muted); font-size: var(--step-small); }
.listings td:last-child { text-align: right; white-space: nowrap; padding-left: 16px; }
.listings a { text-decoration: none; font-weight: 500; font-variant-numeric: tabular-nums; display: inline-flex; gap: 10px; align-items: baseline; }
.listings a span { color: var(--muted); font-weight: 400; font-size: var(--step-small); }
.listings a::after { content: "→"; display: inline-block; transition: transform .25s var(--ease-out); }
.listings tr:hover a::after, .listings a:focus-visible::after { transform: translateX(5px); }
.listings tr:hover th { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.listings tr[hidden] { display: none; }
.listings tbody:not(:has(tr:not([hidden]))) { display: none; }

/* ---------- Home detail dialog ---------- */
.dlg {
  width: min(1180px, calc(100vw - 2 * var(--m))); max-width: none; max-height: calc(100svh - 48px);
  padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35); /* taste-skill-ignore: dialog floats */
}
.dlg::backdrop { background: rgba(20, 22, 16, .62); }
.dlg[open] { animation: dlg-in .5s var(--ease-out); }
.dlg[open]::backdrop { animation: fade .4s ease; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.dlg__inner { display: grid; grid-template-columns: 7fr 5fr; max-height: calc(100svh - 48px); }
.dlg__photos { overflow-y: auto; display: grid; gap: 6px; background: #d8d4ca; overscroll-behavior: contain; }
.dlg__photos img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.dlg__photos .dlg__nophoto { display: grid; place-content: center; min-height: 420px; padding: 40px; text-align: center; font-family: var(--serif); font-size: var(--step-sub); line-height: 1.1; color: var(--muted); }
.dlg__body { position: relative; overflow-y: auto; padding: 40px 40px 0; display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.dlg__body h2 { font-family: var(--serif); font-size: var(--step-sub); line-height: 1; padding-right: 48px; }
.dlg__place { color: var(--muted); }
.dlg__price { font-size: var(--step-lead); font-weight: 500; font-variant-numeric: tabular-nums; }
.dlg__price span { color: var(--muted); font-weight: 400; font-size: var(--step-body); margin-left: 8px; }
.dlg__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 10px 0 0; }
.dlg__facts div { background: #dedbd2; padding: 12px 14px; }
.dlg__facts dt { font-size: var(--step-small); color: var(--muted); }
.dlg__facts dd { margin: 0; font-weight: 500; }
.dlg__extras { margin: 8px 0 0; padding-left: 1.1em; display: grid; gap: 6px; }
.dlg__commute { padding: 14px 16px; background: var(--sage); color: #1c1e16; font-size: var(--step-small); }
.dlg__cta { position: sticky; bottom: 0; margin: 8px -40px 0; min-height: 60px; }
.dlg__close { position: absolute; top: 28px; right: 28px; width: 48px; height: 48px; border: 0; background: var(--ink); transition: background-color .2s, transform .16s var(--ease-out); }
.dlg__close:hover { background: var(--accent); }
.dlg__close:active { transform: scale(.94); }
.dlg__close span, .dlg__close span::after { position: absolute; left: 13px; top: 23px; width: 22px; height: 2px; background: #fff; transform: rotate(45deg); }
.dlg__close span::after { content: ""; left: 0; top: 0; transform: rotate(90deg); }
body.dlg-open { overflow: hidden; }
body.dlg-open .giant { visibility: hidden; }

/* ---------- 4. Title checks ---------- */
.checks { background: var(--night); color: #fff; }
.checks__scroll { position: relative; height: 300vh; }
.checks__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.checks__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.checks__scrim { /* taste-skill-ignore: neutral scrim over photo */
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(14, 14, 10, .86) 0%, rgba(14, 14, 10, .7) 45%, rgba(14, 14, 10, .35) 100%); /* taste-skill-ignore */
}
.checks__list {
  position: absolute; top: 50%; left: var(--m); transform: translateY(-50%); width: min(560px, 44vw);
  list-style: none; margin: 0; padding: 0; display: grid; gap: 14px;
  font-family: var(--serif); font-size: var(--step-sub); line-height: 1.1; color: #a9a593;
}
.checks__list li { transition: color .4s ease, transform .5s var(--ease-out); }
.checks__list h2 { display: inline; font-size: inherit; line-height: inherit; letter-spacing: -0.01em; }
.checks__list li.is-on { color: #fff; transform: translateX(14px); }
.docs { position: absolute; top: 50%; right: 9vw; width: min(440px, 34vw); transform: translateY(-50%); }
.doc {
  position: absolute; inset: auto 0 auto 0; top: 50%; translate: 0 -50%;
  background: var(--paper); color: var(--ink); padding: 32px; visibility: hidden; display: grid; gap: 14px;
  opacity: 0; transform: translateY(40px) rotate(2deg); transition: opacity .5s ease, transform .7s var(--ease-out), visibility 0s linear .5s;
}
.doc.is-on { opacity: 1; transform: rotate(-1.5deg); visibility: visible; transition-delay: 0s; }
.doc__head { font-family: var(--serif); font-size: var(--step-sub); line-height: 1.05; padding-right: 72px; }
.doc__big { font-size: var(--step-lead); line-height: 1.25; }
.doc__rows { display: grid; gap: 4px; margin: 0; }
.doc__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; background: #e3e0d7; font-size: var(--step-small); }
.doc__rows dt { color: var(--muted); }
.doc__rows dd { margin: 0; font-weight: 500; text-align: right; }
.doc__seal { position: absolute; top: 22px; right: 22px; width: 68px; height: 68px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-content: center; text-align: center; font-size: 0.8125rem; line-height: 1.1; font-weight: 500; transform: rotate(-12deg); }
.doc__stamp { justify-self: end; padding: 8px 14px; background: var(--accent); color: #fff; font-weight: 500; font-size: var(--step-small); transform: rotate(-4deg); }
.doc__plot { width: 100%; height: auto; }
.doc__plot .plot-bg { fill: #e3e0d7; }
.doc__plot .plot-land { fill: #c9d1ad; stroke: var(--ink); stroke-width: 2.5; }
.doc__plot circle { fill: var(--ink); }
.doc__plot text { font-family: var(--font); font-size: 13px; fill: var(--ink); }
.doc__verdict { font-family: var(--serif); font-size: var(--step-head); line-height: .9; color: var(--accent); }
.doc__note { font-size: var(--step-small); }
.checks__markers { position: absolute; inset: 0 auto 0 0; width: 1px; display: grid; grid-template-rows: repeat(6, 1fr); pointer-events: none; }
.checks__plain { padding-block: 112px var(--gap-section); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.checks__plain > p { grid-column: 1 / span 6; font-size: var(--step-lead); line-height: 1.4; max-width: 46ch; }
.checks__plain .report { grid-column: 8 / span 5; }
.report h3 { font-family: var(--serif); font-size: var(--step-sub); margin-bottom: 18px; color: #d6dfba; }
.report ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--step-body); }
.report li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; background: #2a3121; }
.report li span { color: #d9d4c4; text-align: right; }

html:not(.js) .checks__scroll { height: auto; }
html:not(.js) .checks__stage { position: relative; }
html:not(.js) .checks__list li { color: #fff; }

/* ---------- 5. Buying from abroad ---------- */
.abroad { background: var(--sage); color: #22241c; overflow: hidden; }
.abroad__top { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.abroad__btns { display: flex; gap: 6px; }
.sq { width: 48px; height: 48px; border: 0; border-radius: 0; background: #22241c; color: #fff; font-size: 1.2rem; transition: background-color .2s, transform .16s var(--ease-out); }
.sq:hover { background: var(--accent); }
.sq:active { transform: scale(.94); }
.sq:disabled { background: #8d9374; cursor: default; }
.progress { height: 6px; background: #c6caae; margin-bottom: 56px; }
.progress span { display: block; height: 100%; width: 100%; background: #22241c; transform-origin: left; transform: scaleX(.2); transition: transform .2s linear; }
.row {
  list-style: none; margin: 0 var(--m); padding: 0; display: flex; gap: 32px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.row::-webkit-scrollbar { display: none; }
.row:focus-visible { outline-offset: -3px; }
.row li { flex: 0 0 300px; scroll-snap-align: start; display: flex; flex-direction: column; }
.row h3 { font-family: var(--serif); font-size: var(--step-sub); line-height: 1; margin-bottom: 12px; }
.row p { font-size: var(--step-body); color: #1c1e16; }
.row img { margin-top: var(--gap); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s var(--ease-out); }
.row li:hover img { transform: translateY(-6px); }

/* ---------- 6. Questions ---------- */
.questions { background: var(--olive); color: #fff; padding-top: 0; }
.questions__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.questions__col { grid-column: 1 / span 5; padding-top: var(--gap-section); }
.facts { list-style: none; margin: 28px 0 44px; padding: 0; display: grid; gap: 6px; font-size: var(--step-body); }
.faq { display: grid; gap: 4px; }
.faq details { padding-block: 12px; }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding-right: 40px; min-height: 44px; display: flex; align-items: center;
  font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 2px; background: currentColor;
  transition: transform .3s var(--ease-out);
}
.faq summary::before { transform: translateX(-6px) rotate(40deg); }
.faq summary::after { transform: rotate(-40deg); }
.faq details[open] summary::before { transform: translateX(-6px) rotate(-40deg); }
.faq details[open] summary::after { transform: rotate(40deg); }
.faq summary:hover { color: #e6ecd6; }
.faq details p { padding-top: 10px; max-width: 52ch; color: #eef0e6; }
.faq details[open] p { animation: tick .4s var(--ease-out); }
.questions__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; }
.textlink { font-size: var(--step-body); text-underline-offset: 4px; }
.textlink:hover { text-decoration-thickness: 2px; }
.questions__pics { grid-column: 7 / span 6; position: relative; padding-bottom: 80px; }
.questions__pics .tall { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.questions__pics .sq-pic { position: absolute; left: -40px; bottom: 40px; width: 38%; aspect-ratio: 1; object-fit: cover; }

/* ---------- 7. Visit ---------- */
.visit { position: relative; min-height: 100svh; background: var(--deep); overflow: hidden; }
.visit__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.visit__card {
  position: relative; margin-left: auto; margin-right: 60px; top: 60px; width: 400px; max-width: calc(100% - 2 * var(--m));
  background: var(--paper); color: var(--ink); border-radius: 8px; padding: 32px 32px 0; overflow: hidden;
}
.visit__card h2 { font-family: var(--serif); font-size: var(--step-sub); line-height: 1; margin-bottom: 20px; }
.visit__card address { font-style: normal; font-size: var(--step-body); line-height: 1.45; margin-bottom: 20px; }
.hours { width: 100%; border-collapse: collapse; font-size: var(--step-body); font-variant-numeric: tabular-nums; }
.hours th { text-align: left; font-weight: 400; color: var(--muted); padding: 4px 0; }
.hours td { text-align: right; padding: 4px 0; }
.visit__phone { margin: 20px 0 28px; font-size: var(--step-lead); }
.visit__phone a { text-decoration: none; font-variant-numeric: tabular-nums; }
.visit__phone a:hover { text-decoration: underline; text-underline-offset: 4px; }
.visit__btn { display: flex; margin: 0 -32px; width: calc(100% + 64px); min-height: 56px; }

/* ---------- 8. Footer ---------- */
.foot { background: var(--deep); padding: 72px var(--m) 56px; overflow: hidden; }
.giant {
  font-family: var(--serif); font-size: clamp(9rem, 38vw, 34rem); line-height: .8; letter-spacing: -0.03em;
  text-align: center; margin: 72px 0 0; color: #d9b49a;
  background: url("assets/img/third-mainland-sunset.jpg") center / cover no-repeat;
  background-position: 50% var(--gy, 50%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; /* taste-skill-ignore: photograph set inside the name, not a gradient */
  padding: .12em 0 .14em;
}
.card-back { position: relative; max-width: 1240px; margin-inline: auto; background: var(--paper); color: var(--ink); padding: 72px clamp(24px, 5vw, 72px) 28px; }
.scallops { position: absolute; left: 0; right: 0; top: -24px; width: 100%; height: 25px; fill: var(--paper); }
.card-back__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.card-back__msg h2 { font-family: var(--serif); font-size: var(--step-sub); line-height: 1; margin-bottom: 20px; }
.card-back__msg p { max-width: 44ch; }
.card-back__msg .sign { margin-top: 20px; font-weight: 500; }
.card-back__addr { position: relative; padding-top: 8px; }
.stamp { position: absolute; top: -24px; right: 0; width: 96px; aspect-ratio: 3 / 4; object-fit: cover; border: 6px solid #fff; transform: rotate(3deg); }
.card-back__addr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: var(--step-lead); }
.card-back__addr a { text-decoration: none; }
.card-back__addr a:hover { text-decoration: underline; text-underline-offset: 4px; }
.credits { margin-top: 56px; font-size: var(--step-small); color: var(--muted); max-width: 72ch; }
.imprint { margin-top: 20px; text-align: center; font-size: var(--step-small); color: var(--muted); }

/* ---------- Entrances ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .band__panel { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-io), flex-grow .6s var(--ease-out); transition-delay: var(--d, 0ms), 0ms; }
.js .band.in .band__panel { clip-path: inset(0 0 0 0); }
.js .card__img { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease-io); transition-delay: var(--d, 0ms); }
.js .card__img img { transform: scale(1.18); }
.js .card.in .card__img { clip-path: inset(0 0 0 0); }
.js .card.in .card__img img { transform: scale(1); }
.js .card.in .card__link:hover .card__img img { transform: scale(1.05); }
.js .card__meta { opacity: 0; transform: translateY(16px); transition: opacity .7s ease .35s, transform .8s var(--ease-out) .35s; }
.js .card.in .card__meta { opacity: 1; transform: none; }
.js .row li { opacity: 0; transform: translateX(40px); transition: opacity .6s ease, transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .row.in li { opacity: 1; transform: none; }
.js .questions__pics img, .js .visit__card { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform 1s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .questions__pics.in img, .js .visit.in .visit__card { opacity: 1; transform: none; }
.js .card-back { transform: translateY(40px); opacity: 0; transition: opacity .8s ease, transform 1s var(--ease-out); }
.js .foot.in .card-back { opacity: 1; transform: none; }
.js .hero__title span { animation: rise 1.1s var(--ease-out) both; }
.js .hero__lede, .js .hero__cta, .js .hero__mark, .js .swatches a { animation: rise .9s var(--ease-out) both; }
.js .hero__title span:nth-child(2) { animation-delay: .1s; }
.js .hero__lede { animation-delay: .25s; }
.js .hero__cta { animation-name: rise-c; animation-delay: .32s; }
.js .swatches a:nth-child(1) { animation-delay: .1s; } .js .swatches a:nth-child(2) { animation-delay: .17s; }
.js .swatches a:nth-child(3) { animation-delay: .24s; } .js .swatches a:nth-child(4) { animation-delay: .31s; }
.js .swatches a:nth-child(5) { animation-delay: .38s; }
.js .hero__img { animation: settle 2.4s var(--ease-out) both; }
@keyframes settle { from { scale: 1.12; } to { scale: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes rise-c { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translateX(-50%); } }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 3fr 1fr; }
  .hero__lede { max-width: 30ch; font-size: var(--step-small); }
  .hero__cta, .hero__cta:active { left: auto; right: 28px; transform: none; }
  .js .hero__cta { animation-name: rise; }
  .swatches a { padding: 16px; font-size: var(--step-small); }
  .band__text { padding: 16px; }
  .band__panel { min-width: 20%; }
  .band__text h3 { font-size: var(--step-lead); }
  .row li { flex-basis: 40vw; }
  .shores__head h2 { grid-column: 1 / span 8; }
  .shores__intro { grid-column: 1 / span 8; margin-top: 20px; }
  .commute__panel { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .commute__panel .times, .commute__panel .commute__note { grid-column: 2; }
  .commute__panel .times { grid-row: 1 / span 3; }
  .map { grid-column: 1 / -1; margin-top: 40px; }
  .m-place { font-size: 22px; } .m-small { font-size: 20px; } .m-area .m-n, .m-area .m-f { font-size: 20px; }
  .more__intro { grid-column: 1 / span 5; }
  .listings { grid-column: 6 / span 7; }
  .checks__list { width: 46vw; }
  .docs { right: var(--m); width: 44vw; }
  .checks__plain > p { grid-column: 1 / span 10; }
  .checks__plain .report { grid-column: 1 / span 8; margin-top: 48px; }
  .questions__col { grid-column: 1 / span 6; }
  .questions__pics { grid-column: 7 / span 6; }
  .card-back__inner { gap: 40px; }
  .bar__links { display: none; }
  .abroad__btns { display: none; }
  .dlg__inner { grid-template-columns: 1fr 1fr; }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  .hero { display: block; height: auto; min-height: 0; padding: 8px; }
  .hero__panel { height: 66svh; min-height: 440px; }
  .hero__title { top: 15%; font-size: 15vw; }
  .hero__mark { top: 16px; left: 18px; }
  .hero__lede { display: none; }
  .hero__cta, .hero__cta:active { bottom: 24px; left: 50%; right: auto; transform: translateX(-50%); }
  .js .hero__cta { animation-name: rise-c; }
  .swatches { display: block; margin-top: 8px; border-radius: 10px; }
  .swatches a { display: flex; align-items: center; height: 52px; padding: 0 16px; font-size: 0.9375rem; }
  .swatches a::after { left: auto; right: 16px; bottom: auto; opacity: 1; transform: none; }

  .shores__head { display: block; margin-bottom: 40px; }
  .band { display: grid; grid-template-columns: repeat(100, 1fr); grid-template-rows: 1fr 1fr; height: 84svh; min-height: 560px; }
  .band__panel:nth-child(1) { grid-column: 1 / 65; grid-row: 1; }
  .band__panel:nth-child(2) { grid-column: 65 / 101; grid-row: 1; }
  .band__panel:nth-child(3) { grid-column: 1 / 37; grid-row: 2; }
  .band__panel:nth-child(4) { grid-column: 37 / 101; grid-row: 2; }
  .band__text h3 { font-size: var(--step-lead); }
  .band__panel:nth-child(1) .band__text p, .band__panel:nth-child(2) .band__text p, .band__panel:nth-child(3) .band__text p { display: none; }

  .commute { display: block; margin-top: 72px; }
  .commute__panel { display: grid; grid-template-columns: 1fr; gap: 20px; }
  .commute__panel .times, .commute__panel .commute__note { grid-column: 1; }
  .commute__panel .times { grid-row: auto; }
  .map { margin: 28px calc(-1 * var(--m)) 0; }
  .m-water { font-size: 30px; } .m-place, .m-small, .m-area text, .m-area .m-bg { display: none; }
  .m-area circle { r: 11; }
  .m-office text { font-size: 26px; }

  .homes__head { margin-bottom: 40px; }
  .gallery { display: flex; flex-direction: column; gap: 40px; }
  .card { width: 100%; margin-top: 0 !important; }
  .card--b, .card--d, .card--f { width: 86%; align-self: flex-end; }
  .card--c, .card--e { width: 86%; }
  .card__link::after { opacity: 1; transform: none; }


  .more { display: block; margin-top: 88px; }
  .more__intro { margin-bottom: 24px; }
  .listings, .listings tbody, .listings tr { display: block; }
  .filter { margin-bottom: 0; }
  .listings tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 8px; padding: 18px 0; }
  .listings tr[hidden] { display: none; }
  .listings td, .listings th { padding: 0; }
  .listings th { line-height: 1.35; }
  .listings tbody + tbody { margin-top: 28px; }
  .listings tbody + tbody tr:first-child { padding-top: 18px; }
  .listings tbody + tbody tr:first-child > * { padding-top: 0; }
  .listings td:first-child { grid-column: 1; grid-row: 1; width: auto; }
  .listings th { grid-column: 1 / -1; grid-row: 2; }
  .listings td:last-child { grid-column: 2; grid-row: 1; padding: 0; }
  .listings a { gap: 6px; }
  .listings a span { font-size: 0.875rem; }
  .listings a::after { display: none; }

  .dlg { width: 100vw; max-height: 100svh; height: 100svh; margin: 0; }
  .dlg__inner { display: block; height: 100%; max-height: none; overflow-y: auto; overscroll-behavior: contain; }
  .dlg__photos { overflow: visible; }
  .dlg__photos .dlg__nophoto { min-height: 220px; }
  .dlg__body { overflow: visible; padding: 28px 16px 0; }
  .dlg__close { position: fixed; top: 12px; right: 12px; }
  .dlg__cta { margin: 8px -16px 0; }

  .checks__scroll { height: 240vh; }
  .checks__scrim { /* taste-skill-ignore: neutral scrim over photo */
    background: linear-gradient(to top, rgba(14, 14, 10, .9) 0%, rgba(14, 14, 10, .7) 50%, rgba(14, 14, 10, .45) 100%); /* taste-skill-ignore */
  }
  .checks__list { top: 88px; bottom: auto; transform: none; width: calc(100% - 2 * var(--m)); font-size: var(--step-lead); gap: 8px; }
  .checks__list li.is-on { transform: translateX(8px); }
  .docs { top: auto; bottom: 28px; right: var(--m); left: var(--m); width: auto; transform: none; }
  .doc { top: auto; bottom: 0; translate: 0 0; padding: 20px; gap: 10px; }
  .doc__head { padding-right: 60px; }
  .doc__seal { width: 54px; height: 54px; top: 14px; right: 14px; }
  .doc__rows div { padding: 7px 10px; }
  .doc__plot { max-height: 120px; }

  .checks__plain { display: block; padding-top: 64px; }

  .abroad__top { margin-bottom: 24px; }
  .progress { margin-bottom: 36px; }
  .row { gap: 16px; }
  .row li { flex-basis: 72vw; }
  .row img { margin-top: calc(var(--gap) * .4); }

  .questions__grid { display: flex; flex-direction: column-reverse; }
  .questions__col { padding-top: 64px; }
  .questions__pics { padding-bottom: 0; margin-inline: calc(-1 * var(--m)); }
  .questions__pics .tall { aspect-ratio: 4 / 5; }
  .questions__pics .sq-pic { left: auto; right: var(--m); bottom: -40px; width: 38%; }
  .questions__actions .btn { width: 100%; }

  .visit { min-height: 0; display: flex; flex-direction: column; overflow: visible; }
  .visit__img { position: relative; height: 70svh; }
  .visit__card { margin: -80px var(--m) 0; top: 0; width: auto; max-width: none; }

  .foot { padding-top: 112px; }
  .giant { margin-top: 48px; }
  .card-back { padding-top: 56px; }
  .card-back__inner { grid-template-columns: 1fr; gap: 40px; }

  .stamp { width: 64px; top: -96px; }
  .card-back__addr ul { font-size: 1.0625rem; }
  .bar { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.lenis) { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js .reveal, .js .row li, .js .questions__pics img, .js .visit__card, .js .card-back, .js .card__meta { opacity: 1; transform: none; }
  .js .band__panel, .js .card__img { clip-path: none; }
  .js .card__img img { transform: none; }
}
