:root {
  --bg: #0b0c0b;
  --bg-soft: #111311;
  --panel: #151715;
  --ink: #f2f0e9;
  --muted: #969890;
  --line: rgba(242, 240, 233, 0.14);
  --orange: #f3a641;
  --blue: #75a7ff;
  --lime: #c8ff65;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  cursor: none;
}
body.menu-open { overflow: hidden; }
button, a { color: inherit; font: inherit; cursor: none; }
a { text-decoration: none; }
button { border: 0; }
::selection { background: var(--orange); color: var(--bg); }

.mono { font-family: var(--mono); }
.noise {
  position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .13;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
#field { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .26; z-index: -1; }

.boot {
  position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 28px; background: var(--orange); color: var(--bg);
  transition: transform 1s var(--ease); transform-origin: top;
}
.boot.is-done { transform: translateY(-100%); }
.boot__line { width: 100%; height: 2px; background: rgba(11,12,11,.22); overflow: hidden; }
.boot__line span { display: block; width: 0; height: 100%; background: var(--bg); }
.boot__meta { display: flex; justify-content: space-between; padding-top: 12px; font-size: 11px; letter-spacing: .12em; }

.cursor { position: fixed; z-index: 999; pointer-events: none; border-radius: 50%; top: 0; left: 0; mix-blend-mode: difference; }
.cursor--dot { width: 6px; height: 6px; background: white; margin: -3px 0 0 -3px; }
.cursor--ring { width: 42px; height: 42px; border: 1px solid white; margin: -21px 0 0 -21px; transition: width .3s, height .3s, margin .3s, background .3s; }
.cursor--ring.is-hover { width: 68px; height: 68px; margin: -34px 0 0 -34px; background: rgba(255,255,255,.12); }

.topbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 50; height: 92px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 28px;
  border-bottom: 1px solid transparent; transition: background .4s, border-color .4s, height .4s;
}
.topbar.is-scrolled { height: 72px; background: rgba(11,12,11,.78); border-color: var(--line); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: 50%; color: var(--orange); font-size: 13px; font-weight: 800;
}
.brand__copy { font-size: 9px; line-height: 1.45; letter-spacing: .14em; }
.brand__copy i { color: var(--muted); font-style: normal; }
.topbar__right { display: flex; align-items: center; gap: 28px; }
.availability { font-size: 9px; letter-spacing: .14em; color: var(--muted); }
.availability i { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.mode-toggle { display: flex; align-items: center; gap: 9px; padding: 0; background: transparent; }
.mode-toggle__label { font-size: 8px; letter-spacing: .12em; color: var(--muted); }
.mode-toggle__track { position: relative; width: 37px; height: 19px; border: 1px solid var(--line); border-radius: 20px; }
.mode-toggle__track i { position: absolute; top: 3px; left: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--orange); transition: transform .45s var(--ease), background .3s; }
.mode-toggle[aria-pressed="true"] .mode-toggle__track i { transform: translateX(18px); background: var(--lime); }
.menu-button { display: grid; gap: 6px; width: 44px; height: 44px; padding: 14px 11px; background: var(--ink); border-radius: 50%; }
.menu-button span { height: 1px; background: var(--bg); transition: transform .4s var(--ease); }
.menu-button.is-active span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-button.is-active span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: center;
  padding: 8vw; background: var(--orange); color: var(--bg); transform: translateY(-105%);
  transition: transform .8s var(--ease); visibility: hidden;
}
.menu.is-active { transform: translateY(0); visibility: visible; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-size: clamp(44px, 8vw, 120px); font-weight: 700; letter-spacing: -.08em; line-height: .92; transition: padding .4s var(--ease); }
.menu nav a:hover { padding-left: 3vw; }
.menu nav span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; vertical-align: top; margin-right: 10px; }
.menu__footer { position: absolute; bottom: 30px; display: flex; gap: 28px; font-size: 10px; letter-spacing: .12em; }

.section-code {
  position: absolute; top: 32px; left: 28px; z-index: 2; color: var(--muted);
  font-size: 9px; letter-spacing: .12em; writing-mode: vertical-rl;
}
.block { position: relative; padding: 160px max(7vw, 60px); border-top: 1px solid var(--line); }
.eyebrow { margin: 0 0 22px; color: var(--orange); font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .18em; }
.section-head { margin-bottom: 72px; }
.section-head h2 { margin: 0; font-size: clamp(56px, 8vw, 116px); line-height: .9; letter-spacing: -.08em; }
.section-head h2 em { color: var(--muted); font-style: normal; font-weight: 500; }
.section-head--wide { display: flex; justify-content: space-between; align-items: flex-end; }
.section-head--wide > p { width: 350px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

.hero { position: relative; display: flex; align-items: center; min-height: 100svh; padding: 130px 7vw 90px; overflow: hidden; }
.hero > .section-code { top: 112px; }
.hero::before {
  content: ""; position: absolute; width: 70vw; height: 70vw; left: -30vw; top: 25%;
  border-radius: 50%; background: rgba(243,166,65,.07); filter: blur(80px); pointer-events: none;
}
.hero__copy { position: relative; z-index: 3; width: min(72vw, 1100px); }
.hero h1 { margin: 0; font-size: clamp(58px, 10.5vw, 176px); line-height: .78; letter-spacing: -.095em; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; transform: translateY(120%); animation: title-in 1.1s var(--ease) forwards; animation-delay: 1.25s; }
.hero h1 .line:nth-child(2) > span { animation-delay: 1.32s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 1.39s; }
.hero h1 .line:nth-child(4) > span { animation-delay: 1.46s; }
.hero h1 .line--accent { color: var(--orange); margin-left: 9vw; }
.hero__intro { width: 390px; margin: 38px 0 0 9vw; color: var(--muted); font-size: 13px; line-height: 1.8; }
.hero__cta {
  display: flex; align-items: center; justify-content: space-between; width: 230px; margin: 34px 0 0 9vw;
  padding: 15px 16px 15px 20px; border: 1px solid var(--line); border-radius: 40px; font-size: 11px;
  transition: background .3s, color .3s, border-color .3s;
}
.hero__cta i { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--orange); color: var(--bg); font-style: normal; }
.hero__cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.core-wrap { position: absolute; z-index: 2; right: -6vw; top: 21%; width: min(40vw, 610px); aspect-ratio: 1; }
.core { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.core__glow { position: absolute; inset: 28%; background: var(--orange); border-radius: 50%; filter: blur(70px); opacity: .24; animation: breathe 4s ease-in-out infinite; }
.core__sphere {
  position: absolute; inset: 31%; border: 1px solid rgba(243,166,65,.8); border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.7), var(--orange) 8%, #6d3914 50%, #120e09 76%);
  box-shadow: inset -20px -10px 40px #000, 0 0 90px rgba(243,166,65,.2);
}
.core__longitude, .core__latitude { position: absolute; inset: 8%; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.core__longitude { transform: rotateY(65deg); }
.core__latitude { transform: rotateX(65deg); }
.orbit { position: absolute; inset: 14%; border: 1px solid var(--line); border-radius: 50%; transform-style: preserve-3d; animation: orbit-spin 15s linear infinite; }
.orbit i { position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 14px var(--orange); }
.orbit b { position: absolute; left: 68%; top: 3%; padding: 4px 8px; background: var(--bg); color: var(--muted); font: 8px var(--mono); letter-spacing: .12em; }
.orbit--two { inset: 5%; transform: rotateX(62deg) rotateZ(24deg); animation-direction: reverse; animation-duration: 20s; }
.orbit--two i { background: var(--blue); box-shadow: 0 0 14px var(--blue); }
.orbit--three { inset: 22%; transform: rotateY(66deg) rotateZ(-18deg); animation-duration: 11s; }
.orbit--three i { background: var(--lime); box-shadow: 0 0 14px var(--lime); }
.core__caption { position: absolute; right: 12%; bottom: 5%; margin: 0; font-size: 8px; letter-spacing: .16em; line-height: 1.8; }
.core__caption span { color: var(--muted); }
.hero__rail { position: absolute; right: 28px; bottom: 24px; left: 28px; display: flex; justify-content: space-between; font-size: 8px; letter-spacing: .16em; color: var(--muted); }

.signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.signal-card { position: relative; min-height: 390px; padding: 28px; overflow: hidden; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.signal-card__top { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; letter-spacing: .14em; }
.signal-card h3 { position: relative; z-index: 2; margin: 100px 0 20px; font-size: clamp(24px, 2.5vw, 38px); line-height: 1.08; letter-spacing: -.05em; }
.signal-card p { position: relative; z-index: 2; max-width: 32ch; color: var(--muted); font-size: 11px; line-height: 1.8; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(243,166,65,.4); animation: pulse 2s infinite; }
.signal-card__wave { position: absolute; right: -30%; bottom: -40%; width: 100%; height: 75%; border: 1px solid rgba(243,166,65,.25); border-radius: 50%; box-shadow: 0 0 50px rgba(243,166,65,.09); transition: transform .8s var(--ease); }
.signal-card__wave::before, .signal-card__wave::after { content: ""; position: absolute; border: 1px solid rgba(243,166,65,.18); border-radius: 50%; }
.signal-card__wave::before { inset: 12%; }
.signal-card__wave::after { inset: 24%; }
.signal-card:hover .signal-card__wave { transform: translate(-12%, -15%) scale(1.25); }
.signal-card__wave--blue, .signal-card__wave--blue::before, .signal-card__wave--blue::after { border-color: rgba(117,167,255,.24); }
.signal-card__wave--lime, .signal-card__wave--lime::before, .signal-card__wave--lime::after { border-color: rgba(200,255,101,.22); }

.projects { display: grid; gap: 20px; }
.project { position: relative; min-height: 650px; padding: 30px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); transition: border-color .4s; }
.project:hover { border-color: rgba(242,240,233,.35); }
.project__meta { position: relative; z-index: 2; display: flex; justify-content: space-between; font-size: 8px; letter-spacing: .14em; color: var(--muted); }
.project__main { position: relative; z-index: 2; width: 62%; margin-top: 100px; }
.project__main h3 { margin: 0 0 25px; font-size: clamp(72px, 10vw, 150px); line-height: .8; letter-spacing: -.09em; }
.project__main p { width: 430px; max-width: 100%; color: var(--muted); font-size: 13px; line-height: 1.8; }
.project__flow { position: absolute; z-index: 2; left: 30px; bottom: 30px; display: flex; align-items: center; gap: 13px; font-size: 8px; letter-spacing: .12em; color: var(--muted); }
.project__flow i { color: var(--orange); font-style: normal; }
.project__technical { position: absolute; z-index: 2; right: 30px; bottom: 30px; display: none; gap: 7px; flex-wrap: wrap; max-width: 40%; justify-content: flex-end; }
.project__technical span { padding: 5px 8px; border: 1px solid var(--lime); color: var(--lime); font: 8px var(--mono); letter-spacing: .1em; }
.project__orb { position: absolute; right: 4%; top: 12%; width: 39%; aspect-ratio: 1; border: 1px solid rgba(243,166,65,.3); border-radius: 50%; transition: transform 1s var(--ease); }
.project:hover .project__orb { transform: scale(1.08) rotate(8deg); }
.project__orb::before, .project__orb::after, .project__orb i { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(243,166,65,.2); }
.project__orb::before { inset: 13%; }
.project__orb::after { inset: 27%; background: radial-gradient(circle at 32% 30%, #ffd295, var(--orange) 15%, #482812 62%, #0b0c0b 70%); box-shadow: 0 0 70px rgba(243,166,65,.2); }
.project__orb i:nth-child(1) { inset: 8% 38%; transform: rotate(45deg); }
.project__orb i:nth-child(2) { inset: 38% 8%; transform: rotate(45deg); }
.project__orb i:nth-child(3) { inset: 18%; border-style: dashed; animation: orbit-spin 12s linear infinite; }
.project__orb--blue, .project__orb--blue::before, .project__orb--blue::after, .project__orb--blue i { border-color: rgba(117,167,255,.3); }
.project__orb--blue::after { background: radial-gradient(circle at 32% 30%, #d5e3ff, var(--blue) 15%, #1c3156 62%, #0b0c0b 70%); box-shadow: 0 0 70px rgba(117,167,255,.2); }
.project__orb--lime, .project__orb--lime::before, .project__orb--lime::after, .project__orb--lime i { border-color: rgba(200,255,101,.26); }
.project__orb--lime::after { background: radial-gradient(circle at 32% 30%, #efffcf, var(--lime) 15%, #324517 62%, #0b0c0b 70%); box-shadow: 0 0 70px rgba(200,255,101,.16); }

.ticker { overflow: hidden; padding: 25px 0 32px; background: var(--orange); color: var(--bg); transform: rotate(-2deg) scale(1.03); }
.ticker div { display: flex; align-items: center; width: max-content; gap: 35px; animation: ticker 20s linear infinite; }
.ticker span { font-size: clamp(40px, 6vw, 90px); font-weight: 800; letter-spacing: -.07em; white-space: nowrap; }
.ticker i { font-size: 30px; font-style: normal; }

.principles { border-top: 1px solid var(--line); }
.principle { position: relative; display: grid; grid-template-columns: 130px 1fr 1fr 60px; gap: 30px; align-items: start; padding: 42px 0; border-bottom: 1px solid var(--line); }
.principle > span { color: var(--orange); font-size: 8px; letter-spacing: .14em; }
.principle h3 { max-width: 580px; margin: 0; font-size: clamp(25px, 3vw, 46px); line-height: 1.06; letter-spacing: -.05em; }
.principle p { max-width: 380px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.principle > i { color: var(--line); font-size: 50px; font-weight: 800; font-style: normal; line-height: .8; transition: color .3s; }
.principle:hover > i { color: var(--orange); }

.console { border: 1px solid var(--line); background: #0e100e; }
.console__bar { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 8px; letter-spacing: .14em; }
.console__bar > span:nth-child(2) { text-align: center; }
.console__bar > span:last-child { text-align: right; }
.console__bar i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--muted); }
.console__bar i:first-child { background: #f36c5b; }
.console__bar i:nth-child(2) { background: var(--orange); }
.console__bar i:nth-child(3) { background: var(--lime); }
.console__body { display: grid; grid-template-columns: 1fr 1.35fr; min-height: 500px; }
.console__input { padding: 35px; border-right: 1px solid var(--line); }
.console__input > p, .compiler-result > p { color: var(--muted); font-size: 8px; letter-spacing: .14em; }
.idea-options { display: grid; gap: 10px; margin-top: 50px; }
.idea-options button { position: relative; padding: 19px 22px; border: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; font-size: 12px; transition: background .3s, color .3s, border-color .3s; }
.idea-options button::after { content: "→"; position: absolute; right: 20px; color: var(--orange); }
.idea-options button:hover, .idea-options button.is-active { background: var(--orange); border-color: var(--orange); color: var(--bg); }
.idea-options button:hover::after, .idea-options button.is-active::after { color: var(--bg); }
.console__output { display: grid; place-items: center; padding: 7vw; background: radial-gradient(circle at 50% 50%, rgba(243,166,65,.07), transparent 60%); }
.compiler-idle { text-align: center; color: var(--muted); }
.compiler-icon { display: block; margin-bottom: 15px; color: var(--orange); font-size: 34px; animation: orbit-spin 8s linear infinite; }
.compiler-idle p { font: 10px var(--mono); letter-spacing: .12em; }
.compiler-result { display: none; width: 100%; }
.compiler-result.is-visible { display: block; animation: result-in .5s var(--ease) both; }
.compiler-result h3 { margin: 30px 0 16px; color: var(--orange); font-size: clamp(36px, 5vw, 72px); line-height: .94; letter-spacing: -.07em; }
.compiler-result > p:nth-of-type(2) { color: var(--muted); font-size: 12px; line-height: 1.8; }
.result-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 35px; }
.result-steps span { padding: 7px 10px; border: 1px solid var(--line); color: var(--muted); font-size: 8px; letter-spacing: .1em; }

.contact { min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; background: var(--orange); color: var(--bg); }
.contact .eyebrow { color: var(--bg); }
.contact__inner { padding-top: 8vh; }
.contact h2 { margin: 0; font-size: clamp(62px, 12vw, 190px); line-height: .82; letter-spacing: -.1em; }
.contact__link {
  display: flex; align-items: center; justify-content: space-between; width: min(560px, 100%);
  margin-top: 60px; padding-bottom: 14px; border-bottom: 2px solid var(--bg); font-size: clamp(20px, 3vw, 38px); font-weight: 700;
}
.contact__link i { font-style: normal; transition: transform .4s var(--ease); }
.contact__link:hover i { transform: translate(7px, -7px); }
footer { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 80px; font-size: 10px; }
footer div { display: flex; gap: 25px; font-weight: 700; }
footer p { margin: 0; font-size: 8px; letter-spacing: .12em; }

.reveal { opacity: 0; transform: translateY(50px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

[data-xray]::after {
  content: attr(data-xray); position: absolute; z-index: 10; left: 8px; top: 8px; display: none;
  padding: 3px 5px; background: var(--lime); color: var(--bg); font: 7px var(--mono); letter-spacing: .1em;
}
.xray [data-xray] { outline: 1px dashed rgba(200,255,101,.5) !important; outline-offset: -2px; }
.xray [data-xray]::after { display: block; }
.xray .project__technical { display: flex; }
.xray .xray-hud { display: flex; }
.xray .core-wrap::after { top: 18%; left: 10%; }
.xray-hud {
  position: fixed; z-index: 60; right: 10px; bottom: 10px; display: none; gap: 16px;
  padding: 8px 10px; background: var(--lime); color: var(--bg); font-size: 7px; letter-spacing: .1em;
}

@keyframes title-in { to { transform: translateY(0); } }
@keyframes breathe { 50% { transform: scale(1.18); opacity: .38; } }
@keyframes orbit-spin { to { rotate: 360deg; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(243,166,65,0); } 100% { box-shadow: 0 0 0 0 rgba(243,166,65,0); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes result-in { from { opacity: 0; transform: translateY(20px); } }

@media (max-width: 900px) {
  body, button, a { cursor: auto; }
  .cursor { display: none; }
  .availability, .brand__copy { display: none; }
  .topbar { height: 72px; padding: 0 16px; }
  .topbar__right { gap: 14px; }
  .mode-toggle__label { display: none; }
  .block { padding: 110px 20px; }
  .section-code { display: none; }
  .section-head { margin-bottom: 45px; }
  .section-head--wide { display: block; }
  .section-head--wide > p { width: auto; margin-top: 25px; }
  .hero { min-height: 900px; padding: 130px 20px 70px; align-items: flex-start; }
  .hero__copy { width: 100%; }
  .hero h1 { font-size: clamp(58px, 16vw, 100px); line-height: .84; }
  .hero h1 .line--accent, .hero__intro, .hero__cta { margin-left: 0; }
  .hero__intro { width: min(100%, 390px); }
  .core-wrap { width: 440px; max-width: 100vw; top: auto; right: -100px; bottom: 45px; }
  .core__caption { display: none; }
  .hero__rail span:last-child { display: none; }
  .signal-grid { grid-template-columns: 1fr; }
  .signal-card { min-height: 330px; }
  .signal-card h3 { margin-top: 70px; }
  .project { min-height: 590px; padding: 20px; }
  .project__meta span:last-child { display: none; }
  .project__main { width: 100%; margin-top: 50px; }
  .project__main h3 { font-size: clamp(62px, 18vw, 110px); }
  .project__orb { top: auto; right: -15%; bottom: 4%; width: 65%; opacity: .65; }
  .project__flow { left: 20px; bottom: 20px; max-width: 60%; flex-wrap: wrap; }
  .project__technical { right: 15px; bottom: 15px; max-width: 42%; }
  .principle { grid-template-columns: 1fr; gap: 15px; padding: 32px 0; }
  .principle > i { position: absolute; right: 0; top: 30px; }
  .console__body { grid-template-columns: 1fr; }
  .console__input { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px; }
  .idea-options { margin-top: 28px; }
  .console__output { min-height: 420px; padding: 30px; }
  .contact { min-height: 820px; }
  footer { display: block; }
  footer p { margin-top: 25px; }
  .xray-hud { max-width: calc(100% - 20px); overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero h1 .line > span { transform: translateY(0); }
}
