/* ==========================================================================
   Making Architects — theme
   Bootstrap 5.3 + custom layer. Fonts: Instrument Serif (titles) / Manrope (text)
   ========================================================================== */

:root {
  --ink: #141310;
  --ink-2: #1d1b18;
  --ink-3: #2a2723;
  --paper: #f5f1ea;
  --paper-2: #ebe5da;
  --text: #2b2824;
  --muted: #6f695f;
  --muted-light: #a9a297;
  --line: rgba(20, 19, 16, .12);
  --line-light: rgba(245, 241, 234, .16);
  --accent: #d2a24c;        /* gold, tuned to the logo */
  --accent-ink: #8a6420;    /* darker gold for text on light backgrounds */

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 92px;
  --gutter: clamp(1rem, 3vw, 2.5rem);

  /* Bootstrap variable overrides */
  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.7;
  --bs-body-bg: var(--paper);
  --bs-body-color: var(--text);
  --bs-border-color: var(--line);
  --bs-link-color-rgb: 43, 40, 36;
  --bs-link-hover-color-rgb: 138, 100, 32;
  --bs-emphasis-color: var(--ink);
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--accent); color: var(--ink); }
img, video { max-width: 100%; display: block; }
a { text-decoration: none; transition: color .3s var(--ease); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container-xxl { padding-inline: var(--gutter); max-width: 1480px; }

h1, h2, h3, h4, .display-title, .section-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.015em;
  color: inherit;
}
h1 em, h2 em, h3 em, .display-title em, .section-title em { font-style: italic; color: var(--accent-ink); }
.section-dark em, .hero em, .page-hero em, .cta-band em, .site-footer em, .contact-card em,
.project-slider em, .ve-overlay em, .video-band em, .video-card em { color: var(--accent) !important; }
.video-band .eyebrow, .ve-overlay .eyebrow { color: var(--accent); }

.display-title { font-size: clamp(2.5rem, min(5.6vw, 9.5vh), 5.8rem); line-height: 1; margin: 0; }
.section-title { font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.05; margin: 0 0 1.25rem; }
.lead-text { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.75; color: var(--muted); font-weight: 400; }
.statement {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .85rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 1.5rem;
}
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow, .site-footer .eyebrow, .contact-card .eyebrow { color: var(--accent); }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }

.section { padding-block: clamp(5rem, 11vw, 9.5rem); position: relative; }
.section-sm { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .lead-text { color: var(--muted-light); }
.section-alt { background: var(--paper-2); }

/* ---------- Buttons ---------- */
.btn-pill {
  --c: currentColor;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .62rem 1.2rem; border-radius: 999px;
  border: 1px solid var(--c); color: inherit; background: transparent;
  font-size: .74rem; line-height: 1.4; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn-pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn-pill:hover { color: var(--ink); border-color: var(--accent); }
.btn-pill:hover::before { transform: translateY(0); }
.btn-pill i { transition: transform .5s var(--ease); }
.btn-pill:hover i { transform: translate(3px, -3px); }
.btn-pill.is-solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.section-dark .btn-pill.is-solid, .is-solid-light { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: inherit;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  padding: .6rem 0 .45rem; transition: background-size .5s var(--ease), color .3s;
}
.link-arrow:hover { background-size: 100% 1px; color: var(--accent-ink); }
.section-dark .link-arrow:hover, .service-card .link-arrow:hover { color: var(--accent); }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line-light); background: transparent; color: inherit;
  font-size: 1.1rem; transition: background .4s var(--ease), color .4s, border-color .4s;
}
.icon-btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.icon-btn.on-light { border-color: var(--line); }
.icon-btn.on-light:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Page curtain (load + page transitions) ---------- */
.page-curtain {
  position: fixed; inset: 0; z-index: 3000;
  background: var(--ink); display: grid; place-items: center;
  pointer-events: none;
}
.page-curtain img { width: 84px; height: auto; opacity: .9; }
/* fallback: if scripts never run, lift the curtain anyway */
.page-curtain:not(.is-controlled) { animation: curtainFallback .8s 2.2s var(--ease) forwards; }
@keyframes curtainFallback { to { transform: translateY(-100%); visibility: hidden; } }
.page-curtain.is-done { visibility: hidden; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1030;
  color: var(--paper);
  transition: transform .6s var(--ease), background-color .5s var(--ease), backdrop-filter .5s;
}
.site-header .navbar { height: var(--header-h); padding: 0; transition: height .5s var(--ease); }
.site-header .container-xxl { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-header.is-scrolled { background: rgba(20, 19, 16, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.site-header.is-scrolled .navbar { height: 74px; }
.site-header.is-hidden { transform: translateY(-100%); }

.navbar-brand { padding: 0; margin: 0; }
.navbar-brand img { width: 64px; height: auto; transition: width .5s var(--ease); }
.site-header.is-scrolled .navbar-brand img { width: 52px; }

.main-nav { gap: clamp(1.25rem, 2.6vw, 2.75rem); flex-direction: row; }
.main-nav .nav-link {
  position: relative; padding: .5rem 0 !important;
  color: rgba(245, 241, 234, .78);
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.main-nav .nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: #fff; }
.main-nav .nav-link:hover::after, .main-nav .nav-link.active::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-light); background: rgba(20, 19, 16, .25);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  backdrop-filter: blur(8px);
}
.menu-toggle span { width: 20px; height: 1.5px; background: var(--paper); transition: transform .4s var(--ease); }
.menu-toggle span:last-child { width: 13px; margin-left: 7px; }
.menu-toggle:hover span:last-child { transform: translateX(-7px); width: 20px; }

/* ---------- Mobile offcanvas menu ---------- */
.mobile-menu.offcanvas {
  --bs-offcanvas-width: min(100vw, 460px);
  --bs-offcanvas-bg: var(--ink);
  --bs-offcanvas-color: var(--paper);
  --bs-offcanvas-transition: transform .7s var(--ease);
  border-left: 0 !important;
}
.offcanvas-backdrop.show { opacity: .6; }
.mobile-menu .offcanvas-header { padding: 1.25rem var(--gutter); justify-content: space-between; }
.mobile-menu .offcanvas-header img { width: 54px; }
.menu-close {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-light);
  background: transparent; color: var(--paper); font-size: 1rem; transition: transform .5s var(--ease), background .4s;
}
.menu-close:hover { transform: rotate(90deg); background: var(--paper); color: var(--ink); }
.mobile-menu .offcanvas-body { display: flex; flex-direction: column; justify-content: space-between; padding: 1rem var(--gutter) 2rem; }
.mobile-nav { list-style: none; padding: 0; margin: 2rem 0; }
.mobile-nav li { overflow: hidden; border-bottom: 1px solid var(--line-light); }
.mobile-nav a {
  display: flex; align-items: baseline; gap: 1rem; padding: .9rem 0;
  font-family: var(--font-display); font-size: clamp(2rem, 8vw, 2.6rem); line-height: 1.05; color: var(--paper);
}
.mobile-nav a .num { font-family: var(--font-body); font-size: .72rem; letter-spacing: .14em; color: var(--accent); }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--accent); font-style: italic; }
.mobile-menu-foot { font-size: .92rem; color: var(--muted-light); }
.mobile-menu-foot a { color: var(--paper); }

.social-links { display: flex; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.social-links a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-light); color: inherit; transition: background .4s var(--ease), color .4s, border-color .4s;
}
/* Extra specificity so footer/menu link hover colours (gold) can't turn the icon
   the same colour as the gold circle and hide it. */
.social-links li a:hover, .social-links li a:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* ---------- Image reveal + parallax ---------- */
.img-reveal { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-3); }
.img-reveal img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.img-reveal[data-parallax] img { height: 118%; margin-top: -9%; }
.ratio-portrait { aspect-ratio: 4 / 5; }
.ratio-land { aspect-ratio: 16 / 10; }
.ratio-wide { aspect-ratio: 21 / 9; }
.ratio-square { aspect-ratio: 1; }

/* ---------- Home hero (video) ---------- */
.hero {
  position: relative; min-height: max(100svh, 600px);
  padding-top: calc(var(--header-h) + 1.5rem);
  color: var(--paper); background: var(--ink); overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20,19,16,.55) 0%, rgba(20,19,16,0) 26%),
    linear-gradient(0deg, rgba(20,19,16,.9) 0%, rgba(20,19,16,.25) 52%, rgba(20,19,16,.05) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.hero .display-title { max-width: 14ch; }
.hero-sub { max-width: 34rem; color: rgba(245,241,234,.8); font-size: clamp(.95rem, 1.1vw, 1.08rem); margin: 1.25rem 0 0; }
.hero-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  margin-top: clamp(1.75rem, 5vh, 3.5rem); padding-top: 1.25rem; border-top: 1px solid var(--line-light);
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(245,241,234,.7);
}
.scroll-cue { display: inline-flex; align-items: center; gap: .9rem; color: inherit; }
.scroll-cue .line { width: 1px; height: 42px; background: rgba(245,241,234,.25); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ""; position: absolute; inset: 0; background: var(--paper);
  animation: scrollCue 2.2s var(--ease) infinite;
}
@keyframes scrollCue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; min-height: max(72svh, 480px); overflow: hidden;
  padding-top: calc(var(--header-h) + 2rem);
  color: var(--paper); background: var(--ink); display: flex; align-items: flex-end;
}
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img, .page-hero-media video { display: block; width: 100%; height: 120%; margin-top: -10%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,19,16,.88) 0%, rgba(20,19,16,.35) 55%, rgba(20,19,16,.45) 100%);
}
.page-hero .container-xxl { position: relative; z-index: 2; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero .display-title { font-size: clamp(2.6rem, min(6vw, 10vh), 6.2rem); }
.breadcrumb-mini { display: flex; gap: .6rem; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(245,241,234,.65); margin-bottom: 1.25rem; }
.breadcrumb-mini a { color: inherit; }
.breadcrumb-mini a:hover { color: var(--accent); }
.page-hero-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.page-hero-meta p { max-width: 30rem; margin: 0; color: rgba(245,241,234,.78); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; padding-block: clamp(1.5rem, 3vw, 2.5rem); border-block: 1px solid var(--line); }
.section-dark .marquee, .marquee.is-dark { border-color: var(--line-light); }
.marquee-track { display: inline-flex; will-change: transform; }
.marquee-track span {
  font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 3.2rem); line-height: 1;
  padding-right: 2rem; display: inline-flex; align-items: center; gap: 2.5rem;
}
.marquee-track span:nth-child(even) { font-style: italic; color: var(--accent); }
.marquee-track span::after { content: "✦"; font-size: .35em; color: var(--muted-light); font-style: normal; }

/* ---------- Intro (home) ---------- */
.intro-media { position: relative; padding-bottom: 14%; }
.intro-media .img-main { width: 84%; margin-left: auto; }
.intro-media .img-float {
  position: absolute; left: 0; bottom: 0; width: 38%; aspect-ratio: 1 / 1.05;
  border: 8px solid var(--paper); border-radius: calc(var(--radius) + 8px);
}
.word-dim .word { opacity: .16; }

/* ---------- Project slider (GSAP) ---------- */
.project-slider {
  position: relative; height: min(86svh, 820px); min-height: 520px;
  border-radius: var(--radius); overflow: hidden; background: var(--ink-3); color: var(--paper);
  touch-action: pan-y; user-select: none;
}
.ps-slide { position: absolute; inset: 0; visibility: hidden; }
.ps-slide.is-active { visibility: visible; }
.ps-slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ps-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,19,16,.82) 0%, rgba(20,19,16,0) 55%);
}
.ps-caption { position: absolute; left: clamp(1.25rem, 4vw, 3.5rem); bottom: clamp(7rem, 12vw, 8rem); z-index: 2; max-width: 40rem; }
.ps-caption .ps-cat { display: block; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
.ps-caption h3 { font-size: clamp(1.7rem, 3.2vw, 3.1rem); line-height: 1.05; margin: 0; }
.ps-ui {
  position: absolute; z-index: 5; left: clamp(1.25rem, 4vw, 3.5rem); right: clamp(1.25rem, 4vw, 3.5rem); bottom: clamp(1.25rem, 3vw, 2.5rem);
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem);
}
.ps-count { font-family: var(--font-display); font-size: 1.6rem; white-space: nowrap; }
.ps-count small { font-family: var(--font-body); font-size: .8rem; color: var(--muted-light); margin-left: .35rem; }
.ps-progress { flex: 1; height: 1px; background: var(--line-light); position: relative; }
.ps-progress span { position: absolute; inset: 0; background: var(--paper); transform-origin: left; transform: scaleX(0); }
.ps-nav { display: flex; gap: .6rem; }

.ps-slide video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1s var(--ease); pointer-events: none;
}
.ps-slide video.is-playing { opacity: 1; }
.ps-caption { z-index: 3; }
.ps-slide::after { z-index: 2; }

/* ---------- Video components ---------- */
.img-reveal video, .video-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-reveal[data-parallax] video { height: 118%; margin-top: -9%; }

/* Scroll-expanding film (home) */
.video-expand { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--paper); }
.ve-intro {
  position: absolute; z-index: 1; top: clamp(1.5rem, 5vh, 3.5rem); left: 0; right: 0;
  text-align: center; padding-inline: var(--gutter);
}
.ve-intro .eyebrow { margin-bottom: .75rem; }
.ve-intro .section-title { font-size: clamp(1.7rem, min(3vw, 5.5vh), 2.8rem); margin: 0; }
.ve-frame {
  position: absolute; inset: 0; z-index: 2; background: var(--ink);
  clip-path: inset(clamp(150px, 24vh, 230px) 22% 7% 22% round 24px); will-change: clip-path;
}
.ve-frame video { width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.ve-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  padding-bottom: clamp(2.5rem, 8vh, 5rem); color: var(--paper);
  background: linear-gradient(0deg, rgba(20,19,16,.88) 0%, rgba(20,19,16,.35) 55%, rgba(20,19,16,0) 80%);
}
.ve-overlay .eyebrow { text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.ve-overlay .display-title { font-size: clamp(2.3rem, min(5vw, 9vh), 5.2rem); max-width: 13ch; }
@media (max-width: 1199.98px) { .ve-frame { clip-path: inset(clamp(150px, 24vh, 230px) 10% 7% 10% round 24px); } }
@media (max-width: 767.98px) { .ve-frame { clip-path: inset(clamp(170px, 26vh, 230px) 5% 10% 5% round 18px); } }

/* Full-bleed film band (about) */
.video-band { position: relative; min-height: clamp(520px, 92svh, 860px); display: flex; align-items: center; overflow: hidden; color: var(--paper); background: var(--ink); padding-block: clamp(6rem, 12vw, 10rem); }
.video-band .vb-media { position: absolute; inset: -12% 0; }
.video-band .vb-media video { width: 100%; height: 100%; object-fit: cover; }
.video-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(20,19,16,.35), rgba(20,19,16,.78)); }
.video-band .container-xxl { position: relative; z-index: 2; }
.video-band cite { color: var(--accent); }
.video-band .word { text-shadow: 0 2px 30px rgba(0,0,0,.35); }

/* Film cards (services + gallery) */
.video-card { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-3); color: var(--paper); isolation: isolate; }
.video-card { transition: transform .8s var(--ease); }
.video-card:hover { transform: translateY(-6px); }
.video-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(20,19,16,.72) 0%, rgba(20,19,16,0) 50%); pointer-events: none; }
.vc-badge {
  position: absolute; z-index: 2; top: 1rem; left: 1rem;
  display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .85rem; border-radius: 999px;
  background: rgba(20,19,16,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.vc-badge i { color: var(--accent); }
.vc-meta { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 1.4rem; display: flex; flex-direction: column-reverse; align-items: flex-start; gap: .45rem; }
.vc-meta h3 { font-size: clamp(1.35rem, 1.8vw, 1.8rem); margin: 0; line-height: 1.05; }
.vc-meta span { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-light); white-space: nowrap; }
.film-strip .col-md-4:nth-child(2) { margin-top: clamp(0rem, 5vw, 4rem); }
@media (max-width: 767.98px) { .film-strip .video-card.ratio-portrait { aspect-ratio: 4 / 4.4; } }

/* ---------- Service cards (home) ---------- */
.service-card {
  position: relative; overflow: hidden; isolation: isolate;
  height: 100%; padding: clamp(2rem, 4vw, 3.25rem);
  border: 1px solid var(--line-light); border-radius: var(--radius);
  display: flex; flex-direction: column; color: var(--paper);
  transition: border-color .5s var(--ease);
}
.service-card .bg { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .7s var(--ease); }
.service-card .bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s var(--ease); }
.service-card .bg::after { content: ""; position: absolute; inset: 0; background: rgba(20,19,16,.72); }
.service-card:hover { border-color: transparent; color: var(--paper); }
.service-card:hover .bg { opacity: 1; }
.service-card:hover .bg img { transform: scale(1); }
.service-card .num { font-size: .78rem; letter-spacing: .2em; color: var(--accent); }
.service-card h3 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); line-height: 1.05; margin: 1rem 0 1.5rem; }
.service-card ul { list-style: none; padding: 0; margin: 0 0 2.5rem; }
.service-card li { padding: .8rem 0; border-bottom: 1px solid var(--line-light); color: rgba(245,241,234,.82); display: flex; align-items: center; gap: .8rem; }
.service-card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.service-card .link-arrow { margin-top: auto; align-self: flex-start; }

/* ---------- Horizontal gallery strip (home) ---------- */
.h-gallery { overflow: hidden; }
.h-gallery-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.h-track { display: flex; gap: clamp(1rem, 2vw, 1.75rem); padding-inline: var(--gutter); width: max-content; }
.h-card { width: clamp(260px, 34vw, 520px); flex: none; color: inherit; }
.h-card .img-reveal { aspect-ratio: 4 / 3; }
.h-card:nth-child(even) { margin-top: clamp(2rem, 6vw, 5rem); }
/* hover effect on the wrapper: GSAP owns the image transform */
.h-card .img-reveal { transition: transform 1s var(--ease), border-radius 1s var(--ease); }
.h-card:hover .img-reveal { transform: scale(.97); border-radius: calc(var(--radius) + 10px); }
.h-card:hover .h-card-meta span:first-child { color: var(--accent-ink); }
.h-card-meta { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; font-size: .9rem; }
.h-card-meta span:last-child { color: var(--muted-light); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
@media (min-width: 992px) {
  .h-gallery { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(1.5rem, 5vh, 3.5rem); }
  .h-gallery-head { margin-bottom: clamp(1.25rem, 4vh, 2.5rem); }
  .h-card { width: auto; }
  .h-card .img-reveal { height: clamp(200px, 46vh, 460px); width: auto; aspect-ratio: 4 / 3; }
  .h-card:nth-child(even) { margin-top: clamp(1rem, 5vh, 3rem); }
}
@media (max-width: 991.98px) {
  .h-scroller { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
  .h-scroller::-webkit-scrollbar { display: none; }
  .h-card { scroll-snap-align: start; width: 78vw; }
  .h-card:nth-child(even) { margin-top: 0; }
}

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; color: var(--paper); background: var(--ink); text-align: center; }
.cta-band .cta-bg { position: absolute; inset: 0; opacity: .38; }
.cta-band .cta-bg img { width: 100%; height: 130%; margin-top: -15%; object-fit: cover; }
.cta-band .container-xxl { position: relative; z-index: 2; }
.cta-band .display-title { font-size: clamp(2.4rem, 5.6vw, 5.4rem); max-width: 14ch; margin-inline: auto; }
.cta-contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; margin: 2.5rem 0; font-size: 1.05rem; }
.cta-contacts a { color: var(--paper); }
.cta-contacts a:hover { color: var(--accent); }

/* ---------- About ---------- */
.sticky-col { position: sticky; top: calc(var(--header-h) + 2rem); }
.about-copy p { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.8; color: var(--text); margin-bottom: 1.6rem; }
.about-copy p:first-child { font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.25; color: var(--ink); }
.principle {
  height: 100%; padding: 2.25rem 0 0; border-top: 1px solid var(--line);
}
.principle .num { font-family: var(--font-display); font-size: 2.8rem; line-height: 1; color: var(--accent-ink); display: block; margin-bottom: 1.4rem; }
.principle h3 { font-size: 1.55rem; margin-bottom: .7rem; }
.principle p { color: var(--muted); margin: 0; }
.quote-band blockquote { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 3.3rem); line-height: 1.1; margin: 0; max-width: 22ch; }
.quote-band cite { display: block; margin-top: 2rem; font-style: normal; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); }
.place-list { list-style: none; padding: 0; margin: 0; }
.place-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1;
}
.place-list li:first-child { border-top: 1px solid var(--line); }
.place-list li span { font-family: var(--font-body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Services: card slider (GSAP Draggable) ---------- */
.card-slider { position: relative; }
.cs-viewport { overflow: hidden; cursor: grab; padding-inline: var(--gutter); }
.cs-viewport:active { cursor: grabbing; }
.cs-track { display: flex; gap: 1.25rem; width: max-content; touch-action: pan-y; }
.cs-card {
  width: clamp(270px, 28vw, 380px); flex: none; min-height: 420px;
  padding: 2.25rem; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line-light);
  display: flex; flex-direction: column; user-select: none;
  transition: background .5s var(--ease);
}
.cs-card:hover { background: var(--ink-3); }
.cs-card .cs-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; }
.cs-card .cs-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; color: var(--accent); border: 1px solid var(--line-light); }
.cs-card .num { font-size: .75rem; letter-spacing: .2em; color: var(--muted-light); }
.cs-card .cs-group { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 3rem 0 .8rem; }
.cs-card h3 { font-size: 1.85rem; line-height: 1.05; margin-bottom: .8rem; }
.cs-card p { color: var(--muted-light); margin: 0; font-size: .95rem; }
.cs-controls { display: flex; align-items: center; gap: 1.5rem; margin-top: 2.5rem; }
.cs-progress { flex: 1; height: 1px; background: var(--line-light); position: relative; }
.cs-progress span { position: absolute; inset: 0; background: var(--paper); transform-origin: left; transform: scaleX(0); }

.service-detail + .service-detail { margin-top: clamp(5rem, 10vw, 8rem); }
.service-detail .num { font-family: var(--font-display); font-size: clamp(3.6rem, 6vw, 6rem); line-height: .8; color: var(--accent-ink); }
.check-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.check-list li { display: flex; gap: 1rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
.check-list li i { color: var(--accent-ink); }

/* ---------- Gallery ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.filter-btn {
  border: 1px solid var(--line); background: transparent; color: var(--text);
  border-radius: 999px; padding: .48rem 1rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: background .4s var(--ease), color .4s, border-color .4s;
}
.filter-btn sup { font-size: .65rem; margin-left: .25rem; color: var(--muted); }
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter-btn.is-active sup { color: var(--accent); }

.gallery-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(90px, 9vw, 135px); grid-auto-flow: dense; gap: clamp(.75rem, 1.4vw, 1.25rem);
}
.g-item { grid-column: span 4; grid-row: span 2; position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; background: var(--ink-3); }
.g-item.is-wide { grid-column: span 8; grid-row: span 4; }
.g-item.is-tall { grid-column: span 4; grid-row: span 4; }
.g-item.is-hidden { display: none; }
.g-item button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.g-item button:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.g-item .img-reveal { width: 100%; height: 100%; border-radius: 0; }
.g-item .img-reveal { transition: transform 1.2s var(--ease); }
.g-item:hover .img-reveal { transform: scale(1.07); }
.g-item .g-meta {
  position: absolute; inset: auto 0 0; z-index: 2; padding: 1.25rem;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
  color: var(--paper); background: linear-gradient(0deg, rgba(20,19,16,.78), rgba(20,19,16,0));
  opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.g-item:hover .g-meta, .g-item:focus-within .g-meta { opacity: 1; transform: none; }
.g-meta .g-title { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; margin: 0; line-height: 1.1; }
.g-meta span.d-block { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.g-meta i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); flex: none; }
@media (max-width: 991.98px) {
  .g-item, .g-item.is-tall { grid-column: span 6; }
  .g-item.is-wide { grid-column: span 12; grid-row: span 3; }
  .g-item.is-tall { grid-row: span 3; }
}
@media (max-width: 575.98px) {
  .gallery-grid { grid-auto-rows: 104px; }
  .g-item, .g-item.is-wide { grid-column: span 12; grid-row: span 2; }
  .g-item.is-tall { grid-column: span 12; grid-row: span 3; }
  .g-item .g-meta { opacity: 1; transform: none; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(14, 13, 11, .97); color: var(--paper);
  display: none; flex-direction: column;
}
.lightbox.is-open { display: flex; }
.lb-top, .lb-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem var(--gutter); }
.lb-count { font-family: var(--font-display); font-size: 1.5rem; }
.lb-count small { font-family: var(--font-body); font-size: .8rem; color: var(--muted-light); }
.lb-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: pan-y; }
.lb-slide { position: absolute; inset: 0 var(--gutter); display: grid; place-items: center; }
.lb-slide img { width: auto; height: 100%; max-width: min(100%, 1280px); max-height: 100%; object-fit: contain; border-radius: var(--radius-sm); user-select: none; -webkit-user-drag: none; }
.lb-caption h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); margin: 0; }
.lb-caption span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.lb-nav { display: flex; gap: .6rem; }

/* ---------- Contact ---------- */
.contact-card { padding: clamp(2rem, 4vw, 3rem); border-radius: var(--radius); background: var(--ink); color: var(--paper); height: 100%; }
.contact-item { display: flex; gap: 1.25rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line-light); }
.contact-item:last-of-type { border-bottom: 0; }
.contact-item .ci-icon { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 1px solid var(--line-light); color: var(--accent); font-size: 1.15rem; }
.contact-item h3 { font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-light); margin: .2rem 0 .55rem; }
.contact-item p, .contact-item a { margin: 0; color: var(--paper); font-size: 1.08rem; line-height: 1.6; }
.contact-item a:hover { color: var(--accent); }
.contact-item a { display: block; padding-block: .35rem; }

.contact-form .form-floating > .form-control {
  background: transparent; border: 0; border-bottom: 1px solid rgba(20,19,16,.25); border-radius: 0;
  padding-left: 0; padding-right: 0; font-size: 1.1rem; color: var(--ink);
}
.contact-form .form-floating > textarea.form-control { min-height: 170px; }
.contact-form .form-floating > label { padding-left: 0; padding-right: 0; color: var(--muted); font-size: .95rem; }
.contact-form .form-floating > .form-control:focus { box-shadow: none; border-bottom-color: var(--accent-ink); }
.contact-form .form-floating > .form-control:focus ~ label,
.contact-form .form-floating > .form-control:not(:placeholder-shown) ~ label { color: var(--accent-ink); transform: scale(.8) translateY(-.6rem) translateX(0); }
.contact-form .form-floating > .form-control:focus ~ label::after,
.contact-form .form-floating > .form-control:not(:placeholder-shown) ~ label::after { background: transparent; }
.contact-form .form-control.is-invalid { border-bottom-color: #c0392b; background-image: none; }
.contact-form .invalid-feedback { font-size: .82rem; }
.form-status { margin-top: 1.25rem; font-size: .95rem; min-height: 1.5em; }
.form-status.is-success { color: #3f7d4f; }
.form-status.is-error { color: #c0392b; }
.btn-pill .spinner-border { width: 1rem; height: 1rem; border-width: .15em; }

.map-wrap { width: 100%; height: clamp(300px, 36vw, 480px); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05) sepia(.12); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-light); padding-top: clamp(4.5rem, 9vw, 7.5rem); font-size: .95rem; }
.footer-cta { padding-bottom: clamp(3.5rem, 7vw, 6rem); border-bottom: 1px solid var(--line-light); margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.footer-big {
  display: inline-block; color: var(--paper);
  font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 4.4rem); line-height: 1.05;
}
.footer-big em { color: var(--accent); }
.footer-big i { display: inline-block; font-size: .5em; margin-left: .3em; vertical-align: middle; transition: transform .6s var(--ease); }
.footer-big:hover { color: var(--paper); }
.footer-big:hover i { transform: translate(10px, -10px) rotate(0deg); color: var(--accent); }
.site-footer h4 { font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--paper); margin-bottom: 1.4rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.site-footer a { color: var(--muted-light); }
.site-footer a:hover { color: var(--accent); }
.footer-logo { width: 74px; margin-bottom: 1.5rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
  margin-top: clamp(3rem, 6vw, 4.5rem); padding-block: 1.75rem; border-top: 1px solid var(--line-light); font-size: .82rem;
}
.to-top { background: none; border: 0; padding: .7rem 0; color: var(--paper); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; display: inline-flex; gap: .6rem; align-items: center; }
.to-top:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  :root { --header-h: 78px; }
  .navbar-brand img { width: 54px; }
  .sticky-col { position: static; }
  .intro-media { margin-top: 3rem; }
  .project-slider { height: 72svh; min-height: 460px; }
}
@media (max-width: 575.98px) {
  .hero-bottom .hide-xs { display: none; }
  .ps-nav .icon-btn { width: 40px; height: 40px; }
  .ps-caption { bottom: 6rem; }
  .intro-media .img-float { border-width: 5px; }
}

/* Tablets: give the big titles a little more room */
@media (min-width: 576px) and (max-width: 991.98px) {
  .display-title { font-size: clamp(2.5rem, min(7.2vw, 8vh), 4.6rem); }
  .page-hero .display-title { font-size: clamp(2.6rem, min(8vw, 9vh), 5rem); }
}

/* Stacked layouts: keep feature media landscape so it never becomes a huge square/portrait */
@media (max-width: 991.98px) {
  .service-detail .img-reveal.ratio-square, .service-detail .img-reveal.ratio-portrait { aspect-ratio: 16 / 10; }
}

/* Phones: Bootstrap's large gutter (-24px row margin) is wider than the 16px
   page padding, so rows bled past the screen edge. Match it to the padding. */
@media (max-width: 767.98px) {
  .row.g-5 { --bs-gutter-x: 2rem; --bs-gutter-y: 2.5rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .page-curtain { display: none; }
}
