@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./assets/fonts/manrope-latin-ext-variable.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./assets/fonts/manrope-latin-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  font-family: Manrope, Arial, sans-serif;
  color-scheme: dark;
  --background: #10110f;
  --text: #e9ebe4;
  --muted: #a1a59a;
  --line: #2b2e26;
  --accent: #c5f35b;
  background: var(--background);
  color: var(--text);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
body::before, body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
body::before {
  background:
    radial-gradient(ellipse 85% 64% at 65% -15%, rgb(186 194 176 / .13), transparent 78%),
    radial-gradient(ellipse 90% 75% at 50% 38%, transparent 40%, rgb(0 0 0 / .28) 100%),
    linear-gradient(112deg, rgb(255 255 255 / .025), transparent 42%);
}
body::after {
  background: url('./assets/surface-grain.png') repeat;
  background-size: 128px 128px;
  opacity: .035;
}
h1, h2, p, dl, dd { margin: 0; }
h1, h2 { text-wrap: balance; }
p, dd { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
a, button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
button:disabled { cursor: not-allowed; opacity: .5; }
button[aria-disabled=true] { cursor: not-allowed; }
button:active { transform: translateY(1px); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { color: var(--background); background: var(--accent); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: #505548; border: 2px solid var(--background); border-radius: 8px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 30; top: 12px; left: 20px; padding: 14px 18px; color: var(--background); background: var(--accent); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.page { position: relative; z-index: 1; width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.services, .contact, .site-footer { max-width: 960px; margin-inline: auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 35px 20px; }
.identity { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; letter-spacing: -.025em; }
.identity-dot { color: var(--muted); }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: var(--muted); text-underline-offset: 6px; }
.site-header nav a:hover { color: var(--text); text-decoration: underline; }
.hero { display: grid; grid-template-columns: .95fr 1.12fr; align-items: center; gap: 24px; padding-block: 24px 64px; }
.hero-copy { padding-bottom: 30px; }
h1 { font-size: clamp(48px, 6.2vw, 84px); font-weight: 500; line-height: 1.04; letter-spacing: -.04em; }
[data-kinetic-line] { display: block; }
.hero-copy p { max-width: 360px; margin-top: 32px; font-size: 16px; line-height: 1.75; color: var(--muted); }
.email-link { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; margin-top: 24px; font-size: 14px; text-underline-offset: 7px; }
.email-link:hover { text-decoration: underline; }
.email-link svg { color: var(--muted); transition: transform .2s; }
.email-link:hover svg { transform: translate(2px,-2px); }
.scene-wrap { position: relative; min-width: 0; height: clamp(500px, 58vw, 720px); }
.robot-frame { position: absolute; width: min(110%, 660px); aspect-ratio: 1; right: -12px; top: 0; }
.robot-portrait { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; mask-image: linear-gradient(to bottom, #000 85%, transparent 100%); }
#scene-stage { position: absolute; z-index: 2; left: -13.636%; top: 20.182%; width: 63.636%; aspect-ratio: 1; padding: 0; border: 0; background: none; display: block; touch-action: pan-y; }
#scene-stage:active { transform: none; }
#scene-stage canvas { display: block; width: 100%; height: 100%; }
.scene-controls { position: absolute; left: 50%; bottom: 0; display: flex; align-items: center; gap: 12px; transform: translateX(-50%); }
.cube-hint { position: absolute; bottom: 42px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 9px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s; }
.scene-wrap:hover .cube-hint, .scene-wrap:focus-within .cube-hint { opacity: 1; }
.scene-switch { display: flex; gap: 13px; }
.scene-switch button, #motion-toggle { background: none; border: 0; min-height: 44px; padding: 0; color: var(--muted); font-size: 11px; }
.scene-switch button { position: relative; min-width: 58px; }
.scene-switch button[aria-pressed=true] { color: var(--text); }
.scene-switch button[aria-pressed=true]::after { content: ''; position: absolute; bottom: 8px; left: 0; right: 0; height: 1px; background: #818777; }
.scene-switch button:hover { color: var(--text); }
#motion-toggle { width: 44px; display: grid; place-items: center; }
#motion-toggle:hover { color: var(--text); }
#motion-toggle svg { width: 16px; height: 16px; }
#motion-toggle .play-icon { display: none; }
#motion-toggle[aria-pressed=true] .pause-icon { display: none; }
#motion-toggle[aria-pressed=true] .play-icon { display: block; }
#scene-fallback { position: absolute; inset: 0; display: grid; place-items: center; perspective: 900px; }
.scene-ready #scene-fallback { display: none; }
.fallback-assembly { width: 180px; height: 180px; display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; transform: rotateX(42deg) rotateZ(-35deg); }
.robot-frame .fallback-assembly { width: 50%; height: 50%; }
.fallback-assembly i { background: #58604e; border: 1px solid #88947a; box-shadow: 8px 8px 0 #303629; }
.fallback-assembly i:nth-child(3n+2) { background: var(--accent); border-color: #e2ffa5; box-shadow: 8px 8px 0 #658328; }
.services { display: grid; grid-template-columns: 1fr 2.25fr; gap: 35px; border-top: 1px solid var(--line); padding-block: 47px 55px; }
.services h2 { font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.7; padding-top: 2px; }
.service-list > div { display: grid; grid-template-columns: .95fr 1.3fr; gap: 25px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.service-list > div:first-child { padding-top: 0; }
.service-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.service-list dt { font-size: 13px; line-height: 1.8; font-weight: 500; }
.service-list dd { font-size: 12px; line-height: 1.85; color: var(--muted); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-block: 54px 64px; border-top: 1px solid var(--line); }
.contact h2 { font-size: 25px; font-weight: 500; letter-spacing: -.025em; line-height: 1.4; }
.contact-copy p { font-size: 13px; line-height: 1.9; color: var(--muted); max-width: 360px; }
.contact .email-link { margin-top: 13px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 24px 35px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
@media (max-width: 960px) {
  .page { width: calc(100% - 48px); }
  .site-header { padding-top: 20px; }
  .hero { gap: 0; padding-block: 30px 45px; }
  h1 { font-size: clamp(38px, 6.5vw, 60px); }
  .hero-copy p { font-size: 14px; }
  .scene-wrap { height: clamp(380px, 58vw, 560px); }
  .robot-frame { width: min(100%, 520px); right: 0; }
}
@media (max-width: 800px) {
  .services { grid-template-columns: 1fr; gap: 25px; padding-block: 36px 42px; }
  .service-list > div { grid-template-columns: 1fr 1.5fr; }
  .contact { gap: 40px; padding-block: 42px 48px; }
}
@media (max-width: 580px) {
  .site-header { padding-block: 15px 18px; gap: 16px; }
  .identity { font-size: 14px; }
  .site-header nav { gap: 20px; }
  .site-header nav a { font-size: 11px; }
  .hero { grid-template-columns: 1fr; padding-block: 36px 35px; gap: 2px; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(44px, 14vw, 60px); }
  .hero-copy p { max-width: 300px; margin-top: 20px; font-size: 14px; }
  .hero-copy .email-link { margin-top: 17px; font-size: 13px; }
  .scene-wrap { height: clamp(350px, 110vw, 450px); margin-top: 6px; }
  .robot-frame { width: min(100%, 400px); right: 50%; transform: translateX(50%); }
  #scene-stage { width: 68.4%; left: -9.8%; top: 10.34%; }
  .scene-controls { bottom: 0; }
  .services { padding-block: 32px 38px; gap: 25px; }
  .service-list > div { grid-template-columns: 1fr; gap: 6px; padding-block: 19px; }
  .service-list dt { font-size: 14px; }
  .service-list dd { max-width: 310px; font-size: 12px; }
  .contact { grid-template-columns: 1fr; gap: 22px; padding-block: 38px 42px; }
  .contact h2 { font-size: 26px; }
  .contact-copy p { font-size: 13px; }
  .site-footer { padding-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .email-link:hover svg { transform: none; }
}
