/* ==========================================================================
   Casa Ki-Se — Assenta, São Pedro da Cadeira
   Private sale landing page
   ========================================================================== */

:root {
  --cream: #faf7f2;
  --ink: #22262a;
  --sage: #3f635c;
  --sage-deep: #2b4742;
  --sage-soft: #a9c3bc;
  --dark: #22262a;
  --dark-card: #2e3337;
  --light: #f7f4ef;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Outfit', Helvetica, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --page-x: clamp(20px, 5vw, 72px);
  --shell: 1280px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --- base ---------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html,
body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  max-width: 100%;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: var(--sage);
  text-decoration: none;
}

a:hover { color: var(--sage-deep); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
}

p { margin: 0; }

::selection {
  background: var(--sage);
  color: var(--cream);
}

/* Entrance movement only — never opacity, so text can never be stranded
   invisible if the animation clock is throttled. */
@keyframes rise {
  from { transform: translateY(22px); }
  to { transform: none; }
}

.rise { animation: rise 1s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  .zoom img { transition: none; }
}

/* --- shared type --------------------------------------------------------- */

.serif { font-family: var(--serif); }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede {
  font-size: clamp(16px, 1.7vw, 18.5px);
  line-height: 1.65;
  font-weight: 300;
  color: rgba(34, 38, 42, 0.84);
}

.note {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.6;
  font-weight: 300;
  color: rgba(34, 38, 42, 0.8);
}

.h-section {
  font-size: clamp(1.75rem, 4.6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.h-sub {
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.balance { text-wrap: balance; }

/* --- layout -------------------------------------------------------------- */

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--page-x);
  padding-right: var(--page-x);
}

.stack {
  display: flex;
  flex-direction: column;
}

.section { padding-block: clamp(52px, 12vw, 180px); }

.grid {
  display: grid;
  gap: clamp(20px, 4vw, 56px);
}

.grid--260 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--280 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--320 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

/* Two-up that collapses early rather than squeezing two narrow columns. */
.grid--half { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(300px, 45%)), 1fr)); }
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(280px, 40%)), 1fr)); }

.rule-top {
  border-top: 1px solid rgba(34, 38, 42, 0.2);
  padding-top: clamp(24px, 5vw, 60px);
}

/* --- hairline data tables ------------------------------------------------ */

.hairline-grid {
  display: grid;
  grid-auto-flow: dense;
  gap: 1px;
  background: rgba(34, 38, 42, 0.18);
  border-top: 1px solid rgba(34, 38, 42, 0.18);
  border-bottom: 1px solid rgba(34, 38, 42, 0.18);
}

.hairline-grid > * { background: var(--cream); }

.cell {
  padding: clamp(24px, 3vw, 34px) clamp(18px, 2vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cell__figure {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.cell__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(34, 38, 42, 0.66);
  line-height: 1.7;
}

.spec {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  font-family: var(--mono);
  font-size: clamp(12px, 1.4vw, 14.5px);
  overflow-wrap: anywhere;
  border-top: 1px solid rgba(34, 38, 42, 0.2);
}

.spec dt,
.spec dd {
  margin: 0;
  padding: 15px 0;
  border-bottom: 1px solid rgba(34, 38, 42, 0.14);
}

.spec dt { color: rgba(34, 38, 42, 0.66); }
.spec dd { text-align: right; }

/* --- imagery ------------------------------------------------------------- */

.frame {
  overflow: hidden;
  position: relative;
}

.frame--4x3 { aspect-ratio: 4 / 3; }
.frame--1x1 { aspect-ratio: 1 / 1; }
.frame--3x2 { aspect-ratio: 3 / 2; }
.frame--16x9 { aspect-ratio: 16 / 9; }
.frame--wide { aspect-ratio: 21 / 9; }

.zoom img { transition: transform 900ms var(--ease); }
.zoom:hover img { transform: scale(1.06); }

.tiles {
  display: grid;
  gap: 6px;
}

.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.band { overflow: hidden; }
.band img { transform: scale(1.12); }

/* --- buttons ------------------------------------------------------------- */

.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 16px clamp(20px, 4vw, 32px);
  font-family: var(--sans);
  font-size: clamp(15px, 1.7vw, 16px);
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
}

.btn--ink {
  background: var(--ink);
  color: var(--cream);
}

.btn--ink:hover {
  background: var(--sage-deep);
  color: var(--cream);
}

.btn--sage {
  background: var(--sage);
  color: var(--cream);
}

.btn--sage:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(34, 38, 42, 0.5);
  color: var(--ink);
  font-weight: 400;
}

.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- navigation ---------------------------------------------------------- */

.nav {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.nav__inner {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 7px 16px;
  border-radius: 22px;
  background: rgba(250, 247, 242, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(34, 38, 42, 0.14);
  overflow: hidden;
  transition: opacity 300ms ease, transform 300ms ease, height 300ms ease,
    padding 300ms ease, margin 300ms ease, border-color 300ms ease;
}

/* Past the hero the brand retracts so the pill alone stays out of the way. */
.nav--scrolled .nav__brand {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  height: 0;
  padding-block: 0;
  margin-bottom: -10px;
  border-color: transparent;
}

.nav__mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: none;
}

.nav__name {
  font-family: var(--serif);
  font-size: clamp(19px, 2.4vw, 23px);
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.nav__pill {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px clamp(10px, 2.4vw, 22px);
  padding: 9px 10px 9px clamp(12px, 2vw, 18px);
  border-radius: 26px;
  background: rgba(250, 247, 242, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(34, 38, 42, 0.16);
  max-width: 100%;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px clamp(11px, 2.2vw, 22px);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(34, 38, 42, 0.8);
}

.nav__links a { color: inherit; }
.nav__links a:hover { color: var(--ink); }

/* --- sticky book-a-viewing dock ------------------------------------------ */

.dock {
  position: fixed;
  right: clamp(14px, 3vw, 24px);
  bottom: clamp(14px, 3vw, 24px);
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px 9px 12px;
  border-radius: 999px;
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(34, 38, 42, 0.16);
  box-shadow: 0 6px 20px rgba(34, 38, 42, 0.1);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: opacity 280ms ease, transform 280ms ease, background 200ms ease;
}

.dock svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.dock:hover {
  background: var(--cream);
  color: var(--ink);
}

/* Out of the way until you have left the hero, and again once the form is
   actually on screen. */
.dock.is-hidden {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

/* --- hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(96vh, 960px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(150px, 22vh, 200px) 20px clamp(90px, 12vh, 120px);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--cream) url('img/n16.jpg') center / cover no-repeat;
  filter: saturate(1.02) contrast(1.02) brightness(1.06);
  transform: scale(1.06);
}

/* Bright centre so the headline reads against the water. */
.hero__wash {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    60% 50% at 50% 47%,
    rgba(250, 247, 242, 0.95) 0%,
    rgba(250, 247, 242, 0.72) 52%,
    rgba(250, 247, 242, 0.18) 100%
  );
}

.hero__fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 26%;
  background: linear-gradient(180deg, rgba(250, 247, 242, 0) 0%, var(--cream) 100%);
}

.hero__body {
  position: relative;
  width: 100%;
  max-width: 1180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(22px, 4vw, 36px);
}

.hero__title {
  font-size: clamp(2.2rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 1100px;
}

.hero__lede {
  max-width: 640px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  font-weight: 300;
  color: rgba(34, 38, 42, 0.86);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 10px 22px;
  padding-top: clamp(18px, 3vw, 30px);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(34, 38, 42, 0.72);
}

.hero__price {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

/* --- units --------------------------------------------------------------- */

.unit {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(24px, 3.5vw, 44px);
  align-items: center;
}

.unit__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

.unit__rent {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--sage);
}

/* --- outdoor band -------------------------------------------------------- */

.outdoor__copy { padding-block: clamp(26px, 5vw, 72px); }

.outdoor h3 {
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 900px;
  text-wrap: balance;
}

.outdoor p {
  margin-top: 18px;
  max-width: 760px;
}

/* --- finance (dark) ------------------------------------------------------ */

.finance {
  background: var(--dark);
  color: var(--light);
  padding-block: clamp(32px, 12vw, 170px);
}

.finance h2,
.finance h3 { color: var(--light); }

.finance .lede,
.finance .note { color: rgba(247, 244, 239, 0.78); }

.finance__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 6vw, 72px);
}


.calc {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 24px);
}

.calc__legend {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.6);
}

/* An even four-up that halves on a phone — never a ragged wrap. */
.chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 880px;
}

@media (max-width: 640px) {
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}



.chip {
  font-family: var(--sans);
  font-size: clamp(13px, 1.5vw, 14.5px);
  line-height: 1.3;
  padding: 11px 10px;
  border-radius: 12px;
  cursor: pointer;
  background: transparent;
  color: var(--light);
  border: 1px solid rgba(247, 244, 239, 0.3);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.chip:hover { border-color: rgba(247, 244, 239, 0.65); }

.chip[aria-pressed='true'] {
  background: var(--sage-soft);
  color: var(--ink);
  border-color: var(--sage-soft);
}

.calc__caption {
  max-width: 620px;
  font-size: clamp(14.5px, 1.6vw, 17px);
  line-height: 1.5;
  font-weight: 300;
  color: rgba(247, 244, 239, 0.78);
}

/* Both ways of paying share every row, so the eye compares across — and the
   whole panel still fits one phone screen. */
.ledger {
  width: 100%;
  max-width: 880px;
  border-collapse: collapse;
  font-family: var(--mono);
  table-layout: fixed;
}

.ledger th,
.ledger td {
  padding: clamp(7px, 1.1vw, 12px) clamp(6px, 1vw, 12px);
  text-align: right;
  border-bottom: 1px solid rgba(247, 244, 239, 0.12);
  font-weight: 400;
  overflow-wrap: anywhere;
}

.ledger thead th {
  font-size: clamp(10px, 1.3vw, 12px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.62);
  border-bottom-color: rgba(247, 244, 239, 0.32);
  padding-bottom: 12px;
  vertical-align: bottom;
}

.ledger thead td { border-bottom-color: transparent; }

.ledger tbody th {
  text-align: left;
  font-size: clamp(9.5px, 1.2vw, 11.5px);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.55);
  padding-left: 0;
}

.ledger tbody td { font-size: clamp(12px, 1.5vw, 15px); }

.ledger tr.is-big td {
  font-family: var(--serif);
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.05;
  padding-top: clamp(11px, 1.8vw, 20px);
}

.ledger tr.is-return td {
  font-family: var(--serif);
  font-size: clamp(19px, 2.6vw, 26px);
  line-height: 1.05;
  color: var(--sage-soft);
}

.ledger tbody tr:last-child th,
.ledger tbody tr:last-child td { border-bottom: 0; }

/* Growth is a second reading of the same money, so it sits quieter than the
   rent-only return directly above it. */
.ledger tr.is-growth td {
  font-family: var(--serif);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.05;
  color: rgba(169, 195, 188, 0.72);
}

.ledger tr.is-growth th { color: rgba(247, 244, 239, 0.45); }

/* A hairline between the two ways of paying. They are alternatives, not a
   ranking, so neither column is marked as the better one. */
.ledger th:nth-child(3),
.ledger td:nth-child(3) {
  border-left: 1px solid rgba(247, 244, 239, 0.22);
  padding-left: clamp(10px, 1.4vw, 18px);
}

.calc__read {
  max-width: 620px;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.55;
  font-weight: 300;
  color: rgba(247, 244, 239, 0.75);
}

.calc__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px clamp(16px, 2.4vw, 28px);
}

.finance__fine {
  font-size: 13.5px;
  line-height: 1.6;
  font-weight: 300;
  color: rgba(247, 244, 239, 0.6);
}

/* Everything that used to sit in four scattered ledgers now lives here. */
.assumptions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px;
  background: rgba(247, 244, 239, 0.16);
  border-top: 1px solid rgba(247, 244, 239, 0.2);
  border-bottom: 1px solid rgba(247, 244, 239, 0.2);
}

.assumptions > div {
  background: var(--dark);
  padding: clamp(18px, 2.2vw, 24px);
}

.assumptions h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-soft);
}

.assumptions p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 300;
  color: rgba(247, 244, 239, 0.72);
}

.link-btn {
  align-self: flex-start;
  background: transparent;
  border: 1px solid rgba(247, 244, 239, 0.35);
  color: var(--light);
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 200ms ease, background 200ms ease;
}

.link-btn:hover {
  border-color: var(--sage-soft);
  background: rgba(247, 244, 239, 0.06);
}

[hidden] { display: none !important; }

/* --- value / comparison -------------------------------------------------- */

.value {
  border-top: 1px solid rgba(247, 244, 239, 0.2);
  padding-top: clamp(32px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(26px, 4vw, 56px);
}

.value__title {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1px;
  background: rgba(247, 244, 239, 0.16);
  border-top: 1px solid rgba(247, 244, 239, 0.2);
  border-bottom: 1px solid rgba(247, 244, 239, 0.2);
}

.compare > div {
  background: var(--dark);
  padding: clamp(20px, 2.6vw, 28px);
}

.compare__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.6);
}

.compare__label.is-ours { color: var(--sage-soft); }

.compare__price {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  overflow-wrap: anywhere;
  margin-top: 10px;
}

.compare__note {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.6;
  font-weight: 300;
  color: rgba(247, 244, 239, 0.78);
  margin-top: 10px;
}

.footnote {
  font-size: 13.5px;
  line-height: 1.6;
  font-weight: 300;
  color: rgba(247, 244, 239, 0.6);
}

/* --- location ------------------------------------------------------------ */

.place {
  padding-top: clamp(52px, 12vw, 170px);
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 5vw, 60px);
}

.place__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(26px, 4vw, 56px);
  align-items: end;
}

.cell__lede {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}

.growth {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}

.growth__figure {
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.95;
}

.ppm {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: rgba(34, 38, 42, 0.18);
  border-top: 1px solid rgba(34, 38, 42, 0.18);
  border-bottom: 1px solid rgba(34, 38, 42, 0.18);
}

.ppm > div {
  background: var(--cream);
  padding: clamp(20px, 2.4vw, 26px);
}

.ppm__label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(34, 38, 42, 0.6);
}

.ppm__value {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.1;
  margin-top: 8px;
}

.ppm .is-ours .ppm__label,
.ppm .is-ours .ppm__value { color: var(--sage); }

.place__title {
  font-size: clamp(1.6rem, 3.8vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 980px;
  text-wrap: balance;
}

/* --- closing call -------------------------------------------------------- */

.closing {
  position: relative;
  overflow: hidden;
}

.closing__media { height: clamp(320px, 62vh, 820px); }

.closing__media img { filter: saturate(1) brightness(1.03); }

.closing__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(250, 247, 242, 0.62) 0%,
    rgba(250, 247, 242, 0.9) 45%,
    var(--cream) 100%
  );
}

.closing__body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px) var(--page-x);
}

.closing__inner {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(22px, 3.5vw, 34px);
}

.closing h2 {
  font-size: clamp(1.85rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.closing p {
  max-width: 620px;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
  font-weight: 300;
  color: rgba(34, 38, 42, 0.86);
}

/* --- viewing form -------------------------------------------------------- */

.visit {
  background: var(--cream);
  padding-block: clamp(40px, 9vw, 120px);
  border-top: 1px solid rgba(34, 38, 42, 0.16);
}

.visit__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}

.visit__intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.visit__title {
  font-size: clamp(1.75rem, 4.4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.visit__intro p { max-width: 460px; }

.form {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 28px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field > span {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(34, 38, 42, 0.6);
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(34, 38, 42, 0.28);
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink);
  outline: none;
  transition: border-color 200ms ease;
}

.field textarea { resize: vertical; }

.field input:focus,
.field textarea:focus { border-bottom-color: var(--sage); }

.field ::placeholder { color: rgba(34, 38, 42, 0.4); }

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.form__actions .btn { font-size: 16px; padding: 16px clamp(22px, 4vw, 34px); }

.form__note {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(34, 38, 42, 0.55);
}

/* --- footer -------------------------------------------------------------- */

.foot {
  padding-top: clamp(28px, 6vw, 80px);
  padding-bottom: clamp(34px, 6vw, 90px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(22px, 3vw, 40px);
  align-items: end;
  border-top: 1px solid rgba(34, 38, 42, 0.16);
}

.foot > * { padding-top: clamp(22px, 3vw, 40px); }

.foot__mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 16px;
}

.foot__name {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.15;
}

.foot__meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(34, 38, 42, 0.62);
  margin-top: 10px;
  line-height: 1.9;
}

.foot__contact {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 2.1;
  color: rgba(34, 38, 42, 0.75);
}

.foot__price {
  text-align: right;
  min-width: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
}

/* --- utilities ----------------------------------------------------------- */

.anchor { scroll-margin-top: 110px; }
.anchor--tight { scroll-margin-top: 80px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.finance :focus-visible { outline-color: var(--sage-soft); }

/* --- short phones --------------------------------------------------------
   Last in the file on purpose: these rules share specificity with the
   component rules above, so they only win from here.
   -------------------------------------------------------------------- */

@media (max-width: 640px) and (max-height: 780px) {
  .finance { padding-block: 20px; }
  .finance__inner { gap: 18px; }
  .calc { gap: 9px; }
  .ledger th,
  .ledger td { padding: 5px; }
  .ledger tr.is-big td { padding-top: 8px; }
  .chip { padding: 9px 8px; }
}
