/* ===================================================================
   PAL AMARA — DESIGN SYSTEM
   Architects · Consultants · Developers
   Palette + type pulled directly from the brand mark:
   warm signal-orange, architectural charcoal/graphite, and paper-white.
   =================================================================== */

:root {
  /* --- Brand palette (from logo — used everywhere, no off-palette whites/blacks) --- */
  --color-orange:        #f2670f;   /* signature orange from "amara" + dot squares */
  /* --color-orange-dark:   #cf5407; */
  --color-orange-dark: #b3500c;
  --color-orange-light:  #ff8a3d;
  --color-orange-rgb:    242,103,15;
  --color-orange-dark-rgb: 179, 80, 12;

  --color-ink:           #191c22;   /* deep graphite-navy — a considered near-black with a cool undertone, used for all dark surfaces (header, footer, overlays) instead of flat black */
  --color-ink-rgb:       25,28,34;
  --color-graphite:      #4a4a4a;   /* the mark's structural gray, headings/body on light */
  --color-stone:         #7c7c7c;   /* secondary gray, from "PAL." wordmark */
  --color-mist:          #b9b6b1;   /* faint gray for rules / muted text */

  --color-paper:         #fdfcfa;   /* warm paper white — never pure #fff */
  --color-sand:          #f4f1ec;   /* warm off-white section backgrounds */
  --color-sand-deep:     #e9e4dc;

  /* --- Type --- */
  --font-display: 'Space Grotesk', 'Archivo', sans-serif;
  --font-body: 'Roboto', 'Segoe UI', sans-serif;

  /* --- Spacing / shape --- */
  --radius-sm: 3px;
  --radius-md: 8px;
  --radius-lg: 18px;
  --container: 1240px;
  --header-h: 96px;

  --ease: cubic-bezier(.25,.8,.25,1);
}

/* ===== Global Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 30px); }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-ink);
  background-color: var(--color-paper);
  overflow-x: hidden;
}
html, body {
  overflow-x: hidden;
  width: 100%;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.lightbox img { max-width: none; }

/* Signature mark: two small squares, lifted straight from the "PAL." dots
   in the logo. Used as the recurring identity motif in place of generic
   rules/numbering throughout the site. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  display: inline-flex;
  width: 7px; height: 7px;
  background: var(--color-orange);
}
.eyebrow::after {
  content: "";
  display: inline-flex;
  width: 7px; height: 7px;
  background: var(--color-graphite);
  margin-right: 2px;
}
.text-right .eyebrow { flex-direction: row-reverse; }
.text-right .eyebrow::after { margin-right: 0; margin-left: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

.line { display: none; } /* replaced site-wide by the .eyebrow square-mark */

section { padding: 50px 0; margin-top: 20px;}

/* ===== Buttons =====
   Deliberately light on borders — solid fills or quiet underlined links,
   never a boxed outline. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 34px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  color: var(--color-paper);
  background: var(--color-orange);
  border-radius: var(--radius-sm);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  cursor: pointer;
}
.btn i, .btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover {
  background: var(--color-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(var(--color-orange-rgb), 0.32);
}
.btn:hover .arrow, .btn:hover i.fa-arrow-right { transform: translateX(4px); }

.btn.btn-dark {
  background: var(--color-ink);
}
.btn.btn-dark:hover {
  background: #000;
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}
.btn.btn-compact { padding: 12px 26px; gap: 8px; }

/* Quiet text link with an animated underline + arrow — the site's
   secondary call to action, used wherever a boxed button would feel heavy. */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  padding-bottom: 4px;
  position: relative;
}
.cta-link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: currentColor;
  opacity: 0.35;
  transition: opacity 0.3s var(--ease);
}
.cta-link i { color: var(--color-orange); transition: transform 0.3s var(--ease); }
.cta-link:hover::after { opacity: 1; }
.cta-link:hover i { transform: translateX(5px); }

.cta-approach-toggle {
  background: none;
  border: none;
  cursor: pointer;
}
.cta-approach-toggle i {
  transition: transform 0.3s var(--ease);
}
.cta-approach-toggle.open i {
  transform: rotate(90deg);
}

.approach-bubble {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
  margin-bottom: 0;
}
/* .approach-bubble.open {
  margin-bottom: 12px;
} */
.approach-bubble.open.visible {
  opacity: 1;
  transform: translateY(0);
}

.approach-bubble-inner {
  position: relative;
  /* margin-top: 22px;
  margin-left: 6px;
  margin-right: 20px;
  margin-bottom: 30px; */
  margin: 22px 20px 30px 6px;
  padding: 24px 30px 24px 32px;
  background: var(--color-paper);
  border-left: 4px solid var(--color-orange);
  border-radius: 2px;
  box-shadow:
    0 10px 24px rgba(28,28,28,0.16),
    0 2px 6px rgba(28,28,28,0.08);
  transform: rotate(-1.2deg);
  max-height: 180px;
  overflow-y: auto; 
  /* Subtle, orange, visible scrollbar (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: var(--color-orange) transparent;
}
.approach-bubble-inner::-webkit-scrollbar {
    width: 5px;
}
.approach-bubble-inner::-webkit-scrollbar-track {
  background: transparent;
}
.approach-bubble-inner::-webkit-scrollbar-thumb {
  background: var(--color-orange);
  border-radius: 10px;
}

/* Folded corner — the classic sticky-note dog-ear, top-right */
.approach-bubble-inner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 22px 22px 0;
  border-color: transparent var(--color-sand) transparent transparent;
  filter: drop-shadow(-1px 1px 1px rgba(28,28,28,0.18));
}

/* Small pin accent, as if the note is pinned to the page */
.approach-bubble-inner::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-orange);
  box-shadow: 0 2px 4px rgba(28,28,28,0.3);
}

.approach-bubble-inner p {
  margin: 0;
  color: var(--color-graphite);
  line-height: 1.7;
  font-style: italic;
}

/* ===== Header =====
   Stays within the brand's dark/orange register at every state — never
   flips to a plain white bar. Over imagery it's fully transparent; once
   scrolled (or on interior pages) it becomes a frosted graphite panel. */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  background: transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height 0.60s var(--ease);
}
.logo-area { display: flex; align-items: center; height: 100%; overflow: hidden; margin-left: calc(-1 * clamp(8px, 2vw, 40px)); }
.logo-area a { display: flex; align-items: center; }
.logo-area img {
  display: block;
  height: 60px;
  max-height: 60px;
  width: auto;
  transition: height 0.3s var(--ease), max-height 0.3s var(--ease);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 44px;
}
.main-nav a {
  text-decoration: none;
  color: var(--color-paper);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.35s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-orange);
  transition: width 0.3s var(--ease);
}

@media (max-width: 1000px) {
    .main-nav ul {
        gap: 30px;
    }
}
/* .main-nav a:hover::after { width: 100%; }
.main-nav a:hover { color: var(--color-orange); } */

@media (hover: hover) {
  .main-nav a:hover::after { width: 100%; }
  .main-nav a:hover { color: var(--color-orange); }
}
.main-nav a.tap-active::after { width: 100%; }
.main-nav a.tap-active { color: var(--color-orange); }

header.solid,
header.scrolled,
header.overlay-header {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 4px 24px rgba(28,28,28,0.08);
}
header.solid .main-nav a,
header.scrolled .main-nav a,
header.overlay-header .main-nav a { color: var(--color-ink); }
header.solid .logo-area img,
header.scrolled .logo-area img,
header.overlay-header .logo-area img { filter: none; }
header.solid .menu-trigger span,
header.scrolled .menu-trigger span,
header.overlay-header .menu-trigger span { background-color: var(--color-ink); }

.menu-trigger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--color-sand);
}
.menu-trigger.active span:nth-child(2) {
  opacity: 0;
}
.menu-trigger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--color-sand);
}

/* Scroll-shrink behavior — completely unchanged, still only kicks in
   once .scrolled is actually added by JS on scroll: */
header.scrolled .header-wrap { height: 76px; }
header.scrolled .logo-area img { height: 60px; max-height: 60px; }



/* Homepage only: logo appears large on load, then eases down to a resting
   size that's still bigger than the site-wide default (60px). The header
   bar itself grows to match during the intro (so the oversized logo isn't
   clipped by .logo-area's overflow:hidden), then both settle together.
   The scroll-shrink rules above still take over normally once scrolled. */
.home-header .header-wrap {
  height: 130px; /* used to be: height: 200px; */
}
@media (max-width: 480px) {
  .home-header .header-wrap {
    height: 100px;
  }
  .hero-pretitle {
    margin-bottom: 50px;
  }
}
.home-header .logo-area img {
  height: clamp(70px, 15vw, 85px);
  max-height: clamp(70px, 15vw, 112px);
}

/* ===== Homepage logo intro overlay (v2) ===== */
.logo-intro.li-fade-out {
  background-color: rgba(255, 255, 255, 0);
  /* opacity: 0; */
  pointer-events: none;
}

.logo-intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* gap: 5px; */
}
 
.li-top,
.li-bottom {
  width: 37vw;
}

/* Beat 2: travel — JS switches both to position:fixed (see JS file) right
   before adding this class, then this class supplies the actual
   transform (translate + scale, plus rotate for li-bottom) toward each
   piece's computed target. Duration/easing intentionally slower and more
   dramatic than the entrance, since this is the "cool" main movement. */
.li-piece.li-traveling {
  transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.4s var(--ease);
}

/* The precise combined artwork — positioned via JS to sit exactly over
   the real header logo, crossfades in right as the two pieces finish
   traveling, masking any small landing imprecision between them. */
.li-combined {
  position: fixed;
  opacity: 0;
  transform: none;
  transition: opacity 0.3s var(--ease);
  z-index: 2;
}
.logo-intro.li-combined-visible .li-combined {
  opacity: 1;
}
.logo-intro.li-combined-visible .li-top,
.logo-intro.li-combined-visible .li-bottom,
.logo-intro.li-combined-visible .li-stack-piece,
.logo-intro.li-combined-visible .li-pretitle {
  opacity: 0;
}


/* Mobile menu trigger */
.menu-trigger {
  display: none;
  position: relative;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
}
.menu-trigger span {
  width: 26px;
  height: 2px;
  background-color: var(--color-paper);
  transition: all 0.3s var(--ease);
}

/* ===== Hero Slider (home) =====
   The zoom (Ken Burns) runs continuously and independently on every slide;
   only opacity is toggled to crossfade. This is what makes the transition
   read as smooth and continuous, like leptosestates.com, instead of
   snapping back to a fixed start-scale every time a slide re-activates. */
.hero-slider {
  position: relative;
  /* height: 100vh; */
  /* height: 100svh; */
  height: var(--stable-vh, 100vh); /* falls back to 100vh only if JS hasn't run yet */
  min-height: 640px;
  width: 100%;
  overflow: hidden;
  background: var(--color-ink);
  margin-top: 55px;
}
.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  /* background-position: center; */
  background-position: center 50%;
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 2s ease-in-out;
  animation: heroKenBurns 26s ease-in-out infinite alternate;
}
.hero-slider .slide:nth-child(2) { animation-delay: -6s; }
.hero-slider .slide:nth-child(3) { animation-delay: -12s; }
.hero-slider .slide:nth-child(4) { animation-delay: -18s; }
.hero-slider .slide:nth-child(5) { animation-delay: -24s; }
.hero-slider .slide.active { opacity: 1; z-index: 1; }
@keyframes heroKenBurns {
  0%   { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.12) translate(-1%, -1%); }
}

.hero-slider .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--color-ink-rgb),0.5) 0%, rgba(var(--color-ink-rgb),0.22) 45%, rgba(var(--color-ink-rgb),0.78) 100%);
  z-index: 2;
}

.hero-pretitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 80px;
  text-align: center;
}
.hero-pretitle span {
  font-family: 'Poppins', var(--font-display);
  font-weight: 100;
  /* font-size: 2rem; */
  text-transform: uppercase;
  color: var(--color-paper);
  -webkit-text-stroke: 1px rgba(0,0,0,0.6);
  paint-order: stroke fill;
  text-shadow:
    0 2px 4px rgba(0,0,0,0.9),
    0 4px 12px rgba(0,0,0,0.85),
    0 8px 24px rgba(0,0,0,0.7),
    0 0 40px rgba(0,0,0,0.5);
}
.hero-pretitle-line1, .li-pretitle-line1 {
  letter-spacing: 1.8em;
  margin-right: -1.5em;
  font-size: clamp(1.4rem, 5vw, 2.4rem);
}
.hero-pretitle-line2, .li-pretitle-line2 {
  letter-spacing: 0.80em;
  margin-right: -0.5em;
  font-size: clamp(1rem, 2.5vw, 2.2rem);
}
/*.hero-pretitle span {*/
/*  font-size: clamp(1.4rem, 5vw, 2.4rem);*/
/*}*/

.hero-content {
  position: absolute;
  z-index: 3;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  color: var(--color-paper);
  padding: 0 20px;
}
.hero-content .eyebrow { color: var(--color-orange-light); justify-content: center; }
.hero-content .eyebrow::after { background: rgba(255,255,255,0.6); }
.hero-content h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  color: var(--color-paper);
  max-width: 920px;
  margin: 0 auto 20px;
}
.hero-content p {
  max-width: 560px;
  margin: 0 auto 34px;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
}

/* Staggered entrance once the page has loaded */
.hero-content .eyebrow,
.hero-content h1,
.hero-content p,
.hero-content .btn {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.fade-in.loaded .hero-content .eyebrow { transition-delay: 0.2s; }
.fade-in.loaded .hero-content h1 { transition-delay: 0.35s; }
.fade-in.loaded .hero-content p { transition-delay: 0.5s; }
.fade-in.loaded .hero-content .btn { transition-delay: 0.65s; }
.fade-in.loaded .hero-content .eyebrow,
.fade-in.loaded .hero-content h1,
.fade-in.loaded .hero-content p,
.fade-in.loaded .hero-content .btn {
  opacity: 1;
  transform: translateY(0);
}

.hero-msgs { display: grid; }
.hero-msgs .hero-msg { grid-area: 1 / 1; margin: 0 auto; }
.hero-content .hero-msgs .hero-msg { opacity: 0 !important; transition: opacity .8s ease; animation: none !important; }
.hero-content .hero-msgs .hero-msg.active { opacity: 1 !important; }
.hero-msgs.no-anim .hero-msg { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .hero-content .hero-msgs .hero-msg { transition: none !important; } }

@media (prefers-reduced-motion: reduce) { .hero-msgs .hero-msg { transition: none; } }

.hero-content .hero-msgs .hero-msg {
  font-size: clamp(2rem, 2.7vw, 5.3rem); /*clamp(.85rem, 1.7vw, 1.3rem);*/
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.4;
  color: #fff;
  max-width: 50ch;
  text-shadow: 0 2px 14px rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.35);
}

@media(max-width:480px) {
    .hero-msgs .hero-msg { font-size: 1.5rem !important; };
}

.hero-content .hero-msgs { margin-top: clamp(1rem, 1vh, 2rem); } /*clamp(2rem, 8vh, 6rem); }*/
.hero-content .hero-msgs .hero-msg::before,
.hero-content .hero-msgs .hero-msg::after {
  content: ""; display: block; width: 40px; height: 1px;
  background: currentColor; opacity: .85; margin: .7em auto;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 80px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--color-paper);
  font-size: 1.5rem;
  opacity: 0.7;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ===== Floating stats strip — overlaps the base of the hero ===== */
.stats-strip {
  position: relative;
  z-index: 4;
  max-width: 1080px;
  margin: -78px auto 0;
  padding: 0 20px;
}
.stats-strip .stats-inner {
  background: var(--color-ink);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 30px 60px rgba(0,0,0,0.28);
  overflow: hidden;
}
.stats-strip .stat {
  padding: 34px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stats-strip .stat:last-child { border-right: none; }
.stats-strip .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--color-orange-light);
  margin-bottom: 6px;
}
.stats-strip .stat span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
@media (max-width: 768px) {
  .stats-strip .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stats-strip .stat:nth-child(2) { border-right: none; }
  .stats-strip { margin-top: -50px; }
}

/* ===== Alternating split sections (About / Contact) ===== */
.split-section { background: var(--color-paper); position: relative; scroll-margin-top: 100px; }
/* Contact sits right after the full-bleed, animated Projects banner — a
   smaller scroll-margin here means jumping to it via the nav scrolls
   further down the page, clearing that banner out of view entirely
   instead of leaving a sliver of it flickering across the fade-animation's
   visibility threshold. Contact's own ~110px of top padding (from the
   generic 'section' rule) is enough on its own to keep the header clear
   of the heading text, so this doesn't need the full 100px other sections use. */
#contact-section { scroll-margin-top: 20px; }
.split-section.alt {
  background-color: var(--color-sand);
  background-image:
    linear-gradient(rgba(74,74,74,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,74,74,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}

.fax-line { position: relative; cursor: default; width: fit-content; }
.fax-line .fax-val { position: relative; }
.fax-line .fax-tip {
  position: absolute; left: 100%; top: 50%; margin-left: .7em;
  transform: translateY(-50%) translateX(-.25em);
  background: var(--color-orange); color: #fff;
  font-size: .8em; line-height: 1; padding: .4em .7em; border-radius: .3em;
  opacity: 0; pointer-events: none; white-space: nowrap; z-index: 5;
  transition: opacity .2s, transform .2s;
}
/*.fax-line:hover .fax-tip,*/
/*.fax-line:focus-visible .fax-tip,*/
/*.fax-line.show-label .fax-tip { opacity: 1; transform: translateY(-50%); }*/

.fax-line.show-label .fax-tip { opacity: 1; transform: translateY(-50%); }
@media (hover: hover) and (pointer: fine) {
  .fax-line:hover .fax-tip { opacity: 1; transform: translateY(-50%); }
}

.split-layout {
  display: flex;
  align-items: center;
  gap: 80px;
}
.split-layout.reverse { flex-direction: row-reverse; }

.split-layout {
  display: flex;
  align-items: center;
  gap: 80px;
}

.split-media { flex: 1; position: relative; }
/* Offset drafting-frame behind the image — a nod to architectural plans */
.split-media::before {
  content: "";
  position: absolute;
  top: 22px; left: 22px;
  width: 100%; height: 100%;
  border: 2px solid var(--color-orange);
  border-radius: var(--radius-md);
  z-index: 0;
}
.split-layout.reverse .split-media::before { left: auto; right: 22px; }
@media (max-width: 576px) { /*480*/
  .split-media::before {
    left: 10px;
    right: auto;
  }
  .split-layout.reverse .split-media::before {
    right: 10px;
    left: auto;
  }
}
.split-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: 0 24px 55px rgba(28,28,28,0.22);
  transition: transform 0.6s var(--ease);
}
.split-media:hover img { transform: scale(1.05); }
.split-text { flex: 1; max-width: 520px; }
.split-text h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 20px; }
.split-text p { color: var(--color-graphite); font-size: 1.10rem; }
.split-text h5 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 10px; color: var(--color-graphite); }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin: 26px 0 30px;
  padding-top: 22px;
  border-top: 1px solid var(--color-sand-deep);
}
.meta-row div { font-size: 0.85rem; color: var(--color-stone); }
.meta-row strong { display: block; font-family: var(--font-display); color: var(--color-ink); font-size: 0.98rem; }

.contact-lines p { font-size: 1.05rem; margin-bottom: 14px; display: flex; align-items: center; }
.contact-lines a { color: var(--color-ink); text-decoration: none; transition: color .3s; }
.contact-lines a:hover { color: var(--color-orange); }
.contact-lines i {
  color: var(--color-paper);
  background: var(--color-orange);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 14px;
  font-size: 0.85rem;
  flex-shrink: 0;
}
/* the enquiry button's own icon should NOT get the circular badge styling above */
.contact-lines a.btn { color: var(--color-paper); text-decoration: none; }
.contact-lines a.btn i {
  background: none;
  width: auto; height: auto;
  border-radius: 0;
  margin-right: 0;
  font-size: inherit;
}

/* ===== Full-bleed project banner teaser (distinct rhythm from the split sections) ===== */
#projects-section { padding: 0; }
.project-banner {
  position: relative;
  height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--color-ink);
  text-decoration: none;
}
.project-banner img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 8s var(--ease);
}
.project-banner:hover img { transform: scale(1.06); }
.project-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(var(--color-ink-rgb),0.92) 0%, rgba(var(--color-ink-rgb),0.35) 55%, rgba(var(--color-ink-rgb),0.1) 100%);
}
.project-banner-content {
  position: relative; z-index: 2;
  padding: 60px;
  color: var(--color-paper);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
}
.project-banner-content .eyebrow::after { background: rgba(255,255,255,0.6); }
.project-banner-content h2 { color: var(--color-paper); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 8px; }
.project-banner-content p { color: rgba(255,255,255,0.8); max-width: 480px; font-size: 1.02rem; }
.project-banner-tag {
  display: block;
  width: fit-content;
  background: var(--color-orange);
  color: var(--color-paper);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 3px;
  margin-bottom: 24px;
}

/* ===== Project thumbnails ===== */
.projects-thumbs-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 50px;
}

.projects-thumbs-wrap {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* smooth native swipe on iOS */
  scrollbar-width: none;
}
.projects-thumbs-wrap::-webkit-scrollbar { display: none; }

.projects-thumbs-track {
  display: flex;
  gap: 24px;
  padding: 6px 4px; /* room so the hover scale doesn't get clipped */
}

.project-thumb {
  flex: 0 0 auto;
  background: none;
  border: none;
  cursor: pointer;
  text-align: center;
}
.project-thumb img {
  width: 120px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
  margin: 0 auto 10px;
  transition: transform 0.3s var(--ease);
}
.project-thumb span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-graphite);
  transition: color 0.3s var(--ease);
}
.project-thumb:hover img,
.project-thumb.active img {
  transform: scale(1.12);
}
.project-thumb:hover span,
.project-thumb.active span {
  color: var(--color-orange);
}

.projects-thumbs-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-paper);
  border: 1px solid var(--color-sand-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.projects-thumbs-arrow:hover { background: var(--color-orange); color: var(--color-paper); }
.projects-thumbs-arrow.hidden { visibility: hidden; }


/* ===== Main project slider ===== */
.projects-slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.projects-slider {
  flex: 1;
  min-width: 0;
}

/* .project-slide {
  display: none;
}
.project-slide.active {
  display: block;
  animation: projectSlideIn 0.5s var(--ease);
} */
.project-slide {
  display: none;
  max-width: 100%;
  margin: 0 auto;
}
.project-slide.active {
  display: block;
  animation: projectSlideIn 0.5s var(--ease);
}
@keyframes projectSlideIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.projects-slider-arrow {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  color: var(--color-ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.projects-slider-arrow:hover { background: var(--color-orange); color: var(--color-paper); }

.credentials-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.credentials-list li {
  font-size: 0.95rem;
  color: var(--color-graphite);
  line-height: 1.6;
}
.credentials-list strong {
  color: var(--color-ink);
  font-family: var(--font-display);
  margin-right: 6px;
}

.credentials-trigger-text {
  display: inline-block;
  margin-bottom: 16px;
  margin-right: 10px;
  font-size: 0.85rem;
  color: var(--color-paper);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.85;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}
/* .credentials-trigger-text:hover {
  color: var(--color-orange);
  opacity: 1;
} */
.credentials-trigger-text {
  position: absolute;
  top: 10px;            /* was 20px — sits higher, closer to the top edge */
  right: 20px;
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-paper);
  text-decoration: none;   /* was underline */
  opacity: 0.85;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}
/* .credentials-trigger-text:hover {
  color: var(--color-orange);
  opacity: 1;
} */
@media (hover: hover) {
  .credentials-trigger-text:hover {
    color: var(--color-orange);
    opacity: 1;
  }
}
.credentials-trigger-arrow {
  font-size: 0.75rem;
}

.credentials-popup {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 16px;
  width: 320px;
  max-width: 90vw;
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease);
  z-index: 20;
  overflow-y: auto;   /* NEW — scrolls internally once content exceeds max-height */
  /* max-height is set dynamically via JS, matching .project-card's real height */
}
.credentials-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.credentials-popup h3 {
  font-family: var(--font-display);
  margin-bottom: 18px;
  color: var(--color-ink);
}

.credentials-popup-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-stone);
}
/* .credentials-popup-close:hover { color: var(--color-orange); } */
@media (hover: hover) {
  .credentials-popup-close:hover { color: var(--color-orange); }
}

@media (max-width: 1250px) {
  .credentials-popup {
    margin-left: 6px;
  }
}

/* On narrower screens, there's no room beside the card — drop it below
   instead, full width, sliding down rather than in from the side. */
@media (max-width: 1230px) {
  .credentials-popup {
    left: 0;
    margin-left: 0;
    top: calc(100% + 16px);
    width: 100%;
    max-width: none;
    transform: translateY(-12px);
  }
  .credentials-popup.active {
    transform: translateY(0);
  }

  /* .credentials-trigger-arrow {
    transform: rotate(90deg);
  } */
  .credentials-trigger-arrow {
    transform: rotate(90deg);
    transition: transform 0.3s var(--ease);
  }
  .credentials-trigger-text.popup-open .credentials-trigger-arrow {
    transform: rotate(-90deg);
  }
}
/* ===== Breadcrumb ===== */
.breadcrumb {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 18px 40px;
  background: var(--color-sand);
  border-bottom: 1px solid var(--color-sand-deep);
}
.breadcrumb a { color: var(--color-stone); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-orange); }
.breadcrumb span { color: var(--color-mist); margin: 0 8px; }
.breadcrumb .current { color: var(--color-orange); }

/* ===== Projects hero banner (interior pages) ===== */
.page-banner {
  position: relative;
  /* padding: calc(var(--header-h) + 54px) 0 62px; */
  background-color: var(--color-ink);
  background-image:
    linear-gradient(rgba(var(--color-orange-rgb),0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--color-orange-rgb),0.08) 1px, transparent 1px),
    linear-gradient(135deg, var(--color-ink), var(--color-graphite));
  background-size: 44px 44px, 44px 44px, 100% 100%;
  color: var(--color-paper);
  text-align: left;
  overflow: hidden;
  margin-top: 50px;
}
/* Architectural drafting-style corner brackets, replacing the old circle motif */
.page-banner::after {
  content: "";
  position: absolute;
  top: 34px; right: 34px;
  width: 64px; height: 64px;
  border-top: 2px solid rgba(var(--color-orange-rgb), 0.55);
  border-right: 2px solid rgba(var(--color-orange-rgb), 0.55);
}
.page-banner::before {
  content: "";
  position: absolute;
  bottom: 30px; left: 30px;
  width: 64px; height: 64px;
  border-bottom: 2px solid rgba(var(--color-orange-rgb), 0.4);
  border-left: 2px solid rgba(var(--color-orange-rgb), 0.4);
}
.banner-watermark {
  position: absolute;
  right: 5%;
  top: 50%;
  font-size: 260px;
  line-height: 1;
  transform: translateY(-50%);
  color: rgba(var(--color-orange-rgb), 0.14);
  pointer-events: none;
  user-select: none;
  z-index: 1;
  animation: watermarkDrift 24s ease-in-out infinite alternate;
}
@keyframes watermarkDrift {
  0%   { transform: translateY(-50%) scale(1) rotate(0deg); }
  100% { transform: translateY(-53%) scale(1.06) rotate(3deg); }
}
@media (max-width: 768px) {
  .banner-watermark { font-size: 150px; right: -10px; }
}
@media (max-width: 520px) {
  .banner-watermark { display: none; }
}
.page-banner .container { position: relative; z-index: 2; }

/* Load-in choreography: eyebrow rises, heading slides in from the left,
   the underline slides in to meet it from the right, then the paragraph
   and the live project count settle in. */
.page-banner .eyebrow,
.page-banner h1,
.page-banner p,
.page-banner .banner-count {
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.page-banner .eyebrow { color: var(--color-orange-light); transform: translateY(16px); }
.page-banner h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  color: var(--color-paper);
  max-width: 700px;
  transform: translateX(-46px);
}
.page-banner p { max-width: 100ch; color: rgba(255,255,255,0.82); font-size: 1rem; margin-top: 8px; transform: translateY(16px); }

.banner-underline {
  /*width: 90px;*/
  height: 3px;
  background: var(--color-orange);
  margin: 14px 0 20px;
  opacity: 0;
  transform: translateX(46px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), width 0.4s var(--ease);
}

.banner-count {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;      /* was implicitly nowrap — now allowed to drop to a new line */
  font-family: var(--font-display);
  font-size: 0.86rem;
  color: rgba(255,255,255,0.75);
  margin-top: 16px;
  transform: translateY(16px);
  max-width: 100%;
  gap: 8px;
}
.banner-count span,
.banner-count strong {
  white-space: nowrap;   /* each phrase stays intact — never splits mid-word */
}
.banner-count strong { color: var(--color-orange-light); font-size: 1.15rem; }

/* NEW — only at 1266px and below: shrink slightly so the nowrap text
   still fits comfortably, and push it clear of the decorative bracket
   (which sits fixed at left: 30px, spanning ~64px wide) so they never
   overlap. */
@media (max-width: 1266px) {
  .banner-count {
    font-size: 0.8rem;
    gap: 1px 8px;
    margin-left: 25px;
  }
}

.fade-in.loaded .page-banner .eyebrow { transition-delay: 0.15s; }
.fade-in.loaded .page-banner h1 { transition-delay: 0.3s; }
.fade-in.loaded .page-banner .banner-underline { transition-delay: 0.55s; }
.fade-in.loaded .page-banner p { transition-delay: 0.7s; }
.fade-in.loaded .page-banner .banner-count { transition-delay: 0.85s; }
.fade-in.loaded .page-banner .eyebrow,
.fade-in.loaded .page-banner h1,
.fade-in.loaded .page-banner .banner-underline,
.fade-in.loaded .page-banner p,
.fade-in.loaded .page-banner .banner-count {
  opacity: 1;
  transform: translate(0,0);
}

/* Status badge: hidden by default, fades in on hover of the project card
   Status badge on each project photo — find ALL existing rules starting
   with ".project-status" in main.css and delete them, then paste this
   block in their place. Having it fully self-contained avoids any risk
   of an old, incomplete rule (missing position/top/left) still lurking
   elsewhere in the file and causing exactly the bug we just found. */
.project-status {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;         /* was 0.72rem — significantly larger */
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--color-orange);
  color: var(--color-paper);
  padding: 8px 15px;         /* was 5px 12px — larger to match */
  border-radius: 4px;
  /* opacity: 0; */
  box-shadow: 0 6px 16px rgba(0,0,0,0.25), 0 2px 4px rgba(0,0,0,0.2);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
/*Now Selling: orange*/
.project-status.status-soldout { background: var(--color-stone); } /*mid grey*/
.project-status.status-constructing { background: var(--color-graphite); }
.project-status.status-private { background: var(--color-ink); }
.project-status.status-soon { background: var(--color-orange-dark); }

.projects-card.projects-card-disabled {
  cursor: default;
}

/* Badge hover — clickable vs disabled */
.projects-card-disabled:hover .project-status {
  opacity: 0;
}
.projects-card:not(.projects-card-disabled):hover .project-status {
  transform: scale(1.02);
}

/* ── CLICKABLE cards — always the same uniform orange, regardless of
   status. (.project-btn's own base rule already handles the resting
   translucent-orange state — this just governs the hover.) ── */
.projects-card:hover .project-btn { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.project-btn:hover {
  background: var(--color-orange);
  box-shadow: 5px 5px 10px rgba(var(--color-orange-rgb), 0.32);
}

/* ── NON-CLICKABLE cards — bigger button, and colored to match that
   project's OWN status badge color specifically. Fallback below covers
   "Now Selling" and "no status set" (both use the default orange). ── */
.projects-card-disabled .project-btn {
  background: rgba(var(--color-orange-rgb), 0.28);
  color: var(--color-paper);
  padding: 18px 38px;
  font-size: 1.15rem;
}
.projects-card-disabled .project-btn:hover {
  background: var(--color-orange);
  box-shadow: 5px 5px 10px rgba(var(--color-orange-rgb), 0.32);
}
 
.projects-card-disabled[data-status="soon"] .project-btn {
  background: rgba(var(--color-orange-dark-rgb), 0.28);
}
.projects-card-disabled[data-status="soon"] .project-btn:hover {
  background: var(--color-orange-dark);
  box-shadow: 5px 5px 10px rgba(var(--color-orange-dark-rgb), 0.32);
}
 
.projects-card-disabled[data-status="soldout"] .project-btn {
  background: rgba(124, 124, 124, 0.28); /* --color-stone */
}
.projects-card-disabled[data-status="soldout"] .project-btn:hover {
  background: var(--color-stone);
  box-shadow: 5px 5px 10px rgba(124, 124, 124, 0.32);
}
 
.projects-card-disabled[data-status="constructing"] .project-btn {
  background: rgba(74, 74, 74, 0.28); /* --color-graphite */
}
.projects-card-disabled[data-status="constructing"] .project-btn:hover {
  background: var(--color-graphite);
  box-shadow: 5px 5px 10px rgba(74, 74, 74, 0.32);
}
 
.projects-card-disabled[data-status="private_residence"] .project-btn {
  background: rgba(var(--color-ink-rgb), 0.28);
}
.projects-card-disabled[data-status="private_residence"] .project-btn:hover {
  background: var(--color-ink);
  box-shadow: 5px 5px 10px rgba(var(--color-ink-rgb), 0.32);
}

/* ===== Projects listing grid ===== */
.projects-intro-grid {
  padding: 25px 0 60px;
}
.projects-count {
  font-family: var(--font-display);
  color: var(--color-stone);
  font-size: 0.95rem;
  margin-bottom: 40px;
}
.projects-count strong { color: var(--color-orange); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px 100px;
}
.project-grid.single { grid-template-columns: 1fr; max-width: 820px; }

/* Cascading reveal for the cards, replaying with the shared .fade-section
   observer used across the site */
.project-grid .projects-card {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-section.visible .project-grid .projects-card { opacity: 1; transform: translateY(0); }
.project-grid .projects-card:nth-child(1) { transition-delay: 0s; }
.project-grid .projects-card:nth-child(2) { transition-delay: 0.1s; }
.project-grid .projects-card:nth-child(3) { transition-delay: 0.2s; }
.project-grid .projects-card:nth-child(4) { transition-delay: 0.3s; }

.projects-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  cursor: pointer;
  display: block;
  text-decoration: none;
}
.projects-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.projects-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(var(--color-ink-rgb),0.88) 0%, rgba(var(--color-ink-rgb),0.15) 55%, rgba(var(--color-ink-rgb),0.05) 100%);
  transition: background 0.4s var(--ease);
}
.projects-card:hover img { transform: scale(1.08); }

.project-info {
  position: absolute;
  bottom: 30px; left: 40px; right: 28px;
  color: var(--color-paper);
  z-index: 2;
}
.project-info h3 { font-size: 2.5rem; margin-bottom: 4px; color: var(--color-paper); }
.project-info p { font-size: 1.3rem; opacity: 0.85; display: flex; align-items: center; gap: 6px; }
.project-info p i { color: var(--color-orange-light); }

/* Translucent orange by default; solidifies with a directional shadow on hover */
.project-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(var(--color-orange-rgb), 0.28);
  backdrop-filter: blur(6px);
  border: none;
  color: var(--color-paper);
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0;
  transition: all 0.35s var(--ease);
  z-index: 3;
}
 
/* Right-aligned variant — same class name convention your
   .section-head.text-right already uses, so it lines up with the title
   it belongs to. */
.section-note.text-right {
  margin-left: auto;
  text-align: right;
}

/* Replace your existing .section-note / .section-note.text-right rules
   entirely with this. */

.section-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--color-sand);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  max-width: 640px;
  /*margin-bottom: 40px;*/
  box-shadow: 0 8px 24px rgba(28,28,28,0.06);
  border-left: 3px solid var(--color-orange);
}

/* Mirrors the accent to the right side, for the right-aligned Benefits
   section — and pushes the whole card to the right, matching that
   section's overall right-leaning layout. */
.section-note-right {
  margin-left: auto;
  border-left: none;
  border-right: 3px solid var(--color-orange);
}
/* .section-note-right p {
  text-align: right;
} */
.section-note-right p {
  text-align: justify;
  text-align-last: left;
}

.section-note i {
  color: var(--color-orange);
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.section-note p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-graphite);
  text-align: justify;
}

/* ===== Fade / reveal animations ===== */
.fade-in { opacity: 0; transition: opacity 0.8s ease-in-out; }
.fade-in.loaded, .fade-in.visible { opacity: 1; }

.fade-section { opacity: 0; transform: translateY(40px); transition: all 0.8s var(--ease); }
.fade-section.visible { opacity: 1; transform: translateY(0); }

.fade-right, .fade-left, .fade-bottom { opacity: 0; transition: all 0.9s var(--ease); }
.fade-right { transform: translateX(40px); }
.fade-left { transform: translateX(-40px); }
.fade-bottom { transform: translateY(40px); }
.fade-section.visible .fade-right,
.fade-section.visible .fade-left,
.fade-section.visible .fade-bottom {
  opacity: 1; transform: translate(0,0);
}

/* ===== Slick overrides ===== */
.slick-prev, .slick-next {
  background: rgba(28,28,28,0.55);
  border-radius: 50%;
  width: 44px; height: 44px;
  z-index: 5;
}
.slick-prev:before, .slick-next:before {
  color: var(--color-paper);
  font-size: 18px;
  opacity: 1;
}
.slick-prev:hover, .slick-next:hover,
.slick-prev:focus, .slick-next:focus { background: var(--color-orange); }
.slick-dots li button:before { font-size: 9px; color: var(--color-paper); opacity: 0.6; }
.slick-dots li.slick-active button:before { color: var(--color-orange); opacity: 1; }

/* ===== Footer =====
   White, like the header — matches how the logo is normally presented,
   set apart from the page above it with a soft shadow rather than a
   color change. */
.site-footer {
  background-color: var(--color-paper);
  color: var(--color-graphite);
  padding-top: 40px;
  box-shadow: 0 -6px 24px rgba(28,28,28,0.07);
  position: relative;
  z-index: 2;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px 30px;
  border-bottom: 1px solid var(--color-sand-deep);
}
.footer-column { flex: 1; min-width: 230px; }
.footer-logo { margin-bottom: 18px; } /*max-width: 170px; */

@media(min-width: 561px) {
   .footer-logo { margin-top: 45px; }
}

.tagline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-orange-dark);
  line-height: 1.5;
}

.footer-address-link { display: flex; align-items: flex-start; gap: .5em; }
.footer-address-link i { flex: 0 0 auto; margin-top: .3em; }

.footer-links h4, .footer-contact h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--color-ink);
}
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 5px; }
.footer-links ul li a { color: var(--color-graphite); text-decoration: none; transition: color 0.3s; }
/* .footer-links ul li a:hover { color: var(--color-orange); } */
@media (hover: hover) {
  .footer-links ul li a:hover { color: var(--color-orange); }
  .footer-contact a:hover { color: var(--color-orange); }
  .social-icons a:hover { background: var(--color-orange); border-color: var(--color-orange); color: var(--color-paper); }
}
.footer-contact p { font-size: 0.92rem; margin-bottom: 12px; color: var(--color-graphite); }
.footer-contact a { color: var(--color-ink); text-decoration: none; }
/* .footer-contact a:hover { color: var(--color-orange); } */
.social-icons { margin-top: 18px; display: flex; gap: 12px; }
.social-icons a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--color-sand-deep);
  border-radius: 50%;
  color: var(--color-graphite);
  transition: all 0.3s;
}
/* .social-icons a:hover { background: var(--color-orange); border-color: var(--color-orange); color: var(--color-paper); } */
/* .footer-bottom {
  text-align: center;
  padding: 22px 10px;
  font-size: 0.85rem;
  color: var(--color-stone);
} */
.footer-bottom {
  text-align: center;
  padding: 22px 10px;
  color: var(--color-stone);
}
.footer-copyright {
  font-size: 0.85rem;
  margin: 0 0 4px;
}
/*.footer-credit {
  font-size: 0.8rem;
  margin: 0 0 4px;
}*/
.footer-legal-links {
  font-size: 0.7rem;
  margin: 0;
}

.footer-break {
  display: none;
}

@media (max-width: 480px) {
  .footer-dot-first {
    display: none;
  }
  .footer-break {
    display: block;
  }
  #disclaimer-trigger {
    display: inline-block; /* needed for margin-top to actually apply to an inline link */
    margin-top: 0px;
  }
  .footer-links ul li,
  .footer-contact p {
    margin-bottom: 1px;
  }

  .footer-copyright {
    font-size: 0.65rem;
  }
  .footer-legal-links {
    font-size: 0.5rem;
  }
}

@media (min-width: 790px) and (max-width: 1280px) { /*(min-width: 620px)*/
  .footer-top {
    display: flex;
    flex-wrap: nowrap;
    /*gap: clamp(45px, 4vw, 60px);*/
  }
  /*.footer-top .footer-brand {*/
  /*   margin-right: 100px !important;*/
  /*}*/
  /*.footer-column {*/
  /*  min-width: clamp(120px, 15vw, 180px);*/
  /*  flex: 0 1 auto;*/
  /*}*/
}

/*@media (min-width: 568px) and (max-width: 775px) {*/
/*  .footer-top .footer-brand {*/
/*     margin-right: clamp(45px, 4vw, 60px);*/
/*  }*/
/*}*/
@media (min-width: 480px) and (max-width: 1280px) {
  .footer-contact {
    max-width: 300px;
  }
  .footer-column .footer-brand {
    margin-right: 0px;
  }
}

@media (max-width: 560px) {
  .footer-top {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 50px;
  }
  .footer-brand,
  .footer-links {
    flex: 0 1 auto;
    min-width: 0;
  }
  .footer-contact {
    flex: 1 1 100%; /* forces it onto its own row */
    min-width: 0;
  }
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .split-layout { flex-direction: column; }
  .split-layout.reverse { flex-direction: column; align-items: stretch; }
  .split-text { max-width: 100%; }
  .project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  header { padding: 0 30px; }
  .main-nav {
    /*display: none;*/
    display: flex;
    position: fixed;
    top: 0; right: 0;
    /* height: 100vh; */
    height: 100svh;
    width: 260px;
    background: var(--color-ink);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    z-index: 1050;
    transform: translateX(100%);          /* closed: parked off the right edge */
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .4s var(--ease), opacity .3s ease, visibility 0s linear .4s;   /* hidden only after it has slid out */
  }
  /*.main-nav.active { display: flex; }*/
  .main-nav.active {
    transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    transition: transform .4s var(--ease), opacity .3s ease, visibility 0s;
  }
  @media (prefers-reduced-motion: reduce) { .main-nav, .main-nav.active { transition: none; } }
  .main-nav ul { flex-direction: column; gap: 28px; }
  .main-nav a { color: var(--color-paper) !important; }
  .menu-trigger { display: flex; }
  section { padding: 40px 0; }
  .breadcrumb { padding: 14px 20px; }
}

@media (max-width: 576px) {
  .container { padding: 0 20px; }
  .hero-content h1 { font-size: 2rem; }

  .meta-row {
  flex-wrap: nowrap;
  gap: 6px 30px;
  margin: 18px 0 20px;
  padding-top: 16px;
}
 .meta-row div { font-size: 0.73rem; }
 .meta-row strong { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  /* section { padding: 30px 0; } */
  .breadcrumb { padding: 12px 16px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}


/* ===================================================================
   PROJECT DETAIL PAGE
   =================================================================== */
.project-hero {
  /* height: 100vh; */
  /* height: 100svh; */
  height: var(--stable-vh, 100vh);
  min-height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0 0 80px;
  color: var(--color-paper);
}
.project-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--color-ink-rgb),0.28) 0%, rgba(var(--color-ink-rgb),0.08) 35%, rgba(var(--color-ink-rgb),0.78) 100%);
}
.project-hero .container { position: relative; z-index: 2; }

.project-card {
  position: relative;
  background: rgba(var(--color-ink-rgb),0.34);
  backdrop-filter: blur(9px);
  padding: 50px 60px;
  border-radius: var(--radius-lg);
  max-width: 800px;
  min-width: 450px;
  border: 1px solid rgba(255,255,255,0.15);
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: 0.25s;
  margin-bottom: 20px;
}
.fade-in.loaded .project-card { opacity: 1; transform: translateY(0) scale(1); }
/* Offset orange drafting-frame — the same motif used behind the About/Contact images */
.project-card::before {
  content: "";
  position: absolute;
  top: -16px; left: -16px;
  width: 100%; height: 100%;
  border: 2px solid var(--color-orange);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.project-card .eyebrow { color: var(--color-orange-light); }
.project-card h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--color-paper); margin-bottom: 6px; }
.project-card > p { color: rgba(255,255,255,0.85); font-size: 1rem; margin-bottom: 26px; display:flex; align-items:center; gap:8px;}
.project-card > p i { color: var(--color-orange); }

.project-icons { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-paper);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), color 0.3s;
}
.icon-btn i {
  font-size: 1.2rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  transition: all 0.3s var(--ease);
}
/* .icon-btn:hover { color: var(--color-orange-light); } */
/* .icon-btn:hover i { border-color: var(--color-orange); background: var(--color-orange); color: var(--color-paper); transform: translateY(-3px); } */
@media (hover: hover) {
  .icon-btn:hover { color: var(--color-orange-light); }
  .icon-btn:hover i { border-color: var(--color-orange); background: var(--color-orange); color: var(--color-paper); transform: translateY(-3px); }
}

@media (min-width: 860px) {
  .project-icons { flex-wrap: nowrap; }
  .icon-btn { flex-shrink: 0; }
}

/* .project-section { padding: 100px 0; scroll-margin-top: 110px; } */
.project-section.alt-bg { background: var(--color-sand); }
.section-head { max-width: 640px; margin-bottom: 50px; }
.section-head.text-right { margin-left: auto; text-align: right; }
.section-head p { color: var(--color-graphite); margin-top: 6px; }

/* Heading text slides in from the side it's aligned on; the eyebrow rises
   gently. display:inline-block makes h2 shrink to its actual text width
   (instead of stretching to fill .section-head), which is also what makes
   the underline's width measurement below accurate. */
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.section-head:not(.text-right) h2 { transform: translateX(-46px); }
.section-head.text-right h2 { transform: translateX(46px); }
.fade-section.visible .section-head h2 { opacity: 1; transform: translateX(0); }

.section-head .eyebrow {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-section.visible .section-head .eyebrow { opacity: 1; transform: translateY(0); }

/* Orange underline that slides in from the OPPOSITE side of the heading —
   same mechanism as the Cyprus Projects banner underline. */
.section-line {
  height: 3px;
  background: var(--color-orange);
  margin: 16px 0 22px;
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), width 0.4s var(--ease);
}
.section-line.from-left { transform: translateX(-46px); }
.section-line.from-right { transform: translateX(46px); }
.section-head.text-right .section-line { margin-left: auto; }
.fade-section.visible .section-line { opacity: 1; transform: translateX(0); }

/* ===== Benefits — borderless, icon-led proximity row ===== */
.benefits-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 34px 20px;
}
.benefit-item {
  flex: 1 1 130px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.benefit-item i {
  font-size: 2.15rem;
  color: var(--color-orange);
  margin-bottom: 20px;
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}
.benefit-item:hover i { transform: translateY(-4px) scale(1.08); color: var(--color-orange-dark); }
.benefit-stat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.65rem;
  color: var(--color-ink);
  line-height: 1;
}
.benefit-stat small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--color-stone);
  margin-left: 3px;
}
.benefit-label {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-graphite);
  margin-top: 8px;
}
@media (max-width: 700px) {
  .benefits-row { justify-content: center; }
  .benefit-item { flex: 1 1 30%; }
}

/* ===== Gallery — a fixed 5-photo collage layout (mirrors the reference
   collage: two stacked tiles on the left, one tall feature on the right,
   two even tiles beneath) with a staggered scroll-in reveal ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  grid-template-rows: repeat(3, 200px);
  grid-auto-rows: 200px; /* NEW — gives any images beyond the first 5 (auto-placed into new rows) the same row height as the rest */
  gap: 16px;
}
.gallery-grid a:nth-child(1) { grid-column: 1; grid-row: 1; }
.gallery-grid a:nth-child(2) { grid-column: 1; grid-row: 2; }
.gallery-grid a:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
.gallery-grid a:nth-child(4) { grid-column: 1; grid-row: 3; }
.gallery-grid a:nth-child(5) { grid-column: 2; grid-row: 3; }
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.4s var(--ease), filter 0.4s;
}
.gallery-grid a:hover img { transform: scale(1.04); filter: brightness(1.05); }

.gallery-grid a {
  opacity: 0;
  transform: translateY(28px) scale(0.94);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.fade-section.visible .gallery-grid a { opacity: 1; transform: translateY(0) scale(1); }
.gallery-grid a:nth-child(1) { transition-delay: 0.05s; }
.gallery-grid a:nth-child(2) { transition-delay: 0.15s; }
.gallery-grid a:nth-child(3) { transition-delay: 0.25s; }
.gallery-grid a:nth-child(4) { transition-delay: 0.35s; }
.gallery-grid a:nth-child(5) { transition-delay: 0.45s; }
.gallery-grid a:nth-child(6) { transition-delay: 0.55s; }
.gallery-grid a:nth-child(7) { transition-delay: 0.65s; }
.gallery-grid a:nth-child(8) { transition-delay: 0.75s; }

/* NEW — exactly 4, 6, or 8 images total: the lone image in the last row
   spans the full width instead of sitting alone on one side. Exactly 5
   or 7 already fill their last row completely, so they're untouched. */
.gallery-grid a:nth-child(4):last-child {
  grid-column: 1 / -1;
  grid-row: 3;
}
.gallery-grid a:nth-child(6):last-child {
  grid-column: 1 / -1;
}
.gallery-grid a:nth-child(8):last-child {
  grid-column: 1 / -1;
}

/* Update .gallery-split — align-items changes from the default
   "stretch" to "flex-start", so the main display no longer gets
   squished to match the thumbnail column's height. */
.gallery-split {
  display: flex;
  align-items: flex-start;   /* was stretch (the default) */
  gap: 20px;
}

/* .gallery-thumbs-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 140px;
  flex-shrink: 0;
} */
.gallery-thumbs-col {
  position: relative;   /* NEW — anchors the floating arrows */
  width: 140px;
  flex-shrink: 0;
}

/* .gallery-thumbs-scroll {
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-height: 520px;
} */
.gallery-thumbs-scroll {
  height: 520px;         /* NEW — was only max-height before */
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-thumbs-scroll::-webkit-scrollbar { display: none; }

.gallery-thumbs-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-thumb {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.gallery-thumb img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}
.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--color-orange);
}

/* Arrows are now small floating circles overlaying the top/bottom edges
   of the scroll area, instead of pushing content down. */
.gallery-thumbs-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--color-sand-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.gallery-thumbs-arrow.up { top: 10px; }
.gallery-thumbs-arrow.down { bottom: 10px; }
.gallery-thumbs-arrow:hover { background: var(--color-orange); color: var(--color-paper); }
.gallery-thumbs-arrow.hidden { visibility: hidden; }

/* Explicit height directly on the button itself now — this is what
   actually fixes the "shrinks to match thumbnail" bug. */
.gallery-main-display {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 520px;   /* NEW */
}
.gallery-main-display img {
  width: 100%;
  height: 100%;   /* was a fixed 520px — now just fills its parent's explicit height */
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}
.gallery-main-display:hover img {
  transform: scale(1.03);
}
.gallery-main-display {
  outline: none;
}
.gallery-main-display:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 2px;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: white;   /* was rgba(255,255,255,0.92) */
  z-index: 3000;
  align-items: center;
  justify-content: center;
  overscroll-behavior: contain;   /* NEW */
  touch-action: manipulation;   /* was none */
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: var(--radius-sm); }

.lightbox {
  opacity: 0;
  visibility: hidden;
  /* transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease); */
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  transform: scale(0.92);
  transition: transform 0.35s var(--ease);
}
.lightbox.active img {
  transform: scale(1.2);
}

.lightbox-close {
  position: absolute; top: 34px; right: 34px;
  color: var(--color-ink); font-size: 2.5rem; cursor: pointer;
  background: none; border: none;
}
.lightbox-close:hover { color: var(--color-orange); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(var(--color-ink-rgb), 0.06); border: none; color: var(--color-ink);
  width: 50px; height: 50px; border-radius: 50%; font-size: 1.3rem; cursor: pointer;
}

.lightbox-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.lightbox-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-mist);
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.lightbox-dots .dot.active {
  background: var(--color-orange);
}

.confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(var(--color-ink-rgb), 0.6);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.confirm-modal.active {
  opacity: 1;
  visibility: visible;
}
.confirm-modal-box {
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  transform: translateY(16px) scale(0.96);
  transition: transform 0.35s var(--ease);
}
.confirm-modal.active .confirm-modal-box {
  transform: translateY(0) scale(1);
}
.confirm-modal-box p {
  margin-bottom: 22px;
  font-size: 1.05rem;
  color: var(--color-ink);
}
.confirm-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.confirm-modal-cancel {
  background: none;
  border: none;
  color: var(--color-stone);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 6px;
}
.confirm-modal-cancel:hover { color: var(--color-ink); }
.confirm-modal-actions .btn {
  width: auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
}

/* ===== Interactive Floor Plan ===== */
.floorplan-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(28,28,28,0.12);
  background: var(--color-sand);
}
.floorplan-wrap img { width: 100%; display: block; }
.floorplan-img-base {
  filter: grayscale(0.9) brightness(0.55);
}
.floorplan-img-color {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  clip-path: polygon(0% 0%, 0% 0%, 0% 0%);
  transition: clip-path 0.35s ease;
}
.floorplan-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hotspot {
  fill: rgba(242,103,15,0.0);
  stroke: rgba(242,103,15,0.9);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill 0.25s var(--ease);
}
/* .hotspot:hover, .hotspot.active-hotspot { fill: rgba(242,103,15,0.35); } */
.floor-toggle { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.floor-toggle button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 2px solid var(--color-mist);
  background: transparent;
  color: var(--color-graphite);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s;
}
.floor-toggle button.active, .floor-toggle button:hover { border-color: var(--color-orange); color: var(--color-orange); }

.unit-tooltip {
  position: absolute;
  z-index: 20;
  background: var(--color-paper);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
  padding: 18px 20px;
  min-width: 220px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.unit-tooltip.visible { opacity: 1; transform: translateY(0); }
.unit-tooltip h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 4px; color: var(--color-ink); }
.unit-tooltip .unit-price { color: var(--color-orange); font-weight: 700; font-family: var(--font-display); margin-bottom: 10px; font-size: 1rem; }
.unit-specs { display: flex; gap: 16px; font-size: 0.85rem; color: var(--color-graphite); }
.unit-specs span { display: flex; align-items: center; gap: 5px; }
.unit-specs i { color: var(--color-orange); }
.unit-tooltip .tap-hint { margin-top: 10px; font-size: 0.75rem; color: var(--color-stone); }

.floorplan-thumbs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.floorplan-thumb {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 22px;
  /* padding: 7px 16px; */
  border: 2px solid var(--color-mist);
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-graphite);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
  flex-shrink: 0;         /* NEW — prevents thumbs from squishing in the scroll row */
}
.floorplan-thumb:hover,
.floorplan-thumb.active {
  border-color: var(--color-orange);
  color: var(--color-orange);
}
.floorplan-thumbs-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 5px;
}
 
.floorplan-thumbs-scroll {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.floorplan-thumbs-scroll::-webkit-scrollbar { display: none; }

.floorplan-thumbs-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-paper);
  border: 1px solid var(--color-sand-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.floorplan-thumbs-arrow:hover { background: var(--color-orange); color: var(--color-paper); }
.floorplan-thumbs-arrow.hidden { visibility: hidden; }

.floorplan-fullview-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 6;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  transition: background 0.3s var(--ease);
}
.floorplan-fullview-btn i {
  font-size: 1.15rem;
  color: var(--color-ink);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.floorplan-fullview-btn:hover {
  background: var(--color-orange);
}
.floorplan-fullview-btn:hover i {
  color: var(--color-paper);
  transform: scale(1.25);
}

/* NEW — cursor hint that the image itself is now clickable too */
.floorplan-image-stack {
  cursor: pointer;
}

/* When opened via the full-view button (a single static image, not a
   browsable gallery), hide the prev/next arrows and dots — there's
   nothing to page through in this context. */
.lightbox.single-image-mode .lightbox-nav,
.lightbox.single-image-mode .lightbox-dots {
  display: none;
}

/* ===== Floor plan slider ===== */
.floorplan-slider {
  position: relative;
  /* border-radius: var(--radius-lg); */
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(28,28,28,0.12);
  background: var(--color-sand);
  /* aspect-ratio: 16 / 10; adjust to taste based on your real floor plan proportions */
  aspect-ratio: 4 / 3;
}
.floorplan-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.floorplan-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(60px) scale(0.97);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.floorplan-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.floorplan-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--color-sand);
}

.floorplan-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 12px; /* pulls it closer to the slider than before */
}

.floorplan-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  color: var(--color-ink);
  z-index: 5;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.floorplan-arrow:hover { background: var(--color-orange); color: var(--color-paper); }
.floorplan-arrow.prev { left: 20px; }
.floorplan-arrow.next { right: 20px; }

.floorplan-dots-row {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

/* .floorplan-dots .dot.active { background: var(--color-orange); } */
.floorplan-dots {
  position: absolute;
  /* bottom: 18px; */
  bottom: clamp(6px, 1vw, 18px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  /* gap: 8px; */
  gap: clamp(5px, 1.5vw, 8px);
  z-index: 5;
}
.floorplan-dots .dot {
  /* width: 9px; */
  width: clamp(6px, 2vw, 9px);
  /* height: 9px; */
  height: clamp(6px, 2vw, 9px);
  border-radius: 50%;
  background: var(--color-mist);
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.floorplan-dots .dot.active {
  background: var(--color-orange);
}

.floorplan-download-row {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.floorplan-image-stack {
  position: relative;
  width: 100%;
  height: 100%;
}
.fp-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.fp-layer.fp-main {
  opacity: 1;
}

.fp-hover-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 3;
  cursor: pointer;
}

.floorplan-slider-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* .floorplan-slider no longer has a fixed width:100% — JS sets its real
   width/height explicitly now (fpFitSlider), so just clear any old
   fixed-width rule and let it size itself: */
.floorplan-slider {
  flex-shrink: 0;
}

/* Arrows are no longer position:absolute — remove "position: absolute",
   "top", "left"/"right" from your existing rule. Keep everything else
   (size, background, hover color): */
.floorplan-arrow {
  position: static;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  color: var(--color-ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.floorplan-arrow:hover { background: var(--color-orange); color: var(--color-paper); }

/* Ribbon width now gets matched to the slider's actual computed width
   via JS too, so it stays visually aligned underneath it. */
.floorplan-ribbon-wrap {
  transition: width 0.2s ease;
}

.fp-popup h4 {
  font-family: var(--font-display);
  font-size: 1.35rem; /*1.15*/
  margin-bottom: 18px; /*14px*/
  color: var(--color-ink);
}

.fp-popup-areas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 26px;  /* was 14px — more space before the specs row */
  font-size: 0.85rem;
}
.fp-popup-areas div {
  display: flex;
  justify-content: space-between;
  color: var(--color-graphite);
}

.fp-popup-specs {
  display: flex;
  gap: 18px; /*14*/
  font-size: 0.95rem; /*0.85*/
  margin-bottom: 18px; /*14*/
  flex-wrap: wrap;
  color: var(--color-graphite);
}
/* .fp-popup-specs i { color: var(--color-orange); margin-right: 4px; } */
.fp-popup-specs i { color: var(--color-orange); margin-right: 6px; font-size: 1.05rem; }

.fp-popup-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem; /*0.82*/
  display: flex;
  flex-direction: column;
  gap: 8px; /*6*/
  color: var(--color-graphite);
}
.fp-popup-checks i { color: var(--color-orange); margin-right: 8px; font-size: 1rem; }

.floorplan-apartments.active {
  display: block;
}

.fp-apt-btn:hover,
.fp-apt-btn.active {
  border-color: var(--color-orange);
  color: var(--color-orange);
}
 
.fp-panel.open {
  max-height: 800px;
}

.fp-price-status-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.fp-price-line {
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-orange);
}

.fp-vat-note {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-stone);
  margin-left: 4px;
}

/* NEW — Enquire Now's row at the bottom */
.fp-panel-enquire-row {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--color-sand-deep);
  text-align: right;
}

/* Always pushed to the far right of the row — works whether or not the
   price is showing next to it (e.g. when status is Sold and price is
   hidden entirely, the badge still lands on the right, not the left). */
.fp-price-status-row .fp-status-badge {
  margin-left: auto;
}
.fp-status-badge.fp-status-badge-large {
  font-size: 1.15rem;
  padding: 9px 20px;
  margin-left: 0;   /* overrides the base .fp-status-badge's margin-left: 10px, meant for when it sits next to something */
}
.fp-popup-areas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.fp-popup-areas div {
  display: flex;
  justify-content: space-between;
  color: var(--color-graphite);
}

.fp-popup-specs {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  margin-bottom: 18px;
  flex-wrap: wrap;
  color: var(--color-graphite);
}
.fp-popup-specs i { color: var(--color-orange); margin-right: 6px; font-size: 1.05rem; }
.fp-popup-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--color-graphite);
}
.fp-popup-checks i { color: var(--color-orange); margin-right: 8px; font-size: 1rem; }

/* ── NEW — the ribbon bar ── */
.floorplan-ribbon-wrap {
  position: relative;
}

.floorplan-ribbon {
  display: none;
  align-items: stretch;
  background: var(--color-paper);
  border: 1px solid var(--color-sand-deep);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(28,28,28,0.06);
}
.floorplan-ribbon.active {
  display: grid;
}

.floorplan-ribbon-btn {
  background: none;
  border: none;
  border-right: 1px solid var(--color-sand-deep); /* divider between every button */
  /* padding: 8px 22px; */
  /* font-family: 'Poppins', var(--font-display); */
  font-family: var(--font-display);
  font-weight: 300;
  /* font-size: 1rem; */
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  padding: clamp(6px, 2vw, 8px) clamp(12px, 4vw, 22px);
  letter-spacing: 0.02em;
  color: var(--color-graphite);
  cursor: pointer;
  text-align: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.floorplan-ribbon-btn:last-child {
  border-right: none; /* no divider after the final button */
}
/* .floorplan-ribbon-btn:hover,
.floorplan-ribbon-btn.active,
.floorplan-ribbon-btn.hover-linked {
  background: var(--color-orange);
  color: var(--color-paper);
} */
.floorplan-ribbon-btn.active,
.floorplan-ribbon-btn.hover-linked {
  background: var(--color-orange);
  color: var(--color-paper);
}

@media (hover: hover) {
  .floorplan-ribbon-btn:hover {
    background: var(--color-orange);
    color: var(--color-paper);
  }
}

.floorplan-ribbon-floor {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  /* font-family: 'Poppins', var(--font-display); */
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink);
  white-space: nowrap;
  background: var(--color-sand);
} */

.floorplan-ribbon-arrow {
  margin-left: 8px;
  font-size: 0.75rem;
  transition: transform 0.3s var(--ease);
}
.floorplan-ribbon-btn.active .floorplan-ribbon-arrow {
  transform: rotate(180deg);
}

/* ── NEW — floor label row, sitting above the ribbon ── */
.floorplan-floor-label-wrap {
  text-align: center;
}
.floorplan-floor-label {
  display: none;
  font-family: 'Poppins', var(--font-display);
  font-weight: 300;              /* was 100 — bolder, more visible */
  /* font-size: 0.8rem; */
  font-size: clamp(0.75rem, 2.2vw, 0.8rem);
  letter-spacing: 0.4em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--color-ink);       /* was graphite — higher contrast */
  padding: 2px 0;
  background: var(--color-sand-deep);
  border-radius: var(--radius-sm);
}
.floorplan-floor-label.active {
  display: block;
}

/* ── Crossfade highlight — now triggered by EITHER real hover/tap
   (hover-left/hover-right) OR a locked click-state (force-left/
   force-right), so clicking a button keeps the highlight in place
   regardless of where the mouse goes afterward. ── */
.floorplan-slide.hover-left .fp-main,
.floorplan-slide.force-left .fp-main { opacity: 0; }
.floorplan-slide.hover-left .fp-left,
.floorplan-slide.force-left .fp-left { opacity: 1; }
.floorplan-slide.hover-right .fp-main,
.floorplan-slide.force-right .fp-main { opacity: 0; }
.floorplan-slide.hover-right .fp-right,
.floorplan-slide.force-right .fp-right { opacity: 1; }


/* ── Panels wrap — sits directly below the slider with zero gap, so it
   reads as "dropping down from the image" rather than a separate
   floating box. ── */
.floorplan-panels-wrap {
  position: relative;
}
.floorplan-panel-group {
  display: none;
}
.floorplan-panel-group.active {
  display: flow-root; /* contains the floated panels below without extra markup */
}

.floorplan-panel-group {
  position: relative;
  height: 0;
  overflow: visible;   /* was hidden */
  transition: height 0.9s var(--ease);
}

/* ── Panels — always full width now, no left/right split ── */
.fp-panel {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  /* background: #f0f0f0; */
  background: var(--color-paper); /* very light neutral grey — not in your existing palette variables, so using it directly */
  box-shadow:
    0 2px 4px rgba(0,0,0,0.08),
    0 8px 16px rgba(0,0,0,0.10),
    0 20px 40px rgba(0,0,0,0.14);
  transition: max-height 0.9s var(--ease);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.fp-panel-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-stone);
  cursor: pointer;
  z-index: 2;
}
.fp-panel-close:hover { color: var(--color-orange); }

.fp-apartment-details { padding: 32px 34px; padding-bottom: 16px; }

.fp-status-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-radius: var(--radius-sm);
  vertical-align: middle;
  margin-left: 10px;
  margin-bottom: 4px;
  color: #fff;
}
.fp-status-sold { background: #c0392b; }
.fp-status-available { background: #2e8b57; }
.fp-status-reserved { background: #8a8a8a; }

/* ── Content inside the panel — same as before ── */
.fp-popup-areas { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; font-size: 0.95rem; }
.fp-popup-areas div { display: flex; justify-content: space-between; color: var(--color-graphite); }
.fp-popup-areas .fp-popup-total {
  border-top: 1px solid var(--color-sand-deep);
  padding-top: 8px;
  /* margin-top: 6px; */
  font-weight: 600;
  color: var(--color-ink);
}
.fp-popup-specs { display: flex; gap: 18px; font-size: 0.95rem; margin-bottom: 18px; flex-wrap: wrap; color: var(--color-graphite); }
.fp-popup-specs i { color: var(--color-orange); margin-right: 6px; font-size: 1.05rem; }
.fp-popup-checks { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; display: flex; flex-direction: column; gap: 8px; color: var(--color-graphite); }
.fp-popup-checks i { color: var(--color-orange); margin-right: 8px; font-size: 1rem; }

/* ===== Properties for Sale grid ===== */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 30px;
}
.property-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/2;
  text-decoration: none;
  display: block;
  box-shadow: 0 10px 30px rgba(28,28,28,0.1);
}
.property-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.property-card:hover img { transform: scale(1.06); }
.property-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(var(--color-ink-rgb),0.92) 0%, rgba(var(--color-ink-rgb),0.05) 55%);
}
.property-card-label {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  background: var(--color-orange);
  color: var(--color-paper);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 3px;
}
.property-card-info { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; color: var(--color-paper); }
.property-card-info h4 { color: var(--color-paper); font-size: 1.15rem; margin-bottom: 10px; }
.property-card-specs {
  display: flex; gap: 14px; font-size: 0.85rem; flex-wrap: wrap;
  opacity: 0; transform: translateY(10px);
  transition: all 0.35s var(--ease);
  margin-bottom: 8px;
}
.property-card:hover .property-card-specs { opacity: 1; transform: translateY(0); }
.property-card-specs span { display: flex; align-items: center; gap: 5px; }
.property-card-specs i { color: var(--color-orange-light); }
.property-card-price { font-family: var(--font-display); font-weight: 700; color: var(--color-orange-light); font-size: 1.05rem; }

/* ===== Location — smaller map, unboxed details stacked beside it ===== */
.location-layout {
  display: flex;
  align-items: center;
  gap: 30px;
}
.location-map {
  flex: 2.3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(28,28,28,0.12);
}
.location-map iframe { width: 100%; height: 380px; border: 0; display: block; }

.location-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.location-details div {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.05rem;
  color: var(--color-graphite);
}
.location-details i {
  color: var(--color-orange);
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .location-layout { flex-direction: column; }
  .location-details { flex-direction: row; flex-wrap: wrap; gap: 20px 40px; width: 100%; }
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2,1fr); grid-template-rows: repeat(4, 160px); }
  .gallery-grid a:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
  .gallery-grid a:nth-child(4) { grid-row: 3; }
  .gallery-grid a:nth-child(5) { grid-row: 3; }
  .project-card { max-width: 100%; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery-grid a { grid-column: 1 !important; grid-row: auto !important; aspect-ratio: 4/3; }
}


/* ===================================================================
   SINGLE PROPERTY PAGE
   =================================================================== */

/* ---- Hero: fills nearly the full screen. Only a small strip at the
   bottom of the initial viewport shows the breadcrumb and the top of the
   price card (title/project/location) — the price block and everything
   below is revealed by scrolling. Tune --hero-vh/--card-pull together if
   this needs adjusting for a specific viewport height. ---- */
.apartment-hero {
  position: relative;
  height: 88vh;
  min-height: 620px;
  background-size: cover;
  background-position: center;
  color: var(--color-paper);
}
.apartment-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--color-ink-rgb),0.2) 0%, rgba(var(--color-ink-rgb),0.05) 45%, rgba(var(--color-ink-rgb),0.55) 100%);
}

.apartment-intro { background: var(--color-paper); padding-top: 0; display: flow-root; }
.apartment-intro-grid {
  display: grid;
  grid-template-columns: 540px 1fr;
  gap: 60px;
  align-items: flex-start;
  max-width: none;   /* cancels .container's 1240px cap */
  margin: 0;
  padding-right: 0;
  padding-left: 160px;   /* was 0 — this pushes the whole row in from both edges */
}

.apartment-price-card {
  position: relative;
  margin-top: -280px;
  height: 580px;
  width: 600px;
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  background: rgba(var(--color-ink-rgb),0.88);
  backdrop-filter: blur(10px);
  padding: 60px 60px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.15);
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: 0.25s;
  z-index: 3;
}
.fade-in.loaded .apartment-price-card { opacity: 1; transform: translateY(0) scale(1); }
.apartment-price-card::before {
  content: "";
  position: absolute;
  top: -16px; left: -16px;
  width: 100%; height: 100%;
  border: 2px solid var(--color-orange);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.apartment-price-card h1 { font-size: clamp(1.8rem, 3.0vw, 2.2rem); color: var(--color-paper); margin-bottom: 35px; line-height: 1.25; white-space: nowrap; }
.apartment-price-card .project-name { font-family: var(--font-display); font-weight: 600; color: var(--color-orange-light); font-size: 1.8rem; }
.apartment-price-card .location { font-size: 1.10rem; color: rgba(255,255,255,0.72); margin-top: 3px; }
.card-price-block { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; }
.apartment-price-card .for-sale-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-orange-light);
  margin-top: 130px;
  margin-bottom: 8px;
}
.apartment-price-card .price { font-family: var(--font-display); font-weight: 700; font-size: 2.8rem; color: var(--color-paper); line-height: 1.1; }
.apartment-price-card .vat-note { font-size: 1.0rem; color: rgba(255,255,255,0.6); margin-top: 1px; }

/* ---- Sidebar: full-width breadcrumb band flush under the hero, then
   divided specs square, then quick-nav icons ---- */
.breadcrumb-inline {
  display: flex;
  align-items: center;
  width: 100%; 
  font-family: var(--font-display);
  font-size: 1.0em;
  letter-spacing: 0.08em;
  padding: 12px 18px;
  background: var(--color-sand);
  border-radius: var(--radius-sm);
}
.breadcrumb-inline a { color: var(--color-stone); text-decoration: none; }
.breadcrumb-inline a:hover { color: var(--color-orange); }
.breadcrumb-inline span { color: var(--color-mist); padding: 5px 4px; }
.breadcrumb-inline .current { color: var(--color-orange); }

.side-specs-pair { display: grid; grid-template-columns: 1fr 1fr; }
.side-specs-pair .cell { position: relative; }
.side-specs-pair .cell::after {
  content: "";
  position: absolute;
  left: 30px; right: 30px; bottom: 0;
  border-bottom: 1px solid var(--color-orange);
}
/* .side-specs-pair .cell:first-child { border-right: 1.5px solid var(--color-orange); } */
.side-specs-pair .cell:first-child { border-right: none; }
.side-specs-pair .cell:first-child::before {
  content: "";
  position: absolute;
  top: 20px; bottom: 0; right: 0;
  border-right: 1px solid var(--color-orange);
}

.side-specs-pair:last-child { border-bottom: 1.5px solid var(--color-orange); }
.side-specs-pair:last-child .cell::after { content: none; }
.side-specs-pair:last-child .cell:first-child { border-right: none; }
.side-specs-pair:last-child .cell:first-child::before {
  content: "";
  position: absolute;
  top: 0; bottom: 20px; right: 0;
  border-right: 1px solid var(--color-orange);
}
.side-specs-pair:last-child { position: relative; border-bottom: none; }
.side-specs-pair:last-child::after {
  content: "";
  position: absolute;
  left: 30px; right: 30px; bottom: 0;
  border-bottom: 1px solid var(--color-orange);
}

.side-specs .cell {
  padding: 14px 0px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.side-specs .cell i { color: var(--color-orange); font-size: 1.3rem; margin-bottom: 10px; }
.side-specs .cell strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--color-ink); }
.side-specs .cell span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-stone); margin-top: 4px; }

.quick-nav { display: flex; gap: 40px; width: 100%; margin-top: 30px; justify-content: center; }
.icon-btn-light {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-graphite);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}
.icon-btn-light i {
  font-size: 1.5rem;
  width: 64px; height: 64px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  border: 1.5px solid var(--color-sand-deep);
  border-radius: 50%;
  color: var(--color-graphite);
  transition: all 0.3s var(--ease);
}
.icon-btn-light:hover { color: var(--color-orange); }
.icon-btn-light:hover i { border-color: var(--color-orange); background: var(--color-orange); color: var(--color-paper); transform: translateY(-3px); }

/* ---- Specs: a clean, square-celled grid (used elsewhere, kept for reuse) ---- */
.apartment-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-sand-deep);
}
.spec-cell {
  background: var(--color-paper);
  padding: 44px 20px;
  min-height: 170px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.spec-cell i { color: var(--color-orange); font-size: 1.7rem; margin-bottom: 14px; }
.spec-cell strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--color-ink); }
.spec-cell span { display: block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-stone); margin-top: 5px; }

#about-section {
  scroll-margin-top: 0px; /* try smaller numbers to scroll further; larger to scroll less */
}

/* .about-top-pad { padding-top: 150px; }
@media (max-width: 480px) {
  .about-top-pad { padding-top: 70px; }
} */

/* ---- Feature checklist: compact, dark blueprint-grid panel (same texture
   technique as the projects.html banner, with orange grid lines) ---- */
.feature-panel {
  position: relative;
  background-color: var(--color-ink);
  background-image:
    linear-gradient(rgba(var(--color-orange-rgb),0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--color-orange-rgb),0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  border-radius: var(--radius-lg);
  padding: 42px 46px;
  overflow: hidden;
}
.feature-checklist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px 32px;
  position: relative;
  z-index: 2;
}
.feature-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.96rem;
  color: rgba(255,255,255,0.88);
}
.feature-checklist li i {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--color-orange);
  color: var(--color-paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.66rem;
}

/* ---- Enquiry panel: dark blueprint-grid card, two-column, with a
   dedicated CTA box instead of one flat centered block ---- */
.enquire-panel {
  position: relative;
  background-color: var(--color-ink);
  background-image:
    linear-gradient(rgba(var(--color-orange-rgb),0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--color-orange-rgb),0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  border-radius: var(--radius-lg);
  padding: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  overflow: hidden;
}
.enquire-panel::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 220px; height: 220px;
  border: 36px solid rgba(var(--color-orange-rgb),0.1);
  border-radius: 50%;
}
.enquire-text { position: relative; z-index: 2; max-width: 480px; }
.enquire-text .eyebrow { color: var(--color-orange-light); }
.enquire-text h3 { color: var(--color-paper); font-size: 1.7rem; margin-bottom: 12px; }
.enquire-text p { color: rgba(255,255,255,0.72); margin-bottom: 22px; }
.enquire-contact-row { display: flex; gap: 26px; flex-wrap: wrap; }
.enquire-contact-row a {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.enquire-contact-row a:hover { color: var(--color-orange-light); }
.enquire-contact-row i { color: var(--color-orange); }

.enquire-cta-box {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 30px 34px;
  text-align: center;
  flex-shrink: 0;
}
.enquire-cta-box .listing-id {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .apartment-intro-grid { grid-template-columns: 1fr; }
  .apartment-price-card { margin-top: -100px; }
  .apartment-specs-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid.alt-collage { grid-template-columns: repeat(2, 1fr); grid-template-rows: 220px 160px 160px; }
  .gallery-grid.alt-collage a:nth-child(1) { grid-column: 1 / span 2; }
  .gallery-grid.alt-collage a:nth-child(2) { grid-column: 1; grid-row: 2; }
  .gallery-grid.alt-collage a:nth-child(3) { grid-column: 2; grid-row: 2; }
  .gallery-grid.alt-collage a:nth-child(4) { grid-column: 1 / span 2; grid-row: 3; }
}
@media (max-width: 700px) {
  .properties-grid { grid-template-columns: 1fr; }
  .feature-panel { padding: 32px 26px; }
  .enquire-panel { padding: 40px 30px; text-align: center; justify-content: center; }
  .enquire-contact-row { justify-content: center; }
}

/* Enquiry modal */
.enquiry-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(var(--color-ink-rgb), 0.6);
  z-index: 999;
  /* align-items: center; */
  align-items: flex-start; /* was center */
  justify-content: center;
  padding: 20px;
}
.enquiry-modal.active { display: flex; }
.enquiry-modal-box {
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  margin-top: 12vh; /* pushes it down from the top — adjust to taste */
}
.enquiry-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: none; border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-stone);
}
.enquiry-modal h3 { margin-bottom: 4px; }
.enquiry-modal-to { color: var(--color-stone); font-size: 0.9rem; margin-bottom: 20px; }
.enquiry-modal label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.enquiry-modal input,
.enquiry-modal textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--color-sand-deep);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.enquiry-toggle-cc {
  background: none; border: none;
  color: var(--color-orange);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 14px;
  padding: 0;
}
/* .enquiry-cc-row { display: flex; gap: 12px; margin-bottom: 14px; } */
.enquiry-cc-row {
  display: none;
  gap: 12px;
  margin-bottom: 14px;
}
.enquiry-cc-row:not([hidden]) {
  display: flex;
}
.enquiry-cc-row label { flex: 1; margin-bottom: 0; }
.enquiry-status { margin-top: 12px; font-size: 0.9rem; }
.enquiry-status.success { color: #2e7d32; }
.enquiry-status.error { color: #c62828; }

/* Copy-to-clipboard email "link" — styled to sit and behave exactly like
   the plain <a> tag it replaced */
/* .copy-email {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none; 
  display: inline;          
  vertical-align: baseline;
  line-height: inherit;
  transition: color 0.3s var(--ease);
}
.copy-email:hover {
  color: var(--color-orange);
}
.copy-email-confirm {
  font-size: 0.8rem;
  color: var(--color-orange);
  margin-left: 8px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.copy-email-confirm.visible { opacity: 1; }

.enquire-email-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.enquire-contact-row .copy-email {
  color: rgba(255, 255, 255, 0.88);
}

.enquire-contact-row .copy-email:hover {
  color: var(--color-orange);
} */

.footer-bottom .footer-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom .footer-link:hover {
  color: var(--color-orange);
}
.footer-dot {
  margin: 0 6px;
  opacity: 0.5;
}

/* Disclaimer modal */
.disclaimer-modal {
  position: fixed;
  inset: 0;
  background: rgba(var(--color-ink-rgb), 0.6);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.disclaimer-modal.active {
  opacity: 1;
  visibility: visible;
}
.disclaimer-modal-box {
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(16px) scale(0.96);
  transition: transform 0.35s var(--ease);
}
.disclaimer-modal.active .disclaimer-modal-box {
  transform: translateY(0) scale(1);
}
.disclaimer-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-stone);
}
.disclaimer-modal-close:hover { color: var(--color-orange); }
.disclaimer-modal-box h3 {
  font-family: var(--font-display);
  margin-bottom: 18px;
  color: var(--color-ink);
}
.disclaimer-modal-box p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-graphite);
}

@media (max-width: 520px) {
  .disclaimer-modal-box {
    margin-top: 30px;
  }
}

.terms-title-wrap { display: block; width: fit-content; max-width: 100%; }
.terms-banner .banner-underline {
  width: calc(100% + 2px) !important;                 /* exactly the title width, plus 1px on each side */
  margin: clamp(9px, 1.2vw, 14px) 0 clamp(13px, 1.6vw, 20px) -1px;
}

.enquiry-terms-note {
  font-size: 0.78rem;
  color: var(--color-stone);
  margin-top: 14px;
  /* text-align: center; */
  margin-left: 5px;
}
.enquiry-terms-note a {
  color: var(--color-stone);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.enquiry-terms-note a:hover {
  color: var(--color-orange);
}

.policies-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.policies-tab {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 26px;
  border: 2px solid var(--color-mist);
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-graphite);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}
.policies-tab:hover,
.policies-tab.active {
  border-color: var(--color-orange);
  background: var(--color-orange);
  color: var(--color-paper);
}
@media (max-width: 596px) {
  .policies-tabs {
    flex-direction: column;
    align-content: center;
  }
  .policies-tab {
    max-width: 260px;
  }
}

.policies-panel {
  display: none;
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  /* padding: 48px 56px; */
  padding: 20px 30px;
  box-shadow: 0 20px 50px rgba(28,28,28,0.08);
  border: 1px solid var(--color-sand-deep);
  max-width: 820px;
  line-height: 1.85;
  color: var(--color-graphite);
  font-size: 1rem;
}
.policies-panel.active {
  display: block;
  animation: policiesFadeIn 0.4s var(--ease);
}

.policies-panel h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-ink);
  margin: 32px 0 16px;
  padding-left: 16px;
  border-left: 3px solid var(--color-orange);
}
.policies-panel h2:first-child { margin-top: 0; }

.policies-panel h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-ink);
  margin: 24px 0 10px;
}

.policies-panel p {
  margin-bottom: 18px;
}

.policies-panel strong,
.policies-panel b {
  color: var(--color-ink);
  font-weight: 700;
}

.policies-panel a {
  color: var(--color-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.policies-panel a:hover {
  opacity: 0.8;
}

.policies-panel ul,
.policies-panel ol {
  margin: 0 0 20px 4px;
  padding-left: 20px;
}
.policies-panel li {
  margin-bottom: 10px;
  padding-left: 6px;
}
.policies-panel ul li::marker {
  color: var(--color-orange);
}
.policies-panel ol li::marker {
  color: var(--color-orange);
  font-weight: 700;
}

.policies-panel hr {
  border: none;
  border-top: 1px solid var(--color-sand-deep);
  margin: 32px 0;
}

.policies-panel blockquote {
  border-left: 3px solid var(--color-sand-deep);
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  color: var(--color-stone);
}

/* LOGO INTRO */
.li-pretitle.li-pretitle-visible {
  opacity: 1;
}
.li-pretitle.li-traveling {
  transition: transform 3s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Matches the real .hero-pretitle span exactly on font/weight/size/
   letter-spacing/uppercase. Color intentionally differs — dark fill
   instead of white+stroke, since this sits on a plain light background
   rather than a photo. */
.li-pretitle span {
  font-family: 'Poppins', var(--font-display);
  font-weight: 100;
  text-transform: uppercase;
  -webkit-text-stroke: 1px rgba(0,0,0,0.6);
}

/*.li-pretitle-line1 {*/
/*  letter-spacing: 1.5em;*/
/*  margin-right: -1.5em;*/
/*}*/
/*.li-pretitle-line2 {*/
/*  letter-spacing: 0.50em;*/
/*  margin-right: -0.5em;*/
/*}*/
/*.li-pretitle span {*/
/*  font-size: clamp(1.4rem, 5vw, 2.4rem);*/
/*}*/

/* Travel — shared duration for logo-top and each stack piece */
.li-piece.li-traveling {
  transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}

.li-stack-piece.li-traveling {
  transition: transform 1.3s cubic-bezier(0.65, 0, 0.35, 1); /* was 1.1s */
}

/* NEW — wraps li-bottom. Stays completely passive in layout: li-bottom
   inside it renders totally normally, so this wrapper's size is exactly
   whatever li-bottom's own natural size already was. */
.li-bottom-slot {
  position: relative;
}

.logo-intro.li-revealed .li-bottom-stack {
  opacity: 1;
}

/* A quick, smooth crossfade for the swap moment itself */
.li-bottom-stack,
.li-bottom.li-piece {
  transition: opacity 0.3s var(--ease), transform 1.6s var(--ease);
}

.li-stack-piece.li-visible {
  opacity: 1;
}

@keyframes liPulseIn {
  0%   { opacity: 0; transform: scale(0.3); }
  60%  { opacity: 1; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}
/* .li-piece.li-pulse-in, */
.li-stack-piece.li-pulse-in {
  animation: liPulseIn 1s ease-out forwards;
}

.li-piece.li-pulse-in {
    animation: liPulseIn 2s ease-out forwards;
}

/* ===== Homepage logo intro overlay ===== */
.logo-intro {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  /* align-items: flex-start; */
  justify-content: center;
  transition: background-color 1.8s ease-out;
}
.logo-intro.li-fade-out {
  background-color: rgba(255, 255, 255, 0);
  pointer-events: none;
}

.logo-intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Base piece sizing/shape only — NO opacity or transition here anymore.
   Each piece's visibility is controlled entirely by JS adding/removing
   li-pulse-in or li-traveling, avoiding any base rule fighting with
   those states. */
.li-top,
.li-bottom {
  width: min(56vw, 380px);
  opacity: 0;
}

/* li-bottom itself is no longer part of the active animation — stays
   permanently invisible */
.li-bottom {
  opacity: 0;
}

/* Wrapper — purely structural, no opacity here (opacity lives on the
   individual pieces inside it instead) */
.li-bottom-slot {
  position: relative;
}
.li-bottom-stack {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

/* Each stack piece — starts invisible, pulse-in reveals it */
.li-stack-piece {
  display: block;
  width: 100%;
  /* height: 33.333%; */
  /* object-fit: fill; */
  opacity: 0;
}

/* The pulse: small -> overshoot big -> settles to normal size */
@keyframes liPulseIn {
  0%   { opacity: 0; transform: scale(0.3); }
  60%  { opacity: 1; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes liPulseInShift {
  0%   { opacity: 0; transform: scale(0.3) translateY(0); }
  40%  { opacity: 1; transform: scale(1.10) translateY(0); }   /* overshoot, no shift yet */
  100% { opacity: 1; transform: scale(1) translateY(-80px); } /* was -60px — must match shiftAmount exactly */
}
.li-top.li-pulse-shift {
  animation: liPulseInShift 5s ease-out forwards; /* duration gets overridden dynamically via JS below */
}

@keyframes liPulseInShiftStack {
  0%   { opacity: 0; transform: scale(0.3); }
  40%  { opacity: 1; transform: scale(1.10); }
  100% { opacity: 1; transform: scale(1); }
}
.li-stack-piece.li-pulse-shift {
  animation: liPulseInShiftStack 3s ease-out forwards; /* match your logo-top duration, or tune independently */
}

.li-stack-piece.li-pulse-in {
  animation: liPulseIn 0.6s ease-out forwards; /* unchanged — will revisit when we get to the stack pieces */
}

/* Add opacity into each existing travel transition, so it actually
   animates instead of snapping */
.li-top.li-traveling {
  transition: transform 2s cubic-bezier(0.65, 0, 0.35, 1), opacity 1.5s ease-out;
}

/* NEW — the missing rule that hides li-top once the combined logo has
   crossfaded in. This existed before the CSS consolidation and got
   dropped by mistake — add it back: */
.logo-intro.li-combined-visible .li-top {
  opacity: 0;
}

/* Combined logo mark — instant position + crossfade, unchanged */
.li-combined {
  position: fixed;
  opacity: 0;
  transform: none;
  transition: opacity 0.3s var(--ease);
  z-index: 2;
}
.logo-intro.li-combined-visible .li-combined {
  opacity: 1;
}

.li-pretitle {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  /* transform: translateY(15px); NEW — starts slightly lower */
  z-index: 2;
  transition: opacity 2s var(--ease), transform 2s var(--ease); /* was just opacity 0.9s */
}
.li-pretitle.li-pretitle-visible {
  opacity: 1;
  transform: translateY(0); /* NEW — settles into place as it fades in */
}
.li-pretitle.li-traveling {
  transition: transform 1.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.li-pretitle span {
  font-family: 'Poppins', var(--font-display);
  font-weight: 100;
  text-transform: uppercase;
  -webkit-text-stroke: 1px rgba(0,0,0,0.6);
  color: var(--color-paper);
  paint-order: stroke fill;
}

.hero-pretitle {
  transition: opacity 0.6s var(--ease);
}
body.intro-playing .hero-pretitle {
  opacity: 0;
}

body.intro-playing .home-header .logo-area img {
  opacity: 0;
}

.split-text-wrap {
  display: flex;
  flex-direction: column;
}

/* Subtle fade-out hint at the bottom edge when text is clamped and cut off */
.cyprus-clamped-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--color-paper));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.split-text-wrap.has-overflow .cyprus-clamped-text::after {
  opacity: 1;
}

@keyframes cyprusFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cyprus-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-left: 10px;
}
.cyprus-section-nav-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease);
}
.cyprus-section-nav-link::before {
  content: "";
  display: inline-flex;
  width: 7px;
  height: 7px;
  background: var(--color-orange);
  flex-shrink: 0;
  margin-right: 10px;
}

@media (max-width: 673px) {
  .cyprus-section-nav {
    gap: 10px;
  }
}
@media (max-width: 900px) { /*(max-width: 724px)*/
  .cyprus-section-nav {
    flex-direction: column;
    gap: 10px; /* smaller than the current 24px */
  }
  
  .cyprus-section-nav-link {
    display: flex;
    align-items: baseline;   /* bullet lines up with the first line of text */
    gap: .55em;              /* space between bullet and text */
    text-align: left;
  }
  .cyprus-section-nav-link::before {
    flex: 0 0 auto;          /* the bullet never shrinks or wraps */
    margin: 0;               /* the gap above replaces any old bullet margin */
  }
}
@media (hover: hover) {
  .cyprus-section-nav-link:hover {
    color: var(--color-orange-light);
  }
}

.cyprus-clamped-text {
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}

.cyprus-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-orange);
  cursor: pointer;
}
.cyprus-expand-btn:hover {
  opacity: 0.75;
}
.cyprus-expand-btn i {
  transition: transform 0.3s var(--ease);
}
.cyprus-expand-btn.expanded i {
  transform: rotate(180deg);
}

.split-layout.no-image .split-text-wrap {
  width: 100%;
  flex: 0 0 100%;
  max-width: 100%;
}

.cyprus-clamped-text {
  position: relative;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}
.cyprus-clamped-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--color-paper));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.cyprus-clamped-text.has-fade::after {
  opacity: 1;
}

.cyprus-links-block {
  margin-top: 20px;
}
.cyprus-links-intro {
  font-size: 0.95rem;
  color: var(--color-graphite);
  margin-bottom: 10px;
}
.cyprus-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cyprus-links-list li {
  position: relative;
  padding-left: 20px;
}
.cyprus-links-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-orange);
}
.cyprus-links-list a {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease);
}
.cyprus-links-list a:hover {
  color: var(--color-orange);
}

.about-cyprus-section .split-layout {
  align-items: flex-start;
}

.cyprus-clamped-text ul,
.cyprus-clamped-text ol { margin: 0 0 1em; padding-inline-start: 1.4em; }
.cyprus-clamped-text ul { list-style: disc; }
.cyprus-clamped-text ol { list-style: decimal; }
.cyprus-clamped-text li { margin-bottom: .4em; color: var(--color-graphite); font-size: 1.10rem; }
.cyprus-clamped-text li::marker { color: var(--color-orange); }

.about-cyprus-section:not(:has(.cyprus-section-img)) .cyprus-clamped-text {
  max-width: 100ch;
}

@media (max-width: 970px) {
  /* Main slider's own arrows are gone entirely on these screens —
     navigation now happens exclusively via the thumbnail arrows. */
  .projects-slider-arrow {
    display: none;
  }

  /* Slider expands to fill the space the arrows used to occupy */
  .projects-slider {
    width: 100%;
  }

  /* Thumbnail row becomes the positioning context for the overlaid arrows */
  .projects-thumbs-row {
    position: relative;
  }
  .projects-thumbs-wrap {
    width: 100%; /* expands into the space its own arrows used to occupy */
  }

  /* Bare icon arrows, overlaid on top of the thumbnail strip itself */
  .projects-thumbs-arrow,
  .projects-thumbs-arrow:hover,
  .projects-thumbs-arrow:active,
  .projects-thumbs-arrow:focus {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
  }

  .projects-thumbs-arrow {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    z-index: 5;
    width: auto;
    height: auto;
    padding: 10px;
    color: var(--color-paper);
    font-size: 1.7rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.55));
    transition: color 0.1s var(--ease), transform 0.1s var(--ease);
  }
  .projects-thumbs-arrow.prev { left: 4px; }
  .projects-thumbs-arrow.next { right: 4px; }

  /* .projects-thumbs-arrow:hover {
    color: var(--color-orange) !important;
    transform: translateY(-50%) scale(1.15);
  } */
  @media (hover: hover) {
    .projects-thumbs-arrow:hover {
      color: var(--color-orange) !important;
      transform: translateY(-50%) scale(1.15);
    }
  }

  /* NEW — JS adds this briefly on click, then removes it */
  .projects-thumbs-arrow.flash-orange {
    color: var(--color-orange) !important;
    transform: translateY(-50%) scale(1.15);
  }

  .projects-thumbs-arrow.hidden {
    visibility: visible;
  }
}

@media (max-width: 480px) {
  /* Status badge — was font-size: 1.05rem; padding: 10px 20px; */
  .project-status {
    font-size: clamp(0.65rem, 3vw, 0.85rem);
    padding: clamp(6px, 2vw, 10px) clamp(12px, 4vw, 16px);
    top: 12px;
    left: 12px;
  }

  /* Project info (title/location) — estimated starting values, tune
     directly once you see it against your actual current sizing */
  .project-info {
    padding: clamp(12px, 4vw, 20px);
    left: 10px;
    bottom: 8px;
  }
  .project-info h3 {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
  }
  .project-info p {
    font-size: clamp(0.75rem, 3vw, 0.9rem);
  }

  /* Middle button — was padding: 18px 38px; font-size: 1.15rem; (disabled state) */
  .project-btn {
    font-size: clamp(0.75rem, 3.5vw, 0.95rem);
    padding: clamp(10px, 3vw, 14px) clamp(18px, 6vw, 26px);
  }
  .projects-card-disabled .project-btn {
    font-size: clamp(0.75rem, 3.5vw, 0.95rem);
    padding: clamp(10px, 3vw, 14px) clamp(18px, 6vw, 26px);
  }
}

@media (max-width: 1094px) { /*970*/
  /* Main slider's own arrows hide ONLY when a labeled thumbnail row
     actually exists to take over navigation — otherwise they stay as
     the fallback for floor plans without labels. */
  .has-fp-thumbs .floorplan-arrow {
    display: none;
  }

  .floorplan-slider {
    width: 100%;
  }

  .floorplan-thumbs-row {
    position: relative;
  }
  .floorplan-thumbs-scroll {
    width: 100%;
  }

  .floorplan-thumbs-arrow,
  .floorplan-thumbs-arrow:hover,
  .floorplan-thumbs-arrow:active,
  .floorplan-thumbs-arrow:focus {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
  }

  .floorplan-thumbs-arrow {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    z-index: 5;
    width: auto;
    height: auto;
    padding: 10px;
    color: var(--color-paper);
    font-size: 1.7rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.55));
    transition: color 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .floorplan-thumbs-arrow.prev { left: 4px; }
  .floorplan-thumbs-arrow.next { right: 4px; }

  .floorplan-thumbs-arrow.flash-orange {
    color: var(--color-orange) !important;
    transform: translateY(-50%) scale(1.15);
  }

  .floorplan-thumbs-arrow.hidden {
    visibility: visible;
  }
}

@media (max-width: 970px) and (hover: hover) {
  .floorplan-thumbs-arrow:hover {
    color: var(--color-orange) !important;
    transform: translateY(-50%) scale(1.15);
  }
}

@media (max-width: 500px) {
  .gallery-split {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  /* Reorders visually without touching the HTML — main image first,
     thumbnail row second, regardless of their actual DOM order. */
  .gallery-main-display {
    order: 1;
    width: 100%;
    flex: none;
    height: 320px; /* was 520px — too tall for a phone viewport */
  }
  .gallery-thumbs-col {
    order: 2;
    width: 100%;
  }

  /* Thumbnail column becomes a horizontal row */
  .gallery-thumbs-scroll {
    height: auto;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .gallery-thumbs-track {
    flex-direction: row;
  }
  .gallery-thumb {
    flex-shrink: 0;
  }
  .gallery-thumb img {
    width: 90px;
    height: 70px;
  }

  /* Arrows flip from vertical (top/bottom, horizontally centered) to
     horizontal (left/right, vertically centered) */
  .gallery-thumbs-arrow {
    top: 50%;
    left: auto;
    transform: translateY(-50%);
  }
  .gallery-thumbs-arrow.up {
    left: 4px;
    top: 50%; /* overrides the desktop top: 10px, as long as this media query comes after the base rule in the file */
  }
  .gallery-thumbs-arrow.down {
    left: auto;
    right: 4px;
  }

  .gallery-thumbs-arrow,
  .gallery-thumbs-arrow:hover,
  .gallery-thumbs-arrow:active,
  .gallery-thumbs-arrow:focus {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
  }

  .gallery-thumbs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: auto;
    height: auto;
    padding: 10px;
    color: var(--color-paper);
    font-size: 1.7rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.55));
    transition: color 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .gallery-thumbs-arrow.up {
    left: 4px;
  }
  .gallery-thumbs-arrow.down {
    left: auto;
    right: 4px;
  }

  /* .gallery-thumbs-arrow:hover {
    color: var(--color-orange) !important;
    transform: translateY(-50%) scale(1.15);
  } */

  .gallery-thumbs-arrow.up i,
  .gallery-thumbs-arrow.down i {
    display: inline-block;
    transform: rotate(-90deg);
  }

  /* .gallery-thumbs-arrow.hidden {
    visibility: visible;
  } */
  .gallery-thumbs-arrow.flash-orange {
    color: var(--color-orange) !important;
    transform: translateY(-50%) scale(1.15);
  }
}

@media (max-width: 500px) and (hover: hover) {
  .gallery-thumbs-arrow:hover {
    color: var(--color-orange) !important;
    transform: translateY(-50%) scale(1.15);
  }
}

#gallery-thumbs-scroll {
  overflow-anchor: none;
}

.floorplan-download-row .js-confirm-download,
.floorplan-download-row .js-enquire,
.fp-panel-enquire-row .btn {
  font-size: clamp(0.75rem, 2.5vw, 1rem);
  padding: clamp(8px, 3vw, 12px) clamp(16px, 4vw, 28px);
}

.floorplan-download-row {
  margin-top: clamp(16px, 5vw, 32px);
  display: flex;
  justify-content: center;
  gap: clamp(8px, 3vw, 16px);
  flex-wrap: wrap;
}

.fp-panel-enquire-row {
  margin-top: clamp(12px, 4vw, 24px);
  padding-top: clamp(8px, 3vw, 16px);
  border-top: 1px solid var(--color-sand-deep);
  text-align: right;
}

.lightbox-close {
  z-index: 10;
  color: #fff;
  /* -webkit-text-stroke: 1px rgba(0,0,0,0.4); */
  text-shadow:
    1px 0 0 rgba(0,0,0,0.4),
    -1px 0 0 rgba(0,0,0,0.4),
    0 1px 0 rgba(0,0,0,0.4),
    0 -1px 0 rgba(0,0,0,0.4);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.lightbox-close:hover {
  color: var(--color-orange) !important;
  transform: scale(1.15);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  width: auto;
  height: auto;
  border-radius: 0;
  padding: 10px;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  -webkit-text-stroke: 1px rgba(0,0,0,0.4);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.lightbox-nav {
  z-index: 10;
  width: 50px;
  height: 50px;
  /* border-radius: 50%; */
  font-size: 1.3rem;
  cursor: pointer;
}
/* .lightbox-nav:hover {
  color: var(--color-orange) !important;
  transform: translateY(-50%) scale(1.25);
  -webkit-text-stroke: 0px;
} */
.lightbox-nav.prev { left: 0; }
.lightbox-nav.next { right: 0; }

@media (hover: hover) {
  .lightbox-nav:hover {
    color: var(--color-orange) !important;
    transform: translateY(-50%) scale(1.25);
    -webkit-text-stroke: 0px;
  }
}

/* NEW — JS adds this briefly on click, then removes it */
.lightbox-nav.flash-active {
  color: var(--color-orange) !important;
  transform: translateY(-50%) scale(1.25);
  -webkit-text-stroke: 0px;
}

/* @media (max-width: 640px) {
  body.single-project .page-banner,
  body.single-project .breadcrumb,
  body.single-project .project-section {
    zoom: 0.85;
  }
} */
@media (max-width: 640px) {
  .project-card {
    padding: clamp(20px, 6vw, 38px) clamp(20px, 6vw, 42px);
    min-width: 0; /* removes the 450px floor that was forcing overflow on phones */
    max-width: 100%;
  }

  .project-card > p {
    font-size: clamp(0.8rem, 3vw, 1rem);
    margin-bottom: clamp(20px, 4vw, 26px);
  }

  .project-icons {
    gap: clamp(10px, 2vw, 22px);
  }

  .icon-btn {
    gap: clamp(4px, 1.5vw, 8px);
    /* font-size: clamp(0.55rem, 2vw, 0.76rem); */
  }

  .icon-btn i {
    font-size: clamp(0.85rem, 3.5vw, 1.2rem);
    width: clamp(30px, 9vw, 44px);
    height: clamp(30px, 9vw, 44px);
  }
    .project-card .eyebrow {
    font-size: clamp(0.65rem, 2.5vw, 0.85rem);
    margin-bottom: 10px;
    margin-top: 25px;
  }

  .project-card h1 {
    font-size: clamp(0.9rem, 6vw, 1.8rem);
    margin-bottom: clamp(4px, 1.5vw, 6px);
  }

  .credentials-list li {
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    line-height: 1.5;
  }
}

/* @media (max-width: 572px) {
  .project-icons {
    justify-content: center;
  }
} */

@media (max-width: 782px) {
  .project-hero {
    /* padding-bottom: clamp(40px, 25vw, 100px); */
    padding-bottom: clamp(50px, 50vw, 150px);
  }
}

@media (max-width: 640px) {
  .split-text p {
    font-size: clamp(1rem, 3.5vw, 1.10rem);
  }

  .section-note p {
    font-size: clamp(1rem, 3.5vw, 1.10rem);
    line-height: 1.55;
  }
}

.para-clamp-text {
  position: relative; /* NEW — anchors the gradient overlay */
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}
/* NEW — soft fade-out at the clipped edge */
.para-clamp-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--color-paper));
}
.para-clamp-text.has-fade::after {
  opacity: 1;
}
/* Key Benefits sits on the alt/sand background, not plain paper — give
   its fade a matching solid color so it doesn't show a visible seam. */
#benefits .para-clamp-text::after,
#features .para-clamp-text::after {
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--color-sand));
}

.para-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-orange);
  cursor: pointer;
}
.para-expand-btn:hover {
  opacity: 0.75;
}
.para-expand-btn i {
  transition: transform 0.3s var(--ease);
}
.para-expand-btn.expanded i {
  transform: rotate(180deg);
}

.para-clamp-outer {
  flex: 1;
  min-width: 0;
}

@media (max-width: 1090px) {
  .benefits-row {
    gap: clamp(16px, 5vw, 34px) clamp(10px, 1vw, 20px);
  }
  .benefit-item {
    flex: 1 1 clamp(80px, 22vw, 130px);
  }
  .benefit-item i {
    font-size: clamp(1.4rem, 6vw, 2.15rem);
    margin-bottom: clamp(10px, 3vw, 20px);
  }
  .benefit-stat {
    font-size: clamp(1.1rem, 4.5vw, 1.65rem);
  }
  .benefit-stat small {
    font-size: clamp(0.65rem, 2.5vw, 0.85rem);
  }
  .benefit-label {
    font-size: clamp(0.6rem, 2.2vw, 0.76rem);
    margin-top: clamp(4px, 1.5vw, 8px);
  }
}

@media (max-width: 640px) {
  .feature-checklist {
    grid-template-columns: repeat(auto-fit, minmax(clamp(140px, 40vw, 210px), 1fr));
    gap: clamp(10px, 3vw, 16px) clamp(16px, 5vw, 32px);
  }
  .feature-checklist li {
    gap: clamp(8px, 2.5vw, 12px);
    font-size: clamp(1rem, 3vw, 1.1rem);
  }
  .feature-checklist li i {
    width: clamp(18px, 5vw, 24px);
    height: clamp(18px, 5vw, 24px);
    font-size: clamp(0.5rem, 2vw, 0.66rem);
  }
}

@media (max-width: 900px) {
  .location-layout {
    flex-direction: column;
    align-items: stretch; /* overrides the inherited center — this is the actual fix for the shrinking */
    gap: 24px;
  }

  .location-map {
    width: calc(100% - 40px); /* almost full width, with breathing room on both sides */
    margin: 0 auto;
  }
  .location-map iframe {
    height: 300px; /* proportionally smaller than the 380px desktop height */
  }

  .location-details {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center; /* centers the details as a group below the map */
    gap: 16px 32px;
    width: 100%;
  }
}

.icon-btn.flash-active { color: var(--color-orange-light); }
.icon-btn.flash-active i { border-color: var(--color-orange); background: var(--color-orange); color: var(--color-paper); transform: translateY(-3px); }

.credentials-trigger-text.popup-open {
  color: var(--color-orange);
  opacity: 1;
}

.credentials-popup-close.flash-active { color: var(--color-orange); }

@media (max-width: 1289px) {
  .terms-banner .container {
    transform: translateX(min(30px, calc((1289px - 100vw) * 0.08)));
  }
}

@media (max-width: 480px) {
  .enquiry-modal {
    padding: 12px;
  }
  .enquiry-modal-box {
    padding: clamp(20px, 6vw, 40px);
    margin-top: 12vh; /* kept as requested */
  }
  .enquiry-modal-close {
    top: clamp(10px, 3vw, 18px);
    right: clamp(10px, 3vw, 18px);
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }
  .enquiry-modal h3 {
    margin-bottom: clamp(2px, 1vw, 4px);
  }
  .enquiry-modal-to {
    font-size: clamp(0.75rem, 3vw, 0.9rem);
    margin-bottom: clamp(12px, 4vw, 20px);
  }
  .enquiry-modal label {
    font-size: clamp(0.75rem, 3vw, 0.85rem);
    margin-bottom: clamp(10px, 3vw, 14px);
  }
  .enquiry-modal input,
  .enquiry-modal textarea {
    margin-top: clamp(4px, 1.5vw, 6px);
    padding: clamp(8px, 2.5vw, 10px) clamp(10px, 3vw, 12px);
    font-size: clamp(0.85rem, 3.5vw, 0.95rem);
  }
  .enquiry-toggle-cc {
    font-size: clamp(0.75rem, 3vw, 0.85rem);
    margin-bottom: clamp(10px, 3vw, 14px);
  }
  .enquiry-cc-row {
    gap: clamp(8px, 2.5vw, 12px);
    margin-bottom: clamp(10px, 3vw, 14px);
  }
  .enquiry-status {
    margin-top: clamp(8px, 2.5vw, 12px);
    font-size: clamp(0.8rem, 3vw, 0.9rem);
  }
  .enquiry-terms-note {
    font-size: clamp(0.68rem, 2.5vw, 0.78rem);
    margin-top: clamp(10px, 3vw, 14px);
  }
  .enquiry-modal-box .btn {
    font-size: clamp(0.75rem, 3vw, 0.88rem);
    padding: clamp(10px, 3vw, 16px) clamp(18px, 5vw, 34px);
  }
}

@media (max-width: 480px) {
  .approach-bubble-inner {
    margin-top: clamp(14px, 4vw, 22px);
    margin-left: clamp(3px, 1.5vw, 6px);
    padding: clamp(16px, 5vw, 24px) clamp(18px, 5vw, 30px) clamp(16px, 5vw, 24px) clamp(20px, 6vw, 32px);
    border-left-width: clamp(3px, 1vw, 4px);
  }

  .approach-bubble-inner::before {
    border-width: 0 clamp(14px, 4vw, 22px) clamp(14px, 4vw, 22px) 0;
  }

  .approach-bubble-inner::after {
    /* top: clamp(-5px, -1.5vw, -6px); */
    /* left: clamp(18px, 5vw, 30px); */
    width: clamp(9px, 2.5vw, 12px);
    height: clamp(9px, 2.5vw, 12px);
  }

  .approach-bubble-inner p {
    font-size: clamp(1rem, 3.5vw, 1.10rem);
    line-height: 1.6;
  }
}

@media (max-width: 1000px) {
  .page-banner::before {
    bottom: 15px;
    left: 15px;
  }
  .page-banner::after {
    top: 19px;
    right: 19px;
  } 
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;

  display: flex;
  align-items: center;
  justify-content: center;

  background: white;
  overflow: hidden;

  overscroll-behavior: contain;
  touch-action: manipulation;

  opacity: 0;
  visibility: hidden;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}


/* SLIDER VIEWPORT */
.lightbox-track {
  display: flex;

  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;

  height: 100%;
  align-self: stretch;

  /* overflow: hidden; */

  transition: transform 0.4s var(--ease);
}


/* INDIVIDUAL SLIDE */
.lightbox-slide {
  flex: 0 0 100%;

  width: 100%;
  min-width: 100%;
  max-width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}


/* IMAGE */
.lightbox-slide img {
  max-width: 92vw;
  max-height: 92vh;

  border-radius: var(--radius-sm);

  transform: scale(1.28);
  transition: transform 0.35s var(--ease);
}

/* Gallery track hidden entirely when viewing a single standalone image */
.lightbox.single-image-mode .lightbox-track {
  display: none;
}

/* The standalone single-image-mode img should likewise stay hidden
   UNLESS single-image-mode is actually active */
.lightbox > img {
  display: none;
}
.lightbox.single-image-mode > img {
  display: block;
}

.availability-table-wrap {
  overflow-x: auto;
  overflow-y: visible; /* NEW — prevents the implicit overflow-y: auto that was trapping the sticky header */
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(28,28,28,0.10);
  border: 1px solid var(--color-sand-deep);
  scrollbar-color: var(--color-orange) transparent;
  scrollbar-width: thin;
}
.availability-table-wrap::-webkit-scrollbar {
  height: 6px;
}
.availability-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}
.availability-table-wrap::-webkit-scrollbar-thumb {
  background: var(--color-orange);
  border-radius: 10px;
}

.availability-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  white-space: nowrap;
}

.availability-table thead {
  background: var(--color-ink);
}
.availability-table th {
  padding: 16px 18px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-paper);
  white-space: normal;
}

.availability-table td {
  padding: 16px 18px;
  border-top: 1px solid var(--color-sand-deep);
  color: var(--color-graphite);
}

.availability-table tbody tr {
  background: var(--color-paper);
  cursor: pointer;
  transition: background 0.25s var(--ease);
}
.availability-table tbody tr:nth-child(even) {
  background: var(--color-sand);
}

@media (hover: hover) {
  .availability-table tbody tr:hover {
    background: rgba(var(--color-orange-dark-rgb), 0.3);
  }
}

.availability-floor {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-ink);
}
.availability-unit {
  font-weight: 600;
  color: var(--color-ink);
}
.availability-total {
  font-weight: 600;
  color: var(--color-ink);
}
.availability-price {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-orange-dark);
}

.availability-status-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.availability-status-available {
  background: rgba(46,125,50,0.12);
  color: #2e7d32;
}
.availability-status-reserved {
  background: rgba(var(--color-orange-rgb), 0.14);
  color: var(--color-orange-dark);
}
.availability-status-sold {
  background: rgba(28,28,28,0.08);
  color: var(--color-stone);
}

/* Sold-out rows: visually muted, not clickable */
.availability-table tbody tr.is-sold {
  cursor: default;
}
.availability-table tbody tr.is-sold td {
  color: var(--color-mist);
}

/* Floor cell stays fully colored, even on a sold row — UNLESS the
   entire floor is sold, in which case it mutes too. */
.availability-table tbody tr.is-sold .availability-floor {
  color: var(--color-ink);
}
.availability-table tbody tr.is-sold .availability-floor.availability-floor-all-sold {
  color: var(--color-mist);
}
@media (hover: hover) {
  .availability-table tbody tr:not(.is-sold):hover td:nth-child(2) {
    background: var(--color-mist);
  }
}
.availability-table tbody tr.row-active-touch {
background: rgba(var(--color-orange-dark-rgb), 0.2);
}
.availability-table tbody tr:not(.is-sold).row-active-touch td:nth-child(2) {
  background: var(--color-mist);
}

.availability-table tbody tr.is-sold:hover {
  background: var(--color-paper);
}
.availability-table tbody tr.is-sold:nth-child(even):hover {
  background: var(--color-sand);
}

.availability-table th,
.availability-table td {
  text-align: center;
}
/* 
.availability-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}

.availability-toggle-btn i {
  transition: transform 0.3s var(--ease);
}
.availability-toggle-btn.open i {
  transform: rotate(180deg);
}

#availability {
  padding: 0;
} */

.fp-roof-terrace-heading {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 6px;
  color: var(--color-ink);
}
.fp-roof-terrace-list {
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fp-roof-terrace-list li {
  position: relative;
  padding-left: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--color-graphite);
}
.fp-roof-terrace-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 7px;
  height: 7px;
  background: var(--color-orange);
}

.fp-roof-terrace-block {
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
  width: 100%;
  flex-basis: 100%;
}

.fp-popup-areas > div:not(.fp-roof-terrace-block) {
  display: flex;
  justify-content: space-between;
}

.fp-roof-terrace-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fp-roof-terrace-list li {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.availability-property-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(var(--color-ink-rgb), 0.6);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.availability-property-modal.active {
  display: flex;
}
.availability-property-modal-box {
  position: relative;
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 30px;
  top: 40px;
}
.availability-property-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-stone);
}
.availability-property-modal-close:hover {
  color: var(--color-orange);
}

@media (max-width: 600px) {
  .availability-property-modal-box {
    padding: clamp(16px, 5vw, 30px);
    /* max-width: clamp(280px, 85vw, 480px); */
    max-height: clamp(60vh, 85vh, 88vh);
  }
  .availability-property-modal-box .fp-apartment-details {
    font-size: clamp(0.8rem, 3.5vw, 1rem);
  }
}
/* 
.availability-property-modal.stacked-below {
  background: none;
  align-items: flex-start;
  z-index: 1000;
  pointer-events: none;
}
.availability-property-modal.stacked-below .availability-property-modal-box {
  pointer-events: auto;
  transition: top 0.4s var(--ease), max-height 0.4s var(--ease);
}

#enquiry-modal.stacked-mode {
  align-items: flex-start;
}
#enquiry-modal.stacked-mode .enquiry-modal-box {
  margin-top: 0;
  transition: top 0.3s var(--ease);
}

@media (max-height: 785px) {
  #enquiry-modal.stacked-mode .enquiry-modal-box {
    padding: 12px;
  }
  .availability-property-modal.stacked-below .availability-property-modal-box {
    padding: 12px;
  }
  #enquiry-modal.stacked-mode .enquiry-modal-box h3,
  #enquiry-modal.stacked-mode .enquiry-modal-box .enquiry-modal-to,
  #enquiry-modal.stacked-mode .enquiry-modal-box label {
    margin-bottom: 8px;
  }
}

@media (max-width: 520px) {
  #enquiry-modal.stacked-mode .enquiry-modal-box {
    max-width: calc(100% - 27px);
  }
  .availability-property-modal.stacked-below .availability-property-modal-box {
    max-width: calc(100% - 27px);
  }
} */

/* .availability-modal-flat-header {
  display: none;
  position: absolute;
  top: 18px;
  left: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-orange);
}
.availability-property-modal.stacked-below .availability-modal-flat-header {
  display: block;
} */

.availability-property-modal.stacked-below .fp-apartment-details {
  margin-top: 32px;
}

/* Hide "Flat Enquiry" ONLY in the stacked state — the normal,
   standalone availability modal keeps it. */
.availability-property-modal.stacked-below .fp-panel-enquire-row {
  display: none;
}

@media (min-width: 768px) {
  #enquiry-modal.stacked-mode .enquiry-modal-box {
    max-width: 600px;
    padding: 40px;
    font-size: 1.05rem;
  }
  .availability-property-modal.stacked-below .availability-property-modal-box {
    max-width: 600px;
    padding: 40px;
    font-size: 1.05rem;
  }

  /* .availability-modal-flat-header {
    font-size: 1.3rem;
  } */
}

.availability-table th:nth-child(2),
.availability-table td:nth-child(2) {
  position: sticky;
  left: 0;
  z-index: 2;
  background: inherit; /* pulls whatever background the row already has (zebra-striping, hover, sold-out, active) so it doesn't look mismatched against the scrolling content behind it */
}

.availability-table thead th:nth-child(2) {
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--color-ink); /* explicit, not inherited — matches thead's actual color directly */
}

.availability-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--color-ink); /* explicit, not inherited — same lesson as before */
}

.brochure-flipbook-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Background — matching the site's dark accent color instead of the plugin's default grey */
.brochure-flipbook-wrap [class*="real3dflipbook"],
.brochure-flipbook-wrap .flipbook-main-wrapper {
  /* background: var(--color-ink) !important; */
  background: var(--color-paper) !important;
}

.skin-color-bg {
  background: var(--color-paper) !important;
}

/* Arrows — no background circle ever, orange icon, zoom on hover/click */
.brochure-flipbook-wrap .flipbook-right-arrow,
.brochure-flipbook-wrap .flipbook-left-arrow {
  background: transparent !important;
  transition: transform 0.25s ease !important;
}

.brochure-flipbook-wrap .flipbook-icon {
  fill: var(--color-orange) !important;
}

@media (hover: hover) {
  .brochure-flipbook-wrap .flipbook-right-arrow:hover,
  .brochure-flipbook-wrap .flipbook-left-arrow:hover {
    background: transparent !important;
    transform: scale(1.25) !important;
  }
}

.brochure-flipbook-wrap .flipbook-right-arrow:active,
.brochure-flipbook-wrap .flipbook-left-arrow:active {
  background: transparent !important;
  transform: scale(1.25) !important;
}

.split-text .js-enquire {
  margin-top: clamp(16px, 5vw, 32px);
  font-size: clamp(0.75rem, 2.5vw, 1rem);
  padding: clamp(8px, 3vw, 12px) clamp(16px, 4vw, 28px);
}

.brochure-flipbook-wrap .flipbook-menu-btn-wrapper {
  width: 50px !important;
  height: 30px !important;
}
.brochure-flipbook-wrap .flipbook-icon {
  width: 1.4em !important;
  height: 1.4em !important;
}

.flipbook-border {
    border: 0px !important;
}

.availability-table-wrap {
  overflow: auto;                      /* both axes, explicitly */
  max-height: min(70vh, 468px);        /* the header now has something to stick within */
  /* overscroll-behavior: contain;    */
}

/* border-collapse drops borders on sticky cells in Chrome and Safari, so the
   header's edge scrolls away with the rows. Use separate + a box-shadow rule. */
.availability-table { border-collapse: separate; border-spacing: 0; }

/* the corner cell — sticky in both directions, so it must outrank both */
.availability-table thead th:nth-child(2) {
  left: 0;
  z-index: 4;
}

.enquiry-modal-tabs {
  display: none; /* JS sets this to flex only when opened from an availability row */
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-sand-deep);
}
.enquiry-modal-tab {
  background: none;
  border: none;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-stone);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.enquiry-modal-tab.active {
  color: var(--color-orange-dark);
  border-bottom-color: var(--color-orange);
}
@media (hover: hover) {
  .enquiry-modal-tab:hover {
    color: var(--color-orange);
  }
}

body.intro-pretitle-hidden .hero-pretitle {
  opacity: 0;
}

body.intro-logo-hidden .home-header .logo-area img {
  opacity: 0;
}

#enquiry-tab-panel-summary {
  max-height: 60vh;
  /* overflow-y: auto; */
}

@media (max-width: 600px) {
  #enquiry-tab-panel-summary {
    /* max-height: clamp(50vh, 70vh, 80vh); */
    max-height: clamp(60vh, 67vh, 88vh);
    font-size: clamp(0.8rem, 3.5vw, 1rem);
  }
}

/* ===== Container ===== */
.cky-preference-center {
  background-color: var(--color-paper) !important;
  border-color: var(--color-sand-deep) !important;
  color: var(--color-graphite) !important;
  border-radius: var(--radius-lg) !important;
  width: 100% !important;
  max-height: 80vh !important;
  overflow-y: auto !important;
}

/* ===== Header ===== */
.cky-preference-header {
  padding: 20px 24px 12px !important;
}
.cky-preference-title {
  color: var(--color-ink) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
}
.cky-btn-close img {
  filter: opacity(0.6);
}

/* ===== Body text ===== */
.cky-preference-content-wrapper,
.cky-preference-content-wrapper p {
  color: var(--color-graphite) !important;
  font-size: 0.85rem !important;
  line-height: 1.6 !important;
}
.cky-show-desc-btn {
  color: var(--color-orange) !important;
}
.cky-horizontal-separator {
  border-color: var(--color-sand-deep) !important;
}

/* ===== Accordion (Necessary / Analytics) ===== */
.cky-accordion-btn {
  color: var(--color-ink) !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
}
.cky-accordion-header-des,
.cky-accordion-header-des p {
  color: var(--color-stone) !important;
  font-size: 0.8rem !important;
}
.cky-always-active {
  color: #2e7d32 !important; /* matches the site's existing "Available" status green */
}

/* Toggle switch — orange when active, matching the site's accent */
.cky-switch input:checked {
  background-color: var(--color-orange) !important;
}

/* ===== Cookie detail tables ===== */
.cky-audit-table {
  background-color: var(--color-sand) !important;
  border-color: var(--color-sand-deep) !important;
  color: var(--color-graphite) !important;
  border-radius: var(--radius-sm) !important;
}
.cky-cookie-des-table div {
  font-size: 0.78rem !important;
}

/* ===== Footer buttons ===== */
.cky-footer-shadow {
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, var(--color-paper) 100%) !important;
}

.cky-btn {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  border-radius: var(--radius-sm) !important;
  padding: 6px 16px !important;
}

.cky-btn-accept {
  background-color: var(--color-orange) !important;
  border-color: var(--color-orange) !important;
  color: var(--color-paper) !important;
}

.cky-btn-reject {
  background-color: transparent !important;
  border-color: var(--color-stone) !important;
  color: var(--color-ink) !important;
}

.cky-btn-preferences {
  background-color: var(--color-paper) !important;
  border-color: var(--color-orange) !important;
  color: var(--color-orange) !important;
}

@media (hover: hover) {
  .cky-btn-preferences:hover,
  .cky-btn-reject:hover {
    background-color: rgba(0, 0, 0, 0.04) !important;
  }

  .cky-btn-close:hover {
    transform: scale(1.2);
  }
  .cky-btn-close:hover img {
    filter: brightness(0) saturate(100%) invert(56%) sepia(89%) saturate(1573%) hue-rotate(348deg) brightness(97%) contrast(96%);
  }
}
.cky-btn-close {
  transition: transform 0.25s var(--ease);
}
.cky-btn-close img {
  transition: filter 0.25s var(--ease);
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .cky-preference-center {
    width: 340px !important;
    max-height: 65vh !important;
  }
  .cky-preference-header {
    padding: 16px 18px 10px !important;
  }
  .cky-preference-title {
    font-size: 1rem !important;
  }
  .cky-prefrence-btn-wrapper {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .cky-btn {
    width: 100% !important;
  }
}

[data-cky-tag="detail-powered-by"] {
  display: none !important;
}

[data-cky-tag="powered-by"] {
  display: none !important;
}

div:has(> [data-cky-tag="powered-by"]) {
  padding-bottom: 0 !important;
}

/* ===== Container ===== */
.cky-notice {
  background-color: var(--color-paper) !important;
  max-width: 480px !important;
}

/* ===== Title & description ===== */
.cky-title {
  color: var(--color-ink) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
}
.cky-notice-des,
.cky-notice-des p {
  color: var(--color-graphite) !important;
  font-size: 0.85rem !important;
  line-height: 1.6 !important;
}

/* ===== Buttons — same hierarchy as the Preference Centre ===== */
.cky-btn {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  border-radius: var(--radius-sm) !important;
  padding: 6px 16px !important;
}

/* Accept All — primary, filled orange */
.cky-notice-btn-wrapper .cky-btn-accept {
  background-color: var(--color-orange) !important;
  border-color: var(--color-orange) !important;
  color: var(--color-paper) !important;
}

/* Reject All — secondary, neutral outline */
.cky-notice-btn-wrapper .cky-btn-reject {
  background-color: transparent !important;
  border-color: var(--color-stone) !important;
  color: var(--color-ink) !important;
}

/* Customise — matches "Save My Preferences" treatment from before */
.cky-notice-btn-wrapper .cky-btn-customize {
  background-color: var(--color-paper) !important;
  border-color: var(--color-orange) !important;
  color: var(--color-orange) !important;
}

/* ===== Hover states — same pattern as the Preference Centre ===== */
@media (hover: hover) {
  .cky-notice-btn-wrapper .cky-btn-accept:hover {
    background-color: var(--color-orange-dark) !important;
    border-color: var(--color-orange-dark) !important;
  }
  .cky-notice-btn-wrapper .cky-btn-reject:hover {
    background-color: var(--color-paper) !important;
    border-color: var(--color-orange) !important;
    color: var(--color-orange) !important;
  }
  .cky-notice-btn-wrapper .cky-btn-customize:hover {
    background-color: rgba(0, 0, 0, 0.04) !important;
    border-color: var(--color-orange) !important;
    color: var(--color-orange) !important;
  }
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .cky-notice-btn-wrapper {
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .cky-notice-btn-wrapper .cky-btn {
    width: 70% !important;
    max-width: 220px !important;
  }
}

.cky-notice-content-wrapper {
  animation: ckyNoticeSlideUp 1s var(--ease);
}

@keyframes ckyNoticeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cky-consent-container {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}
body.cookie-banner-ready .cky-consent-container {
  opacity: 1;
  pointer-events: auto;
}

@media (orientation: landscape) {
  .projects-card {
    aspect-ratio: 5/3;
  }
}

.projects-thumbs-row.projects-compact-gap {
  margin: 10px 0 20px; /* reduced from the default 24px 0 50px */
}

@media (max-width: 767px) and (orientation: landscape) {
  .project-status {
    left: auto;
    top: 10px;
    right: 18px;
  }
}

@media (max-width: 480px) {
  #enquiry-modal:has(.enquiry-modal-tabs[style*="display: flex"]) .enquiry-modal-box {
    max-height: 85vh; /* adjust this value to taste */
  }
}

@media (orientation: landscape) and (min-height: 800px) {
  #enquiry-modal:has(.enquiry-modal-tabs[style*="display: flex"]) .enquiry-modal-box {
    max-height: 80vh;
    padding: 20px;
    margin-top: 9vh;
  }
}

@media (orientation: landscape) and (max-height: 800px) {
  #enquiry-modal:has(.enquiry-modal-tabs[style*="display: flex"]) .enquiry-modal-box {
    max-height: 78vh;
    padding: 15px;
    margin-top: 9vh;
  }
}

@media (orientation: landscape) {
  .li-top,
  .li-bottom {
    width: 33vh; /* switched from a width-based unit to a HEIGHT-based one, since height is now the constrained dimension */
  }
}

@media (orientation: landscape) {
  .hero-scroll-cue {
    bottom: 25px;
  }
}

@media (orientation: landscape) {
  .lightbox.active #lightbox-single-img {
    transform: scale(1.0); /* reduced from 1.28 — adjust this number to taste */
  }
}

@media (max-width: 480px) {
  .hero-slider {
    margin-top: 0px;
  }
  .hero-pretitle {
    margin-bottom: 40px;
  }
  /*.page-banner {*/
  /*  margin-top: 90px;*/
  /*}*/
}

/*@media (max-width: 1024px) {*/
/*  .page-banner {*/
/*    margin-top: 85px;*/
/*  }*/
/*} */

@media (max-width: 480px) or (orientation: landscape) {
  .home-header .header-wrap {
    height: 100px;
  }
  .hero-pretitle {
    margin-bottom: 50px;
  }
}

/*@media (orientation: landscape) {*/
/*  .page-banner {*/
/*    margin-top: 90px;*/
/*  }*/
/*}*/

/* ===== About Us dropdown — REPLACE the old dropdown block in style.css with this ===== */
.main-nav li.has-dropdown { position: relative; display: flex; align-items: center; }
.main-nav .dropdown-parent { cursor: pointer; }
.main-nav .sub-toggle {
  background: none; border: 0; color: inherit; cursor: pointer;
  padding: 6px 4px 6px 8px; font-size: .7em; line-height: 1;
}
.main-nav .sub-toggle i { transition: transform .2s ease; }
.main-nav .has-dropdown.open > .sub-toggle i { transform: rotate(180deg); }

/* the dropdown panel — stacked vertically, click-controlled only */
.main-nav ul.sub-menu {
  display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0;
  list-style: none; margin: 0; padding: 8px 0;
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.15);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 50;
}
.main-nav .has-dropdown.open > ul.sub-menu { opacity: 1; visibility: visible; transform: none; }

.main-nav ul.sub-menu ul.sub-menu {
    width: max-content !important;
    max-width: 250px;
    /*max-width: clamp(250px, calc(100vw - 630px), 380px) !important;*/
}
  
/* items: link keeps its natural width, so the orange underline = text width only */
.main-nav ul.sub-menu > li {
  width: 100%; margin: 0; padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between; position: relative;
}
.main-nav .sub-menu a {
  display: inline-block; flex: 0 0 auto; margin: 10px 0; padding: 0 0 4px;
  color: #222; white-space: nowrap;
}
.main-nav .sub-menu .sub-toggle { color: #222; padding-right: 0; }
.main-nav .sub-menu .sub-toggle i { transform: rotate(-90deg); }
.main-nav .sub-menu .has-dropdown.open > .sub-toggle i { transform: rotate(90deg); }
.main-nav ul.sub-menu ul.sub-menu { top: 0; left: 100%; }

/* highlight stays on while its dropdown is open (colour + full underline) */
.main-nav li.has-dropdown.open > a,
.main-nav li.has-dropdown.open > .sub-toggle { color: var(--color-orange) !important; }
.main-nav li.has-dropdown.open > a::after { width: 100%; }

@media (hover: hover) {
  .main-nav .sub-menu a:hover { color: var(--color-orange); }
}

@media (min-width: 769px) {
  /*.main-nav ul.sub-menu ul.sub-menu {*/
  /*  width: max-content !important;*/
  /*  max-width: clamp(250px, calc(100vw - 630px), 380px) !important;*/
  /*}*/
  .main-nav ul.sub-menu ul.sub-menu > li a {
    white-space: normal !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    line-height: 1.35;
  }
}

/* mobile nav: dropdowns become inline accordions */
@media (max-width: 880px) {
  .main-nav li.has-dropdown { flex-wrap: wrap; justify-content: space-between; }
  .main-nav ul.sub-menu {
    position: static; width: 100%; min-width: 175px; box-shadow: none; background: transparent;
    opacity: 1; visibility: visible; transform: none;
    display: none; padding: 0 0 0 16px;
  }
  .main-nav .has-dropdown.open > ul.sub-menu { display: flex; }
  .main-nav ul.sub-menu > li { padding: 0; }
  .main-nav .sub-menu a { color: inherit; white-space: normal; margin: 8px 0; }
  .main-nav .sub-menu .sub-toggle { color: inherit; }
  .main-nav .sub-menu .sub-toggle i { transform: none; }
  .main-nav .sub-menu .has-dropdown.open > .sub-toggle i { transform: rotate(180deg); }
  .main-nav ul.sub-menu ul.sub-menu { left: 0; }
  
  .main-nav .has-dropdown.open > ul.sub-menu {
    max-height: 3000px;            /* was 600px, high enough to never clip */
    opacity: 1;
    visibility: visible;
    transition: max-height .5s ease, opacity .4s ease .08s, visibility 0s;
  }

  /* the side menu itself scrolls when everything doesn't fit the screen */
  .main-nav {
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 24px;          /* last item stays reachable above the phone's bottom bar */
  }
}

/* ===== Homepage About: buttons to sub-pages ===== */
.about-page-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ===== Homepage About: link tiles to Services / Our Team / Awards / Main Clients ===== */
.about-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin-top: 8px;
  border-top: 1px solid var(--color-sand-deep);
}
.about-link {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--color-sand-deep);
  text-decoration: none;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  transition: color .3s ease, padding-left .3s ease;
}
.about-link::after {            /* orange underline that grows in, like the nav */
  content: "";
  position: absolute; left: 0; bottom: -1px;
  width: 0; height: 2px;
  background: var(--color-orange);
  transition: width .35s ease;
}
.about-link-icon {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-orange);
  color: var(--color-paper);
  font-size: 0.85rem;
  transition: transform .3s ease, background .3s ease;
}
.about-link-label { flex: 1; }
.about-link-arrow {
  font-size: 0.8rem;
  color: var(--color-mist);
  transition: transform .3s ease, color .3s ease;
}
@media (hover: hover) {
  .about-link:hover { color: var(--color-orange); padding-left: 10px; }
  .about-link:hover::after { width: 100%; }
  .about-link:hover .about-link-icon { transform: scale(1.08); }
  .about-link:hover .about-link-arrow { transform: translateX(6px); color: var(--color-orange); }
}
@media (max-width: 480px) {
  .about-links { grid-template-columns: 1fr; }
}

/* ===== Contact section: Google Maps embed in place of the image ===== */
.split-media.map-embed { position: relative; isolation: isolate; }  /* own stacking context */
/* any decorative ::before / ::after frame stays BEHIND the map and can't block it */
.split-media.map-embed::before,
.split-media.map-embed::after { z-index: -1; pointer-events: none; }
.split-media.map-embed iframe {
  position: relative; z-index: 1;
  display: block;
  width: 100%;
  /*aspect-ratio: 4 / 3;*/
  min-height: 420px;
  border: 0;
  border-radius: var(--radius-md);
}
@media (max-width: 768px) {
  .split-media.map-embed iframe { aspect-ratio: 1 / 1; min-height: 280px; }
}

/* multi-line address next to its icon */
.contact-lines a.contact-address-link {
  display: flex;
  align-items: flex-start;   /* icon stays level with the FIRST line */
  flex: 1;
  min-width: 0;
}
.contact-lines a.contact-address-link i { margin-top: 0; }
.contact-lines .contact-address {
  flex: 1;
  min-width: 0;              /* wrapped lines start where the text starts, not under the icon */
  line-height: 1.45;
  padding-top: 5px;          /* centres the first line against the 34px icon */
}

/* "Follow us on Facebook" — reads as a link: underlined text, icon left alone */
.contact-lines a.contact-fb-link span {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-weight: normal;
}
@media (hover: hover) {
  .contact-lines a.contact-fb-link:hover span { color: var(--color-orange); text-decoration-color: currentColor; }
}
/* no leftover highlight from focus (keyboard users still get an outline) */
.contact-lines a:focus:not(:focus-visible) { outline: none; } /*color: inherit; */

/* right after a click: no highlight, whatever the browser thinks is hovered */
.contact-lines.hover-off a,
.contact-lines.hover-off a:hover,
.contact-lines.hover-off a:focus {
  color: var(--color-ink);
  outline: none;
}
.contact-lines.hover-off a.contact-fb-link:hover span { color: inherit; }

/* keyboard users still get a visible focus ring */
.contact-lines a:focus:not(:focus-visible) { outline: none; }

/* ===== Hero slider: project name / client / year, top-left under the header ===== */
.hero-captions {
  position: absolute;
  z-index: 3;
  top: clamp(88px, 11vh, 120px);          /* closer to the header — lower these numbers to go higher */
  left: clamp(20px, 3vw, 48px);           /* nearer the left edge — lower to go further left */
  right: 24px;
  pointer-events: none;
}
.hero-caption {
  position: absolute; top: 0; left: 0;
  display: flex; flex-direction: column; gap: 6px;
  max-width: min(90vw, 780px);
  color: var(--color-paper, #fdfcfa);
  text-shadow: 0 3px 22px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(8px);
  transition: opacity .8s ease, transform .8s ease;
}
.hero-caption.active { opacity: 1; transform: none; }

/* project name — heading size */
.hero-caption-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: .01em;
}
/* client — a little smaller */
.hero-caption-client {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  line-height: 1.2;
  opacity: .95;
}
/* year — a little smaller again */
.hero-caption-year {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 1.9vw, 1.3rem);
  letter-spacing: .06em;
  opacity: .85;
}
@media (max-width: 768px) {
  .hero-captions { left: 16px; top: clamp(80px, 12vh, 104px); }
  .home-header .header-wrap { height: 100px; }
}

/* ===== Hero slider: fill the screen exactly on load ===== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;               /* fallback for old browsers */
  /*height: 100svh;*/              /* exact visible screen height, even with a mobile address bar */
  height: var(--hero-h, 100svh);   /* locked by the script on load; 100svh until then */
  min-height: 0;               /* was 640px — that forced the hero taller than short screens */
  overflow: hidden;
  background: var(--color-ink);
}
.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;      /* fills width AND height edge to edge, no bars, no stretching */
  background-position: center center;
  background-repeat: no-repeat;
}

/* Hero starts at the very top; fixed header overlays it */
.home .hero-slider {
  margin-top: 0 !important;
  height: 100vh;
  min-height: 0;
}

/* Logged-in only: subtract the WP admin bar so you see the same fit as visitors */
.admin-bar.home .hero-slider { height: calc(100vh - 32px); }
@media (max-width: 782px) {
  .admin-bar.home .hero-slider { height: calc(100vh - 46px); }
}

/* Hero caption: bottom-left, pretitle look */
.hero-captions {
  top: auto !important;
  bottom: clamp(28px, 9vh, 72px);
  left: clamp(20px, 3vw, 48px);
}
.hero-caption {
  top: auto;
  bottom: 0;
  gap: 4px;
  text-shadow: none; /* the text spans carry the pretitle's shadow instead */
}

.hero-caption .hero-caption-name,
.hero-caption .hero-caption-client,
.hero-caption .hero-caption-year {
  font-family: 'Poppins', var(--font-display);
  font-weight: 100;
  letter-spacing: 0.08em;
  /*letter-spacing: normal;*/
  /*text-transform: uppercase;*/
  color: var(--color-paper, #fdfcfa);
  opacity: 1;
  line-height: 1.3;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.6);
  paint-order: stroke fill;
  text-shadow: 0 2px 4px rgba(0,0,0,.9), 0 4px 12px rgba(0,0,0,.85),
               0 8px 24px rgba(0,0,0,.7), 0 0 40px rgba(0,0,0,.5);
}
.hero-caption .hero-caption-name   { font-size: clamp(1.15rem, 1.8vw, 1.6rem); }
.hero-caption .hero-caption-client { font-size: clamp(.95rem, 1.4vw, 1.2rem); }
.hero-caption .hero-caption-year   { font-size: clamp(.85rem, 1.2vw, 1.05rem); }

@media (max-width: 768px) {
  .hero-captions { left: 16px; bottom: clamp(24px, 6vh, 48px); }
}

/* Clickable project title */
.hero-captions { pointer-events: none; }               /* keep the rest of the hero clickable-through */
.hero-caption { pointer-events: none; }
.hero-caption.active .hero-caption-name { pointer-events: auto; }  /* only the visible title is clickable */

.hero-caption a.hero-caption-name {
  color: var(--color-paper, #fdfcfa);
  text-decoration: none;
  font-weight: 300;
  cursor: pointer;
  align-self: flex-start;
  line-height: 1.5;                        /* room for the line under each row of a two-line title */
  transition: color .25s ease;
}
.hero-caption a.hero-caption-name > span {       /* the underline: a 1px line at the bottom of the text, repeated on every line */
  padding-bottom: 2px;
  background: linear-gradient(rgba(253,252,250,.7), rgba(253,252,250,.7)) no-repeat 0 100% / 100% 1px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (hover: hover) {
  .hero-caption a.hero-caption-name:hover { color: var(--color-orange); }
  .hero-caption a.hero-caption-name:hover > span { background-image: linear-gradient(var(--color-orange), var(--color-orange)); }
}

.hero-caption a.hero-caption-name:focus-visible { outline: 1px solid rgba(253,252,250,.8); outline-offset: 4px; }

/* Hero button: pinned low, just above the stats bar */
.hero-cta {
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  /*bottom: clamp(80px, 12vh, 130px);*/
  bottom: clamp(120px, 10vh, 180px);
}
.hero-cta a.btn {
  font-family: 'Poppins', var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff !important;
  background: transparent !important;
  border: 1px solid #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transition: color .3s ease, border-color .3s ease;
}
@media (hover: hover) {
  .hero-cta a.btn:hover {
    color: var(--color-orange) !important;
    border-color: var(--color-orange) !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}
@media (max-width: 768px) {
  .hero-cta { left: 16px; transform: none; bottom: clamp(110px, 18vh, 160px); } /* sits above the caption */
}

/* Pretitle: pinned high, same gap below the header as the button has above the stats bar */
.hero-slider > .hero-pretitle {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  /*top: calc(100px + clamp(20px, 5vh, 180px));*/
  top: calc(var(--header-h, 100px) + clamp(20px, 5vh, 180px));  /* header height + the button's gap */
  text-align: center;
  padding: 0 16px;
  pointer-events: none;
}
/*@media (max-width: 768px) {*/
/*  .hero-slider > .hero-pretitle { top: calc(80px + clamp(10px, 1vh, 110px)); }*/
/*}*/
@media (max-width: 768px) {
  .hero-slider > .hero-pretitle { top: calc(var(--header-h, 80px) + clamp(16px, 2.5vh, 110px)); }
}

/* Scroll cue: sits just below the hero button, clear of the stats bar */
.hero-slider .hero-scroll-cue {
  bottom: calc(clamp(110px, 18vh, 180px) - 64px);  /* button's gap minus room for the arrow */
  z-index: 3;
}
@media (max-width: 768px) {
  .hero-slider .hero-scroll-cue { bottom: calc(clamp(110px, 18vh, 160px) - 64px); }
}

@media (max-width: 880px) {
  .main-nav .sub-toggle,
  .main-nav .sub-menu .sub-toggle {
    opacity: 1;
    visibility: visible;
    font-size: .85em;
    padding: 6px 10px;
  }
  .main-nav .sub-toggle i { color: inherit; }   /* icon follows the button's colour */
}

@media (max-width: 880px) {

  /* arrows right next to their label */
  .main-nav li.has-dropdown,
  .main-nav ul.sub-menu > li {
    justify-content: flex-start;
    align-items: center;
  }
  .main-nav .sub-toggle,
  .main-nav .sub-menu .sub-toggle {
    padding: 6px 4px 6px 6px;
    margin-left: 2px;
  }
  .main-nav .sub-toggle i { transition: transform .35s ease; }

  /* smooth expand / collapse instead of a jump */
  .main-nav ul.sub-menu {
    display: flex;                 /* always laid out, so it can animate */
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height .45s ease, opacity .3s ease, visibility 0s linear .45s;
  }
  .main-nav .has-dropdown.open > ul.sub-menu {
    max-height: 600px;
    opacity: 1;
    visibility: visible;
    transition: max-height .5s ease, opacity .4s ease .08s, visibility 0s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-nav ul.sub-menu, .main-nav .sub-toggle i { transition: none !important; }
}

/* One value controls both: the button's distance from the bottom of the hero */
.hero-slider {
  --cta-bottom: clamp(120px, 10vh, 180px);
  --cue-gap: 40px;              /* button-to-arrow spacing, never changes */
}
/*@media (max-width: 768px) {*/
/*  .hero-slider { --cta-bottom: clamp(110px, 18vh, 160px); }*/
/*}*/

.hero-cta {
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  bottom: var(--cta-bottom);
}
/*@media (max-width: 768px) {*/
/*  .hero-cta { left: 16px; transform: none; }*/
/*}*/

.hero-slider .hero-scroll-cue {
  bottom: calc(var(--cta-bottom) - var(--cue-gap));
  z-index: 3;
}

/* ===== Stats strip + hero caption: tablet and below ===== */
@media (max-width: 1238px) {

  /* strip overlaps the hero by a width-based amount: 78px at 1238, shrinking smoothly.
     This also replaces the old -50px at ≤768, so the grid keeps the same top edge. */
  .stats-strip { margin-top: calc(-1 * clamp(40px, 6.3vw, 78px)); }

  /* thinner bar as the screen narrows */
  .stats-strip .stat {
    padding: clamp(0.875rem, 2.75vw, 2.125rem) clamp(8px, 1.6vw, 20px);
  }

  /* caption never goes lower than just above the strip (--stats-overlap is set by JS) */
  /*.hero-captions {*/
  /*  bottom: max(*/
  /*    clamp(28px, 7vh, 72px),*/
  /*    calc(var(--stats-overlap, 78px) + clamp(14px, 2.5vh, 28px))*/
  /*  );*/
  /*}*/
}

/* 2×2 grid: much tighter cells, same top edge as the single row */
@media (max-width: 768px) {
  .stats-strip .stat { padding: clamp(0.75rem, 2.4vw, 1.25rem) 8px; }
  .stats-strip .stat strong { margin-bottom: 4px; }
}

@media (max-width: 1238px) {
  .hero-slider {
    /* the strip's overlap shrinks from 78px; lower the button and arrow by the same amount */
    --cta-bottom: calc(clamp(120px, 10vh, 180px) - (78px - var(--stats-overlap, 78px)));
  }
}

@media (max-width: 900px) {

  /* Hero button: scales down, label always on one line */
  .hero-cta a.btn {
    white-space: nowrap;
    /* 14px at 900px wide → 11px at 360px; never wider than the screen allows */
    font-size: min(clamp(0.6875rem, 0.5625rem + 0.5556vw, 0.88rem), 4vw);
    padding: 1.15em 2.4em;      /* em: padding shrinks together with the text */
    gap: 0.8em;
    letter-spacing: 0.1em;
  }

  /* Stats: value and label shrink together */
  .stats-strip .stat strong {
    font-size: clamp(1.05rem, 0.77rem + 1.3vw, 1.5rem);   /* 24px → 17px */
  }
  .stats-strip .stat span {
    font-size: clamp(0.625rem, 0.52rem + 0.46vw, 0.78rem); /* 12.5px → 10px */
  }
}

@media (max-width: 900px) {
  .hero-caption .hero-caption-name   { font-size: clamp(0.8rem,   0.69rem  + 0.815vw, 1.15rem); } /* 18.4px → 14px */
  .hero-caption .hero-caption-client { font-size: clamp(0.75rem,  0.617rem + 0.593vw, 0.95rem); } /* 15.2px → 12px */
  .hero-caption .hero-caption-year   { font-size: clamp(0.656rem, 0.527rem + 0.574vw, 0.85rem); } /* 13.6px → 10.5px */
}

/*@media (max-width: 840px) {*/
  /* caption sits above the button, with a clear gap */
/*  .hero-captions {*/
/*    bottom: calc(var(--cta-reach, 150px) + clamp(16px, 3vh, 28px));*/
/*  }*/
/*}*/
@media (max-width: 749px) { /*690*/
  .hero-captions {
    bottom: calc(var(--cta-reach, 150px) + clamp(4px, 1vh, 10px));   /* was clamp(16px, 3vh, 28px) */
  }
}

@media (max-width: 900px) {

  /* Line 1: 38.4px → 20px, letter-spacing 69px → 18px (same proportions) */
  .hero-pretitle-line1, .li-pretitle-line1 {
    --pt1-ls: clamp(1.1rem, 9.44vw - 1rem, 4.3rem);
    font-size: clamp(1.25rem, 0.483rem + 3.407vw, 2.4rem);
    letter-spacing: var(--pt1-ls);
    margin-right: calc(var(--pt1-ls) * -0.8333);   /* cancels the trailing space, as before */
  }

  /* Line 2: 22.5px → 14px, letter-spacing 18px → 7px */
  .hero-pretitle-line2, .li-pretitle-line2 {
    --pt2-ls: clamp(0.4rem, 2.04vw, 1.15rem);
    font-size: clamp(0.8rem, 0.52rem + 1.574vw, 1.4rem);
    letter-spacing: var(--pt2-ls);
    margin-right: calc(var(--pt2-ls) * -0.625);
  }
}

.meta-row {
  justify-content: center;   /* items centred in the row, including when they wrap */
  text-align: center;        /* strong + label centred under each other */
}

@media (max-width: 880px) {
  .main-nav {
    width: clamp(170px, 34vw, 260px);       /* 260px at 768 → 170px on phones */
    max-width: 80vw;                         /* safety with large text settings */
    padding: clamp(20px, 5.2vw, 40px);
    overflow-y: auto;                        /* scrolls on very short screens */
  }
  .main-nav ul { gap: clamp(16px, 3.6vw, 28px); }

  /* breadcrumbs: 14.4px at 768 → 11.5px at 360 */
  .main-nav a { font-size: clamp(0.72rem, 0.56rem + 0.71vw, 0.9rem); }
}

@media (max-width: 880px) {
  .main-nav li > a {
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 30px);
    white-space: normal;
    overflow-wrap: normal;     /* was "anywhere": words are never broken */
    word-break: normal;
    hyphens: none;
    line-height: 1.3;
  }
}

.footer-brand .footer-logo {
  /*width: clamp(170px, 22vw, 260px);*/
  max-width: 90%;                     /* never wider than its column */
  height: auto;
  min-width: 230px;
}
/*.footer-top .footer-brand {*/
/*    margin-right: clamp(45px, 4vw, 60px);*/
/*}*/

/* ===== SINGLE PROJECT PAGE — START (paste at the very END of style.css) ===== */

.pp-page {
  padding-top: clamp(108px, 14vh, 140px);   /* clears the fixed header */
  padding-bottom: 40px;
  overflow-x: clip;
}
html.pp-lock { overflow: hidden; }

/* ---------- breadcrumb ---------- */
/*.pp-crumbs {*/
/*  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;*/
/*  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;*/
/*  color: var(--color-stone); margin-bottom: clamp(18px, 3vw, 34px);*/
/*}*/
.pp-crumbs {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 4px clamp(5px, 1.2vw, 10px);
  font-size: clamp(.56rem, .42rem + .5vw, .78rem); letter-spacing: clamp(.03em, .5vw, .08em); text-transform: uppercase;
  color: var(--color-stone); margin-bottom: clamp(18px, 3vw, 34px);
}
.pp-crumbs a, .pp-crumbs > span { flex: 0 0 auto; }
.pp-crumbs em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pp-crumbs a { color: var(--color-stone); text-decoration: none; transition: color .25s; }
.pp-crumbs span { color: var(--color-mist); }
.pp-crumbs em { font-style: normal; color: var(--color-orange); }
@media (hover: hover) { .pp-crumbs a:hover { color: var(--color-orange); } }

/* ---------- title block ---------- */
.pp-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: clamp(20px, 4vw, 60px);
  position: relative;
  padding-top: 26px;
}
.pp-head::before {            /* short orange rule above the status */
  content: ""; position: absolute; top: 0; left: 0;
  width: 64px; height: 4px; background: var(--color-orange);
}
.pp-head-main { min-width: 0; }

.pp-status {
  display: inline-flex; align-items: center; gap: .8em;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(.5rem, .36rem + .6vw, .78rem); letter-spacing: .12em; text-transform: uppercase;
  padding: .62em 1.25em .62em 1.1em; border-radius: 999px;
  color: var(--color-ink); background: var(--color-sand);
  border: 1px solid var(--color-sand-deep, rgba(0,0,0,.08));
  margin-bottom: clamp(14px, 2vw, 22px);
}
.pp-status i {
  width: .72em; height: .72em; border-radius: 50%;
  background: var(--st, var(--color-orange));
  color: var(--st, var(--color-orange));
  position: relative;
}
.pp-status i::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid currentColor; opacity: 0;
  animation: ppPulse 2.2s ease-out infinite;
}
@keyframes ppPulse { 0% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.9); } }

.pp-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  color: var(--color-ink);
  margin: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

/* short description under the title */
.pp-lead {
  max-width: 100ch; margin: clamp(12px, 1.6vw, 20px) 0 0;
  font-size: clamp(0.9rem, 1.5vw, 1.2rem); line-height: 1.65; color: var(--color-graphite);
}

.pp-lead { position: relative; padding-left: 1.2em; }
.pp-lead::before {
  content: ""; position: absolute; left: .1em; top: .65em;
  width: .36em; height: .36em; background: var(--color-orange);
}

/* ---------- award seal ---------- */
.pp-seal {
  position: relative; flex: 0 0 auto;
  --s: clamp(56px, 8.6vw, 100px);
  width: var(--s); aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--s) * .04);
  border-radius: 50%; text-decoration: none; text-align: center;
  color: var(--color-orange);
  background: radial-gradient(circle at 30% 25%, #fff, var(--color-sand));
  box-shadow: 0 14px 34px rgba(0,0,0,.10), inset 0 0 0 1px rgba(0,0,0,.05);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, color .35s;
  margin-bottom: 4px;
}
.pp-seal-ring {
  position: absolute; inset: calc(var(--s) * .06); border-radius: 50%;
  border: 1.5px dashed var(--color-orange); opacity: .65;
  animation: ppSpin 28s linear infinite;
}
@keyframes ppSpin { to { transform: rotate(360deg); } }
.pp-seal i { font-size: calc(var(--s) * .19); line-height: 1; }
.pp-seal-text {
  font-family: var(--font-display); font-weight: 600; line-height: 1.2;
  font-size: max(6px, calc(var(--s) * .105)); letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-ink); max-width: 90%;
}
@media (hover: hover) {
  .pp-seal:hover { transform: translateY(-4px) rotate(-3deg); box-shadow: 0 20px 44px rgba(var(--color-orange-rgb, 232,119,34), .28); }
}

/* ---------- facts strip ---------- */
.pp-facts {
  /*display: flex; flex-wrap: wrap; align-items: stretch;*/
  display: flex; flex-wrap: nowrap; align-items: stretch;
  margin-top: clamp(22px, 2.4vw, 40px);
  border-top: 1px solid var(--color-sand-deep, rgba(0,0,0,.12));
  border-bottom: 1px solid var(--color-sand-deep, rgba(0,0,0,.12));
}
.pp-fact {
  display: flex; align-items: center; gap: clamp(8px, 1.4vw, 14px);
  flex: 1 1 0; min-width: 0;
  padding: clamp(14px, 2vw, 22px) clamp(14px, 2.2vw, 28px);
  border-left: 1px solid var(--color-sand-deep, rgba(0,0,0,.12));
}
.pp-fact:first-child { border-left: 0; padding-left: 0; }
.pp-fact-icon {
  flex: 0 0 auto; width: clamp(26px, 3.4vw, 42px); height: clamp(26px, 3.4vw, 42px); border-radius: 50%;
  display: grid; place-items: center;
  color: var(--color-orange); background: rgba(var(--color-orange-rgb, 232,119,34), .10);
  font-size: clamp(.62rem, .35rem + 1vw, .95rem);
}
.pp-fact > div { min-width: 0; }
.pp-fact-label {
  display: block; font-size: clamp(.52rem, .38rem + .45vw, .68rem); letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-stone); margin-bottom: 3px;
}
.pp-fact-value {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(.82rem, .55rem + 1.2vw, 1.25rem); color: var(--color-ink); line-height: 1.25;
  overflow-wrap: break-word;
}
.pp-fact-sub { display: block; font-size: clamp(.68rem, .5rem + .55vw, .85rem); color: var(--color-graphite); margin-top: 2px; }

.pp-cred-btn {
  flex: 0 0 auto; align-self: center; margin-left: auto;
  display: inline-flex; align-items: center; gap: .9em;
  padding: .95em 1.8em; border-radius: 999px; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(.58rem, .42rem + .6vw, .78rem);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--color-ink); background: transparent;
  border: 1px solid var(--color-ink);
  transition: background .3s, color .3s, border-color .3s;
}
.pp-cred-btn i { transition: transform .3s var(--ease); font-size: .8em; }
@media (hover: hover) {
  .pp-cred-btn:hover { background: var(--color-orange); border-color: var(--color-orange); color: #fff; }
  .pp-cred-btn:hover i { transform: translateX(4px); }
}

/* ---------- section menu: its own row between the facts and the gallery ---------- */
.pp-menu {
  position: sticky; top: 76px; z-index: 30;
  margin-top: clamp(14px, 2vw, 22px);
  background: var(--color-paper, #fff);
  display: flex; align-items: center; gap: clamp(10px, 2.4vw, 32px);
}
.pp-menu-label {
  flex: 0 0 auto; padding-right: clamp(10px, 2.4vw, 32px);
  border-right: 1px solid var(--color-sand-deep, rgba(0,0,0,.18));
  font-size: clamp(.54rem, .4rem + .5vw, .68rem); letter-spacing: .18em; text-transform: uppercase; color: var(--color-stone);
  line-height: 1.2;
}
.pp-menu ul {
  list-style: none; margin: 0; padding: 0; min-width: 0;
  display: flex; flex-wrap: nowrap; gap: clamp(16px, 4vw, 52px);
  overflow-x: auto; overflow-y: hidden;
  /* slim, always-visible scrollbar: it only exists when the links overflow, so it doubles as a "you can scroll" hint */
  scrollbar-width: thin; scrollbar-color: var(--color-orange) var(--color-sand-deep, rgba(0,0,0,.1));
  -webkit-overflow-scrolling: touch;
}
.pp-menu ul::-webkit-scrollbar { height: 4px; }
.pp-menu ul::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.pp-menu ul::-webkit-scrollbar-track { background: var(--color-sand-deep, rgba(0,0,0,.1)); border-radius: 4px; }
.pp-menu ul::-webkit-scrollbar-thumb { background: var(--color-orange); border-radius: 4px; }
.pp-menu li { flex: 0 0 auto; }
.pp-menu a {
  position: relative; display: inline-flex; align-items: center; gap: .7em;
  padding: clamp(11px, 1.5vw, 16px) 0; text-decoration: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(.6rem, .42rem + .6vw, .84rem);
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--color-graphite); transition: color .25s;
}
.pp-menu a i { font-size: .85em; color: var(--color-stone); transition: color .25s; }
.pp-menu a::after {            /* animated underline for the active section */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--color-orange); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.pp-menu a.active { color: var(--color-orange); }
.pp-menu a.active i { color: var(--color-orange); }
.pp-menu a.active::after { transform: scaleX(1); }
@media (hover: hover) { .pp-menu a:hover { color: var(--color-orange); } .pp-menu a:hover i { color: var(--color-orange); } }

.pp-layout { margin-top: clamp(20px, 3vw, 34px); }
.pp-main { min-width: 0; }

/* ---------- gallery ---------- */
.pp-gallery { margin-bottom: clamp(10px, 2vw, 24px); }
.pp-stage {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9; max-height: 74vh;
  background: var(--color-ink); border-radius: var(--radius-md, 10px);
  overflow: hidden; cursor: zoom-in; outline: none;
  touch-action: pan-y;
}
.pp-stage > img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: opacity .35s ease; user-select: none; -webkit-user-drag: none;
}
.pp-stage > img.is-fading { opacity: 0; }
.pp-stage:focus-visible { box-shadow: 0 0 0 3px rgba(var(--color-orange-rgb, 232,119,34), .5); }

.pp-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: clamp(28px, 4vw, 48px); height: clamp(28px, 4vw, 48px); border-radius: 50%; border: 0; cursor: pointer;
  font-size: clamp(.6rem, .3rem + 1vw, 1rem);
  display: grid; place-items: center; color: var(--color-ink);
  background: rgba(255,255,255,.88); backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.pp-arrow--prev { left: clamp(8px, 1.4vw, 16px); }
.pp-arrow--next { right: clamp(8px, 1.4vw, 16px); }
@media (hover: hover) {
  .pp-arrow:hover { background: var(--color-orange); color: #fff; transform: translateY(-50%) scale(1.06); }
}
.pp-arrow.flash { background: var(--color-orange); color: #fff; }

.pp-counter {
  position: absolute; left: clamp(8px, 1.4vw, 16px); bottom: clamp(8px, 1.2vw, 14px); pointer-events: none;
  font-family: var(--font-display); font-size: clamp(.58rem, .4rem + .5vw, .82rem); letter-spacing: .1em;
  color: #fff; padding: .45em .95em; border-radius: 999px; background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
}
.pp-counter b { font-weight: 600; }
.pp-expand {
  position: absolute; right: clamp(8px, 1.4vw, 16px); bottom: clamp(8px, 1.2vw, 14px); pointer-events: none;
  width: clamp(24px, 3.2vw, 36px); height: clamp(24px, 3.2vw, 36px); border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); font-size: clamp(.55rem, .3rem + .8vw, .85rem);
}

/* thumbnails row (below the display, all screen sizes) */
.pp-thumbs-row { display: flex; align-items: center; gap: clamp(6px, 1vw, 10px); margin-top: clamp(8px, 1.2vw, 12px); }
.pp-thumbs-scroll {
  flex: 1 1 auto; min-width: 0; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.pp-thumbs-scroll::-webkit-scrollbar { display: none; }
.pp-thumbs-track { display: flex; gap: 10px; width: max-content; padding: 8px 4px 6px; }   /* room for the orange ring + lift */
.pp-thumb {
  flex: 0 0 auto; width: clamp(68px, 11vw, 124px); aspect-ratio: 3 / 2;
  padding: 0; border: 0; cursor: pointer; border-radius: var(--radius-sm, 6px);
  overflow: hidden; opacity: .6; position: relative;
  transition: opacity .3s, transform .3s var(--ease), box-shadow .3s;
}
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-thumb.active { opacity: 1; box-shadow: 0 0 0 3px var(--color-orange); transform: translateY(-2px); }
@media (hover: hover) { .pp-thumb:hover { opacity: 1; } }

.pp-thumbs-arrow {
  flex: 0 0 auto; width: clamp(24px, 3.2vw, 38px); height: clamp(24px, 3.2vw, 38px); border-radius: 50%; border: 1px solid var(--color-ink);
  background: transparent; color: var(--color-ink); cursor: pointer; display: grid; place-items: center;
  font-size: clamp(.52rem, .3rem + .7vw, .8rem); transition: background .25s, color .25s, border-color .25s, opacity .25s;
}
.pp-thumbs-arrow.hidden { visibility: hidden; }
@media (hover: hover) { .pp-thumbs-arrow:hover { background: var(--color-orange); border-color: var(--color-orange); color: #fff; } }
.pp-thumbs-arrow.flash { background: var(--color-orange); border-color: var(--color-orange); color: #fff; }

/* ---------- sections ---------- */
.pp-main .project-section { padding: clamp(46px, 7vw, 90px) 0 0;
  /* Where the page links (Description / News / Awards…) land: the sticky header + links row take ~128px, and the section
     title sits ~19px below the section's own padding. The result puts the title about 32px under the links row;
     change the 32px to land lower (bigger) or higher (smaller). */
  scroll-margin-top: calc(128px + 32px - 19px - clamp(46px, 7vw, 90px)); }
html:has(.pp-page) { scroll-padding-top: 0; }   /* the theme's global scroll offset would otherwise be added on top of this */
.pp-section .section-head { margin-bottom: clamp(26px, 4vw, 44px); }
.pp-inner { width: 100%; }

.pp-about { max-width: 120ch; }
.pp-about--right { margin-left: auto; }
.pp-about h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem); color: var(--color-ink); margin: 0 0 14px;
}
.pp-about p { color: var(--color-graphite); line-height: 1.8; margin: 0 0 0.2em; }

/* news / awards: note on one side, image on the other */
.pp-split { display: block; margin-bottom: clamp(26px, 4vw, 44px); }
.pp-split:last-child { margin-bottom: 40px; }
.pp-split.has-image {
  /*display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);*/
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 52px); align-items: center;
}
/*.pp-split--right.has-image { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }*/
.pp-split--right.has-image { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.pp-split--right.has-image .pp-split-media { order: -1; }
.pp-split:not(.has-image) .section-note { max-width: 760px; }
.pp-split--right:not(.has-image) .section-note { margin-left: auto; }
.pp-split-media { margin: 0; border-radius: var(--radius-md, 10px); overflow: hidden; box-shadow: 0 18px 44px rgba(0,0,0,.14); }
/*.pp-split-media img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }*/
.pp-split-media img { width: 100%; height: auto; display: block; }

.pp-note-body { min-width: 0; }
.pp-note-body h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--color-ink); margin: 2px 0 8px;
}
.pp-note-date, .pp-note-by {
  display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--color-orange); font-weight: 600;
}
.pp-note-by { color: var(--color-stone); letter-spacing: .08em; margin-bottom: 8px; }
.pp-note-body p { margin: 0 0 .8em; }
.pp-note-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  font-family: var(--font-display); font-weight: 600; font-size: .85rem;
  color: var(--color-orange); text-decoration: none; border-bottom: 1px solid currentColor;
}
.pp-note-link i { font-size: .8em; transition: transform .3s var(--ease); }
@media (hover: hover) { .pp-note-link:hover i { transform: translateX(4px); } }

/* ---------- gallery lightbox (slider + zoom) ---------- */
.pp-lightbox {
  position: fixed; inset: 0; z-index: 10000; display: none; flex-direction: column;
  background: #fff;
}
.pp-lightbox.open { display: flex; }
.pp-lb-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(8px, 1.2vw, 12px) clamp(10px, 1.6vw, 18px); color: var(--color-ink);
  background: linear-gradient(180deg, #fff 55%, rgba(255,255,255,0));
}
.pp-lb-count { font-family: var(--font-display); letter-spacing: .12em; font-size: clamp(.68rem, .5rem + .5vw, .9rem); }
.pp-lb-tools { display: flex; gap: clamp(4px, .8vw, 8px); }
.pp-lb-tools button, .pp-lb-nav {
  width: clamp(32px, 4vw, 44px); height: clamp(32px, 4vw, 44px); border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--color-ink); font-size: clamp(.72rem, .4rem + .9vw, 1rem);
  background: rgba(0,0,0,.07); transition: background .25s, color .25s;
}
@media (hover: hover) { .pp-lb-tools button:hover, .pp-lb-nav:hover { background: var(--color-orange); color: #fff; } }
.pp-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: clamp(34px, 4.6vw, 52px); height: clamp(34px, 4.6vw, 52px);
  background: rgba(255,255,255,.9); box-shadow: 0 6px 22px rgba(0,0,0,.22);
}
.pp-lb-nav.prev { left: clamp(10px, 2vw, 30px); }
.pp-lb-nav.next { right: clamp(10px, 2vw, 30px); }

.pp-lb-stage { position: relative; flex: 1 1 auto; overflow: hidden; touch-action: none; cursor: grab; }
.pp-lb-stage.dragging { cursor: grabbing; }
.pp-lb-track { display: flex; height: 100%; transition: transform .45s var(--ease); will-change: transform; }
.pp-lb-track.no-anim { transition: none; }
.pp-lb-slide { flex: 0 0 100%; height: 100%; overflow: hidden; padding: clamp(48px, 5.4vw, 60px) 0 0; box-sizing: border-box; }
.pp-lb-slide img {
  display: block; width: 100%; height: 100%;      /* every image fills the whole box */
  object-fit: contain; user-select: none; -webkit-user-drag: none;
  transform-origin: center center; will-change: transform;
}

/* ---------- credentials popup ---------- */
.pp-modal {
  position: fixed; inset: 0; z-index: 10001; display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(10,10,10,.6); backdrop-filter: blur(4px);
}
.pp-modal.open { display: flex; animation: ppFade .25s ease; }
@keyframes ppFade { from { opacity: 0; } to { opacity: 1; } }
.pp-modal-box {
  position: relative; width: min(520px, 100%); max-height: 86vh; overflow: auto;
  background: var(--color-paper, #fff); border-radius: var(--radius-md, 10px);
  padding: clamp(26px, 4vw, 40px); box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.pp-modal-box h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 18px; color: var(--color-ink); }
.pp-modal-box h3::after { content: ""; display: block; width: 44px; height: 3px; background: var(--color-orange); margin-top: 10px; }
.pp-modal-close {
  position: absolute; top: 10px; right: 14px; width: 40px; height: 40px; border: 0; background: none;
  font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--color-stone);
}
@media (hover: hover) { .pp-modal-close:hover { color: var(--color-orange); } }
.pp-cred-list { list-style: none; margin: 0; padding: 0; }
.pp-cred-list li {
  display: flex; justify-content: space-between; gap: 18px; padding: 12px 0;
  border-bottom: 1px solid var(--color-sand-deep, rgba(0,0,0,.1));
}
.pp-cred-list li:last-child { border-bottom: 0; }
.pp-cred-list strong { font-family: var(--font-display); font-weight: 600; color: var(--color-ink); }
.pp-cred-list span { color: var(--color-graphite); text-align: right; overflow-wrap: anywhere; }
.pp-cred-list span b { display: block; font-weight: 600; color: var(--color-ink); }
.pp-cred-list span small { display: block; margin-top: 2px; font-size: .85rem; color: var(--color-graphite); }

/* "Consultants Team" button — right end of the page-links row (Description / News / Awards) */
.pp-menu .pp-cred-btn { margin: 0 0 0 auto; padding: .8em 1.5em; gap: .8em; font-size: clamp(.54rem, .4rem + .5vw, .68rem); align-self: center; flex: 0 0 auto; white-space: nowrap; margin-bottom: 4px; }

/* consultants team pop-up: grouped by specialty */
.pp-team-group + .pp-team-group { margin-top: 20px; }
.pp-team-title {
  margin: 0 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--color-sand-deep, rgba(0,0,0,.1));
  font-family: var(--font-display); font-weight: 600; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--color-orange);
}
.pp-team-list { list-style: none; margin: 0; padding: 0; }
.pp-team-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 3px 0; }
.pp-team-name { font-family: var(--font-display); font-weight: 500; color: var(--color-ink); }
.pp-team-pos { text-align: right; color: var(--color-graphite); font-size: .92rem; overflow-wrap: anywhere; }
.pp-team-assoc { margin: 0 0 18px; padding: 0 44px 16px 0; border-bottom: 1px solid var(--color-sand-deep, rgba(0,0,0,.1)); font-size: .92rem; line-height: 1.55; color: var(--color-graphite); }   /* right padding keeps the text clear of the × button */
.pp-team-assoc strong { color: var(--color-ink); font-weight: 700; }

/* ---------- share pop-up ---------- */
.pp-share-box { width: min(480px, 100%); }
.pp-share-preview { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; padding: 10px; border: 1px solid var(--color-sand-deep, rgba(0,0,0,.1)); border-radius: 8px; }
.pp-share-preview img { flex: 0 0 auto; width: 84px; height: 60px; object-fit: cover; border-radius: 5px; }
.pp-share-preview div { min-width: 0; }
.pp-share-preview strong { display: block; font-family: var(--font-display); font-size: .95rem; line-height: 1.3; color: var(--color-ink); }
.pp-share-preview span { display: block; margin-top: 3px; font-size: .78rem; color: var(--color-stone); }
.pp-share-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; }
.pp-share-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: none;
  font: inherit; text-decoration: none; cursor: pointer; color: var(--color-ink);
}
.pp-share-item i {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--color-sand-deep, rgba(0,0,0,.14)); font-size: 1.15rem; color: var(--color-ink);
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.pp-share-item span { font-size: .76rem; letter-spacing: .02em; color: var(--color-graphite); }
@media (hover: hover) { .pp-share-item:hover i { background: var(--color-orange); border-color: var(--color-orange); color: #fff; transform: translateY(-2px); } }
.pp-share-item.done i { background: var(--color-orange); border-color: var(--color-orange); color: #fff; }
.pp-share-item--touch { display: none; }
@media (hover: none) and (pointer: coarse) { .pp-share-item--touch { display: flex; } }
.pp-share-native {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 22px; padding: 13px 18px;
  border: 1px solid var(--color-ink); border-radius: 999px; background: transparent; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-ink);
  transition: background .3s, color .3s, border-color .3s;
}
.pp-share-native[hidden] { display: none; }
@media (hover: hover) { .pp-share-native:hover { background: var(--color-orange); border-color: var(--color-orange); color: #fff; } }
@media (max-width: 380px) { .pp-share-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .pp-menu { top: 76px; }
}
@media (max-width: 560px) {
  .pp-menu-label { display: none; }
  .pp-menu { gap: 12px; }
  .pp-menu .pp-cred-btn { letter-spacing: .08em; }
  .pp-menu .pp-cred-btn i { display: none; }
}
@media (max-width: 760px) {
  .pp-fact { flex: 1 1 100%; border-left: 0; padding-left: 0; border-top: 1px solid var(--color-sand-deep, rgba(0,0,0,.12)); }
  .pp-fact:first-child { border-top: 0; }
  .pp-cred-btn { margin: 14px 0; }
  .pp-stage { aspect-ratio: 4 / 3; }
  .pp-split.has-image, .pp-split--right.has-image { grid-template-columns: 1fr; }
  
  /*.pp-split.has-image .pp-split-media { width: 78%; max-width: 420px; }*/
  /*.pp-split--right.has-image .pp-split-media { margin-left: auto; }*/
    .pp-split.has-image .pp-split-media { width: 78%; max-width: 420px; margin-inline: auto; }
  .pp-split--right.has-image .pp-split-media { order: 0; }
}

/* ---------- facts strip (Year / Area / Cost / Scope): one row of 1-4 equal cells, or a grid at 863px and below ---------- */
@media (max-width: 863px) {
  .pp-facts {
    display: grid !important; grid-auto-flow: column !important; grid-template-rows: auto !important;
    grid-template-columns: none !important; grid-auto-columns: minmax(0, 1fr) !important;
    border: 0 !important; border-top: 1px solid var(--color-sand-deep, rgba(0,0,0,.12)) !important; border-bottom: 1px solid var(--color-sand-deep, rgba(0,0,0,.12)) !important;
  }
  .pp-facts .pp-fact { flex: none !important; width: auto !important; min-width: 0; margin: 0 !important; border: 0 !important; padding: 16px clamp(8px, 2vw, 16px) 16px clamp(14px, 3vw, 24px) !important; }
  .pp-facts .pp-fact:first-child { padding-left: 0 !important; }
  .pp-facts .pp-fact:nth-child(n+2) { border-left: 1px solid var(--color-sand-deep, rgba(0,0,0,.12)) !important; }   /* 1-2 facts: one row */
  /* 3 or 4 facts: two rows; the facts fill column by column */
  .pp-facts:is(.pp-facts--n3, .pp-facts--n4) { grid-template-rows: auto auto !important; }
  .pp-facts:is(.pp-facts--n3, .pp-facts--n4) .pp-fact:nth-child(2) { padding-left: 0 !important; border-left: 0 !important; }
  .pp-facts:is(.pp-facts--n3, .pp-facts--n4) .pp-fact:nth-child(odd):not(:last-child) { border-bottom: 1px solid var(--color-sand-deep, rgba(0,0,0,.12)) !important; }
  .pp-facts--n3 .pp-fact:last-child { grid-row: 1 / span 2; }                                          /* 3 facts: the last one (Scope) takes the whole second column */
}

/* 4 facts in the grid: Year + Scope in the left column, Area + Cost in the right (the one-row layout is not touched) */
@media (max-width: 863px) {
  .pp-facts--n4 .pp-fact--scope { order: 1; }
  .pp-facts--n4 .pp-fact--area  { order: 2; }
  .pp-facts--n4 .pp-fact--cost  { order: 3; }
  html .pp-facts.pp-facts--n4 .pp-fact.pp-fact.pp-fact--scope { padding-left: 0 !important; border-left: 0 !important; border-bottom: 0 !important; }   /* left column, bottom */
  html .pp-facts.pp-facts--n4 .pp-fact.pp-fact.pp-fact--area  { padding-left: clamp(14px, 3vw, 24px) !important; border-left: 1px solid var(--color-sand-deep, rgba(0,0,0,.12)) !important; border-bottom: 1px solid var(--color-sand-deep, rgba(0,0,0,.12)) !important; }   /* right column, top */
  html .pp-facts.pp-facts--n4 .pp-fact.pp-fact.pp-fact--cost  { border-bottom: 0 !important; }                                                                                     /* right column, bottom */
}

@media (max-width: 480px) {
  .pp-facts .pp-fact { gap: 8px; }
}

/* ---------- client + location under the title (sub-headings) ---------- */
.pp-byline { margin-top: clamp(6px, 1vw, 14px); }
.pp-by-client {
  margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--color-ink);
  font-size: clamp(0.8rem, 2.7vw, 1.6rem); line-height: 1.2; letter-spacing: -.01em; overflow-wrap: break-word;
}
.pp-by-block + .pp-by-block .pp-by-client { font-size: calc(clamp(1rem, 1.7vw, 1.6rem) * .95); }
.pp-by-loc { margin: 0; font-size: clamp(.7rem, 1.1vw, 1.05rem); line-height: 1.35; color: var(--color-graphite); overflow-wrap: break-word; } /* margin: clamp(2px, .4vw, 6px) 0 0; */
.pp-by-loc span { color: var(--color-stone); } 
.pp-by-block { margin-top: clamp(5px, 1.3vw, 15px); }
.pp-by-label { display: block; font-size: clamp(.52rem, .38rem + .45vw, .68rem); letter-spacing: .14em; text-transform: uppercase; color: var(--color-stone); margin-bottom: 3px; }

/* ---------- section titles: fluid text + underline only 2px wider than the title ---------- */
.pp-page .section-head { max-width: none; }
.pp-page .section-head .eyebrow { font-size: clamp(.58rem, .44rem + .5vw, .78rem); margin-bottom: clamp(9px, 1.2vw, 16px); }
.pp-page .section-head .eyebrow::before, .pp-page .section-head .eyebrow::after { width: .55em; height: .55em; }
.pp-page .section-head h2 { display: block; font-size: clamp(1.3rem, .95rem + 1.7vw, 2.3rem); margin: 0; }
.pp-title-wrap { display: block; width: fit-content; max-width: 100%; }
.pp-page .section-head.text-right .pp-title-wrap { margin-left: auto; }
.pp-page .section-line { width: calc(100% + 2px) !important; margin-left: -1px !important; height: clamp(2px, .3vw, 3px); margin-top: clamp(9px, 1.2vw, 16px); margin-bottom: clamp(14px, 1.8vw, 22px); }

/* ---------- Read More: fade blends with the box it sits in ---------- */
.pp-page .para-clamp-text { position: relative; --clamp-bg: var(--color-paper, #fff); }
.pp-page .section-note .para-clamp-text { --clamp-bg: var(--color-sand); }
.pp-page .para-clamp-text.has-fade::before { content: none !important; }
.pp-page .para-clamp-text.has-fade {
  -webkit-mask-image: none; mask-image: none;
}
.pp-page .para-clamp-text.has-fade::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.2em; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--clamp-bg)) !important;
  opacity: 1 !important;
}
/*.pp-about .para-clamp-text { overflow: hidden; transition: max-height .45s var(--ease); }*/
.pp-about .para-clamp-text, .pp-note-body .para-clamp-text { overflow: hidden; transition: max-height .45s var(--ease); }

/* ---------- floor plans: arrows, zoom icon and labels follow the screen width ---------- */
/*.pp-page .floorplan-arrow, .pp-page .floorplan-thumbs-arrow {*/
/*  width: clamp(26px, 3.8vw, 44px) !important; height: clamp(26px, 3.8vw, 44px) !important;*/
/*  min-width: 0; font-size: clamp(.55rem, .3rem + .9vw, .95rem) !important; padding: 0 !important;*/
/*}*/
/*.pp-page .floorplan-thumbs-arrow { width: clamp(24px, 3.2vw, 38px) !important; height: clamp(24px, 3.2vw, 38px) !important; }*/
.pp-page .floorplan-fullview-btn {
  width: clamp(26px, 3.4vw, 40px) !important; height: clamp(26px, 3.4vw, 40px) !important;
  font-size: clamp(.55rem, .3rem + .8vw, .9rem) !important; padding: 0 !important;
}
.pp-page .floorplan-thumb { font-size: clamp(.62rem, .45rem + .55vw, .85rem) !important; padding: .55em 1.1em !important; }
.pp-page .floorplan-floor-label { font-size: clamp(.8rem, .55rem + 1vw, 1.15rem) !important; }
.pp-page .floorplan-dots .dot { width: clamp(6px, .9vw, 9px); height: clamp(6px, .9vw, 9px); }
.lightbox .lightbox-nav { width: clamp(32px, 4.6vw, 52px) !important; height: clamp(32px, 4.6vw, 52px) !important; font-size: clamp(.7rem, .4rem + .9vw, 1.05rem) !important; }
.lightbox .lightbox-close { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.2rem) !important; }

.pp-crumbs .pp-share-btn { margin: 0 0 0 auto; flex: 0 0 auto; white-space: nowrap; padding: .75em 1.4em; gap: .8em; font-size: clamp(.54rem, .4rem + .5vw, .68rem); letter-spacing: .12em; }
.pp-crumbs .pp-share-btn span { color: inherit; }

/*.pp-fact--scope { align-items: flex-start; }*/
/*.pp-fact--scope .pp-fact-value { line-height: 1.2; }*/
/*.pp-fact--scope .pp-fact-value + .pp-fact-value { margin-top: 1px; }*/

/*@media (max-width: 830px) { .pp-facts .pp-fact--scope { grid-column: 2; grid-row: 2; margin-left: 22px; } }*/
/*@media (max-width: 480px) { .pp-facts .pp-fact--scope { margin-left: 14px; } }*/
/*.pp-fact--scope { flex-grow: 1.5; }*/
.pp-fact--scope .pp-fact-value { overflow-wrap: normal; position: relative; padding-left: 1.05em; font-size: clamp(.72rem, .5rem + .75vw, 1rem); line-height: 1.2; }
.pp-fact--scope .pp-fact-value::before { content: ""; position: absolute; left: .15em; top: .5em; width: .32em; height: .32em; border-radius: 50%; background: var(--color-orange); }
.pp-fact--scope .pp-fact-value + .pp-fact-value { margin-top: 1px; }

@media (prefers-reduced-motion: reduce) {
  .pp-seal-ring, .pp-status i::after { animation: none !important; }
  .pp-lb-track { transition: none; }
}

/* ---------- Consultants Team pop-up: text follows the screen width ---------- */
.pp-modal-box h3 { font-size: clamp(1.05rem, .8rem + 1.2vw, 1.5rem); }
.pp-team-title { font-size: clamp(.58rem, .45rem + .5vw, .74rem); }
.pp-team-name { font-size: clamp(.78rem, .6rem + .7vw, 1rem); }
.pp-team-pos, .pp-team-assoc { font-size: clamp(.68rem, .52rem + .6vw, .92rem); }
.pp-team-list li { gap: clamp(10px, 2vw, 18px); }
.pp-modal-close { width: clamp(32px, 4vw, 40px); height: clamp(32px, 4vw, 40px); font-size: clamp(1.4rem, 1rem + 1vw, 1.8rem); }

.pp-menu-scroll { position: relative; min-width: 0; flex: 0 1 auto; }
.pp-menu ul { scrollbar-width: none; }
.pp-menu ul::-webkit-scrollbar { display: none; height: 0; }
.pp-menu-track { display: block; position: relative; height: 4px; border-radius: 4px; overflow: hidden; background: var(--color-sand-deep, rgba(0,0,0,.12)); }
.pp-menu-thumb { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; border-radius: 4px; background: var(--color-orange); }
.pp-menu-scroll.no-scroll .pp-menu-track { visibility: hidden; }

/* ---------- Share pop-up: text and icons follow the screen width ---------- */
.pp-share-preview { gap: clamp(8px, 1.6vw, 14px); padding: clamp(6px, 1.2vw, 10px); margin-bottom: clamp(14px, 2.4vw, 20px); }
.pp-share-preview img { width: clamp(56px, 10vw, 84px); height: clamp(40px, 7.2vw, 60px); }
.pp-share-preview strong { font-size: clamp(.76rem, .62rem + .55vw, .95rem); }
.pp-share-preview span { font-size: clamp(.62rem, .5rem + .4vw, .78rem); }
.pp-share-grid { gap: clamp(10px, 2vw, 14px) clamp(4px, 1vw, 8px); }
.pp-share-item { gap: clamp(5px, 1vw, 8px); }
.pp-share-item i { width: clamp(36px, 5.6vw, 50px); height: clamp(36px, 5.6vw, 50px); font-size: clamp(.85rem, .6rem + .8vw, 1.15rem); }
.pp-share-item span { font-size: clamp(.6rem, .48rem + .4vw, .76rem); }
.pp-share-native { padding: .9em 1.4em; font-size: clamp(.58rem, .44rem + .5vw, .74rem); margin-top: clamp(16px, 3vw, 22px); }

/* ===== SINGLE PROJECT PAGE — END ===== */

/* ===== PROJECTS LIBRARY — START (paste at the very end of style.css) ===== */
.pa-wrap{ --pa-label:140px; --pa-arrow:36px; --pa-col:190px; padding:34px 0 90px; background:#fff; }
.pa-wrap *{ box-sizing:border-box; }

/* ---------- search + filters ---------- */
.pa-bar{ margin-bottom:30px; }
.pa-bar-row{ display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.pa-search{ position:relative; flex:1 1 260px; min-width:200px; margin:0; }
.pa-search svg{ position:absolute; left:14px; top:50%; width:18px; height:18px; transform:translateY(-50%); fill:none; stroke:var(--color-graphite); stroke-width:2; stroke-linecap:round; pointer-events:none; }
.pa-search input{ width:100%; height:44px; padding:0 14px 0 42px; border:1px solid var(--color-stone); border-radius:3px; background:#fff; font:inherit; font-size:14.5px; color:var(--color-ink); outline:none; transition:border-color .2s; -webkit-appearance:none; appearance:none; }
.pa-search input:focus,.pa-search input:not(:placeholder-shown){ border-color:var(--color-orange); }

.pa-select{ height:44px; padding:0 34px 0 14px; border:1px solid var(--color-stone); border-radius:3px; background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center / 15px; font:inherit; font-size:14.5px; color:var(--color-ink); cursor:pointer; outline:none; -webkit-appearance:none; appearance:none; transition:border-color .2s; max-width:100%; }
.pa-bar-row > .pa-select{ flex:0 1 150px; min-width:120px; }
.pa-select:focus,.pa-select.is-set{ border-color:var(--color-orange); }

.pa-bar-meta{ margin-top:14px; justify-content:space-between; gap:14px; }
.pa-meta-left{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; min-width:0; }
.pa-meta-right{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; margin-left:auto; }
.pa-count{ font-size:14px; color:var(--color-graphite); white-space:nowrap; }
.pa-count strong{ color:var(--color-ink); }
.pa-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.pa-chip{ display:inline-flex; align-items:center; gap:7px; padding:6px 10px 6px 12px; border:1px solid var(--color-orange); border-radius:30px; background:#fff; font:inherit; font-size:13px; line-height:1; color:var(--color-ink); cursor:pointer; transition:background .2s,color .2s; }
.pa-chip b{ font-weight:500; color:var(--color-graphite); }
.pa-chip svg{ width:11px; height:11px; stroke:currentColor; stroke-width:2.6; fill:none; stroke-linecap:round; }
.pa-chip:hover{ background:var(--color-orange); color:#fff; }
.pa-chip:hover b{ color:#fff; }
.pa-clear{ border:0; background:none; padding:4px 0; font:inherit; font-size:14px; color:var(--color-orange); cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.pa-clear:hover{ color:var(--color-ink); }
.pa-clear[hidden]{ display:none; }
.pa-sort{ display:flex; align-items:center; gap:10px; margin:0; font-size:14px; color:var(--color-graphite); }
.pa-sort .pa-select{ height:40px; }

/* ---------- category + subcategory rows (same grid so both line up) ---------- */
.pa-row{ display:grid; grid-template-columns:var(--pa-label) var(--pa-arrow) minmax(0,1fr) var(--pa-arrow); align-items:center; margin-bottom:12px; }
.pa-row[hidden]{ display:none; }
.pa-row-label{ font-family:var(--font-display); font-size:13px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--color-ink); padding-right:12px; }
.pa-arrow{ width:var(--pa-arrow); height:var(--pa-arrow); padding:0; border:0; background:none; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:opacity .2s,transform .2s; }
.pa-arrow svg{ width:20px; height:20px; fill:none; stroke:var(--color-ink); stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; transition:stroke .2s; }
.pa-arrow:hover svg{ stroke:var(--color-orange); }
.pa-arrow:disabled{ opacity:.22; cursor:default; }
.pa-arrow:disabled:hover svg{ stroke:var(--color-ink); }
.pa-arrow.is-off{ visibility:hidden; }

.pa-track{ display:flex; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; -ms-overflow-style:none; -webkit-overflow-scrolling:touch; }
.pa-track::-webkit-scrollbar{ display:none; }

.pa-cat{ align-self:flex-start; flex:0 0 var(--pa-col); width:var(--pa-col); padding:8px 8px 6px; border:0; background:none; font:inherit; cursor:pointer; text-align:center; } /*flex:0 0 var(--pa-col);*/
.pa-cat-img{ display:block; aspect-ratio:3/2; overflow:hidden; border-radius:3px; border:2px solid transparent; background:var(--color-mist); transition:border-color .25s; }
.pa-cat-img img{ display:block; width:100%; height:100%; object-fit:cover; transition:transform .5s var(--ease); }
.pa-cat:hover .pa-cat-img img{ transform:scale(1.05); }
.pa-cat-name{ display:block; margin-top:9px; font-size:13.5px; line-height:1.3; color:var(--color-ink); transition:color .2s; }
.pa-cat.active .pa-cat-img{ border-color:var(--color-orange); }
.pa-cat.active .pa-cat-name{ color:var(--color-orange); font-weight:600; }
.pa-cat.active .pa-cat-img img{ transform:none; }

.pa-row-sub{ margin-top:-2px; animation:paDrop .3s var(--ease); }
@keyframes paDrop{ from{ opacity:0; transform:translateY(-6px); } to{ opacity:1; transform:none; } }
.pa-sub{ flex:0 0 var(--pa-col); width:var(--pa-col); min-height:44px; padding:6px 12px; border:0; border-right:1px solid var(--color-stone); background:none; font:inherit; font-size:14px; line-height:1.3; text-align:center; color:var(--color-ink); cursor:pointer; display:flex; align-items:center; justify-content:center; transition:color .2s; }
.pa-sub:last-child{ border-right:0; }
.pa-sub:hover{ color:var(--color-orange); }
.pa-sub.active{ color:var(--color-orange); font-weight:600; text-decoration:underline; text-underline-offset:5px; text-decoration-thickness:2px; }

/* ---------- project cards ---------- */
.pa-grid{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:30px 20px; margin-top:36px; }
.pa-card[hidden]{ display:none; }
.pa-card-in{ display:block; color:inherit; text-decoration:none; }
.pa-card.is-static .pa-card-in{ cursor:default; }
.pa-status{ display:flex; align-items:center; justify-content:flex-end; gap:6px; min-height:20px; margin-bottom:7px; font-size:12px; font-weight:500; letter-spacing:.05em; text-transform:uppercase; color:var(--color-graphite); text-align:right; }
.pa-status i{ flex:0 0 8px; width:8px; height:8px; border-radius:50%; background:var(--st,#9a9a9a); }
.pa-media{ position:relative; display:block; aspect-ratio:4/3; overflow:hidden; border-radius:3px; background:var(--color-mist); }
.pa-media img{ display:block; width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.pa-card:not(.is-static) .pa-card-in:hover .pa-media img{ transform:scale(1.05); }
.pa-title{ display:block; margin-top:11px; font-family:var(--font-display); font-size:15.5px; font-weight:600; line-height:1.3; color:var(--color-ink); transition:color .2s; }
.pa-year{ font-weight:400; color:var(--color-graphite); }
.pa-card:not(.is-static) .pa-card-in:hover .pa-title{ color:var(--color-orange); }
.pa-client{ display:block; margin-top:3px; font-size:13.5px; line-height:1.35; color:var(--color-graphite); }

/* award "bow" */
.pa-bow{ position:absolute; top:8px; right:10px; width:26px; height:36px; filter:drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.pa-bow svg{ display:block; width:100%; height:100%; }
.pa-bow .tail{ fill:#c4571a; }
.pa-bow .disc{ fill:var(--color-orange); }
.pa-bow .ring{ fill:none; stroke:#fff; stroke-width:1; opacity:.7; }
.pa-bow .star{ fill:#fff; }

.pa-empty{ margin-top:40px; padding:60px 20px; text-align:center; border:1px dashed var(--color-stone); border-radius:3px; }
.pa-empty[hidden]{ display:none; }
.pa-empty p{ margin:0 0 10px; color:var(--color-graphite); }

.pa-card.is-noimg { display: none; }     /* projects without a picture: only in the table and map views */

/* ---------- view switch (Grid / Table) ---------- */
.pa-views{ display:inline-flex; border:1px solid var(--color-stone); border-radius:3px; overflow:hidden; }
.pa-view{ display:inline-flex; align-items:center; gap:7px; height:38px; padding:0 13px; border:0; background:#fff; font:inherit; font-size:13.5px; color:var(--color-graphite); cursor:pointer; transition:background .2s,color .2s; }
.pa-view + .pa-view{ border-left:1px solid var(--color-stone); }
.pa-view svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
.pa-view:hover{ color:var(--color-orange); }
.pa-view.on{ background:var(--color-ink); color:#fff; }
.pa-grid[hidden]{ display:none; }
#pa-crumb-link[hidden],#pa-crumb-cur[hidden],#pa-crumb-extra[hidden]{ display:none; }

/* ---------- table view ---------- */
.pa-table-wrap{ --pa-sticky:76px; margin-top:30px; }
.pa-table-wrap[hidden]{ display:none; }
.pa-legend{ display:none; flex-wrap:wrap; gap:6px 16px; margin:0 0 14px; font-size:13px; color:var(--color-graphite); }
.pa-legend b{ display:inline-grid; place-items:center; width:20px; height:20px; margin-right:4px; background:var(--color-orange); color:#fff; font-size:11px; border-radius:2px; }
@media (hover:none){ .pa-legend{ display:flex; } }
.pa-table{ width:100%; border-collapse:separate; border-spacing:0; font-size:14px; color:var(--color-ink); }
.pa-table th{ position:sticky; top:var(--pa-sticky); z-index:4; background:#fff; text-align:left; vertical-align:bottom; padding:12px 14px; font-family:var(--font-display); font-size:11.5px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--color-ink); border-bottom:2px solid var(--color-ink); box-shadow:0 -1px 0 #fff; white-space:nowrap; }
.pa-table td{ padding:14px; vertical-align:middle; border-bottom:1px solid var(--color-sand-deep, rgba(0,0,0,.12)); line-height:1.35; }
.pa-table th:first-child,.pa-table td:first-child{ padding-left:4px; }
.pa-tr[hidden]{ display:none; }
.pa-tr:hover td{ background:rgba(242,103,15,.045); }
.pa-table .c-name{ min-width:210px; font-weight:600; }
.pa-table .c-name a{ color:var(--color-ink); text-decoration:none; transition:color .2s; }
.pa-table .c-name a:hover{ color:var(--color-orange); text-decoration:underline; text-underline-offset:3px; }
.pa-table .c-year{ width:64px; }
.pa-medal{ display:inline-block; width:14px; height:19px; margin:-3px 8px -3px 0; vertical-align:middle; }
.pa-medal .tail{ fill:#c4571a; } .pa-medal .disc{ fill:var(--color-orange); } .pa-medal .star{ fill:#fff; }
.pa-tcat{ display:block; } .pa-tcat + .pa-tcat{ margin-top:4px; }
.pa-tcat strong{ display:block; font-weight:600; }
.pa-tcat em{ display:block; font-style:normal; font-size:13px; color:var(--color-graphite); }
.pa-status--cell{ justify-content:flex-start; margin:0; min-height:0; white-space:nowrap; text-align:left; }
.pa-table .c-award span{ display:block; } .pa-table .c-award span + span{ margin-top:3px; }

.pa-table .c-cost { white-space: nowrap; }
/* .pa-medal-w { cursor: help; outline: none; } */
.pa-medal-w { cursor: default; outline: none; }
.pa-medal-tip {
  position: fixed; z-index: 3000; max-width: min(17.5rem, calc(100vw - 1rem)); padding: .45rem .7rem; border-radius: 3px;
  background: var(--color-ink); color: #fff; font: 500 .75rem/1.35 var(--font-body, inherit); letter-spacing: 0; text-transform: none;
  white-space: pre-line; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}
.pa-medal-tip[hidden] { display: none; }

/* scope of services: 5 squares (D T S P M) */
/*.pa-table .c-scope{ width:150px; }*/
.pa-table .c-scope{ width:185px; }
/*.pa-table th.c-scope{ text-align:center; }*/

/*.pa-table th { vertical-align: top; }*/
/*.pa-table th.c-scope { text-align: center; }*/
/*.pa-scope-title { display: block; margin-bottom: clamp(4px, .6vw, 7px); }*/
.pa-table th { vertical-align: bottom; }
.pa-table th.c-scope { text-align: center; vertical-align: bottom; }
.pa-scope-title { display: block; margin-bottom: clamp(5px, .7vw, 8px); }

.pa-scope-title{ display:block; line-height:1.35; margin-bottom:8px; }
.pa-sqs{ display:inline-flex; gap:5px; }
.pa-ltr,.pa-sq{ position:relative; width:26px; height:26px; flex:0 0 26px; border-radius:3px; outline:none; }
.pa-ltr{ display:grid; place-items:center; font-size:12px; font-weight:700; letter-spacing:0; color:var(--color-ink); cursor:help; }
.pa-sq{ display:block; border:1.5px solid var(--color-stone); background:#fff; cursor:help; transition:transform .15s; }
.pa-sq.on{ background:var(--color-orange); border-color:var(--color-orange); }
.pa-sq:hover,.pa-sq:focus-visible,.pa-sq.is-open{ transform:scale(1.12); z-index:20; }
.pa-ltr:hover,.pa-ltr:focus-visible,.pa-ltr.is-open{ color:var(--color-orange); z-index:20; }
.pa-sq::after,.pa-ltr::after{ content:attr(data-tip); position:absolute; right:0; padding:6px 10px; border-radius:3px; background:var(--color-ink); color:#fff; font:500 12px/1.2 var(--font-body, inherit); letter-spacing:0; text-transform:none; white-space:nowrap; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .15s; z-index:30; }
.pa-sq::after{ bottom:calc(100% + 8px); }
.pa-ltr::after{ top:calc(100% + 8px); }
.pa-sqs > :first-child::after{ right:auto; left:0; }
.pa-sq:hover::after,.pa-sq:focus-visible::after,.pa-sq.is-open::after,
.pa-ltr:hover::after,.pa-ltr:focus-visible::after,.pa-ltr.is-open::after{ opacity:1; visibility:visible; }

/* narrower screens: the table scrolls inside its own box, header stays fixed at its top */
@media (max-width:1100px){
  .pa-table-scroll{ overflow:auto; max-height:75vh; -webkit-overflow-scrolling:touch; } /*border-top:1px solid var(--color-sand-deep, rgba(0,0,0,.12));*/
  .pa-table{ min-width:1020px; }
  .pa-table th{ top:0; }
}

/* ---------- responsive ---------- */
@media (max-width:1180px){
  .pa-wrap{ --pa-col:170px; --pa-label:120px; }
  .pa-grid{ grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width:960px){
  .pa-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .pa-bar-row > .pa-select{ flex:1 1 140px; }
}
@media (max-width:720px){
  .pa-wrap{ --pa-col:140px; --pa-arrow:30px; padding:24px 0 70px; }
  .pa-row{ grid-template-columns:var(--pa-arrow) minmax(0,1fr) var(--pa-arrow); }
  .pa-row-label{ grid-column:1 / -1; padding:0 0 4px; }
  .pa-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:26px 14px; }
  .pa-search{ flex-basis:100%; }
  .pa-bar-row > .pa-select{ flex:1 1 calc(50% - 6px); min-width:0; }
  .pa-meta-right{ width:100%; justify-content:space-between; margin-left:0; }
  .pa-title{ font-size:14.5px; }
  .pa-status{ font-size:11px; }
}
@media (max-width:420px){
  .pa-grid{ gap:22px 10px; }
}

/* ===== PROJECTS LIBRARY — RESPONSIVE PASS ===== */

/* banner + breadcrumb */
.page-banner.pa-banner { padding: calc(var(--header-h, 76px) + clamp(26px, 4vw, 54px)) 0 clamp(32px, 5vw, 62px); }
.pa-banner .eyebrow { font-size: clamp(.6rem, .48rem + .45vw, .78rem); margin-bottom: clamp(10px, 1.3vw, 16px); }
.pa-banner .eyebrow::before, .pa-banner .eyebrow::after { width: .55em; height: .55em; }
.pa-banner h1 { margin: 0; }
.pa-title-wrap { display: block; width: fit-content; max-width: 100%; }
/*.pa-banner .banner-underline { width: calc(100% + 2px) !important; margin: clamp(9px, 1.2vw, 14px) -1px clamp(13px, 1.6vw, 20px); }*/
.pa-banner .banner-underline { width: var(--pa-ul, calc(100% + 2px)) !important; margin: clamp(9px, 1.2vw, 14px) 0 clamp(13px, 1.6vw, 20px) -1px; }
.pa-banner p { font-size: clamp(.86rem, .78rem + .32vw, 1rem); }
.pa-banner .banner-count { margin-top: clamp(10px, 1.3vw, 16px); font-size: clamp(.72rem, .66rem + .26vw, .86rem); gap: clamp(7px, .9vw, 10px); }
.pa-banner .banner-count strong { font-size: clamp(.92rem, .84rem + .32vw, 1.15rem); }
.breadcrumb.pa-crumb { font-size: clamp(.66rem, .58rem + .35vw, .85rem); padding-top: clamp(10px, 1.5vw, 18px); padding-bottom: clamp(10px, 1.5vw, 18px); }
.breadcrumb.pa-crumb span { margin: 0 clamp(4px, .7vw, 8px); }

/* layout variables follow the width */
.pa-wrap { --pa-label: clamp(100px, 11.5vw, 140px); --pa-arrow: clamp(24px, 3vw, 36px); --pa-col: clamp(112px, 15vw, 190px);
  padding: clamp(18px, 2.6vw, 34px) 0 clamp(54px, 7vw, 90px); }

/* search + filters */
.pa-bar { margin-bottom: clamp(16px, 2.4vw, 30px); }
.pa-bar-row { gap: clamp(7px, 1vw, 12px); }
.pa-search svg { width: clamp(14px, 1.5vw, 18px); height: clamp(14px, 1.5vw, 18px); left: clamp(10px, 1.2vw, 14px); }
.pa-search input, .pa-select { height: clamp(36px, 3.6vw, 44px); font-size: clamp(.78rem, .7rem + .3vw, .906rem); }
.pa-search input { padding: 0 clamp(10px, 1.2vw, 14px) 0 clamp(32px, 3.4vw, 42px); }
.pa-select { padding: 0 clamp(26px, 2.8vw, 34px) 0 clamp(10px, 1.2vw, 14px); background-size: clamp(11px, 1.2vw, 15px); background-position: right clamp(8px, .9vw, 11px) center; }
.pa-bar-row > .pa-select { min-width: clamp(96px, 9vw, 120px); }
.pa-bar-meta { margin-top: clamp(10px, 1.2vw, 14px); gap: clamp(8px, 1.1vw, 14px); }
.pa-meta-left { gap: 8px clamp(8px, 1.1vw, 14px); }
.pa-meta-right { gap: 8px clamp(10px, 1.4vw, 18px); }
.pa-count, .pa-clear, .pa-sort { font-size: clamp(.72rem, .64rem + .3vw, .875rem); }
.pa-chips { gap: clamp(5px, .7vw, 8px); }
.pa-chip { font-size: clamp(.66rem, .6rem + .25vw, .8125rem); padding: .5em .8em .5em .95em; gap: .55em; }
.pa-chip svg { width: .85em; height: .85em; }
.pa-sort { gap: clamp(6px, .8vw, 10px); }
.pa-sort .pa-select { height: clamp(32px, 3.2vw, 40px); }
.pa-view { height: clamp(32px, 3.1vw, 38px); padding: 0 clamp(9px, 1vw, 13px); font-size: clamp(.7rem, .62rem + .3vw, .84rem); gap: clamp(5px, .6vw, 7px); }
.pa-view svg { width: clamp(13px, 1.3vw, 16px); height: clamp(13px, 1.3vw, 16px); }

/* category + subcategory rows */
.pa-row { margin-bottom: clamp(8px, 1vw, 12px); }
.pa-row-label { font-size: clamp(.6rem, .5rem + .4vw, .8125rem); letter-spacing: .12em; padding-right: clamp(6px, 1vw, 12px); }
.pa-arrow svg { width: clamp(15px, 1.7vw, 20px); height: clamp(15px, 1.7vw, 20px); }
.pa-cat { padding: clamp(5px, .7vw, 8px) clamp(5px, .7vw, 8px) clamp(4px, .5vw, 6px); }
.pa-cat-name { font-size: clamp(.68rem, .6rem + .3vw, .84rem); margin-top: clamp(5px, .75vw, 9px); }
.pa-sub { font-size: clamp(.7rem, .62rem + .3vw, .875rem); min-height: clamp(34px, 3.5vw, 44px); padding: 6px clamp(8px, 1vw, 12px); }

/* project cards */
.pa-grid { gap: clamp(18px, 2.4vw, 30px) clamp(10px, 1.6vw, 20px); margin-top: clamp(20px, 3vw, 36px); }
.pa-status { font-size: clamp(.56rem, .5rem + .26vw, .75rem); gap: clamp(4px, .5vw, 6px); min-height: clamp(14px, 1.5vw, 20px); margin-bottom: clamp(4px, .6vw, 7px); }
.pa-status i { flex-basis: clamp(6px, .65vw, 8px); width: clamp(6px, .65vw, 8px); height: clamp(6px, .65vw, 8px); }
.pa-title { font-size: clamp(.78rem, .66rem + .46vw, .97rem); margin-top: clamp(7px, .9vw, 11px); overflow-wrap: anywhere; }
.pa-client { font-size: clamp(.68rem, .6rem + .3vw, .84rem); margin-top: 3px; }
.pa-bow { width: clamp(17px, 2vw, 26px); height: auto; aspect-ratio: 26 / 36; top: clamp(5px, .7vw, 8px); right: clamp(6px, .8vw, 10px); }
.pa-empty { margin-top: clamp(24px, 4vw, 40px); padding: clamp(30px, 6vw, 60px) clamp(14px, 3vw, 20px); }
.pa-empty p { font-size: clamp(.8rem, .72rem + .3vw, 1rem); }

/* table view */
.pa-table-wrap { margin-top: clamp(18px, 2.4vw, 30px); }
.pa-legend { font-size: clamp(.68rem, .6rem + .3vw, .8125rem); gap: 6px clamp(10px, 1.4vw, 16px); }
.pa-legend b { width: clamp(16px, 1.7vw, 20px); height: clamp(16px, 1.7vw, 20px); font-size: clamp(.6rem, .55rem + .2vw, .6875rem); }
.pa-table { font-size: clamp(.72rem, .64rem + .35vw, .875rem); }
.pa-table th { font-size: clamp(.54rem, .48rem + .27vw, .72rem); padding: clamp(8px, 1vw, 12px) clamp(8px, 1.1vw, 14px); letter-spacing: .1em; }
.pa-table td { padding: clamp(8px, 1.1vw, 14px); }
.pa-table th:first-child, .pa-table td:first-child { padding-left: 4px; }
.pa-table .c-name { min-width: clamp(140px, 19vw, 210px); }
.pa-table .c-year { width: clamp(44px, 5.4vw, 64px); }
.pa-medal { width: clamp(10px, 1.2vw, 14px); height: auto; aspect-ratio: 14 / 19; margin-right: clamp(5px, .7vw, 8px); }
.pa-tcat em { font-size: .93em; }
.pa-table .c-scope { width: clamp(124px, 14vw, 185px); }
.pa-scope-title { margin-bottom: clamp(5px, .7vw, 8px); }
.pa-sqs { gap: clamp(3px, .4vw, 5px); }
.pa-ltr, .pa-sq { width: clamp(19px, 2vw, 26px); height: clamp(19px, 2vw, 26px); flex-basis: clamp(19px, 2vw, 26px); }
.pa-ltr { font-size: clamp(.58rem, .52rem + .25vw, .75rem); }
.pa-sq::after, .pa-ltr::after { font-size: clamp(.62rem, .56rem + .25vw, .75rem); padding: 5px clamp(7px, .9vw, 10px); }
@media (max-width: 1100px) { .pa-table { min-width: clamp(700px, 96vw, 1020px); } }

/* filter row: search + 5 filters share the row without orphans */
.pa-search { flex: 2 1 0; min-width: 200px; }
.pa-bar-row > .pa-select { flex: 1 1 0; min-width: clamp(96px, 9vw, 120px); }
@media (max-width: 960px) { .pa-search { flex: 1 1 100%; } }
@media (max-width: 720px) { .pa-bar-row > .pa-select { flex: 1 1 calc(33.333% - 8px); min-width: 0; } }
@media (max-width: 420px) { .pa-bar-row > .pa-select { flex: 1 1 calc(50% - 6px); } }

/* table: awards medal after the name, compact "Scope" column */
.pa-medal { margin: -3px 0 -3px clamp(5px, .7vw, 8px); }
.pa-table .c-scope { width: clamp(100px, 10.5vw, 132px); }
.pa-ltr, .pa-sq { width: clamp(14px, 1.5vw, 19px); height: clamp(14px, 1.5vw, 19px); flex-basis: clamp(14px, 1.5vw, 19px); }
.pa-ltr { font-size: clamp(.52rem, .46rem + .22vw, .66rem); }
.pa-sqs { gap: clamp(3px, .35vw, 4px); }

/* table: award medal stays on the name's line; "Scope" title level with the other titles; letters row under the header */
.pa-nw { white-space: nowrap; }
.pa-table th.c-scope { text-align: center; vertical-align: bottom; }
/*.pa-scope-key td { padding-top: clamp(3px, .5vw, 6px); padding-bottom: 0; border-bottom: 0; }*/
/*.pa-scope-key:hover td { background: none; }*/
.pa-ltr, .pa-sq { width: clamp(11px, 1.15vw, 14px); height: clamp(11px, 1.15vw, 14px); flex-basis: clamp(11px, 1.15vw, 14px); border-radius: 2px; }
.pa-ltr { font-size: clamp(.5rem, .44rem + .2vw, .62rem); }
.pa-sq { border-width: 1.25px; }
.pa-table .c-scope { width: clamp(84px, 8.5vw, 104px); }
.pa-sqs { gap: clamp(3px, .3vw, 4px); }

/* ---------- map view ---------- */
.pa-map-wrap { margin-top: clamp(18px, 2.4vw, 30px); }
.pa-map-wrap[hidden] { display: none; }
.pa-map { height: clamp(380px, 68vh, 740px); border-radius: 3px; border: 1px solid var(--color-sand-deep, rgba(0,0,0,.12)); background: var(--color-sand, #eee); z-index: 1; }
.pa-map .leaflet-tile-pane { filter: grayscale(.3) saturate(.85); }
.pa-pin { background: none; border: 0; }
.pa-pin svg { display: block; width: clamp(22px, 2.2vw, 28px); height: auto; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.pa-pin path { fill: var(--color-orange); }
.pa-pin circle { fill: #fff; }
.pa-map .leaflet-popup-content-wrapper { border-radius: 4px; padding: 0; overflow: hidden; }
.pa-map .leaflet-popup-content { margin: 0; width: clamp(180px, 52vw, 230px) !important; font-family: inherit; }
.pa-map .leaflet-container a.leaflet-popup-close-button { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); top: 4px; right: 4px; }
.pa-map a.pa-pop, .pa-pop { display: block; color: var(--color-ink); text-decoration: none; }
.pa-pop-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-mist); }
.pa-pop-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pa-pop-body { display: block; padding: clamp(8px, 1.2vw, 12px) clamp(10px, 1.4vw, 14px) clamp(10px, 1.4vw, 14px); }
.pa-pop-body strong { display: block; font-family: var(--font-display); font-size: clamp(.8rem, .7rem + .4vw, .97rem); line-height: 1.3; }
.pa-pop-body em { display: block; margin-top: 3px; font-style: normal; font-size: clamp(.68rem, .6rem + .3vw, .8rem); color: var(--color-graphite); }
.pa-pop-link { display: block; margin-top: 8px; font-size: clamp(.7rem, .62rem + .3vw, .8rem); font-weight: 600; color: var(--color-orange); }
a.pa-pop:hover .pa-pop-body strong { color: var(--color-orange); }
@media (max-width: 720px) { .pa-map { height: clamp(340px, 62vh, 560px); } }

/* table: several clients, one per line */
.pa-cl { display: block; } .pa-cl + .pa-cl { margin-top: 2px; }

/* category arrows level with the middle of the thumbnails (not the middle of thumbnail + name) */
.pa-wrap { --pa-pad: clamp(5px, .7vw, 8px); }
#pa-cat-row > .pa-arrow { align-self: start; margin-top: calc(var(--pa-pad) + (var(--pa-col) - 2 * var(--pa-pad)) / 3 - var(--pa-arrow) / 2); }

@media (min-width: 721px) {                          /* the "CATEGORIES" label level with the arrows; "SUBCATEGORIES" is already centred on its row, which is where its arrows are */
  #pa-cat-row > .pa-row-label { align-self: start; margin-top: calc(var(--pa-pad) + (var(--pa-col) - 2 * var(--pa-pad)) / 3); transform: translateY(-50%); }
}

/* ---------- categories box + sub-category drop-down ---------- */
.pa-wrap { --pa-col: clamp(84px, 10vw, 128px); }                       /* smaller category cards */
.pa-catbox {
  background: var(--color-sand); border: 1px solid var(--color-sand-deep, rgba(0,0,0,.08)); border-radius: clamp(8px, 1vw, 12px);
  /*padding: clamp(6px, .8vw, 12px) clamp(6px, 1vw, 14px); margin-bottom: clamp(14px, 2vw, 24px);*/
  --pa-bp: clamp(6px, .8vw, 12px); padding: var(--pa-bp) clamp(6px, 1vw, 14px); margin-bottom: clamp(14px, 2vw, 24px);
}
.pa-catbox .pa-row { margin-bottom: 0; }
.pa-cat-name { font-size: clamp(.62rem, .56rem + .25vw, .76rem); margin-top: clamp(4px, .6vw, 7px); }

.pa-catcol { flex: 0 0 auto; width: var(--pa-col); align-self: flex-start; }
/*.pa-catcol.has-subs { width: auto; min-width: var(--pa-col); }*/
.pa-catcol .pa-cat { width: var(--pa-col); }
/*.pa-subs { overflow: hidden; max-height: 0; transition: max-height .3s var(--ease); }*/
.pa-catcol .pa-cat-name { min-height: 2.6em; }
.pa-subs { max-height: 0; clip-path: inset(0 -400px 0 0); transition: max-height .3s var(--ease); }
.pa-subs.is-open { padding-bottom: clamp(2px, .4vw, 6px); }
.pa-subs .pa-sub {                                                        /* one line each, tightly stacked, joined to the category by a tree line */
  /*position: relative; display: block; width: 100%; min-height: 0; margin: 0; border: 0; background: none;*/
  position: relative; display: block; width: max-content; min-width: 100%; min-height: 0; margin: 0; border: 0; background: none; overflow: visible;
  padding: 0 clamp(4px, .6vw, 8px) 0 clamp(20px, 2.2vw, 26px);
  text-align: left; white-space: nowrap; font-size: clamp(.64rem, .58rem + .25vw, .8rem); line-height: 1.35; color: var(--color-ink);
  text-decoration: none; font-weight: 400; cursor: pointer; transition: color .2s;
}
.pa-subs .pa-sub::before {                                                /* vertical line (stops at the last item) */
  content: ""; position: absolute; left: clamp(7px, .9vw, 10px); top: 0; bottom: 0; border-left: 1px solid var(--color-stone);
}
.pa-subs .pa-sub:last-child::before { bottom: 50%; }
.pa-subs .pa-sub::after {                                                 /* short branch to the item */
  content: ""; position: absolute; left: clamp(7px, .9vw, 10px); top: 50%; width: clamp(7px, .9vw, 10px); border-top: 1px solid var(--color-stone);
}
.pa-subs .pa-sub:hover, .pa-subs .pa-sub.active { color: var(--color-orange); font-weight: 400; text-decoration: none; }
/* ===== /RESPONSIVE PASS ===== */

/* ---- table view: the project-name column stays in view while scrolling sideways ---- */
@media (max-width: 1100px) {
  .pa-table th:first-child, .pa-table td:first-child { position: sticky; left: 0; }
  .pa-table td:first-child { z-index: 2; background: #fff; } /*box-shadow: 8px 0 8px -8px rgba(0, 0, 0, .22);*/
  .pa-table th:first-child { z-index: 6; } /*box-shadow: 8px 0 8px -8px rgba(0, 0, 0, .22); */
  .pa-tr:hover td:first-child { background: linear-gradient(rgba(242, 103, 15, .045), rgba(242, 103, 15, .045)), #fff; }
  .pa-scope-key td:first-child { position: static; background: none; box-shadow: none; }      /* the empty key row stays as it was */
  .pa-table .c-name { min-width: 0; width: clamp(120px, 34vw, 210px); }                       /* a narrower name column on phones */
}

/* ===== PROJECTS LIBRARY — END ===== */

/* ===== MAIN CLIENTS PAGE — START (paste at the very end of style.css, AFTER the Projects Library block) ===== */
.pc-grid{ display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:30px 22px; margin-top:34px; }
.pc-card[hidden],.pc-grid[hidden]{ display:none; }
.pc-card-in{ display:block; color:inherit; text-decoration:none; text-align:center; }
.pc-logo{ position:relative; display:block; aspect-ratio:3/2; background:#fff; border:1px solid var(--color-sand-deep, rgba(0,0,0,.12)); border-radius:3px; transition:border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.pc-logo img{ position:absolute; inset:20px; width:calc(100% - 40px); height:calc(100% - 40px); object-fit:contain; }
.pc-initial{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); display:grid; place-items:center; width:64px; height:64px; border-radius:50%; background:rgba(242,103,15,.10); color:var(--color-orange); font-family:var(--font-display); font-size:1.6rem; font-weight:700; }
.pc-name{ display:block; margin-top:12px; font-family:var(--font-display); font-size:14.5px; font-weight:600; line-height:1.3; color:var(--color-ink); transition:color .2s; }
a.pc-card-in:hover .pc-logo{ border-color:var(--color-orange); box-shadow:0 8px 22px rgba(0,0,0,.08); transform:translateY(-3px); }
a.pc-card-in:hover .pc-name{ color:var(--color-orange); }
div.pc-card-in{ cursor:default; }

.pa-table.pc-table .c-name{ min-width:200px; }
.pc-projects a,.pc-projects span{ display:block; }
.pc-projects a + a,.pc-projects a + span,.pc-projects span + a,.pc-projects span + span{ margin-top:4px; }
.pc-projects a,.pc-link{ color:var(--color-ink); text-decoration:none; transition:color .2s; }
.pc-projects a:hover,.pc-link:hover{ color:var(--color-orange); text-decoration:underline; text-underline-offset:3px; }
.pc-nowrap{ white-space:nowrap; }
.pa-table.pc-table td{ vertical-align:top; }
.pa-table.pc-table td.c-name{ vertical-align:top; }

@media (max-width:1180px){ .pc-grid{ grid-template-columns:repeat(5,minmax(0,1fr)); } }
@media (max-width:1000px){ .pc-grid{ grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (max-width:800px){  .pc-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px 16px; } }
@media (max-width:560px){  .pc-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } .pc-logo img{ inset:14px; width:calc(100% - 28px); height:calc(100% - 28px); } }
@media (max-width:1100px){ .pa-table.pc-table{ min-width:780px; } }

/*.clients-banner .banner-title { display: table; margin: 0 auto; }*/
.clients-banner .banner-title { display: table; margin: 0; }
.clients-banner .banner-title .banner-underline { width: 100%; margin-left: 0; margin-right: 0; }

.clients-banner .container > p {
  max-width: min(100ch, 100%);
  padding-left: clamp(10px, 14vw, 12px);
}
/*@media (max-width: 760px) {*/
/*  .clients-banner .container > p { padding-left: 0; max-width: 100%; }*/
/*}*/

/* ---------- clients page: fluid sizing ---------- */
.clients-banner .eyebrow { font-size: clamp(.6rem, .48rem + .45vw, .78rem); margin-bottom: clamp(10px, 1.3vw, 16px); }
.clients-banner .eyebrow::before, .clients-banner .eyebrow::after { width: .55em; height: .55em; }
.clients-banner h1 { margin: 0; }
.clients-banner .banner-underline { margin-top: clamp(9px, 1.2vw, 14px); margin-bottom: clamp(13px, 1.6vw, 20px); }
.clients-banner .container > p { font-size: clamp(.86rem, .78rem + .32vw, 1rem); }

/* grid */
.pc-grid { gap: clamp(18px, 2.4vw, 30px) clamp(10px, 1.6vw, 22px); margin-top: clamp(20px, 2.6vw, 34px); }
.pc-logo { border-radius: clamp(2px, .3vw, 3px); }
.pc-logo img { inset: clamp(10px, 1.5vw, 20px); width: calc(100% - 2 * clamp(10px, 1.5vw, 20px)); height: calc(100% - 2 * clamp(10px, 1.5vw, 20px)); }
.pc-name { margin-top: clamp(7px, .9vw, 12px); font-size: clamp(.72rem, .64rem + .3vw, .906rem); }

/* table */
.pa-table.pc-table .c-name { min-width: clamp(140px, 19vw, 210px); }
.pc-projects a + a, .pc-projects a + span, .pc-projects span + a, .pc-projects span + span { margin-top: clamp(3px, .4vw, 4px); }

@media (max-width: 529px) {
  .pa-table.pc-table { min-width: 0; width: max-content; max-width: none; }
  .pa-table.pc-table .c-name { min-width: 0; width: clamp(130px, 40vw, 190px); max-width: clamp(130px, 40vw, 190px); white-space: normal; text-wrap: balance; }
  .pa-table.pc-table .c-name a,
  .pa-table.pc-table .c-name span { white-space: normal; }
}
/* ===== MAIN CLIENTS PAGE — END ===== */

/* ===== NEWS PAGE — START (paste at the very end of style.css, AFTER the Projects Library + Clients blocks) ===== */

/* ---------- banner (underline = exactly the heading's width) ---------- */
/*.news-banner { padding: calc(var(--header-h, 76px) + clamp(26px, 4vw, 54px)) 0 clamp(32px, 5vw, 62px); }*/
.news-banner .eyebrow { font-size: clamp(.6rem, .48rem + .45vw, .78rem); margin-bottom: clamp(10px, 1.3vw, 16px); }
.news-banner .eyebrow::before, .news-banner .eyebrow::after { width: .55em; height: .55em; }
.news-banner h1 { margin: 0; }
.news-banner .banner-title { display: table; margin: 0; }
.news-banner .banner-title .banner-underline { width: 100%; margin: clamp(9px, 1.2vw, 14px) 0 clamp(13px, 1.6vw, 20px); }
.news-banner .container > p { font-size: clamp(.86rem, .78rem + .32vw, 1rem); }

/* ---------- newspaper ---------- */
#nw-page {
  --nw-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --nw-text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --nw-pad: clamp(16px, 2vw, 28px);
  --nw-rule: rgba(0, 0, 0, .2);
  --nw-ink: var(--color-ink, #1d1d1b);
}
.nw-rule { border-top: 4px double var(--nw-ink); }                      /* the masthead-style double rule */
.nw-grid {
  /*display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));*/
  display: grid; grid-template-columns: repeat(24, minmax(0, 1fr));
  margin: 0 calc(-1 * var(--nw-pad));
  overflow: hidden;
  clip-path: inset(0 var(--nw-pad));              /* row rules stop at the page edges, like the double rule above */
}
.nw-item {
  display: flex; flex-direction: column; min-width: 0;
  padding: var(--nw-pad);
  margin-right: -1px; border-right: 1px solid var(--nw-rule); border-bottom: 1px solid var(--nw-rule);   /* thin column + row rules */
}
.nw-item[hidden] { display: none; }
/*.nw-lead { grid-column: span 2; }*/
.nw-item { grid-column: span 8; }
.nw-lead { grid-column: span 16; }
.nw-second { grid-column: span 8; }
.nw-solo { grid-column: 1 / -1; }
/* the top two stories stay side by side down to 900px; the first one shrinks as the second grows */
@media (max-width: 1249px) { .nw-lead { grid-column: span 15; } .nw-second { grid-column: span 9; } }
@media (max-width: 1149px) { .nw-lead { grid-column: span 14; } .nw-second { grid-column: span 10; } }
@media (max-width: 1049px) { .nw-lead { grid-column: span 13; } .nw-second { grid-column: span 11; } }

.nw-kicker {
  display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline;
  font-family: var(--font-display, sans-serif); font-weight: 600; line-height: 1.3;
  font-size: clamp(.62rem, .58rem + .2vw, .74rem); letter-spacing: .14em; text-transform: uppercase;
}
.nw-kicker time { color: var(--color-orange); }
.nw-from { color: var(--color-stone, #6b6b6b); }
.nw-from a { color: inherit; text-decoration: none; transition: color .2s; }
@media (hover: hover) { .nw-from a:hover { color: var(--color-orange); text-decoration: underline; text-underline-offset: 3px; } }

.nw-head {
  margin: .45em 0 .6em; color: var(--nw-ink);
  font-family: var(--nw-serif); font-weight: 800; line-height: 1.14; letter-spacing: -.005em;
  font-size: clamp(1.2rem, 1.02rem + .7vw, 1.65rem); text-wrap: balance;
}
/*.nw-lead .nw-head { font-weight: 900; line-height: 1.07; font-size: clamp(1.7rem, 1.2rem + 1.9vw, 3rem); }*/

.nw-lead { container-type: inline-size; }
.nw-lead .nw-head { font-weight: 900; line-height: 1.07; font-size: clamp(1.7rem, 1.2rem + 1.9vw, 3rem); }
@supports (font-size: 1cqi) { .nw-lead .nw-head { font-size: clamp(1.45rem, 6.2cqi, 3rem); } }

.nw-fig { margin: 0 0 1em; aspect-ratio: 3 / 2; overflow: hidden; background: var(--color-sand, #eee); }
.nw-lead .nw-fig { aspect-ratio: 16 / 9; }
.nw-fig img { display: block; width: 100%; height: 100%; object-fit: cover; }

.nw-text {
  --nw-lines: 8;
  font-family: var(--nw-text); color: #2a2a2a; line-height: 1.62;
  font-size: clamp(.92rem, .86rem + .22vw, 1.04rem);
  overflow: hidden; max-height: calc(1.62em * var(--nw-lines));               /* cut after N lines → Read More */
}
.nw-lead .nw-text { --nw-lines: 10; }
.nw-item.open .nw-text { max-height: none; }
.nw-text p { margin: 0; text-indent: 1.4em; }
.nw-text p:first-child { text-indent: 0; }
.nw-lead .nw-text p:first-child::first-letter {                               /* drop cap on the lead story */
  float: left; font-family: var(--nw-serif); font-weight: 900; color: var(--nw-ink);
  font-size: 3.5em; line-height: .8; padding: .07em .09em 0 0;
}
@media (min-width: 700px) { .nw-text { text-align: justify; hyphens: auto; } }

.nw-more {
  align-self: flex-start; margin-top: .8em; padding: 0; background: none; border: 0; cursor: pointer;
  font-family: var(--font-display, sans-serif); font-weight: 600; color: var(--color-orange);
  font-size: clamp(.64rem, .6rem + .2vw, .76rem); letter-spacing: .12em; text-transform: uppercase;
}
.nw-more[hidden] { display: none; }
.nw-more i { font-size: .8em; margin-left: .3em; transition: transform .25s; }
.nw-item.open .nw-more i { transform: rotate(180deg); }
.nw-link {
  align-self: flex-start; margin-top: .9em; padding-bottom: 2px; text-decoration: none; color: var(--nw-ink);
  border-bottom: 1px solid currentColor; transition: color .2s;
  font-family: var(--font-display, sans-serif); font-weight: 600;
  font-size: clamp(.64rem, .6rem + .2vw, .76rem); letter-spacing: .12em; text-transform: uppercase;
}
.nw-link i { font-size: .85em; margin-left: .35em; }
@media (hover: hover) { .nw-link:hover { color: var(--color-orange); } }

.nw-load { text-align: center; margin-top: clamp(24px, 3vw, 40px); }
.nw-load[hidden] { display: none; }
.nw-load button {
  padding: clamp(11px, 1.2vw, 14px) clamp(22px, 3vw, 36px); cursor: pointer;
  background: none; color: var(--nw-ink); border: 1px solid var(--nw-ink);
  font-family: var(--font-display, sans-serif); font-weight: 600;
  font-size: clamp(.68rem, .64rem + .2vw, .8rem); letter-spacing: .14em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
@media (hover: hover) { .nw-load button:hover { background: var(--color-orange); border-color: var(--color-orange); color: #fff; } }

/* tablet: 2 columns (the lead story takes the full first row) */
/*@media (max-width: 999px) {*/
/*  .nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }*/
/*}*/
/* below 900: 2 columns (the lead story takes the full first row) */
@media (max-width: 899px) {
  .nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nw-item, .nw-second { grid-column: auto; }
  .nw-lead, .nw-solo { grid-column: 1 / -1; }
}

/* phone: one column, only horizontal rules */
@media (max-width: 699px) {
  #nw-page { --nw-pad: 0px; }
  .nw-grid { grid-template-columns: 1fr; }
  .nw-item { padding: 20px 0; margin-right: 0; border-right: 0; }
  /*.nw-lead { grid-column: auto; }*/
  .nw-lead, .nw-solo { grid-column: auto; }
}

/* ---------- view switch + table view ---------- */
.nw-grid[hidden], .nw-tablewrap[hidden] { display: none; }
.nw-item { scroll-margin-top: calc(var(--header-h, 76px) + 16px); }
.nw-flash { animation: nwFlash 1.8s ease-out; }
@keyframes nwFlash { from { background: rgba(242, 103, 15, .14); } to { background: transparent; } }

.nw-table { table-layout: fixed; width: 100%; }
.nw-table .nw-c-date { width: 13%; } .nw-table .nw-c-head { width: 27%; } .nw-table .nw-c-desc { width: 37%; } .nw-table .nw-c-proj { width: 23%; }
.nw-table td { vertical-align: top; }
.nw-table .nw-d { white-space: nowrap; color: var(--color-orange); font-weight: 600; letter-spacing: .04em; }
.nw-table .nw-h { font-family: var(--nw-serif); font-weight: 800; line-height: 1.25; color: var(--nw-ink); font-size: 1.04em; overflow-wrap: anywhere; }
.nw-desc-in { display: flex; align-items: baseline; gap: clamp(8px, 1vw, 12px); min-width: 0; }
.nw-desc-txt { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--nw-text); color: #444; }
.nw-tmore {
  flex: 0 0 auto; padding: 0; background: none; border: 0; cursor: pointer; white-space: nowrap;
  font-family: var(--font-display, sans-serif); font-weight: 600; color: var(--color-orange);
  font-size: .8em; letter-spacing: .1em; text-transform: uppercase;
}
@media (hover: hover) { .nw-tmore:hover { text-decoration: underline; text-underline-offset: 3px; } }
.nw-muted { color: var(--color-stone, #6b6b6b); font-style: italic; }
@media (max-width: 1100px) { .pa-table.nw-table { min-width: clamp(640px, 96vw, 900px); } }
/* ===== NEWS PAGE — END ===== */

/* ===== AWARDS PAGE — START (paste at the very end of style.css) ===== */

/* ---------- banner (underline = exactly the heading's width) ---------- */
/*.awards-banner { padding: calc(var(--header-h, 76px) + clamp(26px, 4vw, 54px)) 0 clamp(32px, 5vw, 62px); }*/
.awards-banner .eyebrow { font-size: clamp(.6rem, .48rem + .45vw, .78rem); margin-bottom: clamp(10px, 1.3vw, 16px); }
.awards-banner .eyebrow::before, .awards-banner .eyebrow::after { width: .55em; height: .55em; }
.awards-banner h1 { margin: 0; }
.awards-banner .banner-title { display: table; margin: 0; }
.awards-banner .banner-title .banner-underline { width: 100%; margin: clamp(9px, 1.2vw, 14px) 0 clamp(13px, 1.6vw, 20px); }
.awards-banner .container > p { font-size: clamp(.86rem, .78rem + .32vw, 1rem); margin-left: 10px; }

/* big award medal on the banner (the same icon as on the plaques) */
.awards-banner { overflow: hidden; }
.awards-banner .container { position: relative; }
.aw-banner-art {
  position: absolute; right: clamp(16px, 7vw, 120px); top: 30%; transform: translateY(-50%); pointer-events: none;
  width: clamp(60px, 3.5vw, 100px); height: auto; aspect-ratio: 28 / 38;
}
.aw-banner-art .tail { fill: #c4571a; } .aw-banner-art .disc { fill: var(--color-orange); } .aw-banner-art .ring { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: .8; } .aw-banner-art .star { fill: #fff; }
.awards-banner .container > p { max-width: min(62ch, calc(100% - clamp(80px, 9.5vw, 136px) - clamp(16px, 7vw, 120px) - 28px)); }
@media (max-width: 699px) {
  .aw-banner-art { width: clamp(40px, 12vw, 60px); top: 1px; transform: none; opacity: .4; margin-right: 10px;}   /* quiet watermark behind the text on phones */
  .awards-banner .container > p { max-width: none; }
}

/* ---------- the hall ---------- */
.aw-wrap {
  --aw-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --aw-ink: var(--color-ink, #1d1d1b);
  --aw-rule: rgba(0, 0, 0, .16);
  padding: clamp(18px, 2.6vw, 34px) 0 clamp(54px, 7vw, 90px);
}

/* sort */
.aw-bar { display: flex; justify-content: flex-end; margin-bottom: clamp(6px, 1vw, 12px); }

/* plaques */
.aw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 3vw, 40px) clamp(16px, 2vw, 28px); padding-top: 18px; }   /* cards in a row are always the same height */
.aw-plaque { display: flex; padding: clamp(5px, .6vw, 8px); background: #fff; border: 1px solid var(--aw-rule); box-shadow: 0 10px 26px rgba(0, 0, 0, .05); transition: transform .35s var(--ease, ease), box-shadow .35s; }
@media (hover: hover) { .aw-plaque:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(0, 0, 0, .1); } }
.aw-frame {
  position: relative; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center;
  border: 1px solid rgba(242, 103, 15, .55);                                     /* inner engraved frame */
  padding: clamp(34px, 3.6vw, 46px) clamp(16px, 2vw, 28px) clamp(16px, 2vw, 24px);
}
.aw-badge { position: absolute; top: calc(-1 * clamp(14px, 1.5vw, 19px)); left: 50%; transform: translateX(-50%); padding: 0 8px; background: #fff; line-height: 0; }
.aw-medal { width: clamp(20px, 2vw, 26px); height: auto; aspect-ratio: 28 / 38; }
.aw-medal .tail { fill: #c4571a; } .aw-medal .disc { fill: var(--color-orange); } .aw-medal .ring { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: .8; } .aw-medal .star { fill: #fff; }

.aw-date { margin-bottom: clamp(10px, 1.2vw, 14px); color: var(--color-orange); font-family: var(--font-display, sans-serif); font-weight: 600; letter-spacing: .16em; font-size: clamp(.62rem, .58rem + .2vw, .76rem); }
.aw-logo { width: 100%; height: clamp(54px, 6vw, 78px); margin-bottom: clamp(12px, 1.4vw, 18px); }
.aw-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }

.aw-name { margin: 0; color: var(--aw-ink); font-family: var(--aw-serif); font-weight: 800; line-height: 1.2; font-size: clamp(1.1rem, .98rem + .55vw, 1.5rem); text-wrap: balance; }
.aw-by { margin: .7em 0 0; color: var(--color-graphite, #444); font-family: var(--aw-serif); font-style: italic; font-size: clamp(.86rem, .8rem + .22vw, 1rem); }
.aw-by span { color: var(--color-stone, #6b6b6b); }
.aw-text {
  --aw-lines: 4;
  margin: 1em 0 0; color: #3a3a3a; line-height: 1.6; font-size: clamp(.84rem, .78rem + .22vw, .96rem);
  overflow: hidden; max-height: calc(1.6em * var(--aw-lines));                    /* cut after 4 lines → Read More */
}
.aw-plaque.open .aw-text { max-height: none; }
.aw-more {
  margin-top: .8em; padding: 0; background: none; border: 0; cursor: pointer; color: var(--color-orange);
  font-family: var(--font-display, sans-serif); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: clamp(.62rem, .58rem + .2vw, .74rem);
}
.aw-more[hidden] { display: none; }
.aw-more i { font-size: .8em; margin-left: .3em; transition: transform .25s; }
.aw-plaque.open .aw-more i { transform: rotate(180deg); }

.aw-foot {
  width: 100%; margin-top: auto; padding-top: clamp(14px, 1.6vw, 20px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.aw-text + .aw-foot, .aw-by + .aw-foot, .aw-name + .aw-foot { margin-top: auto; }
.aw-frame > .aw-name, .aw-frame > .aw-by, .aw-frame > .aw-text { flex: 0 0 auto; }
.aw-proj { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; padding-top: clamp(10px, 1.2vw, 14px); border-top: 1px solid var(--aw-rule); }
.aw-proj > span, .aw-proj > b, .aw-proj > a { max-width: 100%; }
.aw-proj > span:first-child { font-family: var(--font-display, sans-serif); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--color-stone, #6b6b6b); font-size: clamp(.56rem, .52rem + .2vw, .68rem); }
.aw-proj b, .aw-proj a { font-family: var(--aw-serif); font-weight: 700; color: var(--aw-ink); text-decoration: none; font-size: clamp(.9rem, .84rem + .25vw, 1.05rem); overflow-wrap: anywhere; }
@media (hover: hover) { .aw-proj a:hover { color: var(--color-orange); text-decoration: underline; text-underline-offset: 3px; } }
.aw-link {
  padding-bottom: 2px; text-decoration: none; color: var(--aw-ink); border-bottom: 1px solid currentColor; transition: color .2s;
  font-family: var(--font-display, sans-serif); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: clamp(.62rem, .58rem + .2vw, .74rem);
}
.aw-link i { font-size: .85em; margin-left: .35em; }
@media (hover: hover) { .aw-link:hover { color: var(--color-orange); } }

@media (max-width: 1099px) { .aw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px)  { .aw-grid { grid-template-columns: 1fr; } }
/* ===== AWARDS PAGE — END ===== */

/* ===== OUR TEAM ===== */
/*.team-banner { padding: calc(var(--header-h, 76px) + clamp(26px, 4vw, 54px)) 0 clamp(32px, 5vw, 62px); }*/
.team-banner .eyebrow { font-size: clamp(.6rem, .48rem + .45vw, .78rem); margin-bottom: clamp(10px, 1.3vw, 16px); }
.team-banner .eyebrow::before, .team-banner .eyebrow::after { width: .55em; height: .55em; }
.team-banner h1 { margin: 0; }
.team-banner .banner-title { display: table; margin: 0; }
.team-banner .banner-title .banner-underline { width: 100%; margin: clamp(9px, 1.2vw, 14px) 0 clamp(13px, 1.6vw, 20px); }
.team-banner .container > p { font-size: clamp(.86rem, .78rem + .32vw, 1rem); max-width: 100ch; margin-left: 10px; }

.tm-wrap {
  --tm-serif: var(--font-display, inherit);       /* the site's own heading font */
  --tm-ink: var(--color-ink, #1d1d1b);
  --tm-rule: rgba(0, 0, 0, .14);
  --tm-gap: clamp(14px, 2vw, 28px);
  padding:   clamp(10px, 2vw, 30px) 0 clamp(30px, 7vw, 50px); /*clamp(18px, 2.6vw, 34px) 0 clamp(54px, 7vw, 90px);*/
}
.tm-wrap, .tm-wrap *, .tm-wrap *::before, .tm-wrap *::after { box-sizing: border-box; }
.tm-wrap [hidden] { display: none !important; }
.tm-wrap h2, .tm-wrap h3, .tm-wrap h4 { margin: 0; }
.tm-wrap ul { list-style: none; margin: 0; padding: 0; }
.tm-tier { margin-top: clamp(34px, 5vw, 64px); padding: 0 !important; }
.tm-tier:first-child { margin-top: clamp(10px, 2vw, 24px); }
.tm-tier-head { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); margin-bottom: clamp(5px, 2.2vw, 10px); }
.tm-tier-head h2 { font-family: var(--tm-serif); font-weight: 800; color: var(--tm-ink); font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.2rem); line-height: 1.1; }
.tm-rule { flex: 1; height: 1px; background: var(--tm-rule); position: relative; }
.tm-rule::before { content: ""; position: absolute; left: 0; top: -1px; width: clamp(36px, 5vw, 64px); height: 3px; background: var(--color-orange); }

/* ---- 1 · managing partners: 2 per row, a lone last card sits in the middle ---- */
.tm-partners { --pw: min(440px, 46cqi); container-type: inline-size; display: grid; grid-template-columns: repeat(2, var(--pw)); justify-content: space-evenly; align-items: start; gap: var(--tm-gap) 0; }   /* 2 per row, equal space left · between · right --pw: min(380px, 44cqi); */
.tm-partners > .tm-partner:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; }
.tm-partner {
  width: var(--pw); display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--tm-rule); border-top: 4px solid var(--color-orange); box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
  transition: transform .35s var(--ease, ease), box-shadow .35s;
}
.tm-partner:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .11); }
.tm-partner-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #e9e6df; }
.tm-partner-photo img, .tm-partner-photo svg { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; object-position: top; display: block; transition: transform .6s var(--ease, ease); }
.tm-partner:hover .tm-partner-photo img { transform: scale(1.04); }
.tm-partner-body { display: flex; flex-direction: column; flex: 1; padding: clamp(16px, 2.2vw, 30px); }
.tm-go { margin-top: auto; padding-top: 1.2em; color: var(--color-orange); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: clamp(.64rem, .6rem + .2vw, .76rem); }
.tm-go i { margin-left: .4em; transition: transform .3s; } .tm-partner:hover .tm-go i { transform: translateX(5px); }

/* chips (memberships) */

/* ---- 2 · senior staff: 4 per row, more cards flow onto the next row ---- */
.tm-senior-grid { --cols: 4; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: var(--tm-gap); }   /* a short last row is centered */
.tm-senior {
  text-align: center;
  background: #fff; border: 1px solid var(--tm-rule); border-radius: 20px; box-shadow: 0 8px 22px rgba(0, 0, 0, .05);
  padding: clamp(18px, 2.2vw, 30px) clamp(14px, 1.8vw, 24px);
}
.tm-senior-photo { width: clamp(96px, 10vw, 140px); aspect-ratio: 1; margin: 0 auto clamp(12px, 1.4vw, 18px); border-radius: 50%; overflow: hidden; border: 3px solid var(--color-orange); padding: 4px; background: #fff; box-sizing: border-box; }
.tm-senior-photo img, .tm-senior-photo svg { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.tm-senior .tm-panel { text-align: left; }

/* read more */
.tm-more { display: inline-flex; align-items: center; gap: .5em; margin-top: 1em; padding: 0; background: none; border: 0; cursor: pointer; color: var(--color-orange); font-family: var(--font-display, sans-serif); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: clamp(.62rem, .58rem + .2vw, .74rem); }
.tm-more i { transition: transform .3s; } .tm-more[aria-expanded="true"] i { transform: rotate(180deg); }
.tm-panel { margin-top: 1.1em; padding-top: 1.1em; border-top: 1px solid var(--tm-rule); }
.tm-block + .tm-block { margin-top: 1.2em; }
.tm-block h4 { text-align: start; margin-bottom: .5em; color: var(--color-stone, #6b6b6b); font-family: var(--font-display, sans-serif); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: clamp(.62rem, .58rem + .2vw, .74rem); }
.tm-block p { margin: 0; line-height: 1.65; color: var(--color-graphite, #444); font-size: clamp(.85rem, .8rem + .22vw, .98rem); }
.tm-quals li { padding: .55em 0; border-bottom: 1px dashed var(--tm-rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; }
.tm-quals li:last-child { border-bottom: 0; }
.tm-q-text { color: var(--tm-ink); font-size: clamp(.84rem, .8rem + .2vw, .96rem); }
.tm-pubs li { position: relative; padding: .4em 0; padding-inline-start: 1.2em; text-align: start; color: var(--color-graphite, #444); font-size: clamp(.84rem, .8rem + .2vw, .96rem); }
.tm-pubs li::before { content: ""; position: absolute; inset-inline-start: .1em; top: 1em; width: .4em; height: .4em; background: var(--color-orange); transform: rotate(45deg); }   /* bullet sits on the side the text starts */
.tm-pubs a { color: var(--tm-ink); text-decoration: none; border-bottom: 1px solid var(--color-orange); } .tm-pubs a:hover { color: var(--color-orange); } .tm-pubs i { font-size: .75em; color: var(--color-orange); }
.tm-block p + p { margin-top: .8em; }
.tm-q-links a { padding: .25em .7em; border: 1px solid var(--color-orange); border-radius: 99px; color: var(--color-orange); text-decoration: none; font-weight: 600; font-size: clamp(.68rem, .64rem + .2vw, .78rem); transition: .25s; }
.tm-q-links a:hover { background: var(--color-orange); color: #fff; }
.tm-block 
/* ---- 3 · specialty: a plain list ---- */
.tm-list { border-top: 1px solid var(--tm-rule); }
.tm-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; padding: clamp(8px, 1vw, 12px) clamp(2px, .6vw, 8px); border-bottom: 1px solid var(--tm-rule); }
.tm-li-name { font-family: var(--tm-serif); color: var(--tm-ink); font-size: clamp(.95rem, .88rem + .35vw, 1.15rem); }
.tm-li-role { color: var(--color-stone, #6b6b6b); font-size: clamp(.8rem, .76rem + .2vw, .92rem); }

/* ---- profile page ---- */
.tm-profile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(20px, 4vw, 56px); align-items: start; margin-top: 15px; }
.tm-profile-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-top: 4px solid var(--color-orange); background: #e9e6df; box-shadow: 0 14px 34px rgba(0, 0, 0, .1); }
.tm-profile-photo img, .tm-profile-photo svg { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; object-position: top; display: block; }
.tm-profile-main .tm-block + .tm-block { margin-top: clamp(20px, 2.6vw, 34px); }
.tm-profile-main .tm-block h4 { padding-bottom: .6em; border-bottom: 1px solid var(--tm-rule); }
.tm-profile-main .tm-block p { font-size: clamp(.92rem, .86rem + .3vw, 1.08rem); }
.tm-back { display: inline-block; margin-top: clamp(24px, 3vw, 40px); color: var(--color-orange); text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: clamp(.68rem, .64rem + .2vw, .8rem); }

/* ---- responsive ---- */
@media (max-width: 1100px) { .tm-senior-grid { --cols: 3; } }
@media (max-width: 760px) { .tm-senior-grid { --cols: 2; } }
@media (max-width: 700px) {
  .tm-partners { --pw: min(380px, 100cqi); grid-template-columns: var(--pw); }
  .tm-profile { grid-template-columns: 1fr; }
  .tm-profile-photo { max-width: 420px; }
}
@media (max-width: 700px) {
  .tm-profile-photo { margin-inline: auto; }          /* photo centered in its row */
  .tm-profile-side .tm-years { text-align: center; }  /* "With us — Since …" centered under it */
}

.tm-q-year { color: var(--color-stone, #8a8a8a); font-weight: 400; white-space: nowrap; }

@media (max-width: 480px) { .tm-senior-grid { --cols: 1; } .tm-senior { max-width: 360px; } }


/* ---- identity lines (cards + profile banner) ---- */
.tm-name { font-family: var(--tm-serif); font-weight: 800; color: var(--tm-ink); line-height: 1.2; font-size: clamp(1.15rem, 1rem + .7vw, 1.65rem); }
.tm-name-quals { display: inline; font-family: inherit; font-weight: 400; color: var(--color-graphite, #444); font-size: .6em; line-height: 1.4; letter-spacing: 0; }
.tm-q-year { color: var(--color-stone, #8a8a8a); font-weight: 400; white-space: nowrap; }
.tm-line2 { margin: .35em 0 0; color: var(--tm-ink); font-weight: 600; font-size: clamp(.88rem, .82rem + .25vw, 1.02rem); }
.tm-line3 { margin: .3em 0 0; color: var(--color-stone, #6b6b6b); font-size: clamp(.76rem, .72rem + .2vw, .88rem); letter-spacing: .04em; }
.tm-tenure { margin: .7em 0 0; color: var(--color-orange); font-weight: 600; letter-spacing: .06em; font-size: clamp(.7rem, .66rem + .2vw, .82rem); }
.tm-excerpt { margin: .9em 0 0; color: var(--color-graphite, #444); line-height: 1.6; font-size: clamp(.85rem, .8rem + .22vw, .98rem); }
.tm-senior .tm-name-quals { display: block; margin-top: .15em; }

/* profile banner */
.team-banner--person h1 { line-height: 1.15; }
.team-banner--person h1 .tm-name-quals { color: rgba(255, 255, 255, .8); font-size: .42em; font-weight: 400; vertical-align: baseline; margin-inline-start: .5em; }
.team-banner--person h1 .tm-q-year { color: rgba(255, 255, 255, .55); }
.team-banner--person .container > p.tm-ban-line2 { margin-left: 10px; color: #fff; font-weight: 600; font-size: clamp(.95rem, .86rem + .4vw, 1.2rem); }
.team-banner--person .container > p.tm-ban-line3 { margin: .35em 10px 0; color: rgba(255, 255, 255, .75); font-size: clamp(.8rem, .74rem + .25vw, .95rem); letter-spacing: .05em; }

/* profile body */
.tm-years { margin: clamp(12px, 1.6vw, 18px) 0 0; color: var(--color-orange); font-weight: 600; letter-spacing: .05em; font-size: clamp(.8rem, .76rem + .2vw, .92rem); }
.tm-years span { margin-inline-end: .5em; color: var(--color-stone, #6b6b6b); font-weight: 400; text-transform: uppercase; letter-spacing: .12em; font-size: .85em; }
.tm-profile--solo { grid-template-columns: 1fr; }
.tm-profile-main > .tm-years { margin: 0 0 clamp(14px, 2vw, 22px); }

/* ---- specialty list: compact, no lines ---- */
.tm-tier--spec { margin-top: clamp(16px, 2.2vw, 28px); padding: 0 !important; }
/*.tm-tier--spec .tm-tier-head { margin-bottom: clamp(20px, 3.2vw, 50px); }*/
.tm-tier--spec .tm-tier-head h2 { font-size: clamp(.95rem, .88rem + .4vw, 1.2rem); }
.tm-list { border-top: 0; }
.tm-list li { border-bottom: 0; padding: clamp(1px, .35vw, 2px) 2px !important; }
.tm-li-name { font-size: clamp(.85rem, .8rem + .2vw, .98rem); }
.tm-li-role { font-size: clamp(.74rem, .7rem + .18vw, .86rem); }
.tm-tier--partners + .tm-tier--spec, .tm-tier--senior + .tm-tier--spec { margin-top: clamp(34px, 5vw, 64px); }   /* a clear gap before the first specialty list */

/* more space between the heading and the cards (Managing Partners + Senior Staff only) */
.tm-tier--partners .tm-tier-head,
.tm-tier--senior .tm-tier-head { margin-bottom: clamp(30px, 4vw, 60px) }

/*.tm-li-years { margin-inline-start: .6em; color: var(--color-stone, #8a8a8a); font-weight: 400; font-size: .72em; letter-spacing: .03em; white-space: nowrap; }*/
.tm-li-years { margin-inline-start: .6em; color: var(--color-stone, #8a8a8a); font-weight: 400; font-size: .72em; letter-spacing: .03em; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity .2s; }
.tm-li-name.has-years { cursor: pointer; outline: none; }
.tm-li-name.is-open .tm-li-years, .tm-li-name.has-years:focus-visible .tm-li-years { opacity: 1; visibility: visible; }
@media (hover: hover) { .tm-li-name.has-years:hover .tm-li-years { opacity: 1; visibility: visible; } }

/* senior cards: one standard size (an opened card grows, the others keep theirs) */
.tm-senior { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--tm-gap)) / var(--cols)); display: flex; flex-direction: column; align-items: center; height: clamp(360px, 30vw, 410px); overflow: hidden; }
/*.tm-senior.is-open { height: auto; overflow: visible; }*/
.tm-senior.is-open { height: auto; min-height: clamp(360px, 30vw, 410px); overflow: visible; }
.tm-senior .tm-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tm-senior .tm-name-quals { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tm-senior .tm-line2, .tm-senior .tm-line3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tm-senior.is-open .tm-name, .tm-senior.is-open .tm-name-quals, .tm-senior.is-open .tm-line2, .tm-senior.is-open .tm-line3 { display: block; overflow: visible; }   /* opened: nothing is cut */
.tm-senior > .tm-more { margin-top: auto; padding-top: 1em; }
/*.tm-senior.is-open > .tm-more { margin-top: 1em; }*/
.tm-senior .tm-panel { align-self: stretch; }
.tm-partners.is-equal { align-items: stretch; }

/* profile banner: the underline sits under the name only; the qualifications sit beside it */
.team-banner--person .tm-ban-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em clamp(10px, 1.4vw, 18px); }
.team-banner--person .tm-ban-row > .tm-name-quals { color: rgba(255, 255, 255, .8); font-size: clamp(.8rem, .74rem + .35vw, 1rem); font-weight: 400; margin: 0; }
.team-banner--person .tm-ban-row .tm-q-year { color: rgba(255, 255, 255, .55); }

/* ===== Hero caption: smaller type, balanced two-line project name, never reaches the button ===== */
.hero-captions .hero-caption { --fit: 1; max-width: min(92vw, 720px); }   /* --fit is set by the script (1 = full size) */

.hero-captions .hero-caption-name {
  font-size: calc(clamp(1rem, 1.55vw, 1.36rem) * var(--fit));      /* was clamp(1.15rem, 1.8vw, 1.6rem) */
  max-width: min(92vw, 24em);               /* a long name wraps at about 44 characters per line */
  text-wrap: balance;  /* a long name splits into two even lines */
  overflow-wrap: normal; word-break: normal; hyphens: none; /* never cut a word */
}
.hero-captions .hero-caption-client { font-size: calc(clamp(.82rem, 1.2vw, 1.02rem) * var(--fit)); }   /* was clamp(.95rem, 1.4vw, 1.2rem) */
.hero-captions .hero-caption-year   { font-size: calc(clamp(.76rem, 1.02vw, .9rem) * var(--fit)); }    /* was clamp(.85rem, 1.2vw, 1.05rem) */

/*.hero-slider .slide {*/
/*  animation: none !important;*/
/*  transform: none !important;*/
/*  will-change: opacity;*/
/*}*/
/*.hero-slider .slide {*/
/*  will-change: opacity, transform;*/
/*}*/


.hero-slider,
.home .hero-slider { height: var(--hero-h, 100svh) !important; }
.admin-bar.home .hero-slider { height: calc(var(--hero-h, 100svh) - 32px) !important; }
@media (max-width: 782px) {
  .admin-bar.home .hero-slider { height: calc(var(--hero-h, 100svh) - 46px) !important; }
}

/* ===== Slider: fade out to black, then fade the next picture in ===== */
.hero-slider { background: #000; }
.hero-slider .slide { opacity: 0; transition: opacity 1s ease-in; }                 /* the old picture fades out to black... */
.hero-slider .slide.active { opacity: 1; transition: opacity 1.2s ease-out 1s; }    /* ...then the next one fades in after a 1s pause */
.hero-caption.active { transition-delay: 1.3s; }                                    /* the caption appears with the new picture, not during the black */

@media (max-width: 992px) {
  #about-section .split-media img {
    max-height: 80svh;                   /* on a wide tablet the square never gets taller than the screen */
    object-fit: cover;
    object-position: center;
    aspect-ratio: auto;
  }
}

.services-banner .banner-title { display: table; margin: 0; }
.services-banner .banner-title .banner-underline { width: 100%; margin-left: 0; margin-right: 0; }

.hero-content .hero-msgs .hero-msg {
  opacity: 0 !important;
  filter: blur(4px);
  animation: none !important;
  transition: opacity 2s ease, filter 2s ease !important;     /* higher = slower */
}
.hero-content .hero-msgs .hero-msg.active { opacity: 1 !important; filter: none; }
.hero-content .hero-msgs.no-anim .hero-msg { transition: none !important; }   /* first message on page load */

/* footer: the Links column is only as wide as its text, with the same gap as after the logo */
@media (min-width: 480px) {
  .footer-links {
    min-width: 0;                                   /* was 230px, taken from .footer-column */
    flex: 0 0 auto;
    margin-right: clamp(45px, 4vw, 60px);           /* same gap as .footer-brand has before it */
  }
}

/* ===== JOIN OUR TEAM (home page) ===== */
.join-section { padding: 0 !important; margin-top: 0 !important; background: var(--color-paper, #fdfcfa); }
.join-section h2 { margin: 0; font-family: var(--font-display); color: var(--color-ink, #1d1d1b); line-height: 1.15; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); text-wrap: balance; }
.join-section h2::after { content: ""; display: block; width: clamp(42px, 5vw, 64px); height: 3px; margin-top: .55em; background: var(--color-orange); }
.join-section p { color: var(--color-graphite, #444); line-height: 1.7; font-size: clamp(.92rem, .86rem + .3vw, 1.08rem); }

.join-section { background: var(--color-paper, #fdfcfa); }
.join-section h2 { margin: 0; font-family: var(--font-display); color: var(--color-ink, #1d1d1b); line-height: 1.15; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); text-wrap: balance; }
.join-section h2::after { content: ""; display: block; width: clamp(42px, 5vw, 64px); height: 3px; margin-top: .55em; background: var(--color-orange); }
.join-section p { color: var(--color-graphite, #444); line-height: 1.7; font-size: clamp(.92rem, .86rem + .3vw, 1.08rem); }

/* body-wide tab bar (one tab, or two halves when there are open positions) */
.jt-tabs { display: flex; width: 100%; } /*scroll-margin-top: 90px;*/
.jt-tab { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0; padding: clamp(10px, 2vw, 15px); border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: var(--color-stone); color: #fff; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: clamp(.78rem, .72rem + .3vw, 1rem); transition: background .3s, border-color .3s; }
.jt-tab + .jt-tab { border-left: 1px solid rgba(255, 255, 255, .16); }
/*.jt-tab:hover { background: #2b2b28; }*/
.jt-tab:active { background: color-mix(in srgb, var(--color-stone) 65%, #000); }
.jt-tab.is-open { background: color-mix(in srgb, var(--color-stone) 72%, #000); border-bottom-color: color-mix(in srgb, var(--color-stone) 72%, #000); }
@media (hover: hover) {
  .jt-tab:hover { background: color-mix(in srgb, var(--color-stone) 78%, #000); }
}

.jt-tab i { transition: transform .3s; font-size: .8em; }
/*.jt-tab.is-open { background: var(--color-orange); border-bottom-color: var(--color-orange); }*/
.jt-tab.is-open i { transform: rotate(180deg); }
.jt-tab:focus-visible { outline: 2px solid var(--color-orange); outline-offset: -4px; }

.jt-panel { padding: clamp(32px, 5vw, 64px) 0; animation: jtIn .45s ease; }
.jt-panel[hidden], .jt-form[hidden], .jt-apply[hidden] { display: none !important; }
@keyframes jtIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.jt-intro { max-width: 760px; margin: 0 auto clamp(26px, 3.6vw, 46px); text-align: center; }
.jt-intro h2::after { margin-inline: auto; }
.jt-intro p { margin: clamp(12px, 1.6vw, 20px) 0 0; }
.jt-panel .jt-form { max-width: 640px; margin-inline: auto; }
.jt-positions { max-width: 900px; margin-inline: auto; }
.jt-positions-title { margin: 0 0 clamp(8px, 1vw, 14px); color: var(--color-stone, #6b6b6b); font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: clamp(.68rem, .64rem + .2vw, .8rem); }
.jt-pos-body .jt-form { max-width: none; margin-top: clamp(16px, 2vw, 24px); box-shadow: none; }
.jt-form-for { margin: -.4em 0 0; font-size: .9rem; }
.jt-form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.jt-form-cancel { background: none; border: 0; padding: 0; color: var(--color-stone, #6b6b6b); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; }

/* positions */
.jt-positions { display: flex; flex-direction: column; gap: clamp(8px, 1vw, 12px); }
.jt-pos { background: #fff; border: 1px solid var(--color-sand-deep, rgba(0, 0, 0, .14)); border-left: 4px solid var(--color-orange); box-shadow: 0 6px 18px rgba(0, 0, 0, .04); }
.jt-pos summary { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; padding: clamp(14px, 1.6vw, 20px) clamp(14px, 2vw, 24px); cursor: pointer; list-style: none; }
.jt-pos summary::-webkit-details-marker { display: none; }
.jt-pos-name { flex: 1 1 200px; font-family: var(--font-display); font-weight: 700; color: var(--color-ink, #1d1d1b); font-size: clamp(1rem, .92rem + .4vw, 1.25rem); }
.jt-pos-deadline { color: var(--color-orange); font-weight: 600; letter-spacing: .04em; font-size: clamp(.7rem, .66rem + .2vw, .82rem); }
.jt-pos summary i { color: var(--color-stone, #6b6b6b); transition: transform .3s; }
.jt-pos[open] summary i { transform: rotate(180deg); }
.jt-pos-body { padding: 0 clamp(14px, 2vw, 24px) clamp(16px, 2vw, 24px); border-top: 1px solid var(--color-sand-deep, rgba(0, 0, 0, .1)); }
.jt-pos-body > p { margin: 1em 0 0; }
.jt-pos-body h4 { margin: 1.2em 0 .5em; color: var(--color-stone, #6b6b6b); font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: clamp(.62rem, .58rem + .2vw, .74rem); }
.jt-pos-body ul {padding: 0; list-style: none; } /* margin: 0 0 1.2em; */
.jt-pos-body li { position: relative; padding: .25em 0 .25em 1.2em; color: var(--color-graphite, #444); font-size: clamp(.86rem, .82rem + .22vw, .98rem); }
.jt-pos-body li::before { content: ""; position: absolute; left: 0; top: .85em; width: .42em; height: .42em; background: var(--color-orange); transform: rotate(45deg); }

/* application form */
.jt-form { background: #fff; border: 1px solid var(--color-sand-deep, rgba(0, 0, 0, .14)); border-top: 4px solid var(--color-orange); box-shadow: 0 12px 30px rgba(0, 0, 0, .06); padding: clamp(18px, 2.4vw, 32px); display: flex; flex-direction: column; gap: clamp(10px, 1.2vw, 14px); }
.jt-form h3 { margin: 0 0 .2em; font-family: var(--font-display); color: var(--color-ink, #1d1d1b); font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); }
.jt-form label { display: flex; flex-direction: column; gap: 5px; color: var(--color-graphite, #444); font-size: clamp(.78rem, .74rem + .2vw, .9rem); font-weight: 600; }
.jt-form input[type="text"], .jt-form input[type="email"], .jt-form input[type="tel"], .jt-form select, .jt-form textarea {
  width: 100%; box-sizing: border-box; padding: .7em .8em; border: 1px solid var(--color-sand-deep, rgba(0, 0, 0, .2)); border-radius: 3px; background: #fff; color: var(--color-ink, #1d1d1b); font: inherit; font-weight: 400; }
.jt-form input:focus, .jt-form select:focus, .jt-form textarea:focus { outline: 2px solid var(--color-orange); outline-offset: 1px; }
.jt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.jt-file { display: flex; flex-direction: column; gap: 6px; }
.jt-file-btn { flex-direction: row !important; align-items: center; justify-content: center; gap: 10px !important; padding: .75em 1em; border: 1.5px dashed var(--color-orange); border-radius: 3px; color: var(--color-orange) !important; cursor: pointer; transition: background .25s; }
.jt-file-btn:hover { background: rgba(242, 103, 15, .06); }
.jt-file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.jt-file-note { color: var(--color-stone, #6b6b6b); font-size: .78rem; margin-top: -4px; }
.jt-file-list { margin: 0; padding: 0; list-style: none; font-size: .84rem; color: var(--color-ink, #1d1d1b); }
.jt-file-list li { padding: 2px 0; overflow-wrap: anywhere; }
.jt-form .btn { align-self: flex-start; }
.jt-apply { margin-top: .4em; }
.jt-form .btn[disabled] { opacity: .6; pointer-events: none; }
.jt-status { margin: 0; min-height: 1.2em; font-size: .9rem; }
.jt-status.is-ok { color: #2e7d32; } .jt-status.is-error { color: #c62828; }

/* hero: "WE ARE HIRING" link */
.hero-msg--hiring a { color: inherit; text-decoration: none; cursor: pointer; border-bottom: 1px solid transparent; transition: border-color .3s; }
.hero-msg--hiring a:hover, .hero-msg--hiring a:focus-visible { border-bottom-color: currentColor; }
.hero-msgs { pointer-events: auto; }
.hero-msg:not(.active) a { pointer-events: none; }

.hero-msgs { position: relative; z-index: 6; pointer-events: auto; }
.hero-msg.active a { pointer-events: auto !important; cursor: pointer; display: inline-block; }

.hero-msg { pointer-events: none; }
.hero-msg.active { pointer-events: auto; }

.jt-intro { margin-inline: 0; text-align: left; }
.jt-intro h2::after { margin-inline: 0; }
.jt-panel .jt-form { margin-inline: 0; }
.jt-positions { margin-inline: 0; }


/* ===== JOIN OUR TEAM — application form + open positions: everything scales smoothly with the screen width =====
   Paste at the very END of join-section.css (it refines the rules above, nothing else needs to change). */
.join-section{
  --jt-gap:    clamp(8px, .5vw + 6px, 16px);            /* space between form rows */
  --jt-pad:    clamp(14px, 1.6vw + 8px, 34px);          /* inner padding of cards / form */
  --jt-txt:    clamp(.85rem, .78rem + .3vw, 1.05rem);   /* body text */
  --jt-small:  clamp(.72rem, .68rem + .2vw, .86rem);    /* notes, labels, deadlines */
  --jt-radius: clamp(2px, .3vw, 4px);
}

/* ---------- open positions ---------- */
.jt-positions{ gap: clamp(8px, .7vw + 4px, 14px); }
.jt-positions-title{ font-size: clamp(.64rem, .58rem + .25vw, .84rem); margin-bottom: clamp(6px, .8vw, 14px); letter-spacing: clamp(.1em, .08em + .1vw, .16em); }
.jt-pos{ border-left-width: clamp(3px, .35vw, 5px); }
.jt-pos summary{ padding: clamp(11px, 1vw + 6px, 22px) clamp(12px, 1.4vw + 6px, 26px); gap: clamp(4px, .5vw, 8px) clamp(10px, 1.2vw, 18px); }
.jt-pos-name{ font-size: clamp(.95rem, .85rem + .5vw, 1.3rem); flex-basis: clamp(140px, 22vw, 240px); }
.jt-pos-deadline{ font-size: var(--jt-small); }
.jt-pos summary i{ font-size: clamp(.7rem, .65rem + .2vw, .9rem); }
.jt-pos-body{ padding: 0 clamp(12px, 1.4vw + 6px, 26px) clamp(14px, 1.4vw + 6px, 26px); }
.jt-pos-body p{ font-size: var(--jt-txt); line-height: 1.65; }
.jt-pos-body > p, .jt-pos-body > div{ margin-top: clamp(.7em, .5vw + .5em, 1.1em); }
.jt-pos-body h4{ font-size: clamp(.6rem, .56rem + .22vw, .78rem); margin: clamp(1em, .8vw + .6em, 1.4em) 0 clamp(.35em, .3vw + .2em, .6em); }
.jt-pos-body li{ font-size: var(--jt-txt); padding: clamp(.18em, .15vw + .12em, .3em) 0 clamp(.18em, .15vw + .12em, .3em) clamp(1em, .8vw + .6em, 1.3em); line-height: 1.5; }
.jt-pos-body li::before{ top: clamp(.7em, .5vw + .5em, .95em); width: clamp(.34em, .3vw + .25em, .46em); height: clamp(.34em, .3vw + .25em, .46em); }

/* ---------- buttons ---------- */
.jt-apply, .jt-form .btn{
  padding: clamp(.65em, .4vw + .5em, .95em) clamp(1.1em, 1vw + .7em, 1.9em);
  font-size: clamp(.72rem, .66rem + .3vw, .95rem);
  gap: clamp(.5em, .4vw + .3em, .8em);
}
.jt-apply{ margin-top: clamp(.5em, .6vw + .3em, 1em); max-width: 100%; white-space: normal; }
.jt-form-cancel{ font-size: var(--jt-small); }

/* ---------- application form (general one and the one inside each position) ---------- */
.jt-form{ padding: var(--jt-pad); gap: var(--jt-gap); border-top-width: clamp(3px, .35vw, 5px); }
.jt-pos-body .jt-form{ margin-top: clamp(14px, 1.6vw + 6px, 28px); }
.jt-form h3{ font-size: clamp(1rem, .9rem + .55vw, 1.5rem); }
.jt-form-for{ font-size: var(--jt-small); margin-top: calc(-.4 * var(--jt-gap)); }
.jt-form label{ font-size: var(--jt-small); gap: clamp(3px, .3vw + 2px, 7px); }
.jt-form input[type="text"], .jt-form input[type="email"], .jt-form input[type="tel"], .jt-form select, .jt-form textarea{
  font-size: max(16px, var(--jt-txt));                    /* never below 16px: phones don't zoom the page when you tap a field */
  padding: clamp(.55em, .35vw + .4em, .8em) clamp(.65em, .5vw + .5em, .95em);
  border-radius: var(--jt-radius);
}
.jt-form textarea{ min-height: clamp(96px, 9vw + 60px, 170px); resize: vertical; }
.jt-file{ gap: clamp(4px, .4vw + 2px, 8px); }
.jt-file-btn{
  padding: clamp(.6em, .4vw + .45em, .9em) clamp(.8em, .8vw + .5em, 1.3em);
  font-size: var(--jt-small); text-align: center; gap: clamp(7px, .6vw + 4px, 12px) !important;
  border-radius: var(--jt-radius);
}
.jt-file-list{ font-size: var(--jt-small); }
.jt-file-note{ font-size: clamp(.68rem, .64rem + .18vw, .82rem); line-height: 1.4; }
.jt-form-actions{ gap: clamp(10px, 1vw + 4px, 20px); }
.jt-status{ font-size: var(--jt-small); }

/* very narrow phones: buttons use the full width so nothing is cramped or cut off */
@media (max-width: 420px){
  .jt-form .btn, .jt-apply{ width: 100%; justify-content: center; }
  .jt-form-actions{ flex-direction: column; align-items: stretch; }
  .jt-form-cancel{ align-self: center; }
}

.jt-pos-body { text-align: start; }
/*.jt-pos-desc p + p { margin-top: .8em; }*/
.jt-pos-body li:dir(rtl) { padding: .25em 1.2em .25em 0; }
.jt-pos-body li:dir(rtl)::before { left: auto; right: 0; }

/* ===== HOMEPAGE LOGO INTRO — replaces BOTH old "LOGO INTRO" and "Homepage logo intro overlay" blocks ===== */
.logo-intro {
  position: fixed; inset: 0; background: #fff; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 1.8s ease-out;
}
.logo-intro.li-fade-out { background-color: rgba(255, 255, 255, 0); pointer-events: none; }
.logo-intro-inner { display: flex; flex-direction: column; align-items: center; }

/* ---- logo-top (unchanged behaviour) ---- */
.li-top { width: min(56vw, 380px); opacity: 0; }
@keyframes liPulseInShift {
  0%   { opacity: 0; transform: scale(0.3) translateY(0); }
  40%  { opacity: 1; transform: scale(1.10) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(-80px); }      /* must match shiftAmount in the JS */
}
.li-top.li-pulse-shift { animation: liPulseInShift 5s ease-out forwards; }
.li-top.li-traveling { transition: transform 2s cubic-bezier(0.65, 0, 0.35, 1), opacity 1.5s ease-out; }
.logo-intro.li-combined-visible .li-top { opacity: 0; transition: opacity .3s var(--ease); }

/* ---- logo-bottom, "hand-written": the English line is wiped in left → right, then the Arabic line right → left ---- */
.li-write { position: relative; width: min(80vw, 620px); margin-top: 24px; transition: opacity .9s ease; }
.li-write.li-out { opacity: 0; }
/* moves up together with logo-top: same timing as liPulseInShift (still for the first 40 %, then up 80px) */
@keyframes liShiftOnly { 0%, 40% { transform: translateY(0); } 100% { transform: translateY(-80px); } }   /* -80px must match shiftAmount in the JS */
.li-write.li-shift { animation: liShiftOnly 5s ease-out forwards; }
.li-write-line {
  display: block; width: 100%; opacity: 0;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 250% 100%; mask-size: 250% 100%;
}
.li-write-en {                                   /* top line (English) */
  clip-path: inset(0 0 60% 0);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 42%, transparent 48%);
          mask-image: linear-gradient(90deg, #000 0, #000 42%, transparent 48%);
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
}
.li-write-ar {                                   /* bottom line (Arabic) */
  position: absolute; inset: 0;
  clip-path: inset(39.5% 0 0 0);
  -webkit-mask-image: linear-gradient(270deg, #000 0, #000 42%, transparent 48%);
          mask-image: linear-gradient(270deg, #000 0, #000 42%, transparent 48%);
  -webkit-mask-position: 0 0; mask-position: 0 0;
}
.li-write.li-writing .li-write-line { opacity: 1; }
.li-write.li-writing .li-write-en { animation: liWriteEn 1.7s cubic-bezier(.45, .05, .35, 1) both; }
.li-write.li-writing .li-write-ar { animation: liWriteAr 1.9s cubic-bezier(.45, .05, .35, 1) 1.3s both; }   /* starts 1.3 s after the English line */
@keyframes liWriteEn {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to   { -webkit-mask-position: 0 0;    mask-position: 0 0; }
}
@keyframes liWriteAr {
  from { -webkit-mask-position: 0 0;    mask-position: 0 0; }
  to   { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
}

/* ---- logo-bottom at the end: slides out from inside logo-top ---- */
.li-emerge { position: fixed; overflow: hidden; pointer-events: none; z-index: 1; opacity: 0; }
.li-emerge img { position: absolute; top: 0; display: block; max-width: none; }
.li-emerge.li-emerging { opacity: 1; }
.li-emerge.li-emerging img { animation: liEmerge 1.6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes liEmerge {
  from { transform: translateX(var(--emerge-from)); opacity: 0; }
  20%  { opacity: 1; }
  to   { transform: none; opacity: 1; }
}
.logo-intro.li-combined-visible .li-emerge { opacity: 0; transition: opacity .3s var(--ease); }

/* ---- combined logo: instant position + crossfade over the real header logo ---- */
.li-combined { position: fixed; opacity: 0; transform: none; transition: opacity 0.3s var(--ease); z-index: 2; }
.logo-intro.li-combined-visible .li-combined { opacity: 1; }

/* ---- pretitle (unchanged) ---- */
.li-pretitle {
  position: fixed; display: flex; flex-direction: column; align-items: center; gap: 4px;
  opacity: 0; z-index: 2;
  transition: opacity 2s var(--ease), transform 2s var(--ease);
}
.li-pretitle.li-pretitle-visible { opacity: 1; transform: translateY(0); }
.li-pretitle.li-traveling { transition: transform 1.8s cubic-bezier(0.65, 0, 0.35, 1); }
.li-pretitle.li-pretitle-out { opacity: 0; transition: transform 1.8s cubic-bezier(0.65, 0, 0.35, 1), opacity .25s ease; }   /* hands over to the real hero pretitle */
.li-pretitle span {
  font-family: 'Poppins', var(--font-display); font-weight: 100; text-transform: uppercase;
  -webkit-text-stroke: 1px rgba(0,0,0,0.6); color: var(--color-paper); paint-order: stroke fill;
}
/* font-size / letter-spacing / margin of the two lines are NOT set here — they come from the .hero-pretitle-line1 / -line2
   rules (which now also list .li-pretitle-line1 / -line2), so the intro text always matches the real hero text exactly. */

/* ---- the real page underneath stays hidden until its moment ---- */
.hero-pretitle { transition: opacity 0.6s var(--ease); }
body.intro-pretitle-hidden .hero-pretitle { opacity: 0; }
body.intro-logo-hidden .home-header .logo-area img { opacity: 0; }

/* ---- the hero stays blank until the intro's pretitle lands; then slider images, project captions and messages fade in TOGETHER.
        (Gated here in CSS, so it works no matter what the hero JS or the page markup say.) ---- */
.hero-captions, .hero-msgs { transition: opacity 1.2s ease; }
body.intro-hero-hidden .hero-slider .slide,
body.intro-hero-hidden .hero-captions,
body.intro-hero-hidden .hero-msgs { opacity: 0 !important; }

/* Zoom only the visible slide (and the one fading out) */
.hero-slider .slide {
  animation: none;
  will-change: auto;
}
.hero-slider .slide.active,
.hero-slider .slide.leaving {
  animation: heroKenBurns 9s ease-out forwards;
}
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.12) translate(-1%, -1%); }
}

/* ---------- table view: cover image preview ---------- */
/* mouse: floating card that follows the cursor over the Project column */
.pa-peek{
  position: fixed; left: 0; top: 0; z-index: 9999;
  width: clamp(200px, 17vw, 300px); aspect-ratio: 4 / 3;
  overflow: hidden; border-radius: 3px; background: var(--color-ink);
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
  pointer-events: none; opacity: 0; transition: opacity .18s ease;
  will-change: transform, opacity;
}
.pa-peek.is-on{ opacity: 1; }
.pa-peek img{ display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); transition: transform .6s ease; }
.pa-peek.is-on img{ transform: scale(1); }
@media (hover: none), (pointer: coarse){ .pa-peek{ display: none; } }

/* touch: the cover opens under the project title, inside its own cell, with a clear "View project" button */
.pa-tr.is-peeking td{ background: rgba(242,103,15,.045); }
/*.pa-peek-in{ display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }*/
.pa-peek-in{ display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; width: 0; min-width: 100%; }
.pa-peek-in.pa-peek-open{ grid-template-rows: 1fr; }
.pa-peek-clip{ overflow: hidden; min-height: 0; }
.pa-peek-flex{ display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: min(100%, 260px); padding: 12px 0 4px; }
.pa-peek-pic{ display: block; width: 100%; }
.pa-peek-pic img{ display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.pa-table .c-name a.pa-peek-go, .pa-peek-go{
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: clamp(8px, 2vw, 11px) clamp(11px, 2.6vw, 16px);
  border-radius: 2px; /*border: 1px solid var(--color-ink); */
  font-family: var(--font-display); font-size: clamp(.6rem, .54rem + .3vw, .72rem); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: var(--color-ink); transition: background .2s, color .2s;
}
/*.pa-peek-go:active{ background: var(--color-ink); color: #fff; }*/
.pa-touch .pa-table .c-name a.pa-peek-go:active{ color: var(--color-orange); background: transparent; text-decoration: none; }

/*.pa-peek-holder{ position: relative; width: 100%; }*/
/*.pa-peek-x{*/
/*  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; padding: 0;*/
/*  display: grid; place-items: center; border: 0; border-radius: 50%;*/
/*  background: rgba(0,0,0,.6); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;*/
/*}*/
/*.pa-peek-x:active{ background: var(--color-orange); }*/

/* touch: a chevron next to every project name that has a cover — down = tap to open, up = tap to close */
/*.pa-touch td.c-name[data-cover] a:not(.pa-peek-go)::after{*/
/*  content: ''; display: inline-block; width: .42em; height: .42em; margin-left: .6em;*/
/*  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;*/
/*  transform: translateY(-.18em) rotate(45deg); transition: transform .3s ease; opacity: .75;*/
/*}*/
/*.pa-touch .pa-tr.is-peeking td.c-name a:not(.pa-peek-go)::after{ transform: translateY(.1em) rotate(225deg); }*/

.pa-touch .pa-table .c-name a.pa-peek-go.is-going{ color: var(--color-orange); background: transparent; text-decoration: none; }

@media (prefers-reduced-motion: reduce){
  .pa-peek, .pa-peek img, .pa-peek-in{ transition: none; }
}

/* touch: no sticky hover look on the table (it only made sense for a mouse) */
/*.pa-touch .pa-table .c-name a:hover{ color: var(--color-ink); text-decoration: none; }*/
.pa-touch .pa-table .c-name a:hover{ color: var(--color-ink); text-decoration: none; }
.pa-touch .pa-tr.is-peeking td.c-name a:not(.pa-peek-go){ color: var(--color-orange); text-decoration: underline; text-underline-offset: 3px; }
.pa-touch .pa-tr:not(.is-peeking):hover td,
.pa-touch .pa-tr:not(.is-peeking):hover td:first-child{ background: #fff; }

.pa-arr { display: none; }
.pa-touch .pa-arr { display: inline; }

.pa-touch td.c-name[data-cover] .pa-arr::after,
.pa-touch .pa-tr.is-peeking td.c-name .pa-arr::after {
  content: '\00a0\00a0\00a0';
  background-repeat: no-repeat; background-position: right center; background-size: .6em .6em;
}
/* ▾ closed */
.pa-touch td.c-name[data-cover] .pa-arr::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 3.5 5 7l3.5-3.5' fill='none' stroke='%23444' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* ▴ open (orange) */
.pa-touch .pa-tr.is-peeking td.c-name .pa-arr::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 6.5 5 3l3.5 3.5' fill='none' stroke='%23f2670f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- mixed content: paragraphs, links and videos ---------- */

/* project pages (About / News / Awards): one tidy column, in the order the admin chose */
.pp-blocks{ display: flex; flex-direction: column; gap: clamp(.7rem, 1.4vw, 1rem); margin-top: 1.2em; }
.pp-blocks > *{ margin: 0; }
/*.pp-blk-link a,*/
/*.pp-blk-links a{*/
/*  display: inline-flex; align-items: center; gap: .5em;*/
/*  color: var(--color-orange); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; line-height: 1.4;*/
/*}*/
/*.pp-blk-link a i, .pp-blk-links a i{ font-size: .8em; flex: 0 0 auto; transition: transform .3s var(--ease); }*/
/*@media (hover: hover){*/
/*  .pp-blk-link a:hover, .pp-blk-links a:hover{ text-decoration: underline; text-underline-offset: 3px; }*/
/*  .pp-blk-link a:hover i, .pp-blk-links a:hover i{ transform: translateX(4px); }*/
/*}*/

.pp-blk-link a,
.pp-blk-links a{
  display: inline; color: var(--color-orange); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; line-height: 1.4;
}
.pp-blk-link a i, .pp-blk-links a i{
  display: inline; font-size: .8em; margin-inline-start: .5em; position: relative; left: 0; transition: left .3s var(--ease);
}
[dir="rtl"] .pp-blk-link a i, [dir="rtl"] .pp-blk-links a i{ left: auto; right: 0; transition-property: right; }
@media (hover: hover){
  .pp-blk-link a:hover, .pp-blk-links a:hover{ text-decoration: underline; text-underline-offset: 3px; }
  .pp-blk-link a:hover i, .pp-blk-links a:hover i{ left: 4px; }
  [dir="rtl"] .pp-blk-link a:hover i, [dir="rtl"] .pp-blk-links a:hover i{ left: auto; right: 4px; }
}
.pp-blk-link a i, .pp-blk-links a i{
  display: inline-block; font-size: .8em; margin-inline-start: .25em; position: relative; left: 0; transition: left .3s var(--ease);
}
.pp-blk-video{ margin: 0; }
.pp-blk-video video{ display: block; width: 100%; height: auto; max-height: min(70vh, 520px); background: #000; border-radius: 3px; }
.pp-blk-video figcaption{ margin-top: .5em; font-size: .85em; line-height: 1.4; color: var(--color-graphite); }

/* News and Awards overview pages: links as one small list, videos as one media group */
.pp-blk-links{ list-style: none; margin: .9em 0 0; padding: 0; display: flex; flex-direction: column; gap: .45em; }
.pp-blk-videos{ display: flex; flex-direction: column; gap: .8em; margin: 0 0 1em; }
.aw-videos{ margin: .6em 0 1em; }
.aw-videos video{ max-height: 220px; }
.aw-links{ margin: 0 0 .8em; }
.nw-links{ margin: .2em 0 .9em; }

/* ---------- paragraph text: bold / italic / underline and line breaks ---------- */
.pp-rich p, .pp-blk-text p{ margin: 0 0 .7em; }
.pp-rich p:last-child, .pp-blk-text p:last-child{ margin-bottom: 0; }
.pp-about .pp-rich{ margin: 0 0 1.1em; }
.pp-about .pp-rich p{ margin: 0 0 1.1em; }
.pp-about .pp-rich p:last-child{ margin-bottom: 0; }
.aw-text p{ margin: 0 0 .6em; }
.aw-text p:last-child{ margin-bottom: 0; }

/* ---------- home page About + Join / Open positions text: space between paragraphs ---------- */
.jt-intro p + p, .jt-pos-body p + p, .split-text p + p{ margin-top: .8em; }

/* ---------- Arabic / English: each paragraph starts from its own language's side (the admin can still pick a side in the editor) ---------- */
.pp-about p[dir="auto"], .pp-rich p[dir="auto"], .pp-blk-text p[dir="auto"], .jt-intro p[dir="auto"], .jt-pos-body p[dir="auto"], .split-text p[dir="auto"]{ text-align: start; }

/* ===== LANDSCAPE + WIDE SCREENS (paste at the very END of your main CSS) ===== */

/* ===== Hero in short landscape screens: the messages shrink a little so they fit between the pretitle and the button ===== */
@media (orientation: landscape) and (max-height: 700px) {
  .hero-content .hero-msgs .hero-msg { font-size: clamp(1rem, 5.2vh, 1.9rem); line-height: 1.25; }
  .hero-content .hero-msgs .hero-msg::before,
  .hero-content .hero-msgs .hero-msg::after { margin: .4em auto; }
}
/* very short screens (landscape phones): the button sits lower, giving the pretitle and messages more room */
@media (orientation: landscape) and (max-height: 450px) {
  .hero-slider .hero-cta { bottom: clamp(56px, 14vh, 110px); }
  .hero-slider .hero-scroll-cue { bottom: clamp(12px, 3vh, 24px); }
}

/* ???? logo intro: sized by the screen HEIGHT when the screen is wider than tall, so it always fits */
.li-top   { width: min(56vw, 23.75rem); }          /* was min(56vw, 380px) — now scales with the text size above */
.li-write { width: min(80vw, 38.75rem); }          /* was min(80vw, 620px) */

.li-top   { width: min(48vw, 323px); }    /* was min(56vw, 380px) */
.li-write { width: min(68vw, 527px); }    /* was min(80vw, 620px) */
@keyframes liPulseInShift {
  0%   { opacity: 0; transform: scale(0.3) translateY(0); }
  40%  { opacity: 1; transform: scale(1.10) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(var(--li-shift, -80px)); }
}
@keyframes liShiftOnly { 0%, 40% { transform: translateY(0); } 100% { transform: translateY(var(--li-shift, -80px)); } }
@media (orientation: landscape) {
  .logo-intro { --li-shift: -7vh; }                 /* how far the logo moves up while the text is written */
  .li-top   { width: min(56vw, 23.75rem, 40vh); }
  .li-write { width: min(80vw, 38.75rem, 65vh); margin-top: 1.6vh; }
  .hero-pretitle-line1, .li-pretitle-line1 { font-size: clamp(1rem, min(5vw, 6.5vh), 2.4rem); }
  .hero-pretitle-line2, .li-pretitle-line2 { font-size: clamp(.8rem, min(2.5vw, 4.2vh), 2.2rem); }
  .hero-pretitle { margin-bottom: clamp(24px, 7vh, 80px); }
}

/* ===== WIDE SCREENS (1440px and up) — same layout as 1440, scaled proportionally =====
   Root font-size grows with the screen (16px at 1440 wide), and every px value of the
   theme is restated in rem, so ALL spacing, widths, images and text scale together. */
@media (min-width: 1440px) {

/* --- enquiry modal: remaining spacing --- */
.enquiry-modal{padding:1.25rem;}
.enquiry-modal-close{top:1.125rem;right:1.125rem;}
.enquiry-modal h3{margin-bottom:.25rem;}
.enquiry-modal-to{margin-bottom:1.25rem;}
.enquiry-modal label{margin-bottom:.875rem;}
.enquiry-modal input,.enquiry-modal textarea{margin-top:.375rem;}
.enquiry-toggle-cc{margin-bottom:.875rem;}
.enquiry-cc-row{gap:.75rem;margin-bottom:.875rem;}
.enquiry-status{margin-top:.75rem;}

/* --- "Read More" buttons (disclaimer and the text blocks) --- */
.para-expand-btn{gap:.5rem;margin-top:.75rem;}
.cyprus-expand-btn{gap:.5rem;margin-top:1rem;}
.enquiry-modal{align-items:center;}
.enquiry-modal-box{margin-top:0 !important;}

:root { --rem: max(16px, min(1.1111vw, 2.2222vh)); }
html { font-size: var(--rem); }
:root{--radius-sm:0.1875rem; --radius-md:0.5rem; --radius-lg:1.125rem; --container:77.5rem; --header-h:6rem;}
html{scroll-padding-top:calc(var(--header-h) + 1.875rem);}
body{font-size:1rem;}
.eyebrow{gap:0.5rem; margin-bottom:1rem;}
.eyebrow::before,
.eyebrow::after{width:0.4375rem; height:0.4375rem;}
.container{padding:0 2rem;}
section{padding:3.125rem 0; margin-top:1.25rem;}
.btn{gap:0.75rem; padding:1rem 2.125rem;}
.btn:hover{box-shadow:0 0.875rem 1.875rem rgba(var(--color-orange-rgb), 0.32);}
.btn:hover .arrow,
.btn:hover i.fa-arrow-right{transform:translateX(0.25rem);}
.btn.btn-dark:hover{box-shadow:0 0.875rem 1.875rem rgba(0,0,0,0.35);}
.btn.btn-compact{padding:0.75rem 1.625rem; gap:0.5rem;}
.cta-link{gap:0.625rem; padding-bottom:0.25rem;}
.approach-bubble-inner{margin:1.375rem 1.25rem 1.875rem 0.375rem; padding:1.5rem 1.875rem 1.5rem 2rem; border-left:0.25rem solid var(--color-orange); box-shadow:0 0.625rem 1.5rem rgba(28,28,28,0.16),
    0 2px 0.375rem rgba(28,28,28,0.08); max-height:11.25rem;}
.approach-bubble-inner::-webkit-scrollbar{width:0.3125rem;}
.approach-bubble-inner::-webkit-scrollbar-thumb{border-radius:0.625rem;}
.approach-bubble-inner::before{border-width:0 1.375rem 1.375rem 0;}
.approach-bubble-inner::after{top:0.3125rem; left:0.625rem; width:0.75rem; height:0.75rem; box-shadow:0 2px 0.25rem rgba(28,28,28,0.3);}
header{padding:0 2.5rem;}
.logo-area{margin-left:calc(-1 * clamp(0.5rem, 2vw, 2.5rem));}
.main-nav ul{gap:2.75rem;}
.main-nav a{padding-bottom:0.25rem;}
header.solid,
header.scrolled,
header.overlay-header{backdrop-filter:blur(0.875rem) saturate(140%); -webkit-backdrop-filter:blur(0.875rem) saturate(140%); box-shadow:0 0.25rem 1.5rem rgba(28,28,28,0.08);}
.menu-trigger.active span:nth-child(1){transform:translateY(0.4375rem) rotate(45deg);}
.menu-trigger.active span:nth-child(3){transform:translateY(-0.4375rem) rotate(-45deg);}
header.scrolled .header-wrap{height:4.75rem;}
.logo-area img,
header.scrolled .logo-area img{height:3.75rem; max-height:3.75rem;}
.hero-content{padding:0 1.25rem;}
.hero-content h1{max-width:57.5rem; margin:0 auto 1.25rem; transform:translateY(1.5rem);}
.hero-content p{max-width:35rem; margin:0 auto 2.125rem; transform:translateY(1.5rem);}
.hero-content .eyebrow,
.hero-content .btn{transform:translateY(1.5rem);}
.hero-content .hero-msgs .hero-msg::before,
.hero-content .hero-msgs .hero-msg::after{width:2.5rem;}
.hero-scroll-cue{bottom:5rem;}
.stats-strip{max-width:67.5rem; margin:-4.875rem auto 0; padding:0 1.25rem;}
.stats-strip .stats-inner{box-shadow:0 1.875rem 3.75rem rgba(0,0,0,0.28);}
.stats-strip .stat{padding:2.125rem 1.25rem;}
.stats-strip .stat strong{margin-bottom:0.375rem;}
.split-section{scroll-margin-top:6.25rem;}
.split-layout{gap:5rem;}
.split-media::before{top:1.375rem; left:1.375rem;}
.split-layout.reverse .split-media::before{right:1.375rem;}
.split-media img{box-shadow:0 1.5rem 3.4375rem rgba(28,28,28,0.22);}
.split-text{max-width:32.5rem;}
.split-text h2{margin-bottom:1.25rem;}
.meta-row{gap:0.625rem 1.875rem; margin:1.625rem 0 1.875rem; padding-top:1.375rem;}
.contact-lines p{margin-bottom:0.875rem;}
.contact-lines i{width:2.125rem; height:2.125rem; margin-right:0.875rem;}
.project-banner{height:40rem;}
.project-banner-content{padding:3.75rem; gap:1.875rem;}
.project-banner-content p{max-width:30rem;}
.project-banner-tag{padding:0.375rem 0.875rem; border-radius:0.1875rem; margin-bottom:1.5rem;}
.breadcrumb{padding:1.125rem 2.5rem;}
.breadcrumb span{margin:0 0.5rem;}
.page-banner{background-size:2.75rem 2.75rem, 2.75rem 2.75rem, 100% 100%; margin-top:3.125rem;}
.page-banner::after{top:2.125rem; right:2.125rem; width:4rem; height:4rem;}
.page-banner::before{bottom:1.875rem; left:1.875rem; width:4rem; height:4rem;}
.banner-watermark{font-size:16.25rem;}
.page-banner .eyebrow{transform:translateY(1rem);}
.page-banner h1{max-width:43.75rem; transform:translateX(-2.875rem);}
.page-banner p{margin-top:0.5rem; transform:translateY(1rem);}
.banner-underline{height:0.1875rem; margin:0.875rem 0 1.25rem; transform:translateX(2.875rem);}
.banner-count{margin-top:1rem; transform:translateY(1rem); gap:0.5rem;}
.gallery-grid{grid-template-rows:repeat(3, 12.5rem); grid-auto-rows:12.5rem; gap:1rem;}
.gallery-grid a{transform:translateY(1.75rem) scale(0.94);}
.gallery-split{gap:1.25rem;}
.gallery-thumbs-col{width:8.75rem;}
.gallery-thumbs-track{gap:0.75rem;}
.gallery-thumb img{height:5.625rem;}
.gallery-thumbs-arrow{width:2rem; height:2rem; box-shadow:0 0.25rem 0.625rem rgba(0,0,0,0.12);}
.gallery-thumbs-arrow.up{top:0.625rem;}
.gallery-thumbs-arrow.down{bottom:0.625rem;}
.gallery-thumbs-scroll,
.gallery-main-display{height:32.5rem;}
.lightbox-close{top:2.125rem; right:2.125rem;}
.lightbox-nav{width:3.125rem; height:3.125rem;}
.lightbox-dots{bottom:1.5rem; gap:0.625rem;}
.lightbox-dots .dot{width:0.75rem; height:0.75rem;}
.confirm-modal-box{padding:2rem; max-width:23.75rem; transform:translateY(1rem) scale(0.96);}
.confirm-modal-box p{margin-bottom:1.375rem;}
.confirm-modal-actions{gap:0.625rem;}
.confirm-modal-cancel{padding:0.375rem;}
.confirm-modal-actions .btn{padding:0.875rem 1.75rem;}
.floor-toggle{gap:0.625rem; margin-bottom:1.625rem;}
.unit-tooltip{box-shadow:0 1rem 2.5rem rgba(0,0,0,0.22); padding:1.125rem 1.25rem; min-width:13.75rem; transform:translateY(0.5rem);}
.split-text h5,
.unit-tooltip .unit-price{margin-bottom:0.625rem;}
.unit-specs span{gap:0.3125rem;}
.unit-tooltip .tap-hint{margin-top:0.625rem;}
.floorplan-thumbs{gap:0.625rem; margin-bottom:0.625rem;}
.floor-toggle button,
.floorplan-thumb{padding:0.625rem 1.375rem;}
.floorplan-thumbs-row{gap:0.75rem; margin-bottom:0.3125rem;}
.floorplan-thumbs-arrow{width:2.75rem; height:2.75rem;}
.floorplan-fullview-btn{top:1rem; right:1rem; width:3.25rem; height:3.25rem; box-shadow:0 0.375rem 1rem rgba(0,0,0,0.18);}
.floorplan-wrap,
.floorplan-slider{box-shadow:0 1.25rem 3.125rem rgba(28,28,28,0.12);}
.floorplan-slide{transform:translateX(3.75rem) scale(0.97);}
.floorplan-controls{gap:1.25rem; margin-top:0.75rem;}
.floorplan-arrow.prev{left:1.25rem;}
.floorplan-arrow.next{right:1.25rem;}
.floorplan-dots-row{margin-top:0.875rem;}
.floorplan-dots{bottom:clamp(0.375rem, 1vw, 1.125rem); gap:clamp(0.3125rem, 1.5vw, 0.5rem);}
.floorplan-dots .dot{width:clamp(0.375rem, 2vw, 0.5625rem); height:clamp(0.375rem, 2vw, 0.5625rem);}
.floorplan-download-row{margin-top:2rem; gap:1rem;}
.unit-specs,
.floorplan-slider-row{gap:1rem;}
.floorplan-arrow{width:3.25rem; height:3.25rem; box-shadow:0 0.375rem 1.25rem rgba(0,0,0,0.15);}
.footer-dot{margin:0 0.375rem;}
.confirm-modal,
.disclaimer-modal{padding:1.25rem;}
.disclaimer-modal-box{padding:2.5rem; max-width:40rem; transform:translateY(1rem) scale(0.96);}
.disclaimer-modal-close{top:1.125rem; right:1.125rem;}
.enquiry-terms-note{margin-top:0.875rem; margin-left:0.3125rem;}
.policies-tabs{gap:0.75rem; margin-bottom:2.5rem;}
.policies-tab{padding:0.75rem 1.625rem;}
.policies-panel{padding:1.25rem 1.875rem; box-shadow:0 1.25rem 3.125rem rgba(28,28,28,0.08); max-width:51.25rem;}
.policies-panel h2{margin:2rem 0 1rem; padding-left:1rem; border-left:0.1875rem solid var(--color-orange);}
.policies-panel h3{margin:1.5rem 0 0.625rem;}
.disclaimer-modal-box h3,
.policies-panel p{margin-bottom:1.125rem;}
.policies-panel ul,
.policies-panel ol{margin:0 0 1.25rem 0.25rem; padding-left:1.25rem;}
.policies-panel li{margin-bottom:0.625rem; padding-left:0.375rem;}
.policies-panel hr{margin:2rem 0;}
.policies-panel blockquote{border-left:0.1875rem solid var(--color-sand-deep); padding-left:1.25rem; margin:1.25rem 0;}
.main-nav .sub-toggle{padding:0.375rem 0.25rem 0.375rem 0.5rem;}
.main-nav ul.sub-menu{padding:0.5rem 0; min-width:13.75rem; box-shadow:0 0.625rem 1.875rem rgba(0,0,0,.15); transform:translateY(0.5rem);}
.main-nav ul.sub-menu ul.sub-menu{max-width:15.625rem;}
.main-nav ul.sub-menu > li{padding:0 1.125rem;}
.main-nav .sub-menu a{margin:0.625rem 0; padding:0 0 0.25rem;}
.about-page-buttons{gap:0.625rem; margin-top:1.5rem;}
.about-links{gap:0 1.75rem; margin-top:0.5rem;}
.about-link{gap:0.875rem; padding:1.125rem 0.25rem;}
.about-link-icon{width:2.375rem; height:2.375rem;}
@media (hover: hover){.about-link:hover{padding-left:0.625rem;}}
@media (hover: hover){.about-link:hover .about-link-arrow{transform:translateX(0.375rem);}}
.split-media.map-embed iframe{min-height:26.25rem;}
.contact-lines .contact-address{padding-top:0.3125rem;}
.hero-captions{right:1.5rem; bottom:clamp(1.75rem, 9vh, 4.5rem); left:clamp(1.25rem, 3vw, 3rem);}
.hero-caption{max-width:min(90vw, 48.75rem); transform:translateY(0.5rem); gap:0.25rem;}
.hero-caption .hero-caption-name,
.hero-caption .hero-caption-client,
.hero-caption .hero-caption-year{text-shadow:0 2px 0.25rem rgba(0,0,0,.9), 0 0.25rem 0.75rem rgba(0,0,0,.85),
               0 0.5rem 1.5rem rgba(0,0,0,.7), 0 0 2.5rem rgba(0,0,0,.5);}
.hero-caption a.hero-caption-name:focus-visible{outline-offset:0.25rem;}
/*.hero-slider > .hero-pretitle{top:calc(6.25rem + clamp(1.25rem, 5vh, 11.25rem)); padding:0 1rem;}*/
.hero-slider > .hero-pretitle{top:calc(var(--header-h, 6.25rem) + clamp(1.25rem, 5vh, 11.25rem)); padding:0 1rem;}
.hero-slider{--cta-bottom:clamp(7.5rem, 10vh, 11.25rem); --cue-gap:2.5rem;}
.footer-brand .footer-logo{min-width:14.375rem;}
.pp-page{padding-top:clamp(6.75rem, 14vh, 8.75rem); padding-bottom:2.5rem;}
.pp-crumbs{gap:0.25rem clamp(0.3125rem, 1.2vw, 0.625rem); margin-bottom:clamp(1.125rem, 3vw, 2.125rem);}
.pp-head{gap:clamp(1.25rem, 4vw, 3.75rem); padding-top:1.625rem;}
.pp-head::before{width:4rem; height:0.25rem;}
.pp-status{border-radius:62.4375rem; margin-bottom:clamp(0.875rem, 2vw, 1.375rem);}
.pp-status i::after{inset:-0.25rem;}
.pp-seal{--s:clamp(3.5rem, 8.6vw, 6.25rem); box-shadow:0 0.875rem 2.125rem rgba(0,0,0,.10), inset 0 0 0 1px rgba(0,0,0,.05); margin-bottom:0.25rem;}
.pp-seal-text{font-size:max(0.375rem, calc(var(--s) * .105));}
@media (hover: hover){.pp-seal:hover{transform:translateY(-0.25rem) rotate(-3deg); box-shadow:0 1.25rem 2.75rem rgba(var(--color-orange-rgb, 232,119,34), .28);}}
.pp-facts{margin-top:clamp(1.375rem, 2.4vw, 2.5rem);}
.pp-fact{gap:clamp(0.5rem, 1.4vw, 0.875rem); padding:clamp(0.875rem, 2vw, 1.375rem) clamp(0.875rem, 2.2vw, 1.75rem);}
.pp-fact-icon{width:clamp(1.625rem, 3.4vw, 2.625rem); height:clamp(1.625rem, 3.4vw, 2.625rem);}
.pp-cred-btn{border-radius:62.4375rem;}
.pp-menu{top:4.75rem; margin-top:clamp(0.875rem, 2vw, 1.375rem); gap:clamp(0.625rem, 2.4vw, 2rem);}
.pp-menu-label{padding-right:clamp(0.625rem, 2.4vw, 2rem);}
.pp-menu ul{gap:clamp(1rem, 4vw, 3.25rem);}
.pp-menu a{padding:clamp(0.6875rem, 1.5vw, 1rem) 0;}
.pp-menu a::after{height:0.1875rem;}
.pp-layout{margin-top:clamp(1.25rem, 3vw, 2.125rem);}
.pp-gallery{margin-bottom:clamp(0.625rem, 2vw, 1.5rem);}
.pp-stage{border-radius:var(--radius-md, 0.625rem);}
.pp-stage:focus-visible{box-shadow:0 0 0 0.1875rem rgba(var(--color-orange-rgb, 232,119,34), .5);}
.pp-arrow{width:clamp(1.75rem, 4vw, 3rem); height:clamp(1.75rem, 4vw, 3rem); backdrop-filter:blur(0.375rem); box-shadow:0 0.375rem 1.25rem rgba(0,0,0,.2);}
.pp-arrow--prev{left:clamp(0.5rem, 1.4vw, 1rem);}
.pp-arrow--next{right:clamp(0.5rem, 1.4vw, 1rem);}
.pp-counter{left:clamp(0.5rem, 1.4vw, 1rem); bottom:clamp(0.5rem, 1.2vw, 0.875rem); border-radius:62.4375rem; backdrop-filter:blur(0.375rem);}
.pp-expand{right:clamp(0.5rem, 1.4vw, 1rem); bottom:clamp(0.5rem, 1.2vw, 0.875rem); width:clamp(1.5rem, 3.2vw, 2.25rem); height:clamp(1.5rem, 3.2vw, 2.25rem); backdrop-filter:blur(0.375rem);}
.pp-thumbs-row{gap:clamp(0.375rem, 1vw, 0.625rem); margin-top:clamp(0.5rem, 1.2vw, 0.75rem);}
.pp-thumbs-track{gap:0.625rem; padding:0.5rem 0.25rem 0.375rem;}
.pp-thumb{width:clamp(4.25rem, 11vw, 7.75rem); border-radius:var(--radius-sm, 0.375rem);}
.pp-thumb.active{box-shadow:0 0 0 0.1875rem var(--color-orange);}
.pp-thumbs-arrow{width:clamp(1.5rem, 3.2vw, 2.375rem); height:clamp(1.5rem, 3.2vw, 2.375rem);}
.pp-main .project-section{padding:clamp(2.875rem, 7vw, 5.625rem) 0 0; scroll-margin-top:calc(8rem + 2rem - 1.1875rem - clamp(2.875rem, 7vw, 5.625rem));}
.pp-about h3{margin:0 0 0.875rem;}
.pp-section .section-head,
.pp-split{margin-bottom:clamp(1.625rem, 4vw, 2.75rem);}
.pp-split:last-child{margin-bottom:2.5rem;}
.pp-split.has-image{gap:clamp(1.375rem, 4vw, 3.25rem);}
.pp-split:not(.has-image) .section-note{max-width:47.5rem;}
.pp-split-media{border-radius:var(--radius-md, 0.625rem); box-shadow:0 1.125rem 2.75rem rgba(0,0,0,.14);}
.pp-note-body h3{margin:2px 0 0.5rem;}
.project-banner-content h2,
.pp-note-by{margin-bottom:0.5rem;}
.pp-note-link{gap:0.5rem; margin-top:0.25rem;}
.pp-lb-bar{padding:clamp(0.5rem, 1.2vw, 0.75rem) clamp(0.625rem, 1.6vw, 1.125rem);}
.pp-lb-tools{gap:clamp(0.25rem, .8vw, 0.5rem);}
.pp-lb-tools button{width:clamp(2rem, 4vw, 2.75rem); height:clamp(2rem, 4vw, 2.75rem);}
.pp-lb-nav{width:clamp(2.125rem, 4.6vw, 3.25rem); height:clamp(2.125rem, 4.6vw, 3.25rem); box-shadow:0 0.375rem 1.375rem rgba(0,0,0,.22);}
.pp-lb-nav.prev{left:clamp(0.625rem, 2vw, 1.875rem);}
.pp-lb-nav.next{right:clamp(0.625rem, 2vw, 1.875rem);}
.pp-lb-slide{padding:clamp(3rem, 5.4vw, 3.75rem) 0 0;}
.pp-modal{padding:1.25rem; backdrop-filter:blur(0.25rem);}
.pp-modal-box{width:min(32.5rem, 100%); border-radius:var(--radius-md, 0.625rem); padding:clamp(1.625rem, 4vw, 2.5rem); box-shadow:0 1.875rem 5rem rgba(0,0,0,.35);}
.pp-modal-box h3{margin:0 0 1.125rem;}
.pp-modal-box h3::after{width:2.75rem; height:0.1875rem; margin-top:0.625rem;}
.pp-cred-list li{gap:1.125rem; padding:0.75rem 0;}
.unit-tooltip h4,
.pp-menu .pp-cred-btn{margin-bottom:0.25rem;}
.pp-team-group + .pp-team-group{margin-top:1.25rem;}
.pp-team-title{margin:0 0 0.25rem; padding-bottom:0.375rem;}
.pp-team-assoc{margin:0 0 1.125rem; padding:0 2.75rem 1rem 0;}
.pp-share-box{width:min(30rem, 100%);}
.pp-byline{margin-top:clamp(0.375rem, 1vw, 0.875rem);}
.pp-by-block{margin-top:clamp(0.3125rem, 1.3vw, 0.9375rem);}
.pp-fact-label,
.pp-by-label{margin-bottom:0.1875rem;}
.pp-page .section-head .eyebrow{margin-bottom:clamp(0.5625rem, 1.2vw, 1rem);}
.pp-page .section-line{height:clamp(2px, .3vw, 0.1875rem); margin-top:clamp(0.5625rem, 1.2vw, 1rem); margin-bottom:clamp(0.875rem, 1.8vw, 1.375rem);}
.pp-page .floorplan-fullview-btn{width:clamp(1.625rem, 3.4vw, 2.5rem) !important; height:clamp(1.625rem, 3.4vw, 2.5rem) !important;}
.pp-page .floorplan-dots .dot{width:clamp(0.375rem, .9vw, 0.5625rem); height:clamp(0.375rem, .9vw, 0.5625rem);}
.lightbox .lightbox-nav{width:clamp(2rem, 4.6vw, 3.25rem) !important; height:clamp(2rem, 4.6vw, 3.25rem) !important;}
.pp-team-list li{padding:0.1875rem 0; gap:clamp(0.625rem, 2vw, 1.125rem);}
.pp-modal-close{top:0.625rem; right:0.875rem; width:clamp(2rem, 4vw, 2.5rem); height:clamp(2rem, 4vw, 2.5rem);}
.pp-menu-track{height:0.25rem; border-radius:0.25rem;}
.pp-share-preview{margin:0 0 1.25rem; border-radius:0.5rem; gap:clamp(0.5rem, 1.6vw, 0.875rem); padding:clamp(0.375rem, 1.2vw, 0.625rem); margin-bottom:clamp(0.875rem, 2.4vw, 1.25rem);}
.pp-share-preview img{border-radius:0.3125rem; width:clamp(3.5rem, 10vw, 5.25rem); height:clamp(2.5rem, 7.2vw, 3.75rem);}
.pp-share-grid{gap:clamp(0.625rem, 2vw, 0.875rem) clamp(0.25rem, 1vw, 0.5rem);}
.pp-share-item{gap:clamp(0.3125rem, 1vw, 0.5rem);}
.pp-share-item i{width:clamp(2.25rem, 5.6vw, 3.125rem); height:clamp(2.25rem, 5.6vw, 3.125rem);}
.pp-share-native{gap:0.625rem; border-radius:62.4375rem; margin-top:clamp(1rem, 3vw, 1.375rem);}
.pa-chip{border-radius:1.875rem;}
.pa-clear{padding:0.25rem 0; text-underline-offset:0.1875rem;}
.pa-sub.active{text-underline-offset:0.3125rem;}
.pa-empty p{margin:0 0 0.625rem;}
.pa-tcat + .pa-tcat{margin-top:0.25rem;}
.page-banner.pa-banner{padding:calc(var(--header-h, 4.75rem) + clamp(1.625rem, 4vw, 3.375rem)) 0 clamp(2rem, 5vw, 3.875rem);}
.terms-banner .banner-underline,
.pa-banner .banner-underline{margin:clamp(0.5625rem, 1.2vw, 0.875rem) 0 clamp(0.8125rem, 1.6vw, 1.25rem) -1px;}
.pa-banner .banner-count{margin-top:clamp(0.625rem, 1.3vw, 1rem); gap:clamp(0.4375rem, .9vw, 0.625rem);}
.breadcrumb.pa-crumb{padding-top:clamp(0.625rem, 1.5vw, 1.125rem); padding-bottom:clamp(0.625rem, 1.5vw, 1.125rem);}
.breadcrumb.pa-crumb span{margin:0 clamp(0.25rem, .7vw, 0.5rem);}
.pa-bar{margin-bottom:clamp(1rem, 2.4vw, 1.875rem);}
.pa-bar-row{gap:clamp(0.4375rem, 1vw, 0.75rem);}
.pa-search svg{width:clamp(0.875rem, 1.5vw, 1.125rem); height:clamp(0.875rem, 1.5vw, 1.125rem); left:clamp(0.625rem, 1.2vw, 0.875rem);}
.pa-search input{border-radius:0.1875rem; height:clamp(2.25rem, 3.6vw, 2.75rem); padding:0 clamp(0.625rem, 1.2vw, 0.875rem) 0 clamp(2rem, 3.4vw, 2.625rem);}
.pa-select{border-radius:0.1875rem; background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.6875rem center / 0.9375rem; height:clamp(2.25rem, 3.6vw, 2.75rem); padding:0 clamp(1.625rem, 2.8vw, 2.125rem) 0 clamp(0.625rem, 1.2vw, 0.875rem); background-size:clamp(0.6875rem, 1.2vw, 0.9375rem); background-position:right clamp(0.5rem, .9vw, 0.6875rem) center;}
.pa-bar-meta{margin-top:clamp(0.625rem, 1.2vw, 0.875rem); gap:clamp(0.5rem, 1.1vw, 0.875rem);}
.pa-meta-left{gap:0.5rem clamp(0.5rem, 1.1vw, 0.875rem);}
.pa-meta-right{gap:0.5rem clamp(0.625rem, 1.4vw, 1.125rem);}
.pa-chips{gap:clamp(0.3125rem, .7vw, 0.5rem);}
.pa-sort{gap:clamp(0.375rem, .8vw, 0.625rem);}
.pa-sort .pa-select{height:clamp(2rem, 3.2vw, 2.5rem);}
.pa-view{height:clamp(2rem, 3.1vw, 2.375rem); padding:0 clamp(0.5625rem, 1vw, 0.8125rem); gap:clamp(0.3125rem, .6vw, 0.4375rem);}
.pa-view svg{width:clamp(0.8125rem, 1.3vw, 1rem); height:clamp(0.8125rem, 1.3vw, 1rem);}
.pa-row{margin-bottom:clamp(0.5rem, 1vw, 0.75rem);}
.pa-row-label{padding-right:clamp(0.375rem, 1vw, 0.75rem);}
.pa-arrow svg{width:clamp(0.9375rem, 1.7vw, 1.25rem); height:clamp(0.9375rem, 1.7vw, 1.25rem);}
.pa-cat{padding:clamp(0.3125rem, .7vw, 0.5rem) clamp(0.3125rem, .7vw, 0.5rem) clamp(0.25rem, .5vw, 0.375rem);}
.pa-sub{min-height:clamp(2.125rem, 3.5vw, 2.75rem); padding:0.375rem clamp(0.5rem, 1vw, 0.75rem);}
.pa-grid{gap:clamp(1.125rem, 2.4vw, 1.875rem) clamp(0.625rem, 1.6vw, 1.25rem); margin-top:clamp(1.25rem, 3vw, 2.25rem);}
.pa-status{gap:clamp(0.25rem, .5vw, 0.375rem); min-height:clamp(0.875rem, 1.5vw, 1.25rem); margin-bottom:clamp(0.25rem, .6vw, 0.4375rem);}
.pa-status i{flex:0 0 0.5rem; flex-basis:clamp(0.375rem, .65vw, 0.5rem); width:clamp(0.375rem, .65vw, 0.5rem); height:clamp(0.375rem, .65vw, 0.5rem);}
.pa-title{margin-top:clamp(0.4375rem, .9vw, 0.6875rem);}
.pa-bow{filter:drop-shadow(0 2px 0.1875rem rgba(0,0,0,.35)); width:clamp(1.0625rem, 2vw, 1.625rem); top:clamp(0.3125rem, .7vw, 0.5rem); right:clamp(0.375rem, .8vw, 0.625rem);}
.pa-empty{border-radius:0.1875rem; margin-top:clamp(1.5rem, 4vw, 2.5rem); padding:clamp(1.875rem, 6vw, 3.75rem) clamp(0.875rem, 3vw, 1.25rem);}
.pa-table-wrap{--pa-sticky:4.75rem; margin-top:clamp(1.125rem, 2.4vw, 1.875rem);}
.pa-legend{margin:0 0 0.875rem; gap:0.375rem clamp(0.625rem, 1.4vw, 1rem);}
.pa-legend b{margin-right:0.25rem; width:clamp(1rem, 1.7vw, 1.25rem); height:clamp(1rem, 1.7vw, 1.25rem);}
.pa-table th{padding:clamp(0.5rem, 1vw, 0.75rem) clamp(0.5rem, 1.1vw, 0.875rem);}
.pa-table td{padding:clamp(0.5rem, 1.1vw, 0.875rem);}
.pa-table th:first-child,
.pa-table td:first-child{padding-left:0.25rem;}
.pa-table .c-year{width:clamp(2.75rem, 5.4vw, 4rem);}
.pa-scope-title{margin-bottom:clamp(0.3125rem, .7vw, 0.5rem);}
.pa-sq::after{border-radius:0.1875rem; font:500 0.75rem/1.2 var(--font-body, inherit); bottom:calc(100% + 0.5rem); font-size:clamp(.62rem, .56rem + .25vw, .75rem); padding:0.3125rem clamp(0.4375rem, .9vw, 0.625rem);}
.pa-ltr::after{border-radius:0.1875rem; font:500 0.75rem/1.2 var(--font-body, inherit); top:calc(100% + 0.5rem); font-size:clamp(.62rem, .56rem + .25vw, .75rem); padding:0.3125rem clamp(0.4375rem, .9vw, 0.625rem);}
.pa-search{min-width:12.5rem;}
.pa-bar-row > .pa-select{min-width:clamp(6rem, 9vw, 7.5rem);}
.pa-medal{width:clamp(0.625rem, 1.2vw, 0.875rem); margin-right:clamp(0.3125rem, .7vw, 0.5rem); margin:-0.1875rem 0 -0.1875rem clamp(0.3125rem, .7vw, 0.5rem);}
.pa-ltr,
.pa-sq{flex:0 0 1.625rem; width:clamp(0.6875rem, 1.15vw, 0.875rem); height:clamp(0.6875rem, 1.15vw, 0.875rem); flex-basis:clamp(0.6875rem, 1.15vw, 0.875rem);}
.pa-table .c-scope{width:clamp(5.25rem, 8.5vw, 6.5rem);}
.pa-sqs{gap:clamp(0.1875rem, .3vw, 0.25rem);}
.pa-map-wrap{margin-top:clamp(1.125rem, 2.4vw, 1.875rem);}
.pa-map{height:clamp(23.75rem, 68vh, 46.25rem); border-radius:0.1875rem;}
.pa-pin svg{width:clamp(1.375rem, 2.2vw, 1.75rem); filter:drop-shadow(0 2px 0.1875rem rgba(0,0,0,.35));}
.pp-menu ul::-webkit-scrollbar-track,
.pp-menu ul::-webkit-scrollbar-thumb,
.pp-menu-thumb,
.pa-map .leaflet-popup-content-wrapper{border-radius:0.25rem;}
.pa-map .leaflet-popup-content{width:clamp(11.25rem, 52vw, 14.375rem) !important;}
.pa-map .leaflet-container a.leaflet-popup-close-button{text-shadow:0 1px 0.1875rem rgba(0,0,0,.6); top:0.25rem; right:0.25rem;}
.pa-pop-body{padding:clamp(0.5rem, 1.2vw, 0.75rem) clamp(0.625rem, 1.4vw, 0.875rem) clamp(0.625rem, 1.4vw, 0.875rem);}
.pp-share-preview span,
.pa-client,
.pa-table .c-award span + span,
.pa-pop-body em{margin-top:0.1875rem;}
.pa-pop-link{margin-top:0.5rem;}
.pa-wrap{--pa-label:clamp(6.25rem, 11.5vw, 8.75rem); --pa-arrow:clamp(1.5rem, 3vw, 2.25rem); padding:clamp(1.125rem, 2.6vw, 2.125rem) 0 clamp(3.375rem, 7vw, 5.625rem); --pa-pad:clamp(0.3125rem, .7vw, 0.5rem); --pa-col:clamp(5.25rem, 10vw, 8rem);}
.pa-catbox{border-radius:clamp(0.5rem, 1vw, 0.75rem); --pa-bp:clamp(0.375rem, .8vw, 0.75rem); padding:var(--pa-bp) clamp(0.375rem, 1vw, 0.875rem); margin-bottom:clamp(0.875rem, 2vw, 1.5rem);}
.pa-cat-name{margin-top:clamp(0.25rem, .6vw, 0.4375rem);}
.pa-subs{clip-path:inset(0 -25rem 0 0);}
.pa-subs.is-open{padding-bottom:clamp(2px, .4vw, 0.375rem);}
.pa-subs .pa-sub{padding:0 clamp(0.25rem, .6vw, 0.5rem) 0 clamp(1.25rem, 2.2vw, 1.625rem);}
.pa-subs .pa-sub::before{left:clamp(0.4375rem, .9vw, 0.625rem);}
.pa-subs .pa-sub::after{left:clamp(0.4375rem, .9vw, 0.625rem); width:clamp(0.4375rem, .9vw, 0.625rem);}
.pc-initial{width:4rem; height:4rem;}
a.pc-card-in:hover .pc-logo{box-shadow:0 0.5rem 1.375rem rgba(0,0,0,.08); transform:translateY(-0.1875rem);}
.footer-bottom .footer-link,
.contact-lines a.contact-fb-link span,
.pa-table .c-name a:hover,
.pc-projects a:hover,
.pc-link:hover{text-underline-offset:0.1875rem;}
.clients-banner .container > p{padding-left:clamp(0.625rem, 14vw, 0.75rem);}
.clients-banner .banner-underline{margin-top:clamp(0.5625rem, 1.2vw, 0.875rem); margin-bottom:clamp(0.8125rem, 1.6vw, 1.25rem);}
.pc-grid{gap:clamp(1.125rem, 2.4vw, 1.875rem) clamp(0.625rem, 1.6vw, 1.375rem); margin-top:clamp(1.25rem, 2.6vw, 2.125rem);}
.pc-logo{border-radius:clamp(2px, .3vw, 0.1875rem);}
.pc-logo img{inset:clamp(0.625rem, 1.5vw, 1.25rem); width:calc(100% - 2 * clamp(0.625rem, 1.5vw, 1.25rem)); height:calc(100% - 2 * clamp(0.625rem, 1.5vw, 1.25rem));}
.pc-name{margin-top:clamp(0.4375rem, .9vw, 0.75rem);}
.pa-table .c-name,
.pa-table.pc-table .c-name{min-width:clamp(8.75rem, 19vw, 13.125rem);}
.pc-projects a + a,
.pc-projects a + span,
.pc-projects span + a,
.pc-projects span + span{margin-top:clamp(0.1875rem, .4vw, 0.25rem);}
#nw-page{--nw-pad:clamp(1rem, 2vw, 1.75rem);}
.nw-rule{border-top:0.25rem double var(--nw-ink);}
.nw-kicker{gap:0.25rem 0.75rem;}
.nw-load button{padding:clamp(0.6875rem, 1.2vw, 0.875rem) clamp(1.375rem, 3vw, 2.25rem);}
.nw-item{scroll-margin-top:calc(var(--header-h, 4.75rem) + 1rem);}
.nw-desc-in{gap:clamp(0.5rem, 1vw, 0.75rem);}
.aw-banner-art{right:clamp(1rem, 7vw, 7.5rem); width:clamp(3.75rem, 3.5vw, 6.25rem);}
.awards-banner .container > p{margin-left:0.625rem; max-width:min(62ch, calc(100% - clamp(5rem, 9.5vw, 8.5rem) - clamp(1rem, 7vw, 7.5rem) - 1.75rem));}
.aw-wrap{padding:clamp(1.125rem, 2.6vw, 2.125rem) 0 clamp(3.375rem, 7vw, 5.625rem);}
.aw-bar{margin-bottom:clamp(0.375rem, 1vw, 0.75rem);}
.aw-grid{gap:clamp(1.625rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.75rem); padding-top:1.125rem;}
.aw-plaque{padding:clamp(0.3125rem, .6vw, 0.5rem); box-shadow:0 0.625rem 1.625rem rgba(0, 0, 0, .05);}
@media (hover: hover){.aw-plaque:hover{transform:translateY(-0.25rem); box-shadow:0 1.125rem 2.375rem rgba(0, 0, 0, .1);}}
.aw-frame{padding:clamp(2.125rem, 3.6vw, 2.875rem) clamp(1rem, 2vw, 1.75rem) clamp(1rem, 2vw, 1.5rem);}
.aw-badge{top:calc(-1 * clamp(0.875rem, 1.5vw, 1.1875rem)); padding:0 0.5rem;}
.aw-medal{width:clamp(1.25rem, 2vw, 1.625rem);}
.aw-date{margin-bottom:clamp(0.625rem, 1.2vw, 0.875rem);}
.aw-logo{height:clamp(3.375rem, 6vw, 4.875rem); margin-bottom:clamp(0.75rem, 1.4vw, 1.125rem);}
.aw-foot{padding-top:clamp(0.875rem, 1.6vw, 1.25rem); gap:0.625rem;}
.aw-proj{padding-top:clamp(0.625rem, 1.2vw, 0.875rem);}
.pa-banner .eyebrow,
.clients-banner .eyebrow,
.news-banner .eyebrow,
.awards-banner .eyebrow,
.team-banner .eyebrow{margin-bottom:clamp(0.625rem, 1.3vw, 1rem);}
.news-banner .banner-title .banner-underline,
.awards-banner .banner-title .banner-underline,
.team-banner .banner-title .banner-underline{margin:clamp(0.5625rem, 1.2vw, 0.875rem) 0 clamp(0.8125rem, 1.6vw, 1.25rem);}
.tm-wrap{--tm-gap:clamp(0.875rem, 2vw, 1.75rem); padding:clamp(0.625rem, 2vw, 1.875rem) 0 clamp(1.875rem, 7vw, 3.125rem);}
.tm-tier:first-child{margin-top:clamp(0.625rem, 2vw, 1.5rem);}
.tm-tier-head{gap:clamp(0.75rem, 1.6vw, 1.375rem); margin-bottom:clamp(0.3125rem, 2.2vw, 0.625rem);}
.tm-rule::before{width:clamp(2.25rem, 5vw, 4rem); height:0.1875rem;}
.tm-partners{--pw:min(27.5rem, 46cqi);}
.tm-partner{border-top:0.25rem solid var(--color-orange); box-shadow:0 0.75rem 1.875rem rgba(0, 0, 0, .06);}
.tm-partner:hover{transform:translateY(-0.25rem); box-shadow:0 1.125rem 2.5rem rgba(0, 0, 0, .11);}
.tm-partner-body{padding:clamp(1rem, 2.2vw, 1.875rem);}
.cta-link:hover i,
.tm-partner:hover .tm-go i{transform:translateX(0.3125rem);}
.tm-senior-photo{width:clamp(6rem, 10vw, 8.75rem); margin:0 auto clamp(0.75rem, 1.4vw, 1.125rem); border:0.1875rem solid var(--color-orange); padding:0.25rem;}
.tm-quals li{gap:0.375rem 0.875rem;}
.tm-q-links a{border-radius:6.1875rem;}
.tm-list li{gap:0.375rem 1.25rem;}
.tm-profile{gap:clamp(1.25rem, 4vw, 3.5rem); margin-top:0.9375rem;}
.tm-profile-photo{border-top:0.25rem solid var(--color-orange); box-shadow:0 0.875rem 2.125rem rgba(0, 0, 0, .1);}
.tm-profile-main .tm-block + .tm-block{margin-top:clamp(1.25rem, 2.6vw, 2.125rem);}
.nw-load,
.tm-back{margin-top:clamp(1.5rem, 3vw, 2.5rem);}
.team-banner .container > p,
.team-banner--person .container > p.tm-ban-line2{margin-left:0.625rem;}
.team-banner--person .container > p.tm-ban-line3{margin:.35em 0.625rem 0;}
.tm-years{margin:clamp(0.75rem, 1.6vw, 1.125rem) 0 0;}
.tm-profile-main > .tm-years{margin:0 0 clamp(0.875rem, 2vw, 1.375rem);}
.tm-tier--spec{margin-top:clamp(1rem, 2.2vw, 1.75rem);}
.tm-tier,
.tm-tier--partners + .tm-tier--spec,
.tm-tier--senior + .tm-tier--spec{margin-top:clamp(2.125rem, 5vw, 4rem);}
.tm-tier--partners .tm-tier-head,
.tm-tier--senior .tm-tier-head{margin-bottom:clamp(1.875rem, 4vw, 3.75rem);}
.tm-senior{border-radius:1.25rem; box-shadow:0 0.5rem 1.375rem rgba(0, 0, 0, .05); padding:clamp(1.125rem, 2.2vw, 1.875rem) clamp(0.875rem, 1.8vw, 1.5rem); height:clamp(22.5rem, 30vw, 25.625rem);}
.tm-senior.is-open{min-height:clamp(22.5rem, 30vw, 25.625rem);}
.team-banner--person .tm-ban-row{gap:.2em clamp(0.625rem, 1.4vw, 1.125rem);}
.hero-captions .hero-caption{max-width:min(92vw, 45rem);}
.admin-bar.home .hero-slider{height:calc(var(--hero-h, 100svh) - 2rem) !important;}
.hero-content .hero-msgs .hero-msg{text-shadow:0 2px 0.875rem rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.35); filter:blur(0.25rem);}
@media (min-width: 480px){.footer-links{margin-right:clamp(2.8125rem, 4vw, 3.75rem);}}
.join-section h2::after{width:clamp(2.625rem, 5vw, 4rem); height:0.1875rem;}
.jt-tab{gap:0.75rem; padding:clamp(0.625rem, 2vw, 0.9375rem); border-bottom:0.1875rem solid transparent;}
.jt-tab:focus-visible{outline-offset:-0.25rem;}
.jt-panel{padding:clamp(2rem, 5vw, 4rem) 0;}
.pp-lead,
.jt-intro p{margin:clamp(0.75rem, 1.6vw, 1.25rem) 0 0;}
.jt-panel .jt-form{max-width:40rem;}
.jt-hp{left:-624.9375rem !important;}
.jt-file-note{margin-top:-0.25rem;}
.jt-intro{max-width:47.5rem; margin:0 auto clamp(1.625rem, 3.6vw, 2.875rem); margin-inline:0;}
.join-section{--jt-gap:clamp(0.5rem, .5vw + 0.375rem, 1rem); --jt-pad:clamp(0.875rem, 1.6vw + 0.5rem, 2.125rem); --jt-radius:clamp(2px, .3vw, 0.25rem);}
.jt-positions{max-width:56.25rem; gap:clamp(0.5rem, .7vw + 0.25rem, 0.875rem);}
.jt-positions-title{margin:0 0 clamp(0.5rem, 1vw, 0.875rem); margin-bottom:clamp(0.375rem, .8vw, 0.875rem);}
.jt-pos{border-left:0.25rem solid var(--color-orange); box-shadow:0 0.375rem 1.125rem rgba(0, 0, 0, .04); border-left-width:clamp(0.1875rem, .35vw, 0.3125rem);}
.jt-pos summary{padding:clamp(0.6875rem, 1vw + 0.375rem, 1.375rem) clamp(0.75rem, 1.4vw + 0.375rem, 1.625rem); gap:clamp(0.25rem, .5vw, 0.5rem) clamp(0.625rem, 1.2vw, 1.125rem);}
.jt-pos-name{flex:1 1 12.5rem; flex-basis:clamp(8.75rem, 22vw, 15rem);}
.jt-pos-body{padding:0 clamp(0.75rem, 1.4vw + 0.375rem, 1.625rem) clamp(0.875rem, 1.4vw + 0.375rem, 1.625rem);}
.jt-form{border-top:0.25rem solid var(--color-orange); box-shadow:0 0.75rem 1.875rem rgba(0, 0, 0, .06); border-top-width:clamp(0.1875rem, .35vw, 0.3125rem);}
.jt-pos-body .jt-form{margin-top:clamp(0.875rem, 1.6vw + 0.375rem, 1.75rem);}
.jt-form label{gap:clamp(0.1875rem, .3vw + 2px, 0.4375rem);}
.jt-form input[type="text"],
.jt-form input[type="email"],
.jt-form input[type="tel"],
.jt-form select{font-size:max(1rem, var(--jt-txt));}
.jt-form textarea{font-size:max(1rem, var(--jt-txt)); min-height:clamp(6rem, 9vw + 3.75rem, 10.625rem);}
.jt-file{gap:clamp(0.25rem, .4vw + 2px, 0.5rem);}
.jt-file-btn{gap:clamp(0.4375rem, .6vw + 0.25rem, 0.75rem) !important;}
.jt-form-actions{gap:clamp(0.625rem, 1vw + 0.25rem, 1.25rem);}
/*.li-top{width:min(56vw, 23.75rem);}*/
/*.li-write{width:min(80vw, 38.75rem); margin-top:1.5rem;}*/
.li-top{width:min(48vw, 20.1875rem);}
.li-write{width:min(68vw, 32.9375rem); margin-top:1.275rem;}
.li-pretitle{gap:0.25rem;}
.pa-peek{width:clamp(12.5rem, 17vw, 18.75rem); border-radius:0.1875rem; box-shadow:0 0.875rem 2.5rem rgba(0,0,0,.28);}
.pa-peek-flex{gap:0.625rem; width:min(100%, 16.25rem); padding:0.75rem 0 0.25rem;}
.pa-cat-img,
.pa-media,
.pa-views,
.pa-peek-pic img{border-radius:0.1875rem;}
.pa-table .c-name a.pa-peek-go,
.pa-peek-go{gap:0.5rem; padding:clamp(0.5rem, 2vw, 0.6875rem) clamp(0.6875rem, 2.6vw, 1rem);}
@media (hover: hover){.nw-from a:hover,
.nw-tmore:hover,
.aw-proj a:hover,
.pp-blk-link a:hover,
.pp-blk-links a:hover{text-underline-offset:0.1875rem;}}
@media (hover: hover){.pp-cred-btn:hover i,
.pp-note-link:hover i,
.pp-blk-link a:hover i,
.pp-blk-links a:hover i{transform:translateX(0.25rem);}}
.pp-blk-video video{max-height:min(70vh, 32.5rem); border-radius:0.1875rem;}
.aw-videos video{max-height:13.75rem;}/* --- rules from the "home-header ... enquiry / cyprus" block --- */
.home-header .header-wrap{height: var(--header-h);} 
.home-header .logo-area img{height:4.3125rem;max-height:5rem;}
.logo-area img{height:4.3125rem;max-height:5rem;}
.section-head{max-width:40rem;margin-bottom:3.125rem;}
.section-line{margin:1rem 0 1.375rem;}
.enquiry-modal-box{padding:2.5rem;max-width:30rem;}
.enquiry-modal input,.enquiry-modal textarea{padding:.625rem .75rem;}
.cyprus-section-nav{gap:1.5rem;margin-top:1.25rem;margin-left:.625rem;}
.cyprus-section-nav-link::before{width:.4375rem;height:.4375rem;margin-right:.625rem;}
.cyprus-links-list{gap:.625rem;}
.cyprus-links-list li{padding-left:1.25rem;}
.cyprus-links-list li::before{width:.5rem;height:.5rem;}
.cyprus-clamped-text::after{height:3rem;}
.para-clamp-text::after{height:2.5rem;}

/* --- logged-in admin bar: WordPress's bar stays 32px high, so don't scale this subtraction --- */
.admin-bar.home .hero-slider{height:calc(var(--hero-h, 100svh) - 32px) !important;}

/* --- cookie banner / preference centre: the plugin sizes its icons, "Show more", switches, spacing... in px,
       so the whole box is zoomed by the same factor as the page (rem / 16px) and its text sizes are given in px --- */
.cky-preference-center{zoom:1.3;box-sizing:border-box !important;max-height:50vh !important;}
.cky-consent-container,.cky-btn-revisit-wrapper{zoom:1.3;}
.cky-preference-center,.cky-consent-container,.cky-btn-revisit-wrapper{--radius-sm:3px;--radius-md:8px;--radius-lg:18px;}   /* ← the new line */
.cky-preference-title{font-size:17.6px !important;}
.cky-preference-content-wrapper,.cky-preference-content-wrapper p{font-size:13.6px !important;}
.cky-accordion-btn{font-size:14.72px !important;}
.cky-accordion-header-des,.cky-accordion-header-des p{font-size:12.8px !important;}
.cky-cookie-des-table div{font-size:12.48px !important;}
.cky-btn{font-size:13.12px !important;}
.cky-title{font-size:16px !important;}
.cky-notice-des,.cky-notice-des p{font-size:13.6px !important;}
@media (min-width:1920px){.cky-preference-center,.cky-consent-container,.cky-btn-revisit-wrapper{zoom:1.33;}.cky-preference-center{max-height:60vh !important;}}
@media (min-width:2560px){.cky-preference-center,.cky-consent-container,.cky-btn-revisit-wrapper{zoom:1.78;}.cky-preference-center{max-height:45vh !important;}}
@media (min-width:3840px){.cky-preference-center,.cky-consent-container,.cky-btn-revisit-wrapper{zoom:2.67;}.cky-preference-center{max-height:30vh !important;}}
@supports (zoom: calc(10px / 1px)){
  .cky-preference-center,.cky-consent-container,.cky-btn-revisit-wrapper{zoom:calc(var(--rem) / 16px) !important;}
  .cky-preference-center{max-height:calc(80vh * 16px / var(--rem)) !important;}
}
}

.cky-preference-center,
.cky-consent-bar,
.cky-audit-table { border-width: 1px !important; }
.cky-preference-header,
.cky-preference-body-wrapper,
.cky-footer-wrapper { background: transparent !important; }
.cky-preference-center { clip-path: inset(0 round var(--radius-lg)); }

.cky-preference-center {
  border: 0 !important;
  box-shadow: 0 0 0 1px var(--color-sand-deep) !important;
}

.cky-accordion:has(.cky-empty-cookies-text) { display: none; }

/*.pp-split-media { aspect-ratio: 4 / 3; }*/
/*.pp-split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }*/
/*.pp-page, .pp-page * { overflow-anchor: none; }*/

@media (max-width: 880px) {
  /* clear the real header: the banner already starts 50px down (margin-top), so only add the rest */
  .page-banner:not(.pa-banner) { padding-top: max(40px, calc(var(--header-h, 96px) - 50px + 20px)); }
  /* keep the top-right corner bracket fully below the header */
  .page-banner::after { top: calc(var(--header-h, 96px) - 50px + 14px); }
}

@media (max-width: 880px) {
  .main-nav {
    width: min(300px, 50vw);        /* was 260px — wider, but never more than 84% of the screen */
    box-sizing: border-box;
  }
  .main-nav ul.sub-menu {
    min-width: 0 !important;        /* was 175px — the cause of the sideways overflow */
    box-sizing: border-box;
  }
  .main-nav { justify-content: flex-start; }        /* was center: tall lists could not be scrolled to the top */
  .main-nav > ul { margin-block: auto; flex-shrink: 0; }   /* still centered when it fits; when it doesn't, it just scrolls */
  .main-nav li,
  .main-nav ul.sub-menu { flex-shrink: 0; }          /* nothing gets squashed when a sub-menu opens */
  
  .main-nav { padding-inline: 20px; }                              /* side padding: 20px */
  .main-nav ul.sub-menu { padding-left: 10px; }                    /* was 16px per level — the two levels took 32px */
  
  .main-nav ul.sub-menu ul.sub-menu {
    width: 100% !important;         /* was max-content — stay inside the menu */
    max-width: 100% !important;     /* was 250px */
  }
  .main-nav ul.sub-menu > li { min-width: 0; max-width: 100%; }
  .main-nav ul.sub-menu > li > a {
    flex: 0 1 auto !important;      /* allowed to shrink, so long titles wrap between words */
    min-width: 0 !important;
    white-space: normal !important;
    font-size: .76rem; letter-spacing: .04em; line-height: 1.35;
  }
  .main-nav .has-dropdown.open > ul.sub-menu { max-height: 3000px; }   /* the old 600px limit clipped long lists */
}
/*end of file here*/