@font-face { font-family: 'Syne'; src: url(../fonts/syne.woff2) format('woff2'); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../fonts/inter.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(../fonts/jetbrains-mono.woff2) format('woff2'); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --bg: #0b0b0c;
  --bg-2: #141416;
  --ink: #f2efe9;
  --muted: #8d8a85;
  --line: rgba(242, 239, 233, .12);
  --accent: #d4ff3a;
  --violet: #7a5cff;
  --display: 'Syne', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.65, 0, .35, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

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

body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--bg); }

@media (hover: hover) and (pointer: fine) {
  body, a, button { cursor: none; }
}

/* ---------- utilities ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 112px);
  line-height: .95;
  letter-spacing: -.03em;
}

.h2 em, .hero-title em, .contact-title em {
  font-style: normal;
  color: var(--accent);
}

/* masks get room for descenders (g, y, p) without changing the line spacing */
.line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }

/* ---------- preloader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--gutter);
}

.loader-count {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(90px, 22vw, 340px);
  line-height: .8;
  letter-spacing: -.05em;
  align-self: flex-end;
}

.loader-count small { font-size: .3em; vertical-align: top; }
/* fixed digit slots so the counter never changes width (was the CLS source) */
.loader-num i { display: inline-block; width: 1.06em; text-align: center; font-style: normal; }

.loader-name {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 13px;
}

.loader-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 6px;
  background: rgba(11, 11, 12, .15);
}

.loader-bar i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--bg); }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 999; pointer-events: none; mix-blend-mode: difference; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-dot { width: 6px; height: 6px; background: #fff; }
.cursor-ring {
  width: 40px; height: 40px;
  border: 1px solid #fff;
  display: flex; align-items: center; justify-content: center;
  transition: width .35s var(--ease), height .35s var(--ease), background .35s var(--ease);
}
.cursor-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.is-hover .cursor-ring { width: 70px; height: 70px; background: #fff; }
.cursor.is-view .cursor-ring { width: 96px; height: 96px; background: #fff; }
.cursor.is-view .cursor-label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* grain */
.grain {
  position: fixed; inset: 0;
  z-index: 998; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  /* jitter the background, not the box: a moving fixed box was reported as layout shift */
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { background-position: 0 0; }
  20% { background-position: -37px 23px; }
  40% { background-position: 29px -47px; }
  60% { background-position: -21px 41px; }
  80% { background-position: 53px 13px; }
}

.progress { position: fixed; left: 0; top: 0; width: 100%; height: 2px; z-index: 997; }
.progress i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  mix-blend-mode: difference;
}

.nav-logo { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.04em; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 36px; font-size: 14px; }

.link-roll { display: inline-block; overflow: hidden; vertical-align: bottom; }
.link-roll span { display: inline-block; position: relative; transition: transform .45s var(--ease); }
.link-roll span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
.link-roll:hover span { transform: translateY(-100%); }

/* buttons */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 100px;
  background: var(--ink); color: var(--bg);
  font-weight: 600;
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(135%) scale(1.4); /* scale grows it around the centre, so park it well below */
  transition: transform .55s var(--ease), border-radius .55s var(--ease);
}
.btn:hover::before { transform: translateY(0) scale(1.4); border-radius: 0; }
.btn span { display: inline-block; }
.btn-small { padding: 11px 22px; font-size: 14px; }
.btn-big { padding: 26px 46px; font-size: clamp(16px, 2vw, 22px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 26px 40px; font-size: clamp(15px, 1.6vw, 18px); }
.btn-ghost:hover { color: var(--bg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 120px var(--gutter) 48px;
  overflow: hidden;
}

.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; width: 100%; }

.hero-eyebrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(212, 255, 58, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(212, 255, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 255, 58, 0); } }

.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(52px, 12.6vw, 250px); /* Syne 800 caps are ~1.1em wide: 6 letters fit the viewport */
  line-height: .86;
  letter-spacing: -.055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-title .line-2 { display: flex; align-items: flex-start; gap: .1em; padding-left: 12vw; }
.hero-title .char { display: inline-block; will-change: transform; }

.hero-badge {
  font-family: var(--mono) !important;
  font-size: clamp(14px, 1.6vw, 22px);
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--bg) !important;
  background: var(--accent);
  border-radius: 100px;
  padding: .35em .9em;
  margin-top: .8em;
  transform: rotate(-8deg);
}

.hero-bottom {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  margin-top: 48px;
}

.hero-lead { max-width: 520px; font-size: clamp(17px, 1.6vw, 21px); color: #cfccc6; }
.hero-lead strong { color: var(--ink); font-weight: 600; }

.hero-scroll { position: relative; width: 120px; height: 120px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.hero-scroll svg { position: absolute; inset: 0; animation: spin 12s linear infinite; }
.hero-scroll text { font-family: var(--mono); font-size: 9.5px; letter-spacing: .25em; text-transform: uppercase; fill: var(--ink); }
.hero-scroll i { font-style: normal; font-size: 26px; color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- marquee ---------- */
.marquee { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee-track { display: flex; width: max-content; white-space: nowrap; }
.marquee-row { display: flex; align-items: center; gap: 40px; padding-right: 40px; }
.marquee-row span { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 7vw, 104px); letter-spacing: -.03em; line-height: 1.1; }
.marquee-row b { color: var(--accent); font-size: clamp(22px, 3vw, 44px); }
.marquee-track--rev .marquee-row span { -webkit-text-stroke: 2px var(--ink); color: var(--bg); paint-order: stroke fill; } /* fill hides Syne's overlapping contours */
.marquee-track--rev .marquee-row b { color: var(--violet); }

/* ---------- statement ---------- */
.statement { padding: clamp(100px, 16vw, 220px) var(--gutter); max-width: 1500px; }
.statement-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 68px);
  line-height: 1.12;
  letter-spacing: -.02em;
}
.statement-text .word { opacity: .14; }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 56px var(--gutter) 48px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 4.4vw, 84px); white-space: nowrap; line-height: 1; letter-spacing: -.04em; }
.stat-num em { font-style: normal; color: var(--accent); }
.stat-num sup { font-size: .4em; color: var(--accent); vertical-align: top; margin: 0 .05em; }
.stat p { margin-top: 18px; color: var(--muted); font-size: 14px; }

/* ---------- services ---------- */
.services { padding-top: clamp(100px, 14vw, 200px); }
.services-head { padding: 0 var(--gutter); margin-bottom: 70px; max-width: 1200px; }
.services-pin { overflow: hidden; }
.services-track { display: flex; gap: 24px; padding: 0 var(--gutter) 100px; width: max-content; }

.card {
  position: relative;
  width: min(440px, 80vw);
  min-height: 520px;
  padding: 40px 36px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--bg-2);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: border-color .4s;
}
.card::before {
  content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  left: var(--mx, 50%); top: var(--my, 0%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 255, 58, .18), transparent 65%);
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.card:hover { border-color: rgba(212, 255, 58, .4); }
.card:hover::before { opacity: 1; }
.card-no { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.card-icon { width: 76px; height: 76px; margin-top: 46px; }
.card-icon svg { width: 100%; height: 100%; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.05; letter-spacing: -.02em; margin: 56px 0 16px; }
.card p { color: #b9b6b0; font-size: 15px; }
.card ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.card li { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 7px 12px; border: 1px solid var(--line); border-radius: 100px; }

/* ---------- process ---------- */
.process { padding: clamp(80px, 12vw, 180px) var(--gutter); }
.process-wrap { position: relative; margin-top: 80px; }
.process-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.process-line path { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.process-steps { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 120px 10%; }
.process-steps li { background: var(--bg); padding: 28px 0; max-width: 440px; }
.process-steps li:nth-child(even) { justify-self: end; }
.process-steps span { font-family: var(--mono); color: var(--accent); font-size: 14px; }
.process-steps h3 { font-family: var(--display); font-size: clamp(28px, 3.2vw, 44px); font-weight: 700; letter-spacing: -.02em; margin: 10px 0 12px; line-height: 1.05; }
.process-steps p { color: #b9b6b0; }

/* ---------- work ---------- */
.work { padding: clamp(80px, 12vw, 180px) var(--gutter); position: relative; }
.work-head { margin-bottom: 60px; }
.work-list { border-top: 1px solid var(--line); }
.work-item {
  position: relative;
  display: grid; grid-template-columns: 70px 1fr auto 60px; align-items: center; gap: 24px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.work-item::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s var(--ease);
}
.work-item:hover::before { transform: scaleY(1); }
.work-item > * { transition: color .4s, transform .5s var(--ease); }
.work-item:hover > * { color: var(--bg); }
.work-item:hover h3 { transform: translateX(24px); }
.work-no { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.work-item h3 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4.4vw, 64px); letter-spacing: -.03em; line-height: 1; }
.work-tags { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; text-align: right; }
.work-arrow { font-size: 34px; text-align: right; }
.work-item:hover .work-arrow { transform: rotate(45deg); }

.work-thumb { display: none; }

.work-preview {
  position: fixed; left: 0; top: 0; z-index: 50;
  width: 420px; aspect-ratio: 16 / 9;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.6);
}
.work-preview-inner {
  position: relative; width: 100%; height: 100%;
  border-radius: 18px; overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.work-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.wp-label {
  position: absolute; left: 14px; bottom: 14px;
  padding: 7px 12px; border-radius: 100px;
  background: var(--accent); color: var(--bg);
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
}

.contact-social { display: flex; justify-content: center; gap: 32px; margin-top: 40px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-social a:hover { color: var(--accent); }

/* ---------- reviews ---------- */
.reviews { padding: clamp(80px, 12vw, 180px) var(--gutter) 0; }
.reviews-head { margin-bottom: 60px; }
.stack { position: relative; }
.review {
  position: sticky;
  top: 14vh;
  min-height: 60vh;
  margin-bottom: 8vh;
  padding: clamp(32px, 5vw, 72px);
  border-radius: 32px;
  background: var(--c);
  color: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  transform-origin: 50% 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .35);
}
.stars { font-size: 22px; letter-spacing: 4px; }
.review blockquote { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4.6vw, 72px); line-height: 1.05; letter-spacing: -.025em; margin: 40px 0; max-width: 1200px; }
.review figcaption { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }

/* ---------- about ---------- */
.about { padding: clamp(100px, 14vw, 200px) var(--gutter); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; }
.about-text { margin-top: 36px; font-size: 18px; color: #cfccc6; max-width: 520px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.badges li { padding: 10px 18px; border-radius: 100px; border: 1px solid var(--accent); color: var(--accent); font-size: 14px; }
.timeline { position: relative; padding-left: 36px; align-self: end; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline::after { content: ''; position: absolute; left: 6px; top: 8px; width: 1px; height: calc(var(--p, 0) * (100% - 16px)); background: var(--accent); }
.timeline li { position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 0 0 54px; }
.timeline li::before { content: ''; position: absolute; left: -36px; top: 8px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 1px solid var(--accent); }
.tl-year { font-family: var(--mono); color: var(--accent); }
.timeline h3 { font-family: var(--display); font-size: 26px; line-height: 1.1; letter-spacing: -.02em; }
.timeline p { color: var(--muted); margin-top: 6px; }

/* ---------- contact ---------- */
.contact { padding: clamp(100px, 14vw, 200px) var(--gutter) 120px; text-align: center; overflow: hidden; }
.contact .eyebrow { text-align: center; }
.contact-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(32px, 8.2vw, 150px); /* "LET'S BUILD" is ~12em wide in Syne 800 */
  line-height: .9; letter-spacing: -.05em; text-transform: uppercase;
  white-space: nowrap;
}
.ct-line { display: block; }
.ct-outline { -webkit-text-stroke: .05em var(--accent); color: var(--bg); paint-order: stroke fill; }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 70px; }

/* ---------- footer ---------- */
.footer {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-title .line-2 { padding-left: 0; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .hero-scroll { width: 96px; height: 96px; align-self: flex-end; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-num { font-size: clamp(36px, 10vw, 64px); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .services-track { flex-direction: column; width: auto; }
  .card { width: 100%; min-height: 0; }
  .process-steps { grid-template-columns: 1fr; gap: 40px; }
  .process-steps li:nth-child(even) { justify-self: start; }
  .process-line { display: none; }
  .work-item { grid-template-columns: 40px 1fr 40px; padding: 28px 0; row-gap: 18px; }
  .work-thumb { display: block; grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-radius: 14px; }
  .work-tags { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .review { top: 10vh; min-height: 50vh; }
}

@media (max-width: 520px) {
  .stat { padding: 36px 16px; }
  .btn-big, .btn-ghost { width: 100%; padding: 22px 24px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .hero-scroll svg, .pulse { animation: none; }
  .statement-text .word { opacity: 1; }
}
