/* ============================================================
   Reolity — style.css
   Dark base #0a0a0d, electric violet accent #7c5cff
   ============================================================ */

:root {
  --bg: #0a0a0d;
  --bg-alt: #0e0e13;
  --panel: #14141c;
  --text: #f4f4f8;
  --muted: #9d9daf;
  --accent: #7c5cff;
  --accent-soft: #a78bfa;
  --line: rgba(255, 255, 255, 0.08);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }

.grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-soft) 55%, #6ea8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- overlays ---------- */

.noise {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 34px; height: 34px;
  border: 1px solid rgba(124, 92, 255, 0.65);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -50%);
  transition: width .25s ease, height .25s ease, border-color .25s ease, opacity .3s ease;
  opacity: 0;
}
body.has-cursor .cursor-ring { opacity: 1; }
.cursor-ring.is-hover {
  width: 56px; height: 56px;
  border-color: rgba(167, 139, 250, 0.9);
}

.progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 200;
  background: transparent;
}
#progress-bar {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

/* ---------- nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding .35s ease, background .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(10, 10, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 40px;
}
.logo {
  display: inline-flex;
  align-items: flex-end;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 700; font-size: 5rem;
  color: var(--text); text-decoration: none;
  letter-spacing: -0.02em;
  transition: font-size .35s ease;
}
.nav.scrolled .logo { font-size: 3.2rem; }
.logo-wheel {
  width: 0.6em; height: 0.6em;
  margin: 0 0.03em 0.115em 0.035em;
  transform-origin: center;
  animation: wheel-roll 1.2s steps(8) infinite;
}
@keyframes wheel-roll { to { transform: rotate(360deg); } }
.nav-links {
  display: flex; gap: 30px; margin-left: auto;
}
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.92rem; font-weight: 500;
  transition: color .25s ease;
}
.nav-links a:hover { color: var(--text); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 32px;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
  will-change: transform;
}
.btn-solid {
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent);
}
.btn-solid:hover {
  background: #8d70ff; border-color: #8d70ff;
  box-shadow: 0 0 42px rgba(124, 92, 255, 0.45);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-soft); }
.btn-sm { padding: 10px 22px; font-size: 0.88rem; }

/* ---------- eyebrow ---------- */

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
}
.tick { display: inline-block; width: 26px; height: 1px; background: var(--accent); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.field-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.hero-inner {
  position: relative; z-index: 2;
  margin-top: auto; margin-bottom: auto;
  padding-top: 130px;
}
.hero-eyebrow { margin-bottom: 30px; }
.hero-title {
  font-size: clamp(3.2rem, 9.5vw, 7.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 34px;
}
.hero-sub {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  margin-bottom: 42px;
}
.hero-cta .line-inner { display: inline-flex; gap: 16px; flex-wrap: wrap; }

.line { display: block; overflow: hidden; }
.line-inner {
  display: inline-block;
  transform: translateY(115%);
  animation: rise 1s cubic-bezier(.2, .7, .15, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise { to { transform: translateY(0); } }

.scroll-cue {
  position: absolute; bottom: 90px; left: 50%;
  width: 1px; height: 64px;
  background: var(--line);
  overflow: hidden; z-index: 2;
}
.scroll-cue span {
  position: absolute; top: -40%;
  width: 100%; height: 40%;
  background: var(--accent);
  animation: cue 1.8s cubic-bezier(.4, 0, .4, 1) infinite;
}
@keyframes cue { to { top: 110%; } }

/* ---------- marquee ---------- */

.marquee {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 20px 0;
  background: var(--bg-alt);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .85s ease, transform .85s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- full-screen sections ---------- */

.manifesto, .about, .section {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* snap only where a section can actually fit one screen */
@media (min-width: 720px) and (min-height: 620px) {
  html { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
  .hero, .manifesto, .section, .about {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .footer { scroll-snap-align: end; }
}

/* ---------- manifesto ---------- */

.manifesto {
  position: relative;
  padding: 90px 0 60px;
  overflow: hidden;
}
.manifesto .wrap, .about .wrap { position: relative; z-index: 2; }
.manifesto-wheel {
  position: absolute;
  top: 50%; right: -4%;
  width: clamp(260px, 30vw, 420px);
  height: auto;
  opacity: 0.07;
  pointer-events: none;
  transform: translateY(-50%) rotate(15deg);
}
.m-line {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.2vw, 3.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--muted);
}
.m-line em { font-style: normal; color: var(--text); }
.m-line + .m-line { margin-top: 18px; }

/* scroll-scrubbed words: lit progressively as the section scrolls */
.m-line .w { color: rgba(157, 157, 175, 0.32); transition: color 0.3s linear; }
.m-line .w.lit { color: var(--text); }
.m-line .w-em.lit { color: var(--accent-soft); }

/* ---------- sections ---------- */

.section { padding: 88px 0 48px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  margin-bottom: 44px;
}

/* ---------- services ---------- */

.services { list-style: none; border-top: 1px solid var(--line); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr 1.2fr;
  gap: 28px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  transition: background .3s ease;
}
.service:hover { background: var(--panel); }
.s-num {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 600;
  color: var(--accent);
}
.s-title { font-size: clamp(1.2rem, 2.2vw, 1.6rem); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.service:hover .s-title { transform: translateX(10px); }
.s-desc { color: var(--muted); font-size: 0.93rem; }

/* hover glow following the mouse */
.glow { overflow: hidden; }
.glow::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 92, 255, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.glow:hover::after { opacity: 1; }

/* ---------- audience tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tile {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 28px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s ease;
}
.tile:hover { transform: translateY(-6px); border-color: rgba(124, 92, 255, 0.5); }
.t-num {
  font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 700;
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid rgba(124, 92, 255, 0.4);
  border-radius: 50%;
  margin-bottom: 24px;
}
.tile h3 { font-size: 1.35rem; margin-bottom: 14px; }
.tile p { color: var(--muted); font-size: 0.98rem; }

/* ---------- proof / stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.stat {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  display: block;
  margin-bottom: 10px;
}
.stat-prefix, .stat-suffix { color: var(--accent); }
.stat-label { color: var(--muted); font-size: 0.94rem; max-width: 300px; display: block; }

/* ---------- clients ---------- */

.clients-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.clients-head span:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.clients {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* original brand logos (dark-surface variants), linked to each client's site */
.client {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 96px;
  padding: 16px 20px;
  text-decoration: none;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), filter .3s ease;
}
.client:hover {
  transform: translateY(-5px);
  filter: drop-shadow(0 10px 26px rgba(124, 92, 255, 0.45));
}
.client img { max-width: 100%; max-height: 44px; display: block; }
.client-word {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: #f4f4f8;
}
.client-jd img { max-height: 68px; }
.client-lockup img { width: 38px; height: 38px; }
.client-lockup .client-word { font-size: 1.05rem; letter-spacing: 0.08em; }

/* ---------- process ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  counter-reset: step;
}
.step { position: relative; }

/* the timeline ignites left-to-right; steps brighten as the wheel passes */
.p-track {
  position: relative;
  height: 10px;
  margin-bottom: 34px;
}
.p-track::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--line);
}
.p-fill {
  position: absolute; left: 0; top: 50%;
  width: 100%; height: 2px;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transition: opacity .35s ease;
}
.p-runner {
  position: absolute; left: 0; top: 50%;
  width: 22px; height: 22px;
  transform: translate(-11px, -50%);
  transition: opacity .35s ease;
}
.p-fade .p-fill, .p-fade .p-runner { opacity: 0; }
.p-ripple {
  position: absolute; top: 50%;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border: 1.5px solid var(--accent-soft);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: p-ripple 1.05s cubic-bezier(.2, .6, .4, 1) forwards;
}
@keyframes p-ripple {
  0% { transform: scale(0.25); opacity: 0.9; }
  100% { transform: scale(4.4); opacity: 0; }
}
.p-dot {
  position: absolute; top: 50%;
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  transition: background .3s ease, box-shadow .3s ease;
}
.p-dot.on {
  background: var(--accent);
  box-shadow: 0 0 14px rgba(124, 92, 255, 0.8);
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 600;
  color: rgba(124, 92, 255, 0.45);
  display: block; margin-bottom: 14px;
  transition: color .4s ease;
}
.step h3 {
  font-size: 1.3rem; margin-bottom: 12px;
  color: rgba(244, 244, 248, 0.45);
  transition: color .4s ease;
}
.step p {
  color: var(--muted); font-size: 0.95rem;
  opacity: 0.55;
  transition: opacity .4s ease;
}
.step.lit .step-num { color: var(--accent); }
.step.lit h3 { color: var(--text); }
.step.lit p { opacity: 1; }

/* ---------- about strip ---------- */

.about {
  position: relative;
  overflow: hidden;
  padding: 90px 0 60px;
  background:
    radial-gradient(700px 340px at 15% 20%, rgba(124, 92, 255, 0.13), transparent 70%),
    var(--bg);
}
.about-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  margin-bottom: 34px;
}
.about-text { color: var(--muted); max-width: 680px; font-size: 1.08rem; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-grid .section-title { margin-bottom: 24px; }
.contact-sub { color: var(--muted); max-width: 400px; }

.contact-form { display: grid; gap: 22px; }
.contact-form label { display: grid; gap: 8px; }
.contact-form label span {
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 10px 2px 14px;
  outline: none;
  transition: border-color .3s ease;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--accent); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(157, 157, 175, 0.45); }
.contact-form .btn { justify-self: start; margin-top: 8px; }

.form-note { color: var(--accent-soft); font-size: 0.9rem; }

.form-done {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600;
  color: var(--accent-soft);
}
.form-done small { display: block; margin-top: 12px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 400; color: var(--muted); }

/* ---------- cookie consent ---------- */

.consent {
  position: fixed;
  left: 22px; bottom: 22px;
  z-index: 300;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px 18px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
}
.consent.show { opacity: 1; transform: none; }
.consent p { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; }
.consent-actions { display: flex; gap: 10px; }
@media (max-width: 480px) {
  .consent { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
  background: var(--bg-alt);
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr;
  gap: 48px;
  padding-bottom: 64px;
}
.f-brand .logo { margin-bottom: 6px; display: inline-flex; font-size: 3rem; }
.f-tag {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  margin: 10px 0 12px;
}
.f-desc { color: var(--muted); font-size: 0.93rem; max-width: 300px; }
.f-col { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.f-col h4 {
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 6px;
}
.f-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  transition: color .25s ease, transform .25s ease;
}
.f-col a:hover { color: var(--text); transform: translateX(3px); }
.f-col .btn { margin-top: 10px; color: #fff; }
.f-note { color: var(--muted); font-size: 0.85rem; max-width: 230px; }

.f-mega {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.2rem, 15vw, 12.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(124, 92, 255, 0.3);
  user-select: none;
  margin-bottom: 40px;
}
.f-mega-wheel {
  width: 0.6em; height: 0.6em;
  margin: 0 0.03em 0.115em 0.035em;
  transform-origin: center;
  animation: wheel-roll 1.8s steps(12) infinite;
}

.f-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  color: var(--muted);
  font-size: 0.85rem;
}
.f-ai { font-family: var(--font-display); color: var(--accent-soft); }
.f-top { color: var(--text); text-decoration: none; transition: color .25s ease; }
.f-top:hover { color: var(--accent-soft); }
.f-cookies {
  background: none; border: 0; padding: 0;
  font: inherit; color: var(--muted);
  cursor: pointer;
  transition: color .25s ease;
}
.f-cookies:hover { color: var(--text); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .service { grid-template-columns: 60px 1fr; grid-template-rows: auto auto; }
  .s-desc { grid-column: 2; }
  .steps { grid-template-columns: 1fr 1fr; gap: 44px 28px; }
  .p-track { display: none; }
  .step { border-top: 1px solid var(--line); padding-top: 22px; }
  .step-num, .step.lit .step-num { color: var(--accent); }
  .step h3, .step.lit h3 { color: var(--text); }
  .step p, .step.lit p { opacity: 1; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .manifesto-wheel { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .logo, .nav.scrolled .logo { font-size: 2.6rem; }
  .section { padding: 90px 0; }
  .manifesto, .about { padding: 100px 0; }
}

/* ---------- hidden document: no frames are produced, so entrance
   effects must complete instantly or content stays invisible ---------- */

.anim-off .line-inner { animation-duration: 0s !important; animation-delay: 0s !important; }
.anim-off .reveal { transition-duration: 0s !important; transition-delay: 0s !important; }
.anim-off .m-line .w { transition: none !important; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .line-inner { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .cursor-ring { display: none; }
}
