/* Dmitry — dark silver editorial portfolio */
:root {
  --bg: #0b0c0f;
  --bg-2: #111318;
  --panel: rgba(255, 255, 255, .028);
  --panel-2: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eceef2;
  --muted: #8b909a;
  --dim: #5f646d;
  --silver: linear-gradient(178deg, #ffffff 0%, #e4e6ea 38%, #a9adb5 70%, #6d717a 100%);
  --silver-btn: linear-gradient(135deg, #f4f5f7 0%, #c9ccd2 48%, #f0f1f3 100%);
  --radius: 16px;
  --wrap: 1240px;
  --display: "Fira Sans Extra Condensed", "Arial Narrow", sans-serif;
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { /* soft studio light */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 75% 0%, rgba(160, 170, 190, .09), transparent 70%),
    radial-gradient(40% 40% at 0% 60%, rgba(140, 150, 170, .05), transparent 70%);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1.5px solid rgba(255, 255, 255, .85); outline-offset: 3px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }
html { -webkit-tap-highlight-color: transparent; }
::selection { background: #e6e8ec; color: #0b0c0f; text-shadow: none; -webkit-text-fill-color: #0b0c0f; }

/* Scrollbars */
html, .case { scrollbar-width: thin; scrollbar-color: #3a3e46 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #4a4e57, #2c2f35); border-radius: 10px; border: 3px solid var(--bg); }
.case::-webkit-scrollbar-thumb { border-color: #101216; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #d9dbe0, #8d929b); }
::-webkit-scrollbar-corner { background: transparent; }

/* Custom cursor (mouse devices only; enabled from JS) */
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input[type="text"], .has-cursor textarea { cursor: text !important; }
.cursor { position: fixed; left: 0; top: 0; z-index: 2147483647; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity .3s; }
.cursor.on { opacity: 1; }
.cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; border-radius: 50%; translate: -50% -50%; }
.cursor-dot { width: 6px; height: 6px; background: #fff; }
.cursor-ring { width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .7); transition: width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s; }
.cursor.hover .cursor-ring { width: 58px; height: 58px; background: rgba(255, 255, 255, .12); border-color: #fff; }
.cursor.down .cursor-ring { width: 26px; height: 26px; }
.cursor-label { position: absolute; left: 0; top: 0; translate: -50% -50%; font: 700 9px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.view .cursor-ring { width: 84px; height: 84px; background: #fff; }
.cursor.view .cursor-label { opacity: 1; color: #000; }
.cursor.view .cursor-dot { opacity: 0; }

/* Range sliders */
input[type="range"] { -webkit-appearance: none; appearance: none; height: 24px; background: transparent; cursor: pointer; --p: 50%; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, #f2f3f5 0 var(--p), rgba(255, 255, 255, .16) var(--p) 100%); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .16); }
input[type="range"]::-moz-range-progress { height: 3px; border-radius: 3px; background: #f2f3f5; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6.5px; border-radius: 50%; background: var(--silver-btn); border: 0; box-shadow: 0 0 0 4px rgba(255, 255, 255, .1), 0 2px 8px rgba(0, 0, 0, .6); transition: transform .2s var(--ease); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #e9eaed; border: 0; box-shadow: 0 0 0 4px rgba(255, 255, 255, .1); }
input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); }

/* Video player */
.player { position: relative; background: #000; overflow: hidden; border-radius: 14px; isolation: isolate; }
.player video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.player:fullscreen { border-radius: 0; display: flex; align-items: center; }
.player:fullscreen video { height: 100vh; }
.player-big { position: absolute; left: 50%; top: 50%; z-index: 2; width: 84px; height: 84px; translate: -50% -50%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(11, 12, 15, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; cursor: pointer; transition: transform .3s var(--ease), opacity .3s, background .3s; }
.player-big:hover { transform: scale(1.06); background: rgba(255, 255, 255, .92); color: #0b0c0f; }
.player-big svg { width: 26px; height: 26px; margin-left: 4px; fill: currentColor; }
.player.playing .player-big { opacity: 0; pointer-events: none; transform: scale(.85); }
.player-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(14, 15, 19, .62); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); transition: opacity .35s, transform .35s var(--ease); }
.player.idle.playing .player-bar { opacity: 0; transform: translateY(8px); pointer-events: none; }
.player.idle.playing { cursor: none; }
.p-btn { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #eceef2; cursor: pointer; transition: background .2s; }
.p-btn:hover { background: rgba(255, 255, 255, .1); }
.p-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.p-btn svg .f { fill: currentColor; stroke: none; }
.p-time { flex: none; font: 600 11px/1 var(--sans); letter-spacing: .06em; color: #c5c8ce; font-variant-numeric: tabular-nums; min-width: 82px; text-align: center; }
.p-seek { flex: 1; min-width: 60px; }
.p-vol { display: flex; align-items: center; gap: 2px; }
.p-vol input { width: 0; opacity: 0; transition: width .3s var(--ease), opacity .3s; }
.p-vol:hover input, .p-vol:focus-within input { width: 80px; opacity: 1; }
.player [data-state="play"] .i-play, .player [data-state="pause"] .i-pause { display: none; }
.player [data-muted="true"] .i-vol, .player [data-muted="false"] .i-mute { display: none; }
.player:fullscreen .i-full, .player:not(:fullscreen) .i-exit { display: none; }
@media (max-width: 560px) { .p-vol input { display: none; } .p-time { min-width: 0; } .player-big { width: 64px; height: 64px; } }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .005em; line-height: .9; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.arr { font-style: normal; display: inline-block; transition: transform .3s var(--ease); }
a:hover .arr { transform: translate(2px, -2px); }

/* Header */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.top.scrolled { background: rgba(11, 12, 15, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.top-row { height: 72px; display: flex; align-items: center; gap: 28px; }
.mark { display: flex; font-family: var(--display); font-weight: 700; font-size: 30px; text-decoration: none; letter-spacing: -.02em; line-height: 1; }
.mark span:last-child { margin-left: -3px; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: #c5c8ce; transition: color .2s; position: relative; }
.nav a:hover { color: #fff; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.nav .nav-accent { color: #fff; }
.nav .nav-accent::before { content: "20%"; position: absolute; top: -13px; right: -18px; font-size: 9px; letter-spacing: .06em; color: #0b0c0f; background: var(--silver-btn); padding: 1px 5px; border-radius: 20px; }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 40px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.pill-light { background: var(--silver-btn); color: #0b0c0f; box-shadow: inset 0 1px 0 #fff, 0 6px 24px rgba(255, 255, 255, .08); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: #fff; transition: transform .3s var(--ease), top .3s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 24px; border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-silver { background: var(--silver-btn); color: #0b0c0f; box-shadow: inset 0 1px 0 #fff, 0 10px 30px rgba(255, 255, 255, .08); }
.btn-silver:hover { box-shadow: inset 0 1px 0 #fff, 0 14px 40px rgba(255, 255, 255, .16); }
.btn-line { border: 1px solid var(--line-2); color: #e6e8ec; }
.btn-line:hover { border-color: #fff; background: rgba(255, 255, 255, .04); }
.btn-light { background: #f2f3f5; color: #0b0c0f; }

/* Hero */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: center; padding: 120px 0 64px; overflow: hidden; isolation: isolate; }
.hero-visual { position: absolute; z-index: -1; inset: 0; container-type: size; overflow: hidden; background: #070809; }
.hero-inner { pointer-events: none; }
.hero-inner > * { pointer-events: auto; }
/* Camera rig: .cam floats like a drone, .scene is the 3:2 mockup photo covering the visual. */
.cam { position: absolute; inset: -2%; }
.cam.hover-float { animation: drone 7s ease-in-out infinite; }
@keyframes drone { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0); } 33% { transform: translate3d(-5px, 4px, 0) rotate(.25deg); } 66% { transform: translate3d(4px, -3px, 0) rotate(-.2deg); } }
.scene { position: absolute; left: 50%; top: 50%; width: max(100cqw, 150cqh); aspect-ratio: 3 / 2; translate: -50% -50%; transform-origin: 50% 50%; will-change: transform, filter; transform: translate3d(17%, 8%, 0) scale(1.1); }
.scene-bg, .scene-fg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Generated camera flight (Creative Claw): its last frame is the 16:9 crop of the photo starting 5% from the top. */
.room-film { position: absolute; left: 0; top: 5%; width: 100%; height: 84.375%; object-fit: fill; z-index: 5; pointer-events: none; background: #070809; transition: opacity .25s linear;
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 7%, #000 100%); mask: linear-gradient(180deg, transparent 0, #000 7%, #000 100%); }
.room-film.done, .room-film.off { opacity: 0; }
.scene-hand { position: absolute; left: 53.5%; top: 62.5%; width: 11%; height: 11%; transform-origin: 88% 18%; pointer-events: none; }

.scene-fg { transform-origin: 70% 22%; will-change: transform, filter; pointer-events: none; }
.screen { position: absolute; left: 26.57%; top: 16.52%; width: 46.75%; height: 39.51%; overflow: hidden; background: #050607; border-radius: .25%;
  /* Her shoulder overlaps the lower-right corner of the display: the PSD's own layer mask cuts the screen there. */
  -webkit-mask: url("assets/mockups/screen-mask.png") center / 100% 100% no-repeat; mask: url("assets/mockups/screen-mask.png") center / 100% 100% no-repeat; }
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.86) saturate(.95); opacity: 0; transition: opacity .8s var(--ease); }
.screen.playing video { opacity: 1; }
.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, .07), transparent 40%); }
.screen-ui { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 50%, rgba(5, 6, 7, .35), rgba(5, 6, 7, .85)), url("assets/empire.jpg") center / cover; transition: opacity .6s var(--ease); }
.screen.playing .screen-ui { opacity: 0; pointer-events: none; }
.screen-tag { position: absolute; left: 4%; top: 6%; font-size: clamp(7px, .9cqw, 11px); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.screen-play { position: relative; width: clamp(38px, 7cqw, 76px); aspect-ratio: 1; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--silver-btn); color: #0b0c0f; box-shadow: 0 0 0 8px rgba(255, 255, 255, .08), 0 12px 40px rgba(0, 0, 0, .5); transition: transform .25s var(--ease); }
.screen-play svg { width: 38%; height: 38%; margin-left: 8%; fill: currentColor; }
.screen-play:hover { transform: scale(1.06); }
.screen-play.press { transform: scale(.88); }
.ripple { position: absolute; inset: 0; border-radius: 50%; border: 1px solid #fff; opacity: 0; }
.screen-play.press .ripple { animation: ripple .7s var(--ease); }
@keyframes ripple { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.4); } }
.screen-cursor { position: absolute; z-index: 3; left: 0; top: 0; width: clamp(12px, 2cqw, 22px); fill: #fff; stroke: #000; stroke-width: 1.2; opacity: 0; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); pointer-events: none; }
.key-hint { position: absolute; right: 10%; top: 96px; z-index: 2; display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity .8s; }
.key-hint.show { opacity: 1; }
.key-hint kbd { font: 700 10px/1 var(--sans); letter-spacing: .12em; padding: 7px 12px; border-radius: 6px; color: #eceef2; border: 1px solid var(--line-2); border-bottom-width: 3px; background: rgba(255, 255, 255, .04); transition: transform .15s, border-bottom-width .15s; }
.key-hint kbd.down { transform: translateY(2px); border-bottom-width: 1px; }
.hero-visual::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 12, 15, .96) 0%, rgba(11, 12, 15, .82) 26%, rgba(11, 12, 15, .25) 50%, transparent 64%), linear-gradient(0deg, var(--bg) 0%, transparent 22%), linear-gradient(180deg, rgba(11, 12, 15, .7) 0%, transparent 16%); }
.hero-arc { position: absolute; right: 2%; top: 9%; height: 82%; opacity: .7; }
.spark { position: absolute; width: 22px; height: 22px; background: #fff; clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); filter: drop-shadow(0 0 10px rgba(255, 255, 255, .7)); animation: twinkle 4s ease-in-out infinite; }
.spark-a { right: 13%; top: 46%; }
@keyframes twinkle { 0%, 100% { opacity: .9; transform: scale(1) rotate(0); } 50% { opacity: .45; transform: scale(.75) rotate(20deg); } }
.hero-inner { position: relative; }
.hero .eyebrow { margin-bottom: 22px; }
.hero-title { display: flex; flex-direction: column; font-size: clamp(60px, 8.4vw, 136px); line-height: .86; max-width: 9.6em; text-shadow: 0 0 0 transparent; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .55)); }
.hero-title span { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .02em; }
.hero-title span:nth-child(2) { padding-left: .06em; }
.hero-lead { max-width: 470px; margin-top: 28px; color: #b9bcc3; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-badge { position: absolute; right: 0; bottom: -8px; display: grid; justify-items: end; gap: 4px; text-decoration: none; text-align: right; }
.hero-badge small { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.hero-badge b { font-size: 36px; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.fact { padding: 30px 18px 28px; display: grid; justify-items: center; text-align: center; gap: 8px; position: relative; }
.fact + .fact::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.fact svg { width: 22px; height: 22px; fill: none; stroke: #cfd2d8; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.fact b { font-size: 56px; font-weight: 500; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact span { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }

/* Sections */
.section { padding: 120px 0 0; }
.section-head { margin-bottom: 40px; display: grid; gap: 12px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head-row > div:first-child { display: grid; gap: 12px; }
.h2 { font-size: clamp(54px, 7vw, 96px); background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h3 { font-size: clamp(34px, 3.6vw, 50px); }
.section-note { max-width: 520px; color: var(--muted); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }

/* Services bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; transition: border-color .3s, transform .4s var(--ease); }
.svc:hover { border-color: var(--line-2); transform: translateY(-4px); }
.svc-wide { grid-column: span 2; flex-direction: row; }
.svc-wide:last-child { grid-column: 1 / -1; }
.svc-wide:last-child .svc-media { flex: 1.6; min-height: 400px; }
.svc-media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: #e9e8e5; }
.svc-wide .svc-media { flex: 1.25; aspect-ratio: auto; min-height: 340px; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.22); transition: transform 1.2s var(--ease); }
.svc:hover .svc-media img { transform: scale(1.3); }
.svc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 12, 15, .25)); pointer-events: none; }
.svc-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.svc-wide .svc-body { justify-content: center; padding: 36px; }
.svc-num { font-family: var(--display); font-size: 14px; letter-spacing: .14em; color: var(--dim); }
.svc h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 30px; line-height: 1; letter-spacing: .01em; }
.svc-wide h3 { font-size: 40px; }
.svc p { color: #a6aab2; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.chips li { font-size: 11px; font-weight: 600; letter-spacing: .06em; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 30px; color: #cdd0d6; }

/* Works: compact direction tiles; the chosen one opens a panel below */
.segs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.seg { all: unset; box-sizing: border-box; cursor: pointer; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; min-height: 250px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)); transition: border-color .35s, transform .5s var(--ease), background .35s; }
.seg:hover { border-color: var(--line-2); transform: translateY(-3px); }
.seg:focus-visible { outline: 1.5px solid #fff; outline-offset: 3px; }
.seg[aria-selected="true"] { border-color: rgba(255, 255, 255, .5); background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)); }
.seg-top { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.seg-n { font-family: var(--display); font-size: 14px; color: var(--dim); }
.seg-stack { position: relative; height: 92px; margin: 6px 0 10px; }
.seg-stack img { position: absolute; left: calc(var(--k) * 26px); top: calc(var(--k) * 6px); width: 128px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-2); box-shadow: 0 10px 24px rgba(0, 0, 0, .55); transform: rotate(calc((var(--k) - 1) * 3deg)); transition: transform .6s var(--ease), left .6s var(--ease); }
.seg:hover .seg-stack img { left: calc(var(--k) * 40px); transform: rotate(calc((var(--k) - 1) * 6deg)) translateY(-4px); }
.seg-title { font-size: 34px; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.seg-note { font-size: 13px; color: var(--muted); line-height: 1.45; padding-right: 36px; }
.seg-toggle { position: absolute; right: 18px; bottom: 18px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); transition: background .3s, border-color .3s; }
.seg-toggle::before, .seg-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.4px; background: #eceef2; translate: -50% -50%; transition: transform .45s var(--ease), background .3s; }
.seg-toggle::after { transform: rotate(90deg); }
.seg:hover .seg-toggle { border-color: #fff; }
.seg[aria-selected="true"] .seg-toggle { background: var(--silver-btn); border-color: transparent; }
.seg[aria-selected="true"] .seg-toggle::before, .seg[aria-selected="true"] .seg-toggle::after { background: #0b0c0f; }
.seg[aria-selected="true"] .seg-toggle::after { transform: rotate(0deg); }
.seg-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.seg-panel.open { grid-template-rows: 1fr; }
.seg-inner { overflow: hidden; }
.seg-panel .works { padding-top: 14px; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.works li.pop { animation: pop .7s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes pop { from { opacity: 0; transform: translateY(26px) scale(.98); filter: blur(6px); } }
.work { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; width: 100%; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); overflow: hidden; transition: border-color .3s, transform .5s var(--ease); }
.work:hover { border-color: var(--line-2); transform: translateY(-4px); }
.work:focus-visible { outline: 1.5px solid #fff; outline-offset: 3px; }
.work-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #15171c; }
.work-media img, .work-media video { width: 100%; height: 100%; object-fit: cover; }
.work-media img { transition: transform 1.2s var(--ease); }
.work:hover .work-media img { transform: scale(1.05); }
.work-type { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(70% 70% at 50% 40%, #23262d, #121418); }
.work-type b { font-family: var(--display); font-size: 92px; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge { position: absolute; z-index: 1; top: 14px; left: 14px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 9px; border-radius: 20px; background: rgba(11, 12, 15, .6); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .2); }
.work-meta { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.work-kind { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.work-meta h3 { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1; color: #fff; }
.work-meta p { color: #b5b8bf; font-size: 14px; line-height: 1.5; }
.work-more { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #d6d8dc; }
.work-more .ln { width: 22px; transition: width .5s var(--ease); }
.work:hover .work-more .ln { width: 46px; }

/* Thin long arrow used instead of diagonal arrows */
.ln { width: 26px; height: 10px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; transition: transform .4s var(--ease), width .4s var(--ease); }
a:hover .ln, button:hover .ln { transform: translateX(4px); }

/* About */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.about-me { padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.about-me h2 { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; max-width: 12em; }
.about-me p { color: #a9adb5; }
.about-media { margin-top: auto; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
.about-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.about-side { display: grid; gap: 16px; align-content: start; }
.about-side .panel { padding: 28px; }
.about-side .eyebrow { margin-bottom: 20px; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
.tools li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #c9ccd2; }
.tools b { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(255, 255, 255, .03); font-family: var(--display); font-size: 15px; font-weight: 700; color: #f0f1f3; }
.formats li { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); }
.formats li:first-child { border-top: 0; padding-top: 0; }
.formats span { font-weight: 600; }
.formats small { color: var(--muted); font-size: 13px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); padding: 30px 0; counter-reset: s; }
.steps li { padding: 0 24px; display: grid; gap: 10px; grid-template-rows: auto auto 1fr auto; position: relative; }
.steps li + li::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.steps li:not(:last-child)::after { content: "· · · ›"; position: absolute; right: -18px; top: 52%; font-size: 11px; color: var(--dim); letter-spacing: .1em; }
.step-n { font-family: var(--display); color: var(--dim); font-size: 14px; letter-spacing: .14em; }
.steps h3 { font-family: var(--display); font-weight: 700; font-size: 24px; text-transform: uppercase; letter-spacing: .02em; }
.steps p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.steps svg { width: 30px; height: 30px; margin-top: 14px; fill: none; stroke: #d2d5da; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }

/* Partners */
.partners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 16px; background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01) 55%); }
.partners-media { border-radius: var(--radius); overflow: hidden; min-height: 520px; }
.partners-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.partners-body { padding: 28px 28px 24px 20px; display: flex; flex-direction: column; gap: 18px; }
.partners-title { display: flex; flex-direction: column; gap: 6px; }
.partners-title .big { font-size: clamp(110px, 13vw, 190px); line-height: .78; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.partners-title span:last-child { font-size: clamp(30px, 3.4vw, 46px); }
.partners-lead { color: #b6b9c0; font-size: 16.5px; }
.partners-lead b { color: #fff; font-weight: 700; }
.p-steps { display: grid; gap: 2px; }
.p-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.p-steps li > span { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--display); font-size: 15px; }
.p-steps b { display: block; font-weight: 700; }
.p-steps small { color: var(--muted); font-size: 13.5px; }
.calc { padding: 20px 22px; display: grid; gap: 12px; }
.calc label { font-size: 13.5px; color: #b6b9c0; }
.calc output { color: #fff; font-weight: 700; }
.calc input { width: 100%; }
.calc-res { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.calc-res b { font-size: 44px; letter-spacing: 0; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.partners-who { color: var(--muted); font-size: 13.5px; }
.partners .hero-actions { margin-top: 0; }

/* CTA */
.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 40px; align-items: center; padding: 48px; border: 1px solid var(--line-2); border-radius: calc(var(--radius) + 4px); background: linear-gradient(115deg, #2a2d33 0%, #15171b 38%, #1b1d22 60%, #0f1013 100%); isolation: isolate; }
.cta-sheen { position: absolute; inset: -40% auto -40% -10%; width: 45%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22) 45%, rgba(255, 255, 255, .05) 60%, transparent); transform: skewX(-18deg); animation: sheen 9s var(--ease) infinite; }
@keyframes sheen { 0% { left: -40%; } 55%, 100% { left: 110%; } }
.spark-b { left: 34%; top: 24%; width: 18px; height: 18px; }
.cta-title { display: flex; flex-direction: column; font-size: clamp(38px, 4.4vw, 64px); }
.cta-title span { white-space: nowrap; }
.cta-title span { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-mid { display: grid; gap: 22px; justify-items: start; }
.cta-mid p { color: #b9bcc3; }
.cta-contacts { display: grid; gap: 14px; padding-left: 36px; border-left: 1px solid var(--line-2); font-size: 14px; }
.cta-contacts li { display: flex; align-items: center; gap: 12px; color: #c9ccd2; }
.cta-contacts a { text-decoration: none; } .cta-contacts a:hover { text-decoration: underline; }
.cta-contacts svg { width: 17px; height: 17px; fill: none; stroke: #d6d8dc; stroke-width: 1.4; stroke-linejoin: round; flex: none; }

/* Footer */
.foot { padding: 56px 0 40px; margin-top: 40px; }
.foot-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.foot nav { display: flex; gap: 24px; }
.foot a { text-decoration: none; color: var(--muted); } .foot a:hover { color: #fff; }

/* Case dialog */
.case { width: min(980px, 100% - 24px); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--line-2); border-radius: 20px; background: #101216; color: var(--text); overflow: auto; overscroll-behavior: contain; }
.case::backdrop { background: rgba(5, 6, 8, .72); backdrop-filter: blur(8px); }
.case-close-row { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; padding: 14px 14px 0; pointer-events: none; }
.case-close { pointer-events: auto; cursor: pointer; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(16, 18, 22, .8); backdrop-filter: blur(8px); font-size: 22px; line-height: 1; }
.case-close:hover { background: #fff; color: #000; }
.case-body { padding: 0 40px 40px; display: grid; gap: 22px; margin-top: -28px; }
.case-body .kind { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.case-body h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(36px, 5vw, 60px); line-height: .92; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 40px; }
.case-body .summary { color: #b9bcc3; font-size: 17px; max-width: 680px; }
.case-media { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.case-media img { width: 100%; display: block; }
.case-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.case-cols h3 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.case-cols p { color: #c5c8ce; }
.case-cols ul:not(.chips) li { position: relative; padding: 8px 0 8px 22px; border-top: 1px solid var(--line); color: #c5c8ce; font-size: 15px; }
.case-cols ul:not(.chips) li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 1px; background: var(--dim); }
.case-body .chips { margin-top: 14px; }
.case-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.case-note { font-size: 13px; color: var(--dim); }
.case[open] .case-body > * { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .svc-wide { grid-column: span 2; }
  .svc-wide:last-child { grid-column: span 2; }
  .works { grid-template-columns: 1fr 1fr; }
  .segs { grid-template-columns: 1fr 1fr; }
  .seg-panel .works { grid-template-columns: repeat(3, 1fr); }
  .cta { grid-template-columns: 1fr 1fr; }
  .cta-title { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .steps li:nth-child(4)::before { display: none; }
  .steps li:nth-child(3)::after { display: none; }
}
@media (max-width: 860px) {
  .top-row { height: 64px; }
  .burger { display: block; }
  .top-row > .pill { display: none; }
  .nav { position: fixed; inset: 64px 0 auto; margin: 0; flex-direction: column; gap: 0; padding: 8px 16px 24px; background: rgba(11, 12, 15, .96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 16px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .nav-accent::before { top: 14px; right: auto; left: 120px; }
  .hero { min-height: auto; padding: 96px 0 40px; flex-direction: column; align-items: stretch; }
  .hero-visual { position: relative; inset: auto; height: 78vw; margin: 0 -16px -10vw; order: -1; }
  .hero-visual::after { background: linear-gradient(0deg, var(--bg) 0%, transparent 35%), linear-gradient(180deg, rgba(11, 12, 15, .7) 0%, transparent 20%); }
  .scene { transform: translate3d(0, 2%, 0) scale(1.5); }
  .hero-arc, .spark-a { display: none; }
  .hero-title { font-size: clamp(54px, 15.5vw, 110px); }
  .hero-lead { font-size: 16px; }
  .hero-badge { position: static; justify-items: start; text-align: left; margin-top: 32px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3)::before { display: none; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .fact b { font-size: 46px; }
  .section { padding-top: 88px; }
  .bento, .works, .about, .partners-grid { grid-template-columns: 1fr; }
  .seg { min-height: 0; padding: 16px; }
  .seg-stack { height: 64px; margin: 2px 0 4px; }
  .seg-stack img { width: 86px; height: 54px; left: calc(var(--k) * 18px); }
  .seg-title { font-size: 21px; }
  .seg-note { display: none; }
  .seg-toggle { width: 28px; height: 28px; right: 12px; top: 12px; bottom: auto; }
  .seg-stack img { width: 74px; height: 48px; }
  .seg-panel .works { grid-template-columns: 1fr 1fr; gap: 10px; }
  .work-meta h3 { font-size: 18px; }
  .work-more { display: none; }
  .key-hint { display: none; }
  .svc-wide { grid-column: auto; flex-direction: column; }
  .svc-wide .svc-media, .svc-wide:last-child .svc-media { flex: none; min-height: 0; aspect-ratio: 3 / 2; }
  .svc-wide .svc-body { padding: 26px; }
  .svc-wide h3 { font-size: 30px; }
  .about-me { padding: 26px; }
  .tools { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; padding: 8px 0; }
  .steps li { padding: 20px 24px; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; column-gap: 16px; }
  .steps li > * { grid-column: 1; }
  .steps li svg { grid-column: 2; grid-row: 1 / span 3; margin: 0; align-self: center; }
  .steps li + li::before { left: 24px; right: 24px; top: 0; bottom: auto; width: auto; height: 1px; }
  .steps li::after { display: none; }
  .partners-grid { padding: 10px; }
  .partners-media { min-height: 0; aspect-ratio: 4 / 3; }
  .partners-body { padding: 18px 12px 14px; }
  .cta { grid-template-columns: 1fr; padding: 32px 22px; gap: 28px; }
  .cta-contacts { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .case-body { padding: 0 20px 26px; }
  .case-cols { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Glass buttons + sheen ===== */
.btn, .pill { position: relative; overflow: hidden; isolation: isolate; }
.btn::after, .pill::after { content: ""; position: absolute; inset: -1px; z-index: -1; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .5) 48%, rgba(255, 255, 255, .1) 56%, transparent 70%); transform: translateX(-130%); transition: transform 1s var(--ease); }
.btn:hover::after, .pill:hover::after { transform: translateX(130%); }
.pill { transition: transform .35s var(--ease), background .35s, box-shadow .35s, border-color .35s, color .35s; }
.pill-light { background: rgba(255, 255, 255, .07); color: #f2f3f5; border: 1px solid rgba(255, 255, 255, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 30px rgba(0, 0, 0, .35); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
.pill-light:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 12px 36px rgba(255, 255, 255, .08); }
.pill .ln { width: 18px; }
.btn-line { background: rgba(255, 255, 255, .045); border-color: rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%); }
.btn-line:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.btn-silver::after { background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .95) 48%, transparent 66%); }
.top-row { justify-content: space-between; }
.top-row > .pill { margin-right: 0; }

/* ===== Socials (Telegram / WhatsApp) ===== */
.logo { width: 22px; height: 22px; flex: none; overflow: visible; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)) drop-shadow(0 0 10px rgba(255, 255, 255, .06)); }
.logo-base { fill: url(#g-silver); filter: url(#f-emboss); }
.logo-glare { fill: url(#g-glare); mix-blend-mode: soft-light; }
.socials { display: grid; gap: 10px; padding-left: 36px; border-left: 1px solid var(--line-2); }
.social { display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 14px; border-radius: 14px; text-decoration: none; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform .4s var(--ease), border-color .3s, background .3s; }
.social .logo { width: 34px; height: 34px; transition: transform .6s var(--ease); }
.social:hover { transform: translateX(4px); border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); }
.social:hover .logo { transform: rotate(-8deg) scale(1.08); }
.social b { display: block; font-size: 14px; }
.social small { display: block; font-size: 12px; color: var(--muted); }
.foot nav { align-items: center; }
.foot-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); transition: border-color .3s, transform .4s var(--ease); }
.foot-ico:hover { border-color: #fff; transform: translateY(-2px); }
.foot-ico .logo { width: 17px; height: 17px; }
[data-wa][hidden] { display: none !important; }
@media (max-width: 860px) { .socials { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line-2); } }

/* ===== Process: travelling light + steps that switch on in turn ===== */
.steps { position: relative; overflow: hidden; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent); width: 30%; transform: translateX(-100%); }
.steps.run::before { animation: travel 5s linear infinite; }
@keyframes travel { to { transform: translateX(440%); } }
.steps li { transition: background .6s var(--ease); }
.steps li .step-n, .steps li h3, .steps li svg { transition: color .5s, opacity .5s, transform .6s var(--ease), stroke .5s; }
.steps.run li { opacity: .55; }
.steps.run li.lit { opacity: 1; }
.steps li.lit h3 { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps li.lit .step-n { color: #fff; }
.steps li.lit svg { transform: translateY(-3px) scale(1.12); stroke: #fff; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .6)); }
.steps svg path, .steps svg circle { stroke-dasharray: 80; stroke-dashoffset: 0; }
.steps li.lit svg path, .steps li.lit svg circle { animation: draw 1.2s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 80; } }
.steps li { transition: opacity .6s var(--ease); }

/* ===== Section transitions ===== */
.section-head .h2 { clip-path: inset(0 100% -10% 0); transition: clip-path 1.3s var(--ease) .1s; }
.section-head.in .h2 { clip-path: inset(0 -2% -10% 0); }
.section-head .eyebrow { opacity: 0; transform: translateX(-12px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.section-head.in .eyebrow { opacity: 1; transform: none; }
.section-head .section-note { opacity: 0; transform: translateY(12px); transition: opacity .9s var(--ease) .35s, transform .9s var(--ease) .35s; }
.section-head.in .section-note { opacity: 1; transform: none; }
.svc-media, .partners-media, .about-media { clip-path: inset(8% 8% 8% 8% round 14px); transition: clip-path 1.3s var(--ease); }
.reveal.in .svc-media, .reveal.in.partners-media, .reveal.in .about-media, .svc.in .svc-media { clip-path: inset(0 0 0 0 round 0); }
.partners-media.in { clip-path: inset(0 0 0 0 round 16px); }
/* Page-like transition between sections when using the menu */
.veil { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: rgba(11, 12, 15, .0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); transition: background .45s var(--ease), backdrop-filter .45s var(--ease); }
.veil::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, #fff, transparent); transform: scaleX(0); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.veil.on { background: rgba(11, 12, 15, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.veil.on::after { transform: scaleX(1); opacity: .8; }
@media (prefers-reduced-motion: reduce) {
  .section-head .h2, .svc-media, .partners-media, .about-media { clip-path: none !important; }
  .section-head .eyebrow, .section-head .section-note { opacity: 1; transform: none; }
  .steps.run li { opacity: 1; }
}

/* ===== Back to top ===== */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(14, 15, 19, .55); color: #eceef2; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 30px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease), background .3s, border-color .3s; overflow: hidden; isolation: isolate; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.to-top:hover svg { transform: translateY(-3px); }
.to-top-ring { position: absolute; inset: 2px; z-index: -1; border-radius: 50%; background: conic-gradient(rgba(255, 255, 255, .55) var(--p, 0%), transparent 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)); }
@media (max-width: 860px) { .to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; } }

.partners-note { font-size: 13.5px; color: #b6b9c0; padding: 14px 16px; border-left: 2px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .035); border-radius: 0 10px 10px 0; }
.partners-note b { color: #fff; font-weight: 700; }
