/* VIP Facility Management — components. */

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font: 500 16px/1 var(--font-heading);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue-deep); color: #fff; box-shadow: 0 10px 24px -12px rgba(0, 95, 173, 0.8); }
.btn--primary:hover { background: #004e8f; box-shadow: 0 18px 32px -14px rgba(0, 95, 173, 0.9); }
.btn--light { background: #fff; color: var(--blue-deep); }
.btn--light:hover { box-shadow: 0 18px 32px -14px rgba(0, 0, 0, 0.5); }
.btn--outline { background: transparent; color: var(--blue-deep); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--small { min-height: 46px; padding: 0 22px; font-size: 15px; }

.btn--link {
  gap: 8px;
  min-height: 44px;
  padding: 0;
  background: none;
  box-shadow: none;
}
.btn--link:hover { transform: none; }

.arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--link:hover .arrow { transform: translateX(5px); }
:dir(rtl) .arrow { transform: scaleX(-1); }

/* ---------- placeholders (content still to be supplied) ---------- */
.todo {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border: 1px dashed var(--amber);
  border-radius: 6px;
  background: var(--amber-bg);
  color: var(--amber);
  font: 500 12px/1 var(--font-heading);
  letter-spacing: 0.04em;
}
.todo--on-dark { background: transparent; border-color: #ffd896; color: #ffd896; }

.placeholder {
  display: grid;
  width: 100%;
  place-items: center;
  padding: 20px;
  min-height: 180px;
  aspect-ratio: var(--ratio, 4 / 3);
  border-radius: 24px;
  background: repeating-linear-gradient(135deg, #e8f0f8 0 14px, #dce7f2 14px 28px);
  color: #3c4f66;
  text-align: center;
  font: 500 13px/1.4 var(--font-heading);
  letter-spacing: 0.02em;
}
.placeholder--wide { --ratio: 21 / 9; }
.placeholder--video { --ratio: 16 / 9; }
.placeholder--square { --ratio: 1 / 1; }
.placeholder--banner { --ratio: 3 / 1; }
.placeholder--soft { border-radius: var(--radius-sm); }
.placeholder--rounded { border-radius: 16px; }
.hero .placeholder {
  background: repeating-linear-gradient(135deg, #123a66 0 14px, #0f3158 14px 28px);
  color: #c6d6e8;
}

/* ---------- site header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  min-height: var(--header-height);
}
.brand { display: flex; align-items: center; margin-inline-start: -22px; }
.brand img { height: 76px; width: auto; }

.site-nav {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 30px;
}
.site-nav__links { display: flex; flex-wrap: wrap; gap: 0 30px; }
.site-nav__link {
  position: relative;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 8px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] { color: var(--blue-deep); }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}

@container (max-width: 940px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: calc(var(--header-height) + 1px);
    flex-direction: column;
    align-items: stretch;
    padding: 12px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(6, 32, 61, 0.4);
  }
  .js .site-nav.is-open { display: flex; animation: drop 0.35s var(--ease) backwards; }
  .js .site-nav__links { flex-direction: column; gap: 0; }
  .js .site-nav__link {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font: 500 18px/1.3 var(--font-heading);
  }
  .js .site-nav__link::after { display: none; }
  .js .site-nav .btn { margin-top: 20px; }
}

/* ---------- heroes ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 12px clamp(8px, 1.2cqi, 16px) 0;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1.5px);
  background-size: 28px 28px;
  animation: drift 24s linear infinite;
}
.hero__mark {
  position: absolute;
  inset-inline-end: -8%;
  bottom: -34%;
  z-index: -1;
  width: 64%;
  opacity: 0.06;
  pointer-events: none;
  animation: float 14s ease-in-out infinite;
}
.hero__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: clamp(40px, 5cqi, 72px);
  align-items: center;
  padding-block: clamp(56px, 7cqi, 96px) clamp(96px, 10cqi, 136px);
}
.hero .lead { color: var(--on-navy); }
.hero .eyebrow { color: var(--ice); }
.hero .btn--link { color: #fff; }

.hero--form { margin-block-end: 12px; }
.hero--form .hero__inner { align-items: start; padding-block-end: clamp(56px, 7cqi, 96px); }
.hero--form h1 { font-size: clamp(36px, 4.6cqi, 60px); }
.hero__form-wrap { color: var(--ink); }

/* rotating headline words */
.rotator {
  display: inline-grid;
  height: 1.12em;
  overflow: hidden;
  vertical-align: bottom;
  color: var(--ice);
}
.rotator span { grid-area: 1 / 1; opacity: 0; animation: rotate-word 10s infinite; }
.rotator span:nth-child(2) { animation-delay: 2.5s; }
.rotator span:nth-child(3) { animation-delay: 5s; }
.rotator span:nth-child(4) { animation-delay: 7.5s; }

.trust-list { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: var(--on-navy); }
.trust-list li { display: inline-flex; align-items: center; gap: 8px; }

.hero__visual { position: relative; }
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 22px 44px -16px rgba(2, 14, 30, 0.6);
  animation: float 7s ease-in-out infinite;
}
.float-card strong { display: block; font: 500 15px var(--font-heading); }
.float-card--top { inset-inline-start: -28px; top: 36px; }
.float-card--bottom { inset-inline-end: -16px; bottom: 44px; animation-delay: -3.5s; }
@container (max-width: 940px) {
  .float-card--top { inset-inline-start: 12px; top: 12px; }
  .float-card--bottom { inset-inline-end: 12px; bottom: 12px; }
}
.live-dot { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #1e9e5a; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #1e9e5a; animation: ping 2s var(--ease) infinite; }

/* inner-page hero */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(48px, 6cqi, 88px);
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.page-hero__mark {
  position: absolute;
  inset-inline-end: -4%;
  bottom: -46%;
  z-index: -1;
  width: min(46%, 560px);
  opacity: 0.07;
  animation: float 14s ease-in-out infinite;
}
.page-hero h1 { max-width: 18ch; }

.breadcrumb { display: flex; gap: 8px; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 8px; }

/* ---------- stats ---------- */
.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 1px;
  margin-top: -64px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--line);
  box-shadow: 0 30px 60px -36px rgba(6, 32, 61, 0.45);
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 8px;
  padding: clamp(20px, 2.6cqi, 32px);
  background: #fff;
}
.stat dt { font-size: 15px; color: var(--muted); }
.stat dd, .step-no {
  font: 600 clamp(34px, 4cqi, 52px) / 1 var(--font-heading);
  letter-spacing: -0.03em;
  color: var(--blue-deep);
  font-variant-numeric: tabular-nums;
}
.step-no { font-size: 40px; }

/* ---------- service tabs (home) ---------- */
.tab-list { display: flex; flex-direction: column; gap: 6px; }
.tab {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 60px;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  font: 500 17px/1.2 var(--font-heading);
  text-align: start;
  transition: background 0.3s, color 0.3s, padding 0.3s var(--ease);
}
.tab__no { flex: none; width: 24px; font-size: 13px; color: var(--muted); }
.tab:hover { background: var(--mist); padding-inline-start: 24px; }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; }
.tab[aria-selected="true"] .tab__no { color: var(--ice); }

.panel {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 3cqi, 40px);
  border-radius: 24px;
  background: var(--mist);
}
.panel + .panel { margin-top: 24px; }
.js .tab-panel { animation: rise 0.55s var(--ease) backwards; }
.js .tab-panel[hidden] { display: none; }
/* without JS the tab strip is hidden and every panel is shown */
.tab-list { display: none; }
.js .tab-list { display: flex; }

@container (max-width: 940px) {
  .tab-list { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .tab { width: auto; min-height: 48px; background: var(--mist); white-space: nowrap; }
  .tab:hover { padding-inline-start: 18px; }
  .tab__no { display: none; }
}

/* ---------- check lists ---------- */
.ticks {
  display: grid;
  gap: 12px 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.ticks--single { grid-template-columns: minmax(0, 1fr); }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16px; line-height: 1.45; }
.ticks svg { margin-top: 2px; color: var(--blue); }

/* ---------- numbered list ---------- */
.numbered-list > li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.numbered-list--compact > li { padding-block: 20px; }
.numbered-list__no { font: 500 14px/1.9 var(--font-heading); color: var(--ice); }

/* ---------- cards ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 28px 48px -28px rgba(6, 32, 61, 0.4); }
.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: var(--sky);
  color: var(--blue-deep);
  transition: background 0.35s, color 0.35s, transform 0.35s var(--ease);
}
.card:hover .card__icon { background: var(--blue-deep); color: #fff; transform: rotate(-6deg) scale(1.05); }
.card__icon--success { background: var(--success-bg); color: var(--success); }
.card:hover .card__icon--success { background: var(--success-bg); color: var(--success); transform: none; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sky);
  color: #00467f;
  font-size: 13px;
  font-weight: 500;
}

/* featured project */
.feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.feature .placeholder { height: 100%; min-height: 300px; aspect-ratio: auto; border-radius: 0; }
.feature__media { display: grid; place-items: center; margin: 0; padding: clamp(16px, 2.4cqi, 32px); background: var(--mist); }
.feature__media img { width: 100%; height: auto; border-radius: var(--radius-sm); box-shadow: 0 18px 40px -24px rgba(6, 32, 61, 0.5); }
.feature__media--photo { padding: 0; }
.feature__media--photo img { height: 100%; border-radius: 0; box-shadow: none; object-fit: cover; }
.feature__body { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 4cqi, 56px); }
.quote { font: 500 clamp(21px, 2.4cqi, 30px) / 1.32 var(--font-heading); letter-spacing: -0.015em; }
.quote--sm { font-size: clamp(19px, 2cqi, 24px); }

/* ---------- client names ---------- */
.client {
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font: 500 16px/1 var(--font-heading);
  color: var(--navy);
  white-space: nowrap;
}
.client-list { display: flex; flex-wrap: wrap; gap: 12px; }

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; gap: 14px; width: max-content; padding-inline-end: 14px; animation: marquee 60s linear infinite; }
.marquee__track ul { display: flex; gap: 14px; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- call to action & footer ---------- */
.cta {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  padding: clamp(32px, 5cqi, 72px);
  border-radius: var(--radius-lg);
  background: var(--blue-deep);
  color: #fff;
}
.cta__mark {
  position: absolute;
  inset-inline-end: -6%;
  top: -40%;
  z-index: -1;
  width: 46%;
  opacity: 0.1;
  animation: float 12s ease-in-out infinite;
}
.cta__text { max-width: 640px; }
.cta p { color: #dcebfa; max-width: 52ch; }

.site-footer {
  padding-block: clamp(48px, 6cqi, 72px) 28px;
  background: var(--navy);
  color: var(--on-navy);
  font-size: 15px;
}
.site-footer__logo { align-self: flex-start; height: 92px; width: auto; margin: -18px 0 -10px -26px; }
.site-footer__title {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--on-navy);
  text-decoration: none;
  transition: color 0.25s, transform 0.25s var(--ease);
}
.site-footer a:hover { color: #fff; transform: translateX(3px); }
.site-footer .todo { background: transparent; border-color: #ffc870; color: #ffc870; }
.site-footer__list li + li .todo { margin-top: 10px; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
}

/* ---------- forms ---------- */
.form {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 3.4cqi, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 40px 80px -56px rgba(6, 32, 61, 0.5);
}
.form fieldset { display: grid; gap: 20px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field { display: grid; gap: 8px; }
.field label { font: 500 14px/1.2 var(--font-heading); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--field);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { min-height: 132px; padding: 14px 16px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(13, 120, 209, 0.18); outline: 0; }
.form__status { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--success-bg); color: #0a5a30; font-size: 15px; }
.form__status[hidden] { display: none; }

/* ---------- contact info list ---------- */
.info-list > li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.info-list .card__icon { margin: 0; }
.info-list strong { display: block; font: 500 16px var(--font-heading); }

/* ---------- schedule (definition list) & roles ---------- */
.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.schedule__row {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 8px 24px;
  padding: 22px 26px;
  border-top: 1px solid var(--line);
  transition: background 0.3s;
}
.schedule__row:first-child { border-top: 0; }
.schedule__row:hover { background: var(--mist); }
.schedule dt { font: 500 16px var(--font-heading); color: var(--blue-deep); }
@container (max-width: 640px) { .schedule__row { grid-template-columns: minmax(0, 1fr); } }

.role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 22px 26px;
  border-top: 1px solid var(--line);
  transition: background 0.3s, padding 0.3s var(--ease);
}
.role:first-child { border-top: 0; }
.role:hover { background: var(--mist); padding-inline-start: 34px; }
.role h3 { font-size: 19px; }

/* service blocks (services page) */
.service-block {
  padding-block: clamp(40px, 5cqi, 64px);
  border-bottom: 1px solid var(--line);
}

/* ---------- WhatsApp click-to-chat ---------- */
.whatsapp-dock {
  position: sticky;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: flex-end;
  height: 0;
  padding-inline-end: 20px;
  pointer-events: none;
}
.whatsapp {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  box-shadow: 0 16px 30px -12px rgba(14, 122, 65, 0.9);
  transform: translateY(calc(-100% - 20px));
  pointer-events: auto;
  transition: background 0.3s;
}
.whatsapp:hover { background: #0a6334; }

/* ---------- motion ---------- */
.rise { animation: rise 0.9s var(--ease) backwards; animation-delay: var(--delay, 0s); }
.delay-1 { --delay: 0.08s; }
.delay-2 { --delay: 0.16s; }
.delay-3 { --delay: 0.24s; }
.delay-4 { --delay: 0.3s; }
.delay-5 { --delay: 0.45s; }

/* scroll reveal: main.js adds .reveal-ready, so content stays visible without JS */
.reveal-ready .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
.reveal-ready .reveal-stagger:not(.is-visible) > * { opacity: 0; }
.reveal-ready .reveal-stagger.is-visible > * { animation: rise 0.7s var(--ease) backwards; }
.reveal-stagger.is-visible > :nth-child(2) { animation-delay: 0.08s; }
.reveal-stagger.is-visible > :nth-child(3) { animation-delay: 0.16s; }
.reveal-stagger.is-visible > :nth-child(4) { animation-delay: 0.24s; }
.reveal-stagger.is-visible > :nth-child(5) { animation-delay: 0.32s; }
.reveal-stagger.is-visible > :nth-child(6) { animation-delay: 0.4s; }
.reveal-stagger.is-visible > :nth-child(7) { animation-delay: 0.48s; }
.reveal-stagger.is-visible > :nth-child(8) { animation-delay: 0.56s; }

@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift { to { background-position: 28px 56px; } }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(2.2); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes rotate-word {
  0% { opacity: 0; transform: translateY(70%); }
  4%, 22% { opacity: 1; transform: none; }
  26%, 100% { opacity: 0; transform: translateY(-70%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rotator span:first-child { opacity: 1; }
}

/* numbered list inside the dark form hero */
.hero .numbered-list .text-sm { color: var(--on-navy); }
.site-footer .text-sm { color: var(--on-navy); opacity: 0.8; }

/* ---------- photos ---------- */
.photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ratio, 4 / 3);
  border-radius: 24px;
  background: var(--sky);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
}
.photo--5x4 { --ratio: 5 / 4; }
.photo--4x3 { --ratio: 4 / 3; }
.photo--16x9 { --ratio: 16 / 9; }
.photo--21x9 { --ratio: 21 / 9; }
.photo--21x8 { --ratio: 21 / 8; }
.photo--rounded { border-radius: 16px; }
.photo--focus-low { --focus: 50% 70%; }
.photo--focus-mid { --focus: 50% 55%; }
.photo--focus-high { --focus: 50% 45%; }

/* slow zoom on hero-style photos, small zoom on hover for gallery/service photos */
.photo--zoom img { animation: slow-zoom 20s ease-in-out infinite alternate; }
.photo--hover img { transition: transform 0.6s var(--ease); }
.photo--hover:hover img { transform: scale(1.05); }
@keyframes slow-zoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }

/* "Our people on site" gallery: 12-column grid, alternating wide and narrow tiles */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.gallery .photo { height: 380px; aspect-ratio: auto; grid-column: span 5; }
.gallery .photo--wide { grid-column: span 7; }
@container (max-width: 760px) {
  .gallery .photo,
  .gallery .photo--wide { grid-column: 1 / -1; height: 220px; }
}

/* ---------- projects page: photo-led showcase ---------- */
.pb-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5cqi, 72px); align-items: end; }
.pb-stats { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 0; }
.pb-stats div { display: flex; flex-direction: column-reverse; gap: 4px; }
.pb-stats dd { margin: 0; font: 600 clamp(30px, 3.4cqi, 44px) / 1 var(--font-heading); letter-spacing: -0.03em; color: var(--blue-deep); }
.pb-stats dt { font-size: 14px; color: var(--muted); }
.pb-selected { padding-top: 0; }
.pb-list { display: flex; flex-direction: column; gap: clamp(20px, 2.4cqi, 32px); }
.pb-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "media text";
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.pb-row--flip { grid-template-areas: "text media"; }
.pb-row:hover { box-shadow: 0 30px 60px -36px rgba(6, 32, 61, 0.45); transform: translateY(-4px); }
.pb-media { grid-area: media; position: relative; overflow: hidden; min-height: 380px; margin: 0; background: var(--navy); }
.pb-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pb-row:hover .pb-media img { transform: scale(1.05); }
.pb-art { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(22px, 3cqi, 36px); color: #fff; isolation: isolate; }
.pb-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.5px); background-size: 22px 22px; }
.pb-art::after { content: ""; position: absolute; inset-inline-end: -12%; bottom: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; z-index: -1; background: rgba(124, 192, 255, 0.08); }
.pb-art .todo { align-self: flex-start; background: transparent; color: #ffc870; border-color: #ffc870; }
.pb-km { margin: 0; font: 600 clamp(44px, 5cqi, 68px) / 1 var(--font-heading); letter-spacing: -0.03em; color: var(--ice); }
.pb-km small { display: block; margin-top: 8px; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; color: var(--on-navy); text-transform: uppercase; }
.pb-name { margin: 12px 0 0; font: 500 18px / 1.2 var(--font-heading); color: var(--on-navy); }
.pb-text { grid-area: text; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(26px, 4cqi, 56px); }
.pb-no { margin: 0; font: 500 14px / 1 var(--font-heading); letter-spacing: 0.08em; color: var(--muted); }
.pb-dl { margin: 6px 0 0; border-top: 1px solid var(--line); }
.pb-dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pb-dl dt { font: 500 12px / 1.6 var(--font-heading); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pb-dl dd { margin: 0; font: 500 16px / 1.4 var(--font-heading); color: var(--navy); }
.pb-more-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-block-end: 36px; }
.pb-more-head .stack { max-width: 640px; }
.pb-wall { display: flex; flex-wrap: wrap; gap: 10px; }
.pb-wall li { padding: 12px 18px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); font: 500 15px / 1 var(--font-heading); color: var(--navy); transition: background 0.25s, color 0.25s; }
.pb-wall li:hover { background: var(--navy); color: #fff; }
@container (max-width: 900px) {
  .pb-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .pb-row, .pb-row--flip { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "text"; }
  .pb-media { min-height: 240px; }
}

/* certificate scan thumbnails */
.scan { display: block; color: inherit; text-decoration: none; }
.scan figure { position: relative; margin: 0; overflow: hidden; display: flex; justify-content: center; }
.scan img { display: block; width: auto; max-width: 100%; height: auto; max-height: 460px; margin-inline: auto; }
.scan figcaption { position: absolute; inset-inline: 0; bottom: 0; text-align: center; padding: 28px 14px 10px; background: linear-gradient(transparent, rgba(6, 32, 61, 0.85)); color: #fff; font-size: 13px; font-weight: 500; opacity: 0; transition: opacity 0.3s; }
.scan:hover figcaption, .scan:focus-visible figcaption { opacity: 1; }

.client--logo { display: flex; align-items: center; justify-content: center; padding: 12px 22px; min-width: 120px; }
.client--logo img { display: block; height: 56px; width: auto; max-width: 160px; object-fit: contain; }

.pb-media--logo { display: flex; align-items: center; justify-content: center; padding: clamp(28px, 6cqi, 64px); background: #fff; border: 1px solid var(--line); }
.pb-media--logo img { position: static; width: auto; height: auto; max-width: min(70%, 340px); max-height: 220px; object-fit: contain; }
.pb-row:hover .pb-media--logo img { transform: none; }
