/* =========================================================
   Kavinda Weerasekara — Portfolio
   Edit the tokens below to re-theme the whole site.
   ========================================================= */

:root {
  --bg: #ffffff;
  --gray: #f8f8f6;
  --gray-2: #f1f1ee;
  --text: #0e0e0e;
  --text-muted: #5f5f5f;
  --text-subtle: #9a9a9a;
  --border: #ededea;
  --ink: #0e0e0e;
  --lime: #d4f55c;
  --lime-dark: #b9dd3a;
  --blue: #2f6bff;
  --sky-1: #bcdaf7;
  --sky-2: #5c9ce6;
  --sky-3: #2c6fd1;
  --yellow: #ffc83d;
  --orange: #ff7a45;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --shadow: 0 1px 2px rgba(14, 14, 14, .04), 0 10px 30px rgba(14, 14, 14, .06);
  --shadow-lg: 0 30px 60px rgba(14, 14, 14, .14);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1280px;
  --gutter: clamp(16px, 3vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.04em; font-weight: 500; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--lime); color: var(--ink); }

a, button, summary, label, [role="button"] { cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.soft { color: var(--text-subtle); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

/* Mono "• LABEL" */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text);
}
.label::before { content: ""; width: 5px; height: 5px; background: currentColor; }
.label--light { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 500; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .45s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .45s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .12s; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--arrow { padding-right: 6px; padding-left: 22px; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--lime-dark); box-shadow: 0 10px 24px rgba(160, 200, 40, .35); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #222; box-shadow: 0 10px 24px rgba(14, 14, 14, .22); }
.btn--glass { color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); }
.btn--glass:hover { border-color: #fff; }
.btn__circle {
  position: relative; overflow: hidden; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; transition: transform .45s var(--ease);
}
.btn__circle--lime { background: var(--lime); color: var(--ink); }
.btn__circle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn__circle { transform: scale(1.08); }
/* hover: the arrow flies out and loops back in */
.btn:hover .btn__circle svg { animation: btn-arrow .6s var(--ease); }
.btn:hover .btn__circle.is-down svg { animation-name: btn-arrow-down; }
@keyframes btn-arrow { 0% { transform: none; } 45% { transform: translate(140%, -140%); } 46% { transform: translate(-140%, 140%); } 100% { transform: none; } }
@keyframes btn-arrow-down { 0% { transform: none; } 45% { transform: translateY(150%); } 46% { transform: translateY(-150%); } 100% { transform: none; } }
/* hover: the label rolls up to a fresh copy */
.btn__label { display: inline-block; overflow: hidden; height: 1.25em; line-height: 1.25; vertical-align: middle; }
.btn__label > span { display: block; transition: transform .55s var(--ease); }
.btn__label > span::after { content: attr(data-t); display: block; }
.btn:hover .btn__label > span { transform: translateY(-50%); }

.pill {
  display: inline-flex; align-items: center; height: 38px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--border); background: #fff;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: border-color .2s, background-color .2s;
}
.pill:hover { border-color: var(--ink); }

.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid var(--border); background: #fff; transition: border-color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.nav__logo { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.nav__logo-text span { color: var(--text-subtle); font-weight: 500; }
.nav__logo-mark { display: block; width: 36px; height: 36px; flex-shrink: 0; }
.nav__logo-dot { transform-box: fill-box; transform-origin: center; transition: transform .35s var(--ease); }
.nav__logo:hover .nav__logo-dot { transform: scale(1.35); }
.nav__links { display: flex; gap: 32px; }
.nav__links a {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); transition: color .2s; position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav__burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__burger span { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform .25s var(--ease); }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 112px) 0 clamp(64px, 9vw, 128px); border-bottom: 1px solid var(--border); }
.hero__intro { display: inline-flex; align-items: center; gap: 14px; padding: 6px 18px 6px 6px; border-radius: 999px; border: 1px solid var(--border); }
.hero__avatar { position: relative; width: 52px; height: 52px; flex-shrink: 0; }
.hero__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 30%; background: #050506; }
.hero__avatar-dot {
  position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--lime); border: 2.5px solid #fff; animation: pulse 2s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(160, 200, 40, .55); } 70% { box-shadow: 0 0 0 8px rgba(160, 200, 40, 0); } 100% { box-shadow: 0 0 0 0 rgba(160, 200, 40, 0); } }
.hero__name { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.hero__role { display: block; font-size: 13px; color: var(--text-muted); }
.hero__title { margin-top: clamp(28px, 4vw, 44px); font-size: clamp(48px, 8.6vw, 128px); letter-spacing: -0.055em; line-height: .95; }
.hero__mark { position: relative; z-index: 0; color: var(--ink); white-space: nowrap; }
.hero__mark::after {
  content: ""; position: absolute; z-index: -1; left: -0.04em; right: -0.04em; bottom: 0.06em; height: 0.34em;
  background: var(--lime); border-radius: 0.08em; transform: scaleX(0); transform-origin: left;
  animation: mark-in .9s .5s var(--ease) forwards;
}
@keyframes mark-in { to { transform: scaleX(1); } }
.hero__bottom { margin-top: clamp(36px, 5vw, 64px); display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; flex-wrap: wrap; }
.hero__lead { max-width: 460px; font-size: clamp(17px, 1.5vw, 20px); color: var(--text-muted); }
/* Hero lead: key phrases in ink with a lime marker that sweeps in after the hero lands */
.hero__lead .hl-num { color: var(--ink); font-weight: 600; }
.hero__lead .hl {
  color: var(--ink); font-weight: 500; white-space: nowrap;
  background: linear-gradient(transparent 62%, rgba(212, 245, 92, .85) 62%, rgba(212, 245, 92, .85) 92%, transparent 92%) no-repeat 0 0 / 0% 100%;
  animation: hl-sweep .8s var(--ease) 1.1s forwards;
}
.hero__lead .hl--2 { animation-delay: 1.35s; }
.hero__lead .hl--3 { animation-delay: 1.6s; }
@keyframes hl-sweep { to { background-size: 100% 100%; } }
.hero__lead .hl-open {
  display: flex; width: fit-content; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 14px 6px 12px; border-radius: 999px;
  background: var(--gray); color: var(--ink); font-size: .8em; font-weight: 500; white-space: nowrap;
}
.hero__lead .hl-open i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.hero__lead .hl-open i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e; animation: hl-ping 1.8s ease-out infinite; }
@keyframes hl-ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero__lead .hl { background-size: 100% 100%; } }
.hero__actions { display: grid; gap: 20px; justify-items: end; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__social { display: flex; flex-wrap: wrap; gap: 8px; }
.soc { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 6px;
  border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--ink); font-size: 14px; font-weight: 500;
  box-shadow: 0 1px 2px rgba(14,14,14,.04); transition: color .35s var(--ease), border-color .35s var(--ease), box-shadow .45s var(--ease); }
.soc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brand); border-radius: inherit;
  clip-path: circle(0% at 22px 50%); transition: clip-path .6s var(--ease); }
.soc__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; flex: none;
  transition: background-color .35s var(--ease), color .35s var(--ease); }
.soc__icon { position: relative; overflow: hidden; }
.soc__icon svg { transition: transform .55s var(--ease); }
.soc__arrow { position: absolute; transform: translate(-150%, 150%); }
.soc:hover, .soc:focus-visible { color: #fff; border-color: var(--brand); box-shadow: 0 12px 26px -8px var(--brand); }
.soc:hover::before, .soc:focus-visible::before { clip-path: circle(150% at 22px 50%); }
.soc:hover .soc__icon, .soc:focus-visible .soc__icon { background: #fff; color: var(--brand); }
.soc:hover .soc__icon svg:first-child, .soc:focus-visible .soc__icon svg:first-child { transform: translate(150%, -150%); }
.soc:hover .soc__arrow, .soc:focus-visible .soc__arrow { transform: none; }
.js .hero__social li { opacity: 0; }
.js:not(.gsap) .hero__social li { animation: fade-up .7s 1s cubic-bezier(.2,.7,.2,1) both; }
.btn--outline { border-color: var(--border); background: #fff; color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); box-shadow: 0 10px 24px rgba(14,14,14,.08); }
.btn__icon { flex: none; overflow: visible; margin-left: -4px; }
.btn:hover .btn__icon { animation: btn-bob 1s var(--ease) infinite; }
@keyframes btn-bob { 0%,100% { transform: none; } 50% { transform: translateY(3px); } }

@keyframes slide { to { transform: translateX(-50%); } }

.widget__label { font-size: 13px; color: var(--text-muted); }
.widget__value { font-size: 28px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.widget__value span { font-size: 15px; color: var(--text-subtle); letter-spacing: -0.01em; }
.widget__bar { height: 8px; border-radius: 99px; background: var(--gray); overflow: hidden; }
.widget__bar span { display: block; height: 100%; width: 82%; border-radius: inherit; background: linear-gradient(90deg, #6ec3ff, var(--blue)); }
.widget__rows { display: grid; gap: 6px; }
.widget__rows li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--gray); font-size: 12.5px; font-weight: 500; }
.widget__rows em { margin-left: auto; font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--lime); }
.ico { width: 16px; height: 16px; border-radius: 5px; background: var(--ink); flex-shrink: 0; }
.ico--comp { background: var(--blue); border-radius: 50%; }
.ico--pattern { background: var(--orange); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section--flush-top { padding-top: 0; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 2.2fr; gap: 32px; }
.about .label { align-self: start; padding-top: 14px; }
.statement { font-size: clamp(32px, 4.4vw, 58px); letter-spacing: -0.045em; line-height: 1.08; }
.inline-icon {
  display: inline-grid; place-items: center; width: .95em; height: .95em; border-radius: 50%;
  vertical-align: -0.12em; margin: 0 .04em;
}
.inline-icon svg { width: 55%; height: 55%; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.inline-icon--blue { background: #42a5f5; }
.inline-icon--blue svg { stroke: #fff; }
.inline-icon--lime { background: var(--lime); }
.inline-icon--lime svg { stroke: var(--ink); }
/* Animated statement icons: ticking clock + glowing idea bulb */
.inline-icon { position: relative; overflow: visible; }
.inline-icon svg { overflow: visible; }
.inline-icon::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.inline-icon--blue::before { box-shadow: 0 0 0 0 rgba(66, 165, 245, .5); animation: ii-ring 2.4s ease-out infinite; }
.ii-min, .ii-hour { transform-box: view-box; transform-origin: 12px 12px; }
.ii-min { animation: ii-spin 4s linear infinite; }
.ii-hour { animation: ii-spin 48s linear infinite; }
.inline-icon--lime { animation: ii-glow 2.6s ease-in-out infinite; }
.ii-rays { opacity: 0; transform-box: view-box; transform-origin: 12px 10px; animation: ii-rays 2.6s ease-in-out infinite; }
.ii-bulb { transform-box: view-box; transform-origin: 12px 20px; animation: ii-pop 5.2s var(--ease) infinite; }
@keyframes ii-spin { to { transform: rotate(360deg); } }
@keyframes ii-ring { 0% { box-shadow: 0 0 0 0 rgba(66, 165, 245, .5); } 80%, 100% { box-shadow: 0 0 0 .32em rgba(66, 165, 245, 0); } }
@keyframes ii-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(212, 245, 92, 0); } 50% { box-shadow: 0 0 .5em .12em rgba(185, 221, 58, .65); } }
@keyframes ii-rays { 0%, 30%, 100% { opacity: 0; transform: scale(.7); } 45%, 70% { opacity: 1; transform: scale(1); } }
@keyframes ii-pop { 0%, 40%, 100% { transform: none; } 45% { transform: rotate(-12deg) scale(1.08); } 50% { transform: rotate(10deg); } 55% { transform: rotate(-5deg); } 60% { transform: none; } }
.about__text { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; color: var(--text-muted); font-size: 16px; max-width: 760px; }

.stats { margin-top: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: 320px; padding: 24px; border-radius: var(--radius-lg); background: #fff;
  box-shadow: inset 0 0 0 1px var(--border);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.stat::after {
  content: ""; position: absolute; z-index: -1; inset: 0; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(212, 245, 92, .22), transparent 70%);
}
.stat:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-lg); }
.stat:hover::after { opacity: 1; }
.stat__viz { position: relative; height: 112px; }
.stat__value { font-size: clamp(48px, 4.6vw, 64px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__suffix { color: var(--text-subtle); }
.stat__title { margin-top: 14px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.stat__text { margin-top: 6px; font-size: 14px; color: var(--text-muted); }

/* Dark card: growth line */
.stat--ink { background: var(--ink); color: #fff; box-shadow: none; }
.stat--ink:hover { box-shadow: var(--shadow-lg); }
.stat--ink::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(212, 245, 92, .14), transparent 70%); }
.stat--ink .stat__suffix { color: var(--lime); }
.stat--ink .stat__text { color: rgba(255, 255, 255, .62); }
.st-chart svg { position: absolute; inset: 0 0 18px; width: 100%; height: calc(100% - 18px); overflow: visible; }
.st-chart__dot { position: absolute; right: -2px; top: calc(8 / 110 * (100% - 18px) - 6px); width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(212, 245, 92, .55); animation: st-pulse 2s ease-out infinite; }
.st-chart__years { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
@keyframes st-pulse { 0% { box-shadow: 0 0 0 0 rgba(212, 245, 92, .55); } 80%, 100% { box-shadow: 0 0 0 12px rgba(212, 245, 92, 0); } }

/* UI kit */
.st-kit { display: grid; grid-template-columns: auto auto auto; grid-template-rows: 1fr 1fr; gap: 10px; align-content: start; justify-content: start; }
.st-kit > span { display: inline-flex; align-items: center; justify-content: center; }
.st-kit__btn { height: 36px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; }
.st-kit__toggle { width: 52px; height: 30px; margin-top: 3px; border-radius: 999px; background: var(--gray-2); position: relative; justify-content: flex-start !important; padding: 3px; }
.st-kit__toggle i { width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(14, 14, 14, .2); }
.st-kit__check { width: 30px; height: 30px; margin-top: 3px; border-radius: 9px; box-shadow: inset 0 0 0 1.5px var(--border); }
.st-kit__check svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 0; }
.st-kit__slider { grid-column: span 2; width: 132px; height: 6px; margin-top: 15px; border-radius: 6px; background: var(--gray-2); position: relative; justify-content: flex-start !important; }
.st-kit__slider i { position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.st-kit__chip { height: 28px; margin-top: 4px; padding: 0 12px; border-radius: 999px; background: var(--lime); font-size: 12px; font-weight: 500; }
.st-kit__avatar { display: none !important; }

/* Team logos */
.st-logos { display: flex; align-items: center; padding-left: 10px; }
.st-logo {
  position: relative; z-index: calc(10 - var(--i)); width: 58px; height: 58px; margin-left: -10px; border-radius: 18px; background: #fff;
  display: grid; place-items: center; padding: 10px; box-shadow: 0 0 0 4px #fff, inset 0 0 0 1px var(--border), 0 8px 20px rgba(14, 14, 14, .08);
  transition: margin .5s var(--ease), transform .5s var(--ease);
}
.st-logo img { width: 100%; height: 100%; object-fit: contain; }
.stat:hover .st-logo { margin-left: 4px; }
.stat:hover .st-logo:nth-child(odd) { transform: translateY(-6px) rotate(-4deg); }
.stat:hover .st-logo:nth-child(even) { transform: translateY(4px) rotate(4deg); }

/* Contrast meter */
.st-aa { display: grid; align-content: start; gap: 18px; }
.st-aa__row { display: flex; align-items: center; gap: 10px; }
.st-aa__row b { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.st-aa__ratio { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.st-aa__ok { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); }
.st-aa__ok svg { width: 15px; height: 15px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.st-aa__meter { position: relative; height: 8px; border-radius: 8px; background: var(--gray-2); }
.st-aa__meter i { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 8px; background: linear-gradient(90deg, #ff9b7a, #ffd25c 45%, var(--lime) 64%); transform-origin: left; }
.st-aa__mark { position: absolute; left: 64%; top: 14px; translate: -50% 0; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; color: var(--text-subtle); }
.st-aa__mark::before { content: ""; position: absolute; left: 50%; top: -18px; width: 2px; height: 12px; margin-left: -1px; border-radius: 2px; background: var(--ink); }

/* Logo strip */
.logos { margin-top: clamp(56px, 7vw, 88px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
/* Spacing lives on each logo (not gap) so the duplicated half is exactly 50% wide and the loop is seamless */
.logos__track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.logos:hover .logos__track { animation-play-state: paused; }
.logos__track > .logo { margin-right: 72px; }
.logos__track { align-items: center; }
.logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; white-space: nowrap; filter: grayscale(1); opacity: .55; transition: filter .35s, opacity .35s; }
.logo:hover { filter: none; opacity: 1; }
.logo-img { display: block; width: auto; }
.logo-img--sq { height: 52px; }
.logo-img--wide { height: 38px; }
.logo-img--nimi { height: 48px; }
.logo-name { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }

/* ---------- Recent work ---------- */
.rw-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.rw-title { margin-top: 18px; font-size: clamp(36px, 5vw, 64px); }
.rw-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.rw-card { border-radius: var(--radius-lg); background: var(--gray); transition: transform .4s var(--ease), background-color .3s; }
.rw-card:hover { transform: translateY(-4px); background: var(--gray-2); }
.rw-card__link { display: flex; flex-direction: column; height: 100%; padding: 10px; border-radius: inherit; }
.rw-card__media { overflow: hidden; aspect-ratio: 808 / 632; border-radius: var(--radius); background: var(--gray-2); }
.rw-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.rw-card:hover .rw-card__media img { transform: scale(1.03); }
.rw-card__body { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 22px 14px 14px; }
.rw-card__meta { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); }
.rw-card__new { padding: 3px 9px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 11px; letter-spacing: .06em; }
.rw-card__title { margin-top: 8px; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.035em; }
.rw-card__desc { margin-top: 8px; max-width: 480px; font-size: 15px; color: var(--text-muted); }
.rw-card__arrow {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: #fff; transition: background-color .25s, transform .3s var(--ease);
}
.rw-card__arrow svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rw-card:hover .rw-card__arrow { background: var(--lime); transform: rotate(45deg); }

/* ---------- Case study page ---------- */
.cs-page-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(32px, 4vw, 48px); }
.cs-back { margin-bottom: clamp(28px, 4vw, 48px); }
.cs-page-hero__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: end; }
.cs-page-hero__title { margin-top: 18px; font-size: clamp(44px, 7vw, 96px); letter-spacing: -0.045em; line-height: .98; }
.cs-page-hero__side { display: grid; gap: 24px; }
.cs-page-hero__lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--text-muted); max-width: 440px; }
.cs-facts { margin: clamp(36px, 5vw, 56px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cs-facts div { padding: 20px 20px 20px 0; }
.cs-facts div + div { padding-left: 20px; border-left: 1px solid var(--border); }
.cs-facts dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); }
.cs-facts dd { margin: 6px 0 0; font-size: 16px; font-weight: 500; }
.cs-facts a:hover { color: var(--blue); }

.cs-page-cover { margin: 0; display: flex; justify-content: center; padding: clamp(16px, 4vw, 56px); border-radius: var(--radius-xl); background: var(--gray); }
.cs-page-cover img { width: 100%; max-width: 808px; height: auto; border-radius: 16px; box-shadow: var(--shadow-lg); }

.cs-overview { display: grid; grid-template-columns: 1fr 2.2fr; gap: 32px; }
.cs-overview .label { align-self: start; padding-top: 10px; }
.cs-overview__text { font-size: clamp(26px, 3.2vw, 42px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; }
.cs-overview__sub { margin-top: 20px; max-width: 640px; font-size: clamp(16px, 1.4vw, 19px); color: var(--text-muted); }
.cs-section-title { margin-top: 16px; font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -0.04em; color: var(--text); }
.cs-embed { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.cs-embed__text { display: grid; gap: 18px; justify-items: start; color: var(--text-muted); }
.cs-embed__text .btn { margin-top: 8px; }
.cs-embed__frame {
  position: relative; display: grid; place-items: center; min-height: 380px; padding: 32px;
  border-radius: var(--radius-lg); background: var(--gray);
}
.cs-embed__frame iframe { position: relative; z-index: 1; max-width: 100%; border: 0; border-radius: 12px; background: transparent; }
.cs-embed__fallback { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; text-align: center; font-size: 14px; color: var(--text-subtle); }
.cs-embed__fallback a { color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.section__head-row { margin-bottom: clamp(28px, 4vw, 40px); }
.cs-more { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--gray); }
.cs-more__links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Project detail pages ---------- */
.cs-back { gap: 8px; }
.cs-back svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.cs-back:hover svg { transform: translateX(-3px); }
.pj-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pj-tags li { padding: 6px 14px; border-radius: 999px; background: var(--gray); font-size: 13px; font-weight: 500; }
.pj-overview { display: grid; gap: 18px; }
.pj-overview > p:not(.cs-overview__text) { max-width: 680px; font-size: clamp(16px, 1.4vw, 18px); color: var(--text-muted); }
.pj-cta {
  position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-xl); color: #fff;
  background: radial-gradient(60% 80% at 100% 100%, rgba(212, 245, 92, .18), transparent 70%), radial-gradient(50% 70% at 0% 0%, rgba(47, 107, 255, .35), transparent 70%), #0b0c10;
}
.pj-cta__title { margin-top: 16px; font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -0.045em; }
.pj-cta__title .soft { color: rgba(255, 255, 255, .5); }
.pj-cta__text { margin-top: 14px; max-width: 460px; color: rgba(255, 255, 255, .72); }

/* ---------- Case study chapters ---------- */
.cs-chapters { position: sticky; top: 76px; z-index: 40; margin-top: clamp(48px, 6vw, 80px); background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cs-chapters__scroll { display: flex; gap: 6px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.cs-chapters__scroll::-webkit-scrollbar { display: none; }
.cs-chapters a { flex-shrink: 0; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text-muted); white-space: nowrap; transition: background-color .2s, color .2s; }
.cs-chapters a:hover { color: var(--text); background: var(--gray); }
.cs-chapters a.is-active { background: var(--ink); color: #fff; }
.cs-chapter { padding: clamp(56px, 7vw, 96px) 0; border-bottom: 1px solid var(--border); scroll-margin-top: 130px; }
.cs-chapter:last-child { border-bottom: 0; }
.cs-chapter__inner { display: grid; grid-template-columns: 1fr 2.6fr; gap: 32px; }
.cs-chapter__side .label { position: sticky; top: 150px; }
.cs-chapter__title { font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -0.04em; line-height: 1.08; }
.cs-chapter__lead { margin-top: 18px; max-width: 720px; font-size: clamp(16px, 1.4vw, 19px); color: var(--text-muted); }
.cs-chapter__block { margin-top: clamp(28px, 3.5vw, 44px); }
.cs-blk-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); }
.cs-blk-facts { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cs-blk-facts div { padding: 22px; border-radius: var(--radius); background: var(--gray); }
.cs-blk-facts dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); }
.cs-blk-facts dd { margin: 10px 0 0; font-size: 15px; color: var(--text-muted); }
.cs-blk-facts strong { display: block; margin-bottom: 4px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.cs-blk-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cs-blk-duo > div { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); }
.cs-blk-duo p:last-child { margin-top: 12px; font-size: clamp(18px, 1.7vw, 22px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.cs-blk-duo__a { background: var(--ink); color: #fff; }
.cs-blk-duo__a .cs-blk-label { color: rgba(255, 255, 255, .55); }
.cs-blk-duo__b { background: var(--lime); }
.cs-blk-duo__b .cs-blk-label { color: rgba(14, 14, 14, .6); }
.cs-blk-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cs-blk-cards--2col { grid-template-columns: repeat(2, 1fr); }
.cs-blk-cards li { padding: 22px; border-radius: var(--radius); background: var(--gray); }
.cs-blk-cards h4 { margin-top: 22px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.cs-blk-cards p { margin-top: 6px; font-size: 14.5px; color: var(--text-muted); }
.cs-blk-rows { display: grid; }
.cs-blk-rows li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--border); }
.cs-blk-rows li:last-child { border-bottom: 1px solid var(--border); }
.cs-blk-rows__num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); font-weight: 600; }
.cs-blk-rows h4 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.cs-blk-rows p { margin-top: 6px; max-width: 640px; color: var(--text-muted); }
.cs-blk-persona { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.cs-blk-persona__head { display: flex; align-items: center; gap: 14px; }
.cs-blk-persona__avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); font-size: 20px; font-weight: 600; flex-shrink: 0; }
.cs-blk-persona h4 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.cs-blk-persona__head p { font-size: 14px; color: var(--text-muted); }
.cs-blk-persona__bio { margin-top: 18px; color: var(--text-muted); }
.cs-blk-persona__cols { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cs-blk-persona ul, .cs-blk-list ul, .cs-blk-columns ul { margin-top: 10px; display: grid; gap: 8px; }
.cs-blk-persona li, .cs-blk-list li, .cs-blk-columns li { position: relative; padding-left: 18px; color: var(--text-muted); font-size: 15px; }
.cs-blk-persona li::before, .cs-blk-list li::before, .cs-blk-columns li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 1px rgba(14, 14, 14, .15); }
.cs-blk-quote { margin: 0; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--gray); border-left: 4px solid var(--lime); }
.cs-blk-quote p:last-child { margin-top: 10px; font-size: clamp(18px, 1.7vw, 22px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.35; }
.cs-blk-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.cs-blk-columns > div { padding: 22px; border-radius: var(--radius); background: var(--gray); }
.cs-blk-columns h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.cs-blk-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.cs-blk-chips ul { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-blk-chips li { padding: 7px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; }
.cs-blk-steps ol { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.cs-blk-steps li { display: grid; gap: 12px; align-content: start; padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); font-size: 15px; font-weight: 500; line-height: 1.4; }
.cs-blk-steps li span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gray); font-size: 13px; font-weight: 600; }
.cs-blk-steps li:last-child { background: var(--lime); border-color: var(--lime); }
.cs-blk-steps li:last-child span { background: #fff; }
.cs-blk-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cs-blk-swatches li { display: grid; gap: 2px; padding: 10px 10px 14px; border-radius: var(--radius); border: 1px solid var(--border); }
.cs-blk-swatches__chip { height: 84px; margin-bottom: 10px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(14, 14, 14, .08); }
.cs-blk-swatches strong { font-size: 14px; font-weight: 600; }
.cs-blk-swatches code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--text-muted); }
.cs-blk-type { display: grid; }
.cs-blk-type li { display: grid; grid-template-columns: 1fr 2fr auto; align-items: baseline; gap: 20px; padding: 18px 0; border-top: 1px solid var(--border); }
.cs-blk-type li:last-child { border-bottom: 1px solid var(--border); }
.cs-blk-type__spec, .cs-blk-type__use { font-size: 13px; color: var(--text-subtle); }
.cs-blk-type__sample { font-family: "Plus Jakarta Sans", var(--font-sans); line-height: 1.1; color: #10140d; overflow-wrap: anywhere; }
.cs-blk-image { margin: 0; padding: clamp(12px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--gray); }
.cs-blk-image img { width: 100%; height: auto; border-radius: 14px; }
.cs-blk-themes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ledgr { margin: 0; padding: clamp(20px, 3vw, 36px); border-radius: var(--radius-lg); font-family: "Plus Jakarta Sans", var(--font-sans); }
.ledgr figcaption { margin-top: 14px; font-family: var(--font-sans); font-size: 13px; font-weight: 500; }
.ledgr--light { background: #ecede8; color: #10140d; }
.ledgr--dark { background: #0c0d0b; color: #f2f4ee; }
.ledgr-card { padding: 22px; border-radius: 28px; }
.ledgr--light .ledgr-card { background: #fff; }
.ledgr--dark .ledgr-card { background: #17191b; }
.ledgr-card__eyebrow { font-size: 12px; font-weight: 500; opacity: .6; }
.ledgr-card__label { margin-top: 18px; font-size: 13px; font-weight: 500; opacity: .75; }
.ledgr-card__value { margin-top: 4px; font-size: clamp(32px, 3.6vw, 48px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.1; }
.ledgr-card__value span { opacity: .4; }
.ledgr-card__chip { display: inline-block; margin-top: 18px; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.ledgr--light .ledgr-card__chip { background: #bdee7c; color: #1d3b0f; }
.ledgr--dark .ledgr-card__chip { background: #bdee7c; color: #10140d; }
.cs-blk-bp { display: grid; grid-template-columns: 2.4fr 1.4fr .8fr; gap: 16px; align-items: end; }
.cs-blk-bp__item { margin: 0; }
.cs-blk-bp__grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 6px; height: 180px; padding: 12px; border-radius: var(--radius); background: var(--gray); }
.cs-blk-bp__item--1 .cs-blk-bp__grid { height: 240px; }
.cs-blk-bp__grid i { border-radius: 6px; background: rgba(212, 245, 92, .7); }
.cs-blk-bp figcaption { margin-top: 12px; font-size: 13px; color: var(--text-muted); }
.cs-blk-bp figcaption strong { display: block; font-size: 15px; color: var(--text); }

/* Figma boards: on wide screens the board replaces the text (kept for screen readers); on phones both show */
.cs-board { margin: 0; }
.cs-board-ui img { width: auto; max-width: 100%; max-height: 72vh; margin: 0 auto; }
.cs-board img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgba(14, 14, 14, .04), 0 12px 32px rgba(14, 14, 14, .06); }
@media (min-width: 901px) {
  .cs-study { padding: 24px 0 clamp(48px, 6vw, 80px); }
  .cs-chapter.has-board { padding: 12px 0; border-bottom: 0; }
  .cs-board-ui { display: none; }
  .has-board .cs-chapter__text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Phones and tablets: the full board shows under the chapter text, like on desktop */
@media (max-width: 900px) {
  .cs-chapter.has-board > .container { display: flex; flex-direction: column; }
  .cs-chapter.has-board .cs-board { order: 2; margin-top: 20px; }
  .cs-chapter.has-board .cs-board-ui { display: none; }
  .cs-board img { border-radius: 16px; }
}

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; }
.services__visual {
  position: relative; overflow: hidden; min-height: 560px; border-radius: var(--radius-lg); padding: 28px;
  display: flex; align-items: flex-end; color: #fff;
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(255, 255, 255, .55), transparent 70%),
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 100%);
}
.services__visual-text { position: relative; z-index: 1; display: grid; gap: 12px; max-width: 360px; }
.services__visual-text p:last-child { font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.float-chip {
  position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 12px; padding: 8px 22px 8px 8px;
  border-radius: 999px; background: #fff; color: var(--ink); font-weight: 500; font-size: 17px; letter-spacing: -0.01em;
  box-shadow: 0 16px 36px rgba(10, 40, 100, .22); animation: float 6s ease-in-out infinite;
  translate: var(--px, 0px) var(--py, 0px); transition: box-shadow .35s var(--ease);
}
.float-chip:hover { box-shadow: 0 24px 50px rgba(10, 40, 100, .32); }
.gsap .float-chip { animation: none; }
.float-chip--1 { top: 8%; left: 7%; }
.float-chip--2 { top: 5%; right: 8%; animation-delay: -1s; }
.float-chip--3 { top: 24%; left: 36%; animation-delay: -2s; }
.float-chip--4 { top: 39%; left: 6%; animation-delay: -4s; }
.float-chip--5 { top: 45%; right: 6%; animation-delay: -3s; }
.float-chip--6 { top: 60%; left: 30%; animation-delay: -5s; }
.tool-logo { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; background: var(--gray); }
.tool-logo svg { width: 26px; height: 26px; }
.tool-logo--figma svg { width: 19px; height: 28px; }
.tool-logo--chatgpt, .tool-logo--cursor { background: var(--ink); }
.tool-logo--chatgpt svg { width: 20px; height: 20px; }
.tool-logo--claude { background: #faf0eb; }
.tool-logo--miro { background: #ffd02f; }
.tool-logo--miro svg { width: 22px; height: 22px; }
.tool-logo--webflow { background: #146ef5; }
.tool-logo--webflow svg { width: 25px; height: 25px; }
.tool-logo--notion { background: #fff; box-shadow: inset 0 0 0 1px var(--border); }
.tool-logo--notion svg { width: 20px; height: 20px; }
@keyframes float { 50% { transform: translateY(-10px); } }
/* Slowly orbiting rings behind the tool chips */
.services__orbit {
  position: absolute; left: 50%; top: 38%; width: 120%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .45); pointer-events: none;
}
.services__orbit--2 { width: 72%; border-style: solid; border-color: rgba(255, 255, 255, .28); }
.services__orbit::after {
  content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 16px rgba(255, 255, 255, .9);
}

.services__panel { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--gray); }
.services__title { margin-top: 18px; font-size: clamp(36px, 4vw, 52px); }
.services__lead { margin-top: 14px; max-width: 460px; color: var(--text-muted); }
.accordion { margin-top: 28px; }
.accordion details { border-bottom: 1px solid var(--border); }
.accordion summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; list-style: none;
  font-size: clamp(17px, 1.6vw, 20px); font-weight: 500; letter-spacing: -0.02em;
}
.accordion summary::-webkit-details-marker { display: none; }
.acc-icon { position: relative; width: 28px; height: 28px; border-radius: 50%; background: #fff; flex-shrink: 0; transition: background-color .2s; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ink); transition: transform .3s var(--ease); }
.acc-icon::after { transform: rotate(90deg); }
details[open] .acc-icon { background: var(--lime); }
details[open] .acc-icon::after { transform: rotate(0); }
.accordion details p { padding: 0 48px 22px 0; color: var(--text-muted); font-size: 15px; }

/* Process: open progress rail. Static default shows every step active; motion.js scrubs it in. */
.pr-wrap { padding-top: clamp(40px, 5vw, 64px); }
.pr-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 40px; }
.pr-intro .label { margin: 0; }
.pr-intro__title { margin: 0; font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.035em; line-height: 1.1; }
.pr { --node: 56px; position: relative; }
.pr__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.pr__rail, .pr__track { position: absolute; z-index: 0; left: calc(var(--node) / 2); top: calc(var(--node) / 2 - 1px); width: calc(75% + 24px); height: 2px; }
.pr__rail { border-radius: 2px; background: var(--border); overflow: hidden; }
.pr__track { z-index: 2; pointer-events: none; }
.pr__fill { position: absolute; inset: 0; background: var(--ink); transform-origin: left center; }
.pr__step { position: relative; }
.pr__node { position: relative; z-index: 1; display: grid; place-items: center; width: var(--node); height: var(--node); border-radius: 50%;
  background: var(--lime); border: 1px solid var(--lime); color: var(--ink); box-shadow: 0 0 0 8px var(--bg); transition: transform .5s var(--ease); }
.pr__node svg { width: 22px; height: 22px; stroke-width: 1.8; transition: transform .5s var(--ease); }
.pr__ring { position: absolute; inset: -1px; border-radius: 50%; border: 2px solid var(--lime); opacity: 0; pointer-events: none; }
.pr__label { display: block; margin-top: 18px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.pr h3 { position: relative; display: inline-block; margin: 8px 0 10px; font-size: 24px; letter-spacing: -0.03em; }
.pr h3::after { content: ""; position: absolute; z-index: -1; left: -2px; right: -2px; bottom: .08em; height: .32em; border-radius: 3px;
  background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.pr__step p.pr__q { margin-bottom: 8px; font-size: 15px; font-weight: 500; font-style: italic; color: var(--text); }
.pr__step p { max-width: 32ch; color: var(--text-muted); font-size: 14.5px; }
.pr__tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.pr__tags li { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--border); }
.pr__comet { position: absolute; left: 0; top: 1px; margin: -7px 0 0 -7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 4px rgba(212,245,92,.35), 0 0 22px 6px rgba(212,245,92,.7); opacity: 0; pointer-events: none; }

/* Step illustrations (final state by default; motion.js plays them in) */
.pr__art { position: relative; overflow: hidden; margin-top: 24px; height: 150px; border-radius: 20px; background: var(--gray); border: 1px solid var(--border);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.pr__step:hover .pr__art { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(14,14,14,.35); }
.pa-note { position: absolute; display: grid; gap: 5px; align-content: start; width: 62px; height: 58px; padding: 10px 9px; border-radius: 8px; background: #fff;
  box-shadow: 0 6px 14px -8px rgba(14,14,14,.3); }
.pa-note b { height: 4px; border-radius: 2px; background: rgba(14,14,14,.14); }
.pa-note b:nth-child(2) { width: 75%; } .pa-note b:nth-child(3) { width: 50%; }
.pa-n1 { left: 10%; top: 20%; transform: rotate(-7deg); background: #fff7c9; }
.pa-n2 { left: 40%; top: 44%; transform: rotate(4deg); background: var(--lime); }
.pa-n3 { left: 68%; top: 16%; transform: rotate(-3deg); background: #dbe9ff; }
.pa-lens { position: absolute; left: 48%; top: 22%; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.75);
  border: 1px solid var(--border); color: var(--ink); backdrop-filter: blur(2px); box-shadow: 0 10px 22px -10px rgba(14,14,14,.4); }
.pa-lens svg { width: 22px; height: 22px; }
.pa-def svg { position: absolute; inset: 0; width: 100%; height: 100%; padding: 4px 6px; }
.pa-def text { font: 600 11px Inter, system-ui, sans-serif; fill: #0e0e0e; }
.pa-node { transform-box: fill-box; transform-origin: center; }
.pa-win { position: absolute; left: 14%; right: 14%; top: 16px; bottom: -10px; border-radius: 12px 12px 0 0; background: #fff; border: 1px solid var(--border); overflow: hidden; }
.pa-bar { display: flex; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.pa-bar i { width: 6px; height: 6px; border-radius: 50%; background: #e4e4e0; }
.pa-ui { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; }
.pa-b { display: block; height: 8px; border-radius: 4px; background: var(--ink); outline: 1px dashed transparent; }
.pa-nav { grid-column: 1 / -1; height: 6px; width: 40%; background: rgba(14,14,14,.18); }
.pa-hero { grid-column: 1 / -1; height: 44px; border-radius: 8px; background: linear-gradient(120deg, #9ec5ff, #4a7dff); }
.pa-t1 { width: 90%; } .pa-t2 { width: 60%; background: rgba(14,14,14,.18); grid-column: 1; }
.pa-btn { grid-column: 2; grid-row: 3 / span 2; justify-self: end; align-self: center; width: 56px; height: 18px; border-radius: 999px; background: var(--lime); }
.pa-cursor { position: absolute; left: 70%; top: 68%; width: 22px; height: 22px; filter: drop-shadow(0 3px 4px rgba(14,14,14,.25)); }
.pa-list { position: absolute; left: 16px; right: 16px; top: 18px; display: grid; gap: 10px; }
.pa-list li { display: flex; align-items: center; gap: 10px; }
.pa-list i { position: relative; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); }
.pa-list i::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid var(--lime); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pa-list b { height: 6px; border-radius: 3px; background: rgba(14,14,14,.16); width: 70%; }
.pa-list li:nth-child(2) b { width: 52%; } .pa-list li:nth-child(3) b { width: 62%; }
.pa-ship { position: absolute; right: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--lime); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.pa-conf { position: absolute; right: 50px; bottom: 30px; width: 1px; height: 1px; }
.pa-conf i { position: absolute; width: 6px; height: 6px; border-radius: 2px; opacity: 0; background: var(--lime); }
.pa-conf i:nth-child(2n) { background: #4a7dff; } .pa-conf i:nth-child(3n) { background: #ff8fb1; border-radius: 50%; }
.pr__step:hover .pr__node { transform: translateY(-4px); }
.pr__step:hover .pr__node svg { transform: rotate(-10deg) scale(1.08); }
.pr__step:hover h3::after { transform: scaleX(1); }

/* ---------- Experience ---------- */
.exp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.exp-head__title { margin-top: 18px; font-size: clamp(36px, 5vw, 64px); }
/* Experience: sticky intro + role timeline */
.xp-label { margin-bottom: 4px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-subtle); }
.xp2 { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.xp2__aside { position: sticky; top: 110px; display: grid; gap: 28px; }
.xp2__intro { margin-top: 18px; max-width: 340px; color: var(--text-muted); font-size: 16px; }
.xp2__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.xp2__stats div { padding: 16px 18px; border-radius: var(--radius); background: var(--gray); }
.xp2__stats dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-subtle); }
.xp2__stats dd { margin: 4px 0 0; text-align: left; font-size: 34px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.xp2__edu .xp-label { margin-bottom: 10px; }

.tl2 { position: relative; display: grid; gap: 16px; padding-left: 36px; }
.tl2::before { content: ""; position: absolute; left: 7px; top: 34px; bottom: 34px; width: 2px; border-radius: 2px; background: var(--border); }
.tl2__item { position: relative; }
.tl2__item::before {
  content: ""; position: absolute; left: -36px; top: 30px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 2px #d6d6d1;
}
.tl2__item.is-latest::before { background: var(--lime); box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 6px rgba(212, 245, 92, .35); }
.tl2__card {
  padding: clamp(22px, 2.4vw, 30px); border-radius: var(--radius-lg); background: var(--gray);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), transform .45s var(--ease);
}
.tl2__card:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--border), var(--shadow); transform: translateX(4px); }
.tl2__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.tl2__logo {
  width: 52px; height: 52px; border-radius: 15px; background: #fff; display: grid; place-items: center; padding: 8px;
  box-shadow: inset 0 0 0 1px var(--border);
}
.tl2__logo img { width: 100%; height: 100%; object-fit: contain; }
.tl2__title h3 { font-size: clamp(19px, 1.8vw, 23px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; }
.tl2__title p { margin-top: 2px; font-size: 14.5px; color: var(--text-muted); }
.tl2__when { display: grid; justify-items: end; gap: 6px; text-align: right; }
.tl2__dates { padding: 6px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--border); font-size: 12.5px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl2__dur { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12.5px; color: var(--text-subtle); }
.tl2__dur b { padding: 3px 8px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.tl2__points {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; color: var(--text-muted); font-size: 14.5px; line-height: 1.55;
}
.tl2__points li { position: relative; padding-left: 16px; }
.tl2__points li::before { content: ""; position: absolute; left: 1px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 1px rgba(14, 14, 14, .2); }

.edu { display: grid; gap: 10px; }
.edu__card {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: var(--gray);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.edu__card:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--border), var(--shadow); }
.edu__card > div { flex: 1; min-width: 0; }
.edu__site { display: inline-block; margin-top: 6px; font-size: 12.5px; font-weight: 500; color: var(--text); }
.edu__card:hover .edu__site { text-decoration: underline; text-underline-offset: 3px; }
.edu__arrow {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--border);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), transform .4s var(--ease);
}
.edu__arrow svg { width: 14px; height: 14px; }
.edu__card:hover .edu__arrow { background: var(--lime); box-shadow: none; transform: rotate(45deg); }
.edu__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--border); flex-shrink: 0; }
.edu__icon svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.edu__card h3 { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; }
.edu__card p { margin-top: 3px; font-size: 13px; color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  padding: clamp(56px, 8vw, 112px) clamp(24px, 5vw, 64px);
  border-radius: var(--radius-xl);
  display: flex; flex-direction: column; align-items: center;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(255, 255, 255, .5), transparent 70%),
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 50%, var(--sky-3) 100%);
}
.contact > *:not(.contact__fx) { position: relative; z-index: 1; }
.contact__fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.contact__grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 45%, #000, transparent); mask-image: radial-gradient(60% 60% at 50% 45%, #000, transparent);
}
.contact__blob { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; filter: blur(70px); opacity: .55; animation: blob 18s ease-in-out infinite alternate; }
.contact__blob--1 { left: -10%; top: 10%; background: var(--lime); opacity: .4; }
.contact__blob--2 { right: -8%; top: -20%; background: #fff; opacity: .3; animation-delay: -6s; }
.contact__blob--3 { left: 35%; bottom: -35%; background: #6b5cff; opacity: .45; animation-delay: -12s; }
.gsap .contact__blob { animation: none; }
@keyframes blob { 50% { transform: translate(8%, 10%) scale(1.15); } }
.contact__spot {
  position: absolute; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .38), transparent); translate: var(--sx, 50vw) var(--sy, 0px);
}
.btn--email { position: relative; overflow: hidden; isolation: isolate; }
.btn--email::after {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); animation: shine 4s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
.contact__marquee {
  margin-top: clamp(48px, 6vw, 72px); width: calc(100% + 2 * clamp(24px, 5vw, 64px)); margin-bottom: calc(-1 * clamp(56px, 8vw, 112px) + 24px);
  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);
}
.contact__marquee-track { display: flex; width: max-content; animation: slide 32s linear infinite; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.contact__marquee-track span, .contact__marquee-track i { margin-right: 22px; font-style: normal; }
.contact__marquee-track i { color: var(--lime); }
.contact__title .sw { perspective: 700px; }
.contact__title { margin-top: 24px; font-size: clamp(36px, 6vw, 80px); letter-spacing: -0.045em; line-height: 1; }
.contact__title .soft { color: rgba(255, 255, 255, .72); }
.contact__lead { margin-top: 22px; max-width: 500px; font-size: 18px; color: rgba(255, 255, 255, .88); }
.contact__actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn--email { font-size: 14px; }
#contact { padding-bottom: 24px; }
.contact__links { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: 15px; color: rgba(255, 255, 255, .85); }
.contact__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 48px; font-size: 14px; color: var(--text-muted); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer__mono { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-subtle); }
.footer__top:hover { color: var(--text); }

/* Live products (company work) */
.live-panel__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.live-panel__meta { flex: 0 1 380px; }
.live-panel__count { font-size: 15px; color: var(--text-muted); }
.live-panel__count strong { margin-right: 6px; font-size: 28px; font-weight: 500; letter-spacing: -0.03em; color: var(--text); }
.live__note { margin-top: 10px; font-size: 13px; line-height: 1.55; color: var(--text-subtle); }

.live { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.live__card {
  display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius-lg); background: var(--gray);
  transition: transform .5s var(--ease), box-shadow .4s var(--ease), background-color .4s var(--ease);
}
.live__card:hover { transform: translateY(-6px); background: #fff; box-shadow: inset 0 0 0 1px var(--border), var(--shadow); }
.live__top { display: flex; justify-content: space-between; align-items: flex-start; }
.live__logo {
  width: 56px; height: 56px; border-radius: 16px; background: #fff; display: grid; place-items: center; padding: 9px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--border); transition: transform .5s var(--ease);
}
.live__logo img { width: 100%; height: 100%; object-fit: contain; }
.live__logo--fill { padding: 0; box-shadow: none; }
.live__logo--fill img { object-fit: cover; }
.live__card:hover .live__logo { transform: scale(1.06) rotate(-4deg); }
.live__status {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--border); font-size: 12px; font-weight: 500;
}
.live__status i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #2fbf63; }
.live__status i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #2fbf63; animation: live-ping 2s var(--ease) infinite; }
@keyframes live-ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
.live__cat { margin-top: 26px; font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); }
.live__name { margin-top: 8px; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -0.035em; line-height: 1.1; }
.live__text { margin-top: 12px; font-size: 14.5px; line-height: 1.6; color: var(--text-muted); }
.live__chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.live__chips li { padding: 5px 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--border); font-size: 12px; }
/* Links and My role sit at the bottom so they line up across a row */
.live__links { margin-top: auto; padding-top: 22px; padding-bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.live__go {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 5px 0 14px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; transition: background-color .3s var(--ease);
}
.live__go:hover { background: #2a2a2a; }
.live__go:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.live__go-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); transition: transform .35s var(--ease); }
.live__go-icon svg { width: 13px; height: 13px; }
.live__go:hover .live__go-icon { transform: rotate(45deg); }

.live__foot { padding-top: 14px; border-top: 1px solid var(--border); }
.live__role { interpolate-size: allow-keywords; }
.live__role summary { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 500; }
.live__role summary::-webkit-details-marker { display: none; }
.live__role summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 8px; }
.live__plus {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--border);
  transition: transform .4s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.live__plus svg { width: 13px; height: 13px; }
.live__role[open] .live__plus { background: var(--ink); color: #fff; box-shadow: none; transform: rotate(45deg); }
.live__role::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
.live__role[open]::details-content { height: auto; }
.live__role-body { padding-top: 12px; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.live__role-body ul { display: grid; gap: 8px; }
.live__role-body p + ul { margin-top: 12px; }
.live__role-body li { position: relative; padding-left: 16px; }
.live__role-body li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: #c9c9c4; }

/* Beyond the pixels: story + polaroid wall */
.beyond { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.beyond__title { margin-top: 18px; font-size: clamp(40px, 5.4vw, 76px); letter-spacing: -0.05em; line-height: 1; }
.beyond__mark { position: relative; z-index: 0; white-space: nowrap; }
.beyond__mark::after {
  content: ""; position: absolute; z-index: -1; left: -0.06em; right: -0.04em; bottom: 0.04em; height: 0.42em;
  background: var(--lime); border-radius: 0.08em; transform: skewX(-6deg) scaleX(0); transform-origin: left;
  transition: transform .9s .3s var(--ease);
}
html:not(.gsap) .beyond__text .reveal.is-visible .beyond__mark::after, html:not(.js) .beyond__mark::after, .beyond__mark.is-built::after { transform: skewX(-6deg) scaleX(1); }
.beyond__mark .ch { display: inline-block; }
.beyond__lead { margin-top: 28px; max-width: 600px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; letter-spacing: -0.01em; }
.beyond__body { margin-top: 16px; color: var(--text-muted); font-size: 15.5px; line-height: 1.65; max-width: 560px; }
.beyond__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.beyond__wall { position: relative; height: clamp(820px, 70vw, 980px); }
/* Each polaroid has three layers: .snap (placed + scroll fan-out), .snap__drag (Draggable), .snap__card (frame, tilt, 3D hover) */
.snap { position: absolute; width: clamp(170px, 15vw, 214px); }
.snap--wide { width: clamp(250px, 22vw, 312px); }
.snap--wide .snap__photo img { aspect-ratio: 4 / 3; }
.snap__drag { cursor: grab; touch-action: pan-y; }
.snap__card {
  position: relative; margin: 0; padding: 12px 12px 0; background: #fff; user-select: none;
  box-shadow: 0 1px 2px rgba(14, 14, 14, .06), 0 18px 40px rgba(14, 14, 14, .14);
  rotate: var(--tilt, 0deg); transition: rotate .45s var(--ease), scale .45s var(--ease), box-shadow .45s var(--ease);
  transform-style: preserve-3d;
}
.snap:hover { z-index: 9; }
.snap:hover .snap__card { rotate: 0deg; scale: 1.04; box-shadow: 0 2px 4px rgba(14, 14, 14, .06), 0 30px 60px rgba(14, 14, 14, .2); }
.snap.is-dragging .snap__drag { cursor: grabbing; }
.snap.is-dragging .snap__card { rotate: 0deg; scale: 1.07; box-shadow: 0 40px 80px rgba(14, 14, 14, .25); }
.snap__photo { position: relative; display: block; overflow: hidden; }
.snap__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; pointer-events: none; }
.snap__glare {
  position: absolute; inset: 0; pointer-events: none; opacity: var(--go, 0); transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .55), transparent 55%);
  mix-blend-mode: soft-light;
}
.snap figcaption { padding: 12px 4px 16px; text-align: center; font-size: 14px; font-style: italic; font-weight: 500; letter-spacing: -0.01em; color: var(--text-muted); }
.snap__tape {
  position: absolute; z-index: 1; top: -12px; left: 50%; width: 84px; height: 24px; translate: -50% 0; rotate: -3deg;
  background: rgba(212, 245, 92, .7); box-shadow: 0 1px 2px rgba(14, 14, 14, .08);
}
.snap--2 .snap__tape { rotate: 4deg; background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px var(--border), 0 1px 2px rgba(14, 14, 14, .08); }
.snap--3 .snap__tape { rotate: -6deg; }
.snap--4 .snap__tape { rotate: 2deg; background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px var(--border), 0 1px 2px rgba(14, 14, 14, .08); }
.snap--5 .snap__tape { rotate: 5deg; }
.snap--6 .snap__tape { rotate: -4deg; background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px var(--border), 0 1px 2px rgba(14, 14, 14, .08); }
.snap--7 .snap__tape { rotate: 3deg; width: 104px; }
.snap--1 { top: 0; left: 2%; z-index: 2; }
.snap--3 { top: 3%; right: 6%; z-index: 1; }
.snap--5 { top: 2%; left: 37%; z-index: 0; }
.snap--2 { top: 36%; left: -2%; z-index: 3; }
.snap--6 { top: 37%; right: 0; z-index: 3; }
.snap--7 { bottom: 0; left: 6%; z-index: 5; }
.snap--4 { bottom: 1%; right: 5%; z-index: 2; }
/* The portrait leads the wall: a touch larger, front and centre */
.snap--me { width: clamp(196px, 17.5vw, 248px); top: 27%; left: 31%; z-index: 6; }
.snap--me .snap__tape { width: 96px; rotate: -2deg; }
.beyond__hint { position: absolute; right: 0; top: -34px; font-size: 13px; font-style: italic; color: var(--text-subtle); }
.beyond__hint::before { content: "\2199  "; font-style: normal; }
html:not(.has-drag) .beyond__hint { display: none; }

/* Hand-drawn doodles that ink themselves in */
.doodle { position: absolute; overflow: visible; pointer-events: none; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.doodle text { fill: var(--text-muted); stroke: none; font: italic 500 15px var(--font-sans); letter-spacing: -0.01em; }
.doodle--arrow { left: 44%; bottom: -12%; width: 240px; z-index: 4; }
#beyond { padding-bottom: clamp(80px, 9vw, 140px); }
.doodle--loop { left: 28%; top: 25%; width: calc(clamp(170px, 15vw, 214px) * 1.36); z-index: 0; stroke: var(--lime-dark); stroke-width: 3; }
.doodle--star { right: 30%; top: -2%; width: 46px; z-index: 4; stroke: var(--ink); fill: var(--lime); stroke-width: 2; }

/* Dribbble shots carousel. Base = swipeable scroll-snap row; .is-3d (GSAP) = coverflow stage */
.dc { margin-top: clamp(8px, 2vw, 24px); overflow-x: clip; overflow-y: visible; padding-block: 30px; margin-block: -30px; }
.dc__track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px var(--gutter) 24px;
  scrollbar-width: none;
}
.dc__track::-webkit-scrollbar { display: none; }
.dc__card { flex: 0 0 min(78vw, 560px); scroll-snap-align: center; }
.dc__card a { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--gray); box-shadow: 0 24px 60px rgba(14, 14, 14, .14); }
.dc__card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; user-select: none; }
.dc__card-title {
  position: absolute; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92);
  font-size: 13px; font-weight: 500; opacity: 0; translate: 0 8px; transition: opacity .3s var(--ease), translate .3s var(--ease);
}
.dc__card a:hover .dc__card-title, .dc__card a:focus-visible .dc__card-title { opacity: 1; translate: 0 0; }

.dc.is-3d .dc__track {
  position: relative; display: block; overflow: visible; height: clamp(300px, 36vw, 500px); padding: 0;
  perspective: 1400px; transform-style: preserve-3d; cursor: grab; touch-action: pan-y;
}
.dc.is-3d .dc__track.is-grabbing { cursor: grabbing; }
.dc.is-3d .dc__card { position: absolute; left: 50%; top: 50%; width: clamp(280px, 40vw, 600px); margin: 0; will-change: transform; }
.dc.is-3d .dc__card a { transition: box-shadow .4s var(--ease); }
.dc.is-3d .dc__card.is-active a { box-shadow: 0 40px 90px rgba(14, 14, 14, .22); }
.dc.is-3d .dc__card:not(.is-active) .dc__card-title { display: none; }
.dc__shade { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.dc:not(.is-3d) .dc__shade { display: none; }

.dc__bar { margin-top: clamp(20px, 3vw, 36px); display: flex; align-items: center; gap: 24px; }
.dc__info { display: flex; align-items: center; gap: 18px; min-width: 0; flex: 1; }
.dc__count { font-size: 13px; letter-spacing: .08em; color: var(--text-subtle); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dc__count b { color: var(--text); font-weight: 600; }
.dc__title { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; letter-spacing: -0.02em; overflow: hidden; }
.dc__title span { display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc__title svg { flex: none; width: 16px; height: 16px; transition: transform .3s var(--ease); }
.dc__title:hover svg { transform: rotate(45deg); }
.dc__progress { flex: 0 1 220px; height: 3px; border-radius: 3px; background: var(--border); overflow: hidden; }
.dc__progress i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.dc__nav { display: flex; gap: 8px; }
.dc__btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 0; background: #fff; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--border); transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.dc__btn:hover { background: var(--ink); color: #fff; }
.dc__btn:active { transform: scale(.94); }
.dc__btn svg { width: 18px; height: 18px; }
.dc:not(.is-3d) .dc__progress, .dc:not(.is-3d) .dc__nav { display: none; }

/* White chips and icons on gray cards get a hairline so they hold up on the light gray */
.rw-card__arrow, .acc-icon, .cs-blk-steps li:last-child span {
  box-shadow: inset 0 0 0 1px var(--border);
}

/* ---------- GSAP motion ---------- */
.gsap .is-tweening { transition: none !important; }
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.sw__i { display: inline-block; will-change: transform; }
.btn { translate: var(--mx, 0px) var(--my, 0px); }
.scroll-progress {
  position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: 3px; background: var(--lime);
  transform: scaleX(0); transform-origin: left; pointer-events: none;
}

/* ---------- Reveal animation ---------- */
.js:not(.gsap) .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js:not(.gsap) .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__mark::after { transform: scaleX(1); }
  .logos__track { animation: slide 70s linear infinite !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .beyond { grid-template-columns: 1fr; }
  .beyond__wall { max-width: 640px; width: 100%; margin: 0 auto; }
  .xp2 { grid-template-columns: 1fr; }
  .xp2 { gap: 28px; }
  .xp2__aside { display: contents; }
  .tl2 { order: 1; margin-top: 12px; }
  .xp2__edu { order: 2; margin-top: 28px; }
  .edu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr__list { grid-template-columns: 1fr; gap: 40px; }
  .pr__step { padding-left: calc(var(--node) + 24px); min-height: var(--node); }
  .pr__node { position: absolute; left: 0; top: 0; }
  .pr__label { margin-top: 16px; }
  .pr__art { margin-top: 0; height: 140px; }
  .pr__rail, .pr__track { top: calc(var(--node) / 2); bottom: 0; left: calc(var(--node) / 2 - 1px); width: 2px; height: auto; }
  .pr__comet { left: 1px; top: 0; }
  .pr__fill { transform-origin: center top; }
}

@media (max-width: 900px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px;
    background: #fff; border-bottom: 1px solid var(--border);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav__links a { padding: 16px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
  .nav__links a::after { display: none; }

  .hero__actions { justify-items: start; }
  .about { grid-template-columns: 1fr; gap: 20px; }
  .about .label { padding-top: 0; }
  .about__text { grid-template-columns: 1fr; }
  .cs-page-hero__grid, .cs-embed, .cs-overview { grid-template-columns: 1fr; }
  .cs-chapter__inner { grid-template-columns: 1fr; gap: 16px; }
  .cs-chapter__side .label { position: static; }
  .cs-blk-type li { grid-template-columns: 1fr; gap: 6px; }
  .cs-facts { grid-template-columns: repeat(2, 1fr); }
  .cs-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .cs-facts div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .services { grid-template-columns: 1fr; }
  .rw-head { align-items: flex-start; }
  .services__visual { min-height: 420px; }
}

@media (max-width: 640px) {
  .nav__actions .btn { display: none; }
  .hero__ctas, .hero__actions { width: 100%; }
  .hero__ctas .btn { flex: 1 1 100%; justify-content: space-between; }
  .hero__ctas .btn--outline { padding: 0 18px 0 22px; }
  .hero__social { width: 100%; }
  .hero__social li { flex: 1 1 0; min-width: 0; }
  .soc { width: 100%; justify-content: center; gap: 8px; height: 42px; padding: 0 12px 0 5px; font-size: 13px; }
  .soc__icon { width: 30px; height: 30px; margin-right: auto; }
  .soc__name { margin-right: auto; }
  .hero__role { font-size: 12px; }
  .rw-grid, .live { grid-template-columns: 1fr; }
  .dc__progress { display: none; }
  .dc.is-3d .dc__card { width: 74vw; }
  .dc.is-3d .dc__track { height: 64vw; }
  .dc__btn { width: 42px; height: 42px; }
  .dc__info { flex-direction: column; align-items: flex-start; gap: 4px; }
  .dc__title { font-size: 16px; }
  .dc__title span { white-space: normal; }
  .beyond__wall { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; padding-top: 14px; }
  .snap { position: relative; inset: auto; width: auto; }
  .snap--wide { grid-column: 1 / -1; }
  .snap--me { order: -1; grid-column: 1 / -1; width: min(72%, 300px); justify-self: center; }
  .snap__card { padding: 8px 8px 0; rotate: calc(var(--tilt, 0deg) * .5); }
  .doodle { display: none; }
  .beyond__wall { padding-inline: 10px; }
  #beyond { overflow-x: clip; }
  .snap figcaption { padding: 8px 2px 12px; font-size: 12.5px; }
  .snap__tape { width: 60px; height: 18px; top: -9px; }
  .tl2 { padding-left: 26px; }
  .tl2::before { left: 5px; }
  .tl2__item::before { left: -26px; width: 12px; height: 12px; top: 26px; }
  .tl2__head { grid-template-columns: auto minmax(0, 1fr); }
  .tl2__when { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .tl2__points { grid-template-columns: 1fr; }
  .edu { grid-template-columns: 1fr; }

  .pr { --node: 48px; }
  .pr h3 { font-size: 21px; }
  .stats { gap: 12px; }
  .stat { min-height: 0; gap: 22px; padding: 20px; }
  .stat__value { font-size: 40px; }
  .logos__track > .logo { margin-right: 48px; }
  .logo-img--sq { height: 42px; }
  .logo-img--wide { height: 30px; }
  .logo-img--nimi { height: 38px; }
  .logo-name { font-size: 17px; }
  .services__visual { min-height: 500px; }
  .edu__arrow { display: none; }
  .cs-blk-facts, .cs-blk-duo, .cs-blk-persona__cols, .cs-blk-themes, .cs-blk-cards--2col { grid-template-columns: 1fr; }
  .cs-blk-swatches { grid-template-columns: repeat(2, 1fr); }
  .cs-blk-bp { grid-template-columns: 1fr; }
  .cs-blk-bp__grid, .cs-blk-bp__item--1 .cs-blk-bp__grid { height: 120px; }
  .cs-blk-rows li { grid-template-columns: 44px 1fr; }
  .cs-chapters { top: 76px; }
  .pj-cta__btns { width: 100%; }
  .pj-cta .btn { width: 100%; justify-content: space-between; }

  .float-chip { font-size: 14px; gap: 9px; padding: 6px 16px 6px 6px; }
  .tool-logo { width: 36px; height: 36px; border-radius: 11px; }
  .tool-logo svg { width: 20px; height: 20px; }
  .tool-logo--figma svg { width: 15px; height: 22px; }
  .stat__viz { height: 96px; }
  .stat__viz { height: auto; min-height: 96px; }
  .st-logos { display: grid; grid-template-columns: repeat(2, 44px); gap: 8px; padding-left: 0; }
  .st-logo { width: 44px; height: 44px; border-radius: 14px; padding: 7px; margin-left: 0; }
  .stat:hover .st-logo { margin-left: 0; }
  .st-kit { display: flex; flex-wrap: wrap; gap: 8px; }
  .st-kit__btn { height: 32px; padding: 0 12px; font-size: 12px; }
  .st-kit__toggle, .st-kit__check, .st-kit__chip { margin-top: 0; }
  .st-kit__slider { width: 100%; margin: 10px 0; }
  .st-aa__ratio { font-size: 18px; }
  .cs-page-cover { padding: 12px; border-radius: var(--radius-lg); }
  .rw-card__body { padding: 18px 8px 8px; }
  .rw-card__arrow { width: 40px; height: 40px; }
  .rw-head .btn { width: 100%; justify-content: space-between; }
  .cs-page-hero__ctas .btn { width: 100%; justify-content: space-between; }
  .cs-page-hero__ctas .btn--outline { justify-content: center; }
  .cs-embed__frame { min-height: 300px; padding: 16px; }
  .contact__title br { display: none; }
  .contact__actions .btn { flex: 1 1 100%; }
  .contact__actions .btn--lime { justify-content: space-between; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

.footer__links { display: inline-flex; gap: 20px; align-items: center; }
.footer__cookies { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }

/* Case study screen carousel (.sc). Base = swipeable row; .is-ready (GSAP) = centred stage */
.cs-chapter__main, .cs-chapter__block { min-width: 0; }
.sc { min-width: 0; max-width: 100%; margin-top: 8px; padding: clamp(18px, 2.4vw, 28px); border-radius: var(--radius-xl); background: linear-gradient(160deg, #0b2e44 0%, #006491 120%); color: #fff; overflow: hidden; }
.sc__tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.sc__tab { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .75); font: 500 14px var(--font-sans); cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease); }
.sc__tab span { font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.sc__tab[aria-selected="true"] { background: #fff; color: var(--ink); }
.sc__tab[aria-selected="true"] span { background: var(--lime); }
.sc__tab:focus-visible, .sc__stage:focus-visible, .sc__btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.sc__stage { position: relative; margin-top: clamp(18px, 2.4vw, 28px); }
.sc__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
.sc__track::-webkit-scrollbar { display: none; }
.sc__slide { flex: 0 0 auto; scroll-snap-align: center; user-select: none; }
.sc__slide img { display: block; height: auto; pointer-events: none; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35)); }
.sc__set--web .sc__slide { width: min(78vw, 760px); }
.sc__set--web .sc__slide img { width: 100%; }
.sc__set--mobile .sc__slide { width: clamp(170px, 22vw, 250px); }
.sc__set--mobile .sc__slide img { width: 100%; }
.sc.is-ready .sc__stage { overflow: visible; perspective: 1400px; cursor: grab; touch-action: pan-y; }
.sc.is-ready.is-grabbing .sc__stage { cursor: grabbing; }
.sc.is-ready .sc__track { overflow: visible; scroll-snap-type: none; padding: 10px 0 18px; will-change: transform; }
.sc.is-ready .sc__slide { cursor: pointer; will-change: transform, opacity; }
.sc.is-ready .sc__slide.is-active { cursor: default; }
.sc__set--web.sc__set .sc__slide { width: min(64%, 760px); }
.sc__bar { display: flex; align-items: center; gap: 20px; margin-top: 18px; }
.sc__info { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1; overflow: hidden; }
.sc__count { font-size: 13px; letter-spacing: .08em; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc__count b { color: #fff; font-weight: 600; }
.sc__caption { display: inline-block; font-size: clamp(15px, 1.4vw, 18px); font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc__progress { flex: 0 1 180px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.sc__progress i { display: block; height: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.sc__nav { display: flex; gap: 8px; }
.sc__btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.sc__btn:hover { background: var(--lime); color: var(--ink); }
.sc__btn:active { transform: scale(.94); }
.sc__btn svg { width: 18px; height: 18px; }
.sc:not(.is-ready) .sc__progress, .sc:not(.is-ready) .sc__nav { display: none; }
@media (max-width: 640px) {
  .sc { border-radius: var(--radius-lg); }
  .sc__set--web.sc__set .sc__slide { width: 86%; }
  .sc__set--mobile .sc__slide { width: 54vw; }
  .sc__progress { display: none; }
  .sc__info { flex-direction: column; align-items: flex-start; gap: 2px; }
  .sc__caption { white-space: normal; font-size: 15px; }
  .sc__btn { width: 40px; height: 40px; }
}

/* UI screens showcase after a case study: full-bleed, two endless rows */
.shw { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 140px) 0 clamp(56px, 8vw, 110px); }
.shw__head { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; }
.shw__title { margin-top: 18px; font-size: clamp(40px, 7vw, 104px); letter-spacing: -0.055em; line-height: .95; }
.shw__lead { margin-top: 18px; max-width: 520px; color: var(--text-muted); font-size: 16px; }
.shw__rows { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: clamp(18px, 2.4vw, 32px); }
.shw__row { overflow: visible; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.shw__track, .shw__dup { display: flex; width: max-content; }
.shw__track { will-change: transform; }
.shw__item { position: relative; flex: none; margin: 0 clamp(10px, 1.2vw, 18px); transition: transform .5s var(--ease); }
.shw__row--web .shw__item { width: clamp(300px, 34vw, 560px); }
.shw__row--mobile .shw__item { width: clamp(130px, 13vw, 210px); }
.shw__item img { display: block; width: 100%; height: auto; pointer-events: none; user-select: none;
  filter: drop-shadow(0 18px 30px rgba(14, 14, 14, .14)); transition: filter .5s var(--ease); }
.shw__item figcaption {
  position: absolute; left: 50%; bottom: -14px; translate: -50% 6px; opacity: 0; white-space: nowrap; pointer-events: none;
  padding: 7px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500;
  transition: opacity .3s var(--ease), translate .3s var(--ease);
}
.shw__row:hover .shw__item { transform: scale(.97); }
.shw__row .shw__item:hover { transform: translateY(-10px) scale(1.04); z-index: 2; }
.shw__item:hover img { filter: drop-shadow(0 34px 50px rgba(14, 14, 14, .24)); }
.shw__item:hover figcaption { opacity: 1; translate: -50% 0; }
html:not(.gsap) .shw__track { animation: shw-left 60s linear infinite; }
html:not(.gsap) .shw__row[data-dir="1"] .shw__track { animation-direction: reverse; }
@keyframes shw-left { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .shw__row { overflow-x: auto; } }

/* Hero entrance in pure CSS: starts on first paint, no wait for the animation scripts */
.hero-in .sw__i { animation: word-up 1.1s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * 60ms + 150ms); }
.hero-in--1, .hero-in--2, .hero-in--3 { animation: fade-up .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-in--1 { animation-delay: .05s; }
.hero-in--2 { animation-delay: .55s; }
.hero-in--3 { animation-delay: .7s; }
@keyframes word-up { from { transform: translateY(110%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } }

.cs-page-hero__ctas, .pj-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.pj-cta__btns { flex: none; }

/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Clean screens carousel: no panel, minimal controls */
.sc--clean { padding: 0; border-radius: 0; background: none; color: var(--text); overflow: visible; }
.cs-gallery .sc--clean { margin-top: clamp(8px, 2vw, 20px); }
.sc--clean .sc__tabs { gap: 22px; padding: 0; background: none; }
.sc--clean .sc__tab { height: auto; padding: 0 0 6px; border-radius: 0; color: var(--text-subtle); font-size: 15px; position: relative; }
.sc--clean .sc__tab span { display: none; }
.sc--clean .sc__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.sc--clean .sc__tab[aria-selected="true"] { background: none; color: var(--text); }
.sc--clean .sc__tab[aria-selected="true"]::after { transform: scaleX(1); }
.sc--clean .sc__tab:hover { color: var(--text); }
.sc--clean .sc__stage { margin-top: clamp(20px, 3vw, 36px); perspective: none; }
.sc--clean .sc__slide img { filter: none; border-radius: 14px; box-shadow: 0 1px 2px rgba(14, 14, 14, .05), 0 24px 60px rgba(14, 14, 14, .12); }
.sc--clean .sc__set--mobile .sc__slide img { border-radius: 0; box-shadow: none; filter: drop-shadow(0 22px 34px rgba(14, 14, 14, .14)); }
.sc--clean .sc__set--web.sc__set .sc__slide { width: min(72%, 900px); }
.sc--clean .sc__set--mobile .sc__slide { width: clamp(190px, 21vw, 270px); }
.sc--clean .sc__bar { margin-top: clamp(18px, 2.4vw, 28px); padding-top: 18px; border-top: 1px solid var(--border); }
.sc--clean .sc__count { color: var(--text-subtle); }
.sc--clean .sc__count b { color: var(--text); }
.sc--clean .sc__progress { background: var(--border); height: 2px; }
.sc--clean .sc__progress i { background: var(--ink); }
.sc--clean .sc__btn { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--border); }
.sc--clean .sc__btn:hover { background: var(--ink); color: #fff; box-shadow: none; }
.sc--clean .sc__tab:focus-visible, .sc--clean .sc__stage:focus-visible, .sc--clean .sc__btn:focus-visible { outline-color: var(--ink); }
@media (max-width: 640px) {
  .sc--clean .sc__set--web.sc__set .sc__slide { width: 88%; }
  .sc--clean .sc__set--mobile .sc__slide { width: 58vw; }
}
.cs-gallery { overflow-x: clip; }
.cs-gallery { padding-top: clamp(56px, 7vw, 96px); }
.cs-gallery__head { max-width: 680px; margin-bottom: clamp(20px, 3vw, 32px); }
.cs-gallery__title { margin-top: 18px; font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -0.045em; line-height: 1.05; }
.cs-gallery__lead { margin-top: 14px; color: var(--text-muted); font-size: 16px; }

/* AI workflow card */
.st-ai { display: grid; align-content: start; gap: 14px; }
.st-ai__prompt {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 14px; background: var(--gray);
  box-shadow: inset 0 0 0 1px var(--border); font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden;
}
.st-ai__spark { flex: none; width: 16px; height: 16px; fill: var(--lime); stroke: var(--ink); stroke-width: 1.5; }
.st-ai__text { min-width: 0; overflow: hidden; text-overflow: clip; }
.st-ai__caret { flex: none; width: 2px; height: 16px; margin-left: -6px; background: var(--ink); animation: st-blink 1s steps(1) infinite; }
@keyframes st-blink { 50% { opacity: 0; } }
.st-ai__tools { display: flex; gap: 8px; }
.st-ai__tools .tool-logo { width: 40px; height: 40px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border); }
.st-ai__tools .tool-logo svg { width: 22px; height: 22px; }
.st-ai__tools .tool-logo--figma svg { width: 15px; height: 22px; }
@media (max-width: 640px) { .st-ai__prompt { height: 38px; padding: 0 10px; gap: 6px; font-size: 12px; } .st-ai__tools .tool-logo { width: 36px; height: 36px; } }

/* ---------- Explorations page ---------- */
.ex-page { background: #fff; }
.ex-back {
  position: fixed; z-index: 30; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px 0 18px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 17px; font-weight: 500;
  box-shadow: 0 1px 2px rgba(14, 14, 14, .06), 0 12px 30px rgba(14, 14, 14, .14); transition: transform .3s var(--ease);
}
.ex-back:hover { transform: translateX(-3px); }
.ex-back svg { width: 20px; height: 20px; }
.ex-head {
  position: fixed; z-index: 30; top: 14px; right: 18px; text-align: right; padding: 8px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.ex-head h1 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.ex-head p { margin-top: 2px; font-size: clamp(13px, 1.2vw, 16px); color: var(--text-muted); }
.ex-wall { columns: 6 220px; column-gap: 16px; padding: 8px 8px 120px; overflow: hidden; }
.ex-wall.is-columns { columns: auto; display: flex; gap: 16px; align-items: flex-start; }
.ex-col { flex: 1 1 0; min-width: 0; display: grid; gap: 16px; will-change: transform; }
.ex-tile { display: block; margin-bottom: 16px; break-inside: avoid; border-radius: 16px; overflow: hidden; background: var(--gray);
  box-shadow: 0 1px 2px rgba(14, 14, 14, .05), 0 10px 28px rgba(14, 14, 14, .08); cursor: zoom-in; transition: box-shadow .45s var(--ease); }
.is-columns .ex-tile { margin-bottom: 0; }
.ex-tile img { display: block; width: 100%; height: auto; transition: transform .7s var(--ease); }
.ex-tile:hover { box-shadow: 0 2px 4px rgba(14, 14, 14, .06), 0 22px 44px rgba(14, 14, 14, .16); }
.ex-tile:hover img { transform: scale(1.03); }
.ex-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.ex-word > span { display: inline-block; }
.ex-cursor {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(14, 14, 14, .2); visibility: hidden;
}
.ex-tile:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.ex-lock, .ex-lock body { overflow: hidden; }
.ex-viewer { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.ex-viewer[hidden] { display: none; }
.ex-viewer__bg { position: absolute; inset: 0; background: rgba(14, 14, 14, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: zoom-out; }
.ex-viewer__fig { position: relative; margin: 0; margin-bottom: 36px; display: grid; justify-items: center; gap: 14px; transform-origin: center; }
.ex-viewer__fig img { display: block; max-width: 90vw; max-height: 82vh; object-fit: contain; border-radius: 14px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.ex-viewer__fig figcaption { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px; color: #fff; font-size: 15px; font-weight: 500; text-align: center; }
.ex-viewer__link { color: var(--lime); }
.ex-viewer__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ex-viewer__close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border: 0; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); cursor: pointer; }
.ex-viewer__close:hover { background: var(--lime); }
@media (max-width: 640px) {
  .ex-back { height: 44px; padding: 0 16px 0 12px; font-size: 14px; top: 10px; left: 10px; }
  .ex-head { top: 62px; right: auto; left: 10px; text-align: left; padding: 6px 10px; }
  .ex-wall { padding: 178px 8px 80px; column-gap: 10px; }
  .ex-wall.is-columns, .ex-col { gap: 10px; }
  .ex-tile { border-radius: 12px; }
}
.rw-head__btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) { .rw-head__btns { width: 100%; } .rw-head__btns .btn { width: 100%; } .rw-head__btns .btn--outline { justify-content: center; } .rw-head__btns .btn--arrow { justify-content: space-between; } }

/* ===================== Shipped products page ===================== */
.sp-count { margin-top: 18px; font-size: 15px; color: var(--text-muted); }
.sp-count strong { color: var(--text); font-weight: 600; }
.sp-grid { margin-top: 8px; }
.live__name { margin: 0; }
.live__badge { margin-left: auto; margin-right: 8px; align-self: center; padding: 5px 10px; border-radius: 999px; background: var(--lime); font-size: 12px; font-weight: 600; }
.live__card--cs { box-shadow: inset 0 0 0 1.5px var(--lime-dark); }
.live__cs { margin-right: 4px; }
.sp-note { margin-top: 28px; max-width: 760px; font-size: 13.5px; line-height: 1.6; color: var(--text-subtle); }

/* ===================== ReadyMe case study ===================== */
.rm-h2 { font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -0.04em; line-height: 1.08; }
.rm-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.rm-intro { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px 64px; align-items: start; }
.rm-intro__text { display: grid; gap: 16px; font-size: 17px; line-height: 1.65; color: var(--text-muted); }
.rm-goals { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rm-goal { padding: 26px; border-radius: var(--radius-lg); background: var(--gray); }
.rm-goal__n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lime); font-size: 13px; font-weight: 600; }
.rm-goal h3 { margin: 18px 0 6px; font-size: 20px; letter-spacing: -0.02em; }
.rm-goal p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

.rm-pairs { display: grid; gap: clamp(56px, 8vw, 110px); max-width: 1040px; margin-inline: auto; }
.rm-pair { display: grid; grid-template-columns: 1fr minmax(0, 360px); gap: 32px clamp(32px, 6vw, 96px); align-items: center; }
.rm-pair--flip { grid-template-columns: minmax(0, 360px) 1fr; }
.rm-pair--flip .rm-pair__text { order: 2; }
.rm-pair__num { font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--text-subtle); }
.rm-pair__title { margin: 10px 0 18px; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.035em; line-height: 1.12; }
.rm-pair__points { display: grid; gap: 12px; max-width: 480px; }
.rm-pair__points li { position: relative; padding-left: 22px; color: var(--text-muted); font-size: 15.5px; line-height: 1.6; }
.rm-pair__points li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--lime-dark); }

/* Before/after compare slider */
.ba { --pos: 50%; position: relative; margin: 0 auto; width: 100%; max-width: 360px; aspect-ratio: 393 / 852; border-radius: 34px; overflow: hidden;
  background: #fff; box-shadow: 0 30px 70px -24px rgba(14, 14, 14, .35), 0 0 0 1px rgba(14, 14, 14, .07); user-select: none; touch-action: pan-y; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; }
.ba__old { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(14, 14, 14, .12); pointer-events: none; }
.ba__handle i { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; translate: -50% -50%; border-radius: 50%;
  background: var(--ink); color: var(--lime); box-shadow: 0 8px 20px rgba(14, 14, 14, .3); transition: scale .3s var(--ease); }
.ba:hover .ba__handle i, .ba.is-dragging .ba__handle i { scale: 1.12; }
.ba__tag { position: absolute; top: 14px; padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.ba__tag--old { left: 14px; background: rgba(14, 14, 14, .72); color: #fff; }
.ba__tag--new { right: 14px; background: var(--lime); color: var(--ink); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba:has(.ba__range:focus-visible) { outline: 3px solid var(--lime-dark); outline-offset: 4px; }

.rm-sys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rm-sys__col { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.rm-sys__col h3 { margin-bottom: 16px; font-size: 19px; letter-spacing: -0.02em; }
.rm-sys__col ul { display: grid; gap: 10px; }
.rm-sys__col li { position: relative; padding-left: 20px; color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.rm-sys__col li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 2px; border-radius: 2px; background: var(--ink); }

@media (max-width: 980px) {
  .rm-intro, .rm-goals, .rm-sys { grid-template-columns: 1fr; }
  .rm-pair, .rm-pair--flip { grid-template-columns: 1fr; }
  .rm-pair--flip .rm-pair__text { order: 0; }
}
@media (max-width: 640px) {
  .ba { max-width: 300px; border-radius: 28px; }
  .live__badge { margin-right: 6px; }
}

/* ReadyMe v2: stage, glance, audiences, audit, IA, journey, palette, components, metrics */
.rm-head--center { text-align: center; margin-inline: auto; }
.rm-stage { position: relative; margin-top: clamp(28px, 4vw, 48px); height: clamp(380px, 46vw, 640px); border-radius: var(--radius-xl); overflow: hidden;
  background: radial-gradient(90% 80% at 55% 0%, #e4e2ff 0%, #f1f0ff 40%, #f7f7fb 75%); isolation: isolate; }
.rm-stage__glow { position: absolute; left: 50%; top: 40%; width: 60%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 94, 222, .28), transparent 65%); filter: blur(10px); z-index: -1; }
.rm-dev { position: absolute; bottom: -12%; margin: 0; width: clamp(130px, 15vw, 220px); translate: -50% 0; }
.rm-dev img { display: block; width: 100%; height: auto; border-radius: clamp(18px, 2vw, 30px);
  box-shadow: 0 30px 60px -18px rgba(40, 34, 120, .4), 0 0 0 1px rgba(14, 14, 14, .06); }
.rm-dev figcaption { position: absolute; top: -34px; left: 50%; translate: -50% 0; padding: 5px 12px; border-radius: 999px; white-space: nowrap;
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.rm-dev--old { left: 14%; bottom: 6%; rotate: -8deg; scale: .9; z-index: 1; }
.rm-dev--old img { filter: grayscale(.55) contrast(.95); opacity: .92; }
.rm-dev--old figcaption { background: rgba(14, 14, 14, .75); color: #fff; }
.rm-dev--l { left: 36%; rotate: -5deg; bottom: -16%; z-index: 2; }
.rm-dev--c { left: 56%; width: clamp(150px, 18vw, 260px); bottom: -6%; z-index: 4; }
.rm-dev--c figcaption { background: var(--lime); color: var(--ink); }
.rm-dev--r { left: 78%; rotate: 6deg; bottom: -18%; z-index: 3; }
.rm-chip { position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #fff;
  font-size: 13px; font-weight: 500; box-shadow: 0 12px 30px -10px rgba(40, 34, 120, .35); white-space: nowrap; }
.rm-chip i { width: 8px; height: 8px; border-radius: 50%; background: #5a5ede; }
.rm-chip--1 { left: 4%; top: 12%; } .rm-chip--2 { left: 3%; bottom: 12%; } .rm-chip--3 { right: 4%; top: 16%; }
.rm-chip--4 { right: 6%; bottom: 14%; background: var(--ink); color: #fec802; }
.rm-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.rm-toc a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); font-size: 13.5px; color: var(--text-muted); transition: background-color .25s, color .25s, border-color .25s; }
.rm-toc a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.rm-glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.rm-glance__item { padding: 28px; }
.rm-glance__item + .rm-glance__item { border-left: 1px solid var(--border); }
.rm-glance__item h3 { margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #5a5ede; }
.rm-glance__item p { font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.rm-stats { margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rm-stat { padding: 26px; border-radius: var(--radius-lg); background: var(--gray); }
.rm-stat:first-child { background: var(--ink); color: #fff; }
.rm-stat:first-child p { color: rgba(255, 255, 255, .65); }
.rm-stat__n { display: block; font-size: clamp(40px, 4.6vw, 60px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.rm-stat:nth-child(2) .rm-stat__n { color: #5a5ede; }
.rm-stat p { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--text-muted); }

.rm-auds { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rm-aud { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: linear-gradient(160deg, #f1f0ff, #fafaff); }
.rm-aud + .rm-aud { background: linear-gradient(160deg, #f4fbe0, #fbfdf4); }
.rm-aud__tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; }
.rm-aud__lead { margin-top: 16px; font-size: 20px; letter-spacing: -0.02em; line-height: 1.4; }
.rm-aud__sub { margin-top: 20px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); }
.rm-aud ul { margin-top: 10px; display: grid; gap: 8px; }
.rm-aud li { position: relative; padding-left: 26px; color: var(--text-muted); }
.rm-aud li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #5a5ede; font-weight: 600; }

.rm-audit { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 32px clamp(32px, 6vw, 88px); align-items: center; max-width: 1040px; margin-inline: auto; }
.rm-audit__shot { position: relative; border-radius: 30px; overflow: visible; }
.rm-audit__shot img { display: block; width: 100%; height: auto; border-radius: 30px; box-shadow: 0 30px 70px -24px rgba(14, 14, 14, .35), 0 0 0 1px rgba(14, 14, 14, .07); }
.rm-pin { position: absolute; left: var(--x); top: var(--y); width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 0; border-radius: 50%; cursor: pointer;
  background: #ff5a4f; color: #fff; font: 600 13px/30px var(--font-sans); box-shadow: 0 0 0 4px rgba(255, 90, 79, .25), 0 6px 14px rgba(14, 14, 14, .3); transition: box-shadow .3s, background-color .3s; }
.rm-pin.is-active, .rm-pin:hover { background: var(--ink); box-shadow: 0 0 0 8px rgba(255, 90, 79, .35), 0 6px 14px rgba(14, 14, 14, .3); }
.rm-pin:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.rm-issues { display: grid; gap: 8px; }
.rm-issue { display: flex; gap: 16px; padding: 16px 18px; border-radius: 18px; border: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.rm-issue.is-active { background: #fff3f2; border-color: #ffd2cf; }
.rm-issue__n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #ff5a4f; color: #fff; font-size: 13px; font-weight: 600; }
.rm-issue h3 { font-size: 17px; letter-spacing: -0.015em; }
.rm-issue p { margin-top: 4px; font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }

.rm-ia { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.6fr); align-items: center; gap: 24px; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-xl); background: var(--gray); }
.rm-ia__label { margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); }
.rm-ia__col ul { display: grid; gap: 8px; }
.rm-ia__col--old li { --strike: 0; position: relative; justify-self: start; padding: 10px 16px; border-radius: 12px; background: #fff; font-weight: 500; }
.rm-ia__col--old li::after { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; background: #ff5a4f; transform: scaleX(var(--strike)); transform-origin: left; }
.rm-ia__col--new ul { grid-template-columns: 1fr 1fr; }
.rm-ia__col--new li { padding: 16px 18px; border-radius: 16px; background: #fff; box-shadow: 0 10px 24px -16px rgba(40, 34, 120, .4); }
.rm-ia__col--new li strong { display: block; color: #5a5ede; font-size: 16px; }
.rm-ia__col--new li span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--text-muted); }
.rm-ia__arrow { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--lime); }
.rm-ia__arrow svg { rotate: 45deg; }
.rm-ia__note { margin-top: 16px; text-align: center; color: var(--text-muted); }

.rm-journey-wrap { position: relative; }
.rm-journey { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.rm-journey__line { position: absolute; left: 10%; right: 10%; top: var(--jline, 44%); height: 2px; background: var(--border); }
.rm-journey__line i { position: absolute; inset: 0; background: linear-gradient(90deg, #5a5ede, var(--lime-dark)); transform-origin: left; }
.rm-step { position: relative; z-index: 1; text-align: center; }
.rm-step figure { margin: 0 auto; max-width: 190px; }
.rm-step img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 24px 50px -22px rgba(40, 34, 120, .4), 0 0 0 1px rgba(14, 14, 14, .06); }
.rm-step__n { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-top: -17px; position: relative; border-radius: 50%; background: #5a5ede; color: #fff; font-size: 12.5px; font-weight: 600; box-shadow: 0 0 0 5px var(--bg); }
.rm-step h3 { margin-top: 10px; font-size: 17px; letter-spacing: -0.015em; }
.rm-step p { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }

.rm-palette { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.rm-swatch { display: grid; gap: 2px; padding: 10px 10px 14px; border-radius: 20px; border: 1px solid var(--border); background: #fff; }
.rm-swatch__chip { display: block; height: 72px; margin-bottom: 10px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(14, 14, 14, .06); }
.rm-swatch strong { font-size: 14px; }
.rm-swatch code { font: 500 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-muted); }
.rm-swatch small { font-size: 12px; color: var(--text-subtle); line-height: 1.4; }
.rm-comps { margin-top: 16px; padding: clamp(20px, 3vw, 36px); border-radius: var(--radius-xl); background: linear-gradient(160deg, #f1f0ff, #f7f7fb);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.rm-comp { margin: 0; }
.rm-comp img { display: block; width: 100%; height: auto; border-radius: 16px; background: #fff; box-shadow: 0 16px 36px -20px rgba(40, 34, 120, .45); }
.rm-comp figcaption { margin-top: 8px; font-size: 12.5px; color: var(--text-muted); }
.rm-comps + .rm-sys { margin-top: 16px; }

.rm-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rm-metric { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.rm-metric__i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #eeeefc; color: #5a5ede; }
.rm-metric h3 { margin-top: 16px; font-size: 17px; letter-spacing: -0.015em; }
.rm-metric p { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }

@media (max-width: 980px) {
  .rm-glance, .rm-auds, .rm-audit, .rm-ia { grid-template-columns: 1fr; }
  .rm-glance__item + .rm-glance__item { border-left: 0; border-top: 1px solid var(--border); }
  .rm-stats, .rm-metrics { grid-template-columns: 1fr 1fr; }
  .rm-audit__shot { max-width: 320px; margin-inline: auto; }
  .rm-ia__arrow { justify-self: center; rotate: 90deg; }
  .rm-journey { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .rm-journey__line { display: none; }
  .rm-palette { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rm-comps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .rm-stage { height: 400px; }
  .rm-dev--l, .rm-dev--r { display: none; }
  .rm-dev--old { left: 30%; width: 140px; }
  .rm-dev--c { left: 70%; width: 160px; }
  .rm-chip--2, .rm-chip--3 { display: none; }
  .rm-chip--1 { top: 6%; } .rm-chip--4 { right: 4%; bottom: auto; top: 6%; left: auto; }
  .rm-chip--1 { left: 4%; }
  .rm-ia__col--new ul { grid-template-columns: 1fr; }
  .rm-palette { grid-template-columns: 1fr 1fr; }
  .rm-comps { grid-template-columns: 1fr; }
  .rm-metrics, .rm-stats { grid-template-columns: 1fr; }
  .rm-toc { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .rm-toc a { flex: none; }
}

/* ===================== ReadyMe Authoring Tool case study ===================== */
.at-stage { position: relative; margin-top: clamp(28px, 4vw, 48px); height: clamp(360px, 44vw, 620px); border-radius: var(--radius-xl); overflow: hidden;
  background: radial-gradient(90% 80% at 60% 0%, #e4e2ff 0%, #f1f0ff 40%, #f7f7fb 75%); isolation: isolate; }
.at-win { position: absolute; margin: 0; width: 58%; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 80px -30px rgba(40, 34, 120, .45), 0 0 0 1px rgba(14, 14, 14, .06); }
.at-win img { display: block; width: 100%; height: auto; }
.at-win__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f3f3f7; border-bottom: 1px solid #e8e8ee; }
.at-win__bar i { width: 9px; height: 9px; border-radius: 50%; background: #dcdce4; }
.at-win__bar b { margin: 0 auto; padding: 3px 14px; border-radius: 999px; background: #fff; font-size: 11px; font-weight: 500; color: var(--text-subtle); }
.at-win figcaption { position: absolute; top: 40px; left: 12px; padding: 5px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.at-win--old { left: 5%; top: 12%; rotate: -3deg; z-index: 1; }
.at-win--old img { filter: grayscale(.5) contrast(.95); }
.at-win--old figcaption { background: rgba(14, 14, 14, .75); color: #fff; }
.at-win--new { right: 5%; top: 24%; rotate: 2deg; z-index: 2; }
.at-win--new figcaption { background: var(--lime); color: var(--ink); }
.at-chip--1 { left: 4%; bottom: 10%; } .at-chip--2 { right: 4%; top: 8%; } .at-chip--3 { left: 46%; top: 6%; }

.rm-audit--desk { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); max-width: none; }
.rm-audit--desk .rm-audit__shot img { border-radius: 16px; }
.rm-pairs--desk { max-width: none; }
.rm-pair--desk { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.ba--desk { max-width: none; aspect-ratio: 1512 / 982; border-radius: 18px; }

.at-create { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.at-create__before, .at-create__after { position: relative; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-xl); background: var(--gray); }
.at-create__after { background: linear-gradient(160deg, #f1f0ff, #fafaff); }
.at-create .ba__tag { position: static; display: inline-block; margin-bottom: 16px; }
.at-create__before img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 20px 40px -24px rgba(14, 14, 14, .35); filter: grayscale(.3); }
.at-create__before p { margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.at-steps-wrap { position: relative; }
.at-steps { position: relative; display: grid; gap: 14px; }
.at-steps__line { position: absolute; left: 21px; top: 24px; bottom: 24px; width: 2px; background: #dcdcf5; }
.at-steps__line i { position: absolute; inset: 0; background: #5a5ede; transform-origin: top; }
.at-step { position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 16px; border-radius: 18px; background: #fff;
  box-shadow: 0 14px 30px -22px rgba(40, 34, 120, .5); }
.at-step__n { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #5a5ede; color: #fff; font-weight: 600; }
.at-step h3 { font-size: 17px; letter-spacing: -0.015em; align-self: end; }
.at-step p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

.at-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.at-feat { padding: 24px; border-radius: var(--radius-lg); background: var(--gray); transition: transform .45s var(--ease), background-color .3s, box-shadow .45s var(--ease); }
.at-feat:hover { transform: translateY(-6px); background: #fff; box-shadow: 0 24px 50px -28px rgba(40, 34, 120, .45); }
.at-feat__i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; color: #5a5ede; box-shadow: 0 8px 18px -12px rgba(40, 34, 120, .5); transition: background-color .3s, color .3s, rotate .45s var(--ease); }
.at-feat:hover .at-feat__i { background: #5a5ede; color: #fff; rotate: -8deg; }
.at-feat h3 { margin-top: 18px; font-size: 17px; letter-spacing: -0.015em; }
.at-feat p { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }
.at-sys__note { max-width: 760px; margin: 0 0 20px; text-align: left; }
.at-comps { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); align-items: start; }

@media (max-width: 980px) {
  .rm-audit--desk, .at-create, .rm-pair--desk { grid-template-columns: 1fr; }
  .rm-audit--desk .rm-audit__shot { max-width: none; }
  .at-feats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .at-stage { height: 300px; }
  .at-win { width: 78%; }
  .at-win--old { left: 3%; top: 8%; }
  .at-win--new { right: 3%; top: 34%; }
  .at-win__bar { height: 20px; } .at-win__bar b { display: none; }
  .at-win figcaption { top: 26px; font-size: 10px; }
  .at-chip--2, .at-chip--3 { display: none; }
  .at-feats, .at-comps { grid-template-columns: 1fr; }
  .rm-pin { width: 24px; height: 24px; margin: -12px 0 0 -12px; line-height: 24px; font-size: 11px; }
}

/* ===================== Authoring tool: design journey ===================== */
.aj-stage .aj-win--main { left: 50%; top: 14%; width: 70%; translate: -50% 0; rotate: 0deg; z-index: 2; }
.aj-float { position: absolute; z-index: 3; margin: 0; }
.aj-float img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(40, 34, 120, .45); }
.aj-float--menu { left: 5%; top: 30%; width: clamp(120px, 15%, 210px); rotate: -4deg; }
.at-win--inline { position: relative; width: 100%; rotate: 0deg; }

.aj-eco { display: grid; grid-template-columns: auto minmax(0, 1.4fr) auto minmax(0, .7fr) auto; align-items: center; gap: 12px;
  padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-xl); background: linear-gradient(160deg, #f1f0ff, #fafaff); }
.aj-eco__node { display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 120px; }
.aj-eco__node strong { font-size: 16px; letter-spacing: -0.01em; }
.aj-eco__node small { font-size: 12.5px; color: var(--text-muted); }
.aj-eco__i { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: #fff; color: #5a5ede; box-shadow: 0 14px 30px -18px rgba(40, 34, 120, .5); margin-bottom: 6px; }
.aj-eco__node--tool .aj-eco__i { width: 76px; height: 76px; background: #5a5ede; color: #fff; }
.aj-eco__track { position: relative; height: 90px; }
.aj-eco__line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #dcdcf5; }
.aj-eco__line i { position: absolute; inset: 0; background: #5a5ede; transform-origin: left; }
.aj-eco__line::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 8px solid #5a5ede; }
.aj-eco__chips { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 6px; }
.aj-eco__chip { padding: 5px 10px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 500; box-shadow: 0 6px 16px -10px rgba(40, 34, 120, .5); }
.aj-challenge { margin-top: clamp(40px, 6vw, 72px); }
.aj-challenge + .rm-stats { margin-top: clamp(28px, 4vw, 44px); }

.aj-process { position: relative; }
.aj-process__line { position: absolute; left: 4%; right: 4%; top: 22px; height: 2px; background: var(--border); }
.aj-process__line i { position: absolute; inset: 0; background: linear-gradient(90deg, #5a5ede, var(--lime-dark)); transform-origin: left; }
.aj-phases { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.aj-phase__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid #5a5ede; color: #5a5ede; font-size: 13px; font-weight: 600; box-shadow: 0 0 0 6px var(--bg); }
.aj-phase:last-child .aj-phase__n { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.aj-phase h3 { margin-top: 18px; font-size: 18px; letter-spacing: -0.02em; }
.aj-phase p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--text-muted); }

.aj-tutor { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; }
.aj-tutor__card { padding: 28px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
.aj-tutor__card p { margin-top: 8px; color: rgba(255, 255, 255, .7); line-height: 1.6; }
.aj-tutor__card h3 { margin-top: 18px; font-size: 22px; letter-spacing: -0.02em; }
.aj-tutor__avatar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--lime); color: var(--ink); }
.aj-tutor__col { padding: 28px; border-radius: var(--radius-lg); background: var(--gray); }
.aj-tutor__label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); }
.aj-list { margin-top: 14px; display: grid; gap: 10px; }
.aj-list li { position: relative; padding-left: 28px; line-height: 1.5; }
.aj-list li::before { position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 700; }
.aj-list--good li::before { content: "✓"; background: #e7f7ed; color: #1f9d55; }
.aj-list--bad li::before { content: "!"; background: #fff0ee; color: #e5483d; }
.aj-principles { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.aj-ia { display: grid; justify-items: center; gap: 0; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-xl); background: var(--gray); }
.aj-ia__root span { display: inline-block; padding: 12px 22px; border-radius: 16px; background: #5a5ede; color: #fff; font-weight: 600; }
.aj-ia__level { position: relative; width: 100%; padding-top: 34px; text-align: center; }
.aj-ia__level::before { content: ""; position: absolute; left: 50%; top: 4px; height: 26px; width: 2px; background: #c9c9ee; }
.aj-ia__label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 10px; }
.aj-ia__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.aj-ia__row li { padding: 9px 14px; border-radius: 12px; background: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 8px 18px -14px rgba(40, 34, 120, .5); }
.aj-ia__row--side li.is-on { background: #eeeefc; color: #5a5ede; box-shadow: inset 0 0 0 1.5px #5a5ede; }
.aj-ia__row--mat li { background: #5a5ede; color: #fff; }

.aj-flows { padding: clamp(20px, 3vw, 36px); border-radius: var(--radius-xl); border: 1px solid var(--border); }
.aj-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.aj-tab { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font: 500 14px var(--font-sans); color: var(--text-muted); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.aj-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.aj-tab:focus-visible { outline: 2px solid #5a5ede; outline-offset: 2px; }
.aj-flow { display: flex; flex-wrap: wrap; gap: 28px 34px; align-items: stretch; }
.aj-flow[hidden] { display: none; }
.aj-node { position: relative; flex: 1 1 140px; max-width: 220px; padding: 18px 16px 16px; border-radius: 18px; background: linear-gradient(160deg, #f1f0ff, #fafaff); }
.aj-node:not(:last-child)::after { content: ""; position: absolute; right: -27px; top: 50%; width: 20px; height: 2px; background: #5a5ede; }
.aj-node:not(:last-child)::before { content: ""; position: absolute; right: -29px; top: calc(50% - 4px); border: 5px solid transparent; border-left: 6px solid #5a5ede; z-index: 1; }
.aj-node__n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #5a5ede; color: #fff; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.aj-node strong { display: block; font-size: 15px; letter-spacing: -0.01em; line-height: 1.35; }
.aj-node small { display: block; margin-top: 6px; font-size: 12.5px; color: #5a5ede; font-weight: 500; }
.aj-node:last-child { background: var(--ink); color: #fff; }
.aj-node:last-child .aj-node__n { background: var(--lime); color: var(--ink); }
.aj-node:last-child small { color: var(--lime); }

.aj-decs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.aj-dec { display: grid; gap: 20px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--gray); }
.aj-dec--wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; background: linear-gradient(160deg, #f1f0ff, #fafaff); }
.aj-dec--wide:nth-of-type(n+2) .aj-dec__media { order: 2; }
.aj-dec__i { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: #fff; color: #5a5ede; box-shadow: 0 12px 26px -16px rgba(40, 34, 120, .5); }
.aj-dec h3 { margin-top: 8px; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.03em; line-height: 1.2; }
.aj-dec p { margin-top: 10px; color: var(--text-muted); line-height: 1.65; }
.aj-states { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.aj-state { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border); font-size: 14px; }
.aj-state:nth-child(5) { background: #fff7e0; border-color: #ffe7a3; } .aj-state:nth-child(6) { background: #e7f7ed; border-color: #bfe9cf; } .aj-state:nth-child(7) { background: #fff0ee; border-color: #ffd2cf; }

@media (max-width: 980px) {
  .aj-eco { grid-template-columns: 1fr; justify-items: center; gap: 6px; }
  .aj-eco__track { height: auto; width: 100%; padding: 10px 0; }
  .aj-eco__track::before { content: "↓"; display: block; text-align: center; color: #5a5ede; font-weight: 700; margin-bottom: 6px; }
  .aj-eco__line { display: none; }
  .aj-eco__chips { position: static; }
  .aj-phases { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .aj-process__line { display: none; }
  .aj-tutor, .aj-principles { grid-template-columns: 1fr 1fr; }
  .aj-tutor__card { grid-column: 1 / -1; }
  .aj-dec--wide { grid-template-columns: 1fr; } .aj-dec--wide:nth-of-type(n+2) .aj-dec__media { order: 0; }
}
@media (max-width: 640px) {
  .aj-stage .aj-win--main { width: 92%; top: 22%; }
  .aj-float--menu { display: none; }
  .aj-phases, .aj-tutor, .aj-principles, .aj-decs { grid-template-columns: 1fr; }
  .aj-flow { flex-direction: column; gap: 22px; }
  .aj-node { max-width: none; flex: none; }
  .aj-node:not(:last-child)::after { right: auto; left: 30px; top: auto; bottom: -18px; width: 2px; height: 14px; }
  .aj-node:not(:last-child)::before { display: none; }
  .aj-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .aj-tab { flex: none; }
}

/* ===================== User flow (case study block) ===================== */
.uf { padding: clamp(18px, 3vw, 28px); border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.uf-tabs { display: flex; gap: 6px; margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.uf-tabs::-webkit-scrollbar { display: none; }
.uf-tab { flex: none; height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
  font: 500 14px var(--font-sans); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.uf-tab:hover { border-color: var(--ink); color: var(--text); }
.uf-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.uf-tab:focus-visible { outline: 2px solid var(--lime-dark); outline-offset: 2px; }
.uf-panel[hidden] { display: none; }
.uf-flow { display: flex; gap: 30px; overflow-x: auto; scrollbar-width: thin; padding: 4px 2px 8px; }
.uf-flow > li { position: relative; flex: 1 0 140px; max-width: 200px; display: flex; }
.uf-flow > li:not(:last-child)::after { content: ""; position: absolute; right: -23px; top: 50%; width: 16px; height: 2px; background: var(--ink); opacity: .35; }
.uf-flow > li:not(:last-child)::before { content: ""; position: absolute; right: -25px; top: calc(50% - 4px); border: 5px solid transparent; border-left: 6px solid var(--ink); opacity: .35; }
.uf-node { position: relative; display: block; width: 100%; padding: 14px 14px 13px; border-radius: 16px; background: var(--gray); color: var(--text);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s; }
a.uf-node:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(14, 14, 14, .35); }
.uf-node__n { display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 10px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font-size: 12px; font-weight: 600; }
.uf-node strong { display: block; font-size: 15px; letter-spacing: -0.01em; line-height: 1.3; }
.uf-node small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }
.uf-node__go { position: absolute; top: 12px; right: 12px; font-size: 13px; color: var(--text-subtle); transition: color .25s, transform .3s var(--ease); }
a.uf-node:hover .uf-node__go { color: var(--text); transform: translate(2px, -2px); }
.uf-node--decision { background: transparent; box-shadow: inset 0 0 0 1.5px var(--border); border: 1.5px dashed #b9b9b3; }
.uf-node--decision .uf-node__n { background: #fff7d6; box-shadow: none; }
.uf-flow > li:last-child .uf-node:not(.uf-node--decision) { background: var(--ink); color: #fff; }
.uf-flow > li:last-child .uf-node:not(.uf-node--decision) small, .uf-flow > li:last-child .uf-node:not(.uf-node--decision) .uf-node__go { color: rgba(255, 255, 255, .65); }
.uf-flow > li:last-child .uf-node:not(.uf-node--decision) .uf-node__n { background: var(--lime); box-shadow: none; color: var(--ink); }
.uf-branch { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--text-muted); }
.uf-branch span { padding: 2px 9px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.uf-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-subtle); }
.uf-key { display: inline-block; width: 14px; height: 14px; margin-right: -8px; border-radius: 4px; background: var(--gray); box-shadow: inset 0 0 0 1px var(--border); vertical-align: -2px; }
.uf-key--decision { background: transparent; border: 1.5px dashed #b9b9b3; box-shadow: none; }
.uf-key--end { background: var(--ink); box-shadow: none; }
@media (max-width: 640px) {
  .uf-flow { flex-direction: column; gap: 18px; }
  .uf-flow > li { max-width: none; flex: none; }
  .uf-flow > li:not(:last-child)::after { right: auto; left: 26px; top: auto; bottom: -15px; width: 2px; height: 12px; }
  .uf-flow > li:not(:last-child)::before { display: none; }
}

/* ===================== Authoring tool: core moments ===================== */
.aj-float--phone { right: 4%; top: 18%; width: clamp(120px, 14%, 190px); rotate: 4deg; }
.aj-float--phone img { border-radius: 22px; box-shadow: 0 30px 60px -18px rgba(40, 34, 120, .5), 0 0 0 6px var(--surface); }
.am-list { display: grid; gap: clamp(72px, 10vw, 140px); }
.am { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 32px clamp(32px, 5vw, 80px); align-items: center; }
.am--flip { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.am--flip .am__text { order: 2; }
.am__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #5a5ede; color: #fff; font-size: 13px; font-weight: 600; }
.am__eyebrow { margin-top: 18px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #5a5ede; }
.am__title { margin-top: 8px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.04em; line-height: 1.08; }
.am__need { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--gray); font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.am__need b { display: block; margin-bottom: 4px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.am__label { margin-top: 22px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); }
.am__points { margin-top: 10px; display: grid; gap: 10px; }
.am__points li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.55; }
.am__points li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: #eeeefc;
  box-shadow: inset 0 0 0 4px #eeeefc, inset 0 0 0 8px #5a5ede; }
.am__media { position: relative; padding: clamp(18px, 3vw, 34px); border-radius: var(--radius-xl); background: radial-gradient(110% 90% at 70% 0%, #e7e5ff 0%, #f3f2ff 45%, var(--gray) 100%); }
.am--multi .am__media { padding-bottom: clamp(70px, 9vw, 120px); }
.am-shot { margin: 0; }
.am-shot a { display: block; overflow: hidden; border-radius: 14px; background: var(--surface); box-shadow: 0 30px 60px -28px rgba(40, 34, 120, .45), 0 0 0 1px rgba(14, 14, 14, .06);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.am-shot a:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -28px rgba(40, 34, 120, .55), 0 0 0 1px rgba(14, 14, 14, .06); }
.am-shot img { display: block; width: 100%; height: auto; aspect-ratio: 1512 / 982; object-fit: cover; object-position: top; }
.am-shot .at-win__bar { height: 24px; }
.am-shot figcaption { margin-top: 8px; font-size: 12.5px; color: var(--text-muted); }
.am-shot--sub { position: absolute; width: 46%; bottom: clamp(14px, 2vw, 24px); z-index: 2; }
.am-shot--sub figcaption { display: none; }
.am-shot--sub1 { right: -3%; }
.am-shot--sub2 { left: -3%; width: 40%; }
.am--flip .am-shot--sub1 { right: auto; left: -3%; }
.am--flip .am-shot--sub2 { left: auto; right: -3%; }
.am-shot--sub a::after { content: attr(aria-label); }
.am-shot--sub a::after { display: none; }
.am-detail { position: absolute; z-index: 3; margin: 0; top: 10%; right: -4%; width: min(42%, 300px); }
.am--flip .am-detail { right: auto; left: -4%; }
.am-detail img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--surface); box-shadow: 0 24px 50px -18px rgba(40, 34, 120, .5), 0 0 0 1px rgba(14, 14, 14, .06); }
.am-detail--d-preview { width: min(22%, 150px); top: 6%; }
.am-detail--d-milestone { width: min(60%, 420px); top: auto; bottom: -6%; }
.am-detail--d-failed { width: min(46%, 300px); top: -6%; }
@media (max-width: 980px) {
  .am, .am--flip { grid-template-columns: minmax(0, 1fr); }
  .am--flip .am__text { order: 0; }
  .am-detail, .am--flip .am-detail { right: -2%; left: auto; }
}
@media (max-width: 640px) {
  .aj-float--phone { display: none; }
  .am-shot--sub { width: 52%; } .am-shot--sub2 { display: none; }
  .am-detail { width: 46%; } .am-detail--d-preview { width: 26%; } .am-detail--d-milestone { width: 70%; }
}
