:root {
  --bg: #080b10;
  --panel: #111720;
  --fg: #eef1f5;
  --muted: #929eae;
  --line: #29313c;
  --blue: #1c66ff;
  --ice: #a8caff;
  --page: clamp(24px, 5.3vw, 88px);
  --ease: cubic-bezier(.2, .75, .25, 1);
  --mono: "SFMono-Regular", Consolas, monospace;
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; border: 0; }
a, button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ice); outline-offset: 5px;
}
::selection { background: #2656a6; color: white; }
.skip { position: fixed; top: -80px; left: 20px; padding: 16px; color: #080b10; background: white; z-index: 100; }
.skip:focus { top: 12px; }
.header {
  position: absolute; inset: 0 0 auto; height: 96px; z-index: 10;
  display: flex; align-items: center; padding: 0 var(--page); gap: 32px;
}
.brand { width: 174px; height: 48px; display: block; flex-shrink: 0; position: relative; overflow: hidden; isolation: isolate; background: var(--bg); }
.brand img {
  width: 200px; height: auto; position: absolute; top: -9px; left: -12px;
  filter: invert(1) hue-rotate(180deg) brightness(1.25); mix-blend-mode: screen;
}
.header nav { display: flex; margin: 0 auto; gap: 40px; font-size: 12px; color: #aab4c2; }
.header a:not(.brand) { padding: 14px 0; }
.header a:hover { color: white; }
.header-contact { font-size: 12px; display: flex; gap: 32px; }
.header-contact span { color: var(--ice); }
.menu-button { display: none; }
.mobile-nav {
  position: absolute; z-index: 9; top: 78px; left: 0; right: 0; background: #0d131df5;
  border-block: 1px solid var(--line); padding: 20px var(--page); backdrop-filter: blur(16px);
}
.mobile-nav a { display: flex; justify-content: space-between; padding: 18px 0; font-size: 22px; }
.eyebrow { font: 9px/1.6 var(--mono); letter-spacing: 1.9px; color: var(--muted); }
.hero {
  position: relative; min-height: 740px; height: 100svh; max-height: 1180px; overflow: hidden;
  background: radial-gradient(ellipse at 72% 41%, #17233370, transparent 57%);
}
.hero::after { content: ""; position: absolute; inset: auto var(--page) 0; height: 1px; background: var(--line); }
.hero-topline { position: absolute; top: 147px; left: var(--page); display: flex; align-items: center; gap: 12px; z-index: 2; }
.blue-dot { width: 5px; height: 5px; border-radius: 50%; background: #4c86ff; box-shadow: 0 0 15px #1c66ff; }
.play-world { position: absolute; width: 75%; height: 88%; right: -5%; top: 4%; }
#world-canvas { width: 100%; height: 100%; display: block; cursor: pointer; touch-action: pan-y; }
.hero-content { position: absolute; left: var(--page); bottom: 157px; z-index: 1; pointer-events: none; }
h1 { margin: 0; font-size: clamp(96px, 10vw, 160px); line-height: .98; letter-spacing: -.075em; font-weight: 500; }
h1 > span { color: #919cae; }
.core-label { position: absolute; right: var(--page); top: 50%; writing-mode: vertical-rl; font: 8px var(--mono); letter-spacing: 2px; color: #667487; }
.hero-bottom { position: absolute; bottom: 35px; left: var(--page); right: var(--page); display: flex; align-items: center; justify-content: space-between; gap: 24px; z-index: 2; }
.explore-link { display: flex; align-items: center; gap: 50px; min-height: 44px; font-size: 12px; }
.explore-link span { font-size: 20px; color: var(--ice); transition: transform .4s var(--ease); }
.explore-link:hover span { transform: translateY(5px); }
.scene-toolbar, .scene-modes { display: flex; align-items: center; }
.scene-toolbar { gap: 14px; }
.scene-modes { border: 1px solid #384556; border-radius: 40px; padding: 4px; }
.scene-modes button { background: transparent; color: #a4afbf; padding: 0 22px; min-height: 36px; border-radius: 30px; font-size: 10px; }
.scene-modes button[aria-pressed="true"] { color: #e5eeff; background: #243249; }
#motion-toggle { width: 44px; height: 44px; background: none; border: 1px solid #384556; border-radius: 50%; font-size: 15px; }
.scene-modes button:hover, #motion-toggle:hover { background: #263750; color: white; }
.section-pad { padding: 105px var(--page); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.section-heading .eyebrow { display: block; margin-bottom: 16px; }
h2 { margin: 0; font-size: clamp(38px, 4.3vw, 68px); font-weight: 400; letter-spacing: -.055em; line-height: 1.1; }
.product-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.product-filters button { background: none; color: var(--muted); padding: 12px 17px; border: 1px solid transparent; border-radius: 30px; font-size: 11px; min-height: 44px; }
.product-filters button[aria-pressed="true"] { border-color: #43516a; color: var(--fg); }
.product-filters button:hover { color: white; }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.project { min-width: 0; position: relative; border: 1px solid #293443; background: #101722; }
.project-art {
  height: clamp(370px, 35vw, 560px); position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at var(--glow-x, 65%) var(--glow-y, 30%), #254f863c, transparent 68%), #101722;
}
.project-art::before {
  content: ""; position: absolute; width: 75%; height: 30%; left: 12%; top: 40%; border-radius: 50%;
  background: #061226; filter: blur(30px); transform: translateY(60px);
}
.project-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(130deg, #c5dfff08, transparent 40%, #02050a30);
  box-shadow: inset 0 0 70px #03081030;
}
.project-info { padding: 25px 28px 28px; border-top: 1px solid #2b3747; }
.project-category { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; color: #a7b5c9; font: 9px/1.6 var(--mono); letter-spacing: .5px; }
.project-category span + span::before { content: "/"; color: #56677f; margin-right: 12px; }
.project-title-button { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 44px; padding: 0; text-align: left; background: none; }
.project h3 { font-size: clamp(23px, 2.4vw, 38px); font-weight: 400; letter-spacing: -.045em; line-height: 1.2; margin: 0; }
.project-arrow { font-size: 29px; color: #8da4c6; transition: transform .4s var(--ease), color .4s; }
.project-title-button:hover .project-arrow { transform: translate(3px, -3px); color: var(--ice); }
.project-art > img, .project-art > video { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1; }
.preview-control {
  position: absolute; z-index: 3; bottom: 22px; right: 22px; background: #12213bd9; border: 1px solid #597499;
  color: #d2e3ff; height: 44px; padding: 0 16px; border-radius: 30px; font-size: 10px;
}
.preview-control:hover { background: #244c86; }
.puzzle-board {
  width: 57%; aspect-ratio: 1; position: absolute; top: 50%; left: 50%; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 14px;
  background: linear-gradient(145deg, #29374b, #0b111c); border: 1px solid #50617b;
  border-radius: 7px; box-shadow: -10px 14px 0 #04080f, -11px 15px 0 #3a4960, 0 55px 60px #0009;
  transform: translate(-50%, -55%) perspective(850px) rotateX(calc(33deg + var(--tilt-y, 0deg))) rotateZ(calc(-26deg + var(--tilt-x, 0deg)));
  transition: transform .7s var(--ease);
}
.puzzle-board > span {
  display: grid; place-items: center; position: relative; border-radius: 4px; color: #1d2c40;
  font-size: clamp(22px, 3vw, 46px); font-weight: 500; letter-spacing: -2px;
  background: linear-gradient(140deg, #d0dae7, #8f9eb4 65%, #64758d);
  box-shadow: -3px 4px 0 #485a73, -4px 5px 0 #090f19, inset 0 1px 0 #f0f5ff;
  transition: transform .8s var(--ease), opacity .5s, background .5s;
}
.puzzle-board > .tile-blue { color: #d9e9ff; background: linear-gradient(140deg, #5492ff, #1c66ff 40%, #123a91); box-shadow: -3px 4px 0 #143374, -4px 5px 0 #080f1b, inset 0 1px 0 #98c1ff; }
.sudoku-board { grid-template-columns: repeat(4, 1fr); gap: 7px; }
.sudoku-board > span { font-size: clamp(20px, 2.5vw, 36px); letter-spacing: -1px; }
.sudoku-board b { font: inherit; }
.sudoku-value { opacity: 0; transition: opacity .35s var(--ease); }
.played .sudoku-value { opacity: 1; }
.preview-caption { position: absolute; left: 22px; bottom: 39px; z-index: 3; color: #9cacc2; font: 7px var(--mono); letter-spacing: 1px; }
.software-art { background: radial-gradient(ellipse at var(--glow-x, 30%) var(--glow-y, 40%), #33527040, transparent 70%), #121a23; }
.software-window {
  width: 80%; position: absolute; left: 10%; top: 50%; border-radius: 7px; overflow: hidden;
  border: 1px solid #5a718e; background: #111b29;
  box-shadow: 5px 9px 0 #040a12, 6px 10px 0 #314156, 0 45px 65px #0008;
  transform: translateY(-55%) perspective(900px) rotateY(calc(-14deg + var(--tilt-x, 0deg))) rotateX(calc(12deg + var(--tilt-y, 0deg))) rotateZ(5deg);
  transition: transform .7s var(--ease);
}
.window-top { display: flex; justify-content: space-between; align-items: center; height: 35px; padding: 0 14px; background: #253248; border-bottom: 1px solid #3a4b62; font: 8px var(--mono); color: #b5c3d6; }
.window-dots { font-size: 6px; letter-spacing: 3px; color: #7e94b4; }
.window-body { display: flex; }
.window-body aside { padding: 22px 13px; width: 46px; background: #162334; border-right: 1px solid #2a3a51; }
.window-body aside > span { color: #80aaff; font-size: 22px; }
.window-body aside i { display: block; height: 3px; background: #526984; margin-top: 25px; }
.software-content { flex: 1; min-width: 0; padding: 27px 24px 25px; }
.software-kicker { font: 7px var(--mono); letter-spacing: 1px; color: #9aaecb; }
.software-content h4 { font-size: clamp(19px, 2.2vw, 34px); letter-spacing: -.055em; margin: 12px 0 19px; font-weight: 400; }
.software-tabs { display: flex; gap: 4px; margin-bottom: 13px; }
.software-tabs button { padding: 0 13px; min-height: 44px; background: transparent; color: #93a9c9; font-size: 10px; border-bottom: 1px solid transparent; }
.software-tabs button[aria-selected="true"] { color: #d6e6ff; border-color: #5c92ff; background: #253e6155; }
.software-tasks > span { display: flex; align-items: center; gap: 10px; font-size: 10px; line-height: 1.5; padding: 13px 0; color: #b7c5d8; border-top: 1px solid #2a3b53; }
.task-dot { flex-shrink: 0; width: 9px; height: 9px; border: 1px solid #7195c8; border-radius: 2px; }
.software-tasks > span:nth-child(2) .task-dot { background: #3778e9; border-color: #7faaff; }
.soft-lines { margin-top: 16px; display: flex; gap: 5px; }
.soft-lines i { display: block; height: 3px; width: 28%; background: #3d5f8a; }
.soft-lines i:nth-child(2) { width: 12%; background: #2d6ce3; }
.soft-lines i:nth-child(3) { width: 38%; background: #233955; }
.about { position: relative; min-height: 520px; overflow: hidden; border-block: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.about p { position: relative; z-index: 1; margin: 36px 0 0; font-size: clamp(38px, 5.8vw, 90px); line-height: 1.1; letter-spacing: -.055em; max-width: 950px; }
.about p span { color: #78879c; }
.about-orbit { position: absolute; width: 440px; height: 440px; right: -110px; top: 50%; transform: translateY(-50%); opacity: .8; }
.about-orbit span { position: absolute; inset: 0; border: 1px solid #27426d; border-radius: 50%; transform: rotate(-32deg) scaleX(.5); }
.about-orbit span:nth-child(2) { transform: rotate(32deg) scaleX(.5); border-color: #466d9d; }
.about-orbit i { position: absolute; inset: 43%; border-radius: 50%; background: #1759df; box-shadow: 0 0 80px 35px #1453da28; }
.contact { padding-block: 105px 95px; background: radial-gradient(ellipse at 85% 120%, #16459b26, transparent 65%); }
.contact h2 { font-size: clamp(54px, 10.5vw, 168px); letter-spacing: -.065em; margin: 32px 0 50px; }
.contact-bottom { display: flex; align-items: center; gap: 40px; justify-content: space-between; }
.contact-link { background: none; display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 90px; padding: 0 0 14px; border-bottom: 1px solid #6382af; font-size: 22px; letter-spacing: -.5px; }
.contact-link > span:last-child { color: #81adff; font-size: 36px; transition: transform .4s var(--ease); }
.contact-link:hover > span:last-child { transform: translate(5px, -5px); }
#contact-note { color: var(--muted); font-size: 11px; line-height: 1.7; max-width: 265px; }
.footer { display: flex; align-items: center; gap: 40px; padding: 28px var(--page); border-top: 1px solid var(--line); color: var(--muted); font: 9px var(--mono); }
.footer .brand { width: 135px; height: 34px; }
.footer .brand img { width: 151px; left: -9px; top: -8px; }
.footer > a:last-child { margin-left: auto; padding: 15px 0; font: 11px Arial, sans-serif; }
.modal { background: #111b29; color: var(--fg); border: 1px solid #425a7b; border-radius: 3px; padding: 45px; width: min(580px, calc(100% - 32px)); max-height: 90svh; overflow: auto; box-shadow: 0 30px 100px #0009; }
.modal::backdrop { background: #03080fdb; backdrop-filter: blur(12px); }
.dialog-close { position: absolute; right: 10px; top: 8px; width: 44px; height: 44px; background: none; font-size: 28px; color: #b5c9e5; }
.modal .eyebrow { display: block; padding-right: 10px; }
.modal h2 { font-size: 38px; margin: 25px 0 20px; }
.modal > p { color: #b3c2d7; font-size: 14px; line-height: 1.8; }
.detail-row { border-top: 1px solid #304058; padding: 20px 0; }
.detail-row h3 { font-size: 12px; font-weight: 400; color: #a9c9fa; margin: 0 0 8px; }
.detail-row p { color: #a3b5cf; font-size: 13px; line-height: 1.8; margin: 0; }
.product-link { display: inline-block; color: var(--ice); margin: 0 16px 20px 0; padding: 10px 0; font-size: 13px; text-decoration: underline; text-underline-offset: 5px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 48px; background: #dbe7fa; color: #12223a; padding: 14px 20px; font-size: 12px; }
.button:hover { background: white; }
.modal label { display: block; font-size: 12px; margin: 22px 0 10px; }
.modal select, .modal textarea { width: 100%; border: 1px solid #435979; background: #0a121e; padding: 13px; color: #eef3ff; border-radius: 2px; font-size: 14px; line-height: 1.6; }
.modal textarea { resize: vertical; min-height: 115px; }
.modal form .button { margin-top: 20px; }
#copy-status { color: var(--ice); font-size: 13px; line-height: 1.7; }
.no-js-logo { width: 65%; margin: 20%; filter: invert(1); }
.motion-paused .puzzle-board, .motion-paused .software-window { transition: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .project.in-view:hover .puzzle-board, .project.in-view:focus-within .puzzle-board { transform: translate(-50%, -59%) perspective(850px) rotateX(calc(25deg + var(--tilt-y, 0deg))) rotateZ(calc(-19deg + var(--tilt-x, 0deg))); }
  .project.in-view:hover .software-window, .project.in-view:focus-within .software-window { transform: translateY(-58%) perspective(900px) rotateY(calc(-7deg + var(--tilt-x, 0deg))) rotateX(calc(7deg + var(--tilt-y, 0deg))) rotateZ(2deg); }
  .motion-paused .project .puzzle-board { transform: translate(-50%, -55%) perspective(850px) rotateX(33deg) rotateZ(-26deg); }
  .motion-paused .project .software-window { transform: translateY(-55%) perspective(900px) rotateY(-14deg) rotateX(12deg) rotateZ(5deg); }
}
@media (max-width: 1050px) and (min-width: 761px) {
  h1 { font-size: 11.5vw; }
  .play-world { right: -13%; width: 85%; top: -1%; }
  .project-art { height: 350px; }
  .software-content { padding: 20px 15px; }
  .software-tasks > span { font-size: 9px; }
  .project-info { padding: 22px; }
}
@media (max-width: 760px) {
  :root { --page: 24px; }
  .header { height: 78px; }
  .header .brand { width: 155px; }
  .header .brand img { width: 180px; top: -5px; }
  .header nav, .header-contact { display: none; }
  .menu-button { display: flex; flex-direction: column; gap: 6px; justify-content: center; align-items: center; width: 44px; height: 44px; margin-left: auto; background: none; }
  .menu-button span { width: 23px; height: 1px; background: #d7e5fa; transition: transform .3s; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .hero { min-height: 740px; height: 100svh; max-height: 1060px; }
  .hero-topline { top: 112px; font-size: 8px; letter-spacing: 1.2px; }
  .play-world { width: 120%; height: 55%; right: -10%; top: 15%; }
  .hero-content { bottom: 146px; }
  h1 { font-size: clamp(72px, 14.8vw, 112px); }
  .core-label { top: 36%; right: 15px; font-size: 7px; letter-spacing: 1px; }
  .hero-bottom { bottom: 27px; gap: 12px; }
  .explore-link { gap: 14px; font-size: 11px; }
  .scene-toolbar { gap: 8px; }
  .scene-modes button { padding: 0 13px; }
  .section-pad { padding-block: 64px; }
  .section-heading { align-items: start; flex-direction: column; gap: 22px; margin-bottom: 28px; }
  .section-heading .eyebrow { margin-bottom: 14px; }
  .product-filters { gap: 4px; }
  .product-filters button { padding: 12px 16px; }
  .projects { grid-template-columns: 1fr; gap: 24px; }
  .project-art { height: clamp(320px, 84vw, 490px); }
  .project-info { padding: 22px; }
  .project h3 { font-size: clamp(24px, 5.5vw, 35px); }
  .project-category { font-size: 8px; }
  .puzzle-board { width: 58%; gap: 8px; padding: 12px; }
  .puzzle-board > span { font-size: clamp(28px, 7vw, 42px); }
  .sudoku-board { gap: 6px; }
  .sudoku-board > span { font-size: clamp(21px, 5.5vw, 32px); }
  .software-content { padding: 17px 17px 19px; }
  .software-content h4 { font-size: clamp(23px, 5vw, 32px); }
  .software-window { width: 79%; left: 10.5%; top: 53%; }
  .software-tasks > span { font-size: 9px; padding-block: 10px; }
  .window-body aside { width: 39px; padding-inline: 10px; }
  .preview-control { bottom: 16px; right: 16px; }
  .preview-caption { bottom: 33px; left: 16px; font-size: 6px; }
  .about { min-height: 370px; }
  .about p { font-size: clamp(30px, 6.5vw, 50px); margin-top: 28px; }
  .about-orbit { width: 290px; height: 290px; right: -180px; opacity: .6; }
  .contact h2 { font-size: clamp(44px, 10.8vw, 83px); margin: 30px 0 36px; }
  .contact-bottom { align-items: start; flex-direction: column; gap: 20px; }
  .contact-link { font-size: 20px; gap: 70px; }
  #contact-note { margin: 0; max-width: 300px; }
  .footer { gap: 18px; flex-wrap: wrap; padding-block: 22px; }
  .footer .brand { width: 112px; }
  .footer .brand img { width: 130px; top: -4px; }
  .footer > a:last-child { font-size: 10px; }
  .modal { padding: 35px 25px; }
  .modal h2 { font-size: 31px; }
}
@media (max-width: 360px) {
  .hero-bottom { align-items: start; flex-direction: column-reverse; gap: 12px; }
  .hero-content { bottom: 190px; }
  .play-world { top: 13%; height: 48%; }
  .project-category { gap: 7px; font-size: 7px; }
  .project-category span + span::before { margin-right: 7px; }
  .footer > a:last-child { margin-left: 0; }
  .software-content { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
