/* ================= Elyon Labs ================= */
:root {
  --bg: #000;
  --fg: #ededed;
  --white: #fff;
  --muted: #a1a1a1;
  --dim: #6b6b6b;
  --line: #1f1f1f;
  --line-2: #2e2e2e;
  --card: #0a0a0a;
  --max: 1200px;
  --pad: clamp(16px, 4vw, 32px);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--white); color: #000; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.mono { font-family: var(--mono); }
.small { font-size: 13px; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); }
.mark { width: 24px; height: 24px; flex: none; }
.wordmark { font-weight: 600; font-size: 18px; letter-spacing: -.02em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--white); color: #000; border: 1px solid var(--white);
  font: 500 15px var(--sans); cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: #d4d4d4; border-color: #d4d4d4; }
.btn-outline { background: transparent; color: var(--white); border-color: var(--line-2); }
.btn-outline:hover { background: #111; border-color: #444; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 64px;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.scrolled { background: rgba(0,0,0,.75); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-color: var(--line); }
.nav-inner { max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; gap: 32px; }
.links { display: flex; gap: 4px; margin-right: auto; }
.links a { color: var(--muted); font-size: 14px; padding: 6px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.links a:hover { color: var(--white); background: #111; }
.only-mobile { display: none; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.lang button {
  background: none; border: 0; color: var(--dim); cursor: pointer;
  font: 500 12px var(--mono); padding: 5px 10px; border-radius: 999px; transition: color .2s, background .2s;
}
.lang button[aria-pressed="true"] { background: var(--white); color: #000; }
.lang button:not([aria-pressed="true"]):hover { color: var(--white); }
.burger { display: none; width: 36px; height: 36px; background: none; border: 1px solid var(--line-2); border-radius: 999px; position: relative; cursor: pointer; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--white); transition: transform .3s; }
.burger span:first-child { top: 14px; } .burger span:last-child { top: 20px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 980px); display: flex; align-items: center; justify-content: center;
  padding: 120px var(--pad) 80px; text-align: center; overflow: hidden; isolation: isolate;
}
.grid-bg {
  position: absolute; inset: 0; z-index: -3;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
#field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.glow {
  position: absolute; z-index: -1; left: 50%; top: 42%; width: min(900px, 120vw); aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(0,0,0,.92), rgba(0,0,0,.6) 55%, transparent);
}
.hero-inner { max-width: 960px; width: 100%; min-width: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 32px;
  font-size: 12px; color: var(--muted); letter-spacing: .02em;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; background: rgba(10,10,10,.8);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.hero-title {
  margin: 0 0 24px; font-weight: 600; letter-spacing: -.055em; line-height: 1;
  font-size: clamp(46px, 9vw, 112px); color: var(--white);
}
.hero-title .fade { background: linear-gradient(180deg, #fff 10%, #6b6b6b 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 0 auto 40px; max-width: 620px; color: var(--muted); font-size: clamp(16px, 1.6vw, 20px); line-height: 1.55; }
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-inner > * { animation: rise .9s cubic-bezier(.2,.7,.1,1) both; }
.hero-inner > :nth-child(2) { animation-delay: .08s; }
.hero-inner > :nth-child(3) { animation-delay: .16s; }
.hero-inner > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Logos marquee ---------- */
.logos { border-block: 1px solid var(--line); padding: 40px 0 44px; }
.logos-label { text-align: center; font-size: 13px; color: var(--dim); margin: 0 0 28px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.track { display: flex; align-items: center; gap: 72px; width: max-content; padding-right: 72px; animation: slide 30s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.logo {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  color: var(--white); font-weight: 600; font-size: 22px; letter-spacing: -.02em;
  opacity: .6; transition: opacity .25s;
}
.logo:hover { opacity: 1; }
.logo img { height: 26px; width: auto; }
.logo-text { font-weight: 700; letter-spacing: -.035em; font-size: 24px; }
.logo .nd { width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin: 0 -2px; }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 140px) var(--pad); }
.head { max-width: 720px; margin-bottom: 56px; }
.kicker { font-size: 13px; color: var(--muted); margin: 0 0 16px; display: inline-flex; align-items: center; gap: 8px; }
.kicker::before { content: ""; width: 14px; height: 1px; background: var(--muted); }
.title { margin: 0 0 20px; font-size: clamp(34px, 5vw, 60px); font-weight: 600; letter-spacing: -.045em; line-height: 1.05; color: var(--white); }
.lead { margin: 0; color: var(--muted); font-size: 18px; max-width: 560px; }

/* ---------- Cards (with cursor spotlight) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--line); gap: 1px; }
.card { position: relative; background: var(--bg); padding: 40px; min-height: 280px; display: flex; flex-direction: column; overflow: hidden; }
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.07), transparent 60%);
}
.card:hover::before { opacity: 1; }
.icon { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; display: grid; place-items: center; margin-bottom: auto; background: var(--card); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card-kicker { margin: 40px 0 10px; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.card h3 { margin: 0 0 10px; font-size: 24px; font-weight: 600; letter-spacing: -.03em; color: var(--white); line-height: 1.2; }
.card p { margin: 0; color: var(--muted); max-width: 440px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 1px; background: linear-gradient(90deg, var(--line-2), var(--line-2) 70%, transparent); }
.step { position: relative; padding-right: 40px; }
.step .num {
  position: relative; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-2); font-size: 11px; color: var(--white); margin-bottom: 28px;
}
.step h3 { margin: 0 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -.03em; color: var(--white); }
.step p { margin: 0; color: var(--muted); }

/* ---------- Studio ---------- */
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-bottom: 72px; }
.studio-text p { margin: 0 0 20px; color: var(--muted); font-size: 18px; }
.studio-text strong { color: var(--white); font-weight: 600; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.principle { padding: 32px 32px 0 0; }
.principle + .principle { padding-left: 32px; border-left: 1px solid var(--line); }
.principle h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; color: var(--white); letter-spacing: -.02em; }
.principle p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.mail { display: inline-block; margin-top: 28px; font-size: 15px; color: var(--white); border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: border-color .2s; }
.mail:hover { border-color: var(--white); }
.form { display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); border-radius: 16px; padding: 32px; background: var(--card); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.form input, .form textarea {
  width: 100%; background: #000; color: var(--white); border: 1px solid var(--line-2); border-radius: 10px;
  font: 400 15px var(--sans); padding: 12px 14px; outline: none; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { border-color: #555; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.status { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--max); margin: 0 auto; padding: 40px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); color: var(--dim);
}
.footer .mark { width: 20px; height: 20px; }
.footer .wordmark { font-size: 15px; }
.footer a.mono:hover { color: var(--white); }
.footer p { margin: 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.1,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .links {
    position: fixed; inset: 64px 0 auto; flex-direction: column; gap: 0; padding: 8px var(--pad) 24px;
    background: #000; border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .links.open { opacity: 1; transform: none; pointer-events: auto; }
  .links a { font-size: 18px; padding: 14px 0; border-radius: 0; color: var(--white); border-bottom: 1px solid var(--line); }
  .links a:hover { background: none; }
  .only-mobile { display: block; }
  .nav-right .btn-sm { display: none; }
  .burger { display: block; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 32px 24px; min-height: 0; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { left: 13px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: var(--line-2); }
  .step { padding: 0 0 0 52px; }
  .step .num { position: absolute; left: 0; top: 0; }
  .studio-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .pill { font-size: 10.5px; padding: 6px 12px; gap: 8px; }
  .hero-title { font-size: clamp(38px, 11.5vw, 56px); }
  .form { padding: 20px; }
  .form .row { grid-template-columns: 1fr; }
  .track { gap: 48px; padding-right: 48px; }
  .logo { font-size: 18px; }
  .logo img { height: 22px; }
  .footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
