/* Spinhaus — landing page. Tokens from the Spinhaus brand book (night theme). */

:root {
  --surface: #0B0B0C; --surface-raised: #161618; --graphite: #2A2A2E; --line: #2A2A2E;
  --ink: #F2EFE8; --ink-muted: #8A8A90;
  --lime: #C6FF3D; --on-lime: #0B0B0C; --lime-text: #C6FF3D;
  --bone: #F2EFE8; --on-bone: #0B0B0C; --bone-muted: #5C5C62; --bone-line: #D9D5CC;
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-sm: 6px; --radius-md: 14px; --radius-pill: 999px;
  --ease-out: cubic-bezier(.22,1,.36,1); --dur: 280ms;
  --wrap: 1280px; --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime-text); outline-offset: 2px; border-radius: var(--radius-sm); }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.muted { color: var(--ink-muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--graphite); color: var(--ink); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: 8px; }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .06; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* type */
.label { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.display-l { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.01em; }
.heading { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2vw, 24px); line-height: 1.25; }
.body { font-size: 16px; line-height: 24px; }
.body-l { font-size: 18px; line-height: 28px; }
.body-strong { font-size: 16px; line-height: 24px; font-weight: 700; }
.split .word { display: inline-block; overflow: hidden; vertical-align: top; }
.split .word > span { display: inline-block; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); margin-right: 8px; vertical-align: middle; }
.chip { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--graphite); flex: none; background-image: repeating-conic-gradient(var(--surface) 0 18deg, transparent 18deg 60deg); }
.chip::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--graphite); }
.chip--pink, .chip--pink::after { background-color: var(--lime); }
.chip--cyan, .chip--cyan::after { background-color: var(--lime); }
.float { position: absolute; z-index: 0; pointer-events: none; width: clamp(90px, 11vw, 170px); height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
.float--dice { left: 1%; bottom: 4%; display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--radius-md);
  font-weight: 700; font-size: 16px; line-height: 1; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur) var(--ease-out), background var(--dur), border-color var(--dur), color var(--dur); }
.btn svg { transition: transform var(--dur) var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--full { width: 100%; }
.btn--violet { background: var(--lime); color: var(--on-lime); }
.btn--violet:hover { background: #D6FF6B; }
.btn--gold { background: var(--lime); color: var(--on-lime); }
.btn--gold:hover { background: #D6FF6B; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 55%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--dur), background var(--dur); }
.nav.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--surface) 86%, transparent); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); height: 72px; }
.nav__logo img { height: 22px; width: auto; }
.nav__links { display: flex; gap: var(--space-8); }
.nav__links a { position: relative; font-weight: 500; padding: 8px 0; color: var(--ink-muted); transition: color var(--dur); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--lime-text); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { display: flex; align-items: center; gap: var(--space-6); }
.nav__status { color: var(--ink-muted); }
.nav__burger { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.nav__burger span { width: 18px; height: 2px; background: var(--ink); transition: transform var(--dur) var(--ease-out); }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__mobile { display: none; flex-direction: column; gap: var(--space-2); padding: var(--space-4) var(--gutter) var(--space-6); border-top: 1px solid var(--line); background: var(--surface); }
.nav__mobile a { padding: 12px 0; font-weight: 500; font-size: 18px; }
.nav__mobile .btn { margin-top: var(--space-4); }

/* hero */
.hero { position: relative; }
.hero__pin { position: relative; height: 100svh; min-height: 680px; overflow: hidden; }
.ghost { position: absolute; left: 0; bottom: -.12em; z-index: 0; white-space: nowrap; pointer-events: none; user-select: none; display: flex; gap: .3em;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(160px, 26vw, 400px); line-height: 1; letter-spacing: -.04em; color: var(--surface-raised); }
.hero__grid { position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--space-8); align-items: center; padding-top: 72px; }
.hero__eyebrow { color: var(--lime-text); margin-bottom: var(--space-6); }
.hero__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(50px, 6.8vw, 100px); line-height: .96; letter-spacing: -.03em; margin-bottom: var(--space-6); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .w { display: inline-block; }
.hero__title .w--hit { color: var(--ink-muted); }
.hero__sub { max-width: 38ch; color: var(--ink-muted); margin-bottom: var(--space-8); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.stage { position: relative; height: min(78vh, 720px); min-height: 480px; }
.stage__block { position: absolute; left: 50%; top: 42%; width: min(86%, 560px); aspect-ratio: 1; transform: translate(-50%, -50%); background: var(--lime); border-radius: 50%; z-index: 0; }
.stage__statue { position: absolute; left: 52%; bottom: -3%; width: 80%; max-width: 560px; height: auto; transform: translateX(-50%); z-index: 2; filter: drop-shadow(0 40px 50px rgba(0,0,0,.55)); }
.jelly { position: absolute; z-index: 3; height: auto; filter: drop-shadow(0 24px 30px rgba(0,0,0,.5)); pointer-events: none; }
.jelly--chip { width: 26%; left: 2%; top: 6%; }
.jelly--dice { width: 30%; right: -4%; top: 2%; }
.jelly--coin { width: 22%; left: 6%; bottom: 10%; }
.hero__hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 8px; color: var(--ink-muted); }
.hero__hint svg { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* formats marquee */
.marquee { position: relative; z-index: 2; background: var(--surface-raised); color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; overflow: hidden; }
.marquee .chip, .marquee .chip::after { background: var(--lime); background-image: none; }
.marquee .chip--cyan, .marquee .chip--cyan::after, .marquee .chip--pink, .marquee .chip--pink::after { background: var(--ink-muted); }
.marquee__lead { flex: none; padding: 20px var(--gutter); border-right: 1px solid var(--line); color: var(--lime-text); background: var(--surface-raised); position: relative; z-index: 1; white-space: nowrap; }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; padding: 16px 28px; }
.marquee__track span { font-family: var(--font-display); font-weight: 600; font-size: 16px; white-space: nowrap; color: var(--ink-muted); }

/* stats */
.stats { padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 6vw, 72px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.stat { display: flex; flex-direction: column; gap: var(--space-2); }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 4.6vw, 56px); line-height: 1; letter-spacing: -.02em; }
.stat__num { color: var(--ink); }
.stat:first-child .stat__num { color: var(--lime-text); }
.stat__unit { font-size: .45em; margin-left: 4px; color: var(--ink-muted); font-weight: 600; }

/* section head */
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: var(--space-4); }
.sec-head .label { color: var(--lime-text); }
.sec-head .display-l { max-width: 20ch; }

/* services: rows + sticky 3D object */
.services { padding: clamp(56px, 8vw, 112px) 0; background: var(--surface-raised); }
.services .rows, .services .row { border-color: #35353a; }
.services .row::before { background: var(--graphite); }
.svc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.rows { border-top: 1px solid var(--line); }
.row { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) 40px; gap: var(--space-4); align-items: center; padding: clamp(20px, 2.6vw, 32px) 0; border-bottom: 1px solid var(--line); cursor: default; transition: padding-left var(--dur) var(--ease-out); }
.row::before { content: ""; position: absolute; inset: 0; background: var(--surface-raised); opacity: 0; transition: opacity var(--dur); z-index: -1; border-radius: var(--radius-md); }
.row.is-active { padding-left: var(--space-4); }
.row.is-active::before { opacity: 1; }
.row__icon { display: none; }
.row__num { color: var(--lime-text); }
.row__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.15; margin-bottom: 6px; }
.row__desc { color: var(--ink-muted); max-width: 48ch; }
.row__arrow { color: var(--ink-muted); transition: color var(--dur), transform var(--dur) var(--ease-out); }
.row.is-active .row__arrow { color: var(--lime-text); transform: translate(2px,-2px); }
.svc__stage { position: sticky; top: 96px; }
.svc__panel { position: relative; aspect-ratio: 1; border-radius: var(--radius-md); background: var(--graphite); overflow: hidden; }
.svc__obj { position: absolute; left: 15%; top: 15%; width: 70%; height: auto; opacity: 0; transform: scale(.8) rotate(-10deg); filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.svc__obj.is-on { opacity: 1; transform: none; }

/* manifesto */
.manifesto { position: relative; padding: clamp(112px, 16vw, 220px) 0; background: var(--surface); color: var(--ink); overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.manifesto__img { position: absolute; left: 2%; bottom: 0; height: 104%; width: auto; max-width: 40%; object-fit: contain; object-position: bottom; z-index: 0; filter: drop-shadow(0 40px 50px rgba(0,0,0,.55)); }
.manifesto__disc { position: absolute; left: 5%; top: 8%; width: clamp(260px, 30vw, 460px); aspect-ratio: 1; border-radius: 50%; background: var(--graphite); z-index: 0; }
.manifesto__in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; text-align: right; padding-left: 36%; }
.manifesto__text { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -.02em; }
.manifesto__text .ml { display: block; white-space: nowrap; will-change: transform; }
.manifesto__text em { font-style: normal; color: var(--lime-text); }

/* process */
.process { position: relative; padding: clamp(56px, 8vw, 112px) 0; }
.process__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: var(--space-4); align-items: stretch; }
.steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); perspective: 1200px; }
.process__panel { position: relative; border-radius: var(--radius-md); background: var(--graphite); overflow: hidden; min-height: 420px; }
.process__panel img { position: absolute; left: 50%; bottom: 0; height: 94%; width: auto; max-width: none; transform: translateX(-50%); filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
.process__panel .label { position: absolute; left: var(--space-6); top: var(--space-6); color: var(--lime-text); }
.step { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); min-height: 190px; transform-style: preserve-3d; }
.step__day { color: var(--lime-text); }
.step .body { flex: 1; }
.step__bar { display: block; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.step__bar i { display: block; height: 100%; width: var(--w, 0%); background: var(--ink); border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out); }
.step.is-in .step__bar i { transform: scaleX(1); }
.step__bar--loop i { width: 100%; background: linear-gradient(90deg, var(--ink) 0 50%, var(--line) 50% 100%); background-size: 200% 100%; transform: none; animation: loopbar 2.4s linear infinite; }
@keyframes loopbar { to { background-position: -100% 0; } }
.step--loop { border-color: #3a3a40; }

/* contact */
.contact { background: var(--bone); color: var(--on-bone); padding: clamp(56px, 8vw, 112px) 0; overflow: hidden; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__copy { position: relative; }
.contact__logo { height: 32px; width: auto; margin-bottom: var(--space-8); }
.contact__copy .display-l { margin-bottom: var(--space-4); max-width: 18ch; }
.contact__copy .body-l { color: var(--bone-muted); max-width: 40ch; }
.contact__statue { position: relative; margin-top: var(--space-8); width: min(100%, 360px); aspect-ratio: 4 / 5; }
.contact__disc { position: absolute; inset: 0; border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.contact__statue img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; }
.form { background: var(--surface); color: var(--ink); border-radius: var(--radius-md); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: var(--space-4); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field select, .field textarea { width: 100%; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px; color: var(--ink); resize: vertical; transition: border-color var(--dur); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23AB9DC6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--lime-text); outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--lime) 30%, transparent); }
.field.is-invalid input { border-color: var(--lime); }
.field__err { font-size: 13px; color: var(--lime-text); }
.form__note { text-align: center; color: var(--ink-muted); }
.form__ok { text-align: center; color: var(--lime-text); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: var(--space-8) 0; }
.foot__in { display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.foot__in img { height: 20px; width: auto; }

/* responsive */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile.is-open { display: flex; }
  .hero__pin { height: auto; min-height: 0; overflow: hidden; padding-bottom: var(--space-8); }
  .ghost { bottom: auto; top: 30%; font-size: 44vw; }
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-6); padding-top: calc(72px + var(--space-8)); }
  .stage { height: auto; aspect-ratio: 4 / 4.4; min-height: 0; width: 100%; max-width: 520px; margin: 0 auto; }
  .stage__block { width: 82%; top: 40%; }
  .stage__statue { width: 82%; bottom: -2%; }
  .jelly--chip { left: -2%; top: 2%; }
  .jelly--dice { right: -6%; top: 0; }
  .jelly--coin { left: 2%; bottom: 8%; }
  .hero__hint { display: none; }
  .marquee { flex-direction: column; align-items: stretch; }
  .marquee__lead { border-right: 0; border-bottom: 1px solid rgba(14,8,24,.25); padding: 12px var(--gutter); }
  .float { width: 90px; opacity: .8; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .svc { grid-template-columns: 1fr; }
  .svc__stage { display: none; }
  .row { grid-template-columns: 64px minmax(0, 1fr) 32px; }
  .row__num { display: none; }
  .row__icon { display: block; width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(0,0,0,.5)); }
  .row.is-active { padding-left: var(--space-3); }
  .process__grid { grid-template-columns: 1fr; }
  .process__panel { min-height: 0; aspect-ratio: 1; max-width: 520px; width: 100%; margin: 0 auto; }
  .process__panel img { height: 84%; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__statue { position: relative; margin-top: var(--space-8); width: min(100%, 360px); aspect-ratio: 4 / 5; }
  .contact__disc { position: absolute; inset: 0; border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
  .manifesto { padding: clamp(80px, 18vw, 140px) 0; }
  .manifesto { padding-bottom: 0; display: flex; flex-direction: column; }
  .manifesto__in { order: 0; }
  .manifesto__img { order: 1; position: relative; left: auto; height: auto; width: 70%; max-width: 360px; margin: var(--space-8) auto 0; display: block; z-index: 1; }
  .manifesto__disc { left: 15%; top: auto; bottom: 0; width: 70%; max-width: 360px; }
  .manifesto__in { align-items: flex-start; text-align: left; padding-left: 0; }
  .manifesto__text { font-size: clamp(24px, 7.2vw, 40px); max-width: none; }
  .manifesto__text .ml { display: inline; white-space: normal; }
}
@media (max-width: 560px) {
  .hero__title { font-size: clamp(44px, 13.5vw, 64px); }
  .hero__actions .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__hint svg { animation: none; }
  .step__bar--loop i { animation: none; background: var(--graphite); }
  .step__bar i { transform: scaleX(1); transition: none; }
  * { transition-duration: 1ms !important; }
}
