/* SCT website v2, the default design since 2026-10-07 (`node build.mjs`; the earlier Mosaic design is `--v1`).
   Loaded after site.css. Calm light layout: a big centred headline with SCT shapes drifting along a diagonal band,
   then the four colour service tiles (shapes react to the pointer; a tile grows into its service page through a view
   transition), proof per offer that builds once, expandable rows on service pages. Everything stops with reduced motion
   (site.css switches every animation and transition off). */

/* ---------- page-to-page: the service tile grows into the service page hero (Chromium; others just load) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-group(*) { animation-duration: 0.6s; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
.v2 .site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out 0.2s ease-out both; }
::view-transition-new(root) { animation: vt-in 0.35s ease-out 0.1s both; }
::view-transition-old(vt-dt), ::view-transition-old(vt-ai), ::view-transition-old(vt-pt), ::view-transition-old(vt-sap) { animation: none; opacity: 0; }
::view-transition-new(vt-dt), ::view-transition-new(vt-ai), ::view-transition-new(vt-pt), ::view-transition-new(vt-sap) { animation: none; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- base and browser surfaces ---------- */
html.v2 { scrollbar-color: var(--sky-tint) var(--off); }
.v2 input, .v2 textarea { caret-color: var(--blue); }
.v2 table { font-variant-numeric: tabular-nums; }
:where(.v2) p { max-width: 62ch; }
.v2 .site-header { background: rgba(248, 246, 247, 0.82); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(7, 48, 65, 0.08); }
.v2 .site-nav .sub { border: none; border-width: 0; box-shadow: 0 2px 6px rgba(7, 48, 65, 0.06), 0 24px 48px -22px rgba(7, 48, 65, 0.45); }
.v2 .site-nav a.nav-cta { background: var(--navy); transition: background-color 0.25s, transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.v2 .site-nav ul a.nav-cta:hover { background: var(--blue); transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(7, 48, 65, 0.6); }
.v2 .btn { gap: 10px; transition: background-color 0.25s, color 0.25s, transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.v2 .btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(7, 48, 65, 0.55); }
.btn.dark-solid { background: var(--navy); color: var(--white); }
.btn.dark-solid:hover { background: var(--blue); color: var(--white); }
.btn.line { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 1.5px rgba(7, 48, 65, 0.3); }
.v2 .btn.line:hover { color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy), 0 16px 30px -14px rgba(7, 48, 65, 0.4); }
.arr-i { width: 1em; height: 1em; display: block; }
.v2 .btn span, .v2 .more span, .v2 .more-dark span { display: inline-flex; transition: transform 0.3s var(--ease); }
.v2 .btn:hover span { transform: translateX(4px); }

/* accent word: Ezra Regular on a yellow-tint highlighter bar; only where the word carries the meaning */
.v2 h1 em, .v2 h2 em { font-style: normal; font-weight: 400; color: inherit; padding: 0 0.06em; margin: 0 -0.02em;
  background: linear-gradient(transparent 60%, var(--yellow-tint) 60%, var(--yellow-tint) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.v2 .dark h2 em, .v2 section.dark h2 em { background: none; color: var(--yellow); }

.v2-title { font-size: clamp(2.1rem, 1.3rem + 2.8vw, 4rem); letter-spacing: -0.03em; max-width: 20ch; margin: 0 0 clamp(28px, 3.4vw, 48px); }
.v2 .section-title { letter-spacing: -0.03em; }
.v2-inner { max-width: var(--max); margin: 0 auto; }
.v2 .all-link { margin-top: 32px; }

/* ---------- hero: big centred headline, brand shapes drifting along a diagonal band ---------- */
.v2-hero { position: relative; overflow: hidden; background: var(--off); min-height: min(80vh, 800px); display: grid; align-content: center; padding: clamp(72px, 9vw, 128px) var(--gutter) clamp(64px, 8vw, 112px); }
.v2-band { position: absolute; left: -30%; right: -30%; top: 50%; height: clamp(150px, 17vw, 240px); transform: translateY(-50%) rotate(14deg);
  background: linear-gradient(90deg, rgba(162, 191, 208, 0) 4%, rgba(162, 191, 208, 0.32) 24%, rgba(162, 191, 208, 0.32) 76%, rgba(162, 191, 208, 0) 96%); }
/* shapes are visible at the sides and fade out behind the headline */
.v2-band .lane { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(90deg, #000 0 26%, transparent 37% 63%, #000 74%); mask-image: linear-gradient(90deg, #000 0 26%, transparent 37% 63%, #000 74%); }
.lane-shape { position: absolute; left: 0; top: var(--t); width: var(--s); height: var(--s); margin-top: calc(var(--s) / -2); opacity: 0.85; animation: lane var(--d) linear var(--dl) infinite; will-change: transform; }
@keyframes lane { from { transform: translateX(-80px) rotate(0deg); } to { transform: translateX(calc(170vw + 80px)) rotate(320deg); } }
.v2-cluster { position: absolute; z-index: 1; right: clamp(-230px, -11vw, -90px); bottom: clamp(-150px, -7vw, -60px); width: clamp(280px, 32vw, 500px); }
.v2-cluster-l { position: absolute; z-index: 1; left: 0; top: 0; width: clamp(110px, 13vw, 200px); }
.v2-hero-inner { position: relative; z-index: 2; text-align: center; max-width: 1180px; margin: 0 auto; }
.v2-hero h1 { font-size: clamp(2.75rem, 1.1rem + 5.6vw, 6rem); letter-spacing: -0.04em; line-height: 0.98; max-width: 11em; margin: 0 auto; color: var(--navy); }
.v2-hero .btns { justify-content: center; max-width: none; margin-top: clamp(30px, 3.6vw, 48px); }
.v2-facts { position: relative; z-index: 2; list-style: none; margin: clamp(48px, 6vw, 88px) auto 0; padding: 0; width: 100%; max-width: 1040px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.v2-facts li { display: grid; gap: 4px; align-content: start; text-align: center; padding: 20px 22px; border-radius: 22px; background: var(--white); box-shadow: 0 18px 40px -32px rgba(7, 48, 65, 0.5); }
.v2-facts strong { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.1; letter-spacing: -0.01em; }
.v2-facts span { color: var(--ink-soft); font-size: 0.975rem; line-height: 1.4; }

/* ---------- services: the four colour tiles ---------- */
.v2-services { max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter) 0; }
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.svc-grid .tile { grid-column: auto; min-height: clamp(320px, 27vw, 400px); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.svc-grid .tile h3 { font-size: clamp(1.5rem, 0.95rem + 1.1vw, 2.1rem); hyphens: manual; }
.svc-grid .tile p { font-size: 1.0625rem; font-weight: 400; max-width: 24ch; }
.svc-grid .t-pt .go { font-size: 0.9375rem; }
.svc-grid .t-sap { box-shadow: inset 0 0 0 1.5px var(--grey-tint); }
.svc-grid .t-ai .go i, .svc-grid .t-sap .go i { background: var(--navy); color: var(--white); }
.svc-grid .deco { transform-origin: 75% 75%; transition: rotate 0.8s var(--ease), scale 0.8s var(--ease); }
.svc-grid a.tile:hover { transform: translateY(-8px); box-shadow: 0 34px 50px -30px rgba(7, 48, 65, 0.6); }
.svc-grid a.tile.t-sap:hover { box-shadow: inset 0 0 0 1.5px var(--grey-tint), 0 34px 50px -30px rgba(7, 48, 65, 0.45); }
.svc-grid a.tile:hover .deco { rotate: -12deg; scale: 1.1; }

/* ---------- clients: an endless strip that pauses on hover; partners: a static row ---------- */
.v2-logos { padding: clamp(44px, 5vw, 72px) 0 0; }
.v2-logos .group-label { text-align: center; margin-bottom: 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee ul, .v2-partners ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.marquee ul { gap: clamp(48px, 5.5vw, 88px); padding-right: clamp(48px, 5.5vw, 88px); }
.marquee li { flex: none; }
.marquee img, .v2-partners img { height: 44px; width: auto; max-width: 140px; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1); opacity: 0.7; transition: filter 0.3s, opacity 0.3s, transform 0.4s var(--ease); }
.marquee .wordmark, .v2-partners .wordmark { color: #5d6f78; font-size: 1.15rem; transition: color 0.3s, opacity 0.3s; }
.marquee li:hover img, .v2-partners li:hover img { filter: none; opacity: 1; transform: scale(1.08); }
.marquee li:hover .wordmark, .v2-partners li:hover .wordmark { color: var(--navy); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.v2-partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 40px; max-width: var(--max); margin: clamp(28px, 3vw, 40px) auto 0; padding: 0 var(--gutter); }
.v2-partners .group-label { margin: 0; }
.v2-partners ul { flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.v2-partners li { transition: opacity 0.3s; }
@media (hover: hover) { .v2-partners ul:has(li:hover) li:not(:hover) { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; justify-content: center; padding: 0 var(--gutter); }
  .marquee ul { flex-wrap: wrap; justify-content: center; padding: 0; gap: 20px 48px; }
  .marquee ul[aria-hidden], .marquee li:nth-child(n + 7) { display: none; }
}

/* ---------- proof: one number per offer, each with a small visual that builds once ---------- */
.v2 .v2-results { padding-top: clamp(52px, 6vw, 88px); padding-bottom: clamp(52px, 6vw, 88px); }
.v2-results .v2-title { color: var(--on-dark); }
.res-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.stat { display: flex; flex-direction: column; padding: 20px 22px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); transition: transform 0.5s var(--ease), background-color 0.3s; }
.stat:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.1); }
.stat .stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 1.6rem + 2.4vw, 4rem); line-height: 1; letter-spacing: -0.03em; color: var(--yellow); margin: 0 0 10px; font-variant-numeric: tabular-nums; }
.stat-num .unit { font-size: 0.42em; letter-spacing: 0; color: var(--on-dark); }
.stat h3 { font-size: 1.2rem; line-height: 1.2; color: var(--on-dark); margin-bottom: 8px; }
.stat p { color: var(--on-dark-soft); font-size: 0.975rem; margin: 0; }
.v2 .dark a.stat-link { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 0.9375rem; color: var(--on-dark); text-decoration: none; }
.v2 .dark a.stat-link:hover { color: var(--yellow); }
.stat-link .glyph { width: 18px; height: 18px; flex: none; }
.stat-link i { display: inline-flex; transition: transform 0.3s var(--ease); }
.stat-link:hover i { transform: translateX(4px); }
.viz { height: 124px; margin-bottom: 22px; padding: 16px; border-radius: 18px; background: rgba(0, 0, 0, 0.16); position: relative; overflow: hidden; }
/* AI: 43 dots, one per use case */
.viz-dots { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; align-content: center; }
.viz-dots i { aspect-ratio: 1; border-radius: 50%; background: var(--yellow); transition: transform 0.5s var(--ease) calc(var(--i) * 22ms); }
.viz-dots i:nth-child(3n + 2) { background: var(--sky); }
.viz-dots i:nth-child(7n + 4) { background: var(--off); }
.motion .stat:not(.is-in) .viz-dots i { transform: scale(0); }
/* DT: the six steps of an ERP/CRM selection light up in order */
.viz-steps { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.viz-steps .rail { position: absolute; left: 32px; right: 32px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); }
.viz-steps .rail b { position: absolute; inset: 0; border-radius: inherit; background: var(--yellow); transform-origin: left; transition: transform 1.3s var(--ease) 0.15s; }
.viz-steps i { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); box-shadow: inset 0 0 0 2.5px var(--yellow); transition: background-color 0.3s calc(0.2s + var(--i) * 0.2s), box-shadow 0.3s calc(0.2s + var(--i) * 0.2s); }
.viz-steps i:last-child { width: 28px; height: 28px; background: var(--sky); box-shadow: 0 0 0 6px rgba(102, 162, 188, 0.25); }
.motion .stat:not(.is-in) .viz-steps .rail b { transform: scaleX(0); }
.motion .stat:not(.is-in) .viz-steps i { background: var(--navy); box-shadow: inset 0 0 0 2.5px var(--sky); }
/* JUNO: pay bands rise grade by grade (a pictogram, no axis) */
.viz-bands { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.viz-bands span { position: relative; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.viz-bands i { position: absolute; left: 0; right: 0; border-radius: 6px; background: var(--sky); transform-origin: bottom; transition: transform 0.7s var(--ease) calc(var(--i) * 90ms); }
.viz-bands span:nth-child(5) i { background: var(--yellow); }
.motion .stat:not(.is-in) .viz-bands i { transform: scaleY(0); }
/* SAP: 12-month timeline, exit at month 9 (centre of the ninth column) */
.viz-time { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.ticks { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); font-size: 0.75rem; font-weight: 700; color: var(--on-dark-soft); text-align: center; }
.track { position: relative; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); }
.track b { position: absolute; left: 0; top: 0; bottom: 0; width: 70.833%; border-radius: inherit; background: linear-gradient(90deg, var(--sky), var(--yellow)); transform-origin: left; transition: transform 1.4s var(--ease) 0.2s; }
.track .pin { position: absolute; left: 70.833%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 6px rgba(245, 216, 95, 0.25); transition: opacity 0.4s 1.4s, transform 0.5s var(--ease) 1.4s; animation: pin 2.6s ease-in-out 2s infinite; }
@keyframes pin { 50% { box-shadow: 0 0 0 12px rgba(245, 216, 95, 0); } }
.motion .stat:not(.is-in) .track b { transform: scaleX(0); }
.motion .stat:not(.is-in) .track .pin { opacity: 0; transform: scale(0.4); }
.time-labels { position: relative; height: 1.4em; font-size: 0.8125rem; font-weight: 700; color: var(--on-dark); }
.time-labels span { position: absolute; left: 0; }
.time-labels .to { left: 70.833%; transform: translateX(-50%); color: var(--yellow); white-space: nowrap; }

/* ---------- work, team ---------- */
.v2-work { background: var(--off); margin-top: var(--section); padding: var(--section) var(--gutter); }
.v2 .case { background: var(--white); box-shadow: 0 18px 40px -30px rgba(7, 48, 65, 0.4); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.v2 .case:nth-child(4n+1), .v2 .case:nth-child(4n+4) { background: var(--white); }
.v2 .case:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(7, 48, 65, 0.5); }
.v2 .case h2, .v2 .case h3 { line-height: 1.15; }
.v2 .work .case, .v2 .refs .case { background: var(--off); box-shadow: none; }
.v2 .work .case:hover, .v2 .refs .case:hover { box-shadow: 0 30px 50px -34px rgba(7, 48, 65, 0.45); }
.more-cases { margin-top: var(--gap); }
.more-cases > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 14px; font-weight: 800; color: var(--blue); padding: 8px 0; border-radius: 8px; }
.more-cases > summary::-webkit-details-marker { display: none; }
.more-cases[open] > summary { margin-bottom: var(--gap); }
.v2-team { max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter) 0; }
.team-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(28px, 3.4vw, 48px); }
.team-head .v2-title { margin: 0; }
.team-head p { margin: 0; color: var(--ink-soft); font-size: 1.125rem; }
.v2 .person { transition: transform 0.5s var(--ease); }
.v2 .person img { aspect-ratio: 1 / 1; object-position: 50% 22%; filter: grayscale(1) contrast(1.05); transition: filter 0.6s var(--ease); }
.v2 .person:hover { transform: translateY(-4px); }
.v2 .person:hover img, .v2 .person:focus-within img { filter: none; }

/* ---------- expandable rows (service pages): summary visible, detail on demand ---------- */
.acc-list { border-top: 1px solid var(--grey-tint); }
.acc-item { border-bottom: 1px solid var(--grey-tint); }
.acc-item > summary, .acc-item.static { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) 40px; gap: 8px clamp(24px, 4vw, 64px); align-items: start; padding: clamp(22px, 2.4vw, 32px) 0; }
.acc-item > summary { list-style: none; cursor: pointer; border-radius: 12px; }
.acc-item > summary::-webkit-details-marker { display: none; }
.acc-item.static { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.acc-title { font-size: clamp(1.4rem, 1rem + 1.1vw, 2rem); line-height: 1.08; margin: 0; transition: color 0.25s; }
.acc-sum { color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.6; max-width: 62ch; }
.acc-item > summary:hover .acc-title { color: var(--blue); }
.acc-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) 40px; column-gap: clamp(24px, 4vw, 64px); padding-bottom: clamp(26px, 3vw, 40px); }
.acc-body > * { grid-column: 2; }
.acc-body > p:first-child { margin-top: 0; }
.acc-icon { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 1.5px rgba(7, 48, 65, 0.28); transition: background-color 0.3s, box-shadow 0.3s; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: var(--navy); transition: transform 0.45s var(--ease), background-color 0.3s; }
.acc-icon::after { transform: rotate(90deg); }
summary:hover .acc-icon { box-shadow: inset 0 0 0 1.5px var(--navy); }
[open] > summary .acc-icon { background: var(--navy); }
[open] > summary .acc-icon::before, [open] > summary .acc-icon::after { background: var(--white); }
[open] > summary .acc-icon::after { transform: rotate(0deg); }
.dark .acc-list, .dark .acc-item { border-color: rgba(255, 255, 255, 0.16); }
.dark .acc-sum { color: var(--on-dark-soft); }
.dark .acc-icon { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }
.dark .acc-icon::before, .dark .acc-icon::after { background: var(--on-dark); }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .acc-item::details-content, .more-cases::details-content { block-size: 0; overflow: hidden; transition: block-size 0.5s var(--ease), content-visibility 0.5s allow-discrete; }
  .acc-item[open]::details-content, .more-cases[open]::details-content { block-size: auto; }
}

/* ---------- contact: person card + form (home and every inner page) ---------- */
.v2-contact { background: var(--off); margin-top: var(--section); padding: var(--section) var(--gutter); }
.v2-contact .v2-inner { max-width: 1160px; }
.contact-card { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 34px 70px -46px rgba(7, 48, 65, 0.55); }
.person-card { position: relative; overflow: hidden; background: var(--navy); color: var(--on-dark); padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 24px; }
.person-card > *:not(.deco) { position: relative; z-index: 1; }
.person-card .pc-text { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 1rem + 0.8vw, 1.75rem); line-height: 1.2; letter-spacing: -0.01em; margin: 0; max-width: 16ch; }
.pc-person { display: flex; align-items: center; gap: 16px; }
.pc-person img { width: 88px; height: 88px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12); }
.person-card .name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.1; margin: 0 0 4px; }
.person-card .role { color: var(--sky-tint); font-weight: 700; font-size: 0.9375rem; line-height: 1.4; margin: 0; max-width: 24ch; }
.person-card .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; }
.person-card .links a { color: var(--on-dark); font-weight: 700; }
.person-card .links a:hover { color: var(--yellow); }
.form-side { padding: clamp(26px, 3.4vw, 48px); }

/* ---------- footer: logo + direct lines; the contact card above already invites a message ---------- */
.v2 .site-footer { margin-top: 0; border-radius: 0; }
.v2 .footer-cta h2, .v2 .footer-cta > p:not(.footer-reveals), .v2 .footer-actions { display: none; }
.footer-logo { width: 200px; height: auto; margin-bottom: 22px; }
.v2 .footer-reveals { margin-top: 0 !important; }

/* ---------- inner pages ---------- */
.v2 .page-hero { isolation: isolate; }
.v2 .page-hero .lead { max-width: 46ch; }
.v2 .phases > li { transition: transform 0.5s var(--ease); }
.v2 .phases > li:hover { transform: translateY(-6px); }
.v2 .phases .n { width: auto; height: auto; border-radius: 0; background: none; color: inherit; font-family: var(--font-display); font-weight: 400; font-size: 2.75rem; line-height: 1; letter-spacing: -0.02em; margin-bottom: 18px; justify-content: flex-start; }
.v2 .big-links a { transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.v2 .big-links a:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(7, 48, 65, 0.55); }
.v2 .big-links .arr { transition: transform 0.35s var(--ease); }
.v2 .big-links a:hover .arr { transform: translateX(6px); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .contact-card { grid-template-columns: minmax(0, 1fr); }
  .team-head { grid-template-columns: minmax(0, 1fr); }
  .v2-cluster { opacity: 0.5; }
  .v2-facts { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
  .acc-item > summary { grid-template-columns: minmax(0, 1fr) 40px; }
  .acc-item > summary .acc-sum { grid-column: 1; grid-row: 2; }
  .acc-item > summary .acc-icon { grid-column: 2; grid-row: 1; }
  .acc-item.static { grid-template-columns: minmax(0, 1fr); }
  .acc-body { grid-template-columns: minmax(0, 1fr); }
  .acc-body > * { grid-column: 1; }
}
@media (max-width: 640px) {
  .svc-grid, .res-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-grid .tile { min-height: 230px; }
  .v2-hero { min-height: 0; padding-top: 64px; }
  .v2-cluster { width: 220px; right: -110px; bottom: -90px; }
  .v2-cluster-l { display: none; }
  .v2-hero .btns .btn { width: 100%; }
  .v2 .page-hero h1 { font-size: clamp(1.9rem, 1rem + 4.4vw, 2.5rem); }
}

/* ---------- depth and motion (2026-10-07, round 3) ---------- */
/* numbers band: faint brand circles in the corner */
.v2-results { position: relative; }
.v2-results > .wrap { position: relative; z-index: 1; }

/* home hero clusters sit above the page with a soft shadow */
.v2-cluster, .v2-cluster-l { filter: drop-shadow(0 22px 28px rgba(7, 48, 65, 0.18)); }

/* off-white sections: a shape cluster peeks in at the edge, behind the content */
.v2-work, .v2-contact { position: relative; overflow: hidden; }
.v2-work > .v2-inner, .v2-contact > .v2-inner { position: relative; z-index: 1; }
.sec-shapes { position: absolute; z-index: 0; pointer-events: none; width: clamp(200px, 22vw, 340px); filter: drop-shadow(0 22px 30px rgba(7, 48, 65, 0.16)); }
.sec-shapes-work { right: clamp(-120px, -5vw, -50px); top: clamp(-120px, -6vw, -50px); }
.sec-shapes-contact { left: clamp(-150px, -7vw, -60px); bottom: clamp(-120px, -6vw, -40px); }

/* resting depth on the colour tiles and cards: a tight contact shadow plus a soft long one */
.svc-grid .tile { box-shadow: 0 1px 2px rgba(7, 48, 65, 0.08), 0 22px 40px -30px rgba(7, 48, 65, 0.45); }
.svc-grid .tile.t-sap { box-shadow: inset 0 0 0 1.5px var(--grey-tint), 0 1px 2px rgba(7, 48, 65, 0.06), 0 22px 40px -30px rgba(7, 48, 65, 0.35); }
.v2-facts li { box-shadow: 0 1px 2px rgba(7, 48, 65, 0.06), 0 18px 40px -30px rgba(7, 48, 65, 0.5); }

/* service-page heroes: a large soft orb for depth, shapes drifting across the right side only */
.hero-orb { position: absolute; z-index: 0; right: -12%; bottom: -55%; width: min(62vw, 820px); aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.08); pointer-events: none; }
.hero-ai .hero-orb, .hero-pt .hero-orb, .hero-sap .hero-orb { background: rgba(7, 48, 65, 0.06); }
.hero-lane { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0 56%, #000 72%); mask-image: linear-gradient(90deg, transparent 0 56%, #000 72%); }
.hero-lane .lane { position: absolute; left: -10%; right: -10%; top: 6%; bottom: 6%; transform: rotate(10deg); }
.hero-lane .lane-shape { opacity: 0.55; }
.v2 .page-hero .shapes { position: relative; z-index: 1; filter: drop-shadow(0 24px 30px rgba(7, 48, 65, 0.28)); }
@media (max-width: 1000px) { .hero-lane { display: none; } }
@media (max-width: 860px) { .sec-shapes { width: 170px; } }

/* ---------- review 2026-10-07 (team session) ---------- */
.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; }

/* service tiles: equal breathing room left and right; subtitles start on the same line in every tile */
.svc-grid .tile h3 { font-size: clamp(1.35rem, 0.75rem + 1vw, 1.8rem); min-height: 2.1em; padding-right: 4px; }
/* services overview: titles reserve two lines so the descriptions align; the arrow sits bottom right */
.v2 .big-links a { grid-template-rows: auto auto 1fr; align-items: start; }
.v2 .big-links .t { min-height: 2.1em; font-size: clamp(1.4rem, 0.9rem + 1vw, 2rem); }
.v2 .big-links .d { grid-row: 2; }
.v2 .big-links .arr { grid-row: 3; grid-column: 2; align-self: end; }
.big-links li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.big-links li:last-child:nth-child(odd) a { min-height: 160px; }

/* proof visuals keep living after they build (only once they are in view; off with reduced motion) */
.stat.is-in .viz-dots i { animation: twinkle 3.4s ease-in-out infinite; animation-delay: calc(1.2s + var(--i) * -173ms); }
@keyframes twinkle { 50% { scale: 0.66; opacity: 0.7; } }
.viz-steps .rail::after { content: ""; position: absolute; top: -3px; left: 0; width: 56px; height: 9px; border-radius: 9px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)); opacity: 0; }
.stat.is-in .viz-steps .rail::after { animation: railrun 3s cubic-bezier(0.45, 0, 0.25, 1) 1.6s infinite; }
@keyframes railrun { 0% { left: -10%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 92%; opacity: 0; } }
.stat.is-in .viz-steps i { animation: nodepulse 3s ease-out infinite; animation-delay: calc(1.7s + var(--i) * 0.42s); }
@keyframes nodepulse { 0%, 30% { box-shadow: inset 0 0 0 2.5px var(--yellow), 0 0 0 0 rgba(245, 216, 95, 0.55); } 60%, 100% { box-shadow: inset 0 0 0 2.5px var(--yellow), 0 0 0 10px rgba(245, 216, 95, 0); } }
.stat.is-in .viz-bands i { transform-origin: bottom; animation: bandbreath 4.2s ease-in-out infinite; animation-delay: calc(1.4s + var(--i) * 0.3s); }
@keyframes bandbreath { 50% { scale: 1 1.14; } }
.track b::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40px; border-radius: inherit; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0)); opacity: 0; }
.stat.is-in .track b::after { animation: trackshine 3.2s ease-in-out 2s infinite; }
@keyframes trackshine { 0% { left: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { left: calc(100% - 40px); opacity: 0; } }

/* team: contact links on one line across the three people */
@media (min-width: 1001px) {
  .v2 .team .person { display: flex; flex-direction: column; }
  .v2 .team .person .links { margin-top: auto; padding-top: 14px; }
}
/* partners, after the team */
.v2-team .v2-partners { margin-top: clamp(48px, 6vw, 80px); padding: clamp(24px, 3vw, 36px) 0 0; border-top: 1px solid var(--grey-tint); max-width: none; }

/* contact card: company lines (phone, email, booking) or a named person */
.pc-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pc-lines li { display: flex; align-items: center; gap: 12px; }
.pc-lines li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); }
.pc-lines li:nth-child(2)::before { border-radius: 0; background: var(--sky); rotate: 45deg; }
.pc-lines li:nth-child(3)::before { width: 12px; height: 10px; border-radius: 0; background: var(--amber); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.pc-lines a, .pc-lines .reveal { color: var(--on-dark); font-weight: 700; font-size: 1.0625rem; }
.pc-lines a:hover { color: var(--yellow); }
.pc-addr { color: var(--on-dark-soft); font-size: 0.9375rem; margin: auto 0 0; }
.pc-initials { width: 88px; height: 88px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12); }

/* AI: the 95% statement */
.v2 .statement { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
.st-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(32px, 6vw, 96px); align-items: end; }
.st-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 2rem + 13vw, 15rem); line-height: 0.85; letter-spacing: -0.05em; color: var(--yellow); margin: 0 0 18px; max-width: none; }
.st-text { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.4rem); line-height: 1.15; color: var(--on-dark); max-width: 22ch; margin: 0 0 22px; }
.st-claim { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); line-height: 1; color: var(--on-dark); margin: 0 0 18px; }
.v2 .st-claim em { font-style: normal; font-weight: 700; color: var(--yellow); background: none; padding: 0; margin: 0; }
.st-source { color: var(--on-dark-soft); font-size: 0.875rem; margin: 0; }
.st-side > p { color: var(--on-dark); font-size: 1.125rem; }
/* plain list: reads as information, not as buttons */
.st-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 0; }
.st-list li { display: grid; gap: 2px; padding: 14px 0 14px 28px; border-top: 1px solid rgba(255, 255, 255, 0.16); position: relative; }
.st-list li::before { content: ""; position: absolute; left: 0; top: 21px; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); }
.st-list strong { color: var(--on-dark); font-family: var(--font-display); font-size: 1.15rem; }
.st-list span { color: var(--on-dark-soft); font-size: 0.975rem; }

/* Pay Transparency: JUNO banner */
.juno-banner { position: relative; overflow: hidden; max-width: none; margin: var(--section) var(--gutter) 0; padding: clamp(44px, 6vw, 88px) clamp(24px, 4.5vw, 72px); border-radius: var(--radius-lg); background: var(--navy); color: var(--on-dark); }
.jb-inner { position: relative; z-index: 1; max-width: 760px; }
.juno-banner h2 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.5rem); letter-spacing: -0.035em; line-height: 1; color: var(--on-dark); margin-bottom: 20px; }
.v2 .juno-banner h2 em { font-style: normal; font-weight: 700; color: var(--yellow); background: none; padding: 0; margin: 0; }
.juno-banner p { color: var(--on-dark-soft); font-size: 1.1875rem; max-width: 48ch; }
.jb-shapes { position: absolute; z-index: 0; right: clamp(-80px, -3vw, -20px); bottom: -40px; width: clamp(220px, 30vw, 440px); filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.25)); }

/* Hospitality: the calculator, bigger, as its own section */
.v2 .calc .wrap.narrow { max-width: 980px; }
.v2 .calc fieldset { background: var(--white); box-shadow: 0 1px 2px rgba(7, 48, 65, 0.06), 0 22px 40px -32px rgba(7, 48, 65, 0.45); }

/* diagrams */
.dg-block { max-width: var(--max); margin-inline: auto; padding: var(--section) var(--gutter) 0; }
.dg-block.dark { max-width: none; margin: var(--section) var(--gutter) 0; padding: clamp(40px, 5vw, 72px) clamp(24px, 4.5vw, 72px); }
.dg-block .section-intro { max-width: 60ch; }

@media (max-width: 1000px) {
  .v2 .big-links .t { min-height: 0; }
  .st-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .svc-grid .tile h3 { min-height: 0; }
  .jb-shapes { width: 200px; right: -70px; bottom: -60px; opacity: 0.6; }
}
