@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 300; font-display: swap; src: url('/assets/fonts/hanken-grotesk-300.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/hanken-grotesk-400.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/hanken-grotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/hanken-grotesk-600.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/hanken-grotesk-700.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/hanken-grotesk-800.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/space-grotesk-700.woff2') format('woff2'); }









:root {
  --space: #0A0805;
  --space-2: #0C0906;
  --line-d: rgba(255,255,255,.10);
  --text-d: #F2F3F7;
  --muted-d: #A9AEBD;
  --accent: #E8A24C;
  --accent-deep: #B4762A;
  --light: #F6F6F9;
  --card: #FFFFFF;
  --ink: #101321;
  --ink-muted: #545A6A;
  --line-l: #E4E5EA;
  --nirra-tile: #F3F0E7;
  --prova-tile: #272E6E;
  --skin-tile: #F5E9DC;
  --max: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: 'Hanken Grotesk', -apple-system, 'Segoe UI', sans-serif;
  background: var(--space);
  color: var(--text-d);
  font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 36px; }

h1, h2 { font-weight: 650; letter-spacing: -0.028em; line-height: 1.06; }
h1 { font-size: clamp(2.5rem, 4.3vw, 3.7rem); }
h2 { font-size: clamp(2rem, 3.2vw, 2.8rem); }
.sub { font-size: 19px; line-height: 1.68; color: var(--muted-d); font-weight: 400; }
.on-light .sub, .on-light p { color: var(--ink-muted); }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15.5px;
  padding: 14px 28px; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.2,.7,.2,1.4), background .2s ease, border-color .2s ease;
  will-change: transform;
}
.btn-white { background: #fff; color: var(--ink); }
.btn-white::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  left: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(184,115,51,.16), transparent);
  transition: left .55s ease;
}
.btn-white:hover::after { left: 130%; }
.btn-ghost { border-color: rgba(255,255,255,.28); color: var(--text-d); backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: rgba(255,255,255,.65); }
.arrow-link { font-weight: 600; font-size: 15.5px; color: var(--accent); display: inline-flex; align-items: center; gap: 7px; }
.arrow-link svg { transition: transform .2s ease; }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- reveal system ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.65,.25,1), transform .8s cubic-bezier(.2,.65,.25,1); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition-duration: .01s !important; }
}

/* ---------- nav ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
header.scrolled { background: rgba(7,10,20,.82); backdrop-filter: blur(16px); border-bottom-color: var(--line-d); }
.nav { height: 78px; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.wordmark { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13.5px; letter-spacing: .22em; }
.nav-links { display: flex; gap: 34px; font-size: 15px; font-weight: 500; color: var(--muted-d); }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: #fff; transition: right .25s ease; }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { right: 0; }
.nav .btn { padding: 11px 22px; font-size: 14.5px; }

/* ---------- hero / galaxy ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(1300px 700px at 82% 12%, rgba(232,162,76,.14), transparent 62%),
    radial-gradient(1000px 600px at 8% 82%, rgba(180,120,50,.08), transparent 60%),
    var(--space);
}
#stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.galaxy {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .55; mix-blend-mode: screen;
  filter: hue-rotate(158deg) saturate(.9) brightness(1.05);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.95) 42%, transparent 96%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.95) 42%, transparent 96%);
  animation: galaxyDrift 44s ease-in-out infinite alternate;
  transform-origin: 62% 28%;
}
@keyframes galaxyDrift { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.16) translate(-26px, -20px); } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 6.3fr) minmax(0, 5.7fr); gap: 30px; align-items: center; position: relative; width: 100%; }
.hero h1 { margin-bottom: 24px; max-width: 12.5em; }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(30px) rotate(1.5deg); animation: wordUp .75s cubic-bezier(.2,.65,.25,1) forwards; animation-delay: var(--d); }
@keyframes wordUp { to { opacity: 1; transform: none; } }
.hero .sub { max-width: 31em; margin-bottom: 40px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 54px; }
.makers { display: flex; align-items: center; gap: 14px; color: var(--muted-d); font-size: 14.5px; }
.makers .icons { display: flex; gap: 8px; }
.makers .icons span {
  width: 32px; height: 32px; border-radius: 9px; background: #fff;
  display: grid; place-items: center; border: 1px solid var(--line-d); overflow: hidden;
}
.makers .icons img { width: 18px; height: 18px; }

/* orbit system: pseudo-3-body, JS-driven */
.orbit-stage { position: relative; width: min(560px, 100%); aspect-ratio: 1; margin: 0 auto; }
#orbitfx { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit-core { position: absolute; inset: 41%; display: grid; place-items: center; }
.orbit-core svg { width: 100%; height: 100%; filter: drop-shadow(0 0 26px rgba(232,162,76,.45)); }
.orbit-core .spin { transform-origin: 50% 50%; animation: coreSpin 46s linear infinite; }
@keyframes coreSpin { to { transform: rotate(360deg); } }
.body { position: absolute; top: 0; left: 0; will-change: transform; z-index: 2; }
.chip {
  display: flex; align-items: center; gap: 9px;
  background: rgba(13,17,32,.78); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
  padding: 8px 14px 8px 8px; border-radius: 999px;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.6), 0 0 22px -6px rgba(232,162,76,.28);
  transition: transform .25s ease, border-color .25s ease;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.chip:hover { transform: scale(1.08); border-color: rgba(255,255,255,.4); }
.chip .ic { width: 30px; height: 30px; border-radius: 8px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.chip b { font-size: 13.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }

.makers .icons span img, .chip .ic img, .app-mark .badge img { width: 100%; height: 100%; object-fit: cover; }
img.glyph { width: 62% !important; height: 62% !important; object-fit: contain !important; }

/* ---------- light zone ---------- */
.on-light { background: var(--light); color: var(--ink); }
section { padding: 112px 0; }
.sec-head { max-width: 46em; margin-bottom: 58px; }
.sec-head h2 { margin-bottom: 16px; }

/* ---------- products ---------- */
.tile { border-radius: 26px; overflow: hidden; display: grid; position: relative; transition: transform .35s cubic-bezier(.2,.65,.25,1), box-shadow .35s ease; }
.tile:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -44px rgba(16,19,33,.35); }
.tile-nirra { background: var(--nirra-tile); color: var(--ink); grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; margin-bottom: 26px; min-height: 560px; }
.tile-copy { padding: 64px 20px 64px 64px; }
.tile-media { position: relative; height: 100%; min-height: 520px; overflow: hidden; }
.app-mark { display: flex; align-items: center; gap: 13px; margin-bottom: 26px; }
.app-mark .badge { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: #fff; border: 1px solid rgba(16,19,33,.10); overflow: hidden; box-shadow: 0 6px 16px -8px rgba(16,19,33,.25); }
.app-mark .badge img { width: 26px; height: 26px; }
.app-mark .name { font-weight: 650; font-size: 20px; }
.tile h3 { font-size: clamp(1.6rem, 2.4vw, 2.15rem); font-weight: 650; letter-spacing: -0.022em; line-height: 1.12; margin-bottom: 16px; }
.tile p { font-size: 16.5px; line-height: 1.65; margin-bottom: 30px; max-width: 26em; }
.tile-nirra p { color: #4B5244; }
.tile-nirra .arrow-link { color: #9A6212; }

/* phones in nirra tile */
.phone {
  position: absolute; width: 252px; border-radius: 42px; background: #171923; padding: 10px;
  box-shadow: 0 44px 80px -36px rgba(31,41,26,.5), inset 0 0 0 1.5px rgba(255,255,255,.12);
}
.phone .screen { border-radius: 33px; overflow: hidden; position: relative; }
.phone-front { right: 44px; top: 96px; z-index: 2; transform: rotate(2.5deg); }
.phone-back { right: 226px; top: 190px; z-index: 1; transform: rotate(-5deg) scale(.92); opacity: .96; }
.phone-back .screen { height: 460px; }
.phone-back .screen img { animation: appPan 16s ease-in-out infinite alternate; animation-play-state: paused; }
.tile.in .phone-back .screen img { animation-play-state: running; }
@keyframes appPan { 0% { transform: translateY(0); } 100% { transform: translateY(calc(-100% + 460px)); } }

.tile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.tile-half { padding: 56px 56px 60px; display: flex; flex-direction: column; align-items: flex-start; }
.tile-prova { background: var(--prova-tile); color: #F0F1FA; }
.tile-prova p { color: #C3C8EC; }
.tile-prova .arrow-link { color: #C9CFFF; }
.tile-skin { background: var(--skin-tile); color: var(--ink); }
.tile-skin p { color: #6A5B4C; }
.tile-skin .arrow-link { color: #7A4A22; }
.tile-half h3 { margin-top: 6px; }
.tile-half .arrow-link { margin-top: auto; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.svc-card {
  background: var(--card); border: 1px solid var(--line-l); border-radius: 20px; padding: 44px 46px 48px;
  transition: transform .3s cubic-bezier(.2,.65,.25,1), border-color .3s ease, box-shadow .3s ease;
}
.svc-card:hover { transform: translateY(-5px); border-color: #E6D4B8; box-shadow: 0 28px 56px -38px rgba(184,115,51,.30); }
.svc-card h3 { font-size: 21.5px; font-weight: 650; margin-bottom: 13px; }
.svc-card p { color: var(--ink-muted); font-size: 16px; line-height: 1.68; }

/* ---------- research (cosmic band) ---------- */
.research { position: relative; overflow: hidden; background: var(--space-2); }
#stars2 { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }
.research .wrap { position: relative; }
.research-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.research-grid h3 { font-size: 21.5px; font-weight: 650; margin-bottom: 14px; }
.research-grid h3 span { color: var(--accent); }
.research-grid p { color: var(--muted-d); font-size: 16.5px; line-height: 1.7; max-width: 30em; }
.research-grid .arrow-link { margin-top: 16px; }
.research-grid { row-gap: 56px; }
.research-rule { height: 1px; background: var(--line-d); margin-bottom: 64px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
.about-grid p { font-size: 18px; line-height: 1.75; margin-bottom: 22px; max-width: 33em; }
.about-grid p strong { color: var(--ink); font-weight: 600; }

/* ---------- contact ---------- */
.contact { background: var(--space); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 480px at 15% 0%, rgba(232,162,76,.13), transparent 62%); pointer-events: none; }
.contact .wrap { position: relative; }
.contact-grid { display: grid; grid-template-columns: 6fr 5fr; gap: 80px; align-items: start; }
.contact-grid h2 { margin-bottom: 18px; }
.contact-grid .sub { margin-bottom: 44px; max-width: 26em; }
.email-line { font-size: 15px; color: var(--muted-d); }
.email-line a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; }
.email-line a:hover { border-color: #fff; }
.form-card { background: rgba(17,21,36,.85); border: 1px solid var(--line-d); border-radius: 22px; padding: 38px; backdrop-filter: blur(8px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card label { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted-d); margin: 20px 0 8px; }
.form-card .form-row label { margin-top: 0; }
.form-card input, .form-card textarea {
  width: 100%; background: #0A0D18; border: 1px solid rgba(255,255,255,.14); border-radius: 12px;
  padding: 13px 15px; color: var(--text-d); font-family: inherit; font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-card input::placeholder, .form-card textarea::placeholder { color: #5A6070; }
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(232,162,76,.15); }
.form-card textarea { min-height: 118px; resize: vertical; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 26px; }

/* ---------- footer ---------- */
footer { background: var(--space); border-top: 1px solid var(--line-d); padding: 64px 0 48px; }
.foot-grid { display: grid; grid-template-columns: 6fr 3fr 3fr; gap: 48px; margin-bottom: 56px; }
.foot-brand p { color: var(--muted-d); font-size: 15px; max-width: 22em; margin-top: 16px; }
.foot-col h4 { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6C7180; margin-bottom: 18px; }
.foot-col a { display: block; color: var(--muted-d); font-size: 15px; padding: 5px 0; transition: color .2s ease, transform .2s ease; }
.foot-col a:hover { color: #fff; transform: translateX(3px); }
.foot-legal { border-top: 1px solid var(--line-d); padding-top: 28px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; color: #6C7180; font-size: 14px; }
.foot-legal .spacer { margin-left: auto; display: flex; gap: 24px; }
.foot-legal a:hover { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .hero { padding: 112px 0 56px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .orbit-stage { width: min(400px, 92vw); margin-top: -16px; }
  .chip b { font-size: 12.5px; }
  .tile-nirra { grid-template-columns: 1fr; min-height: 0; }
  .tile-copy { padding: 52px 40px 0; }
  .tile-media { min-height: 560px; margin-top: 10px; }
  .phone-front { right: 50%; transform: translateX(62%) rotate(2.5deg); }
  .phone-back { right: 50%; transform: translateX(-40%) rotate(-5deg) scale(.92); }
  .tile-row, .svc-grid { grid-template-columns: 1fr; }
  .research-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
  section { padding: 84px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 22px; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .tile-copy { padding: 40px 26px 0; }
  .tile-media { min-height: 520px; }
  .phone { width: 228px; }
  .phone-back { display: none; }
  .phone-front { right: 50%; top: 40px; transform: translateX(50%) rotate(0deg); }
  .tile-half { padding: 40px 28px 44px; }
  .svc-card { padding: 34px 28px 38px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .form-card .form-row label { margin-top: 20px; }
  .orbit-stage { width: min(330px, 94vw); margin-top: -22px; }
  .chip { padding: 6px 10px 6px 6px; }
  .chip .ic { width: 24px; height: 24px; }
  .chip .ic img { width: 15px; height: 15px; }
  .chip b { font-size: 11px; }
}
