/* =========================================================
   Serene Aesthetics — Design System
   Breakpoints follow Bootstrap 5: sm 576 · md 768 · lg 992 · xl 1200
   ========================================================= */
/* Title font — self-hosted (assets/fonts). Single 400 weight. */
@font-face {
  font-family: "Haidan Serif";
  src: url("../fonts/Haidan-BF6a7589a99ccd2.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Paragraph font — self-hosted Muli. (Muli-Regular.ttf is mislabelled
   italic in its metadata, so the style is declared explicitly here.) */
@font-face {
  font-family: "Muli";
  src: url("../fonts/Muli-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Muli";
  src: url("../fonts/Muli-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-ink: #000000;
  --color-accent: #eb6e08;
  --color-accent-dark: #c9531f;
  --color-cream: #f7f2ec;
  --color-cream-2: #f1e9df;
  --color-paper: #ffffff;
  --color-text: #3a3733;
  --color-text-muted: #746f68;
  --color-border: rgba(0, 0, 0, 0.1);

  --font-display: "Haidan Serif", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-script: "Tangerine", cursive;
  --font-body: "Jost", "Segoe UI", Arial, sans-serif;
  --font-text: "Muli", "Segoe UI", Arial, sans-serif;

  /* Tangerine has a tiny x-height, so script accents need large sizes to stay legible */
  --script-md: clamp(2rem, 1.5rem + 1.4vw, 2.6rem); /* subtitles / eyebrows: 32px → 42px */

  --transition: 0.35s cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }

/* scroll-padding = scrolled header height, so anchor targets land just below it */
html { scroll-behavior: smooth; scroll-padding-top: 60px; }
@media (max-width: 991.98px) {
  html { scroll-padding-top: 54px; }
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* safety net: nothing may cause sideways scroll */
}

/* All paragraphs use Muli (classed accents like .script-accent keep their own font) */
p { font-family: var(--font-text); }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  margin: 0;
  line-height: 1.2;
  overflow-wrap: break-word;
}
h2 { text-wrap: balance; }

/* Slightly roomier side gutters on phones (Bootstrap default is .75rem) */
@media (max-width: 575.98px) {
  .container { --bs-gutter-x: 2rem; }
}
/* g-5 rows: keep 3rem vertical gap, but never let the horizontal
   negative margin exceed the container padding */
.row.g-5 { --bs-gutter-x: clamp(1.5rem, 4vw, 3rem); }

.script-accent {
  font-family: var(--font-script);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.9em;
  line-height: 1.1;
  display: inline-block;
}
h2 .script-accent { font-size: 1.2em; margin-left: .15em; }

.section { padding: clamp(3rem, 6vw, 6.5rem) 0; }

.section-heading { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.section-heading h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .35rem; }
.section-heading .script-accent { font-size: var(--script-md); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--color-accent); color: #fff; padding: .75rem 1.25rem;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn-accent {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: .8rem 1.9rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .78rem;
  transition: background var(--transition), transform var(--transition);
  border-radius: 0;
}
.btn-accent:hover, .btn-accent:focus-visible { background: var(--color-accent-dark); color: #fff; transform: translateY(-2px); }

/* Reusable offset double-border frame for accent buttons */
.btn-frame-wrap { position: relative; display: inline-block; }
.btn-frame-deco {
  position: absolute; inset: 0;
  border: 1.5px solid var(--color-accent);
  transform: translate(7px, 7px);
  pointer-events: none;
}
.btn-frame-wrap-light { display: block; width: calc(100% - 7px); }
.btn-frame-deco-light { border-color: rgba(255,255,255,.8); }
.btn-light-solid,
.btn-light-solid:hover,
.btn-light-solid:focus,
.btn-light-solid:focus-visible,
.btn-light-solid:active {
  display: block; width: 100%;
  background: #fff; color: var(--color-accent);
  border: none; padding: .8rem 1.6rem;
  font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  border-radius: 0;
  box-shadow: none; outline: none; transform: none;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: .6rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.site-header.scrolled {
  background: var(--color-ink);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  padding: .3rem 0;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; min-width: 0; }
.brand-mark { height: clamp(34px, 5vw, 40px); width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: clamp(1rem, 2.5vw, 1.15rem); white-space: nowrap; }

.navbar { padding: 0; }
.navbar-nav .nav-link {
  position: relative;
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  font-weight: 500;
  padding: .5rem 1rem !important;
  transition: color var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--color-accent); }
/* accent tick above the active link (follows .active via scroll-spy) */
.navbar-nav .nav-link::before {
  content: "";
  position: absolute; bottom: 100%; left: 50%;
  width: 1px; height: 1.2rem; background: var(--color-accent);
  transform: translateX(-50%) scaleY(0); transform-origin: top;
  transition: transform var(--transition);
}
.navbar-nav .nav-link.active::before { transform: translateX(-50%) scaleY(1); }
.navbar-toggler {
  border: none; box-shadow: none !important;
  width: 44px; height: 44px; padding: 0; margin-right: -.5rem; /* 44px tap target, icon stays aligned to the gutter */
  display: grid; place-items: center;
}
.navbar-toggler-icon { filter: invert(1); transition: transform var(--transition); }
/* hamburger turns into a close (X) icon while the menu is open */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833,37,41,.75%29' stroke-linecap='round' stroke-width='2' d='M8 8l14 14M22 8L8 22'/%3e%3c/svg%3e");
  transform: rotate(90deg);
}
@media (max-width: 991.98px) {
  /* header turns solid while the menu is open, so the panel joins it seamlessly */
  .site-header.menu-open { background: var(--color-ink); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
  .navbar-collapse {
    background: var(--color-ink);
    /* full-bleed: pull out to the viewport edges, then pad back to the gutter */
    margin: .5rem calc(var(--bs-gutter-x) * -.5) 0;
    padding: .25rem calc(var(--bs-gutter-x) * .5) 1.5rem;
    border-top: 1px solid rgba(255,255,255,.1);
    max-height: calc(100vh - 60px); max-height: calc(100svh - 60px); overflow-y: auto;
  }
  .navbar-nav .nav-link {
    padding: .9rem 0 !important; font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .navbar-nav .nav-link::before { display: none; }
  .navbar-collapse .nav-cta { display: flex; justify-content: center; width: 100%; margin-top: 1.5rem; padding: .95rem 1rem; font-size: .85rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .25) 75%);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 640px; padding: 5rem 0 3rem; }
.eyebrow { font-family: var(--font-script); color: var(--color-accent); font-size: clamp(2.25rem, 1.5rem + 2.2vw, 3rem); line-height: 1.2; margin-bottom: .25rem; }
/* Mixed case, regular weight; line 2 is ~1.39× line 1 (70px / 97px at 1440) */
.display-heading {
  color: #fff;
  font-size: clamp(2rem, 1.2rem + 3.9vw, 4.375rem);
  font-weight: 400;
  line-height: 1.15;
  filter: drop-shadow(2.5px 4.33px 16px rgba(0, 0, 0, 0.5));
}
.display-heading .heading-line-1,
.display-heading .heading-line-2 { display: block; }
.display-heading .heading-line-2 { font-size: 1.39em; line-height: 1; }
.lead-text { font-size: clamp(.95rem, 1.5vw, 1.05rem); color: rgba(255,255,255,.85); max-width: 460px; margin: 1.25rem 0 0; }

.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }
.btn-hero-outline {
  position: relative;
  border: 1.5px solid var(--color-accent);
  background: rgba(0, 0, 0, .45);
  color: #fff;
  padding: .9rem clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .78rem;
  transition: var(--transition);
  border-radius: 0;
}
.btn-hero-outline::after {
  content: "";
  position: absolute; inset: 0;
  border: 1.5px solid var(--color-accent);
  transform: translate(8px, 8px);
  z-index: -1;
}
.btn-hero-outline:hover, .btn-hero-outline:focus-visible { background: var(--color-accent); color: #fff; }

.hero-play-wrap { position: relative; width: 76px; height: 76px; flex-shrink: 0; display: grid; place-items: center; }
.hero-play-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: heroRingSpin 8s linear infinite; }
.hero-play {
  position: relative; z-index: 1;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--color-accent);
  color: #fff;
  font-size: 1rem;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(226, 99, 44, .45);
  transition: var(--transition);
}
.hero-play i { margin-left: 2px; }
.hero-play:hover, .hero-play:focus-visible { background: var(--color-accent-dark); }

@keyframes heroRingSpin { to { transform: rotate(360deg); } }

@media (max-width: 767.98px) {
  .hero { min-height: 100vh; min-height: 100svh; }
}

/* ---------- Services ---------- */
.services { background: var(--color-paper); }
.services-grid .section-heading { margin-bottom: 1.75rem; }
/* cqi below = % of the card width, so caption type keeps the design's proportions at every size */
.service-card {
  --arrow-size: clamp(44px, 4.5vw, 56px);
  container-type: inline-size;
  margin-bottom: 2.5rem;
}
.service-card:last-child { margin-bottom: 0; }
.service-media-wrap { position: relative; }
.service-media {
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 4 / 3.1;
}
.service-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.service-card:hover .service-media img { transform: scale(1.06); }
.service-media.has-gallery { cursor: zoom-in; } /* opens the lightGallery viewer */
.service-arrow {
  position: absolute; right: 0; bottom: 0; transform: translateY(50%); z-index: 2;
  width: var(--arrow-size); height: var(--arrow-size);
  background: var(--color-accent); color: #fff; border: none; padding: 0; line-height: 1;
  display: grid; place-items: center; font-size: clamp(1rem, 1.4vw, 1.2rem);
  transition: var(--transition);
}
.service-arrow:hover { background: var(--color-ink); }
/* caption starts just below the arrow's overhang, so it can run the full card width */
.service-caption {
  position: relative;
  padding-top: calc(var(--arrow-size) / 2 + .25rem);
}
/* accent tick sits on the image's bottom-left edge */
.service-tick {
  position: absolute; top: 0; left: 0;
  width: 34px; height: 5px; background: var(--color-accent);
  transform: translateY(-100%);
}
.service-caption h3 {
  display: inline; margin-right: .35em;
  color: var(--color-ink); font-weight: 400; line-height: 1.15;
  font-size: clamp(1.35rem, 6.8cqi, 2.6rem);
}
.service-caption .script-accent {
  color: var(--color-accent); font-weight: 400;
  letter-spacing: .1em; line-height: 1;
  font-size: clamp(1.4rem, 5.2cqi, 2rem);
  vertical-align: -.2em; /* sits slightly below the title's baseline, as in the design */
}

/* ---------- Our Vision ---------- */
/* Image and content share one grid cell, so a tall panel grows the
   section instead of spilling over the section above. */
.vision-hero { position: relative; padding: 0; display: grid; overflow-x: clip; /* the title's trailing tracking is empty space; never let it widen the page */ }
.vision-hero-media,
.vision-hero-content { grid-area: 1 / 1; min-width: 0; }
.vision-hero-media { line-height: 0; }
.vision-hero-media img { width: 100%; height: 100%; object-fit: cover; }.vision-hero-content { align-self: end; z-index: 2; }
.vision-hero-content > .container { container-type: inline-size; } /* cqi = panel width */
/* Thin, wide-tracked sans spanning the panel; its lower part overlaps the panel's top edge */
.vision-title {
  position: relative; z-index: 1; /* paint above the blurred panel */
  text-align: center; color: #fff;
  font-family: var(--font-body); font-weight: 200;
  text-transform: uppercase; letter-spacing: .32em;
  line-height: 1; white-space: nowrap;
  /* Fills the panel edge to edge. The letters of "SERENE AESTHETICS" at .32em tracking
     measure 13.83em (Jost 200, measured in the rendered page), so font-size = panel width
     (100cqi) / 13.83; /13.9 leaves ~3px each side. The trailing tracking after the last
     letter hangs off via the negative right margin (below), so the letters are centred. */
  font-size: clamp(2rem, 5.8vw, 5.5rem); /* fallback for browsers without container units */
  font-size: calc(100cqi / 13.9);
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
  /* right: trailing tracking hangs off; bottom: lower half of the capitals sits over the panel */
  margin: 0 -.32em -.5em 0;
}
.vision-panel {
  background: rgba(255,255,255,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem);
}
.vision-subtitle { text-align: center; font-size: clamp(1.4rem, 2.8vw, 2.1rem); margin-bottom: 1.75rem; }
.vision-panel .script-accent { font-size: var(--script-md); margin-bottom: .75rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.75rem; margin-bottom: .85rem; }
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: .2em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--color-accent); color: #fff;
  font-size: .7rem; line-height: 18px; text-align: center;
}
@media (max-width: 991.98px) {
  .vision-hero-content { grid-area: 2 / 1; }
  .vision-hero-media img { height: auto; }
  .vision-title {
    padding: 1.25rem 0 1.25rem .2em; margin: 0; letter-spacing: .2em;
    font-size: clamp(1.5rem, 6.5vw, 2.75rem); line-height: 1.2; white-space: normal;
    /* full-bleed dark band behind the contained title */
    background: var(--color-ink);
    box-shadow: 0 0 0 100vmax var(--color-ink);
    clip-path: inset(0 -100vmax);
  }
  .vision-panel {
    background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none;
    padding-inline: 0;
  }
}

/* ---------- Transformations ---------- */
.transformations { background: var(--color-cream); }
/* Before/After carousel: stacked comparison slides that cross-fade, controls bar below */
.ba-carousel { display: flex; flex-direction: column; gap: .875rem; height: 100%; }
.ba-slides { position: relative; flex: 1 1 auto; min-height: 340px; }
.before-after {
  position: absolute; inset: 0; overflow: hidden; user-select: none; cursor: ew-resize;
  touch-action: pan-y;
  opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s;
}
.before-after.is-active { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.before-after img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.ba-before-wrap img { width: var(--ba-img-width, 100vw); max-width: none; height: 100%; }
.ba-tag {
  position: absolute; top: 1rem; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 600; z-index: 2;
}
.ba-tag-before { left: 1rem; background: rgba(0, 0, 0, .75); color: #fff; padding: .3rem .7rem; }
.ba-tag-after { right: 1rem; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.ba-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; z-index: 3;
}
.ba-handle::before {
  content: ""; position: absolute; top: -50vh; bottom: -50vh; left: 50%; width: 2px; background: rgba(255,255,255,.8); transform: translateX(-50%); z-index: -1;
}
.ba-handle i {
  width: 34px; height: 44px;
  background: rgba(0, 0, 0, .8); color: #fff;
  display: grid; place-items: center; font-size: 1.05rem;
}
.ba-controls { display: flex; align-items: center; gap: .75rem 1rem; }
.ba-caption { flex: 1 1 auto; margin: 0; font-family: var(--font-display); font-size: 1.125rem; color: var(--color-ink); line-height: 1.3; }
.ba-caption-count { font-family: var(--font-body); font-size: .8125rem; letter-spacing: .06rem; color: var(--color-text-muted); margin-left: .375rem; }
.ba-dots { display: flex; }
.ba-dot { width: 1.75rem; height: 2.75rem; padding: 0; border: none; background: none; display: grid; place-items: center; }
.ba-dot::before { content: ""; width: 1.125rem; height: 3px; background: rgba(0, 0, 0, .2); transition: background var(--transition), width var(--transition); }
.ba-dot:hover::before { background: var(--color-ink); }
.ba-dot[aria-current="true"]::before { width: 1.5rem; background: var(--color-accent); }
.ba-arrows { display: flex; gap: .5rem; }
.ba-nav {
  width: 2.75rem; height: 2.75rem; padding: 0; display: grid; place-items: center;
  border: 1px solid var(--color-border); background: #fff; color: var(--color-ink); transition: var(--transition);
}
.ba-nav:hover { background: var(--color-ink); color: #fff; }
.ba-dot:focus-visible, .ba-nav:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
@media (max-width: 575.98px) {
  .ba-controls { flex-wrap: wrap; }
  .ba-caption { flex-basis: 100%; font-size: 1rem; }
  .ba-arrows { margin-left: auto; }
}
@media (max-width: 991.98px) {
  .ba-slides { min-height: 0; aspect-ratio: 4 / 3; }
  /* stacked layout: let the tile grid size to its content (h-100 made it spill past its box) */
  .transformations-grid .row.h-100 { height: auto !important; }
}

.transform-tile { overflow: hidden; height: 100%; }
.transform-tile img { width: 100%; height: 100%; object-fit: cover; }
.stat-box {
  position: relative; overflow: hidden;
  height: 100%; min-height: 200px;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.stat-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.stat-box::after {
  content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .72); z-index: 1;
}
.stat-box-content { position: relative; z-index: 2; color: #fff; padding: clamp(.75rem, 2vw, 1rem); }
.stat-number { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.2rem); font-weight: 700; }
.stat-plus { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.6rem); color: var(--color-accent); font-weight: 700; }
.stat-label { display: block; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; margin: .25rem 0 1.1rem; color: rgba(255,255,255,.8); }
.btn-portfolio-outline {
  position: relative;
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,.7);
  color: #fff;
  padding: .65rem clamp(.85rem, 2.5vw, 1.5rem);
  font-size: clamp(.66rem, 1.2vw, .72rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: var(--transition);
  border-radius: 0;
}
.btn-portfolio-outline::after {
  content: ""; position: absolute; inset: 0;
  border: 1.5px solid rgba(255,255,255,.7);
  transform: translate(6px, 6px);
  z-index: -1;
}
.btn-portfolio-outline:hover { background: #fff; color: var(--color-ink); }
@media (max-width: 575.98px) {
  .transformations-grid .row.g-4 { --bs-gutter-y: 1rem; }
  /* one tile per row on small phones */
  .transformations-grid .row.h-100 > .col-6 { width: 100%; }
  .transformations-grid .col-6 > .transform-tile,
  .transformations-grid .col-6 > .stat-box { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .btn-portfolio-outline::after { transform: translate(4px, 4px); }
}

/* ---------- Founder ---------- */
.founder { background: var(--color-paper); }
.founder h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1.25rem; }
.founder-quote {
  font-family: var(--font-display); font-style: normal; font-size: clamp(1.15rem, 2vw, 1.3rem); line-height: 1.45; color: var(--color-ink);
  border-left: 3px solid var(--color-accent); padding-left: 1rem; margin-bottom: 1.25rem;
}
.founder p { color: var(--color-text-muted); }
.signature { font-family: var(--font-script); font-size: clamp(1.8rem, 3vw, 2.1rem); color: var(--color-accent); line-height: 1; }
.signature-dash { font-family: var(--font-body); color: var(--color-accent); }
.signature small { font-family: var(--font-body); font-size: .95rem; color: var(--color-text-muted); font-weight: 400; white-space: nowrap; }
.founder-photo { overflow: hidden; }
.founder-photo img { width: 100%; object-fit: cover; }
@media (max-width: 991.98px) {
  .founder-photo { max-width: 560px; margin-inline: auto; }
}

/* ---------- Dream CTA ---------- */
.dream-cta { background: #fff8f2; padding: clamp(2.5rem, 6vw, 5rem) 0; }
.dream-image { position: relative; aspect-ratio: 1091 / 684; }
.dream-image img { width: 100%; height: 100%; object-fit: cover; }
.dream-text { position: relative; max-width: 23rem; } /* ~360px column, so the heading wraps as designed */
.dream-text .script-accent {
  font-size: clamp(2.4rem, 1rem + 3vw, 3.4rem); /* 54px at desktop */
  font-weight: 400; letter-spacing: .02em; line-height: 1;
  margin: 0 0 .1rem;
}
.dream-text h2 { font-size: clamp(2rem, 1rem + 2.6vw, 2.9rem); font-weight: 400; line-height: 1.1; margin: 0 0 1.5rem; }
.dream-text p:not(.script-accent) {
  color: var(--color-ink);
  font-size: .95rem; letter-spacing: .03em; line-height: 1.75;
  margin-bottom: 2.75rem;
}
.dream-text .btn-accent {
  font-family: var(--font-text); font-weight: 400;
  font-size: .75rem; letter-spacing: .08em;
  padding: .9rem 1.6rem;
}
/* Desktop: stays inside the container (the design's 1320px canvas); the image takes
   ~60% of the container and the text column fills the rest */
@media (min-width: 992px) {
  .dream-cta-inner > .col-lg-7 { width: 60.5%; }
  .dream-cta-inner > .col-lg-5 { width: auto; flex: 1 1 0; min-width: 0; }
  .dream-text { max-width: 25rem; padding: 1.5rem 0 1.5rem clamp(1rem, 2vw, 2rem); }
}
@media (max-width: 991.98px) {
  .dream-text { max-width: none; padding: 2rem 0 0; }
}

/* ---------- Carousel nav (projects + testimonials) ---------- */
.project-nav {
  --nav-size: clamp(40px, 5vw, 46px);
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: var(--nav-size); height: var(--nav-size); border: 1px solid var(--color-border);
  background: var(--color-cream); color: var(--color-ink);
  display: grid; place-items: center; transition: var(--transition);
}
.project-nav:hover { background: var(--color-ink); color: #fff; }
@media (max-width: 767.98px) {
  .project-nav { display: none; } /* touch: swipe the track; arrows would sit on top of the cards */
}
.project-nav.is-hidden { display: none; }
.project-nav-prev, .testimonial-nav-prev { left: -1.75rem; }
.project-nav-next, .testimonial-nav-next { right: -1.75rem; }
@media (max-width: 1399.98px) {
  .project-nav-prev, .testimonial-nav-prev { left: .5rem; }
  .project-nav-next, .testimonial-nav-next { right: .5rem; }
}

/* ---------- Recent Projects ---------- */
.recent-projects { background: var(--color-paper); }
.section-heading-split {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 1rem;
}
.section-heading-split .script-accent { font-size: var(--script-md); }
.project-carousel { position: relative; }
.project-track {
  width: 100%; display: flex; flex-wrap: nowrap; gap: 1.5rem;
  overflow-x: auto; overflow-y: hidden; cursor: grab;
  scroll-behavior: smooth; scrollbar-width: none;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.project-track:active { cursor: grabbing; user-select: none; }
.project-track::-webkit-scrollbar { display: none; height: 0; }
.project-track > .project-card { flex: 0 0 auto; width: calc((100% - 3rem) / 3); scroll-snap-align: start; }
@media (max-width: 991.98px) {
  .project-track > .project-card { width: calc((100% - 1.5rem) / 2); }
}
@media (max-width: 575.98px) {
  .project-track { gap: 1rem; }
  .project-track > .project-card { width: 85%; }
}
.project-card {
  border: 1px solid var(--color-border); padding: .75rem;
}
/* Cover image with a bottom info band (~20% of the image; grows if the text wraps) */
.project-media {
  position: relative; overflow: hidden; aspect-ratio: 3/4;
  background: var(--color-cream); cursor: zoom-in;
}
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card:hover .project-media img { transform: scale(1.06); }
.project-tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 1;
  background: #fff; color: var(--color-ink); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .06em; padding: .3rem .65rem;
}
.project-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  min-height: 20%; padding: .75rem 1rem .875rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: .125rem;
  background: rgba(0, 0, 0, .74); color: #fff; cursor: default;
}
.project-overlay h3 { color: #fff; font-size: 1.125rem; line-height: 1.25; }
.project-meta {
  display: flex; flex-wrap: wrap; gap: 0 .375rem;
  color: rgba(255, 255, 255, .82); font-size: .8125rem; line-height: 1.45; margin: 0 0 .375rem;
}
.project-meta-sep { color: var(--color-accent); }
.project-gallery-btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem;
  background: var(--color-accent); color: #fff; border: none; border-radius: 0;
  padding: .375rem .875rem; font-family: var(--font-body); font-weight: 500;
  font-size: .72rem; letter-spacing: .06rem; text-transform: uppercase;
  transition: background var(--transition);
}
.project-gallery-btn:hover { background: var(--color-accent-dark); }
.project-gallery-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.project-gallery-btn i { font-size: .8rem; }
/* cover image missing: keep the card usable, show a neutral tile */
.project-media.is-missing img { visibility: hidden; }
.project-media.is-missing::before {
  content: "\F42A"; /* bi-image */
  font-family: "bootstrap-icons"; font-size: 2.5rem; color: var(--color-text-muted);
  position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);
}
.project-noscript { margin: 0; color: var(--color-text-muted); }
@media (min-width: 1200px) {
  .project-overlay { padding: .875rem 1.25rem 1rem; }
  .project-overlay h3 { font-size: 1.25rem; }
}
@media (max-width: 575.98px) {
  .project-card { padding: .5rem; }
  .project-overlay { padding: .625rem .75rem .75rem; }
  .project-overlay h3 { font-size: 1rem; }
  .project-meta { font-size: .75rem; margin-bottom: .25rem; }
}

/* lightGallery theme — site colours/fonts on top of the library defaults */
.lg-outer .lg-thumb-outer { background-color: rgba(0, 0, 0, .6); }
.lg-outer .lg-thumb-item { border-radius: 0; border-width: 2px; }
.lg-outer .lg-thumb-item.active, .lg-outer .lg-thumb-item:hover { border-color: var(--color-accent); }
.lg-counter { font-family: var(--font-body); font-size: 1rem; color: rgba(255, 255, 255, .85); }
.lg-sub-html h4 { font-family: var(--font-display); color: #fff; font-size: 1.125rem; margin: 0 0 .25rem; }
.lg-sub-html p { font-family: var(--font-text); font-size: .875rem; color: rgba(255, 255, 255, .8); margin: 0; }
.lg-toolbar .lg-icon:focus-visible, .lg-actions .lg-icon:focus-visible, .lg-thumb-item:focus-visible {
  outline: 2px solid var(--color-accent); outline-offset: -2px;
}
.lg-actions .lg-next:hover, .lg-actions .lg-prev:hover, .lg-toolbar .lg-icon:hover { color: var(--color-accent); }

/* ---------- Testimonials ---------- */
.testimonials { background: #f0f1f7; }
.testimonial-carousel { position: relative; }
.testimonial-carousel .row {
  flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
  scroll-behavior: smooth; scrollbar-width: none; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; cursor: grab;
}
.testimonial-carousel .row:active { cursor: grabbing; user-select: none; }
.testimonial-carousel .row::-webkit-scrollbar { display: none; height: 0; }
.testimonial-carousel .row > [class*="col-"] { flex: 0 0 auto; width: 50%; scroll-snap-align: start; }
@media (max-width: 767.98px) {
  .testimonial-carousel .row > [class*="col-"] { width: 88%; }
}
.testimonial-card { background: rgba(255,255,255,.45); padding: clamp(1.5rem, 3vw, 2rem); height: 100%; margin: 0; }
.stars { color: #f5a623; font-size: .85rem; margin-bottom: 1rem; letter-spacing: .15em; }
.testimonial-card blockquote { margin: 0 0 1.25rem; font-style: italic; color: var(--color-text); text-align: justify; hyphens: auto; }
.testimonial-card figcaption { display: flex; align-items: baseline; gap: 0 .5rem; flex-wrap: wrap; }
.testimonial-card figcaption strong { font-family: var(--font-body); font-size: 1rem; }
.testimonial-card figcaption span { color: var(--color-text-muted); font-size: .85rem; }
@media (max-width: 575.98px) {
  .testimonial-card blockquote { text-align: left; }
}

/* ---------- Social + Contact ---------- */
.social-contact { background: var(--color-paper); }
.insta-eyebrow { font-size: var(--script-md); margin-bottom: .25rem; }
.social-contact h2 { font-size: clamp(1.45rem, 2.5vw, 1.7rem); margin-bottom: 1.5rem; }
.insta-handle-inline { color: var(--color-accent); font-family: var(--font-body); font-size: 1rem; font-weight: 500; overflow-wrap: anywhere; }
.insta-handle-inline:hover { text-decoration: underline; }
.insta-follow-btn { display: none; }
@media (max-width: 575.98px) {
  .insta-handle-inline { display: table; margin-top: .25rem; padding: .5rem 0; } /* own line, tap area sized to the text */
  .social-contact h2 { margin-bottom: 1.25rem; }
  .insta-grid { --bs-gutter-x: .75rem; --bs-gutter-y: .75rem; }
  .insta-follow-btn {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    width: 100%; margin: 1rem 0 1.5rem; padding: .85rem 1rem;
    border: 1.5px solid var(--color-accent); color: var(--color-accent);
    font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
    transition: var(--transition);
  }
  .insta-follow-btn:hover, .insta-follow-btn:focus-visible { background: var(--color-accent); color: #fff; }
}
/* touch screens have no hover: show the tile captions all the time */
@media (hover: none) {
  .insta-caption { opacity: 1; }
}
.insta-tile { position: relative; display: block; overflow: hidden; aspect-ratio: 1/1; }
.insta-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.insta-tile::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.insta-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
  font-size: clamp(1.6rem, 3vw, 2rem); color: #fff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.insta-caption {
  position: absolute; inset: auto 0 0 0; padding: .9rem .75rem .75rem; text-align: center; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,0));
  color: #fff; font-size: .82rem; opacity: 0; transition: opacity var(--transition);
}
.insta-follow {
  display: block; margin-top: .35rem; font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.85);
}
.insta-tile:hover img { transform: scale(1.08); }
.insta-tile:hover .insta-caption { opacity: 1; }

.contact-box {
  background: var(--color-accent); color: #fff;
  padding: clamp(1.5rem, 3vw, 2.5rem); height: 100%;
}
.contact-box .script-accent { color: #fff; font-size: var(--script-md); }
.contact-box h2 { color: #fff; font-size: clamp(1.45rem, 2.5vw, 1.7rem); margin-bottom: .75rem; }
.contact-box p:not(.script-accent) { color: rgba(255,255,255,.9); margin-bottom: 1.25rem; }
.contact-form { display: flex; flex-direction: column; gap: .75rem; }
.contact-form .form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* spam honeypot */
.form-status { margin: 0; font-size: .875rem; color: #fff; }
.form-status:empty { display: none; }
.contact-form input, .contact-form textarea {
  width: 100%; min-width: 0;
  border: 1px solid rgba(255,255,255,.5); border-radius: 0; background: rgba(255,255,255,.1); color: #fff;
  padding: .75rem 1rem; font-family: var(--font-body); font-size: 1rem; resize: none;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,.75); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; background: rgba(255,255,255,.18); border-color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--color-ink);
  border-top: 2px solid var(--color-accent);
  color: rgba(255,255,255,.6);
  padding: 3rem 0 0;
}
.footer-head {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
  padding-bottom: 2rem; margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { display: inline-flex; align-items: center; }
.footer-logo-full { height: clamp(60px, 8vw, 80px); width: auto; }
.footer-social { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-social-label { color: rgba(255,255,255,.75); font-size: .95rem; }
.footer-social-dash { width: 40px; height: 1px; background: rgba(255,255,255,.35); }
.social-icons { display: flex; flex-wrap: wrap; gap: .6rem; }
.social-icons a {
  width: 42px; height: 42px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05); color: #fff;
  display: grid; place-items: center; transition: var(--transition);
}
.social-icons a:hover { background: var(--color-accent); border-color: var(--color-accent); }
@media (max-width: 575.98px) {
  .footer-social-dash { display: none; }
}

.footer-top { padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-top > [class*="col-"] { min-width: 0; }
.footer-top h3 { color: #fff; font-size: 1.15rem; font-weight: 600; margin-bottom: .9rem; }
.footer-tick { display: block; width: 24px; height: 2px; background: var(--color-accent); margin-top: .5rem; }
.footer-col-divided { border-left: 1px solid rgba(255,255,255,.08); padding-left: 2rem; }
@media (max-width: 991.98px) {
  /* restore the normal column padding so all headings line up */
  .footer-col-divided { border-left: none; padding-left: calc(var(--bs-gutter-x) * .5); }
}
.footer-top ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; font-size: .9rem; }
.footer-top ul a { color: rgba(255,255,255,.6); }
.footer-top ul a:hover { color: var(--color-accent); }

.footer-contact-item { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1.5rem; }
.footer-contact-item:last-child { margin-bottom: 0; }
.footer-contact-item > div { min-width: 0; }
.footer-contact-item i { flex-shrink: 0; font-size: 1.15rem; color: rgba(255,255,255,.45); margin-top: .2rem; }
.footer-contact-item strong { display: block; color: #fff; font-weight: 600; margin-bottom: .35rem; }
.footer-contact-item p { margin: 0; color: rgba(255,255,255,.55); font-size: .92rem; line-height: 1.5; }
.footer-contact-item a { color: rgba(255,255,255,.85); }
.footer-contact-item a:hover { color: var(--color-accent); }

.footer-hours-item { margin-bottom: 1.25rem; }
.footer-hours-item:last-child { margin-bottom: 0; }
.footer-hours-item strong { display: block; color: #fff; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; font-weight: 600; margin-bottom: .5rem; }
.footer-hours-item p { margin: 0; display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.55); font-size: .92rem; }
.footer-hours-item i { color: rgba(255,255,255,.4); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between;
  padding: 1.5rem 0; font-size: .82rem;
}
.footer-bottom p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; color: rgba(255,255,255,.4); }
.footer-links a { color: rgba(255,255,255,.85); }
.footer-links a:hover { color: var(--color-accent); }
@media (max-width: 991.98px) {
  /* ~40px+ tap targets for text links */
  .footer-top ul { gap: 0; }
  .footer-top ul a, .footer-links a, .footer-contact-item a { display: inline-block; padding: .55rem 0; }
  .footer-contact-item a { padding: .35rem 0; }
}
@media (max-width: 991.98px) {
  /* stacked + left-aligned so the back-to-top button never covers the links */
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 999;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.45); /* keeps the black button visible over the black footer */
  background: var(--color-ink); color: #fff; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: var(--transition); box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-accent); border-color: var(--color-accent); }
@media (max-width: 575.98px) {
  .back-to-top { right: 1rem; bottom: 1rem; width: 42px; height: 42px; }
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .before-after, .before-after.is-active { transition: none; }
  .service-card img, .project-media img, .insta-tile img { transition: none; }
  .hero-play-ring { animation: none; }
}
