:root {
	--bg: #fafaf8; --card: #ffffff; --fg: #111111; --muted: #66665f; --line: #d9d9d4;
	--accent: #e8173f; --accent-fg: #ffffff; --chip-on-bg: #111111; --chip-on-fg: #ffffff;
	--tag-bg: #ffffff; --tag-fg: #111111; --shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 18px 30px -22px rgba(0, 0, 0, .5);
	--font: 'Segoe UI', Inter, system-ui, -apple-system, sans-serif;
	--mono: 'Cascadia Mono', Consolas, 'SF Mono', monospace;
	color-scheme: light;
}
:root[data-theme="dark"] {
	--bg: #07080a; --card: #0d0f11; --fg: #e9ece9; --muted: #8b918c; --line: #262a2e;
	--accent: #39ff6a; --accent-fg: #05130a; --chip-on-bg: #39ff6a; --chip-on-fg: #05130a;
	--tag-bg: rgba(7, 8, 10, .82); --tag-fg: #39ff6a; --shadow: none;
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--bg: #07080a; --card: #0d0f11; --fg: #e9ece9; --muted: #8b918c; --line: #262a2e;
		--accent: #39ff6a; --accent-fg: #05130a; --chip-on-bg: #39ff6a; --chip-on-fg: #05130a;
		--tag-bg: rgba(7, 8, 10, .82); --tag-fg: #39ff6a; --shadow: none;
		color-scheme: dark;
	}
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
:root[data-theme="dark"] body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 50; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 3px); }
a { color: inherit; }
img { max-width: 100%; height: auto; }
main { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)) 40px max(16px, env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top { display: flex; align-items: center; gap: 18px 32px; flex-wrap: wrap; width: 100%; max-width: 1440px; margin: 0 auto; padding: 22px max(16px, env(safe-area-inset-left, 0px)) 14px max(16px, env(safe-area-inset-right, 0px)); }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.logo i { font-style: normal; color: var(--accent); }

.logo { display: inline-flex; align-items: baseline; gap: .3em; }
.logo-mark { height: 1.5em; width: auto; display: block; position: relative; top: .2em; }

:root[data-theme="dark"] .logo-mark { filter: invert(1); }
.foot .foot-main { text-decoration: underline; text-underline-offset: 3px; }
.nav { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }

.logo, .nav { align-self: baseline; }
.nav a { text-decoration: none; padding-bottom: 3px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); font-weight: 600; border-bottom-color: var(--accent); }
.sp { flex: 1; }
.theme { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); }
.theme button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 14px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.theme button.is-on { background: var(--chip-on-bg); color: var(--chip-on-fg); }
.lang { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); display: flex; gap: 6px; }
.lang a { text-decoration: none; }
.lang a.on { color: var(--accent); font-weight: 600; }
:root:not([data-theme="dark"]) .lang a.on { color: var(--fg); border-bottom: 2px solid var(--accent); }

.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; padding: 26px 0 22px; }
.intro h1 { margin: 0; font-size: clamp(2.2rem, 5.2vw, 3.4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
.intro h1 em { font-style: normal; }
:root[data-theme="dark"] .intro h1 em { text-shadow: -3px 0 rgba(255, 0, 60, .75), 3px 0 rgba(0, 255, 200, .7); }
.intro p { margin: 0; max-width: 340px; font-size: 14px; color: var(--muted); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 24px; }
.chip { font-size: 13px; text-decoration: none; padding: 7px 15px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: var(--card); }
.chip em { font-style: normal; opacity: .6; margin-left: 5px; }
.chip:hover { color: var(--fg); border-color: var(--muted); }
.chip.on { background: var(--chip-on-bg); border-color: var(--chip-on-bg); color: var(--chip-on-fg); font-weight: 600; }
.empty { color: var(--muted); padding: 40px 0; }

.wall { columns: 3; column-gap: 22px; }
.card { display: block; position: relative; break-inside: avoid; margin-bottom: 22px; text-decoration: none; }
.card img { display: block; width: 100%; height: auto; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease; }
.card:hover img { border-color: var(--accent); }
:root[data-theme="dark"] .card:hover img { box-shadow: 0 0 36px rgba(57, 255, 106, .25); }
.card .tag { position: absolute; z-index: 2; left: 12px; top: 12px; background: var(--tag-bg); color: var(--tag-fg); border: 1px solid var(--line); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; }
.card .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 9px; font-size: 13px; }
.card .cap b { font-weight: 600; }
.card .cap span { color: var(--muted); }
@media (max-width: 1099.98px) { .wall { columns: 2; } }
@media (max-width: 639.98px) { .wall { columns: 1; } .top { gap: 12px 20px; } .nav { gap: 20px; } .sp { display: none; } }

.work { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 40px; padding-top: 18px; align-items: start; }
.work-info { position: sticky; top: 20px; min-width: 0; }
.crumbs { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--fg); }
.work-info h1 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.lead { margin: 0 0 18px; color: var(--muted); }
.meta { margin: 0 0 22px; border-top: 2px solid var(--fg); }
.meta div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.meta dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.meta dd { margin: 0; text-align: right; }
.desc { font-size: 15px; line-height: 1.6; color: var(--fg); max-width: 62ch; }
.work-media { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.work-media img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 40px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.btn { display: inline-block; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .04em; padding: 11px 20px; border: 2px solid var(--fg); color: var(--fg); background: transparent; }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn:hover { opacity: .85; }
.work-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.work-nav a { text-decoration: none; color: var(--muted); } .work-nav a:hover { color: var(--fg); }
@media (max-width: 899.98px) { .work { grid-template-columns: minmax(0, 1fr); gap: 24px; } .work-info { position: static; } }

.about { max-width: 720px; padding-bottom: 24px; }
.about-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; width: 100%; max-width: 1440px; margin: 0 auto; padding: 22px max(16px, env(safe-area-inset-left, 0px)) 28px max(16px, env(safe-area-inset-right, 0px)); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--fg); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.sec { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 32px; align-items: start; padding: 30px 0 34px; border-top: 1px solid var(--line); }
.sec-text h2 { margin: 0 0 12px; font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.sec-text h2 a { text-decoration: none; }
.sec-text p { margin: 0 0 18px; max-width: 42ch; color: var(--muted); }
.sec-all { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
:root:not([data-theme="dark"]) .sec-all { color: var(--fg); border-bottom-color: var(--accent); }
.sec-frags { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.frag { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); background: var(--card); text-decoration: none; }
.frag img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .35s ease; }
.frag:hover img, .frag:focus-visible img { transform: scale(1.04); }
.frag-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 8px; font-size: 12px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); opacity: 0; transition: opacity .2s ease; }
.frag:hover .frag-cap, .frag:focus-visible .frag-cap { opacity: 1; }
@media (hover: none) { .frag-cap { opacity: 1; } }
@media (max-width: 899.98px) { .sec { grid-template-columns: minmax(0, 1fr); gap: 20px; } .sec-frags { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.wall-web { columns: 2; }
@media (max-width: 899.98px) { .wall-web { columns: 1; } }

.pjax-bar { position: fixed; left: 0; top: 0; z-index: 100; height: 2px; width: 0; background: var(--accent); opacity: 0; pointer-events: none; transition: width .3s ease, opacity .2s ease; }
.pjax-bar.on { opacity: 1; }
main.d-enter { animation: d-enter .24s ease both; }
@keyframes d-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; }
@media (prefers-reduced-motion: reduce) { main.d-enter { animation: none; } ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

.stage { display: flex; flex-direction: column; gap: 16px; }
.stage-bar { display: inline-flex; align-self: flex-start; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); }
.stage-bar button { font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: background .2s, color .2s; }
.stage-bar button:hover { color: var(--fg); }
.stage-bar button[aria-pressed="true"] { background: var(--chip-on-bg); color: var(--chip-on-fg); }
.stage-scene { position: relative; aspect-ratio: 16 / 11; perspective: 1500px; }
.stage-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.stage-tilt.is-live { transition: transform .08s linear; }
.dev-browser, .dev-phone { margin: 0; position: absolute; transition: width .55s cubic-bezier(.2, .7, .2, 1), left .55s cubic-bezier(.2, .7, .2, 1), top .55s cubic-bezier(.2, .7, .2, 1), opacity .4s, transform .55s cubic-bezier(.2, .7, .2, 1); }
.dev-browser { left: 0; top: 0; width: 86%; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .55), var(--shadow); transform: translateZ(0); }
.dev-top { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--card); }
.dev-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dev-top i:nth-child(1) { background: #ff5f57; } .dev-top i:nth-child(2) { background: #febc2e; } .dev-top i:nth-child(3) { background: #28c840; }
.dev-url { flex: 1; max-width: 300px; margin: 0 auto; padding: 4px 12px; border-radius: 999px; background: var(--bg); color: var(--muted); font: 11px/1.3 var(--mono); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-browser img, .dev-phone img { display: block; width: 100%; height: auto; max-height: none; border: 0; box-shadow: none; }
.dev-phone { right: 0; bottom: 0; width: 24%; border: 5px solid #0c0c0d; border-radius: 22px; background: #0c0c0d; overflow: hidden; box-shadow: 0 34px 46px -22px rgba(0, 0, 0, .7); transform: translateZ(80px); animation: dev-float 6s ease-in-out infinite; }
.dev-phone img { border-radius: 17px; }
.dev-phone::before { content: ""; position: absolute; z-index: 1; top: 7px; left: 50%; width: 28%; height: 9px; border-radius: 9px; background: #0c0c0d; transform: translateX(-50%); }
@keyframes dev-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.stage[data-view="desktop"] .dev-browser { width: 100%; }
.stage[data-view="desktop"] .dev-phone { opacity: 0; transform: translateZ(0) translateY(40px); pointer-events: none; }
.stage[data-view="phone"] .dev-browser { opacity: 0; transform: translateZ(-60px) scale(.94); pointer-events: none; }
.stage[data-view="phone"] .dev-phone { width: 30%; right: 35%; bottom: 0; }
@media (prefers-reduced-motion: reduce) { .dev-phone { animation: none; } .stage-tilt, .dev-browser, .dev-phone { transition: none !important; } }
@media (max-width: 560px) { .dev-top { height: 26px; } .dev-url { font-size: 10px; } .dev-phone { border-width: 4px; border-radius: 16px; } .dev-phone img { border-radius: 12px; } .dev-phone::before { top: 5px; height: 6px; } .stage-bar button { padding: 8px 11px; } }

.sc-vp { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--card); }
.sc-ph { position: relative; aspect-ratio: 9 / 19.5; overflow: hidden; border-radius: 17px; background: var(--card); }
.sc-pg, .sc-pp { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.sc-pg.is-on, .sc-pp.is-on { opacity: 1; }
.dev-browser .sc-pg img, .dev-phone .sc-pp img { position: absolute; left: 0; top: 0; width: 100%; height: auto; border-radius: 0; will-change: transform; }
.dev-browser .sc-pg img.sc-poster, .dev-phone .sc-pp img.sc-poster { height: 100%; object-fit: cover; will-change: auto; }
.sc-pg video, .sc-pp video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; background: var(--card); }
.stage[data-showcase].no-phone .dev-phone { opacity: 0; transform: translateZ(0) translateY(40px); pointer-events: none; }

.stage[data-showcase] .stage-scene { margin-right: 3%; }
.sc-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-tab { position: relative; overflow: hidden; font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; cursor: pointer; transition: color .2s, border-color .2s; }
.sc-tab:hover { color: var(--fg); border-color: var(--muted); }
.sc-tab[aria-selected="true"] { color: var(--fg); border-color: var(--fg); }
:root[data-theme="dark"] .sc-tab[aria-selected="true"] { border-color: var(--accent); }
.sc-tab b { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); }
.sc-play { align-self: flex-start; font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg); background: transparent; border: 1px solid var(--fg); border-radius: 999px; padding: 9px 15px; cursor: pointer; }
.sc-play[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .sc-pg, .sc-pp { transition: none; } }
@media (max-width: 560px) { .sc-tab { padding: 8px 12px; } }

.nav { align-items: center; flex-wrap: wrap; row-gap: 10px; }
.nav a.cta-pill { padding: 8px 16px; border-bottom: 0; color: var(--accent-fg); align-self: center; }
.nav a.cta-pill:hover { color: var(--accent-fg); }
.nav a.cta-pill[aria-current="page"] { color: var(--accent-fg); font-weight: 600; border-bottom: 0; }
.cta-pill { display: inline-flex; align-items: center; gap: .4em; padding: 8px 16px; border-radius: 99px; background: var(--accent); color: var(--accent-fg); font-size: 13px; font-weight: 600; letter-spacing: .01em; text-decoration: none; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease; }
.cta-pill span { display: inline-block; transition: transform .15s ease; }
.cta-pill:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px var(--accent); }
.cta-pill:hover span { transform: translateX(3px); }
.cta-pill[aria-current="page"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
:root[data-theme="dark"] .cta-pill:hover { box-shadow: 0 0 18px -4px var(--accent); }

.cta-block { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px 40px; margin: 64px 0 8px; padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); background: var(--card); }
.cta-block h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
.cta-block p { margin: 0; max-width: 54ch; font-size: 15px; color: var(--muted); }
:root[data-theme="dark"] .cta-block { border-color: rgba(57, 255, 106, .35); box-shadow: 0 0 0 1px rgba(57, 255, 106, .08) inset; }

.contact { max-width: 720px; padding-bottom: 24px; }
.cform { display: grid; gap: 18px; position: relative; }
.cf-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cf-field { display: grid; gap: 6px; min-width: 0; }
.cf-field > span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cf-field input, .cf-field select, .cf-field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px; }
.cf-field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.cf-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
.cf-actions .btn { cursor: pointer; font-family: inherit; }
.cf-actions .btn[disabled] { opacity: .55; cursor: progress; }
.cf-or { font-size: 13px; color: var(--muted); }
.cf-or a { color: var(--fg); }
.cf-status { margin: 0; min-height: 1.5em; font-size: 14px; line-height: 1.5; }
.cf-status.ok { color: #1a8a4a; font-weight: 600; }
.cf-status.err { color: var(--accent); }
:root[data-theme="dark"] .cf-status.ok { color: #39ff6a; }
:root[data-theme="dark"] .cf-status.err { color: #ff5470; }
@media (max-width: 639.98px) { .cf-row { grid-template-columns: minmax(0, 1fr); } .cta-pill { padding: 7px 14px; } }

.menu { display: contents; }
.burger { display: none; }
@media (max-width: 960px) {
	.top { position: relative; gap: 12px 20px; padding-top: 14px; padding-bottom: 10px; }
	.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; flex: 1 1 100%; }
	.nav { flex: 0 0 100%; flex-direction: column; align-items: stretch; gap: 0; font-size: 18px; }
	.nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
	.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
	.nav a.cta-pill { margin-top: 16px; align-self: flex-start; padding: 12px 20px; font-size: 15px; border-bottom: 0; }
	.menu .sp { display: none; }
	.js .top { flex-wrap: nowrap; justify-content: space-between; }
	.js .burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; flex: 0 0 auto; width: 44px; height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
	.js .burger span { display: block; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
	.js .top.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.js .top.is-open .burger span:nth-child(2) { opacity: 0; }
	.js .top.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.js .menu { display: none; position: absolute; z-index: 40; left: 0; right: 0; top: 100%; flex: none; padding: 8px max(16px, env(safe-area-inset-left, 0px)) 24px; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 28px 40px -26px rgba(0, 0, 0, .4); }
	.js .top.is-open .menu { display: flex; animation: menu-in .22s ease both; }
	.theme button { width: 38px; height: 38px; }
	.lang { font-size: 13px; gap: 10px; }
	.lang a { padding: 10px 4px; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .top.is-open .menu { animation: none; } }

.crumbs-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 20px 0 2px; font-size: 13px; color: var(--muted); }
.back-home { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px 6px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--muted); font-size: 12.5px; text-decoration: none; transition: color .2s, border-color .2s, transform .2s; }
.back-home:hover { color: var(--fg); border-color: var(--muted); transform: translateX(-2px); }
.trail { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.trail li + li::before { content: '/'; margin: 0 9px; opacity: .4; }
.trail a { text-decoration: none; } .trail a:hover { color: var(--fg); }
.trail li[aria-current] { color: var(--fg); opacity: .8; }

.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .75s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), transform .75s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
.js .rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(36px, 6vw, 84px) 0 clamp(48px, 7vw, 100px); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--accent); }
.hero h1 { margin: 0 0 22px; font-size: clamp(2.3rem, 5.2vw, 4.3rem); font-weight: 650; letter-spacing: -.04em; line-height: 1.03; text-wrap: balance; }
.hero h1 em { font-style: normal; }
:root[data-theme="dark"] .hero h1 em { text-shadow: -3px 0 rgba(255, 0, 60, .75), 3px 0 rgba(0, 255, 200, .7); }
.hero-lead { margin: 0 0 30px; max-width: 46ch; font-size: clamp(1rem, 1.4vw, 1.14rem); line-height: 1.65; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stage { gap: 10px; }
.hero-stage-link { position: absolute; inset: 0; z-index: 5; }
.hero-stage .sc-tabs { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-cap { align-self: flex-start; font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.hero-cap:hover, .hero-cap:focus-visible { color: var(--fg); }
.hero-stage .sc-play { position: relative; z-index: 6; }

.what { padding: clamp(48px, 8vw, 104px) 0 clamp(32px, 5vw, 64px); border-top: 1px solid var(--line); }
.block-h { margin: 0 0 clamp(24px, 4vw, 44px); font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.what-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); }
.what-card { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 26px; min-height: clamp(360px, 32vw, 460px); padding: clamp(22px, 3vw, 38px); border: 1px solid var(--line); background: var(--card); overflow: hidden; isolation: isolate; text-decoration: none; transition: border-color .25s ease; }
.what-card:hover, .what-card:focus-visible { border-color: var(--accent); }
.what-num { font: 600 12px/1 var(--mono); letter-spacing: .14em; color: var(--muted); }
.what-body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 46%; }
.what-name { font-size: clamp(2rem, 3.3vw, 2.8rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.what-intro { font-size: 15px; line-height: 1.55; color: var(--muted); }
.what-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.what-tags i { font-style: normal; font-size: 12px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); }
.what-go { margin-top: 8px; padding-bottom: 3px; border-bottom: 1px solid var(--accent); font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg); }
.what-fan { position: absolute; z-index: 1; right: 4%; bottom: 7%; width: 44%; height: 66%; pointer-events: none; }
.what-fan .wf { position: absolute; display: block; width: 54%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.wf-1 { left: 0; top: 14%; z-index: 1; transform: translate(calc(var(--mx, 0) * -12px), calc(var(--my, 0) * -8px)) rotate(-7deg); }
.wf-2 { left: 26%; top: 28%; z-index: 3; transform: translate(calc(var(--mx, 0) * 16px), calc(var(--my, 0) * 10px)) rotate(2deg); }
.wf-3 { right: 0; top: 4%; z-index: 2; transform: translate(calc(var(--mx, 0) * 24px), calc(var(--my, 0) * -14px)) rotate(8deg); }
.what-card:hover .wf-1, .what-card:focus-visible .wf-1 { transform: translate(calc(var(--mx, 0) * -12px - 12px), calc(var(--my, 0) * -8px)) rotate(-10deg); }
.what-card:hover .wf-2, .what-card:focus-visible .wf-2 { transform: translate(calc(var(--mx, 0) * 16px), calc(var(--my, 0) * 10px - 8px)) rotate(1deg); }
.what-card:hover .wf-3, .what-card:focus-visible .wf-3 { transform: translate(calc(var(--mx, 0) * 24px + 12px), calc(var(--my, 0) * -14px)) rotate(11deg); }
:root[data-theme="dark"] .what-card:hover { box-shadow: 0 0 40px rgba(57, 255, 106, .12); }

.selected { padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.sel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.sel { display: block; text-decoration: none; }
.sel-img { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); background: var(--card); transition: border-color .25s ease; }
.sel-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.sel:hover .sel-img img, .sel:focus-visible .sel-img img { transform: scale(1.05); }
.sel:hover .sel-img, .sel:focus-visible .sel-img { border-color: var(--accent); }
.sel-cap { display: flex; flex-direction: column; gap: 3px; margin-top: 12px; font-size: 14px; }
.sel-cap b { font-weight: 600; }
.sel-cap span { font-size: 13px; color: var(--muted); }
.sel-all { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: clamp(22px, 3vw, 38px) 0 0; }

.who { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center; padding: clamp(40px, 6vw, 88px) 0; border-top: 1px solid var(--line); }
.who-photo img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--line); box-shadow: var(--shadow); }
.who-text .block-h { margin-bottom: 18px; font: 650 clamp(1.7rem, 3.2vw, 2.5rem)/1.08 var(--font); letter-spacing: -.035em; text-transform: none; color: var(--fg); text-wrap: balance; }
.who-text > p { margin: 0 0 18px; max-width: 54ch; font-size: 1.04rem; line-height: 1.65; color: var(--muted); }
.who-points { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.who-points li { position: relative; padding-left: 28px; font-size: 15px; }
.who-points li::before { content: ''; position: absolute; left: 0; top: .62em; width: 16px; height: 2px; background: var(--accent); }

@media (max-width: 960px) {
	.hero { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.what-grid { grid-template-columns: minmax(0, 1fr); }
	.sel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.who { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.what-card { min-height: 0; gap: 20px; }
	.what-fan { position: relative; right: auto; top: auto; width: 100%; height: 210px; margin-top: 4px; }
	.what-fan .wf { width: 46%; }
	.wf-1 { left: 2%; top: 10%; } .wf-2 { left: 27%; top: 22%; } .wf-3 { right: 2%; top: 4%; }
	.who { grid-template-columns: minmax(0, 1fr); }
	.who-photo { max-width: 200px; }
}

.crumbs-bar + .intro { padding-top: 22px; }
.sec-back { margin: 8px 0 0; padding-top: 6px; }
.wall { column-gap: clamp(18px, 2.4vw, 34px); }
.card { margin-bottom: clamp(22px, 3vw, 38px); }

.card-web .cw-scene { position: relative; display: block; aspect-ratio: 16 / 11; perspective: 1400px; margin-right: 3%; }
.card-web .cw-tilt { position: absolute; inset: 0; display: block; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.card-web .cw-tilt.is-live { transition: transform .08s linear; }
.cw-browser { position: absolute; left: 0; top: 0; width: 88%; display: block; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; box-shadow: 0 26px 40px -26px rgba(0, 0, 0, .55), var(--shadow); transition: border-color .2s ease, box-shadow .3s ease; }
.card-web:hover .cw-browser, .card-web:focus-visible .cw-browser { border-color: var(--accent); }
:root[data-theme="dark"] .card-web:hover .cw-browser { box-shadow: 0 0 36px rgba(57, 255, 106, .25), 0 26px 40px -26px rgba(0, 0, 0, .7); }
.cw-top { display: flex; align-items: center; gap: 5px; height: 25px; padding: 0 10px; border-bottom: 1px solid var(--line); background: var(--card); }
.cw-top i { width: 7px; height: 7px; border-radius: 50%; background: #ff5f57; }
.cw-top i:nth-child(2) { background: #febc2e; } .cw-top i:nth-child(3) { background: #28c840; }
.cw-url { flex: 1; max-width: 62%; margin: 0 auto; font: normal 10px/1.2 var(--mono); color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-vp { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--card); }
.card .cw-vp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; border: 0; box-shadow: none; opacity: 0; transition: opacity .6s ease; }
.card .cw-vp img.is-on { opacity: 1; }
.cw-phone { position: absolute; right: 1%; bottom: 0; width: 22%; display: block; border: 4px solid #0c0c0d; border-radius: 16px; background: #0c0c0d; overflow: hidden; box-shadow: 0 24px 34px -18px rgba(0, 0, 0, .7); transform: translateZ(60px); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.card .cw-phone img { display: block; width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top center; border: 0; border-radius: 12px; box-shadow: none; }
.card-web:hover .cw-phone, .card-web:focus-visible .cw-phone { transform: translateZ(60px) translateY(-8px); }
.card-web .cap { margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .card-web .cw-tilt, .cw-phone { transition: none; } }

.work { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); padding-top: 18px; padding-bottom: 8px; }
.work-info { top: 28px; }
.work-info h1 { margin: 0 0 18px; }
.work-info .lead { margin: 0 0 30px; font-size: 1.06rem; line-height: 1.6; }
.work-info .meta { margin: 0 0 32px; }
.work-info .meta div { padding: 14px 0; }
.work-body > p { margin: 0 0 30px; }
.work-info .desc { font-size: 15.5px; line-height: 1.75; }
.work-media { gap: 40px; }
.work-nav { margin-top: clamp(48px, 7vw, 88px); padding-top: 26px; }
@media (max-width: 899.98px) { .work { grid-template-columns: minmax(0, 1fr); gap: 30px; } .work-info { position: static; } .work-info .desc { max-width: none; } }

.stage-poster { gap: 28px; }
.stage-poster .stage-scene { aspect-ratio: auto; display: flex; justify-content: center; padding: clamp(10px, 2.4vw, 30px) 0; perspective: 1600px; }
.stage-poster .stage-tilt { position: relative; inset: auto; display: flex; justify-content: center; width: 100%; }
.dev-poster { position: relative; margin: 0; max-width: min(100%, 780px); padding: clamp(10px, 1.8vw, 24px); background: #fff; border: 1px solid var(--line); box-shadow: 0 44px 64px -36px rgba(0, 0, 0, .55), var(--shadow); transform-style: preserve-3d; }
:root[data-theme="dark"] .dev-poster { background: var(--card); box-shadow: 0 0 44px rgba(57, 255, 106, .12), 0 44px 64px -36px rgba(0, 0, 0, .8); }
.dev-poster::before { content: ''; position: absolute; inset: 16px -16px -16px 16px; z-index: -1; border: 1px solid var(--line); background: var(--card); transform: translateZ(-34px); }
.dev-poster a { display: block; line-height: 0; cursor: zoom-in; }
.work-media .dev-poster img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(76vh, 840px); margin: 0 auto; border: 0; box-shadow: none; transition: opacity .25s ease; }
.work-media .dev-poster img.is-swap { opacity: 0; }
.ps-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ps-thumbs button { width: 64px; height: 64px; padding: 0; border: 1px solid var(--line); background: var(--card); cursor: pointer; opacity: .72; transition: opacity .2s, border-color .2s, transform .2s; }
.ps-thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.ps-thumbs button[aria-pressed="true"] { opacity: 1; border-color: var(--accent); }
.work-media .ps-thumbs img { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; border: 0; box-shadow: none; }

.about { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: start; max-width: 1100px; padding-bottom: 32px; }
.about-photo { position: sticky; top: 28px; margin: 0; }
.about-photo img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--line); box-shadow: var(--shadow); }
.about-photo figcaption { margin-top: 10px; font: 12px/1.3 var(--mono); letter-spacing: .08em; color: var(--muted); }
.about-body .desc { max-width: 62ch; font-size: 16px; line-height: 1.75; }
@media (max-width: 760px) { .about { grid-template-columns: minmax(0, 1fr); } .about-photo { position: static; max-width: 280px; } }

@media (min-width: 900px) {
	.work.media-sticky .work-info { position: static; }
	.work.media-sticky .work-media { position: sticky; top: 28px; align-self: start; }
}

@media (max-width: 899.98px) {
	.work { display: flex; flex-direction: column; align-items: stretch; gap: 30px; }
	.work-info { display: contents; }
	.work-head { order: 1; }
	.work-media { order: 2; }
	.work-body { order: 3; }
	.work-head .lead { margin-bottom: 0; }
}
@media (max-width: 639.98px) {
	.wall:not(.wall-web) { columns: 2; column-gap: 14px; }
	.wall:not(.wall-web) .card { margin-bottom: 20px; }
	.card .tag { left: 8px; top: 8px; padding: 3px 7px; font-size: 9px; letter-spacing: .08em; }
	.card .cap { flex-direction: column; gap: 2px; font-size: 12.5px; }
}

@media (max-width: 960px), (pointer: coarse) {
	.foot a { display: inline-flex; align-items: center; min-height: 40px; }
	.foot-links { gap: 4px 18px; }
	.trail li, .trail a { display: inline-flex; align-items: center; min-height: 36px; }
	.work-nav a { display: inline-flex; align-items: center; min-height: 40px; }
	.sec-all { position: relative; }
	.sec-all::after { content: ''; position: absolute; left: -6px; right: -6px; top: -12px; bottom: -12px; }
	.stage-bar button, .sc-tab { min-height: 40px; }
	.cf-or a { display: inline-flex; align-items: center; min-height: 36px; }
}

.others { margin-top: clamp(48px, 7vw, 88px); padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.others .block-h { margin-bottom: clamp(18px, 3vw, 30px); }
.back-btn { color: var(--fg); }
@media (max-width: 960px) { .others .sel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.obj-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.obj-nav a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--muted); font-size: 13px; text-decoration: none; transition: color .2s, border-color .2s; }
.obj-nav a:hover, .obj-nav a:focus-visible { color: var(--fg); border-color: var(--accent); }
.obj { padding-top: clamp(24px, 4vw, 48px); border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.obj-h { margin: 0 0 12px; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.1; }
.obj-text { margin: 0 0 8px; max-width: 58ch; color: var(--muted); line-height: 1.65; }
.work-media > .obj:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 960px) { .obj-nav a { padding: 10px 16px; } }

.sel-grid[data-shuffle] .sel { transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1); }
.sel-grid[data-shuffle] .sel.is-out { opacity: 0; transform: translateY(12px) scale(.985); }
@media (prefers-reduced-motion: reduce) { .sel-grid[data-shuffle] .sel { transition: none; } }

.about-body .desc p { margin: 0 0 1.1em; }
.about-order { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 22px; margin: 1.6em 0 1.8em; padding: clamp(16px, 2.4vw, 24px) clamp(18px, 2.6vw, 28px); border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--card); }
.about-order p { margin: 0; max-width: 34ch; font-weight: 600; font-size: 1.02rem; line-height: 1.4; }
.about-order .btn { white-space: nowrap; }
:root[data-theme="dark"] .about-photo img, :root[data-theme="dark"] .who-photo img { filter: grayscale(.3) brightness(.7) contrast(.94) saturate(.85); transition: filter .5s ease; }
:root[data-theme="dark"] .about-photo:hover img, :root[data-theme="dark"] .who-photo:hover img { filter: grayscale(.1) brightness(.88) contrast(.98); }

.sel:hover .sel-img.is-stage img, .sel:focus-visible .sel-img.is-stage img { transform: none; }
.sel-img.is-stage { display: flex; align-items: center; padding: 10px 8% 10px 6%; }
.sel-img.is-stage .sel-stage { width: 100%; gap: 0; }
.sel-stage .dev-top { height: 20px; padding: 0 8px; gap: 4px; }
.sel-stage .dev-top i { width: 6px; height: 6px; }
.sel-stage .dev-url { max-width: 70%; padding: 2px 8px; font-size: 9px; }
.sel-stage .dev-browser { border-radius: 8px; width: 88%; }
.sel-stage .dev-phone { width: 24%; border-width: 3px; border-radius: 12px; }
.sel-stage .dev-phone img { border-radius: 9px; }
.sel-stage .dev-phone::before { top: 4px; height: 4px; }
.sel-stage .sc-ph { border-radius: 9px; }
.sel-stage .stage-scene { margin-right: 0; }
.sel:hover .sel-img.is-stage, .sel:focus-visible .sel-img.is-stage { border-color: var(--accent); }

.hero-solo { grid-template-columns: minmax(0, 1fr); }
.hero-solo .hero-text { max-width: 760px; }
.sel-stage .stage-scene { aspect-ratio: 1 / 1.02; }
.sel-stage .dev-phone { width: 30%; }
.sel-stage .dev-browser { width: 92%; }
.sel-img.is-stage { padding: 8px 6% 8px 4%; }
@media (min-width: 961px) { .sel-grid.sel-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sel-grid.sel-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sel-grid.sel-n1 { grid-template-columns: minmax(0, 360px); } }
.hero-cap { padding: 10px 0; }

.work-media a.ps-link, .work-media > a[href] { cursor: zoom-in; }
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(6, 7, 9, .94); opacity: 0; transition: opacity .22s ease; overscroll-behavior: contain; }
.lb[hidden] { display: none; }
.lb.is-in { opacity: 1; }
.lb-view { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.lb-img { display: block; max-width: min(96vw, 1800px); max-height: 92vh; width: auto; height: auto; border: 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); background: #111; cursor: zoom-in; transform-origin: 50% 50%; will-change: transform; transition: transform .22s cubic-bezier(.2, .7, .2, 1), opacity .2s ease; -webkit-user-drag: none; }
.lb.is-loading .lb-img { opacity: .25; }
.lb.is-zoomed .lb-img { cursor: grab; }
.lb.is-drag .lb-img { cursor: grabbing; transition: none; }
.lb-btn { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; background: rgba(20, 22, 24, .72); color: #fff; font: 300 28px/1 var(--font, system-ui); cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s, border-color .2s; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(40, 44, 48, .92); border-color: var(--accent, #fff); outline: none; }
.lb-btn[hidden] { display: none; }
.lb-close { top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); }
.lb-zoom { top: max(14px, env(safe-area-inset-top)); right: calc(max(14px, env(safe-area-inset-right)) + 58px); }
.lb-prev { left: max(14px, env(safe-area-inset-left)); top: 50%; margin-top: -24px; }
.lb-next { right: max(14px, env(safe-area-inset-right)); top: 50%; margin-top: -24px; }
.lb-count { position: absolute; z-index: 2; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 5px 14px; border-radius: 99px; background: rgba(20, 22, 24, .72); color: #e9ece9; font: 600 12px/1 var(--mono, monospace); letter-spacing: .1em; }
.lb-count:empty { display: none; }
@media (max-width: 640px) { .lb-btn { width: 44px; height: 44px; } .lb-prev, .lb-next { top: auto; bottom: max(10px, env(safe-area-inset-bottom)); margin-top: 0; } .lb-prev { left: 14px; } .lb-next { right: 14px; } .lb-img { max-width: 100vw; max-height: 86vh; } }
@media (prefers-reduced-motion: reduce) { .lb, .lb-img { transition: none; } }

.sel-img.is-stage { padding: 0; background: var(--card); }
.sel-stage .stage-scene { aspect-ratio: auto; margin-right: 0; }
.sel-stage .stage-tilt { position: relative; inset: auto; }
.sel-stage .dev-browser { position: relative; width: 100%; border-radius: 0; border-width: 1px 0; box-shadow: none; }
.sel-stage .dev-top { height: 22px; }
.sel-stage .dev-url { font-size: 10px; }

.sc-card .sc-tabs { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card-live .stage { gap: 0; }
.card-live .cap { margin-top: 14px; }
.card-live:hover .dev-browser { border-color: var(--accent); }
:root[data-theme="dark"] .card-live:hover .dev-browser { box-shadow: 0 0 36px rgba(57, 255, 106, .25), 0 26px 40px -26px rgba(0, 0, 0, .7); }

.what-fan.is-web { width: 50%; height: 78%; right: 3%; bottom: 6%; }
.wfw { position: absolute; display: block; width: 76%; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--card); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .55), var(--shadow); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.wfw-bar { display: flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-bottom: 1px solid var(--line); background: var(--card); }
.wfw-bar i { width: 6px; height: 6px; border-radius: 50%; background: #ff5f57; }
.wfw-bar i:nth-child(2) { background: #febc2e; } .wfw-bar i:nth-child(3) { background: #28c840; }
.wfw-bar em { flex: 1; max-width: 62%; margin: 0 auto; padding: 2px 8px; border-radius: 99px; background: var(--bg); color: var(--muted); font: normal 9px/1.3 var(--mono); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.what-fan .wfw img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; border: 0; box-shadow: none; }
.wfw-1 { left: 0; top: 0; z-index: 1; transform: translate(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -6px)) rotate(-3deg); }
.wfw-2 { left: 14%; top: 28%; z-index: 2; transform: translate(calc(var(--mx, 0) * 14px), calc(var(--my, 0) * 8px)) rotate(2deg); }
.wfw-3 { left: 24%; top: 56%; z-index: 3; transform: translate(calc(var(--mx, 0) * 20px), calc(var(--my, 0) * -10px)) rotate(-1deg); }
.what-card:hover .wfw-1 { transform: translate(calc(var(--mx, 0) * -10px - 8px), calc(var(--my, 0) * -6px - 4px)) rotate(-5deg); }
.what-card:hover .wfw-2 { transform: translate(calc(var(--mx, 0) * 14px), calc(var(--my, 0) * 8px - 6px)) rotate(1deg); }
.what-card:hover .wfw-3 { transform: translate(calc(var(--mx, 0) * 20px + 8px), calc(var(--my, 0) * -10px)) rotate(1deg); }
@media (max-width: 640px) { .what-fan.is-web { width: 64%; } .wfw-bar { height: 16px; } }

.about-body .desc { max-width: 58ch; font-size: 17px; line-height: 1.72; color: var(--fg); }
.about-body .desc p { margin: 0 0 1.15em; }
.about-body .desc p.about-lead { margin-bottom: 1.1em; font-size: clamp(1.25rem, 2.1vw, 1.55rem); line-height: 1.42; font-weight: 520; letter-spacing: -.012em; text-wrap: pretty; }
.about-h { display: flex; align-items: center; gap: 12px; margin: 2.4em 0 .7em; font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.about-h::before { content: ''; width: 28px; height: 2px; background: var(--accent); }
.about-h + p { color: var(--fg); }
.about-body .desc > p:not(.about-lead) { color: color-mix(in srgb, var(--fg) 86%, var(--bg)); }
.about-order { margin: 1.8em 0 .4em; }
.about-links { margin-top: 2.2em; padding-top: 1.6em; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .about-body .desc { font-size: 16.5px; } }
.about-body .desc .about-order p { margin: 0; }
.sel-stage .sc-vp { aspect-ratio: 1 / 1.08; }
.sel-img.is-stage { align-items: center; }
.what-fan.is-web { width: 46%; }

.sc-pg video, .sc-pp video { opacity: 0; transition: opacity .3s ease; }
.sc-pg video.is-playing, .sc-pp video.is-playing { opacity: 1; }

@media (max-width: 640px) {
	.what-body { max-width: none; }
	.what-fan.is-web { position: relative; right: auto; bottom: auto; width: 100%; height: 300px; margin-top: 4px; }
	.wfw { width: 72%; }
	.wfw-1 { left: 0; top: 0; }
	.wfw-2 { left: 14%; top: 30%; }
	.wfw-3 { left: 26%; top: 60%; }
}

.wfw.stage { gap: 0; }
.wfw .sc-vp { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--card); }
.what-fan .wfw .sc-pg img { position: absolute; left: 0; top: 0; width: 100%; height: auto; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
.what-fan .wfw .sc-pg img.sc-poster { height: 100%; object-fit: cover; object-position: top center; }
.what-fan.is-web.wins-2 .wfw-1 { left: 2%; top: 4%; }
.what-fan.is-web.wins-2 .wfw-2 { left: 20%; top: 38%; }
@media (max-width: 640px) {
	.what-fan.is-web { height: 310px; }
	.wfw { width: 70%; }
	.wfw-1 { left: 3%; top: 0; }
	.wfw-2 { left: 17%; top: 30%; }
	.wfw-3 { left: 27%; top: 60%; }
	.what-fan.is-web.wins-2 { height: 270px; }
	.what-fan.is-web.wins-2 .wfw { width: 74%; }
	.what-fan.is-web.wins-2 .wfw-1 { left: 3%; top: 0; }
	.what-fan.is-web.wins-2 .wfw-2 { left: 23%; top: 38%; }
}

.work-info .desc p { margin: 0 0 1em; }
.work-info .desc b { font-weight: 650; color: var(--fg); }
.work-info .desc .desc-note { margin: 0 0 1.5em; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--card); }

.about { grid-template-columns: minmax(0, 1fr) minmax(220px, 340px); gap: clamp(32px, 7vw, 110px); max-width: 1120px; }
.about-body { grid-column: 1; grid-row: 1; }
.about-photo { grid-column: 2; grid-row: 1; position: sticky; top: 28px; isolation: isolate; }
.about-photo::before { content: ''; position: absolute; z-index: -1; inset: 16px -16px -16px 16px; border: 1px solid var(--accent); }
.about-photo img { aspect-ratio: 4 / 5; object-position: 50% 18%; }
.about-body .desc p.about-lead { font-size: clamp(1.15rem, 1.8vw, 1.38rem); line-height: 1.45; }
@media (max-width: 760px) {
	.about { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.about-photo { grid-column: 1; grid-row: 1; position: relative; top: auto; max-width: 230px; margin: 0 16px 0 auto; }
	.about-body { grid-row: 2; }
}
.about { grid-template-columns: minmax(0, 1fr) minmax(220px, 330px); gap: clamp(32px, 5vw, 80px); max-width: 1080px; }
.about-body .desc { max-width: 64ch; }
.about-photo figcaption { margin-top: 30px; }

.who { grid-template-columns: minmax(0, 1fr) minmax(200px, 320px); gap: clamp(32px, 6vw, 96px); max-width: 1080px; }
.who-text { grid-column: 1; grid-row: 1; }
.who-photo { grid-column: 2; grid-row: 1; position: relative; isolation: isolate; }
.who-photo::before { content: ''; position: absolute; z-index: -1; inset: 14px -14px -14px 14px; border: 1px solid var(--accent); }
.who-photo img { aspect-ratio: 4 / 5; object-position: 50% 18%; }
@media (max-width: 760px) {
	.about, .who { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.about-photo, .who-photo { grid-column: 1; grid-row: 1; position: relative; top: auto; width: 62%; max-width: 250px; margin: 0 18px 0 auto; }
	.about-body, .who-text { grid-column: 1; grid-row: 2; }
}

@media (max-width: 760px) {
	.about-photo, .who-photo { width: 44%; max-width: 190px; margin: 4px auto 6px; }
	.about-photo::before, .who-photo::before { inset: 10px -10px -10px 10px; }
	.about-photo figcaption { margin-top: 22px; text-align: center; }
	.about, .who { gap: 22px; }
	.about-body .desc { font-size: 17px; line-height: 1.7; }
	.about-body .desc p.about-lead { font-size: 1.32rem; line-height: 1.42; font-weight: 520; letter-spacing: -.012em; }
	.about-h { margin-top: 2.2em; }
	.about-order { padding: 16px 18px; }
}

@media (max-width: 760px) {
	.about-photo, .who-photo { width: 100%; max-width: none; margin: 0; }
	.about-photo::before, .who-photo::before { display: none; }
	.about-photo img, .who-photo img { aspect-ratio: 4 / 3; object-position: 50% 22%; box-shadow: none; }
	.about-photo figcaption { margin-top: 10px; text-align: left; }
	.about, .who { gap: 20px; }
}

.sec-all { display: inline-block; padding: 11px 0; }
.sel-all { gap: 0 30px; }

.who-wrap { border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 88px) 0; }
.who { border-top: 0; padding: 0; }

@media (min-width: 761px) {
	.about { grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); }
	.about-photo { grid-column: 1; }
	.about-body { grid-column: 2; }
	.who { grid-template-columns: minmax(200px, 320px) minmax(0, 1fr); }
	.who-photo { grid-column: 1; }
	.who-text { grid-column: 2; }
}

@media (min-width: 1100px) {
	html { zoom: .9; }
	body { min-height: calc(100vh / .9); }
}

/* Сторінка без фото (наприклад, /restaurants/): одна колонка */
html body .about.about--solo { display: block; max-width: 780px; margin-left: 0; margin-right: 0; }
@media (min-width: 1000px) {
	html body .about.about--solo.about--demo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 5vw, 80px); align-items: start; max-width: 1240px; }
	html body .about--demo .about-body { grid-column: 1; grid-row: 1; }
	html body .about--demo .rest-demo { grid-column: 2; grid-row: 1; position: sticky; top: 28px; margin: 0; }
}

/* Демо-ресторан на /restaurants/: сцена екранів у колонці тексту */
.rest-demo { margin: 44px 0 52px; }
.rest-demo figcaption { margin-top: 14px; font: 13px/1.5 var(--mono); color: var(--muted); }

/* Сторінка помилки, кнопки заклику (WhatsApp поруч) */
.err-code { margin: 36px 0 -6px; font: 600 13px/1 var(--mono); letter-spacing: .2em; color: var(--accent); }
.err-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 56px; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.about-order .btn + .btn { margin-left: 10px; }
