/* ==========================================================================
   Jomera Interiors — Design system & styles
   Colours follow the Jomera Brand Palette System (8-colour, v3):
   neutrals ~60% · navy ~25% · amber ~8% (dark text only) · maroon + golden-brown ~7%
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand palette (base values + the ramp steps the site uses) */
  --navy: #003153;          /* primary: structure, dark panels, body text */
  --navy-700: #002844;
  --navy-900: #001625;
  --navy-400: #385e79;
  --amber: #f77f00;         /* single bright accent: CTAs & highlights; carries ink/navy text, never white */
  --maroon: #6f2434;        /* warm depth: eyebrows, labels */
  --golden: #b0782d;        /* warm metallic: decorative detail */
  --golden-700: #906225;    /* golden-brown dark enough for text & icons on light grounds (4.8:1) */
  --golden-800: #724e1d;
  --beige: #e9dcc3;
  --beige-200: #f8f4ec;
  --beige-300: #f3ecde;
  --beige-700: #bfb4a0;
  --grey-700: #4a4c51;      /* readable secondary text (mid grey #787D87 is UI-only) */
  --ink-black: #1a1b1e;

  /* Semantic roles */
  --paper: var(--beige-200);      /* page ground */
  --paper-2: var(--beige-300);    /* alternate light sections */
  --paper-3: var(--beige);        /* image placeholders, chips */
  --ink: var(--navy);             /* headings & body text */
  --ink-2: var(--grey-700);       /* secondary text */
  --clay: var(--golden-700);      /* emphasis text & icons on light */
  --clay-600: var(--golden-800);
  --clay-300: var(--amber);       /* emphasis on dark panels (amber on navy 5.1:1) */
  --brass: var(--golden);         /* decorative dots & rules */
  --night: var(--navy-700);       /* dark panels */
  --night-2: var(--navy);         /* cards on dark panels */
  --on-night: #fcfaf6;            /* text on navy */
  --on-night-2: var(--beige-700); /* secondary text on navy */
  --line: rgba(0, 49, 83, 0.14);
  --line-strong: rgba(0, 49, 83, 0.28);
  --line-night: rgba(233, 220, 195, 0.18);
  --brand-terracotta: #a25e26;       /* logo emblem */
  --brand-terracotta-light: #c98652; /* emblem on dark backgrounds */
  --brand-teal: #0c3d4c;             /* logo wordmark */
  --error: #a3261b;
  --success: #3f6b3a;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --fs-2xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  --fs-3xl: clamp(2.25rem, 1.6rem + 3vw, 4.25rem);
  --fs-4xl: clamp(2.75rem, 1.6rem + 5.4vw, 7rem);

  /* Space (8pt rhythm, spacious) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --section: clamp(5rem, 3.5rem + 7vw, 10rem);
  --gutter: clamp(1.25rem, 0.6rem + 3.2vw, 4rem);
  --max: 1360px;

  /* Shape & depth */
  --radius: 4px;
  --radius-lg: 14px;
  --arch: 999px 999px 0 0;
  --shadow-1: 0 1px 2px rgba(0, 32, 54, 0.06), 0 4px 14px rgba(0, 32, 54, 0.06);
  --shadow-2: 0 10px 40px rgba(0, 32, 54, 0.16);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 180ms;
  --t-med: 380ms;
  --t-slow: 800ms;

  /* Layers */
  --z-header: 40;
  --z-menu: 50;
  --z-float: 60;
  --z-transition: 100;
  --z-loader: 110;

  --header-h: 76px;
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
/* Component display rules must never override the hidden attribute (testimonials crossfade instead) */
[hidden]:not(.quote) { display: none !important; }
::selection { background: var(--navy); color: #fff; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-night :focus-visible, .site-menu :focus-visible, .footer :focus-visible { outline-color: var(--clay-300); }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; border-radius: var(--radius);
  transform: translateY(-160%); transition: transform var(--t-fast) var(--ease-out);
}
.skip-link:focus { transform: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Subtle bark-cloth grain over the page */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .22 0 0 0 0 .26 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 350;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 { font-size: var(--fs-4xl); font-weight: 300; letter-spacing: -0.03em; line-height: 0.98; }
h2 { font-size: var(--fs-3xl); font-weight: 300; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-xl); line-height: 1.2; }
em, .accent { font-style: italic; font-weight: 300; color: var(--clay); }
.on-night em, .on-night .accent { color: var(--clay-300); }
p { max-width: 64ch; text-wrap: pretty; }
.lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--ink-2); }
.on-night .lead { color: var(--on-night-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--maroon);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: 0.7; }
/* Editorial section numbers, e.g. "01 — What we do" */
.eyebrow__num { color: var(--golden-700); font-variant-numeric: tabular-nums; }
.on-night .eyebrow__num { color: var(--on-night-2); }
.on-night .eyebrow { color: var(--clay-300); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; z-index: 2; }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.on-night { background: var(--night); color: var(--on-night); }
.on-sand { background: var(--paper-2); }
main { position: relative; z-index: 2; }

.section-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.2fr 1fr; gap: var(--s-6); }
}

/* ---------- Buttons & links ---------- */
/* Refined, quiet buttons: navy on light grounds, ivory on dark; amber appears as the arrow and the hover fill
   (amber always carries dark text, per the brand palette). */
.btn {
  --btn-bg: var(--navy); --btn-fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 15px 30px;
  background: var(--btn-bg); color: var(--btn-fg);
  border-radius: 2px; border: 1px solid var(--btn-bg);
  font-weight: 600; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.2;
  overflow: hidden; isolation: isolate;
  transition: color 450ms var(--ease-out), border-color 450ms var(--ease-out), transform var(--t-fast) var(--ease-out);
  touch-action: manipulation;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--amber); border-radius: inherit;
  transform: scaleX(0); transform-origin: right; transition: transform 550ms var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover, .btn:focus-visible { border-color: var(--amber); color: var(--ink-black); }
.btn:active { transform: scale(0.98); }
.btn svg { width: 17px; height: 17px; flex: none; color: var(--amber); transition: transform 450ms var(--ease-out), color 450ms; }
.btn:hover svg, .btn:focus-visible svg { transform: translateX(4px); color: currentColor; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost svg { color: currentColor; }
.btn--ghost::before { background: var(--navy); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: #fff; border-color: var(--navy); }
.on-night .btn { --btn-bg: var(--on-night); --btn-fg: var(--navy); }
.on-night .btn svg { color: var(--golden-700); }
.on-night .btn:hover, .on-night .btn:focus-visible { color: var(--ink-black); border-color: var(--amber); }
.on-night .btn--ghost { --btn-bg: transparent; --btn-fg: var(--on-night); border-color: rgba(252, 250, 246, 0.4); }
.on-night .btn--ghost svg { color: currentColor; }
.on-night .btn--ghost::before { background: var(--on-night); }
.on-night .btn--ghost:hover, .on-night .btn--ghost:focus-visible { color: var(--navy); border-color: var(--on-night); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.02em;
  padding-block: 10px; position: relative;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 28px; bottom: 6px; height: 1px;
  background: currentColor; transform-origin: right; transition: transform var(--t-med) var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(0); }
.link-arrow svg { width: 18px; height: 18px; transition: transform var(--t-med) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  height: var(--header-h);
  transition: transform var(--t-med) var(--ease-out), background-color var(--t-med), box-shadow var(--t-med), height 500ms var(--ease-out);
}
/* Airy at the top of the page; slims down once you scroll */
@media (min-width: 1024px) { :root { --header-h: 92px; } .site-header.is-scrolled { height: 68px; } }
.site-header.is-scrolled { background: rgba(248, 244, 236, 0.88); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
:is(.header--light, [data-page="home"] .site-header):not(.is-scrolled) { color: var(--on-night); }

/* Brand logo: transparent PNGs in each colour (plain background images work everywhere, including file://) */
.logo { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.logo__mark, .logo__word, .preloader__mark, .preloader__word, .footer__mark {
  display: block; flex: none; background: center / contain no-repeat;
}
.logo__word, .preloader__word { aspect-ratio: 720 / 119; }
.logo__mark { width: 42px; height: 42px; background-image: url("../assets/jomera-mark-sm.png"); transition: transform 1.2s var(--ease-out); }
.logo__word { width: 108px; background-image: url("../assets/jomera-wordmark.png"); }
.logo:hover .logo__mark { transform: rotate(45deg); }
:is(.header--light, [data-page="home"] .site-header):not(.is-scrolled) .logo__mark, .menu-open .logo__mark { background-image: url("../assets/jomera-mark-sm-light.png"); }
:is(.header--light, [data-page="home"] .site-header):not(.is-scrolled) .logo__word, .menu-open .logo__word { background-image: url("../assets/jomera-wordmark-light.png"); }
@media (max-width: 380px) { .logo__mark { width: 36px; height: 36px; } .logo__word { width: 94px; } }

.nav { display: none; }
.nav ul { display: flex; gap: clamp(1.5rem, 3vw, 3rem); list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; display: inline-block; padding: 12px 2px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--t-med) var(--ease-out);
}
[data-page="home"] .site-header:not(.is-scrolled) :focus-visible { outline-color: var(--amber); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
/* Header call to action: a slim outline that follows the header's text colour (light over the hero, navy once scrolled) */
.header-cta { display: none; min-height: 44px; padding: 10px 22px; font-size: 0.7rem; }
.site-header .header-cta { --btn-bg: transparent; --btn-fg: currentColor; border-color: currentColor; }
.site-header .header-cta:hover, .site-header .header-cta:focus-visible { color: var(--ink-black); border-color: var(--amber); }
.header-actions { display: flex; align-items: center; }
.header-cta svg, .site-menu__foot .btn svg { width: 16px; height: 16px; color: inherit; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; min-width: 44px; padding: 0 4px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.menu-toggle__lines { position: relative; width: 26px; height: 10px; }
.menu-toggle__lines::before, .menu-toggle__lines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform var(--t-med) var(--ease-out), top var(--t-med) var(--ease-out);
}
.menu-toggle__lines::before { top: 0; }
.menu-toggle__lines::after { top: 8px; }
.menu-open .menu-toggle__lines::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-toggle__lines::after { top: 4px; transform: rotate(-45deg); }
.menu-open .site-header { color: var(--on-night); background: transparent; box-shadow: none; backdrop-filter: none; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Mobile menu */
.site-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--night); color: var(--on-night);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) max(32px, env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 700ms var(--ease-in-out), visibility 0s 700ms;
  overflow-y: auto;
}
.menu-open .site-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 700ms var(--ease-in-out), visibility 0s; }
.menu-open .site-header { z-index: calc(var(--z-menu) + 1); }
.site-menu ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-menu__link {
  display: flex; align-items: baseline; gap: 16px; padding: 6px 0;
  font-family: var(--font-display); font-size: clamp(2.4rem, 9vw, 3.6rem); font-weight: 300; line-height: 1.1;
}
.site-menu__link small { font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--clay-300); }
.site-menu__link[aria-current="page"] { font-style: italic; color: var(--clay-300); }
.site-menu li { overflow: hidden; }
.site-menu li > a { transform: translateY(105%); transition: transform 700ms var(--ease-out); }
.menu-open .site-menu li > a { transform: none; }
.menu-open .site-menu li:nth-child(2) > a { transition-delay: 60ms; }
.menu-open .site-menu li:nth-child(3) > a { transition-delay: 120ms; }
.menu-open .site-menu li:nth-child(4) > a { transition-delay: 180ms; }
.menu-open .site-menu li:nth-child(5) > a { transition-delay: 240ms; }
.menu-open .site-menu li:nth-child(1) > a { transition-delay: 0ms; }
.site-menu__foot { display: grid; gap: var(--s-3); margin-top: var(--s-5); color: var(--on-night-2); font-size: var(--fs-sm); }
.site-menu__foot a { color: var(--on-night); }
body.menu-open { overflow: hidden; }


/* ---------- Media ---------- */
.media { position: relative; overflow: hidden; background: var(--paper-3); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--arch { border-radius: var(--arch); }
.media--round { border-radius: var(--radius-lg); }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-16x10 { aspect-ratio: 16 / 10; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
/* Fade images in when they arrive, keeping their space reserved */
.js .media img { opacity: 0; transition: opacity 900ms var(--ease-out); }
.js .media img.is-loaded { opacity: 1; }

/* ---------- Reveal states (only when motion is enabled) ---------- */
.has-motion [data-reveal]:not(.is-in) { opacity: 0; }
.has-motion [data-reveal="img"]:not(.is-in) { opacity: 1; clip-path: inset(100% 0 0 0); }
.has-motion [data-hero-title] { visibility: hidden; }
.has-motion [data-hero-media] { clip-path: inset(100% 0 0 0); }
.has-motion [data-hero-fade] { opacity: 0; }
/* Extra room on the right (cancelled by a negative margin) so italic letters like the "d" in "rooted" aren't clipped */
.has-motion .split-word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.14em 0.1em 0.02em; margin: 0 -0.14em -0.1em -0.02em; }
.has-motion .split-word > span { display: inline-block; will-change: transform; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  background: var(--night); color: var(--on-night);
  display: none; place-items: center;
}
.show-loader .preloader { display: grid; }
.preloader__inner { display: grid; justify-items: center; gap: 28px; }
.preloader__mark { width: clamp(96px, 22vw, 132px); height: clamp(96px, 22vw, 132px); background-image: url("../assets/jomera-mark-sm-light.png"); }
.preloader__word { width: clamp(150px, 34vw, 210px); background-image: url("../assets/jomera-wordmark-light.png"); }
.preloader__count { font-size: var(--fs-xs); letter-spacing: 0.2em; color: var(--on-night-2); font-variant-numeric: tabular-nums; }

/* ---------- Page transitions: soft crossfade ----------
   Native cross-document View Transitions (Chrome/Edge 126+, Safari 18.2+): the old page fades out
   while the new one fades in and rises slightly; the header holds still. Other browsers get a
   JS fade (see main.js). Reduced-motion visitors get an instant page change. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out 320ms cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in 620ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both; }
::view-transition-group(site-header) { animation-duration: 450ms; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Fallback fade for browsers without native support */
html.is-entering body { opacity: 0; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; z-index: 2;
  min-height: 100svh; display: grid; align-items: end;
  padding-top: calc(var(--header-h) + var(--s-5)); padding-bottom: var(--s-6);
}
.hero__grid { display: grid; gap: var(--s-5); align-items: end; }
.hero__title { max-width: 14ch; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: var(--s-4); color: var(--ink-2); font-size: var(--fs-sm); }
.hero__meta span { display: inline-flex; align-items: center; white-space: nowrap; }
.hero__meta span + span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); margin-right: 14px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-4); }

/* Full-bleed photo background with a navy scrim for legible text */
.hero--bg { overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--navy-900); }
/* A slow, barely-there drift on the hero photo (off for reduced motion) */
.has-motion .hero__bg { animation: heroDrift 28s ease-in-out 2s infinite alternate; }
@keyframes heroDrift { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.07) translate3d(-1.2%, -0.8%, 0); } }
.hero__bg picture { display: contents; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 22, 37, 0.88) 0%, rgba(0, 22, 37, 0.62) 42%, rgba(0, 22, 37, 0.18) 75%, rgba(0, 22, 37, 0.08) 100%),
    linear-gradient(0deg, rgba(0, 22, 37, 0.7) 0%, rgba(0, 22, 37, 0) 38%),
    linear-gradient(180deg, rgba(0, 22, 37, 0.55) 0%, rgba(0, 22, 37, 0) 22%);
}
.hero--bg .hero__content { max-width: 720px; }
.hero--bg .hero__title { max-width: 13ch; }
.hero--bg .lead { color: var(--on-night); opacity: 0.88; }
.hero--bg .hero__meta { color: var(--on-night-2); }
.hero--bg .scroll-cue { color: var(--on-night-2); }
.hero--bg .scroll-cue i { background: var(--line-night); }
.hero--bg .scroll-cue i::after { background: var(--amber); }
.hero__aside { position: relative; align-self: end; justify-self: end; margin-bottom: 40px; /* clear the WhatsApp button */ }
.hero--bg .btn--ghost { border-color: rgba(252, 250, 246, 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero__badge {
  position: relative; width: 128px; height: 128px;
  display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink);
  box-shadow: var(--shadow-1);
}
.hero__badge svg.ring { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); animation: spin 26s linear infinite; }
.hero__badge svg.ring text { font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; fill: currentColor; }
.hero__badge .arrow { width: 26px; height: 26px; color: var(--clay); }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-cue { display: none; align-items: center; gap: 12px; font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); margin-top: var(--s-5); }
.scroll-cue i { position: relative; width: 1px; height: 46px; background: var(--line-strong); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--clay); animation: drip 2.2s var(--ease-in-out) infinite; }
@keyframes drip { to { top: 100%; } }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1fr auto; gap: var(--s-6); }
  .scroll-cue { display: inline-flex; }
}
@media (max-width: 899px) {
  .hero--bg { padding-bottom: var(--s-5); }
  /* On phones the text covers more of the photo, so darken it evenly */
  .hero__bg::after {
    background:
      linear-gradient(0deg, rgba(0, 22, 37, 0.9) 0%, rgba(0, 22, 37, 0.62) 55%, rgba(0, 22, 37, 0.45) 100%);
  }
  .hero__bg img { object-position: 62% 50%; }
  .hero__aside { display: none; }
}
@media (max-width: 639px) {
  .hero__meta { padding-right: 72px; } /* keep the tags clear of the chat button */
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; z-index: 2; padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 7rem)); padding-bottom: clamp(3rem, 6vw, 5rem); }
.page-hero h1 { font-size: clamp(2.6rem, 1.6rem + 5vw, 6.25rem); max-width: 16ch; margin-top: var(--s-3); }
.page-hero .lead { margin-top: var(--s-4); }
.breadcrumb { display: flex; gap: 10px; font-size: var(--fs-xs); letter-spacing: 0.08em; color: var(--ink-2); }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

/* ---------- Statement (scrub words) ---------- */
.statement { font-family: var(--font-display); font-size: var(--fs-2xl); line-height: 1.3; font-weight: 300; max-width: 30ch; }
.statement .w { transition: opacity 200ms linear; }
.has-motion .statement[data-scrub-words] .w { opacity: 0.18; }

.intro-grid { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 0.6fr 2fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-3); margin-top: var(--s-6); border-top: 1px solid var(--line); padding-top: var(--s-5); }
.stat__num { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__num sup { font-size: 0.45em; color: var(--clay); vertical-align: top; margin-left: 2px; }
.stat__label { margin-top: 10px; font-size: var(--fs-sm); color: var(--ink-2); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Featured work: horizontal on desktop ---------- */
.work { overflow: hidden; }
.work__track { display: grid; gap: var(--s-5); padding-inline: var(--gutter); max-width: var(--max); margin-inline: auto; }
.work-card { display: block; position: relative; }
.work-card .media { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.work-card .media img { transition: transform 1.2s var(--ease-out), opacity 900ms var(--ease-out); }
.work-card:hover .media img { transform: scale(1.05); }
.work-card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; }
.work-card__title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 350; line-height: 1.15; }
.work-card__tag { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.on-night .work-card__tag { color: var(--on-night-2); }
.work-card__num { position: absolute; top: 16px; left: 16px; z-index: 2; color: #fff; font-size: var(--fs-xs); letter-spacing: 0.16em; mix-blend-mode: difference; }

@media (min-width: 640px) and (max-width: 1023px) {
  .work__track { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .work--horizontal .work__pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .work--horizontal .work__track { display: flex; gap: clamp(2rem, 4vw, 5rem); width: max-content; max-width: none; margin-inline: 0; padding-inline: var(--gutter); }
  .work--horizontal .work-card { width: clamp(340px, 30vw, 460px); flex: none; }
  .work--horizontal .work-card:nth-child(even) { margin-top: 12vh; }
  .work--horizontal .work-card--intro { width: clamp(320px, 28vw, 420px); display: flex; flex-direction: column; justify-content: center; gap: var(--s-3); }
}
.work-card--intro { display: grid; gap: var(--s-3); align-content: start; }

/* ---------- Services list with hover image ---------- */
.svc-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.svc-item { border-bottom: 1px solid var(--line); }
.svc-item a {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-3); align-items: center;
  padding: clamp(1.25rem, 2.4vw, 2.25rem) 0; position: relative;
}
.svc-item__num { font-size: var(--fs-xs); letter-spacing: 0.16em; color: var(--ink-2); width: 2.5rem; }
.svc-item__title { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 300; line-height: 1.1; transition: transform var(--t-med) var(--ease-out), color var(--t-med); }
.svc-item__desc { display: block; font-family: var(--font-body); font-size: var(--fs-sm); color: var(--ink-2); margin-top: 8px; max-width: 46ch; line-height: 1.55; }
.svc-item__icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background var(--t-med), color var(--t-med), border-color var(--t-med), transform var(--t-med) var(--ease-out); }
.svc-item__icon svg { width: 18px; height: 18px; }
.svc-item a:hover .svc-item__title { transform: translateX(10px); color: var(--clay); }
.svc-item a:hover .svc-item__icon { background: var(--amber); border-color: var(--amber); color: var(--ink-black); transform: rotate(-45deg); }
.svc-item__thumb { display: none; }
@media (max-width: 767px) {
  .svc-item a { grid-template-columns: 1fr auto; }
  .svc-item__num { grid-column: 1 / -1; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(0.9rem, 1.6vw, 1.25rem); position: relative; z-index: 2; background: var(--paper); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2rem); padding-right: clamp(1.1rem, 2vw, 2rem); }
.marquee__item { font-family: var(--font-display); font-size: clamp(1.125rem, 1rem + 0.45vw, 1.5rem); font-weight: 300; white-space: nowrap; }
.marquee__item:nth-of-type(even) { font-style: italic; color: var(--clay); }
.marquee__dot { width: 8px; height: 8px; flex: none; color: var(--brass); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Concept → Completed compare ---------- */
.compare { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 16 / 10; background: var(--paper-3); user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare__before img { filter: grayscale(1) sepia(0.35) contrast(1.65) brightness(1.18); }
.compare__before::after { content: ""; position: absolute; inset: 0; background: var(--paper); mix-blend-mode: multiply; opacity: 0.5; }
.compare__before.is-sketch img { filter: none; }
.compare__before.is-sketch::after { display: none; }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none;
}
.compare__handle span {
  position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--paper); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-2);
}
.compare__handle svg { width: 22px; height: 22px; }
.compare__label { position: absolute; top: 16px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: rgba(0, 32, 54, 0.78); color: #fff; font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; }
.compare__label--l { left: 16px; }
.compare__label--r { right: 16px; }
.compare input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3;
}
.compare:has(input:focus-visible) .compare__handle span { outline: 2px solid var(--clay); outline-offset: 3px; }
@media (max-width: 640px) { .compare { aspect-ratio: 4 / 5; } }

/* ---------- Process ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.process li { display: grid; grid-template-columns: 4rem 1fr; gap: var(--s-3); padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.process li:last-child { border-bottom: 1px solid var(--line); }
.process__num { font-family: var(--font-display); font-style: italic; font-size: var(--fs-xl); color: var(--clay); line-height: 1.2; }
.process h3 { margin-bottom: 8px; }
.process p { color: var(--ink-2); }
/* Dark-background version */
.on-night .process li { border-color: var(--line-night); }
.on-night .process__num { color: var(--clay-300); }
.on-night .process p { color: var(--on-night-2); }
/* A titled block inside a larger section (e.g. 'How we work' under 'Our philosophy') */
.subsection { margin-top: clamp(5rem, 3.5rem + 6vw, 9rem); }
.subsection--tight { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }

/* Two related blocks side by side on large screens (stacked on phones and tablets).
   The shorter column (.is-sticky) stays in view while the longer one scrolls past. */
@media (min-width: 1024px) {
  .split-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 1rem + 5vw, 7rem); align-items: start; }
  .split-cols > .subsection { margin-top: 0; }
  .split-cols .is-sticky { position: sticky; top: calc(var(--header-h) + 32px); }
  .split-cols .intro-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .split-cols .section-head--split { grid-template-columns: 1fr; gap: var(--s-3); }
  .split-cols .section-head { margin-bottom: var(--s-5); }
  .split-cols .statement { font-size: clamp(1.6rem, 0.9rem + 1.4vw, 2.4rem); }
  .split-cols .stats { grid-template-columns: repeat(2, 1fr); }
  .split-cols .process { grid-template-columns: 1fr; gap: 0; }
  .split-cols .process li { grid-template-columns: 4rem 1fr; padding-block: var(--s-3); }
  .split-cols .process li:last-child { border-bottom: 1px solid var(--line) !important; }
  .split-cols .process p { font-size: var(--fs-base); }
  .split-cols .svc-item__title { font-size: var(--fs-xl); }
  .split-cols .compare { aspect-ratio: 4 / 5; max-height: 62svh; width: 100%; }
}
@media (min-width: 900px) {
  .process { grid-template-columns: repeat(5, 1fr); gap: var(--s-3); }
  .process li { grid-template-columns: 1fr; border-bottom: 0 !important; padding-top: var(--s-4); }
  .process p { font-size: var(--fs-sm); }
}

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 900px) { .quotes { grid-template-columns: 0.8fr 1.4fr; gap: var(--s-7); } }
.quotes__stage { position: relative; display: grid; }
.quote { grid-area: 1 / 1; transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.quote[hidden] { display: block; opacity: 0; transform: translateY(16px); visibility: hidden; pointer-events: none; }
.quote blockquote { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 300; line-height: 1.3; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 4rem; line-height: 0.6; color: var(--clay); margin-bottom: 18px; }
.quote figcaption { margin-top: var(--s-4); display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-sm); }
.quote figcaption strong { font-weight: 600; }
.quote figcaption span { color: var(--ink-2); }
.quotes__controls { display: flex; align-items: center; gap: 12px; margin-top: var(--s-5); }
.icon-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background var(--t-med), color var(--t-med), border-color var(--t-med); }
.icon-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.quotes__count { font-size: var(--fs-sm); font-variant-numeric: tabular-nums; color: var(--ink-2); margin-left: 8px; }
/* Text-only testimonials: centred, no image */
.quotes--text { display: block; max-width: 920px; text-align: center; }
.quotes--text .eyebrow { justify-content: center; }
.quotes--text .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.quotes--text .quote blockquote { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); }
.quotes--text .quote blockquote p { max-width: none; }
.quotes--text .quote blockquote::before { font-size: 5rem; }
.quotes--text .quote figcaption { align-items: center; }
.quotes--text .quotes__controls { justify-content: center; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; }
.cta-band h2 { font-size: var(--fs-4xl); max-width: 14ch; margin-inline: auto; }
.cta-band .lead { margin: var(--s-4) auto 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: var(--s-5); }
.motif { position: absolute; pointer-events: none; color: var(--clay-300); opacity: 0.16; }
.motif--a { width: min(560px, 80vw); left: -12%; top: -30%; }
.motif--b { width: min(420px, 60vw); right: -8%; bottom: -35%; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: var(--on-night); border-top: 1px solid var(--line-night); padding-top: var(--s-7); padding-bottom: calc(88px + env(safe-area-inset-bottom)); position: relative; z-index: 2; }
.footer__grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px) and (max-width: 1099px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
/* Wide screens: logo column takes the spare room; the three link columns size to their content with even gaps, so Explore sits close to Visit */
@media (min-width: 1100px) {
  .footer__grid { grid-template-columns: 1fr auto auto auto; column-gap: clamp(3rem, 5vw, 5rem); }
  .footer .footer-contact__row { overflow-wrap: normal; white-space: nowrap; }
}
@media (max-width: 639px) {
  .footer { padding-top: var(--s-6); }
  .footer__grid { row-gap: var(--s-4); }
  .footer ul { grid-template-columns: 1fr 1fr; column-gap: var(--s-3); } /* shorter footer on phones */
  .footer li a { padding: 10px 0; } /* comfortable tap targets */
}
.footer h3 { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-night-2); margin-bottom: var(--s-2); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.footer li a, .footer address a { display: inline-block; padding: 6px 0; transition: color var(--t-fast); }
.footer li a:hover, .footer address a:hover { color: var(--clay-300); }
.footer address { font-style: normal; color: var(--on-night-2); line-height: 1.8; }
.footer address a { color: var(--on-night); }
/* Contact lines with leading icons (location, phone, email, WhatsApp) */
.footer-contact { display: grid; gap: 6px; }
.footer h3:has(+ .footer-contact) { padding-left: 30px; } /* line the heading up with the text, past the 18px icon + 12px gap */
.footer .footer-contact__row { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; padding: 6px 0; overflow-wrap: anywhere; }
.footer-contact__icon { width: 18px; height: 18px; margin-top: 0.3em; color: var(--amber); }
.footer a.footer-contact__row:hover span { color: var(--clay-300); text-decoration: underline; text-underline-offset: 4px; }
.socials { display: flex; gap: 10px; margin-top: var(--s-3); }
.socials a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-night); display: grid; place-items: center; transition: background var(--t-med), color var(--t-med); }
.socials a:hover { background: var(--on-night); color: var(--night); }
.socials svg { width: 18px; height: 18px; }
/* Footer logo lock-up: emblem with the wordmark below it, both in their light versions for the navy background */
/* Same width as the row of four social icons (4 × 46px + 3 × 10px gaps) so the logo lines up with them */
.footer__logo { display: flex; flex-direction: column; align-items: center; gap: 16px; width: calc(4 * 46px + 3 * 10px); }
.footer__mark { width: 104px; height: 104px; background-image: url("../assets/jomera-mark-sm-light.png"); }
.footer__logo-word { display: block; width: 100%; aspect-ratio: 720 / 119; background: url("../assets/jomera-wordmark-light.png") center / contain no-repeat; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--line-night); font-size: var(--fs-xs); color: var(--on-night-2); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: var(--z-float);
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 18px 0 16px; border-radius: 999px;
  background: #1f7a4d; color: #fff; font-weight: 600; font-size: var(--fs-sm); box-shadow: var(--shadow-2);
  transition: transform var(--t-med) var(--ease-out), opacity var(--t-med);
}
.wa-float svg { width: 24px; height: 24px; }
.wa-float:hover { transform: translateY(-3px); }
.wa-float__label { display: none; }
@media (min-width: 640px) { .wa-float__label { display: inline; } }
@media (max-width: 639px) { .wa-float { width: 56px; padding: 0; justify-content: center; } }
.menu-open .wa-float { opacity: 0; pointer-events: none; }
[data-page="book"] .wa-float { display: none; } /* the booking aside already offers WhatsApp; keep form buttons clear */


/* ---------- Split / feature blocks ---------- */
.feature { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
  .feature--flip > :first-child { order: 2; }
}
.feature__body { display: grid; gap: var(--s-3); }
.feature__body .btn, .feature__body .link-arrow { justify-self: start; margin-top: var(--s-2); }

.checklist { list-style: none; padding: 0; margin: var(--s-2) 0 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.checklist svg { width: 22px; height: 22px; color: var(--clay); margin-top: 2px; }
.on-night .checklist svg { color: var(--clay-300); }

/* ---------- Services page ---------- */
.svc-detail { display: grid; gap: var(--s-4); padding-block: var(--s-6); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .svc-detail { grid-template-columns: 0.4fr 1fr 1fr; gap: var(--s-6); align-items: start; } }
.svc-detail__num { font-family: var(--font-display); font-style: italic; font-size: var(--fs-xl); color: var(--clay); }
.svc-detail h2 { font-size: var(--fs-2xl); margin-bottom: var(--s-3); }
.svc-detail .media { aspect-ratio: 4 / 3; border-radius: var(--radius); }

.tiers { display: grid; gap: var(--s-3); }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tier { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5) var(--s-4); border: 1px solid var(--line-night); border-radius: var(--radius-lg); transition: border-color var(--t-med), transform var(--t-med) var(--ease-out); }
.tier:hover { border-color: var(--clay-300); transform: translateY(-4px); }
.tier--featured { background: var(--night-2); border-color: var(--clay-300); }
.tier__name { font-family: var(--font-display); font-size: 2.5rem; font-weight: 300; line-height: 1.05; }
@media (min-width: 900px) { .tier__name { font-size: clamp(2rem, 3.4vw, 3.25rem); } } /* sized so "Consultation" fits on one line */
.tier__price { font-size: var(--fs-sm); color: var(--on-night-2); }
.tier__price strong { display: block; font-family: var(--font-display); font-weight: 300; font-size: var(--fs-2xl); color: var(--on-night); font-variant-numeric: tabular-nums; }
.tier .checklist { font-size: var(--fs-sm); color: var(--on-night-2); flex: 1; }
.tier .btn { align-self: flex-start; }
.tier--featured { position: relative; }
.tier__price strong { white-space: nowrap; font-size: min(2.25rem, 9vw); line-height: 1.15; margin-bottom: 4px; color: var(--clay-300); }
@media (min-width: 900px) { .tier__price strong { font-size: clamp(1.6rem, 2.75vw, 2.75rem); } }
.tier__price--text strong { white-space: normal; } /* a phrase rather than an amount, so it may wrap */ /* sized so "UGX 5,000,000" stays on one line */
.tier__flag { position: absolute; top: 0; right: var(--s-4); transform: translateY(-50%); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--clay-300); color: var(--night); font-weight: 700; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; gap: var(--s-3); align-items: center;
  padding: var(--s-3) 0; cursor: pointer; font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1.3; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; width: 20px; height: 20px; flex: none; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform var(--t-med) var(--ease-out); }
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] .plus::after { transform: rotate(0); }
.faq__body { padding-bottom: var(--s-4); color: var(--ink-2); }
.faq details[open] .faq__body { animation: faqIn 500ms var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Studio page ---------- */
.values { display: grid; gap: var(--s-4); }
@media (min-width: 768px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .values { grid-template-columns: repeat(4, 1fr); } }
.value { padding-top: var(--s-3); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.value svg { width: 40px; height: 40px; color: var(--clay); }
.value h3 { font-size: var(--fs-lg); font-family: var(--font-display); }
.value p { font-size: var(--fs-sm); color: var(--ink-2); }

.team { display: grid; gap: var(--s-5) var(--s-4); }
@media (min-width: 640px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .team { grid-template-columns: repeat(3, 1fr); } }
.member .media { aspect-ratio: 4 / 5; border-radius: var(--arch); }
.member .media img { filter: saturate(0.9); transition: transform 1.2s var(--ease-out), opacity 900ms var(--ease-out); }
.member:hover .media img { transform: scale(1.04); }
.member h3 { margin-top: var(--s-3); font-size: var(--fs-xl); }
.member p { color: var(--ink-2); font-size: var(--fs-sm); }

.materials { display: grid; gap: var(--s-3); }
@media (min-width: 768px) { .materials { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .materials { grid-template-columns: repeat(4, 1fr); } }
.material { position: relative; padding: var(--s-4); border-radius: var(--radius-lg); background: var(--night-2); min-height: 280px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.material__swatch { width: 56px; height: 56px; flex: none; border-radius: 50%; margin-bottom: auto; }
.material h3 { margin-top: var(--s-4); }
.material h3 { font-size: var(--fs-xl); }
.material p { color: var(--on-night-2); font-size: var(--fs-sm); }
@media (max-width: 767px) {
  /* Phones: swatch beside the heading, no tall empty cards */
  .material { min-height: 0; display: grid; grid-template-columns: 48px 1fr; column-gap: var(--s-3); row-gap: 6px; align-items: center; }
  .material__swatch { width: 48px; height: 48px; margin: 0; }
  .material h3 { margin-top: 0; }
  .material p { grid-column: 1 / -1; }
}

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--s-5); }
.chip {
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: var(--fs-sm); font-weight: 500; transition: background var(--t-med), color var(--t-med), border-color var(--t-med);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip span { opacity: 0.6; margin-left: 6px; font-variant-numeric: tabular-nums; }
.grid-work { display: grid; gap: var(--s-6) var(--s-4); }
@media (min-width: 700px) { .grid-work { grid-template-columns: repeat(2, 1fr); } .grid-work > :nth-child(even) { margin-top: var(--s-7); } }
.grid-work .work-card[hidden] { display: none; }
.grid-work .work-card p { margin-top: 8px; color: var(--ink-2); font-size: var(--fs-sm); }
.grid-work--filtered > :nth-child(even) { margin-top: 0; }
.status { min-height: 1.5em; font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- Project detail ---------- */
.project-hero { position: relative; z-index: 2; padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)); }
.project-hero h1 { font-size: clamp(2.6rem, 1.6rem + 5vw, 6.5rem); max-width: 14ch; margin-top: var(--s-3); }
.project-cover { margin-top: var(--s-5); aspect-ratio: 16 / 9; border-radius: var(--radius); }
@media (max-width: 640px) { .project-cover { aspect-ratio: 4 / 5; } }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); margin: 0; padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts dt { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin-top: 6px; font-family: var(--font-display); font-size: var(--fs-lg); }
.story { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .story { grid-template-columns: 1fr 1.4fr; gap: var(--s-7); } }
.story__body { display: grid; gap: var(--s-3); color: var(--ink-2); }
.story__body p:first-child { font-size: var(--fs-lg); color: var(--ink); }
/* ---------- Gallery page (gallery.html + js/gallery.js) ---------- */
.gallery { columns: 1; column-gap: var(--s-3); }
@media (min-width: 640px) { .gallery { columns: 2; } }
@media (min-width: 1100px) { .gallery { columns: 3; column-gap: var(--s-4); } }
.gallery.is-masonry { columns: auto; display: block; } /* js/gallery.js builds grouped sections with their own columns */
.g-group + .g-group { margin-top: var(--s-6); }
.g-group__title {
  display: flex; align-items: center; gap: 14px; margin-bottom: var(--s-3);
  font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--maroon, var(--ink));
}
.g-group__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.g-group__title span { color: var(--ink-2); font-weight: 500; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.g-cols { display: flex; align-items: flex-start; gap: var(--s-3); }
@media (min-width: 1100px) { .g-cols { gap: var(--s-4); } }
.g-col { flex: 1; min-width: 0; }
.g-item { break-inside: avoid; margin-bottom: var(--s-3); }
@media (min-width: 1100px) { .g-item { margin-bottom: var(--s-4); } }
.g-item[hidden] { display: none; }
.g-item.is-shown { animation: gIn 500ms var(--ease-out) both; }
@keyframes gIn { from { opacity: 0; transform: translateY(14px); } }
.g-item button { display: block; width: 100%; text-align: left; border-radius: var(--radius); }
.g-item .media { border-radius: var(--radius); }
.g-item--wide .media { aspect-ratio: 3 / 2; }
.g-item--tall .media { aspect-ratio: 4 / 5; }
.g-item--land .media { aspect-ratio: 4 / 3; } /* own photos: shown uncropped */
.g-item--port .media { aspect-ratio: 3 / 4; }
.g-item--hd .media { aspect-ratio: 16 / 9; } /* 3D renders */
.g-item--sq .media { aspect-ratio: 1 / 1; }
/* Discourage saving photos: no drag, no text-style selection, no iOS long-press "Save image" menu */
.g-item img, .lightbox img { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.g-item img { transition: transform 1.2s var(--ease-out), opacity 900ms var(--ease-out); }
.g-item button:hover img { transform: scale(1.04); }
.g-item .media::after { /* "expand" hint on hover */
  content: ""; position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(248, 244, 236, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003153' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0; transform: scale(0.85); transition: opacity var(--t-med), transform var(--t-med) var(--ease-out);
}
.g-item button:hover .media::after, .g-item button:focus-visible .media::after { opacity: 1; transform: none; }
.g-item__cap { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px 0; font-size: var(--fs-sm); color: var(--ink); }
.g-item__cap span { color: var(--ink-2); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; padding-top: 2px; white-space: nowrap; }
.gallery-note { margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--ink-2); max-width: 60ch; }
.lightbox__cap { position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%); width: min(90%, 640px); text-align: center; font-size: var(--fs-sm); color: var(--on-night); }
@media (max-width: 639px) { /* phones: arrows below the photo, not on top of it */
  .lightbox .lightbox__nav { top: auto; bottom: 14px; transform: none; width: 46px; height: 46px; }
  .lightbox .lightbox__count { bottom: 28px; }
  .lightbox .lightbox__cap { bottom: 76px; }
  .lightbox img { max-height: calc(100svh - 190px); }
}
.palette-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: var(--s-3); }
.palette-row span { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--ink-2); }
.palette-row i { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.next-project { display: grid; gap: var(--s-3); padding-block: var(--section); text-align: center; justify-items: center; }
.next-project a.next-title { font-family: var(--font-display); font-size: var(--fs-4xl); line-height: 1; font-weight: 300; transition: color var(--t-med); }
.next-project a.next-title:hover { color: var(--clay-300); font-style: italic; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: calc(var(--z-transition) - 1); background: rgba(0, 22, 37, 0.95); display: grid; place-items: center; padding: 64px 16px; border: 0; width: 100%; height: 100%; max-width: none; max-height: none; color: var(--on-night); }
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgba(0, 22, 37, 0.95); }
.lightbox[open] { animation: fadeIn 300ms var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100svh - 140px); width: auto; height: auto; object-fit: contain; border-radius: var(--radius); }
.lightbox__close, .lightbox__nav { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-night); display: grid; place-items: center; color: var(--on-night); background: rgba(0, 40, 68, 0.6); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: var(--fs-sm); color: var(--on-night-2); font-variant-numeric: tabular-nums; }
.lightbox svg { width: 22px; height: 22px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; }
.field label, .field legend, .label { font-size: var(--fs-sm); font-weight: 600; }
.field .req { color: var(--clay); margin-left: 2px; }
.hint { font-size: var(--fs-xs); color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.55);
  font-size: 1rem; transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23003153' stroke-width='1.6' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 49, 83, 0.16); background: #fff; }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--error); }
.error-msg { display: none; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 600; color: var(--error); }
.error-msg svg { width: 16px; height: 16px; flex: none; }
.field.is-invalid .error-msg, fieldset.is-invalid .error-msg { display: flex; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-grid { display: grid; gap: var(--s-3); }
@media (min-width: 700px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }

/* Choice cards */
.choices { display: grid; gap: 12px; }
@media (min-width: 640px) { .choices--2 { grid-template-columns: repeat(2, 1fr); } .choices--3 { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: grid; gap: 6px; height: 100%; min-height: 64px; padding: 18px 20px 18px 56px; position: relative;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.45); cursor: pointer;
  font-weight: 600; font-size: var(--fs-base);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.choice label small { font-weight: 400; font-size: var(--fs-sm); color: var(--ink-2); }
.choice label::before { content: ""; position: absolute; left: 20px; top: 20px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink-2); background: #fff; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.choice input[type="checkbox"] + label::before { border-radius: 5px; }
.choice label:hover { border-color: var(--ink-2); }
.choice label:active { transform: scale(0.99); }
.choice input:checked + label { border-color: var(--navy); background: #fff; box-shadow: 0 0 0 1px var(--navy); }
.choice input:checked + label::before { border-color: var(--navy); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--navy); }
.choice input[type="checkbox"]:checked + label::before { background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: none; }
.choice input:focus-visible + label { outline: 2px solid var(--navy); outline-offset: 3px; }
.choice--img label { padding: 0; overflow: hidden; gap: 0; }
.choice--img label::before { top: 14px; left: 14px; z-index: 2; }
.choice--img .media { aspect-ratio: 4 / 3; }
.choice--img .choice__text { padding: 14px 16px; display: grid; gap: 2px; }

/* Booking flow */
.booking { display: grid; gap: var(--s-5); }
@media (min-width: 1000px) { .booking { grid-template-columns: 0.75fr 1.6fr; gap: var(--s-7); align-items: start; } .booking__aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.booking__aside { display: grid; gap: var(--s-4); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 8px 0; color: var(--ink-2); font-size: var(--fs-sm); }
.steps li span.n { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 600; transition: background var(--t-med), color var(--t-med), border-color var(--t-med); }
.steps li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.steps li[aria-current="step"] span.n { background: var(--amber); border-color: var(--amber); color: var(--ink-black); }
.steps li.is-done span.n { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (max-width: 999px) { .steps { display: none; } }
.progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress__bar { height: 100%; width: 0; background: var(--amber); transition: width 600ms var(--ease-out); }
.progress-label { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; display: block; }
.booking__panel { background: rgba(255, 255, 255, 0.4); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 3rem); }
.step { display: grid; gap: var(--s-4); }
.step[hidden] { display: none; }
.step h2 { font-size: var(--fs-2xl); }
.step__head { display: grid; gap: 10px; }
.step__head p { color: var(--ink-2); }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.step-nav .btn--ghost svg { transform: rotate(180deg); }
.step-nav .btn--ghost:hover svg { transform: rotate(180deg) translateX(4px); }
.saved-note { font-size: var(--fs-xs); color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.error-summary { border: 1px solid var(--error); border-left-width: 4px; background: #fbeeea; padding: var(--s-3); border-radius: var(--radius); }
.error-summary h3 { font-family: var(--font-body); font-size: var(--fs-base); font-weight: 700; color: var(--error); margin-bottom: 8px; }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: var(--error); text-decoration: underline; text-underline-offset: 3px; }
.review { display: grid; gap: 0; border-top: 1px solid var(--line); }
.review div { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .review div { grid-template-columns: 180px 1fr auto; gap: 16px; align-items: baseline; } }
.review dt { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.review dd { margin: 0; }
.review button { font-size: var(--fs-sm); font-weight: 600; color: var(--clay); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; justify-self: start; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin 700ms linear infinite; }
.success { text-align: center; display: grid; justify-items: center; gap: var(--s-3); padding-block: var(--s-5); }
.success svg.tick { width: 84px; height: 84px; color: var(--clay); }
.success svg.tick circle, .success svg.tick path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.2s var(--ease-out) forwards; }
.success svg.tick path { animation-delay: 0.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success p { color: var(--ink-2); }
.success__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Contact page */
.contact-grid { display: grid; gap: var(--s-6); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1.3fr; gap: var(--s-7); } }
.contact-cards { display: grid; gap: var(--s-1); align-content: start; }
.contact-card { display: grid; grid-template-columns: 48px 1fr; gap: var(--s-2); padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.contact-card .ic { width: 48px; height: 48px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; color: var(--clay); }
.contact-card .ic svg { width: 20px; height: 20px; }
.contact-card h2 { font-family: var(--font-body); font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.contact-card p, .contact-card a { font-size: var(--fs-lg); font-family: var(--font-display); }
.contact-card a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; display: inline-block; padding-block: 4px; }
.contact-card a:hover { text-decoration-color: var(--clay); }
.contact-card .link-arrow { display: inline-flex; margin-top: 6px; }
@media (max-width: 639px) { .contact-card p, .contact-card a:not(.link-arrow) { font-size: 1.08rem; } }
.map { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-3); position: relative; }
.map iframe { width: 100%; height: 100%; border: 0; filter: sepia(0.25) saturate(0.85); }
.map__load { position: absolute; inset: 0; display: grid; place-items: center; gap: 12px; text-align: center; padding: var(--s-3); }
.form-status { padding: var(--s-3); border-radius: var(--radius); font-size: var(--fs-sm); }
.form-status--ok { background: #ebf2e8; color: var(--success); border: 1px solid #b9d0b3; }
.form-status--err { background: #fbeeea; color: var(--error); border: 1px solid #e3b8ae; }

/* ---------- 404 ---------- */
.notfound { min-height: 80svh; display: grid; place-items: center; text-align: center; padding-top: var(--header-h); }
.notfound h1 { font-size: clamp(6rem, 25vw, 16rem); line-height: 0.9; }

/* ---------- Smooth scrolling (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
  .hero__badge svg.ring { animation: none; }
  .js .media img { opacity: 1; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-menu, .wa-float, .preloader, body::after { display: none !important; }
  .has-motion [data-reveal] { opacity: 1 !important; clip-path: none !important; }
}
