/* JKM Alliance v6: logo palette (C) on white, with full-bleed contrasting bands (blue, cyan, navy, ice)
   in the way of a Squarespace "panel" layout. Photos and video stay straight and inside the grid. */
:root {
  --paper: #FFFFFF; --paper2: #EAF2FB; --card: #FFFFFF; --ice: #EAF2FB;
  --ink: #0B1B3A; --soft: #33405C; --muted: #5E6A84;
  --line: rgba(11, 27, 58, .14); --line2: rgba(11, 27, 58, .28);
  --blue: #0F50A4; --blue2: #0B3F84; --cyan: #01A3D4; --sky: #7FDDF7; --navy: #0B1B3A;
  --font: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --max: 1360px; --gut: clamp(20px, 4vw, 48px);
  --sec: clamp(56px, 6.5vw, 96px); --gap: clamp(16px, 2vw, 24px);
  --r: 14px; --hh: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 2px rgba(11, 27, 58, .06), 0 12px 32px rgba(11, 27, 58, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
html.lenis, html.lenis body { height: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
::selection { background: var(--cyan); color: #fff; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--blue); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
p { margin: 0 0 1em; } p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; }
[hidden] { display: none !important; }

/* ---------- Type scale ---------- */
.d1, h1 { font-weight: 800; font-stretch: 72%; text-transform: uppercase; letter-spacing: -.005em; line-height: .9; font-size: clamp(48px, 8.4vw, 136px); }
.h2 { font-weight: 800; font-stretch: 72%; text-transform: uppercase; letter-spacing: -.005em; line-height: .92; font-size: clamp(36px, 5vw, 72px); }
.h3 { font-weight: 800; font-stretch: 75%; text-transform: uppercase; line-height: 1; font-size: clamp(24px, 2.2vw, 32px); }
.label { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin: 0 0 16px; }
.lede { font-size: clamp(18px, 1.45vw, 20px); line-height: 1.55; color: var(--soft); max-width: 52ch; margin: 0; }
.muted { color: var(--muted); }
.accent { color: var(--cyan); }
.ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ln > span { display: block; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 24px; font-weight: 700; font-size: 15px; line-height: 1.2; border: 2px solid var(--blue); background: var(--blue); color: #fff; border-radius: 999px; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); white-space: nowrap; }
.btn:hover { background: var(--blue2); border-color: var(--blue2); }
.btn svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translate(3px, -3px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line2); }
.btn.ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn.light { background: #fff; border-color: #fff; color: var(--blue); }
.btn.light:hover { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.btn.outline-light { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn.outline-light:hover { background: #fff; color: var(--blue); border-color: #fff; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; }
.tlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--blue); white-space: nowrap; }
.tlink svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.tlink:hover svg { transform: translate(3px, -3px); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hh); color: var(--ink); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: background .35s, color .35s, border-color .35s, transform .45s var(--ease); }
.site-header .bar { max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 28px; }
.over-hero .site-header:not(.solid) { background: transparent; color: #fff; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.over-hero .site-header:not(.solid) .logo-dark { display: none; }
.over-hero .site-header:not(.solid) .logo-light { display: block; }
.over-hero .site-header:not(.solid) .header-cta .btn { background: #fff; border-color: #fff; color: var(--blue); }
.site-header.hide { transform: translateY(-100%); }
.brand { display: block; flex: none; }
.brand img { height: 44px; width: auto; }
.brand .logo-light { display: none; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 600; }
.nav > a, .dd > button { position: relative; padding: 8px 0; background: none; border: 0; display: inline-flex; align-items: center; gap: 6px; font: inherit; }
.nav > a::after, .dd > button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav > a:hover::after, .nav > a[aria-current]::after, .dd:hover > button::after { transform: scaleX(1); }
.dd { position: relative; }
.dd-menu { position: absolute; top: calc(100% + 16px); left: -18px; width: 320px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .25s var(--ease); }
.dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.dd:hover .dd-menu, .dd.open .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a { display: flex; gap: 12px; padding: 10px 12px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.dd-menu a span { color: var(--cyan); font-variant-numeric: tabular-nums; }
.dd-menu a:hover { background: var(--paper2); color: var(--blue); }
.header-cta .btn { min-height: 42px; padding: 9px 18px; font-size: 14px; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; margin: 0 -10px 0 auto; position: relative; z-index: 3; }
.menu-toggle i { display: block; width: 24px; height: 2px; background: currentColor; margin: 6px 0; border-radius: 2px; transition: transform .35s var(--ease); }
.nav-open .menu-toggle i:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .menu-toggle i:last-child { transform: translateY(-4px) rotate(-45deg); }
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--cyan); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; pointer-events: none; }

/* ---------- Heroes (full-bleed media, content on the grid) ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; max-height: 1100px; overflow: hidden; display: flex; align-items: flex-end; background: var(--navy); color: #fff; }
.hero .media { position: absolute; inset: 0; }
.hero .media > img, .hero .media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero video { opacity: 0; transition: opacity 1.2s ease; }
.hero video.on { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(11, 27, 58, .45) 0%, rgba(11, 27, 58, .12) 30%, rgba(11, 27, 58, .2) 55%, rgba(11, 27, 58, .78) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(36px, 7vh, 80px); }
.hero h1 { max-width: 14ch; text-shadow: 0 2px 24px rgba(11, 27, 58, .25); }
.hero .lede { color: rgba(255, 255, 255, .92); }
.hero .label { color: var(--sky); }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; margin-top: 28px; flex-wrap: wrap; padding-right: 76px; }
.reel-tag { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.reel-dots { display: flex; gap: 6px; }
.reel-dots button { width: 24px; height: 3px; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .35); position: relative; overflow: hidden; }
.reel-dots button[aria-current="true"]::after { content: ""; position: absolute; inset: 0; background: var(--sky); transform-origin: left; animation: reelbar var(--dur, 9s) linear forwards; }
@keyframes reelbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.page-hero { height: 78vh; height: 78svh; min-height: 480px; max-height: 860px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; color: var(--blue); }
.hero .crumbs { color: var(--sky); }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; }

/* Inner page head without photo */
.p-head { padding: calc(var(--hh) + clamp(48px, 7vw, 96px)) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.p-head .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Sections ---------- */
.sec { padding: var(--sec) 0; overflow-x: clip; }
.sec.tight { padding-top: calc(var(--sec) * .5); }
.alt { background: var(--paper2); }
.blue { background: var(--blue); color: #fff; }
.blue .label { color: var(--sky); }
.blue .lede { color: rgba(255, 255, 255, .88); }
.navy { background: var(--navy); color: #fff; }
.navy .label { color: var(--sky); }
.navy .lede, .navy .muted { color: rgba(255, 255, 255, .78); }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 3.5vw, 48px); }
.head-row .lede { max-width: 46ch; }

/* 50/50 photo + text splits */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.top { align-items: start; }
/* The photo column takes exactly the height of the text column next to it (never taller), with a sensible minimum. */
.split:has(> .pic) { align-items: stretch; }
.split:has(> .pic) > div { align-self: center; }
.split .pic { position: relative; border-radius: var(--r); overflow: hidden; background: var(--paper2); min-height: clamp(300px, 30vw, 440px); height: 100%; margin: 0; }
.split .pic img, .split .pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split .pic.vert { background: var(--navy); }
.split .pic.vert video { object-fit: contain; }
.split .say { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.35; font-weight: 500; letter-spacing: -.005em; margin: 0 0 18px; }
.split .body p { color: var(--soft); }
.split.rev > :first-child { order: 2; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.stat { padding: 8px clamp(12px, 2vw, 28px); border-left: 1px solid rgba(255, 255, 255, .22); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-weight: 800; font-stretch: 72%; font-size: clamp(40px, 4.6vw, 72px); line-height: 1; color: #fff; }
.stat b em { font-style: normal; color: var(--sky); }
.stat span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, .85); max-width: 22ch; }
.stats.on-paper .stat { border-left-color: var(--line); }
.stats.on-paper .stat b { color: var(--ink); }
.stats.on-paper .stat b em { color: var(--cyan); }
.stats.on-paper .stat span { color: var(--muted); }

/* ---------- Service cards (hover reveal) ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.card { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--navy); color: #fff; aspect-ratio: 3 / 4; isolation: isolate; }
.card.wide { grid-column: span 2; aspect-ratio: auto; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); z-index: -2; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 27, 58, 0) 35%, rgba(11, 27, 58, .85) 100%); transition: opacity .45s; }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 80, 164, .78), rgba(11, 27, 58, .95)); opacity: 0; transition: opacity .45s var(--ease); }
.card .in { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(18px, 2vw, 26px); }
.card .n { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--sky); }
.card h3 { margin: 6px 0 0; }
.card .more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.card .more > div { overflow: hidden; }
.card .more p { margin: 12px 0 14px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .9); opacity: 0; transform: translateY(8px); transition: opacity .4s .05s, transform .5s var(--ease); }
.card .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--sky); opacity: 0; transform: translateY(8px); transition: opacity .4s .1s, transform .5s var(--ease); }
.card .go svg { width: 14px; height: 14px; }
.card:hover img, .card:focus-visible img { transform: scale(1.06); }
.card:hover::after, .card:focus-visible::after { opacity: 1; }
.card:hover .more, .card:focus-visible .more { grid-template-rows: 1fr; }
.card:hover .more p, .card:hover .go, .card:focus-visible .more p, .card:focus-visible .go { opacity: 1; transform: none; }

/* ---------- Logo marquee (moves left to right) ---------- */
.logos { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos + .logos { margin-top: var(--gap); }
.logos-track { display: flex; gap: var(--gap); width: max-content; animation: marquee-r 70s linear infinite; }
.logos.slow .logos-track { animation-duration: 95s; }
.logos:hover .logos-track { animation-play-state: paused; }
.logo-chip { flex: none; width: 196px; height: 96px; display: grid; place-items: center; padding: 14px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.logo-chip img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-chip span { font-weight: 800; font-stretch: 80%; font-size: 18px; text-transform: uppercase; color: var(--blue); text-align: center; line-height: 1.1; }
@keyframes marquee-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--gap); }
.logo-grid .logo-chip { width: auto; }

/* ---------- Reviews coverflow ---------- */
.flow { position: relative; height: clamp(380px, 34vw, 430px); perspective: 1400px; touch-action: pan-y; user-select: none; }
.flow-card { position: absolute; top: 0; left: 50%; width: min(560px, 82vw); height: 100%; margin-left: calc(min(560px, 82vw) / -2); background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; transition: transform .7s var(--ease), opacity .7s var(--ease), filter .7s; will-change: transform; cursor: pointer; }
.flow-card .q { font-weight: 800; font-stretch: 72%; font-size: 72px; line-height: .6; color: var(--cyan); height: 34px; }
.flow-card blockquote { margin: 14px 0 0; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--soft); flex: 1; overflow: hidden; }
.flow-card cite { font-style: normal; display: block; padding-top: 16px; border-top: 1px solid var(--line); }
.flow-card cite b { display: block; font-size: 16px; }
.flow-card cite span { font-size: 14px; color: var(--muted); }
.flow-card.on { cursor: default; }
.flow-ctrl { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 28px; }
.flow-ctrl button.arw { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line2); background: var(--card); display: grid; place-items: center; transition: .25s; }
.flow-ctrl button.arw:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.flow-dots { display: flex; gap: 8px; }
.flow-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--line2); transition: .3s; }
.flow-dots button[aria-current="true"] { width: 24px; border-radius: 4px; background: var(--blue); }
.navy .flow-ctrl button.arw { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.navy .flow-dots button { background: rgba(255, 255, 255, .35); }
.navy .flow-dots button[aria-current="true"] { background: var(--sky); }

/* ---------- Work tiles (contained) ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--navy); color: #fff; aspect-ratio: 16 / 11; }
.tile.wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(11, 27, 58, .88)); pointer-events: none; }
.tile .cap { position: absolute; z-index: 2; left: clamp(18px, 2.6vw, 36px); right: clamp(18px, 2.6vw, 36px); bottom: clamp(18px, 2.4vw, 32px); display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.tile .meta { margin: 0 0 8px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.tile h3 { font-weight: 800; font-stretch: 72%; text-transform: uppercase; line-height: .92; font-size: clamp(28px, 3vw, 48px); }
.tile.wide h3 { font-size: clamp(34px, 4.6vw, 72px); }
.tile .go { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; transition: transform .4s var(--ease), background .3s, color .3s; }
.tile .go svg { width: 16px; height: 16px; }
.tile:hover .go { transform: rotate(45deg); background: var(--cyan); color: #fff; }
.tile .vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.tile:hover .vid.on { opacity: 1; }

/* ---------- Mosaic + case grid (contained) ---------- */
.mosaic { display: grid; gap: var(--gap); grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: clamp(160px, 17vw, 240px); }
.mosaic figure { margin: 0; overflow: hidden; border-radius: var(--r); background: var(--paper2); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figure:nth-child(1) { grid-row: span 2; }
.mosaic figure:nth-child(4), .mosaic figure:nth-child(6) { grid-column: span 2; }
.case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 15vw, 230px); grid-auto-flow: dense; gap: var(--gap); }
.case-grid button { padding: 0; border: 0; background: var(--paper2); overflow: hidden; border-radius: var(--r); cursor: zoom-in; min-height: 0; }
.case-grid button:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
.case-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.case-grid button:hover img { transform: scale(1.04); }

/* ---------- Lists ---------- */
.subs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); }
.sub { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.sub .n { color: var(--cyan); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; padding-top: 3px; }
.sub h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.sub p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips span { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--paper2); color: var(--soft); }
.scope { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.scope span { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line2); }

/* Process flow (recce to report) */
.flow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: st; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 24px; }
.step::before { counter-increment: st; content: counter(st, decimal-leading-zero); display: block; font-weight: 800; font-stretch: 72%; font-size: 34px; line-height: 1; color: var(--cyan); margin-bottom: 12px; }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.blue .step { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.blue .step::before { color: var(--sky); }
.blue .step p { color: rgba(255, 255, 255, .82); }

/* Context block on case pages */
.context { border-left: 3px solid var(--cyan); padding: 4px 0 4px 20px; color: var(--soft); }
.context small { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
.context small a { text-decoration: underline; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--blue); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 70ch; }

/* CTA + Next */
.cta-box { border-radius: calc(var(--r) * 1.6); background: var(--blue); color: #fff; padding: clamp(36px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: end; position: relative; overflow: hidden; }
.cta-box::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(127, 221, 247, .35), transparent 70%); pointer-events: none; }
.cta-box h2 { font-size: clamp(42px, 6vw, 96px); }
.cta-box .contacts { display: grid; gap: 6px; font-size: 17px; }
.cta-box .contacts a:hover { color: var(--sky); }
.next { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.next b { font-weight: 800; font-stretch: 72%; text-transform: uppercase; font-size: clamp(32px, 4.4vw, 64px); line-height: .92; transition: color .3s; }
.next:hover b { color: var(--blue); }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .78); padding: clamp(56px, 7vw, 88px) 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a:hover { color: var(--sky); }
.site-footer .brand img { height: 50px; }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); transition: .25s; }
.socials a:hover { border-color: var(--sky); color: var(--sky); }
.socials svg { width: 17px; height: 17px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; }

/* Filters */
.filters { display: flex; gap: 8px; margin: 0 0 28px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; padding: 9px 16px; font-size: 14px; font-weight: 600; border-radius: 999px; border: 1px solid var(--line2); background: transparent; transition: .2s; }
.filter small { color: var(--muted); margin-left: 4px; font-weight: 500; }
.filter[aria-pressed="true"], .filter:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.filter[aria-pressed="true"] small, .filter:hover small { color: rgba(255, 255, 255, .75); }

/* Gallery */
.masonry { columns: 4 240px; column-gap: var(--gap); }
.masonry figure { margin: 0 0 var(--gap); break-inside: avoid; position: relative; cursor: zoom-in; overflow: hidden; border-radius: var(--r); background: var(--paper2); }
.masonry img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption { position: absolute; inset: auto 0 0; padding: 28px 12px 10px; font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(11, 27, 58, .85)); opacity: 0; transition: opacity .3s; }
.masonry figure:hover figcaption { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(11, 27, 58, .96); display: grid; place-items: center; padding: 56px 64px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; border-radius: 6px; }
.lightbox .cap { position: absolute; left: 16px; right: 16px; bottom: 16px; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .85); margin: 0; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; width: 52px; height: 52px; line-height: 1; }
.lb-close { top: 8px; right: 10px; } .lb-prev { left: 6px; top: 50%; transform: translateY(-50%); } .lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lightbox button:hover { color: var(--sky); }

/* About timeline */
.tl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.tl:last-child { border-bottom: 1px solid var(--line); }
.tl .yr { font-weight: 800; font-stretch: 72%; font-size: 28px; line-height: 1; color: var(--blue); }
.tl h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.tl p { margin: 0; color: var(--muted); font-size: 16px; }

/* Contact */
.form { display: grid; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--r) * 1.4); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--soft); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line2); background: #fff; color: var(--ink); border-radius: 10px; width: 100%; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(15, 80, 164, .15); }
.field textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; min-height: 1.4em; }
.form-status.ok { color: #0A7A43; } .form-status.err { color: #B42318; }
.routes { display: grid; }
.routes a { display: grid; gap: 2px; padding: 16px 0; border-top: 1px solid var(--line); }
.routes a:last-child { border-bottom: 1px solid var(--line); }
.routes a span { font-size: 13px; font-weight: 700; color: var(--muted); }
.routes a b { font-size: 19px; font-weight: 700; transition: color .25s; overflow-wrap: anywhere; }
.routes a:hover b { color: var(--blue); }
.map { width: 100%; height: 260px; border: 0; margin-top: 24px; border-radius: var(--r); }

/* ---------- Floating WhatsApp + Quick Query ---------- */
.fab-stack { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 70; display: grid; gap: 10px; justify-items: end; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 0; box-shadow: 0 10px 28px rgba(11, 27, 58, .3); position: relative; transition: transform .3s var(--ease); }
.fab:hover { transform: scale(1.07); }
.fab svg { width: 26px; height: 26px; }
.fab-wa { background: #25D366; color: #fff; }
.fab-bot { background: var(--blue); color: #fff; }
.fab .dot { position: absolute; top: 3px; right: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--sky); border: 2px solid #fff; }
.fab-label { position: absolute; right: 66px; top: 50%; transform: translateY(-50%); background: var(--navy); color: #fff; font-weight: 600; font-size: 13px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; transition: opacity .4s; }
.bot { position: fixed; right: 16px; bottom: 150px; width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100dvh - 190px)); z-index: 80; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(11, 27, 58, .3); display: flex; flex-direction: column; }
.bot[hidden] { display: none; }
.bot-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--blue); color: #fff; }
.bot-head .av { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; padding: 5px; flex: none; }
.bot-head small { display: block; opacity: .8; font-size: 12px; }
.bot-head button { margin-left: auto; background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; }
.bot-body { padding: 16px; overflow-y: auto; display: grid; gap: 10px; align-content: start; flex: 1; overscroll-behavior: contain; background: var(--paper); }
.msg { max-width: 86%; padding: 10px 13px; font-size: 15px; line-height: 1.45; border-radius: 14px; }
.bot-m { background: #fff; border: 1px solid var(--line); justify-self: start; }
.msg.me { background: var(--blue); color: #fff; justify-self: end; }
.typing { display: flex; gap: 4px; } .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: tp 1s infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tp { 50% { opacity: .2; } }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { padding: 7px 12px; border: 1px solid var(--blue); border-radius: 999px; background: #fff; color: var(--blue); font-weight: 600; font-size: 13px; }
.quick button:hover { background: var(--blue); color: #fff; }
.bot-foot { display: flex; border-top: 1px solid var(--line); background: #fff; }
.bot-foot input { flex: 1; min-width: 0; border: 0; padding: 14px; font: inherit; font-size: 16px; outline: none; background: transparent; color: var(--ink); }
.bot-foot button { width: 52px; border: 0; background: var(--cyan); color: #fff; display: grid; place-items: center; }
.bot-foot svg { width: 20px; height: 20px; }

/* ---------- Page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .2s ease both; }
::view-transition-new(root) { animation: vt-in .4s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { position: fixed; inset: 0; z-index: 2; background: var(--paper); color: var(--ink); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: calc(var(--hh) + 16px) var(--gut) 40px; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav.open { opacity: 1; visibility: visible; }
  .nav > a, .dd > button { width: 100%; justify-content: space-between; font-size: clamp(30px, 8vw, 44px); font-weight: 800; font-stretch: 72%; text-transform: uppercase; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav > a::after, .dd > button::after { display: none; }
  .dd-menu { position: static; width: auto; opacity: 1; visibility: visible; transform: none; display: none; border: 0; background: none; box-shadow: none; padding: 6px 0 12px; }
  .dd.open .dd-menu { display: block; }
  .dd-menu a { padding: 10px 0; font-size: 17px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .nav-open .site-header { background: var(--paper) !important; color: var(--ink) !important; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
  .nav-open .site-header .logo-dark { display: block !important; } .nav-open .site-header .logo-light { display: none !important; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta-box { grid-template-columns: 1fr; }
}
@media (hover: none) {
  .card::after { opacity: 0; }
  .card .more { grid-template-rows: 1fr; }
  .card .more p, .card .go { opacity: 1; transform: none; }
  .card .more p { font-size: 14px; margin: 8px 0 10px; }
}
@media (max-width: 760px) {
  :root { --hh: 64px; --r: 12px; }
  body { font-size: 16px; }
  .brand img { height: 36px; }
  h1, .d1 { font-size: clamp(42px, 13vw, 64px); }
  .hero { min-height: 520px; }
  .hero::after { background: linear-gradient(180deg, rgba(11, 27, 58, .5) 0%, rgba(11, 27, 58, .15) 28%, rgba(11, 27, 58, .35) 52%, rgba(11, 27, 58, .9) 100%); }
  .hero-row { padding-right: 0; margin-top: 18px; }
  .hero .lede { font-size: 16px; }
  .hero .crumbs { display: none; }
  .page-hero { height: 64svh; min-height: 420px; }
  .split, .split.top { grid-template-columns: 1fr; gap: 24px; }
  .split.rev > :first-child { order: 0; }
  .split .pic { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
  .split .pic.vert { aspect-ratio: 4 / 5; }
  .stats { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .stat, .stat:nth-child(4) { border-left: 0; padding: 0; }
  .stat:last-child { grid-column: 1 / -1; }
  .cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 6px; scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .card, .card.wide { flex: 0 0 74vw; aspect-ratio: 4 / 5; scroll-snap-align: start; }
  .card .in { padding: 14px; }
  .card h3 { font-size: 24px; }
  .card .more p { font-size: 14px; }
  .card .go { font-size: 13px; margin-top: 6px; }
  .logo-chip { width: 150px; height: 76px; padding: 12px 14px; }
  .flow { height: 440px; }
  .tiles { grid-template-columns: 1fr; gap: 12px; }
  .tile, .tile.wide { aspect-ratio: 4 / 5; }
  .tile h3, .tile.wide h3 { font-size: clamp(28px, 9vw, 40px); }
  .tile .go { width: 40px; height: 40px; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; gap: 10px; }
  .mosaic figure:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .mosaic figure:nth-child(4), .mosaic figure:nth-child(6) { grid-column: span 1; }
  .mosaic figure:nth-child(n+6) { display: none; }
  .case-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; gap: 10px; }
  .case-grid button:nth-child(5n+1) { grid-column: span 2; grid-row: span 1; }
  .subs { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr; gap: 10px; }
  .step { padding: 18px; display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; }
  .step::before { grid-row: span 2; font-size: 28px; margin: 0; }
  .tl { grid-template-columns: 1fr; gap: 4px; }
  .row2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .masonry { columns: 2; column-gap: 10px; } .masonry figure { margin-bottom: 10px; }
  .lightbox { padding: 48px 6px; }
  .fab { width: 50px; height: 50px; }
  .fab-label { display: none; }
  .bot { bottom: 136px; right: 10px; width: calc(100vw - 20px); }
  .next b { font-size: clamp(28px, 9vw, 40px); }
  .cta-box { padding: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .logos-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .logos-track > [aria-hidden] { display: none; }
}

/* ---------- v6: contrasting bands, ribbon, spotlight panels, smooth section transitions ---------- */
.ice { background: var(--ice); }
.cyan { background: var(--cyan); color: var(--navy); }
.cyan .label { color: var(--navy); }
.ribbon { background: var(--cyan); color: var(--navy); overflow: hidden; border-block: 1px solid rgba(11, 27, 58, .12); }
.ribbon-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ribbon span { display: inline-flex; align-items: center; gap: 18px; padding: 14px 18px 14px 0; font-weight: 800; font-stretch: 75%; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(15px, 1.3vw, 19px); white-space: nowrap; }
.ribbon span::after { content: "✦"; color: #fff; font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

.spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(88vh, 860px); overflow: hidden; }
.spot.flip > .spot-media { order: 2; }
.spot-media { position: relative; display: grid; place-items: center; padding: clamp(32px, 5vw, 72px); overflow: hidden; isolation: isolate; }
.spot-media .frame { position: relative; z-index: 1; width: min(100%, 380px); aspect-ratio: 9 / 16; max-height: 72vh; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .28); background: #000; }
.spot-media .frame.land { width: 100%; max-width: 640px; aspect-ratio: 4 / 3; }
.spot-media .frame video, .spot-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.spot-word { position: absolute; z-index: 0; top: 50%; font-weight: 800; font-stretch: 62%; text-transform: uppercase; line-height: .8; font-size: clamp(64px, 9vw, 150px); color: rgba(255, 255, 255, .16); white-space: nowrap; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); pointer-events: none; }
.spot-word.l { left: clamp(4px, 1.5vw, 24px); }
.spot-word.r { right: clamp(4px, 1.5vw, 24px); transform: translateY(-50%); }
.spot-copy { display: flex; align-items: center; padding: clamp(40px, 6vw, 96px) clamp(24px, 5vw, 88px); }
.spot-in { max-width: 560px; }
.spot-in .h2 { margin-bottom: 20px; }
.spot-in .lede { margin-bottom: 26px; }
.spot-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 28px; padding: 18px 0; border-block: 1px solid var(--line); }
.spot-stats b { display: block; font-weight: 800; font-stretch: 72%; font-size: clamp(30px, 3vw, 46px); line-height: 1; color: var(--blue); }
.spot-stats span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.spot.blue, .spot.navy { background: none; color: var(--ink); }
.spot.blue .spot-copy .label, .spot.navy .spot-copy .label { color: var(--blue); }
.spot.blue .spot-copy .lede, .spot.navy .spot-copy .lede { color: var(--soft); }
.spot.blue .spot-media { background: var(--blue); }
.spot.blue .spot-copy { background: var(--ice); }
.spot.navy { background: none; color: var(--ink); }
.spot.navy .spot-media { background: var(--navy); }
.spot.navy .spot-copy { background: #fff; }
.spot.cyan { background: none; color: var(--ink); }
.spot.cyan .spot-media { background: var(--cyan); }
.spot.cyan .spot-media .spot-word { color: rgba(11, 27, 58, .14); }
.spot.cyan .spot-copy { background: var(--navy); color: #fff; }
.spot.cyan .spot-copy .label { color: var(--sky); }
.spot.cyan .spot-copy .lede { color: rgba(255, 255, 255, .85); }
.spot.cyan .spot-stats { border-color: rgba(255, 255, 255, .2); }
.spot.cyan .spot-stats b { color: var(--sky); }
.spot.cyan .spot-stats span { color: rgba(255, 255, 255, .75); }
.spot.cyan .btn { background: #fff; border-color: #fff; color: var(--blue); }

/* Smooth reveal for bands and photos (JS adds .in; without JS everything shows) */
.js [data-wipe] .frame, .js .split .pic { clip-path: inset(8% 8% 8% 8% round 18px); opacity: .001; transition: clip-path 1.1s var(--ease), opacity .8s ease; }
.js [data-wipe].in .frame, .js .split .pic.in { clip-path: inset(0 0 0 0 round 14px); opacity: 1; }
.js .spot-word { opacity: 0; transition: opacity 1.2s ease .2s, translate 1.4s var(--ease); translate: 0 40px; }
.js [data-wipe].in .spot-word { opacity: 1; translate: 0 0; }
.sec, .spot, .ribbon { transition: background-color .6s ease; }
@media (prefers-reduced-motion: reduce) {
  .ribbon-track { animation: none; }
  .js [data-wipe] .frame, .js .split .pic, .js .spot-word { clip-path: none; opacity: 1; translate: none; transition: none; }
}
@media (max-width: 900px) {
  .spot { grid-template-columns: 1fr; min-height: 0; }
  .spot.flip > .spot-media { order: 0; }
  .spot-media { padding: 40px 20px; }
  .spot-media .frame { width: min(72vw, 340px); max-height: none; }
  .spot-word { font-size: clamp(54px, 16vw, 96px); }
  .spot-copy { padding: 40px var(--gut) 48px; }
  .spot-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .spot-stats b { font-size: 28px; }
}

.flow-steps:has(> :nth-child(9)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .flow-steps:has(> :nth-child(9)) { grid-template-columns: 1fr; } }

/* ---------- v7: colour-blocked "card" rhythm (each band is a solid panel), dark bands for lists ---------- */
.navy .sub, .blue .sub { border-color: rgba(255, 255, 255, .18); }
.navy .sub h3, .blue .sub h3 { color: #fff; }
.navy .sub p, .blue .sub p { color: rgba(255, 255, 255, .78); }
.navy .sub .n, .blue .sub .n { color: var(--sky); }
.navy .chips span, .blue .chips span { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .9); }
.navy .h2, .blue .h2 { color: #fff; }
.navy .tlink, .blue .tlink { color: var(--sky); }
.ice .faq details, .ice .faq details:last-child, .ice .sub { border-color: rgba(11, 27, 58, .16); }
.cta-band { background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.cta-band .cta-box { border-radius: 0; background: none; padding: clamp(56px, 7vw, 104px) 0; overflow: visible; }
.cta-band .cta-box::after { right: -60px; top: -160px; width: 520px; height: 520px; }
.sec + .cta-band, .spot + .cta-band { margin-top: 0; }
.next { border: 0; }
.case-next { background: var(--navy); color: #fff; }
.case-next .next b { color: #fff; }
.case-next .next:hover b { color: var(--sky); }
.case-next .label { color: var(--sky); }
.ice .tile, .ice .card { box-shadow: 0 1px 2px rgba(11, 27, 58, .08), 0 18px 40px rgba(11, 27, 58, .12); }
.ice .logo-chip { border-color: transparent; }
.spot-media .frame.land video { width: 100%; height: 100%; object-fit: cover; }

.spot.blue .spot-copy .h2, .spot.navy .spot-copy .h2 { color: var(--ink); }
.spot + .spot { border-top: 0; }
.spot-media .frame.land { width: min(82%, 640px); }
.spot-media:has(.frame.land) .spot-word { font-size: clamp(44px, 5.4vw, 92px); }

/* ---------- v8: coloured page heads and work/gallery/contact bands ---------- */
.p-head { background: var(--navy); color: #fff; border-bottom: 0; position: relative; overflow: hidden; isolation: isolate; }
.p-head::after { content: ""; position: absolute; z-index: -1; right: -12vw; top: -30%; width: 60vw; height: 160%; background: radial-gradient(closest-side, rgba(1, 163, 212, .35), transparent 70%); pointer-events: none; }
.p-head::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.p-head .crumbs { color: var(--sky); }
.p-head .lede { color: rgba(255, 255, 255, .85); }
.p-head h1 { color: #fff; }
.band-ice { background: var(--ice); }
.filter-bar { position: sticky; top: var(--hh); z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.filter-bar .filters { margin: 0; padding: 14px 0; }
.site-header.hide ~ main .filter-bar, .filter-bar.top { top: 0; }
.tiles .tile[hidden] { display: none; }
.contact-band { background: var(--ice); }
.contact-band .split { align-items: start; }
.contact-card { background: var(--blue); color: #fff; border-radius: calc(var(--r) * 1.4); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.contact-card .routes a { border-color: rgba(255, 255, 255, .22); }
.contact-card .routes a span { color: var(--sky); }
.contact-card .routes a:hover b { color: var(--sky); }
.contact-card .btn { background: #fff; border-color: #fff; color: var(--blue); }
.contact-card .map { border-radius: var(--r); margin-top: 24px; }
.contact-card h2 { margin-bottom: 8px; }
/* Gallery: an even grid (cleaner than masonry, and stays tidy when filtered) */
.masonry { columns: auto !important; column-count: auto !important; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.masonry figure { margin: 0 !important; aspect-ratio: 4 / 3; break-inside: auto; }
.masonry figure img { width: 100%; height: 100%; object-fit: cover; }
.masonry figure[hidden] { display: none; }
@media (max-width: 900px) { .masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* v9: small case galleries (fewer than 5 photos) sit in an even row */
.case-grid.few { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); grid-auto-rows: auto; }
.case-grid.few button, .case-grid.few button:nth-child(5n+1) { grid-column: auto; grid-row: auto; aspect-ratio: 3 / 2; }
@media (max-width: 760px) { .case-grid.few { grid-template-columns: 1fr 1fr; } }

/* v9: real JKM logo in the chat header */
.bot-head .av { width: auto !important; height: auto !important; display: flex !important; align-items: center; border-radius: 9px !important; padding: 6px 9px !important; background: #fff; flex: none; }
.bot-head .av img { height: 24px !important; width: auto !important; max-width: none; display: block; }
