/* ---- Phoenix demo bar (shared by every concept; not part of the template) ---- */
:root { --phx-h: 2.25rem; }
@media (max-width: 40rem) { :root { --phx-h: 3.5rem; } }
.phx-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--phx-h);
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: 0 1rem; background: #111; color: #f2f2f2;
  font: 500 .78rem/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: .01em;
}
.phx-bar p { margin: 0; }
.phx-bar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.phx-bar a:hover { text-decoration-thickness: 2px; }
.phx-bar a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 2px; }
.phx-bar__tag { display: none; }
.phx-bar__sep { opacity: .6; margin: 0 .25rem; }
.phx-bar__back { white-space: nowrap; opacity: .85; }
@media (max-width: 40rem) {
  .phx-bar { align-items: center; font-size: .7rem; line-height: 1.25; }
  .phx-bar__msg { max-width: 68%; }
}

/* ===== Property · Concept A · Editorial =====
   Instrument Serif + Instrument Sans · paper, ink, bottle green · slow cinematic motion */
@font-face { font-family: "Instrument Serif"; src: url(../fonts/instrument-serif-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(../fonts/instrument-serif-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@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: #f5f2ec; --paper-2: #ebe6dc; --ink: #16150f; --muted: #5a554b; --line: #d6cfc1;
  --green: #1f3a2e; --green-2: #16291f; --brass: #b8955f; --on-green: #f1ece2; --on-green-muted: #c5cfc4;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 4.5rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--phx-h) + var(--header-h)); -webkit-text-size-adjust: 100%; }
body { margin: 0; padding-top: var(--phx-h); background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.i { width: 1.1em; height: 1.1em; flex: none; }
.wrap { width: min(100% - 2.5rem, 84rem); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 1100; background: var(--ink); color: var(--paper); padding: .6rem 1rem; }
.skip-link:focus { top: calc(var(--phx-h) + .5rem); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
em { font-style: italic; }

/* Header: transparent over the photo, paper once scrolled */
.site-header { position: fixed; top: var(--phx-h); left: 0; right: 0; z-index: 50; color: #fff; transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s; }
.site-header.is-scrolled, .menu-open .site-header { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.wordmark { font: 400 1.6rem/1 var(--serif); text-decoration: none; letter-spacing: -.01em; }
.wordmark__demo { font: 500 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .75; vertical-align: middle; }
.nav { display: none; gap: 2.25rem; align-items: center; font-size: .9rem; letter-spacing: .02em; }
.nav a { text-decoration: none; position: relative; padding: .35rem 0; }
.nav a:not(.nav__cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { border: 1px solid currentColor; padding: .6rem 1.1rem !important; border-radius: 999px; transition: background .3s, color .3s; }
.nav__cta:hover { background: currentColor; }
.nav__cta:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.site-header:not(.is-scrolled) .nav__cta:hover { color: var(--ink); background: #fff; border-color: #fff; }
.nav-toggle { display: none; align-items: center; gap: .6rem; background: none; border: 0; color: inherit; font: 500 .85rem var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; padding: .5rem 0; }
.nav-toggle__lines { width: 1.5rem; height: .6rem; position: relative; }
.nav-toggle__lines::before, .nav-toggle__lines::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.nav-toggle__lines::before { top: 0; } .nav-toggle__lines::after { top: calc(100% - 1.5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines::before { top: calc(50% - .75px); transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines::after { top: calc(50% - .75px); transform: rotate(-45deg); }
.mobile-nav { display: grid; background: var(--paper); color: var(--ink); padding: 0 1.25rem 1rem; }
.mobile-nav a { font: 400 2rem/1.1 var(--serif); text-decoration: none; padding: .7rem 0; border-top: 1px solid var(--line); display: flex; gap: 1rem; align-items: baseline; }
.mobile-nav span { font: 500 .75rem var(--sans); color: var(--muted); letter-spacing: .1em; }
.js .mobile-nav { position: absolute; left: 0; right: 0; top: 100%; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .6s var(--ease), visibility 0s .6s; box-shadow: 0 20px 40px -20px rgba(0,0,0,.25); }
.js .mobile-nav[data-open="true"] { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease), visibility 0s; }
.js .mobile-nav a { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .mobile-nav[data-open="true"] a { opacity: 1; transform: none; }
.js .mobile-nav[data-open="true"] a:nth-child(2) { transition-delay: .06s; } .js .mobile-nav[data-open="true"] a:nth-child(3) { transition-delay: .12s; } .js .mobile-nav[data-open="true"] a:nth-child(4) { transition-delay: .18s; }
html:not(.js) .site-header { position: relative; top: 0; background: var(--ink); }
html:not(.js) .mobile-nav { background: var(--ink); color: #fff; }
@media (min-width: 56rem) { .nav { display: flex; } .mobile-nav { display: none !important; } }
@media (max-width: 55.99rem) { .js .nav-toggle { display: inline-flex; } }

/* Hero */
.hero { position: relative; min-height: max(36rem, calc(100svh - var(--phx-h))); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #2a2a26; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 35%; transform-origin: 50% 40%; will-change: transform; }
.js .hero__media img { animation: heroIn 2.2s var(--ease) both; }
@keyframes heroIn { from { transform: scale(1.08); filter: brightness(.7); } to { transform: scale(1); filter: none; } }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,10,.55) 0%, rgba(10,12,10,.38) 35%, rgba(10,12,10,.5) 60%, rgba(10,12,10,.88) 100%), linear-gradient(90deg, rgba(10,12,10,.35), transparent 65%); }
.hero__content { position: relative; padding-block: 9rem 2.5rem; }
.hero__kicker { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
.hero__title { font: 400 clamp(3.1rem, 9.5vw, 8.75rem)/.92 var(--serif); letter-spacing: -.025em; margin-top: 1.6rem; max-width: 12ch; text-wrap: balance; }
.hero__title em { color: #e9dcc3; }
.hero__foot { margin-top: 2.25rem; display: grid; gap: 1.5rem; border-top: 1px solid rgba(255,255,255,.35); padding-top: 1.5rem; }
.hero__lead { max-width: 34rem; color: rgba(255,255,255,.88); font-size: 1.05rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem; align-items: center; }
@media (min-width: 56rem) { .hero__foot { grid-template-columns: 1fr auto; align-items: end; } }

.btn { display: inline-flex; align-items: center; gap: .6rem; font: 500 .95rem/1 var(--sans); letter-spacing: .01em; padding: 1rem 1.5rem; border-radius: 999px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .4s var(--ease), background .3s, color .3s; }
.btn .i { transition: transform .4s var(--ease); }
.btn:hover .i { transform: translate(3px, 0); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--paper-2); }
.link-light { color: #fff; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.hero :focus-visible, .contact :focus-visible { outline-color: #fff; }

/* Principles */
.principles { border-bottom: 1px solid var(--line); }
.principles__list { display: grid; gap: 0; padding-block: 1.25rem; }
.principles__list li { font: 400 1.5rem/1.2 var(--serif); padding: .9rem 0; border-top: 1px solid var(--line); display: flex; gap: .9rem; align-items: baseline; }
.principles__list li:first-child { border-top: 0; }
.principles__n { font: italic 400 1rem var(--serif); color: var(--muted); min-width: 1.6rem; }
@media (min-width: 56rem) { .principles__list { grid-template-columns: repeat(3, 1fr); padding-block: 2.25rem; } .principles__list li { border-top: 0; border-left: 1px solid var(--line); padding: 0 2rem; } .principles__list li:first-child { border-left: 0; padding-left: 0; } }

.label { font: 500 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: .75rem; }
.label::before { content: ""; width: 2rem; height: 1px; background: var(--brass); }
.label--light { color: var(--on-green-muted); }
.h2 { font: 400 clamp(2.5rem, 6vw, 5rem)/.98 var(--serif); letter-spacing: -.02em; margin-top: 1rem; text-wrap: balance; }
.h2 em { color: var(--green); }
.lead { font-size: 1.15rem; color: var(--muted); margin-top: 1.5rem; max-width: 36rem; }

/* Listings strip */
.listings { padding-block: 6rem 4rem; }
.listings__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.listings__controls { display: flex; align-items: center; gap: .6rem; }
.listings__count { font: 400 1.25rem var(--serif); margin-right: .75rem; font-variant-numeric: tabular-nums; }
.round-btn { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--ink); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .3s, color .3s, opacity .3s; }
.round-btn:hover { background: var(--ink); color: var(--paper); }
.round-btn:disabled { opacity: .3; cursor: default; background: transparent; color: var(--ink); }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 26rem); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(1.25rem, (100vw - 84rem) / 2); padding: 3rem max(1.25rem, (100vw - 84rem) / 2) 1.5rem; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; overscroll-behavior-x: contain; }
.strip:focus-visible { outline-offset: -4px; }
@media (min-width: 64rem) { .strip { grid-auto-columns: 34vw; gap: 2rem; } }
.listing { scroll-snap-align: start; }
.listing__link { display: grid; gap: .6rem; text-decoration: none; }
.listing__img { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); }
.listing__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.listing__link:hover .listing__img img, .listing__link:focus-visible .listing__img img { transform: scale(1.05); }
.listing__meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: .5rem; }
.listing__title { font: 400 1.65rem/1.1 var(--serif); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); justify-self: start; }
.listing__link:hover .listing__title { background-size: 100% 1px; }
.listing__price { font-size: 1.05rem; font-weight: 600; }
.listing__ask { height: 100%; aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem; padding: 2rem; background: var(--green); color: var(--on-green); text-decoration: none; transition: background .4s; }
.listing__ask:hover { background: var(--green-2); }
.listing__ask-title { font: 400 2.25rem/1 var(--serif); }
.listing__ask span:last-child { display: flex; gap: .5rem; align-items: center; color: var(--on-green-muted); }
.listing__ask:focus-visible { outline-color: var(--green); }
.listings__note { font-size: .8rem; color: var(--muted); }

/* About */
.about { background: var(--paper-2); padding-block: 6rem; }
.about__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 64rem) { .about__grid { grid-template-columns: 5fr 6fr; gap: 6rem; } }
.about__figure { overflow: hidden; }
.about__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.services { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.services > div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.services dt { font: 400 1.6rem var(--serif); }
.services dd { color: var(--muted); }

.addon-slot { margin-block: 4rem; border: 1px dashed var(--line); padding: 1.25rem 1.5rem; font-size: .9rem; color: var(--muted); }

/* Contact */
.contact { background: var(--green); color: var(--on-green); padding-block: 6rem; }
.contact .h2 em { color: #e9dcc3; }
.contact .lead { color: var(--on-green-muted); }
.contact__grid { display: grid; gap: 3.5rem; }
@media (min-width: 64rem) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 6rem; } }
.contact__list { margin-top: 2.5rem; display: grid; gap: .9rem; }
.contact__list a { display: inline-flex; gap: .75rem; align-items: center; font-size: 1.1rem; text-decoration: none; border-bottom: 1px solid rgba(241,236,226,.3); padding-bottom: .2rem; }
.contact__list a:hover { border-color: var(--on-green); }
.form { display: grid; gap: 1.75rem; align-content: start; }
.form__row { display: grid; gap: 1.75rem; }
@media (min-width: 40rem) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-green-muted); }
.opt { text-transform: none; letter-spacing: 0; }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(241,236,226,.45); color: var(--on-green); font: 400 1.25rem/1.4 var(--sans); padding: .45rem 0; border-radius: 0; transition: border-color .3s; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom: 2px solid #fff; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.form__privacy { font-size: .85rem; color: var(--on-green-muted); }
.form .btn { justify-self: start; }
.form-status { min-height: 1.5rem; font-weight: 500; }
.form-status[data-state] { background: #fff; color: var(--ink); padding: .8rem 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.footer { padding-block: 4rem 2rem; }
.footer__mark { font: 400 clamp(3.5rem, 15vw, 14rem)/.85 var(--serif); letter-spacing: -.04em; white-space: nowrap; overflow: hidden; }
.footer__cols { display: grid; gap: 2rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
@media (min-width: 56rem) { .footer__cols { grid-template-columns: 2fr 1fr 1fr; } }
.footer__tag { max-width: 24rem; color: var(--muted); }
.footer__h { font: 500 .75rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.footer ul { display: grid; gap: .45rem; }
.footer ul a { text-decoration: none; } .footer ul a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; font-size: .82rem; color: var(--muted); }

/* Reveal: soft rise; images unveil upwards */
.reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal [data-reveal].is-in { opacity: 1; transform: none; }
.reveal [data-reveal="clip"] { opacity: 1; transform: none; }
.reveal [data-reveal="clip"] img { clip-path: inset(100% 0 0 0); transform: scale(1.15); transition: clip-path 1.4s var(--ease), transform 1.8s var(--ease); }
.reveal [data-reveal="clip"].is-in img { clip-path: inset(0 0 0 0); transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .reveal [data-reveal] img { transform: none; clip-path: none; }
}
