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

/* Hide the native cursor everywhere so the custom one always shows */
*, a, button, input, label, select, textarea {
  cursor: none !important;
}

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

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --border: #1e1e1e;
  --text: #f0ece3;
  --muted: #6b6560;
  --accent: #e8ff47;
  --accent2: #ff6b35;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  cursor: none;
  overflow-x: hidden;
}

/* CUSTOM CURSOR */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, opacity 0.2s;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1), opacity 0.2s, width 0.25s, height 0.25s;
  opacity: 0.5;
}
.cursor-ring.hovering { width: 56px; height: 56px; opacity: 0.8; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 48px;
  mix-blend-mode: normal;
}
nav::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.95) 0%, transparent 100%);
  pointer-events: none;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  position: relative;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 36px; list-style: none; position: relative; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  position: relative;
  background: var(--accent);
  color: var(--bg) !important;
  padding: 8px 20px;
  letter-spacing: 0.06em;
  font-weight: 500;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover { background: var(--accent2) !important; color: var(--text) !important; }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 70% 30%, rgba(232,255,71,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 20% 70%, rgba(255,107,53,0.04) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  display: block; width: 32px; height: 1px;
  background: var(--accent);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 11vw, 160px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.9s 0.35s forwards;
}
.hero-title .line2 {
  color: transparent;
  -webkit-text-stroke: 1px rgba(240,236,227,0.3);
  display: block;
}
.hero-title .accent-word { color: var(--accent); }
.hero-bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  opacity: 0;
  animation: fadeUp 0.8s 0.55s forwards;
}
.hero-desc {
  max-width: 380px;
  color: var(--muted);
  line-height: 1.8;
}
.hero-desc strong { color: var(--text); font-weight: 400; }
.hero-actions { display: flex; gap: 16px; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent);
  color: var(--bg);
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--accent2); color: var(--text); transform: translateX(4px); }
.btn-primary svg { width: 14px; height: 14px; }
.btn-ghost {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--text); }
.hero-scroll-hint {
  position: absolute; right: 48px; bottom: 80px;
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 12px;
  opacity: 0;
  animation: fadeIn 1s 1s forwards;
}
.hero-scroll-hint::after {
  content: '';
  display: block; width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--muted), transparent);
}
.hero-number {
  position: absolute; left: 48px; bottom: 80px;
  font-size: 120px;
  font-family: var(--font-display);
  font-weight: 800;
  color: rgba(255,255,255,0.03);
  letter-spacing: -0.06em;
  line-height: 1;
  pointer-events: none;
}

/* MARQUEE */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
  background: var(--surface);
}
.marquee-track {
  display: flex; gap: 48px;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.marquee-item {
  display: flex; align-items: center; gap: 48px;
  font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
}
.marquee-item .dot { color: var(--accent); font-size: 20px; line-height: 0; }

/* SERVICES */
.section { padding: 120px 48px; }
.section-label {
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 56px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before {
  content: '';
  display: block; width: 32px; height: 1px; background: var(--accent);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.service-card {
  background: var(--bg);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1);
}
.service-card:hover { background: var(--surface); }
.service-card:hover::before { transform: scaleX(1); }
.service-card.coming-soon { opacity: 0.5; }
.service-card.coming-soon:hover { background: var(--bg); opacity: 0.6; }
.service-num {
  font-size: 10px; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 32px;
}
.service-icon {
  width: 48px; height: 48px; margin-bottom: 24px;
  color: var(--accent);
}
.service-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.service-desc { color: var(--muted); line-height: 1.8; font-size: 13px; }
.service-badge {
  display: inline-block; margin-top: 24px;
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent2);
  border: 1px solid var(--accent2);
  padding: 4px 10px;
}
.service-arrow {
  position: absolute; bottom: 40px; right: 40px;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}
.service-card:hover .service-arrow { color: var(--accent); transform: translate(4px, -4px); }

/* PROCESS */
.process-section { padding: 120px 48px; background: var(--surface); }
.process-header {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: end; margin-bottom: 80px;
}
.process-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.process-title em { font-style: normal; color: var(--accent); }
.process-intro { color: var(--muted); line-height: 1.9; max-width: 400px; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); }
.process-step {
  background: var(--surface);
  padding: 40px 32px;
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 800;
  color: rgba(232,255,71,0.08);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 24px;
}
.step-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; margin-bottom: 12px;
}
.step-desc { color: var(--muted); font-size: 12px; line-height: 1.8; }

/* ABOUT */
.about-section {
  padding: 120px 48px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 100px; align-items: center;
}
.about-visual {
  aspect-ratio: 4/3;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.about-visual-inner {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(232,255,71,0.05) 0%, transparent 50%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(232,255,71,0.02) 20px,
      rgba(232,255,71,0.02) 21px
    );
  display: flex; align-items: center; justify-content: center;
}
.about-logo-large {
  font-family: var(--font-display);
  font-size: 80px; font-weight: 800;
  letter-spacing: -0.05em;
  color: rgba(240,236,227,0.06);
}
.about-accent-bar {
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--accent2));
}
.about-tag {
  position: absolute; bottom: 24px; right: 24px;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); background: rgba(10,10,10,0.8);
  padding: 6px 12px; border: 1px solid var(--border);
}
.about-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 28px;
}
.about-title em { font-style: normal; color: var(--accent); }
.about-body { color: var(--muted); line-height: 1.9; margin-bottom: 20px; }
.about-stats {
  display: flex; gap: 48px; margin-top: 40px;
  padding-top: 40px; border-top: 1px solid var(--border);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 800; letter-spacing: -0.04em;
  color: var(--accent);
}
.stat-label { font-size: 11px; letter-spacing: 0.1em; color: var(--muted); margin-top: 4px; }

/* CTA */
.cta-section {
  padding: 120px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(232,255,71,0.07) 0%, transparent 70%);
}
.cta-section .section-label { justify-content: center; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 48px;
  position: relative;
}
.cta-title .outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(240,236,227,0.2);
  display: block;
}
.cta-actions { display: flex; gap: 20px; justify-content: center; position: relative; }
.btn-large {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent); color: var(--bg);
  padding: 18px 40px;
  font-family: var(--font-mono); font-size: 13px;
  font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: background 0.2s, transform 0.2s;
}
.btn-large:hover { background: var(--accent2); color: var(--text); transform: translateY(-2px); }
.btn-large-ghost {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--muted);
  padding: 18px 40px;
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.btn-large-ghost:hover { color: var(--text); border-color: var(--muted); }

/* FOOTER */
footer {
  padding: 60px 48px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 16px;
  letter-spacing: -0.02em;
}
.footer-logo span { color: var(--accent); }
.footer-copy { color: var(--muted); font-size: 11px; letter-spacing: 0.05em; }
.footer-links { display: flex; gap: 28px; list-style: none; }
.footer-links a {
  color: var(--muted); text-decoration: none;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* LOADER */
.loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
.loader.slide-out {
  transform: translateY(-100%);
}
.loader.hidden {
  display: none;
}
.loader-inner {
  position: relative;
  isolation: isolate;
  display: flex; align-items: center; justify-content: center;
  width: 280px; height: 280px;
}

/* SVG sits BELOW the logo text */
.loader-ring-svg {
  position: absolute; inset: 0;
  width: 280px; height: 280px;
  z-index: 1;
}

/* Logo group sits ABOVE the circle */
.loader-logo {
  position: absolute;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  user-select: none;
  gap: 2px;
}
.loader-up {
  font-size: 50px;
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  animation: loaderWordIn 0.5s 0.2s cubic-bezier(0.23,1,0.32,1) forwards;
}

/* SHIFT text — on top, with a faded bg pseudo-element that masks the arc behind it */
.loader-shift {
  position: relative;
  font-size: 50px;
  color: var(--accent);
  opacity: 0;
  transform: translateY(8px);
  animation: loaderWordIn 0.5s 0.4s cubic-bezier(0.23,1,0.32,1) forwards;
}

/*
  This pseudo-element sits behind the SHIFT text (z-index: -1 within the logo
  stacking context) but above the SVG circle (because the whole .loader-logo
  group is at z-index: 2 > SVG's z-index: 1).

  It has the same background as the loader (#0a0a0a) with gradient fades at
  the top and bottom edges, so the circle seems to disappear when it passes
  behind the word.
*/
.loader-shift::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  top: -16px;
  bottom: -16px;
  background: linear-gradient(
    to bottom,
    transparent            0%,
    var(--bg)             22%,
    var(--bg)             78%,
    transparent          100%
  );
  z-index: -1;
  pointer-events: none;
}

.loader-track {
  stroke: rgba(255,255,255,0.07);
  stroke-width: 2;
}
.loader-arc {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 659.73; /* 2π × 105 */
  stroke-dashoffset: 659.73;
  animation: arcDraw 1.6s 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loaderWordIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes arcDraw {
  to { stroke-dashoffset: 0; }
}

/* Hero animations only trigger AFTER loader exits */
.has-loader .hero-eyebrow,
.has-loader .hero-title,
.has-loader .hero-bottom,
.has-loader .hero-scroll-hint {
  animation: none !important;
  opacity: 0;
}
.loaded .hero-eyebrow  { animation: fadeUp 0.8s 0.1s forwards !important; }
.loaded .hero-title    { animation: fadeUp 0.9s 0.25s forwards !important; }
.loaded .hero-bottom   { animation: fadeUp 0.8s 0.45s forwards !important; }
.loaded .hero-scroll-hint { animation: fadeIn 1s 0.9s forwards !important; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s cubic-bezier(0.23,1,0.32,1), transform 0.7s cubic-bezier(0.23,1,0.32,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .hero { padding: 0 24px 64px; }
  .section, .process-section, .about-section, .cta-section { padding: 80px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service-card[style*="grid-column"] { grid-column: span 1 !important; }
  .process-header { grid-template-columns: 1fr; gap: 32px; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .about-section { grid-template-columns: 1fr; gap: 48px; }
  footer { flex-direction: column; gap: 24px; text-align: center; }
  .hero-scroll-hint { display: none; }
  .hero-number { display: none; }
}
@media (max-width: 540px) {
  .process-steps { grid-template-columns: 1fr; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 32px; }
  .cta-actions { flex-direction: column; align-items: center; }
}

/* Arrowhead orbits the circle CCW, starting at 3 o'clock (right) */
#loaderArrow {
  opacity: 0;
  animation: arrowSpin 1.6s 0.6s cubic-bezier(0.4, 0, 0.2, 1) both,
             arrowFadeIn 0.3s 0.6s ease forwards;
}

@keyframes arrowFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes arrowSpin {
  /*
    Transform chain reads right-to-left:
    1. translate(105px, 0)  → place arrowhead on the circle edge (r=105)
    2. rotate(Ndeg)         → orbit CCW (negative degrees)
    3. translate(140px, 140px) → move origin to SVG centre

    The polygon tip points toward negative-y (upward in local space).
    At 0° (3 o'clock) "up" in local space == the CCW travel direction. ✓
    The rotate() also rotates the arrowhead itself, so the tip always
    faces the direction of travel throughout the full orbit.
  */
  0%   { transform: translate(140px, 140px) rotate(  0deg) translate(105px, 0); }
  100% { transform: translate(140px, 140px) rotate(-360deg) translate(105px, 0); }
}


