:root {
  --ink: #f5f7fb;
  --muted: #9aa2b2;
  --muted-2: #727a89;
  --canvas: #090b10;
  --surface: #0f1219;
  --surface-2: #151925;
  --line: rgba(255,255,255,.11);
  --line-strong: rgba(255,255,255,.18);
  --accent: #6f7cff;
  --accent-2: #9e6cff;
  --cyan: #66d9ef;
  --green: #54d49b;
  --shell: 1160px;
  --radius: 14px;
  --shadow: 0 24px 80px rgba(0,0,0,.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
::selection { background: rgba(111,124,255,.35); color: white; }
:focus-visible { outline: 3px solid #9fa8ff; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; background: white; color: #111; padding: 10px 14px; transform: translateY(-150%); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .035; z-index: 100; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.section-pad { padding: 112px 0; }
.kicker { margin: 0 0 14px; color: #aeb5ff; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; }

.site-header { position: fixed; inset: 0 0 auto; height: 74px; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(9,11,16,.76); backdrop-filter: blur(18px); }
.nav-shell { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; }
.brand img { border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav > a { color: #c5cbd6; font-size: 14px; font-weight: 650; transition: color .2s ease; }
.site-nav > a:hover { color: white; }
.site-nav .nav-cta { color: white; border: 1px solid var(--line-strong); background: rgba(255,255,255,.065); padding: 10px 14px; border-radius: 8px; }
.site-nav .nav-cta:hover { background: rgba(255,255,255,.11); }
.menu-button { display: none; width: 44px; height: 44px; border: 0; color: white; background: transparent; }
.menu-button span:not(.sr-only) { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 6px auto; transition: transform .2s; }

.hero { position: relative; min-height: 760px; padding-top: 184px; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 68% 20%, rgba(111,124,255,.12), transparent 30%), linear-gradient(180deg, #0a0d14 0%, #090b10 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, black, transparent 84%); }
.hero-glow { position: absolute; width: 560px; height: 560px; right: -190px; top: 80px; border-radius: 50%; background: rgba(102,217,239,.07); filter: blur(80px); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.04fr .96fr; gap: 70px; align-items: center; }
.eyebrow { width: fit-content; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(84,212,155,.2); background: rgba(84,212,155,.07); border-radius: 999px; padding: 7px 11px; color: #b9f1d9; font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(84,212,155,.11); }
.hero h1 { max-width: 700px; margin: 24px 0 22px; font-size: clamp(48px, 5.5vw, 78px); line-height: .99; letter-spacing: -.058em; font-weight: 780; }
.hero h1 span { color: #aeb5ff; }
.hero-lede { max-width: 620px; margin: 0; color: #a7afbd; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 0 18px; border-radius: 9px; font-size: 14px; font-weight: 750; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--accent); box-shadow: 0 12px 30px rgba(111,124,255,.25); }
.button-primary:hover { background: #7e8aff; }
.button-ghost { border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); }
.button-ghost:hover { background: rgba(255,255,255,.07); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 7px 20px; margin-top: 34px; color: var(--muted-2); font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; }
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: "/"; color: #535a67; }

.hero-visual { position: relative; min-height: 446px; display: grid; place-items: center; }
.code-window { width: min(100%, 515px); border: 1px solid var(--line-strong); border-radius: 15px; background: rgba(15,18,25,.92); box-shadow: var(--shadow); overflow: hidden; transform: perspective(1000px) rotateY(-3deg) rotateX(1deg); }
.window-bar { height: 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); color: #7e8796; font: 10px/1 ui-monospace, monospace; letter-spacing: .04em; }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #424855; }
.window-state { justify-self: end; color: var(--green); }
.code-body { padding: 25px 0; font: 13px/2.05 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #d9deea; }
.code-body div { display: grid; grid-template-columns: 52px 1fr; min-height: 27px; }
.code-body em { color: #4e5664; font-style: normal; text-align: right; padding-right: 18px; user-select: none; }
.code-body code { white-space: pre; }
.code-body b { color: #ce7df0; font-weight: 500; }
.code-body strong { color: #66d9ef; font-weight: 500; }
.code-body span { color: #ffcb6b; }
.code-body q { color: #addb67; quotes: none; }
.system-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: rgba(255,255,255,.018); }
.system-strip div { padding: 14px 15px; border-right: 1px solid var(--line); }
.system-strip div:last-child { border-right: 0; }
.system-strip span, .system-strip strong { display: block; font: 9px/1.5 ui-monospace, monospace; letter-spacing: .08em; }
.system-strip span { color: #606977; }
.system-strip strong { color: #c4cbd7; margin-top: 2px; }
.system-strip .positive { color: var(--green); }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; min-width: 170px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(20,24,34,.92); box-shadow: 0 12px 30px rgba(0,0,0,.28); backdrop-filter: blur(10px); }
.float-card > span { color: #aeb5ff; font: 700 12px ui-monospace, monospace; }
.float-card small, .float-card strong { display: block; }
.float-card small { color: #697281; font: 8px ui-monospace, monospace; letter-spacing: .08em; }
.float-card strong { margin-top: 3px; font-size: 11px; }
.float-card-one { left: -18px; top: 74px; }
.float-card-two { right: -12px; bottom: 62px; }
.stats-row { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 106px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.stat { padding: 22px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong, .stat span { display: block; }
.stat strong { font-size: 18px; letter-spacing: -.02em; }
.stat span { margin-top: 3px; color: var(--muted-2); font-size: 12px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 48px; }
.section-heading h2, .store-top h2, .about-copy h2, .faq-intro h2, .contact-inner h2 { margin: 0; font-size: clamp(36px, 4vw, 56px); line-height: 1.05; letter-spacing: -.045em; }
.section-heading > p { max-width: 480px; margin: 0; color: var(--muted); }
.work-section { background: #0c0f15; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-bar button { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 700; }
.filter-bar button:hover, .filter-bar button.active { color: white; border-color: rgba(159,168,255,.5); background: rgba(111,124,255,.12); }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: transform .25s ease, border-color .25s ease; }
.project-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.22); }
.project-media { position: relative; width: 100%; aspect-ratio: 16 / 9; display: block; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: #111622; cursor: pointer; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.project-card:hover .project-media img { transform: scale(1.025); filter: brightness(.82); }
.project-corner { position: absolute; top: 14px; left: 14px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; color: #d7dce7; background: rgba(9,11,16,.7); backdrop-filter: blur(10px); font: 700 10px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .09em; }
.play-chip { position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; background: rgba(8,10,15,.78); backdrop-filter: blur(12px); color: white; font-size: 12px; font-weight: 750; opacity: 0; transform: translate(-50%, -42%); transition: opacity .2s, transform .2s; }
.play-chip i { color: #aeb5ff; font-style: normal; }
.project-media:hover .play-chip, .project-media:focus-visible .play-chip { opacity: 1; transform: translate(-50%, -50%); }
.project-info { padding: 22px; }
.project-title-row { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.project-title-row h3 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.project-title-row > span { color: #626b7b; font: 11px ui-monospace, monospace; }
.project-info p { margin: 11px 0 16px; color: var(--muted); font-size: 14px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.project-tags span, .tag-list span { border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; color: #7f8897; font: 10px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .06em; }

.expertise-section { background: #090b10; }
.expertise-list { border-top: 1px solid var(--line); }
.expertise-row { display: grid; grid-template-columns: 100px 1fr 1.1fr; gap: 34px; align-items: center; padding: 36px 0; border-bottom: 1px solid var(--line); }
.expertise-number { color: #505867; font: 12px ui-monospace, monospace; }
.expertise-body h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.03em; }
.expertise-body p { max-width: 480px; margin: 0; color: var(--muted); font-size: 14px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: end; }
.tag-list span { color: #a4acb9; padding: 7px 10px; }

.store-section { position: relative; background: #eceef3; color: #10131a; }
.store-section .kicker { color: #4f5bc9; }
.store-top { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 48px; }
.store-note { max-width: 390px; display: flex; gap: 10px; color: #606773; font-size: 13px; }
.store-note span { color: #19895d; font-weight: 900; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { position: relative; display: flex; flex-direction: column; min-height: 460px; padding: 26px; border: 1px solid #d7dae1; border-radius: 14px; background: #f8f9fb; overflow: hidden; }
.product-card::before { content: ""; position: absolute; inset: 0 auto auto 0; height: 3px; width: 100%; background: var(--card-accent, #6573ee); }
.accent-violet { --card-accent: #905ee8; }
.accent-green { --card-accent: #25a979; }
.product-head { display: flex; justify-content: space-between; min-height: 24px; }
.product-type { color: #727987; font: 700 10px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em; }
.product-badge { color: var(--card-accent, #4f5bc9); font: 800 10px ui-monospace, monospace; letter-spacing: .08em; }
.product-card h3 { margin: 28px 0 3px; font-size: 23px; letter-spacing: -.035em; }
.price { display: block; margin: 7px 0 20px; font-size: 30px; letter-spacing: -.04em; }
.product-card > p { min-height: 66px; margin: 0; color: #656c78; font-size: 14px; }
.feature-list { display: grid; gap: 10px; padding: 22px 0 0; margin: 22px 0 26px; border-top: 1px solid #e2e4e9; list-style: none; color: #444b56; font-size: 13px; }
.feature-list li { display: flex; gap: 9px; }
.feature-list span { color: var(--card-accent, #4f5bc9); }
.product-link { min-height: 46px; display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 0 14px; border: 1px solid #d4d7de; border-radius: 8px; background: white; font-size: 13px; font-weight: 800; transition: border-color .2s, transform .2s; }
.product-link:hover { border-color: var(--card-accent, #4f5bc9); transform: translateY(-2px); }
.license-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; padding: 24px 26px; border: 1px solid #d8dbe2; border-radius: 13px; background: #e5e7ec; }
.license-banner > div { display: flex; align-items: center; gap: 16px; }
.license-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: white; background: #151925; font: 900 12px ui-monospace, monospace; }
.license-banner strong { font-size: 14px; }
.license-banner p { margin: 2px 0 0; color: #6b727d; font-size: 12px; }
.license-banner > a { color: #3f49aa; font-size: 13px; font-weight: 800; white-space: nowrap; }

.about-section { background: #0c0f15; }
.about-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 96px; align-items: center; }
.about-portrait { position: relative; }
.about-portrait::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid rgba(111,124,255,.22); border-radius: 16px; }
.about-portrait img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); border-radius: 14px; background: #11151f; }
.portrait-label { position: absolute; right: -20px; bottom: 24px; display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 7px; color: #9098a7; background: rgba(9,11,16,.82); backdrop-filter: blur(10px); font: 9px ui-monospace, monospace; letter-spacing: .08em; }
.portrait-label span { width: 6px; height: 6px; border-radius: 50%; background: #aeb5ff; }
.about-copy h2 { max-width: 660px; }
.about-copy > p:not(.kicker) { max-width: 680px; color: var(--muted); font-size: 16px; }
.about-copy > p:nth-of-type(2) { margin-top: 26px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.principles div { min-height: 94px; display: flex; flex-direction: column; justify-content: space-between; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.02); }
.principles strong { color: #697281; font: 10px ui-monospace, monospace; }
.principles span { font-size: 12px; font-weight: 750; }

.process-section { background: #090b10; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 0; list-style: none; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.process-card { min-height: 270px; padding: 24px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.025), transparent); }
.process-card:last-child { border-right: 0; }
.process-card > span { color: #67707e; font: 11px ui-monospace, monospace; }
.process-card h3 { margin: 70px 0 11px; font-size: 18px; }
.process-card p { margin: 0; color: var(--muted); font-size: 13px; }

.testimonials-section { background: #0c0f15; }
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.testimonial { position: relative; margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: 13px; background: #10131b; }
.testimonial.is-placeholder { border-style: dashed; }
.quote-mark { color: #7884ff; font: 56px/1 Georgia, serif; }
.testimonial blockquote { margin: 6px 0 28px; color: #d8dce6; font-size: 17px; line-height: 1.55; }
.testimonial figcaption { display: flex; align-items: center; gap: 11px; }
.avatar-mini { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #aeb5ff; background: #191d28; font-weight: 800; }
.testimonial figcaption strong, .testimonial figcaption span { display: block; }
.testimonial figcaption strong { font-size: 12px; }
.testimonial figcaption span { color: #757e8d; font-size: 11px; }
.placeholder-note { color: #646d7c; font-size: 11px; }

.faq-section { background: #090b10; }
.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 90px; }
.faq-intro { position: sticky; top: 110px; align-self: start; }
.faq-intro p:last-child { max-width: 360px; color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; list-style: none; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: #aeb5ff; font-size: 24px; font-style: normal; font-weight: 300; }
.faq-item p { max-width: 680px; margin: -5px 50px 26px 0; color: var(--muted); font-size: 14px; }

.contact-section { position: relative; overflow: hidden; text-align: center; background: #6573ee; }
.contact-section::before { content: ""; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 54px 54px; mask-image: radial-gradient(circle at center, black, transparent 70%); }
.contact-orb { position: absolute; width: 440px; height: 440px; left: 50%; top: 50%; transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.018); }
.contact-inner { position: relative; max-width: 800px; }
.contact-section .kicker { color: rgba(255,255,255,.72); }
.contact-inner h2 { font-size: clamp(45px, 6vw, 72px); }
.contact-inner > p:not(.kicker) { max-width: 610px; margin: 22px auto 0; color: rgba(255,255,255,.82); }
.contact-actions { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }
.button-light { color: #20243f; background: white; }
.button-outline-light { border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
.copy-email { min-height: 44px; margin-top: 10px; padding: 0 12px; border: 0; color: rgba(255,255,255,.72); background: transparent; cursor: pointer; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }

.site-footer { padding: 70px 0 24px; background: #07090d; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, .7fr); gap: 60px; }
.footer-brand { margin-bottom: 14px; }
.footer-grid p { color: #6d7583; font-size: 13px; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 10px; }
.footer-grid strong { margin-bottom: 8px; color: #596170; font: 10px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid > div:not(:first-child) a { color: #9ca4b2; font-size: 13px; }
.footer-grid a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 62px; padding-top: 20px; border-top: 1px solid var(--line); color: #515968; font-size: 11px; }

.video-modal { width: min(940px, calc(100% - 32px)); max-width: none; padding: 0; border: 1px solid var(--line-strong); border-radius: 14px; color: white; background: #0d1017; box-shadow: var(--shadow); }
.video-modal::backdrop { background: rgba(2,4,8,.84); backdrop-filter: blur(6px); }
.video-dialog { overflow: hidden; border-radius: inherit; }
.modal-bar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 10px 20px; border-bottom: 1px solid var(--line); }
.modal-bar span, .modal-bar strong { display: block; }
.modal-bar span { color: #747d8d; font: 9px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em; }
.modal-bar strong { margin-top: 3px; font-size: 14px; }
.modal-bar button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; color: #cbd1dc; background: transparent; cursor: pointer; font-size: 25px; }
.video-frame { aspect-ratio: 16 / 9; background: #050607; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-dialog > p { margin: 0; padding: 16px 20px 18px; color: var(--muted); font-size: 13px; }
.noscript { position: fixed; inset: auto 16px 16px; z-index: 999; padding: 14px; border-radius: 8px; color: #111; background: #fff0b8; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .section-pad { padding: 88px 0; }
  .hero { padding-top: 150px; }
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { width: min(100%, 630px); margin: 0 auto; }
  .stats-row { margin-top: 74px; }
  .expertise-row { grid-template-columns: 60px 1fr; }
  .tag-list { grid-column: 2; justify-content: start; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-card:last-child { grid-column: 1 / -1; min-height: 390px; }
  .about-grid { gap: 56px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-card { min-height: 240px; border-bottom: 1px solid var(--line); }
  .process-card:nth-child(2) { border-right: 0; }
  .process-card:nth-child(3), .process-card:nth-child(4) { border-bottom: 0; }
  .faq-grid { gap: 50px; }
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 36px), var(--shell)); }
  .section-pad { padding: 74px 0; }
  .site-header { height: 66px; }
  .menu-button { display: block; }
  .site-nav { position: fixed; inset: 66px 0 auto; min-height: calc(100vh - 66px); display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 22px; background: rgba(9,11,16,.98); transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
  .site-nav.open { transform: translateX(0); visibility: visible; }
  .site-nav > a { min-height: 58px; display: flex; align-items: center; border-bottom: 1px solid var(--line); font-size: 18px; }
  .site-nav .nav-cta { justify-content: space-between; margin-top: 18px; padding: 0 16px; border: 0; background: var(--accent); }
  .menu-button[aria-expanded="true"] span:not(.sr-only):nth-last-child(2) { transform: translateY(3.75px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .hero { min-height: auto; padding-top: 120px; }
  .hero h1 { font-size: clamp(46px, 13vw, 64px); }
  .hero-lede { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-meta { gap: 7px 13px; }
  .hero-visual { min-height: 350px; }
  .code-window { transform: none; }
  .code-body { font-size: 10.5px; }
  .code-body div { grid-template-columns: 42px 1fr; }
  .code-body em { padding-right: 12px; }
  .float-card { display: none; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading, .store-top { display: block; }
  .section-heading > p, .store-note { margin-top: 20px; }
  .project-grid { grid-template-columns: 1fr; }
  .play-chip { opacity: 1; transform: translate(-50%,-50%); }
  .expertise-row { grid-template-columns: 46px 1fr; gap: 16px; padding: 28px 0; }
  .tag-list { gap: 6px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card, .product-card:last-child { grid-column: auto; min-height: 440px; }
  .license-banner { align-items: flex-start; flex-direction: column; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { width: min(86%, 420px); margin: 0 auto; }
  .principles { grid-template-columns: 1fr; }
  .principles div { min-height: 72px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-card { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .process-card:last-child { border-bottom: 0 !important; }
  .process-card h3 { margin-top: 32px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 30px; }
  .faq-intro { position: static; }
  .contact-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .shell { width: min(calc(100% - 30px), var(--shell)); }
  .hero h1 { letter-spacing: -.05em; }
  .window-bar { grid-template-columns: 1fr 1fr; }
  .window-bar > span:nth-child(2) { display: none; }
  .system-strip div { padding: 12px 8px; }
  .system-strip span, .system-strip strong { font-size: 7px; }
  .project-info { padding: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
}

@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; }
}

/* CONFIGURABLE TWEEN STUDIO + BACKGROUND EFFECTS */
.motion-background { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #090b10; }
.motion-background canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .4s ease; }
.motion-background .aurora { position: absolute; display: block; width: min(52vw, 760px); aspect-ratio: 1; border-radius: 50%; filter: blur(90px); opacity: .13; will-change: transform; }
.aurora-one { left: -18%; top: -12%; background: var(--motion-color-1, #6f7cff); animation: aurora-one var(--motion-speed, 18s) ease-in-out infinite alternate; }
.aurora-two { right: -22%; top: 24%; background: var(--motion-color-2, #66d9ef); animation: aurora-two calc(var(--motion-speed, 18s) * 1.2) ease-in-out infinite alternate; }
.aurora-three { left: 28%; bottom: -30%; background: var(--motion-color-1, #6f7cff); opacity: .07 !important; animation: aurora-three calc(var(--motion-speed, 18s) * .9) ease-in-out infinite alternate; }
body[data-background="particles"] #motion-canvas { opacity: .75; }
body[data-background="particles"] .aurora { opacity: .055; }
body[data-background="grid"] .motion-background::after { content: ""; position: absolute; inset: -60px; opacity: .18; background-image: linear-gradient(color-mix(in srgb, var(--motion-color-1) 28%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--motion-color-1) 28%, transparent) 1px, transparent 1px); background-size: 68px 68px; mask-image: radial-gradient(circle at 50% 35%, black, transparent 76%); animation: grid-drift var(--motion-speed, 18s) linear infinite; }
body[data-background="grid"] .aurora { opacity: .07; }
body[data-background="waves"] .motion-background::after { content: ""; position: absolute; inset: -30%; opacity: .18; background: repeating-radial-gradient(ellipse at 50% 30%, transparent 0 72px, color-mix(in srgb, var(--motion-color-2) 38%, transparent) 73px 74px, transparent 75px 142px); animation: wave-pulse var(--motion-speed, 18s) ease-in-out infinite alternate; }
body[data-background="none"] .motion-background { display: none; }
body.motion-enabled main, body.motion-enabled .site-footer { position: relative; z-index: 1; }
body.motion-enabled .work-section, body.motion-enabled .about-section, body.motion-enabled .testimonials-section { background: rgba(12,15,21,.91); }
body.motion-enabled .expertise-section, body.motion-enabled .process-section, body.motion-enabled .faq-section { background: rgba(9,11,16,.92); }
body.motion-enabled .site-footer { background: rgba(7,9,13,.96); }

.mouse-follow { position: fixed; left: 0; top: 0; z-index: 40; width: 1px; height: 1px; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.mouse-follow.active { opacity: 1; }
.mouse-glow { position: absolute; width: var(--mouse-size, 260px); height: var(--mouse-size, 260px); left: calc(var(--mouse-size, 260px) / -2); top: calc(var(--mouse-size, 260px) / -2); border-radius: 50%; background: radial-gradient(circle, var(--mouse-color, #8e98ff) 0%, transparent 68%); opacity: var(--mouse-opacity, .16); filter: blur(8px); }
.mouse-dot { position: absolute; width: 6px; height: 6px; left: -3px; top: -3px; border-radius: 50%; background: var(--mouse-color, #8e98ff); box-shadow: 0 0 14px var(--mouse-color, #8e98ff); }
body[data-mouse="glow"] .mouse-dot { display: none; }
body[data-mouse="dot"] .mouse-glow { display: none; }
body[data-mouse="none"] .mouse-follow { display: none; }

.reveal { opacity: var(--tween-opacity, 0); transform: perspective(900px) translate3d(var(--tween-x, 0px), var(--tween-y, 18px), 0) scale(var(--tween-scale, 1)) rotate(var(--tween-rotate, 0deg)) rotateX(var(--tween-rotate-x, 0deg)) rotateY(var(--tween-rotate-y, 0deg)); filter: blur(var(--tween-blur, 0px)); transform-origin: center; transition-property: opacity, transform, filter; transition-duration: var(--tween-duration, .65s); transition-delay: var(--tween-delay, 0s); transition-timing-function: var(--tween-easing, cubic-bezier(.2,.8,.2,1)); will-change: opacity, transform, filter; }
.reveal.visible { opacity: 1; transform: perspective(900px) translate3d(0,0,0) scale(1) rotate(0deg) rotateX(0deg) rotateY(0deg); filter: blur(0); }

@keyframes aurora-one { from { transform: translate3d(0,0,0) scale(.92); } to { transform: translate3d(28vw,18vh,0) scale(1.14); } }
@keyframes aurora-two { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-24vw,16vh,0) scale(.85); } }
@keyframes aurora-three { from { transform: translate3d(-10vw,0,0) scale(.88); } to { transform: translate3d(18vw,-20vh,0) scale(1.2); } }
@keyframes grid-drift { to { transform: translate3d(68px,68px,0); } }
@keyframes wave-pulse { from { transform: scale(.9) rotate(-2deg); } to { transform: scale(1.1) rotate(2deg); } }

@media (pointer: coarse), (max-width: 760px) { .mouse-follow { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .motion-background *, .motion-background::after { animation: none !important; } .mouse-follow { display: none !important; } }

/* OPTIONAL WORK LINKS + RELEASED GAME CASE STUDIES */
.project-info-bottom { display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.project-info-bottom .project-tags { flex: 1 1 auto; }
.project-game-link { min-height: 34px; display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; padding: 0 10px; border: 1px solid rgba(159,168,255,.32); border-radius: 7px; color: #cbd0ff; background: rgba(111,124,255,.08); font-size: 11px; font-weight: 800; transition: background .2s, transform .2s; }
.project-game-link:hover { background: rgba(111,124,255,.16); transform: translateY(-2px); }
.project-media.no-video { cursor: default; }
.project-media.no-video:disabled { opacity: 1; }

.games-section { position: relative; background: rgba(11,14,20,.94); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.released-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.released-game-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: #10141c; overflow: hidden; transition: transform .25s ease, border-color .25s ease; }
.released-game-card:hover { transform: translateY(-5px); border-color: rgba(159,168,255,.42); }
.released-game-card.is-placeholder { border-style: dashed; }
.released-game-button { width: 100%; display: block; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.released-game-image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: #111622; }
.released-game-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.released-game-card:hover img { transform: scale(1.035); filter: brightness(.82); }
.released-game-status { position: absolute; left: 14px; top: 14px; padding: 6px 9px; border: 1px solid rgba(84,212,155,.28); border-radius: 6px; color: #b9f1d9; background: rgba(8,13,15,.76); backdrop-filter: blur(10px); font: 800 9px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; }
.released-game-body { min-height: 218px; display: flex; flex-direction: column; padding: 20px; }
.released-game-meta { display: flex; justify-content: space-between; gap: 12px; color: #70798a; font: 10px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .05em; }
.released-game-body > strong { display: block; margin-top: 15px; font-size: 21px; letter-spacing: -.03em; }
.released-game-summary { display: -webkit-box; margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.55; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.released-game-open { display: block; margin-top: auto; padding-top: 20px; color: #aeb5ff; font-size: 11px; font-weight: 800; }

.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 20px 20px; }
.modal-primary-action { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 0 14px; border-radius: 8px; color: white; background: var(--accent); font-size: 12px; font-weight: 800; }
.video-frame { position: relative; }
.embed-local-notice { position: absolute; z-index: 3; left: 14px; right: 14px; top: 14px; display: grid; gap: 3px; padding: 12px 14px; border: 1px solid rgba(241,199,91,.35); border-radius: 8px; color: #f4e4ae; background: rgba(30,25,11,.94); box-shadow: 0 10px 30px rgba(0,0,0,.3); font-size: 12px; }
.embed-local-notice span { color: #c7bc97; font-size: 11px; }

.game-modal { width: min(980px, calc(100% - 32px)); max-width: none; max-height: min(90vh, 820px); padding: 0; border: 1px solid var(--line-strong); border-radius: 15px; color: white; background: #0d1017; box-shadow: var(--shadow); overflow: auto; }
.game-modal::backdrop { background: rgba(2,4,8,.84); backdrop-filter: blur(7px); }
.game-dialog { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; min-height: 570px; }
.game-modal-close { position: absolute; right: 14px; top: 14px; z-index: 5; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; color: white; background: rgba(8,10,15,.78); backdrop-filter: blur(10px); cursor: pointer; font-size: 25px; }
.game-modal-cover { min-height: 100%; background: #101520; overflow: hidden; }
.game-modal-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-modal-content { min-width: 0; padding: 36px 34px 28px; }
.game-modal-meta { display: flex; gap: 12px; color: #7e8796; font: 10px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .09em; }
.game-modal-meta span:first-child { color: #7ee2b5; }
.game-modal-content h2 { margin: 15px 0 4px; padding-right: 48px; font-size: clamp(30px, 4vw, 44px); line-height: 1.03; letter-spacing: -.045em; }
.game-role { margin: 0 0 20px !important; color: #aeb5ff !important; font-size: 12px !important; font-weight: 750; }
.game-modal-content > p { color: var(--muted); font-size: 14px; }
.game-modal-content .project-tags { margin-top: 17px; }
.game-video-area { margin-top: 24px; }
.game-video-tabs { display: flex; gap: 7px; margin-bottom: 9px; }
.game-video-tabs button { min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; color: #8891a0; background: transparent; cursor: pointer; font-size: 11px; font-weight: 750; }
.game-video-tabs button.active { color: white; border-color: rgba(159,168,255,.46); background: rgba(111,124,255,.13); }
.game-video-frame { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.game-modal-content > .modal-actions { padding: 24px 0 0; }

@media (max-width: 980px) { .released-game-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .project-info-bottom { align-items: start; flex-direction: column; }
  .released-game-grid { grid-template-columns: 1fr; }
  .released-game-body { min-height: 195px; }
  .game-modal { width: min(94vw, 620px); max-height: 92vh; }
  .game-dialog { display: block; }
  .game-modal-cover { min-height: 0; aspect-ratio: 16 / 8.5; }
  .game-modal-content { padding: 26px 20px 24px; }
  .game-modal-content h2 { padding-right: 42px; }
}

/* EDITABLE HERO CODE PANEL */
.hero h1 .hero-title-main { color: var(--ink); }
.code-body .code-keyword { color: #ce7df0; }
.code-body .code-self { color: #ffcb6b; }
.code-body .code-string { color: #addb67; }
.code-body { max-height: 360px; overflow: auto; }
.system-strip { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }

/* FINAL PUBLISH-READY CONTROLS */
.project-stage { overflow: hidden; }
.project-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 28px; }
.project-pagination[hidden] { display: none; }
.project-pagination > button { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 9px; color: white; background: rgba(255,255,255,.045); cursor: pointer; font-size: 28px; line-height: 1; transition: background .2s, border-color .2s, transform .2s, opacity .2s; }
.project-pagination > button:hover:not(:disabled) { border-color: rgba(159,168,255,.55); background: rgba(111,124,255,.14); transform: translateY(-2px); }
.project-pagination > button:disabled { opacity: .28; cursor: not-allowed; }
.project-page-dots { display: flex; align-items: center; gap: 7px; }
.project-page-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #414957; cursor: pointer; transition: width .25s, border-radius .25s, background .25s; }
.project-page-dots button.active { width: 24px; border-radius: 6px; background: #8e98ff; }
#project-page-label { min-width: 38px; color: #727b8b; font: 10px ui-monospace, monospace; text-align: center; }
.expertise-number { font-size: 28px; line-height: 1; font-weight: 800; letter-spacing: -.04em; color: #7f89ff; }
.product-grid.single-product { grid-template-columns: minmax(0, 520px); justify-content: center; }
.footer-grid { grid-template-columns: 1.6fr repeat(2, .7fr); }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (max-width: 760px) { .project-pagination { margin-top: 22px; } .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } .footer-grid > div:first-child { grid-column: auto; } }
.expertise-number { width: 100%; min-width: 0; display: grid; place-items: center start; }
.expertise-number img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
#store-note-text { color: #606773; font-weight: 400; }
.store-note[hidden] { display: none !important; }
