/*
Theme Name: Jenya Portfolio Story
Theme URI: https://jenya-potapov.ru/
Author: Evgenij Potapov
Description: Портфолио-история Евгения Потапова с понятными текстами, модульной сеткой и встроенной страницей настроек.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: jenya-portfolio-story
*/

:root {
  --accent: #6558f5;
  --accent-2: #baf36d;
  --bg: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #ebedf2;
  --text: #0b0c11;
  --muted: #70727e;
  --border: rgba(11, 12, 17, 0.12);
  --shadow: 0 30px 80px rgba(28, 26, 56, 0.14);
  --case-bg: #0b0c11;
  --case-text: #f6f7fb;
  --case-muted: rgba(246, 247, 251, 0.62);
  --dash-bg: #f7f7fb;
  --dash-card: #ffffff;
  --radius: 32px;
  --font: Arial, Helvetica, sans-serif;
}

[data-theme="dark"] {
  --bg: #090a0f;
  --surface: #13141b;
  --surface-2: #1a1b24;
  --text: #f5f6f9;
  --muted: #a4a6b2;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --case-bg: #eeeff4;
  --case-text: #0b0c11;
  --case-muted: rgba(11, 12, 17, 0.6);
  --dash-bg: #171821;
  --dash-card: #20212b;
}

* { box-sizing: border-box; }
html { width: 100%; max-width: 100%; overflow-x: hidden; overscroll-behavior-x: none; scroll-behavior: smooth; }
body {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	overflow-x: hidden;
	overscroll-behavior-x: none;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  transition: color .35s ease, background .35s ease;
}
main { position: relative; width: 100%; max-width: 100%; min-width: 0; overflow-x: clip; isolation: isolate; }
main > section, .topbar, .footer { max-width: 100%; }

@supports (overflow: clip) {
	html, body { overflow-x: clip; }
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { color: inherit; font: inherit; }
svg { display: block; }
.shell { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.page-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(18px); transform: translate3d(0, var(--parallax-y, 0), 0); pointer-events: none; }
.page-orb-one { width: 520px; height: 520px; top: 90px; right: -150px; background: color-mix(in srgb, var(--accent) 26%, transparent); }
.page-orb-two { width: 370px; height: 370px; top: 620px; left: -210px; background: color-mix(in srgb, var(--accent-2) 34%, transparent); }
.page-orb-three { width: 420px; height: 420px; top: 2650px; right: -220px; background: color-mix(in srgb, var(--accent) 18%, transparent); }

.topbar {
	position: sticky;
	z-index: 50;
	top: 10px;
	min-height: 62px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	margin-top: 10px;
	padding: 8px 12px;
	border: 1px solid var(--border);
	border-radius: 20px;
	background: color-mix(in srgb, var(--surface) 82%, transparent);
	box-shadow: 0 12px 40px color-mix(in srgb, var(--text) 9%, transparent);
	backdrop-filter: blur(18px) saturate(135%);
	-webkit-backdrop-filter: blur(18px) saturate(135%);
}
.identity { display: flex; align-items: center; gap: 12px; }
.identity-mark { width: 44px; aspect-ratio: 1; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 14px; background: transparent; filter: drop-shadow(0 5px 9px rgba(0,0,0,.16)); }
.identity-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.identity > span:last-child { display: grid; gap: 2px; }
.identity strong { font-size: 13px; letter-spacing: -.01em; }
.identity small { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.topbar nav { display: flex; gap: 22px; }
.topbar nav a { color: var(--muted); font-size: 12px; font-weight: 700; transition: color .2s ease; }
.topbar nav a:hover { color: var(--text); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.mobile-contact-link { display: none; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 100px; color: var(--muted); background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(14px); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; transition: color .25s ease, border-color .25s ease, transform .25s ease; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: #35c46a; box-shadow: 0 0 0 4px rgba(53,196,106,.14); }
.status-pill:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); transform: translateY(-2px); }
.theme-toggle { width: 44px; aspect-ratio: 1; display: grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); cursor: pointer; transition: transform .2s ease, background .35s ease; }
.theme-toggle:hover { transform: rotate(8deg) scale(1.04); }
.theme-toggle svg { grid-area: 1/1; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transition: opacity .2s ease, transform .25s ease; }
.theme-toggle .icon-moon { opacity: 0; transform: scale(.6) rotate(-20deg); }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 0; transform: scale(.6) rotate(20deg); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: scale(1) rotate(0); }

.hero { min-height: 710px; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(44px, 6vw, 90px); padding-block: 60px 92px; }
.hero-copy { position: relative; z-index: 3; }
.hero-kicker { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 560px; margin-bottom: 28px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero-kicker span { display: flex; align-items: center; gap: 10px; }
.hero-kicker span::before { content: ""; width: 34px; height: 2px; background: var(--accent); }
.hero-kicker b { color: var(--text); }
.hero h1, .section-head h2, .case-intro h2, .skills-title h2, .closing h2 { margin: 0; font-family: var(--font); font-size: clamp(54px, 5.4vw, 84px); line-height: 1; letter-spacing: -.062em; font-weight: 800; text-wrap: balance; word-break: normal; overflow-wrap: normal; }
.hero h1 em, .section-head h2 em, .skills-title h2 em, .closing h2 em { color: var(--accent); font-style: normal; }
.hero h1 em { display: block; margin-top: .06em; }
.hero-description { max-width: 620px; margin: 26px 0 0; color: var(--muted); font-size: 16px; font-weight: 400; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; border: 1px solid var(--border); border-radius: 14px; font-size: 12px; font-weight: 800; transition: transform .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: #fff; border-color: var(--accent); background: var(--accent); box-shadow: 0 15px 35px color-mix(in srgb, var(--accent) 28%, transparent); }
.button-primary:hover { box-shadow: 0 20px 45px color-mix(in srgb, var(--accent) 38%, transparent); }
.button-secondary { background: var(--surface); }
.hero-note { display: flex; align-items: center; gap: 12px; max-width: 500px; margin: 42px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.hero-note i { flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-2) 20%, transparent); }

.product-stage { position: relative; min-width: 0; perspective: 1500px; }
.stage-glow { position: absolute; inset: 12% 6%; background: radial-gradient(circle at 30% 50%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 58%), radial-gradient(circle at 75% 22%, color-mix(in srgb, var(--accent-2) 55%, transparent), transparent 50%); filter: blur(35px); opacity: .6; }
.dashboard { --tilt-x: 0deg; --tilt-y: 0deg; position: relative; z-index: 2; overflow: hidden; border: 1px solid rgba(255,255,255,.7); border-radius: 28px; background: var(--dash-bg); box-shadow: var(--shadow); transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotate(-1.4deg); transform-style: preserve-3d; transition: transform .18s ease-out, background .35s ease; }
[data-theme="dark"] .dashboard { border-color: rgba(255,255,255,.1); }
.dashboard-top { height: 52px; display: flex; align-items: center; gap: 18px; padding: 0 18px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 9px; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d4d5dc; }
.window-dots i:first-child { background: #ff796e; }.window-dots i:nth-child(2) { background: #ffd368; }.window-dots i:last-child { background: #69d38d; }
.dashboard-top strong { color: var(--text); font-size: 10px; }
.dashboard-top > span { margin-left: auto; }
.dashboard-body { min-height: 460px; display: grid; grid-template-columns: 56px 1fr; }
.dashboard-nav { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 20px 0; border-right: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.dashboard-nav b { width: 28px; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 14px; border-radius: 9px; color: #fff; background: var(--accent); font-size: 8px; }
.dashboard-nav span { width: 28px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; }
.dashboard-nav .is-active { color: #fff; background: var(--text); }
[data-theme="dark"] .dashboard-nav .is-active { color: #0b0c11; background: #f5f6f9; }
.dashboard-main { min-width: 0; padding: 24px; }
.dash-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.dash-heading small, .dash-card small, .chart-card small { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dash-heading h2 { margin: 5px 0 0; font-size: 24px; letter-spacing: -.04em; }
.dash-live { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 100px; color: var(--muted); font-size: 8px; }
.dash-live i { width: 5px; height: 5px; border-radius: 50%; background: #35c46a; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash-card, .chart-card { position: relative; overflow: hidden; min-height: 124px; padding: 17px; border: 1px solid var(--border); border-radius: 17px; background: var(--dash-card); transition: background .35s ease; }
.dash-card { display: flex; flex-direction: column; align-items: flex-start; }
.dash-card strong { margin-top: 12px; font-size: 36px; letter-spacing: -.06em; }
.dash-card > span { margin-top: auto; color: var(--muted); font-size: 8px; }
.dash-card-purple { color: #fff; border-color: transparent; background: linear-gradient(145deg, var(--accent), #4636db); }
.dash-card-purple small, .dash-card-purple > span { color: rgba(255,255,255,.72); }
.dash-card-lime { color: #11130e; border-color: transparent; background: var(--accent-2); }
.dash-card-lime small, .dash-card-lime > span { color: rgba(17,19,14,.58); }
.mini-bars { width: 100%; height: 28px; display: flex; align-items: end; gap: 4px; margin-top: auto; }
.mini-bars i { flex: 1; height: 30%; border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--accent) 40%, transparent); }
.mini-bars i:nth-child(2){height:52%}.mini-bars i:nth-child(3){height:42%}.mini-bars i:nth-child(4){height:78%}.mini-bars i:nth-child(5){height:100%;background:var(--accent)}
.chart-card { grid-column: 1 / -1; min-height: 155px; }
.chart-card b { display: block; margin-top: 5px; font-size: 11px; }
.chart-card svg { position: absolute; inset: 50px 0 0; width: 100%; height: calc(100% - 50px); }
.chart-area { fill: url(#areaGradient); }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 3; vector-effect: non-scaling-stroke; }
.float-tag { position: absolute; z-index: 4; padding: 11px 15px; border: 1px solid rgba(255,255,255,.55); border-radius: 100px; color: #0b0c11; background: rgba(255,255,255,.78); box-shadow: 0 14px 40px rgba(28,26,56,.13); backdrop-filter: blur(16px); transform: translate3d(0, var(--parallax-y, 0), 40px); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.float-tag span { color: var(--accent); font-weight: 900; }
.float-tag-one { top: -22px; right: 12%; }.float-tag-two { bottom: -12px; left: -6%; }

.metric-rail { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 112px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: 0 20px 65px rgba(32,31,52,.06); transition: background .35s ease; }
.metric-rail article { min-height: 190px; display: grid; align-content: space-between; padding: 26px; border-right: 1px solid var(--border); }
.metric-rail article:last-child { border-right: 0; }
.metric-rail small { color: var(--muted); font-size: 9px; font-weight: 800; }
.metric-rail strong { font-size: clamp(38px, 4vw, 62px); letter-spacing: -.07em; }
.metric-rail p { max-width: 180px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.case-section { position: relative; overflow: hidden; padding: 220px 0 130px; color: var(--case-text); background: var(--case-bg); border-radius: 0; transition: color .35s ease, background .35s ease; }
.case-section::before, .case-section::after, .scope-section::before, .scope-section::after, .skills-section::before, .skills-section::after { content: ""; position: absolute; z-index: 0; left: 0; right: 0; height: 110px; pointer-events: none; }
.case-section::before, .scope-section::before, .skills-section::before { top: 0; background: linear-gradient(to bottom, var(--bg), transparent); }
.case-section::after, .scope-section::after, .skills-section::after { bottom: 0; background: linear-gradient(to bottom, transparent, var(--bg)); }
.case-section::before { top: -2px; height: 222px; background: linear-gradient(to bottom, var(--bg) 0%, color-mix(in srgb, var(--bg) 94%, var(--case-bg)) 12%, color-mix(in srgb, var(--bg) 78%, var(--case-bg)) 30%, color-mix(in srgb, var(--bg) 54%, var(--case-bg)) 50%, color-mix(in srgb, var(--bg) 30%, var(--case-bg)) 70%, color-mix(in srgb, var(--bg) 10%, var(--case-bg)) 88%, transparent 100%); }
.case-section::after { display: none; }
.case-section > *, .scope-section > *, .skills-section > * { position: relative; z-index: 1; }
.case-intro { display: grid; grid-template-columns: 1.25fr .75fr; column-gap: 72px; row-gap: 0; align-items: start; margin-bottom: 52px; }
.case-intro .section-label { grid-column: 1 / -1; }
.section-label { margin: 0 0 24px; color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.case-intro h2 { font-size: clamp(46px, 4.8vw, 74px); }
.case-intro > p:last-child { margin: 4px 0 0; color: var(--case-muted); font-size: 14px; font-weight: 400; line-height: 1.65; }
.case-canvas { display: grid; grid-template-columns: .82fr 1.18fr; gap: 16px; }
.product-brief, .product-flow, .case-role { position: relative; overflow: hidden; border: 1px solid color-mix(in srgb, var(--case-text) 14%, transparent); border-radius: 26px; }
.card-label { display: flex; align-items: center; gap: 10px; color: var(--accent-2); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.card-label span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 8px; }
.product-brief { min-height: 545px; display: flex; flex-direction: column; justify-content: flex-start; padding: 34px; background: color-mix(in srgb, var(--case-text) 3%, transparent); }
.product-brief::after { content: ""; position: absolute; width: 280px; height: 280px; right: -135px; top: -135px; border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent); border-radius: 50%; box-shadow: 0 0 0 38px color-mix(in srgb, var(--accent) 5%, transparent), 0 0 0 78px color-mix(in srgb, var(--accent) 4%, transparent); }
.product-brief h3, .product-flow h3, .case-role h3 { position: relative; z-index: 1; margin: 0; font-family: var(--font); font-size: clamp(30px, 2.8vw, 42px); line-height: 1.04; letter-spacing: -.05em; font-weight: 800; text-wrap: balance; word-break: normal; overflow-wrap: normal; }
.case-card-head { position: relative; z-index: 2; }
.case-card-head h3 { margin-top: 28px; }
.product-brief p { position: relative; z-index: 1; margin: 28px 0 26px; color: var(--case-muted); font-size: 14px; font-weight: 400; line-height: 1.62; }
.capability-list { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.capability-list span, .role-points span { padding: 9px 12px; border: 1px solid color-mix(in srgb, var(--case-text) 16%, transparent); border-radius: 100px; color: var(--case-muted); font-size: 9px; font-weight: 700; }
.product-signal { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; align-items: center; margin-top: auto; padding-top: 30px; }
.product-signal span { min-height: 56px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--case-text) 14%, transparent); border-radius: 14px; color: var(--case-text); background: color-mix(in srgb, var(--case-text) 4%, transparent); font-size: 10px; font-weight: 700; }
.product-signal i { color: var(--accent-2); font-size: 13px; font-style: normal; }
[data-theme="dark"] .product-brief .card-label, [data-theme="dark"] .case-role .card-label { color: #5b4ee9; }
[data-theme="dark"] .product-signal i { color: #5b4ee9; }
.product-flow { min-height: 545px; display: grid; grid-template-rows: auto 1fr auto; padding: 34px; color: #111219; background: linear-gradient(145deg, #f5f4ff, #dedaff); }
.product-flow .card-label { color: #5f53ed; }
.product-flow h3 { max-width: 590px; }
.system-visual { min-height: 0; display: grid; place-items: center; margin: 18px 0 10px; transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0); will-change: transform; }
.system-visual img { width: min(100%, 510px); height: auto; border-radius: 22px; box-shadow: 0 25px 55px rgba(37,25,130,.18); transition: transform .55s cubic-bezier(.2,.75,.25,1), box-shadow .55s ease; }
.product-flow:hover .system-visual img { transform: translateY(-5px) scale(1.025) rotate(-.5deg); box-shadow: 0 34px 70px rgba(37,25,130,.25); }
.flow-steps { position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.flow-steps::before { content: ""; position: absolute; left: 8px; right: calc(25% - 8px); top: 8px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.flow-steps li { position: relative; z-index: 1; display: grid; gap: 7px; }
.flow-steps i { width: 16px; height: 16px; border: 4px solid #fff; border-radius: 50%; background: var(--accent); box-shadow: 0 4px 10px rgba(56,44,170,.25); animation: flow-pulse 2.8s ease-in-out infinite; }
.flow-steps li:nth-child(2) i { animation-delay: .35s; }.flow-steps li:nth-child(3) i { animation-delay: .7s; }.flow-steps li:nth-child(4) i { animation-delay: 1.05s; background: #78b83c; }
.flow-steps span { color: #777587; font-size: 8px; font-weight: 800; }
.flow-steps strong { max-width: 105px; font-size: 10px; line-height: 1.25; }
@keyframes flow-pulse { 0%,70%,100% { box-shadow: 0 0 0 0 rgba(101,88,245,.18); } 35% { box-shadow: 0 0 0 9px rgba(101,88,245,0); } }
.case-role { grid-column: 1 / -1; min-height: 285px; display: grid; grid-template-columns: 1fr .72fr 230px; gap: 54px; align-items: center; padding: 38px; background: color-mix(in srgb, var(--case-text) 3%, transparent); }
.role-heading .card-label { margin-bottom: 30px; }
.case-role h3 { max-width: 650px; margin: 0; }
.role-details p { margin: 0 0 26px; color: var(--case-muted); font-size: 13px; font-weight: 400; line-height: 1.65; }
.role-points { display: flex; flex-wrap: wrap; gap: 7px; }
.role-orbit { height: 220px; display: grid; place-items: center; transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0); }
.role-orbit img { width: 235px; max-width: none; animation: orbit-float 6s ease-in-out infinite; }
@keyframes orbit-float { 0%,100% { transform: translateY(-5px) rotate(-3deg); } 50% { transform: translateY(7px) rotate(3deg); } }

.results-section { position: relative; z-index: 2; isolation: isolate; margin-top: -54px; padding: 150px 0 115px; }
.results-section::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; border-radius: 48px 48px 0 0; background: var(--bg); box-shadow: 0 -24px 70px color-mix(in srgb, var(--bg) 48%, transparent); transform: translateX(-50%); transition: background .35s ease, box-shadow .35s ease; }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; column-gap: 90px; align-items: start; margin-bottom: 70px; }
.section-head .section-label { grid-column: 1 / -1; }
.section-head h2 { font-size: clamp(48px, 5vw, 76px); }
.section-head h2 span { display: block; }
.section-head > p:last-child { margin: 0; color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.65; }
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.bento-card { --pointer-x: 50%; --pointer-y: 50%; position: relative; overflow: hidden; min-height: 310px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--border); border-radius: 26px; background: var(--surface); box-shadow: 0 15px 45px rgba(30,29,50,0); transform: translateZ(0) scale(1); transform-origin: center; transition: transform .38s cubic-bezier(.2,.75,.25,1), background .35s ease, border-color .25s ease, box-shadow .38s ease; }
.bento-card::before { content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(circle 260px at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%); transition: opacity .3s ease; }
.bento-card:hover { z-index: 3; transform: translateY(-10px) scale(1.025); border-color: color-mix(in srgb, var(--accent) 52%, var(--border)); box-shadow: 0 28px 65px rgba(32,31,70,.18); }
.bento-card:hover::before { opacity: 1; }
.bento-1, .bento-4 { grid-column: span 7; }.bento-2, .bento-3 { grid-column: span 5; }.bento-5, .bento-6 { grid-column: span 6; }
.bento-1 { color: #fff; background: var(--accent); }
.bento-4 { color: #11130e; background: var(--accent-2); }
.bento-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.bento-1 .bento-top, .bento-1 p { color: rgba(255,255,255,.9); }.bento-4 .bento-top, .bento-4 p { color: rgba(17,19,14,.72); }
.bento-card h3 { position: relative; z-index: 2; max-width: 650px; margin: 70px 0 18px; font-family: var(--font); font-size: clamp(27px, 2.8vw, 42px); line-height: 1.04; letter-spacing: -.05em; font-weight: 800; text-wrap: balance; }
.bento-card p { position: relative; z-index: 2; max-width: 570px; margin: 0; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.62; }
.bento-card.bento-1 p { color: rgba(255,255,255,.9); }
.bento-card.bento-4 p { color: rgba(17,19,14,.72); }
.bento-decoration { position: absolute; width: 180px; height: 180px; top: -65px; right: -45px; border: 1px solid currentColor; border-radius: 50%; opacity: .11; }
.bento-decoration::before, .bento-decoration::after { content: ""; position: absolute; inset: 25px; border: 1px solid currentColor; border-radius: 50%; }.bento-decoration::after { inset: 54px; }
.bento-card:hover .bento-decoration { transform: translate(-20px, 20px) scale(1.22) rotate(18deg); opacity: .2; }
.bento-decoration { transition: transform .55s cubic-bezier(.2,.75,.25,1), opacity .35s ease; }

.scope-section { position: relative; overflow: hidden; padding-block: 126px; background: var(--surface); transition: background .35s ease; }
.scope-head { margin-bottom: 50px; }
.scope-list { border-top: 1px solid var(--border); }
.scope-list article { display: grid; grid-template-columns: 70px .7fr 1fr 32px; gap: 28px; align-items: center; min-height: 126px; border-bottom: 1px solid var(--border); transition: padding .25s ease, background .25s ease; }
.scope-list article:hover { padding-inline: 18px; background: var(--surface-2); }
.scope-list article > span { color: var(--accent); font-size: 10px; font-weight: 900; }
.scope-list h3 { margin: 0; font-family: var(--font); font-size: clamp(22px, 2.1vw, 32px); font-weight: 800; letter-spacing: -.04em; }
.scope-list p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.62; }
.scope-list article > i { font-style: normal; color: var(--muted); }

.experience-section { display: grid; grid-template-columns: .88fr 1.12fr; gap: 90px; padding-block: 118px; }
.experience-summary { align-self: start; position: sticky; top: 30px; }
.experience-summary h2 { max-width: 620px; margin: 0; font-size: clamp(44px, 4.6vw, 70px); line-height: 1.02; letter-spacing: -.058em; font-weight: 800; text-wrap: balance; }
.experience-summary > p:not(.section-label) { max-width: 600px; margin: 28px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.career-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 42px; }
.career-metrics article { min-height: 138px; display: flex; flex-direction: column; justify-content: space-between; padding: 17px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.career-metrics strong { font-size: clamp(24px, 2.5vw, 36px); line-height: 1; letter-spacing: -.05em; }
.career-metrics article:last-child strong { font-size: clamp(21px, 2vw, 30px); white-space: nowrap; }
.career-metrics span { color: var(--muted); font-size: 9px; line-height: 1.45; }
.career-timeline { border-top: 1px solid var(--border); }
.career-timeline article { display: grid; grid-template-columns: 115px 1fr 34px; gap: 20px; align-items: center; min-height: 112px; border-bottom: 1px solid var(--border); transition: padding .25s ease, background .25s ease; }
.career-timeline article:hover { padding-inline: 16px; background: var(--surface); }
.career-timeline article > span { color: var(--muted); font-size: 10px; }
.career-timeline small { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.career-timeline h3 { margin: 7px 0 0; font-size: clamp(19px, 2vw, 27px); line-height: 1.08; letter-spacing: -.035em; }
.career-timeline article > i { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); font-size: 8px; font-style: normal; }

.skills-section { position: relative; overflow: hidden; padding: 126px 0 76px; background: var(--surface); transition: background .35s ease; }
.skills-title { display: grid; grid-template-columns: 1fr .55fr; column-gap: 72px; align-items: start; }
.skills-title .section-label { grid-column: 1 / -1; }
.skills-title h2 { max-width: 850px; font-size: clamp(48px, 5.5vw, 82px); line-height: 1.02; }
.skills-title h2 span, .skills-title h2 em { display: block; }
.skills-title h2 em { margin-top: .08em; }
.skills-title > p:last-child { max-width: 480px; margin: 0 0 7px; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.65; }
.marquee { margin-top: 70px; padding-block: 18px; border-block: 1px solid var(--border); }
.marquee-track { width: max-content; display: flex; align-items: center; animation: marquee 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 18px; padding-right: 34px; font-size: 18px; font-weight: 700; }
.marquee span i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
.skill-groups { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 54px; }
.skill-card { position: relative; overflow: hidden; min-height: 320px; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--border); border-radius: 25px; background: var(--bg); transition: transform .35s cubic-bezier(.2,.75,.25,1), border-color .3s ease, box-shadow .35s ease; }
.skill-card::after { content: ""; position: absolute; width: 170px; height: 170px; right: -75px; bottom: -90px; border: 1px solid currentColor; border-radius: 50%; opacity: .09; box-shadow: 0 0 0 28px currentColor, 0 0 0 58px currentColor; transition: transform .5s ease; }
.skill-card:nth-child(1) { color: #fff; border-color: transparent; background: var(--accent); }.skill-card:nth-child(4) { color: #111219; border-color: transparent; background: var(--accent-2); }
.skill-card:hover { z-index: 2; transform: translateY(-8px) scale(1.012); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: 0 28px 60px rgba(30,29,65,.14); }
.skill-card:hover::after { transform: translate(-24px,-18px) scale(1.15); }
.skill-card header { position: relative; z-index: 1; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; }
.skill-card header > span { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 9px; opacity: .55; }
.skill-card header small { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.skill-card header i { font-size: 15px; font-style: normal; opacity: .45; }
.skill-card:nth-child(1) header small { color: var(--accent-2); }.skill-card:nth-child(4) header small { color: #526d22; }
.skill-card h3 { position: relative; z-index: 1; max-width: 500px; margin: 38px 0 12px; font-size: clamp(27px, 2.7vw, 39px); line-height: 1.04; letter-spacing: -.05em; }
.skill-card > p { position: relative; z-index: 1; max-width: 500px; margin: 0 0 30px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.skill-card:nth-child(1) > p { color: rgba(255,255,255,.78); }.skill-card:nth-child(4) > p { color: rgba(17,18,25,.66); }
.skill-card > div { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.skill-card > div span { padding: 10px 13px; border: 1px solid var(--border); border-radius: 100px; color: var(--muted); background: color-mix(in srgb, var(--surface) 45%, transparent); font-size: 11px; }
.skill-card:nth-child(1) > div span { color: rgba(255,255,255,.88); border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.08); }.skill-card:nth-child(4) > div span { color: rgba(17,18,25,.75); border-color: rgba(17,18,25,.18); background: rgba(255,255,255,.22); }

.closing { position: relative; overflow: hidden; min-height: 590px; display: grid; align-items: center; margin-bottom: 80px; padding: clamp(58px, 7vw, 96px); border-radius: 38px; color: #fff; background: linear-gradient(135deg, #17142f 0%, var(--accent) 58%, #8b7cff 100%); box-shadow: 0 35px 100px color-mix(in srgb, var(--accent) 25%, transparent); }
.closing-grid { position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.4) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.4) 1px,transparent 1px); background-size: 62px 62px; mask-image: linear-gradient(to bottom right,#000,transparent 70%); }
.closing > *:not(.closing-grid) { position: relative; z-index: 1; }
.closing-content { position: relative; z-index: 2; width: min(780px, 72%); }
.closing .section-label { color: var(--accent-2); }
.closing h2 { max-width: 780px; font-size: clamp(48px, 5.7vw, 82px); line-height: 1.02; }
.closing h2 span, .closing h2 em { display: block; }
.closing h2 em { margin-top: .08em; }
.closing h2 em { color: var(--accent-2); }
.closing-content > p:not(.section-label) { max-width: 650px; margin: 28px 0; color: rgba(255,255,255,.76); font-size: 13px; font-weight: 400; line-height: 1.65; }
.closing-visual { position: absolute !important; z-index: 1 !important; width: min(43vw, 520px); height: 520px; right: -15px; top: 50%; display: grid; place-items: center; transform: translate3d(var(--parallax-x, 0), calc(-50% + var(--parallax-y, 0)), 0); opacity: .9; }
.closing-visual img { width: 100%; animation: closing-orbit 14s linear infinite; }
@keyframes closing-orbit { to { transform: rotate(360deg); } }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }
.closing-button { color: #11130e; border-color: #fff; background: #fff; }
.closing-button:hover { border-color: var(--accent-2); background: var(--accent-2); }

.bonus-game { position: relative; overflow: hidden; min-height: 660px; display: grid; grid-template-columns: .78fr 1.22fr; margin-bottom: 80px; border-radius: 38px; color: #f7f7fb; background: #0c0d13; box-shadow: 0 30px 90px rgba(15,14,36,.2); }
.game-copy { position: relative; z-index: 3; display: flex; flex-direction: column; padding: clamp(48px, 6vw, 76px); border-right: 1px solid rgba(255,255,255,.12); }
.game-copy .section-label { color: var(--accent-2); }
.game-copy h2 { margin: 0; font-size: clamp(48px, 5.4vw, 78px); line-height: 1; letter-spacing: -.06em; font-weight: 800; }
.game-copy h2 em { display: block; margin-top: .07em; color: var(--accent); font-style: normal; }
.game-copy > p:not(.section-label, .game-status) { max-width: 560px; margin: 28px 0 0; color: rgba(247,247,251,.64); font-size: 13px; line-height: 1.65; }
.game-score { display: flex; align-items: baseline; gap: 8px; margin-top: 42px; }
.game-score span { margin-right: auto; color: rgba(247,247,251,.46); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.game-score strong { color: var(--accent-2); font-size: 48px; line-height: 1; letter-spacing: -.06em; }
.game-score small { color: rgba(247,247,251,.42); font-size: 11px; }
.game-progress { overflow: hidden; height: 7px; margin-top: 13px; border-radius: 100px; background: rgba(255,255,255,.09); }
.game-progress i { display: block; width: var(--game-progress, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--accent),var(--accent-2)); transition: width .32s cubic-bezier(.2,.75,.25,1); }
.game-status { min-height: 18px; margin: 15px 0 0; color: rgba(247,247,251,.72); font-size: 10px; }
.game-milestones { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-top: 22px; }
.game-milestones span { min-height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; color: rgba(247,247,251,.3); font-size: 8px; font-weight: 800; text-transform: uppercase; transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease; }
.game-milestones span.is-unlocked { color: #111219; border-color: var(--accent-2); background: var(--accent-2); transform: translateY(-3px); }
.game-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; padding-top: 28px; }
.game-actions button, .game-actions a { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; color: rgba(247,247,251,.7); background: rgba(255,255,255,.04); cursor: pointer; font-size: 9px; font-weight: 800; transition: transform .2s ease, color .2s ease, background .2s ease, opacity .25s ease; }
.game-actions button:hover, .game-actions a:hover { color: #fff; transform: translateY(-2px); background: rgba(255,255,255,.09); }
.game-actions a { display: none; color: #111219; border-color: var(--accent-2); background: var(--accent-2); }
.bonus-game.is-complete .game-actions a { display: inline-flex; animation: game-cta-in .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes game-cta-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.game-stage { position: relative; overflow: hidden; min-width: 0; display: grid; place-items: end center; padding: 42px 42px 0; background: radial-gradient(circle at 54% 44%, rgba(101,88,245,.42), transparent 35%), linear-gradient(145deg,#161727,#0d0e15); }
.game-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.18) 1px,transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom,#000,transparent 90%); }
.game-stage::before, .game-stage::after { content: ""; position: absolute; width: 310px; height: 310px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; animation: game-ring 12s linear infinite; }
.game-stage::after { width: 430px; height: 430px; border-style: dashed; animation-direction: reverse; animation-duration: 18s; }
@keyframes game-ring { to { transform: rotate(360deg); } }
.mascot-button { position: relative; z-index: 4; width: min(82%, 470px); aspect-ratio: .76; display: grid; place-items: end center; padding: 0; border: 0; background: transparent; cursor: pointer; filter: drop-shadow(0 28px 35px rgba(0,0,0,.34)); transform-origin: 50% 88%; animation: mascot-idle 3.2s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.bear-state { grid-area: 1 / 1; width: auto; max-width: 100%; height: auto; max-height: 100%; display: block; align-self: end; opacity: 0; visibility: hidden; pointer-events: none; user-select: none; transform: translateY(16px) scale(.92); transition: opacity .32s ease, transform .42s cubic-bezier(.2,.75,.25,1), visibility .32s ease; }
.bear-state.is-active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.bear-state[data-game-bear="hypothesis"] { width: 108%; max-width: 108%; }
@keyframes mascot-idle { 0%,100% { transform: translateY(4px) rotate(-1deg); } 50% { transform: translateY(-7px) rotate(1deg); } }
.mascot-button:hover { filter: drop-shadow(0 34px 45px rgba(101,88,245,.38)); }
.mascot-button.is-hit { animation: mascot-hit .28s cubic-bezier(.2,.8,.2,1); }
@keyframes mascot-hit { 35% { transform: scale(.92) rotate(-3deg); } 70% { transform: scale(1.06) rotate(2deg); } }
.bonus-game.is-complete .mascot-button { animation: mascot-win .75s ease-in-out infinite alternate; }
@keyframes mascot-win { to { transform: translateY(-14px) rotate(3deg) scale(1.025); } }
.click-hint { position: absolute; z-index: 3; top: 16%; right: -2%; min-width: 64px; min-height: 64px; display: grid; place-items: center; border-radius: 50%; color: #111219; background: var(--accent-2); box-shadow: 0 10px 30px rgba(186,243,109,.25); font-size: 11px; font-weight: 900; text-transform: uppercase; transform: rotate(8deg); animation: hint-bounce 1.4s ease-in-out infinite; }
@keyframes hint-bounce { 50% { transform: translateY(-6px) rotate(2deg); } }
.game-particles { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.game-particle { position: absolute; left: var(--particle-x); top: var(--particle-y); color: var(--particle-color,var(--accent-2)); font-size: var(--particle-size,18px); font-weight: 900; text-shadow: 0 4px 15px rgba(0,0,0,.25); animation: particle-pop .8s cubic-bezier(.15,.75,.25,1) forwards; }
@keyframes particle-pop { from { opacity: 0; transform: translate(-50%,-20%) scale(.5) rotate(0); } 20% { opacity: 1; } to { opacity: 0; transform: translate(calc(-50% + var(--particle-dx)), -130px) scale(1.25) rotate(var(--particle-rotate)); } }
.game-best { position: absolute; z-index: 5; right: 20px; bottom: 18px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 100px; color: rgba(247,247,251,.45); background: rgba(12,13,19,.55); backdrop-filter: blur(10px); font-size: 8px; }
.game-best strong { color: #fff; }
.game-mobile-hud, .game-mobile-cta { display: none; }

.fireworks-layer { position: fixed; z-index: 99999; inset: 0; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .16s ease, visibility .16s ease; }
.fireworks-layer::before { content: ""; position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.2), transparent 48%), rgba(101,88,245,.08); }
.fireworks-layer.is-active { opacity: 1; visibility: visible; }
.fireworks-layer.is-active::before { animation: firework-flash .8s ease-out both; }
.firework-particle { position: absolute; left: var(--firework-x); top: var(--firework-y); width: var(--firework-size); height: calc(var(--firework-size) * 2.8); border-radius: 100px; opacity: 0; background: var(--firework-color); box-shadow: 0 0 14px var(--firework-color), 0 0 28px color-mix(in srgb, var(--firework-color) 55%, transparent); transform-origin: 50% 50%; animation: firework-explode 1.5s cubic-bezier(.12,.64,.25,1) var(--firework-delay) both; }
@keyframes firework-flash { 0%,100% { opacity: 0; } 18% { opacity: 1; } }
@keyframes firework-explode { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.15) rotate(0); } 10% { opacity: 1; } 72% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--firework-dx)), calc(-50% + var(--firework-dy))) scale(.35) rotate(220deg); } }

.footer { min-height: 130px; display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--border); }
.footer p { display: grid; gap: 2px; margin: 0; font-size: 12px; }.footer p span { color: var(--muted); font-size: 10px; }
.footer > small { margin-left: auto; color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }

.has-js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.has-js .bento-card[data-reveal] { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1), background .35s ease, border-color .25s ease, box-shadow .38s ease; }
.has-js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.has-js .bento-card[data-reveal].is-visible:hover { transform: translateY(-10px) scale(1.025); }
.has-js .skill-card[data-reveal].is-visible:hover { transform: translateY(-8px) scale(1.012); }
.has-js [data-reveal-delay="100"] { transition-delay: .1s; }
.has-js [data-reveal-delay="200"] { transition-delay: .2s; }

@media (max-width: 1060px) {
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-copy { max-width: 850px; }
  .product-stage { width: min(850px, 100%); margin: 40px auto 0; }
  .metric-rail { grid-template-columns: repeat(2,1fr); }
  .metric-rail article:nth-child(2) { border-right: 0; }.metric-rail article:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .case-intro, .section-head { grid-template-columns: 1fr; gap: 28px; }
  .case-intro .section-label, .section-head .section-label, .skills-title .section-label { margin-bottom: 0; }
  .case-intro > p, .section-head > p:last-child { max-width: 670px; }
  .case-canvas { grid-template-columns: 1fr; }
  .product-brief { min-height: 430px; }
  .case-role { grid-column: auto; grid-template-columns: 1fr 210px; align-items: center; }
  .role-details { grid-column: 1; }
  .role-orbit { grid-column: 2; grid-row: 1 / span 2; }
  .scope-list article { grid-template-columns: 55px .8fr 1.2fr 24px; }
  .experience-section { grid-template-columns: 1fr; gap: 60px; }
  .experience-summary { position: static; }
  .skills-title { grid-template-columns: 1fr; gap: 28px; }
  .skills-title > p:last-child { max-width: 650px; }
  .closing-content { width: 82%; }
  .closing-visual { right: -130px; opacity: .58; }
  .bonus-game { grid-template-columns: 1fr; }
  .game-copy { min-height: 620px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .game-stage { min-height: 650px; }
}

@media (max-width: 760px) {
	html, body { width: 100%; max-width: 100%; touch-action: pan-y; }
	.page-orb { display: none; }
	.shell { width: min(100% - 32px, 1280px); }
	.topbar { top: 7px; min-height: 56px; margin-top: 7px; padding: 6px 8px; border-radius: 17px; }
	.topbar .identity-mark { width: 40px; border-radius: 12px; }
	.topbar .identity small { display: none; }
	.topbar-actions { gap: 6px; }
	.mobile-contact-link { width: 40px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); transition: transform .2s ease,background .35s ease; }
	.mobile-contact-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
	.mobile-contact-link:hover { transform: translateY(-2px); }
	.mobile-contact-telegram { color: var(--accent); }
	.mobile-potapych-link { color: var(--accent-2); background: #171821; }
	.mobile-potapych-link svg { width: 19px; height: 19px; }
	.theme-toggle { width: 40px; }
  .topbar nav, .status-pill { display: none; }
  .hero { min-height: auto; gap: 28px; padding-block: 54px 80px; }
  .hero h1 { font-size: clamp(44px, 12.5vw, 64px); }
  .hero-description { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .dashboard { border-radius: 19px; transform: none !important; }
  .dashboard-body { min-height: 385px; grid-template-columns: 42px 1fr; }
  .dashboard-main { padding: 15px; }
  .dashboard-nav { gap: 13px; padding-top: 15px; }
  .dashboard-nav span { width: 24px; }
  .dash-heading h2 { font-size: 18px; }
  .dash-grid { gap: 8px; }
  .dash-card, .chart-card { min-height: 100px; padding: 12px; border-radius: 12px; }
  .dash-card strong { font-size: 25px; }
  .chart-card { min-height: 125px; }
  .float-tag { display: none; }
  .metric-rail { margin-bottom: 90px; border-radius: 18px; }
  .metric-rail article { min-height: 150px; padding: 20px; }
  .metric-rail strong { font-size: 40px; }
  .case-section, .results-section, .scope-section, .experience-section, .skills-section { padding-block: 90px; }
  .results-section { margin-top: -36px; padding-top: 112px; }
  .results-section::before { left: -16px; right: -16px; width: auto; border-radius: 30px 30px 0 0; transform: none; }
  .case-section { padding-top: 150px; border-radius: 0; }
  .case-section::before { height: 152px; }
  .case-intro { margin-bottom: 40px; }
  .case-intro h2, .section-head h2, .skills-title h2 { font-size: clamp(40px, 10.5vw, 54px); line-height: 1.04; }
  .product-brief, .product-flow, .case-role { min-height: auto; padding: 24px; border-radius: 20px; }
  .product-brief h3 { margin-top: 28px; }
  .product-flow { display: block; }
  .system-visual { margin-block: 28px; }
  .flow-steps { grid-template-columns: repeat(2,1fr); gap: 22px 12px; }
  .flow-steps::before { display: none; }
  .case-role { display: block; }
  .role-heading .card-label { margin-bottom: 28px; }
  .role-details { margin-top: 24px; }
  .role-orbit { display: none; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card { grid-column: auto; min-height: 280px; border-radius: 20px; }
  .bento-card h3 { margin-top: 54px; }
  .bento-card:hover { transform: translateY(-5px) scale(1.01); }
  .has-js .bento-card[data-reveal].is-visible:hover { transform: translateY(-5px) scale(1.01); }
  .scope-list article { grid-template-columns: 35px 1fr 20px; gap: 15px; padding-block: 24px; }
  .scope-list article p { grid-column: 2 / -1; }
  .scope-list article:hover { padding-inline: 0; }
  .experience-summary h2 { font-size: clamp(40px, 10.5vw, 54px); line-height: 1.04; }
  .career-metrics { grid-template-columns: 1fr; }
  .career-metrics article { min-height: 108px; }
  .career-timeline article { grid-template-columns: 82px 1fr; gap: 14px; min-height: 106px; }
  .career-timeline article > i { display: none; }
  .career-timeline h3 { font-size: 19px; }
  .marquee { width: 100%; max-width: 100%; overflow: hidden; margin-top: 50px; }
  .skill-groups { grid-template-columns: 1fr; margin-top: 45px; }
  .skill-card { min-height: 300px; padding: 24px; }
  .closing { width: min(100% - 20px, 1280px); min-height: 570px; margin-bottom: 50px; padding: 58px 24px; border-radius: 28px; }
  .closing-content { width: 100%; }
  .closing h2 { font-size: clamp(42px, 11vw, 58px); }
  .closing-visual { width: 330px; height: 330px; right: -145px; top: 22%; opacity: .3; }
  .contact-links { flex-direction: column; }
  .bonus-game { width: min(100% - 20px,1280px); display: flex; flex-direction: column; margin-bottom: 50px; border-radius: 28px; }
  .game-copy { order: 2; min-height: auto; padding: 48px 24px 38px; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 0; }
  .game-copy h2 { font-size: clamp(44px,12vw,60px); }
  .game-milestones { grid-template-columns: repeat(2,1fr); }
  .game-actions { flex-direction: column; }
  .game-actions button, .game-actions a { width: 100%; }
  .game-stage { order: 1; min-height: 520px; padding: 72px 10px 0; }
  .mascot-button { width: min(84%,350px); }
  .click-hint { top: 22%; right: 2%; min-width: 56px; min-height: 56px; }
  .game-best { display: none; }
  .game-mobile-hud { position: absolute; z-index: 8; top: 14px; left: 14px; right: 14px; min-height: 56px; display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 7px; padding: 11px 14px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 15px; color: #fff; background: rgba(12,13,19,.72); box-shadow: 0 12px 30px rgba(0,0,0,.2); backdrop-filter: blur(14px); }
  .game-mobile-hud > span:first-child { color: rgba(247,247,251,.58); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
  .game-mobile-hud strong { color: var(--accent-2); font-size: 24px; line-height: 1; }
  .game-mobile-hud small { color: rgba(247,247,251,.52); font-size: 10px; }
  .game-mobile-progress { grid-column: 1 / -1; overflow: hidden; height: 4px; border-radius: 100px; background: rgba(255,255,255,.1); }
  .game-mobile-progress i { display: block; width: var(--game-progress,0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--accent),var(--accent-2)); transition: width .3s ease; }
  .game-mobile-cta { position: absolute; z-index: 9; left: 14px; right: 14px; bottom: 14px; min-height: 50px; align-items: center; justify-content: center; border-radius: 14px; color: #111219; background: var(--accent-2); box-shadow: 0 14px 35px rgba(0,0,0,.3); font-size: 11px; font-weight: 900; }
  .bonus-game.is-complete .game-mobile-cta { display: flex; animation: game-cta-in .45s cubic-bezier(.2,.8,.2,1) both; }
  .bonus-game.is-complete .click-hint { display: none; }
  .footer > small { display: none; }
}

@media (max-width: 380px) {
  .topbar .identity > span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .has-js [data-reveal] { opacity: 1; transform: none; }
  .system-visual, .role-orbit, .closing-visual, .page-orb { transform: none !important; }
  .mascot-button, .game-stage::before, .game-stage::after, .click-hint { animation: none !important; }
  .fireworks-layer { display: none; }
}

/* Story-first layout */
.story-hero { position: relative; overflow: hidden; min-height: 760px; display: grid; grid-template-columns: 1.03fr .97fr; grid-template-rows: 1fr auto; align-items: center; gap: 48px clamp(42px,5vw,72px); margin-top: 54px; padding: clamp(40px,5vw,70px); border: 1px solid rgba(255,255,255,.13); border-radius: 42px; color: #fff; background: radial-gradient(circle at 80% 18%,rgba(101,88,245,.43),transparent 30%),linear-gradient(145deg,#0d0e16 0%,#17142f 58%,#21194a 100%); box-shadow: 0 38px 100px rgba(21,17,58,.24); isolation: isolate; }
.story-hero::after { content: ""; position: absolute; z-index: 0; width: 480px; height: 480px; right: -210px; bottom: -250px; border: 1px solid rgba(186,243,109,.24); border-radius: 50%; box-shadow: 0 0 0 58px rgba(186,243,109,.035),0 0 0 118px rgba(186,243,109,.025); }
.story-hero-grid { position: absolute; z-index: 0; inset: -64px; opacity: .1; background-image: linear-gradient(rgba(255,255,255,.3) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.3) 1px,transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(110deg,#000,transparent 76%); animation: story-grid-drift 16s linear infinite; }
.story-hero-copy { position: relative; z-index: 2; align-self: center; }
.story-hero .hero-kicker { max-width: 610px; color: rgba(255,255,255,.54); }
.story-hero .hero-kicker b { color: #fff; }
.story-hero h1 { max-width: 680px; margin: 0; font-size: clamp(54px,5vw,74px); line-height: .98; letter-spacing: -.062em; font-weight: 800; }
.story-hero h1 span,.story-hero h1 em { display: block; }
.story-hero h1 em { max-width: 660px; margin-top: .13em; color: var(--accent-2); font-style: normal; }
.story-hero-copy > p:not(.hero-note) { max-width: 610px; margin: 28px 0 0; color: rgba(255,255,255,.68); font-size: 16px; line-height: 1.66; }
.story-hero .button-secondary { color: #fff; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.07); backdrop-filter: blur(12px); }
.story-hero .hero-note { color: rgba(255,255,255,.57); }
.story-hero-visual { position: relative; z-index: 2; min-height: 560px; transform: translate3d(var(--motion-x,0),calc(var(--motion-y,0) + var(--parallax-y,0)),0); transition: transform .35s cubic-bezier(.2,.75,.25,1); }
.hero-orbit-ring { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.hero-orbit-ring::before { content: ""; position: absolute; width: 13px; height: 13px; top: -7px; left: calc(50% - 7px); border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 8px rgba(186,243,109,.12),0 0 30px rgba(186,243,109,.6); }
.hero-orbit-ring-one { width: 430px; height: 430px; margin: -215px; animation: hero-orbit-spin 18s linear infinite; }
.hero-orbit-ring-two { width: 310px; height: 310px; margin: -155px; border-style: dashed; opacity: .55; animation: hero-orbit-spin 14s linear infinite reverse; }
.hero-orbit-core { position: absolute; z-index: 2; width: 264px; height: 264px; top: 50%; left: 50%; display: flex; flex-direction: column; justify-content: space-between; margin: -132px; padding: 30px; border: 1px solid rgba(255,255,255,.2); border-radius: 42px; color: #fff; background: linear-gradient(145deg,var(--accent),#4436d2); box-shadow: 0 30px 80px rgba(101,88,245,.38); animation: hero-core-float 5s ease-in-out infinite; }
.hero-orbit-core small { color: rgba(255,255,255,.62); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.hero-orbit-core strong { font-size: 34px; line-height: .98; letter-spacing: -.052em; }
.hero-orbit-core span { color: var(--accent-2); font-size: 11px; font-weight: 800; }
.hero-node { position: absolute; z-index: 3; min-width: 132px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 10px; padding: 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 17px; color: #fff; background: rgba(14,15,25,.74); box-shadow: 0 18px 45px rgba(0,0,0,.22); backdrop-filter: blur(15px); animation: hero-node-float 4.8s ease-in-out infinite; }
.hero-node i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #111219; background: var(--accent-2); font-size: 8px; font-style: normal; font-weight: 900; }
.hero-node span { font-size: 10px; font-weight: 800; line-height: 1.3; }
.hero-node-one { top: 7%; left: 5%; }
.hero-node-two { top: 13%; right: 0; animation-delay: -.8s; }
.hero-node-three { bottom: 9%; left: 1%; animation-delay: -1.8s; }
.hero-node-four { right: 1%; bottom: 5%; animation-delay: -2.7s; }
.story-hero-bottom { position: relative; z-index: 3; grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.14); }
.story-hero-bottom p { display: flex; align-items: center; gap: 13px; margin: 0; color: rgba(255,255,255,.56); font-size: 11px; }
.story-hero-bottom p span { color: var(--accent-2); font-size: 22px; font-weight: 900; }
.story-hero-bottom a { display: inline-flex; align-items: center; gap: 12px; color: rgba(255,255,255,.7); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.story-hero-bottom a i { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: var(--accent-2); font-style: normal; animation: hero-arrow 1.7s ease-in-out infinite; }

@keyframes hero-orbit-spin { to { transform: rotate(360deg); } }
@keyframes hero-core-float { 0%,100% { transform: translateY(-5px) rotate(-1deg); } 50% { transform: translateY(7px) rotate(1deg); } }
@keyframes hero-node-float { 0%,100% { transform: translateY(-4px); } 50% { transform: translateY(8px); } }
@keyframes hero-arrow { 0%,100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
@keyframes story-grid-drift { to { transform: translate3d(64px,64px,0); } }

.story-section { padding-block: 120px; }
.story-section-head { margin-bottom: 62px; }
.story-section-head h2 { max-width: 1020px; margin: 0; font-size: clamp(48px,5vw,76px); line-height: 1; letter-spacing: -.06em; font-weight: 800; text-wrap: balance; }
.story-section-head h2 em { color: var(--accent); font-style: normal; }
.story-section-head-split { display: grid; grid-template-columns: 1.1fr .7fr; align-items: end; gap: clamp(40px,7vw,100px); }
.story-section-head-split > p { max-width: 560px; margin: 0 0 5px; color: var(--muted); font-size: 14px; line-height: 1.68; }

.story-about-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 14px; }
.story-bio { min-height: 460px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(34px,4.5vw,62px); border: 1px solid var(--border); border-radius: 30px; background: var(--surface); box-shadow: 0 20px 60px rgba(30,29,60,.06); }
.story-bio > p { max-width: 760px; margin: 0; font-size: clamp(23px,2.2vw,33px); line-height: 1.28; letter-spacing: -.035em; }
.story-bio-note { display: grid; grid-template-columns: 100px 1fr; gap: 24px; margin-top: 55px; padding-top: 28px; border-top: 1px solid var(--border); }
.story-bio-note span { color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.story-bio-note p { max-width: 560px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.story-facts { display: grid; grid-template-rows: repeat(3,1fr); gap: 14px; }
.story-facts article { position: relative; overflow: hidden; min-height: 138px; display: grid; grid-template-columns: 42px 155px 1fr; align-items: center; gap: 20px; padding: 24px; border: 1px solid var(--border); border-radius: 26px; background: var(--surface); transition: transform .3s ease,border-color .3s ease,box-shadow .3s ease; }
.story-facts article:hover { transform: translateX(-7px); border-color: color-mix(in srgb,var(--accent) 50%,var(--border)); box-shadow: 0 20px 45px rgba(30,29,60,.09); }
.story-facts small { color: var(--accent); font-size: 9px; font-weight: 900; }
.story-facts strong { font-size: clamp(31px,3vw,46px); line-height: 1; letter-spacing: -.055em; white-space: nowrap; }
.story-facts p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.story-band { position: relative; overflow: hidden; padding-block: 126px; background: var(--surface); transition: background .35s ease; }
.story-band::before,.story-band::after { content: ""; position: absolute; left: 0; right: 0; z-index: 0; height: 82px; pointer-events: none; }
.story-band::before { top: 0; background: linear-gradient(to bottom,var(--bg),transparent); }
.story-band::after { bottom: 0; background: linear-gradient(to bottom,transparent,var(--bg)); }
.story-band > .shell { position: relative; z-index: 1; }
.story-career-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 14px; }
.story-career-card { grid-column: span 6; min-height: 285px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--border); border-radius: 26px; background: var(--bg); transition: transform .35s cubic-bezier(.2,.75,.25,1),box-shadow .35s ease,border-color .3s ease; }
.story-career-card:hover { z-index: 2; transform: translateY(-8px); border-color: color-mix(in srgb,var(--accent) 44%,var(--border)); box-shadow: 0 28px 60px rgba(30,29,65,.13); }
.story-career-card.is-current { grid-column: span 6; min-height: 340px; color: #fff; border-color: transparent; background: var(--accent); }
.story-career-card header { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.story-career-card.is-current header { color: rgba(255,255,255,.7); }
.story-career-card h3 { margin: 48px 0 8px; font-size: clamp(30px,3vw,44px); line-height: 1; letter-spacing: -.055em; }
.story-career-card > strong { color: var(--accent); font-size: 11px; line-height: 1.4; }
.story-career-card.is-current > strong { color: var(--accent-2); }
.story-career-card > p { margin: auto 0 0; padding-top: 28px; color: var(--muted); font-size: 12px; line-height: 1.62; }
.story-career-card.is-current > p { color: rgba(255,255,255,.82); }

.story-results-head { align-items: start; }
.story-results-summary { min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px 0 0; border-top: 1px solid var(--border); }
.story-results-summary > span { margin-bottom: auto; color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.story-results-summary > strong { margin-top: 42px; font-size: clamp(31px,3vw,44px); line-height: 1; letter-spacing: -.05em; }
.story-results-summary > p { max-width: 520px; margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.story-results-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.story-result-card { position: relative; overflow: hidden; min-height: 350px; display: flex; flex-direction: column; padding: clamp(28px,3vw,42px); border: 1px solid var(--border); border-radius: 28px; background: var(--surface); transition: transform .35s cubic-bezier(.2,.75,.25,1),box-shadow .35s ease; }
.story-result-card:hover { z-index: 2; transform: translateY(-9px) scale(1.012); box-shadow: 0 30px 70px rgba(30,29,65,.15); }
.story-result-card header { position: relative; z-index: 2; display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.story-result-card h3 { position: relative; z-index: 2; max-width: 660px; margin: 74px 0 18px; font-size: clamp(31px,3.3vw,48px); line-height: 1; letter-spacing: -.055em; }
.story-result-card p { position: relative; z-index: 2; max-width: 620px; margin: auto 0 0; color: var(--muted); font-size: 13px; line-height: 1.62; }
.story-result-card > div { position: absolute; width: 210px; height: 210px; top: -92px; right: -68px; border: 1px solid currentColor; border-radius: 50%; opacity: .1; box-shadow: 0 0 0 35px currentColor,0 0 0 72px currentColor; transition: transform .5s ease; }
.story-result-card:hover > div { transform: translate(-20px,22px) scale(1.12); }
.story-result-1 { color: #fff; border-color: transparent; background: var(--accent); }.story-result-1 header,.story-result-1 p { color: rgba(255,255,255,.82); }
.story-result-4 { color: #111219; border-color: transparent; background: var(--accent-2); }.story-result-4 header,.story-result-4 p { color: rgba(17,18,25,.66); }

.story-case { position: relative; overflow: hidden; margin-bottom: 118px; padding: clamp(38px,4.7vw,60px); border-radius: 38px; color: #fff; background: linear-gradient(145deg,#0d0e16,#17142f 58%,#29205c); box-shadow: 0 35px 95px rgba(19,16,49,.24); }
.story-case-grid { position: absolute; inset: -64px; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.26) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.26) 1px,transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom right,#000,transparent 70%); animation: story-grid-drift 20s linear infinite reverse; }
.story-case > *:not(.story-case-grid) { position: relative; z-index: 1; }
.story-case .section-label { color: var(--accent-2); }
.story-case-head { display: grid; grid-template-columns: 1.05fr .65fr; align-items: start; gap: clamp(38px,6vw,78px); margin-bottom: 28px; }
.story-case-head .section-label { margin-bottom: 26px; }
.story-case-head h2 { max-width: 780px; margin: 0; font-size: clamp(42px,4.4vw,64px); line-height: 1; letter-spacing: -.06em; }
.story-case-intro-note { max-width: 520px; margin: 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }
.story-case-intro-note > span { color: var(--accent-2); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.story-case-intro-note > p { margin: 32px 0 0; color: rgba(255,255,255,.65); font-size: 14px; line-height: 1.68; }
.story-case-body { display: grid; gap: 14px; }
.story-case-process,.story-case-outcome article { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 25px; background: rgba(255,255,255,.055); backdrop-filter: blur(12px); }
.story-case-process { padding: clamp(28px,4vw,46px); }
.story-case-process > span,.story-case-outcome small { position: relative; z-index: 2; color: var(--accent-2); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.story-case-process > p { position: relative; z-index: 2; max-width: 850px; margin: 24px 0 0; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.68; }
.story-case-orb { position: absolute; width: 360px; height: 360px; top: -225px; right: -95px; border: 1px solid rgba(186,243,109,.2); border-radius: 50%; box-shadow: 0 0 0 48px rgba(186,243,109,.025),0 0 0 96px rgba(186,243,109,.02); transform: translate3d(0,var(--parallax-y,0),0); }
.story-case-track { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 40px 0 0; padding: 0; list-style: none; }
.story-case-track::before { content: ""; position: absolute; z-index: -1; top: 22px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg,var(--accent),var(--accent-2),var(--accent)); background-size: 200% 100%; animation: case-flow 4s linear infinite; }
.story-case-track li { min-height: 184px; display: flex; flex-direction: column; align-items: flex-start; padding: 0 18px 19px; border: 1px solid rgba(255,255,255,.11); border-radius: 20px; background: rgba(9,10,16,.42); transition: transform .3s ease,border-color .3s ease,background .3s ease; }
.story-case-track li:hover { transform: translateY(-7px); border-color: rgba(186,243,109,.4); background: rgba(255,255,255,.075); }
.story-case-track i { width: 44px; height: 44px; display: grid; place-items: center; margin-top: -1px; border: 1px solid rgba(255,255,255,.17); border-radius: 0 0 14px 14px; color: #111219; background: var(--accent-2); font-size: 9px; font-style: normal; font-weight: 900; box-shadow: 0 10px 25px rgba(186,243,109,.12); }
.story-case-track strong { margin-top: 29px; font-size: 16px; line-height: 1.2; }
.story-case-track small { margin-top: auto; padding-top: 18px; color: rgba(255,255,255,.5); font-size: 10px; line-height: 1.45; }
.story-case-outcome { display: grid; grid-template-columns: 1.35fr .65fr; gap: 14px; }
.story-case-outcome article { min-height: 300px; display: flex; flex-direction: column; padding: clamp(27px,3vw,38px); transition: transform .35s ease,border-color .3s ease; }
.story-case-outcome article:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.24); }
.story-case-role-card h3 { max-width: 650px; margin: 45px 0 18px; font-size: clamp(31px,3.4vw,48px); line-height: 1.02; letter-spacing: -.052em; }
.story-case-role-card p { max-width: 780px; margin: 0; color: rgba(255,255,255,.64); font-size: 12px; line-height: 1.65; }
.story-case-role-card > span { margin-top: auto; padding-top: 28px; color: var(--accent-2); font-size: 10px; font-weight: 800; }
.story-case-outcome .story-case-proof { color: #111219; border-color: transparent; background: var(--accent-2); }
.story-case-proof small { color: #526d22; }
.story-case-proof strong { margin: 40px 0 0; font-size: clamp(58px,6vw,86px); line-height: .86; letter-spacing: -.065em; }
.story-case-proof p { max-width: 360px; margin: auto 0 0; color: rgba(17,18,25,.65); font-size: 11px; line-height: 1.5; }
.story-case-proof > i { position: absolute; top: 28px; right: 30px; font-style: normal; }
@keyframes case-flow { to { background-position: -200% 0; } }

.story-help-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.story-help-grid article { position: relative; overflow: hidden; min-height: 300px; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--border); border-radius: 26px; background: var(--bg); transition: transform .35s ease,border-color .3s ease,box-shadow .35s ease; }
.story-help-grid article:hover { transform: translateY(-7px); border-color: color-mix(in srgb,var(--accent) 45%,var(--border)); box-shadow: 0 26px 58px rgba(30,29,65,.12); }
.story-help-grid article > span { color: var(--accent); font-size: 10px; font-weight: 900; }
.story-help-grid h3 { max-width: 550px; margin: 55px 0 16px; font-size: clamp(29px,3vw,43px); line-height: 1.02; letter-spacing: -.05em; }
.story-help-grid p { max-width: 580px; margin: auto 0 0; color: var(--muted); font-size: 13px; line-height: 1.62; }
.story-help-grid article > i { position: absolute; top: 28px; right: 30px; color: var(--muted); font-style: normal; }

.story-template .closing { margin-top: 118px; }
.story-template .bonus-game { margin-top: 0; }
.story-about,.story-experience,.story-results,.story-case,.story-help,.bonus-game { scroll-margin-top: 90px; }

@media (max-width: 1000px) {
  .topbar nav { display: none; }
}

@media (max-width: 1060px) {
  .story-hero { grid-template-columns: 1fr; }
  .story-hero-copy { max-width: 860px; }
  .story-hero-visual { width: min(720px,100%); min-height: 530px; margin-inline: auto; }
  .story-section-head-split,.story-case-head { grid-template-columns: 1fr; gap: 28px; }
  .story-section-head-split > p,.story-case-intro-note { max-width: 700px; }
  .story-about-grid,.story-case-body { grid-template-columns: 1fr; }
  .story-facts { grid-template-columns: repeat(3,1fr); grid-template-rows: none; }
  .story-facts article { grid-template-columns: 1fr; align-content: space-between; }
  .story-career-card { grid-column: span 6; }
  .story-career-card.is-current { grid-column: span 6; }
}

@media (max-width: 760px) {
  .story-hero { min-height: auto; gap: 38px; margin-top: 28px; padding: 34px 22px 26px; border-radius: 28px; }
  .story-hero h1 { font-size: clamp(43px,12.4vw,58px); }
  .story-hero-copy > p:not(.hero-note) { font-size: 15px; }
  .story-hero .hero-actions { flex-direction: column; }
  .story-hero-visual { width: 100%; min-height: 440px; }
  .hero-orbit-ring-one { width: 310px; height: 310px; margin: -155px; }
  .hero-orbit-ring-two { width: 230px; height: 230px; margin: -115px; }
  .hero-orbit-core { width: 196px; height: 196px; margin: -98px; padding: 22px; border-radius: 30px; }
  .hero-orbit-core strong { font-size: 26px; }
  .hero-node { min-width: 108px; grid-template-columns: 24px 1fr; gap: 7px; padding: 10px; border-radius: 14px; }
  .hero-node i { width: 24px; height: 24px; }
  .hero-node span { font-size: 9px; }
  .hero-node-one { top: 3%; left: 0; }
  .hero-node-two { top: 8%; right: -4px; }
  .hero-node-three { bottom: 5%; left: -2px; }
  .hero-node-four { right: -5px; bottom: 2%; }
  .story-hero-bottom { align-items: flex-start; flex-direction: column; }
  .story-section,.story-band { padding-block: 90px; }
  .story-section-head { margin-bottom: 42px; }
  .story-section-head h2 { font-size: clamp(40px,10.5vw,54px); line-height: 1.03; }
  .story-about-grid,.story-results-grid,.story-help-grid { grid-template-columns: 1fr; }
  .story-bio { min-height: auto; padding: 28px 24px; border-radius: 22px; }
  .story-bio > p { font-size: 22px; }
  .story-bio-note { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
  .story-facts { grid-template-columns: 1fr; }
  .story-facts article { min-height: 155px; grid-template-columns: 36px 120px 1fr; border-radius: 22px; }
  .story-facts strong { font-size: 32px; }
  .story-career-grid { grid-template-columns: 1fr; }
  .story-career-card,.story-career-card.is-current { grid-column: auto; min-height: 285px; padding: 24px; border-radius: 22px; }
  .story-result-card { min-height: 315px; padding: 26px 24px; border-radius: 22px; }
  .story-result-card h3 { margin-top: 62px; font-size: clamp(30px,9vw,42px); }
  .story-case { width: min(100% - 20px,1280px); margin-bottom: 90px; padding: 52px 20px 20px; border-radius: 28px; }
  .story-case-head h2 { font-size: clamp(40px,10.5vw,54px); }
  .story-case-process { padding: 24px; }
  .story-case-process > p { font-size: 14px; }
  .story-case-track { grid-template-columns: 1fr; margin-top: 30px; }
  .story-case-track::before { display: none; }
  .story-case-track li { min-height: 148px; }
  .story-case-outcome { grid-template-columns: 1fr; }
  .story-case-outcome article { min-height: 280px; padding: 24px; }
  .story-case-role-card h3 { margin-top: 36px; }
  .story-help-grid article { min-height: 270px; padding: 24px; border-radius: 22px; }
  .story-template .closing { margin-top: 90px; }
}

@media (max-width: 480px) {
  .story-facts article { grid-template-columns: 30px 1fr; }
  .story-facts article p { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .story-hero-visual,
  .hero-orbit-ring,
  .hero-orbit-core,
  .hero-node,
  .story-hero-bottom a i,
  .story-case-track::before,
  .story-facts article,
  .story-career-card,
  .story-result-card,
  .story-result-card > div,
  .story-help-grid article { transition: none !important; transform: none !important; }
  .hero-orbit-ring,.hero-orbit-core,.hero-node,.story-hero-bottom a i,.story-case-track::before { animation: none !important; }
}
