/* design-direction: coastal-calm */
/* layout: hero=photo-frame | location.index about.ledger rooms.price-poster gallery.stacked accent.bleed-numeral accent.giant-index accent.stamp-overlap */
:root {
  --bg: #eef3f2;
  --ink: #152422;
  --muted: #4a5c58;
  --accent: #1f5c54;
  --accent-deep: #0f2e2a;
  --panel: #f7faf9;
  --line: #c5d4d0;
  --wash: #e4eeeb;
  --accent-solid: #1f5c54;
  --accent-on: #f7f3ec;
  --ink-on: #f4efe6;
  --focus: #0b57d0;
  --radius: 0px;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --header: color-mix(in srgb, var(--bg) 92%, transparent);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 40%),
    
    linear-gradient(180deg, var(--wash) 0, var(--bg) 220px);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 30;
  background: var(--ink); color: #fff; padding: 8px 12px;
}
.skip-link:focus { top: 12px; }
.shell { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: var(--header);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.12rem;
  text-decoration: none;
  font-weight: 700;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: 0.94rem; }
.site-nav a[aria-current="page"],
.site-nav a:hover { color: var(--ink); }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  border-radius: 0px; padding: 0.5rem 0.85rem; font: inherit;
}
.lang-switcher {
  display: inline-flex; align-items: center; gap: 0.4rem; flex-shrink: 0;
}
.lang-switcher[hidden] { display: none !important; }
/* Flag links are injected by js/i18n.js; keep selectors under .lang-switcher so CSS prune retains them. */
.lang-switcher a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.2rem; border: 1px solid transparent; border-radius: 0px;
  line-height: 0; opacity: 0.72; text-decoration: none; color: var(--ink);
}
.lang-switcher a:hover { opacity: 1; border-color: var(--line); }
.lang-switcher a.is-active,
.lang-switcher a[aria-current="true"] {
  opacity: 1;
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}
.lang-switcher img {
  display: block; width: 1.55rem; height: auto; border-radius: 2px;
}
.hero {
  position: relative;
  min-height: 62vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero-image {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: relative; z-index: 1; width: 100%;
  padding: 3.25rem 0 2.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(10,14,18,0.42) 48%, rgba(10,14,18,0.78) 100%);
  color: #f7f4ef;
}
.eyebrow {
  margin: 0 0 0.65rem; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.76rem; opacity: 0.85;
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: 1.02;
  max-width: 14ch;
  
  animation: rise 0.8s ease both;
}
.lede {
  max-width: 36rem; font-size: 1.08rem; opacity: 0.92;
  
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.25rem;
  
}
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0.65rem 1.1rem;
  border-radius: 0px;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  font-weight: 650;
  border: 1px solid transparent;
}
.button:hover { filter: brightness(0.95); }
.section { padding: 3.25rem 0; }
.section--tint { background: color-mix(in srgb, var(--wash) 70%, transparent); }
.section h2 {
  margin: 0 0 0.85rem;
  line-height: 1.12;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}
.section-kicker {
  margin: 0 0 0.4rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.75rem;
}
.prose { max-width: 62ch; }
.prose p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.motif { width: min(280px, 70%); height: auto; }
.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 0.75rem;
}
.gallery-item { margin: 0; grid-column: span 6; overflow: hidden; border-radius: var(--radius); background: var(--wash); }
.gallery-item:first-child { grid-column: span 12; }
.gallery-item img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.site-footer {
  padding: 1.6rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 0.6rem; }
.footer-nav a { text-decoration: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
* { animation: none !important; transition: none !important; }
}
.chapter { scroll-margin-top: 5rem; }
.site-nav a.is-active { color: var(--accent); }
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
.gallery-item figcaption { padding: 0.55rem 0.2rem 0; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 860px) {
.nav-toggle { display: inline-flex; }
.site-nav {
    display: none; position: absolute; left: 1rem; right: 1rem; top: 4.2rem;
    padding: 1rem; flex-direction: column; background: var(--panel);
    border: 1px solid var(--line); border-radius: 12px;
  }
.site-nav.is-open { display: flex; }
.gallery-item,
.gallery-item:first-child { grid-column: span 12; }
.hero { min-height: 48vh; }
}
@media (prefers-reduced-motion: reduce) {
[data-reveal] { opacity: 1; transform: none; transition: none; }
}
.gallery-item:hover img,
.hero-media:hover .hero-image {
  transform: scale(1.03);
}
[data-stagger] > * {
  animation: rise 0.7s ease both;
  animation-delay: calc(var(--stagger-index, 0) * 70ms);
}
.hero[data-parallax] .hero-image {
  will-change: transform;
  transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
[data-stagger] > * { animation: none; }
.gallery-item img,
.hero-image { transition: none !important; transform: none !important; }
}
/* ---- composition blocks ---- */
.hero-media { position: absolute; inset: 0; }
/* Each line is scaled to the page width: by this estimate first, then exactly by js/main.js. */
/* Type-only heroes: the title is ink on the page background and the photo is a strip below it. */
.hero--photo-frame {
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center;
  min-height: 0; overflow: visible; padding: 1.5rem 0 2.5rem;
}
.hero--photo-frame .hero-overlay {
  background: transparent; color: var(--ink);
  padding: 2rem 2rem 2rem max(1rem, calc((100vw - 1120px) / 2));
}
.hero--photo-frame .hero-copy { width: auto; margin: 0; }
.hero--photo-frame .hero-media {
  position: relative; min-height: 460px; background: var(--wash);
  margin: 1rem max(1rem, calc((100vw - 1120px) / 2)) 1rem 0;
  border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden;
  box-shadow: 14px 14px 0 var(--accent);
}
/* about */
.ledger dt {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.75;
}
.ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.25rem; margin: 1.5rem 0 2.2rem; }
.ledger > div { border-top: 3px solid var(--accent); padding-top: 0.75rem; }
.ledger dd {
  margin: 0.3rem 0 0; font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.4vw, 2.5rem); line-height: 1.08; overflow-wrap: anywhere;
}
.ledger-cols { max-width: none; columns: 2 20rem; column-gap: 2.5rem; }
.ledger-cols .lede { column-span: all; max-width: 46rem; margin-top: 0; }
.ledger-cols p { margin-top: 0; }
/* rooms */
.price-poster { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
.poster-price {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  padding: 2rem; border-radius: var(--radius); background: var(--accent-solid); color: var(--accent-on);
}
.poster-copy { align-self: center; }
.poster-label { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; opacity: 0.85; }
.poster-price strong { display: block; font-family: var(--font-display); font-weight: 700; }
.price-fig { display: flex; flex-direction: column; gap: 0.35rem; }
.price-num {
  display: block; font-size: clamp(5.5rem, 22vw, 11rem); line-height: 0.9; letter-spacing: -0.05em;
  font-variant-numeric: lining-nums; padding-bottom: 0.08em;
}
.price-unit { position: relative; z-index: 1; display: block; font-size: clamp(1rem, 2.2vw, 1.35rem); line-height: 1.2; letter-spacing: 0.01em; }
.poster-note { font-size: 0.95rem; opacity: 0.9; }
.whole-house { display: grid; gap: 0.15rem; margin: 0.9rem 0 0; }
.whole-house span { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.whole-house strong { font-variant-numeric: lining-nums; }
.whole-house strong { font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.15; }
.poster-copy h2 { margin-top: 0; }
.poster-copy .button { margin-top: 1.1rem; }
/* location */
.index-list { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.index-list li {
  display: grid; grid-template-columns: 4rem 1fr auto; gap: 1rem; align-items: baseline;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.index-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); }
.index-list h3 { margin: 0 0 0.25rem; font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.index-list p { margin: 0; color: var(--muted); }
/* gallery */
.gallery--stacked { display: grid; grid-template-columns: 1fr; gap: 2.2rem; }
.gallery--stacked .gallery-item {
  grid-column: auto; display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.2rem; align-items: end;
  background: transparent; overflow: visible;
}
.gallery--stacked .gallery-item:nth-child(even) { grid-template-columns: 1fr 1.7fr; }
.gallery--stacked .gallery-item:nth-child(even) img { order: 2; }
.gallery--stacked .gallery-item img { border-radius: var(--radius); }
.gallery--stacked figcaption { padding: 0.6rem 0 0; border-top: 1px solid var(--line); }
/* faq */
/* contact */
/* bands */
/* hand-drawn motif of the art director: larger and fully opaque */
/* composition accents (body[data-accents]) */
.accent-stamp-anchor { position: relative; height: 0; z-index: 3; }
.accent-stamp {
  position: absolute; top: -4.2rem; right: max(1rem, calc((100vw - 1120px) / 2 + 1rem));
  width: clamp(110px, 16vw, 190px); aspect-ratio: 1; padding: 1.2rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--panel); color: var(--ink); border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--accent); transform: rotate(-9deg);
}
.accent-stamp .motif { width: 100%; height: auto; }
body[data-accents~="bleed-numeral"] .poster-price {
  position: relative; z-index: 2; margin-top: -2.75rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin-left: calc(-1 * max(1rem, (100vw - 1120px) / 2));
  padding-left: calc(max(1rem, (100vw - 1120px) / 2) + 1.75rem);
}
body[data-accents~="bleed-numeral"] .price-num { font-size: clamp(7rem, 32vw, 17rem); margin-block: 0; }
body[data-accents~="giant-index"] main { counter-reset: chapter; }
body[data-accents~="giant-index"] .chapter { position: relative; overflow: hidden; counter-increment: chapter; }
body[data-accents~="giant-index"] .chapter::before {
  content: counter(chapter, decimal-leading-zero);
  content: counter(chapter, decimal-leading-zero) / "";
  position: absolute; right: -0.04em; top: -0.16em; pointer-events: none;
  font-family: var(--font-display); font-weight: 700; line-height: 1; letter-spacing: -0.05em;
  font-size: clamp(9rem, 30vw, 24rem); color: currentColor; opacity: 0.07;
}
body[data-accents~="giant-index"] .chapter > * { position: relative; }
@media (max-width: 860px) {
.accent-stamp { top: -3.2rem; width: 104px; padding: 0.8rem; }
body[data-accents~="bleed-numeral"] .poster-price { margin-top: -1.75rem; }
.hero--photo-frame { grid-template-columns: 1fr; padding-bottom: 1.5rem; }
.hero--photo-frame .hero-overlay { padding: 1.5rem 1rem 0.5rem; }
.hero--photo-frame .hero-media { min-height: 300px; margin: 1rem 1.5rem 1rem 1rem; box-shadow: 10px 10px 0 var(--accent); }
.price-poster,
.ledger { grid-template-columns: 1fr; }
.index-list li { grid-template-columns: 3rem 1fr; }
.index-list li > a { grid-column: 2; }
.gallery--stacked .gallery-item,
.gallery--stacked .gallery-item:nth-child(even) { grid-template-columns: 1fr; }
.gallery--stacked .gallery-item:nth-child(even) img { order: 0; }
}
