/* ==========================================================================
   Herstel & Bouw — Design System
   Calm premium language: milky/sand surfaces, graphite ink, muted bronze
   accent (#a7895d), Inter Tight, generous radii. Layout patterns from Arvista.
   ========================================================================== */

:root {
  /* Palette — calm premium: milky bg, graphite ink, muted sand/bronze accent */
  --clr-bg: #f4f2ee;          /* milky / soft sand white canvas */
  --clr-surface: #ffffff;      /* card / container fill */
  --clr-surface-2: #eae7e0;    /* warm light grey tinted section */
  --clr-ink: #1c1b18;          /* primary text — graphite near-black */
  --clr-ink-soft: #565249;     /* secondary text — grey */
  --clr-ink-mute: #8a857b;     /* tertiary text, meta */
  --clr-line: #e2ded5;         /* hairline borders */
  --clr-line-soft: #edeae2;
  --clr-accent: #2b2823;       /* graphite/espresso — primary actions, dark accent */
  --clr-accent-deep: #16140f;  /* darker hover */
  --clr-accent-soft: #ebe6da;  /* warm sand tint background */
  --clr-gold: #a7895d;         /* muted bronze / sand — warm highlight accent */
  --clr-gold-deep: #8a6f46;
  --clr-wa: #25d366;           /* WhatsApp brand green */
  --clr-wa-deep: #1da851;
  --clr-err: #a63a2b;          /* muted brick — form errors */
  --clr-dark: #211f1b;         /* dark sections (warm graphite) */
  --clr-dark-2: #2b2823;
  --clr-night: #14120f;        /* near-black warm */

  /* Type */
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ls-h1: -0.045em;
  --ls-h2: -0.035em;
  --ls-h3: -0.02em;
  --ls-label: 0.16em;

  /* Geometry */
  --container: 80rem;       /* 1280px */
  --container-wide: 88rem;
  --r-sm: 0.75rem;
  --r-md: 1.25rem;
  --r-lg: 1.75rem;
  --r-xl: 2rem;
  --r-full: 999px;

  /* Spacing rhythm */
  --section-pad: clamp(4.5rem, 9vw, 8.5rem);
  --gutter: 90px;   /* side padding — 90px on desktop, reduced on tablet/mobile below */

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 24px 50px -28px rgba(28, 21, 19, 0.28);
  --shadow-soft: 0 18px 40px -24px rgba(28, 21, 19, 0.22);
}

/* ==========================================================================
   Preloader — branded "construction" intro
   The gold house-mark builds up from foundation to roof, a foundation line
   draws out from the centre, then a metallic sheen sweeps across the gold.
   No spinner, no 0–100% bar. All knobs live in the CSS variables below.
   ========================================================================== */
.preloader {
  /* ---- tweakables ---- */
  --pre-bg-1: #2a201d;          /* warm graphite — top-right glow */
  --pre-bg-2: #171210;
  --pre-bg-3: #120d0c;          /* near-black warm — outer */
  --pre-gold: var(--clr-gold);  /* accent for line + sheen */
  --pre-ink: #f3ece7;           /* wordmark colour */
  --pre-logo-size: clamp(118px, 27vw, 210px);
  --pre-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pre-build-dur: 1.15s;       /* build-up speed */
  --pre-sheen-dur: 1.1s;        /* light-sweep speed */
  --pre-sheen-delay: 0.95s;     /* sweep starts after the build */
  --pre-exit-dur: 0.8s;         /* fade-out speed */

  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background:
    radial-gradient(125% 125% at 78% 6%, var(--pre-bg-1) 0%, var(--pre-bg-2) 56%, var(--pre-bg-3) 100%);
  opacity: 1;
  transition: opacity var(--pre-exit-dur) var(--pre-ease),
              visibility var(--pre-exit-dur) var(--pre-ease);
  will-change: opacity;
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader.is-done .pre-inner { transform: translateY(-10px) scale(1.015); }

/* Lock the scroll while the intro is on screen (pure CSS, no FOUC) */
html:has(.preloader:not(.is-done)) { overflow: hidden; }

.pre-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(1.15rem, 2.4vw, 1.7rem); padding: 2rem;
  transition: transform var(--pre-exit-dur) var(--pre-ease);
}

/* ---- logo mark: builds up from the bottom (foundation → roof) ---- */
.pre-mark { position: relative; width: var(--pre-logo-size); aspect-ratio: 1167 / 866; }
.pre-logo {
  width: 100%; height: 100%; object-fit: contain; display: block;
  clip-path: inset(0 0 0 0);
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.45));
  animation: pre-build var(--pre-build-dur) var(--pre-ease) both;
}
@keyframes pre-build {
  0%   { clip-path: inset(100% 0 0 0); opacity: 0.15; }
  35%  { opacity: 1; }
  100% { clip-path: inset(0 0 0 0); opacity: 1; }
}

/* ---- metallic sheen, masked to the logo silhouette ---- */
.pre-sheen {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.6) 50%, transparent 62%);
  background-size: 280% 100%; background-position: 150% 0;
  -webkit-mask: url("../images/logo-mark.png") center / contain no-repeat;
          mask: url("../images/logo-mark.png") center / contain no-repeat;
  animation: pre-sheen var(--pre-sheen-dur) var(--pre-ease) var(--pre-sheen-delay) 1 both;
}
@keyframes pre-sheen {
  0%   { opacity: 0; background-position: 150% 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { opacity: 0; background-position: -150% 0; }
}

/* ---- wordmark: tracking-in reveal ---- */
.pre-word {
  font-size: clamp(0.72rem, 1.5vw, 0.92rem); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.5em;
  padding-left: 0.5em; /* compensate trailing tracking so it stays centred */
  color: var(--pre-ink);
  animation: pre-word 0.9s var(--pre-ease) 0.5s both;
}
@keyframes pre-word {
  from { opacity: 0; letter-spacing: 0.12em; }
  to   { opacity: 1; letter-spacing: 0.5em; }
}

/* ---- indeterminate gold shuttle (not a progress bar) ---- */
.pre-line {
  position: relative; width: clamp(120px, 22vw, 168px); height: 1px;
  margin-top: 0.3rem; border-radius: 2px; overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  animation: pre-fade 0.6s var(--pre-ease) 1s both;
}
.pre-line::after {
  content: ""; position: absolute; top: 0; left: -40%; height: 100%; width: 40%;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--pre-gold), transparent);
  animation: pre-shuttle 1.6s var(--pre-ease) infinite;
}
@keyframes pre-shuttle { 0% { left: -40%; } 50% { left: 100%; } 100% { left: -40%; } }
@keyframes pre-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .pre-logo, .pre-word, .pre-line, .pre-line::after { animation: none; }
  .pre-sheen { display: none; }
  .pre-line::after { left: 0; width: 100%; opacity: 0.5; }
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--clr-bg);
  color: var(--clr-ink);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--clr-accent); outline-offset: 3px; border-radius: 4px; }

/* ----- Layout ----- */
.container { width: 100%; max-width: none; margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: none; }
.section { padding-block: var(--section-pad); }
section[id], [id] { scroll-margin-top: 6.5rem; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--dark { background: var(--clr-dark); color: #f3ece7; }
.section--cream { background: var(--clr-surface-2); }

/* ----- Typography ----- */
h1, h2, h3, h4 { font-weight: 500; line-height: 1.05; letter-spacing: var(--ls-h2); color: inherit; }
.display {
  font-size: clamp(2.15rem, 5.2vw, 4.7rem);
  font-weight: 500;
  letter-spacing: var(--ls-h1);
  line-height: 1.0;
  text-wrap: balance;
  overflow-wrap: normal;
  hyphens: manual;
  -webkit-hyphens: manual;
}
.h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); letter-spacing: var(--ls-h2); line-height: 1.02; text-wrap: balance; }
.h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: var(--ls-h3); line-height: 1.1; }
.h4 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); letter-spacing: var(--ls-h3); font-weight: 500; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--clr-ink-soft); line-height: 1.55; max-width: 46ch; }
.lead--nowrap { max-width: none; white-space: nowrap; font-size: 1rem; line-height: 1.55; }
.muted { color: var(--clr-ink-soft); }
.section--dark .muted { color: #c9bfb8; }
p { max-width: 65ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: var(--ls-label); color: var(--clr-gold);
}
/* Square marker on every section label, site-wide (matches the Services block) */
.eyebrow::before { content: ""; width: 0.5rem; height: 0.5rem; background: currentColor; opacity: 1; border-radius: 1px; }
.eyebrow--center { justify-content: center; }

.section-header { max-width: 56rem; display: flex; flex-direction: column; gap: 1.1rem; }
.section-header--center { margin-inline: auto; text-align: center; align-items: center; }

/* ----- Buttons — Arvista .primary-button: pill + 3.125rem dark arrow circle ----- */
.btn {
  --bg: var(--clr-accent); --fg: #fff; --ico-bg: #fff; --ico-fg: var(--clr-ink);
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: 0.85rem 1.6rem; border-radius: var(--r-full);
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 1rem; letter-spacing: -0.012rem;
  border: 1px solid transparent; cursor: pointer; position: relative; overflow: hidden;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn:has(.btn-ico) { padding: 0.25rem 0.25rem 0.25rem 1.6rem; }
.btn:hover { background: var(--clr-accent-deep); }
.btn:active { transform: scale(0.99); }
.btn .btn-ico {
  display: inline-grid; place-items: center; width: 3.125rem; height: 3.125rem; flex-shrink: 0;
  border-radius: var(--r-full); background: var(--ico-bg); color: var(--ico-fg);
  transition: transform 0.45s var(--ease), background 0.35s var(--ease);
}
.btn:hover .btn-ico { transform: translateX(3px); }
.btn .btn-ico svg { width: 0.95rem; height: 0.95rem; }
.btn .btn-ico svg.btn-chevron { width: auto; height: 1.45rem; }

.btn--ghost { --bg: transparent; --fg: var(--clr-ink); --ico-bg: rgba(0,0,0,0.06); --ico-fg: var(--clr-ink); border-color: var(--clr-line); }
.btn--ghost:hover { background: var(--clr-ink); --fg: #fff; --ico-bg: rgba(255,255,255,0.16); --ico-fg: #fff; border-color: var(--clr-ink); }
.btn--dark { --bg: var(--clr-ink); --fg: #fff; --ico-bg: #fff; --ico-fg: var(--clr-ink); }
.btn--dark:hover { --bg: var(--clr-night); }
.btn--light { --bg: #fff; --fg: var(--clr-ink); --ico-bg: var(--clr-accent); --ico-fg: #fff; }
.btn--light:hover { background: var(--clr-accent); --fg: #fff; }
.btn--lg { font-size: 1.05rem; }
.btn--block { width: 100%; justify-content: space-between; }
.btn--block:not(:has(.btn-ico)) { justify-content: center; }
.btn--block:has(.btn-ico) { padding-right: 0.35rem; }
.btn--sm { font-size: 0.9rem; padding: 0.55rem 1.15rem; gap: 0.7rem; }
.btn--sm:has(.btn-ico) { padding: 0.28rem 0.28rem 0.28rem 1.15rem; gap: 0.85rem; }
.btn--sm .btn-ico { width: 2.2rem; height: 2.2rem; }
.btn--sm .btn-ico svg { width: 0.82rem; height: 0.82rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 500; color: var(--clr-ink);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.link-arrow svg { width: 0.95rem; height: 0.95rem; transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--clr-gold); gap: 0.8rem; }

/* ==========================================================================
   Navbar
   ========================================================================== */
/* Full-width header bar — logo (left) · links (center) · actions (right) */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 200; }
.nav-inner {
  width: 100%; margin: 0;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem;
  padding: 0.55rem var(--gutter); min-height: 5.1rem;
  background: linear-gradient(180deg, rgba(15,12,9,0.6) 0%, rgba(15,12,9,0.28) 100%);
  backdrop-filter: blur(20px) saturate(130%); -webkit-backdrop-filter: blur(20px) saturate(130%);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav-brand { grid-column: 1; justify-self: start; display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }
/* Header logo: the full brand lockup on its cream plaque, on the left */
.navbar .nav-brand img { height: 4.2rem; width: auto; object-fit: contain; border-radius: 0.7rem; }
.nav-brand .brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav-brand .brand-name { font-weight: 600; font-size: 1.18rem; letter-spacing: -0.02em; color: #fff; white-space: nowrap; }
.nav-brand .brand-sub { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(255,255,255,0.6); margin-top: 0.28rem; white-space: nowrap; }

/* Inline anchor menu (desktop) — sits just after the logo */
.nav-links { grid-column: 2; justify-self: start; margin-left: 1.4rem; display: flex; align-items: center; gap: 0.15rem; }
.nav-links a {
  position: relative; padding: 0.5rem 0.85rem; border-radius: var(--r-full);
  font-size: 0.92rem; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  color: rgba(255,255,255,0.78);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-links a.is-active { color: #fff; }
.nav-links a.is-active::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.34rem;
  height: 1.5px; border-radius: 2px; background: var(--clr-gold);
}

.nav-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.5rem; height: 2.9rem; padding: 0 0.5rem 0 1.1rem;
  border-radius: var(--r-full); background: #f4f2ee; color: var(--clr-ink);
  font-weight: 600; font-size: 0.92rem; letter-spacing: -0.01em; white-space: nowrap;
  transition: background 0.3s var(--ease), transform 0.4s var(--ease);
}
.nav-cta:hover { background: #fff; transform: translateY(-1px); }
.nav-cta .btn-ico { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: var(--r-full); background: var(--clr-accent); color: #fff; transition: transform 0.4s var(--ease); }
.nav-cta:hover .btn-ico { transform: translate(2px, -2px); }
.nav-cta .btn-ico svg { width: 0.82rem; height: 0.82rem; }
.lang-switch { display: inline-flex; border: 1px solid rgba(255,255,255,0.2); border-radius: var(--r-full); overflow: hidden; }
.lang-switch button {
  padding: 0.42rem 0.62rem; background: transparent; border: 0; cursor: pointer;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; color: rgba(255,255,255,0.7);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.lang-switch button.is-active { background: #fff; color: var(--clr-ink); }

/* Hamburger — hidden on desktop, shown on tablet/mobile */
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 2.9rem; height: 2.9rem; padding: 0;
  border: 0; border-radius: var(--r-full); background: var(--clr-gold); color: #fff;
  cursor: pointer; transition: background 0.3s var(--ease);
}
.nav-toggle:hover { background: var(--clr-gold-deep); }
.nav-toggle .bars { position: relative; width: 1.05rem; height: 0.7rem; }
.nav-toggle .bars span { position: absolute; left: 0; width: 100%; height: 1.6px; background: #fff; transition: transform 0.4s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle .bars span:nth-child(3) { bottom: 0; }

/* Full-screen overlay menu */
.nav-overlay {
  position: fixed; inset: 0; z-index: 190; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 120% at 80% 0%, #2a201d 0%, #171210 60%, #120d0c 100%);
  transition: opacity 0.5s var(--ease);
  display: grid; grid-template-rows: 1fr auto; padding: clamp(6rem, 10vw, 8rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
}
body.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }
body.nav-open .nav-toggle .bars span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
body.nav-open .nav-toggle .bars span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle .bars span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }
.nav-overlay-inner { width: 100%; max-width: var(--container); margin-inline: auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-self: center; }
.nav-overlay-menu { display: flex; flex-direction: column; gap: 0.2rem; }
.nav-overlay-menu a {
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 500; letter-spacing: -0.03em; color: rgba(255,255,255,0.92);
  padding: 0.35rem 0; width: max-content; line-height: 1.1;
  opacity: 0; transform: translateY(18px); transition: color 0.3s var(--ease), opacity 0.6s var(--ease), transform 0.6s var(--ease), padding-left 0.3s var(--ease);
}
body.nav-open .nav-overlay-menu a { opacity: 1; transform: none; }
.nav-overlay-menu a:hover, .nav-overlay-menu a.is-active { color: var(--clr-gold); padding-left: 0.6rem; }
.nav-overlay-menu a .idx { color: var(--clr-gold); font-size: 0.85rem; vertical-align: super; margin-right: 0.6rem; letter-spacing: 0.05em; font-weight: 600; }
.nav-overlay-side { display: flex; flex-direction: column; gap: 1.5rem; align-self: end; color: rgba(255,255,255,0.7); }
.nav-overlay-side h6 { color: rgba(255,255,255,0.45); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600; margin-bottom: 0.6rem; }
.nav-overlay-side a { color: #fff; font-size: 1.05rem; display: block; padding: 0.15rem 0; }
.nav-overlay-side a:hover { color: var(--clr-gold); }
.nav-overlay-bottom { width: 100%; max-width: var(--container); margin-inline: auto; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem; color: rgba(255,255,255,0.5); font-size: 0.9rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 100dvh; overflow: hidden; color: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg .hero-slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.05); transition: opacity 1.4s var(--ease), transform 8s linear; }
.hero-bg .hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-bg .hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(12,10,7,0.15), rgba(12,10,7,0.15)); } /* uniform +15% darken painted ABOVE the photo (the slide is z-index:auto, so this must be 1 to cover it) */
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 18rem; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,12,9,0.8) 4%, rgba(15,12,9,0)); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 26rem; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(15,12,9,0.94) 28%, rgba(15,12,9,0)); }

.hero-inner { min-height: 100dvh; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding-top: clamp(9rem, 26vh, 16rem); padding-bottom: clamp(2.25rem, 4vw, 3.5rem); }

/* TOP: description + CTA (left)  |  project card + dots (right) */
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2.5rem; }
.hero-top-left { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem; max-width: 34rem; }
.hero-p { position: relative; isolation: isolate; color: rgba(255,255,255,0.98); font-size: 1.05rem; line-height: 1.6; max-width: 34rem; text-shadow: 0 1px 10px rgba(0,0,0,0.35); }
/* soft, heavily-feathered dark wash behind the intro copy — fades to fully transparent + blurred so it has no visible edge */
.hero-p::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -1.7rem -2.6rem -1.9rem -2.8rem;
  background: radial-gradient(120% 135% at 32% 50%, rgba(72,59,51,0.74) 0%, rgba(72,59,51,0.5) 38%, rgba(72,59,51,0.2) 62%, rgba(72,59,51,0) 80%);
  filter: blur(26px);
}
.hero-button-wrap { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.4rem; }
.hero .btn--ghost { --fg: #fff; --ico-bg: rgba(255,255,255,0.14); --ico-fg: #fff; border-color: rgba(255,255,255,0.32); }
.hero .btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); --fg: #fff; }

.hero-top-right { display: flex; flex-direction: column; align-items: flex-end; gap: 1.1rem; width: 100%; max-width: 27rem; flex-shrink: 0; }
.hero-card { position: relative; width: 100%; display: flex; align-items: center; gap: 1.25rem;
  background: rgba(15,12,9,0.42); backdrop-filter: blur(20px) saturate(135%); -webkit-backdrop-filter: blur(20px) saturate(135%);
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--r-lg); padding: 0.85rem; }
.hero-card-media { position: relative; width: 11rem; max-width: 42%; aspect-ratio: 1 / 1; border-radius: var(--r-md); overflow: hidden; flex-shrink: 0; }
.hero-card-media .hero-card-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.hero-card-media .hero-card-slide.is-active { opacity: 1; }
.hero-card-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-text { flex: 1; min-width: 0; padding-right: 2.9rem; }
.hero-card-text .hc-name { font-size: 1.45rem; font-weight: 500; color: #fff; letter-spacing: -0.02em; line-height: 1.12; }
.hero-card-text .hc-sub { font-size: 0.9rem; color: rgba(240,238,239,0.72); margin-top: 0.45rem; }
.icon-btn { width: 3rem; height: 3rem; border-radius: var(--r-full); border: 0; background: var(--clr-gold); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform 0.4s var(--ease), background 0.3s var(--ease); }
.icon-btn:hover { background: var(--clr-gold-deep); transform: translateX(3px); }
.icon-btn svg { width: 1.05rem; height: 1.05rem; }
.hero-card-next { position: absolute; top: 0.85rem; right: 0.85rem; }

.hero-dots { display: flex; gap: 0.45rem; align-self: center; }
.hero-dots button { width: 0.55rem; height: 0.55rem; padding: 0; border: 0; border-radius: var(--r-full); background: rgba(255,255,255,0.35); cursor: pointer; transition: width 0.4s var(--ease), background 0.3s var(--ease); }
.hero-dots button.is-active { width: 1.6rem; background: var(--clr-gold); }

/* BOTTOM: huge heading */
.hero-bottom { display: flex; }
.hero-heading { max-width: 16ch; font-size: clamp(2.7rem, 8vw, 6.6rem); font-weight: 500; line-height: 0.98; letter-spacing: -0.045em; color: #fff; text-wrap: balance; }
.hero-heading .accent { color: var(--clr-gold); }

/* ==========================================================================
   Services — Arvista-style list on a calm light section, hover reveals dark row
   ========================================================================== */
.section--services { background: var(--clr-bg); }
.eyebrow--badge { gap: 0.55rem; }
.eyebrow--badge::before { width: 0.5rem; height: 0.5rem; background: currentColor; opacity: 1; }

.svc-list { margin-top: clamp(2.75rem, 5vw, 4.5rem); border-top: 1px solid var(--clr-line); }
.svc-row {
  position: relative; isolation: isolate; display: grid; align-items: center;
  grid-template-columns: 4.5rem 1fr 3rem; column-gap: 1.5rem;
  padding: clamp(1.5rem, 2.4vw, 2.2rem) clamp(0.9rem, 1.8vw, 1.8rem);
  border-bottom: 1px solid var(--clr-line); color: var(--clr-ink);
}
.svc-overlay {
  position: absolute; inset: 0; z-index: -1; background: var(--clr-accent);
  clip-path: inset(100% 0% 0% 0% round var(--r-md));
  transition: clip-path 0.55s var(--ease);
}
.svc-row:hover .svc-overlay, .svc-row:focus-visible .svc-overlay { clip-path: inset(0% 0% 0% 0% round var(--r-md)); }
.svc-num { font-size: 1.1rem; font-weight: 500; color: var(--clr-ink-mute); font-variant-numeric: tabular-nums; transition: color 0.4s var(--ease); }
.svc-text { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.svc-name { font-size: clamp(1.35rem, 2.5vw, 2rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; transition: color 0.4s var(--ease); }
.svc-desc { font-size: 0.96rem; line-height: 1.5; color: var(--clr-ink-soft); max-width: 34rem; transition: color 0.4s var(--ease); }
.svc-arrow { justify-self: end; width: 2rem; height: 2rem; display: grid; place-items: center; color: var(--clr-ink); transition: transform 0.45s var(--ease), color 0.4s var(--ease); }
.svc-arrow svg { width: 1.55rem; height: 1.55rem; }
.svc-row:hover .svc-num, .svc-row:hover .svc-name, .svc-row:hover .svc-arrow,
.svc-row:focus-visible .svc-num, .svc-row:focus-visible .svc-name, .svc-row:focus-visible .svc-arrow { color: #fff; }
.svc-row:hover .svc-desc, .svc-row:focus-visible .svc-desc { color: rgba(255,255,255,0.72); }
.svc-row:hover .svc-arrow, .svc-row:focus-visible .svc-arrow { transform: translate(4px, -4px); }
.svc-thumb {
  position: absolute; z-index: 2; top: 50%; left: 66%; width: 12.5rem; height: 15.5rem;
  border-radius: var(--r-md); overflow: hidden; pointer-events: none; opacity: 0;
  transform: translate(-50%, -50%) rotate(-9deg) scale(0.82);
  box-shadow: 0 34px 70px -28px rgba(0,0,0,0.55);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
}
.svc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.svc-row:hover .svc-thumb, .svc-row:focus-visible .svc-thumb { opacity: 1; transform: translate(-50%, -50%) rotate(-9deg) scale(1); }

.service-cta {
  margin-top: clamp(2.5rem, 4vw, 3.5rem); display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: space-between;
  background: var(--clr-night); color: #f3ece7; border-radius: var(--r-lg); padding: 1.9rem 2.2rem;
}
.service-cta .price-tag { display: flex; flex-direction: column; gap: 0.3rem; }
.service-cta .price-tag strong { font-size: 1.35rem; font-weight: 600; }
.service-cta .price-tag span { color: #c9bfb8; font-size: 0.97rem; max-width: 52ch; }

/* ==========================================================================
   Projects / Portfolio
   ========================================================================== */
.proj-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; }
.proj-head .section-header { margin-bottom: 0; }
.proj-head-cta { flex-shrink: 0; margin-bottom: 0.35rem; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.1rem, 2vw, 1.6rem); margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.projects-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.project-card {
  display: flex; flex-direction: column; background: var(--clr-surface);
  border: 1px solid var(--clr-line); border-radius: var(--r-lg); overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.project-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.06); }
.project-media .tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  background: rgba(251,249,246,0.92); backdrop-filter: blur(6px);
  padding: 0.4rem 0.85rem; border-radius: var(--r-full); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.01em; color: var(--clr-ink);
}
.project-body { padding: 1.6rem 1.7rem 1.8rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.project-body .meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--clr-ink-mute); }
.project-body .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.project-body h3 { font-size: 1.4rem; font-weight: 500; }
.project-body p { font-size: 0.96rem; color: var(--clr-ink-soft); }
.project-body .link-arrow { margin-top: auto; padding-top: 0.6rem; }
.project-body .project-cta { margin-top: auto; align-self: flex-start; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 2rem; }
.filter-chip {
  padding: 0.6rem 1.15rem; border-radius: var(--r-full); border: 1px solid var(--clr-line);
  background: var(--clr-surface); cursor: pointer; font-size: 0.92rem; color: var(--clr-ink-soft);
  transition: all 0.3s var(--ease);
}
.filter-chip:hover { border-color: var(--clr-ink); color: var(--clr-ink); }
.filter-chip.is-active { background: var(--clr-ink); color: #fff; border-color: var(--clr-ink); }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.form-aside { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-card {
  margin-top: 0.5rem; padding: clamp(1.6rem, 2.4vw, 2.1rem); border-radius: var(--r-lg);
  background: #ECE7DF; color: var(--clr-ink); box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
}
.contact-card .ctitle { font-weight: 600; font-size: 1.12rem; color: var(--clr-ink); }
.contact-card .cmuted { color: var(--clr-ink-soft); font-size: 0.95rem; margin-top: 0.35rem; }
.contact-rows { display: flex; flex-direction: column; margin-top: 1.1rem; }
.contact-row { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 0; color: var(--clr-ink); font-weight: 500;
  border-top: 1px solid rgba(28,27,24,0.1); transition: color 0.25s var(--ease); }
.contact-row:first-child { border-top: 0; }
.contact-row:hover { color: var(--clr-gold-deep); }
.contact-row .ci { width: 2.5rem; height: 2.5rem; border-radius: var(--r-full); background: rgba(28,27,24,0.06);
  display: grid; place-items: center; flex-shrink: 0; color: var(--clr-gold-deep); }
.contact-row .ci svg { width: 1.15rem; height: 1.15rem; }
.btn-wa { margin-top: 1.3rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem;
  padding: 0.95rem 1.4rem; border-radius: var(--r-full); background: var(--clr-wa); color: #fff;
  font-weight: 600; font-size: 1rem; transition: background 0.3s var(--ease), transform 0.3s var(--ease); }
.btn-wa:hover { background: var(--clr-wa-deep); transform: translateY(-2px); }
.btn-wa svg { width: 1.35rem; height: 1.35rem; }

.form-card { background: var(--clr-surface); border: 1px solid var(--clr-line); border-radius: var(--r-xl); padding: clamp(1.5rem, 2.6vw, 2.2rem); box-shadow: var(--shadow-soft); }
.form { display: grid; gap: 0.95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.95rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.82rem; font-weight: 500; color: var(--clr-ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.72rem 0.95rem; border-radius: var(--r-sm);
  border: 1px solid var(--clr-line); background: var(--clr-bg); color: var(--clr-ink);
  font-size: 0.96rem; transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23565249' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 0.78rem;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--clr-accent); background: #fff; }
.field--file input { padding: 0.6rem 0.95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-note { font-size: 0.85rem; color: var(--clr-ink-mute); }
.form-status { font-size: 0.95rem; font-weight: 500; padding: 0.6rem 0; }
.form-status.ok { color: #346538; }
.form-status.err { color: var(--clr-err); }

/* ==========================================================================
   Calculator / Quiz
   ========================================================================== */
.quiz {
  background: var(--clr-surface); color: var(--clr-ink); border: 1px solid var(--clr-line);
  border-radius: var(--r-xl); padding: clamp(1.8rem, 4vw, 3rem); overflow: hidden; box-shadow: var(--shadow-soft);
}
.quiz-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.quiz-progress { display: flex; gap: 0.4rem; align-items: center; }
.quiz-progress .bar { width: 2.2rem; height: 4px; border-radius: 4px; background: var(--clr-line); transition: background 0.4s var(--ease); }
.quiz-progress .bar.done { background: var(--clr-accent); }
.quiz-step { display: none; animation: fade-up 0.5s var(--ease); }
.quiz-step.is-active { display: block; }
.quiz-step .q { font-size: clamp(1.3rem, 2.4vw, 1.85rem); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 1.4rem; color: var(--clr-ink); }
.quiz-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.quiz-opt {
  text-align: left; padding: 1rem 1.2rem; border-radius: var(--r-md); cursor: pointer;
  background: var(--clr-bg); border: 1px solid var(--clr-line); color: var(--clr-ink);
  font-size: 1rem; transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.quiz-opt:hover { border-color: var(--clr-ink); background: var(--clr-surface-2); }
.quiz-opt.is-selected { background: var(--clr-accent); border-color: var(--clr-accent); color: #fff; }
.quiz-fields { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.9rem; }
.quiz-fields .field input { background: var(--clr-bg); border-color: var(--clr-line); color: var(--clr-ink); }
.quiz-fields .field label { color: var(--clr-ink-soft); }
.quiz-fields .field input:focus { background: #fff; border-color: var(--clr-accent); }
.quiz-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.quiz-back { background: transparent; border: 1px solid var(--clr-line); color: var(--clr-ink); border-radius: var(--r-full); padding: 0.85rem 1.4rem; cursor: pointer; transition: background 0.3s var(--ease), border-color 0.3s var(--ease); }
.quiz-back:hover { background: var(--clr-surface-2); border-color: var(--clr-ink); }
.quiz-back[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ==========================================================================
   About / Stats
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.about-media { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4 / 4.4; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; max-width: 17rem;
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem;
  background: rgba(20,17,13,0.5); backdrop-filter: blur(16px) saturate(135%); -webkit-backdrop-filter: blur(16px) saturate(135%);
  border: 1px solid rgba(255,255,255,0.16); border-radius: var(--r-md); color: #fff;
}
.about-badge-num { font-size: 2.5rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--clr-gold); flex-shrink: 0; }
.about-badge-num span { font-size: 1.5rem; }
.about-badge-lbl { font-size: 0.82rem; line-height: 1.35; color: rgba(255,255,255,0.84); }
.about-text { display: flex; flex-direction: column; gap: 1.25rem; }
.about-text p { color: var(--clr-ink-soft); }
.about-highlights { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.4rem; }
.about-hl { display: flex; align-items: center; gap: 0.85rem; font-weight: 500; color: var(--clr-ink); }
.about-hl .ico { flex-shrink: 0; width: 2.4rem; height: 2.4rem; border-radius: var(--r-full); background: var(--clr-accent-soft); color: var(--clr-gold-deep); display: grid; place-items: center; }
.about-hl .ico svg { width: 1.15rem; height: 1.15rem; }
/* Inline 3-up statistics under the About copy */
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.9rem; border-top: 1px solid var(--clr-line); border-bottom: 1px solid var(--clr-line); }
.about-stat { min-width: 0; padding: 1.25rem 1.1rem 1.25rem 0; }
.about-stat + .about-stat { border-left: 1px solid var(--clr-line); padding-left: 1.3rem; }
.about-stat .num { display: block; font-size: clamp(1.85rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--clr-ink); }
.about-stat .num i { color: var(--clr-gold); font-style: normal; }
.about-stat .lbl { display: block; margin-top: 0.45rem; font-size: 0.86rem; line-height: 1.3; color: var(--clr-ink-soft); }
.about-cta { margin-top: 2rem; align-self: flex-start; }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--clr-line); border: 1px solid var(--clr-line); border-radius: var(--r-lg); overflow: hidden; margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.stat { background: var(--clr-surface); padding: 1.9rem 1.8rem; display: flex; flex-direction: column; gap: 0.55rem; transition: background 0.4s var(--ease); }
.stat:hover { background: var(--clr-accent-soft); }
.stat .num { font-size: clamp(2.1rem, 3.5vw, 3.1rem); font-weight: 600; letter-spacing: -0.03em; color: var(--clr-ink); line-height: 1; position: relative; padding-bottom: 0.7rem; }
.stat .num i { color: var(--clr-gold); font-style: normal; }
.stat .num::after { content: ""; position: absolute; left: 0; bottom: 0; width: 1.7rem; height: 2px; border-radius: 2px; background: var(--clr-gold); }
.stat .lbl { color: var(--clr-ink-soft); font-size: 0.95rem; }
.section--dark .stats-strip { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.1); }
.section--dark .stat { background: var(--clr-dark-2); }
.section--dark .stat .num { color: #fff; }
.section--dark .stat .lbl { color: #c9bfb8; }

/* ----- Why-choose — text column drives the height, image matches it ----- */
.why-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem,4vw,3.75rem); align-items: stretch; }
.why-text { display: flex; flex-direction: column; }
.why-text .h2 { margin-top: 1rem; }
.why-text > .muted { margin-top: 0.9rem; }
.why-list { display: grid; grid-auto-rows: 1fr; flex: 1; margin-top: 1.9rem; }
.why-item { display: flex; gap: 1.1rem; align-items: center; padding: 1.25rem 0; border-top: 1px solid var(--clr-line); }
.why-item:last-child { border-bottom: 1px solid var(--clr-line); }
.why-item .check { flex-shrink: 0; width: 2rem; height: 2rem; border-radius: var(--r-full); background: var(--clr-accent-soft); color: var(--clr-gold-deep); display: grid; place-items: center; }
.why-item .check svg { width: 1.05rem; height: 1.05rem; }
.why-item h4 { font-size: 1.1rem; font-weight: 500; }
.why-item p { font-size: 0.93rem; color: var(--clr-ink-soft); margin-top: 0.25rem; }
.why-cta { margin-top: 1.9rem; align-self: flex-start; }
.why-media { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-card); min-height: 28rem; height: 100%; }
.why-media img { width: 100%; height: 100%; object-fit: cover; object-position: 18% 50%; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: clamp(2.5rem,4vw,3.5rem); }
.testi-card { background: var(--clr-surface); border: 1px solid var(--clr-line); border-radius: var(--r-lg); padding: 1.9rem; display: flex; flex-direction: column; gap: 1.1rem; }
.testi-stars { display: flex; gap: 0.2rem; color: var(--clr-gold); }
.testi-stars svg { width: 1.05rem; height: 1.05rem; }
.testi-card blockquote { font-size: 1.04rem; color: var(--clr-ink); line-height: 1.55; }
.testi-foot { display: flex; align-items: center; gap: 0.85rem; margin-top: auto; }
.testi-foot .avatar { width: 2.7rem; height: 2.7rem; border-radius: var(--r-full); background: var(--clr-accent-soft); color: var(--clr-gold-deep); display: grid; place-items: center; font-weight: 600; }
.testi-foot .who strong { display: block; font-weight: 600; font-size: 0.98rem; }
.testi-foot .who span { font-size: 0.85rem; color: var(--clr-ink-mute); }
.testi-card[hidden] { display: none; }

/* Google-reviews button in the header */
.testi-google { gap: 0.65rem; }
.testi-google .g-ico { display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; flex-shrink: 0; }
.testi-google .g-ico svg { width: 1.2rem; height: 1.2rem; display: block; }

/* Carousel: arrows flank the cards, dots sit just below */
.testi-carousel { display: flex; align-items: center; gap: clamp(0.6rem, 1.4vw, 1.1rem); margin-top: clamp(2.25rem, 4vw, 3.25rem); }
.testi-carousel .testi-grid { flex: 1 1 auto; min-width: 0; margin-top: 0; }
.testi-arrow {
  flex-shrink: 0; width: 2.9rem; height: 2.9rem; border-radius: var(--r-full); border: 1px solid var(--clr-line);
  background: var(--clr-surface); color: var(--clr-ink); display: grid; place-items: center; cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.testi-arrow:hover:not([disabled]) { background: var(--clr-ink); color: #fff; border-color: var(--clr-ink); }
.testi-arrow[disabled] { opacity: 0.35; cursor: not-allowed; }
.testi-arrow svg { width: 1.05rem; height: 1.05rem; }
.testi-dots { display: flex; align-items: center; justify-content: center; gap: 0.45rem; margin-top: clamp(1rem, 1.8vw, 1.35rem); }
.testi-dots .tp-dot { width: 0.6rem; height: 0.6rem; padding: 0; border: 0; border-radius: var(--r-full); background: var(--clr-line); cursor: pointer; transition: width 0.4s var(--ease), background 0.3s var(--ease); }
.testi-dots .tp-dot:hover { background: var(--clr-ink-mute); }
.testi-dots .tp-dot.is-active { width: 1.7rem; background: var(--clr-gold); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem,3vw,2.5rem); align-items: start; }
.faq-aside { display: flex; flex-direction: column; gap: 0.9rem; position: sticky; top: 7rem; }
.faq-image { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 1 / 1.08; }
.faq-image img { width: 100%; height: 100%; object-fit: cover; }
.faq-book { width: 100%; }
.btn--bronze { --bg: var(--clr-gold); --fg: #fff; --ico-bg: #fff; --ico-fg: var(--clr-ink); }
.btn--bronze:hover { background: var(--clr-gold-deep); }

.faq-list { display: grid; gap: 0.85rem; }
.faq-item { background: var(--clr-surface); border: 1px solid var(--clr-line); border-radius: var(--r-md); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.faq-item.is-open { border-color: var(--clr-line-soft); box-shadow: var(--shadow-soft); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 1.3rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; font-size: 1.08rem; font-weight: 500; color: var(--clr-ink); letter-spacing: -0.01em; }
.faq-icon { flex-shrink: 0; position: relative; width: 2.2rem; height: 2.2rem; border-radius: var(--r-full); border: 1px solid var(--clr-line); background: var(--clr-surface); transition: background 0.35s var(--ease), border-color 0.35s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--clr-ink); transition: transform 0.4s var(--ease), background 0.35s var(--ease); }
.faq-icon::before { width: 0.85rem; height: 1.6px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 1.6px; height: 0.85rem; transform: translate(-50%, -50%); }
.faq-item.is-open .faq-icon { background: var(--clr-accent); border-color: var(--clr-accent); }
.faq-item.is-open .faq-icon::before, .faq-item.is-open .faq-icon::after { background: #fff; }
.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.5s var(--ease); }
.faq-a p { padding: 0 1.5rem 1.4rem; color: var(--clr-ink-soft); max-width: 60ch; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: clamp(2.8rem, 6vw, 5rem); color: #f7f1ec; }
.cta-band-bg { position: absolute; inset: 0; z-index: 0; }
.cta-band-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20,18,14,0.94) 0%, rgba(20,18,14,0.74) 52%, rgba(167,137,93,0.42) 100%); }
.cta-band-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; justify-content: space-between; }
.cta-band-inner .cta-copy { max-width: 40rem; display: flex; flex-direction: column; gap: 0.9rem; }
.cta-band .h2 { color: #fff; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ==========================================================================
   Gallery CTA — perspective fan of project images
   ========================================================================== */
.gallery-cta-sec { background: var(--clr-bg); text-align: center; overflow: hidden; }
.gallery-cta-btn { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.8rem; }

/* Curved 3D photo wall — faithful recreation of Arvista's perspective carousel.
   7 panels (each holding 2 photos pinned to its far ends), rotated 0..180deg in
   30deg steps, viewed through a 570px perspective → a wide arc with side "wings".
   The whole assembly spins continuously (Arvista's repeat:-1, ~9deg/s, linear). */
.gal-frame {
  position: relative;
  width: 100%;
  height: 20rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  perspective: 570px;
  perspective-origin: 50% 50%;
}
.gal-spin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  animation: gal-spin 40s linear infinite;
}
.gal-frame.is-paused .gal-spin { animation-play-state: paused; }
@keyframes gal-spin {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}
.gal-group {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 87.5rem;          /* 1400px wide track            */
  height: 18.75rem;
  margin-left: -43.75rem;  /* centre the track on the axis */
  margin-top: -9.375rem;
  display: flex;
  justify-content: space-between;  /* photos pinned to the ends (±570px) */
  align-items: center;
  transform-style: preserve-3d;
}
.gal-group.g1 { transform: rotateY(0deg); }
.gal-group.g2 { transform: rotateY(30deg); }
.gal-group.g3 { transform: rotateY(60deg); }
.gal-group.g4 { transform: rotateY(90deg); }
.gal-group.g5 { transform: rotateY(120deg); }
.gal-group.g6 { transform: rotateY(150deg); }
.gal-group.g7 { transform: rotateY(180deg); justify-content: flex-end; } /* single photo — keep it on its original end of the track */
.gal-shot {
  flex: none;
  width: 16.25rem;
  height: 23.12rem;
  transform-style: preserve-3d;
  transform: rotateY(90deg);   /* each photo turned tangent to the ring */
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 34px 60px -30px rgba(20, 15, 13, 0.5);
}
.gal-img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: reduce) {
  .gal-spin { animation: none; }
}

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero { position: relative; color: #fff; overflow: hidden; isolation: isolate;
  padding-top: clamp(8.5rem, 13vw, 11rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,13,12,0.7) 0%, rgba(18,13,12,0.4) 45%, rgba(18,13,12,0.85) 100%); }
.page-hero .crumbs { font-size: 0.88rem; color: rgba(255,255,255,0.65); margin-bottom: 1.4rem; }
.page-hero .crumbs a { color: rgba(255,255,255,0.85); }
.page-hero .crumbs a:hover { color: var(--clr-gold); }
.page-hero .display { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,0.82); }
.page-hero .eyebrow { color: #fff; }
.page-hero .muted { color: rgba(255,255,255,0.7); }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: end; }

/* ==========================================================================
   Single project page
   ========================================================================== */
.proj-hero-media { margin-top: clamp(1.5rem,3vw,2.5rem); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 16/8; }
.proj-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.proj-meta-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--clr-line); border: 1px solid var(--clr-line); border-radius: var(--r-lg); overflow: hidden; }
.proj-meta { background: var(--clr-surface); padding: 1.5rem 1.6rem; }
.proj-meta .k { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--clr-ink-mute); }
.proj-meta .v { font-size: 1.2rem; font-weight: 500; margin-top: 0.35rem; }
.proj-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,4rem); }
.checklist { display: grid; gap: 0.1rem; }
.checklist li { display: flex; gap: 0.8rem; align-items: center; padding: 0.85rem 0; border-bottom: 1px solid var(--clr-line); color: var(--clr-ink); }
.checklist li .check { width: 1.5rem; height: 1.5rem; border-radius: var(--r-full); background: var(--clr-accent-soft); color: var(--clr-gold-deep); display: grid; place-items: center; flex-shrink: 0; }
.checklist li .check svg { width: 0.85rem; height: 0.85rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-top: clamp(2rem,4vw,3rem); }
.gallery-grid figure { border-radius: var(--r-lg); overflow: hidden; position: relative; }
.gallery-grid figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figure figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 2.4rem 1.3rem 1.1rem; font-size: 0.95rem; font-weight: 500; color: #fff; letter-spacing: -0.01em; background: linear-gradient(transparent, rgba(18,13,11,0.4) 45%, rgba(18,13,11,0.88)); text-shadow: 0 1px 8px rgba(0,0,0,0.45); }
/* mosaic: wide on top-left, two halves below it, tall image fills the full height on the right */
.gallery-grid .g-wide { grid-column: 1 / 5; grid-row: 1; aspect-ratio: 16 / 9; }
.gallery-grid .g-tall { grid-column: 5 / 7; grid-row: 1 / 3; }
.gallery-grid .g-half { grid-column: span 2; grid-row: 2; aspect-ratio: 4 / 3; }

/* ==========================================================================
   Single project — case study (Arvista-style)
   ========================================================================== */
/* tighter vertical rhythm on the single-project page */
#single-project .section { padding-block: clamp(2.75rem, 5vw, 5rem); }
.case-hero { padding-top: clamp(6.5rem, 9vh, 8rem); padding-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.case-hero .crumbs { font-size: 0.88rem; color: var(--clr-ink-mute); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.case-hero .crumbs a { color: var(--clr-ink-soft); }
.case-hero .crumbs a:hover { color: var(--clr-gold); }
.case-hero-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 1.5rem clamp(2rem, 4vw, 4rem); align-items: end; }
.case-hero-grid .display { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
.case-hero-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; }
.case-hero-media { position: relative; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.case-hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-xl); }
.cover-loc { position: absolute; left: calc(var(--gutter) + clamp(1rem, 2vw, 1.6rem)); bottom: clamp(1rem, 2vw, 1.6rem);
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.1rem; border-radius: var(--r-full);
  background: rgba(20,15,13,0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.16); color: #fff; font-size: 0.95rem; font-weight: 500; }
.cover-loc svg { color: var(--clr-gold); }
/* meta strip sits tight, directly under the banner */
.case-hero .proj-meta-strip { margin-top: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(3, 1fr); }

.case-rows { display: flex; flex-direction: column; gap: clamp(1.75rem, 3.5vw, 3rem); }
.case-row { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.2rem, 4vw, 4rem); align-items: start; }
.case-row-head { display: flex; flex-direction: column; gap: 0.85rem; }
.case-h { font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.15; letter-spacing: var(--ls-h3); font-weight: 500; }
.case-body { color: var(--clr-ink-soft); font-size: 1.0625rem; line-height: 1.75; max-width: 52ch; }
.case-body--lead { font-size: clamp(1.12rem, 1.6vw, 1.35rem); line-height: 1.6; color: var(--clr-ink); max-width: 58ch; }

.service-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: clamp(1.8rem, 3vw, 2.5rem); }
.service-chips li { padding: 0.6rem 1.15rem; border: 1px solid var(--clr-line); border-radius: var(--r-full); background: var(--clr-surface); font-size: 0.95rem; font-weight: 500; color: var(--clr-ink); }
.section--cream .service-chips li { background: var(--clr-bg); }

.process-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; margin-top: clamp(2.2rem, 4vw, 3.2rem); }
/* landscape frame — matches the plan render used as the approach visual */
.process-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-xl); background: var(--clr-surface-2); }
.process-steps { display: flex; flex-direction: column; }
.process-step { display: flex; gap: 1.3rem; padding: clamp(1.2rem, 2.2vw, 1.7rem) 0; border-top: 1px solid var(--clr-line); }
.process-step:first-child { border-top: 0; padding-top: 0; }
.process-step .ps-num { font-size: 0.95rem; font-weight: 600; color: var(--clr-gold-deep); min-width: 2.2rem; padding-top: 0.15rem; }
.process-step h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: var(--ls-h3); }
.process-step p { color: var(--clr-ink-soft); margin-top: 0.4rem; font-size: 1rem; line-height: 1.6; }

/* ==========================================================================
   Vacancies
   ========================================================================== */
/* tighter vertical rhythm on the careers page */
body[data-page="vacancies"] main .section { padding-block: clamp(3rem, 5.5vw, 5.5rem); }
body[data-page="vacancies"] main .section--tight { padding-block: clamp(2.5rem, 4vw, 3.5rem); }
.vac-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; margin-top: clamp(2.25rem,4vw,3rem); }
.vac-card { background: var(--clr-surface); border: 1px solid var(--clr-line); border-radius: var(--r-lg); padding: clamp(1.7rem,2.4vw,2.1rem); display: flex; flex-direction: column; gap: 1rem; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.vac-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.vac-card .vac-top { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.vac-card h3 { font-size: 1.32rem; font-weight: 500; letter-spacing: var(--ls-h3); }
.vac-card .vac-exp { font-size: 0.82rem; color: var(--clr-gold-deep); font-weight: 500; background: var(--clr-accent-soft); padding: 0.35rem 0.75rem; border-radius: var(--r-full); white-space: nowrap; }
.vac-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: -0.25rem; }
.vac-tag { font-size: 0.8rem; color: var(--clr-ink-soft); background: var(--clr-surface-2); border: 1px solid var(--clr-line); padding: 0.32rem 0.75rem; border-radius: var(--r-full); }
.vac-card p { color: var(--clr-ink-soft); font-size: 0.97rem; line-height: 1.6; }
.vac-list { display: flex; flex-direction: column; gap: 0.55rem; padding-top: 0.2rem; border-top: 1px solid var(--clr-line-soft); }
.vac-list li { position: relative; padding-left: 1.3rem; color: var(--clr-ink-soft); font-size: 0.94rem; line-height: 1.5; }
.vac-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.42rem; height: 0.42rem; border-radius: 1px; background: var(--clr-gold); }
.vac-card .link-arrow { margin-top: auto; padding-top: 0.4rem; }

/* ==========================================================================
   Legal pages (privacy policy, terms & conditions)
   Two columns: a sticky article index on the left, the prose on the right.
   ========================================================================== */
body[data-page="legal"] main .section { padding-block: clamp(3rem, 5.5vw, 5.5rem); }
.legal-wrap { display: grid; grid-template-columns: 17rem minmax(0, 48rem); gap: clamp(2rem, 5vw, 5rem); align-items: start; justify-content: start; }

.legal-index { position: sticky; top: 7rem; display: flex; flex-direction: column; gap: 1.1rem; }
.legal-index-title { font-size: 0.78rem; font-weight: 500; text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--clr-ink-mute); }
.legal-index-links { display: flex; flex-direction: column; gap: 0.15rem; }
.legal-index-links a { display: flex; gap: 0.7rem; padding: 0.42rem 0; color: var(--clr-ink-soft); font-size: 0.97rem; line-height: 1.45; transition: color 0.3s var(--ease); }
.legal-index-links a i { font-style: normal; color: var(--clr-gold-deep); font-variant-numeric: tabular-nums; }
.legal-index-links a:hover { color: var(--clr-ink); }

.legal-doc { min-width: 0; }
.legal-updated { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.95rem; border: 1px solid var(--clr-line); border-radius: var(--r-full); background: var(--clr-surface); color: var(--clr-ink-soft); font-size: 0.88rem; }
.legal-updated::before { content: ""; width: 0.42rem; height: 0.42rem; border-radius: 1px; background: var(--clr-gold); }

.legal-block { padding-top: clamp(1.8rem, 3vw, 2.6rem); margin-top: clamp(1.8rem, 3vw, 2.6rem); border-top: 1px solid var(--clr-line); scroll-margin-top: 7.5rem; }
.legal-block:first-of-type { border-top: 0; }
.legal-block h2 { display: flex; gap: 0.85rem; font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 500; letter-spacing: var(--ls-h3); line-height: 1.2; }
.legal-block h2 .n { color: var(--clr-gold-deep); font-variant-numeric: tabular-nums; }
.legal-block p { color: var(--clr-ink-soft); line-height: 1.75; margin-top: 0.9rem; max-width: 62ch; }
/* emphasised statement — a class, not <strong>, so the EN swap keeps the styling */
.legal-block p.legal-emph { color: var(--clr-ink); font-weight: 500; }

.legal-list { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 1.1rem; }
.legal-list li { position: relative; padding-left: 1.3rem; color: var(--clr-ink-soft); line-height: 1.6; }
.legal-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.42rem; height: 0.42rem; border-radius: 1px; background: var(--clr-gold); }

.legal-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 1.4rem; background: var(--clr-line); border: 1px solid var(--clr-line); border-radius: var(--r-lg); overflow: hidden; }
.legal-fact { background: var(--clr-surface); padding: 1.15rem 1.35rem; }
.legal-fact .k { display: block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--clr-ink-mute); }
.legal-fact .v { display: block; margin-top: 0.3rem; font-size: 1.02rem; font-weight: 500; }
.legal-fact a:hover { color: var(--clr-gold-deep); }

.legal-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: clamp(2.2rem, 4vw, 3rem); padding-top: clamp(1.8rem, 3vw, 2.4rem); border-top: 1px solid var(--clr-line); }

@media (max-width: 62rem) {
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-index { position: static; }
  .legal-index-links { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 1.5rem; }
  .legal-facts { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
/* Light footer — Arvista layout, Herstel & Bouw palette */
.footer { background: var(--clr-surface-2); color: var(--clr-ink); padding-top: clamp(4rem,7vw,7.5rem); padding-bottom: 2rem; }

.footer-top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; padding-bottom: clamp(4rem,7vw,6rem); }

.footer-menu-grid { display: grid; grid-template-columns: repeat(3, max-content); justify-content: start; column-gap: clamp(3rem, 5vw, 5.5rem); row-gap: 1rem; width: 100%; max-width: 64%; }
.footer-menu { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.footer-menu-text { color: var(--clr-ink); font-size: 1.5rem; line-height: 1.3; font-weight: 500; letter-spacing: var(--ls-h3); }
.footer-link-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; }

/* link with slide-up reveal (two stacked copies, like the reference) */
.footer-link { position: relative; display: block; height: 1.4rem; overflow: hidden; color: var(--clr-ink-soft); }
.footer-link-text { display: block; height: 1.4rem; font-size: 1.0625rem; line-height: 1.4rem; transition: transform 0.4s var(--ease), color 0.4s var(--ease); }
.footer-link:hover .footer-link-text { transform: translateY(-1.4rem); }
.footer-link .footer-link-text:last-child { color: var(--clr-gold); }

.footer-right { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-end; }
.footer-right-top { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.say-hello-block { display: flex; align-items: center; gap: 0.85rem; color: var(--clr-ink); }
.say-hello-icon { width: 1.2rem; height: 1.2rem; flex: none; }
.say-hello-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: var(--ls-label); font-weight: 500; }
.footer-email { color: var(--clr-ink); font-size: clamp(1.35rem,2.2vw,1.75rem); line-height: 1.2; font-weight: 600; letter-spacing: var(--ls-h3); transition: color 0.4s var(--ease); }
.footer-email:hover { color: var(--clr-gold); }
.footer-image { width: 100%; max-width: 21.5rem; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }

/* Contact column — nicely formatted contacts & socials */
.footer-contact-list { display: flex; flex-direction: column; gap: 0.85rem; }
.footer-contact-row { display: flex; align-items: center; gap: 0.7rem; color: var(--clr-ink-soft); transition: color 0.3s var(--ease); }
.footer-contact-row:hover { color: var(--clr-gold); }
.footer-contact-row .fc-ico { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; flex: none; border-radius: var(--r-full); background: rgba(28,27,24,0.06); color: var(--clr-ink); transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.footer-contact-row:hover .fc-ico { background: var(--clr-gold); color: #fff; }
.footer-contact-row .fc-ico svg { width: 1.05rem; height: 1.05rem; }
.footer-contact-row .fc-text { font-size: 1.0625rem; }

.footer-text-wrap { display: flex; flex-direction: column; align-items: flex-start; padding-block: clamp(1rem,2vw,1.5rem); border-top: 1px solid rgba(28,27,24,0.12); border-bottom: 1px solid rgba(28,27,24,0.12); overflow: hidden; }
.footer-text-wrap-main { display: flex; align-items: center; gap: 1rem; width: 100%; }
.footer-bold-text { color: var(--clr-ink); font-size: clamp(2rem,8.9vw,8.5rem); line-height: 1; font-weight: 600; letter-spacing: var(--ls-h1); white-space: nowrap; }
.footer-icon { width: clamp(1.6rem,2.6vw,2.9rem); height: auto; flex: none; align-self: flex-start; margin-top: 0.4rem; color: var(--clr-ink); }

.footer-copywrite { display: flex; justify-content: center; align-items: center; padding-top: 1.5rem; }
.footer-credit { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.4rem 0.75rem; color: var(--clr-ink-mute); font-size: 0.95rem; text-align: center; }
.footer-credit a { color: var(--clr-ink-soft); transition: color 0.3s var(--ease); }
.footer-credit a:hover { color: var(--clr-gold); }
.footer-credit-sep { color: var(--clr-line); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) { :root { --gutter: 48px; } }
@media (max-width: 1040px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 1024px) {
  .svc-thumb { left: 70%; width: 11rem; height: 13.5rem; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; gap: 3rem; }
  .footer-menu-grid { max-width: 100%; }
  .footer-right { align-items: flex-start; width: 100%; }
  .footer-image { max-width: 100%; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid .g-wide, .gallery-grid .g-half, .gallery-grid .g-tall { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 920px) {
  .lead--nowrap { white-space: normal; max-width: 46ch; }
}
@media (max-width: 900px) {
  .nav-overlay-inner { grid-template-columns: 1fr; gap: 2rem; }
  .nav-overlay-side { align-self: start; }
  .hero-top { flex-direction: column; gap: 2rem; }
  .hero-top-left, .hero-top-right { max-width: 100%; width: 100%; }
  .hero-top-right { align-items: stretch; }
  .hero-dots { align-self: flex-start; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 1.8rem; }
  .about-grid, .why-grid, .form-split, .faq-wrap, .page-hero-grid, .proj-cols { grid-template-columns: 1fr; }
  .case-hero-grid, .case-row, .process-grid { grid-template-columns: 1fr; }
  .case-hero-grid { gap: 1.6rem; }
  .process-media { order: -1; }
  .process-media img { aspect-ratio: 16 / 10; }
  .why-media, .about-media { order: -1; }
  .faq-aside { position: static; top: auto; max-width: 30rem; }
  .faq-image { aspect-ratio: 16 / 10; }
  .why-media { min-height: 22rem; }
  .proj-head .testi-google { margin-bottom: 0; }
  .gal-frame { height: 16rem; perspective: 400px; }
  .proj-hero-media { aspect-ratio: 16/10; }
}
@media (max-width: 760px) {
  :root { --gutter: 24px; }
  .projects-grid, .projects-grid.cols-3, .testi-grid, .vac-grid { grid-template-columns: 1fr; }
  .svc-thumb { display: none; }
  .svc-row { grid-template-columns: 2.75rem 1fr 2.25rem; column-gap: 1rem; }
  .stats-strip, .proj-meta-strip { grid-template-columns: 1fr 1fr; }
  .form-row, .quiz-options, .quiz-fields { grid-template-columns: 1fr; }
  .gal-frame { height: 12rem; perspective: 300px; }
  .about-stat { padding-right: 0.6rem; }
  .about-stat + .about-stat { padding-left: 0.85rem; }
  .footer-menu-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .service-cta { flex-direction: column; align-items: flex-start; }
  .hero-button-wrap { flex-direction: column; align-items: stretch; }
  .hero-button-wrap .btn { width: 100%; justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .g-wide, .gallery-grid .g-half, .gallery-grid .g-tall { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4/3; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .footer-menu-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .nav-brand .brand-sub { display: none; }
  .nav-brand img { height: 3.1rem; width: 3.1rem; }
  .nav-brand .brand-name { font-size: 1.05rem; }
  .nav-inner { min-height: 4.2rem; }
}
@media (max-width: 480px) {
  .display { font-size: clamp(2rem, 8.5vw, 2.6rem); overflow-wrap: break-word; }
  .hero-button-wrap { flex-direction: column; align-items: stretch; }
  .cta-band .btns { flex-direction: column; align-self: stretch; width: 100%; }
  .nav-actions { gap: 0.4rem; }
  .nav-overlay-menu a { font-size: 1.7rem; }
  .hero-heading { font-size: clamp(2.3rem, 11vw, 3rem); }
  .hero-card-media { width: 7rem; aspect-ratio: 1/1; }
  .hero-card-text .hc-name { font-size: 1.15rem; }
  .hero-card-text { padding-right: 2.6rem; }
}

/* ==========================================================================
   Mobile refinements — phone/tablet only; desktop layout is untouched
   ========================================================================== */
@media (max-width: 900px) {
  /* ----- Hero order: offer heading → intro → button → project card; no dots ---- */
  .hero-inner { justify-content: flex-start; gap: 1.45rem; }
  .hero-top,
  .hero-top-left,
  .hero-top-right,
  .hero-bottom { display: contents; }
  .hero-heading { order: 1; }
  .hero-p { order: 2; }
  .hero-button-wrap { order: 3; }
  .hero-card { order: 4; margin-top: auto; }   /* push the case-promo card to the bottom of the screen */
  .hero-dots { display: none; }

  /* Burger-menu CTA: pill full width with the arrow circle pinned to the right edge.
     (.nav-overlay-side a forces display:block at higher specificity, which kills the
     button's flex layout — restore it here so justify-content can push the arrow right.) */
  .nav-overlay-side .btn { display: flex; width: 100%; justify-content: space-between; }

  /* ----- About: heading → image → text ----- */
  #about .about-grid { display: flex; flex-direction: column; gap: 1.35rem; }
  #about .about-text { display: contents; }
  #about .about-text > .eyebrow { order: 1; }
  #about .about-text > .h2 { order: 2; }
  #about .about-media { order: 3; aspect-ratio: 16 / 12; }
  #about .about-text > p { order: 4; }
  #about .about-highlights { order: 5; }
  #about .about-stats { order: 6; }
  #about .about-cta { order: 7; margin-top: 0.4rem; }

  /* ----- Why us: heading → image → text ----- */
  .why-grid { display: flex; flex-direction: column; gap: 1.35rem; }
  .why-text { display: contents; }
  .why-text > .eyebrow { order: 1; }
  .why-text > .h2 { order: 2; margin-top: 0; }
  .why-media { order: 3; min-height: 0; height: auto; aspect-ratio: 16 / 11; }
  .why-text > .muted { order: 4; margin-top: 0; }
  .why-list { order: 5; margin-top: 0.4rem; }
  .why-cta { order: 6; margin-top: 0.4rem; }
}

@media (max-width: 760px) {
  /* ----- Buttons site-wide: full width with the arrow pinned right ----- */
  .btn:has(.btn-ico) { width: 100%; justify-content: space-between; }
  .btn:not(:has(.btn-ico)) { width: 100%; justify-content: center; }
  .hero-button-wrap .btn { justify-content: space-between; }

  /* ----- Our projects: CTA below the cards, cards stack as you scroll ----- */
  #projects .container { display: flex; flex-direction: column; }
  #projects .proj-head { display: contents; }
  #projects .section-header { order: 1; }
  #projects #portfolio-grid { order: 2; }
  #projects .proj-head-cta { order: 3; width: 100%; margin: 1.7rem 0 0; }

  #portfolio-grid { display: block; margin-top: clamp(1.8rem, 6vw, 2.5rem); }
  #portfolio-grid .project-card {
    position: sticky; margin-bottom: 1.1rem;
    box-shadow: 0 18px 42px -26px rgba(28, 21, 19, 0.5);
  }
  #portfolio-grid .project-card:nth-child(1) { top: 6.5rem; }
  #portfolio-grid .project-card:nth-child(2) { top: 7.4rem; }
  #portfolio-grid .project-card:nth-child(3) { top: 8.3rem; }
  #portfolio-grid .project-card:nth-child(4) { top: 9.2rem; }
  #portfolio-grid .project-card:last-child { margin-bottom: 0; }

  /* ----- Projects page: tighter gap between the banner and the category filters ---- */
  body[data-page="projects"] .section--tight { padding-top: 1.25rem; }

  /* ----- Case page: centre the meta info (Duration / Project type / Year) ----- */
  .case-hero .proj-meta-strip { grid-template-columns: 1fr; }
  .case-hero .proj-meta { text-align: center; }

  /* ----- Careers page: vacancy cards stack over one another on scroll ----- */
  .vac-grid { display: block; }
  .vac-grid .vac-card {
    position: sticky; margin-bottom: 1.1rem;
    box-shadow: 0 18px 42px -26px rgba(28, 21, 19, 0.5);
  }
  .vac-grid .vac-card:nth-child(1) { top: 6.5rem; }
  .vac-grid .vac-card:nth-child(2) { top: 7.1rem; }
  .vac-grid .vac-card:nth-child(3) { top: 7.7rem; }
  .vac-grid .vac-card:nth-child(4) { top: 8.3rem; }
  .vac-grid .vac-card:nth-child(5) { top: 8.9rem; }
  .vac-grid .vac-card:nth-child(6) { top: 9.5rem; }
  .vac-grid .vac-card:nth-child(7) { top: 10.1rem; }
  .vac-grid .vac-card:last-child { margin-bottom: 0; }

  /* ----- Reviews: horizontal swipe slider ----- */
  .testi-arrow { display: none; }
  .testi-carousel { gap: 0; margin-top: clamp(2rem, 5vw, 2.5rem); }
  #testi-grid {
    display: flex; grid-template-columns: none; gap: 1rem; margin-top: 0;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  #testi-grid::-webkit-scrollbar { display: none; }
  #testi-grid .testi-card { flex: 0 0 88%; scroll-snap-align: start; }
  .testi-dots { margin-top: 1.3rem; }

  /* ----- Footer: centred ----- */
  .footer-top { align-items: center; text-align: center; }
  .footer-menu-grid { justify-items: center; justify-content: center; }
  .footer-menu { align-items: center; }
  .footer-link-wrap { align-items: center; }
  .footer-contact-list { align-items: center; }
  .footer-contact-row { justify-content: center; }
  .footer-right { align-items: center; }
  .footer-right-top { align-items: center; }
  .footer-image { margin-inline: auto; }
  .footer-text-wrap { align-items: center; }
  .footer-text-wrap-main { justify-content: center; }
}
