/* ==========================================================================
   CROWN MARK — Design System
   White-dominant, with black used only as accent bands (hero, page-hero,
   closing CTA, footer) — mirroring the reference site's alternating
   white / dark-band layout rather than an all-dark theme.
   ========================================================================== */

:root {
  --black: #000000;
  --near-black: #0a0a0a;

  --white: #fefefe;
  --off-white: #f7f5f1;

  --ink: #111111;
  --ink-dim: rgba(17, 17, 17, 0.64);
  --ink-faint: rgba(17, 17, 17, 0.42);
  --line: rgba(17, 17, 17, 0.1);
  --line-strong: rgba(17, 17, 17, 0.18);

  /* Text/lines used only inside dark bands (hero, page-hero, cta-band, footer, mobile menu) */
  --on-dark: #fefefe;
  --on-dark-dim: rgba(254, 254, 254, 0.7);
  --on-dark-faint: rgba(254, 254, 254, 0.45);
  --on-dark-line: rgba(254, 254, 254, 0.16);
  --on-dark-line-strong: rgba(254, 254, 254, 0.26);

  --gold: #cda85a;
  --gold-soft: rgba(205, 168, 90, 0.14);
  --gold-line: rgba(205, 168, 90, 0.4);

  --font: 'Google Sans Flex', 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 5vw, 80px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-s: 0.4s;
  --dur-m: 0.8s;
  --dur-l: 1.2s;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Smooth scrolling is handled by Lenis (js/main.js) instead of native
   CSS scroll-behavior, so the two don't fight for control of the scroll
   position. Lenis adds html.lenis-smooth; this is a harmless no-op
   fallback for the moment before it initialises or if it fails to load. */
html.lenis-smooth { scroll-behavior: auto; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html, body { max-width: 100%; overflow-x: hidden; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font-family: var(--font); cursor: pointer; }

input, textarea, select { font-family: var(--font); }

::selection { background: var(--gold); color: var(--black); }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.01em; line-height: 1.08; }

/* Mixed-weight emphasis within headings and body copy — bold key words,
   leave the rest at the surrounding weight (no colour change). */
strong, b { font-weight: 700; }
.lede strong, .body-text strong { font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}

.h-xl {
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 1.02;
}

.h-lg {
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.06;
  font-weight: 400;
}

.h-md { font-size: clamp(24px, 2.6vw, 34px); }

.lede {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-dim);
  line-height: 1.7;
  font-weight: 300;
}

.body-text { font-size: 15.5px; color: var(--ink-dim); line-height: 1.8; font-weight: 300; }

.label-sm {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
  transition: border-color var(--dur-s) var(--ease), color var(--dur-s) var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform var(--dur-m) var(--ease);
  z-index: -1;
}

.btn:hover { color: var(--black); border-color: var(--gold); }
.btn:hover::before { transform: translateX(0); }

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.btn-gold::before { background: var(--white); }
.btn-gold:hover { color: var(--black); }

.btn-sm { padding: 11px 22px; font-size: 11px; }

.btn-arrow { transition: transform var(--dur-s) var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Buttons sitting inside a dark band (hero / page-hero / cta-band) */
.hero .btn:not(.btn-gold),
.page-hero .btn:not(.btn-gold),
.cta-band .btn:not(.btn-gold) {
  color: var(--on-dark);
  border-color: var(--on-dark-line-strong);
}

/* ---------- Nav (transparent, overlays the hero/page-hero — positioned
   absolutely so it scrolls away with the page instead of staying pinned) ---------- */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 30px 0;
  background: transparent;
}

.nav.nav-fixed { position: fixed; }

/* The logo is large enough now that a bright patch of hero image behind it
   washes out the white wordmark — this fades the top of the page just enough
   to hold it, without darkening the image overall. */
.nav::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 190%;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.26) 50%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: -1;
}

/* The nav is pinned above the drawer while it's open, so the scrim would
   otherwise tint the top of the white menu panel. */
.nav.nav-fixed::before { display: none; }

/* ...and the centred white logo would sit on the white panel and vanish.
   Hide it while the menu is open; the Close button stays reachable. */
.nav.nav-fixed .nav-logo { opacity: 0; visibility: hidden; }

/* Three columns so the logo stays optically centred on the page
   regardless of how wide the Enquire / Menu controls beside it are. */
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }

.nav-side { display: flex; align-items: center; gap: 14px; min-width: 0; }
.nav-side-right { justify-content: flex-end; }

.nav-logo { position: relative; display: block; justify-self: center; }
/* Stacked lockup (monogram over wordmark) — needs more height than the
   old horizontal placeholder to keep "BUILDING DESIGNERS" legible. */
.nav-logo img { height: 120px; width: auto; display: block; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--on-dark-line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  transition: border-color var(--dur-s) var(--ease), color var(--dur-s) var(--ease), background var(--dur-s) var(--ease);
}

.nav-toggle:hover:not(.is-open) { border-color: var(--gold); background: var(--gold); color: var(--black); }

.nav-toggle.is-open { border-color: var(--gold); background: transparent; color: var(--gold); }
.nav-toggle.is-open:hover { background: var(--gold); color: var(--black); }

/* Mobile overlay menu — white panel, a right-hand drawer on desktop
   (50% width, page still visible behind it, like the reference),
   full-screen on mobile. */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0);
  visibility: hidden;
  pointer-events: none;
  transition: visibility var(--dur-m) var(--ease), background var(--dur-m) var(--ease);
}

.mobile-menu.is-open { visibility: visible; pointer-events: auto; background: rgba(0, 0, 0, 0.45); }

.mobile-menu-panel {
  width: 50%;
  min-width: 420px;
  max-width: 560px;
  height: 100%;
  overflow-y: auto;
  background: rgba(254, 254, 254, 0.98);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px clamp(32px, 5vw, 72px) 50px;
  transform: translateX(100%);
  transition: transform var(--dur-m) var(--ease);
}

.mobile-menu.is-open .mobile-menu-panel { transform: translateX(0); }

.mobile-menu-panel > a:not(.mobile-menu-cta) {
  display: block;
  font-size: clamp(24px, 3vw, 33px);
  font-weight: 400;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.mobile-menu-cta { display: none; font-size: 13px; padding: 16px 32px; }

.mobile-menu-footer {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 17px;
}

.mobile-menu-footer a { color: var(--gold); font-size: 17px; }

@media (max-width: 760px) {
  .mobile-menu-panel {
    width: 100%;
    min-width: 0;
    max-width: none;
    border-left: none;
    padding: 90px var(--gutter) 50px;
  }
  .mobile-menu-panel > a:not(.mobile-menu-cta) { font-size: clamp(25px, 7vw, 34px); padding: 12px 0; }
  .nav-enquire { display: none; }
  .mobile-menu-cta { display: flex; justify-content: center; width: 100%; margin-top: 26px; }
  .nav-toggle { padding: 8px 16px; font-size: 10px; gap: 6px; }
}

/* ---------- Hero (dark band) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--near-black);
  color: var(--on-dark);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0;
  transition: opacity 1.8s ease;
}

.hero-slide.is-active { opacity: 1; }

.hero-media::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(10,8,4,0.68) 0%, rgba(0,0,0,0.52) 45%, rgba(0,0,0,0.48) 100%);
}

.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.2) 30%, rgba(0,0,0,0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(8px, 1.2vw, 20px);
}

.hero h1 {
  font-size: clamp(32px, 5.4vw, 80px);
  line-height: 1.0;
  max-width: 16ch;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--on-dark);
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-actions { margin-top: 40px; display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Placeholder media block (swap-ready image containers) ---------- */
.ph-media {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #f4f2ee 0%, #e9e4d9 70%);
  background-size: cover;
  background-position: center;
}

.ph-media::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(205,168,90,0.12) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(-45deg, rgba(17,17,17,0.05) 0 1px, transparent 1px 34px);
}

.ph-media::after {
  content: attr(data-tag);
  position: absolute;
  left: 20px; bottom: 18px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.4);
}

.ph-media.tone-dark { background: linear-gradient(155deg, #1c1c1c 0%, #0c0c0c 70%); }
.ph-media.tone-dark::before {
  background-image:
    repeating-linear-gradient(45deg, rgba(205,168,90,0.08) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(-45deg, rgba(254,254,254,0.04) 0 1px, transparent 1px 34px);
}
.ph-media.tone-dark::after { color: var(--on-dark-faint); }

.ph-media.has-image::before,
.ph-media.has-image::after { content: none; }

.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-3-2 { aspect-ratio: 3 / 2; }

/* ---------- Service icon badges (no card/background — icon only) ---------- */
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  transition: transform 0.4s var(--ease);
}

.service-icon svg {
  width: 108px;
  height: 108px;
}

.service-icon:hover { transform: scale(1.08); }

@media (max-width: 760px) {
  .service-icon { justify-content: flex-start; padding: 0 0 20px; }
}

/* Gentle looping "breathe" animation on every icon badge, plus a hover
   zoom (applied to the wrapper so it composes with the loop instead of
   fighting it for the same transform). */
@keyframes icon-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.service-icon svg,
.cap-icon svg {
  animation: icon-breathe 3.6s ease-in-out infinite;
  transform-origin: center;
}

/* ---------- Sections ---------- */
section { position: relative; padding: clamp(80px, 10vw, 160px) 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: clamp(48px, 6vw, 84px);
}

.section-head .lede { max-width: 420px; }

.split-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-top: 6px;
}

.split-note .num { font-size: 11px; color: var(--gold); letter-spacing: 0.1em; }
.split-note p { font-size: 13px; color: var(--ink-faint); max-width: 220px; line-height: 1.6; }

/* ---------- Statement / Philosophy (white) ---------- */
.statement {
  padding: clamp(56px, 6vw, 100px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.statement-text {
  font-size: clamp(24px, 3.6vw, 46px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 18ch;
  color: var(--ink);
}

.statement-text-wide { max-width: 26ch; }

.statement-text .text-fade { color: var(--ink-faint); }

.statement-row { display: flex; justify-content: space-between; gap: 60px; flex-wrap: wrap; }

.statement-aside {
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 8px;
}

/* ---------- Approach steps (white) ---------- */
.approach-list { border-top: 1px solid var(--line); }

.approach-item {
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
  display: grid;
  grid-template-columns: 90px 1fr 90px;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  transition: background var(--dur-s) var(--ease);
}

.approach-item:hover { background: rgba(17,17,17,0.025); }

.approach-num { font-size: 13px; color: var(--gold); letter-spacing: 0.08em; }

.approach-main h3 {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 16px;
}

.approach-main p {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.75;
  font-weight: 300;
  max-width: 640px;
  transition: max-height var(--dur-m) var(--ease), opacity var(--dur-m) var(--ease), margin var(--dur-m) var(--ease);
}

.approach-item.is-active .approach-main p { max-height: 120px; opacity: 1; margin-top: 14px; }

.approach-icon {
  justify-self: end;
  width: 30px; height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-dim);
  transition: transform var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease), color var(--dur-s) var(--ease);
  flex-shrink: 0;
}

.approach-item.is-active .approach-icon { transform: rotate(45deg); border-color: var(--gold); color: var(--gold); }

/* ---------- Projects slider (white) ---------- */
.projects-slider-wrap { position: relative; }

.projects-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.projects-slider::-webkit-scrollbar { display: none; }

.project-card {
  flex: 0 0 clamp(280px, 34vw, 420px);
  scroll-snap-align: start;
  display: block;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-m) var(--ease), transform var(--dur-m) var(--ease);
}

.project-card.in-view { opacity: 1; transform: translateY(0); }

.project-card .ph-media {
  border-radius: 2px;
  transition: transform var(--dur-l) var(--ease);
}

.project-card-frame { overflow: hidden; border-radius: 2px; }

.project-card:hover .ph-media { transform: scale(1.045); }

.project-card-body { padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; }

.project-card-cat {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.project-card-title { font-size: 19px; font-weight: 500; margin-bottom: 8px; color: var(--ink); }

.project-card-desc { font-size: 13.5px; color: var(--ink-faint); line-height: 1.6; font-weight: 300; }

.project-card-arrow {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: border-color var(--dur-s) var(--ease), background var(--dur-s) var(--ease), transform var(--dur-s) var(--ease);
}

.project-card:hover .project-card-arrow { border-color: var(--gold); background: var(--gold); transform: rotate(45deg); }
.project-card:hover .project-card-arrow svg { stroke: var(--black); }

.slider-controls { display: flex; gap: 12px; }

.slider-btn {
  width: 48px; height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--dur-s) var(--ease), background var(--dur-s) var(--ease), color var(--dur-s) var(--ease);
}

.slider-btn:hover { border-color: var(--gold); background: var(--gold); color: var(--black); }
.slider-btn:disabled { opacity: 0.3; pointer-events: none; }

.projects-foot { display: flex; justify-content: center; margin-top: 60px; }

/* project meta pill (used on projects.html grid) */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 50px; }

.filter-pill {
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-dim);
  background: transparent;
  transition: all var(--dur-s) var(--ease);
}

.filter-pill:hover { border-color: var(--gold); color: var(--ink); }
.filter-pill.active { background: var(--gold); border-color: var(--gold); color: var(--black); }

.empty-state { padding: 80px 0; text-align: center; color: var(--ink-faint); }

/* ---------- Capabilities (white, with hairline grid) ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }

.cap-grid-5 { grid-template-columns: repeat(5, 1fr); }

.cap-item { background: var(--white); padding: 44px 36px; }

.cap-item-media {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  margin: -44px -36px 28px;
}

/* ---------- Carousel (in-card image sets) ---------- */
.carousel { position: relative; overflow: hidden; background: var(--near-black); }

.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}

.carousel-slide.is-active { opacity: 1; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px; height: 46px;
  border: 1px solid rgba(254, 254, 254, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--on-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease), background var(--dur-s) var(--ease), color var(--dur-s) var(--ease);
}

.carousel:hover .carousel-btn,
.carousel:focus-within .carousel-btn { opacity: 1; }

.carousel-btn:hover { border-color: var(--gold); background: var(--gold); color: var(--black); }
.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

.carousel-dots {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  z-index: 2;
  display: flex; justify-content: center; gap: 8px;
}

.carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(254, 254, 254, 0.4);
  cursor: pointer;
  transition: background var(--dur-s) var(--ease), transform var(--dur-s) var(--ease);
}

.carousel-dot.is-active { background: var(--gold); transform: scale(1.35); }

/* Carousel inside a capability card (replaces the static .cap-item-media) */
.cap-item-media.carousel { margin: -44px -36px 28px; aspect-ratio: 16 / 9; }
.cap-item-media.carousel .carousel-btn { width: 36px; height: 36px; font-size: 12px; }
.cap-item-media.carousel .carousel-btn.prev { left: 12px; }
.cap-item-media.carousel .carousel-btn.next { right: 12px; }
.cap-item-media.carousel .carousel-dots { bottom: 12px; }

@media (max-width: 760px) {
  .carousel-btn { opacity: 1; }
}

/* ---------- Project gallery grid (static tiles, no carousel) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery-grid .ph-media { aspect-ratio: 16 / 9; }

@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
}

.cap-item .num { font-size: 12px; color: var(--gold); letter-spacing: 0.1em; margin-bottom: 26px; display: block; }

.cap-icon { margin-bottom: 22px; transition: transform 0.4s var(--ease); }
.cap-icon svg { width: 52px; height: 52px; }
.cap-item:hover .cap-icon { transform: scale(1.12); }

.cap-item h3 { font-size: 21px; font-weight: 500; margin-bottom: 14px; }

.cap-item p { font-size: 14px; color: var(--ink-dim); line-height: 1.75; font-weight: 300; }

/* ---------- Credibility strip (white) ---------- */
.strip {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.strip-cities { display: flex; gap: 34px; flex-wrap: wrap; }
.strip-cities span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- CTA band (dark card, boxed within the page instead of
   running full-bleed edge to edge) ---------- */
.cta-band { position: relative; }

.cta-band-box {
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(50px, 6vw, 90px) clamp(28px, 5vw, 70px);
  border-radius: 8px;
  background: linear-gradient(155deg, #16130a 0%, #0a0a0a 60%);
  border: 1px solid var(--gold-line);
  text-align: center;
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-band h2 { font-size: clamp(30px, 4.4vw, 56px); font-weight: 400; max-width: 30ch; margin: 0 auto 30px; color: var(--on-dark); }

.cta-band-box .hero-actions { justify-content: center; }

/* ---------- Glass card (glassmorphism, for use over dark/photo areas) ---------- */
.glass-card {
  background: rgba(254,254,254,0.08);
  border: 1px solid rgba(254,254,254,0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 4px;
}

/* ---------- Footer (dark) ---------- */
.site-footer { background: var(--black); color: var(--on-dark); border-top: 1px solid var(--on-dark-line); padding-top: clamp(60px, 8vw, 100px); }

.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 70px; }

.footer-brand img { height: 74px; width: auto; margin-bottom: 22px; }

.footer-brand p { font-size: 14px; color: var(--on-dark-faint); line-height: 1.75; max-width: 300px; font-weight: 300; }

.footer-social { display: flex; gap: 14px; margin-top: 24px; }

.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--on-dark-line-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--on-dark);
  transition: border-color var(--dur-s) var(--ease), color var(--dur-s) var(--ease);
}

.footer-social a:hover { border-color: var(--gold); color: var(--gold); }

.footer-col h4 { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-faint); margin-bottom: 22px; }

.footer-col a, .footer-col address, .footer-col p {
  display: block;
  font-size: 14.5px;
  color: var(--on-dark-dim);
  margin-bottom: 14px;
  font-style: normal;
  line-height: 1.6;
  font-weight: 300;
  transition: color var(--dur-s) var(--ease);
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--on-dark-line);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: var(--on-dark-faint);
}

.footer-bottom a { color: var(--on-dark-faint); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  border: 1px solid #25D366;
  display: flex; align-items: center; justify-content: center;
  color: #ffffff;
  font-size: 24px;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.25);
  transition: transform var(--dur-s) var(--ease), background var(--dur-s) var(--ease), color var(--dur-s) var(--ease);
}

.wa-float:hover { transform: translateY(-4px); background: #1EBE5A; color: #ffffff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-m) var(--ease), transform var(--dur-m) var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: 0.08s; }
.reveal-2 { transition-delay: 0.16s; }
.reveal-3 { transition-delay: 0.24s; }

/* ---------- Page hero (inner pages — short dark band) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(200deg, #171717 0%, #060606 70%, #000 100%);
  color: var(--on-dark);
  /* Clears the nav, whose height follows the large centred logo. */
  padding-top: clamp(208px, 19vh, 258px);
  padding-bottom: clamp(60px, 8vw, 100px);
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero .lede { color: var(--on-dark-dim); }

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-media::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(10,8,4,0.75) 0%, rgba(0,0,0,0.62) 45%, rgba(0,0,0,0.58) 100%);
}

.page-hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.8) 100%);
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-gold { color: var(--gold); }
.text-dim { color: var(--ink-dim); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.stack-lg { display: flex; flex-direction: column; gap: 26px; }
.divider { border-top: 1px solid var(--line); }

/* ---------- Project meta row (case-study inner pages) ---------- */
/* Row on desktop. The items are content-sized, so which ones share a row
   used to depend on how long each project's text was — stacked below. */
.project-meta { display: flex; flex-wrap: wrap; gap: 40px; margin-bottom: 50px; }
.project-meta .label-sm { display: block; margin-bottom: 8px; }
.project-meta p { color: var(--ink); font-size: 15px; }

/* ---------- Contact / Form (white) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-field { display: flex; flex-direction: column; gap: 10px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }

.form-field input, .form-field textarea, .form-field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 2px;
  color: var(--ink);
  font-size: 15px;
  transition: border-color var(--dur-s) var(--ease);
}

.form-field select option { background: var(--white); color: var(--ink); }

.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--gold);
}

.form-msg { margin-top: 18px; font-size: 13.5px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { color: #2f7a4d; }
.form-msg.err { color: #b23b30; }

.contact-info-list { display: flex; flex-direction: column; gap: 30px; }
.contact-info-item .label-sm { margin-bottom: 8px; display: block; }
.contact-info-item a, .contact-info-item p { font-size: 17px; font-weight: 400; color: var(--ink); }

.map-frame { border: 1px solid var(--line); filter: grayscale(0.6) contrast(1.02); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--black);
  padding: 12px 18px; z-index: 2000;
}
.skip-link:focus { left: 20px; top: 20px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .cap-grid { grid-template-columns: 1fr; }
  .cap-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
  .statement-row { flex-direction: column; gap: 30px; }
  .footer-top { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .approach-item { grid-template-columns: 44px 1fr 34px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .strip { flex-direction: column; align-items: flex-start; }
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; font-size: 21px; }
  .cap-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .project-meta { flex-direction: column; gap: 24px; }
  .nav-logo img { height: 92px; }
  .page-hero { padding-top: 172px; }
  .footer-brand img { height: 64px; }
}

@media (max-width: 480px) {
  .btn { padding: 14px 24px; font-size: 12px; }
  .cap-item { padding: 34px 22px; }
  .cap-item-media,
  .cap-item-media.carousel { margin: -34px -22px 24px; }
  .nav-logo img { height: 78px; }
  .page-hero { padding-top: 152px; }
  .footer-brand img { height: 58px; }
}
