/* Uysal Estate — tokens */
:root {
  --green: #2b472a;          /* the green of the logo */
  --green-deep: #1e3420;
  --green-soft: #3d6140;
  --mint: #dcf5f4;           /* logo wordmark colour */
  --paper: #f4f6f3;
  --stone: #e4e8e2;
  --line: #c6cec4;
  --ink: #17211a;
  --muted: #526056;
  --brick: #9a4a34;          /* Vesterbrogade 198 brick, used sparingly */

  /* A heavy, high-contrast serif for headings, a firm grotesk for everything else */
  --font-display: "Gloock", "Bodoni 72", Georgia, serif;
  --font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-display: clamp(2.7rem, 1.2rem + 6vw, 7rem);
  --fs-h2: clamp(2.1rem, 1.3rem + 3vw, 4.2rem);
  --fs-h3: clamp(1.45rem, 1.15rem + 1vw, 2rem);
  --fs-lead: clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem);
  --fs-body: 1rem;
  --fs-small: 0.82rem;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1400px;
  --section: clamp(88px, 11vw, 176px);
  --radius: 14px;
  --radius-lg: 28px;
  /* Arches borrowed from the buildings: round for portrait photos,
     a shallow segmental arch for landscape ones */
  --arch: 999px 999px var(--radius) var(--radius);
  --arch-low: 50% 50% var(--radius) var(--radius) / 18% 18% var(--radius) var(--radius);
  --header-h: 76px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; text-wrap: balance; }
.site-footer h2 { font-family: var(--font); }
p { margin: 0; text-wrap: pretty; }
dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
abbr { text-decoration: none; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.cta-band :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: var(--mint); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section) 0; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--green); color: var(--mint); padding: 12px 18px; border-radius: var(--radius);
}
.skip:focus { top: 16px; }

/* Type */
.display {
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.h2 { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -0.02em; }
.h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.01em; }
.lead { font-size: var(--fs-lead); font-weight: 400; line-height: 1.45; letter-spacing: -0.01em; max-width: 30em; }
.prose p + p { margin-top: 1em; }
.prose { max-width: 36em; color: var(--muted); }
.prose--large { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); max-width: 30em; }

/* Buttons and links */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 13px 30px;
  border-radius: 999px;
  font: inherit; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.03em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: color 0.35s ease, border-color 0.35s ease;
}
/* The fill rises from the bottom edge on hover */
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: var(--btn-fill); transform: translateY(101%);
  transition: transform 0.55s var(--ease-out);
}
.btn:active { translate: 0 1px; }
.btn--primary { background: var(--green); color: var(--mint); --btn-fill: var(--green-deep); }
.btn--ghost { border-color: var(--green); color: var(--green); background: transparent; --btn-fill: var(--green); }
@media (hover: hover) {
  .btn:hover::before { transform: none; }
  .btn--ghost:hover { color: var(--mint); }
}

.text-link {
  display: inline-block; padding-block: 6px;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.03em; text-decoration: none; color: var(--green);
  background: linear-gradient(currentColor, currentColor) right bottom / 100% 1px no-repeat;
}
.text-link--light { color: var(--mint); }

/* Wordmark (from the logo, used as a mask so it takes any colour) */
.wordmark {
  display: block;
  aspect-ratio: 720 / 87;
  background: currentColor;
  -webkit-mask: url(../img/wordmark.png) center / contain no-repeat;
          mask: url(../img/wordmark.png) center / contain no-repeat;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--green); text-decoration: none; position: relative; z-index: 2; }
.brand__mark { width: 44px; height: auto; }
.brand .wordmark { width: 128px; }

.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.site-nav ul { display: flex; }
.site-nav a { text-decoration: none; display: inline-block; position: relative; }

/* Liquid glass pill (desktop): a drop of water marks the current page.
   main.js draws the water; without JS the current link gets a soft mint fill. */
.liquid { position: relative; isolation: isolate; display: flex; align-items: center; padding: 5px; border-radius: 999px; }
.liquid ul { gap: 2px; }
.liquid__glass {
  position: absolute; inset: 0; z-index: -2; border-radius: inherit; overflow: hidden;
  background: rgb(255 255 255 / 0.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.2) brightness(1.04);
          backdrop-filter: blur(12px) saturate(1.2) brightness(1.04);
  box-shadow:
    inset 0 1px 1px rgb(255 255 255 / 0.85),
    inset 0 0 0 1px rgb(43 71 42 / 0.08),
    0 14px 32px -16px rgb(30 52 32 / 0.45),
    0 2px 6px rgb(30 52 32 / 0.07);
}
.liquid[data-refract="on"] .liquid__glass {
  -webkit-backdrop-filter: url(#liquid-refract) blur(2px) saturate(1.2) brightness(1.04);
          backdrop-filter: url(#liquid-refract) blur(2px) saturate(1.2) brightness(1.04);
}
.liquid__water { position: absolute; left: -14px; top: -14px; z-index: -1; pointer-events: none; }
.liquid[data-gl="off"] .liquid__water, .liquid:not([data-gl]) .liquid__water { display: none; }
.liquid__drop {
  display: none; position: absolute; top: 5px; bottom: 5px; left: 0; z-index: -1;
  border-radius: 999px; pointer-events: none; will-change: transform, width;
  background: radial-gradient(120% 140% at 30% 0%, rgb(255 255 255 / 0.8), rgb(255 255 255 / 0) 55%), rgb(220 245 244 / 0.75);
  box-shadow: inset 0 1px 1px #fff, inset 0 -2px 6px rgb(43 71 42 / 0.16), inset 0 0 0 1px rgb(255 255 255 / 0.6), 0 6px 16px -6px rgb(30 52 32 / 0.4);
}
.liquid[data-gl="off"] .liquid__drop { display: block; }
.liquid__item {
  display: inline-flex !important; align-items: center; height: 40px; padding: 0 18px;
  border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 0.88rem; letter-spacing: 0.02em;
  transition: color 0.25s ease, background-color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.liquid__item:hover, .liquid__item[aria-current="page"] { color: var(--ink); }
@media (min-width: 761px) {
  .liquid:not([data-gl]) .liquid__item[aria-current="page"] { background: rgb(220 245 244 / 0.8); }
}
.liquid__item:focus-visible { outline-offset: 2px; border-radius: 999px; }
.lang { color: var(--muted); font-size: var(--fs-small); min-width: 44px; text-align: center; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px !important; }
.lang:hover { color: var(--green); border-color: var(--green); }
.lang__long { display: none; }

.menu-toggle {
  display: none;
  font: inherit; font-weight: 500; color: var(--green);
  background: none; border: 1px solid var(--green); border-radius: 999px;
  min-height: 44px; padding: 8px 16px; cursor: pointer; position: relative; z-index: 2;
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .brand .wordmark { width: 112px; }
  .brand__mark { width: 38px; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 32px;
    padding: 120px var(--gutter) 48px;
    background: var(--green); color: var(--mint);
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.6s var(--ease-inout), visibility 0s linear 0.6s;
  }
  /* In the full-screen menu the pill becomes a plain list with drawn underlines */
  .site-nav .liquid { display: block; padding: 0; border-radius: 0; }
  .site-nav :is(.liquid__glass, .liquid__water, .liquid__drop) { display: none !important; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav ul a.liquid__item {
    display: inline-block !important; height: auto; padding: 4px 0; border-radius: 0; background: none;
    color: var(--mint); font-family: var(--font-display); font-size: clamp(2.4rem, 11vw, 3.4rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.12;
  }
  .site-nav ul a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out);
  }
  .site-nav ul a:hover::after, .site-nav ul a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
  .lang { color: var(--mint); border-color: color-mix(in srgb, var(--mint) 40%, transparent); font-size: 1rem; }
  .lang abbr { display: none; }
  .lang__long { display: inline; }
  .nav-open .site-nav { visibility: visible; clip-path: inset(0); transition: clip-path 0.6s var(--ease-inout); }
  .nav-open .brand, .nav-open .menu-toggle { color: var(--mint); border-color: var(--mint); }
  .nav-open body { overflow: hidden; }
}

/* Hero */
.hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: end;
  padding-top: clamp(24px, 5vw, 64px);
}
/* The logo mark, large and out of focus, behind the headline */
.hero__bg {
  position: absolute; z-index: -1; top: -76px; bottom: -80px; left: 50%; width: 100vw; translate: -50% 0;
  overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent);
          mask-image: linear-gradient(180deg, #000 62%, transparent);
}
.hero__bg-mark {
  position: absolute; left: -4vw; top: 50%; translate: 0 -50%;
  width: min(118vw, 1600px); height: auto;
  color: var(--green); opacity: 0.12; filter: blur(clamp(6px, 0.9vw, 14px));
}
@media (max-width: 900px) {
  .hero__bg-mark { left: -40vw; top: 34%; width: 190vw; opacity: 0.1; }
}
.hero__text { grid-column: 1 / 9; padding-bottom: clamp(8px, 4vw, 72px); }
/* Sized to the column so the longest word ("Erhvervsejendomme") never overflows */
.hero__title { max-width: 11.5em; font-size: clamp(2rem, 5.2vw, 5.6rem); }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero__title .w > span { display: inline-block; }
/* Stops short of the logo tile, which reaches into this column */
.hero__lead { margin-top: clamp(24px, 3vw, 40px); color: var(--muted); max-width: min(21em, calc(100% - clamp(32px, 6vw, 112px) + var(--gutter) - 28px)); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3.5vw, 44px); }

.hero__visual { grid-column: 9 / 13; position: relative; }
.hero__media { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--arch); background: var(--stone); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__tile {
  position: absolute; left: calc(-1 * clamp(32px, 6vw, 112px)); bottom: clamp(56px, 7vw, 104px);
  width: clamp(124px, 14vw, 208px); aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--green); color: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 0 8px var(--paper);
}
.hero__tile .mark { width: 58%; height: auto; }
.hero__visual figcaption { margin-top: 12px; font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.03em; color: var(--muted); }

@media (max-width: 900px) {
  .hero { row-gap: 40px; }
  .hero__text, .hero__visual { grid-column: 1 / -1; }
  .hero__text { padding-bottom: 0; }
  .hero__title { font-size: min(calc((100vw - 32px) / 9.6), 4.5rem); }
  .hero__lead { max-width: 24em; }
  .hero__visual { width: min(100%, 460px); justify-self: end; }
  .hero__media { aspect-ratio: 4 / 4.6; }
  .hero__tile { left: -12px; bottom: 44px; width: 104px; }
}

/* Intro + facts */
.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 32px; }
.intro .h2 { grid-column: 1 / 6; max-width: 9em; }
.intro__body { grid-column: 6 / 13; }
.facts {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  margin-top: clamp(40px, 5vw, 64px); padding-top: 24px;
}
.facts div { display: flex; flex-direction: column-reverse; gap: 4px; }
.facts dd { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); line-height: 1; letter-spacing: -0.02em; color: var(--green); font-variant-numeric: tabular-nums; }
.facts dt { color: var(--muted); font-size: var(--fs-small); }
@media (max-width: 900px) {
  .intro .h2, .intro__body { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
}

/* Small print gets a little air */
.facts dt, .meta dt, .spec dt, .form__note, .site-footer h2, .site-footer__legal { letter-spacing: 0.03em; }

/* Hairlines: drawn as pseudo-elements so they can draw in from the left */
.facts::before, .meta::before, .approach__item::before, .cta-link::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--line); transform-origin: left;
}

/* Section head */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 48px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head p { color: var(--muted); max-width: 26em; }

/* Media + reveal */
.media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--stone); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
a.media:hover img { transform: scale(1.035); }

/* Property rows (home) */
.prop-row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 28px;
  align-items: center;
}
.prop-row + .prop-row { margin-top: clamp(64px, 9vw, 128px); }
.prop-row__media { grid-column: 1 / 8; aspect-ratio: 4 / 3; border-radius: var(--arch-low); }
.prop-row__body { grid-column: 9 / 13; }
.prop-row--flip .prop-row__media { grid-column: 6 / 13; grid-row: 1; }
.prop-row--flip .prop-row__body { grid-column: 1 / 5; grid-row: 1; }
.prop-row__district, .property__district { color: var(--green); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 12px; }
.prop-row h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 14px; }
.prop-row h3 a { text-decoration: none; }
.prop-row h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prop-row__body > p:not(.prop-row__district) { color: var(--muted); }
.meta { position: relative; display: grid; gap: 10px; margin: 24px 0 20px; padding-top: 18px; }
.meta div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; }
.meta dt { color: var(--muted); font-size: var(--fs-small); padding-top: 2px; }
.portfolio__all { margin-top: clamp(56px, 7vw, 96px); }
@media (max-width: 900px) {
  .prop-row__media, .prop-row__body,
  .prop-row--flip .prop-row__media, .prop-row--flip .prop-row__body { grid-column: 1 / -1; grid-row: auto; }
}

/* Approach: sticky heading, list drawn with the logo's four steps */
.approach { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; align-items: start; }
.approach__head { grid-column: 1 / 5; position: sticky; top: 120px; }
.approach__head p { margin-top: 20px; color: var(--muted); max-width: 20em; font-size: var(--fs-lead); line-height: 1.4; }
.approach__list { grid-column: 6 / 13; border-bottom: 1px solid var(--line); }
.approach__item { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; padding-block: 30px 34px; }
.approach__item .stair { grid-row: 1 / span 2; width: 40px; height: auto; margin-top: 14px; color: var(--green); }
.approach__item h3 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 10px; transition: translate 0.6s var(--ease-out); }
.approach__item p { color: var(--muted); max-width: 32em; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.55; }
.stair line { transform-box: fill-box; transform-origin: left center; transition: transform 0.5s var(--ease-out) calc(var(--i) * 45ms); }
@media (hover: hover) {
  .approach__item:hover h3 { translate: 6px 0; }
  .approach__item:hover .stair line { transform: scaleX(1.22); }
}
@media (max-width: 900px) {
  .approach__head, .approach__list { grid-column: 1 / -1; }
  .approach__head { position: static; }
}
@media (max-width: 480px) {
  .approach__item { grid-template-columns: 38px 1fr; column-gap: 14px; }
  .approach__item .stair { width: 28px; margin-top: 7px; }
}

/* CTA band: two large link blocks over a faint, self-drawing logo mark */
.cta-band { position: relative; overflow: hidden; margin-top: var(--section); background: var(--green); color: var(--mint);
  border-radius: 50% 50% 0 0 / clamp(40px, 7vw, 110px) clamp(40px, 7vw, 110px) 0 0; }
.cta-band__mark {
  position: absolute; right: -8%; bottom: -22%; width: min(70vw, 820px); height: auto;
  color: var(--mint); opacity: 0.08; pointer-events: none;
}
.cta-band__inner { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px var(--gutter); padding-block: clamp(72px, 9vw, 136px); }
.cta-link { position: relative; display: flex; flex-direction: column; padding-top: 30px; color: inherit; text-decoration: none; }
.cta-link::before { background: color-mix(in srgb, var(--mint) 28%, transparent); }
.cta-link::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--mint); transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s var(--ease-inout);
}
.cta-link__title { transition: translate 0.6s var(--ease-out); }
.cta-link__text { margin: 14px 0 32px; max-width: 28em; color: color-mix(in srgb, var(--mint) 80%, var(--green)); }
.cta-link__action { margin-top: auto; display: inline-flex; align-items: center; gap: 14px; font-weight: 500; }
.stair--action { width: 30px; height: auto; }
.cta-link:focus-visible { outline-offset: 10px; }
@media (hover: hover) {
  .cta-link:hover::after { transform: none; }
  .cta-link:hover .cta-link__title { translate: 8px 0; }
  .cta-link:hover .stair--action line { transform: scaleX(1.35); }
}
@media (max-width: 760px) { .cta-band__inner { grid-template-columns: 1fr; } }

/* Cursor label over property photos (mouse only) */
.cursor-label { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor-label [data-cursor] { cursor: none; }
  .cursor-label {
    display: block; position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  }
  .cursor-label > span {
    display: block; translate: -50% -50%;
    padding: 12px 18px; border-radius: 999px;
    background: var(--green); color: var(--mint); font-size: var(--fs-small); font-weight: 500; white-space: nowrap;
    opacity: 0; scale: 0.5;
    transition: opacity 0.3s ease, scale 0.45s var(--ease-out);
  }
  .cursor-label.is-on > span { opacity: 1; scale: 1; }
}

/* Footer */
.site-footer { background: var(--green-deep); color: var(--mint); padding-block: clamp(64px, 8vw, 104px) 32px; }
.page-home .site-footer { border-top: 1px solid color-mix(in srgb, var(--mint) 14%, transparent); }
.site-footer__brand { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; row-gap: 20px; max-width: 420px; }
.site-footer__mark { width: 64px; height: auto; }
.site-footer .wordmark { width: 180px; }
.site-footer__brand p { grid-column: 1 / -1; color: color-mix(in srgb, var(--mint) 75%, var(--green-deep)); }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gutter); margin-top: clamp(48px, 6vw, 80px); }
.site-footer h2 { font-size: var(--fs-small); font-weight: 500; color: color-mix(in srgb, var(--mint) 65%, var(--green-deep)); margin-bottom: 12px; }
.site-footer a {
  text-decoration: none; display: inline-block; padding-block: 4px;
  background: linear-gradient(currentColor, currentColor) left calc(100% - 2px) / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease-out);
}
.site-footer a:hover { background-size: 100% 1px; }
.site-footer p + p { margin-top: 4px; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.copy {
  font: inherit; font-size: 0.8rem; color: inherit; cursor: pointer;
  background: transparent; border: 1px solid color-mix(in srgb, var(--mint) 30%, transparent); border-radius: 999px;
  min-height: 30px; padding: 3px 12px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.copy:hover { border-color: var(--mint); }
.copy.is-done { background: var(--mint); color: var(--green-deep); border-color: var(--mint); }
.clock { margin-top: 14px !important; font-size: var(--fs-small); color: color-mix(in srgb, var(--mint) 65%, var(--green-deep)); font-variant-numeric: tabular-nums; }
.clock .colon { animation: colon 2s steps(1) infinite; }
@keyframes colon { 50% { opacity: 0.25; } }
.site-footer__legal { margin-top: clamp(48px, 6vw, 80px); padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--mint) 18%, transparent); font-size: var(--fs-small); color: color-mix(in srgb, var(--mint) 65%, var(--green-deep)); }
@media (max-width: 700px) { .site-footer__cols { grid-template-columns: 1fr; } }

/* Page head (inner pages) */
.page-head { padding-top: clamp(40px, 8vw, 120px); }
.page-head .lead { margin-top: clamp(20px, 3vw, 36px); color: var(--muted); }

/* Properties page */
/* The sticky info column only travels alongside the gallery, not over the map below */
.property__main { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; align-items: start; }
.property__info { grid-column: 1 / 5; position: sticky; top: 104px; }
.property__info .h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.7rem); }
.gallery { grid-column: 5 / 13; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.gallery__item--lead { grid-column: 1 / -1; }
.gallery__item--lead .media { aspect-ratio: 3 / 2; border-radius: var(--arch-low); }
.gallery__item--half { grid-column: span 3; }
.gallery__item--half .media { aspect-ratio: 4 / 5; border-radius: var(--arch); }
.gallery__item--third { grid-column: span 2; }
.gallery__item--third .media { aspect-ratio: 1; }
.gallery .media { cursor: zoom-in; }
.spec { display: grid; margin: 28px 0; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: var(--fs-small); padding-top: 2px; }
.spec a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.spec a:hover { color: var(--green); }
@media (max-width: 900px) {
  .property__info, .gallery { grid-column: 1 / -1; }
  .property__info { position: static; }
}
@media (max-width: 560px) {
  .gallery__item--third { grid-column: span 3; }
  .gallery__item--third:last-child { grid-column: 1 / -1; }
  .gallery__item--third:last-child .media { aspect-ratio: 3 / 2; }
}

/* Property location: a toned-down map with a liquid glass marker */
.property__map { margin-top: clamp(48px, 6vw, 88px); }
.map-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.map {
  position: relative; z-index: 0; isolation: isolate; /* keeps Leaflet's layers under the sticky header */
  aspect-ratio: 21 / 8; min-height: 320px; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--stone); font-family: var(--font);
}
@media (max-width: 700px) { .map { aspect-ratio: auto; min-height: 0; height: 360px; } }
.map .leaflet-tile-pane { filter: grayscale(1) sepia(0.18) hue-rotate(55deg) saturate(0.7) contrast(0.92) brightness(1.06); }
.map .leaflet-container, .map.leaflet-container { background: var(--stone); font: inherit; }
.map .leaflet-control-zoom { border: 0; box-shadow: 0 8px 20px -10px rgb(30 52 32 / 0.5); border-radius: var(--radius); overflow: hidden; }
.map .leaflet-control-zoom a { width: 36px; height: 36px; line-height: 36px; color: var(--green); background: rgb(255 255 255 / 0.92); border-color: var(--stone); }
.map .leaflet-control-zoom a:hover { background: var(--green); color: var(--mint); }
.map .leaflet-control-attribution { background: rgb(244 246 243 / 0.85); color: var(--muted); font-size: 0.68rem; }
.map .leaflet-control-attribution a { color: var(--muted); }

.map-marker { width: 0 !important; height: 0 !important; background: none; border: 0; }
.map-marker__dot {
  position: absolute; left: 0; top: 0; width: 14px; height: 14px; translate: -50% -50%;
  border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgb(255 255 255 / 0.9), 0 4px 10px rgb(30 52 32 / 0.35);
}
.map-marker__dot::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid var(--green); opacity: 0;
}
.liquid--marker {
  position: absolute; left: 0; bottom: 18px; translate: -50% 0;
  padding: 4px; white-space: nowrap;
}
.liquid--marker .liquid__glass { background: rgb(255 255 255 / 0.5); }
.liquid--marker .liquid__item {
  height: 36px; padding: 0 16px; color: var(--ink); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em; cursor: default;
}
.liquid--marker::after { /* a short stem from the pill down to the dot */
  content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 12px; background: var(--green); opacity: 0.6;
}
@media (prefers-reduced-motion: no-preference) {
  .map-marker__dot::after { animation: ping 2.6s var(--ease-out) infinite; }
  @keyframes ping { 0% { opacity: 0.6; transform: scale(0.4); } 100% { opacity: 0; transform: scale(1.6); } }
}

/* Lightbox */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: color-mix(in srgb, var(--green-deep) 96%, transparent); color: var(--mint);
}
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 72px 72px 24px; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; border-radius: var(--radius); }
.lightbox__caption { margin-top: 16px; max-width: 48em; text-align: center; font-size: var(--fs-small); color: color-mix(in srgb, var(--mint) 78%, var(--green-deep)); }
.lightbox__btn {
  position: absolute; min-width: 48px; min-height: 48px; padding: 10px 16px;
  font: inherit; color: var(--mint); background: transparent; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--mint) 35%, transparent); border-radius: var(--radius);
  display: grid; place-items: center;
}
.lightbox__btn:hover { background: color-mix(in srgb, var(--mint) 12%, transparent); }
.lightbox__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 16px; top: 50%; translate: 0 -50%; }
@media (max-width: 700px) {
  .lightbox[open] { padding: 72px 12px 88px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; translate: none; }
  .lightbox__prev { left: calc(50% - 56px); }
  .lightbox__next { right: calc(50% - 56px); }
}

/* About page */
.story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 28px; }
.story .h2 { grid-column: 1 / 6; }
.story .prose { grid-column: 6 / 13; }
.colour__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; align-items: center; }
.colour__media { grid-column: 1 / 7; aspect-ratio: 4 / 5; border-radius: var(--arch); }
.colour__body { grid-column: 8 / 13; }
.colour__mark { width: clamp(120px, 14vw, 180px); padding: 26px; background: var(--green); color: var(--mint); border-radius: 50%; margin-bottom: 32px; }
.colour__mark .mark { width: 100%; height: auto; }
.colour__body p { margin-top: 14px; color: var(--muted); max-width: 30em; }
.spec--wide { margin: 0 0 40px; }
.spec--wide div { grid-template-columns: minmax(8em, 1fr) 2fr; padding-block: 20px; }
.spec--wide dd { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; }
@media (max-width: 900px) {
  .story .h2, .story .prose, .colour__media, .colour__body { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .spec--wide div { grid-template-columns: 1fr; gap: 4px; }
}

/* Contact page */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 56px; align-items: start; }
.contact__details { grid-column: 1 / 5; }
.contact__details .spec dd { font-size: 1.125rem; }
.form { grid-column: 6 / 13; display: grid; gap: 22px; padding: clamp(24px, 4vw, 48px); background: #fff; border: 1px solid var(--stone); border-radius: var(--radius-lg); }
.form .btn { justify-self: start; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 500; padding: 0; }
.field legend { margin-bottom: 10px; }
.field__optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; min-height: 48px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent); }
.field [aria-invalid="true"] { border-color: var(--brick); }
.field__error { color: var(--brick); font-size: var(--fs-small); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; display: flex; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  flex: 1; display: flex; align-items: center; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper); line-height: 1.3; padding-inline: 18px;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.choice:hover span { border-color: var(--muted); }
.choice input:checked + span { background: var(--green); border-color: var(--green); color: var(--mint); }
.choice input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.form__note { font-size: var(--fs-small); color: var(--muted); max-width: 36em; }
.form__status:empty { display: none; }
.form__status { padding: 14px 16px; border-radius: var(--radius); background: var(--stone); }
.form__status.is-error { background: color-mix(in srgb, var(--brick) 10%, #fff); color: var(--brick); }
@media (max-width: 900px) {
  .contact__details, .form { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .choices { grid-template-columns: 1fr; }
}

/* Motion — one orchestrated entrance on load, image reveals on scroll.
   Everything is visible by default; motion only applies when allowed. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 0.28s var(--ease-inout) both vt-out; }
  ::view-transition-new(root) { animation: 0.5s var(--ease-out) both vt-in; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

  .js .hero__bg-mark { animation: haze 2.4s var(--ease-out) both; }
  @keyframes haze { from { opacity: 0; scale: 1.06; } }
  .js .hero__title .w > span { transform: translateY(108%); animation: rise 1.1s var(--ease-out) forwards; animation-delay: calc(0.12s + var(--i) * 0.055s); }
  .js .hero__lead, .js .hero__actions { opacity: 0; animation: fade 0.9s var(--ease-out) 0.75s forwards; }
  .js .hero__actions { animation-delay: 0.9s; }
  .js .hero__media { animation: unveil 1.4s var(--ease-inout) 0.6s both; }
  .js .hero__media img { animation: settle 2s var(--ease-out) 0.6s both; }
  .js .hero__tile { animation: tile 0.9s var(--ease-out) 1.25s both; }
  .js .hero__visual figcaption { opacity: 0; animation: fade 0.8s ease 1.7s forwards; }

  .js .mark--draw polyline { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .hero .mark--draw polyline { animation: draw 0.9s var(--ease-inout) forwards; animation-delay: calc(1.45s + var(--i) * 0.065s); }
  .js .is-in .mark--draw polyline, .js .mark--draw.is-in polyline { animation: draw 0.9s var(--ease-inout) forwards; animation-delay: calc(0.2s + var(--i) * 0.065s); }

  .js [data-reveal] { clip-path: inset(0 0 100% 0); }
  .js [data-reveal] img { transform: scale(1.12); }
  .js [data-reveal].is-in { clip-path: inset(0); transition: clip-path 1.2s var(--ease-inout); }
  .js [data-reveal].is-in img { transform: none; transition: transform 1.8s var(--ease-out); }
  .js a[data-reveal].is-in:hover img { transform: scale(1.035); transition-duration: 1.2s; }

  /* Hairlines draw in, then their content settles */
  .js [data-in]::before { transform: scaleX(0); }
  .js [data-in].is-in::before { transform: none; transition: transform 1.3s var(--ease-inout); }
  .js .facts > div { opacity: 0; translate: 0 14px; }
  .js .facts.is-in > div { opacity: 1; translate: 0 0; transition: opacity 0.8s ease, translate 1s var(--ease-out); }
  .js .facts.is-in > div:nth-child(2) { transition-delay: 0.08s; }
  .js .facts.is-in > div:nth-child(3) { transition-delay: 0.16s; }
  .js .facts.is-in > div:nth-child(4) { transition-delay: 0.24s; }
  .js .approach__item .stair line { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .approach__item.is-in .stair line {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.8s var(--ease-out) calc(0.3s + var(--i) * 0.09s), transform 0.5s var(--ease-out) calc(var(--i) * 45ms);
  }
  @media (hover: hover) {
    .text-link:hover { animation: underline-wipe 0.8s var(--ease-inout); }
  }
  @keyframes underline-wipe {
    0% { background-size: 100% 1px; background-position: right bottom; }
    45% { background-size: 0% 1px; background-position: right bottom; }
    46% { background-size: 0% 1px; background-position: left bottom; }
    100% { background-size: 100% 1px; background-position: left bottom; }
  }

  @keyframes rise { to { transform: none; } }
  @keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @keyframes settle { from { transform: scale(1.14); } to { transform: none; } }
  @keyframes tile { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  @keyframes unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
