/* ── Variables ── */
:root {
  --bg: #06060a;
  --fg: #ebebf5;
  /* --muted: #52526a; */
  
  --muted: #e4e4f7;
  --border: rgba(235,235,245,.07);
  --card-bg: rgba(235,235,245,.025);
  --accent: #4d7cff;
  --accent2: #9b6dff;
  --accent3: #3dffc0;
  --ease-expo: cubic-bezier(0.16,1,0.3,1);
  --ease-quart: cubic-bezier(0.25,1,0.5,1);
}

/* ── Reset ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Sora', system-ui, sans-serif;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
@media (pointer: coarse) { body { cursor: auto; } }
.mono { font-family: 'JetBrains Mono', monospace; }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(77,124,255,.35); border-radius: 9px; }

/* ── Canvas & Overlays ── */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }

.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  background-size: 180px;
  opacity: .35;
  mix-blend-mode: overlay;
}

.vignette {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 42%, rgba(6,6,10,.72) 100%);
}

/* ── Scroll Progress ── */
.progress-bar {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 60ms linear;
}

/* ── Custom Cursor ── */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  z-index: 9000;
  mix-blend-mode: difference;
  transform: translate(-50%,-50%);
  transition: width 400ms var(--ease-expo), height 400ms var(--ease-expo);
  will-change: transform;
}
body.cursor-hover .cursor { width: 44px; height: 44px; }
body.cursor-link  .cursor { width: 60px; height: 60px; }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 44px;
  transition: padding 350ms var(--ease-quart), background 350ms, border-color 350ms;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 18px 44px;
  background: rgba(6,6,10,.88);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}
.nav__brand { font-weight: 800; font-size: 17px; letter-spacing: -.02em; color: var(--fg); }
.nav__dot { color: var(--accent); }
.nav__links { display: flex; gap: 36px; }
.nav__link { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--muted); transition: color 200ms; }
.nav__link:hover { color: var(--fg); }
.nav__end { display: flex; align-items: center; gap: 16px; }

/* ── Hamburger ── */
.hamburger { display: none; flex-direction: column; gap: 6px; padding: 8px; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--fg); transform-origin: center; transition: transform 350ms var(--ease-expo), opacity 250ms; }
.hamburger.open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.hamburger.open span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

/* ── Full-screen Menu ── */
.fullmenu {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 44px 60px;
  background: rgba(6,6,10,.97);
  backdrop-filter: blur(24px);
  pointer-events: none; opacity: 0;
  clip-path: polygon(0 0,100% 0,100% 0%,0 0%);
  transition: opacity 500ms var(--ease-expo), clip-path 600ms var(--ease-expo);
}
.fullmenu.open { opacity: 1; pointer-events: auto; clip-path: polygon(0 0,100% 0,100% 100%,0 100%); }
.fullmenu__list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.fullmenu__link {
  display: block; font-weight: 800;
  font-size: clamp(48px,7.5vw,100px); line-height: 1.0; letter-spacing: -.045em;
  color: var(--fg); padding: 6px 0;
  transform: translateY(44px); opacity: 0;
  transition: transform 600ms var(--ease-expo), opacity 500ms ease, color 200ms;
}
.fullmenu.open .fullmenu__link { transform: translateY(0); opacity: 1; }
.fullmenu__list li:nth-child(1) .fullmenu__link { transition-delay:  60ms; }
.fullmenu__list li:nth-child(2) .fullmenu__link { transition-delay: 110ms; }
.fullmenu__list li:nth-child(3) .fullmenu__link { transition-delay: 160ms; }
.fullmenu__list li:nth-child(4) .fullmenu__link { transition-delay: 210ms; }
.fullmenu__list li:nth-child(5) .fullmenu__link { transition-delay: 260ms; }
.fullmenu__list li:nth-child(6) .fullmenu__link { transition-delay: 310ms; }
.fullmenu__link:hover { color: var(--accent); }
.fullmenu__meta {
  position: absolute; bottom: 44px; left: 44px;
  display: flex; gap: 40px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .08em; color: var(--muted);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; padding: 14px 28px; border-radius: 4px;
  font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: .01em;
  transition: transform 350ms var(--ease-expo), box-shadow 350ms;
  cursor: pointer; border: none;
}
.btn--sm { padding: 10px 20px; font-size: 13px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(77,124,255,.45); }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: rgba(235,235,245,.22); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn--outline:hover { border-color: rgba(235,235,245,.28); }

/* ── Reveal Animations ── */
.lm { display: block; overflow: hidden; padding-bottom: .05em; }

[data-reveal="rise"] {
  display: block;
  transform: translateY(108%); opacity: 0;
  transition: transform 1050ms var(--ease-expo), opacity 700ms ease;
}
[data-reveal="rise"].revealed { transform: translateY(0); opacity: 1; }

[data-reveal="fade"] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 750ms ease, transform 750ms var(--ease-quart);
}
[data-reveal="fade"].revealed { opacity: 1; transform: translateY(0); }

[data-reveal="card"] {
  opacity: 0; transform: translateY(40px) scale(.97);
  transition: opacity 700ms ease, transform 800ms var(--ease-expo);
}
[data-reveal="card"].revealed { opacity: 1; transform: none; }

/* ── Common ── */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px;
}
.section { position: relative; z-index: 3; padding: 120px 44px; max-width: 1240px; margin: 0 auto; }
.section__hd { margin-bottom: 72px; }
.section__h2 { font-weight: 700; font-size: clamp(44px,6vw,90px); line-height: .93; letter-spacing: -.045em; }

/* ── Hero ── */
.s-hero {
  position: relative; z-index: 3; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px clamp(24px,5vw,80px) 80px;
}
.s-hero__h1 {
  font-weight: 800; font-size: clamp(68px,11vw,152px);
  line-height: .9; letter-spacing: -.055em; margin: 18px 0 34px;
}
.grad {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.s-hero__sub { max-width: 58ch; font-size: clamp(16px,2vw,20px); line-height: 1.55; color: var(--muted); margin-bottom: 40px; }
.s-hero__btns { display: flex; gap: 14px; flex-wrap: wrap; }
.s-hero__scroll {
  position: absolute; bottom: 44px; left: clamp(24px,5vw,80px);
  display: flex; align-items: center; gap: 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.scroll-track { width: 40px; height: 1px; background: var(--muted); position: relative; overflow: hidden; }
.scroll-thumb {
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%; background: var(--accent);
  animation: scrub 2.2s ease-in-out infinite;
}
@keyframes scrub {
  0%      { left: -100%; }
  49.99%  { left: 100%; }
  50%     { left: -100%; }
  100%    { left: 100%; }
}

/* ── Ticker ── */
.ticker {
  position: relative; z-index: 3;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(6,6,10,.7); backdrop-filter: blur(8px);
  padding: 16px 0; overflow: hidden;
}
.ticker__inner { overflow: hidden; white-space: nowrap; }
.ticker__belt {
  display: inline-flex; align-items: center; gap: 28px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  animation: belt 30s linear infinite;
}
.ticker__belt b { color: var(--accent); font-weight: 400; }
.ticker:hover .ticker__belt { animation-play-state: paused; }
@keyframes belt { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Service Cards ── */
.cards {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
}
.card {
  background: var(--bg); padding: 44px 40px 40px;
  position: relative; overflow: hidden;
  transition: background 300ms; transform-style: preserve-3d;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(560px circle at var(--mx,50%) var(--my,50%), rgba(77,124,255,.055), transparent 45%);
  opacity: 0; transition: opacity 300ms; pointer-events: none;
}
/* .card:hover { background: rgba(77,124,255,.025); } */
.card:hover { background: rgb(12 40 121 / 88%); }
.card:hover::before { opacity: 1; }
.card__n { font-size: 11px; letter-spacing: .1em; color: var(--accent); margin-bottom: 24px; display: block; }
.card h3 { font-size: clamp(20px,2vw,24px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; }
.card p { font-size: 15px; line-height: 1.65; color: var(--muted); margin-bottom: 28px; max-width: 44ch; }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.card__tags span {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .06em; color: var(--muted);
  border: 1px solid var(--border); border-radius: 3px; padding: 4px 10px;
}

/* ── Process Steps ── */
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 36px 0; border-top: 1px solid var(--border); }
.step:last-child { border-bottom: 1px solid var(--border); }
.step__n { font-size: 12px; color: var(--accent); padding-top: 4px; }
.step__body h3 { font-size: clamp(22px,2.2vw,28px); font-weight: 700; letter-spacing: -.025em; margin-bottom: 12px; }
.step__body p { font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 56ch; }

/* ── Stats ── */
.s-stats { padding-top: 0; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.stat { background: var(--bg); padding: 48px 36px; }
.stat__n { font-weight: 800; font-size: clamp(50px,5vw,80px); line-height: 1; letter-spacing: -.04em; color: var(--accent); margin-bottom: 10px; }
.stat__l { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ── Work List ── */
.work-list { list-style: none; }
.work-item {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; padding: 40px 0; border-top: 1px solid var(--border);
  color: var(--fg); transition: padding-left 300ms var(--ease-quart);
}
.work-list li:last-child .work-item { border-bottom: 1px solid var(--border); }
.work-item:hover { padding-left: 12px; }
.work-item__l { display: flex; align-items: flex-start; gap: 28px; flex: 1; }
.work-item__n { font-size: 12px; color: var(--muted); flex-shrink: 0; padding-top: 5px; }
.work-item__l h3 { font-size: clamp(20px,2vw,26px); font-weight: 700; letter-spacing: -.025em; margin-bottom: 6px; transition: color 200ms; }
.work-item:hover .work-item__l h3 { color: var(--accent); }
.work-item__l p { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.work-item__r { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.work-item__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.work-item__tags span {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .06em; color: var(--muted);
  border: 1px solid var(--border); border-radius: 3px; padding: 4px 10px;
}
.work-item__arr { font-size: 22px; color: var(--muted); transition: transform 350ms var(--ease-expo), color 200ms; }
.work-item:hover .work-item__arr { transform: translate(4px,-4px); color: var(--accent); }

/* ── Contact ── */
.s-contact { min-height: 75vh; display: flex; flex-direction: column; justify-content: center; }
.s-contact__h2 { font-weight: 800; font-size: clamp(64px,9.5vw,140px); line-height: .88; letter-spacing: -.055em; margin: 16px 0 28px; }
.s-contact__sub { font-size: 17px; color: var(--muted); margin-bottom: 44px; }
.s-contact__email {
  display: inline-block; font-weight: 700; font-size: clamp(26px,3.5vw,52px);
  letter-spacing: -.03em; color: var(--accent);
  border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: opacity 200ms;
}
.s-contact__email:hover { opacity: .72; }
.s-contact__links { display: flex; gap: 28px; margin-top: 52px; }
.s-contact__links a { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color 200ms; }
.s-contact__links a:hover { color: var(--fg); }

/* ── Founder ── */
.s-founder { overflow: visible; }
.founder-grid {
  display: grid;
  grid-template-columns: minmax(280px, 440px) 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  margin-top: 56px;
}

/* Photo column */
.founder-img-wrap {
  position: relative; border-radius: 4px; overflow: visible;
}
.founder-img-bg {
  position: absolute; inset: -2px; z-index: -1;
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent2) 60%, var(--accent3) 100%);
  border-radius: 6px; opacity: .18; filter: blur(28px);
}
.founder-img {
  display: block; width: 100%; aspect-ratio: 5/7; object-fit: cover;
  border-radius: 4px; border: 1px solid var(--border);
  filter: grayscale(.35) contrast(1.06);
  transition: filter 500ms;
  background: #0c0f18;
}
.founder-img-wrap:hover .founder-img { filter: grayscale(0) contrast(1.08); }
.founder-img-noise {
  position: absolute; inset: 0; border-radius: 4px; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
  background-size: 160px; mix-blend-mode: overlay; opacity: .55;
}

/* Copy column */
.founder-copy { display: flex; flex-direction: column; gap: 24px; }
.founder-name {
  font-weight: 800; font-size: clamp(36px, 4.5vw, 64px);
  line-height: .9; letter-spacing: -.04em;
}
.founder-role { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.founder-bio { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.65; color: var(--muted); max-width: 50ch; }
.founder-quote {
  position: relative; border: none; padding: 0;
  font-style: normal; font-weight: 600; font-size: clamp(18px, 2vw, 24px);
  line-height: 1.4; letter-spacing: -.01em; max-width: 42ch; color: var(--fg);
}
.founder-quote__mark {
  display: block; font-size: 3.5em; line-height: .3; color: var(--accent);
  margin-bottom: .15em; font-style: italic;
}
.founder-links { display: flex; gap: 20px; }
.founder-link {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--border); padding-bottom: 3px;
  transition: color 200ms, border-color 200ms;
}
.founder-link:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 960px) {
  .founder-grid { grid-template-columns: 1fr; }
  .founder-img { aspect-ratio: 5/7; }
}

/* ── Footer ── */
.footer {
  position: relative; z-index: 3; border-top: 1px solid var(--border);
  padding: 28px 44px; display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .06em; color: var(--muted);
}

/* ── Magnetic ── */
.magnetic { transition: transform 400ms var(--ease-expo); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .cursor { display: none; }
  body { cursor: auto; }
  .nav { padding: 20px 24px; }
  .nav.scrolled { padding: 14px 24px; }
  .nav__links { display: none; }
  .btn--outline.nav__cta { display: none; }
  .hamburger { display: flex; }
  .section { padding: 80px 24px; }
  .s-hero { padding: 120px 24px 80px; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .step { grid-template-columns: 48px 1fr; }
  .work-item { flex-direction: column; align-items: flex-start; }
  .work-item:hover { padding-left: 0; }
  .work-item__r { width: 100%; justify-content: space-between; }
  .fullmenu { padding: 100px 24px 40px; }
  .fullmenu__meta { left: 24px; bottom: 28px; flex-direction: column; gap: 8px; }
  .fullmenu__link { font-size: clamp(40px,12vw,72px); }
  .footer { flex-direction: column; align-items: flex-start; gap: 6px; padding: 24px; }
  .footer__tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}