:root {
  --bg: #efefed;
  --ink: #111;
  --sub: #7a7a76;
  --line: #d6d6d2;
  --orange: #ff5a1f;
  --lcd: #0b0c0b;
  --font: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; font-variant-numeric: tabular-nums; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 13px/1.5 var(--font); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }
button { font-family: var(--font); }
.lbl { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--sub); }

header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; padding: 14px 28px; background: #efefedee; backdrop-filter: blur(8px); }
header .me { font-weight: 600; }
header nav { display: flex; gap: 22px; margin-left: auto; }
header nav a { color: #444; }
.lang { display: flex; padding: 2px; border: 1px solid var(--line); border-radius: 99px; }
.lang button { border: 0; background: none; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 600; color: var(--sub); cursor: pointer; }
.lang button:hover { color: var(--ink); }
.lang button.on { background: var(--ink); color: var(--bg); }

.hero { display: flex; flex-direction: column; align-items: center; padding: 28px 20px 10px; }
.fit { position: relative; }
.hint { margin: 26px 0 0; color: var(--sub); text-align: center; font-size: 12px; }
.hint kbd { font: 600 10.5px var(--font); border: 1px solid #c9c9c5; border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: #f7f7f5; color: #444; }

section { max-width: 1240px; margin: 0 auto; padding: 90px 28px 0; }
.kicker { display: flex; gap: 18px; align-items: baseline; border-top: 1px solid var(--ink); padding-top: 12px; margin-bottom: 40px; }
.kicker b { color: var(--orange); }
.big { font-size: clamp(34px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.035em; font-weight: 500; margin: 0 0 26px; }
.big em { font-style: normal; color: var(--orange); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 30px; }
.tags span { border: 1px solid var(--ink); border-radius: 99px; padding: 4px 12px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.tags span:first-child { background: var(--ink); color: var(--bg); }

.about { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; border-radius: 14px; margin: 0 -16px; padding: 16px; }
.about p { margin: 0; font-size: 24px; line-height: 1.35; letter-spacing: -.015em; max-width: 34ch; }
.contact { display: grid; align-content: start; }
.contact .lbl { margin-bottom: 10px; }
.contact a { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 12px 0; font-size: 15px; }
.contact a span:last-child { color: var(--sub); font-size: 12px; }
.contact a:hover span:last-child { color: var(--orange); }
.contact small { border-top: 1px solid var(--line); padding-top: 12px; color: var(--sub); font-size: 12px; }
.side { display: grid; gap: 34px; align-content: start; }
.certs { display: grid; }
.certs .lbl { margin-bottom: 10px; }
.certs a { display: flex; gap: 14px; align-items: center; border-top: 1px solid var(--line); padding: 12px 0; }
.certs img { width: 64px; height: 64px; flex: none; }
.certs strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.certs small { display: block; color: var(--sub); font-size: 12px; margin-top: 2px; }
.certs .verify { color: var(--orange); }
.ping { animation: ping 1.2s ease-out; }
@keyframes ping {
  from { box-shadow: 0 0 0 0 #ff5a1f66; background: #ff5a1f14; }
  to { box-shadow: 0 0 0 18px #ff5a1f00; background: transparent; }
}

.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; }
.skills div { border-top: 1px solid var(--line); padding: 14px 0 28px; }
.skills h3 { margin: 0 0 12px; display: flex; gap: 8px; align-items: center; }
.skills h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); }
.skills ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 15px; }
.skills li span { color: var(--sub); font-size: 12px; margin-left: 6px; }

table { width: 100%; border-collapse: collapse; }
td { border-top: 1px solid var(--line); padding: 16px 10px 16px 0; vertical-align: top; }
td small { display: block; margin-top: 3px; }
.xp .when { color: var(--sub); white-space: nowrap; width: 190px; }
.xp .co { font-weight: 600; width: 210px; }
.xp .co small { font-weight: 400; color: var(--sub); font-size: 12px; }
.xp td { padding: 22px 10px 22px 0; }
.xp .what { color: #444; max-width: 70ch; }
.xp .what p { margin: 0 0 8px; color: var(--ink); font-weight: 600; }
.xp .what ul { margin: 0; padding-left: 16px; display: grid; gap: 5px; }
.xp .what li::marker { color: var(--orange); }
.work tr { cursor: pointer; }
.work tr:hover td { background: #e7e7e4; }
.work .code { color: var(--orange); font-weight: 700; letter-spacing: .1em; width: 70px; }
.work .nm { font-weight: 600; width: 190px; }
.work .stack { color: #444; }
.work .st { white-space: nowrap; }
.work .st::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-right: 7px; vertical-align: 1px; }
.work .ln { white-space: nowrap; text-align: right; }
.work .ln a { margin-left: 14px; font-weight: 600; }

footer { max-width: 1240px; margin: 110px auto 0; padding: 16px 28px 40px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--sub); }

#dev { width: 1240px; transform-origin: top left; border-radius: 24px; padding: 28px; position: relative; display: grid; grid-template-columns: 1fr 520px; gap: 30px;
  background: linear-gradient(160deg, #d3d3d0, #b8b8b4); box-shadow: inset 0 1px 0 #fffa, inset 0 -2px 0 #0002, 0 60px 100px -50px #0008, 0 30px 50px -40px #0006, 0 3px 0 #7d7d79; }
.screw { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f2f2f0, #9d9d99); box-shadow: inset 0 0 0 1px #0002; }
.screw::after { content: ""; position: absolute; left: 2px; right: 2px; top: 4.5px; height: 1px; background: #0005; transform: rotate(30deg); }
.screw.tl { left: 12px; top: 12px; }
.screw.tr { right: 12px; top: 12px; }
.screw.bl { left: 12px; bottom: 12px; }
.screw.br { right: 12px; bottom: 12px; }
.grille { height: 52px; border-radius: 12px; background: radial-gradient(circle, #4a4a48 1.7px, transparent 2.1px) 0 0 / 11px 11px; opacity: .5; margin-bottom: 16px; }
.head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.head em { font-style: normal; color: var(--orange); letter-spacing: .12em; }
.head .clock { margin-left: auto; }

.lrow { display: flex; gap: 18px; align-items: stretch; }
.lcd { flex: 1; min-width: 0; background: var(--lcd); border-radius: 12px; box-shadow: inset 0 3px 12px #000, 0 0 0 5px #9d9d99, 0 0 0 6px #fff6; color: #e9e9e4; padding: 16px; height: 430px;
  display: grid; grid-template-rows: auto 1fr auto; gap: 12px; overflow: hidden; position: relative; }
.lcd::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, #ffffff04 0 1px, transparent 1px 3px); }
.status { display: flex; gap: 14px; font-size: 10px; font-weight: 800; letter-spacing: .14em; color: #8a8a86; }
.status b { color: var(--orange); }
.status .push, .transport .push { margin-left: auto; }
.rec { width: 7px; height: 7px; border-radius: 50%; background: #333; display: inline-block; margin-right: 6px; }
.rec.on { background: var(--orange); box-shadow: 0 0 6px var(--orange); }

.scr { display: grid; grid-template-columns: 290px 1fr; gap: 18px; min-height: 0; transition: opacity .45s, transform .45s; }
.scr.out { opacity: 0; transform: translateY(6px); }
.pic { border-radius: 7px; overflow: hidden; background: #151615; display: grid; place-items: center; }
.pic img { width: 100%; height: 100%; object-fit: cover; animation: drift 14s ease-in-out infinite alternate; }
.pic svg { width: 42%; }
@keyframes drift {
  from { transform: scale(1.02); }
  to { transform: scale(1.12) translate(-2%, -1%); }
}
.txt { display: flex; flex-direction: column; min-width: 0; }
.txt > span { color: var(--orange); font-weight: 800; font-size: 10.5px; letter-spacing: .14em; }
.txt h1 { margin: 3px 0 8px; font-size: 28px; letter-spacing: -.02em; line-height: 1.08; font-weight: 600; }
.txt p { margin: 0 0 10px; color: #b6b6b0; font-size: 13px; }
.txt dl { margin: 0; font-size: 12px; color: #9a9a95; display: grid; gap: 3px; }
.txt dl div { display: flex; gap: 5px; }
.txt dd { margin: 0; color: #e9e9e4; font-weight: 600; }
.txt nav { display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 10px; }
.txt nav a { font-size: 10px; font-weight: 800; letter-spacing: .14em; padding: 7px 12px; border-radius: 6px; border: 1px solid #3a3a38; }
.txt nav a:first-child { background: var(--orange); border-color: var(--orange); color: #160800; }
.txt nav a:hover { color: #fff; }
.txt nav .lbl { color: #6b6b67; }

.steps { display: grid; grid-template-columns: 34px 1fr; gap: 3px 8px; align-items: center; }
.steps > span { font-size: 8.5px; font-weight: 800; letter-spacing: .12em; color: #6b6b67; }
.steps > div { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; }
.steps i { height: 6px; border-radius: 2px; background: #1f201e; }
.steps i:nth-child(4n+1) { background: #292a27; }
.steps i.on { background: #77786f; }
.steps i.soft { background: #4f504a; }
.steps i.now { outline: 1px solid #555; }
.steps i.on.now, .steps i.soft.now { background: var(--orange); box-shadow: 0 0 6px var(--orange); }

.fader { width: 54px; display: flex; flex-direction: column; align-items: center; gap: 8px; user-select: none; }
.fader b { font-size: 13px; }
.track { flex: 1; width: 100%; position: relative; cursor: grab; touch-action: none; border-radius: 10px; background: linear-gradient(#bdbdb9, #c9c9c5); box-shadow: inset 0 2px 4px #0003, inset 0 -1px 0 #fff6; }
.track::before { content: ""; position: absolute; inset: 18px 6px; background: repeating-linear-gradient(#0000 0 calc(10% - 1px), #0003 calc(10% - 1px) 10%);
  mask: linear-gradient(90deg, #000 0 9px, transparent 9px calc(100% - 9px), #000 calc(100% - 9px)); }
.slot { position: absolute; left: 50%; top: 18px; bottom: 18px; width: 6px; margin-left: -3px; border-radius: 3px; background: #2a2a2c; box-shadow: inset 0 1px 2px #000; overflow: hidden; }
.slot i { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--vol) * 100%); background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.fader.silent .slot i { display: none; }
.cap { position: absolute; left: 4px; right: 4px; top: calc(18px + (100% - 36px) * (1 - var(--vol))); height: 30px; margin-top: -15px; border-radius: 7px; background: linear-gradient(#ff8a5a, #ff5a1f); box-shadow: 0 4px 0 #b33b0c, 0 6px 10px #0004; }
.cap::after { content: ""; position: absolute; left: 8px; right: 8px; top: 14px; height: 2px; background: #160800; }
.track:active .cap { box-shadow: 0 2px 0 #b33b0c, 0 0 14px #ff5a1f99; }

.transport { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.transport > button { border: 0; cursor: pointer; min-width: 70px; height: 48px; padding: 0 12px; border-radius: 10px; font-size: 10px; font-weight: 800; letter-spacing: .14em;
  background: linear-gradient(#2c2c2e, #1d1d1f); color: #ecebe6; box-shadow: 0 4px 0 #000, 0 5px 8px #0005; display: flex; align-items: center; gap: 7px; }
.transport > button:active, .transport > button.down { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
#play { background: linear-gradient(#ff7a45, #ff5a1f); color: #160800; box-shadow: 0 4px 0 #b33b0c, 0 5px 8px #0004; }
#play.on { box-shadow: 0 1px 0 #b33b0c, 0 0 14px var(--orange); transform: translateY(3px); }
#shuffle, #mute { background: linear-gradient(#efefec, #d6d6d2); color: #4a4a46; box-shadow: 0 4px 0 #8d8d89; }
#shuffle:active, #shuffle.down, #mute:active { box-shadow: 0 1px 0 #8d8d89; }
#shuffle svg, #mute svg { width: 17px; height: 17px; }
#die.roll { animation: roll .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes roll {
  from { transform: rotate(-200deg) scale(.7); }
}
#mute.on { color: var(--orange); }
#mute .x, #mute:not(.on) .w { display: none; }
#mute:not(.on) .x { display: inline; }
.knob { display: flex; align-items: center; gap: 10px; }
.knob > div:first-child { display: flex; flex-direction: column; text-align: right; }
.knob b { font-size: 17px; }
.dial { width: 52px; height: 52px; border-radius: 50%; cursor: grab; touch-action: none; position: relative; background: radial-gradient(circle at 40% 30%, #fff, #c6c6c2 65%); box-shadow: 0 4px 0 #8d8d89, 0 6px 10px #0003; }
.dial::after { content: ""; position: absolute; left: 50%; top: 5px; width: 4px; height: 12px; margin-left: -2px; border-radius: 2px; background: var(--orange); transform: rotate(var(--angle, 0deg)); transform-origin: 2px 21px; }
.dial.dark { background: radial-gradient(circle at 40% 30%, #4a4a4d, #1d1d1f 70%); box-shadow: 0 4px 0 #000, 0 6px 10px #0004; }
.dial.dark::after { background: #fff; }
.dial:active, .track:active, .dragging, .dragging * { cursor: grabbing !important; }

.pads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-content: start; padding-top: 4px; }
.pad { aspect-ratio: 1; border: 0; cursor: pointer; border-radius: 14px; position: relative; padding: 12px; text-align: left; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(#ededea, #d5d5d1); box-shadow: 0 6px 0 #8d8d89, 0 8px 14px #0003; color: #8d8d89; font-size: 10px; font-weight: 800; letter-spacing: .14em; transition: transform .05s; }
.pad kbd { position: absolute; right: 12px; top: 11px; font: 700 9.5px var(--font); color: #a5a5a1; }
.pad strong { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); line-height: 1.2; }
.pad small { display: block; font-size: 10.5px; font-weight: 400; color: #7d7d79; letter-spacing: .04em; margin-top: 2px; }
.pad.work { background: linear-gradient(#f8f8f6, #e3e3df); }
.pad.work::after { content: ""; position: absolute; right: 12px; bottom: 12px; width: 9px; height: 9px; border-radius: 50%; background: #0002; transition: background .2s; }
.pad.work.sel::after { background: var(--orange); box-shadow: 0 0 9px var(--orange); }
.pad.drum { background: linear-gradient(#3a3a3c, #2a2a2c); box-shadow: 0 6px 0 #111, 0 8px 14px #0004; color: #77777a; }
.pad.drum strong { color: #ecebe6; }
.pad.drum small { color: #9a9a95; }
.pad.go { background: linear-gradient(#ff7a45, #ff5a1f); box-shadow: 0 6px 0 #b33b0c, 0 8px 14px #0003; color: #5c1e05; }
.pad.go strong { color: #160800; }
.pad.go small, .pad.go kbd { color: #5c1e05; }
.pad.hit { transform: translateY(5px); box-shadow: 0 1px 0 #8d8d89, 0 0 0 2px var(--orange), 0 0 24px #ff5a1f88; }
.pad.drum.hit { box-shadow: 0 1px 0 #111, 0 0 0 2px var(--orange), 0 0 24px #ff5a1f88; }
.pad.go.hit { box-shadow: 0 1px 0 #b33b0c, 0 0 0 2px #fff, 0 0 24px #ff5a1f; }
.devfoot { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-top: -8px; }

@media (max-width: 820px) {
  header { padding: 12px 16px; gap: 12px; }
  header nav { gap: 12px; }
  header nav .opt { display: none; }
  .hero { padding: 12px 10px 0; }
  #dev { width: 100%; grid-template-columns: 1fr; padding: 16px; gap: 18px; border-radius: 18px; }
  .grille, .hint, .head .lbl { display: none; }
  .head { white-space: nowrap; }
  .lcd { height: auto; }
  .scr { grid-template-columns: 1fr; }
  .pic { aspect-ratio: 16 / 10; }
  .txt nav { margin-top: 14px; }
  .transport { flex-wrap: wrap; }
  .pads { gap: 8px; }
  .pad { padding: 8px; border-radius: 10px; }
  .pad strong { font-size: 9.5px; }
  .pad small, .pad kbd { display: none; }
  .devfoot { flex-direction: column; gap: 4px; margin-top: 0; }
  .about, .skills { grid-template-columns: 1fr; }
  .xp td { display: block; width: auto !important; border: 0; padding: 4px 0; }
  .xp tr { display: block; border-top: 1px solid var(--line); padding: 8px 0; }
  .work .stack, .work .st { display: none; }
  section { padding: 64px 16px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
