/* Shared styles for the six service pages (bundled from the former service-*.css files; service-hero.css stays separate as it is also used by Who we are). */
/* --- service-intro.css --- */
/* Service overview: big statement, prose + a draggable before/after (tangle vs. roadmap), and a row of "good fit" cards. */
.intro-x { padding-top: clamp(4rem, 8vw, 8rem); padding-bottom: clamp(4rem, 8vw, 8rem); }
.intro-x__statement { max-width: 22ch; font-size: clamp(2.2rem, 1rem + 4.6vw, 5.6rem); font-weight: 600; letter-spacing: -0.06em; line-height: 1.02; color: var(--ink-2); }
.intro-x__statement em { font-style: normal; color: var(--purple); }
.intro-x__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 6rem); margin-top: clamp(2.6rem, 5vw, 5rem); padding-top: clamp(1.6rem, 3vw, 2.6rem); border-top: 1px solid var(--line-light); align-items: center; }
.intro-x__prose { display: grid; gap: 1.4rem; }
.intro-x__prose p { font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); letter-spacing: -0.02em; line-height: 1.5; color: var(--ink-3); max-width: 46ch; }
.intro-x__prose p:first-child { color: var(--ink-2); }
.intro-x__hint { display: inline-flex !important; align-items: center; gap: .7rem; font-size: .8rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--purple) !important; }
.intro-x__hint span { width: 2.2rem; height: 1px; background: var(--purple); position: relative; }
.intro-x__hint span::before, .intro-x__hint span::after { content: ""; position: absolute; top: -3px; width: 6px; height: 6px; border-top: 1px solid var(--purple); }
.intro-x__hint span::before { left: 0; border-left: 1px solid var(--purple); transform: rotate(-45deg); }
.intro-x__hint span::after { right: 0; border-right: 1px solid var(--purple); transform: rotate(45deg); }

/* before / after */
.ba { --p: 50%; position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: #0a0a10; border: 1px solid rgba(178,102,255,.25); cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; box-shadow: 0 30px 80px -30px rgba(144,15,255,.35); }
.ba__layer { position: absolute; inset: 0; }
.ba__layer svg { width: 100%; height: 100%; display: block; }
.ba__before { background: linear-gradient(180deg, #131318, #0b0b10); }
.ba__after { clip-path: inset(0 0 0 var(--p)); background: radial-gradient(70% 70% at 85% 15%, rgba(144,15,255,.55), rgba(144,15,255,0) 70%), radial-gradient(60% 50% at 0% 100%, rgba(144,15,255,.22), rgba(144,15,255,0) 70%), linear-gradient(180deg, #0a0a10, #07070b); }
.ba__tangle path { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.2; }
.ba__before circle { fill: #6c6c74; }
.ba__before .j { animation: baJit 4.6s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -.55s); transform-box: fill-box; transform-origin: center; }
@keyframes baJit { from { transform: translate(-5px, 3px); } to { transform: translate(6px, -4px); } }
.ba__qs .q { fill: rgba(255,255,255,.35); font-size: 26px; font-weight: 700; font-family: inherit; }
.ba__path { fill: none; stroke: #b266ff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 10; animation: baFlow 1.6s linear infinite; filter: drop-shadow(0 0 8px rgba(144,15,255,.8)); }
@keyframes baFlow { to { stroke-dashoffset: -32; } }
.ba__ms circle { fill: #0a0a10; stroke: #eadfd1; stroke-width: 3; }
.ba__tx text { fill: #eadfd1; font-size: 15px; font-weight: 600; font-family: inherit; letter-spacing: -.02em; }
.ba__tx text.b { fill: #fff; font-weight: 700; }
.ba__label { position: absolute; left: 1rem; top: 1rem; padding: .35rem .8rem; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: rgba(255,255,255,.08); color: #c9c9d0; border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.ba__label--r { left: auto; right: 1rem; background: var(--purple); color: #fff; border-color: transparent; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--p); width: 44px; margin-left: -22px; cursor: ew-resize; z-index: 3; }
.ba__handle::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 18px rgba(255,255,255,.55); }
.ba__handle span { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.45); transition: transform .3s var(--ease); }
.ba__handle span::before, .ba__handle span::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-top: 2px solid var(--ink); }
.ba__handle span::before { left: 12px; border-left: 2px solid var(--ink); transform: rotate(-45deg); }
.ba__handle span::after { right: 12px; border-right: 2px solid var(--ink); transform: rotate(45deg); }
.ba:hover .ba__handle span, .ba.is-drag .ba__handle span { transform: scale(1.12); }
.ba__handle:focus-visible span { outline: 3px solid var(--purple); outline-offset: 3px; }

/* good fit cards */
.intro-x__fit { margin-top: clamp(2.4rem, 5vw, 4.5rem); }
.intro-x__fit h3 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--purple); margin-bottom: 1.2rem; display: flex; align-items: center; gap: .6rem; }
.intro-x__fit h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--purple); }
.intro-x__fit ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.intro-x__fit li { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2.4rem; min-height: 210px; padding: 1.4rem 1.5rem; border-radius: 14px; background: var(--ink); color: #fff; overflow: hidden; transition: transform .5s var(--ease); }
.intro-x__fit li::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s; background: radial-gradient(80% 90% at 100% 0%, rgba(144,15,255,.6), rgba(144,15,255,0) 70%); }
.intro-x__fit li > * { position: relative; }
.intro-x__fit .n { font-family: var(--ff-mono); font-size: .85rem; font-weight: 600; color: var(--purple-light); }
.intro-x__fit li p { font-size: clamp(1.1rem, .95rem + .5vw, 1.4rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.25; }
.intro-x__fit li:hover::before { opacity: 1; }
.js .intro-x__fit li[data-reveal].is-in:hover, .intro-x__fit li:hover { transform: translateY(-6px); }
@media (max-width: 960px) { .intro-x__grid { grid-template-columns: 1fr; } .intro-x__statement { max-width: none; } .intro-x__fit ol { grid-template-columns: 1fr; } .intro-x__fit li { min-height: 0; gap: 1.2rem; } }
@media (prefers-reduced-motion: reduce) { .ba__before .j, .ba__path { animation: none; } }

/* --- service-deck.css --- */
/* "What we deliver": a scroll-stacking deck. Each capability is a card; the next one slides up and covers it,
   while the covered card shrinks and dims slightly behind (see js/service-deck.js). */
.deck { --card-h: clamp(380px, 52vh, 470px); display: grid; gap: clamp(1.4rem, 3vw, 2.4rem); margin-top: clamp(2.2rem, 4vw, 4rem); padding-bottom: clamp(1rem, 2vw, 2rem); }
.deck__card { position: sticky; top: calc(var(--bar-h, 72px) + 18px + var(--i) * 16px); min-height: var(--card-h); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1rem, 3vw, 3rem); align-items: center;
  padding: clamp(1.4rem, 3.2vw, 3rem); border-radius: 22px; overflow: hidden; background: var(--a-bg); color: var(--a-fg); transform-origin: 50% 0; will-change: transform; box-shadow: 0 -18px 50px -24px rgba(11,11,14,.28); }
.deck__card--1 { --a-bg: #ececef; --a-fg: var(--ink-2); --a-line: rgba(11,11,14,.28); --a-acc: #900fff; --a-mute: #5a5a63; }
.deck__card--2 { --a-bg: #dcdce2; --a-fg: var(--ink-2); --a-line: rgba(11,11,14,.3); --a-acc: #900fff; --a-mute: #52525b; }
.deck__card--3 { --a-bg: #0b0b0e; --a-fg: #fff; --a-line: rgba(255,255,255,.3); --a-acc: #b266ff; --a-mute: #b4b4bd; }
.deck__card--4 { --a-bg: #1a0b33; --a-fg: #fff; --a-line: rgba(255,255,255,.34); --a-acc: #b266ff; --a-mute: #cdbfe6; background: radial-gradient(70% 90% at 90% 0%, rgba(144,15,255,.55), rgba(144,15,255,0) 70%), #120726; }
.deck__card--5 { --a-bg: #900fff; --a-fg: #fff; --a-line: rgba(255,255,255,.5); --a-acc: #fff; --a-mute: #eadcff; }
.deck__text { position: relative; z-index: 1; }
.deck__eyebrow { display: flex; align-items: center; gap: .9rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--a-mute); }
.deck__n { font-family: var(--ff-mono); font-size: .85rem; color: var(--a-acc); }
.deck__text h3 { margin-top: 1.1rem; max-width: 14ch; font-size: clamp(2rem, 1.2rem + 2.8vw, 3.9rem); font-weight: 700; letter-spacing: -0.06em; line-height: .98; }
.deck__text ul { display: grid; gap: .55rem; margin-top: clamp(1.4rem, 3vw, 2.2rem); }
.deck__text li { display: flex; align-items: baseline; gap: .7rem; font-size: clamp(1rem, .9rem + .4vw, 1.2rem); font-weight: 500; letter-spacing: -0.03em; }
.deck__text li::before { content: "+"; color: var(--a-acc); font-weight: 700; }
.deck__art { position: relative; z-index: 1; align-self: stretch; display: grid; place-items: center; }
.deck__art svg { width: min(100%, 440px); height: auto; max-height: 100%; overflow: visible; }
.deck__art svg [fill="var(--a-bg)"] { fill: var(--a-bg); }
.deck__sweep { transform-origin: 200px 150px; animation: deckSweep 6s linear infinite; }
@keyframes deckSweep { to { transform: rotate(360deg); } }
.deck__pulse { transform-box: fill-box; transform-origin: center; animation: deckPulse 2.6s ease-out infinite; }
@keyframes deckPulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
/* the dimming veil that deepens as a card gets covered */
.deck__card::after { content: ""; position: absolute; inset: 0; background: #07070b; opacity: var(--dim, 0); pointer-events: none; }
@media (max-width: 860px) {
  .deck__card { position: static; grid-template-columns: 1fr; min-height: 0; transform: none !important; }
  .deck__art { order: -1; }
  .deck__art svg { width: min(100%, 300px); }
  .deck__card::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .deck__sweep, .deck__pulse { animation: none; } .deck__card { position: static; transform: none !important; } .deck__card::after { display: none; } }
.deck__card--6 { --a-bg: #5b12b3; --a-fg: #fff; --a-line: rgba(255,255,255,.42); --a-acc: #e3c9ff; --a-mute: #dcc8f5; }

/* --- service-trail.css --- */
/* "Our approach": a journey path that draws itself as you scroll, with a glowing dot travelling along it.
   Each step lights up when the dot reaches it (see js/service-trail.js). */
.trail { position: relative; margin-top: clamp(1.5rem, 3vw, 3rem); }
.trail__svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.trail__base { fill: none; stroke: #cfcfd6; stroke-width: 2; stroke-dasharray: 3 9; stroke-linecap: round; }
.trail__fill { fill: none; stroke: var(--purple); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(144,15,255,.45)); }
.trail__dot { fill: var(--purple); }
.trail__halo { fill: rgba(144,15,255,.22); animation: trailPulse 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes trailPulse { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

.trail__list { position: relative; display: grid; gap: clamp(3.4rem, 8vw, 7rem); padding-block: clamp(2.2rem, 5vw, 4.5rem); }
.trail__stop { display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); align-items: center; }
.trail__node { grid-column: 2; grid-row: 1; justify-self: center; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #d6d6dc; color: #9a9aa3; position: relative; z-index: 1;
  transition: background-color .5s var(--ease), border-color .5s, color .5s, box-shadow .6s var(--ease), transform .6s var(--ease); }
.trail__node svg { width: 30px; height: 30px; }
.trail__stop.is-on .trail__node { background: var(--purple); border-color: var(--purple); color: #fff; transform: scale(1.1); box-shadow: 0 0 0 10px rgba(144,15,255,.12), 0 14px 40px rgba(144,15,255,.4); }

.trail__card { grid-row: 1; grid-column: 1; justify-self: end; text-align: right; max-width: 30rem; padding: 0 clamp(.5rem, 2vw, 2rem); }
.trail__stop:nth-child(even) .trail__card { grid-column: 3; justify-self: start; text-align: left; }
.trail__n { display: block; font-size: clamp(4.2rem, 3rem + 6vw, 9rem); font-weight: 700; letter-spacing: -0.07em; line-height: .9; color: transparent; -webkit-text-stroke: 1.5px #c9c9d0; transition: -webkit-text-stroke-color .6s; }
.trail__stop.is-on .trail__n { -webkit-text-stroke-color: var(--purple); }
.trail__card h3 { margin-top: .5rem; font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.9rem); font-weight: 700; letter-spacing: -0.055em; line-height: 1; color: var(--ink-2); }
.trail__card p { margin-top: .9rem; max-width: 38ch; color: var(--ink-3); letter-spacing: -0.02em; font-size: 1.05rem; line-height: 1.5; }
.trail__stop:not(:nth-child(even)) .trail__card p { margin-left: auto; }

/* steps stay dimmed and slightly offset until the dot reaches them (only once JS is running) */
.trail.is-live .trail__card { opacity: .3; transform: translateX(-34px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.trail.is-live .trail__stop:nth-child(even) .trail__card { transform: translateX(34px); }
.trail.is-live .trail__stop.is-on .trail__card { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .trail__stop { grid-template-columns: 64px minmax(0, 1fr); }
  .trail__node { grid-column: 1; width: 56px; height: 56px; }
  .trail__node svg { width: 24px; height: 24px; }
  .trail__card, .trail__stop:nth-child(even) .trail__card { grid-column: 2; justify-self: start; text-align: left; padding: 0 0 0 .6rem; }
  .trail__stop:not(:nth-child(even)) .trail__card p { margin-left: 0; }
  .trail.is-live .trail__card, .trail.is-live .trail__stop:nth-child(even) .trail__card { transform: translateX(20px); }
  .trail.is-live .trail__stop.is-on .trail__card { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .trail__halo { animation: none; } .trail__node, .trail__n { transition: none; } }

/* --- service-qa.css --- */
/* FAQ as flip cards: dark question card on the front, purple answer on the back (3D flip). */
.qa__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.qa__hint { display: inline-flex; align-items: center; gap: .7rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--purple); }
.qa__hint span { width: 1.4rem; height: 1.4rem; border: 1.5px solid var(--purple); border-radius: 50%; position: relative; animation: qaHint 2.4s ease-in-out infinite; }
.qa__hint span::after { content: "\21BB"; position: absolute; inset: 0; display: grid; place-items: center; font-size: .8rem; line-height: 1; }
@keyframes qaHint { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(180deg); } }
.qa__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: clamp(1.8rem, 3.5vw, 3.2rem); }
.qa__card { perspective: 1600px; }
.qa__flip { display: block; width: 100%; text-align: left; cursor: pointer; border-radius: 20px; outline-offset: 4px; }
.qa__inner { display: grid; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, .7, .2, 1); }
.qa__face { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: space-between; gap: 1.4rem; min-height: clamp(330px, 30vw, 400px); padding: clamp(1.3rem, 2.4vw, 2rem); border-radius: 20px; overflow: hidden; position: relative; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.qa__front { background: radial-gradient(80% 70% at 100% 0%, rgba(144,15,255,.42), rgba(144,15,255,0) 70%), #0b0b0e; color: #fff; transition: box-shadow .5s var(--ease); }
.qa__back { background: radial-gradient(90% 80% at 0% 100%, rgba(255,255,255,.18), rgba(255,255,255,0) 60%), #900fff; color: #fff; transform: rotateY(180deg); }
.qa__flip:hover .qa__front { box-shadow: 0 24px 60px -24px rgba(144,15,255,.6); }
.qa__flip:hover .qa__inner { transform: rotateY(-7deg) translateY(-4px); }
.qa__card.is-flipped .qa__inner, .qa__card.is-flipped .qa__flip:hover .qa__inner { transform: rotateY(180deg); }
.qa__n { font-family: var(--ff-mono); font-size: .8rem; font-weight: 600; letter-spacing: .01em; color: var(--purple-light); }
.qa__back .qa__n { color: rgba(255,255,255,.8); }
.qa__mark { position: absolute; right: -.1em; top: -.12em; font-size: clamp(9rem, 7rem + 8vw, 15rem); font-weight: 700; line-height: 1; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(178,102,255,.5); pointer-events: none; }
.qa__q { position: relative; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1.08; max-width: 14ch; }
.qa__a { font-size: clamp(1.02rem, .95rem + .35vw, 1.22rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.45; }
.qa__more { display: inline-flex; align-items: center; justify-content: space-between; gap: .8rem; width: max-content; max-width: 100%; padding: .55rem 1rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: .82rem; font-weight: 600; letter-spacing: -0.01em; }
.qa__more b { font-weight: 600; font-size: 1.1em; line-height: 1; }
.qa__foot { margin-top: clamp(1.6rem, 3vw, 2.6rem); display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; color: var(--ink-3); letter-spacing: -0.02em; }
.qa__foot .link-arrow { font-weight: 600; color: var(--ink-2); }

/* without JS the cards simply show both sides, stacked */
.qa:not(.is-js) .qa__inner { transform: none; }
.qa:not(.is-js) .qa__face { grid-area: auto; min-height: 0; }
.qa:not(.is-js) .qa__back { transform: none; margin-top: 4px; }
.qa:not(.is-js) .qa__inner { display: block; }

@media (max-width: 960px) { .qa__grid { grid-template-columns: 1fr; } .qa__face { min-height: 300px; } .qa__q { max-width: 22ch; } }
@media (prefers-reduced-motion: reduce) { .qa__inner { transition: none; } .qa__flip:hover .qa__inner { transform: none; } .qa__hint span { animation: none; } }
.qa__back .qa__n { font-family: inherit; font-size: .8rem; letter-spacing: -0.01em; line-height: 1.3; }

/* --- service-net.css --- */
/* Connected capabilities: grey band, asymmetric grid. One large feature card (left) and two stacked cards (right). */
.rel-sec { background: #e4e4e8; color: var(--ink-2); padding-block: clamp(3.4rem, 6vw, 6rem); }
.rel-sec .kicker { color: var(--ink-3); }
.rel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: repeat(2, auto); gap: 12px; margin-top: clamp(1rem, 2vw, 2rem); }
.rel li { display: flex; }
.rel li:first-child { grid-row: 1 / span 2; }
.rel a { position: relative; flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 20px; background: #fff; color: var(--ink-2); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.rel a:hover, .rel a:focus-visible { transform: translateY(-5px); box-shadow: 0 26px 56px -28px rgba(11,11,14,.45); }
.rel__img { position: relative; display: block; flex: 1; min-height: 200px; border-radius: 14px; overflow: hidden; background: #d6d6dc; }
.rel__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.rel a:hover .rel__img img, .rel a:focus-visible .rel__img img { transform: scale(1.05); }
.rel__body { position: relative; display: flex; flex-direction: column; gap: .7rem; padding: clamp(.9rem, 1.6vw, 1.3rem) clamp(.9rem, 1.6vw, 1.3rem) clamp(.8rem, 1.4vw, 1.1rem); }
.rel__num { align-self: flex-start; padding: .25rem .7rem; border-radius: 999px; background: #efeff2; font-family: var(--ff-mono); font-size: .78rem; font-weight: 600; color: var(--ink-3); }
.rel b { margin-top: .3rem; font-size: clamp(1.25rem, 1rem + .8vw, 1.7rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1.1; }
.rel__desc { color: var(--ink-3); letter-spacing: -0.015em; line-height: 1.45; max-width: 32ch; }
.rel__go { position: absolute; right: clamp(.9rem, 1.6vw, 1.3rem); bottom: clamp(.8rem, 1.4vw, 1.1rem); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #efeff2; color: var(--ink-2); transition: background-color .35s, color .35s, transform .45s var(--ease); }
.rel__go svg { width: 22px; height: 11px; }
.rel a:hover .rel__go, .rel a:focus-visible .rel__go { background: var(--ink); color: #fff; transform: translateX(4px); }

/* small cards: image on the left, text on the right */
.rel li:not(:first-child) a { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 6px; }
.rel li:not(:first-child) .rel__img { min-height: 190px; }
.rel li:not(:first-child) .rel__body { padding-right: 3.8rem; }

/* the large card: big image on top, text below */
.rel li:first-child .rel__img { min-height: 240px; }
.rel li:first-child b { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.04; max-width: 16ch; }
.rel li:first-child .rel__desc { font-size: 1.05rem; }
.rel li:first-child .rel__body { padding-right: 4.2rem; }

@media (max-width: 860px) { .rel { grid-template-columns: 1fr; grid-template-rows: none; } .rel li:first-child { grid-row: auto; } .rel li:not(:first-child) a { display: flex; } .rel__img, .rel li:first-child .rel__img, .rel li:not(:first-child) .rel__img { flex: none; height: 200px; min-height: 0; } .rel li:not(:first-child) .rel__body, .rel li:first-child .rel__body { padding-right: clamp(.9rem, 1.6vw, 1.3rem); } .rel__go { position: static; align-self: flex-end; margin-top: .4rem; } }
@media (prefers-reduced-motion: reduce) { .rel a, .rel__go { transition: none; } .rel a:hover { transform: none; } }

/* section heading */
.rel__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 3rem; flex-wrap: wrap; margin-bottom: clamp(1.4rem, 3vw, 2.4rem); }
.rel__title { display: flex; align-items: center; gap: .6em; font-size: clamp(2rem, 1.2rem + 2.8vw, 3.6rem); font-weight: 600; letter-spacing: -0.055em; line-height: 1; color: var(--ink-2); }
.rel__title .mark { width: .62em; height: .38em; flex: none; }
.rel__sub { max-width: 30ch; color: var(--ink-3); letter-spacing: -0.02em; font-size: 1.05rem; line-height: 1.4; }

/* before/after slider: animate only while it is on screen (js adds .is-live); without js the animations just play as before */
.js .ba:not(.is-live) .ba__before .j, .js .ba:not(.is-live) .ba__path { animation-play-state: paused; }

/* deck: the radar sweep and pulse (SVG transforms, main thread) only run on the card that is actually showing */
.js .deck__card:not(.is-live) .deck__sweep, .js .deck__card:not(.is-live) .deck__pulse { animation-play-state: paused; }
