/* Self-hosted fonts (no Google Fonts request → better privacy and speed).
   Both families are licensed under the SIL Open Font License (see licence files in /assets/fonts). */
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* Design tokens — taken 1:1 from the Figma "style-guide" frame.
   Change a value here and it updates everywhere on the site. */
:root {
  /* Colours */
  --navy-dark: #062144;
  --navy: #1e3a5f;
  --orange: #e8732a;
  --white: #ffffff;
  --light-gray: #f5f4f0;
  --stroke-gray: #d4d2c9;
  --mid-gray: #bcbbb9;
  --dark-gray: #515151;

  /* Fonts */
  --font-heading: "Archivo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Typography — desktop scale */
  --fs-display: 56px;
  --fs-h1: 44px;
  --fs-h2: 36px;
  --fs-h3: 24px;
  --fs-h4: 20px;
  --fs-h5: 16px;
  --fs-button: 14px;
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-body-sm: 14px;
  --fs-label: 14px;
  --fs-tag: 12px;
  --fs-caption: 11px;

  /* Spacing scale */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-80: 80px;
  --space-120: 120px;

  /* Radius */
  --radius: 24px;
  --radius-pill: 100px;

  /* Layout */
  --page-pad: 80px;
  --content-max: 1280px;
  --section-pad: 120px;
}

/* Mobile scale (Figma "Mobile Typographie") */
@media (max-width: 767px) {
  :root {
    --fs-display: 36px;
    --fs-h1: 30px;
    --fs-h2: 26px;
    --fs-h3: 20px;
    --fs-h4: 18px;
    --fs-h5: 14px;
    --fs-body-lg: 16px;
    --fs-body: 15px;
    --fs-body-sm: 13px;
    --fs-label: 13px;
    --fs-tag: 11px;
    --fs-caption: 10px;

    --page-pad: 16px;
    --section-pad: 60px;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  :root {
    --page-pad: 40px;
    --section-pad: 80px;
    --fs-display: 48px;
    --fs-h1: 38px;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--light-gray);
  color: var(--dark-gray);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, h5, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--navy-dark);
}
.t-display { font-size: var(--fs-display); }
.t-h1 { font-size: var(--fs-h1); }
.t-h2 { font-size: var(--fs-h2); }
.t-h3 { font-size: var(--fs-h3); }
.t-h4 { font-size: var(--fs-h4); }
.t-h5 { font-size: var(--fs-h5); }
.t-body-lg { font-size: var(--fs-body-lg); }
.t-body-sm { font-size: var(--fs-body-sm); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--navy-dark); color: var(--white); padding: 12px 20px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Layout helpers */
.section { padding: var(--section-pad) var(--page-pad); }
.section--bordered { border-bottom: 1px solid var(--stroke-gray); }
.section--bordered-y { border-block: 1px solid var(--stroke-gray); }
.section--navy { background: var(--navy); }
.section__inner { max-width: var(--content-max); margin-inline: auto; }

/* Scroll reveal (disabled for reduced-motion users) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--delay, 0s); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-pill); border: 1px solid transparent;
  font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-button);
  text-transform: uppercase; white-space: nowrap; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn .icon { transition: transform .25s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--navy-dark); }
.btn--outline-light { border-color: var(--white); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--navy-dark); }

/* ---------- Section tag ---------- */
.tag {
  display: inline-flex; padding: 7px 13px; border-radius: 135px;
  background: rgba(232, 115, 42, 0.1); color: var(--orange);
  font-weight: 700; font-size: var(--fs-label); text-transform: uppercase; white-space: nowrap;
}
.tag--on-dark { background: rgba(255, 255, 255, 0.1); }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--light-gray);
  border-top: 3px solid var(--orange);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease;
}
/* Hides on scroll down, returns on scroll up (see main.js) */
.site-header.is-hidden { transform: translateY(-101%); }
.site-header.is-stuck { box-shadow: 0 8px 24px rgba(6, 33, 68, .08); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 88px; padding: 24px var(--page-pad);
}
.logo img { width: 156px; height: auto; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; padding: 20px 8px;
  font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-button);
  text-transform: uppercase; color: var(--dark-gray); transition: color .2s ease;
}
.nav__link:hover { color: var(--orange); }
.nav__link[aria-current="page"] { color: var(--orange); text-decoration: underline; text-underline-position: from-font; }

.dropdown {
  position: absolute; left: 0; top: 100%; min-width: 280px; padding: 12px;
  background: var(--white); border: 1px solid var(--stroke-gray); border-radius: 16px;
  box-shadow: 0 16px 40px rgba(6, 33, 68, 0.12);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav__item:hover > .dropdown, .nav__item:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a {
  display: block; padding: 12px 16px; border-radius: 10px;
  font-size: var(--fs-body-sm); font-weight: 600; color: var(--navy-dark);
  transition: background-color .2s ease, color .2s ease;
}
.dropdown a:hover { background: var(--light-gray); color: var(--orange); }

.burger {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--stroke-gray); border-radius: 50%;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 18px; height: 2px; background: var(--navy-dark); content: ""; position: relative;
  transition: transform .25s ease, background-color .25s ease;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy-dark); color: var(--white); padding: 24px var(--page-pad) 40px;
  max-height: calc(100vh - 91px); overflow-y: auto;
}
.mobile-menu[data-open="true"] { display: block; }
.m-item { border-bottom: 1px solid rgba(255,255,255,.15); }
.m-row { display: flex; align-items: center; justify-content: space-between; }
.m-row > a { flex: 1; display: block; padding: 14px 0; font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; }
.mobile-menu a[aria-current="page"] { color: var(--orange); }
.m-toggle { position: relative; flex: none; width: 44px; height: 44px; background: none; border: 0; }
.m-toggle::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -7px 0 0 -5px; border-right: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(45deg); transition: transform .25s ease; }
.m-toggle[aria-expanded="true"]::before { transform: rotate(-135deg); margin-top: -2px; }
.mobile-menu .sub { padding-bottom: 12px; }
.mobile-menu .sub a { display: block; padding: 10px 0 10px 16px; font-family: var(--font-body); font-weight: 500; text-transform: none; font-size: var(--fs-body-sm); color: var(--mid-gray); }
.mobile-menu .sub a:hover { color: var(--white); }
.mobile-menu a.btn { display: inline-flex; width: 100%; margin-top: 28px; padding: 14px 28px; border-bottom: 0; font-family: var(--font-heading); font-weight: 600; color: var(--white); }
.mobile-menu a.btn:hover { background: var(--white); color: var(--navy-dark); }

@media (max-width: 1099px) {
  .nav, .site-header__inner > .btn { display: none; }
  .burger { display: flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: 789px; padding: 0 var(--page-pad); overflow: hidden; background: var(--navy-dark); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #062144 0.8%, rgba(6, 33, 68, 0) 57.7%); }
.hero__content { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; max-width: 740px; }
.hero__content h1 { font-size: var(--fs-display); color: var(--white); }
.hero__content p { max-width: 566px; font-size: var(--fs-body-lg); color: var(--light-gray); }
@media (max-width: 767px) {
  .hero { min-height: 640px; align-items: flex-end; padding-bottom: 56px; }
  .hero__media::after { background: linear-gradient(180deg, rgba(6,33,68,.35) 0%, rgba(6,33,68,.92) 70%); }
  .hero__content { gap: 24px; }
}

/* ---------- Split section (image + text) ---------- */
.split { display: flex; align-items: center; justify-content: center; gap: 80px; }
.split__media { flex: none; width: 471px; aspect-ratio: 471 / 646; border-radius: var(--radius); overflow: hidden; background: var(--stroke-gray); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; width: 566px; max-width: 100%; }
.prose { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1099px) {
  /* Tablet: tag, heading, image, then text (same order as mobile) */
  .split { flex-direction: column; align-items: stretch; gap: 32px; }
  .split__body { display: contents; }
  .split__body > .tag { order: 1; align-self: flex-start; }
  .split__body > h1, .split__body > h2 { order: 2; }
  .split__media { order: 3; width: 100%; max-width: 471px; }
  .split__body > .prose { order: 4; }
}
/* Mobile (Figma 128:674): tag, heading, image, then text */
@media (max-width: 767px) {
  .split { align-items: flex-start; gap: 24px; }
  .split__body { display: contents; }
  .split__body > .tag { order: 1; }
  .split__body > h1, .split__body > h2 { order: 2; }
  .split__media { order: 3; width: 100%; max-width: none; aspect-ratio: auto; height: 240px; border-radius: 16px; }
  .split__body > .prose { order: 4; gap: 16px; }
  .split__body > .prose p:nth-child(n + 3) { display: none; }
  .section.section--about { padding-bottom: 64px; }
}

/* ---------- Section header ---------- */
.section--bleed { padding-right: 0; }
.section__inner--wide { max-width: none; }
.stack { display: flex; flex-direction: column; gap: var(--space-56); }
.section-head--pad { padding-right: var(--page-pad); }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.section-head__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.scroll-hint { display: flex; align-items: center; gap: 12px; font-size: var(--fs-body-sm); text-transform: uppercase; white-space: nowrap; }
.scroll-hint::after { content: ""; width: 40px; height: 1px; background: var(--dark-gray); }
/* Section heads on a navy background (Home: Explore current projects) */
.section--navy .section-head h2 { color: var(--white); }
.section--navy .scroll-hint { color: var(--mid-gray); }
.section--navy .scroll-hint::after { background: var(--mid-gray); }
@media (max-width: 767px) { .section-head { flex-direction: column; gap: 20px; } .scroll-hint { display: none; } .section--bleed { padding-right: var(--page-pad); } .section-head--pad { padding-right: 0; } .stack { gap: 32px; } }

/* ---------- Cards ---------- */
.arrow-btn {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--navy-dark);
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.arrow-btn .icon { width: 16px; height: 16px; }

.project-card {
  position: relative; display: block; flex: none; width: 380px; overflow: hidden;
  background: var(--white); border: 1px solid var(--stroke-gray); border-radius: var(--radius);
  scroll-snap-align: start;
  transition: transform .3s ease, box-shadow .3s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(6, 33, 68, 0.1); }
.project-card__img { height: 280px; overflow: hidden; background: var(--stroke-gray); }
.project-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card:hover .project-card__img img { transform: scale(1.05); }
/* Second photo (Figma hover state) fades in over the first */
.project-card__img { position: relative; }
.project-card__alt { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.project-card:hover .project-card__alt, .project-card:focus-visible .project-card__alt { opacity: 1; }
.project-card__alt img { transform: none !important; }
.project-card__body { display: flex; flex-direction: column; gap: 4px; padding: 24px; }
.project-card__title { font-size: 18px; }
.project-card__meta { font-size: var(--fs-body-sm); color: var(--dark-gray); }
.project-card .arrow-btn { position: absolute; top: 10px; right: 10px; }
.project-card:hover .arrow-btn, .service-card:hover .arrow-btn { background: var(--orange); color: var(--white); transform: rotate(45deg); }

/* padding/negative margin give the hover shadow room so the scroll container does not clip it into hard edges */
.carousel { display: flex; gap: 24px; overflow-x: auto; padding: 28px var(--page-pad) 64px 36px; margin: -28px 0 -64px -36px; scroll-padding-left: 36px; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; }
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.carousel.is-dragging a { pointer-events: none; }
@media (max-width: 767px) {
  /* Figma 128:682 – stacked cards, no horizontal scroll */
  .carousel { flex-direction: column; gap: 16px; overflow: visible; padding: 0; margin: 0; cursor: auto; }
  .project-card { width: 100%; }
  .project-card__img { height: 240px; }
  .project-card:hover { transform: none; box-shadow: none; }
}

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 20px; }
.service-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 140px; padding: 24px; height: 100%; overflow: hidden; isolation: isolate;
  background: var(--navy); border: 1px solid var(--stroke-gray); border-radius: var(--radius);
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(6, 33, 68, 0.2); }
.service-card .arrow-btn { align-self: flex-end; }
.service-card__title { font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-h5); color: var(--white); }
@media (max-width: 1099px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .service-grid { grid-template-columns: 1fr; gap: 16px; } .service-card { min-height: 120px; padding: 20px; } }

/* ---------- Stats ---------- */


/* ---------- Checklist ---------- */
.deliverables { display: flex; justify-content: space-between; align-items: center; gap: 80px; }
.deliverables__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; width: 562px; max-width: 100%; }
.checklist { width: 515px; max-width: 100%; }
.check-item { display: flex; align-items: center; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--stroke-gray); font-size: var(--fs-body-lg); }
.check-item:last-child { border-bottom: 0; }
.check-item__mark { font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-h5); color: var(--navy); }
.check-item strong { display: block; font-weight: 700; color: var(--navy-dark); line-height: 24px; }
.check-item span { line-height: 24px; }
@media (max-width: 1099px) { .deliverables { flex-direction: column; align-items: flex-start; gap: 40px; } .checklist { width: 100%; } }
/* Mobile: CTA sits at the bottom of the section, after the checklist */
@media (max-width: 767px) {
  .deliverables { gap: 24px; }
  .deliverables__intro { display: contents; }
  .deliverables__intro > .tag { order: 1; }
  .deliverables__intro > h2 { order: 2; }
  .deliverables__intro > p { order: 3; }
  .checklist { order: 4; }
  .deliverables__intro > .btn { order: 5; width: 100%; margin-top: 8px; }
  .check-item { padding: 20px 0; gap: 16px; font-size: var(--fs-body); }
}

/* ---------- CTA banner ---------- */
.cta { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; min-height: 500px; padding: 80px var(--page-pad); text-align: center; overflow: hidden; background: var(--navy); }
.cta__media { position: absolute; inset: 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__media::after { content: ""; position: absolute; inset: 0; background: rgba(30, 58, 95, 0.7); }
.cta > :not(.cta__media) { position: relative; }
.cta h2 { max-width: 700px; font-size: var(--fs-h1); color: var(--white); }
.cta p { max-width: 500px; color: var(--mid-gray); }
@media (max-width: 767px) { .cta { min-height: 420px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: var(--mid-gray); padding: 80px var(--page-pad) 40px; }
.site-footer__cols { display: flex; gap: 96px; padding-right: 40px; }
.site-footer__top { display: flex; justify-content: space-between; gap: 40px; max-width: var(--content-max); margin-inline: auto; }
.site-footer__brand { display: flex; flex-direction: column; gap: 10px; max-width: 777px; }
.site-footer__brand img { width: 128px; height: auto; }
.site-footer h2 { font-family: var(--font-body); font-size: var(--fs-tag); font-weight: 700; color: var(--orange); text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { display: flex; flex-direction: column; gap: 10px; font-size: var(--fs-body-sm); }
.site-footer ul.plain { gap: 16px; }
.site-footer__person { display: flex; flex-direction: column; gap: 4px; }
.site-footer__name { color: var(--white); font-weight: 600; }
.site-footer a { transition: color .2s ease; }
.site-footer a:hover { color: var(--white); }
.site-footer .links a { text-decoration: underline; text-underline-position: from-font; }
.site-footer__bottom { max-width: var(--content-max); margin: 24px auto 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.2); text-align: left; font-size: var(--fs-caption); text-transform: uppercase; }
@media (max-width: 767px) { .site-footer { padding-top: 56px; } .site-footer__top { flex-direction: column; } .site-footer__cols { flex-direction: column; gap: 32px; padding-right: 0; } }

/* Survey-mesh pattern used on navy cards (9% opacity, 358px tile — from Figma) */
.pattern-bg { position: relative; isolation: isolate; }
.pattern-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .28; border-radius: inherit; background: url("/assets/images/services-pattern.webp") top left / 358px 358px; pointer-events: none; }

/* ---------- Utilities ---------- */
.m-only { display: none; }
@media (max-width: 767px) { .d-only { display: none; } .m-only { display: inline; } }
.text-link { font-weight: 700; color: var(--navy-dark); text-decoration: underline; text-underline-position: from-font; transition: color .2s ease; }
a.text-link:hover { color: var(--orange); }
.text-link.is-disabled { color: var(--navy); opacity: .55; cursor: not-allowed; }

.services-intro { max-width: 800px; gap: var(--space-32); }
/* Mobile: section tags sit closer to their heading */
@media (max-width: 767px) {
  .section-head__text { gap: 12px; }
  .services-intro { gap: 12px; }
  .split__body > .tag, .deliverables__intro > .tag { margin-bottom: -12px; }
  .sectors-section .section__inner, .section__inner.stack { gap: 24px; }
}

/* ---------- Shared page pieces ---------- */
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-button); text-transform: uppercase; color: var(--navy); }
.breadcrumb__label { text-decoration: underline; text-underline-position: from-font; color: var(--navy-dark); }
.icon--crosshair { width: 12px; height: 12px; flex: none; color: var(--orange); }

.detail-hero { padding: 48px var(--page-pad) 32px; border-bottom: 1px solid var(--stroke-gray); border-top: 1px solid var(--stroke-gray); }
.detail-hero .section__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.detail-hero p { max-width: 783px; color: var(--dark-gray); }
.band { aspect-ratio: 1440 / 406; min-height: 200px; overflow: hidden; background: var(--stroke-gray); }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band--service { aspect-ratio: 1440 / 406; }

/* Offer (Figma 25:3151 desktop / 128:974 mobile) */
.offer { display: flex; gap: 64px; align-items: flex-start; }
.offer__intro { flex: none; width: 520px; max-width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.deliverable-list { flex: 1; min-width: 0; padding: 24px; background: var(--white); border: 1px solid var(--stroke-gray); border-radius: var(--radius); }
.deliverable { display: flex; align-items: flex-start; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--stroke-gray); font-size: var(--fs-body-lg); letter-spacing: .5px; line-height: 24px; }
.deliverable:last-child { border-bottom: 0; }
.deliverable__mark { flex: none; padding-top: 6px; }
.deliverable strong { display: block; color: var(--navy-dark); font-weight: 700; }
.deliverable span { color: var(--dark-gray); }
@media (max-width: 1099px) { .offer { flex-direction: column; gap: 40px; } .offer__intro { width: 100%; } .deliverable-list { width: 100%; } }
@media (max-width: 767px) {
  .offer-section { background: var(--white); }
  .offer { gap: 24px; }
  .offer__intro { gap: 24px; }
  .offer__intro > p { display: none; }
  .offer__intro h2 { font-size: var(--fs-h2); }
  .deliverable-list { padding: 0; background: none; border: 0; border-radius: 0; }
  .deliverable { display: block; padding: 0 0 12px; margin-bottom: 16px; letter-spacing: 0; line-height: 1.3; font-size: var(--fs-body); }
  .deliverable:last-child { margin-bottom: 0; padding-bottom: 0; }
  .deliverable__mark { display: none; }
  .deliverable strong { margin-bottom: 8px; font-family: var(--font-heading); font-size: 20px; }
  .deliverable span { line-height: normal; }
}

/* Progress cards */
.progress-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.progress-card { display: flex; flex-direction: column; gap: 32px; padding: 32px; background: var(--white); border: 1px solid var(--stroke-gray); border-radius: 20px; font-size: var(--fs-body-sm); transition: transform .3s ease, box-shadow .3s ease; }
.progress-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(6, 33, 68, .1); }
.progress-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.progress-card__no { font-weight: 700; font-size: var(--fs-tag); color: var(--orange); }
.progress-card__arrow { color: var(--mid-gray); display: flex; }
.progress-card__body { display: flex; flex-direction: column; gap: 4px; }
.progress-card__title { font-size: var(--fs-h5); }
@media (max-width: 1099px) { .progress-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .progress-grid { grid-template-columns: 1fr; gap: 16px; }
  .progress-card { padding: 24px; gap: 16px; }
  .progress-card__arrow { transform: rotate(90deg); }
}

/* Table of projects (About "Selected Project Experience", service "Previous projects") – Figma 25:2927 / 128:816 */
.table-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--stroke-gray); }
.table-row__title { display: flex; align-items: center; gap: 24px; font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-h5); color: var(--navy-dark); }
.table-row__link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-h5); color: var(--navy-dark); white-space: nowrap; transition: color .2s ease; }
.table-row__text { text-decoration: underline; text-underline-position: from-font; }
.table-row__link .icon { width: 16px; height: 16px; flex: none; }
a.table-row__link:hover { color: var(--orange); }
a.table-row__link:hover .icon path { stroke: var(--orange); }
.table-row__link.is-disabled { opacity: .4; cursor: not-allowed; }
@media (max-width: 767px) {
  .table-row { padding: 16px 0; gap: 12px; }
  .table-row__title { gap: 12px; font-family: var(--font-body); font-weight: 700; font-size: var(--fs-body-sm); }
  .table-row__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table-row__link::after { content: ""; position: absolute; inset: 0; }
}

/* ---------- Contact ---------- */
.page-band { height: 369px; overflow: hidden; border-block: 1px solid var(--stroke-gray); background: var(--navy-dark); }
.page-band__media, .page-band img { width: 100%; height: 100%; }
.page-band img { object-fit: cover; }
@media (max-width: 767px) { .page-band { height: 200px; } }
.contact { padding-block: 64px; }
.contact__grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 64px; }
.contact__people { width: 312px; display: flex; flex-direction: column; gap: 48px; }
.person { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.person__role { font-size: var(--fs-body); }
.person dl { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.person dt { font-size: var(--fs-caption); color: var(--orange); text-transform: uppercase; margin-bottom: 4px; }
.person dd { margin: 0; font-size: var(--fs-body-sm); color: var(--navy); word-break: break-word; }
.person dd a:hover { color: var(--orange); }
.form { width: 640px; max-width: 100%; display: flex; flex-direction: column; gap: 32px; padding: 40px 40px 32px; background: var(--white); border: 1px solid var(--stroke-gray); border-radius: 20px; }
.form__grid { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: flex; gap: 16px; }
.form__row .field { flex: 1; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--fs-caption); text-transform: uppercase; color: var(--dark-gray); }
.field input, .field textarea { width: 100%; padding: 12px; border: 1px solid var(--stroke-gray); border-radius: var(--radius-pill); background: var(--light-gray); font: inherit; font-size: var(--fs-body-sm); color: var(--navy); transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { min-height: 100px; border-radius: 20px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--mid-gray); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232, 115, 42, .2); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.form .btn { width: 100%; }
.form__status { font-size: var(--fs-body-sm); }
.form__status:empty { margin-top: -32px; }
.form__status[data-state="error"] { color: #b3261e; }
.form__status[data-state="ok"] { color: var(--navy); }
@media (max-width: 1099px) { .contact__grid { flex-direction: column; } .contact__people { width: 100%; } .form { width: 100%; } }
@media (max-width: 767px) {
  .form__row { flex-direction: column; }
  .form__row, .form__grid { gap: 16px; }
}
/* Mobile (Figma 287:1092): enquiry form directly under the image, then the contact cards */
@media (max-width: 767px) {
  .section.contact { padding: 0; }
  .contact__grid { gap: 0; }
  .form { order: -1; width: 100%; gap: 20px; padding: 60px var(--page-pad); background: var(--white); border: 0; border-block: 1px solid var(--stroke-gray); border-radius: 0; }
  .form .t-h3 { font-size: var(--fs-h3); }
  .field label { font-size: var(--fs-tag); font-weight: 700; }
  .field input, .field textarea { font-size: var(--fs-body); }
  .field textarea { border-radius: 16px; height: 100px; }
  .contact__people { padding: 60px var(--page-pad); gap: 48px; }
  .person { gap: 12px; }
  .person h1, .person h2 { font-size: var(--fs-h1); }
  .person__role { font-weight: 600; font-size: var(--fs-body-lg); }
  .person dl { gap: 16px; width: 100%; margin-top: 12px; padding: 20px; background: var(--white); border: 1px solid var(--stroke-gray); border-radius: 16px; }
  .person dl > div + div { padding-top: 16px; border-top: 1px solid var(--stroke-gray); }
  .person dt { font-size: var(--fs-tag); font-weight: 700; }
  .person dd { font-size: var(--fs-label); font-weight: 700; color: var(--navy-dark); }
}

/* ---------- Current Projects (desktop accordion, mobile cards) ----------
   Hover (or focus / scroll position on touch) opens a row: the photo opens like a cinema curtain from
   the centre to left and right, the tag fades out and the heading slides up into its place.
   It stays open until the pointer leaves the whole section. */
.project-rows { display: flex; flex-direction: column; background: var(--navy); }
.project-rows__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.project-row { position: relative; display: flex; flex-direction: column; justify-content: space-between; height: 560px; padding: 48px var(--page-pad) 52px; overflow: hidden; isolation: isolate; border-bottom: 1px solid rgba(255, 255, 255, .2); color: var(--white); }
.project-row:last-child { border-bottom: 0; }
.project-row__media { position: absolute; inset: 0; z-index: -1; clip-path: inset(0 50% 0 50%); transition: clip-path .9s cubic-bezier(.77, 0, .175, 1); }
.project-row__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s cubic-bezier(.22, 1, .36, 1); }
.project-row__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 33, 68, .55) 0%, rgba(6, 33, 68, .1) 45%, rgba(6, 33, 68, .7) 100%); }
.project-row.is-active .project-row__media { clip-path: inset(0 0 0 0); }
.project-row.is-active .project-row__media img { transform: scale(1); }
.project-row__top { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.project-row__tag { transition: opacity .35s ease, transform .5s cubic-bezier(.22, 1, .36, 1); }
.project-row__title { font-size: var(--fs-h1); color: var(--white); max-width: 680px; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.project-row.is-active .project-row__tag { opacity: 0; transform: translateY(-12px); }
.project-row.is-active .project-row__title { transform: translateY(-52px); }
.project-row__cat { display: none; }
.project-row__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.project-row__loc { display: flex; align-items: center; gap: 8px; font-size: var(--fs-body-sm); }
.project-row__cta { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .4); transition: transform .5s cubic-bezier(.22, 1, .36, 1), background-color .35s ease, color .35s ease; }
.project-row__cta .icon { width: 22px; height: 22px; }
.project-row.is-active .project-row__cta { background: var(--orange); color: var(--white); transform: scale(1.1) rotate(-45deg); }
/* Users without JS: photo simply shows on hover/focus */
html:not(.js) .project-row:hover .project-row__media, .project-row:focus-visible .project-row__media { clip-path: inset(0); }
@media (prefers-reduced-motion: reduce) { .project-row__media, .project-row__media img { transition: none !important; } }

/* Mobile cards – Figma 134:1241 */
@media (max-width: 767px) {
  .project-rows { background: none; gap: 24px; padding: 60px var(--page-pad); }
  .project-rows__title { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; font-size: var(--fs-h1); }
  .project-rows > .project-row + .project-row { margin-top: -8px; }
  .project-row { height: auto; padding: 0; gap: 0; background: var(--navy); border: 1px solid var(--stroke-gray); border-radius: 20px; }
  .project-row:last-child { border-bottom: 1px solid var(--stroke-gray); }
  .project-row__media { position: relative; z-index: 0; inset: auto; height: 280px; clip-path: none; transition: none; }
  .project-row__media img { transform: none; }
  .project-row__media::after { display: none; }
  .project-row__top { gap: 4px; padding: 24px; }
  .project-row__tag, .project-row__loc { display: none; }
  .project-row__title { font-size: var(--fs-h4); max-width: none; }
  .project-row.is-active .project-row__title, .project-row.is-active .project-row__tag { transform: none; opacity: 1; }
  .project-row__cat { display: block; font-size: var(--fs-body-sm); color: var(--mid-gray); }
  .project-row__bottom { position: absolute; top: 10px; left: 10px; }
  .project-row__cta { width: 44px; height: 44px; background: var(--white); color: var(--navy-dark); transform: rotate(-45deg); }
  .project-row__cta .icon { width: 16px; height: 16px; }
  .project-row.is-active .project-row__cta { background: var(--white); color: var(--navy-dark); transform: rotate(-45deg); }
}


/* ---------- Project detail ---------- */
.band--tall { aspect-ratio: auto; height: 773px; }
.overview { padding-top: 56px; }
.overview__inner { display: flex; flex-direction: column; gap: 48px; }
.overview__meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: 40px; row-gap: 16px; }
.overview__site { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-size: var(--fs-button); text-transform: uppercase; }
.overview__coord { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-button); text-transform: uppercase; color: var(--navy-dark); }
/* Gallery: balanced masonry – any number of photos, any orientation, nothing cropped */
.gallery { column-count: 3; column-gap: 24px; }
.gallery__item { margin: 0 0 24px; break-inside: avoid; overflow: hidden; border-radius: var(--radius); background: var(--stroke-gray); }
.gallery__item img { width: 100%; height: auto; transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:first-child { column-span: none; }
/* Few photos: show them larger */
.gallery--1 { column-count: 1; max-width: 880px; }
.gallery--2, .gallery--4 { column-count: 2; column-gap: 24px; }

/* The project scope (Figma 25:3446): heading left, numbered phases with a short description on the right */
.scope { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; }
.scope h2 { color: var(--white); }
.scope__list { min-width: 0; }
.scope__list li { display: grid; grid-template-columns: 40px 1fr; column-gap: 24px; row-gap: 8px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); color: var(--white); }
.scope__list li:first-child { padding-top: 0; }
.scope__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.scope__list .scope__no { font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-button); color: var(--orange); }
.scope__title { font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-h4); color: var(--white); }
.scope__desc { grid-column: 2; font-size: var(--fs-body-lg); line-height: 1.5; color: var(--mid-gray); }
@media (max-width: 1099px) {
  .band--tall { height: 480px; }
  .gallery { column-count: 2; column-gap: 20px; }
  .gallery.gallery--1 { column-count: 1; }
  .gallery__item { margin-bottom: 20px; }
  /* Tablet: heading above, two-column phase grid */
  .scope { grid-template-columns: 1fr; gap: 40px; }
  .scope__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .scope__list li, .scope__list li:first-child, .scope__list li:last-child { padding: 24px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
  .scope__list li:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 767px) {
  .band--tall { height: 320px; }
  .gallery { column-count: 1; }
  /* Figma 134:1369 */
  .scope { gap: 42px; }
  .scope h2 { font-size: var(--fs-h2); }
  .scope__list { display: flex; flex-direction: column; gap: 24px; }
  .scope__list li, .scope__list li:first-child, .scope__list li:last-child { grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 8px; align-items: center; padding: 0 0 24px; border-bottom: 1px solid rgba(255, 255, 255, .13); }
  .scope__list li:nth-last-child(-n + 2) { border-bottom: 1px solid rgba(255, 255, 255, .13); }
  .scope__no { font-size: var(--fs-h5); font-weight: 800; }
  .scope__title { font-size: var(--fs-h4); }
  .scope__desc { grid-column: 1 / -1; font-family: var(--font-body); font-weight: 400; font-size: var(--fs-body-sm); color: var(--mid-gray); }
}


/* ---------- About: sector tabs (Figma 62:844 / 128:797) ---------- */
.sectors { max-width: 1270px; margin-inline: auto; width: 100%; }
.sectors__tabs { display: flex; }
.sectors__tab { position: relative; flex: 1; height: 64px; padding: 0 24px; background: var(--white); border: 1px solid var(--stroke-gray); border-right-width: 0; font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-h4); color: var(--dark-gray); transition: background-color .25s ease, color .25s ease; }
.sectors__tab:first-child { border-top-left-radius: var(--radius); }
.sectors__tab:last-child { border-right-width: 1px; border-top-right-radius: var(--radius); }
.sectors__tab:hover { color: var(--orange); }
.sectors__tab[aria-selected="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.sectors__tab[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: -9px; margin-left: -20px; border: 20px solid transparent; border-bottom: 0; border-top: 10px solid var(--navy); border-top-width: 10px; width: 0; height: 0; }
.sector-panel { display: flex; gap: 80px; align-items: flex-start; padding: 120px 52px 80px; background: var(--white); border: 1px solid var(--stroke-gray); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.sector-panel[hidden] { display: none; }
.sector-panel__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; line-height: 1.7; }
.sector-panel__text h3 { font-size: var(--fs-h2); line-height: 1.2; }
.sector-panel__media { flex: 1; min-width: 0; height: 367px; border-radius: var(--radius); overflow: hidden; background: var(--stroke-gray); }
.sector-panel__media img { width: 100%; height: 100%; object-fit: cover; }
.sector-panel:not([hidden]) { animation: panel-in .5s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 1099px) {
  .sectors__tab { font-size: var(--fs-h5); padding: 0 8px; }
  .sector-panel { flex-direction: column; align-items: stretch; gap: 32px; padding: 72px 32px 48px; }
  .sector-panel__media { height: 300px; }
}
/* Mobile: chip tabs and a flat detail card */
@media (max-width: 767px) {
  .sectors-section { background: var(--white); }
  .sectors__tabs { flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
  .sectors__tab { position: static; flex: none; height: auto; padding: 8px 16px; border: 1px solid var(--stroke-gray); border-radius: 8px; background: var(--light-gray); font-family: var(--font-body); font-weight: 700; font-size: var(--fs-label); color: var(--dark-gray); }
  .sectors__tab:first-child, .sectors__tab:last-child { border-radius: 8px; border-width: 1px; }
  .sectors__tab[aria-selected="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
  .sectors__tab[aria-selected="true"]::after { display: none; }
  .sector-panel { gap: 16px; padding: 0; border: 0; border-radius: 0; background: none; }
  .sector-panel__text { gap: 16px; line-height: normal; font-size: var(--fs-body); }
  .sector-panel__text h3 { font-size: var(--fs-h3); line-height: 1.3; }
  .sector-panel__media { height: auto; aspect-ratio: 358 / 193; border-radius: 12px; }
}

@media (max-width: 767px) { .band, .band--service { aspect-ratio: auto; height: 220px; min-height: 0; } .band--tall { height: 320px; } }
