/* ==========================================================================
   Lionsfield Limited: property investment & development
   Light, editorial layout with heraldic gold accents taken from the crest.
   ========================================================================== */

:root {
  /* Brand palette (from the crest) */
  --ink: #15120f;            /* near-black, body text & dark bands */
  --ink-soft: #2a2520;
  --paper: #f7f3ec;          /* warm ivory page background */
  --paper-raised: #fffdf9;   /* cards, form fields */
  --stone: #ece5d9;          /* quiet panels */
  --line: #e2d9ca;           /* hairlines */
  --muted: #5e574e;          /* secondary text, 6.6:1 on paper */
  --gold: #b38b45;           /* decorative gold: rules, icons, diamonds */
  --gold-text: #7f5f24;      /* gold used for text on light, 5.6:1 on paper */
  --gold-light: #d8bc7e;     /* gold on dark backgrounds */
  --gold-grad: linear-gradient(100deg, #8a6a2f 0%, #d8bc7e 45%, #a8803c 75%, #e3cb92 100%);       /* on dark */
  --gold-grad-deep: linear-gradient(100deg, #6f5120 0%, #a98339 40%, #7f5f24 70%, #a07a35 100%);   /* on light: keeps 3:1+ for large text */
  --on-dark: #f3ede2;
  --on-dark-muted: #b9b0a2;

  /* Type */
  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing (spacious, 8pt rhythm) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --radius: 4px;
  --radius-lg: 10px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --dur-fast: 160ms;
  --dur: 280ms;

  --z-header: 40;
  --z-menu: 50;
  --z-dialog: 100;
}

/* ---------- Base ---------- */
*, *::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;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
::selection { background: #e9d9b3; color: var(--ink); }

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Heraldic details ---------- */
/* Eyebrow: small caps flanked by diamonds, echoing "◆ PROPERTY INVESTMENT AND DEVELOPMENT ◆" */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text);
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex: none;
}
.on-dark .eyebrow { color: var(--gold-light); }
.on-dark .eyebrow::before, .on-dark .eyebrow::after { background: var(--gold-light); }

/* Double rule like the lines framing the wordmark */
.double-rule { height: 5px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); opacity: .7; }

/* Gold keyword inside a heading: same gradient idea as "potential" in the hero.
   A deeper gradient on light backgrounds so it stays readable. */
.gold {
  background: var(--gold-grad-deep); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.on-dark .gold { background-image: var(--gold-grad); }

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: .01em;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--on-dark);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bg); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.btn:hover { --btn-bg: #000; }
.btn:active { transform: translateY(1px); }
.btn { box-shadow: 0 10px 24px -16px rgba(21, 18, 15, .65); }
.btn svg { width: 18px; height: 18px; flex: none; color: var(--gold-light); transition: transform var(--dur) var(--ease-out); }
.btn:hover { box-shadow: 0 14px 28px -16px rgba(21, 18, 15, .75); }
.btn:hover svg { transform: translateX(3px); }
.btn--gold { background-image: linear-gradient(100deg, #cfae6c, #e6cf98 55%, #c9a35e); border-color: #c9a35e; }
.btn--gold:hover { background-image: linear-gradient(100deg, #d8b977, #f0dcaa 55%, #d2ad69); }
.btn--gold svg, .btn--ghost svg { color: currentColor; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--on-dark); }
.btn--gold { --btn-bg: var(--gold-light); --btn-fg: var(--ink); }
.btn--gold:hover { --btn-bg: #e6cf98; }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 14px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
  color: var(--ink); border-bottom: 1px solid var(--gold); padding-bottom: 2px;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.text-link:hover { color: var(--gold-text); border-color: var(--gold-text); }
.text-link svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(247, 243, 236, .92);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(21, 18, 15, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__crest { width: 62px; height: auto; }
.brand__word { width: 150px; height: auto; }

.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav__list { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--ink-soft);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover::after, .nav__link[aria-current="true"]::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="true"], .nav__link[aria-current="page"] { color: var(--ink); }

.menu-toggle {
  display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: var(--z-menu);
    flex-direction: column; align-items: stretch; gap: var(--s-5);
    padding: var(--s-5) var(--gutter) var(--s-7);
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(21, 18, 15, .35);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { width: 100%; min-height: 52px; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .brand__word { width: 128px; }
  .brand__crest { width: 54px; }
}

/* ---------- Hero: full-bleed background film ---------- */
.hero--video {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: calc(100svh - var(--header-h)); min-height: max(560px, calc(100svh - var(--header-h)));
  background: var(--ink) url("../video/poster.webp") center / cover no-repeat;
  color: var(--on-dark);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
/* scrim: dark at the bottom-left where the text sits, lighter elsewhere so the film shows */
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(12, 10, 8, .88) 0%, rgba(12, 10, 8, .55) 38%, rgba(12, 10, 8, .18) 70%, rgba(12, 10, 8, .32) 100%),
    linear-gradient(to right, rgba(12, 10, 8, .55) 0%, rgba(12, 10, 8, 0) 65%);
}
/* inset gold hairline frame, a quiet nod to the crest's shield border */
.hero--video::after {
  content: ""; position: absolute; inset: clamp(10px, 1.6vw, 20px); z-index: 0;
  border: 1px solid rgba(216, 188, 126, .45); border-radius: 6px; pointer-events: none;
}
.hero__content { position: relative; z-index: 1; display: grid; justify-items: start; gap: var(--s-5); padding-bottom: clamp(28px, 4vw, 44px); }
.hero__title {
  max-width: 13ch; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(42px, 7vw, 96px); line-height: 1.02; letter-spacing: -.005em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.hero__title em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.hero__lede { max-width: 520px; color: rgba(243, 237, 226, .9); font-size: clamp(16px, 1.4vw, 18.5px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
.hero--video .btn--ghost { --btn-fg: var(--on-dark); border-color: rgba(243, 237, 226, .6); }
.hero--video .btn--ghost:hover { --btn-bg: var(--on-dark); --btn-fg: var(--ink); border-color: var(--on-dark); }

.hero__bar {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding-block: 18px clamp(28px, 3.4vw, 40px); border-top: 1px solid rgba(243, 237, 226, .18);
}
.hero__caption { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: rgba(243, 237, 226, .85); }
.hero__caption svg { width: 16px; height: 16px; color: var(--gold-light); }
.hero__toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px;
  border: 1px solid rgba(243, 237, 226, .35); border-radius: 999px; background: rgba(12, 10, 8, .35); color: var(--on-dark);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.hero__toggle:hover { background: rgba(243, 237, 226, .14); border-color: rgba(243, 237, 226, .6); }
.hero__toggle svg { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hero__toggle { width: 44px; padding: 0; justify-content: center; }
}

/* Rotating style keyword in the facts strip */
.rotator { display: inline-block; transition: opacity 300ms ease, transform 300ms var(--ease-out); }
.rotator.is-out { opacity: 0; transform: translateY(8px); }

/* Facts card: floats over the bottom edge of the hero film */
.hero--video { padding-bottom: 72px; }
.facts-wrap { position: relative; z-index: 2; margin-top: -72px; max-width: 1400px; }
.facts {
  position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
  margin: 0; padding: 8px;
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 30px 60px -30px rgba(21, 18, 15, .45), 0 2px 6px rgba(21, 18, 15, .05);
}
/* gold double rule across the top edge, echoing the lines around the wordmark */
.facts::before {
  content: ""; position: absolute; left: 32px; right: 32px; top: -1px; height: 4px;
  border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); opacity: .8;
}
.fact { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: center; padding: 26px 28px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px;
  background: linear-gradient(145deg, #fbf6ea, #efe3c8); box-shadow: inset 0 0 0 1px rgba(179, 139, 69, .55);
  color: var(--gold-text);
}
.fact__icon svg { width: 26px; height: 26px; }
.fact__text { display: flex; flex-direction: column-reverse; min-width: 0; }
.fact__value { margin: 0; font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; line-height: 1.1; }
.fact__label { margin-top: 6px; color: var(--muted); font-size: 14px; }
@media (max-width: 980px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
}
@media (max-width: 760px) {
  .hero--video { padding-bottom: 48px; }
  .facts-wrap { margin-top: -48px; }
  .facts { grid-template-columns: 1fr; padding: 4px 8px; }
  .fact { grid-template-columns: 48px minmax(0, 1fr); padding: 18px 12px; }
  .fact__icon { width: 48px; height: 48px; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, var(--s-10)); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-7);
  align-items: end; margin-bottom: clamp(32px, 4.5vw, 56px);
}
.section-head__title { margin-top: var(--s-4); font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 54px); }
.section-head__text { color: var(--muted); max-width: 420px; justify-self: end; }
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: var(--s-4); }
  .section-head__text { justify-self: start; }
}

/* ---------- Portfolio ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-6);
  padding: 0 0 var(--s-5); margin-bottom: var(--s-6); border-bottom: 1px solid var(--line);
}
.filter-bar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.filter-bar__label { font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tab {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 8px 0 20px;
  border: 1px solid #d8ccb6; border-radius: 999px; background: var(--paper-raised);
  font-size: 15px; font-weight: 600; color: var(--ink-soft); cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, box-shadow var(--dur) ease, transform var(--dur-fast) ease;
}
.tab:hover { border-color: var(--gold); color: var(--ink); box-shadow: 0 8px 18px -14px rgba(21, 18, 15, .5); }
.tab:active { transform: translateY(1px); }
.tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); box-shadow: 0 10px 22px -14px rgba(21, 18, 15, .7); }
.tab__count {
  display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px;
  background: var(--stone); color: var(--ink); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.tab[aria-pressed="true"] .tab__count { background: var(--gold-light); color: var(--ink); }
.filter-bar__note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.filter-bar__note svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; width: 100%; padding: 0; text-align: left;
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  transition: box-shadow var(--dur) ease, border-color var(--dur) ease, transform var(--dur) var(--ease-out);
}
.card:hover { border-color: #d3c5ad; box-shadow: 0 22px 40px -28px rgba(21, 18, 15, .45); transform: translateY(-2px); }
.card:active { transform: translateY(0); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.card:hover .card__media img { transform: scale(1.035); }
.card__badge {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 10px; border-radius: 999px; background: rgba(255, 253, 249, .94);
  font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ink);
}
.card__photos {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; background: rgba(21, 18, 15, .74); color: var(--on-dark);
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.card__photos svg { width: 14px; height: 14px; }
.card__body { display: grid; gap: 6px; padding: 18px 20px 20px; }
.card__title { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: .01em; }
.card__loc { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.card__loc svg { width: 15px; height: 15px; color: var(--gold); flex: none; }
.card__meta {
  display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-soft);
}
.card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.card__meta span::before { content: ""; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.card.is-hidden { display: none; }

/* ---------- Gallery dialog ---------- */
.gallery {
  width: min(1200px, 100vw); max-width: 100vw; height: min(860px, 100dvh); max-height: 100dvh;
  padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--ink); color: var(--on-dark);
  overflow: hidden;
}
.gallery::backdrop { background: rgba(10, 9, 8, .82); }
.gallery[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: dialog-in 260ms var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.gallery__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-5); padding: 20px 20px 14px 28px; }
.gallery__title { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); }
.gallery__sub { margin-top: 4px; color: var(--on-dark-muted); font-size: 14px; }
.gallery__desc { margin-top: 10px; max-width: 720px; color: var(--on-dark); opacity: .88; font-size: 15px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none;
  border: 1px solid rgba(243, 237, 226, .22); border-radius: 999px; background: rgba(21, 18, 15, .55); color: var(--on-dark);
  cursor: pointer; transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.icon-btn:hover { background: rgba(243, 237, 226, .14); border-color: rgba(243, 237, 226, .45); }
.icon-btn svg { width: 22px; height: 22px; }
.gallery__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 76px; }
.gallery__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.gallery__nav--prev { left: 16px; }
.gallery__nav--next { right: 16px; }
.gallery__foot { display: flex; align-items: center; gap: var(--s-4); padding: 14px 20px 20px 28px; }
.gallery__count { font-size: 13px; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; min-width: 52px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px; scrollbar-width: thin; }
.thumb {
  flex: none; width: 76px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden;
  background: #000; opacity: .55; cursor: pointer; transition: opacity var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: .9; }
.thumb[aria-current="true"] { opacity: 1; border-color: var(--gold-light); }
@media (max-width: 700px) {
  .gallery { border-radius: 0; height: 100dvh; }
  .gallery__head { padding: 16px 16px 10px; }
  .gallery__desc { display: none; }
  .gallery__stage { padding: 0 8px; }
  .gallery__nav { top: auto; bottom: 8px; transform: none; }
  .gallery__nav--prev { left: 12px; } .gallery__nav--next { right: 12px; }
  .gallery__foot { padding: 12px 16px 16px; }
}

/* ---------- Before & after ---------- */
.ba { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (max-width: 900px) { .ba { grid-template-columns: 1fr; } }
.compare {
  --pos: 50%;
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--stone);
  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)) 0 0); }
.compare__placeholder {
  /* content sits in the left half so it stays visible while the slider is centred */
  position: absolute; inset: 0; display: grid; place-content: center start; gap: 12px; padding: 32px 32px 32px 7%; text-align: left;
  background:
    repeating-linear-gradient(135deg, rgba(179, 139, 69, .08) 0 12px, transparent 12px 24px),
    #e9e1d3;
  color: var(--ink-soft);
}
.compare__placeholder strong { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.compare__placeholder span { max-width: min(240px, 34vw); font-size: 14px; color: var(--muted); }
.compare__divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--paper-raised);
  box-shadow: 0 0 0 1px rgba(21, 18, 15, .12); pointer-events: none;
}
.compare__handle {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  display: grid; place-items: center; border-radius: 999px; background: var(--paper-raised); color: var(--ink);
  box-shadow: 0 8px 24px rgba(21, 18, 15, .28), inset 0 0 0 1px var(--gold);
}
.compare__handle svg { width: 24px; height: 24px; }
.compare__label {
  position: absolute; top: 16px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; background: rgba(21, 18, 15, .74); color: var(--on-dark); pointer-events: none;
}
.compare__label--before { left: 16px; }
.compare__label--after { right: 16px; }
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
}
.compare:has(.compare__range:focus-visible) .compare__handle { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.ba__copy { display: grid; gap: var(--s-5); }
.ba__copy h2 { font-family: var(--font-display); font-size: clamp(30px, 3.8vw, 46px); margin-top: var(--s-4); }
.ba__copy p { color: var(--muted); }
.ba__list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ba__list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.ba__list svg { width: 20px; height: 20px; margin-top: 3px; color: var(--gold); }
.ba__list strong { display: block; font-weight: 600; }
.ba__list span { color: var(--muted); font-size: 15px; }

/* ---------- About / approach ---------- */
.about { background: var(--paper-raised); border-block: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } }
.about__mosaic { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1 / 1; }
.about__mosaic figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--stone); }
.about__mosaic figure:first-child { grid-row: 1 / span 2; }
.about__mosaic img { width: 100%; height: 100%; object-fit: cover; }
.about__copy { display: grid; gap: var(--s-5); }
.about__copy h2 { margin-top: var(--s-4); font-family: var(--font-display); font-size: clamp(32px, 4.2vw, 52px); }
.about__copy > p { color: var(--muted); font-size: 17px; }
.pillars { display: grid; gap: 0; margin-top: var(--s-3); border-top: 1px solid var(--line); }
.pillar { display: grid; grid-template-columns: 56px 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.pillar__num { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--gold-text); letter-spacing: .12em; padding-top: 4px; }
.pillar h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.pillar p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }

/* ---------- Invest band ---------- */
.invest { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); }
.invest::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 85% 50%, rgba(216, 188, 126, .14), transparent 70%);
  pointer-events: none;
}
.invest__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-7); align-items: center; }
.invest h2 { margin-top: var(--s-4); font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 56px); }
.invest p { margin-top: var(--s-5); max-width: 560px; color: var(--on-dark-muted); font-size: 17px; }
.invest__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.invest .btn--ghost { --btn-fg: var(--on-dark); border-color: rgba(243, 237, 226, .5); }
.invest .btn--ghost:hover { --btn-bg: var(--on-dark); --btn-fg: var(--ink); border-color: var(--on-dark); }
.invest__crest { justify-self: center; width: min(340px, 80%); opacity: .95; }
@media (max-width: 860px) {
  .invest__inner { grid-template-columns: 1fr; }
  .invest__crest { order: -1; width: 190px; justify-self: start; }
}

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
@media (max-width: 980px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 26px 24px;
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; transition: border-color var(--dur) ease, box-shadow var(--dur) ease, transform var(--dur) var(--ease-out);
}
.news-card:hover { border-color: #d3c5ad; box-shadow: 0 22px 40px -30px rgba(21, 18, 15, .45); transform: translateY(-2px); }
.news-card__date { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.news-card__title { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.22; }
.news-card__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14.5px; }
.news-card__list li { display: grid; grid-template-columns: 10px 1fr; gap: 10px; }
.news-card__list li::before { content: ""; width: 5px; height: 5px; margin-top: 9px; background: var(--gold); transform: rotate(45deg); }
.news-card__more { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; }
.news-card__more svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.news-card:hover .news-card__more svg { transform: translateX(4px); }
.news-foot { display: flex; justify-content: center; margin-top: var(--s-7); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__intro h2 { margin-top: var(--s-4); font-family: var(--font-display); font-size: clamp(32px, 4.2vw, 52px); }
.contact__intro > p { margin-top: var(--s-5); color: var(--muted); font-size: 17px; max-width: 460px; }
.contact__details { display: grid; gap: 0; margin-top: var(--s-6); border-top: 1px solid var(--line); }
.contact__row { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__row svg { width: 20px; height: 20px; color: var(--gold); }
.contact__row dt { font-size: 13px; color: var(--muted); }
.contact__row dd { margin: 0; font-weight: 600; }
.contact__row a { text-decoration: none; }
.contact__row a:hover { color: var(--gold-text); }
.placeholder-note { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #f3e6c8; color: #6b4f19; font-size: 11px; font-weight: 700; letter-spacing: .04em; vertical-align: middle; }

.form { display: grid; gap: var(--s-5); padding: clamp(24px, 3.5vw, 40px); background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 14px; font-weight: 600; }
.field .req { color: #9a3412; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--paper); border: 1px solid #cfc3ae; border-radius: var(--radius);
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #a99a80; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-text); background: var(--paper-raised); box-shadow: 0 0 0 3px rgba(179, 139, 69, .22); }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: #b42318; }
.field__error { display: none; align-items: center; gap: 6px; font-size: 13.5px; color: #b42318; }
.field[data-invalid] .field__error { display: flex; }
.field__error svg { width: 15px; height: 15px; flex: none; }
.field__hint { font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }
.chips legend { margin-bottom: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid #cfc3ae; border-radius: 999px;
  font-size: 14px; font-weight: 500; background: var(--paper); transition: all var(--dur-fast) ease; cursor: pointer;
}
.chip input:hover + span { border-color: #a99a80; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-text); outline-offset: 2px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.form__privacy { font-size: 13px; color: var(--muted); max-width: 340px; }
.form__status { display: none; padding: 14px 16px; border-radius: var(--radius); font-size: 14.5px; }
.form__status.is-visible { display: block; }
.form__status--ok { background: #ecf3e6; color: #29501a; border: 1px solid #c4dbb3; }
.form__status--err { background: #fbeceb; color: #8a1c13; border: 1px solid #f0c3bf; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-top: clamp(56px, 8vw, 96px); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, .8fr)); gap: var(--s-7); padding-bottom: var(--s-8); }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
.footer__logo { width: 220px; }
.footer__brand p { margin-top: var(--s-5); max-width: 340px; font-size: 15px; }
.footer__heading { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: var(--s-4); }
.footer__list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.footer__list a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; color: var(--on-dark); font-size: 15px; }
.footer__list a:hover { color: var(--gold-light); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3);
  padding-block: var(--s-5); border-top: 1px solid rgba(243, 237, 226, .14); font-size: 13.5px;
}
.site-footer .double-rule { border-color: var(--gold-light); opacity: .35; margin-bottom: var(--s-8); }

/* ---------- News page ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-top: var(--s-4); font-family: var(--font-display); font-size: clamp(38px, 5.6vw, 72px); }
.page-hero p { margin-top: var(--s-5); max-width: 620px; color: var(--muted); font-size: 17px; }
.archive { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.archive > * { min-width: 0; }
@media (max-width: 900px) { .archive { grid-template-columns: minmax(0, 1fr); } }
.archive__nav { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 900px) { .archive__nav { position: static; } }
.archive__nav h2 { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); margin-bottom: var(--s-3); }
.archive__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.archive__list a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px;
  border-radius: var(--radius); text-decoration: none; font-size: 15px; color: var(--ink-soft);
}
.archive__list a:hover { background: var(--stone); color: var(--ink); }
.archive__list a[aria-current="page"] { background: var(--ink); color: var(--on-dark); }
.archive__list small { font-size: 12.5px; opacity: .7; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .archive__list { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; }
  .archive__list a { border: 1px solid var(--line); }
}
.article__head { padding-bottom: var(--s-6); border-bottom: 1px solid var(--line); }
.article__head h2 { margin-top: var(--s-3); font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 42px); }
.article__head p { margin-top: var(--s-4); color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-5); }
.toc a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; font-weight: 500; text-decoration: none; background: var(--paper-raised); }
.toc a:hover { border-color: var(--gold); color: var(--gold-text); }
.article__section { padding-top: var(--s-7); }
.article__section > h3 { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); }
.article__section > h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.story { padding-block: var(--s-5); border-bottom: 1px solid var(--line); max-width: 760px; }
.story h4 { font-family: var(--font-body); font-size: 19px; font-weight: 700; line-height: 1.35; }
.story p { margin-top: 10px; color: var(--ink-soft); }
.story__src { margin-top: 10px; font-size: 13px; color: var(--muted); }
.article__pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-8); }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
/* Uses an animation (not a transition) so it never overrides a component's own hover transitions. */
.js .reveal { opacity: 0; }
.js .reveal.is-in { opacity: 1; animation: reveal-in 640ms var(--ease-out) backwards; animation-delay: var(--reveal-delay, 0ms); }
@keyframes reveal-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
