/* =========================================================
   "Kinetic" — a UI/UX designer's portfolio
   Variable-type motion, particles, 3D stacks, physics
   ========================================================= */

:root {
  --bg: #0b0b0c;
  --bg2: #121214;
  --card: #161618;
  --cream: #efede8;
  --text: #efede8;
  --muted: #8a8883;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.25);
  --pill-bg: #1f1f22;
  --grid: rgba(255, 255, 255, 0.035);
  --glass: rgba(22, 22, 24, 0.75);
  --card-shadow: 0 -30px 80px -40px rgba(0, 0, 0, 0.9);
  --grain: 0.07;
  --grad: linear-gradient(90deg, #ff6a3d 0%, #ff3d8b 45%, #8b5cff 100%);
  --disp: "Anybody", "Arial Narrow", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --pad: clamp(18px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); transition: background-color 0.5s var(--ease), color 0.5s var(--ease); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.locked { overflow: hidden; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
img { display: block; max-width: 100%; }
::selection { background: #ff3d8b; color: #fff; }
:focus-visible { outline: 2px solid #ff3d8b; outline-offset: 4px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.02em; text-transform: uppercase; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; font-variation-settings: "opsz" 144; text-transform: none; letter-spacing: -0.02em; }
.kin { font-family: var(--disp); font-variation-settings: "wdth" 100, "wght" 700; }
.grad { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradMove 6s ease-in-out infinite alternate; padding-right: 0.06em; }
.label { color: var(--muted); margin-bottom: 20px; }
.h-xl { font-family: var(--disp); font-size: clamp(3.4rem, 9vw, 9.5rem); line-height: 0.88; text-transform: uppercase; font-variation-settings: "wdth" 80, "wght" 800; letter-spacing: -0.01em; }
.h-xl .serif { text-transform: none; font-size: 1.05em; }
.sub { color: var(--muted); max-width: 460px; font-size: 1.08rem; margin-top: 22px; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 8px 0 26px; border-radius: 999px; font-family: var(--disp); font-variation-settings: "wdth" 110, "wght" 600; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.02em; overflow: hidden; isolation: isolate; transition: color 0.4s var(--ease), font-variation-settings 0.5s var(--ease); white-space: nowrap; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); transform: translateY(101%); transition: transform 0.6s var(--ease); border-radius: inherit; }
.btn:hover::before { transform: none; }
.btn:hover { color: #fff; font-variation-settings: "wdth" 140, "wght" 700; }
.btn-i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: transform 0.5s var(--ease), background-color 0.4s, color 0.4s; font-family: var(--body); }
.btn:hover .btn-i { transform: rotate(-45deg); background: #fff; color: #111; }
.btn-solid { background: var(--text); color: var(--bg); }
.btn-solid .btn-i { background: var(--bg); color: var(--text); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost .btn-i { background: var(--line); }
.btn-sm { height: 48px; padding-left: 20px; font-size: 0.86rem; }
.btn-sm .btn-i { width: 34px; height: 34px; }

/* ---------- grain & cursor ---------- */
.grain { position: fixed; inset: -50%; z-index: 120; pointer-events: none; opacity: var(--grain); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 0.9s steps(6) infinite; }
.cursor { display: none; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input, .has-cursor textarea { cursor: text !important; }
.has-cursor .cursor { display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 400; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; mix-blend-mode: difference; pointer-events: none; transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background 0.3s, opacity 0.3s; will-change: transform; }
.cursor-label { font-family: var(--disp); font-variation-settings: "wdth" 120, "wght" 700; font-size: 0.8rem; text-transform: uppercase; color: #111; opacity: 0; transition: opacity 0.2s; white-space: nowrap; }
.cursor.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.cursor.is-view { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: var(--grad); mix-blend-mode: normal; }
.cursor.is-view .cursor-label { opacity: 1; color: #fff; }
.cursor.is-hidden { opacity: 0; }

/* ---------- loader ---------- */
.loader { display: none; }
.js .loader { display: block; position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.failsafe .loader, .loader.gone { display: none !important; }
.shutters { position: absolute; inset: 0; display: flex; flex-direction: column; }
.shutters i { flex: 1; background: var(--cream); margin-bottom: -1px; }
.loader-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #0b0b0c; }
.loader-ux { font-family: var(--disp); font-size: clamp(5.5rem, 22vw, 20rem); line-height: 0.8; text-transform: uppercase; animation: uxMorph 1.6s var(--ease-io) infinite alternate; }
.loader-meta { position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; display: flex; justify-content: space-between; }
.loader-num { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px var(--pad); mix-blend-mode: difference; color: #fff; transition: transform 0.6s var(--ease); }
.header.hide { transform: translateY(-120%); }
.logo { display: flex; align-items: flex-start; gap: 2px; font-size: 1.35rem; text-transform: uppercase; line-height: 1; }
.logo .kin { transition: font-variation-settings 0.6s var(--ease); font-variation-settings: "wdth" 70, "wght" 800; }
.logo:hover .kin { font-variation-settings: "wdth" 150, "wght" 900; }
.logo sup { font-size: 0.6rem; margin-top: -2px; }
.nav { display: flex; gap: 30px; }
.kin-link { font-family: var(--disp); text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.02em; font-variation-settings: "wdth" 90, "wght" 500; transition: font-variation-settings 0.5s var(--ease); }
.kin-link:hover, .kin-link.active { font-variation-settings: "wdth" 150, "wght" 800; }
.head-right { display: flex; align-items: center; gap: 18px; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.6s infinite; }
.menu-btn { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 18px; border-radius: 999px; border: 1px solid #fff; font-family: var(--disp); text-transform: uppercase; font-size: 0.85rem; font-variation-settings: "wdth" 110, "wght" 600; }
.mb-dots { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; position: relative; }
.mb-dots i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #000; transition: transform 0.4s var(--ease); }
.mb-dots i:first-child { transform: translateX(-4px); }
.mb-dots i:last-child { transform: translateX(4px); }
.menu-btn:hover .mb-dots i:first-child { transform: translateY(-4px); }
.menu-btn:hover .mb-dots i:last-child { transform: translateY(4px); }

.menu { position: fixed; inset: 0; z-index: 90; background: var(--cream); color: #0b0b0c; padding: 110px var(--pad) 36px; display: flex; flex-direction: column; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.9s var(--ease-io), visibility 0s 0.9s; }
.menu.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.9s var(--ease-io); }
.close-btn { position: absolute; top: 20px; right: var(--pad); width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid #0b0b0c; display: grid; place-items: center; font-size: 1rem; transition: transform 0.5s var(--ease), background-color 0.3s, color 0.3s; }
.close-btn:hover { transform: rotate(90deg); background: #0b0b0c; color: var(--cream); }
.menu-links a { display: flex; align-items: baseline; gap: 18px; border-bottom: 1px solid rgba(0, 0, 0, 0.12); overflow: hidden; }
.menu-links b { display: block; font-size: clamp(3.4rem, 11vw, 9rem); line-height: 1; text-transform: uppercase; font-variation-settings: "wdth" 60, "wght" 700; transition: font-variation-settings 0.6s var(--ease), color 0.3s; transform: translateY(105%); }
.menu.open .menu-links b { transform: none; transition: transform 1s var(--ease) calc(var(--i) * 70ms + 0.35s), font-variation-settings 0.6s var(--ease); }
.menu-links a:hover b { font-variation-settings: "wdth" 150, "wght" 900; }
.menu-foot { margin-top: auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; }
.particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-top { position: absolute; top: 96px; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); }
.hero-bottom { position: absolute; left: var(--pad); right: var(--pad); bottom: 40px; display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 30px; align-items: end; }
.roles { display: flex; align-items: center; gap: 14px; font-family: var(--disp); text-transform: uppercase; font-size: clamp(1.8rem, 3.2vw, 3rem); font-variation-settings: "wdth" 120, "wght" 800; line-height: 1; }
.roles-pre { color: var(--muted); font-variation-settings: "wdth" 70, "wght" 300; white-space: nowrap; }
.cyl { display: inline-block; position: relative; height: 1.15em; min-width: 7.2em; perspective: 700px; overflow: hidden; }
.cyl-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1.1s var(--ease-io); }
.cyl-in b { position: absolute; left: 0; top: 0; height: 1.15em; line-height: 1.15; font-weight: inherit; backface-visibility: hidden; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.hero-lead { color: var(--muted); font-size: 1.1rem; max-width: 420px; }
.hero-lead em { font-size: 1.15em; }
.hero-ctas { display: flex; gap: 10px; }
.hero-hint { position: absolute; left: 50%; top: 70%; transform: translateX(-50%); color: var(--muted); animation: floaty 3s ease-in-out infinite; white-space: nowrap; }
.js .hero-top, .js .hero-bottom, .js .hero-hint { opacity: 0; }
.failsafe .hero-top, .failsafe .hero-bottom, .failsafe .hero-hint { opacity: 1; }


/* ---------- work stack ---------- */
.work { position: relative; padding-top: clamp(100px, 12vw, 160px); }
.work-head { margin-bottom: 30px; }
.stack { position: relative; height: 100vh; height: 100svh; perspective: 1400px; }
.card {
  position: absolute; top: 10vh; bottom: 5vh; left: var(--pad); right: var(--pad);
  display: grid; grid-template-columns: 1fr 1.1fr; border-radius: 36px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  transform-origin: 50% 0%; will-change: transform;
}
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, var(--a), transparent 40%, var(--b)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.6; pointer-events: none; }
.card-info { position: relative; z-index: 1; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.card-meta { display: flex; gap: 20px; color: var(--muted); }
.card-meta span:first-child { color: var(--a); }
.card-title { font-family: var(--disp); font-size: clamp(4.4rem, 11vw, 11.5rem); line-height: 0.82; text-transform: uppercase; font-variation-settings: "wdth" 62, "wght" 800; transition: font-variation-settings 0.8s var(--ease); margin: auto 0 0; }
.card:hover .card-title { font-variation-settings: "wdth" 130, "wght" 900; }
.card-desc { color: var(--muted); max-width: 380px; }
.card-metric { display: flex; align-items: baseline; gap: 12px; }
.card-metric b { font-family: var(--disp); font-size: clamp(2.6rem, 4vw, 3.8rem); line-height: 1; font-variation-settings: "wdth" 110, "wght" 800; background: linear-gradient(90deg, var(--a), var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card-metric span { color: var(--muted); }
.open-case { align-self: flex-start; }
.card-art { position: relative; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--a) 70%, transparent), transparent 60%), radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--b) 75%, transparent), transparent 60%), #0e0e10; }
.card-art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%); }
.orb { position: absolute; width: 40%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 65%); filter: blur(20px); animation: orb 9s ease-in-out infinite alternate; mix-blend-mode: overlay; }
.card-art > div:not(.ph) { position: relative; z-index: 1; animation: floaty 6s ease-in-out infinite; }
.card-art > .ph { z-index: 1; }
/* mocks */
.ph { position: absolute; width: 150px; height: 300px; padding: 16px 12px; border-radius: 30px; background: #0e0e10; border: 5px solid #262628; display: flex; flex-direction: column; gap: 10px; left: calc(50% - 170px); top: calc(50% - 160px); rotate: -8deg; box-shadow: 0 40px 60px -20px rgba(0, 0, 0, 0.8); }
.ph-2 { left: calc(50% + 10px); top: calc(50% - 130px); rotate: 7deg; background: var(--cream); border-color: #d9d6cf; }
.ph i { display: block; }
.ph-card { height: 74px; border-radius: 14px; background: linear-gradient(135deg, var(--a), var(--b)); }
.ph-r { height: 9px; border-radius: 5px; background: #2a2a2c; }
.ph-2 .ph-r { background: #cfccc5; }
.ph-r.s { width: 60%; }
.ph-btn { height: 30px; margin-top: auto; border-radius: 15px; background: var(--cream); }
.ph-ring { width: 90px; height: 90px; margin: 10px auto; border-radius: 50%; background: conic-gradient(var(--a) 0 45%, var(--b) 45% 78%, #d9d6cf 78%); -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%); mask: radial-gradient(circle, transparent 54%, #000 55%); }
.art-phone .ph { animation: floaty 6s ease-in-out infinite; }
.art-phone .ph-2 { animation-delay: -3s; }
.db { width: 78%; height: 250px; display: flex; border-radius: 18px; overflow: hidden; background: var(--cream); box-shadow: 0 40px 60px -20px rgba(0, 0, 0, 0.7); }
.db-side { width: 50px; background: #111; }
.db-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.db-r { height: 12px; width: 50%; border-radius: 6px; background: #cfccc5; display: block; }
.db-k { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.db-k i { height: 50px; border-radius: 10px; background: #fff; border: 1px solid #e3e0d8; display: block; }
.db svg { flex: 1; width: 100%; }
.db path { fill: none; stroke: var(--b); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.co { width: 260px; padding: 18px; border-radius: 20px; background: var(--cream); display: flex; flex-direction: column; gap: 12px; box-shadow: 0 40px 60px -20px rgba(0, 0, 0, 0.7); }
.co i { display: block; }
.co-st, .co-pay { display: flex; gap: 8px; }
.co-st i { flex: 1; height: 6px; border-radius: 3px; background: #111; }
.co-st i:last-child { background: #cfccc5; }
.co-r { height: 10px; border-radius: 5px; background: #cfccc5; }
.co-r.s { width: 60%; }
.co-pay i { flex: 1; height: 34px; border-radius: 9px; border: 1px solid #cfccc5; }
.co-pay i.on { border: 2px solid #111; background: color-mix(in srgb, var(--a) 30%, transparent); }
.co-btn { height: 40px; border-radius: 12px; background: #111; }
.ds { width: 300px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 24px; border-radius: 22px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); backdrop-filter: blur(10px); }
.ds i { display: block; }
.ds-b { width: 100px; height: 38px; border-radius: 12px; background: var(--cream); }
.ds-b.w { background: transparent; border: 1.5px solid var(--cream); }
.ds-t { width: 56px; height: 30px; border-radius: 999px; background: var(--cream); position: relative; }
.ds-t::after { content: ""; position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: #111; }
.ds-in { width: 210px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, 0.9); }
.ds-c { width: 64px; height: 26px; border-radius: 999px; border: 1.5px solid var(--cream); }
.ds-c.on { background: var(--cream); }

/* ---------- process path ---------- */
.process { position: relative; padding: clamp(110px, 13vw, 170px) 0 60px; }
.path-wrap { position: relative; height: 760px; margin-top: 30px; }
.path-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.path-ghost { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 6 9; }
.path-live { fill: none; stroke: url(#pathGrad); stroke-width: 3.5; stroke-linecap: round; }
.path-dot { fill: var(--text); filter: drop-shadow(0 0 10px #ff3d8b) drop-shadow(0 0 22px #8b5cff); }
.path-node { fill: var(--bg); stroke: var(--line-strong); stroke-width: 2; transition: fill 0.4s, stroke 0.4s; }
.path-node.on { fill: var(--text); stroke: var(--text); }
.stop { position: absolute; width: min(250px, 40vw); padding: 18px 20px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); opacity: 0.35; transition: opacity 0.5s, border-color 0.5s, transform 0.6s var(--ease); }
.stop.on { opacity: 1; border-color: rgba(255, 61, 139, 0.6); }
.stop-n { color: #ff6a3d; }
.stop h3 { font-family: var(--disp); text-transform: uppercase; font-size: 1.7rem; line-height: 1.05; margin: 6px 0; font-variation-settings: "wdth" 80, "wght" 700; transition: font-variation-settings 0.6s var(--ease); }
.stop.on h3 { font-variation-settings: "wdth" 130, "wght" 900; }
.stop p { color: var(--muted); font-size: 0.92rem; }

/* ---------- numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 80px; padding-bottom: 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.num span { color: var(--muted); }
.odo { display: flex; font-family: var(--disp); font-size: clamp(3.6rem, 8vw, 8rem); line-height: 1; font-variation-settings: "wdth" 100, "wght" 800; margin-bottom: 8px; }
.odo-d { display: inline-block; height: 1em; overflow: hidden; }
.odo-col { display: flex; flex-direction: column; transition: transform 2.2s var(--ease-io); }
.odo-col span { display: block; height: 1em; line-height: 1; color: var(--text); }
.odo-fix { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- toolbox physics ---------- */
.toolbox { padding: clamp(110px, 13vw, 170px) 0; }
.tb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }
.tb-hint { display: block; margin-top: 12px; color: #ff6a3d; }
.pit { position: relative; height: 520px; border-radius: 32px; overflow: hidden; background: var(--bg2); border: 1px solid var(--line); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 48px 48px; touch-action: pan-y; }
.pill { position: absolute; left: 0; top: 0; padding: 14px 26px; border-radius: 999px; background: var(--pill-bg); border: 1px solid var(--line-strong); font-family: var(--disp); text-transform: uppercase; font-size: clamp(1rem, 1.6vw, 1.35rem); font-variation-settings: "wdth" 110, "wght" 600; white-space: nowrap; user-select: none; will-change: transform; }
.pill.p-solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill.p-grad { background: var(--grad); color: #fff; border-color: transparent; }
.pill.p-out { background: transparent; border-color: var(--text); }
.pit.static { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; padding: 30px; height: auto; min-height: 320px; }
.pit.static .pill { position: static; }
.js .pit:not(.static):not(.live) .pill { opacity: 0; }

/* ---------- voices ---------- */
.voices { padding: clamp(110px, 13vw, 170px) 0; border-top: 1px solid var(--line); }
.v-stage { min-height: 4.4em; font-size: clamp(2rem, 4.6vw, 4.4rem); }
.v-quote { font-size: 1em; line-height: 1.12; max-width: 1200px; font-weight: 300; }
.v-quote .vc { display: inline-block; white-space: pre; }
.v-by { margin-top: 26px; color: var(--muted); font-size: 0.8rem; }
.v-nav { display: flex; align-items: center; gap: 18px; margin-top: 40px; }
.v-btn { width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 1.1rem; transition: background-color 0.3s, color 0.3s; }
.v-btn:hover { background: var(--text); color: var(--bg); }
.v-count { color: var(--muted); }
.v-count b { color: var(--text); font-weight: 500; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(40px, 7vw, 110px); align-items: center; padding-top: 40px; padding-bottom: clamp(110px, 13vw, 170px); }
.about-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; }
.ap-in { position: absolute; inset: -6% 0; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #ff6a3d, transparent 55%), radial-gradient(circle at 80% 90%, #8b5cff, transparent 55%), #161618; }
.me-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.no-photo .me-img { display: none; }
.me-fallback { font-size: clamp(9rem, 20vw, 18rem); line-height: 1; color: rgba(255, 255, 255, 0.92); animation: uxMorph 2.4s var(--ease-io) infinite alternate; }
.about-big { font-family: var(--disp); font-size: clamp(1.8rem, 3.4vw, 3.2rem); line-height: 1.1; font-variation-settings: "wdth" 90, "wght" 500; text-transform: none; }
.about-big .serif { font-size: 1.05em; }
.xp { margin-top: 40px; border-top: 1px solid var(--line); }
.xp-r { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: padding 0.5s var(--ease), color 0.3s; }
.xp-r:hover { padding-left: 12px; }
.xp-r .mono { color: var(--muted); }
.xp-r b { font-family: var(--disp); text-transform: uppercase; font-size: 1.25rem; font-variation-settings: "wdth" 90, "wght" 650; transition: font-variation-settings 0.5s var(--ease); }
.xp-r:hover b { font-variation-settings: "wdth" 140, "wght" 800; }
.xp-r span:last-child { color: var(--muted); text-align: right; }

/* ---------- contact ---------- */
.contact { padding: clamp(100px, 12vw, 150px) 0 60px; border-top: 1px solid var(--line); overflow: hidden; }
.talk { display: block; text-align: center; margin: 20px 0 50px; }
.talk-line { display: block; font-family: var(--disp); font-size: clamp(6rem, 25vw, 27rem); line-height: 0.8; text-transform: uppercase; font-variation-settings: "wdth" 80, "wght" 800; color: var(--text); transition: color 0.3s; }
.talk-line .tl { display: inline-block; will-change: font-variation-settings; }
.talk:hover .talk-line { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradMove 3s ease-in-out infinite alternate; }
.mail-band { display: block; width: 100%; overflow: hidden; background: var(--text); color: var(--bg); padding: 18px 0; transform: rotate(-2deg) scale(1.05); }
.mb-track { display: flex; align-items: center; width: max-content; animation: marquee 22s linear infinite; }
.mb-track span { font-family: var(--disp); text-transform: uppercase; font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1; padding: 0 0.4em; font-variation-settings: "wdth" 120, "wght" 800; }
.mb-track b { font-size: 2rem; display: inline-block; animation: spin 6s linear infinite; }
.mail-band:hover .mb-track { animation-play-state: paused; }
.contact-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 60px; }
.contact-row > .mono { color: var(--muted); }
.c-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 30px; color: var(--muted); border-top: 1px solid var(--line); }
.to-top { color: var(--text); }

/* ---------- case overlay ---------- */
.case { position: fixed; inset: 0; z-index: 200; background: var(--cream); color: #0b0b0c; clip-path: circle(0% at var(--cx, 50%) var(--cy, 50%)); visibility: hidden; transition: clip-path 0.9s var(--ease-io), visibility 0s 0.9s; }
.case.open { clip-path: circle(150% at var(--cx, 50%) var(--cy, 50%)); visibility: visible; transition: clip-path 1s var(--ease-io); }
.case-in { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 100px var(--pad) 80px; max-width: 1300px; margin: 0 auto; }
.case-close { position: fixed; top: 22px; right: var(--pad); width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid #0b0b0c; display: grid; place-items: center; font-size: 1.05rem; background: var(--cream); z-index: 2; transition: transform 0.5s var(--ease), background-color 0.3s, color 0.3s; }
.case-close:hover { transform: rotate(90deg); background: #0b0b0c; color: var(--cream); }
.case-meta { color: #6d6a64; }
.case-title { font-family: var(--disp); font-size: clamp(4.4rem, 14vw, 14rem); line-height: 0.82; text-transform: uppercase; font-variation-settings: "wdth" 70, "wght" 900; margin: 16px 0 24px; }
.case.open .case-title { animation: titleStretch 1.6s var(--ease) 0.4s both; }
.case-lede { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 1.2; max-width: 900px; }
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(0, 0, 0, 0.15); }
.case-grid .mono { color: #6d6a64; margin-bottom: 10px; display: block; }
.case-grid p { font-size: 0.98rem; }
.case-flow { margin-top: 50px; padding: 28px; border-radius: 20px; background: #e4e1da; }
.cf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.cf-row .mono { width: 70px; color: #6d6a64; }
.cf-row i { font-style: normal; padding: 8px 14px; border-radius: 10px; background: var(--cream); border: 1px solid #cfccc5; font-size: 0.9rem; }
.cf-row.after i { background: #0b0b0c; color: var(--cream); border-color: #0b0b0c; }
.cf-row i:not(:last-child)::after { content: " →"; opacity: 0.5; }
.case-impact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.case-impact b { display: block; font-family: var(--disp); font-size: clamp(3rem, 6vw, 5.4rem); line-height: 1; font-variation-settings: "wdth" 110, "wght" 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case-impact span { color: #6d6a64; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 250; padding: 12px 20px; border-radius: 999px; background: var(--grad); color: #fff; transform: translate(-50%, 40px); opacity: 0; pointer-events: none; transition: transform 0.5s var(--ease), opacity 0.3s; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- keyframes ---------- */
@keyframes gradMove { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -6%); } 60% { transform: translate(-3%, -2%); } 80% { transform: translate(4%, 6%); } 100% { transform: translate(-5%, 2%); } }
@keyframes uxMorph { 0% { font-variation-settings: "wdth" 50, "wght" 100; } 100% { font-variation-settings: "wdth" 150, "wght" 900; } }
@keyframes titleStretch { 0% { font-variation-settings: "wdth" 50, "wght" 200; } 100% { font-variation-settings: "wdth" 70, "wght" 900; } }
@keyframes blink { 50% { opacity: 0.2; } }
@keyframes floaty { 50% { transform: translateY(-12px); } }
@keyframes orb { 0% { transform: translate(-30%, -20%); } 100% { transform: translate(40%, 30%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav, .status { display: none; }
  .hero-bottom { grid-template-columns: 1fr; gap: 18px; }
  .card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .card-art { min-height: 260px; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; }
  .numbers { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .case-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .stack { height: auto; perspective: none; display: flex; flex-direction: column; gap: 18px; padding: 0 var(--pad); }
  .card { position: relative; inset: auto; transform: none !important; filter: none !important; }
  .card-art { min-height: 300px; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .header { padding: 16px var(--pad); }
  .mb-text { display: none; }
  .menu-btn { padding: 0 6px; }
  .hero-top { top: 80px; flex-direction: column; gap: 4px; }
  .hero-bottom { bottom: 24px; }
  .hero-hint { top: 60%; }
  .roles { font-size: 1.6rem; }
  .hero-lead { font-size: 0.98rem; }
  .hero-ctas .btn { flex: 1; justify-content: space-between; }
  .ph { width: 120px; height: 240px; left: calc(50% - 130px); top: calc(50% - 120px); }
  .ph-2 { left: calc(50% + 4px); top: calc(50% - 100px); }
  .path-wrap { height: 1250px; }
  .stop { width: auto; }
  .numbers { grid-template-columns: 1fr; }
  .pit { height: 460px; }
  .xp-r { grid-template-columns: 1fr; gap: 2px; }
  .xp-r span:last-child { text-align: left; }
  .case-grid, .case-impact { grid-template-columns: 1fr; }
  .contact-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.001ms !important; }
  .js .hero-top, .js .hero-bottom, .js .hero-hint { opacity: 1; }
}

/* ---------- light theme ---------- */
:root[data-theme="light"] {
  --bg: #f3f1ec;
  --bg2: #e9e6df;
  --card: #ffffff;
  --text: #111111;
  --muted: #6b6862;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.22);
  --pill-bg: #ffffff;
  --grid: rgba(0, 0, 0, 0.05);
  --glass: rgba(255, 255, 255, 0.82);
  --card-shadow: 0 -20px 60px -30px rgba(40, 30, 20, 0.35);
  --grain: 0.045;
  color-scheme: light;
}
:root[data-theme="light"] .card-desc, :root[data-theme="light"] .card-metric span { color: #5f5c56; }

/* ---------- theme toggle ---------- */
.theme-toggle { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #fff; display: grid; place-items: center; overflow: hidden; }
.theme-toggle svg { position: absolute; width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; transition: transform 0.6s var(--ease), opacity 0.4s; }
.tt-moon { transform: translateY(0); }
.tt-sun { transform: translateY(150%) rotate(-90deg); opacity: 0; }
:root[data-theme="light"] .tt-moon { transform: translateY(-150%) rotate(90deg); opacity: 0; }
:root[data-theme="light"] .tt-sun { transform: none; opacity: 1; }
.theme-toggle:hover svg { scale: 1.15; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
