:root {
  color-scheme: light;
  --paper: #f4f6f7;
  --ink: #191c1e;
  --muted: #5b6266;
  --blue: #415b69;
  --ice: #86b9ce;
  --ease: cubic-bezier(.22,1,.36,1);
  --control-radius: 999px;
  --control-height: 48px;
  --glass-blue: linear-gradient(135deg,#415b69e8,#294454d4 52%,#1f3745df);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 106px; }
body { margin: 0; position: relative; isolation: isolate; background: var(--paper); color: var(--ink); font-family: 'SF Pro Display','SF Pro Text',-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--ice); outline-offset: 5px; }
::selection { background: #b9d1dc; color: #191c1e; }
h1,h2,h3,h4,p { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.wrap { width: min(1320px,calc(100% - 112px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 60; padding: 16px; background: var(--ink); color: var(--paper); border-radius: 12px; }
.skip-link:focus { top: 16px; }

/* A continuous pale blue canvas, layered with broad, almost invisible waves. */
.site-backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse 96% 56% at -5% 112%,#415b6918 0%,#87a4b02b 30%,transparent 68%),radial-gradient(ellipse 95% 45% at 100% 12%,#b2c8d12c 0%,transparent 67%),linear-gradient(135deg,#fbfcfc 0%,#eef2f3 58%,#f6f8f8 100%); }
.site-backdrop::before,.site-backdrop::after { content: ''; position: absolute; pointer-events: none; inset: -24% -16%; opacity: .3; filter: blur(.55px); mix-blend-mode: soft-light; }
.site-backdrop::before { background: radial-gradient(ellipse 105% 38% at 7% 70%,transparent 0 54%,#91acb81f 54.2%,#b5cbd31a 58%,transparent 69%),radial-gradient(ellipse 106% 34% at 90% 52%,transparent 0 59%,#415b6910 59.2%,#a1b9c31a 64%,transparent 73%); }
.site-backdrop::after { inset: -18% -20%; opacity: .22; background: radial-gradient(ellipse 92% 31% at 20% 92%,transparent 0 61%,#87a4b017 61.2%,#c1d1d71a 65%,transparent 75%),radial-gradient(ellipse 100% 32% at 79% 16%,transparent 0 63%,#415b690b 63.2%,#b5cbd314 67%,transparent 77%); }

/* Refraction is isolated from text and interactive content. */
.glass-filters { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.glass-surface { position: relative; isolation: isolate; border: 1px solid #ffffff8c; background: var(--glass-blue); -webkit-backdrop-filter: blur(14px) saturate(135%); backdrop-filter: blur(14px) saturate(135%); box-shadow: inset 0 1px 1px #ffffffb8,inset 0 -3px 8px #07151e45,0 10px 25px #203f4d2a; }
.glass-surface::after { content: ''; position: absolute; inset: 0; z-index: 2; padding: 2px; border-radius: inherit; pointer-events: none; background: radial-gradient(ellipse at 22% 0%,#ffffff8a,transparent 65%),conic-gradient(from 145deg,#ffffff80 0deg,#a0d0e0a6 35deg,#b0c6db30 60deg,#ffffff30 90deg,#ffffffb8 145deg,#f2d5a77d 177deg,#72bdddb3 196deg,#cba9dc8c 207deg,#ffffffbf 222deg,#ffffff38 280deg,#ffffff80 360deg); -webkit-mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); mask-composite: exclude; }
.glass-optics { position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; overflow: hidden; background: radial-gradient(ellipse at var(--glass-x,22%) var(--glass-y,0%),#ffffff4a,transparent 62%); -webkit-backdrop-filter: blur(3px) saturate(115%); backdrop-filter: blur(3px) saturate(115%); }
.glass-surface > *:not(.glass-optics) { position: relative; z-index: 1; }
.glass-surface.has-lens { -webkit-backdrop-filter: none; backdrop-filter: none; }
.has-lens > .glass-optics { backdrop-filter: var(--lens-filter) blur(2px) saturate(115%); }
.glass-surface > .selection-lens { position: absolute; z-index: 2 !important; pointer-events: none; border-radius: var(--control-radius); border-color: #ffffff85; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 1px 1px #ffffffa6,inset 0 -1px 2px #07151e42,0 3px 8px #102b3820; }
.selection-lens::before { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; background: transparent; }
.selection-lens::after { padding: 1.5px; background: #ffffff42; opacity: .72; }
.selection-lens > .glass-optics { background: transparent !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.selection-lens.has-lens > .glass-optics { -webkit-backdrop-filter: var(--lens-filter); backdrop-filter: var(--lens-filter); }
.theme-toggle::after,.site-nav::after,.device-controls::after { z-index: 1; }

/* Identity stays in the opening. Only the project navigation follows the visitor. */
.site-header { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 36px 0 38px; }
.identity { display: flex; flex-direction: column; gap: 6px; font-size: 1.0625rem; line-height: 1.4; font-weight: 550; letter-spacing: -.02em; }
.identity-role { font-size: .875rem; font-weight: 400; letter-spacing: .015em; color: var(--muted); }
.header-tools { display: flex; align-items: center; }
.theme-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; color: #eef5f7; }
.theme-toggle button { position: relative; z-index: 3 !important; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: var(--control-height); min-height: var(--control-height); padding: 0 14px; border: 1px solid transparent; border-radius: var(--control-radius); color: #e4edf1; background: transparent; font-size: .8125rem; font-weight: 500; }
.theme-toggle button[aria-pressed=true] { color: #fff; }
.theme-toggle > .selection-lens { top: -5px; bottom: -5px; left: var(--theme-x,4px); width: var(--theme-width,94px); border-radius: var(--control-radius); transition: left .55s cubic-bezier(.2,1.18,.3,1),width .55s var(--ease); }
.theme-icon { width: 14px; height: 14px; display: block; flex: 0 0 auto; }
.site-nav { position: fixed; z-index: 40; top: 28px; left: 50%; translate: -50% 0; width: max-content; max-width: calc(100vw - 36px); margin: 0; display: flex; align-items: center; gap: 3px; height: calc(var(--control-height) + 10px); padding: 5px; border-radius: var(--control-radius); color: #fff; }
.site-nav a { position: relative; z-index: 3 !important; display: inline-flex; align-items: center; justify-content: center; height: var(--control-height); padding: 0 20px; border-radius: var(--control-radius); color: #fff; font-size: .9375rem; line-height: 1.3; font-weight: 500; white-space: nowrap; }
.site-nav > .selection-lens { top: -7px; bottom: -7px; left: calc(var(--nav-x,6px) - 2px); width: calc(var(--nav-width,124px) + 4px); transition: left .65s cubic-bezier(.2,1.12,.3,1),width .65s var(--ease); }

/* Two editorial chapters. Type leads; the actual project occupies the next scene. */
.projects { padding-top: 24px; }
.project { position: relative; scroll-margin-top: 0; }
.project + .project { margin-top: clamp(56px,5.5vw,80px); }
.project-intro { max-width: 1040px; margin: 0 auto 56px; text-align: center; }
.project-heading { margin-bottom: 30px; }
.project-heading h2 { font-size: clamp(3.5rem,7.4vw,7rem); font-weight: 600; letter-spacing: -.055em; line-height: 1.03; }
.project-name { display: block; text-wrap: balance; }
.title-line { display: block; }
.project-copy { max-width: 770px; margin-inline: auto; }
.project-copy > p { font-size: clamp(1.18rem,1.7vw,1.5rem); line-height: 1.5; letter-spacing: -.02em; color: var(--muted); text-wrap: pretty; }
.project-copy strong { font-weight: 500; color: var(--ink); }
.technology-list { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; color: var(--muted); font-size: .875rem; font-weight: 400; }
.technology-list li { display: inline-flex; align-items: center; gap: 20px; }
.technology-list li + li::before { content: '·'; color: var(--ice); }

.showcase { width: 100%; margin: 0; padding: 0; }
.demo-area { position: relative; isolation: isolate; text-align: center; min-width: 0; }
.demo-area::before { content: ''; position: absolute; inset: 22% 3% 0; z-index: -1; background: radial-gradient(ellipse at center,#415b6914,transparent 70%); pointer-events: none; }
.device-controls { display: inline-flex; align-items: center; position: relative; overflow: visible; height: calc(var(--control-height) + 10px); padding: 5px; margin-bottom: 22px; border-radius: var(--control-radius); color: #eef5f7; background: var(--glass-blue); }
.device-controls > .selection-lens { top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px)/2); border-radius: var(--control-radius); transform-origin: center; transform: translateX(0); }
.showcase[data-view=desktop] .device-controls > .selection-lens { transform: translateX(100%); }
.showcase.is-switching[data-view=desktop] .device-controls > .selection-lens { animation: format-lens-to-desktop .52s cubic-bezier(.16,.8,.3,1) both; }
.showcase.is-switching[data-view=mobile] .device-controls > .selection-lens { animation: format-lens-to-mobile .52s cubic-bezier(.16,.8,.3,1) both; }
@keyframes format-lens-to-desktop {
  0% { transform: translateX(0) scale(1); }
  62% { transform: translateX(100%) scale(1.12,1.6); }
  100% { transform: translateX(100%) scale(1); }
}
@keyframes format-lens-to-mobile {
  0% { transform: translateX(100%) scale(1); }
  62% { transform: translateX(0) scale(1.12,1.6); }
  100% { transform: translateX(0) scale(1); }
}
.device-controls button { position: relative; z-index: 3 !important; width: 132px; height: var(--control-height); min-height: var(--control-height); border: 0; border-radius: var(--control-radius); color: #e4edf1; background: transparent; font-size: .9375rem; font-weight: 500; }
.device-controls button[aria-pressed=true] { color: #fff; }
.demo-instructions { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: .875rem; line-height: 1.5; color: var(--muted); margin-bottom: 27px; }
.demo-instructions svg { width: 22px; height: 28px; flex-shrink: 0; color: var(--blue); }
.touch-hint { display: none; }
.device-space { display: flex; justify-content: center; align-items: flex-start; position: relative; isolation: isolate; }
.device-jelly { position: absolute; z-index: 0; top: 0; left: 50%; translate: -50% 0; width: var(--device-width,0px); height: var(--device-height,0px); border-radius: var(--device-radius,50px); pointer-events: none; opacity: 0; transform: scale(1); background: transparent; border-color: #ffffff80; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 1px 1px #ffffff99,inset 0 -1px 2px #172e3b30; transition: transform .16s ease-out,opacity .12s ease-out; }
.device-jelly > .glass-optics { background: transparent !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.device-jelly.has-lens > .glass-optics { -webkit-backdrop-filter: var(--lens-filter); backdrop-filter: var(--lens-filter); }
.device-jelly::before { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; background: transparent; }
.device-jelly::after { background: #ffffff28; opacity: .62; }
.showcase[data-view=desktop] .device-jelly,.device-space:has(.device-frame:fullscreen) .device-jelly { display: none; }
.device-frame { position: relative; overflow: hidden; width: min(452px,100%,var(--frame-max-width,452px)); padding: 26px 10px 10px; border: 1px solid #ffffffbc; border-radius: 50px; background: linear-gradient(145deg,#28363d,#10171b 52%,#1f2c32); box-shadow: inset 0 1px 1px #ffffff54,inset 1px 0 3px #ffffff20,inset 0 -3px 4px #00000070,0 34px 65px -20px #415b694d,0 4px 12px #11191d3d; transition: filter .82s var(--ease),box-shadow .25s ease; cursor: pointer; }
.device-frame { z-index: 1; border-radius: min(50px,calc(var(--frame-max-width,452px)*.1106)); }
.device-frame::after { padding: 3px; }
.device-frame:focus-within { box-shadow: inset 0 1px 1px #ffffff54,0 34px 65px -20px #415b694d,0 0 0 3px #86b9ce40; }
.device-screen { position: relative; width: 100%; aspect-ratio: 414/852; background: white; overflow: hidden; border-radius: min(40px,calc(var(--frame-max-width,452px)*.0885)); transition: filter .82s var(--ease),opacity .82s var(--ease); }
.device-camera { position: absolute !important; z-index: 3 !important; top: 10px; left: 50%; transform: translateX(-50%); width: min(46px,10.7%); height: 4px; background: #ccd8dd; border-radius: 999px; }
.demo-poster { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device-screen iframe { position: absolute; inset: 0; border: 0; max-width: none; transform-origin: top left; opacity: 0; transition: opacity .45s; pointer-events: none; }
.device-frame.is-interactive { cursor: auto; }
body.is-demo-active,body.is-demo-active * { cursor: pointer; }
body.is-demo-active .device-frame,body.is-demo-active .device-frame * { cursor: auto; }
body.is-demo-active .device-frame .fullscreen-exit { cursor: pointer; }
.device-frame.is-interactive iframe,.device-frame:fullscreen iframe { pointer-events: auto; }
.demo-activation { position: absolute !important; inset: 0; z-index: 8 !important; width: 100%; height: 100%; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.demo-activation:focus-visible { outline-offset: -6px; }
.device-screen.is-loaded iframe { opacity: 1; }
.device-screen.is-loaded .demo-poster { visibility: hidden; }
.demo-error { position: absolute; inset: 0; z-index: 4; display: grid; align-content: center; gap: 15px; background: white; color: #191c1e; padding: 24px; font-size: 1rem; }
.demo-error a { color: #415b69; text-decoration: underline; }
.desktop-chrome,.fullscreen-exit { display: none; }
.showcase[data-view=desktop] .device-frame { width: min(100%,var(--frame-max-width,100%)); padding: 0 8px 8px; border-radius: 25px; }
.showcase[data-view=desktop] .device-screen { aspect-ratio: 1440/900; border-radius: 0 0 17px 17px; }
.showcase[data-view=desktop] .device-camera { display: none; }
.showcase[data-view=desktop] .desktop-chrome { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; position: relative; }
.desktop-chrome > span { width: 7px; height: 7px; border-radius: 50%; background: var(--ice); }
.desktop-chrome > div { position: absolute; left: 50%; transform: translateX(-50%); font-size: .75rem; color: #fff; }
.showcase.is-switching .device-frame { filter: blur(1.5px) saturate(1.08); will-change: filter,transform; }
.showcase.is-switching .device-screen { filter: blur(8px) saturate(1.2); opacity: .76; }
.demo-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: min(560px,100%); gap: 10px; margin: 28px auto 0; }
.demo-links button { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: var(--control-height); min-width: 0; min-height: var(--control-height); border-radius: var(--control-radius); padding: 0 17px; color: #eef5f7; font-size: .875rem; }

.device-frame:fullscreen { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100vw; height: 100vh; border: 0; border-radius: 0; padding: 32px; background: #11181c; filter: none; }
.device-frame:fullscreen .device-screen { width: min(calc(100vw - 64px),calc((100vh - 110px)*.485915)); height: auto !important; aspect-ratio: 414/852; border-radius: 28px; }
.showcase[data-view=desktop] .device-frame:fullscreen { width: 100vw; padding: 32px; }
.showcase[data-view=desktop] .device-frame:fullscreen .device-screen { width: min(calc(100vw - 64px),calc((100vh - 110px)*1.6)); aspect-ratio: 1440/900; border-radius: 10px; }
.device-frame:fullscreen .device-camera,.device-frame:fullscreen .desktop-chrome { display: none; }
.device-frame:fullscreen .fullscreen-exit { display: block; position: absolute; z-index: 5; top: 16px; right: 22px; color: #eef5f7; border-radius: 999px; padding: 12px 20px; font-size: .9375rem; }

.project-details { margin: 52px auto 0; max-width: 960px; }
.project-details summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 1rem; font-weight: 500; padding: 20px 0; }
.project-details summary::-webkit-details-marker { display: none; }
.project-details summary > span { font-size: 1.5rem; color: var(--blue); transition: transform .35s var(--ease); }
.project-details[open] summary > span { transform: rotate(45deg); }
.details-content { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; padding: 18px 0 12px; }
.details-content h3 { font-size: 1.06rem; font-weight: 550; margin-bottom: 12px; }
.details-content p { font-size: 1rem; line-height: 1.7; color: var(--muted); }

.game-project .project-intro { margin-bottom: 64px; }
.game-media { position: relative; padding: 8px; overflow: hidden; border: 1px solid #ffffffb8; border-radius: 32px; background: linear-gradient(145deg,#28363d,#10171b 52%,#1f2c32); box-shadow: inset 0 1px 1px #ffffff70,inset 0 -2px 3px #00000070,0 24px 65px -25px #415b693d; }
.game-media::after { padding: 3px; }
.game-media video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 24px; }
.video-toggle { position: absolute !important; z-index: 5 !important; bottom: 28px; left: 28px; height: 44px; min-height: 44px; color: #fff; border-radius: var(--control-radius); padding: 0 17px; display: flex; gap: 8px; align-items: center; font-size: .875rem; }
.video-toggle svg { width: 15px; height: 15px; }
.pause-symbol { display: none; }
.video-toggle.is-playing .play-symbol { display: none; }
.video-toggle.is-playing .pause-symbol { display: block; }
.video-duration { position: absolute !important; z-index: 5 !important; bottom: 35px; right: 28px; display: inline-flex; align-items: center; height: 32px; color: white; font-size: .8125rem; padding: 0 12px; border-radius: var(--control-radius); line-height: 1.4; }

.site-footer { padding: 0 0 40px; margin-top: clamp(72px,7vw,104px); }
.contact-label { color: var(--muted); font-size: 1rem; margin-bottom: 24px; }
.whatsapp-link { display: inline-flex; align-items: center; gap: 26px; max-width: 100%; }
.contact-phone { display: flex; flex-direction: column; gap: 8px; font-size: clamp(2.2rem,4.2vw,2.95rem); line-height: 1.06; font-weight: 500; letter-spacing: -.045em; color: var(--ink); white-space: nowrap; }
.phone-country { font-size: .32em; letter-spacing: -.015em; color: var(--muted); }
.whatsapp-symbol { order: -1; display: grid; place-items: center; width: 82px; height: 82px; border-radius: 25px; flex: 0 0 auto; color: #fff; }
.whatsapp-symbol svg { width: 45px; height: 45px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 55px; font-size: .9375rem; color: var(--muted); }
.footer-bottom a { overflow-wrap: anywhere; }

/* Motion is staged: label, headline, copy, controls, then the project itself. */
.word-reveal { display: inline-block; }
.motion-ready [data-reveal] { opacity: 0; transform: translateY(30px); filter: blur(5px); transition: opacity .8s var(--ease),transform 1.05s var(--ease),filter .9s var(--ease); transition-delay: var(--reveal-delay,0ms); }
.motion-ready [data-reveal].is-revealed,.motion-ready [data-reveal]:focus-within { opacity: 1; transform: none; filter: none; }
.motion-ready .project-name .word-reveal { opacity: 0; transform: translateY(.5em) scale(1.04); filter: blur(12px); transition: opacity .9s var(--ease),transform 1.2s var(--ease),filter 1.1s var(--ease); transition-delay: var(--word-delay,0ms); }
.motion-ready .project-copy .word-reveal { opacity: 0; transform: translateY(.55em); filter: blur(6px); transition: opacity .8s var(--ease),transform .95s var(--ease),filter .9s var(--ease); transition-delay: var(--word-delay,0ms); }
.motion-ready .is-revealed .word-reveal,.motion-ready [data-reveal]:focus-within .word-reveal { opacity: 1; transform: none; filter: none; }
.motion-ready .whatsapp-link:focus-within [data-reveal] { opacity: 1; transform: none; filter: none; }
.motion-ready .media-reveal[data-reveal] { opacity: .01; transform: translateY(72px) scale(.92); filter: blur(9px); transition: opacity 1.15s var(--ease),transform 1.45s var(--ease),filter 1.2s var(--ease); transform-origin: center top; }
.motion-ready .media-reveal.is-revealed,.motion-ready .media-reveal:focus-within { opacity: 1; transform: none; filter: none; }
.motion-ready .device-space.is-engaged[data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
.motion-ready .technology-list[data-reveal] { transform: none; filter: none; }
.motion-ready .technology-list li { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease),transform .85s var(--ease); transition-delay: calc(var(--item-index,0)*75ms); }
.motion-ready .technology-list.is-revealed li { opacity: 1; transform: none; }
.project-intro .project-heading { translate: 0 var(--chapter-lift,0px); scale: var(--chapter-scale,1); transform-origin: center bottom; }
.site-nav { animation: nav-enter .85s var(--ease) both; }
@keyframes nav-enter { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }

:root[data-theme=night] { color-scheme: dark; --paper: #0d151b; --ink: #edf4f7; --muted: #a5b6be; --blue: #86b9ce; }
:root[data-theme=night] .site-backdrop { background: radial-gradient(ellipse at 100% 0%,#86b9ce2b 0%,transparent 46%),radial-gradient(ellipse at 0% 80%,#415b6924 0%,transparent 38%),linear-gradient(135deg,#0a1218 0%,#14242d 55%,#0d1a21 100%); }
:root[data-theme=night] .site-backdrop::before { opacity: .2; background: radial-gradient(ellipse 105% 38% at 7% 70%,transparent 0 54%,#86b9ce18 54.2%,#86b9ce0a 58%,transparent 69%),radial-gradient(ellipse 106% 34% at 90% 52%,transparent 0 59%,#86b9ce0e 59.2%,#86b9ce0b 64%,transparent 73%); }
:root[data-theme=night] .site-backdrop::after { opacity: .13; background: radial-gradient(ellipse 92% 31% at 20% 92%,transparent 0 61%,#86b9ce12 61.2%,#86b9ce09 65%,transparent 75%),radial-gradient(ellipse 100% 32% at 79% 16%,transparent 0 63%,#86b9ce0a 63.2%,#86b9ce08 67%,transparent 77%); }
:root[data-theme=night] .glass-optics { background: radial-gradient(ellipse at var(--glass-x,22%) var(--glass-y,0%),#ffffff20,transparent 62%); }
:root[data-theme=night] .glass-surface::after { opacity: .7; }
:root[data-theme=night] ::selection { background: #38596a; color: #fff; }

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .site-header { padding-top: 114px; }
  .site-nav { top: 22px; }
  .projects { padding-top: 10px; }
  .project-heading h2 { font-size: clamp(3.5rem,8vw,6rem); }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 92px; }
  .wrap { width: calc(100% - 36px); }
  .site-header { align-items: center; padding-top: 104px; padding-bottom: 32px; gap: 24px; }
  .identity { align-items: center; text-align: center; font-size: 1rem; }
  .site-nav { top: 16px; width: calc(100% - 36px); gap: 0; padding: 5px; }
  .site-nav a { flex: 1 1 auto; text-align: center; height: var(--control-height); padding: 0 7px; font-size: .8125rem; }
  .site-nav > .selection-lens { top: -5px; bottom: -5px; border-radius: var(--control-radius); }
  .projects { padding-top: 18px; }
  .project + .project { margin-top: 56px; }
  .project-intro { margin-bottom: 40px; }
  .project-heading { margin-bottom: 26px; }
  .project-heading h2 { font-size: clamp(2.7rem,12vw,5rem); letter-spacing: -.05em; line-height: 1.04; }
  .project-copy > p { font-size: 1.125rem; line-height: 1.5; }
  .technology-list { margin-top: 24px; gap: 8px 12px; font-size: .8125rem; }
  .technology-list li { gap: 12px; }
  .device-frame { padding: 25px 8px 8px; border-radius: min(44px,calc(var(--frame-max-width,452px)*.09735)); }
  .device-screen { border-radius: min(35px,calc(var(--frame-max-width,452px)*.07743)); }
  .demo-links { gap: 9px; margin-top: 24px; }
  .demo-links button { font-size: .8125rem; padding: 0 13px; }
  .showcase[data-view=desktop] .device-frame { padding: 0 4px 4px; border-radius: 14px; }
  .showcase[data-view=desktop] .device-screen { border-radius: 0 0 9px 9px; }
  .showcase[data-view=desktop] .desktop-chrome { height: 30px; }
  .desktop-chrome > span { width: 5px; height: 5px; }
  .desktop-chrome > div { font-size: .6875rem; }
  .device-frame:fullscreen,.showcase[data-view=desktop] .device-frame:fullscreen { padding: 14px; }
  .device-frame:fullscreen .device-screen { width: min(calc(100vw - 28px),calc((100vh - 110px)*.485915)); }
  .showcase[data-view=desktop] .device-frame:fullscreen .device-screen { width: min(calc(100vw - 28px),calc((100vh - 110px)*1.6)); }
  .device-frame:fullscreen .fullscreen-exit { right: 14px; font-size: .875rem; }
  .project-details { margin-top: 36px; }
  .details-content { grid-template-columns: 1fr; gap: 24px; }
  .game-project .project-intro { margin-bottom: 40px; }
  .game-media { padding: 5px; border-radius: 20px; }
  .game-media video { border-radius: 15px; }
  .video-toggle { left: 17px; bottom: 17px; height: 44px; padding: 0 12px; font-size: .8125rem; }
  .video-duration { right: 17px; bottom: 22px; height: 32px; padding: 0 9px; font-size: .75rem; }
  .site-footer { margin-top: 64px; padding-bottom: 35px; }
  .contact-label { margin-bottom: 20px; }
  .whatsapp-link { gap: 16px; }
  .contact-phone { font-size: clamp(1.8rem,8.2vw,2.4rem); }
  .phone-country { font-size: .45em; }
  .whatsapp-symbol { width: 62px; height: 62px; border-radius: 21px; }
  .whatsapp-symbol svg { width: 35px; height: 35px; }
  .footer-bottom { flex-direction: column; gap: 22px; margin-top: 36px; font-size: .875rem; }
  .motion-ready .media-reveal[data-reveal] { transform: translateY(44px) scale(.95); }
  .motion-ready .media-reveal.is-revealed,.motion-ready .media-reveal:focus-within { transform: none; }
}
@media (max-width: 380px) {
  .site-nav a { font-size: .75rem; padding-inline: 6px; }
  .whatsapp-link { gap: 12px; }
  .contact-phone { font-size: clamp(1.7rem,8.8vw,2.05rem); }
  .whatsapp-symbol { width: 54px; height: 54px; border-radius: 18px; }
  .whatsapp-symbol svg { width: 32px; height: 32px; }
  .video-duration { display: none; }
}
@media (hover: none) {
  .demo-instructions .pointer-hint { display: none; }
  .touch-hint { display: inline; }
}
@media (hover: hover) {
  .showcase[data-view=mobile]:not(.is-switching) .device-space:has(.device-frame:hover):not(:has(.device-frame:fullscreen)) .device-jelly { opacity: 1; transform: scale(1.03,1.015); transition: none; animation: device-jelly-enter .36s both; }
}
@keyframes device-jelly-enter {
  0% { transform: scale(1); animation-timing-function: cubic-bezier(.16,.8,.3,1); }
  62% { transform: scale(1.042,1.021); animation-timing-function: cubic-bezier(.2,.8,.35,1); }
  100% { transform: scale(1.03,1.015); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
  .motion-ready [data-reveal],.motion-ready .media-reveal[data-reveal],.motion-ready .word-reveal,.motion-ready .technology-list li { opacity: 1; transform: none; filter: none; }
  .project-intro .project-heading { translate: none; scale: 1; }
  .showcase.is-switching .device-frame,.showcase.is-switching .device-screen { filter: none; opacity: 1; }
  .device-jelly { display: none; }
}
