/* ───────────────────────────────────────────────────────────────
   Soluna Developers — public site
   Palette (from the brief): deep navy, bright blue, off-white.
   Bright blue (#2479D0) is for the sun and large accents; buttons and text links use
   --blue-600, a step deeper, so white-on-blue and blue-on-paper both clear WCAG AA.
   ─────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-display-latin-wght-normal.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-display-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #10243e;
  --navy-deep: #0b1a2e;
  --navy-soft: #1a3354;
  --blue: #2479d0;
  --blue-600: #1d68b5;
  --blue-700: #17548f;
  --paper: #f5f6f4;
  --paper-2: #eceeea;
  --white: #ffffff;
  --muted: #4d5f78;
  --line: rgba(16, 36, 62, 0.15);
  --line-light: rgba(245, 246, 244, 0.2);
  --danger: #b42318;
  --ok: #1f7a4d;
  --amber: #9a6700;

  --font-head: 'Manrope', 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(20px, 4vw, 52px);
  --max: 1280px;
  --header-h: 76px;
  --radius: 3px;

  /* Motion tokens — one shared vocabulary for CSS and GSAP (motion.js mirrors these) */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-btn: 200ms;
  --dur-nav: 250ms;
  --dur-card: 450ms;
  --dur-section: 750ms;
  --dur-text: 800ms;
  --dur-img: 1000ms;
  --dur-page: 450ms;
  --dur-hero: 1400ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-600); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; letter-spacing: -0.03em; margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

/* Browser surfaces */
html { scrollbar-color: rgba(16, 36, 62, 0.35) var(--paper); accent-color: var(--blue-600); }
::selection { background: rgba(36, 121, 208, 0.22); color: var(--navy-deep); }
.h-hero ::selection, .h-feature ::selection, .h-cta ::selection, .site-header ::selection, .site-footer ::selection { background: rgba(143, 194, 245, 0.35); color: var(--white); }
input, textarea { caret-color: var(--blue-600); }
time, .tabular { font-variant-numeric: tabular-nums; }
.on-navy :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: #8fc2f5; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 68ch; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 28px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; border-radius: var(--radius);
  border: 1.5px solid transparent; transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.btn--primary { background: var(--blue-600); color: var(--white); }
.btn--primary:hover { background: var(--blue-700); color: var(--white); }
.btn--ghost { border-color: rgba(245, 246, 244, 0.55); color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--paper); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.text-link { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.01em; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.text-link:hover { border-bottom-color: transparent; }

/* ── Header ──────────────────────────────────────────────────── */
/* Fixed, constant height (no layout shift). The solid background is a separate layer that fades,
   so the transparent-over-hero state never moves content. Without JS it stays solid. */
body { padding-top: var(--header-h); }
body.has-hero { padding-top: 0; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--paper); isolation: isolate; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(11, 26, 46, 0.94); border-bottom: 1px solid var(--line-light);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  transition: opacity var(--dur-section) var(--ease-out);
}
.has-hero .site-header.is-top::before { opacity: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Status colours on dark backgrounds (project title bar): lighter tints keep WCAG AA contrast. */
.project-hero .status--PLANNING { color: #f5b82e; }
.project-hero .status--UNDER_CONSTRUCTION { color: #8fc2f5; }
.project-hero .status--COMPLETED { color: #4cc38a; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; }
.brand:hover { color: var(--paper); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__logo { display: block; height: 44px; width: auto; flex: none; }
@media (max-width: 600px) { .brand__logo { height: 38px; } }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: 0.2em; }
.brand__sub { font-size: 0.6875rem; letter-spacing: 0.34em; opacity: 0.7; margin-top: 5px; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  position: relative; padding: 10px 14px; color: rgba(245, 246, 244, 0.82); text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: 0.9688rem; letter-spacing: -0.01em;
}
.nav a:not(.btn):hover { color: var(--white); }
.nav a[aria-current='page']:not(.btn) { color: var(--white); }
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--dur-nav) var(--ease-out);
}
.nav a:not(.btn):hover::after, .nav a:not(.btn):focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current='page']:not(.btn)::after { background: var(--blue); transform: scaleX(1); }
.nav .btn { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line-light); color: var(--paper); border-radius: var(--radius); width: 48px; height: 48px; cursor: pointer; }
.nav-toggle svg { margin: auto; }

/* Desktop: the link wrapper is layout-transparent; mobile-only contact block hidden. */
.nav__links { display: contents; }
.nav__contact { display: none; }
.nav-toggle__bars { position: relative; width: 20px; height: 12px; margin: auto; display: block; }
.nav-toggle__bars span { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--dur-nav) var(--ease-out), top var(--dur-nav) var(--ease-out); }
.nav-toggle__bars span:first-child { top: 1px; }
.nav-toggle__bars span:last-child { top: 9px; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:first-child { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:last-child { top: 5px; transform: rotate(-45deg); }

/* Mobile: full-screen panel under the fixed header. Wipes down (clip-path), links rise in sequence. */
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: -2;
    display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 28px;
    padding: 12px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    background: var(--navy-deep); overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; clip-path: inset(0 0 100% 0);
    transition: clip-path 0.55s var(--ease-io), visibility 0s linear 0.55s;
  }
  .nav.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path 0.55s var(--ease-io), visibility 0s; }
  .nav__links { display: flex; flex-direction: column; }
  .nav a:not(.btn) {
    padding: 14px 0; border-bottom: 1px solid var(--line-light); color: var(--paper);
    font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 7.4vw, 2.3rem); letter-spacing: -0.01em;
  }
  .nav__links a, .nav > .btn, .nav__contact { opacity: 0; transform: translateY(14px); transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
  .nav.is-open .nav__links a, .nav.is-open > .btn, .nav.is-open .nav__contact { opacity: 1; transform: none; transition-delay: calc(140ms + var(--i, 0) * 45ms); }
  .nav a:not(.btn)::after { display: none; }
  .nav a[aria-current='page']:not(.btn) { color: #8fc2f5; }
  .nav > .btn { margin: 0; min-height: 54px; font-size: 1.05rem; }
  .nav__contact { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
  .nav__contact a:not(.btn) { font-family: var(--font-body); font-size: 1rem; border: 0; padding: 4px 0; color: rgba(245, 246, 244, 0.8); }
  html.menu-open, html.menu-open body { overflow: hidden; }
  .site-header.is-menu::before { opacity: 1 !important; }
}
@media (max-width: 1020px) and (prefers-reduced-motion: reduce) {
  .nav, .nav.is-open { transition: none; }
  .nav__links a, .nav > .btn, .nav__contact { transform: none; transition: opacity 0.15s linear; }
}
}

/* ── Hero (the one memorable moment) ─────────────────────────── */
.hero { position: relative; background: var(--navy); color: var(--paper); overflow: hidden; isolation: isolate; }
.hero__art { position: absolute; inset: 0; z-index: -1; }
.hero__art svg { width: 100%; height: 100%; }
.hero__inner { position: relative; min-height: min(calc(100svh - var(--header-h)), 840px); display: flex; flex-direction: column; justify-content: center; padding-block: clamp(56px, 10vh, 120px); }
.hero h1 { font-weight: 800; font-size: clamp(2.7rem, 5.8vw, 5.4rem); line-height: 0.98; letter-spacing: -0.045em; max-width: 12ch; }
.hero h1 .line { display: block; }
.hero__lead { margin-top: clamp(20px, 3vw, 32px); max-width: 30ch; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: rgba(245, 246, 244, 0.86); }
.hero .btn-row { margin-top: clamp(28px, 4vw, 44px); }

.sun-rise { animation: sunrise 2.4s cubic-bezier(0.22, 0.8, 0.24, 1) both; }
@keyframes sunrise { from { transform: translateY(190px); opacity: 0.2; } to { transform: none; opacity: 1; } }

@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; }
  .hero__inner { min-height: 0; justify-content: flex-start; padding-block: 44px 36px; }
  .hero h1 { max-width: 100%; }
  .hero__art { position: relative; inset: auto; z-index: 0; order: 2; height: 300px; }
}

/* ── Page header (inner pages) ───────────────────────────────── */
.page-head { background: var(--navy); color: var(--paper); position: relative; overflow: hidden; isolation: isolate; }
.page-head__art { position: absolute; inset: 0 0 0 auto; width: min(58%, 780px); z-index: -1; opacity: 0.55; mask-image: linear-gradient(90deg, transparent, #000 45%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); }
.page-head__art svg { width: 100%; height: 100%; }
.page-head__inner { padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 88px); }
.page-head h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5.2vw, 4.4rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.05; max-width: 18ch; }
.page-head p { margin: 22px 0 0; max-width: 52ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: rgba(245, 246, 244, 0.84); }
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; font-size: 0.9rem; color: rgba(245, 246, 244, 0.72); }
.crumbs a { color: inherit; }
.crumbs a:hover { color: var(--white); }
.crumbs li + li::before { content: '/'; margin-right: 10px; opacity: 0.5; }

/* ── Sections ────────────────────────────────────────────────── */
.section { padding-block: clamp(72px, 10vw, 136px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--navy { background: var(--navy); color: var(--paper); }
.section--paper2 { background: var(--paper-2); }
.section__title { font-family: var(--font-display); font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 500; letter-spacing: -0.012em; line-height: 1.08; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.55; color: var(--navy); }
.muted { color: var(--muted); }
.on-navy .muted, .section--navy .muted { color: rgba(245, 246, 244, 0.72); }
.split { display: grid; gap: clamp(32px, 6vw, 96px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .split--even { grid-template-columns: 1fr 1fr; } }

/* Intro statement */
.statement { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.18; letter-spacing: -0.03em; max-width: 26ch; }

/* ── Featured development ────────────────────────────────────── */
.feature { position: relative; }
.feature__media { position: relative; aspect-ratio: 21 / 9; overflow: hidden; background: var(--navy); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .feature__media { aspect-ratio: 4 / 3; } }
.feature__panel { position: relative; background: var(--navy); color: var(--paper); margin-top: -64px; margin-inline: var(--gutter); padding: clamp(28px, 4vw, 56px); display: grid; gap: 32px; max-width: var(--max); }
@media (min-width: 1280px) { .feature__panel { margin-inline: auto; } }
@media (min-width: 900px) { .feature__panel { grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: end; } }
.feature__panel h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -0.035em; }
.feature__panel p { color: rgba(245, 246, 244, 0.82); max-width: 46ch; margin-top: 14px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.facts > div { padding-block: 14px; border-top: 1px solid var(--line-light); }
.facts dt { font-size: 0.875rem; color: rgba(245, 246, 244, 0.68); }
.facts dd { margin: 2px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }

/* ── Status ──────────────────────────────────────────────────── */
.status { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: 0.9375rem; letter-spacing: -0.01em; }
.status::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status--PLANNING { color: var(--amber); }
.status--UNDER_CONSTRUCTION { color: var(--blue-600); }
.status--COMPLETED { color: var(--ok); }
.on-navy .status--UNDER_CONSTRUCTION, .section--navy .status--UNDER_CONSTRUCTION, .page-head .status--UNDER_CONSTRUCTION { color: #8fc2f5; }
.on-navy .status--PLANNING, .page-head .status--PLANNING { color: #f0c36d; }
.on-navy .status--COMPLETED, .page-head .status--COMPLETED { color: #7fd4a3; }

/* ── Portfolio list ──────────────────────────────────────────── */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(32px, 5vw, 56px); }
.project-list { border-bottom: 1px solid var(--line); }
.project-row { display: grid; gap: 20px 40px; padding-block: 32px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; grid-template-columns: 1fr; }
@media (min-width: 820px) { .project-row { grid-template-columns: minmax(260px, 4fr) minmax(0, 6fr) minmax(130px, 2fr); align-items: center; } }
.project-row:hover { color: inherit; }
.project-row__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.project-row__img img, .project-row__img svg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.project-row h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 800; letter-spacing: -0.035em; }
.project-row__meta { margin-top: 8px; color: var(--muted); font-size: 0.98rem; }
.project-row__text { margin-top: 12px; max-width: 54ch; }
.project-row__side { display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 820px) { .project-row__side { align-items: flex-end; text-align: right; } }
.project-row__side small { color: var(--muted); font-size: 0.9rem; }

.empty { padding: clamp(32px, 5vw, 56px); border: 1px dashed var(--line); background: var(--white); border-radius: var(--radius); }
.empty h3 { font-size: 1.4rem; margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 52ch; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filters a { padding: 9px 18px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: 0.9688rem; letter-spacing: -0.01em; }
.filters a:hover { border-color: var(--navy); color: var(--navy); }
.filters a[aria-current='true'] { background: var(--navy); border-color: var(--navy); color: var(--paper); }

/* ── Services (what we do) ───────────────────────────────────── */
.cols { display: grid; gap: 0; grid-template-columns: 1fr; }
@media (min-width: 900px) { .cols--3 { grid-template-columns: repeat(3, 1fr); } }
.col { padding: 36px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .col { padding: 8px 40px 8px 0; border-top: 0; } .col + .col { padding-left: 40px; border-left: 1px solid var(--line); } }
.col h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 800; margin-bottom: 14px; }
.col p { color: var(--muted); }

.service { display: grid; gap: 28px 64px; padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .service { grid-template-columns: 5fr 7fr; } }
.service h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -0.038em; }
.service .summary { font-size: 1.2rem; line-height: 1.5; margin-bottom: 1em; }
.checks { margin-top: 24px; display: grid; gap: 0; }
.checks li { padding: 12px 0 12px 32px; border-top: 1px solid var(--line); position: relative; font-weight: 500; }
.checks li::before { content: ''; position: absolute; left: 2px; top: 1.2em; width: 14px; height: 8px; border-left: 2px solid var(--blue-600); border-bottom: 2px solid var(--blue-600); transform: rotate(-45deg) translateY(-3px); }

/* ── Principles ──────────────────────────────────────────────── */
.sticky-col { align-self: start; }
@media (min-width: 900px) { .sticky-col { position: sticky; top: calc(var(--header-h) + 40px); } }
.principles li { padding: 28px 0; border-top: 1px solid var(--line-light); }
.principles li:last-child { border-bottom: 1px solid var(--line-light); }
.principles h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 800; margin-bottom: 8px; }
.principles p { margin: 0; color: rgba(245, 246, 244, 0.78); max-width: 50ch; }
.principles--light li { border-color: var(--line); }
.principles--light p { color: var(--muted); }

/* Timeline (a real sequence) */
.steps { counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 8px 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.04em; color: var(--blue-600); line-height: 1; }
.steps h3 { font-size: 1.35rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); max-width: 54ch; }

/* ── News ────────────────────────────────────────────────────── */
.news-list { border-bottom: 1px solid var(--line); }
.news-row { display: grid; gap: 8px 40px; padding-block: 28px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
@media (min-width: 760px) { .news-row { grid-template-columns: 200px 1fr; } }
.news-row:hover { color: inherit; }
.news-row time { color: var(--muted); font-size: 0.95rem; padding-top: 0.45em; }
.news-row h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 800; }
.news-row .news-row__cat { margin: 0 0 6px; color: var(--blue-600); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; }
.news-row:hover h3 { color: var(--blue-600); }
.news-row p { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }

.prose { max-width: 66ch; }
.prose p { margin-bottom: 1.3em; }
.prose h2 { font-size: 1.7rem; margin: 2em 0 0.6em; }
.prose h3 { font-size: 1.3rem; margin: 1.6em 0 0.5em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1.3em; }
.prose li { margin-bottom: 0.4em; }

/* ── CTA band ────────────────────────────────────────────────── */
.cta-band { background: var(--navy); color: var(--paper); position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(36, 121, 208, 0.55), rgba(36, 121, 208, 0) 68%); right: -140px; top: 50%; transform: translateY(-50%); z-index: -1; }
.cta-band__inner { padding-block: clamp(64px, 9vw, 120px); display: grid; gap: 32px; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(2.1rem, 4.6vw, 3.8rem); font-weight: 500; letter-spacing: -0.012em; line-height: 1.06; max-width: 18ch; }
.cta-band p { color: rgba(245, 246, 244, 0.82); max-width: 48ch; margin: 0; font-size: 1.15rem; }

/* ── Project detail ──────────────────────────────────────────── */
.project-hero { position: relative; background: var(--navy); color: var(--paper); }
.project-hero__img { height: clamp(300px, 56vw, 640px); overflow: hidden; position: relative; }
.project-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.project-hero__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 36, 62, 0.65) 0, rgba(16, 36, 62, 0) 38%, rgba(16, 36, 62, 0) 62%, rgba(16, 36, 62, 0.45) 100%); }
.project-hero__img svg { width: 100%; height: 100%; }
.project-hero__top { position: absolute; inset: 0 0 auto; z-index: 2; padding-top: 26px; }
.project-title { padding-block: clamp(36px, 5vw, 64px); display: grid; gap: 20px 56px; }
@media (min-width: 900px) { .project-title { grid-template-columns: 7fr 5fr; align-items: end; } }
.project-title h1 { font-family: var(--font-display); font-size: clamp(2.6rem, 5.6vw, 4.8rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.02; }
.project-title .tagline { margin: 14px 0 0; font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: rgba(245, 246, 244, 0.84); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 18px 0; border-top: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 1px solid var(--line); }
.spec-table th { width: 34%; padding-right: 24px; font-weight: 600; color: var(--muted); font-size: 0.98rem; }
.spec-table td { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.015em; }

.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(6, 1fr); } .gallery .g:nth-child(1) { grid-column: span 4; grid-row: span 2; } .gallery .g:nth-child(n + 2) { grid-column: span 2; } }
.g { position: relative; overflow: hidden; background: var(--navy); border: 0; padding: 0; cursor: zoom-in; aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .gallery .g:nth-child(1) { aspect-ratio: auto; } }
.g img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.g:hover img { transform: scale(1.04); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
dialog.lightbox::backdrop { background: rgba(7, 16, 29, 0.94); }
.lightbox__inner { display: grid; place-items: center; width: 100%; height: 100%; padding: 56px 20px 40px; }
.lightbox img { max-width: min(1500px, 100%); max-height: calc(100vh - 130px); width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { color: rgba(245, 246, 244, 0.8); margin-top: 14px; text-align: center; font-size: 0.95rem; }
.lightbox button { position: absolute; background: rgba(245, 246, 244, 0.12); color: var(--paper); border: 1px solid var(--line-light); width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.lightbox button:hover { background: rgba(245, 246, 244, 0.26); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-count { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); margin: 0; color: rgba(245, 246, 244, 0.75); font-family: var(--font-head); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.lightbox img { touch-action: pan-y; user-select: none; -webkit-user-drag: none; }
.lightbox button[hidden] { display: none; }
.lightbox .lb-prev { left: 16px; top: 50%; }
.lightbox .lb-next { right: 16px; top: 50%; }

.timeline { border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 36px 32px; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--paper); }
.timeline time { color: var(--muted); font-size: 0.92rem; }
.timeline h3 { font-size: 1.3rem; margin: 4px 0 6px; }
.timeline p { margin: 0; max-width: 60ch; }

/* ── Team ────────────────────────────────────────────────────── */
.team { display: grid; gap: 40px 28px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.member__photo { aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; margin-bottom: 16px; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.25rem; }
.member .role { color: var(--muted); margin: 2px 0 10px; font-size: 0.97rem; }
.member p { font-size: 0.97rem; color: var(--muted); }

/* ── Audience (investors page) ───────────────────────────────── */
.audience { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 760px) { .audience { grid-template-columns: 1fr 1fr; column-gap: 64px; } }
.audience > div { padding: 28px 0; border-top: 1px solid var(--line); }
.audience h3 { font-size: 1.4rem; margin-bottom: 8px; }
.audience p { margin: 0; color: var(--muted); max-width: 44ch; }

/* ── Forms ───────────────────────────────────────────────────── */
.form { display: grid; gap: 22px; }
.form-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 0.97rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.field .opt { font-weight: 500; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-height: 52px; padding: 12px 16px; background: var(--white); border: 1.5px solid rgba(16, 36, 62, 0.28); border-radius: var(--radius); transition: border-color 0.15s, box-shadow 0.15s; }
.textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(16, 36, 62, 0.55); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(36, 121, 208, 0.22); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.error-text { color: var(--danger); font-size: 0.93rem; margin: 8px 0 0; font-weight: 500; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.97rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue-600); flex: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.9rem; color: var(--muted); }
.alert { padding: 18px 20px; border-radius: var(--radius); border: 1.5px solid; }
.alert--error { border-color: var(--danger); background: #fdf1ef; color: #7a1710; }
.alert--ok { border-color: var(--ok); background: #eef8f2; color: #14573a; }
.alert strong { font-family: var(--font-head); }
.contact-card { align-self: start; background: var(--navy); color: var(--paper); padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); }
.contact-card h2 { font-size: 1.5rem; margin-bottom: 20px; }
.contact-card dl { margin: 0; }
.contact-card dt { font-size: 0.875rem; color: rgba(245, 246, 244, 0.65); margin-top: 18px; }
.contact-card dd { margin: 2px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.015em; }
.contact-card a { color: var(--paper); }
.contact-card a:hover { color: #8fc2f5; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { background: var(--navy-deep); color: rgba(245, 246, 244, 0.78); padding-top: clamp(56px, 7vw, 96px); font-size: 0.98rem; }
.site-footer a { color: rgba(245, 246, 244, 0.86); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; gap: 44px 32px; grid-template-columns: 1fr; padding-bottom: 56px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.footer-grid h2 { font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.005em; color: var(--paper); margin-bottom: 14px; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand p { max-width: 34ch; margin: 18px 0 0; }
.footer-bottom { border-top: 1px solid var(--line-light); padding-block: 24px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 0.9rem; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--line-light); border-radius: 50%; }
.social a:hover { background: var(--paper); color: var(--navy); }

/* ── Motion preferences ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sun-rise { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
@media print { .site-header, .cta-band, .site-footer, .hero__art { display: none; } }

/* ══ Home page (reference: reference/ui-one.png) ═══════════════════ */
.btn--pill { border-radius: 999px; min-height: 48px; padding: 0 26px; font-size: 0.9375rem; }
.btn--pill.btn--small { min-height: 40px; padding: 0 20px; font-size: 0.875rem; }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--paper-2); color: var(--navy); }
.btn--outline.btn--pill { border-color: var(--blue-600); color: var(--navy); }
.btn--outline.btn--pill:hover { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); }
.i-arrow { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform 0.18s; }
.btn:hover .i-arrow { transform: translateX(2px); }
.i-pin { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; }
.i-wa { width: 20px; height: 20px; fill: #25d366; flex: none; }

.h-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-family: var(--font-head); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-600); }
.h-eyebrow::before { content: ""; width: 20px; height: 1.5px; background: currentColor; }
.h-eyebrow--light { color: var(--paper); }
.h-title { font-family: var(--font-display); font-size: clamp(1.8rem, 2.9vw, 2.5rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.12; }

/* Hero */

.h-dot { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 600; font-size: 0.8125rem; }
.h-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.h-dot--UNDER_CONSTRUCTION { color: #f5b82e; }
.h-dot--PLANNING { color: #8fc2f5; }
.h-dot--COMPLETED { color: #4cc38a; }
.h-card .h-dot--UNDER_CONSTRUCTION { color: #8a5a00; }
.h-card .h-dot--UNDER_CONSTRUCTION::before { background: #f5b82e; }
.h-card .h-dot--PLANNING { color: var(--blue-600); }
.h-card .h-dot--COMPLETED { color: var(--ok); }
.h-badge { padding: 3px 12px; border: 1px solid rgba(245, 184, 46, 0.55); border-radius: 999px; background: rgba(245, 184, 46, 0.1); }



/* About + what we do */
.h-about { background: var(--white); padding-block: clamp(48px, 6vw, 72px); }
.h-about__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .h-about__grid { grid-template-columns: 1fr 1.05fr 0.9fr; align-items: center; } }
.h-about__text { margin: 18px 0 26px; color: var(--muted); font-size: 0.98rem; max-width: 46ch; }
.h-about__text p:last-child { margin: 0; }
.h-about__img { border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 18px 40px -20px rgba(16, 36, 62, 0.35); }
.h-about__img img { width: 100%; height: 100%; object-fit: cover; }
.h-services h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 18px; }
@media (min-width: 1000px) { .h-services { padding-left: 36px; border-left: 1px solid var(--line); } }
.h-services li { display: flex; gap: 18px; align-items: flex-start; padding-block: 12px; }
.h-services a { color: inherit; text-decoration: none; display: flex; flex-direction: column; }
.h-services a:hover strong { color: var(--blue-600); }
.h-services strong { font-family: var(--font-head); font-size: 0.98rem; }
.h-services a span { color: var(--muted); font-size: 0.85rem; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.h-services strong { transition: color 0.18s; }
.h-services li .h-ico svg { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.h-services li:hover .h-ico svg { transform: translateY(-2px); }
.h-ico { flex: none; display: flex; }
.h-ico svg, .h-why__list svg { width: 34px; height: 34px; fill: none; stroke: var(--blue-600); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Featured */
.h-feature { position: relative; isolation: isolate; background: var(--navy-deep); color: var(--paper); overflow: hidden; }
.h-feature__img { position: absolute; inset: 0 0 0 38%; z-index: -2; }
.h-feature__img img, .h-feature__img svg { width: 100%; height: 100%; object-fit: cover; }
.h-feature::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 52%; z-index: -1; background: linear-gradient(115deg, var(--navy-deep) 70%, rgba(26, 51, 84, 0.95) 70%, rgba(26, 51, 84, 0.95) 80%, transparent 80.2%); }
.h-feature__inner { padding-block: clamp(48px, 6vw, 72px); }
.h-feature__panel { max-width: 460px; }
.h-feature h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 3.8vw, 3.2rem); font-weight: 500; letter-spacing: -0.012em; }
.h-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 16px 0 18px; font-size: 0.9rem; }
.h-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.h-feature__panel > p:not(.h-meta):not(.h-eyebrow) { color: rgba(245, 246, 244, 0.85); max-width: 40ch; margin-bottom: 24px; }
@media (max-width: 760px) {
  .h-feature__img { position: relative; inset: auto; height: 260px; }
  .h-feature::before { display: none; }
}

/* Developments */
.h-section { padding-block: clamp(48px, 6vw, 72px); }
.h-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.h-cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .h-cards { grid-template-columns: repeat(3, 1fr); } }
.h-card { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: 6px; overflow: hidden; color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(16, 36, 62, 0.08), 0 8px 24px -14px rgba(16, 36, 62, 0.25); transition: box-shadow var(--dur-card) var(--ease-out); }
.h-card:hover { color: inherit; }
.h-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: #eef0f3; display: grid; place-items: center; }
.h-card__img img, .h-card__img > svg { width: 100%; height: 100%; object-fit: cover; }
.h-card--soon .h-card__img {
  background-color: #eef1f5;
  background-image: linear-gradient(rgba(16, 36, 62, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 36, 62, 0.06) 1px, transparent 1px);
  background-size: 22px 22px; background-position: center;
}
.h-card--soon .h-card__img svg { width: 64px; height: 64px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linejoin: round; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s; }
.h-card--soon:hover .h-card__img svg { transform: translateY(-3px); stroke: var(--blue-600); }
@media (max-width: 699px) {
  .h-card--soon { flex-direction: row; }
  .h-card--soon .h-card__img { aspect-ratio: auto; width: 96px; flex: none; }
  .h-card--soon .h-card__img svg { width: 40px; height: 40px; }
  .h-card--soon .h-card__body { flex: 1; padding-block: 18px; }
}
.h-card__body { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; }
.h-card h3 { font-size: 1.05rem; font-weight: 700; }
.h-card p { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 0.8125rem; }
.h-card p .h-dot { margin-left: 10px; }
.h-go { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--blue-600); transition: background-color var(--dur-btn) var(--ease-out), color var(--dur-btn) var(--ease-out), border-color var(--dur-btn) var(--ease-out); }
.h-go svg { transition: transform var(--dur-card) var(--ease-out); }

/* Why */
.h-why { background: var(--white); padding-block: clamp(40px, 5vw, 56px); }
.h-why__grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .h-why__grid { grid-template-columns: 1fr 2fr; } }
.h-why__text { margin: 10px 0 0; color: var(--muted); font-size: 0.95rem; max-width: 42ch; }
.h-why__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
@media (min-width: 640px) { .h-why__list { grid-template-columns: repeat(4, 1fr); } }
.h-why__list li { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 8px 18px; line-height: 1.3; }
.h-why__list li strong { font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; }
.h-why__list li span { color: var(--muted); font-size: 0.875rem; line-height: 1.5; max-width: 26ch; }
@media (min-width: 640px) { .h-why__list li { border-left: 1px solid var(--line); } }

/* News */
.h-news { padding-block: clamp(40px, 5vw, 56px); }
.h-news__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .h-news__grid { grid-template-columns: 1fr 2fr; align-items: center; } }
.h-news__text { margin: 8px 0 22px; color: var(--muted); font-size: 0.9rem; }
.h-news__cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .h-news__cards { grid-template-columns: repeat(3, 1fr); } }
.h-post { background: var(--white); border-radius: 6px; overflow: hidden; color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(16, 36, 62, 0.08), 0 8px 24px -14px rgba(16, 36, 62, 0.25); }
.h-post:hover { color: inherit; }
.h-post:hover h3 { color: var(--blue-600); }
.h-post__img { aspect-ratio: 16 / 7; overflow: hidden; }
.h-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.h-post:hover .h-post__img img { transform: scale(1.04); }
.h-post__body { padding: 10px 14px 14px; }
.h-post time { font-size: 0.75rem; color: var(--muted); }
.h-post h3 { font-size: 0.92rem; font-weight: 700; line-height: 1.3; margin-top: 4px; transition: color 0.18s; }
.h-post__img { background: #e3e7ec; }
.h-post { transition: transform 0.25s, box-shadow 0.25s; }
.h-post:hover { box-shadow: 0 2px 4px rgba(16, 36, 62, 0.08), 0 18px 36px -16px rgba(16, 36, 62, 0.35); }
/* A lone update reads as a feature, not a gap in a three-up grid */
@media (min-width: 700px) {
  .h-post:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; }
  .h-post:only-child .h-post__img { aspect-ratio: 16 / 10; }
  .h-post:only-child .h-post__body { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 28px 32px; }
  .h-post:only-child h3 { font-size: 1.35rem; line-height: 1.2; }
  .h-post:only-child .h-post__body::after { content: "Read the update"; margin-top: 10px; font-family: var(--font-head); font-weight: 700; font-size: 0.875rem; color: var(--blue-600); }
}
@media (min-width: 700px) { .h-news__cards:has(.h-post:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); } }

/* CTA */
.h-cta { position: relative; isolation: isolate; background: var(--navy-deep) url("/img/almasi-twilight-1600.webp") left center / auto 100% no-repeat; color: var(--paper); }
.h-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 22, 44, 0.2) 0, rgba(8, 22, 44, 0.75) 32%, var(--navy-deep) 48%); }
.h-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; padding-block: clamp(60px, 8.4vw, 106px); }
@media (min-width: 900px) { .h-cta__inner { padding-left: 40%; } }
.h-cta h2 { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 500; letter-spacing: -0.012em; line-height: 1.08; max-width: 16ch; }
.h-cta p { margin: 14px 0 0; color: rgba(245, 246, 244, 0.85); font-size: 1.05rem; max-width: 46ch; }
@media (max-width: 900px) { .h-cta { background-image: none; } }

/* Header: enquire pill (all pages) */
.nav .btn--enquire { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); border-radius: 999px; }
.nav .btn--enquire:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
@media (prefers-reduced-motion: reduce) {
  .h-card:hover .h-card__img img, .h-card:focus-visible .h-card__img img, .h-post:hover .h-post__img img, .h-card--soon:hover .h-card__img svg, .h-services li:hover .h-ico svg { transform: none; }
}


/* ══ Home hero — cinematic slider (reference/hero.png) ═══════════════ */
.h-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(620px, 100svh); display: flex; flex-direction: column;
  background: var(--navy-deep); color: var(--paper);
}
.h-hero__slides { position: absolute; inset: 0; z-index: -2; }
.h-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s var(--ease-io); }
.h-slide.is-active { opacity: 1; z-index: 1; }
.h-slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 50%; }
.h-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 22, 44, 0.92) 0%, rgba(8, 22, 44, 0.74) 36%, rgba(8, 22, 44, 0.28) 58%, rgba(8, 22, 44, 0.04) 78%),
    linear-gradient(0deg, rgba(8, 22, 44, 0.78) 0%, transparent 32%),
    linear-gradient(180deg, rgba(8, 22, 44, 0.6) 0%, transparent 22%);
}
.h-hero__inner {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding-block: calc(var(--header-h) + clamp(40px, 7vh, 88px)) clamp(32px, 5vh, 56px);
}
.h-hero__eyebrow {
  margin: 0 0 clamp(16px, 2.4vh, 26px); font-family: var(--font-head); font-weight: 700;
  font-size: 0.8125rem; letter-spacing: 0.24em; text-transform: uppercase; color: #8fc2f5;
}
.h-hero h1 {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 6.1vw, 5.6rem);
  line-height: 1.04; letter-spacing: -0.015em; max-width: 16ch; text-wrap: balance;
}
.h-hero h1 .line { display: block; }
.h-hero h1 .accent { font-style: normal; color: #5aaefc; }
.h-hero__lead { margin: clamp(18px, 2.6vh, 28px) 0 0; max-width: 34ch; font-size: clamp(1.05rem, 1.45vw, 1.3rem); line-height: 1.5; color: rgba(245, 246, 244, 0.88); }
.h-hero .btn-row { margin-top: clamp(26px, 4vh, 40px); }
.h-hero .btn--ghost { border-color: rgba(245, 246, 244, 0.5); }

.h-hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; padding-bottom: clamp(24px, 4.5vh, 44px); }
.h-stats { display: flex; margin: 0; }
.h-stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 0 clamp(18px, 2.4vw, 34px); border-left: 1px solid var(--line-light); }
.h-stat:first-child { padding-left: 0; border-left: 0; }
.h-stat dd { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 2.8vw, 2.6rem); line-height: 1; color: #8fc2f5; font-variant-numeric: lining-nums tabular-nums; }
.h-stat dt { font-size: 0.8125rem; color: rgba(245, 246, 244, 0.8); line-height: 1.3; max-width: 16ch; }

.h-slider { display: flex; align-items: center; gap: 18px 28px; margin-left: auto; }
.h-slider__caption { display: flex; flex-direction: column; color: var(--paper); text-decoration: none; text-align: right; line-height: 1.3; transition: opacity 0.4s var(--ease-out); }
.h-slider__caption strong { font-family: var(--font-head); font-size: 0.95rem; }
.h-slider__caption small { font-size: 0.8125rem; opacity: 0.75; }
.h-slider__caption:hover { color: var(--white); }
.h-slider__caption.is-swapping { opacity: 0; }
.h-slider__controls { display: flex; align-items: center; gap: 12px; }
.h-slider__controls[hidden] { display: none; }
.h-slider__count { margin: 0 8px 0 0; display: flex; align-items: baseline; gap: 6px; font-family: var(--font-head); font-size: 0.875rem; color: rgba(245, 246, 244, 0.7); font-variant-numeric: tabular-nums; }
.h-slider__count b { color: var(--white); font-size: 1.05rem; }
.h-slider__btn {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--paper); border: 1px solid rgba(245, 246, 244, 0.45);
  transition: background-color var(--dur-btn) var(--ease-out), color var(--dur-btn) var(--ease-out), border-color var(--dur-btn) var(--ease-out), transform var(--dur-btn) var(--ease-out);
}
.h-slider__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-btn) var(--ease-out); }
.h-slider__btn:active { transform: scale(0.96); }
@media (hover: hover) {
  .h-slider__btn:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }
  .h-slider__btn[data-slide-next]:hover svg { transform: translateX(2px); }
  .h-slider__btn[data-slide-prev]:hover svg { transform: translateX(-2px); }
}

@media (max-width: 899px) {
  .h-hero::before { background: linear-gradient(180deg, rgba(8, 22, 44, 0.82) 0%, rgba(8, 22, 44, 0.62) 50%, rgba(8, 22, 44, 0.5) 66%, rgba(8, 22, 44, 0.9) 100%); }
  .h-slide img { object-position: 62% center !important; }
  .h-hero h1 { font-size: clamp(2.4rem, 10.5vw, 3.4rem); }
  .h-hero .btn-row .btn { flex: 1 1 auto; }
  .h-hero__foot { flex-direction: column; align-items: stretch; }
  .h-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .h-stat { padding: 0 16px; }
  .h-stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .h-slider { margin-left: 0; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line-light); }
  .h-slider__caption { text-align: left; }
}

/* Cinematic settle — CSS so it runs even without JS; transform only, so it never delays LCP. */
@media (prefers-reduced-motion: no-preference) {
  .h-slide.is-active img { animation: h-kenburns 9s cubic-bezier(0.16, 1, 0.3, 1) both; }
}
@media (prefers-reduced-motion: reduce) {
  .h-slide { transition: none; }
}
@keyframes h-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Fail-open: hero copy and header are hidden only while motion.js is confirmed alive (motion-boot.js). */
html.motion-pending [data-hero-item],
html.motion-pending .has-hero .site-header__inner { opacity: 0; }
/* On phones the headline is the LCP element, so it only waits for JS on desktop (where the photo is LCP). */
@media (min-width: 900px) { html.motion-pending [data-hero-title] { opacity: 0; } }
html.motion-failed [data-hero-item],
html.motion-failed [data-hero-title],
html.motion-failed .site-header__inner { transition: opacity 0.5s var(--ease-out); }
.has-hero .site-header.is-top.is-menu::before { opacity: 1; }


/* ══ Project cards — editorial hover (same state on keyboard focus) ═════════════
   Image 1.0→1.04, overlay deepens, "Explore project" label rises, arrow travels, accent line draws. */
.h-card__img, .project-row__img { position: relative; }
.h-card__img img, .project-row__img img, .project-row__img svg { transition: transform 0.9s var(--ease-out); }
.h-card__img::after, .project-row__img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(8, 22, 44, 0.55) 0%, rgba(8, 22, 44, 0) 55%);
  opacity: 0; transition: opacity var(--dur-card) var(--ease-out);
}
.h-card--soon .h-card__img::after { display: none; }
.card-cta {
  position: absolute; left: 16px; bottom: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white);
  opacity: 0; transform: translateY(8px); transition: opacity var(--dur-card) var(--ease-out), transform var(--dur-card) var(--ease-out);
}
.card-cta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.h-card h3, .project-row h3 { transition: color var(--dur-card) var(--ease-out), transform var(--dur-card) var(--ease-out); }
.h-card::after, .project-row::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out);
}
.project-row { position: relative; }
.project-row__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-family: var(--font-head); font-weight: 700; font-size: 0.875rem; color: var(--blue-600); }
.project-row__go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-card) var(--ease-out); }

.h-card:focus-visible, .project-row:focus-visible { outline-offset: 4px; }
.h-card:focus-visible .h-card__img img, .project-row:focus-visible .project-row__img img { transform: scale(1.04); }
.h-card:focus-visible .h-card__img::after, .project-row:focus-visible .project-row__img::after { opacity: 1; }
.h-card:focus-visible .card-cta, .project-row:focus-visible .card-cta { opacity: 1; transform: none; }
.h-card:focus-visible::after, .project-row:focus-visible::after { transform: scaleX(1); }
.h-card:focus-visible .h-go { background: var(--blue-600); color: var(--white); border-color: var(--blue-600); }
.h-card:focus-visible .h-go svg, .project-row:focus-visible .project-row__go svg { transform: translateX(3px); }
@media (hover: hover) {
  .h-card:hover .h-card__img img, .project-row:hover .project-row__img img, .project-row:hover .project-row__img svg { transform: scale(1.04); }
  .h-card:hover .h-card__img::after, .project-row:hover .project-row__img::after { opacity: 1; }
  .h-card:hover .card-cta, .project-row:hover .card-cta { opacity: 1; transform: none; }
  .h-card:hover::after, .project-row:hover::after { transform: scaleX(1); }
  .h-card:hover h3, .project-row:hover h3 { color: var(--blue-700); transform: translateY(-2px); }
  .h-card:hover .h-go { background: var(--blue-600); color: var(--white); border-color: var(--blue-600); }
  .h-card:hover .h-go svg, .project-row:hover .project-row__go svg { transform: translateX(3px); }
  .h-card--soon:hover::after { background: var(--line); }
}
/* Touch: the label is always visible so nothing is hover-only. */
@media (hover: none) { .h-card:not(.h-card--soon) .card-cta, .project-row .card-cta { opacity: 1; transform: none; } .h-card__img::after, .project-row__img::after { opacity: 0.8; } }
@media (prefers-reduced-motion: reduce) {
  .h-card__img img, .project-row__img img, .card-cta, .h-card h3, .project-row h3, .h-card::after, .project-row::after { transition: none !important; }
  .h-card:hover .h-card__img img, .project-row:hover .project-row__img img, .h-card:hover h3, .project-row:hover h3 { transform: none !important; }
}


/* ══ Page transitions — cross-document View Transitions (Chrome/Edge 126+, Safari 18.2+) ══════════
   Other browsers navigate normally. The project image morphs from the card that was clicked into
   the project hero (names are set on exactly one element per page by motion.js / motion-boot.js). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out 240ms var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in var(--dur-page) var(--ease-out) both; }
::view-transition-group(site-header) { animation-duration: var(--dur-page); }
::view-transition-group(.project-img) { animation-duration: 700ms; animation-timing-function: var(--ease-io); }
::view-transition-image-pair(.project-img) { overflow: clip; }
::view-transition-old(.project-img), ::view-transition-new(.project-img) { width: 100%; height: 100%; object-fit: cover; animation-duration: 700ms; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }


/* ══ Scroll reveals, parallax, gallery rail ═════════════════════════════════ */
/* The page-head h1 is usually the LCP element on inner pages, so it is never hidden; only supporting copy waits. */
html.motion-pending .page-head__inner > :not(h1) { opacity: 0; }
html.motion-failed .page-head__inner > :not(h1) { transition: opacity 0.5s var(--ease-out); }
/* SplitText line masks: keep descenders (g, y, p) inside the mask */
.split-line { padding-bottom: 0.1em; margin-bottom: -0.1em; }
.h-feature__img { overflow: hidden; }

/* Horizontal gallery (desktop, set by motion.js; the grid above is the fallback) */
.gallery.gallery--rail { display: flex; gap: 18px; width: max-content; will-change: transform; }
.gallery--rail .g { flex: none; height: min(66vh, 620px); width: auto; aspect-ratio: var(--ar, 4 / 3) !important; grid-column: auto !important; grid-row: auto !important; border-radius: 4px; }
.gallery--rail .g:first-child { aspect-ratio: 16 / 10 !important; }
.gallery-progress { height: 2px; margin-top: 28px; background: var(--line); overflow: hidden; }
.gallery-progress span { display: block; height: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; }
section:has(> .container > .gallery--rail), section:has(.gallery--rail) { overflow: hidden; }


/* ══ Conversion & content blocks ══════════════════════════════════════════ */
.eyebrow-line { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-family: var(--font-head); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-600); }
.eyebrow-line::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.eyebrow-line--light { color: #8fc2f5; }

/* Residences table */
.units { overflow-x: auto; border-top: 1px solid var(--line); }
.units:focus-visible { outline-offset: 6px; }
.units__table { width: 100%; border-collapse: collapse; min-width: 640px; }
.units__table th, .units__table td { text-align: left; padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.units__table thead th { padding-block: 14px; font-size: 0.8125rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.units__table tbody th { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.01em; }
.units__table td { font-family: var(--font-head); font-weight: 600; font-variant-numeric: tabular-nums; }
.units__plan { text-align: right !important; padding-right: 0 !important; }
.units__plan .text-link { background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; color: var(--blue-600); font-size: 0.95rem; }
.avail { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.avail--AVAILABLE { color: var(--ok); }
.avail--LIMITED { color: var(--amber); }
.avail--SOLD_OUT { color: var(--muted); }
.avail--ENQUIRE { color: var(--blue-600); }
@media (max-width: 700px) {
  .units { overflow: visible; border-top: 0; }
  .units__table { min-width: 0; }
  .units__table thead { display: none; }
  .units__table, .units__table tbody, .units__table tr, .units__table th, .units__table td { display: block; }
  .units__table tr { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .units__table tbody th { grid-column: 1 / -1; border: 0; padding: 0; }
  .units__table td { border: 0; padding: 0; font-size: 0.95rem; }
  .units__table td::before { content: attr(data-label); display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.78rem; color: var(--muted); }
  .units__plan { grid-column: 1 / -1; text-align: left !important; }
}

/* Brochure band */
.brochure { background: var(--navy-deep); color: var(--paper); position: relative; overflow: hidden; isolation: isolate; }
.brochure::before { content: ""; position: absolute; width: 640px; height: 640px; right: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(36, 121, 208, 0.35), transparent 65%); z-index: -1; }
.brochure__inner { display: grid; gap: 40px; padding-block: clamp(64px, 9vw, 112px); }
@media (min-width: 900px) { .brochure__inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; } }
.brochure h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -0.012em; line-height: 1.08; max-width: 16ch; }
.brochure p { color: rgba(245, 246, 244, 0.84); max-width: 46ch; margin-top: 16px; }
.brochure__form { display: grid; gap: 16px; background: rgba(245, 246, 244, 0.04); border: 1px solid var(--line-light); border-radius: 6px; padding: clamp(22px, 3vw, 32px); }
.brochure__form label:not(.check) { color: var(--paper); }
.brochure__form .opt { color: rgba(245, 246, 244, 0.6); }
.brochure__form .input { background: rgba(255, 255, 255, 0.96); }
.brochure__form .check { color: rgba(245, 246, 244, 0.86); font-size: 0.9rem; }
.brochure__form .check a { color: #8fc2f5; }
.brochure__form .btn { justify-self: start; }
.brochure__done { display: grid; gap: 14px; justify-items: start; }
.brochure__done .form-note { color: rgba(245, 246, 244, 0.65); margin: 0; }

/* Location */
.location { display: grid; gap: 40px; }
@media (min-width: 900px) { .location { grid-template-columns: 5fr 7fr; align-items: start; gap: 64px; } .location--nomap { grid-template-columns: 1fr; } }
.landmarks { margin: 28px 0 24px; border-top: 1px solid var(--line); }
.landmarks li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.landmarks strong { font-family: var(--font-head); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.location__map { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--paper-2); box-shadow: 0 18px 40px -24px rgba(16, 36, 62, 0.45); }
.location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(0.85); }

/* Progress photos */
.timeline__photo { display: block; margin-top: 16px; padding: 0; border: 0; background: var(--navy); border-radius: 4px; overflow: hidden; cursor: zoom-in; max-width: 520px; aspect-ratio: 3 / 2; width: 100%; }
.timeline__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
@media (hover: hover) { .timeline__photo:hover img { transform: scale(1.03); } }
.section--paper2 .timeline li::before { box-shadow: 0 0 0 4px var(--paper-2); }

/* About figures */
.figures { background: var(--white); border-bottom: 1px solid var(--line); }
.figures__list { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
@media (min-width: 800px) { .figures__list { grid-template-columns: repeat(4, 1fr); } }
.figure { display: flex; flex-direction: column-reverse; gap: 8px; padding: clamp(28px, 4vw, 44px) clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); }
.figure:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 799px) { .figure:nth-child(odd) { border-left: 0; padding-left: 0; } }
.figure dd { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1; color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.figure dt { color: var(--muted); font-size: 0.92rem; max-width: 20ch; }

/* Single published project: the developments card becomes a wide editorial row instead of a lone third. */
@media (min-width: 700px) {
  .h-cards:has(> .h-card:only-child) { grid-template-columns: 1fr; }
  .h-cards > .h-card:only-child { flex-direction: row; min-height: 340px; }
  .h-cards > .h-card:only-child .h-card__img { flex: 1.5; aspect-ratio: auto; }
  .h-cards > .h-card:only-child .h-card__body { flex: 1; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: clamp(24px, 3vw, 40px); gap: 20px; }
  .h-cards > .h-card:only-child h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 2.6vw, 2.4rem); letter-spacing: -0.01em; }
  .h-cards > .h-card:only-child p { font-size: 0.95rem; }
  .h-cards > .h-card:only-child .h-go { width: 44px; height: 44px; }
}

/* Floating WhatsApp (phones and tablets) */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #1f9d55; color: #fff; box-shadow: 0 10px 28px -8px rgba(8, 22, 44, 0.55);
  opacity: 0; transform: translateY(16px) scale(0.92); pointer-events: none;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), background-color var(--dur-btn);
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: #18844a; color: #fff; }
@media (min-width: 1021px) { .wa-float { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: opacity 0.15s linear; transform: none; } }

/* Cookie consent */
.consent {
  position: fixed; left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; max-width: 760px; margin-inline: auto;
  padding: 18px 20px; background: var(--navy-deep); color: var(--paper); border: 1px solid var(--line-light); border-radius: 8px;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.5); font-size: 0.92rem;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 320px; }
.consent a { color: #8fc2f5; }
.consent__actions { display: flex; gap: 10px; }
.btn--outline-light { border-color: rgba(245, 246, 244, 0.5); color: var(--paper); background: transparent; }
.btn--outline-light:hover { background: var(--paper); color: var(--navy); }
.footer-bottom__links { display: inline-flex; gap: 20px; align-items: center; }
.site-footer .link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }

/* Explore cursor (desktop, fine pointer) */
.explore-cursor { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; will-change: transform; }
.explore-cursor span {
  position: absolute; left: 0; top: 0; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(245, 246, 244, 0.94); color: var(--navy);
  font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0; transform: scale(0.4); transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  box-shadow: 0 10px 30px -10px rgba(8, 22, 44, 0.45);
}
.explore-cursor.is-on span { opacity: 1; transform: scale(1); }


/* ══ Error page ═════════════════════════════════════════════════════════ */
.err { display: grid; min-height: calc(100svh - var(--header-h)); }
@media (min-width: 960px) { .err { grid-template-columns: 1.1fr 1fr; } }
.err__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(56px, 8vw, 112px) var(--gutter); max-width: 720px; }
@media (min-width: 960px) { .err__body { padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); } }
.err__code { font-family: var(--font-display); font-weight: 500; font-size: clamp(5rem, 14vw, 10rem); line-height: 0.9; color: var(--blue-600); letter-spacing: -0.02em; margin: 0; }
.err h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.012em; line-height: 1.08; margin: 18px 0 14px; max-width: 16ch; }
.err__links { margin-top: 36px; border-top: 1px solid var(--line); }
.err__links a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--navy); text-decoration: none; font-family: var(--font-head); font-weight: 700; }
.err__links a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform var(--dur-btn) var(--ease-out); }
.err__links a:hover { color: var(--blue-600); }
.err__links a:hover svg { transform: translateX(3px); }
.err__media { position: relative; min-height: 280px; background: var(--navy-deep); overflow: hidden; }
.err__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
@media (max-width: 959px) { .err__media { display: none; } }

/* ══ Article ════════════════════════════════════════════════════════════ */
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: rgba(245, 246, 244, 0.78); font-size: 0.95rem; }
.article-cover { margin: 0; aspect-ratio: 21 / 9; overflow: hidden; background: var(--navy); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .article-cover { aspect-ratio: 4 / 3; } }
.article-body { max-width: 68ch; margin-inline: auto; }
.article-body .lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--navy); }
.article-body .prose p { font-size: 1.08rem; line-height: 1.75; }
.article-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.related { background: var(--paper-2); }
.related__grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .related__grid { grid-template-columns: repeat(3, 1fr); } }

.preview-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 80; padding: 10px 18px; border-radius: 999px; background: #f5b82e; color: #3b2a00; font-family: var(--font-head); font-weight: 700; font-size: 0.875rem; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.4); max-width: calc(100vw - 32px); text-align: center; }

/* ══ Home sections — taller editorial pass ═════════════════════════════════
   More vertical rhythm, larger imagery and richer cards for About, Featured,
   Projects, Why and News. Appended last so it wins over the base rules above. */
.h-title { font-size: clamp(2.1rem, 3.6vw, 3.25rem); line-height: 1.08; text-wrap: balance; }
.h-eyebrow { margin-bottom: 16px; letter-spacing: 0.14em; }
.h-eyebrow::before { width: 32px; }

/* About */
.h-about { position: relative; padding-block: clamp(64px, 8vw, 116px); overflow: hidden; }
.h-about::before {
  content: ""; position: absolute; inset: 0 0 auto auto; width: min(46vw, 640px); height: 70%; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(29, 104, 181, 0.12) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(225deg, #000 0%, transparent 70%); mask-image: linear-gradient(225deg, #000 0%, transparent 70%);
}
.h-about__grid { position: relative; z-index: 1; gap: clamp(48px, 6vw, 72px); }
@media (min-width: 1000px) { .h-about__grid { grid-template-columns: 1.15fr 1fr 0.95fr; align-items: stretch; } .h-about__grid > div:first-child { align-self: center; } }
.h-about__text { margin: 24px 0 34px; font-size: 1.05rem; line-height: 1.75; max-width: 44ch; }
.h-about__text p + p { margin-top: 1em; }
.h-about__img { position: relative; overflow: visible; border-radius: 10px; aspect-ratio: 4 / 5; min-height: 420px; box-shadow: none; }
.h-about__img::before {
  content: ""; position: absolute; inset: 28px -22px -22px 28px; z-index: 0; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-600), var(--navy)); opacity: 0.14;
}
.h-about__img img { position: relative; z-index: 1; border-radius: 10px; box-shadow: 0 34px 70px -32px rgba(16, 36, 62, 0.55); }
@media (max-width: 999px) { .h-about__img { aspect-ratio: 4 / 3; min-height: 0; margin-right: 22px; } }
.h-services { display: flex; flex-direction: column; justify-content: center; }
.h-services h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2vw, 1.85rem); margin-bottom: 14px; }
.h-services li { gap: 20px; padding-block: 22px; border-top: 1px solid var(--line); }
.h-services li:first-child { border-top: 0; }
.h-services strong { font-size: 1.05rem; margin-bottom: 4px; }
.h-services a span { font-size: 0.9rem; line-height: 1.55; }
.h-ico { width: 56px; height: 56px; border-radius: 14px; place-items: center; display: grid; background: rgba(29, 104, 181, 0.08); transition: background-color var(--dur-card) var(--ease-out); }
.h-ico svg { width: 28px; height: 28px; }
.h-services li:hover .h-ico { background: rgba(29, 104, 181, 0.16); }

/* Featured project */
.h-feature { min-height: clamp(522px, 74vh, 738px); display: flex; align-items: center; }
.h-feature__inner { width: 100%; padding-block: clamp(72px, 9vw, 122px); }
.h-feature__panel { max-width: 520px; }
.h-feature h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.02; }
.h-meta { margin: 22px 0 24px; font-size: 0.95rem; }
.h-feature__panel > p:not(.h-meta):not(.h-eyebrow) { font-size: 1.08rem; line-height: 1.7; max-width: 42ch; margin-bottom: 34px; }
.h-feature__img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(8, 22, 44, 0.45) 0%, transparent 40%); }
@media (max-width: 760px) {
  .h-feature { display: block; min-height: 0; }
  .h-feature__img { height: min(62vw, 380px); min-height: 280px; }
  .h-feature__inner { padding-block: 44px 56px; }
}

/* Our projects */
.h-section { padding-block: clamp(60px, 7.6vw, 110px); background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.h-head { margin-bottom: clamp(36px, 4.5vw, 56px); gap: 24px; }
.h-cards { gap: clamp(20px, 2.4vw, 32px); }
.h-card { border-radius: 12px; box-shadow: 0 1px 2px rgba(16, 36, 62, 0.06), 0 22px 48px -26px rgba(16, 36, 62, 0.4); transition: box-shadow var(--dur-card) var(--ease-out), transform var(--dur-card) var(--ease-out); }
@media (hover: hover) { .h-card:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(16, 36, 62, 0.08), 0 36px 64px -28px rgba(16, 36, 62, 0.5); } }
.h-card__img { aspect-ratio: 4 / 5; }
@media (max-width: 699px) { .h-card__img { aspect-ratio: 4 / 3; } }
.h-card__body { padding: 22px 24px 24px; }
.h-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.01em; }
.h-card p { margin-top: 8px; font-size: 0.875rem; }
.h-go { width: 44px; height: 44px; }
.card-cta { left: 24px; bottom: 22px; }
.h-card--soon .h-card__img svg { width: 84px; height: 84px; }
@media (min-width: 700px) {
  .h-cards > .h-card:only-child { min-height: clamp(460px, 56vh, 600px); }
  .h-cards > .h-card:only-child .h-card__body { justify-content: center; padding: clamp(32px, 4vw, 56px); }
  .h-cards > .h-card:only-child h3 { font-size: clamp(2.2rem, 3.4vw, 3.2rem); }
}

/* Why */
.h-why { padding-block: clamp(64px, 7.2vw, 104px); }
.h-why__list { gap: 40px 0; }
.h-why__list li { gap: 14px; padding: 16px 24px; }
.h-why__list svg { width: 40px; height: 40px; }
.h-why__list li strong { font-size: 1.05rem; }

/* Latest updates */
.h-news { padding-block: clamp(62px, 7.6vw, 110px); }
.h-news__grid { gap: clamp(40px, 5vw, 64px); }
@media (min-width: 960px) { .h-news__grid { grid-template-columns: 1fr 2.2fr; align-items: start; } .h-news__grid > div:first-child { position: sticky; top: calc(var(--header-h) + 40px); padding-top: 12px; } }
.h-news__text { margin: 16px 0 30px; font-size: 1.02rem; line-height: 1.7; max-width: 36ch; }
.h-news__cards { gap: clamp(18px, 2vw, 28px); }
.h-post { display: flex; flex-direction: column; border-radius: 12px; box-shadow: 0 1px 2px rgba(16, 36, 62, 0.06), 0 22px 48px -26px rgba(16, 36, 62, 0.4); transition: transform var(--dur-card) var(--ease-out), box-shadow var(--dur-card) var(--ease-out); }
@media (hover: hover) { .h-post:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(16, 36, 62, 0.08), 0 36px 64px -28px rgba(16, 36, 62, 0.5); } }
.h-post__img { aspect-ratio: 4 / 3; }
.h-post__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; }
.h-post time { font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-600); }
.h-post h3 { font-size: 1.1rem; line-height: 1.35; margin-top: 0; }
.h-post__body::after { content: "Read more \2192"; margin-top: auto; padding-top: 14px; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--navy); transition: color 0.18s; }
.h-post:hover .h-post__body::after { color: var(--blue-600); }
@media (min-width: 700px) {
  .h-post:only-child { min-height: clamp(380px, 46vh, 480px); }
  .h-post:only-child .h-post__img { aspect-ratio: auto; height: 100%; }
  .h-post:only-child .h-post__body { padding: 40px 44px; gap: 12px; }
  .h-post:only-child .h-post__body::after { content: "Read the update \2192"; margin-top: 18px; padding-top: 0; color: var(--blue-600); }
  .h-post:only-child h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
}
@media (prefers-reduced-motion: reduce) { .h-card:hover, .h-post:hover { transform: none !important; } }

/* ─── Language switcher (header menu and footer) ─────────────────── */
.lang-switch { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.lang-switch a, .nav .lang-switch a:not(.btn) {
  display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: 0 6px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(245, 246, 244, 0.7); text-decoration: none; border: 0; border-radius: var(--radius);
}
.lang-switch abbr { text-decoration: none; }
.lang-switch a:hover { color: var(--white); text-decoration: none; }
.lang-switch a[aria-current='true'] { color: var(--white); box-shadow: inset 0 -2px 0 var(--blue); }
.nav .lang-switch a:not(.btn)::after { display: none; }
.lang-switch--nav { margin-left: 8px; }
@media (max-width: 1020px) {
  .lang-switch--nav { margin: 0; gap: 8px; }
  .nav .lang-switch a:not(.btn) { min-width: 48px; min-height: 44px; font-size: 0.875rem; border: 1px solid var(--line-light); }
}

/* ─── Prices ──────────────────────────────────────────────────────── */
.price-from { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.h-card__price { margin: 6px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; color: var(--blue-600); font-variant-numeric: tabular-nums; }
.units__table s { color: var(--muted); }

/* ─── Projects: status and budget filters ─────────────────────────── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.filter-bar .filters { margin-bottom: 0; }
.budget { display: flex; align-items: center; gap: 10px; }
.budget label { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; }
.select--small { width: auto; min-height: 44px; padding-block: 8px; }

/* ─── Video and 360-degree tour (click to load) ───────────────────── */
.media-embeds { display: grid; gap: 24px; }
@media (min-width: 900px) { .media-embeds--two { grid-template-columns: 1fr 1fr; } }
.embed { display: grid; gap: 12px; }
.embed__play, .embed iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: var(--navy-soft); overflow: hidden; border-radius: var(--radius); }
.embed__play { cursor: pointer; color: var(--white); }
.embed__play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: opacity var(--dur-card) var(--ease-out), transform var(--dur-img) var(--ease-out); }
.embed__play:hover img, .embed__play:focus-visible img { opacity: 0.4; transform: scale(1.03); }
.embed__label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.embed__label svg { width: 68px; height: 68px; padding: 18px; border-radius: 50%; background: var(--blue); fill: currentColor; stroke: none; }
.embed__label svg circle, .embed__label svg ellipse, .embed__label svg path[d^='M3'] { fill: none; stroke: currentColor; stroke-width: 1.6; }
.embed__note { margin: 0; font-size: 0.9rem; color: rgba(245, 246, 244, 0.72); }
.embed__note a { color: var(--paper); }

/* ─── Purchase calculator ─────────────────────────────────────────── */
.calc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 22px; }
.calc__tabs { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; justify-self: start; }
.calc__tabs button { border: 0; background: none; padding: 9px 18px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; color: var(--navy); cursor: pointer; min-height: 40px; }
.calc__tabs button[aria-selected='true'] { background: var(--navy); color: var(--paper); }
.calc .form-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.calc .field.full { grid-column: 1 / -1; }
.calc__result { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 22px; margin: 22px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.calc__result div { margin: 0; }
.calc__result dt { font-size: 0.85rem; color: var(--muted); }
.calc__result dd { margin: 4px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; color: var(--navy); }
.calc__big { grid-column: 1 / -1; }
.calc__big dd { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.01em; }
[data-calc][hidden], [data-calc-panel][hidden] { display: none; }

/* ─── Header: collapse to the menu button whenever the links don't fit ───
   Longer French and Kinyarwanda labels need more room than English. site.js measures the header and
   adds .is-compact on wide screens where the nav would overflow; the rules mirror the mobile panel. */
.nav a:not(.btn), .nav .btn { white-space: nowrap; }
.site-header.is-compact .nav-toggle { display: inline-flex; }
.site-header.is-compact .nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: -2;
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 28px;
  padding: 12px max(var(--gutter), calc((100vw - var(--max)) / 2)) calc(28px + env(safe-area-inset-bottom));
  background: var(--navy-deep); overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path 0.55s var(--ease-io), visibility 0s linear 0.55s;
}
.site-header.is-compact .nav.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path 0.55s var(--ease-io), visibility 0s; }
.site-header.is-compact .nav__links { display: flex; flex-direction: column; }
.site-header.is-compact .nav a:not(.btn) {
  padding: 14px 0; border-bottom: 1px solid var(--line-light); color: var(--paper);
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.01em;
}
.site-header.is-compact .nav a:not(.btn)::after { display: none; }
.site-header.is-compact .nav a[aria-current='page']:not(.btn) { color: #8fc2f5; }
.site-header.is-compact .nav > .btn { margin: 0; min-height: 54px; font-size: 1.05rem; align-self: flex-start; }
.site-header.is-compact .nav__contact { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.site-header.is-compact .nav__contact a:not(.btn) { font-family: var(--font-body); font-size: 1rem; border: 0; padding: 4px 0; color: rgba(245, 246, 244, 0.8); }
.site-header.is-compact .lang-switch--nav { margin: 0; gap: 8px; }
.site-header.is-compact .nav .lang-switch a:not(.btn) { min-width: 48px; min-height: 44px; font-size: 0.875rem; border: 1px solid var(--line-light); padding: 0 6px; font-family: var(--font-head); }
.site-header.is-compact.is-menu::before { opacity: 1 !important; }
@media (prefers-reduced-motion: reduce) { .site-header.is-compact .nav, .site-header.is-compact .nav.is-open { transition: none; } }
@media (max-width: 1020px) { .nav a:not(.btn) { white-space: normal; } }
.site-header.is-compact .nav a:not(.btn) { white-space: normal; }
