/* ==========================================================================
   TRINITAS CONSULTING ENGINEERS — STYLES
   Brand: TCE v1.1 (Aug 2026). Bebas Neue headings, Montserrat body.
   ========================================================================== */

:root {
  --orange: #EF802F;
  --orange-dark: #D96E20;
  --charcoal: #30373E;
  --black: #20262B;
  --grey: #575959;
  --off: #F7F7F7;
  --line: #E0E0E0;
  --white: #FFFFFF;
  --error: #B3261E;

  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 4vw, 40px);
  --max: 1200px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--body); font-size: 1rem; line-height: 1.65; color: var(--grey); background: var(--white); }
img, video, iframe { display: block; max-width: 100%; }
a { color: var(--charcoal); text-decoration-color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
h1, h2, h3, h4, p, figure, blockquote, ul { margin: 0; }
h1, h2, h3, h4 { color: var(--charcoal); }
.display { font-family: var(--display); font-weight: 400; letter-spacing: 0.02em; line-height: 0.95; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.muted { color: #7a7d7d; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--orange); color: #fff; padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { max-width: 780px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 3px solid var(--orange); transition: box-shadow 0.2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(32, 38, 43, 0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: block; }
.brand img { height: 52px; width: auto; }
.site-nav ul { display: flex; gap: clamp(16px, 2.2vw, 34px); list-style: none; padding: 0; }
.site-nav a { display: block; padding: 6px 0; font-weight: 600; font-size: 0.95rem; color: var(--charcoal); text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--orange); }
.site-nav a[aria-current="page"] { color: var(--orange); border-bottom-color: var(--orange); }

.nav-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; position: relative; margin-right: -8px; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { position: absolute; left: 12px; width: 24px; height: 2px; background: var(--charcoal); transition: transform 0.2s, opacity 0.2s; content: ""; }
.nav-toggle .bars { top: 23px; }
.nav-toggle .bars::before { top: -7px; left: 0; }
.nav-toggle .bars::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; top: calc(var(--header-h) + 3px); left: 0; right: 0; bottom: 0; background: var(--white); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 32px; }
  .site-nav a { padding: 16px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); }
  body.nav-open { overflow: hidden; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; padding: 1rem 1.6rem; font-family: var(--body); font-weight: 600; font-size: 0.95rem; line-height: 1; border: 2px solid transparent; border-radius: 3px; text-decoration: none; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-dark); color: var(--white); }
.btn--dark { background: var(--charcoal); color: var(--white); }
.btn--dark:hover { background: var(--black); color: var(--white); }
.btn--ghost { border-color: var(--white); color: var(--white); background: transparent; }
.btn--ghost:hover { background: var(--white); color: var(--charcoal); }
.btn--outline { border-color: var(--orange); color: var(--charcoal); background: transparent; }
.btn--outline:hover { background: var(--orange); color: var(--white); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Image holders ---------- */
.ph { position: relative; overflow: hidden; background: #E6E8E9; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.is-empty { background: linear-gradient(140deg, #3B434B 0%, var(--charcoal) 60%, #2A3036 100%); }
.ph.is-empty img { display: none; }
.ph.is-empty::before { content: ""; position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8 20.8 6.9v10.2L12 22.2 3.2 17.1V6.9z' fill='none' stroke='%23EF802F' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0.9; }
.ph.is-empty::after { content: attr(data-label); position: absolute; left: 12px; right: 12px; bottom: 10px; font: 500 11px/1.4 var(--body); color: rgba(255, 255, 255, 0.72); word-break: break-all; }
.ph--light.is-empty { background: var(--white); border: 1px dashed #C4C8CB; }
.ph--light.is-empty::before { filter: grayscale(1); opacity: 0.5; }
.ph--light.is-empty::after { color: #8a8e91; }

/* ---------- Slideshow ---------- */
.slideshow { position: relative; overflow: hidden; touch-action: pan-y; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.slide.is-active { opacity: 1; }
.dots { position: absolute; z-index: 3; display: flex; gap: 8px; }
.dot { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, 0.45); cursor: pointer; }
.dot[aria-current="true"] { background: var(--orange); }
.dot::before { content: ""; display: block; margin: -10px 0; height: 24px; }
.slide-nav { position: absolute; z-index: 3; display: flex; gap: 8px; }
.slide-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--orange); cursor: pointer; display: grid; place-items: center; }
.slide-btn:hover { background: var(--orange-dark); }
.slide-btn svg, .lb-btn svg, .lb-close svg, .back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.slide-btn svg { stroke: var(--white); }

/* ---------- Homepage hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(76vh, 700px); display: flex; align-items: flex-end; background: var(--black); color: var(--white); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-media .slideshow { position: absolute; inset: 0; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(32, 38, 43, 0.92) 0%, rgba(32, 38, 43, 0.62) 48%, rgba(32, 38, 43, 0.18) 100%),
              linear-gradient(0deg, rgba(32, 38, 43, 0.75) 0%, rgba(32, 38, 43, 0) 50%); }
.hero-mark { position: absolute; z-index: -1; right: -8vw; top: 50%; width: min(62vw, 760px); transform: translateY(-50%); pointer-events: none; }
.hero-mark path { fill: none; stroke: var(--orange); stroke-width: 1.2; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 2.2s 0.2s ease-out forwards; }
.hero-mark path:nth-child(2) { stroke-width: 0.6; opacity: 0.55; animation-delay: 0.6s; }
.hero-content { position: relative; padding-block: clamp(90px, 13vh, 140px) clamp(48px, 7vh, 76px); pointer-events: none; }
.hero-content a, .hero-content button { pointer-events: auto; }
.hero h1 { color: var(--white); font-size: clamp(2.9rem, 6.6vw, 5.6rem); max-width: 16ch; text-wrap: balance; }
.hero-tags { display: flex; flex-wrap: wrap; row-gap: 6px; list-style: none; padding: 0; margin: 1.5rem 0 2.25rem; font-weight: 500; font-size: clamp(0.95rem, 1.4vw, 1.12rem); color: rgba(255, 255, 255, 0.9); }
.hero-tags li + li { margin-left: 1rem; padding-left: 1rem; border-left: 2px solid var(--orange); }
.hero-content > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-content > :nth-child(2) { animation-delay: 0.15s; }
.hero-content > :nth-child(3) { animation-delay: 0.3s; }
.hero .dots { left: var(--gutter); bottom: 28px; }
.hero.has-video .dots { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Page banners (slideshow) ---------- */
.banner { position: relative; isolation: isolate; min-height: clamp(200px, 30vh, 300px); display: flex; align-items: flex-end; background: var(--black); color: var(--white); overflow: hidden; }
.banner--short { min-height: clamp(190px, 26vh, 260px); }
.banner--article { min-height: clamp(260px, 40vh, 380px); }
.banner-media { position: absolute; inset: 0; z-index: -2; }
.banner-media > .slideshow, .banner-media > .ph, .banner-plain { position: absolute; inset: 0; }
.banner-plain { background: linear-gradient(120deg, #3B434B, var(--charcoal)); }
.banner-mark { position: absolute; z-index: 3; right: -4vw; top: 50%; width: min(34vw, 360px); transform: translateY(-50%); pointer-events: none; }
.banner-mark path { fill: none; stroke: var(--orange); stroke-width: 1.1; }
.banner-mark path:nth-child(2) { stroke-width: 0.6; opacity: 0.5; }
.banner-media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(32, 38, 43, 0.9) 0%, rgba(32, 38, 43, 0.55) 55%, rgba(32, 38, 43, 0.2) 100%),
              linear-gradient(0deg, rgba(32, 38, 43, 0.6), rgba(32, 38, 43, 0) 55%); }
.banner-content { padding-block: clamp(72px, 10vh, 100px) clamp(28px, 4vh, 44px); pointer-events: none; }
.banner-content a, .banner-content button { pointer-events: auto; }
.banner h1 { color: var(--white); font-size: clamp(2.3rem, 4.6vw, 3.6rem); max-width: 16ch; }
.banner p { margin-top: 0.9rem; color: rgba(255, 255, 255, 0.86); max-width: 54ch; font-size: 1.05rem; }
.banner .dots { right: var(--gutter); bottom: 26px; }
.banner .tag { margin-bottom: 14px; }
.banner-title-row { display: flex; align-items: center; gap: 18px; }
.banner-title-row .icon { margin: 0; }
.banner .ph.is-empty::after, .hero .ph.is-empty::after { left: auto; right: var(--gutter); bottom: auto; top: 18px; text-align: right; max-width: 60%; }
.banner .ph.is-empty::before, .hero .ph.is-empty::before { display: none; }

.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-weight: 600; font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.back:hover { color: var(--orange); }
.back--dark { color: var(--charcoal); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--off { background: var(--off); }
.section--tight { padding-block: clamp(40px, 6vw, 64px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2, .intro-grid h2, .narrow h2 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); }
.section-head p { max-width: 50ch; }
.narrow h2 { margin: 48px 0 16px; }
.narrow h2:first-of-type { margin-top: 0; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.65; color: var(--charcoal); max-width: 64ch; }
.divider { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; height: 2px; background: var(--orange); opacity: 0.4; border: 0; }
.intro-grid { display: grid; grid-template-columns: minmax(200px, 0.8fr) 2fr; gap: clamp(24px, 5vw, 80px); align-items: start; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-body h2 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); margin-bottom: 20px; }
.split-body p { max-width: 58ch; margin-bottom: 28px; }

/* ---------- Orange-framed slideshow (About section, profiles) ---------- */
.frame { position: relative; border: 2px solid var(--orange); padding: 12px; }
.frame .slideshow { aspect-ratio: 4 / 3; }
.frame .slideshow--portrait { aspect-ratio: 4 / 5; }
.frame .dots { left: 16px; bottom: 16px; }
.frame .slide-nav { right: 16px; bottom: 16px; }
.frame .ph.is-empty::after { top: 12px; bottom: auto; }

/* ---------- Icons ---------- */
.icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--orange); margin-bottom: 22px; }
.icon svg { width: 26px; height: 26px; }

/* ---------- Service cards (homepage) ---------- */
.svc { display: flex; flex-direction: column; background: var(--off); padding: 34px 30px 30px; text-decoration: none; color: var(--grey); border-top: 3px solid transparent; transition: border-color 0.2s, background-color 0.2s; }
.svc:hover { border-top-color: var(--orange); background: var(--white); color: var(--grey); box-shadow: inset 0 0 0 1px var(--line); }
.svc h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.svc p { font-size: 0.95rem; margin-bottom: 22px; }
.svc .more { margin-top: auto; font-weight: 600; font-size: 0.9rem; color: var(--orange); }

/* ---------- Discipline tiles (services page) ---------- */
.tile { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; color: var(--white); text-decoration: none; background: var(--charcoal); }
.tile > .ph { position: absolute; inset: 0; transition: transform 0.5s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(32, 38, 43, 0.94) 0%, rgba(32, 38, 43, 0.25) 60%, rgba(32, 38, 43, 0.1) 100%); pointer-events: none; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: 2; border: 2px solid var(--orange); opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.tile:hover::before, .tile:focus-visible::before { opacity: 1; }
.tile:hover > .ph { transform: scale(1.04); }
.tile:hover { color: var(--white); }
.tile .ph.is-empty::after { top: 14px; bottom: auto; }
.tile .ph.is-empty::before { top: 34%; margin-top: 0; }
.tile-body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; padding: 26px; }
.tile-body .icon { width: 46px; height: 46px; margin-bottom: 16px; }
.tile-body .icon svg { width: 22px; height: 22px; }
.tile-title { font-family: var(--display); font-size: 1.9rem; letter-spacing: 0.02em; line-height: 1; }
.tile-text { margin-top: 8px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.82); }
.tile--ask { background: var(--orange); }
.tile--ask::after { display: none; }
.tile--ask .tile-body { top: 0; justify-content: flex-end; }
.tile--ask .tile-text { color: rgba(255, 255, 255, 0.92); margin-bottom: 22px; }
.tile--ask .btn { align-self: flex-start; }

/* ---------- Project cards ---------- */
.proj { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--charcoal); overflow: hidden; cursor: zoom-in; text-align: left; }
.proj > .ph { position: absolute; inset: 0; transition: transform 0.5s ease; }
.proj::before { content: ""; position: absolute; inset: 0; z-index: 3; border: 2px solid var(--orange); opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.proj:hover::before, .proj:focus-visible::before { opacity: 1; }
.proj:hover > .ph { transform: scale(1.04); }
/* Always visible: hover-only tags are invisible on phones and to anyone
   scanning the page, which defeats the point of having them. */
.proj-info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 6px; padding: 64px 20px 20px; background: linear-gradient(0deg, rgba(32, 38, 43, 0.96) 15%, rgba(32, 38, 43, 0.72) 55%, rgba(32, 38, 43, 0) 100%); color: var(--white); transition: padding-bottom 0.25s; }
.proj:hover .proj-info, .proj:focus-visible .proj-info { padding-bottom: 26px; }
@media (hover: none) { .proj-info { opacity: 1; transform: none; } }
.proj-name { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.proj-loc { font-size: 0.85rem; color: rgba(255, 255, 255, 0.78); }
.proj .ph.is-empty::after { bottom: auto; top: 10px; }

/* ---------- Work photos (sub-service galleries) ----------
   Picture, then what the picture shows. No project names, no tags. */
.work { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; }
.work > .ph { aspect-ratio: 4 / 3; background: var(--charcoal); outline: 2px solid transparent; outline-offset: -2px; transition: outline-color 0.2s; }
.work > .ph img { transition: transform 0.5s ease; }
.work:hover > .ph img, .work:focus-visible > .ph img { transform: scale(1.04); }
.work:hover > .ph, .work:focus-visible > .ph { outline-color: var(--orange); }
/* Captions live in the pop-up only, not under the photo (23 Oct review). */
.work { margin-bottom: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tag { display: inline-block; padding: 4px 9px; background: var(--orange); color: var(--white); font-weight: 600; font-size: 0.72rem; line-height: 1.2; border-radius: 2px; }
.tag--ghost { background: rgba(255, 255, 255, 0.16); }

/* ---------- Filters ---------- */
.filter-bar { background: var(--off); border-bottom: 1px solid var(--line); padding-block: 28px; }
.filter-label { font-weight: 600; font-size: 0.88rem; color: var(--charcoal); margin-bottom: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 0.62rem 1.1rem; font-weight: 600; font-size: 0.88rem; line-height: 1; color: var(--charcoal); background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; transition: border-color 0.15s, background-color 0.15s, color 0.15s; }
.pill:hover { border-color: var(--orange); }
.pill[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--white); }
.results-meta { margin: 0 0 20px; font-size: 0.9rem; }
.more-row { margin-top: 36px; }
.is-empty-state { grid-template-columns: 1fr !important; }
.empty { background: var(--off); border: 1px dashed #CDD1D4; padding: clamp(28px, 5vw, 48px); }
.empty p { max-width: 58ch; margin-bottom: 8px; }
.empty .btn-row { margin-top: 20px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: clamp(56px, 6vw, 72px) clamp(12px, 5vw, 80px) clamp(16px, 4vw, 40px); background: rgba(32, 38, 43, 0.96); }
.lightbox.is-open { display: flex; }
body.lb-open { overflow: hidden; }
.lb-inner { position: relative; width: min(1100px, 100%); }
.lb-stage { position: relative; width: 100%; aspect-ratio: 3 / 2; max-height: 72vh; }
.lb-stage .ph { position: absolute; inset: 0; background: #262C31; }
.lb-stage .ph img { object-fit: contain; }
.lb-btn { position: absolute; top: calc(50% - 48px); width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--orange); color: var(--white); cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: var(--orange-dark); }
.lb-prev { left: -26px; }
.lb-next { right: -26px; }
.lb-close { position: fixed; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.14); color: var(--white); cursor: pointer; display: grid; place-items: center; }
.lb-close:hover { background: rgba(255, 255, 255, 0.26); }
.lb-caption { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-top: 18px; color: var(--white); }
.lb-title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--white); }
.lb-meta { margin-top: 6px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.75); max-width: 70ch; }
.lb-count { flex: none; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); padding-top: 6px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); margin-top: clamp(36px, 5vw, 56px); }
.stat { padding: 28px 24px 28px 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 28px; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--orange); }
.stat span { font-size: 0.92rem; }

/* ---------- Steps (How we work: a real sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; list-style: none; padding: 0; counter-reset: step; }
.step { position: relative; padding-top: 76px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 54px; height: 54px; border-radius: 50%; background: var(--orange); color: var(--white); font-family: var(--display); font-size: 1.7rem; display: grid; place-items: center; }
.step::after { content: ""; position: absolute; top: 27px; left: 70px; right: -14px; height: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 0.95rem; }

/* ---------- About: statements, values ---------- */
.statements { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px); }
.statement { background: var(--charcoal); padding: clamp(28px, 4vw, 48px); }
.statement h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: 0.02em; color: var(--orange); margin-bottom: 14px; }
.statement p { color: var(--white); font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.5; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.value { border-left: 3px solid var(--orange); padding-left: 24px; }
.value h3 { font-family: var(--display); font-weight: 400; font-size: 2.2rem; letter-spacing: 0.02em; margin-bottom: 10px; }
.value p { font-size: 0.97rem; }
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); list-style: none; padding: 0; }
.reasons li { display: flex; gap: 18px; align-items: flex-start; }
.reasons .icon { width: 44px; height: 44px; margin: 0; }
.reasons .icon svg { width: 20px; height: 20px; }
.reasons h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.reasons p { font-size: 0.95rem; }

/* ---------- Capabilities list ---------- */
.caps { list-style: none; padding: 0; display: grid; gap: 14px; }
.caps li { position: relative; padding-left: 38px; color: var(--charcoal); font-weight: 500; }
.caps li::before { content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

/* ---------- Sub-service tabs ---------- */
.subs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sub { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 26px; text-align: left; background: var(--white); border: 1.5px solid var(--line); cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.sub:hover { border-color: var(--orange); }
.sub[aria-selected="true"] { border-color: var(--orange); box-shadow: inset 0 4px 0 var(--orange); }
.sub-name { font-size: 1.55rem; color: var(--charcoal); }
.sub-desc { font-size: 0.93rem; color: var(--grey); line-height: 1.55; }
[data-sub-note] { margin: -12px 0 20px; font-size: 0.9rem; }

/* ---------- Client logo marquee ---------- */
.clients { background: var(--off); padding-block: 44px; overflow: hidden; }
.clients h2 { font-size: 1.6rem; margin-bottom: 22px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-ph { width: 170px; height: 72px; flex: none; }
.logo-ph img { object-fit: contain; }
@keyframes marquee { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; } .marquee-track [aria-hidden="true"] { display: none; } }

/* ---------- News ---------- */
.news-card { display: flex; flex-direction: column; text-decoration: none; color: var(--grey); background: var(--white); }
.news-card > .ph { aspect-ratio: 16 / 10; }
.news-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 2px 4px; }
.news-date { font-size: 0.82rem; font-weight: 600; color: var(--orange); }
.news-title { font-weight: 700; font-size: 1.1rem; line-height: 1.35; color: var(--charcoal); }
.news-card:hover .news-title { color: var(--orange); }
.news-excerpt { font-size: 0.93rem; }
.is-single { grid-template-columns: 1fr !important; }
.is-single .news-card { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--off); }
.is-single .news-card > .ph { aspect-ratio: auto; min-height: 280px; }
.is-single .news-body { padding: clamp(24px, 4vw, 44px); justify-content: center; }
.is-single .news-title { font-size: 1.5rem; }
.feature { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--off); text-decoration: none; color: var(--grey); }
.feature > .ph { min-height: 440px; }
.feature-body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: clamp(28px, 4vw, 56px); }
.feature-title { font-size: clamp(1.9rem, 3vw, 2.5rem); color: var(--charcoal); }

/* ---------- News index: older stories following one another ---------- */
.news-list { display: flex; flex-direction: column; }
.news-row { display: grid; grid-template-columns: 300px 1fr; gap: clamp(20px, 3vw, 40px);
            align-items: center; padding-block: 28px; border-top: 1px solid var(--line);
            text-decoration: none; color: var(--grey); }
.news-list > .news-row:first-child { border-top: 0; padding-top: 6px; }
.news-row > .ph { aspect-ratio: 4 / 3; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color 0.2s; }
.news-row:hover > .ph { outline-color: var(--orange); }
.news-row .news-body { padding: 0; gap: 10px; }
.news-row .news-title { font-size: 1.45rem; line-height: 1.25; }
.news-row:hover .news-title { color: var(--orange); }
.news-row .news-excerpt { max-width: 62ch; }
.news-meta { display: flex; align-items: center; gap: 12px; }
.news-cat { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
            color: var(--charcoal); background: var(--light); padding: 4px 10px; }
.news-more { margin-top: 2px; font-weight: 600; font-size: 0.9rem; color: var(--charcoal); }
.news-row:hover .news-more { color: var(--orange); }
.feature:hover .feature-title { color: var(--orange); }

/* ---------- Article ---------- */
.article { max-width: 740px; }
.article p { font-size: 1.08rem; line-height: 1.75; color: var(--charcoal); margin-bottom: 1.4em; }
.article-fig { margin: 8px 0 32px; }
.article-fig .ph { aspect-ratio: 16 / 9; }
.article-fig figcaption { margin-top: 10px; font-size: 0.85rem; font-style: italic; color: #7a7d7d; }
.article-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 32px; }
.article-pair .ph { aspect-ratio: 4 / 3; }
.article blockquote { margin: 8px 0 36px; padding: 4px 0 4px 26px; border-left: 3px solid var(--orange); font-size: 1.3rem; line-height: 1.5; font-style: italic; color: var(--charcoal); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 600; font-size: 0.9rem; }
.share span { color: var(--charcoal); }

/* ---------- Team ---------- */
.strip-wrap { position: relative; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 540px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 14px; }
.strip > .ph { aspect-ratio: 3 / 2; scroll-snap-align: start; }
.strip--members { grid-auto-columns: minmax(210px, 15.5rem); gap: 20px; }
.strip--members > .member { scroll-snap-align: start; }
.team-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 14px; margin-bottom: 28px; border-bottom: 2px solid var(--orange); }
.team-head .team-group-title { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.strip-controls { display: flex; gap: 8px; }
.team-group + .team-group { margin-top: clamp(56px, 7vw, 88px); }
.team-group-title { font-size: clamp(2rem, 3.6vw, 2.8rem); padding-bottom: 14px; margin-bottom: 28px; border-bottom: 2px solid var(--orange); }
.member { display: flex; flex-direction: column; text-decoration: none; color: var(--grey); }
.member > .ph { aspect-ratio: 4 / 5; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color 0.2s; }
.member:hover > .ph { outline-color: var(--orange); }
/* Portrait photos everywhere, including Management. Faces sit high in the frame,
   so the keep-zone is biased upward instead of centred (which cut heads off). */
.member > .ph img { object-position: center 22%; }
.team-lead { max-width: 640px; }
.team-lead .member > .ph { aspect-ratio: 4 / 5; }
.member-body { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; }
.member-name { font-weight: 700; font-size: 1.08rem; color: var(--charcoal); }
.team-lead .member-name { font-size: 1.3rem; }
.role { color: var(--orange); font-weight: 600; font-size: 0.9rem; }
.role--lg { font-size: 1.05rem; margin-bottom: 20px; }
.tbc { display: inline-block; align-self: flex-start; padding: 3px 9px; font-size: 0.74rem; font-weight: 600; color: var(--grey); border: 1px dashed #B5BABE; border-radius: 2px; }
.member-link { margin-top: 6px; font-weight: 600; font-size: 0.88rem; color: var(--charcoal); }
.member:hover .member-link { color: var(--orange); }
.join { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: var(--orange); padding: clamp(28px, 4vw, 44px); margin-top: clamp(56px, 7vw, 88px); }
.join h2 { color: var(--white); font-size: clamp(2rem, 3.6vw, 2.8rem); }
.join p { color: rgba(255, 255, 255, 0.9); margin-top: 6px; }
.profile { display: grid; grid-template-columns: minmax(260px, 0.9fr) 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.profile-group { font-weight: 600; font-size: 0.9rem; color: var(--grey); margin-bottom: 10px; }
.profile-name { font-size: clamp(2.8rem, 6vw, 4.6rem); margin-bottom: 10px; }
.pager { display: flex; justify-content: space-between; gap: 20px; margin-top: clamp(40px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: 2px; font-weight: 700; color: var(--charcoal); text-decoration: none; }
.pager a:hover { color: var(--orange); }
.pager .pager-next { text-align: right; }
.pager .muted { font-weight: 500; font-size: 0.85rem; }

/* ---------- Careers ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.why h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.job-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); margin: 28px 0 36px; }
.job-types.is-single { grid-template-columns: 1fr; max-width: 720px; }
.jt { background: var(--white); border-top: 3px solid var(--orange); padding: 26px 26px 28px; }
.section--off .jt { background: var(--white); }
.jt h3 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; letter-spacing: 0.02em; margin-bottom: 8px; }
.jt p { font-size: 0.95rem; }
.job { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--grey); margin-bottom: 10px; }
.job:hover { border-color: var(--orange); color: var(--grey); }
.job > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.job-title { font-weight: 700; font-size: 1.1rem; color: var(--charcoal); }
.note { margin-top: clamp(40px, 5vw, 56px); padding: 28px 32px; background: var(--white); border-left: 3px solid var(--orange); }
.note h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.note p { font-size: 0.93rem; max-width: 80ch; }
.notice { padding: 14px 18px; margin-bottom: 36px; background: #FFF4EB; border-left: 3px solid var(--orange); color: var(--charcoal); font-size: 0.93rem; }
.apply { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 48px; padding: 28px 30px; background: var(--off); }
.apply h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-grid h2 { font-size: clamp(2.3rem, 4vw, 3.2rem); margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--charcoal); }
.field label .optional { font-weight: 500; color: #8a8e91; }
.field input, .field textarea { width: 100%; padding: 0.9rem 1rem; font: inherit; font-size: 1rem; color: var(--charcoal); background: var(--white); border: 1.5px solid #CFD3D6; border-radius: 3px; transition: border-color 0.15s; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(239, 128, 47, 0.2); }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.error { font-size: 0.85rem; color: var(--error); min-height: 0; }
.form-status { display: none; margin-top: 18px; padding: 14px 18px; background: var(--off); border-left: 3px solid var(--orange); color: var(--charcoal); font-size: 0.95rem; }
.form-status.is-visible { display: block; }
.form-status.is-error { border-left-color: var(--error); }
.office-photo { aspect-ratio: 16 / 9; margin-bottom: 20px; }
.office { background: var(--off); padding: 30px; }
.office dl { margin: 0; display: grid; gap: 20px; }
.office dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: #7a7d7d; margin-bottom: 4px; }
.office dd { margin: 0; color: var(--charcoal); line-height: 1.6; }
.office dd a { color: var(--charcoal); }
.map { margin-top: clamp(48px, 6vw, 72px); border: 2px solid var(--orange); aspect-ratio: 16 / 6; min-height: 280px; background: var(--off); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- CTA band ---------- */
.cta { background: var(--charcoal); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(48px, 7vw, 72px); }
.cta h2 { color: var(--white); font-size: clamp(2.1rem, 4vw, 3.2rem); max-width: 20ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255, 255, 255, 0.74); padding-top: clamp(56px, 7vw, 80px); font-size: 0.93rem; border-top: 3px solid var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: clamp(28px, 4vw, 48px); }
.footer-logo { height: 96px; width: auto; margin-bottom: 18px; }
.footer-about p { max-width: 36ch; }
.motto { margin-top: 12px; color: var(--orange); font-style: italic; font-size: 0.86rem; }
.site-footer h2 { font-family: var(--body); font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 14px; letter-spacing: 0; line-height: 1.4; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-contact p { margin-bottom: 12px; line-height: 1.6; }
.footer-contact strong { display: block; color: var(--white); font-weight: 600; }
.social-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.social-row a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.22); background: transparent; transition: background-color 0.18s, border-color 0.18s, color 0.18s, transform 0.18s; }
.social-row a:hover { background: var(--orange); border-color: var(--orange); color: var(--white); transform: translateY(-2px); }
.social-row svg { width: 21px; height: 21px; }
.social-row--dark a { color: var(--charcoal); border-color: #CFD3D6; }
.social-row--dark a:hover { color: var(--white); }
.footer-social { margin-top: 26px; }
.footer-credit { color: rgba(255, 255, 255, 0.62); }
.footer-credit a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.28); }
.footer-credit a:hover { color: var(--orange); border-bottom-color: var(--orange); }
.footer-social h2 { margin-bottom: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(40px, 6vw, 64px); padding-block: 22px; border-top: 1px solid rgba(239, 128, 47, 0.45); font-size: 0.82rem; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--orange); color: var(--white); cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.page-missing { font-size: clamp(2.6rem, 5vw, 3.8rem); margin: 8px 0 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .step::after { display: none; }
  .split, .contact-grid, .profile, .intro-grid, .feature { grid-template-columns: 1fr; }
  .subs, .values, .reasons, .why, .job-types { grid-template-columns: 1fr; }
  .statements { grid-template-columns: 1fr; }
  .is-single .news-card { grid-template-columns: 1fr; }
  .is-single .news-card > .ph { min-height: 0; aspect-ratio: 16 / 10; }
  .feature > .ph { min-height: 0; aspect-ratio: 16 / 10; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .map { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  :root { --header-h: 68px; }
  .banner-mark { top: 14%; transform: none; width: 64vw; right: -12vw; }
  .brand img { height: 40px; }
  .news-row { grid-template-columns: 1fr; gap: 16px; }
  .grid--2, .grid--3, .grid--4, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 22px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .hero-mark { top: 6%; transform: none; width: 68vw; right: -14vw; }
  .hero-tags { flex-direction: column; }
  .hero-tags li + li { margin-left: 0; padding-left: 0; border-left: 0; }
  .hero-tags li { padding-left: 14px !important; border-left: 2px solid var(--orange) !important; }
  .field-row { grid-template-columns: 1fr; }
  .article-pair { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pager { flex-direction: column; }
  .pager .pager-next { text-align: left; }
  .tile { aspect-ratio: 4 / 3; }
  .lb-btn { top: auto; bottom: -70px; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lb-caption { margin-top: 84px; }
}
