@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  font-family: "Manrope", sans-serif;
  color: #f4f4ed;
  background: #0b0c0c;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --acid: #59b7ff;
  --perro: #f39a45;
  --health: #59b7ff;
  --ssi: #61c8ff;
  --ssi-gradient: linear-gradient(135deg, #c9efff 0%, #63ccff 52%, #3c8eff 100%);
  --bozo: #ef5149;
  --coral: #ff745b;
  --cyan: #61dff1;
  --violet: #b9a6ff;
  --ink: #0b0c0c;
  --ink-2: #121312;
  --ink-3: #181a18;
  --paper: #f2f2e9;
  --muted: #999d94;
  --line: rgba(242, 242, 233, .15);
  --mono: "DM Mono", monospace;
  --radius: 22px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #0b0c0c; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: #0b0c0c; background: #59b7ff; }

main { min-height: 100vh; overflow: clip; background: var(--ink); }
.site-nav {
  position: sticky; z-index: 50; top: 0; height: 76px; padding: 0 max(24px, calc((100vw - 1400px) / 2));
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line); background: rgba(11, 12, 12, .88); backdrop-filter: blur(18px);
}
.wordmark { white-space: nowrap; font-size: 18px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.wordmark span { color: var(--acid); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: #bbbeb7; font-size: 12px; font-weight: 700; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--paper); }
.nav-links .nav-cta { padding: 10px 14px; color: var(--ink); background: var(--acid); border-radius: 999px; }
.nav-cta span { margin-left: 7px; }

.portfolio-intro {
  max-width: 1400px; margin: auto; padding: 72px 36px 62px;
  border-inline: 1px solid var(--line);
}
.portfolio-intro h1 {
  margin: 42px 0 72px; max-width: 1120px; color: var(--paper);
  font-size: clamp(58px, 7.4vw, 112px); font-weight: 600; line-height: .92; letter-spacing: -.072em;
}
.portfolio-intro h1 em { color: var(--acid); font-style: normal; }
.intro-bottom { display: flex; align-items: flex-end; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 22px; }
.intro-bottom p { margin: 0; max-width: 430px; color: #b2b5ae; font-size: 17px; line-height: 1.55; }
.intro-bottom a { display: flex; gap: 34px; color: var(--paper); font: 500 11px/1 var(--mono); letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }

.project-index {
  display: grid; grid-template-columns: 1.4fr .8fr .8fr; max-width: 1400px; margin: auto;
  border: 1px solid var(--line); border-bottom: none;
}
.index-project {
  position: relative; min-height: 490px; padding: 28px; overflow: hidden;
  display: flex; flex-direction: column; color: var(--paper); text-decoration: none;
  transition: background .3s, transform .3s;
}
.index-project::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--project-color); }
.index-perro { --project-color: var(--perro); }
.index-health { --project-color: var(--health); }
.index-lab { --project-color: linear-gradient(90deg, var(--ssi) 0 50%, var(--bozo) 50%); }
.index-perro .index-copy h2 { color: var(--perro); }
.index-health .index-copy h2 { color: var(--health); }
.index-project + .index-project { border-left: 1px solid var(--line); }
.index-project:hover { background: #151615; }
.index-project > span:last-child { position: absolute; top: 28px; right: 28px; font-size: 20px; transition: transform .2s; }
.index-project:hover > span:last-child { transform: translate(4px, -4px); }
.index-num { color: #696d65; font: 500 10px/1 var(--mono); }
.index-copy { position: relative; z-index: 2; margin-top: auto; }
.index-copy > span { color: #7f837a; font: 500 9px/1.3 var(--mono); letter-spacing: .1em; }
.index-copy h2 { margin: 11px 0 15px; color: var(--paper); font-size: clamp(43px, 5vw, 72px); line-height: 1; letter-spacing: -.06em; }
.index-copy p { max-width: 440px; margin: 0; color: #a8aba4; font-size: 14px; line-height: 1.6; }
.index-health .index-copy h2, .index-lab .index-copy h2 { font-size: clamp(37px, 3.6vw, 54px); }
.perro-logo-visual { position: absolute; top: 34px; left: 50%; width: min(330px, 76%); transform: translateX(-50%) rotate(-2deg); display: grid; place-items: center; }
.perro-logo-visual::before { position: absolute; width: 86%; aspect-ratio: 1; content: ""; border-radius: 50%; background: radial-gradient(circle, rgba(243,154,69,.18), transparent 66%); filter: blur(12px); }
.perro-logo { position: relative; z-index: 1; display: block; width: 100%; max-height: 270px; object-fit: contain; filter: drop-shadow(0 22px 42px rgba(0,0,0,.32)); animation: soft-float 5.8s ease-in-out infinite; }
.index-phone { position: absolute; top: 54px; left: 50%; width: 155px; padding: 5px; overflow: hidden; transform: translateX(-50%) rotate(6deg); border: 1px solid #33403d; border-radius: 25px; background: #18201e; box-shadow: 14px 18px 0 rgba(97,223,241,.07); }
.index-phone img { display: block; width: 100%; border-radius: 20px; }
.index-health .index-phone { animation: index-phone-float 6s ease-in-out infinite; }
.lab-dots { position: absolute; top: 95px; left: 50%; width: 210px; height: 150px; transform: translateX(-50%); }
.lab-dots i { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: var(--coral); box-shadow: inset -5px -6px 0 rgba(0,0,0,.18); }
.lab-dots i:nth-child(1) { left: 5px; top: 80px; }
.lab-dots i:nth-child(2) { left: 50px; top: 25px; width: 44px; height: 44px; background: var(--cyan); }
.lab-dots i:nth-child(3) { left: 105px; top: 90px; background: var(--acid); }
.lab-dots i:nth-child(4) { right: 4px; top: 38px; width: 52px; height: 52px; background: var(--violet); }
.lab-dots i:nth-child(5) { left: 85px; top: 3px; width: 12px; height: 12px; background: var(--paper); }

.section { max-width: 1400px; margin: auto; padding: 130px 36px; border-inline: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(260px, 400px); gap: 28px; align-items: end; margin-bottom: 68px; }
.section-code { align-self: start; color: #73776f; font: 500 10px/1 var(--mono); letter-spacing: .12em; }
.section-head h2 { margin: 0; color: var(--paper); font-size: clamp(43px, 5vw, 72px); line-height: .98; letter-spacing: -.055em; }
.section-head > p { margin: 0; color: #9ca098; font-size: 15px; line-height: 1.7; }

.case-study { scroll-margin-top: 90px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
.perro-case { display: grid; grid-template-columns: .78fr 1.22fr; }
.case-copy { padding: 54px; display: flex; flex-direction: column; justify-content: center; }
.case-kicker { display: flex; align-items: center; gap: 12px; color: #858981; font: 500 9px/1 var(--mono); letter-spacing: .1em; }
.project-icon { width: 26px; height: 26px; display: inline-grid; place-items: center; color: var(--ink); border-radius: 7px; font: 700 12px/1 var(--mono); background: var(--acid); }
.perro-icon { width: 34px; height: 34px; padding: 3px; overflow: hidden; border: 1px solid rgba(243,154,69,.35); background: #121310; }
.perro-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.health-icon { color: white; background: #287fca; border-radius: 7px; }
.case-copy h3, .health-copy h3 { margin: 26px 0 22px; color: var(--paper); font-size: clamp(48px, 5.5vw, 78px); line-height: .94; letter-spacing: -.065em; }
.case-lead { margin: 0; color: #adafa9; font-size: 17px; line-height: 1.7; }
.link-row { display: flex; gap: 26px; margin-top: 34px; }
.text-link { color: var(--paper); font: 600 11px/1 var(--mono); text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }
.text-link span { margin-left: 8px; }
.text-link.subdued { color: #8f938a; }
.perro-link { display: inline-block; align-self: flex-start; margin-top: 34px; }
.engine-window { min-height: 490px; margin: 38px; overflow: hidden; border: 1px solid #353934; border-radius: 16px; background: #0d0f0d; box-shadow: 18px 18px 0 rgba(89,183,255,.06); }
.window-bar { height: 42px; padding: 0 15px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid #2d302c; color: #666a62; }
.window-bar > span { width: 7px; height: 7px; border-radius: 50%; background: #50534d; }
.window-bar b { margin-left: 9px; font: 400 9px/1 var(--mono); }
.window-bar em { margin-left: auto; color: var(--acid); font: 500 8px/1 var(--mono); letter-spacing: .1em; font-style: normal; }
.perro-embed { position: relative; min-height: 446px; overflow: hidden; isolation: isolate; background: radial-gradient(circle at 50% 25%,#183352,#080b10 68%); }
.perro-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #080b10; }
.perro-demo-launch { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 72px 24px; text-align: center; background: radial-gradient(circle at 50% 35%,rgba(38,94,140,.32),transparent 45%),linear-gradient(145deg,#101b26,#070a0e); }
.perro-demo-launch span { color: #72dca0; font: 500 9px/1 var(--mono); letter-spacing: .12em; }
.perro-demo-launch strong { color: #eef6fc; font-size: clamp(24px,3vw,42px); line-height: 1; letter-spacing: -.04em; }
.perro-demo-launch a { margin-top: 8px; padding: 13px 18px; color: #dcecff; border: 1px solid #52708a; border-radius: 9px; background: #14283a; font: 600 9px/1 var(--mono); letter-spacing: .1em; text-decoration: none; cursor: pointer; }
.perro-demo-launch small { color: #8ea0ae; font: 500 8px/1.4 var(--mono); letter-spacing: .06em; }
.perro-demo-status { position: absolute; z-index: 2; left: 16px; top: 16px; padding: 9px 11px; display: inline-flex; align-items: center; gap: 8px; color: #d8e8f7; border: 1px solid rgba(216,232,247,.2); border-radius: 999px; background: rgba(5,10,15,.72); font: 500 8px/1 var(--mono); letter-spacing: .08em; pointer-events: none; backdrop-filter: blur(10px); }
.perro-demo-status i { width: 6px; height: 6px; border-radius: 50%; background: #72dca0; box-shadow: 0 0 0 5px rgba(114,220,160,.1); }
.perro-demo-help { position: absolute; z-index: 2; right: 14px; bottom: 14px; left: 14px; padding: 10px 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; color: #aebdca; border: 1px solid rgba(216,232,247,.16); border-radius: 12px; background: rgba(5,10,15,.78); font: 500 8px/1.3 var(--mono); letter-spacing: .06em; pointer-events: none; backdrop-filter: blur(12px); }
.perro-demo-help b { margin-right: auto; color: var(--acid); font-weight: 500; }
.perro-demo-help span { display: inline-flex; align-items: center; gap: 6px; }
.perro-demo-help kbd { padding: 4px 6px; color: #eef6fc; border: 1px solid #405466; border-bottom-width: 2px; border-radius: 5px; background: #14202a; font: inherit; }
.engine-canvas { position: relative; min-height: 446px; overflow: hidden; isolation: isolate; background-image: radial-gradient(#30342e 1px, transparent 1px); background-size: 22px 22px; }
.engine-canvas::before { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; right: -75px; top: -90px; border: 1px solid rgba(97,223,241,.24); border-radius: 50%; box-shadow: 0 0 60px rgba(97,223,241,.09), inset 0 0 40px rgba(97,223,241,.05); animation: engine-orbit 11s ease-in-out infinite; }
.engine-canvas::after { content: ""; position: absolute; z-index: -1; width: 150px; height: 150px; left: 11%; bottom: -75px; border-radius: 42% 58% 63% 37%; background: linear-gradient(135deg, rgba(243,154,69,.2), rgba(255,116,91,.04)); filter: blur(2px); animation: engine-blob 9s ease-in-out infinite; }
.node { position: absolute; z-index: 2; width: 160px; padding: 15px; border: 1px solid #4d5249; border-radius: var(--radius-sm); background: #171a17; box-shadow: 9px 9px 0 rgba(0,0,0,.24); }
.node small { display: block; margin-bottom: 12px; color: #666b62; font: 500 8px/1 var(--mono); letter-spacing: .1em; }
.node strong { display: block; color: var(--paper); font-size: 15px; }
.node span { display: block; margin-top: 6px; color: #858a80; font: 400 9px/1.4 var(--mono); }
.node-player { left: 8%; top: 42%; border-top: 3px solid var(--perro); }
.node-script { left: 39%; top: 19%; border-top: 3px solid var(--coral); }
.node-state { right: 7%; top: 52%; border-top: 3px solid var(--cyan); }
.node-player { animation: node-float 5.8s ease-in-out infinite; }
.node-script { animation: node-float 6.5s ease-in-out -1.6s infinite; }
.node-state { animation: node-float 5.2s ease-in-out -3.1s infinite; }
.wire { position: absolute; z-index: 1; height: 1px; border-top: 1px dashed #5b6056; transform-origin: left; }
.wire-a { width: 220px; left: 25%; top: 48%; transform: rotate(-29deg); }
.wire-b { width: 225px; left: 56%; top: 35%; transform: rotate(31deg); }
.wire-a { animation: wire-pulse 2.8s ease-in-out infinite; }
.wire-b { animation: wire-pulse 2.8s ease-in-out -1.4s infinite; }
.scope-chip { position: absolute; left: 35%; bottom: 38px; padding: 10px 13px; color: var(--ink); border-radius: 999px; background: var(--perro); font: 600 9px/1 var(--mono); transform: rotate(-2deg); }
.scope-chip { animation: chip-float 5s ease-in-out -2s infinite; }
.case-detail-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.detail-block { position: relative; min-height: 290px; padding: 42px; }
.detail-block + .detail-block { border-left: 1px solid var(--line); }
.detail-num { color: #60645c; font: 500 9px/1 var(--mono); }
.detail-block h4 { margin: 44px 0 15px; color: var(--paper); font-size: 20px; letter-spacing: -.025em; }
.detail-block p { margin: 0; color: #92968e; font-size: 13px; line-height: 1.7; }
.benchmark { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr .7fr 1fr; gap: 28px; align-items: center; padding: 34px 42px; color: var(--ink); background: var(--perro); }
.benchmark span { display: block; font: 600 8px/1 var(--mono); letter-spacing: .11em; }
.benchmark strong { display: block; margin-top: 9px; font-size: clamp(29px, 3.5vw, 46px); line-height: 1; letter-spacing: -.055em; }
.benchmark strong i { color: #174f7b; font-style: normal; }
.benchmark-bars { display: flex; align-items: center; gap: 8px; }
.benchmark-bars span { height: 10px; background: var(--ink); }
.benchmark-bars span:first-child { width: 100%; opacity: .24; }
.benchmark-bars span:last-child { width: 7%; }
.benchmark p { margin: 0; font-size: 12px; line-height: 1.55; }

.health-case { margin-top: 80px; display: grid; grid-template-columns: .85fr 1.15fr; overflow: hidden; background: #dcebfa; color: #152f46; border-color: #c7dbea; }
.health-copy { padding: 58px; }
.health-copy h3 { color: #152f46; }
.health-copy .case-lead { color: #486477; }
.project-context { margin: 28px 0; color: #3d6887; font: 500 10px/1.6 var(--mono); letter-spacing: .03em; }
.button { display: inline-flex; align-items: center; gap: 20px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 700; text-decoration: none; }
.button-dark { color: white; background: #164d76; border-color: #164d76; }
.phone-gallery { position: relative; min-height: 590px; isolation: isolate; background: #bbdcf7; overflow: hidden; }
.phone-gallery::before { content: ""; position: absolute; z-index: 0; width: 380px; height: 380px; left: 50%; top: 45%; border: 1px solid rgba(22,77,118,.16); border-radius: 50%; transform: translate(-50%,-50%); box-shadow: 0 0 0 38px rgba(255,255,255,.08), 0 0 0 76px rgba(22,77,118,.035); animation: health-ring 9s ease-in-out infinite; }
.phone-gallery::after { content: ""; position: absolute; z-index: 0; width: 130px; height: 130px; right: -30px; bottom: 30px; border-radius: 36% 64% 55% 45%; background: rgba(97,223,241,.45); filter: blur(1px); animation: health-blob 8s ease-in-out infinite; }
.phone { position: absolute; width: 210px; padding: 5px; overflow: hidden; border: 1px solid #35576f; border-radius: 34px; background: #172d3d; box-shadow: 22px 28px 34px rgba(31, 72, 103, .18); }
.phone img { display: block; width: 100%; border-radius: 28px; }
.phone-front { z-index: 3; left: 50%; bottom: -65px; transform: translateX(-50%); width: 245px; }
.phone-back { z-index: 1; left: 4%; top: 100px; transform: rotate(-8deg); }
.phone-side { z-index: 2; right: 2%; top: 55px; transform: rotate(9deg); }
.phone-front { animation: phone-float 6.4s ease-in-out infinite; }
.phone-back { animation: phone-float 7.2s ease-in-out -2.6s infinite; }
.phone-side { animation: phone-float 5.8s ease-in-out -4s infinite; }
.health-floats { position: absolute; z-index: 5; inset: 0; pointer-events: none; }
.health-float { position: absolute; min-width: 104px; padding: 12px 14px; color: #17354b; border: 1px solid rgba(22,77,118,.2); border-radius: 14px; background: rgba(242,248,252,.82); box-shadow: 9px 12px 24px rgba(31,72,103,.12); backdrop-filter: blur(10px); }
.health-float b, .health-float span { display: block; }
.health-float b { font-size: 20px; line-height: 1; letter-spacing: -.04em; }
.health-float span { margin-top: 6px; color: #48708d; font: 600 7px/1 var(--mono); letter-spacing: .1em; }
.health-float-users { left: 5%; top: 38px; transform: rotate(-4deg); animation: stat-float 5.8s ease-in-out infinite; }
.health-float-foods { right: 4%; bottom: 40px; transform: rotate(4deg); animation: stat-float 6.5s ease-in-out -3s infinite; }
.health-orbit { position: absolute; display: block; width: 15px; height: 15px; border-radius: 50%; background: #164d76; box-shadow: 0 0 0 7px rgba(22,77,118,.09); }
.health-orbit-one { right: 16%; top: 15%; animation: dot-drift 7s ease-in-out infinite; }
.health-orbit-two { left: 19%; bottom: 17%; width: 10px; height: 10px; background: var(--cyan); box-shadow: 0 0 0 6px rgba(97,223,241,.18); animation: dot-drift 5.5s ease-in-out -2.7s infinite; }
.health-system { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #b8cede; }
.health-system > div { padding: 28px; display: grid; grid-template-columns: 30px 1fr; }
.health-system > div + div { border-left: 1px solid #b8cede; }
.health-system span { grid-row: 1 / 3; color: #678ba5; font: 500 9px/1 var(--mono); }
.health-system b { color: #17354b; font-size: 13px; }
.health-system small { margin-top: 7px; color: #5c778a; font-size: 10px; line-height: 1.45; }
.health-note { grid-column: 1 / -1; margin: 0; padding: 15px 28px; color: #5a778c; border-top: 1px solid #b8cede; font: 500 9px/1.5 var(--mono); text-align: center; letter-spacing: .04em; }

@keyframes soft-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes index-phone-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -11px; } }
@keyframes node-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes wire-pulse { 0%, 100% { opacity: .3; filter: drop-shadow(0 0 0 transparent); } 50% { opacity: 1; filter: drop-shadow(0 0 4px rgba(97,223,241,.65)); } }
@keyframes chip-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes engine-orbit { 0%, 100% { translate: 0 0; scale: 1; } 50% { translate: -22px 18px; scale: 1.08; } }
@keyframes engine-blob { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 28px -20px; rotate: 18deg; } }
@keyframes phone-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes stat-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -13px; } }
@keyframes health-ring { 0%, 100% { scale: 1; opacity: .7; } 50% { scale: 1.06; opacity: 1; } }
@keyframes health-blob { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: -25px -22px; rotate: -20deg; } }
@keyframes dot-drift { 0%, 100% { translate: 0 0; } 50% { translate: 18px -22px; } }

.lab-section { background: #101110; }
.lab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lab-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
.lab-art { position: relative; height: clamp(320px, 35vw, 460px); overflow: hidden; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); }
.game-logo { position: relative; z-index: 2; display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.ssi-logo { width: 100%; height: 100%; padding: clamp(18px, 4vw, 40px); }
.bozo-logo { width: auto; height: 100%; max-width: none; padding: 0; margin: auto; }
.lab-copy { padding: 42px; }
.lab-copy h3 { margin: 24px 0 18px; color: var(--paper); font-size: clamp(36px, 4vw, 55px); line-height: .98; letter-spacing: -.055em; }
.lab-copy > p { margin: 0; color: #9ca098; font-size: 14px; line-height: 1.7; }
.lab-copy ul { margin: 28px 0 0; padding: 0; list-style: none; }
.lab-copy li { padding: 11px 0; color: #c2c5be; border-top: 1px solid var(--line); font: 400 10px/1.4 var(--mono); }
.sports-card { border-top: 4px solid var(--ssi); }
.joycon-art { background: var(--ssi-gradient); }
.joycon { position: absolute; z-index: 3; top: 68px; width: 100px; height: 230px; border: 5px solid #20221f; background: var(--cyan); box-shadow: 15px 18px 0 rgba(34,35,32,.12); }
.joy-left { left: calc(50% - 105px); border-radius: 50px 8px 8px 50px; transform: rotate(-8deg); }
.joy-right { left: calc(50% + 10px); border-radius: 8px 50px 50px 8px; background: var(--coral); transform: rotate(8deg); }
.joycon i { position: absolute; top: 38px; left: 30px; width: 34px; height: 34px; border-radius: 50%; border: 8px solid #2b2d29; background: #141513; }
.joycon b { position: absolute; top: 95px; left: 39px; color: #2b2d29; font-size: 17px; }
.joycon > span { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #252723; }
.joycon > span:nth-of-type(1) { left: 41px; top: 135px; }
.joycon > span:nth-of-type(2) { left: 25px; top: 151px; }
.joycon > span:nth-of-type(3) { left: 57px; top: 151px; }
.joycon > span:nth-of-type(4) { left: 41px; top: 167px; }
.signal-rings i { position: absolute; z-index: 1; left: 50%; top: 50%; border: 1px solid rgba(54,47,81,.25); border-radius: 50%; transform: translate(-50%,-50%); }
.signal-rings i:nth-child(1) { width: 250px; height: 250px; }
.signal-rings i:nth-child(2) { width: 360px; height: 360px; }
.signal-rings i:nth-child(3) { width: 470px; height: 470px; }
.joycon-art small { position: absolute; left: 18px; bottom: 16px; color: #5d5873; font: 500 8px/1 var(--mono); }
.bozo-card { border-top: 4px solid var(--bozo); }
.bozo-art { background: #64151a; }
.bozo-art::before { content: ""; position: absolute; inset: -24px; background: url("/bozosort.png") center / cover; filter: blur(24px); opacity: .34; }
.axis { position: absolute; color: #553315; font: 700 9px/1 var(--mono); }
.axis-x { left: 24px; bottom: 18px; width: calc(100% - 48px); border-top: 2px solid #583719; padding-top: 7px; }
.axis-y { left: 12px; top: 25px; height: calc(100% - 55px); border-top: 2px solid #583719; writing-mode: vertical-rl; }
.sort-block { position: absolute; z-index: 2; display: grid; place-items: center; width: 74px; height: 74px; border: 3px solid #2c2118; background: var(--acid); font-size: 34px; box-shadow: 7px 8px 0 rgba(44,33,24,.2); }
.block-a { right: 70px; bottom: 50px; transform: rotate(6deg); }
.block-b { left: 75px; bottom: 75px; background: var(--cyan); transform: rotate(-5deg); }
.block-c { left: 48%; top: 58px; background: var(--violet); transform: rotate(12deg); }
.bouncy-ball { position: absolute; z-index: 4; left: 37%; bottom: 35px; width: 48px; height: 48px; border: 3px solid #2c2118; border-radius: 50%; background: var(--coral); box-shadow: inset -8px -9px 0 rgba(0,0,0,.15); }
.pow { position: absolute; z-index: 5; left: 27%; bottom: 100px; color: #2c2118; font: 800 22px/1 var(--mono); transform: rotate(-12deg); }

.origins-section { background: var(--ink); }
.origin-list { display: grid; gap: 26px; }
.origin-card { min-height: 440px; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
.origin-reverse { grid-template-columns: .9fr 1.1fr; }
.origin-reverse .origin-media { order: 2; }
.origin-media { position: relative; min-height: 430px; overflow: hidden; }
.origin-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top,rgba(0,0,0,.65),transparent 60%); }
.origin-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.08); transition: transform .5s, filter .5s; }
.origin-media:hover img { transform: scale(1.025); filter: saturate(1) contrast(1.03); }
.play-button { position: absolute; z-index: 2; left: 24px; bottom: 24px; padding: 13px 15px; color: var(--ink); border-radius: 999px; background: var(--acid); font: 700 12px/1 var(--mono); }
.play-button b { margin-left: 8px; font-size: 8px; letter-spacing: .08em; }
.origin-copy { padding: 46px; display: flex; flex-direction: column; justify-content: center; }
.origin-top { display: flex; justify-content: space-between; color: #73776f; font: 500 8px/1.4 var(--mono); letter-spacing: .08em; }
.origin-copy h3 { margin: 55px 0 18px; color: var(--paper); font-size: clamp(39px,4.5vw,62px); line-height: .95; letter-spacing: -.06em; }
.origin-copy > p { margin: 0; color: #9ca098; font-size: 14px; line-height: 1.7; }
.origin-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 28px 0; color: #7e8279; font: 500 8px/1 var(--mono); }
.origin-flow i { color: var(--acid); font-style: normal; }

.framework-section { background: #0e100f; }
.framework-section .section-head { margin-bottom: 54px; }
.framework-story-grid { position: relative; display: grid; grid-template-columns: minmax(0,1.16fr) minmax(340px,.84fr); overflow: hidden; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: #090b0a; box-shadow: inset 0 1px rgba(255,255,255,.025); }
.framework-story { position: relative; isolation: isolate; min-height: 660px; padding: 58px 64px 56px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: radial-gradient(circle at 12% 12%,rgba(187,255,87,.085),transparent 30%), linear-gradient(145deg,#151815 0%,#0e100f 62%); }
.framework-story::before { position: absolute; z-index: -1; right: 52px; top: 48px; width: 180px; height: 180px; content: ""; border: 1px solid rgba(187,255,87,.09); border-radius: 50%; box-shadow: 0 0 0 34px rgba(187,255,87,.025),0 0 0 68px rgba(187,255,87,.012); }
.framework-story::after { position: absolute; right: 19px; bottom: 32px; content: "RUST / UI / EXPERIMENT"; color: #4f554d; font: 500 7px/1 var(--mono); letter-spacing: .16em; writing-mode: vertical-rl; }
.framework-story .case-kicker { width: max-content; padding: 9px 12px; color: var(--acid); border: 1px solid rgba(187,255,87,.22); border-radius: 999px; background: rgba(187,255,87,.055); }
.framework-story h3 { max-width: 660px; margin: auto 46px 46px 0; color: var(--paper); font-size: clamp(42px,4.7vw,68px); line-height: .93; letter-spacing: -.065em; text-wrap: balance; }
.framework-story p { max-width: 610px; margin: 0; padding-right: 46px; color: #a5aaa1; font-size: 14px; line-height: 1.78; }
.framework-story p:first-of-type { padding-top: 28px; border-top: 1px solid #30342f; }
.framework-story p + p { margin-top: 16px; color: #7f857c; }
.framework-parts { padding: 18px; display: grid; align-content: center; gap: 11px; background: linear-gradient(180deg,#0c0e0d,#080908); }
.framework-parts > div { --part-accent: var(--acid); position: relative; min-height: 132px; padding: 25px 26px; display: grid; grid-template-columns: 68px 1fr; grid-template-rows: auto auto; align-content: center; overflow: hidden; border: 1px solid #292d29; border-radius: 14px; background: linear-gradient(110deg,color-mix(in srgb,var(--part-accent) 7%,#141614),#101210 54%); transition: transform .24s cubic-bezier(.16,1,.3,1),border-color .24s ease,background .24s ease; }
.framework-parts > div::before { position: absolute; inset: 20px auto 20px 0; width: 2px; content: ""; background: var(--part-accent); box-shadow: 0 0 18px color-mix(in srgb,var(--part-accent) 50%,transparent); }
.framework-parts > div:nth-child(even) { margin-left: 18px; }
.framework-parts > div:nth-child(odd) { margin-right: 18px; }
.framework-parts > div:nth-child(2) { --part-accent: var(--cyan); }
.framework-parts > div:nth-child(3) { --part-accent: var(--violet); }
.framework-parts > div:nth-child(4) { --part-accent: var(--coral); }
.framework-parts > div:hover { z-index: 1; border-color: color-mix(in srgb,var(--part-accent) 42%,#292d29); background: linear-gradient(110deg,color-mix(in srgb,var(--part-accent) 11%,#151715),#101210 60%); transform: translateX(-5px); }
.framework-parts span { grid-row: 1 / 3; align-self: center; color: color-mix(in srgb,var(--part-accent) 80%,white); font: 300 28px/1 var(--mono); letter-spacing: -.08em; }
.framework-parts b { align-self: end; color: var(--paper); font-size: 18px; letter-spacing: -.03em; }
.framework-parts small { align-self: start; margin-top: 7px; color: #858b82; font: 400 9px/1.55 var(--mono); }
.framework-workbench { margin-top: 26px; display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #090a09; }
.framework-code { min-width: 0; border-right: 1px solid var(--line); }
.framework-code-bar { height: 48px; padding: 0 17px; display: flex; align-items: center; border-bottom: 1px solid var(--line); color: #747970; }
.framework-code-bar > div { display: flex; gap: 6px; }
.framework-code-bar i { width: 8px; height: 8px; border-radius: 50%; background: #40443e; }
.framework-code-bar i:nth-child(1) { background: var(--coral); }
.framework-code-bar i:nth-child(2) { background: var(--perro); }
.framework-code-bar i:nth-child(3) { background: var(--acid); }
.framework-code-bar span { margin-left: 14px; font: 400 9px/1 var(--mono); }
.framework-code-bar b { margin-left: auto; color: var(--acid); font: 500 8px/1 var(--mono); letter-spacing: .1em; }
.framework-editor-stack { position: relative; height: 500px; overflow: hidden; border-bottom: 1px solid var(--line); background-color: #090a09; background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px); background-size: 20px 20px; }
.framework-highlight, .framework-editor { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 34px; border: 0; outline: 0; font-family: "DM Mono", monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; font-stretch: normal; line-height: 1.72; letter-spacing: 0; font-kerning: none; font-variant-ligatures: none; tab-size: 4; white-space: pre; }
.framework-highlight { overflow: hidden; color: #aeb4aa; pointer-events: none; }
.framework-highlight code { display: block; width: max-content; min-width: 100%; font: inherit; letter-spacing: inherit; tab-size: inherit; white-space: inherit; transform-origin: top left; }
.framework-editor { z-index: 2; resize: none; overflow: auto; color: transparent; background: transparent; caret-color: var(--acid); -webkit-text-fill-color: transparent; }
.framework-editor:focus { box-shadow: inset 0 0 0 1px rgba(89,183,255,.38); }
.tok-comment { color: #697169; font-style: italic; }
.tok-string { color: #e6b97d; }
.tok-macro { color: #69b7ff; font-weight: 500; }
.tok-keyword { color: #c6a8ff; font-weight: 500; }
.tok-tag { color: #ff8b76; }
.tok-number { color: #8dd8a9; }
.tok-ident { color: #c7ccc3; }
.tok-punct { color: #899087; }
.playground-actions { min-height: 68px; padding: 12px 14px 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.playground-status { min-width: 0; overflow: hidden; font: 500 8px/1.4 var(--mono); letter-spacing: .06em; text-overflow: ellipsis; white-space: nowrap; }
.playground-status.is-ok { color: #72dca0; }
.playground-status.is-error { color: #ff8177; }
.hot-reload-badge { flex: 0 0 auto; padding: 10px 12px; display: inline-flex; align-items: center; gap: 8px; color: #aeb4aa; border: 1px solid #30352f; border-radius: 999px; font: 500 8px/1 var(--mono); letter-spacing: .08em; }
.hot-reload-badge i { width: 7px; height: 7px; border-radius: 50%; background: #72dca0; box-shadow: 0 0 0 5px rgba(114,220,160,.09); animation: hot-pulse 1.8s ease-in-out infinite; }
.playground-help { min-height: 52px; padding: 12px 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.playground-help > span { margin-right: 5px; color: #636860; font: 500 8px/1 var(--mono); letter-spacing: .1em; }
.playground-help code { padding: 6px 8px; color: #92978f; border: 1px solid #2d312c; border-radius: 999px; font: 400 8px/1 var(--mono); }
.framework-preview { min-width: 0; padding: 26px; display: flex; flex-direction: column; background: #dcebf8; color: #15334a; }
.preview-meta { display: flex; justify-content: space-between; gap: 14px; color: #53738a; font: 500 8px/1 var(--mono); letter-spacing: .09em; }
.preview-meta b { color: #174e77; font-weight: 500; }
.demo-stage { position: relative; flex: 1; min-height: 650px; padding: 54px; display: grid; place-items: center; overflow: hidden; }
.demo-stage::before { position: absolute; width: 430px; height: 430px; content: ""; border: 1px solid rgba(22,77,118,.12); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.1), 0 0 0 84px rgba(22,77,118,.035); pointer-events: none; }
.demo-card { position: relative; z-index: 1; width: min(100%, 420px); color: var(--paper); }
.demo-surface { --demo-bg: #141518; --demo-accent: var(--acid); margin: -1.5rem; padding: 1.5rem; border-radius: inherit; background: var(--demo-bg); transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s ease, filter .22s ease; }
.demo-theme-panel { --demo-bg: #141518; --demo-accent: var(--acid); }
.demo-theme-raised { --demo-bg: #1d1f24; --demo-accent: var(--perro); }
.demo-theme-soft { --demo-bg: #242730; --demo-accent: var(--violet); }
.demo-theme-canvas { --demo-bg: #090a0c; --demo-accent: var(--perro); }
.demo-theme-accent { --demo-bg: #24405a; --demo-accent: var(--acid); }
.demo-motion-lift:hover { transform: translateY(-6px); }
.demo-motion-scale:hover { transform: scale(1.025); }
.demo-motion-glow:hover { box-shadow: 0 22px 90px color-mix(in srgb, var(--demo-accent) 34%, transparent); }
.demo-motion-tilt:hover { transform: perspective(700px) rotateX(2deg) rotateY(-3deg) translateY(-3px); }
.demo-motion-brighten:hover { filter: brightness(1.12); }
.demo-kicker { color: var(--acid); font: 500 8px/1 var(--mono); letter-spacing: .1em; }
.demo-card h3 { margin: 24px 0 14px; font-size: clamp(32px,3.6vw,47px); line-height: .96; letter-spacing: -.055em; }
.demo-card > p { margin: 0; color: #9fa39b; font-size: 13px; line-height: 1.65; }
.demo-card button { width: 100%; margin-top: 30px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; color: var(--ink); border: 0; border-radius: 10px; background: var(--demo-accent); font: 700 10px/1 var(--mono); cursor: pointer; }
.demo-card button.demo-tap-press:active { transform: translate3d(0,2px,0) scale(.99); }
.demo-card button.demo-tap-shrink:active { transform: scale(.96); }
.demo-card button.demo-tap-bounce:active { transform: scale(.93); }
.demo-detail { margin-top: 13px; padding: 14px; display: grid; gap: 6px; color: #cfd3cb; border: 1px solid #343934; border-radius: 10px; background: #0d0f0d; }
.demo-detail b { color: var(--paper); font-size: 11px; }
.demo-detail span { font: 400 9px/1.55 var(--mono); }
.demo-updates { display: block; margin-top: 16px; color: #666b63; font: 500 8px/1 var(--mono); letter-spacing: .08em; }
.framework-note { margin: 26px 0 0; color: #6f746b; font: 500 9px/1 var(--mono); text-align: right; letter-spacing: .04em; }
@keyframes hot-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.experience-section { background: linear-gradient(135deg, #f5f1e8 0%, #e9f3f7 54%, #eee9f8 100%); color: #171817; }
.experience-section .section-code { color: #5e6687; }
.experience-section .section-head h2 { color: #171817; }
.experience-section .section-head p { color: #535b64; }
.timeline { display: grid; gap: 14px; }
.timeline-row {
  --exp-accent: #536de3;
  position: relative; display: grid; grid-template-columns: 190px 1fr 1.35fr; gap: 32px; padding: 34px 30px;
  overflow: hidden; border: 1px solid color-mix(in srgb, var(--exp-accent) 24%, #c9cbd0); border-radius: 18px;
  background: linear-gradient(105deg, color-mix(in srgb, var(--exp-accent) 13%, #fff) 0%, rgba(255,255,255,.72) 48%, rgba(255,255,255,.48) 100%);
  box-shadow: 0 12px 34px rgba(27,35,48,.06); transition: border-color .22s ease, box-shadow .22s ease;
}
.timeline-row::before { position: absolute; inset: 0 auto 0 0; width: 5px; content: ""; background: var(--exp-accent); }
.timeline-row:hover { border-color: color-mix(in srgb, var(--exp-accent) 48%, #b7bac0); box-shadow: 0 18px 46px color-mix(in srgb, var(--exp-accent) 16%, transparent); }
.experience-perro { --exp-accent: #dc712f; }
.experience-independent { --exp-accent: #1687a0; }
.experience-health { --exp-accent: #5966d9; }
.time { width: fit-content; height: fit-content; padding: 7px 9px; color: color-mix(in srgb, var(--exp-accent) 78%, #151719); border: 1px solid color-mix(in srgb, var(--exp-accent) 32%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--exp-accent) 10%, #fff); font: 600 9px/1.3 var(--mono); }
.timeline-row h3 { margin: 0 0 8px; color: color-mix(in srgb, var(--exp-accent) 74%, #171817); font-size: 19px; letter-spacing: -.025em; }
.timeline-row > div > p { margin: 0; color: #454b4f; font-size: 12px; line-height: 1.65; }
.timeline-row > div:last-child > p { color: #3e454a; font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tags span { padding: 6px 8px; color: color-mix(in srgb, var(--exp-accent) 76%, #25272a); border: 1px solid color-mix(in srgb, var(--exp-accent) 28%, #c5c7ca); border-radius: 999px; background: color-mix(in srgb, var(--exp-accent) 7%, #fff); font: 600 8px/1 var(--mono); text-transform: uppercase; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.about-title h2 { margin: 70px 0 0; color: var(--paper); font-size: clamp(42px,5vw,68px); line-height: 1.02; letter-spacing: -.06em; }
.about-title h2 em { color: var(--acid); font-style: normal; }
.about-copy p { color: #90948b; font-size: 14px; line-height: 1.75; }
.about-copy .large-copy { margin-top: 0; color: var(--paper); font-size: clamp(20px,2vw,27px); line-height: 1.48; letter-spacing: -.025em; }
.skill-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 42px; }
.skill-cloud span { padding: 9px 11px; color: #c2c5be; border: 1px solid var(--line); border-radius: 999px; font: 500 9px/1 var(--mono); }

.contact-section { position: relative; min-height: 720px; padding: 140px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: var(--acid); color: var(--ink); }
.contact-section .eyebrow { color: #164d76; }
.contact-section .eyebrow span { background: var(--ink); box-shadow: 0 0 0 5px rgba(11,12,12,.08); }
.contact-section h2 { position: relative; z-index: 2; margin: 38px 0; font-size: clamp(60px,8vw,120px); line-height: .88; letter-spacing: -.075em; }
.contact-section h2 em { font-style: normal; color: #164d76; }
.contact-email { position: relative; z-index: 2; padding-bottom: 8px; color: var(--ink); border-bottom: 2px solid var(--ink); font: 600 clamp(13px,2vw,18px)/1 var(--mono); text-decoration: none; }
.contact-email span { margin-left: 10px; }
.social-links { position: relative; z-index: 2; display: flex; gap: 20px; margin-top: 38px; }
.social-links a { padding: 10px 13px; color: var(--ink); border: 1px solid rgba(11,12,12,.28); border-radius: 999px; font: 600 9px/1 var(--mono); text-decoration: none; text-transform: uppercase; }
.contact-orbit { position: absolute; width: 560px; height: 560px; border: 1px solid rgba(11,12,12,.12); border-radius: 50%; animation: orbit 18s linear infinite; }
.contact-orbit i { position: absolute; width: 19px; height: 19px; border: 3px solid var(--ink); border-radius: 50%; background: var(--coral); }
.contact-orbit i:nth-child(1) { left: 50%; top: -10px; }
.contact-orbit i:nth-child(2) { right: 25px; bottom: 105px; background: var(--cyan); }
.contact-orbit i:nth-child(3) { left: 20px; bottom: 145px; background: var(--violet); }
footer { max-width: 1400px; min-height: 120px; margin: auto; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; border-inline: 1px solid var(--line); }
footer p, footer > a:last-child { color: #6f736b; font: 500 9px/1 var(--mono); text-decoration: none; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
@keyframes orbit { to { transform: rotate(360deg); } }

@media (max-width: 1000px) {
  .project-index { grid-template-columns: 1fr 1fr; }
  .index-perro { grid-column: 1 / -1; }
  .index-project { min-height: 420px; }
  .index-lab { border-top: 1px solid var(--line); }
  .section-head { grid-template-columns: 120px 1fr; }
  .section-head > p { grid-column: 2; }
  .perro-case { grid-template-columns: 1fr; }
  .engine-window { min-height: 460px; }
  .case-detail-grid { grid-template-columns: 1fr; }
  .detail-block { min-height: auto; }
  .detail-block + .detail-block { border-left: none; border-top: 1px solid var(--line); }
  .benchmark { grid-template-columns: 1fr 1fr; }
  .benchmark p { grid-column: 1 / -1; }
  .health-case { grid-template-columns: 1fr; }
  .phone-gallery { min-height: 550px; }
  .health-system { grid-template-columns: 1fr 1fr; }
  .health-system > div:nth-child(3) { border-left: none; border-top: 1px solid #b8cede; }
  .health-system > div:nth-child(4) { border-top: 1px solid #b8cede; }
  .lab-grid { grid-template-columns: 1fr; }
  .origin-card, .origin-reverse { grid-template-columns: 1fr; }
  .origin-reverse .origin-media { order: 0; }
  .framework-story-grid { grid-template-columns: 1fr; }
  .framework-story { border-right: none; border-bottom: 1px solid var(--line); }
  .framework-parts { grid-template-columns: 1fr 1fr; }
  .framework-parts > div { min-height: 150px; margin: 0 !important; }
  .framework-workbench { grid-template-columns: 1fr; }
  .framework-code { border-right: none; border-bottom: 1px solid var(--line); }
  .framework-editor-stack { height: 470px; }
  .timeline-row { grid-template-columns: 150px 1fr; }
  .timeline-row > div:last-child { grid-column: 2; }
  .about-grid { gap: 50px; }
}

@media (max-width: 700px) {
  .site-nav { height: 68px; padding-inline: 20px; }
  .nav-links { gap: 0; }
  .nav-links > a:not(.nav-cta) { display: none; }
  .portfolio-intro { padding: 42px 20px 48px; }
  .portfolio-intro h1 { margin: 24px 0 58px; font-size: clamp(48px, 14vw, 72px); }
  .intro-bottom { align-items: flex-start; flex-direction: column; gap: 26px; }
  .project-index { grid-template-columns: 1fr; border-inline: none; }
  .index-perro { grid-column: auto; }
  .index-project { min-height: 390px; border-bottom: 1px solid var(--line); }
  .index-project + .index-project { border-left: none; }
  .index-health { border-top: none; }
  .section { padding: 88px 20px; border-inline: none; }
  .section-head { grid-template-columns: 1fr; gap: 22px; margin-bottom: 44px; }
  .section-head > p { grid-column: 1; }
  .case-copy, .health-copy, .lab-copy, .origin-copy { padding: 32px 26px; }
  .engine-window { min-height: 430px; margin: 14px; }
  .perro-embed { min-height: 388px; }
  .perro-demo-status { left: 10px; top: 10px; }
  .perro-demo-help { right: 9px; bottom: 9px; left: 9px; gap: 7px 10px; }
  .perro-demo-help b { width: 100%; }
  .node { width: 130px; }
  .node-player { left: 4%; top: 49%; }
  .node-script { left: 32%; top: 15%; }
  .node-state { right: 3%; top: 57%; }
  .scope-chip { left: 18%; }
  .case-detail-grid { display: block; }
  .detail-block { padding: 30px 26px; }
  .detail-block h4 { margin-top: 28px; }
  .benchmark { grid-template-columns: 1fr; padding: 28px 26px; }
  .benchmark p { grid-column: 1; }
  .phone-gallery { min-height: 440px; }
  .phone { width: 145px; border-radius: 24px; }
  .phone img { border-radius: 19px; }
  .phone-front { width: 180px; }
  .phone-back { left: -5%; }
  .phone-side { right: -8%; }
  .health-float { min-width: 88px; padding: 10px 11px; }
  .health-float b { font-size: 16px; }
  .health-float-users { left: 3%; top: 24px; }
  .health-float-foods { right: 3%; bottom: 22px; }
  .health-system { grid-template-columns: 1fr; }
  .health-system > div + div { border-left: none; border-top: 1px solid #b8cede; }
  .lab-art { height: clamp(280px, 82vw, 360px); }
  .ssi-logo { padding: 14px; }
  .bozo-logo { padding: 0; }
  .origin-media { min-height: 260px; }
  .origin-copy h3 { margin-top: 35px; }
  .origin-top { flex-direction: column; gap: 6px; }
  .framework-story { min-height: 610px; padding: 34px 26px; }
  .framework-story::before { right: 18px; top: 82px; width: 130px; height: 130px; }
  .framework-story::after { display: none; }
  .framework-story h3 { margin: auto 0 34px; font-size: clamp(40px,12vw,58px); }
  .framework-story p { padding-right: 0; }
  .framework-parts { grid-template-columns: 1fr; }
  .framework-parts > div { min-height: 138px; margin: 0 !important; border: 1px solid #292d29 !important; }
  .framework-editor-stack { height: 420px; }
  .framework-highlight, .framework-editor { padding: 24px 20px; font-size: 10px; }
  .playground-actions { align-items: stretch; flex-direction: column; }
  .hot-reload-badge { justify-content: center; }
  .framework-preview { padding: 20px; }
  .demo-stage { min-height: 560px; padding: 36px 0; }
  .demo-stage::before { width: 330px; height: 330px; }
  .framework-note { text-align: left; }
  .timeline-row { grid-template-columns: 1fr; }
  .timeline-row > div:last-child { grid-column: 1; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-title h2 { margin-top: 42px; }
  .contact-section { min-height: 630px; }
  .contact-orbit { width: 440px; height: 440px; }
  footer { padding: 30px 20px; gap: 20px; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
