/* ==========================================================================
   Portfolio — warm off-white, deep ink, one cobalt accent.
   ========================================================================== */

:root {
  --bg: #F6F2EA;
  --bg-deep: #EDE6D9;
  --surface: #FFFFFF;
  --surface-warm: #FBF8F3;
  --ink: #15161C;
  --ink-2: #34353E;
  --muted: #6B675F;
  --line: rgba(21, 22, 28, .09);
  --line-2: rgba(21, 22, 28, .16);
  --accent: #2B44FF;
  --accent-2: #1F33E0;
  --accent-soft: #E8EBFF;
  --accent-ink: #1E30D2;
  --danger: #C2321B;
  --danger-soft: #FCEBE7;

  --r-s: 12px;
  --r-m: 18px;
  --r-l: 24px;
  --r-xl: 32px;

  --sh-1: 0 1px 2px rgba(21, 22, 28, .05), 0 3px 10px rgba(21, 22, 28, .04);
  --sh-2: 0 2px 6px rgba(21, 22, 28, .05), 0 12px 32px rgba(21, 22, 28, .08);
  --sh-3: 0 8px 18px rgba(21, 22, 28, .06), 0 28px 64px rgba(21, 22, 28, .14);
  --sh-accent: 0 10px 28px rgba(43, 68, 255, .30);

  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-io: cubic-bezier(.7, 0, .25, 1);

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Unbounded", "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1200px;
  --gutter: 24px;
  --topbar-h: 68px;
  --subbar-h: 64px;
  --wide: 1120px;
  --measure: 68ch;
  color-scheme: light;
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --topbar-h: 60px; --subbar-h: 58px; }
}

/* --------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.2; overflow-wrap: break-word; }
p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mark { color: var(--accent); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 300;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-weight: 700; text-decoration: none; transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- buttons */
.btn {
  --h: 50px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px;
  border: 0; border-radius: 999px;
  font: 700 16px/1 var(--font); letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap;
  transition: transform .3s var(--ease), background-color .25s, color .25s, box-shadow .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn .i { width: 19px; height: 19px; transition: transform .35s var(--ease); }
.btn:hover .i-arrow-right { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--sh-accent), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn--primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 14px 34px rgba(43, 68, 255, .36), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2A2B33; }
.btn--ghost { background: rgba(21, 22, 28, .04); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink), var(--sh-1); }
.btn--light { background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .14); }
.btn--light:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(0, 0, 0, .2); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 15px; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 16.5px; }
.btn--xl { --h: 66px; padding: 0 38px; font-size: 18px; }
.btn--block { width: 100%; }

.link-btn {
  background: none; border: 0; padding: 6px 2px; color: var(--accent-ink); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px;
}

/* --------------------------------------------------------------- chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 30px; padding: 5px 12px; border-radius: 999px;
  font-size: 13px; line-height: 1.25; font-weight: 800; letter-spacing: .005em;
}
.chip .i { width: 15px; height: 15px; stroke-width: 2.4; }
.chip--glass { background: rgba(255, 255, 255, .9); color: var(--ink); box-shadow: 0 2px 12px rgba(0, 0, 0, .12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.chip--accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(43, 68, 255, .32); }
.chip--soft { background: #fff; color: var(--ink); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }

.author-badge {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 4px 12px 4px 4px; border-radius: 999px;
  background: var(--bg); color: var(--ink); font-size: 13.5px; font-weight: 700; line-height: 1.3;
  box-shadow: inset 0 0 0 1px var(--line);
}
.author-badge .i { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--ink); color: #fff; stroke-width: 2.4; }

/* --------------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 60;
  height: var(--topbar-h);
  background: rgba(246, 242, 234, .8);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); background: rgba(246, 242, 234, .9); box-shadow: 0 6px 24px rgba(21, 22, 28, .05); }
html[data-view="services"] .topbar { border-bottom-color: transparent; box-shadow: none; }
.topbar__inner {
  height: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px;
}
.brand {
  justify-self: start; min-width: 0;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font: 800 15.5px/1.15 var(--font); letter-spacing: -.01em;
}
.brand__mark { width: 34px; height: 34px; flex: none; transition: transform .5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__end { justify-self: end; display: flex; align-items: center; gap: 10px; }

/* segmented switch */
.seg {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; padding: 4px;
  border-radius: 999px; background: rgba(21, 22, 28, .06);
  box-shadow: inset 0 0 0 1px rgba(21, 22, 28, .04);
}
.seg__pill {
  position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 0; width: 0;
  border-radius: 999px; background: var(--ink);
  box-shadow: 0 4px 14px rgba(21, 22, 28, .22);
  transition: transform .55s var(--ease), width .55s var(--ease);
  opacity: 0;
}
.seg.is-ready .seg__pill { opacity: 1; }
.seg__item {
  position: relative; display: inline-flex; align-items: center;
  height: 38px; padding: 0 20px; border-radius: 999px;
  font-weight: 700; font-size: 15px; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  transition: color .35s var(--ease);
}
.seg__item:hover { color: var(--ink); }
.seg__item[aria-current="page"] { color: #fff; }
.seg:not(.is-ready) .seg__item[aria-current="page"] { background: var(--ink); }
html[data-view="services"] .seg:not(.is-ready) .seg__item[href$="#cases"] { background: none; color: var(--ink-2); }
html[data-view="services"] .seg:not(.is-ready) .seg__item[href$="#services"] { background: var(--ink); color: #fff; }

/* language switch */
.lang {
  display: inline-flex; align-items: center; padding: 3px; gap: 2px;
  border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-2);
  font: 800 12.5px/1 var(--font); letter-spacing: .04em;
}
.lang__item {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 30px; padding: 0 8px; border-radius: 999px;
  color: var(--muted); text-decoration: none; transition: color .2s, background-color .2s;
}
.lang__item.is-current { background: var(--ink); color: #fff; }
a.lang__item:hover { color: var(--ink); background: rgba(21, 22, 28, .06); }

@media (max-width: 760px) {
  .topbar__cta { display: none; }
  .topbar__inner { gap: 10px; }
  .seg__item { height: 36px; padding: 0 14px; font-size: 14.5px; }
}
@media (max-width: 560px) {
  .brand__text { display: none; }
  .brand__mark { width: 32px; height: 32px; }
  .topbar__inner { grid-template-columns: auto minmax(0, 1fr) auto; }
  .seg { justify-self: center; min-width: 0; max-width: 100%; }
  .seg__item { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 420px) {
  .topbar__inner { gap: 8px; }
  .seg__item { padding: 0 12px; font-size: 14px; }
  .lang__item { min-width: 30px; padding: 0 6px; }
}
@media (max-width: 359px) {
  .seg__item { padding: 0 9px; font-size: 13.5px; }
}

/* --------------------------------------------------------------- views */
.views { position: relative; display: block; }
.views:focus { outline: none; }
.view:focus { outline: none; }
.views.is-animating { overflow: hidden; }
@supports (overflow: clip) { .views.is-animating { overflow: clip; } }
.js .views:not(.is-animating) > .view { display: none; }
.js[data-view="cases"] .views:not(.is-animating) > .view--cases,
.js[data-view="services"] .views:not(.is-animating) > .view--services { display: block; }
.view--leaving { position: absolute; top: 0; left: 0; width: 100%; pointer-events: none; }
.views.is-animating .view { will-change: transform; }

/* --------------------------------------------------------------- sections */
.section { padding: clamp(56px, 8vw, 112px) 0; scroll-margin-top: var(--topbar-h); }
.sec-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.75rem, 1.15rem + 1.9vw, 2.75rem); line-height: 1.1; letter-spacing: -.025em;
  text-wrap: balance;
}
.sec-sub { margin-top: 14px; max-width: 40em; color: var(--muted); font-size: clamp(1.02rem, .97rem + .25vw, 1.15rem); text-wrap: pretty; }
.sec-count {
  display: inline-block; vertical-align: top; margin-left: 10px; transform: translateY(.1em);
  font: 800 .38em/1 var(--font); letter-spacing: .02em; color: var(--accent);
  padding: .45em .7em; border-radius: 999px; background: var(--accent-soft);
}
.sec-head { margin-bottom: clamp(28px, 4vw, 52px); }

/* --------------------------------------------------------------- hero */
.hero { position: relative; padding: clamp(28px, 4.5vw, 64px) 0 clamp(36px, 5vw, 72px); overflow-x: hidden; }
@supports (overflow: clip) { .hero { overflow-x: clip; overflow-y: visible; } }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(36px, 5vw, 76px); align-items: center; }
.hero__text { min-width: 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 24px; padding: 8px 16px 8px 12px; border-radius: 999px;
  background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
  font-weight: 700; font-size: 14.5px; line-height: 1.3; color: var(--ink);
  animation: rise .8s var(--ease) both;
}
.kicker__dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.kicker__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
.hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 1.1rem + 2.75vw, 3.4rem); line-height: 1.08; letter-spacing: -.03em;
  margin-bottom: 24px; text-wrap: balance;
  animation: rise .9s var(--ease) .08s both;
}
.hero__title strong, .hero__title em { font-style: normal; font-weight: inherit; color: var(--accent); }
.hero__bio { font-size: clamp(1.04rem, .98rem + .3vw, 1.2rem); line-height: 1.65; color: var(--ink-2); max-width: 36em; margin-bottom: 32px; text-wrap: pretty; animation: rise .9s var(--ease) .16s both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; animation: rise .9s var(--ease) .24s both; }
.scroll-hint { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 700; font-size: 14.5px; text-decoration: none; animation: rise .9s var(--ease) .32s both; }
.scroll-hint:hover { color: var(--ink); }
.scroll-hint__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.scroll-hint__icon .i { width: 18px; height: 18px; animation: bob 2.2s var(--ease) infinite; }

/* bento of photos */
.hero__media { position: relative; min-width: 0; }
.hero__media::before {
  content: ""; position: absolute; z-index: -1; inset: 6% -8% -6% 8%;
  background: radial-gradient(closest-side, rgba(43, 68, 255, .18), rgba(43, 68, 255, 0) 72%);
  filter: blur(24px); pointer-events: none;
}
.bento {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
  aspect-ratio: 1 / 1.08;
}
.bento__rest { display: contents; }
.photo {
  position: relative; margin: 0; min-width: 0; min-height: 0;
  border-radius: var(--r-l); overflow: hidden; isolation: isolate;
  background: var(--bg-deep); box-shadow: var(--sh-2);
  animation: photo-in 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 140ms);
}
.photo picture, .photo img { width: 100%; height: 100%; }
.photo img { object-fit: cover; transition: transform 1.4s var(--ease); }
.photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); pointer-events: none; }
@media (hover: hover) { .photo:hover img { transform: scale(1.06); } }
.photo__loc {
  position: absolute; left: 10px; bottom: 10px; z-index: 1; max-width: calc(100% - 20px);
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px 5px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .14);
  font-size: 12.5px; font-weight: 800; line-height: 1.2; color: var(--ink);
}
.photo__loc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo__loc .i { width: 14px; height: 14px; color: var(--accent); stroke-width: 2.4; }
.photo--empty { display: grid; place-items: center; }
.photo--empty .mark { width: 30%; height: auto; opacity: .35; }

.bento--1 .photo--main { grid-area: 1 / 1 / 7 / 4; }
.bento--2 .photo--main { grid-area: 1 / 1 / 7 / 3; }
.bento--2 .photo--r1 { grid-area: 2 / 3 / 6 / 4; }
.bento--3 .photo--main { grid-area: 1 / 1 / 7 / 3; }
.bento--3 .photo--r1 { grid-area: 1 / 3 / 4 / 4; }
.bento--3 .photo--r2 { grid-area: 4 / 3 / 7 / 4; }
.bento--4 .photo--main { grid-area: 1 / 1 / 7 / 3; }
.bento--4 .photo--r1 { grid-area: 1 / 3 / 3 / 4; }
.bento--4 .photo--r2 { grid-area: 3 / 3 / 5 / 4; }
.bento--4 .photo--r3 { grid-area: 5 / 3 / 7 / 4; }
.bento--5 .photo--main { grid-area: 1 / 1 / 5 / 3; }
.bento--5 .photo--r1 { grid-area: 1 / 3 / 4 / 4; }
.bento--5 .photo--r2 { grid-area: 4 / 3 / 7 / 4; }
.bento--5 .photo--r3 { grid-area: 5 / 1 / 7 / 2; }
.bento--5 .photo--r4 { grid-area: 5 / 2 / 7 / 3; }

@media (max-width: 900px) {
  .hero { padding-top: 14px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero__media { order: -1; }
  .hero__media::before { inset: 10% 0 0 0; }
  .bento { display: block; aspect-ratio: auto; }
  .photo--main { aspect-ratio: 10 / 9; }
  .bento__rest {
    display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 10px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 8px;
    scroll-padding-inline: var(--gutter);
  }
  .bento__rest::-webkit-scrollbar { display: none; }
  .bento__rest .photo { flex: 0 0 36%; aspect-ratio: 4 / 5; scroll-snap-align: start; border-radius: var(--r-m); }
  .hero__actions { margin-bottom: 28px; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .photo--main { aspect-ratio: 5 / 4; }
  .bento__rest .photo { flex-basis: 23%; }
}

/* --------------------------------------------------------------- intro + offer */
.intro { padding-top: clamp(40px, 6vw, 88px); }
.intro__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(20px, 5vw, 80px); align-items: start; }
.intro__text p { font-size: clamp(1.04rem, .99rem + .25vw, 1.17rem); line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.intro__text p + p { margin-top: 1em; }
@media (max-width: 860px) { .intro__grid { grid-template-columns: minmax(0, 1fr); } }

.offer {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center;
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #3350FF 0%, var(--accent) 45%, #2236E8 100%);
  color: #fff; box-shadow: 0 24px 60px rgba(43, 68, 255, .28);
}
.offer__glow, .case-cta__glow, .contact-panel__glow {
  position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 260px at 92% -10%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 70%),
    radial-gradient(420px 300px at -6% 120%, rgba(140, 160, 255, .55), rgba(140, 160, 255, 0) 70%);
}
.offer__badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500; letter-spacing: -.02em;
  font-size: clamp(1.35rem, 1.05rem + 1.1vw, 2rem); line-height: 1.15; color: #fff;
  margin-bottom: 12px;
}
.offer__pulse { position: relative; width: 12px; height: 12px; border-radius: 50%; background: #7CF29A; flex: none; box-shadow: 0 0 0 4px rgba(124, 242, 154, .25); }
.offer__pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #7CF29A; opacity: 0; animation: ping 2.2s var(--ease) infinite; }
.offer__lead { font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); line-height: 1.6; color: rgba(255, 255, 255, .88); max-width: 46em; }
@media (max-width: 760px) {
  .offer { grid-template-columns: minmax(0, 1fr); }
  .offer__btn { width: 100%; }
}

/* --------------------------------------------------------------- case grid */
.cases-sec { padding-top: clamp(24px, 4vw, 56px); }
.case-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr;
  gap: clamp(16px, 2.2vw, 28px);
}
.case-grid > li { display: flex; min-width: 0; }
@media (max-width: 860px) { .case-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; } }

.card {
  position: relative; display: flex; flex-direction: column; width: 100%; min-width: 0;
  padding: 12px; border-radius: 28px;
  background: var(--surface); color: inherit; text-decoration: none;
  box-shadow: var(--sh-1), inset 0 0 0 1px rgba(21, 22, 28, .04);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 28px; }
.card__media {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  aspect-ratio: 16 / 10; border-radius: 18px; background: var(--bg-deep);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(21, 22, 28, .06); pointer-events: none; }
.card__metric { position: absolute; left: 12px; bottom: 12px; z-index: 1; max-width: calc(100% - 24px); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 10px 6px; }
.card__tag {
  align-self: flex-start; margin-bottom: 10px;
  font-size: 12px; line-height: 1.3; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent-ink);
}
.card__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.2rem, 1.02rem + .55vw, 1.5rem); line-height: 1.18; letter-spacing: -.02em;
  margin-bottom: 14px;
}
.card__points { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.card__points li { position: relative; padding-left: 22px; }
.card__points li::before { content: ""; position: absolute; left: 3px; top: .58em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.card .author-badge { margin: -4px 0 18px; }
.card__cta {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-weight: 800; font-size: 15.5px; color: var(--ink);
}
.card__arrow {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: var(--bg); color: var(--ink);
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .5s var(--ease), box-shadow .35s;
}
.card__arrow .i { transition: transform .5s var(--ease); }
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); box-shadow: var(--sh-3), inset 0 0 0 1px rgba(21, 22, 28, .04); }
  .card:hover .card__media img { transform: scale(1.05); }
  .card:hover .card__arrow { background: var(--accent); color: #fff; box-shadow: var(--sh-accent); }
  .card:hover .card__arrow .i { transform: translateX(3px); }
  .card:hover .card__cta { color: var(--accent-ink); }
}
.card:active { transform: translateY(-2px); }
@media (hover: none), (pointer: coarse) {
  .card__arrow { background: var(--accent); color: #fff; box-shadow: var(--sh-accent); }
  .card__cta { color: var(--accent-ink); }
}
.card:focus-visible .card__arrow { background: var(--accent); color: #fff; }

.img-fallback { display: grid; place-items: center; width: 100%; height: 100%; background: var(--bg-deep); }
.img-fallback .mark { width: 22%; height: auto; opacity: .3; }

/* --------------------------------------------------------------- contact section */
.contact-sec { padding-top: 0; }
.contact-panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(20px, 3.6vw, 46px);
  border-radius: var(--r-xl); background: var(--ink); color: rgba(255, 255, 255, .78);
  box-shadow: var(--sh-3);
}
.contact-panel__glow {
  background:
    radial-gradient(560px 360px at 0% 0%, rgba(43, 68, 255, .55), rgba(43, 68, 255, 0) 70%),
    radial-gradient(420px 320px at 100% 100%, rgba(43, 68, 255, .3), rgba(43, 68, 255, 0) 70%);
}
.contact-panel .sec-title { color: #fff; }
.contact-panel__lead { margin-top: 12px; font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); line-height: 1.55; text-wrap: pretty; }
.channel-chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.channel-chips li {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  color: #fff; font-size: 13.5px; font-weight: 700;
}
.channel-chips .i { width: 16px; height: 16px; color: #A9B5FF; }
.contact-panel__form { background: #fff; border-radius: 26px; padding: clamp(18px, 2.4vw, 26px); color: var(--ink-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
@media (max-width: 900px) { .contact-panel { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .contact-panel { padding: 22px 14px 14px; border-radius: 26px; }
  .contact-panel__text { padding: 4px 6px 0; }
  .contact-panel__form { padding: 20px 16px; border-radius: 20px; }
}

/* --------------------------------------------------------------- form */
.cform { display: grid; gap: 12px; }
.field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.field label { font-weight: 800; font-size: 14px; line-height: 1.35; color: var(--ink); }
.field__opt { color: var(--muted); font-weight: 600; }
.field input, .field textarea, .select select {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff;
  color: var(--ink); font: 500 16px/1.4 var(--font);
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #A39E94; opacity: 1; }
.field input:hover, .field textarea:hover, .select select:hover { border-color: rgba(21, 22, 28, .28); }
.field input:focus, .field textarea:focus, .select select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.is-invalid input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(194, 50, 27, .1); }
.field__err { color: var(--danger); font-size: 13.5px; font-weight: 700; line-height: 1.4; animation: rise .3s var(--ease) both; }
.field-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; }
@media (max-width: 520px) { .field-row { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.select { position: relative; }
.select select { padding-left: 46px; padding-right: 40px; cursor: pointer; font-weight: 700; text-overflow: ellipsis; }
.select__icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--accent); }
.select__icon > span { display: block; }
.select__icon .i { width: 20px; height: 20px; }
.select__chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; pointer-events: none; color: var(--muted); }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cform__submit { --h: 56px; margin-top: 4px; }
.cform__submit .spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
.cform.is-sending .cform__submit { pointer-events: none; }
.cform.is-sending .cform__submit .spinner { display: inline-block; }
.cform.is-sending .cform__submit .i { display: none; }
.cform__consent { font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.cform__status:empty { display: none; }
.cform__status { font-size: 14.5px; font-weight: 700; line-height: 1.45; }
.cform__status.is-error {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 14px; background: var(--danger-soft); color: var(--danger);
  animation: shake .5s var(--ease);
}
.cform-done { display: grid; justify-items: center; gap: 14px; padding: 28px 8px; text-align: center; outline: none; }
.cform-done__icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); animation: pop .6s var(--ease) both; }
.cform-done__icon .i { width: 32px; height: 32px; stroke-width: 2.6; }
.cform-done__text { font-size: 1.12rem; font-weight: 700; color: var(--ink); max-width: 26em; }

/* --------------------------------------------------------------- services view */
.subbar {
  position: sticky; top: var(--topbar-h); z-index: 55;
  background: rgba(246, 242, 234, .86);
  -webkit-backdrop-filter: saturate(170%) blur(16px); backdrop-filter: saturate(170%) blur(16px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(21, 22, 28, .05);
}
.subbar__inner {
  height: var(--subbar-h);
  max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.subbar__arrow {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none; padding: 0;
  border: 0; border-radius: 50%; background: #fff; color: var(--ink);
  box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
  transition: transform .3s var(--ease), background-color .2s, color .2s, opacity .3s, box-shadow .3s;
}
.subbar__arrow:hover:not(:disabled) { background: var(--ink); color: #fff; transform: scale(1.06); }
.subbar__arrow:disabled { opacity: .35; cursor: default; box-shadow: inset 0 0 0 1px var(--line); }
.tabs {
  position: relative; isolation: isolate; min-width: 0;
  display: inline-flex; align-items: center; padding: 4px; border-radius: 999px;
  background: rgba(21, 22, 28, .06); box-shadow: inset 0 0 0 1px rgba(21, 22, 28, .04);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__ind {
  position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 0; width: 0;
  border-radius: 999px; background: #fff; box-shadow: var(--sh-2);
  transition: transform .55s var(--ease), width .55s var(--ease); opacity: 0;
}
.tabs.is-ready .tabs__ind { opacity: 1; }
.tabs__tab {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 42px; padding: 0 20px; border-radius: 999px;
  font-weight: 800; font-size: 15px; color: var(--muted); text-decoration: none; white-space: nowrap;
  transition: color .3s var(--ease);
}
.tabs__tab .i { width: 18px; height: 18px; transition: color .3s; }
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-current="page"] { color: var(--ink); }
.tabs__tab[aria-current="page"] .i { color: var(--accent); }
.tabs:not(.is-ready) .tabs__tab[aria-current="page"] { background: #fff; box-shadow: var(--sh-1); }
@media (max-width: 480px) {
  .subbar__inner { gap: 8px; }
  .subbar__arrow { width: 38px; height: 38px; }
  .tabs__tab { height: 40px; padding: 0 14px; font-size: 14.5px; gap: 6px; }
}
@media (max-width: 374px) { .tabs__tab .i { display: none; } }

.svc-intro { padding-top: clamp(28px, 4vw, 52px); }
.svc-intro__inner { padding-bottom: clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.svc-intro .sec-title { font-size: clamp(1.3rem, 1.08rem + .85vw, 1.8rem); font-weight: 500; }
.svc-intro .sec-sub { margin-top: 8px; font-size: clamp(.98rem, .95rem + .15vw, 1.06rem); }
.svc-viewport { position: relative; overflow: hidden; touch-action: pan-y; transition: height .6s var(--ease); }
.svc-track {
  display: flex; align-items: flex-start;
  transform: translate3d(calc(var(--svc-i, 0) * -100%), 0, 0);
  transition: transform .7s var(--ease-io);
  will-change: transform;
}
.svc-viewport.is-dragging .svc-track { transition: none; }
.svc-viewport.is-dragging { -webkit-user-select: none; user-select: none; }
.svc { flex: 0 0 100%; min-width: 0; padding: clamp(28px, 4vw, 48px) 0 clamp(64px, 8vw, 112px); }
.svc.is-off { visibility: hidden; }
.svc__head { max-width: 860px; }
.svc__kicker {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 18px; font-weight: 800; font-size: 14px; letter-spacing: .02em; color: var(--ink);
}
.svc__kicker-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--accent); color: #fff; box-shadow: var(--sh-accent); }
.svc__kicker-icon .i { width: 19px; height: 19px; }
.svc__count { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.svc__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.8rem, 1.1rem + 2.4vw, 3.15rem); line-height: 1.08; letter-spacing: -.03em;
  margin-bottom: 20px; text-wrap: balance;
}
.svc__lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.26rem); line-height: 1.6; color: var(--ink-2); max-width: 44em; text-wrap: pretty; }

.stats {
  list-style: none; padding: 0; margin: clamp(28px, 4vw, 44px) 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px;
}
.stat {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: 22px 24px 24px; border-radius: 22px; background: #fff;
  box-shadow: var(--sh-1), inset 0 0 0 1px rgba(21, 22, 28, .03);
}
.stat__value {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -.03em;
  font-size: clamp(1.7rem, 1.25rem + 1.2vw, 2.35rem); line-height: 1.05; color: var(--accent);
  overflow-wrap: anywhere;
}
.stat__label { font-size: 14.5px; line-height: 1.45; font-weight: 600; color: var(--muted); }
@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 16px 16px 18px; border-radius: 18px; gap: 8px; }
  .stat__value { font-size: 1.32rem; overflow-wrap: normal; }
  .stat__label { font-size: 13px; }
}

.blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.blocks > .block:last-child:nth-child(odd) { grid-column: 1 / -1; }
.block {
  padding: clamp(22px, 3vw, 32px); border-radius: var(--r-l); background: #fff;
  box-shadow: var(--sh-1), inset 0 0 0 1px rgba(21, 22, 28, .03);
}
.block__title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.block__num { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 11px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.checklist li { position: relative; padding-left: 32px; line-height: 1.55; font-size: 15.5px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B44FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@media (max-width: 760px) { .blocks { grid-template-columns: minmax(0, 1fr); } }
.svc__note {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 18px; padding: 18px 22px; border-radius: var(--r-m);
  background: var(--bg-deep); color: var(--ink-2); font-size: 15.5px; line-height: 1.6;
}
.svc__note .i { margin-top: 2px; color: var(--accent); }
.related { margin-top: clamp(36px, 5vw, 56px); }
.related__title { font-size: 1.05rem; font-weight: 800; margin-bottom: 16px; }

/* --------------------------------------------------------------- service gallery */
.svc-media { margin-top: clamp(32px, 5vw, 56px); }
.svc-media__track {
  display: flex; align-items: flex-start; gap: 16px;
  overflow-x: auto; padding: 4px 4px 14px; margin: 0 -4px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.svc-media__item { position: relative; flex: 0 0 auto; margin: 0; scroll-snap-align: start; max-width: min(560px, 86vw); }
.svc-media__item img, .svc-media__item video {
  height: clamp(240px, 36vw, 340px); width: auto; max-width: min(560px, 86vw);
  display: block; border-radius: 18px; background: var(--bg-deep); box-shadow: var(--sh-2);
}
.svc-media__badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  background: rgba(21, 22, 28, .82); color: #fff; font-weight: 800; font-size: 13px;
  padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(4px);
}
.svc-media__cap { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--muted); max-width: 420px; }
.related__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.related__grid--n1 { grid-template-columns: minmax(0, 560px); }
.related__grid--n2, .related__grid--n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .related__grid, .related__grid--n1 { grid-template-columns: minmax(0, 1fr); } }
.mini {
  display: flex; align-items: center; gap: 14px; height: 100%;
  padding: 10px 14px 10px 10px; border-radius: 20px; background: #fff;
  color: inherit; text-decoration: none; box-shadow: var(--sh-1), inset 0 0 0 1px rgba(21, 22, 28, .03);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.mini__img { flex: none; width: 112px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--bg-deep); }
.mini__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mini__text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.mini__tag { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini__title { font-weight: 800; color: var(--ink); line-height: 1.25; font-size: 15px; }
.mini__arrow { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--bg); transition: background-color .3s, color .3s; }
.mini__arrow .i { width: 17px; height: 17px; transition: transform .4s var(--ease); }
@media (hover: hover) {
  .mini:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
  .mini:hover .mini__img img { transform: scale(1.06); }
  .mini:hover .mini__arrow { background: var(--accent); color: #fff; }
  .mini:hover .mini__arrow .i { transform: translateX(2px); }
}
@media (hover: none), (pointer: coarse) { .mini__arrow { background: var(--accent); color: #fff; } }
.svc__cta { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; margin-top: clamp(40px, 6vw, 64px); }
.svc__cta-lead { margin: 0; font-weight: 800; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: var(--ink); letter-spacing: -.01em; }
@media (max-width: 520px) { .svc__cta .btn { width: 100%; padding: 0 20px; } }

/* --------------------------------------------------------------- case page */
.case-head {
  max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) var(--gutter) 0;
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px; border-radius: 999px;
  background: rgba(21, 22, 28, .05); color: var(--ink); font-weight: 700; font-size: 14.5px; text-decoration: none;
  transition: background-color .2s;
}
.back-link .i { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.back-link:hover { background: rgba(21, 22, 28, .09); }
.back-link:hover .i { transform: translateX(-3px); }
.case-head__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(24px, 3vw, 36px); }
.case-title {
  margin-top: 18px;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.75rem, 1.05rem + 2.3vw, 3rem); line-height: 1.1; letter-spacing: -.03em;
  text-wrap: balance;
}
.case-title__rest { color: var(--ink-2); font-weight: 500; }
.case-subtitle { margin-top: 18px; max-width: 46em; font-size: clamp(1.06rem, 1rem + .35vw, 1.28rem); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }

.case-cover {
  --fig-maxh: min(76vh, 820px);
  max-width: calc(var(--wide) + 2 * var(--gutter)); margin: clamp(26px, 4vw, 44px) auto 0; padding: 0 var(--gutter);
}
.case-cover .case-cover__frame { border-radius: var(--r-xl); box-shadow: var(--sh-3); }
.case-cover__frame img { width: 100%; }
.case-cover figcaption { max-width: 62ch; margin: 14px auto 0; text-align: center; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* prose: text at a readable measure, media wider */
.prose {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [wide-start] minmax(0, calc((var(--wide) - var(--measure)) / 2))
    [content-start] min(var(--measure), 100% - 2 * var(--gutter))
    [content-end] minmax(0, calc((var(--wide) - var(--measure)) / 2))
    [wide-end] minmax(var(--gutter), 1fr) [full-end];
  padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 4vw, 48px);
  font-size: 17.5px; line-height: 1.75; color: var(--ink-2);
}
.prose > * { grid-column: content; min-width: 0; }
.prose > :is(figure, .glance, .table-wrap, .gallery, .media-row, details, .fig-note) { grid-column: wide; }
.prose h2 {
  margin: 1.9em 0 .7em; scroll-margin-top: calc(var(--topbar-h) + 24px);
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.45rem, 1.12rem + 1.05vw, 2.05rem); line-height: 1.16; letter-spacing: -.025em; text-wrap: balance;
}
.prose h3 { margin: 1.9em 0 .55em; font-size: clamp(1.14rem, 1.05rem + .35vw, 1.34rem); line-height: 1.3; font-weight: 800; letter-spacing: -.01em; scroll-margin-top: calc(var(--topbar-h) + 24px); }
.prose h4 { margin: 1.6em 0 .4em; font-size: 1.05rem; font-weight: 800; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.35em; }
.prose li { margin: .4em 0; padding-left: .2em; }
.prose li > ul, .prose li > ol { margin: .3em 0 .5em; }
.prose ul > li::marker { color: var(--accent); }
.prose ol > li::marker { color: var(--accent); font-weight: 800; }
.prose strong { color: var(--ink); font-weight: 800; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgba(43, 68, 255, .35); transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: currentColor; }
.prose blockquote { margin: 1.6em 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--accent); color: var(--ink); font-size: 1.06em; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 3em 0; }
.prose hr + h2 { margin-top: 0; }
.prose code { font: 600 .88em/1.4 var(--mono); background: rgba(21, 22, 28, .06); padding: .14em .4em; border-radius: 6px; }
.prose pre { overflow-x: auto; margin: 0 0 1.4em; padding: 18px 20px; border-radius: 16px; background: var(--ink); color: #E9E8F2; font-size: 14px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; font-weight: 500; }
.prose > p:has(> em:only-child) { color: var(--muted); font-size: .92em; }
.link-video { display: inline-flex; align-items: center; gap: .35em; }
.link-video .i { width: 1em; height: 1em; }

/* figures */
.fig { margin: 2.2em 0; --fig-maxh: min(78vh, 780px); }
.fig__zoom {
  position: relative; display: block; overflow: hidden; margin: 0 auto;
  width: min(100%, var(--w, 100%), calc(var(--fig-maxh) * var(--ar, 1.6)));
  border-radius: var(--r-l); background: #fff; box-shadow: var(--sh-2);
  cursor: zoom-in;
}
.fig__zoom img { width: 100%; transition: transform .7s var(--ease); }
.fig__zoom::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(21, 22, 28, .66) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0; transform: scale(.85); transition: opacity .3s, transform .3s var(--ease);
}
@media (hover: hover) {
  .fig__zoom:hover::after { opacity: 1; transform: none; }
  .fig__zoom:hover img { transform: scale(1.012); }
}
.fig figcaption, .fig-note {
  max-width: 64ch; margin: 14px auto 0; text-align: center;
  color: var(--muted); font-size: 14.5px; line-height: 1.55; text-wrap: pretty;
}
.fig-note { margin-top: -1.2em; margin-bottom: 2.2em; }
.inline-zoom { display: inline-block; border-radius: 12px; overflow: hidden; }
.inline-zoom img { max-height: 420px; width: auto; }

/* rows of media: equal heights, natural aspect ratios */
.media-row {
  --row-maxh: 520px;
  display: flex; gap: 16px; align-items: flex-start;
  max-width: min(100%, calc(var(--row-ar) * var(--row-maxh)));
  margin: 2.2em auto;
}
.media-row > .fig { flex: var(--ar) 1 0%; min-width: 0; margin: 0; }
.prose > .media-row + .media-row, .prose > .media-row + .fig, .prose > .fig + .media-row { margin-top: calc(30px - 2.2em); }
.media-row > .fig .fig__zoom, .media-row > .fig .video-box { width: 100%; }
.media-row figcaption { font-size: 13.5px; margin-top: 10px; }
@media (max-width: 640px) {
  .media-row { flex-direction: column; gap: 22px; max-width: 100%; }
  .media-row > .fig { flex: none; width: 100%; }
  .media-row > .fig .fig__zoom, .media-row > .fig .video-box { width: min(100%, calc(var(--fig-maxh) * var(--ar))); }
}

/* video */
.video-box {
  position: relative; overflow: hidden; margin: 0 auto;
  width: min(100%, calc(var(--fig-maxh) * var(--ar)));
  aspect-ratio: var(--ar);
  border-radius: var(--r-l); background: #0D0E12; box-shadow: var(--sh-2);
}
.video-box video { width: 100%; height: 100%; object-fit: contain; background: #0D0E12; }

/* gallery (table of images) */
.gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 14px; margin: 2.2em 0; }
.gallery__item { margin: 0; min-width: 0; }
.gallery__item .fig__zoom { width: 100%; border-radius: 16px; aspect-ratio: 4 / 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item figcaption { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.gallery__label { display: block; font-weight: 800; color: var(--ink); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 680px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* "at a glance" card grid */
.glance {
  margin: 0 0 2.6em; padding: clamp(20px, 3vw, 36px);
  border-radius: var(--r-xl); background: #fff; box-shadow: var(--sh-2);
}
.prose .glance__title {
  display: flex; align-items: center; gap: 12px; margin: 0 0 22px;
  font-size: clamp(1.2rem, 1.05rem + .55vw, 1.55rem);
}
.glance__dot { width: 12px; height: 12px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }
.glance__grid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.glance__item { min-width: 0; padding: 18px 20px; border-radius: 18px; background: var(--surface-warm); box-shadow: inset 0 0 0 1px var(--line); }
.glance__item--wide { grid-column: 1 / -1; }
.glance dt { margin: 0 0 6px; font-size: 12px; line-height: 1.4; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-ink); }
.glance dt em { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--muted); }
.glance dd { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 680px) { .glance__grid { grid-template-columns: minmax(0, 1fr); } .glance { padding: 18px 14px; border-radius: 24px; } .glance__item { padding: 16px; } }

/* tables */
.table-wrap {
  margin: 2em 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: 20px; background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
  scrollbar-width: thin;
}
.table-wrap:focus-visible { outline-offset: 2px; }
.table-wrap.can-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), rgba(0, 0, 0, .15)); mask-image: linear-gradient(to right, #000 calc(100% - 56px), rgba(0, 0, 0, .15)); }
.table-wrap.can-left { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 56px), rgba(0, 0, 0, .15)); mask-image: linear-gradient(to left, #000 calc(100% - 56px), rgba(0, 0, 0, .15)); }
.table-wrap.can-left.can-right { -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, .15), #000 56px, #000 calc(100% - 56px), rgba(0, 0, 0, .15)); mask-image: linear-gradient(to right, rgba(0, 0, 0, .15), #000 56px, #000 calc(100% - 56px), rgba(0, 0, 0, .15)); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
@media (max-width: 600px) {
  .table-wrap table { font-size: 14px; }
  .table-wrap th, .table-wrap td { padding: 12px 13px; }
}
.table-wrap th { text-align: left; vertical-align: bottom; padding: 15px 18px; background: var(--surface-warm); color: var(--ink); font-weight: 800; font-size: 13.5px; border-bottom: 1px solid var(--line-2); }
.table-wrap td { padding: 14px 18px; vertical-align: top; border-top: 1px solid var(--line); }
.table-wrap tr:first-child td { border-top: 0; }
.table-wrap tbody tr:nth-child(even) td { background: rgba(246, 242, 234, .45); }
.table-wrap td:first-child { color: var(--ink); }

/* case table of contents: a sticky sidebar on wide screens, a floating button + popover below that */
.case-toc__title { margin: 0 0 10px 14px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.case-toc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.case-toc__link {
  display: block; padding: 8px 12px 8px 14px; border-radius: 10px;
  color: var(--ink-2); font-size: 14.5px; font-weight: 600; line-height: 1.35; text-decoration: none;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.case-toc__link:hover { background: rgba(21, 22, 28, .05); color: var(--ink); }
.case-toc__link.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 800; box-shadow: inset 3px 0 0 var(--accent); }
.case-toc__link--dev { margin-top: 6px; color: var(--muted); }
.case-toc__toggle { display: none; }
.dev { scroll-margin-top: calc(var(--topbar-h) + 24px); }

@media (min-width: 1200px) {
  .case-layout.has-toc {
    display: grid; grid-template-columns: 236px minmax(0, 1fr); column-gap: 24px;
    max-width: calc(var(--wide) + 2 * var(--gutter) + 260px); margin: 0 auto; padding-left: var(--gutter);
  }
  .case-toc {
    position: sticky; top: calc(var(--topbar-h) + 20px); align-self: start;
    margin-top: clamp(36px, 5vw, 64px); max-height: calc(100vh - var(--topbar-h) - 40px); overflow-y: auto;
    padding: 16px 10px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
    scrollbar-width: thin;
  }
}
@media (max-width: 1199.98px) {
  .case-toc { position: fixed; z-index: 69; left: max(16px, env(safe-area-inset-left)); bottom: max(20px, env(safe-area-inset-bottom)); }
  .case-toc__toggle {
    display: inline-flex; align-items: center; gap: 9px; height: 58px; padding: 0 22px 0 18px; border: 0; border-radius: 999px;
    background: var(--ink); color: #fff; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer;
    box-shadow: 0 12px 30px rgba(21, 22, 28, .28), inset 0 1px 0 rgba(255, 255, 255, .12);
    -webkit-tap-highlight-color: transparent; transition: transform .3s var(--ease);
  }
  .case-toc__toggle .i { width: 20px; height: 20px; }
  .case-toc__toggle:active { transform: scale(.97); }
  .case-toc__panel {
    position: absolute; left: 0; bottom: calc(100% + 10px);
    width: min(340px, calc(100vw - 32px)); max-height: min(62vh, 520px); overflow-y: auto;
    padding: 14px 10px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-3), inset 0 0 0 1px var(--line);
    opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: bottom left;
    transition: opacity .22s, transform .3s var(--ease), visibility 0s .3s;
  }
  .case-toc.is-open .case-toc__panel { opacity: 1; visibility: visible; transform: none; transition: opacity .22s, transform .3s var(--ease); }
  html.is-locked .case-toc { display: none; }
}
@media (max-width: 760px) {
  .case-toc { left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .case-toc__toggle { height: 54px; padding: 0 18px 0 16px; font-size: 14.5px; }
}

/* developer details */
.dev { margin: 2.6em 0; border-radius: var(--r-xl); background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.dev__summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: var(--r-xl);
  font-weight: 800; font-size: 1.05rem; color: var(--ink); -webkit-tap-highlight-color: transparent;
}
.dev__summary::-webkit-details-marker { display: none; }
.dev__summary::marker { content: ""; }
.dev__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; background: var(--ink); color: #fff; }
.dev__label { flex: 1; min-width: 0; }
.dev__chev { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--bg); transition: transform .45s var(--ease), background-color .2s, color .2s; }
.dev__summary:hover .dev__chev { background: var(--accent-soft); color: var(--accent); }
.dev[open] .dev__chev { transform: rotate(180deg); }
.dev[open] .dev__summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.dev__body { padding: 8px clamp(16px, 4vw, 48px) clamp(20px, 3vw, 40px); border-top: 1px solid var(--line); }
.dev[open] .dev__body { animation: rise .5s var(--ease) both; }
.dev__body > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.dev__body > :is(figure, .table-wrap, .gallery, .media-row, .glance) { max-width: none; }
.dev__body > h2:first-child { margin-top: 1.2em; }

/* call to action */
.case-cta { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: clamp(24px, 4vw, 48px) auto; padding: 0 var(--gutter); }
.case-cta__panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px 40px; align-items: center;
  padding: clamp(28px, 4vw, 52px); border-radius: var(--r-xl);
  background: linear-gradient(135deg, #3350FF 0%, var(--accent) 45%, #2236E8 100%);
  color: rgba(255, 255, 255, .88); box-shadow: 0 24px 60px rgba(43, 68, 255, .28);
}
.case-cta__title { color: #fff; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.35rem, 1.05rem + 1.1vw, 2rem); letter-spacing: -.02em; margin-bottom: 10px; }
.case-cta__text p { font-size: clamp(1rem, .97rem + .2vw, 1.12rem); line-height: 1.6; max-width: 40em; }
@media (max-width: 760px) { .case-cta__panel { grid-template-columns: minmax(0, 1fr); } .case-cta__panel .btn { width: 100%; } }

.case-nav {
  max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto clamp(56px, 8vw, 96px); padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.nav-card {
  display: flex; align-items: center; gap: 16px; min-width: 0;
  padding: 12px; border-radius: 24px; background: #fff; color: inherit; text-decoration: none;
  box-shadow: var(--sh-1), inset 0 0 0 1px rgba(21, 22, 28, .03);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.nav-card--next { flex-direction: row-reverse; text-align: right; }
.nav-card__img { flex: none; width: 168px; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--bg-deep); }
.nav-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.nav-card__text { display: grid; gap: 4px; min-width: 0; flex: 1; }
.nav-card__dir { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.nav-card--next .nav-card__dir { justify-content: flex-end; }
.nav-card__dir .i { width: 16px; height: 16px; stroke-width: 2.4; transition: transform .4s var(--ease); }
.nav-card__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); line-height: 1.2; color: var(--ink); letter-spacing: -.015em; }
.nav-card__tag { font-size: 13px; font-weight: 600; color: var(--muted); }
@media (hover: hover) {
  .nav-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
  .nav-card:hover .nav-card__img img { transform: scale(1.06); }
  .nav-card--prev:hover .nav-card__dir .i { transform: translateX(-3px); }
  .nav-card--next:hover .nav-card__dir .i { transform: translateX(3px); }
}
@media (max-width: 700px) {
  .case-nav { grid-template-columns: minmax(0, 1fr); }
  .nav-card__img { width: 104px; }
}

/* --------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 52px; color: var(--muted); font-size: 14.5px; }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: start; }
.footer__text { margin-top: 12px; max-width: 40em; line-height: 1.6; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; padding-top: 6px; }
.footer__nav a { color: var(--ink); font-weight: 700; text-decoration: none; }
.footer__nav a:hover { color: var(--accent-ink); }
.footer__note { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; }
@media (max-width: 760px) {
  .footer { padding-bottom: 112px; }
  .footer__inner { grid-template-columns: minmax(0, 1fr); }
  .footer__nav { justify-content: flex-start; }
}

/* --------------------------------------------------------------- floating button */
.fab {
  position: fixed; z-index: 70;
  right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 24px 0 20px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 15.5px; text-decoration: none;
  box-shadow: 0 12px 32px rgba(43, 68, 255, .38), 0 2px 6px rgba(21, 22, 28, .12), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s;
  animation: fab-in .8s var(--ease) .6s both;
  -webkit-tap-highlight-color: transparent;
}
.fab .i { width: 22px; height: 22px; }
.fab:hover { background: var(--accent-2); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(43, 68, 255, .45), 0 2px 6px rgba(21, 22, 28, .12); }
.fab:active { transform: translateY(0) scale(.97); }
html.is-locked .fab { margin-right: var(--sbw, 0px); }
@media (max-width: 760px) {
  .fab { width: 58px; padding: 0; justify-content: center; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .fab__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fab .i { width: 24px; height: 24px; }
}

/* --------------------------------------------------------------- modal */
html.is-locked, html.is-locked body { overflow: hidden; }
html.is-locked body { padding-right: var(--sbw, 0px); }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.modal__backdrop {
  position: absolute; inset: 0; background: rgba(13, 14, 20, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.modal__dialog {
  position: relative; width: min(100%, 600px);
  max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  overflow: auto; overscroll-behavior: contain;
  padding: clamp(24px, 4vw, 38px); border-radius: 30px; background: var(--surface);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(18px) scale(.98);
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.modal__dialog:focus { outline: none; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: var(--bg); color: var(--ink); transition: background-color .2s, transform .3s var(--ease);
}
.modal__close:hover { background: var(--bg-deep); transform: rotate(90deg); }
.modal__title { margin: 0 52px 10px 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 1.15rem + .9vw, 1.9rem); letter-spacing: -.025em; line-height: 1.15; }
.modal__text { margin-bottom: 24px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
@media (max-width: 600px) {
  .modal { padding: 0; place-items: end stretch; }
  .modal__dialog {
    width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 28px 28px 0 0;
    padding: 26px 18px max(22px, env(safe-area-inset-bottom));
    transform: translateY(40px);
  }
  .modal__dialog::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 99px; background: var(--line-2); margin: -12px auto 16px; }
  .modal__close { top: 14px; right: 12px; }
}

/* --------------------------------------------------------------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; }
.lightbox__backdrop {
  position: absolute; inset: 0; background: rgba(10, 11, 16, .96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.lightbox.is-open .lightbox__backdrop { opacity: 1; }
.lightbox__stage {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 100%; height: 100%; padding: 64px 72px 24px; pointer-events: none;
  touch-action: pan-y pinch-zoom;
}
.lightbox__figure {
  margin: 0; display: grid; justify-items: center; gap: 14px; max-width: 100%;
  opacity: 0; transform: scale(.97); transition: opacity .3s var(--ease), transform .4s var(--ease);
  pointer-events: auto;
}
.lightbox.is-open .lightbox__figure { opacity: 1; transform: none; }
.lightbox__img, .lightbox video {
  max-width: min(100%, 1800px); max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px);
  width: auto; height: auto; border-radius: 12px; background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
  transition: opacity .25s;
}
.lightbox video { background: #000; }
.lightbox__img.is-loading { opacity: .25; }
.lightbox__cap { max-width: 80ch; padding: 0 12px; text-align: center; color: rgba(255, 255, 255, .82); font-size: 14.5px; line-height: 1.5; }
.lightbox__cap:empty { display: none; }
.lightbox__count { position: absolute; z-index: 2; top: 24px; left: 24px; color: rgba(255, 255, 255, .72); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute; z-index: 2; display: grid; place-items: center;
  width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .2s, transform .3s var(--ease);
}
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-btn:focus-visible { outline-color: #fff; }
.lb-btn .i { width: 24px; height: 24px; }
.lb-btn--close { top: 14px; right: 14px; }
.lb-btn--prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-btn--next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-btn--prev:hover { transform: translateY(-50%) translateX(-2px); }
.lb-btn--next:hover { transform: translateY(-50%) translateX(2px); }
@media (max-width: 700px) {
  .lightbox__stage { padding: 64px 10px 88px; }
  .lb-btn--prev, .lb-btn--next { top: auto; bottom: 18px; transform: none; }
  .lb-btn--prev:hover, .lb-btn--next:hover { transform: none; }
  .lb-btn--prev { left: calc(50% - 62px); }
  .lb-btn--next { right: calc(50% - 62px); }
}

/* --------------------------------------------------------------- language picker (site/index.html) */
.picker { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.picker__box { text-align: center; display: grid; justify-items: center; gap: 14px; }
.picker__mark { width: 64px; height: 64px; color: var(--accent); margin-bottom: 6px; }
.picker__brand { font-weight: 800; color: var(--ink); }
.picker__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 1rem + 1.5vw, 2rem); letter-spacing: -.02em; }
.picker__sep { color: var(--muted); }
.picker__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 14px; }

/* --------------------------------------------------------------- reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--rd, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------- keyframes */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes photo-in { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fab-in { from { opacity: 0; transform: translateY(24px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { opacity: .7; transform: scale(.6); } 80%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* --------------------------------------------------------------- no-JS fallbacks */
html:not(.js) .svc-track { display: block; transform: none; }
html:not(.js) .subbar__arrow { display: none; }
html:not(.js) .seg__item[aria-current="page"], html:not(.js) .tabs__tab[aria-current="page"] { background: var(--ink); color: #fff; }

/* --------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .topbar, .fab, .modal, .lightbox, .subbar, .case-nav, .case-cta { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .dev__body { display: block !important; }
}
