/* Harbour & Stone: concept real-estate landing page by Studio Lab.
   Aesthetic: light Mediterranean sky, monochrome ink + one cobalt accent. No design system; native CSS. */
@font-face { font-family: 'Jakarta'; font-weight: 200 800; font-style: normal; font-display: swap; src: url('assets/fonts/PlusJakartaSans-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 200 800; font-style: italic; font-display: swap; src: url('assets/fonts/PlusJakartaSans-italic.woff2') format('woff2'); }

:root {
  --bg: #f7f6f3;
  --bg-2: #eeece7;
  --ink: #15171a;
  --ink-2: #4b4f55;
  --ink-3: #8a8f96;
  --line: rgba(21, 23, 26, .12);
  --accent: #1b4fa0;
  --accent-ink: #ffffff;
  --card: #ffffff;
  --radius: 18px;
  --nav-h: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101214; --bg-2: #17191c; --ink: #f2f1ee; --ink-2: #b9bcc1; --ink-3: #7d8187;
    --line: rgba(242, 241, 238, .14); --accent: #6f9df0; --accent-ink: #0d1626; --card: #1a1d21; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101214; --bg-2: #17191c; --ink: #f2f1ee; --ink-2: #b9bcc1; --ink-3: #7d8187;
  --line: rgba(242, 241, 238, .14); --accent: #6f9df0; --accent-ink: #0d1626; --card: #1a1d21; color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body { font-family: 'Jakarta', system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--ink); line-height: 1.5; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(1280px, 100% - 64px); } }

/* Buttons: pill system. Cards 18px, buttons pill, inputs n/a. */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .25s cubic-bezier(.16,1,.3,1), background .25s; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--bg-2); }
.btn svg { width: 18px; height: 18px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50; display: flex; align-items: center; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-solid { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; font-size: 17px; }
.brand i { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); display: inline-block; position: relative; }
.brand i::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 5px; height: 2px; background: var(--accent-ink); border-radius: 2px; }
.nav-links { display: none; gap: 28px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav .btn { height: 42px; padding: 0 18px; font-size: 14px; }

/* Hero: pinned frame-scrub stage */
.hero { position: relative; height: 380vh; padding: 0; }
.hero-stage { position: sticky; top: 0; height: 100dvh; overflow: hidden; background: #efe3d4; }
.plate-box { position: absolute; will-change: top; }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.house { position: absolute; display: block; will-change: transform; }
.mist { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255,250,242,.85) 0%, rgba(255,250,242,.45) 40%, rgba(255,250,242,0) 70%); pointer-events: none; }
.hero-copy { position: absolute; inset: 0; display: grid; place-items: start center; padding-top: calc(var(--nav-h) + 6vh); text-align: center; pointer-events: none; }
.hero-copy > div { pointer-events: auto; width: min(760px, 100% - 32px); }
.hero h1 { font-size: clamp(38px, 6.2vw, 76px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; color: #15171a; }
.hero p { margin: 18px auto 0; max-width: 46ch; font-size: clamp(16px, 1.3vw, 19px); color: #3d4046; }
.hero .cta { margin-top: 26px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero .btn-primary { background: #15171a; color: #f7f6f3; }
.hero .btn-ghost { color: #15171a; border-color: rgba(21,23,26,.2); background: rgba(255,255,255,.35); }
.hero-mark { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; z-index: 3; }
.hero-mark .knock { display: block; font-size: clamp(56px, 12.5vw, 210px); font-weight: 800; letter-spacing: -.05em; line-height: .95; text-align: center;
  background: url('assets/hero/fill_2048.jpg') 50% 46% / 135% auto no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px rgba(21,23,26,.18); filter: drop-shadow(0 18px 40px rgba(90,60,30,.25)); }
.hero-mark small { display: block; text-align: center; font-size: clamp(14px, 1.4vw, 20px); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #3d4046; margin-top: 14px; }
.clouds-front { position: absolute; left: 0; margin-left: calc((100% - max(132%, 128vh)) / 2); bottom: -14%; width: max(132%, 128vh); max-width: none; height: auto; z-index: 2; pointer-events: none; will-change: transform; filter: saturate(.72) brightness(1.06); }
.hero-copy { z-index: 2; }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(to bottom, #e9e1d3, #cfe6e8); opacity: 0; pointer-events: none; z-index: 4; }

/* Sections */
section { padding: clamp(72px, 10vw, 140px) 0; }
h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; max-width: 20ch; }
.lead { margin-top: 14px; color: var(--ink-2); font-size: clamp(16px, 1.2vw, 18px); max-width: 60ch; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }

/* Listings: horizontal scroll-snap row, 3D tilt cards */
.listings { padding-top: 0; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 420px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 0 24px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transform-style: preserve-3d; transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s; box-shadow: 0 1px 2px rgba(21,23,26,.04); will-change: transform; }
.card:hover { box-shadow: 0 24px 60px -24px rgba(27,79,160,.28); }
.card .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.card:hover .ph img { transform: scale(1.04); }
.card .body { padding: 18px 20px 22px; transform: translateZ(24px); }
.card .price { font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.card .title { margin-top: 2px; color: var(--ink-2); font-size: 15px; }
.card .meta { margin-top: 12px; display: flex; gap: 14px; font-size: 13px; color: var(--ink-3); }

/* Why us: bento with 3 cells (1 image, 1 accent, 1 plain) */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .bento { grid-template-columns: 1.4fr 1fr; grid-template-rows: 300px 300px; } .bento .b-img { grid-row: 1 / 3; } }
.cell { border-radius: var(--radius); overflow: hidden; position: relative; padding: 28px; display: flex; flex-direction: column; justify-content: end; min-height: 260px; }
.cell h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.cell p { margin-top: 8px; color: inherit; opacity: .78; max-width: 36ch; font-size: 15px; }
.b-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,12,20,.75), rgba(10,12,20,0) 55%); }
.b-img h3, .b-img p { position: relative; color: #fff; }
.b-acc { background: var(--accent); color: var(--accent-ink); }
.b-acc .num { font-size: clamp(48px, 6vw, 80px); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: auto; }
.b-plain { background: var(--bg-2); border: 1px solid var(--line); }

/* Quote */
.quote blockquote { font-size: clamp(24px, 3vw, 40px); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; max-width: 26ch; }
.quote figcaption { margin-top: 22px; color: var(--ink-2); font-size: 15px; display: flex; align-items: center; gap: 12px; }
.quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--bg); border-radius: 28px; padding: clamp(40px, 6vw, 80px); display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.3fr 1fr; } }
.cta-band h2 { color: inherit; }
.cta-band p { color: color-mix(in srgb, var(--bg) 70%, transparent); margin-top: 12px; max-width: 44ch; }
.cta-band .btn-primary { background: var(--bg); color: var(--ink); justify-self: start; }
@media (min-width: 900px) { .cta-band .btn-primary { justify-self: end; } }

footer { padding: 40px 0 48px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--ink-2); }

/* Scroll reveals (GSAP sets initial state only when JS is on) */
.reveal { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero { height: 100dvh; }
  .hero-stage { position: relative; }
  .card, .card .ph img, .btn { transition: none; }
}

/* Areas map: pinned stage, copy left, Malta right */
.areas { position: relative; height: 300vh; padding: 0; }
.map-stage { position: sticky; top: 0; height: 100dvh; overflow: hidden; background: #cfe6e8; }
.sea { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; will-change: transform; }
.map-grid { position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: 1fr; align-items: center; gap: 12px; padding: calc(var(--nav-h) + 16px) 16px 16px; width: min(1280px, 100%); margin-inline: auto; }
@media (min-width: 900px) { .map-grid { grid-template-columns: 0.9fr 1.3fr; gap: 32px; padding-inline: 32px; } }
.map-copy { color: #15171a; }
.map-copy h2 { max-width: 12ch; }
.map-copy .lead { color: #3d4046; }
.map-stat { margin-top: 26px; display: flex; align-items: baseline; gap: 12px; }
.map-stat b { font-size: clamp(44px, 6vw, 84px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--accent); }
.map-stat span { font-size: 15px; color: #3d4046; max-width: 12ch; line-height: 1.25; }
.map-wrap { width: 100%; max-height: 72dvh; display: grid; place-items: center; }
.map-wrap svg { width: 100%; height: auto; max-height: 72dvh; overflow: visible; }
.pin .halo { fill: var(--accent); opacity: .25; }
.pin .dot { fill: var(--accent); stroke: #fff; stroke-width: 3; }
.pin text { font: 600 26px 'Jakarta', sans-serif; fill: #15171a; paint-order: stroke; stroke: rgba(247,246,243,.9); stroke-width: 6px; stroke-linejoin: round; }
@media (max-width: 899px) { .map-wrap { max-height: 50dvh; } .map-wrap svg { max-height: 50dvh; } .pin text { font-size: 34px; } .map-copy h2 { font-size: 30px; } }
