/* ==========================================================================
   Novacraft Digital — "Mono" template
   Near-black + neon green, Geist / Geist Mono
   ========================================================================== */

:root {
  /* palette */
  --black: #0a0c10;
  --ink: #141b23;
  --green: #00ff85;
  --green-2: #06dea7;
  --light: #d9d9d9;
  --grey: #a3a5a4;
  --paper: #e9eceb;
  --white: #ffffff;

  /* semantic (dark theme default) */
  --bg: var(--black);
  --fg: var(--light);
  --fg-strong: var(--white);
  --muted: var(--grey);            /* 7.9:1 on --black */
  --accent: var(--green);
  --line: rgba(255, 255, 255, 0.14);
  --surface: #12151b;

  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 16px;
  --radius: 10px;
  --radius-lg: 20px;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 200ms;
  --dur: 400ms;
  --dur-slow: 800ms;

  --z-content: 10;
  --z-menu: 110;
  --z-header: 120;
  --z-cursor: 130;
  --z-preloader: 200;
}
@media (min-width: 768px) { :root { --gutter: 40px; } }

.theme-light {
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-strong: var(--ink);
  --muted: #4a525b;                /* 6.6:1 on --paper */
  --accent: var(--ink);
  --line: rgba(20, 27, 35, 0.16);
  --surface: var(--white);
  background: var(--bg);
  color: var(--fg);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (min-width: 768px) { body { font-size: 1.125rem; } }
body.menu-open { overflow: hidden; }

h1, h2, h3, h4, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
svg { display: block; }
canvas { display: block; width: 100%; height: 100%; }

h1, h2, h3, h4 { font-weight: 400; color: var(--fg-strong); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7.4vw, 6.25rem); line-height: 1; letter-spacing: -0.06em; }
h2 { font-size: clamp(2rem, 6vw, 5rem); line-height: 1.06; letter-spacing: -0.06em; }
h3, .h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -0.04em; }
.h4 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.3; letter-spacing: -0.04em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.theme-light :focus-visible { outline-color: var(--ink); }
::selection { background: var(--green); color: var(--black); }

.container { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.dim { opacity: 0.55; }
.theme-light .dim { opacity: 0.75; }
.accent { color: var(--green); }
.underline { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.underline:hover { text-decoration-thickness: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 300;
  padding: 12px 16px; background: var(--green); color: var(--black);
  font-family: var(--font-mono); border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
@media (min-width: 768px) { .eyebrow { font-size: 1rem; } }

.lead { max-width: 34em; color: var(--fg); }

.section-head { display: grid; gap: 20px; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head h2 { max-width: 14em; }
@media (min-width: 1024px) {
  .section-head { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .section-head .eyebrow { grid-column: 1 / -1; }
  .section-head .lead { align-self: end; justify-self: end; }
}

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Scramble text ---------- */
[data-scramble] .ch { display: inline-block; white-space: pre; }
[data-scramble] .ch.is-flash { background: currentColor; }
[data-scramble] .ch.is-flash > i { font-style: normal; color: var(--black); mix-blend-mode: normal; }
[data-scramble] .ch > i { font-style: normal; }

/* ---------- Preloader ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: var(--z-preloader);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  background: var(--black); color: var(--light);
  transition: transform 900ms var(--ease-in-out);
}
.js .preloader.is-done { transform: translateY(-100%); }
.preloader__mark { width: 56px; height: 56px; fill: var(--green); animation: spin 2.4s linear infinite; }
.preloader__count { font-family: var(--font-mono); font-size: 1rem; font-variant-numeric: tabular-nums; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; z-index: var(--z-header);
  width: 100%; padding-block: 20px;
  color: var(--white);
  pointer-events: none;
  transition: color var(--dur) var(--ease-out);
}
@media (min-width: 768px) { .header { padding-block: 36px; } }
/* transparent header: white over dark sections, ink while over a light section */
.header.is-on-light, body.menu-open .header { color: var(--ink); }
.menu-link:hover, .menu-link:focus-visible { color: var(--green); }
.header.is-on-light .menu-link:hover, .header.is-on-light .menu-link:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header a, .header button { pointer-events: auto; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 1.125rem; letter-spacing: -0.03em; text-transform: uppercase; min-height: 44px; }
.logo svg { width: 22px; height: 22px; fill: currentColor; transition: transform var(--dur-slow) var(--ease-out); }
.logo:hover svg { transform: rotate(180deg); }

.header__nav { display: none; align-items: center; gap: 28px; }
@media (min-width: 768px) { .header__nav { display: flex; } }
.menu-link { font-family: var(--font-mono); font-size: 1.125rem; letter-spacing: -0.04em; text-transform: uppercase; padding-block: 10px; }

.menu-toggle { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: -0.04em; }
@media (min-width: 768px) { .menu-toggle { display: none; } }
.menu-toggle__icon { position: relative; width: 24px; height: 12px; }
.menu-toggle__icon i { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform var(--dur) var(--ease-out); }
.menu-toggle__icon i:first-child { top: 0; }
.menu-toggle__icon i:last-child { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 112px var(--gutter) 32px;
  background: var(--paper); color: var(--ink);
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform 600ms var(--ease-in-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { transform: none; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu__links a { font-size: 2.5rem; line-height: 1.15; letter-spacing: -0.06em; padding-block: 4px; }
.mobile-menu__links a:active { opacity: 0.6; }
.mobile-menu__meta { display: grid; gap: 24px; }
.mobile-menu__meta .eyebrow { margin-bottom: 8px; opacity: 0.7; }
.mobile-menu__meta a { display: inline-block; padding-block: 6px; text-decoration: underline; text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.social-list { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.social-list a { display: inline-block; padding-block: 10px; }
.social-list a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Buttons ---------- */
.link-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--font-mono); font-size: 1rem; letter-spacing: -0.04em; text-transform: uppercase;
  color: var(--fg-strong);
}
.link-btn--accent { color: var(--accent); }
.link-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform var(--dur) var(--ease-out); }
.link-btn:hover svg { transform: translateX(6px); }

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-mono); font-size: clamp(1rem, 1.6vw, 1.5rem); letter-spacing: -0.04em; text-transform: uppercase;
  transition: color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; z-index: -1;
  left: var(--mx, 50%); top: var(--my, 50%);
  width: 250%; aspect-ratio: 1; border-radius: 50%;
  background: var(--btn-fill);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 550ms var(--ease-in-out);
  pointer-events: none;
}
.btn:hover::before, .btn:focus-visible::before { transform: translate(-50%, -50%) scale(1); }
.btn:active { transform: scale(0.98); }
.btn--primary { --btn-fill: linear-gradient(98deg, var(--paper) 0%, var(--white) 56%); background: linear-gradient(180deg, var(--green-2) 0%, var(--green) 100%); color: var(--ink); }
.btn--dark { --btn-fill: linear-gradient(180deg, var(--green-2) 0%, var(--green) 100%); background: var(--ink); color: var(--white); }
.btn--dark:hover, .btn--dark:focus-visible { color: var(--ink); }

.arrow-btn {
  display: inline-grid; place-items: center; width: 52px; height: 52px;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--fg-strong);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), opacity var(--dur-fast);
}
.arrow-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.arrow-btn:hover { background: var(--green); border-color: var(--green); color: var(--black); }
.arrow-btn--ink:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.arrow-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.arrow-btn:disabled:hover { background: none; border-color: var(--line); color: var(--fg-strong); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--black); }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; z-index: 1; }
.hero__vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(10, 12, 16, 0.85) 100%); pointer-events: none; }
.hero__content { position: relative; z-index: var(--z-content); margin-top: -100vh; margin-top: -100dvh; }
.hero__block { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.hero__block--intro { justify-content: space-between; gap: 40px; padding-top: 112px; padding-bottom: 40px; }
@media (min-width: 768px) { .hero__block--intro { padding-top: 150px; padding-bottom: 72px; } }

.hero__top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.hero__eyebrow { display: flex; flex-direction: column; gap: 4px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title .line > span { display: inline-block; }
.js .hero__title .line > span { transform: translateY(110%); transition: transform 1100ms var(--ease-out); }
.js .is-loaded .hero__title .line > span { transform: none; }
.js .hero__title .line:nth-child(2) > span { transition-delay: 90ms; }
.js .hero__title .line:nth-child(3) > span { transition-delay: 180ms; }

.js .load-in { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-slow) var(--ease-out) 500ms, transform var(--dur-slow) var(--ease-out) 500ms; }
.js .is-loaded .load-in { opacity: 1; transform: none; }

.hero__bottom { display: flex; flex-direction: column-reverse; align-items: center; gap: 32px; text-align: center; }
.hero__left { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero__right { display: flex; flex-direction: column; gap: 16px; max-width: 19rem; color: var(--light); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; }
@media (min-width: 768px) {
  .hero__bottom { flex-direction: row; align-items: flex-end; justify-content: space-between; text-align: left; }
  .hero__left { align-items: flex-start; }
  .hero__ctas { justify-content: flex-start; }
}

.stack { display: flex; flex-direction: column; gap: 8px; }
.marquee { width: 15rem; max-width: 70vw; overflow: hidden; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: -0.02em; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 14s linear infinite; }
.marquee__track span { flex-shrink: 0; white-space: pre; }
@keyframes marquee { to { transform: translateX(-50%); } }

.hero__block--statement { align-items: center; justify-content: center; gap: 24px; text-align: center; }
.statement { max-width: 12em; text-shadow: 0 0 40px rgba(10, 12, 16, 0.9); }
.js .hero__block--statement > * { opacity: 0; transform: translateY(40px) scale(0.97); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
.js .hero__block--statement.is-in > * { opacity: 1; transform: none; }

/* ---------- Quote ---------- */
.quote { position: relative; z-index: 2; background: var(--black); padding-block: clamp(96px, 16vw, 220px); }
.quote__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.quote__mark { font-size: clamp(3.5rem, 6vw, 5rem); line-height: 0.8; letter-spacing: -0.06em; color: var(--green); height: 0.5em; }
.quote__text { max-width: 17em; }
.quote__text .w { transition: opacity 300ms linear; }
.js .quote__text .w { opacity: 0.25; }
.js .quote__text .w.is-lit { opacity: 1; }

/* ---------- Capabilities ---------- */
.caps { background: var(--black); padding-block: clamp(72px, 10vw, 150px); border-top: 1px solid var(--line); }
.caps__grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .caps__grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; } }

.caps__visual {
  position: relative; aspect-ratio: 1; max-height: 70vh; width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 12.5%,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 12.5% 100%,
    var(--surface);
  overflow: hidden;
}
@media (min-width: 1024px) { .caps__visual { position: sticky; top: 120px; } }
.caps__art { position: absolute; inset: 14%; color: var(--light); opacity: 0; transform: scale(0.92) rotate(-4deg); transition: opacity var(--dur) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.caps__art.is-active { opacity: 1; transform: none; }
.caps__art svg { width: 100%; height: 100%; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.caps__art .hl { stroke: var(--green); stroke-width: 2; }
.caps__num { position: absolute; top: 16px; left: 20px; font-family: var(--font-mono); font-size: 1rem; color: var(--green); }
.caps__tags { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.caps__tags li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 12, 16, 0.7); font-family: var(--font-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: -0.02em; }

/* ---------- Accordion ---------- */
.acc-item { border-top: 1px solid var(--line); }
.acc-item:last-child { border-bottom: 1px solid var(--line); }
.acc-btn {
  display: flex; align-items: baseline; gap: 20px; width: 100%; min-height: 44px;
  padding-block: 24px; text-align: left; letter-spacing: inherit;
  color: var(--fg-strong); opacity: 0.6;
  transition: opacity var(--dur) var(--ease-out);
}
.acc-btn:hover, .acc-item.is-open .acc-btn { opacity: 1; }
.acc-idx { font-family: var(--font-mono); font-size: 1rem; color: var(--accent); min-width: 1.5em; }
.acc-title { flex: 1; }
.acc-icon { position: relative; flex-shrink: 0; align-self: center; width: 20px; height: 20px; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform var(--dur) var(--ease-out); }
.acc-icon::after { transform: rotate(90deg); }
.acc-item.is-open .acc-icon::after { transform: rotate(0deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease-out); }
.acc-panel > div { overflow: hidden; visibility: hidden; transition: visibility 0s var(--dur); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-item.is-open .acc-panel > div { visibility: visible; transition-delay: 0s; }
.acc-panel p { max-width: 38em; padding-bottom: 28px; color: var(--fg); }
.caps__list .acc-panel p { padding-left: calc(1.5em + 20px); }

/* ---------- Work: scroll-driven floating 3D carousel ---------- */
.work { background: var(--black); border-top: 1px solid var(--line); overflow: clip; }
/* tall wrapper = scroll distance; the sticky child stays on screen while cards travel sideways */
.js .work__pin { height: calc(100vh + var(--n, 7) * 50vh); }
.work__sticky { display: flex; flex-direction: column; justify-content: center; gap: clamp(8px, 2vh, 24px); padding-block: 96px 24px; }
.js .work__sticky { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: clip; }
.work__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.work__head > div:first-child { display: grid; gap: 12px; }
@media (max-height: 820px), (max-width: 767px) {
  .work__head .lead { display: none; }
  .work__sticky .work-card { width: clamp(260px, calc((100dvh - 400px) * 1.5), min(80vw, 760px)); }
}

.work__stage {
  position: relative; padding-block: 20px 0;
  perspective: 1600px; perspective-origin: 50% 40%;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
}
.work__stage::before {
  content: ""; position: absolute; left: 50%; top: 42%; width: min(90vw, 900px); aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(0, 255, 133, 0.16), transparent 65%);
  pointer-events: none;
}
.work__stage.is-dragging { cursor: grabbing; }
.work__stage:focus-visible { outline-offset: -4px; }
.work__cards { display: grid; justify-items: center; transform-style: preserve-3d; pointer-events: none; } /* the list plane sits in front of pushed-back cards; let clicks through */
.work-card { pointer-events: auto; }
.work-card {
  grid-area: 1 / 1;
  width: clamp(260px, calc((100dvh - 470px) * 1.5), min(80vw, 760px));
  transition: opacity 500ms var(--ease-out);
  will-change: transform;
}

/* each card bobs on its own rhythm */
.work-card__float { position: relative; animation: float 7s ease-in-out infinite alternate; }
.work-card:nth-child(2n) .work-card__float { animation-duration: 8.5s; animation-delay: -3s; }
.work-card:nth-child(3n) .work-card__float { animation-duration: 6.2s; animation-delay: -1.5s; }
.work-card__float::after {
  content: ""; position: absolute; left: 12%; right: 12%; top: calc(100% - 3.2rem); height: 36px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.75), transparent 70%); filter: blur(10px);
  z-index: -1; pointer-events: none;
}
@keyframes float { from { transform: translateY(-6px); } to { transform: translateY(8px); } }

.work-card__link { display: block; border-radius: 14px; -webkit-user-drag: none; }
.work-card__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-top: 16px; }
.js .work-card__meta { opacity: 0; transform: translateY(8px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.js .work-card.is-active .work-card__meta { opacity: 1; transform: none; }
.work-card__meta > div { display: grid; gap: 4px; }
.work-card__meta h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
.work-card__idx { color: var(--green); white-space: nowrap; padding-top: 0.4em; }

.work__nav { display: flex; align-items: center; justify-content: center; gap: 12px; }
.work__dots { display: flex; align-items: center; }
.work__dots button { display: grid; place-items: center; width: 28px; height: 44px; }
.work__dots button::before { content: ""; width: 16px; height: 3px; border-radius: 2px; background: var(--light); opacity: 0.3; transition: opacity var(--dur-fast), background var(--dur-fast), transform var(--dur) var(--ease-out); }
.work__dots button:hover::before { opacity: 0.7; }
.work__dots button[aria-current="true"]::before { background: var(--green); opacity: 1; transform: scaleX(1.3); }
@media (max-width: 479px) { .work__dots { display: none; } }

/* browser frame around a real site screenshot */
.preview {
  container-type: inline-size; position: relative; aspect-ratio: 16 / 10.5; overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.18); background: var(--surface);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  transition: box-shadow var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out);
}
.js .preview { filter: brightness(0.5) saturate(0.8); }
.js .work-card.is-active .preview { filter: none; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 30px 120px -30px rgba(0, 255, 133, 0.35); }
.preview__bar { display: flex; align-items: center; gap: 0.9cqw; padding: 1.4cqw 1.8cqw; background: #1c1f26; flex-shrink: 0; }
.preview__bar i { width: 1.3cqw; height: 1.3cqw; min-width: 5px; min-height: 5px; border-radius: 50%; background: #454a54; }
.preview__bar span { margin-left: 2cqw; flex: 1; max-width: 46cqw; padding: 0.6cqw 1.6cqw; border-radius: 99px; background: #0f1116; color: #9aa0aa; font-family: var(--font-mono); font-size: max(9px, 1.5cqw); letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview img { display: block; flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top center; -webkit-user-drag: none; }

/* no JavaScript: plain horizontal scroller */
html:not(.js) .work__cards { display: flex; gap: 20px; overflow-x: auto; padding-inline: var(--gutter); }
html:not(.js) .work-card { flex: 0 0 min(80vw, 560px); }
html:not(.js) .work__nav { display: none; }

.view-cursor {
  position: fixed; top: 0; left: 0; z-index: var(--z-cursor);
  display: grid; place-items: center; width: 88px; height: 88px; margin: -44px 0 0 -44px;
  border-radius: 50%; background: var(--green); color: var(--black);
  font-family: var(--font-mono); font-size: 0.875rem; letter-spacing: 0.2em; text-indent: 0.2em;
  pointer-events: none; opacity: 0; scale: 0.4;
  transition: opacity var(--dur-fast), scale var(--dur) var(--ease-out);
}
.view-cursor.is-on { opacity: 1; scale: 1; }
@media (hover: none), (pointer: coarse) { .view-cursor { display: none; } }

/* ---------- Why ---------- */
.why { position: relative; z-index: 2; padding-block: clamp(72px, 10vw, 150px); }
.bento { display: grid; gap: 16px; margin-bottom: clamp(48px, 7vw, 96px); }
@media (min-width: 768px) { .bento { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; } .tile--big { grid-row: 1 / -1; } }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 240px; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-lg); }
.tile--dark { background: var(--black); color: var(--light); min-height: 420px; }
.tile--accent { background: linear-gradient(180deg, var(--green-2), var(--green)); color: var(--ink); }
.tile--white { background: var(--white); color: var(--ink); }
.tile > :not(.tile__fx) { position: relative; z-index: 1; }
.tile__fx {
  position: absolute; inset: -40%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(0, 255, 133, 0.5) 60deg, transparent 140deg, rgba(6, 222, 167, 0.35) 220deg, transparent 300deg);
  filter: blur(60px); opacity: 0.6;
  animation: spin 18s linear infinite;
}
.tile__big { font-size: clamp(6rem, 13vw, 8.75rem); line-height: 1; letter-spacing: -0.06em; color: var(--white); }
.tile__num { font-size: clamp(3rem, 6vw, 5rem); line-height: 1.05; letter-spacing: -0.06em; }
.tile__text { max-width: 22em; }
.tile--dark .eyebrow { opacity: 0.7; }

.why__bottom { display: grid; gap: 40px; }
.why__bottom .btn { justify-self: start; }
@media (min-width: 1024px) { .why__bottom { grid-template-columns: 7fr 5fr; align-items: end; } .why__bottom .btn { justify-self: end; } }

/* ---------- Testimonials ---------- */
.testimonials { position: relative; z-index: 2; padding-block: clamp(72px, 10vw, 150px); border-top: 1px solid var(--line); overflow: hidden; }
.testimonials h2 { margin-top: 16px; margin-bottom: clamp(40px, 6vw, 72px); }

.deck { display: grid; max-width: 640px; margin-inline: auto; }
.t-card {
  grid-area: 1 / 1;
  display: flex; flex-direction: column; gap: 24px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--white); border: 1px solid var(--white); border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.18);
  opacity: 0; pointer-events: none;
  transition: opacity 500ms var(--ease-out), transform var(--dur-slow) var(--ease-out), background-color var(--dur-slow), box-shadow var(--dur-slow);
}
.t-card[data-pos="0"] { opacity: 1; pointer-events: auto; z-index: 3; box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.28); }
.t-card__quote { width: 32px; height: 24px; fill: var(--green-2); }
.t-card blockquote { flex: 1; font-size: 1rem; line-height: 1.55; }
@media (min-width: 768px) { .t-card blockquote { font-size: 1.125rem; } }
.t-card figcaption { display: flex; align-items: center; gap: 14px; }
.t-card__avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--white); font-family: var(--font-mono); font-size: 0.875rem; }
.t-card__role { display: block; font-family: var(--font-mono); font-size: 0.875rem; text-transform: uppercase; color: var(--muted); }
.t-card strong { font-weight: 500; }

@media (min-width: 640px) {
  .deck { perspective: 1200px; }
  .t-card { backface-visibility: hidden; will-change: transform; }
  .t-card[data-pos="-1"], .t-card[data-pos="1"] {
    opacity: 1; pointer-events: auto; cursor: pointer; z-index: 2;
    background: rgba(255, 255, 255, 0.45); border-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.12);
  }
  .t-card[data-pos="-1"] { transform: translateX(-56%) scale(0.84) rotateY(14deg); }
  .t-card[data-pos="1"] { transform: translateX(56%) scale(0.84) rotateY(-14deg); }
  .t-card[data-pos="-1"] > *, .t-card[data-pos="1"] > * { opacity: 0.45; }
}
.deck__controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 32px; }
.deck__controls .eyebrow { min-width: 4.5em; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 2; overflow: hidden; background: #000; color: var(--light); }
.footer__glow { position: absolute; inset: auto 0 0 0; height: 66%; background: radial-gradient(ellipse 70% 100% at 50% 100%, rgba(0, 255, 133, 0.28), rgba(6, 222, 167, 0.08) 45%, transparent 75%); pointer-events: none; }
.footer__inner { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 64px; min-height: 100vh; min-height: 100dvh; padding-top: 112px; padding-bottom: 32px; }
@media (min-width: 1024px) { .footer__inner { padding-block: 150px 48px; } }
.footer__top { display: flex; flex-direction: column; gap: 40px; margin-block: auto; }
.footer__top > div:first-child { display: grid; gap: 20px; }
.footer__title { font-size: clamp(2.5rem, 8vw, 7.5rem); line-height: 1; max-width: 9em; }
.footer__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; flex-shrink: 0; }
.footer__cta .h4 { color: var(--light); }
.footer__cta a { overflow-wrap: anywhere; }
@media (min-width: 1024px) {
  .footer__top { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .footer__cta { align-items: flex-end; text-align: right; }
}
.footer__bottom { display: flex; flex-direction: column; gap: 8px; font-size: 1rem; color: var(--grey); }
.footer__bottom a { color: var(--light); }
.footer__bottom p a { display: inline-block; padding-block: 10px; margin-left: 12px; }
@media (min-width: 640px) { .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .load-in, .js .hero__title .line > span, .js .hero__block--statement > * { opacity: 1; transform: none; }
  .js .quote__text .w { opacity: 1; }
  .marquee__track, .work-card__float { animation: none; }
}
