@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f6f5f1;
  --card: #ffffff;
  --mist: #ecebe5;
  --line: #dfddd5;
  --ink: #16181a;
  --ink-2: #5d615e;
  --ink-3: #8b8f8b;
  --moss: #2f4a3a;
  --moss-2: #e3e9e2;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gut: clamp(1rem, 3.2vw, 2.75rem);
  --r: 24px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 "Instrument Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; margin: 0; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .75rem; padding: .35rem .35rem .35rem 1.15rem; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 500; font-size: .9375rem; border: 0; cursor: pointer; transition: background-color 220ms var(--ease); }
.btn__ic { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--paper); color: var(--ink); transition: transform 320ms var(--ease); }
.btn__ic svg { width: .85rem; height: .85rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { background: var(--moss); }
.btn:hover .btn__ic { transform: rotate(45deg); }
.btn--sm { font-size: .875rem; padding-left: 1rem; }
.btn--sm .btn__ic { width: 1.8rem; height: 1.8rem; }
.link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .15rem; }
.link svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform 300ms var(--ease); }
.link:hover svg { transform: translateX(4px); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 2rem; padding: .9rem var(--gut); background: rgb(246 245 241 / .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav__mark { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.nav__glyph { display: inline-flex; align-items: center; justify-content: center; height: 2.25rem; padding: 0 .55rem; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: .75rem; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.nav__glyph i { font-style: normal; opacity: .55; margin: 0 1px; }
.nav__name { font-weight: 600; letter-spacing: -.02em; font-size: 1.05rem; }
.nav__links { display: flex; gap: 1.6rem; list-style: none; margin: 0 0 0 1rem; padding: 0; font-size: .9375rem; }
.nav__links a { text-decoration: none; color: var(--ink-2); transition: color 160ms; }
.nav__links a:hover { color: var(--ink); }
.nav .btn { margin-left: auto; }

/* Hero */
.hero { padding: clamp(1.5rem, 4vw, 3.5rem) var(--gut) 0; }
.hero__top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: start; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 6.1rem); letter-spacing: -0.045em; line-height: .96; margin-bottom: 1.75rem; }
.hero h1 span { display: block; }
.hero__intro { max-width: 30rem; justify-self: end; color: var(--ink-2); font-size: clamp(1rem, 1.25vw, 1.125rem); padding-top: .6rem; }
.hero__film { position: relative; margin: 0 calc(var(--gut) * -1); aspect-ratio: 16 / 7.4; overflow: hidden; background: #1b2638; }
.hero__poster img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 96%; }
.hero__video { opacity: 0; transition: opacity 900ms var(--ease); }
.hero__video.is-on { opacity: 1; }
.hero__tag { position: absolute; left: var(--gut); top: clamp(1rem, 2.4vw, 2rem); display: flex; flex-direction: column; gap: .1rem; padding: .8rem 1.1rem; border-radius: 16px; background: rgb(246 245 241 / .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .875rem; }
.hero__tag-name { font-weight: 600; letter-spacing: -.01em; }
.hero__tag-price { color: var(--moss); }
.hero__replay { position: absolute; right: var(--gut); bottom: clamp(1rem, 2.4vw, 2rem); width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgb(246 245 241 / .9); cursor: pointer; transition: transform 300ms var(--ease); }
.hero__replay svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.hero__replay:hover { transform: rotate(-30deg); }
.hero__replay[hidden] { display: none; }

/* Section heads */
.sechead { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2rem, 3.5vw, 3rem); }
.sechead h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); max-width: 16ch; }
.sechead p { color: var(--ink-2); max-width: 26rem; justify-self: end; }

/* Homes */
.homes { padding: clamp(4.5rem, 9vw, 8rem) var(--gut) clamp(3rem, 6vw, 5rem); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 1.8vw, 1.5rem); }
.card { position: relative; background: var(--card); border-radius: var(--r); overflow: hidden; transition: transform 500ms var(--ease), box-shadow 500ms var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgb(22 24 26 / .35); }
.card__link { display: block; text-decoration: none; }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 1.15rem 1.25rem 1.3rem; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.card h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.card__price { font-weight: 500; color: var(--moss); white-space: nowrap; }
.card__place { color: var(--ink-3); font-size: .875rem; margin-top: .2rem; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin: 1rem 0 0; padding: .9rem 0 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .8125rem; }
.facts li { display: inline-flex; align-items: center; gap: .4rem; }
.facts svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.card__save { position: absolute; top: .9rem; right: .9rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgb(255 255 255 / .9); cursor: pointer; transition: transform 300ms var(--ease); }
.card__save svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: var(--ink); stroke-width: 1.4; transition: fill 200ms; }
.card__save[aria-pressed="true"] svg { fill: var(--moss); stroke: var(--moss); }
.card__save:active { transform: scale(.88); }

/* Collection */
.collection { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(1rem, 1.8vw, 1.5rem); padding: clamp(1rem, 3vw, 2rem) var(--gut) clamp(4rem, 8vw, 7rem); }
.collection__card { background: var(--card); border-radius: var(--r); padding: clamp(1.75rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: flex-end; gap: 1.25rem; min-height: 26rem; }
.collection__card h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
.collection__card p { color: var(--ink-2); max-width: 30rem; }
.collection__card .link { align-self: flex-start; margin-top: .5rem; }
.collection__img { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 5 / 4; }
.collection__img img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }

/* Estimate */
.estimate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2rem 4rem; margin: 0 var(--gut); padding: clamp(2rem, 5vw, 4.5rem); border-radius: var(--r); background: var(--moss); color: #eef2ec; }
.estimate h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); max-width: 13ch; margin-bottom: 1.25rem; }
.estimate__copy p { color: rgb(238 242 236 / .78); max-width: 28rem; }
.estimate__copy .estimate__note { margin-top: 1.5rem; font-size: .8125rem; color: rgb(238 242 236 / .6); }
.est { display: grid; gap: 1.1rem; background: var(--paper); color: var(--ink); border-radius: 18px; padding: clamp(1.25rem, 2.6vw, 2rem); }
.est__field { border: 0; margin: 0; padding: 0; display: grid; gap: .45rem; }
.est__field > label, .est__field legend, .est__label { font-size: .8125rem; color: var(--ink-2); padding: 0; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 1rem; top: 50%; width: .5rem; height: .5rem; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select { width: 100%; appearance: none; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: .75rem 2.5rem .75rem .9rem; cursor: pointer; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .3rem; padding: .3rem; background: var(--mist); border-radius: 999px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: .55rem .5rem; border-radius: 999px; font-size: .875rem; transition: background-color 220ms var(--ease), color 220ms; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--moss); outline-offset: 2px; }
.step { display: inline-flex; align-items: center; gap: .25rem; background: var(--mist); border-radius: 999px; padding: .3rem; justify-self: start; }
.step button { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0; background: var(--card); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.step output { min-width: 2.5rem; text-align: center; font-weight: 600; }
.est__out { margin-top: .4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); display: grid; gap: .3rem; }
.est__out-label { font-size: .8125rem; color: var(--ink-2); }
.est__range { font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.est__range span { color: var(--moss); }
.est__bar { position: relative; height: 6px; border-radius: 6px; background: var(--mist); margin-top: .6rem; overflow: hidden; }
.est__bar i { position: absolute; top: 0; bottom: 0; left: var(--l, 30%); width: var(--w, 20%); border-radius: 6px; background: var(--moss); transition: left 600ms var(--ease), width 600ms var(--ease); }

/* Areas */
.areas { padding: clamp(4.5rem, 9vw, 8rem) var(--gut) clamp(2rem, 4vw, 3rem); }
.areas__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 1.8vw, 1.5rem); }
.area { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.area h3 { font-size: 1.6rem; }
.area p { color: var(--ink-2); margin-top: .5rem; font-size: .9375rem; }
.area dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.75rem 0 0; }
.area dt { font-size: .8125rem; color: var(--ink-3); }
.area dd { margin: .2rem 0 0; font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 500; letter-spacing: -.03em; }

/* Quote */
.quote { padding: clamp(3.5rem, 8vw, 7rem) var(--gut); }
.quote blockquote { margin: 0 auto; max-width: 56rem; text-align: center; }
.quote p { font-size: clamp(1.5rem, 3vw, 2.6rem); letter-spacing: -.03em; line-height: 1.18; font-weight: 500; text-wrap: balance; }
.quote footer { margin-top: 1.5rem; color: var(--ink-3); font-size: .875rem; }

/* Valuation */
.valuation { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2rem 4rem; padding: clamp(3rem, 6vw, 5rem) var(--gut) clamp(5rem, 9vw, 8rem); border-top: 1px solid var(--line); margin: 0 var(--gut); padding-left: 0; padding-right: 0; }
.valuation h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); margin-bottom: 1rem; }
.valuation__copy p { color: var(--ink-2); max-width: 26rem; }
.vform { display: grid; gap: 1rem; }
.vform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.vform label { display: grid; gap: .4rem; font-size: .8125rem; color: var(--ink-2); }
.vform input { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: .8rem .9rem; color: var(--ink); font-size: 1rem; }
.vform input[aria-invalid="true"] { border-color: #a1452f; }
.vform .btn { justify-self: start; margin-top: .4rem; }
.vform__note { font-size: .8125rem; color: var(--ink-3); }
.vform__note.is-ok { color: var(--moss); }

/* Footer */
.foot { background: var(--ink); color: #d9dbd6; padding: clamp(2.5rem, 5vw, 4rem) var(--gut) calc(clamp(2.5rem, 5vw, 4rem) + 3rem); }
.foot__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgb(255 255 255 / .14); margin-bottom: 1.5rem; }
.foot__brand { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 500; letter-spacing: -.04em; color: #fff; }
.foot__links { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; flex-wrap: wrap; }
.foot__links a { text-decoration: none; color: #c5c8c2; }
.foot__links a:hover { color: #fff; }
.foot__credit { max-width: 62ch; font-size: .875rem; color: #a6aaa4; }
.foot__credit a { color: #fff; }

.credit { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border-radius: 999px; background: rgb(22 24 26 / .88); color: #eceee9; font-size: .8125rem; text-decoration: none; transition: background-color 180ms var(--ease); }
.credit svg { width: .85rem; height: .85rem; }
.credit:hover { background: var(--moss); }

/* Entrances: visible by default, armed by JS */
.js-motion [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 950ms var(--ease), transform 950ms var(--ease); transition-delay: var(--d, 0ms); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }
.js-motion .hero h1[data-reveal] { transform: none; opacity: 1; }
.js-motion .hero h1 span { display: block; opacity: 0; transform: translateY(.45em); transition: opacity 1000ms var(--ease), transform 1000ms var(--ease); }
.js-motion .hero h1 span:nth-child(2) { transition-delay: 110ms; }
.js-motion .hero h1.is-in span { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .nav__links { display: none; }
  .nav { justify-content: space-between; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: span 2; }
  .cards .card:last-child .card__img { aspect-ratio: 16 / 7; }
  .estimate, .valuation { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .nav__name { display: none; }
  .hero__top, .sechead { grid-template-columns: 1fr; }
  .hero__intro, .sechead p { justify-self: start; padding-top: 0; }
  .hero h1 { margin-bottom: 1.4rem; }
  .hero__film { aspect-ratio: 4 / 5; margin: 0; border-radius: 18px; }
  .hero__poster img, .hero__video { object-position: 30% 96%; }
  .hero__tag { left: .75rem; top: .75rem; font-size: .8125rem; }
  .hero__replay { right: .75rem; bottom: .75rem; }
  .cards { grid-template-columns: 1fr; }
  .cards .card:last-child { grid-column: auto; }
  .cards .card:last-child .card__img { aspect-ratio: 4 / 3; }
  .collection { grid-template-columns: 1fr; }
  .collection__card { min-height: 0; }
  .collection__img { aspect-ratio: 4 / 5; }
  .estimate { margin: 0 .5rem; padding: 1.75rem 1.1rem; }
  .areas__grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .vform__row { grid-template-columns: 1fr; }
  .valuation { padding-bottom: calc(8dvh + 4rem); }
  .credit { left: 1rem; right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
  .hero__video { display: none; }
}
