/* Arden Vale — real estate. Tenor Sans + Hanken Grotesk. Limestone, forest, brass. */
:root {
  --bg: #f5f3ee;
  --stone: #e6e1d6;
  --green: #1e3229;
  --ink: #18211d;
  --muted: #6c736d;
  --line: rgba(24, 33, 29, 0.14);
  --accent: #a5854c;
  --display: 'Tenor Sans', 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 1, 0.3, 1);
  --pad: clamp(20px, 4.6vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--green); color: var(--bg); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--green); color: var(--bg); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding-inline: var(--pad); }

.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 4.8vw, 74px); line-height: 1.04; letter-spacing: -0.015em; max-width: 14ch; }
.h3 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1.1; }

/* Motion primitives */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 1.1s var(--ease) var(--d, 0ms), transform 1.3s var(--ease) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; background: none; }
.js [data-reveal="clip"] > img { clip-path: inset(0 0 0 100%); transition: clip-path 1.7s var(--ease) var(--d, 0ms) !important; }
.js [data-reveal="clip"].is-in > img { clip-path: inset(0); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.w-i { display: inline-block; transform: translateY(110%); transition: transform 1.25s var(--ease); }
.is-in .w-i { transform: none; }
[hidden] { display: none !important; }
.is-shown { animation: rise 0.9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.media { position: relative; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media img[data-parallax] { position: absolute; left: 0; top: -8%; height: 116%; will-change: transform; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border: 1px solid var(--ink); background: none; cursor: pointer; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease); }
.btn:hover { background: var(--green); border-color: var(--green); color: var(--bg); }
.btn--solid { background: var(--green); border-color: var(--green); color: var(--bg); padding: 19px 28px; }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.link { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 1px solid currentColor; }
.link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; transition: transform 0.6s var(--ease); }
.link:hover svg { transform: translateX(6px); }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px var(--pad);
  transition: padding 0.6s var(--ease), background 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.header.is-scrolled { padding-block: 12px; background: rgba(245, 243, 238, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 21px; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1; }
.brand svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.5; }
.nav { display: flex; gap: clamp(18px, 3vw, 46px); }
.nav a { position: relative; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink); transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.nav-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.hero__copy { display: flex; flex-direction: column; justify-content: flex-end; padding: 150px clamp(24px, 4vw, 64px) clamp(40px, 7vh, 80px) var(--pad); }
.hero__title { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 6.6vw, 112px); line-height: 0.98; letter-spacing: -0.025em; }
.hero__lede { margin-top: 30px; max-width: 38ch; color: var(--muted); font-size: 19px; }
.search { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr auto; margin-top: clamp(36px, 6vh, 64px); border: 1px solid var(--ink); background: var(--bg); }
.search label { display: block; padding: 14px 18px; font-size: 10px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--line); }
.search select { display: block; width: 100%; margin-top: 2px; padding: 0; border: 0; background: transparent; font-family: var(--display); font-size: 18px; letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; }
.search select:focus { outline: none; color: var(--accent); }
.search button { width: 68px; border: 0; background: var(--green); color: var(--bg); cursor: pointer; display: grid; place-items: center; transition: background 0.5s var(--ease); }
.search button:hover { background: var(--accent); }
.search button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.search__note { position: absolute; left: 0; top: calc(100% + 12px); font-size: 15px; color: var(--accent); opacity: 0; transition: opacity 0.6s var(--ease); }
.search__note.is-shown { opacity: 1; }
.hero__visual { position: relative; }
.hero__media { height: 100%; min-height: 520px; }
.header__cta { background: var(--bg); }
.feature { position: absolute; left: -24px; bottom: clamp(40px, 7vh, 80px); width: 270px; background: var(--bg); padding: 24px 26px; display: grid; gap: 2px; box-shadow: 0 30px 60px -34px rgba(24, 33, 29, 0.55); transition: transform 0.8s var(--ease); }
.feature:hover { transform: translateY(-6px); }
.feature__tag { font-size: 10px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.feature strong { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.15; }
.feature span:not(.feature__tag) { font-size: 14px; color: var(--muted); }
.feature b { font-family: var(--display); font-weight: 400; font-size: 20px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Figures */
.figures { padding-block: clamp(72px, 9vw, 130px); }
.figures dl { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.figures dl > div { padding: clamp(28px, 3.4vw, 48px) 24px clamp(28px, 3.4vw, 48px) 0; }
.figures dl > div + div { padding-left: clamp(18px, 2.6vw, 40px); border-left: 1px solid var(--line); }
.figures dt { font-family: var(--display); font-size: clamp(44px, 5.2vw, 84px); line-height: 1; letter-spacing: -0.02em; color: var(--green); }
.figures dt small { font-size: 0.4em; color: var(--accent); margin-left: 4px; letter-spacing: 0; }
.figures dd { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 24ch; }

/* Listings */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 80px); }
.listings { padding-bottom: clamp(96px, 12vw, 180px); }
.filters { display: flex; flex-wrap: wrap; gap: clamp(16px, 2.4vw, 34px); }
.filters button { position: relative; background: none; border: 0; padding: 6px 0; cursor: pointer; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); transition: color 0.4s var(--ease); }
.filters button::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.filters button:hover, .filters button.is-active { color: var(--ink); }
.filters button.is-active::after { transform: scaleX(1); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(44px, 5vw, 80px) clamp(18px, 2.2vw, 32px); }
.home__media { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--stone); }
.home__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease); }
.home:hover .home__media img { transform: scale(1.05); }
.home__media span { position: absolute; left: 16px; top: 16px; padding: 6px 12px; background: var(--bg); font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.home__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 22px; }
.home h3 { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2vw, 29px); line-height: 1.15; }
.home__price { font-family: var(--display); font-size: 19px; color: var(--accent); white-space: nowrap; }
.home__place { font-size: 15px; color: var(--muted); margin-top: 2px; }
.home__spec { display: flex; gap: 22px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.home__spec li { display: inline-flex; align-items: center; gap: 8px; }
.home__spec svg { width: 19px; height: 19px; fill: none; stroke: var(--green); stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; }

/* Spotlight */
.spotlight { position: relative; overflow: hidden; min-height: min(92vh, 860px); display: flex; align-items: flex-end; }
.spotlight__media { position: absolute; inset: 0; }
.spotlight__media img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.spotlight__inner { position: relative; padding-block: clamp(24px, 5vw, 72px); }
.spotlight__card { background: var(--bg); max-width: 470px; padding: clamp(28px, 3.4vw, 48px); }
.spotlight__card > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); }
.spotlight__card dl { margin: 26px 0 30px; border-top: 1px solid var(--line); }
.spotlight__card dl div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spotlight__card dt { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); align-self: center; }
.spotlight__card dd { font-family: var(--display); font-size: 19px; }

/* Services */
.services { background: var(--green); color: var(--bg); padding-block: clamp(96px, 12vw, 180px); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(245, 243, 238, 0.2); }
.services article { padding: clamp(28px, 3.4vw, 52px) clamp(20px, 3vw, 48px) 0 0; position: relative; }
.services article + article { padding-left: clamp(20px, 3vw, 48px); border-left: 1px solid rgba(245, 243, 238, 0.2); }
.services article::before { content: ''; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.services article:hover::before { transform: scaleX(1); }
.services span { font-size: 12px; font-weight: 500; letter-spacing: 0.2em; color: var(--accent); }
.services svg { display: block; width: 52px; height: 52px; margin: clamp(36px, 5vw, 72px) 0 22px; fill: none; stroke: var(--bg); stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; transition: transform 1s var(--ease), stroke 0.6s var(--ease); }
.services article:hover svg { transform: translateY(-6px); stroke: var(--accent); }
.services h3 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1.1; }
.services p { margin-top: 14px; opacity: 0.72; max-width: 36ch; }

/* Studio */
.studio { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 140px); align-items: center; padding-block: clamp(96px, 13vw, 200px); }
.studio__media { position: relative; padding-bottom: 14%; padding-right: 22%; }
.studio__a { aspect-ratio: 4 / 5; }
.studio__b { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 3 / 4; outline: 12px solid var(--bg); }
.quote { font-family: var(--display); font-size: clamp(30px, 3.6vw, 56px); line-height: 1.14; letter-spacing: -0.015em; }
.studio__name { margin-top: 30px; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.studio__text { margin: 18px 0 34px; color: var(--muted); max-width: 46ch; }

/* Contact */
.contact { background: var(--stone); padding-block: clamp(96px, 11vw, 170px); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 140px); align-items: start; }
.office { margin-top: 44px; border-top: 1px solid var(--line); }
.office div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.office dt { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.office a { transition: color 0.4s var(--ease); }
.office a:hover { color: var(--accent); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; }
.form__wide { grid-column: 1 / -1; }
.form label { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 8px; padding: 10px 0 12px; background: transparent; border: 0; border-bottom: 1px solid rgba(24, 33, 29, 0.35); border-radius: 0; font-family: var(--display); font-size: 20px; letter-spacing: 0; text-transform: none; color: var(--ink); resize: vertical; transition: border-color 0.5s var(--ease); }
.form input::placeholder, .form textarea::placeholder { color: rgba(24, 33, 29, 0.32); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form__note { font-size: 16px; color: var(--green); min-height: 1.7em; opacity: 0; transition: opacity 0.6s var(--ease); }
.form__note.is-shown { opacity: 1; }

/* Footer */
.footer { background: var(--green); color: var(--bg); }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 44px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 30px; }
.footer nav a { font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; transition: opacity 0.4s var(--ease); }
.footer nav a:hover { opacity: 1; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid rgba(245, 243, 238, 0.18); font-size: 13px; opacity: 0.65; }

/* Responsive */
@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; }
  .hero__copy { padding-right: var(--pad); padding-top: 130px; }
  .hero__media { height: 70vh; }
  .feature { left: var(--pad); }
  .grid { grid-template-columns: 1fr 1fr; }
  .figures dl { grid-template-columns: 1fr 1fr; }
  .figures dl > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .figures dl > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .studio, .contact__inner { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .services article, .services article + article { padding: 32px 0; border-left: 0; border-bottom: 1px solid rgba(245, 243, 238, 0.2); }
  .services svg { margin-top: 24px; }
}
@media (max-width: 860px) {
  .burger { display: block; z-index: 2; }
  .brand { z-index: 2; position: relative; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: 0; background: var(--bg);
    flex-direction: column; justify-content: center; gap: 8px; padding: var(--pad);
    opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s;
  }
  .nav a { font-family: var(--display); font-size: 40px; letter-spacing: -0.01em; text-transform: none; font-weight: 400; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
}
@media (max-width: 600px) {
  .search { grid-template-columns: 1fr 1fr; }
  .search label:nth-of-type(2) { border-right: 0; }
  .search label:nth-of-type(3) { border-top: 1px solid var(--line); }
  .search button { width: auto; border-top: 1px solid var(--line); }
  .grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .office div { grid-template-columns: 1fr; gap: 4px; }
  .brand { font-size: 17px; }
  .feature { width: 230px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
