@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

/* ─── VARIABLES ──────────────────────────── */

:root {
  --font-base:     'Source Sans 3', sans-serif;

  --clr-blue:      #1a3a5c;        /* Blue page background          */
  --clr-white:     #ffffff;        /* White page background         */
  --clr-body-text: #333333;        /* White page body text          */
  --clr-cream:     #F4EDE6;        /* Navbar, headings, icons       */
  --clr-accent:    #E8C170;        /* Active / hover highlight      */
  --clr-menu-bg:   #2C4F57;        /* Sliding menu panel background */
  --clr-scrim:     rgba(0, 0, 0, 0.55); /* Dark overlay behind panel*/

  /* Cream at different opacities */
  --clr-cream-10:  rgba(244, 237, 230, 0.1);  /* Divider borders    */
  --clr-cream-30:  rgba(244, 237, 230, 0.3);  /* Footer text        */
  --clr-cream-50:  rgba(244, 237, 230, 0.5);  /* Sub-link text      */

  /* How far the active heading text slides right */
  --menu-indent: 2rem;
}

/* ─── RESET ──────────────────────────────── */

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

/* ─── BASE ───────────────────────────────── */

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  font-family: var(--font-base);
  background: none;
}

/* ─── PRELOAD TRANSITION SUPPRESSION ────── */

body.js-preload .parallax-slogan {
  transition: none !important;
}

/* ─── PAGE LOADER ────────────────────────── */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0e1a26;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transition: opacity 0.8s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.page-loader__logo {
  width: clamp(180px, 32vw, 300px);
  color: var(--clr-cream);
}

.page-loader__bar {
  width: 160px;
  height: 1px;
  background: rgba(244, 237, 230, 0.15);
  position: relative;
  overflow: hidden;
}

.page-loader__bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: var(--clr-cream);
  animation: loader-scan 1.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes loader-scan {
  0%   { left: -50%; }
  100% { left: 110%; }
}

/* ─── PARALLAX SECTIONS ──────────────────── */

.parallax-section {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.parallax-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

/* ─── PARALLAX SLOGANS ───────────────────── */

.parallax-slogan {
  position: relative;
  z-index: 1;
  max-width: 82%;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.33, 1, 0.68, 1),
              transform 1s cubic-bezier(0.33, 1, 0.68, 1);
}

.parallax-slogan.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.parallax-slogan__text {
  font-size: clamp(2.2rem, 5.5vw, 6rem);
  font-weight: 800;
  color: var(--clr-cream);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.parallax-slogan__body {
  margin-top: 1.25rem;
  font-size: clamp(0.8rem, 1vw, 1rem);
  font-weight: 400;
  color: rgba(244, 237, 230, 0.8);
  line-height: 1.75;
  letter-spacing: 0.01em;
}

.parallax-slogan__divider {
  border: none;
  border-top: 1px solid rgba(244, 237, 230, 0.25);
  margin: 2rem 0;
}

.parallax-slogan__partner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

.parallax-slogan__partner-logo {
  flex-shrink: 0;
  width: clamp(80px, 10vw, 140px);
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.parallax-slogan__partner-logo--lg {
  width: clamp(140px, 18vw, 260px);
}

.parallax-slogan__partner-text {
  flex: 1;
}

.parallax-slogan__logos-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  margin-top: 2rem;
}

/* Alternate left / right */
.parallax-section:nth-of-type(odd)  { justify-content: flex-start; }
.parallax-section:nth-of-type(even) { justify-content: flex-end;   }

.parallax-section:nth-of-type(odd)  .parallax-slogan { text-align: left;  padding: 0 4rem 0 7rem; }
.parallax-section:nth-of-type(even) .parallax-slogan { text-align: right; padding: 0 7rem 0 4rem; }

/* Slide-in direction */
.parallax-section:nth-of-type(odd)  .parallax-slogan:not(.is-visible) { transform: translateX(35vw);  }
.parallax-section:nth-of-type(even) .parallax-slogan:not(.is-visible) { transform: translateX(-35vw); }

/* Slide-out direction */
.parallax-section:nth-of-type(odd)  .parallax-slogan.is-past { transform: translateX(-35vw); }
.parallax-section:nth-of-type(even) .parallax-slogan.is-past { transform: translateX(35vw);  }

/* ─── CONTACT SECTION (index.html) ──────── */

.contact-section {
  width: 100%;
  height: 100vh;
  background-color: var(--clr-white);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-cta {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  text-decoration: none;
  color: var(--clr-blue);
  padding: 8px 12px;
}

.contact-cta__arrow {
  width: clamp(3rem, 6vw, 6.5rem);
  height: clamp(3rem, 6vw, 6.5rem);
  flex-shrink: 0;
  position: relative;
}

.contact-cta__arrow svg {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.3s ease;
}

.contact-cta__arrow-bar {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 90%;
  height: 11%;
  background-color: currentColor;
}

.contact-cta:hover .contact-cta__arrow svg {
  transform: translateX(10px);
}

/* ── Text roll-over ── */

.contact-cta__label {
  position: relative;
  overflow: hidden;
  display: block;
}

.contact-cta__text {
  font-size: clamp(3.5rem, 9vw, 11rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
  white-space: nowrap;
  transition: transform 0.4s ease-in-out;
}

.contact-cta__text--mask {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(calc(100% + 8px));
}

.contact-cta:hover .contact-cta__text:not(.contact-cta__text--mask) {
  transform: translateY(-100%);
}

.contact-cta:hover .contact-cta__text--mask {
  transform: translateY(0);
}

.contact-footer {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: clamp(0.6rem, 0.8vw, 0.75rem);
  color: rgba(26, 58, 92, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.contact-social {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.25rem;
}

.contact-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(26, 58, 92, 0.45);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-social__link svg {
  width: 18px;
  height: 18px;
}

.contact-social__link:hover {
  color: var(--clr-blue);
}

.contact-footer__location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
}

.made-by {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: clamp(0.55rem, 0.7vw, 0.7rem);
  color: rgba(26, 58, 92, 0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.made-by__logo {
  height: clamp(10px, 1.2vw, 16px);
  width: auto;
  opacity: 0.35;
}

/* ─── NAVBAR ─────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 3rem;
  /* Smooth colour + z-index transitions.
     z-index 0s 0.95s: restoring z-index is delayed by the full drawer
     close duration so it never shows above the drawer while sliding shut. */
  transition: background 0.4s ease, box-shadow 0.4s ease,
              z-index 0s linear 0.95s;
}

.nav-logo {
  color: var(--clr-cream);
  display: flex;
  align-items: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: color 0.4s ease;
}

.nav-logo svg {
  height: clamp(4rem, 7vw, 8rem);
  width: auto;
}

/* ─── NAV — DARK STATE (white section) ───── */

/* Applied when page scrolls into a white section (index gallery, about) */
body.nav-dark .navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.07);
}

body.nav-dark .nav-logo {
  color: var(--clr-menu-bg);
}

body.nav-dark .menu-btn:not(.is-open) .menu-btn__text {
  color: var(--clr-menu-bg);
}

body.nav-dark .menu-btn:not(.is-open) .menu-btn__text::after {
  background: var(--clr-menu-bg);
}

body.nav-dark .menu-btn:not(.is-open) .menu-btn__icon {
  color: var(--clr-menu-bg);
}

/* ─── NAV — TEAL STATE (index.html legacy) ── */

.navbar.nav-teal .nav-logo,
.navbar.nav-teal .menu-btn__text,
.navbar.nav-teal .menu-btn__icon {
  color: #2C4F57;
}

.navbar.nav-teal .menu-btn__text::after {
  background: #2C4F57;
}

/* ─── NAV — CONTACT PAGE TEAL STATE ──────── */

body.nav-ct-teal .navbar {
  background: rgba(44, 79, 87, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(244, 237, 230, 0.1);
}

/* ─── NAV — MENU OPEN STATE ──────────────── */

/* Drop navbar below overlay, remove backdrop-filter to avoid
   compositing layer conflicts. z-index changes immediately (0s delay). */
body.menu-open .navbar {
  z-index: 198;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.4s ease, box-shadow 0.4s ease,
              z-index 0s linear 0s;
}

/* ─── OVERLAY CLOSE BUTTON ───────────────── */

.menu-overlay-close {
  position: fixed;
  top: 3rem;
  right: 3rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--clr-cream);
  z-index: 10000;
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

body.menu-open .menu-overlay-close {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.4s ease 0.75s, visibility 0s linear 0.75s;
}

/* Force bars into X shape */
.menu-overlay-close .bar:nth-child(1) { transform: translateY(6.5px)  rotate(45deg);  }
.menu-overlay-close .bar:nth-child(2) { opacity: 0; }
.menu-overlay-close .bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.menu-overlay-close .menu-btn__icon      { transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1); }
.menu-overlay-close:hover .menu-btn__icon { transform: rotate(180deg); }

/* ─── HAMBURGER BUTTON ───────────────────── */

.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.4rem;
  position: relative;
  z-index: 201;
  margin-left: auto;
}

.menu-btn__text {
  font-family: var(--font-base);
  font-size: clamp(0.8rem, 1.2vw, 1.3rem);
  font-weight: 700;
  color: var(--clr-cream);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.4s ease;
}

/* Sliding underline */
.menu-btn__text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--clr-cream);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.menu-btn:hover .menu-btn__text::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-btn__icon {
  width: 26px;
  height: 14.5px;
  flex-shrink: 0;
  color: var(--clr-cream);
  transition: color 0.4s ease, transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

/* X spins 90° when menu opens */
.menu-btn.is-open .menu-btn__icon {
  transform: rotate(90deg);
}

/* Spin a further 90° on hover */
.menu-btn.is-open:hover .menu-btn__icon {
  transform: rotate(180deg);
}

.bar {
  transform-origin: center;
  transform-box: fill-box;
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1),
              opacity 0.3s ease;
}

/* Hover — bars 1 and 3 shorten toward center (only when closed) */
.menu-btn:not(.is-open):hover .bar:nth-child(1) { transform: scaleX(0.55); }
.menu-btn:not(.is-open):hover .bar:nth-child(3) { transform: scaleX(0.55); }

/* Bars collapse into X — top/bottom cross, middle fades */
.menu-btn.is-open .bar:nth-child(1) { transform: translateY(6.5px)  rotate(45deg);  }
.menu-btn.is-open .bar:nth-child(2) { opacity: 0; }
.menu-btn.is-open .bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── MENU OVERLAY ───────────────────────── */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 199;
  pointer-events: none;
}

.menu-overlay.is-open {
  pointer-events: all;
}

/* Dark scrim behind panel */
.menu-side-bg {
  position: absolute;
  inset: 0;
  background: var(--clr-scrim);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.menu-overlay.is-open .menu-side-bg {
  opacity: 1;
}

/* Sliding dark panel */
.menu-side-bar {
  position: absolute;
  top: 0;
  right: 0;
  width: fit-content;
  min-width: 28vw;
  height: 100%;
  background-color: var(--clr-menu-bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 7rem 3.5rem 3rem 3rem;
  transform: translateX(100%);
  transition: transform 0.75s cubic-bezier(0.76, 0, 0.24, 1);
  overflow-y: auto;
  overflow-x: hidden;
}

.menu-overlay.is-open .menu-side-bar {
  transform: translateX(0);
  transition-delay: 0s;
}

/* Delay panel close so items begin exiting first */
.menu-overlay:not(.is-open) .menu-side-bar {
  transition-delay: 0.2s;
}

/* ─── CLOSE BUTTON ───────────────────────── */

.close-btn-wrap {
  position: absolute;
  top: 1.75rem;
  right: 3rem;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-icon {
  position: relative;
  width: 22px;
  height: 22px;
}

.close-icon span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--clr-cream);
  border-radius: 1px;
}

.close-icon span:nth-child(1) { transform: rotate(45deg); }
.close-icon span:nth-child(2) { transform: rotate(-45deg); }

/* ─── NAV LINKS ──────────────────────────── */

.side-nav {
  display: flex;
  flex-direction: column;
}

.link-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.35s cubic-bezier(0.33, 1, 0.68, 1),
              transform 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Sequential entrance — 0.08s gap between each item */
.menu-overlay.is-open .link-item:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.75s; }
.menu-overlay.is-open .link-item:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.83s; }
.menu-overlay.is-open .link-item:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.91s; }
.menu-overlay.is-open .link-item:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.99s; }
.menu-overlay.is-open .link-item:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 1.07s; }
.menu-overlay.is-open .link-item:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 1.15s; }
.menu-overlay.is-open .link-item:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 1.23s; }

/* Close — reverse stagger */
.menu-overlay:not(.is-open) .link-item:nth-child(7) { transition-delay: 0s;    }
.menu-overlay:not(.is-open) .link-item:nth-child(6) { transition-delay: 0.08s; }
.menu-overlay:not(.is-open) .link-item:nth-child(5) { transition-delay: 0.16s; }
.menu-overlay:not(.is-open) .link-item:nth-child(4) { transition-delay: 0.24s; }
.menu-overlay:not(.is-open) .link-item:nth-child(3) { transition-delay: 0.32s; }
.menu-overlay:not(.is-open) .link-item:nth-child(2) { transition-delay: 0.40s; }
.menu-overlay:not(.is-open) .link-item:nth-child(1) { transition-delay: 0.48s; }

/* Faded state when another item is active */
.link-item.faded .menu-link-heading-text {
  opacity: 0.2;
}

/* Heading row */
.menu-link-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  padding: 0.4rem 0;
  cursor: pointer;
  user-select: none;
}

.menu-link-heading-text {
  font-size: clamp(1.5rem, 2.4vw, 3.5rem);
  color: var(--clr-cream);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.3s ease,
              opacity 0.35s ease,
              transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Heading slides right when active */
.link-item.active .menu-link-heading-text {
  transform: translateX(var(--menu-indent));
  color: var(--clr-accent);
}

/* Colour change on active or hover */
.link-item.active .menu-link-heading-text,
.link-item .menu-link-heading:hover .menu-link-heading-text {
  color: var(--clr-accent);
}

/* Slide right on hover */
.link-item:not(.active) .menu-link-heading:hover .menu-link-heading-text {
  transform: translateX(var(--menu-indent));
}

/* No-sub links — direct click */
.link-item[data-link] .menu-link-heading {
  cursor: pointer;
}

/* Sub-links accordion */
.link-item-links {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}

.sub-links-inner {
  padding-bottom: 1.25rem;
  padding-left: var(--menu-indent);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sub-links-inner a {
  display: inline-block;
  font-size: clamp(1.1rem, 1.5vw, 1.8rem);
  color: var(--clr-cream-50);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.25s ease, transform 0.25s ease;
}

.sub-links-inner a:hover {
  color: var(--clr-accent);
  transform: translateX(6px);
}

/* ─── MENU FOOTER ────────────────────────── */

.menu-footer {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: 0s;
}

.menu-overlay.is-open .menu-footer {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.23s;
}

.menu-overlay:not(.is-open) .menu-footer {
  transition-delay: 0s;
}

.menu-footer-text {
  font-size: clamp(0.55rem, 0.7vw, 0.7rem);
  color: var(--clr-cream-30);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── SCROLL NAV PAIR ────────────────────── */

.scroll-nav-pair {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 198;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scroll-nav-pair.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ─── SCROLL TO NEXT ─────────────────────── */

.scroll-next-btn {
  transform: translateY(8px);
  width: 36px;
  height: 36px;
  padding: 0;
  overflow: hidden;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-cream);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

/* Restore natural sizing when "Scroll Down" label is shown */
.scroll-next-btn.show-label {
  width: auto;
  overflow: visible;
  padding: 0.3rem 0.5rem 0.3rem 0.3rem;
  gap: 0.55rem;
}

.scroll-next-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-next-btn:hover {
  opacity: 0.65;
}

.scroll-next-btn svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* "Scroll Down" label — visible only on the first section */
.scroll-next-label {
  font-size: clamp(0.6rem, 0.8vw, 0.7rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.35s ease, opacity 0.5s ease;
}

.scroll-next-btn.show-label .scroll-next-label {
  max-width: 200px;
  opacity: 1;
  animation: nudge-down 2.5s ease-in-out infinite;
}

@keyframes nudge-down {
  0%, 100% { transform: translateY(0);   }
  60%       { transform: translateY(4px); }
}

.scroll-next-btn.is-visible svg {
  animation: nudge-down 2.5s ease-in-out infinite;
}

.scroll-next-btn:hover svg {
  animation-play-state: paused;
}

/* ─── SCROLL TO PREV ─────────────────────── */

.scroll-prev-btn {
  transform: translateY(8px);
  z-index: 1;
  width: 0;
  height: 36px;
  overflow: hidden;
  margin-right: 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-cream);
  opacity: 0;
  transition: opacity 0.35s ease,
              transform 0.35s ease,
              width 0.35s ease,
              margin-right 0.35s ease;
  pointer-events: none;
}

.scroll-prev-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  width: 36px;
  margin-right: 8px;
}

.scroll-prev-btn:hover {
  opacity: 0.65;
}

.scroll-prev-btn svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

@keyframes nudge-up {
  0%, 100% { transform: translateY(0);    }
  60%       { transform: translateY(-4px); }
}

.scroll-prev-btn.is-visible svg {
  animation: nudge-up 2.5s ease-in-out infinite;
}

.scroll-prev-btn:hover svg {
  animation-play-state: paused;
}

/* ─── SCROLL TO TOP ──────────────────────── */

.scroll-top-btn {
  position: fixed;
  bottom: 40px;
  left: 40px;
  right: auto;
  z-index: 198;
  width: 54px;
  height: 54px;
  background: rgba(15, 15, 15, 0.35);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-cream);
  opacity: 0;
  overflow: hidden;
  flex-direction: column;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  transform: translateY(40px) scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s ease,
              box-shadow 0.3s ease, border-color 0.3s ease;
  pointer-events: none;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background: rgba(20, 20, 20, 0.55);
  border-color: rgba(91, 175, 192, 0.75);
  box-shadow: 0 0 28px rgba(91, 175, 192, 0.25);
}

.backtotop-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.backtotop-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.backtotop-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-cream);
  transition: transform 0.3s ease;
}

.backtotop-arrow svg {
  width: 17px;
  height: 17px;
}

.scroll-top-btn:hover .backtotop-arrow {
  transform: translateY(-5px);
}

.backtotop-text {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--clr-cream);
  margin-top: 4px;
  font-family: var(--font-base);
}

/* ─── PAGE BACKGROUND ────────────────────── */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(160deg, rgba(26, 58, 92, 0.55) 0%, rgba(44, 79, 87, 0.88) 100%),
    url('../images/background/bg_1.jpg') center 50% / cover no-repeat;
  filter: blur(6px);
  transform: scale(1.08); /* prevent blur edge fringing */
}

/* ─── GALLERY HERO ───────────────────────── */

.gallery-hero {
  width: 100%;
  min-height: 28vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0 4rem 2rem;
  overflow: hidden;
}

.gallery-hero__inner {
  position: relative;
  z-index: 1;
}

.gallery-hero__title {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--clr-cream);
  text-transform: uppercase;
}

.gallery-hero__sub {
  font-size: clamp(0.65rem, 0.9vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.6rem;
}

/* ─── GALLERY MAIN ───────────────────────── */

.gallery-main {
  background-color: var(--clr-white);
  padding: 0 4rem 6rem;
  min-height: 60vh;
  margin: 0 3rem 5rem;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* ─── FILTER BAR ─────────────────────────── */

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 2rem 0 2rem;
  position: sticky;
  top: 0;
  background: var(--clr-white);
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  margin-bottom: 2.5rem;
}

/* Fade edges when scrolled */
.gallery-filters::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
  pointer-events: none;
}

.filter-btn {
  background: none;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 100px;
  padding: 0.45rem 1.35rem;
  font-family: var(--font-base);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--clr-body-text);
  cursor: pointer;
  transition: background 0.2s ease,
              color 0.2s ease,
              border-color 0.2s ease,
              transform 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--clr-menu-bg);
  color: var(--clr-menu-bg);
  transform: translateY(-1px);
}

.filter-btn.is-active {
  background: var(--clr-menu-bg);
  border-color: var(--clr-menu-bg);
  color: var(--clr-cream);
}

/* ─── GALLERY GRID ───────────────────────── */

/* 20 columns = LCM(4, 5).
   4-row items → span 5  (5 × 4 = 20)
   5-row items → span 4  (4 × 5 = 20)
   Spans are assigned by JS after every filter change. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: clamp(8px, 1.8vw, 28px);
}

.gallery-item {
  position: relative;
  aspect-ratio: 1.4 / 1;
  grid-column: span 5; /* default; JS overrides per row pattern */
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  background-color: var(--clr-menu-bg);

  /* Scroll-reveal start state */
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.gallery-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
  transform: scale(1.07);
}

/* Gradient overlay on hover */
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 58, 92, 0.75) 0%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 0.9rem 1rem;
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-cream);
}

/* ─── LIGHTBOX ───────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 18, 26, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lb-img-wrap {
  max-width: 96vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img-wrap img {
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  display: block;
  border-radius: 2px;
}

/* Close button */
.lb-close {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s ease, transform 0.2s ease;
  font-family: var(--font-base);
}

.lb-close:hover {
  color: #fff;
  transform: rotate(90deg);
}

/* Prev / Next arrows */
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 3.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 1rem 1.25rem;
  transition: color 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.lb-nav:hover {
  color: #fff;
}

.lb-prev { left: 1rem; }
.lb-prev:hover { transform: translateY(-50%) translateX(-3px); }

.lb-next { right: 1rem; }
.lb-next:hover { transform: translateY(-50%) translateX(3px); }

.lb-nav:disabled {
  opacity: 0.15;
  cursor: default;
  pointer-events: none;
}

/* Caption */
.lb-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
  pointer-events: none;
}

/* Counter */
.lb-counter {
  position: absolute;
  top: 1.75rem;
  left: 1.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

/* ─── DOCUMENTS PAGE ─────────────────────── */

.doc-page {
  padding-top: 3.5rem;
}

.doc-page-header {
  margin-bottom: 3.5rem;
}

.doc-page-header__sub {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.5rem;
}

.doc-page-header__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--clr-menu-bg);
  text-transform: uppercase;
}

.doc-section {
  margin-bottom: 3.5rem;
}

.doc-section:last-child {
  margin-bottom: 0;
}

.doc-section__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(26, 58, 92, 0.45);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

.doc-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  padding: 1.75rem 1.25rem 1.5rem;
  background: var(--clr-white);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;

  /* Scroll-reveal start state */
  opacity: 0;
  transform: translateY(18px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
              opacity 0.5s ease, transform 0.5s ease;
}

.doc-tile.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* After reveal completes, swap to fast hover-speed transition */
.doc-tile.is-revealed {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.doc-tile:hover {
  border-color: rgba(26, 58, 92, 0.3);
  box-shadow: 0 6px 24px rgba(26, 58, 92, 0.10);
  transform: translateY(-2px);
}

.doc-tile__icon {
  width: 44px;
  height: 44px;
  color: var(--clr-menu-bg);
  opacity: 0.7;
  flex-shrink: 0;
}

.doc-tile__icon svg {
  width: 100%;
  height: 100%;
}

.doc-tile__name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--clr-body-text);
}

/* ─── CONTACT PAGE ───────────────────────── */

.ct-section {
  min-height: calc(100vh - 60px);
  background: var(--clr-menu-bg);
  display: flex;
  align-items: center;
}

.ct-section__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8rem 4rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* Heading */
.ct-heading {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ct-heading__sub {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin: 0;
}

.ct-heading__title {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--clr-cream);
  margin: 0;
}

/* Tiles row */
.ct-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.ct-tile {
  padding: 0 2.5rem 0 0;
  border-left: 1px solid var(--clr-cream-10);
  padding-left: 2rem;

  /* Scroll-reveal start state */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s cubic-bezier(0.33, 1, 0.68, 1),
              transform 0.65s cubic-bezier(0.33, 1, 0.68, 1),
              border-left-color 0.3s ease;
}

/* Staggered entrance delays */
.ct-tile:nth-child(1) { transition-delay: 0ms;   }
.ct-tile:nth-child(2) { transition-delay: 110ms; }
.ct-tile:nth-child(3) { transition-delay: 220ms; }
.ct-tile:nth-child(4) { transition-delay: 330ms; }

.ct-tile.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* After reveal: reset delays and enable hover interactions */
.ct-tile.is-revealed {
  transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1),
              border-left-color 0.3s ease;
  transition-delay: 0ms;
}

.ct-tile.is-revealed:hover {
  transform: translateY(-6px);
  border-left-color: var(--clr-cream-30);
}

.ct-tile:first-child {
  border-left: none;
  padding-left: 0;
}

/* Tile label */
.ct-tile__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin: 0 0 0.9rem;
}

/* Rule */
.ct-tile__rule {
  border: none;
  border-top: 1px solid var(--clr-cream-30);
  margin: 0 0 1.4rem;
}

/* Body */
.ct-tile__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ct-tile__row {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin: 0;
}

.ct-tile__key {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-cream-50);
}

.ct-tile__val {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--clr-cream);
  text-decoration: none;
  line-height: 1.4;
}

a.ct-tile__val:hover {
  color: var(--clr-accent);
}

/* ─── CONTACT PAGE — FOOTER CREAM STYLE ──── */

.contact-footer.ct-footer {
  color: rgba(244, 237, 230, 0.5);
}

.contact-footer.ct-footer .contact-social__link {
  color: rgba(244, 237, 230, 0.45);
}

.contact-footer.ct-footer .contact-social__link:hover {
  color: var(--clr-cream);
}

.contact-footer.ct-footer .contact-footer__location {
  color: rgba(244, 237, 230, 0.5);
}

.contact-footer.ct-footer .contact-footer__location:hover {
  color: var(--clr-cream);
}

/* ─── ABOUT MAIN — zero out gallery-main padding so each section manages its own ── */

.gallery-main.about-main {
  padding: 0;
  overflow: hidden; /* clips split images to the card's border-radius */
}

/* ─── ABOUT HERO ──────────────────────────── */

.about-hero {
  width: 100%;
  height: 55vh;
  min-height: 340px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0 4rem 4rem;
  background: url('../images/gallery/areal/areal-01.jpg') center 35% / cover no-repeat;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(26, 58, 92, 0.5) 0%,
    rgba(44, 79, 87, 0.88) 100%
  );
  z-index: 0;
}

.about-hero__inner {
  position: relative;
  z-index: 1;
}

.about-hero__sub {
  font-size: clamp(0.7rem, 1vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.6rem;
}

.about-hero__title {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800;
  color: var(--clr-cream);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ─── ABOUT INTRO ─────────────────────────── */

.about-intro {
  padding: clamp(4rem, 8vw, 7rem) clamp(2rem, 10vw, 12rem);
  text-align: center;
  background: var(--clr-white);
  border-bottom: 1px solid rgba(26, 58, 92, 0.07);
}

.about-intro__lead {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--clr-blue);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.about-intro__body {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--clr-body-text);
  line-height: 1.85;
}

/* ─── ABOUT SPLIT SECTIONS ────────────────── */

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
}

.about-split--reverse {
  direction: rtl;
}

.about-split--reverse > * {
  direction: ltr;
}

.about-split__image {
  overflow: hidden;
}

.about-split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.about-split:hover .about-split__image img {
  transform: scale(1.04);
}

.about-split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 5vw, 5rem) clamp(2.5rem, 5vw, 5.5rem);
  background: var(--clr-white);
}

.about-split--teal .about-split__text {
  background: var(--clr-menu-bg);
}

.about-split--teal .about-split__heading,
.about-split--teal .about-split__body {
  color: var(--clr-cream);
}

.about-split--teal .about-split__body {
  color: rgba(244, 237, 230, 0.78);
}

.about-split__eyebrow {
  display: block;
  font-size: clamp(0.65rem, 0.85vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 1rem;
}

.about-split__heading {
  font-size: clamp(1.6rem, 2.8vw, 2.8rem);
  font-weight: 800;
  color: var(--clr-blue);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.about-split__body {
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  color: var(--clr-body-text);
  line-height: 1.85;
}

/* ─── ABOUT PARTNERS ──────────────────────── */

.about-partners {
  background: var(--clr-white);
  border-top: 1px solid rgba(26, 58, 92, 0.07);
  padding: clamp(4.5rem, 9vw, 8rem) clamp(2rem, 10vw, 12rem);
  text-align: center;
}

.about-partners__eyebrow {
  display: block;
  font-size: clamp(0.65rem, 0.85vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clr-menu-bg);
  margin-bottom: 3rem;
}

.about-partners__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(3rem, 8vw, 9rem);
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.about-partners__logo {
  height: clamp(36px, 5.5vw, 66px);
  width: auto;
  /* brightness(0) flattens all logo colours to black first, then the
     chain rebuilds the exact single colour #2C4F57 on every pixel. */
  filter: brightness(0) invert(34%) sepia(100%) hue-rotate(161deg) saturate(183%) brightness(67%);
  opacity: 0.9;
}

.about-partners__logo--lg {
  height: clamp(72px, 12vw, 140px);
}

.about-partners__body {
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  color: var(--clr-body-text);
  line-height: 1.85;
  max-width: 55ch;
  margin: 0 auto;
}

/* ─── ABOUT PAGE — SCROLL REVEAL ───────────── */

/* Text elements start hidden, slide up on reveal */
.about-intro__lead,
.about-intro__body,
.about-split__eyebrow,
.about-split__heading,
.about-split__body,
.about-partners__eyebrow,
.about-partners__logos {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.33, 1, 0.68, 1),
              transform 0.75s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Stagger within each block */
.about-intro__body     { transition-delay: 130ms; }
.about-split__heading  { transition-delay: 100ms; }
.about-split__body     { transition-delay: 210ms; }
.about-partners__logos { transition-delay: 180ms; }

/* Revealed states */
.about-intro__lead.in-view,
.about-intro__body.in-view,
.about-split__eyebrow.in-view,
.about-split__heading.in-view,
.about-split__body.in-view,
.about-partners__eyebrow.in-view,
.about-partners__logos.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .about-intro__lead,
  .about-intro__body,
  .about-split__eyebrow,
  .about-split__heading,
  .about-split__body,
  .about-partners__eyebrow,
  .about-partners__logos {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── RESPONSIVE ─────────────────────────── */

/* iOS/iPadOS does not support background-attachment: fixed correctly */
@media (hover: none) {
  .parallax-section {
    background-attachment: scroll;
  }
}

@media (max-width: 900px) {
  .ct-section__inner {
    padding: 6rem 2.5rem 5rem;
    gap: 3.5rem;
  }

  .ct-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 0;
  }

  .ct-tile:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }

  .ct-tile:nth-child(2),
  .ct-tile:nth-child(4) {
    padding-right: 0;
  }

  .gallery-main {
    margin: 0 1.5rem 4rem;
    padding: 0 2rem 4rem;
    border-radius: 10px;
  }

  /* Tablet: 12-column grid, 3 per row */
  .gallery-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .gallery-item {
    grid-column: span 4 !important;
  }

  .about-split {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .about-split--reverse {
    direction: ltr;
  }

  .about-split__image {
    height: 300px;
  }

  .about-split__text {
    padding: 2.5rem 2rem;
  }

  .about-split__body {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .scroll-top-btn {
    width: 44px;
    height: 44px;
    left: 25px;
    bottom: 25px;
  }

  .backtotop-arrow svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 650px) {
  .nav-logo {
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 600px) {
  .gallery-main {
    margin: 0 0.75rem 3rem;
    padding: 0 1.25rem 3rem;
    border-radius: 8px;
  }

  .gallery-hero {
    padding: 0 1.75rem 2.5rem;
  }

  /* Mobile: 2 per row */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item {
    grid-column: span 1 !important;
  }

  .about-hero {
    height: 42vh;
    padding: 0 1.75rem 2.5rem;
  }

  .about-intro {
    padding: 3rem 1.75rem;
  }
}

@media (max-width: 540px) {
  .ct-section__inner {
    padding: 5rem 1.5rem 4rem;
    gap: 3rem;
  }

  .ct-tiles {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ct-tile {
    border-left: none;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ─── MOBILE (≤600px) ────────────────────── */

@media (max-width: 600px) {

  /* Navbar — match horizontal inset to gallery-main card margins (0.75rem) */
  .navbar {
    padding: 1.25rem 0.75rem;
  }

  /* Logo only — pull out of absolute centre and align to the left */
  .nav-logo {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    align-self: center;
    padding-left: 0.75rem;
  }

  /* Menu button — vertically centre within the navbar row */
  .menu-btn {
    align-self: center;
  }

  .nav-logo svg {
    height: 2.75rem;
  }

  /* Overlay close button — match reduced navbar padding */
  .menu-overlay-close {
    top: 1.25rem;
    right: 1.5rem;
  }

  /* Menu panel — fill most of the screen width */
  .menu-side-bar {
    min-width: min(88vw, 340px);
    padding: 4.5rem 2rem 2.5rem;
  }

  /* Parallax slogans — reduce padding so text isn't squeezed off-screen */
  .parallax-section:nth-of-type(odd) .parallax-slogan,
  .parallax-section:nth-of-type(even) .parallax-slogan {
    padding: 0 1.5rem 0 2rem;
    text-align: left;
    max-width: 100%;
  }

  .parallax-slogan__body {
    font-size: 0.95rem;
  }

  /* Hide everything after the first sentence on mobile */
  .parallax-slogan__body .body-extra {
    display: none;
  }

  /* Partner logo row — side by side on narrow screens */
  .parallax-slogan__logos-row {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1.5rem;
  }

  /* Contact CTA — shrink font to prevent overflow */
  .contact-cta__text {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  /* Index contact footer — pull in from edges */
  .contact-footer {
    bottom: 1.5rem;
  }

  /* Contact section — ensure heading clears the fixed navbar on mobile */
  .ct-section__inner {
    padding-top: 6.5rem;
  }

  /* Contact page footer — flow in normal document order below the tiles */
  .contact-footer.ct-footer {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    padding: 1.5rem 1rem 2.5rem;
    white-space: normal;
  }

  .made-by {
    display: none;
  }
}

/* ─── MOBILE LANDSCAPE ───────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .navbar {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  /* Push gallery-hero content below the navbar on pages without JS sizeHero()
     (e.g. about.html). Pages with sizeHero() override this via inline style. */
  .gallery-hero {
    padding-top: 91px;
  }

  /* Hide everything after the first sentence on rotated mobile */
  .parallax-slogan__body .body-extra {
    display: none;
  }

  /* Contact page footer — flow below tiles instead of overlapping them */
  .contact-footer.ct-footer {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    padding: 1.5rem 1rem 2.5rem;
    white-space: normal;
  }
}
