/* =========================================================
   RC² — site stylesheet ("White Gallery")
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --navy: #001e44;
  --navy-2: #0b2d5e;
  --ink: #0b1a33;
  --muted: #5a6888;
  --line: #e3e7f0;
  --surface: #f5f7fb;
  --bg: #ffffff;
  --accent: #2f6bff;
  --white: #ffffff;

  --font-head: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(0, 30, 68, .06);
  --shadow: 0 10px 30px rgba(0, 30, 68, .10);
  --shadow-lg: 0 24px 60px rgba(0, 30, 68, .16);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --container: 1200px;
  --gutter: 20px;
  --header-h: 88px;
}

@view-transition { navigation: auto; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 10vw, 120px); }
.section--alt { background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.h-display { font-size: clamp(40px, 7.2vw, 84px); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; }
.h-section { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.02em; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); line-height: 1.6; }

/* navy underline bar (brand accent — stays navy) */
.u-bar { background: linear-gradient(var(--navy), var(--navy)) left bottom / 100% .12em no-repeat; padding-bottom: .04em; }
.line-bar { display: block; width: 56px; height: 4px; background: var(--navy); border-radius: 2px; margin-top: 18px; }
.section-head--center .line-bar { margin-inline: auto; }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  font-weight: 600; font-size: 15px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.chip {
  border: 1.5px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px; font-weight: 600;
  color: var(--ink);
  transition: background .25s, color .25s, border-color .25s, transform .2s;
}
.chip:hover { border-color: var(--navy); }
.chip:active { transform: scale(.96); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip .count { opacity: .55; font-weight: 500; margin-left: 4px; }

/* ---------- Header (floating pill) ---------- */
.site-header {
  position: fixed; z-index: 50;
  top: calc(16px + env(safe-area-inset-top, 0px)); left: 0; right: 0;
  display: flex; justify-content: center;
  padding-inline: 12px;
  pointer-events: none;
  /* no animation/transform here: it would make the header the containing block
     of the fixed .sheet, shrinking the mobile menu to the header's size */
}
@keyframes header-in { from { opacity: 0; transform: translateY(-24px); } }
.pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 8px 8px 8px 20px;
  transition: padding .35s var(--ease), box-shadow .35s var(--ease), gap .35s var(--ease);
}
/* own GPU layer: iOS Safari otherwise stops painting a fixed, backdrop-filtered bar
   after a scripted scroll (bar vanishes until it changes size back at the top) */
.pill { position: relative; z-index: 2; transform: translateZ(0); will-change: transform; animation: header-in .8s var(--ease-out) backwards; }
.pill__logo { display: flex; align-items: center; gap: 10px; }
.pill__logo img { height: 60px; width: auto; transition: height .35s var(--ease); }
.pill__links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pill__links a {
  position: relative; display: block;
  padding: 8px 12px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.pill__links a:hover { background: var(--surface); }
.pill__links a.is-current { color: var(--navy); }
.pill__links a.is-current::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px;
  height: 2px; background: var(--navy); border-radius: 2px;
}
.pill__cta { padding: 11px 20px; font-size: 14px; }
.pill__menu { display: none; }

.site-header.is-scrolled .pill { padding: 5px 5px 5px 16px; box-shadow: var(--shadow-lg); }
.site-header.is-scrolled .pill__logo img { height: 46px; }

/* mobile */
.menu-btn {
  align-items: center; gap: 10px;
  border: 0; background: var(--navy); color: var(--white);
  border-radius: 999px; padding: 11px 16px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.menu-btn__icon { position: relative; width: 18px; height: 12px; }
.menu-btn__icon span {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease), opacity .2s;
}
.menu-btn__icon span:nth-child(1) { top: 0; }
.menu-btn__icon span:nth-child(2) { top: 5px; }
.menu-btn__icon span:nth-child(3) { top: 10px; }
.site-header.is-open .menu-btn__icon span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.site-header.is-open .menu-btn__icon span:nth-child(2) { opacity: 0; }
.site-header.is-open .menu-btn__icon span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.sheet {
  position: fixed; z-index: 1; inset: 0;
  pointer-events: auto; /* .site-header sets none, which children inherit */
  background: var(--bg);
  padding: calc(120px + env(safe-area-inset-top, 0px)) 28px 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .5s var(--ease-out), visibility 0s linear .5s;
}
.sheet.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s var(--ease-out), visibility 0s; }
.sheet__links { list-style: none; margin: 0; padding: 0; }
.sheet__links li {
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  transition-delay: calc(var(--i, 0) * 50ms + 120ms);
}
.sheet.is-open .sheet__links li { opacity: 1; transform: none; }
.sheet__links a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 14px 0;
  font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--navy);
}
.sheet__foot { display: grid; gap: 6px; color: var(--muted); font-size: 15px; }
.sheet__foot a { color: var(--navy); font-weight: 600; }

@media (max-width: 860px) {
  .pill { width: 100%; max-width: 560px; justify-content: space-between; padding: 6px 6px 6px 14px; }
  .pill__links, .pill__cta { display: none; }
  .pill__menu { display: inline-flex; }
  .pill__logo img { height: 46px; }
  .site-header.is-scrolled .pill__logo img { height: 42px; }
}
@media (min-width: 861px) { .sheet { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .78); padding-block: 72px 32px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo img { height: 64px; width: auto; filter: brightness(0) invert(1); }
.footer-tag { margin-top: 18px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.footer-col h4 { color: var(--white); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Tiles (project cards) ---------- */
.tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  isolation: isolate;
  box-shadow: var(--shadow-sm);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0, 20, 46, 0) 45%, rgba(0, 20, 46, .78) 100%);
  transition: opacity .4s;
}
.tile__cap {
  position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px;
  color: var(--white);
  transform: translateY(6px);
  transition: transform .5s var(--ease-out);
}
.tile__cap small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin-bottom: 4px; }
.tile__cap strong { font-family: var(--font-head); font-size: 19px; font-weight: 700; line-height: 1.2; }
.tile__go {
  position: absolute; z-index: 2; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--navy);
  font-size: 18px;
  opacity: 0; transform: scale(.7) rotate(-45deg);
  transition: opacity .35s, transform .45s var(--ease-out);
}
@media (hover: hover) {
  .tile:hover img { transform: scale(1.06); }
  .tile:hover .tile__cap { transform: translateY(0); }
  .tile:hover .tile__go { opacity: 1; transform: none; }
}

/* ---------- Reveal ---------- */
html.js [data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }
html.js [data-hero] > * { animation: rise 1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 110ms + 250ms); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

/* ---------- States ---------- */
.load-error {
  padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px dashed var(--line);
  color: var(--muted); text-align: center;
}
.load-error strong { color: var(--navy); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* near-zero, not "none": GLightbox waits for animationend to close / change slide */
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

/* =========================================================
   Home
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(100svh, 980px);
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 110px));
  padding-bottom: clamp(24px, 4vw, 40px);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
  animation: hero-zoom 14s var(--ease-out) both;
}
@keyframes hero-zoom { from { transform: scale(1.08); } }
.hero::after { /* white wash on the text side, fading into the photo */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 38%, rgba(255,255,255,.7) 52%, rgba(255,255,255,.25) 64%, rgba(255,255,255,0) 76%),
    linear-gradient(0deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 22%);
}
.hero__inner { width: 100%; }
.hero__inner > * { max-width: 760px; }
.eyebrow--line { display: inline-flex; align-items: center; gap: 18px; }
.eyebrow--line::before { content: ""; width: 72px; height: 1.5px; background: var(--navy); }
.hero__inner > .hero__title { max-width: 980px; font-size: clamp(38px, 5.2vw, 74px); line-height: 1.04; }
.hero__hl {
  background: linear-gradient(90deg, #1546a8, #2f6bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__inner > .hero__sub { max-width: 600px; margin-top: 24px; color: #3d4b66; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.hero__ctas .btn { padding: 16px 30px; }
.hero__ctas .btn--ghost { background: rgba(255,255,255,.6); backdrop-filter: blur(6px); }
.hero__ctas .btn--ghost:hover { background: var(--navy); }

.hero__stats {
  list-style: none; margin: clamp(48px, 8vw, 96px) 0 0; padding: 22px clamp(16px, 3vw, 40px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 28px; box-shadow: var(--shadow);
}
.hero__stats li { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 6px 12px; }
.hero__stats li + li { border-left: 1.5px solid rgba(0, 30, 68, .18); }
.hero__stats svg {
  flex: none; width: 52px; height: 52px;
  fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.hero__stats div { display: flex; flex-direction: column; line-height: 1.2; }
.hero__stats b { font-family: var(--font-head); font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; color: var(--navy); }
.hero__stats div > span { font-size: 15px; font-weight: 500; color: var(--ink); }

@media (max-width: 960px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .hero__stats li { justify-content: flex-start; }
  .hero__stats li:nth-child(3) { border-left: 0; }
}
@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero::after { background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.82) 55%, rgba(255,255,255,.3) 85%); }
}
@media (max-width: 760px) {
  .hero__bg img { object-position: 78% 50%; }
  .hero::after {
    background: linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.86) 50%, rgba(255,255,255,.4) 78%, rgba(255,255,255,.25) 100%);
  }
  .eyebrow--line::before { width: 32px; }
}
@media (max-width: 480px) {
  .hero__stats { grid-template-columns: 1fr 1fr; padding: 16px 10px; border-radius: 22px; }
  .hero__stats li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero__stats svg { width: 38px; height: 38px; }
  .hero__stats div > span { font-size: 13px; }
}

.projects { padding-top: clamp(40px, 6vw, 72px); }
.chips-wrap { position: relative; margin-bottom: clamp(28px, 4vw, 44px); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 16px;
}
.tile--large.is-lead { grid-column: span 2; grid-row: span 2; }
.tile--large.is-lead .tile__cap strong { font-size: clamp(20px, 2.4vw, 28px); }
.tile[hidden] { display: none; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; } }
@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr; grid-auto-rows: 240px; gap: 12px; }
  .tile--large.is-lead { grid-column: auto; grid-row: span 1; }
  .tile__cap { transform: none; }
}
.tiles__loading { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; padding: 60px 0; }
.tiles__loading span { width: 10px; height: 10px; border-radius: 50%; background: var(--navy); animation: dot 1s infinite ease-in-out; }
.tiles__loading span:nth-child(2) { animation-delay: .15s; }
.tiles__loading span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .2; transform: scale(.8); } 50% { opacity: 1; transform: none; } }
.tiles .load-error { grid-column: 1 / -1; }

/* About */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__text .lead { margin-top: 24px; }
.about__card { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.about__card img { width: 100%; max-width: 360px; height: auto; margin: 0 auto 28px; }
.facts { margin: 0; display: grid; gap: 14px; }
.facts div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; font-weight: 500; }
.facts a { color: var(--navy); }
.facts a:hover { text-decoration: underline; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service {
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px 26px; text-align: center;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service__ico {
  width: 92px; height: 92px; margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 50%; border: 3px solid var(--navy);
  transition: transform .5s var(--ease-out);
}
.service:hover .service__ico { transform: rotate(-8deg) scale(1.06); }
.service__ico img { width: 52px; height: 52px; object-fit: contain; }
.service h3 { font-size: 20px; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .services { grid-template-columns: 1fr; } }

/* Numbers (navy band, white rings) */
.numbers { background: var(--navy); color: var(--white); padding-block: clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.numbers::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.numbers__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__ring {
  width: 132px; height: 132px; margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 50%; border: 6px solid var(--white);
}
.stat__ring b { font-family: var(--font-head); font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
@media (max-width: 760px) {
  .numbers__grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .stat__ring { width: 108px; height: 108px; border-width: 5px; }
  .stat__ring b { font-size: 32px; }
}

/* Contact */
.contact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.contact__card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 26px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease-out), background .3s, color .3s, box-shadow .35s;
  min-width: 0;
}
.contact__card strong { font-family: var(--font-head); color: var(--navy); font-size: 18px; overflow-wrap: anywhere; transition: color .3s; }
.contact__card span { color: var(--muted); font-size: 14px; transition: color .3s; }
.contact__card .contact__k { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.contact__card:hover { background: var(--navy); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact__card:hover strong, .contact__card:hover span { color: var(--white); }
.contact__card--wide { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
@media (max-width: 960px) { .contact { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .contact { grid-template-columns: 1fr; } }


@media (max-width: 600px) {
  .chips {
    --fl: 0px; --fr: 0px;
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px;
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: x mandatory; scrollbar-width: none;
    overscroll-behavior-x: contain; touch-action: pan-x pan-y;
    cursor: grab; user-select: none; -webkit-user-select: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent);
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; scroll-snap-align: start; }
  .chips-wrap.can-prev .chips { --fl: 56px; }
  .chips-wrap.can-next .chips { --fr: 56px; }
  .chips.is-dragging { cursor: grabbing; scroll-snap-type: none; }
  .chips-nav {
    display: grid; place-items: center;
    position: absolute; z-index: 2; top: 2px; width: 40px; height: 40px;
    border: 0; border-radius: 50%; padding: 0;
    background: var(--navy); color: var(--white); box-shadow: var(--shadow);
    font-size: 22px; line-height: 1;
    opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .chips-nav--prev { left: -8px; transform: translateX(-6px); }
  .chips-nav--next { right: -8px; transform: translateX(6px); }
  .chips-wrap.can-prev .chips-nav--prev,
  .chips-wrap.can-next .chips-nav--next { opacity: 1; pointer-events: auto; transform: none; }
}
@media (min-width: 601px) { .chips-nav { display: none; } }

/* =========================================================
   Project page
   ========================================================= */
.project { min-height: 70vh; }
.project__loading { padding-top: calc(var(--header-h) + 120px); }
.project__empty { padding-top: calc(var(--header-h) + 120px); padding-bottom: 120px; text-align: center; }
.project__empty .lead { margin: 16px 0 32px; }
.h-sub { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }

.phero { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 72px)); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--navy); font-weight: 600; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); }
.phero__head { max-width: 860px; margin-bottom: clamp(24px, 4vw, 40px); }
.phero__title { font-size: clamp(34px, 5.6vw, 64px); letter-spacing: -.025em; }
.phero__head .lead { margin-top: 14px; }
.phero__cover {
  position: relative; display: block; overflow: hidden;
  border-radius: 22px; aspect-ratio: 16 / 8; background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.phero__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.phero__cover:hover img { transform: scale(1.03); }
.phero__count {
  position: absolute; right: 16px; bottom: 16px;
  background: rgba(255, 255, 255, .92); color: var(--navy);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
@media (max-width: 600px) { .phero__cover { aspect-ratio: 4 / 3; border-radius: 16px; } }

.pbody__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; margin-bottom: clamp(48px, 7vw, 80px); }
.pbody__text .lead { margin: 24px 0 32px; }
.pfacts { background: var(--surface); border-radius: 18px; padding: 8px 28px 24px; }
.pfacts div:first-child { border-top: 0; }
@media (max-width: 860px) { .pbody__grid { grid-template-columns: 1fr; } }

.pgallery { columns: 3 280px; column-gap: 16px; }
.pgallery__item {
  display: block; margin-bottom: 16px; break-inside: avoid;
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
}
.pgallery__item img { width: 100%; height: auto; transition: transform .8s var(--ease-out), filter .4s; }
.pgallery__item:hover img { transform: scale(1.04); }

.pnav { padding-block: 0 clamp(64px, 9vw, 110px); }
.pnav__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pnav__card {
  position: relative; display: flex; align-items: flex-end;
  min-height: 180px; border-radius: 18px; overflow: hidden; isolation: isolate;
  color: var(--white); padding: 22px;
}
.pnav__card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.pnav__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,20,46,.15), rgba(0,20,46,.85)); }
.pnav__card:hover img { transform: scale(1.06); }
.pnav__card--next { justify-content: flex-end; text-align: right; }
.pnav__card small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.pnav__card strong { font-family: var(--font-head); font-size: clamp(18px, 2.2vw, 24px); }
.pnav__all { text-align: center; margin-top: 32px; }
@media (max-width: 600px) { .pnav__grid { grid-template-columns: 1fr; } .pnav__card--empty { display: none; } }
