:root {
  color-scheme: dark;
  --bg: #10101a;
  --panel: #171724;
  --stroke: #2d2b41;
  --text: #f6f3ff;
  --muted: #b9b6ce;
  --accent: #c4b4ff;
  --button: #b6a1ff;
  --mint: #86ead4;
  --wrap: 1152px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; }
h1, h2, h3, p, dl, dd { margin: 0; }
[id] { scroll-margin-top: 36px; }
.wrap { width: min(calc(100% - 80px), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; top: -80px; left: 12px; padding: 10px 16px; z-index: 3; background: var(--text); color: var(--bg); }
.skip:focus { top: 12px; }

.site-header { background: #11111c; border-bottom: 1px solid #ffffff12; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 790; letter-spacing: -.06em; white-space: nowrap; }
.brand-end { color: var(--accent); font-weight: 620; }
.site-header nav { display: flex; align-items: center; gap: clamp(16px, 3.4vw, 40px); color: #d1cee5; font-size: .9rem; font-weight: 620; }
.site-header nav a:hover, .back-top:hover, .text-link:hover { color: #fff; }
.nav-join { border: 1px solid #5c4c89; color: #e3dbff; padding: 7px 13px; border-radius: 7px; white-space: nowrap; }
.nav-join span { margin-left: 4px; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #10101a; border-bottom: 1px solid #8273d332; }
.hero-image, .hero-fade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-image { left: auto; right: max(0px, calc((100% - 1510px) / 2)); width: 65%; object-fit: contain; object-position: right center; }
.hero-fade { background: linear-gradient(90deg,#10101a 0%,#10101a 31%,#10101a00 56%), linear-gradient(0deg,#10101a 0%,#10101a00 22%); }
.hero-inner { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 590px; padding-block: 72px 88px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #d2c8fc; font-size: .74rem; font-weight: 720; letter-spacing: .13em; text-transform: uppercase; }
.signal { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #9ce9d6; box-shadow: 0 0 12px #9ce9d67a; }
.hero h1 { font-size: clamp(3.6rem, 6.7vw, 6.2rem); font-weight: 810; line-height: .97; letter-spacing: -.085em; margin-block: 22px 24px; }
.hero h1 em { font-style: normal; color: #c7b5ff; }
.hero-copy { font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 430px; color: #d0cbe5; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 10px 17px; border: 1px solid transparent; border-radius: 8px; font-size: .9rem; font-weight: 730; transition: background-color .15s ease, border-color .15s ease; }
.primary { color: #1c1230; background: var(--button); }
.primary:hover { background: #d1c2ff; }
.secondary { background: #19182bc9; border-color: #55486f; color: var(--text); }
.secondary:hover, .nav-join:hover { background: #2e2546; border-color: #816bbb; }

.work { padding-block: 76px 63px; }
.section-intro { margin-bottom: 28px; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); line-height: 1.04; letter-spacing: -.065em; font-weight: 785; }
.section-intro p { color: var(--muted); margin-top: 13px; max-width: 630px; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.work-card { min-width: 0; display: flex; flex-direction: column; align-items: start; padding: 24px; background: var(--panel); border: 1px solid var(--stroke); border-radius: 13px; }
.card-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; margin-bottom: 16px; }
.card-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linejoin: round; stroke-linecap: round; }
.lilac { color: #cbbaff; background: #31274b; }
.mint { color: var(--mint); background: #1d3a3c; }
.blue { color: #acbaff; background: #2b304b; }
.work-card h3 { font-size: 1.19rem; letter-spacing: -.035em; margin-bottom: 7px; }
.work-card p { flex: 1; font-size: .94rem; color: var(--muted); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 19px; }
.tags span { border: 1px solid #37354a; color: #cdc7e0; padding: 2px 8px; border-radius: 5px; font-size: .74rem; }

.bot { padding-bottom: 60px; }
.project { display: grid; grid-template-columns: 1fr .88fr; gap: clamp(26px, 5vw, 72px); align-items: center; background: radial-gradient(ellipse at 100% 12%, #342951 0%, transparent 66%), #181624; border: 1px solid #3a3051; border-radius: 16px; padding: clamp(25px, 4.1vw, 54px); }
.project h2, .recruit-panel h2 { margin-top: 12px; }
.project-copy > p:not(.eyebrow), .recruit-panel p:not(.eyebrow) { color: #c8c2da; margin-block: 15px 19px; max-width: 450px; }
.text-link { display: inline-flex; gap: 7px; padding-block: 5px; color: #d7c8ff; font-size: .95rem; font-weight: 730; }
.project-demo { min-width: 0; background: #11111d; border: 1px solid #49405e; border-radius: 11px; padding: 16px; box-shadow: 0 12px 25px #09071054; }
.demo-top { display: flex; align-items: center; gap: 10px; color: #e0d8fa; font-size: .83rem; font-weight: 700; }
.demo-icon { background: #2d2345; color: #c7b5ff; border-radius: 7px; width: 27px; text-align: center; font-size: 1.1rem; }
.project-demo dl { margin-block: 12px; font-size: .81rem; }
.project-demo dl div { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; border-top: 1px solid #2d2a40; padding-block: 5px; }
.project-demo dt { color: #b9b3cd; }
.project-demo dd { font-weight: 600; }
.demo-embed { display: flex; flex-direction: column; gap: 2px; border-left: 3px solid #a98cff; padding: 7px 11px; border-radius: 4px; background: #242137; font-size: .8rem; color: #d6cfee; }

.recruitment { padding-bottom: 65px; }
.recruit-panel { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: clamp(25px, 4.1vw, 54px); border-radius: 16px; border: 1px solid #564478; background: radial-gradient(ellipse at 94% 35%, #453267 0%, transparent 69%), #231937; }
.recruit-panel p:not(.eyebrow) { margin-bottom: 0; }
.recruit-panel .button { flex-shrink: 0; }
.site-footer { border-top: 1px solid #2a263b; }
.footer-inner { min-height: 89px; }
.site-footer .brand { font-size: 1.08rem; }
.back-top { color: var(--muted); font-size: .85rem; }

@media (max-width: 850px) {
  .wrap { width: min(calc(100% - 48px), var(--wrap)); }
  .hero-inner { min-height: 545px; }
  .work-card { padding: 17px; }
  .work-grid { gap: 11px; }
}
@media (max-width: 630px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 64px; gap: 12px; }
  .header-inner .brand img { width: 31px; height: 31px; }
  .header-inner .brand { font-size: 1.12rem; gap: 7px; }
  .site-header nav { gap: 12px; font-size: .78rem; }
  .site-header nav a:not(.nav-join) { display: none; }
  .hero-inner { min-height: 625px; justify-content: flex-end; padding-block: clamp(240px, 72vw, 360px) 40px; }
  .hero-image { left: 0; right: 0; width: 100%; height: clamp(250px, 78vw, 380px); object-position: center top; object-fit: contain; }
  .hero-fade { top: 0; height: clamp(250px, 78vw, 380px); background: linear-gradient(0deg,#10101a 0%,#10101a00 28%); }
  .hero h1 { font-size: clamp(3.15rem, 11.5vw, 4.9rem); margin-block: 15px 16px; }
  .actions { gap: 9px; margin-top: 23px; }
  .button { font-size: .86rem; padding-inline: 13px; }
  .work { padding-block: 50px 40px; }
  .work-grid, .project { grid-template-columns: 1fr; }
  .work-grid { gap: 12px; }
  .work-card { padding: 20px; }
  .bot, .recruitment { padding-bottom: 40px; }
  .recruit-panel { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
