/* Services hub, approved 24 Nov 2026: option D, black stage. Uses the approved tokens from home-r5.css. */
html { interpolate-size: allow-keywords; }
body.so { --blue: #4DA1FF; --line: rgba(1,1,1,.11); font-size: var(--fs); line-height: 1.5; }
.so main { display: block; }
.so h1, .so h2, .so h3 { margin: 0; font-weight: 400; }
.so p, .so figure { margin: 0; }
.so ol { list-style: none; margin: 0; padding: 0; }
.ic { flex: none; width: 21px; height: 21px; stroke-width: 1.4; opacity: .5; transition: opacity .25s var(--ease), transform .35s cubic-bezier(.34,1.56,.64,1); }
.so .pb { min-height: 44px; padding-inline: 1.4em; font-size: 13px; }
.so-js .up { opacity: 0; transform: translate3d(0, 18px, 0); }
.so-js .up.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1s var(--ease); }
@media (prefers-reduced-motion: reduce) { .so-js .up { opacity: 1; transform: none; } html:has(.so-a2) { scroll-behavior: auto; } }
@media (prefers-reduced-motion: no-preference) { html:has(.so-a2) { scroll-behavior: smooth; } }

.hd { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gut); align-items: end; padding: clamp(130px, 22vh, 210px) var(--gm) 0; }
.hd h1 { font-size: clamp(64px, 11.2vw, 210px); line-height: .92; letter-spacing: -.06em; }
.lead { max-width: 31rem; padding-bottom: .7vw; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.38; letter-spacing: -.015em; }
.so .st-bc { margin: 36px var(--gm) 0; }
.gbl { max-width: 25em; font-size: clamp(19px, 1.65vw, 26px); line-height: 1.26; letter-spacing: -.025em; }

/* the drawings */
.sc { color: #010101; }
.sc svg { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke: none; }
.sc .ln { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sc .fn { stroke-width: 1; opacity: .35; }
.sc .dk { fill: currentColor; stroke: none; }
.sc .bl { fill: var(--blue); stroke: none; }
.sc .ride { offset-rotate: 0deg; }
.sc .rd-design { offset-path: path('M28 106C62 40 132 96 172 34'); } /* in CSS, not a style attribute, for the CSP */
.sc .rd-strategy { offset-path: path('M26 112C70 112 58 56 100 56s38 46 74 8'); }
.sc .pop, .sc .ring, .sc .pulse, .sc .spin, .sc .grow { transform-box: fill-box; transform-origin: center; }
.sc .grow { transform-origin: bottom; }
.sc .ring { opacity: 0; }
.sc.live .draw { stroke-dasharray: 1; animation: sDraw 6s var(--ease) infinite; }
.sc.live .pop { animation: sPop 6s var(--ease) infinite; }
.sc.live .drift { animation: sDrift 6s ease-in-out infinite; }
.sc.live .spin { animation: sSpin 12s linear infinite; }
.sc.live .ring { animation: sRing 3.6s ease-out infinite; }
.sc.live .pulse { animation: sPulse 1.8s ease-in-out infinite; }
.sc.live .blink { animation: sBlink 1.1s steps(2) infinite; }
.sc.live .ride { animation: sRide 6s ease-in-out infinite; }
.sc.live .grow { animation: sGrow 6s var(--ease) infinite; }
.sc.live .d2 { animation-delay: .25s; } .sc.live .ring.d2 { animation-delay: 1.2s; }
.sc.live .d3 { animation-delay: .5s; } .sc.live .ring.d3 { animation-delay: 2.4s; }
.sc.live .d4 { animation-delay: .75s; } .sc.live .d5 { animation-delay: 1s; }
@keyframes sDraw { 0% { stroke-dashoffset: 1; } 35%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes sPop { 0% { opacity: 0; transform: scale(.7); } 16%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.9); } }
@keyframes sDrift { 0%, 100% { transform: none; } 42%, 62% { transform: translate(-44px, -30px); } }
@keyframes sSpin { to { transform: rotate(360deg); } }
@keyframes sRing { 0% { opacity: .9; transform: scale(.55); } 100% { opacity: 0; transform: scale(3.3); } }
@keyframes sPulse { 50% { transform: scale(1.28); } }
@keyframes sBlink { 50% { opacity: 0; } }
@keyframes sRide { 0% { offset-distance: 0%; } 66%, 90% { offset-distance: 100%; } 100% { offset-distance: 0%; } }
@keyframes sGrow { 0% { transform: scaleY(.08); } 30%, 88% { transform: none; } 100% { transform: scaleY(.08); } }
.vd { position: relative; width: 100%; height: 100%; overflow: hidden; background: #010101; }
.vd img, .vd video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.vd video { opacity: 0; transition: opacity .6s var(--ease); }
.vd video.on { opacity: 1; }

/* service rows: icon and name at rest, the description fades in on hover without moving anything */
.r { display: grid; grid-template-columns: 21px minmax(0, 1.2fr) minmax(0, 1fr) 16px; gap: 18px; align-items: center; min-height: 62px; border-top: 1px solid var(--line); }
.rows .r:last-child { border-bottom: 1px solid var(--line); }
.rn { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.2; letter-spacing: -.025em; }
.rb { font-size: 13.5px; line-height: 1.32; color: rgba(1,1,1,.62); opacity: 0; transform: translate3d(6px, 0, 0); transition: opacity .25s var(--ease), transform .35s var(--ease); }
.ra { opacity: 0; transition: opacity .25s var(--ease), transform .3s var(--ease); }
.r:focus-visible .rb, .r:focus-visible .ra { opacity: 1; transform: none; }
.r:focus-visible .ic { opacity: 1; }
@media (hover: hover) { .r:hover .rb, .r:hover .ra { opacity: 1; transform: none; } .r:hover .ic { opacity: 1; transform: rotate(-9deg) scale(1.14); } .rows:hover .r:not(:hover) .rn { opacity: .42; } .rn { transition: opacity .25s var(--ease); } }

/* the big index */
.ix { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: var(--gut); padding: var(--sp-big) var(--gm) 0; }
.il { position: relative; display: block; width: fit-content; font-size: clamp(38px, 5.56vw, 96px); line-height: 1.05; letter-spacing: -.05em; transition: opacity .3s var(--ease); }
.il-a { position: absolute; right: 100%; top: 0; margin-right: .22em; opacity: 0; transform: translateX(-.3em); transition: opacity .25s var(--ease), transform .4s var(--ease); }
@media (hover: hover) { .ix nav:hover .il:not(.on) { opacity: .22; } .il.on .il-a { opacity: 1; transform: none; } }
.pv { position: relative; flex: none; width: clamp(280px, 28vw, 520px); aspect-ratio: 5 / 4; overflow: hidden; border-radius: 4px; }
.pi { position: absolute; inset: 0; display: grid; place-items: center; background: #f1f3f6; opacity: 0; clip-path: inset(100% 0 0 0); transition: opacity .3s var(--ease), clip-path .65s var(--ease); }
.pi.on { opacity: 1; clip-path: inset(0); }
.pi img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* one chapter shape for every group: a large panel left, name and services right */
.ch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--gut) * 3); margin: var(--sp-huge) var(--gm) 0; scroll-margin-top: 104px; }
.ch-l { position: sticky; top: 96px; align-self: start; }
.ch-r { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 22px; }
.ch-r h2 { font-size: var(--fs-h1); line-height: 1; letter-spacing: -.05em; }
.ch-r .rows { margin-top: 26px; }
.ch-r h2 a, .wd-st h2 a { transition: opacity .25s var(--ease); }
@media (hover: hover) { .ch-r h2 a:hover, .wd-st h2 a:hover { opacity: .55; } }

/* D: black stage */
.stg { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 5 / 4; max-height: calc(100vh - 128px); overflow: hidden; color: #fff; background: #0c0d0f; border-radius: 4px; }
.stg::after { content: ""; position: absolute; inset: 0; opacity: .13; mix-blend-mode: overlay; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); }
.stg .sc { width: 60%; aspect-ratio: 200 / 140; color: inherit; }
.stg .sc .ln { stroke-width: .8; }
.stg .sc .fn { stroke-width: .55; opacity: .45; }
.stg.lt { color: #010101; background-color: #f1f4f8; background-image: radial-gradient(rgba(1,1,1,.14) 1px, transparent 1.4px); background-size: 18px 18px; }
.stg.lt::after { display: none; }

/* E: icon board. The panel is the group's own services, one lit at a time */
.brd { display: grid; gap: 1px; width: 100%; aspect-ratio: 5 / 4; max-height: calc(100vh - 128px); overflow: hidden; background: rgba(1,1,1,.09); border: 1px solid rgba(1,1,1,.09); border-radius: 4px; }
.brd.n4 { grid-template-columns: repeat(2, 1fr); }
.brd.n5 { grid-template-columns: repeat(6, 1fr); }
.brd.n5 .c:nth-child(-n+3) { grid-column: span 2; }
.brd.n5 .c:nth-child(n+4) { grid-column: span 3; }
.brd.n6 { grid-template-columns: repeat(3, 1fr); }
.brd.n12 { grid-template-columns: repeat(4, 1fr); }
.c { display: grid; place-items: center; min-width: 0; min-height: 0; background: #f6f7f9; transition: background-color .7s var(--ease); }
.c svg { width: clamp(26px, 3.3vw, 56px); height: clamp(26px, 3.3vw, 56px); stroke-width: 1; opacity: .55; transition: opacity .5s var(--ease), transform .7s cubic-bezier(.34,1.56,.64,1); }
.brd.n12 .c svg { width: clamp(20px, 2.3vw, 38px); height: clamp(20px, 2.3vw, 38px); }
.c.on { background: var(--blue); }
.c.on svg { opacity: 1; transform: scale(1.12); }

/* F: wide stage. Edge to edge band with the name and a big drawing, the services underneath */
.wd { margin-top: var(--sp-big); scroll-margin-top: 72px; }
.wd-st { display: flex; justify-content: space-between; align-items: center; gap: var(--gut); min-height: clamp(320px, 58vh, 620px); padding: 0 var(--gm); background-color: #f1f4f8; background-image: radial-gradient(rgba(1,1,1,.14) 1px, transparent 1.4px); background-size: 20px 20px; }
.wd-st h2 { font-size: clamp(44px, 7.4vw, 140px); line-height: .98; letter-spacing: -.055em; max-width: 8em; }
.wd-st .sc { flex: none; width: clamp(220px, 30vw, 560px); aspect-ratio: 200 / 140; }
.wd-st .sc .ln { stroke-width: .8; }
.wd-st .sc .fn { stroke-width: .55; }
.wd-b { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--gut) * 3); margin: 44px var(--gm) 0; }

/* the real client work, once, at full size */
.wk { margin: var(--sp-huge) var(--gm) 0; }
.wk h2 { margin-bottom: 40px; font-size: var(--fs-h1); line-height: 1; letter-spacing: -.05em; max-width: 11em; }
.wk-g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gut); }
.wk-t { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px var(--gut); grid-column: span 6; font-size: 15px; line-height: 1.3; }
.wk-t:first-child { grid-column: 1 / -1; }
.wk-t .vd { grid-column: 1 / -1; height: auto; aspect-ratio: 16 / 10; border-radius: 4px; }
.wk-t:first-child .vd { aspect-ratio: 21 / 10; }
.wk-t span:last-child { color: rgba(1,1,1,.62); }
.wk-t .vd img, .wk-t .vd video { transition: opacity .6s var(--ease), transform .8s var(--ease); }
@media (hover: hover) { .wk-t:hover .vd img, .wk-t:hover .vd video { transform: scale(1.025); } .wk-t:hover span:first-of-type { text-decoration: underline; text-underline-offset: 3px; } }

/* shared tail */
.pk, .pr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gut); margin: var(--sp-big) var(--gm) 0; padding-top: 24px; border-top: 1px solid #010101; }
.pk h2, .pr h2 { font-size: var(--fs-h1); line-height: 1; letter-spacing: -.05em; padding-right: 8%; }
.pk li { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.pk li:first-child { border-top: 0; padding-top: 4px; }
.pk h3 { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.2; letter-spacing: -.02em; }
.pk li p { font-size: 15px; line-height: 1.42; color: rgba(1,1,1,.7); }
.pr > div { display: grid; gap: 16px; max-width: 37rem; }

/* review switcher */
.so-sw { position: fixed; z-index: 999; left: 50%; top: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 3px; font-size: 12px; line-height: 1; white-space: nowrap; color: #fff; background: rgba(1,1,1,.86); border-radius: 18px; }
.so-sw a { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 11px; border-radius: 15px; }
.so-sw a.on { color: #010101; background: #fff; }
.so-sw b { font-weight: 600; }
.so-sw em { font-style: normal; }



@media (max-width: 999px) {
  .hd, .pk, .pr, .ch, .wd-b { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hd { padding-top: 120px; }
  .pv { display: none; }
  .ix { padding-top: 72px; }
  .ch { margin-top: 88px; }
  .ch-l { position: static; }
  .stg, .brd { max-height: none; }
  .wd { margin-top: 72px; }
  .wd-st { flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px; min-height: 0; padding-top: 44px; padding-bottom: 44px; }
  .wd-st .sc { align-self: center; width: min(70vw, 340px); }
  .wd-b { margin-top: 28px; }
  .wk { margin-top: 88px; }
  .pk, .pr { margin-top: 88px; }
}
@media (max-width: 699px), (hover: none) {
  .r { grid-template-columns: 21px minmax(0, 1fr) 16px; gap: 12px; }
  .rb { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ra { opacity: .55; }
  .ic { opacity: .75; }
}
@media (max-width: 699px) {
  .r { min-height: 56px; }
  .il { padding: 3px 0; }
  .ch-r h2 a, .wd-st h2 a { display: inline-flex; align-items: center; min-height: 44px; }
  .c svg { width: 30px; height: 30px; }
  .brd.n12 .c svg { width: 24px; height: 24px; }
  .wk-t, .wk-t:first-child { grid-column: 1 / -1; }
  .wk-t:first-child .vd { aspect-ratio: 16 / 10; }
  .pk li { grid-template-columns: 1fr; gap: 6px; }
  .so-sw { top: auto; bottom: 8px; }
  .so-sw em { display: none; }
  .so-sw a { min-width: 44px; justify-content: center; }
}
