/* =============================================================
   Kaizen Global — INVIEW 18 Sep 2026 revision layer
   Loaded last, after style.css and enhance.css.

   What the client asked for, and where it lives below:
   - a white, un-boxed homepage with a continuously moving hero   §2
   - controlled two-tone blue (tokens are in style.css :root)     —
   - smaller type and less empty space                           §1
   - no static hero anywhere on the site                          §3
   - text on images that is always readable                       §3, §6
   - scrollbars only on things that actually scroll               §0
   ============================================================= */

/* ===== §0 Scrollbars and overflow ============================
   The reviewer uses an older Windows laptop, where classic scrollbars take
   real space and appear on any element with overflow:auto that overflows by
   even a pixel. Rules:
   - nothing decorative is allowed to scroll (the ticker, strips, marquees)
   - the page itself never scrolls sideways
   - things that genuinely scroll (the page, the mobile drawer, admin tables,
     textareas) keep a slim, styled bar rather than losing it entirely */
html { overflow-x: hidden; }                      /* fallback for pre-2022 browsers */
@supports (overflow: clip) { html { overflow-x: clip; } }
body { overflow-x: clip; }

.no-scrollbar,
.oil-ticker-inner,
.marquee, .photo-strip, .hero-v3, .hero-v3-media, .page-hero, .scene-stage {
  scrollbar-width: none;            /* Firefox */
  -ms-overflow-style: none;         /* old Edge / IE */
}
.no-scrollbar::-webkit-scrollbar,
.oil-ticker-inner::-webkit-scrollbar,
.marquee::-webkit-scrollbar, .photo-strip::-webkit-scrollbar,
.hero-v3::-webkit-scrollbar, .hero-v3-media::-webkit-scrollbar,
.page-hero::-webkit-scrollbar, .scene-stage::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* The hero panel used to be max-height + overflow:auto, which produced a
   scrollbar inside the hero on short Windows screens. It never needs to scroll. */
.hero-content { max-height: none; overflow: visible; }

/* Slim bars where scrolling is real */
html { scrollbar-width: thin; scrollbar-color: rgba(31,78,121,.45) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(31,78,121,.35); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(31,78,121,.55); background-clip: padding-box; }

/* ===== §1 Type scale and rhythm — tighter (INVIEW 1.8) ========= */
:root { --step: clamp(52px, 6vw, 88px); }
body { font-size: 16px; line-height: 1.62; }
h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
h3 { font-size: 1.12rem; }
.lede { font-size: 17.5px; }
.lede-lg { font-size: clamp(16.5px, 1.25vw, 18.5px); }
.display { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.display-sm { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
.statement { font-size: clamp(1.45rem, 2.4vw, 2.05rem); }
.section { padding: 80px 0; }
.section-head { margin-bottom: 36px; }
.split { gap: clamp(28px, 4.5vw, 64px); }
.rule-label { margin-bottom: 14px; }
.cap-card { min-height: 320px; }
.stat-cell .num { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.media-band { min-height: 460px; }
.page-hero.is-photo { padding: 72px 0; }
.page-hero { padding: 48px 0; }
@media (max-width: 640px) { .page-hero.is-photo { padding: 48px 0; } }
/* The header is solid on every page now, so nothing may tuck under it: the
   negative margins below were written for the old transparent header. */
.hero-about, .hero, .hero-scene-host { margin-top: 0; }
.hero-about { min-height: min(70vh, 640px); }
.hero-about-content { margin-top: 0; padding-bottom: 60px; }
.hero-about .hero-pause.is-floating { top: 18px; bottom: auto; }
.is-paused.hero-about img, .is-paused .hero-about-overlay { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .hero-about img { animation: kg-heartbeat 3.4s var(--ease-in-out) infinite !important; }
  .hero-about-overlay { animation: kg-heartbeat-veil 3.4s var(--ease-in-out) infinite !important; }
}

/* ===== Header — always the solid white bar ======================
   The homepage no longer puts the header over a photo, so there is one
   header treatment everywhere. */
.site-header { background: var(--glass-bg-strong); }
.site-header::before { opacity: 1; border-color: var(--border); }
.site-header .main-nav > a, .site-header .main-nav > .has-dropdown > a,
.site-header .main-nav .nav-trigger { color: var(--ink); }
@media (min-width: 981px) {
  .site-header:not(.on-light) .main-nav { background: none; padding: 0; box-shadow: none; }
}
.site-header .theme-toggle { color: var(--ink); background: var(--bg-alt); }
.site-header .menu-toggle { background: var(--bg-alt); box-shadow: none; }
.site-header .menu-toggle .bar { background: var(--ink); }
.header-cta.btn-glass { background: var(--royal); color: #fff; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-cta.btn-glass:hover { background: var(--royal-dark); }
:root[data-theme="dark"] .header-cta.btn-glass { color: #0b1622; }
/* Mobile: the parent links toggle their menus, so each menu carries its own
   "all" link — otherwise the Services and Projects index pages were
   unreachable from the drawer. Hidden on desktop, where the parent links. */
.dropdown .dd-all { display: none; font-weight: 700; }
@media (max-width: 980px) { .dropdown .dd-all { display: block; } }

/* ===== Buttons on light surfaces ================================ */
.btn-glass { color: var(--ink); }
.btn-outline { color: var(--royal); border-color: rgba(31,78,121,.4); }
.btn-outline:hover { background: var(--royal-tint); border-color: var(--royal); }
:root[data-theme="dark"] .btn-outline { border-color: var(--border-strong); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== §2 Homepage hero ========================================
   White page, no box around the message (INVIEW 1.1). The copy sits on the
   page background — dark on white, so contrast never depends on a photo —
   and the carousel takes the right-hand side, bleeding to the viewport edge.
   The bleed uses percentages of the section, never 100vw: vw includes the
   vertical scrollbar on Windows and would push the page sideways. */
.hero-v3 { position: relative; background: var(--bg); overflow: hidden; }
.hero-v3-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: stretch;
  min-height: min(76vh, 700px);
}
.hero-v3-copy {
  display: flex; flex-direction: column; justify-content: center;
  /* Line the copy up with the site container. Percentages on a grid item
     resolve against its column, which is 1/2.12 of the section (1fr : 1.12fr),
     so the container offset (W - 1180)/2 + 24 becomes 106% - 566px. */
  padding: 48px 48px 56px max(24px, calc(106% - 566px));
}
@supports not (padding: max(1px, 2px)) { .hero-v3-copy { padding-left: 24px; } }
.hero-v3-copy .rule-label { color: var(--royal); }
.hero-v3-copy h1 { font-size: clamp(1.8rem, 2.6vw, 2.45rem); letter-spacing: -.026em; line-height: 1.12; margin-bottom: 16px; max-width: 24ch; }
.hero-v3-copy .lede { font-size: 17px; max-width: 50ch; margin-bottom: 26px; }
.hero-v3-copy .hero-actions { gap: 12px; }
.hero-v3-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero-v3-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.hero-v3-trust svg { width: 17px; height: 17px; color: var(--royal); flex: none; }

.hero-v3-media { position: relative; overflow: hidden; background: var(--navy-block); border-bottom-left-radius: 28px; min-height: 420px; }
.hero-v3-media .hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-v3-media .hero-slide.active { opacity: 1; z-index: 1; }
.hero-v3-media .hero-slide::before { display: none; }   /* no text over it, so no scrim */
.hero-v3-media .hero-slide img, .hero-v3-media .hero-slide video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: none; transition: none;
}
.hero-v3-media .hero-slide .video-poster { z-index: 1; transition: opacity .8s var(--ease-out); }
.hero-v3-media .hero-slide.video-ready .video-poster { opacity: 0; }
/* Slow push-in on stills so a photo slide is never a frozen frame. */
.hero-v3-media .hero-slide.active img { animation: kg-kenburns 9s linear both; }

.hero-slide-tag {
  position: absolute; left: 22px; top: 20px; z-index: 3;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: rgba(15,42,68,.78); padding: 7px 12px; border-radius: 6px;
}

/* Controls: arrows, numbered dots, pause — clear and always on a solid chip
   (INVIEW 1.3), never floating white-on-photo. */
.hero-controls {
  position: absolute; left: 22px; bottom: 20px; z-index: 4;
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.94); padding: 6px; border-radius: 12px; box-shadow: var(--shadow-md);
}
.hero-arrow, .hero-pause {
  width: 38px; height: 38px; border-radius: 9px; border: 0; cursor: pointer;
  display: inline-grid; place-items: center; background: transparent; color: #1f4e79;
  transition: background-color .2s ease;
}
.hero-arrow:hover, .hero-pause:hover, .hero-arrow:focus-visible, .hero-pause:focus-visible { background: #d9eff4; }
.hero-arrow svg, .hero-pause svg { width: 18px; height: 18px; }
.hero-v3 .hero-dots { display: flex; gap: 6px; padding: 0 6px; }
.hero-v3 .hero-dot {
  width: 30px; height: 6px; border-radius: 3px; background: rgba(31,78,121,.22);
  border: 0; padding: 0; cursor: pointer; position: relative; overflow: hidden;
}
.hero-v3 .hero-dot::after { content: ""; position: absolute; inset: 0; background: #1f4e79; transform: scaleX(0); transform-origin: left; }
.hero-v3 .hero-dot.active::after { animation: hero-progress var(--slide-ms, 6000ms) linear forwards; }
.hero-v3.is-paused .hero-dot.active::after { animation: none; transform: scaleX(1); }
.hero-pause .i-play { display: none; }
.is-paused .hero-pause .i-play, .is-paused > .hero-pause .i-play { display: block; }
.is-paused .hero-pause .i-pause, .is-paused > .hero-pause .i-pause { display: none; }

@media (max-width: 980px) {
  .hero-v3-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-v3-media { order: -1; min-height: 0; aspect-ratio: 16 / 10; border-radius: 0; }
  .hero-v3-copy { padding: 32px 24px 44px; }
  .hero-slide-tag { top: 14px; left: 16px; }
  .hero-controls { left: 16px; bottom: 14px; }
}

/* ===== §3 Motion in every hero ==================================
   The client does not want a static hero anywhere. Three layers, so there is
   always movement even when a video is not allowed to load:
   1. every hero still gets a slow Ken Burns push
   2. heroes with several stills cross-fade between them ([data-fader])
   3. heroes with a clip play it over the poster */
@keyframes kg-kenburns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
@keyframes kg-drift {
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  50%  { transform: scale(1.12) translate3d(-2%, -1.2%, 0); }
  100% { transform: scale(1.04) translate3d(0, 0, 0); }
}
.page-hero-bg img, .page-hero-media img { animation: kg-drift 22s ease-in-out infinite; transform-origin: 60% 40%; }
.page-hero-bg video, .page-hero-media video { transform: scale(1.01); }

.hero-fade { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-fade.active { opacity: 1; }
.hero-fade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-media .hero-fade { z-index: 0; }
.page-hero-media .hero-fade.active { z-index: 1; }

/* Pause control for every moving hero (WCAG 2.2.2 — moving content that
   starts automatically must be stoppable). */
.hero-pause.is-floating {
  position: absolute; right: 18px; bottom: 18px; z-index: 5;
  background: rgba(255,255,255,.94); box-shadow: var(--shadow-md);
}
.page-hero-media .hero-pause.is-floating { right: 12px; bottom: 12px; }
.is-paused .page-hero-bg img, .is-paused .page-hero-media img,
.is-paused .hero-v3-media img { animation-play-state: paused !important; }

/* The site honours prefers-reduced-motion everywhere else, but hero motion is
   an explicit client requirement, and Windows switches that preference on
   whenever "Adjust for best performance" is chosen — which is how an older
   laptop ends up showing a frozen hero. So the hero carries its own pause
   button instead, and these rules restore its motion over the global
   reduced-motion override in style.css (which uses !important on `*`). */
@media (prefers-reduced-motion: reduce) {
  .hero-v3-media .hero-slide, .hero-fade { transition-duration: 1.2s !important; }
  .hero-v3-media .hero-slide.active img { animation-duration: 9s !important; animation-iteration-count: 1 !important; }
  .page-hero-bg img, .page-hero-media img { animation-duration: 22s !important; animation-iteration-count: infinite !important; }
  .hero-v3 .hero-dot.active::after { animation-duration: var(--slide-ms, 6000ms) !important; }
  .page-hero-bg .video-poster, .page-hero-media .video-poster, .hero-v3-media .video-poster { transition-duration: .8s !important; }
}

/* ===== Page hero — text never on a raw photo (INVIEW 4.2) =======
   The photo treatment now puts the copy on a solid navy panel of its own
   rather than relying on a gradient over the image. */
.page-hero.is-photo .page-hero-text {
  background: rgba(15,42,68,.84); padding: 30px 34px; border-radius: var(--radius);
  max-width: 700px; border: 1px solid rgba(255,255,255,.12);
}
.page-hero.is-photo h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.page-hero-scrim { background: linear-gradient(180deg, rgba(8,24,40,.35), rgba(8,24,40,.45)); }
.page-hero.is-brand { background: var(--navy-block); }
.page-hero.is-brand h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.page-hero.is-brand .rule-label, .page-hero.is-brand .breadcrumb, .page-hero.is-brand .breadcrumb a { color: var(--powder); }
.page-hero.is-brand .lede { color: #e3eef6; }
.page-hero.is-brand .page-hero-media { aspect-ratio: 5 / 4; position: relative; }
.page-hero.is-brand.is-portrait .page-hero-media { aspect-ratio: 4 / 5; max-height: 560px; }
.page-hero.is-brand.is-portrait .page-hero-grid { grid-template-columns: 1.3fr .7fr; }
@media (max-width: 980px) {
  .page-hero.is-brand .page-hero-media, .page-hero.is-brand.is-portrait .page-hero-media { aspect-ratio: 16 / 10; max-height: none; }
  .page-hero.is-brand.is-portrait .page-hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-hero.is-photo .page-hero-text { padding: 22px 20px; }
}

/* Media band: same fix — copy on a solid panel, not straight on the footage. */
.media-band::after { background: linear-gradient(180deg, rgba(8,24,40,.15) 0%, rgba(8,24,40,.35) 100%); }
.media-band-inner { background: rgba(15,42,68,.86); padding: 30px 32px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.1); }
.media-band .container { padding-block: 44px; }
.media-band .btn-glass { background: #fff; color: #1f4e79; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.media-band > video, .media-band > .video-poster, .media-band .media-still { animation: kg-drift 26s ease-in-out infinite; }

/* ===== Stat band — two-tone, lighter than the old navy slab ===== */
.stat-band { background: var(--powder); color: var(--ink); padding: clamp(36px, 4.5vw, 56px) 0; }
.stat-cell { border-left-color: rgba(31,78,121,.18); }
.stat-cell .num { color: var(--royal); }
.stat-cell .label { color: var(--ink-soft); }
.stat-cell .label a { color: inherit; text-decoration: underline; }
:root[data-theme="dark"] .stat-band { background: var(--navy-block); }
:root[data-theme="dark"] .stat-cell .num { color: #fff; }
:root[data-theme="dark"] .stat-cell .label { color: var(--on-dark-soft); }

/* ===== Section heading helper ================================== */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.head-row h2 { margin-bottom: 0; }
.head-row p { margin: 8px 0 0; }

/* ===== What we do (home) ======================================= */
.wwd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.wwd-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-block); }
.wwd-media video, .wwd-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wwd-media .video-poster { z-index: 1; transition: opacity .8s var(--ease-out); animation: kg-drift 24s ease-in-out infinite; }
.wwd-media.video-ready .video-poster { opacity: 0; }
.wwd-list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wwd-list a {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg-alt); color: var(--ink); font-weight: 600; font-size: 14.5px; line-height: 1.3;
  border: 1px solid transparent; transition: border-color .2s ease, background-color .2s ease;
}
.wwd-list a:hover { border-color: rgba(31,78,121,.35); background: var(--powder); }
.wwd-list svg { width: 18px; height: 18px; color: var(--royal); flex: none; }

/* ===== Why Kaizen + Mission / Vision / Goal ===================== */
.mvg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mvg-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 26px 24px; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.mvg-item::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--royal); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out) var(--d, 0ms); }
.mvg-item.is-in::before, .mvg-item:hover::before { transform: scaleX(1); }
.mvg-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mvg-item h3 { margin: 14px 0 8px; font-size: 1.1rem; }
.mvg-item p { font-size: 15px; margin: 0; }

/* Icon chip used by MVG and the core values. The glyph draws itself in when
   the card reveals, then breathes gently — subtle, and cheap (one SVG). */
.icon-chip {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--powder); color: var(--royal);
}
.icon-chip svg { width: 24px; height: 24px; }
.icon-chip svg * { stroke-dasharray: 80; stroke-dashoffset: 0; }
.kg-motion [data-reveal] .icon-chip svg * { stroke-dashoffset: 80; transition: stroke-dashoffset 1.4s var(--ease-out) calc(var(--d, 0ms) + 200ms); }
.kg-motion [data-reveal].is-in .icon-chip svg * { stroke-dashoffset: 0; }
.icon-chip { animation: kg-breathe 4.8s ease-in-out infinite; }
@keyframes kg-breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(31,78,121,.0); } 50% { box-shadow: 0 0 0 7px rgba(31,78,121,.07); } }

/* ===== Core values — icons, not numbers (INVIEW 2.5, 2.6) ======= */
.value-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.value-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 20px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.value-card h3 { margin: 14px 0 6px; font-size: 1.05rem; }
.value-card p { font-size: 14.5px; margin: 0; }
@media (max-width: 1100px) { .value-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .value-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px)  { .value-cards { grid-template-columns: 1fr; } }

/* ===== Service cards (Services index, INVIEW 3.4–3.7) =========== */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.svc-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc-card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--powder); }
.svc-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.svc-card:hover .svc-card-img img { transform: scale(1.06); }
.svc-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.svc-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.svc-card p { font-size: 14.5px; margin-bottom: 14px; }
.svc-card .card-link { margin-top: auto; font-size: 14px; }
.svc-card:hover .card-link .arrow { transform: translateX(4px); }
.svc-more-wrap { text-align: center; margin-top: 28px; }
/* Collapsed only once JS is running, so without JS every service shows. */
.kg-motion .svc-grid-more[hidden] { display: none; }
.svc-grid-more { margin-top: 20px; }
@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .svc-grid { grid-template-columns: 1fr; } }

/* Compact scope list inside a service summary */
.scope-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.scope-list li { position: relative; padding-left: 24px; font-size: 15px; color: var(--ink-soft); }
.scope-list li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px;
  border-left: 2px solid var(--royal); border-bottom: 2px solid var(--royal); transform: rotate(-45deg);
}

/* ===== Real-photo strip (INVIEW 1.17, 3.10, 8.1) ================
   Kaizen's own photographs as a slow moving strip. It is a marquee, not a
   scroller: overflow is hidden and there is no scrollbar to show. */
.photo-strip { overflow: hidden; position: relative; }
.photo-strip-track { display: flex; gap: 14px; width: max-content; animation: kg-marquee 70s linear infinite; }
.photo-strip:hover .photo-strip-track { animation-play-state: paused; }
.photo-strip a { display: block; width: 220px; height: 170px; flex: none; border-radius: var(--radius-sm); overflow: hidden; background: var(--powder); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.photo-strip a:hover img { transform: scale(1.06); }
@media (max-width: 640px) { .photo-strip a { width: 160px; height: 124px; } }
@media (prefers-reduced-motion: reduce) { .photo-strip-track { animation: none; flex-wrap: wrap; width: auto; } }

/* ===== Project showcase (INVIEW 5.1) ============================ */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.project-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--border); color: inherit; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project-card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--powder); }
.project-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.project-card:hover .project-card-img img { transform: scale(1.06); }
.project-card-cat {
  position: absolute; left: 12px; top: 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.95); color: #1f4e79; padding: 5px 9px; border-radius: 6px;
}
.project-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.project-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.project-card p { font-size: 14.5px; margin-bottom: 14px; }
.project-card .card-link { margin-top: auto; }
@media (max-width: 980px) { .project-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .project-grid { grid-template-columns: 1fr; } }

/* Journey strip: Projects → details → Contact (INVIEW 5.3) */
.journey { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.journey span { padding: 6px 12px; border-radius: 999px; background: var(--bg-alt); }
.journey span.on { background: var(--royal); color: #fff; }
.journey i { font-style: normal; color: var(--ink-faint); }

/* ===== ISO badge (INVIEW 1.9, 9.4) ============================== */
.iso-mark { display: inline-flex; align-items: center; gap: 10px; }
.iso-mark img { height: 52px; width: auto; }
.iso-seal {
  display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  border: 2px solid currentColor; font-size: 10.5px; font-weight: 800; line-height: 1.05; text-align: center; letter-spacing: .02em;
}
.iso-seal b { display: block; font-size: 13px; }
.iso-mark .iso-text { font-weight: 700; font-size: 14px; line-height: 1.25; }
.iso-mark .iso-text small { display: block; font-weight: 500; font-size: 12px; opacity: .8; }

/* ===== CTA banner — navy, compact ============================== */
.cta-banner { padding: 48px 40px; background: var(--navy-block); }
.cta-banner .rule-label { color: var(--powder); }
.cta-banner .lede { color: #dbe8f2; }
.cta-banner .btn-glass { background: #fff; color: #1f4e79; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.cta-banner .btn-glass:hover { background: var(--powder); }

/* ===== Footer ==================================================== */
.site-footer { background: var(--navy-deep); color: #c9dcec; }
.footer-top a { color: #d6e6f3; }
.footer-bottom a { color: #c9dcec; }
.footer-top h4 { color: #fff; }
.oil-ticker { background: #0f2a44; }
.oil-ticker-inner { color: #c9dcec; }
.oil-label, .oil-updated { color: #9fbfdc; }
.site-footer .iso-mark { color: #fff; }
.footer-contact li { color: #c9dcec; font-size: 14.5px; }

/* ===== Cap cards pick up the new navy ============================ */
.cap-card { background: var(--navy-block); }
.cap-card::after { background: linear-gradient(180deg, rgba(10,30,50,.6) 0%, rgba(10,30,50,.28) 30%, rgba(10,30,50,.6) 55%, rgba(12,36,58,.94) 100%); }

/* ===== Marquee — a little smaller ================================ */
.marquee { padding: 18px 0; }
.marquee-item { font-size: clamp(14px, 1.2vw, 16px); }

/* ===== Forms: conditional CV field ============================== */
.field-cv[hidden] { display: none; }
.form-note { font-size: 13.5px; color: var(--ink-faint); margin-top: -6px; }

/* ===== Contact routing panel ===================================== */
.contact-cards { display: grid; gap: 14px; }
.contact-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; background: var(--surface); }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p { font-size: 14.5px; margin: 0; }

/* ===== Responsive adjustments ==================================== */
@media (max-width: 980px) {
  .wwd, .mvg { grid-template-columns: 1fr; }
  .mvg { gap: 14px; }
}
@media (max-width: 560px) {
  .wwd-list { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px 22px; }
  .hero-v3-copy h1 { font-size: 1.8rem; }
}

/* Column variants (classes, not inline styles, so the breakpoints still apply) */
.svc-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.process.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .svc-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
}
@media (max-width: 560px) {
  .svc-grid.cols-3, .process.cols-4 { grid-template-columns: 1fr; }
}
.journey a { color: inherit; }
.journey a:hover span { background: var(--powder); color: var(--royal); }

/* Projects: experience areas, each a link to its service */
.area-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.area-card { display: block; color: inherit; padding: 26px 26px 22px; }
.area-card p { font-size: 15px; }
@media (max-width: 720px) { .area-grid { grid-template-columns: 1fr; } }

/* The ticker wraps onto two rows on narrow screens rather than becoming a
   sideways scroller — nothing decorative scrolls. */
@media (max-width: 760px) {
  .oil-ticker-inner { flex-wrap: wrap; white-space: normal; overflow: visible; gap: 4px 18px; justify-content: center; }
  .oil-updated { margin-left: 0; }
}

/* Clip/wipe reveals must never start fully clipped. Chrome's
   IntersectionObserver measures the target through its own clip-path, so an
   element clipped to nothing never reports as visible, never gets .is-in, and
   stays invisible for good — which had silently hidden every clip-revealed
   figure and split-hero image on the site. A 14% sliver keeps it observable
   (motion.js uses an 8% threshold) and still reads as a wipe. */
.kg-motion [data-reveal="clip"]:not(.is-in) { clip-path: inset(0 0 86% 0); }
.kg-motion [data-reveal="wipe"]:not(.is-in) { clip-path: inset(0 86% 0 0); }

/* Supplied ISO 9001:2015 badge in the stat strip */
.stat-cell .num .stat-iso { height: clamp(58px, 5.2vw, 76px); width: auto; display: block; }
.iso-mark img { height: 56px; }

/* Logo on dark surfaces: the brand blue and the dark wordmark do not read on
   navy, so the logo sits on its own white panel there. */
.logo-chip { display: inline-block; background: #fff; padding: 8px 12px; border-radius: var(--radius-sm); line-height: 0; }
.logo-chip img { height: 48px; width: auto; display: block; }
:root[data-theme="dark"] .site-header .brand img { background: #fff; padding: 3px 6px; border-radius: 6px; }
