/* Co-Living Places: shared styles for every page.
   Motion rules: only transform/opacity are animated, and everything under .motion is switched off
   for visitors who prefer reduced motion (the .motion class is added in each page's <head>). */

/* Fonts are self-hosted (no request to Google). Variable fonts, Latin subset; licences (SIL OFL) are in assets/fonts/. */
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat.woff") format("woff"); font-weight: 200 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff") format("woff"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Brand colours taken from the logo */
  --navy: #0f2544;
  --navy-deep: #0a1a31;
  --navy-mid: #16315a;
  --silver: #c0c0c0;
  --ink: #14213a;
  --muted: #5b6578;
  --line: #e1e5ec;
  --bg: #e4e9f0;          /* page colour: the gaps between panels */
  --panel: #ffffff;
  --tint: #eff2f7;        /* alternate light panel */
  --tile: #f1f4f8;        /* small tiles inside a white panel */
  --r: clamp(22px, 2.8vw, 40px);     /* big panels */
  --r-md: clamp(16px, 1.9vw, 26px);  /* cards, photos, tiles */
  --r-sm: 14px;                      /* inputs, notices */
  --gutter: clamp(8px, 1.3vw, 18px); /* space around every panel */
  /* Brass accent: --gold on navy/dark backgrounds, --gold-text for text on light backgrounds (both pass WCAG AA) */
  --gold: #b08d57;
  --gold-light: #c9a971;
  --gold-dark: #9a7848;
  --gold-text: #8a6a35;
  --max: 1120px;
  --max-wide: 1480px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --head: "Montserrat", system-ui, sans-serif;
  --display: "Plus Jakarta Sans", "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; }
/* Dark canvas + no elastic overscroll, so pulling past the top never shows a pale bar above the hero */
html { scroll-behavior: smooth; scroll-padding-top: 72px; background: var(--navy-deep); overscroll-behavior-y: none; }
body {
  margin: 0; font-family: "Inter", system-ui, sans-serif; color: var(--ink); background: var(--bg);
  line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 300; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); letter-spacing: -.03em; }
h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: var(--max-wide); padding: 0 clamp(20px, 4vw, 56px); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 600; color: var(--gold-text); margin-bottom: 1rem; }
.on-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .contact .eyebrow, .stats .eyebrow { color: var(--gold-light); }
section { padding: clamp(60px, 8vw, 112px) 0; }
/* Every section is a soft rounded panel floating on the page colour */
main > section, .marquee, .site-footer { margin: 0 var(--gutter) var(--gutter); border-radius: var(--r); }
/* Banners start full-bleed (edge to edge, square all round, nothing of the page colour showing but a thin gap before the next panel).
   Once you've scrolled a good way, site.js eases --p from 0 to 1 on the banner: the sides inset and the bottom corners round, so it settles
   into the same rounded panel as the rest. Only clip-path changes, so layout never shifts. */
main > section.hero, main > section.page-hero {
  --p: 0; margin: 0 0 var(--gutter); border-radius: 0; /* the rounding comes from clip-path below, not border-radius */
  clip-path: inset(0 calc(var(--gutter) * var(--p)) 0 calc(var(--gutter) * var(--p)) round 0 0 calc(var(--r) * var(--p)) calc(var(--r) * var(--p)));
}
main > section:not(.hero):not(.page-hero) { background: var(--panel); --reveal-bg: var(--panel); overflow: clip; }
main > section.audience:not(.hero):not(.page-hero), main > section.tint:not(.hero):not(.page-hero) { background: var(--tint); --reveal-bg: var(--tint); }
main > section.stats:not(.hero):not(.page-hero), main > section.contact:not(.hero):not(.page-hero) { background: var(--navy); }
.site-footer { margin-bottom: var(--gutter); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; border-radius: 100px; background: var(--gold); color: var(--navy-deep); padding: 10px 16px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.section-head { max-width: 46rem; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.text-link { color: var(--gold-text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }

/* Page fade between pages */
.motion body { animation: pagein .25s ease both; }
.motion body.leaving { opacity: 0; transition: opacity .15s ease; }
@keyframes pagein { from { opacity: 0; } to { opacity: 1; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 100px;
  background: var(--navy); color: #fff; text-decoration: none; font: 500 .95rem "Inter", sans-serif;
  border: 1px solid var(--navy); cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.btn .arr { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-gold { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
button[disabled] { opacity: .7; cursor: wait; }

/* Header: always visible; transparent over the top of every page, navy bar fades in once scrolled */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
}
/* Always on screen. The navy bar fades in behind the links once you scroll down from the hero (opacity only). */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy-deep); border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 30px rgba(10,26,49,.25); opacity: 0; transition: opacity .7s ease;
}
.site-header.scrolled::before { opacity: 1; }
.site-header .wrap-wide { max-width: none; padding: 0 clamp(20px, 3vw, 48px) 0 clamp(16px, 1.6vw, 26px); } /* logo and links hug the left edge, Contact stays on the right */
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; position: relative; z-index: 2; }
.logo img { height: 46px; width: 46px; }
.logo-words { display: grid; line-height: 1; font-family: var(--head); }
.logo-words b { font-weight: 300; font-size: 1.3rem; letter-spacing: .1em; }
.logo-words small { font-weight: 500; font-size: .58rem; letter-spacing: .5em; margin-top: 6px; }
.nav-links { list-style: none; display: flex; flex: 1; align-items: center; gap: 30px; margin: 0 0 0 clamp(20px, 3.5vw, 56px); padding: 0; }
.nav-links li:last-child { margin-left: auto; }
.nav-links a { position: relative; color: rgba(255,255,255,.85); text-decoration: none; font-size: .9rem; font-weight: 500; padding: 6px 0; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease), box-shadow .45s;
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
/* Where you are: the current page (or, on the home page, the section in view) gets a glowing brass underline */
.nav-links a[aria-current]:not(.nav-cta) { color: #fff; }
.nav-links a[aria-current]:not(.nav-cta)::after { transform: scaleX(1); background: var(--gold-light); box-shadow: 0 0 12px rgba(201,169,113,.65); }
.nav-links a.nav-cta[aria-current] { background: rgba(176,141,87,.28); }
.nav-links a.nav-cta { padding: 10px 22px; border: 1px solid var(--gold); border-radius: 100px; color: #fff; transition: background .25s, color .25s; }
.nav-links a.nav-cta:hover { background: var(--gold); color: var(--navy-deep); }
.menu-btn { display: none; position: relative; z-index: 2; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: #fff; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
body.menu-open { overflow: hidden; }

/* Hero (home) */
.hero { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; background: var(--navy-deep); overflow: hidden; padding: 0; }
.hero-media { position: absolute; inset: -6% 0; z-index: -2; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.motion .hero-media img { transform: scale(1.08); }
.motion.loaded .hero-media img { transform: none; transition: transform 1.4s var(--ease); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,26,49,.7) 0%, rgba(10,26,49,.42) 45%, rgba(10,26,49,.72) 100%); }
.hero-inner { width: 100%; padding-top: 80px; padding-bottom: 40px; }
.hero h1, .page-hero h1 { font-family: var(--display); font-size: clamp(2.1rem, 5.4vw, 4.9rem); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; margin: 0; text-shadow: 0 2px 30px rgba(10,26,49,.4); }
.hero .eyebrow, .page-hero .eyebrow { font-family: var(--display); font-weight: 700; margin-bottom: 1.2rem; }
.hero h1 em, .page-hero h1 em { font-style: normal; color: var(--gold-light); }
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: block; }
.hero .line, .page-hero .line { overflow: visible; }
.motion .hero .line > span, .motion .page-hero .line > span { opacity: 0; transform: translateY(26px); }
.motion.loaded .hero .line > span, .motion.loaded .page-hero .line > span { opacity: 1; transform: none; transition: opacity .6s ease .2s, transform .8s var(--ease) .2s; }
.motion.loaded .hero .line:nth-child(2) > span, .motion.loaded .page-hero .line:nth-child(2) > span { transition-delay: .3s; }
.motion .hero .fade, .motion .page-hero .fade { opacity: 0; transform: translateY(14px); }
.motion.loaded .hero .fade, .motion.loaded .page-hero .fade { opacity: 1; transform: none; transition: opacity .6s ease var(--d, .15s), transform .8s var(--ease) var(--d, .15s); }
.scroll-cue { position: absolute; right: 28px; bottom: clamp(48px, 9vh, 104px); display: flex; flex-direction: column; align-items: center; gap: 14px; color: rgba(255,255,255,.7); font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; writing-mode: vertical-rl; text-decoration: none; }
.motion .scroll-cue { opacity: 0; }
.motion.loaded .scroll-cue { opacity: 1; transition: opacity .6s ease .8s; }
.scroll-cue::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--gold-light), transparent); }
.motion .scroll-cue::after { animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Intro: the paragraph + buttons that used to sit in the hero, now revealed below it */
.intro { padding: clamp(64px, 9vw, 120px) 0; text-align: center; }
.intro .lead { font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.6; color: var(--ink); max-width: 36em; margin: 0 auto 2.2rem; }
.intro-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Sub-page hero */
.page-hero { background: linear-gradient(160deg, var(--navy-deep), var(--navy) 60%, var(--navy-mid)); color: #fff; padding: 120px 0 72px; min-height: clamp(400px, 58vh, 580px); display: flex; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; }
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero::after { content: ""; position: absolute; right: -8%; bottom: -35%; width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; border-radius: 50%; border: 1px solid rgba(176,141,87,.35); }
.page-hero p.lead { max-width: 38rem; font-size: 1.15rem; color: rgba(255,255,255,.85); margin: 1.6rem auto 0; }

/* Marquee of principles (decorative: the same words appear in the About section) */
.marquee { background: var(--navy-deep); color: #fff; padding: 18px 0; overflow: hidden; border-radius: 999px; }
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-group span { font-family: var(--head); font-weight: 300; font-size: clamp(.8rem, 1.1vw, .95rem); letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; padding: 0 clamp(20px, 2.4vw, 36px); }
.marquee-group i { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }
.motion .marquee-track { animation: marquee 38s linear infinite; }
.motion .marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Statement: centred, words light up as you scroll past, brass marker highlights fill in on key phrases */
.statement { padding: clamp(88px, 12vw, 170px) 0; text-align: center; }
.statement-eyebrow { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: clamp(28px, 4vw, 44px); color: var(--gold-text); font-size: .75rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.statement-eyebrow i { width: clamp(28px, 6vw, 64px); height: 1px; background: var(--gold); opacity: .7; }
.statement p { font-family: var(--head); font-weight: 300; font-size: clamp(1.65rem, 3.5vw, 3rem); line-height: 1.38; letter-spacing: -.02em; max-width: 21em; margin: 0 auto; text-wrap: balance; }
.statement mark { color: inherit; background-color: transparent; background-image: linear-gradient(transparent 62%, rgba(176,141,87,.34) 62%); background-repeat: no-repeat; background-size: 100% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .08em; margin: 0 -.08em; }
.statement-rule { display: block; width: 56px; height: 2px; background: var(--gold); margin: clamp(32px, 4.5vw, 52px) auto 0; }
.motion .statement .w { color: rgba(20,33,58,.5); transition: color .5s ease; }
.motion .statement .w.on { color: var(--ink); }
.motion .statement mark { background-size: 0% 100%; background-position: left; transition: background-size 1s var(--ease); }
.motion .statement mark.on { background-size: 100% 100%; }

/* Audience cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(420px, 50vw, 640px); color: #fff; text-decoration: none; overflow: hidden; border-radius: var(--r-md); background: var(--navy); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,26,49,.05) 30%, rgba(10,26,49,.9) 100%); }
.card:hover img { transform: scale(1.06); }
.card-body { padding: clamp(24px, 3vw, 40px); width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.card h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 300; color: #fff; margin-bottom: .3em; }
.card p { color: rgba(255,255,255,.88); max-width: 26rem; margin: 0; }
.card-arrow { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; transition: background .3s, color .3s, transform .5s var(--ease); }
.card:hover .card-arrow { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); transform: rotate(-45deg); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 120px); align-items: start; }
.about-grid > div > p { color: var(--muted); font-size: 1.1rem; }
.values { display: grid; gap: 12px; counter-reset: v; }
.value { counter-increment: v; display: grid; grid-template-columns: 56px 1fr; gap: 8px 16px; padding: 26px 28px; background: var(--tile); border-radius: var(--r-md); transition: padding-left .5s var(--ease), background .3s; }
.value::before { content: "0" counter(v); font-family: var(--head); font-weight: 300; color: var(--gold-text); font-size: 1rem; padding-top: .25rem; }
.value:hover { padding-left: 40px; background: #e9eef5; }
.value h3 { font-size: 1.4rem; margin-bottom: .25em; }
.value p { margin: 0; color: var(--muted); grid-column: 2; }

/* Stats */
.stats { background: var(--navy); color: #fff; padding: clamp(64px, 9vw, 112px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.stat { background: rgba(255,255,255,.06); border-radius: var(--r-md); padding: clamp(24px, 2.6vw, 36px); }
.stat strong { display: block; font-family: var(--head); font-weight: 200; font-size: clamp(3rem, 6vw, 5rem); line-height: 1; letter-spacing: -.04em; color: var(--gold-light); }
.stat span { display: block; margin-top: 14px; color: rgba(255,255,255,.78); max-width: 20rem; }

/* Projects */
.projects { --reveal-bg: var(--panel); }
.project { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: stretch; }
.img-frame { position: relative; overflow: hidden; border-radius: var(--r-md); background: linear-gradient(135deg, #dde2ea, #c3cad6); display: flex; align-items: center; justify-content: center; color: #6b7588; font-size: .9rem; }
.img-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-img { min-height: 440px; }
.project-img > img { transition: transform 1.2s var(--ease); }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; background: #e6ebf3; color: var(--navy); padding: 5px 12px; border-radius: 20px; margin-bottom: 1.2rem; }
.project-img .tag { position: absolute; top: 16px; left: 16px; margin: 0; z-index: 1; background: var(--navy-deep); color: #fff; }
.project-body h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 300; }
.project-body p { color: var(--muted); }
.project dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 28px; margin: 28px 0 0; font-size: .95rem; padding-top: 24px; border-top: 1px solid var(--line); }
.project dt { color: var(--muted); }
.project dd { margin: 0; font-weight: 500; }
.live-here { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding: 20px 22px; background: #e6ebf3; border-radius: var(--r-md); }
.live-here p { margin: 0; color: var(--navy); }
.live-here strong { display: block; font-family: var(--head); font-weight: 500; font-size: 1.05rem; }
.live-here .btn { padding: 12px 22px; font-size: .9rem; }
.coming { margin-top: clamp(56px, 7vw, 88px); padding: clamp(32px, 5vw, 56px); border: 1px dashed #c3cad6; border-radius: var(--r-md); text-align: center; color: var(--muted); font-size: 1.05rem; }
.coming a { color: var(--gold-text); font-weight: 600; }

/* Before/after slider. --pos is how much of the "before" photo is showing. */
.compare-block { margin-top: clamp(64px, 8vw, 104px); }
.compare-block h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 300; margin-bottom: .25em; }
.compare-text p { color: var(--muted); margin-bottom: 24px; max-width: 40rem; }
.compare { --pos: 50%; position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; background: linear-gradient(135deg, #dde2ea, #c3cad6); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.compare-layer { position: absolute; inset: 0; display: flex; align-items: center; color: #6b7588; font-size: .9rem; }
.compare-after { justify-content: flex-end; padding-right: 12%; }
.compare-before { justify-content: flex-start; padding-left: 12%; background: linear-gradient(135deg, #cfd5df, #b3bbc9); clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare-tag { position: absolute; top: 16px; z-index: 1; pointer-events: none; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; background: rgba(10,26,49,.8); color: #fff; padding: 5px 12px; border-radius: 20px; }
.compare-tag.before { left: 16px; }
.compare-tag.after { right: 16px; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 44px; margin-left: -22px; display: flex; align-items: center; justify-content: center; }
.compare-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--gold); }
.compare-handle span { position: relative; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gold); color: var(--navy-deep); font-size: 1.2rem; line-height: 1; box-shadow: 0 2px 10px rgba(10,26,49,.35); }
.compare-handle:focus { outline: none; }
.compare-handle:focus-visible span { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--navy-deep); }

/* Gallery */
.gallery { margin-top: clamp(64px, 8vw, 104px); }
.gallery-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.gallery-head h3 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 300; }
.gallery-nav { display: flex; gap: 10px; }
.gallery-nav button { width: 48px; height: 48px; border-radius: 50%; cursor: pointer; border: 1px solid #c3cad6; background: var(--panel); color: var(--ink); font-size: 1.1rem; transition: background .25s, color .25s, border-color .25s; }
.gallery-nav button:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.gallery-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; cursor: grab; }
.gallery-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track figure { position: relative; flex: 0 0 calc((100% - 32px) / 3); margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: linear-gradient(135deg, #dde2ea, #c3cad6); display: flex; align-items: center; justify-content: center; color: #6b7588; font-size: .85rem; }
.gallery-track img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }

/* Approach */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.step { position: relative; overflow: hidden; background: var(--panel); border-radius: var(--r-md); padding: 34px clamp(22px, 2.2vw, 30px) 28px; }
.step::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--gold); transform: scaleX(1); transform-origin: left; }
.motion .step.in::before { transform: scaleX(1); transition: transform 1.4s var(--ease) var(--d, 0s); }
.step-n { display: block; font-family: var(--head); font-weight: 200; font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: 1; color: var(--gold-text); margin-bottom: 1rem; letter-spacing: -.03em; }
.step h3 { font-size: 1.4rem; }
.step p { color: var(--muted); font-size: .98rem; }

/* Audience sections: rooms + partner page */
.aud-panel { background: var(--panel); }
.aud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px clamp(48px, 8vw, 112px); align-items: start; }
.aud-block + .aud-block { margin-top: 40px; }
.aud-block h3 { font-size: 1.2rem; margin-bottom: .8em; }
.aud-block p { color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--muted); }
.ticks li { border-left: 2px solid var(--gold); padding-left: 16px; }
.ticks b { color: var(--ink); font-weight: 500; }
.ticks a { color: var(--gold-text); font-weight: 500; }
.price { display: inline-block; margin: 0 0 32px; padding: 22px 28px; background: var(--navy); color: #fff; border-radius: var(--r-md); }
.price small { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.price strong { font-family: var(--head); font-weight: 200; font-size: clamp(2.8rem, 5vw, 4rem); line-height: 1.1; letter-spacing: -.03em; color: var(--gold-light); }

/* Contact */
.contact { background: var(--navy); color: #fff; }
.contact h2 { font-size: clamp(2.6rem, 7vw, 6rem); font-weight: 200; letter-spacing: -.04em; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 112px); }
.contact p { color: rgba(255,255,255,.78); }
.details { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 22px; }
.details span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.62); }
.details a { text-decoration: none; font-size: 1.15rem; }
.details a:hover { text-decoration: underline; }
form { display: grid; gap: 18px; }
label { font-size: .85rem; color: rgba(255,255,255,.78); display: grid; gap: 6px; }
input, textarea, select { font: inherit; padding: 14px 18px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; transition: border-color .2s, background .2s; }
input:hover, textarea:hover, select:hover { border-color: rgba(255,255,255,.5); }
select option { color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; background: rgba(255,255,255,.1); }
textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; font-size: .85rem; }
.form-note a { color: #fff; }
.form-status { margin: 0; font-size: .95rem; padding: 12px 16px; border: 1px solid rgba(201,169,113,.6); border-radius: var(--r-sm); background: rgba(255,255,255,.08); color: #fff; }
.form-status:empty { display: none; }
.form-status.error { border-color: #f0a8a8; }
.form-status a { color: #fff; }
.form-status:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.contact .btn { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.contact .btn:hover { background: var(--gold-light); border-color: var(--gold-light); }

/* Family + partner + privacy pages */
.page-body { padding: clamp(56px, 8vw, 112px) 0; }
.team { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 2vw, 28px); }
.person { position: relative; isolation: isolate; flex: 1 1 300px; max-width: 400px; aspect-ratio: 3 / 4; border-radius: var(--r-md); overflow: hidden; background: linear-gradient(135deg, #dde2ea, #c3cad6); display: flex; align-items: center; justify-content: center; color: #6b7588; font-size: .9rem; cursor: default; -webkit-tap-highlight-color: transparent; }
.person > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
/* The description sits over the photo and fades in on hover, keyboard focus, or tap */
.person-info { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; overflow-y: auto; padding: clamp(22px, 2.4vw, 32px); text-align: left; color: #fff; background: linear-gradient(180deg, rgba(10,26,49,.5) 0%, rgba(10,26,49,.93) 62%); opacity: 0; transition: opacity .7s ease; }
.person:focus-visible .person-info, .person.open .person-info { opacity: 1; }
.person:focus-visible { outline-offset: -4px; }
.person-info h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 300; margin-bottom: .15em; color: #fff; }
.person-role { color: var(--gold-light); font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.1em; }
.person-info p:not(.person-role) { color: rgba(255,255,255,.9); font-size: .92rem; line-height: 1.6; margin-bottom: 1em; }
.person-info p:last-child { margin-bottom: 0; }
.person-hint { position: absolute; left: 16px; bottom: 16px; z-index: 1; padding: 8px 16px; border-radius: 100px; background: rgba(10,26,49,.72); color: #fff; font-size: .78rem; letter-spacing: .06em; pointer-events: none; transition: opacity .4s; }
.person.open .person-hint { opacity: 0; }
@media (hover: hover) {
  .person-hint { display: none; }
  .person:hover .person-info { opacity: 1; }
  .person:hover > img { transform: scale(1.05); }
}
.page-body .compare-block, .page-body .gallery { margin-top: 0; }
.page-body .steps + .family-actions { margin-top: clamp(40px, 5vw, 64px); }
.family-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }
.partner-grid .aud-block h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .9em; }
.partner-grid + .partner-grid { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.small-print { margin-top: clamp(48px, 6vw, 72px); font-size: .85rem; color: var(--muted); max-width: 40rem; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.5rem; font-weight: 400; margin-top: 2.2em; }
.prose p, .prose li { color: var(--muted); font-size: 1.05rem; }
.prose ul { padding-left: 1.25em; margin: 0 0 1em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--gold-text); font-weight: 500; }
.updated { font-size: .9rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.7); font-size: .9rem; padding: clamp(56px, 8vw, 96px) 0 0; overflow: hidden; border-radius: var(--r); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand .logo { margin-bottom: 18px; }
.foot-brand p { max-width: 20rem; color: rgba(255,255,255,.7); }
.site-footer h2 { font: 600 .72rem "Inter", sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.legal { margin-top: clamp(40px, 6vw, 72px); padding: 24px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; color: rgba(255,255,255,.62); display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }
.legal p { margin: 0; }

/* Reveal on scroll: kept to the first block or two near the top of each page (quick and light); everything further down simply shows */
.motion [data-reveal] { opacity: 0; transform: translateY(18px); }
.motion [data-reveal].in { opacity: 1; transform: none; transition: opacity .5s ease var(--d, 0s), transform .6s var(--ease) var(--d, 0s); }
.motion [data-reveal="fade"] { transform: none; }
.motion .project-img:hover > img { transform: scale(1.04); }

/* Responsive */
@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 1; margin: 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
    background: var(--navy-deep); padding: 96px 28px 40px; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links li:last-child { margin-left: 0; }
  .nav-links a { font-family: var(--head); font-weight: 300; font-size: clamp(1.7rem, 7vw, 2.4rem); padding: 8px 0; color: #fff; }
  .nav-links a.nav-cta { display: inline-block; margin-top: 24px; font-size: 1.1rem; font-family: "Inter", sans-serif; font-weight: 500; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .about-grid, .project, .contact-grid, .aud-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { min-height: 420px; }
  .stats-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .compare { aspect-ratio: 3 / 4; max-width: 520px; margin: 0 auto; }
  .gallery-track figure { flex-basis: calc((100% - 16px) / 2); }
  .project-img { min-height: 0; aspect-ratio: 4 / 3; }
  .scroll-cue { display: none; }
}
@media (max-width: 520px) {
  .steps, .form-row, .foot-grid { grid-template-columns: 1fr; }
  .gallery-track figure { flex-basis: 85%; }
  .card-arrow { width: 46px; height: 46px; }
  .person { aspect-ratio: auto; min-height: 560px; }
  .hero-inner { padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-track { scroll-behavior: auto; }
}

/* Touch / small screens: no JS parallax on the hero photo (it fought native scrolling and jittered when scrolling up) */
@media (max-width: 860px), (hover: none) {
  .hero-media { inset: 0; will-change: auto; transform: none !important; }
  main > section.hero, main > section.page-hero { will-change: clip-path; }
}
