/* ==========================================================================
   Tamim Rupo — site.css
   Dark-violet / lime design system, adapted from the livingwithprompts feel.
   1. Tokens          2. Reset & base      3. Typography      4. Layout
   5. Utilities       6. Header            7. Buttons         8. Badges & bits
   9. Hero           10. Client strip     11. Marquee        12. Split sections
  13. Numbers/checks 14. Work cards       15. Portrait       16. Fan
  17. Dark feature   18. CTA + keyboard   19. Footer         20. Page heroes
  21. Article pages  22. Contact & forms  23. 404            24. Reveal & motion
  25. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* ink */
  --ink: #0d0b14;
  --ink-2: #150e28;
  --ink-3: #231a36;
  --ink-4: #2a1b4d;

  /* paper */
  --paper: #fbfaff;
  --paper-2: #f3ecff;
  --paper-3: #ede9f6;
  --white: #ffffff;

  /* violet */
  --violet: #7946e3;
  --violet-deep: #5f2ec7;
  --violet-soft: #8f65f0;
  --violet-pale: #cbb8ff;
  --violet-ghost: #f3ecff;

  /* lime */
  --lime: #c8f136;
  --lime-bright: #dafa73;
  --lime-deep: #536b08;
  --lime-ghost: #eafbb0;

  /* text */
  --text: #0d0b14;
  --text-2: #544e60;
  --text-3: #766e80;
  --on-dark: #fbfaff;
  --on-dark-2: #c7bed7;
  --on-dark-3: #9a90ae;

  /* lines */
  --line: #e7e1f3;
  --line-strong: #d6cce8;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-dark-soft: rgba(255, 255, 255, 0.07);

  /* fonts */
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --font-hand: "Caveat", "Segoe Script", cursive;

  /* type scale */
  --display-1: clamp(2.9rem, 1.6rem + 5.6vw, 5.4rem);
  --display-2: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  --display-3: clamp(1.85rem, 1.4rem + 1.7vw, 2.75rem);
  --display-4: clamp(1.4rem, 1.25rem + 0.6vw, 1.75rem);
  --text-l: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --text-m: 1rem;
  --text-s: 0.9375rem;
  --text-xs: 0.8125rem;

  /* spacing */
  --gutter: clamp(1.25rem, 5vw, 2rem);
  --section-y: clamp(4rem, 2.6rem + 5.4vw, 7.5rem);
  --section-y-s: clamp(2.75rem, 2rem + 3.2vw, 5rem);
  --gap-s: 0.75rem;
  --gap-m: 1.5rem;
  --gap-l: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  --gap-xl: clamp(3rem, 2rem + 4vw, 5rem);

  /* radii */
  --r-s: 0.375rem;
  --r-m: 1rem;
  --r-l: 1.5rem;
  --r-xl: 2rem;
  --r-pill: 9999px;

  /* shadows */
  --shadow-s: 0 10px 24px -16px rgba(95, 46, 199, 0.3);
  --shadow-m: 0 24px 50px -30px rgba(95, 46, 199, 0.35);
  --shadow-l: 0 40px 96px -32px rgba(95, 46, 199, 0.45);
  --shadow-card: 0 0 0 1px rgba(23, 16, 41, 0.06), 0 18px 40px -28px rgba(60, 30, 140, 0.35);

  /* misc */
  --container: 72.5rem;
  --header-h: 56px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

/* 2. Reset & base ---------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: var(--text-m);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

button, input, textarea, select { font: inherit; color: inherit; }

::selection {
  background: var(--lime);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

.section--dark :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible { outline-color: var(--lime); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* 3. Typography ------------------------------------------------------------ */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

h1 { font-size: var(--display-1); }
h2 { font-size: var(--display-2); }
h3 { font-size: var(--display-3); }
h4 { font-size: var(--display-4); letter-spacing: -0.02em; }

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

strong { color: var(--ink); font-weight: 600; }

.display-1 { font-size: var(--display-1); }
.display-2 { font-size: var(--display-2); }
.display-3 { font-size: var(--display-3); }
.display-4 { font-size: var(--display-4); }

.lead {
  font-size: var(--text-l);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 38rem;
}

.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--on-dark); }
.on-dark { color: var(--on-dark-2); }
.on-dark .lead, .lead.on-dark { color: var(--on-dark-2); }
.muted { color: var(--text-3); }
.on-dark .muted { color: var(--on-dark-3); }

.hl { color: var(--lime); font-style: normal; }
.hl-violet { color: var(--violet-deep); font-style: normal; }
.hl-box {
  display: inline-block;
  padding: 0.02em 0.24em 0.06em;
  border-radius: 0.18em;
  background: var(--lime);
  color: var(--ink);
  font-style: normal;
  line-height: 1;
  transform: rotate(-1.5deg);
}

.hand {
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--violet-deep);
}
.on-dark .hand, .section--dark .hand, .not-found .hand { color: var(--lime); }

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--text-3);
}
.on-dark .mono, .mono.on-dark { color: var(--on-dark-3); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-deep);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}
.eyebrow--plain::before { display: none; }
.eyebrow--lime { color: var(--lime); }
.eyebrow--muted { color: var(--text-3); }

/* 4. Layout ---------------------------------------------------------------- */
.container {
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--tight { padding-block: var(--section-y-s); }
.section--paper { background: var(--paper); }
.section--paper-2 { background: var(--paper-2); }
.section--dark {
  background: var(--ink);
  color: var(--on-dark-2);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--on-dark); }

.section--glow {
  background:
    linear-gradient(180deg, rgba(13, 11, 20, 0) 55%, rgba(92, 58, 220, 0.18) 100%),
    radial-gradient(70% 46% at 50% 112%, rgba(92, 58, 220, 0.42), rgba(13, 11, 20, 0) 70%),
    radial-gradient(44% 80% at 0% 96%, rgba(92, 58, 220, 0.3), rgba(13, 11, 20, 0) 72%),
    radial-gradient(44% 80% at 100% 96%, rgba(92, 58, 220, 0.28), rgba(13, 11, 20, 0) 72%),
    var(--ink);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap-m);
  margin-bottom: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
}
.section-head > div { max-width: 44rem; }
.section-head h2 { margin-bottom: 0; }
.section-head .eyebrow { margin-bottom: 0.9rem; }

.stack > * + * { margin-top: 1rem; }
.stack-l > * + * { margin-top: var(--gap-m); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: var(--gap-xl);
  align-items: center;
}
.split--top { align-items: start; }
.split__media { position: relative; }

/* 5. Utilities ------------------------------------------------------------- */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-s);
  font-weight: 600;
  color: var(--violet-deep);
  text-decoration: none;
  white-space: nowrap;
}
.arrow-link::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}
.arrow-link:hover::after { transform: translateX(4px); }
.on-dark .arrow-link, .arrow-link.on-dark, .section--dark .arrow-link { color: var(--lime); }

.text-link {
  color: var(--violet-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.text-link:hover { color: var(--violet); }
.on-dark .text-link { color: var(--lime); }

.center { text-align: center; }
.center .lead, .center .eyebrow { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* 6. Header ---------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  padding: var(--gap-s) var(--gap-s) 0;
  transition: transform 0.7s var(--ease);
}
.site-header.is-hidden { transform: translateY(calc(-100% - 1rem)); }
.site-header.is-hidden:focus-within { transform: none; }

.header-pill {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  width: min(72rem, 100%);
  height: var(--header-h);
  margin-inline: auto;
  padding: 0 8px 0 22px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px -18px rgba(13, 11, 20, 0.5), 0 0 0 1px rgba(13, 11, 20, 0.05);
  backdrop-filter: blur(10px);
  transition: background-color 0.25s ease;
}
.site-header.is-scrolled .header-pill { background: rgba(255, 255, 255, 0.9); }

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand__chip {
  display: inline-block;
  padding: 0.18em 0.34em 0.22em;
  border-radius: 0.38em;
  background: var(--violet);
  color: #fff;
  transform: rotate(-3deg);
  transition: transform 0.3s var(--ease);
}
.brand:hover .brand__chip { transform: rotate(0deg); }

.header-nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 1.7rem;
}
.header-nav a {
  position: relative;
  padding-block: 0.2rem;
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(23, 16, 41, 0.66);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.header-nav a:hover { color: var(--ink); }
.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  height: 3px;
  border-radius: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.header-nav a:hover::after { transform: scaleX(1); }
.header-nav a[aria-current="page"] { color: var(--ink); }

.header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* CTA clone injected into the mobile menu panel — desktop shows the real one */
.header-nav .header-nav__cta { display: none; }

.menu-toggle {
  display: none;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paper-3);
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle span {
  grid-area: 1 / 1;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}
.menu-toggle span:first-child { transform: translateY(-3.5px); }
.menu-toggle span:last-child { transform: translateY(3.5px); }
.site-header.is-open .menu-toggle { background: var(--ink); color: #fff; }
.site-header.is-open .menu-toggle span:first-child { transform: rotate(45deg); }
.site-header.is-open .menu-toggle span:last-child { transform: rotate(-45deg); }

.site-header::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(13, 11, 20, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.site-header.is-open::before { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }

/* 7. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--text-s);
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 2.35rem; padding: 0.5rem 1.05rem; font-size: var(--text-xs); }

.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--lime-bright); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }
.btn--violet { background: var(--violet); color: #fff; }
.btn--violet:hover { background: var(--violet-deep); }
.btn--light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--light:hover { background: var(--paper-2); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { background: var(--paper-2); }
.on-dark .btn--ghost, .section--dark .btn--ghost { color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.on-dark .btn--ghost:hover, .section--dark .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* arrow pill — violet circle expands on hover */
.btn-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.5rem 1.5rem 0.5rem 0.5rem;
  overflow: hidden;
  border-radius: var(--r-pill);
  font-size: var(--text-m);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.15;
  isolation: isolate;
  transition: transform 0.2s ease;
}
.btn-arrow:active { transform: scale(0.985); }
.btn-arrow::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 4px;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--violet);
  transform: translateY(-50%) scale(1);
  transition: transform 0.55s var(--ease-soft);
}
.btn-arrow:hover::before { transform: translateY(-50%) scale(16); }
.btn-arrow__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-size: 1rem;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.btn-arrow:hover .btn-arrow__icon { background: #fff; color: var(--violet); }
.btn-arrow__text { position: relative; z-index: 1; transition: color 0.25s ease; }

.btn-arrow--light {
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff, #efeafb);
  box-shadow: inset 0 1px 0 #ffffffe6, inset 0 -1px 0 rgba(21, 14, 40, 0.1), 0 8px 24px -8px rgba(109, 59, 217, 0.45);
}
.btn-arrow--light:hover { color: #fff; }

.btn-arrow--dark {
  color: #fff;
  background: linear-gradient(180deg, var(--ink-4), var(--ink-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.3), 0 8px 24px -8px rgba(23, 16, 41, 0.5);
}
.btn-arrow--lime {
  color: var(--ink);
  background: var(--lime);
}
.btn-arrow--lime::before { background: var(--ink); }
.btn-arrow--lime .btn-arrow__icon { background: var(--ink); color: var(--lime); }
.btn-arrow--lime:hover { color: #fff; }
.btn-arrow--lime:hover .btn-arrow__icon { background: #fff; color: var(--ink); }

.btn-arrow--sm { min-height: 2.75rem; padding: 0.35rem 1.25rem 0.35rem 0.35rem; font-size: var(--text-s); }
.btn-arrow--sm::before, .btn-arrow--sm .btn-arrow__icon { width: 2.1rem; height: 2.1rem; }

/* 8. Badges & bits --------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.7rem;
  border-radius: 0.4rem;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-s);
  font-weight: 600;
  line-height: 1.35;
  transform: rotate(-1.5deg);
}
.badge--violet { background: var(--violet); color: #fff; }
.badge--soft { background: var(--violet-ghost); color: var(--violet-deep); }
.badge--dark { background: rgba(255, 255, 255, 0.1); color: var(--on-dark); }
.badge--pill { border-radius: var(--r-pill); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  color: var(--violet-deep);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.section--dark .tag { background: rgba(255, 255, 255, 0.08); color: var(--violet-pale); }

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.03em;
  color: var(--text-3);
}
.meta .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.on-dark .meta, .section--dark .meta { color: var(--on-dark-3); }

/* 9. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  background:
    radial-gradient(78% 52% at 50% 116%, rgba(108, 68, 242, 0.68), rgba(13, 11, 20, 0) 70%),
    radial-gradient(54% 96% at 0% 100%, rgba(133, 82, 240, 0.54), rgba(13, 11, 20, 0) 72%),
    radial-gradient(54% 96% at 100% 100%, rgba(150, 104, 252, 0.48), rgba(13, 11, 20, 0) 72%),
    radial-gradient(60% 60% at 50% 118%, rgba(199, 170, 255, 0.16), rgba(13, 11, 20, 0) 70%),
    linear-gradient(180deg, #0f0b1d 0%, var(--ink) 50%, #120d28 100%);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(50% 48% at 50% 44%, rgba(13, 11, 20, 0.72), rgba(13, 11, 20, 0) 74%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(56rem, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  text-align: center;
  transform: translate3d(calc(var(--px, 0) * 8px), calc(var(--py, 0) * 6px), 0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.hero .badge { margin-bottom: 1.4rem; }
.hero__title {
  margin: 0;
  max-width: 54rem;
  font-size: var(--display-1);
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--on-dark);
}
.hero__lede {
  max-width: 36rem;
  margin: 1.5rem 0 0;
  font-size: var(--text-l);
  line-height: 1.6;
  color: var(--on-dark-2);
  text-wrap: pretty;
}
.hero__cta { margin-top: 2rem; width: 100%; max-width: 32rem; }
.hero__note {
  position: absolute;
  z-index: 2;
  right: max(3%, calc((100vw - 76rem) / 2));
  top: 26%;
  max-width: 11rem;
  color: var(--lime);
  transform: translate3d(calc(var(--px, 0) * -16px), calc(var(--py, 0) * -12px), 0) rotate(-5deg);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: right;
  opacity: 0.9;
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 2;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  text-decoration: none;
  white-space: nowrap;
}
.hero__scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 2rem;
  margin: 0.5rem auto 0;
  background: linear-gradient(var(--on-dark-3), transparent);
}

/* floating cartoon sticker in the hero */
.hero__sticker {
  position: absolute;
  z-index: 2;
  left: max(4%, calc((100vw - 78rem) / 2));
  bottom: clamp(6rem, 12vh, 8rem);
  width: clamp(8.5rem, 11.5vw, 11.5rem);
  padding: 0.5rem 0.5rem 0.55rem;
  border-radius: 1.15rem;
  background: var(--paper);
  box-shadow: 0 26px 60px -26px rgba(8, 5, 16, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translate3d(calc(var(--px, 0) * -18px), calc(var(--py, 0) * -14px), 0) rotate(-6deg);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.hero__sticker::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -0.65rem;
  left: 50%;
  width: 3.1rem;
  height: 1.15rem;
  border-radius: 2px;
  background: rgba(200, 241, 54, 0.92);
  box-shadow: 0 4px 12px -6px rgba(8, 5, 16, 0.6);
  transform: translateX(-50%) rotate(-3deg);
}
.hero__sticker img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.8rem;
  background: radial-gradient(120% 100% at 50% 0%, var(--violet-ghost), #ddd0f7 70%);
}
.hero__sticker-note {
  position: absolute;
  right: -0.6rem;
  bottom: -1.8rem;
  transform: rotate(5deg);
  font-family: var(--font-hand);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem);
  line-height: 1;
  color: var(--lime);
  text-shadow: 0 2px 12px rgba(10, 6, 24, 0.6);
  white-space: nowrap;
}
@media (max-width: 1180px) {
  .hero__sticker { display: none; }
}
.hero .micro { margin-top: 1rem; }
.micro {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--on-dark-3);
}
.on-light .micro, .section--paper .micro { color: var(--text-3); }

.hero--short {
  min-height: 0;
  padding-top: calc(var(--header-h) + clamp(4rem, 10vw, 8rem));
  padding-bottom: var(--section-y-s);
}

/* join form */
.join { width: 100%; }
.join__row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 1.35rem;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1px solid rgba(23, 16, 41, 0.14);
  box-shadow: 0 18px 40px -20px rgba(143, 101, 240, 0.55);
}
.join__row:focus-within { box-shadow: 0 0 0 3px rgba(200, 241, 54, 0.5), 0 18px 40px -20px rgba(143, 101, 240, 0.55); }
.join__field {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 1.0625rem;
  outline: 0;
}
.join__field::placeholder { color: rgba(23, 16, 41, 0.45); }
.join__btn { flex: none; }
.join__note {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--on-dark-3);
}
.join .join__note.on-light { color: var(--text-3); }
.join .join__status {
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
  color: var(--lime);
  min-height: 1.2em;
}
.join .join__status.on-light { color: var(--violet-deep); }
.join__row.is-invalid { box-shadow: 0 0 0 2px #e0445e; }

/* 10. Client strip --------------------------------------------------------- */
.clients {
  position: relative;
  z-index: 2;
  padding: 0 0 2.25rem;
  background: var(--ink);
  color: var(--on-dark-3);
}
.clients__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem clamp(1.5rem, 4vw, 3rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.clients__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}
.clients__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem clamp(1.25rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-head);
  font-size: clamp(0.95rem, 0.85rem + 0.35vw, 1.1rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: rgba(251, 250, 255, 0.62);
}
.clients__list li { transition: color 0.2s ease; }
.clients__list li:hover { color: var(--on-dark); }
.clients__list li + li::before {
  content: "✦";
  margin-right: clamp(1.25rem, 3vw, 2.5rem);
  color: var(--violet-soft);
  font-size: 0.7rem;
  vertical-align: middle;
}

/* 11. Marquee -------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  padding-block: 0.85rem;
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee__track span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet-deep);
  white-space: nowrap;
}
.marquee__track span::after {
  content: "✦";
  margin-left: 2.5rem;
  color: var(--violet-soft);
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* 12. Split sections ------------------------------------------------------- */
.split__copy .lead { margin-top: 1.25rem; }
.split__copy h2 { margin-bottom: 1.25rem; }
.prose {
  max-width: 40rem;
  font-size: var(--text-l);
  line-height: 1.7;
  color: var(--text-2);
}
.prose p { margin: 0 0 1.15em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--violet-deep); }

.signature {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 2.5rem;
}
.signature__name {
  font-family: var(--font-hand);
  font-size: clamp(2rem, 1.7rem + 1vw, 2.5rem);
  line-height: 1;
  color: var(--ink);
}
.signature__role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--violet-deep);
}

/* 13. Numbered lists & checks ---------------------------------------------- */
.number-list {
  display: grid;
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: num;
}
.num-item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.num-item:first-child { border-top: 1px solid var(--line); }
.num-item__num {
  display: inline-grid;
  place-items: center;
  align-self: start;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--violet-ghost);
  color: var(--violet-deep);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
}
.num-item h3, .num-item h4 {
  margin: 0 0 0.3rem;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.3;
}
.num-item p {
  margin: 0;
  font-size: var(--text-s);
  color: var(--text-2);
  max-width: 34rem;
}
.section--dark .num-item { border-color: var(--line-dark-soft); }
.section--dark .num-item:first-child { border-top-color: var(--line-dark-soft); }
.section--dark .num-item__num { background: rgba(200, 241, 54, 0.12); color: var(--lime); }
.section--dark .num-item h3, .section--dark .num-item h4 { color: var(--on-dark); }
.section--dark .num-item p { color: var(--on-dark-2); }

.checks {
  display: grid;
  gap: 0.55rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: var(--text-s);
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}
.checks li::before {
  content: "";
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 58% no-repeat;
}
.section--dark .checks li { color: var(--on-dark); }
.section--dark .checks li::before {
  background-color: var(--lime);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23150e28' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem clamp(2rem, 4vw, 3.5rem);
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}
.stats li { display: flex; flex-direction: column; gap: 0.15rem; }
.stats b {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.stats span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.section--dark .stats b { color: var(--on-dark); }
.section--dark .stats span { color: var(--on-dark-3); }
.stats--inline { margin-top: 1.5rem; }

/* 14. Work cards ----------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.work-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.work-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-radius: var(--r-l);
  background: var(--white);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 0 1px rgba(121, 70, 227, 0.22), 0 30px 60px -34px rgba(60, 30, 140, 0.55);
}
.work-card__media {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--r-l) - 0.4rem);
  background: var(--paper-3);
}
.work-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.work-card:hover .work-card__media img { transform: scale(1.035); }
.work-card__body { padding: 1.1rem 0.4rem 0.4rem; }
.work-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.work-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.work-card__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.2rem, 1.05rem + 0.55vw, 1.5rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
}
.work-card__desc {
  margin: 0 0 0.9rem;
  font-size: var(--text-s);
  color: var(--text-2);
  max-width: 30rem;
}
.work-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--violet-deep);
}
.work-card__link::after { content: "→"; transition: transform 0.25s var(--ease); }
.work-card:hover .work-card__link::after { transform: translateX(4px); }

.browser {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(23, 16, 41, 0.08), 0 30px 60px -36px rgba(60, 30, 140, 0.55);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 1.7rem;
  padding: 0 0.7rem;
  background: var(--paper-3);
  border-bottom: 1px solid rgba(23, 16, 41, 0.06);
}
.browser__bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}
.browser__bar i:first-child { background: var(--violet-soft); }
.browser__bar i:nth-child(2) { background: var(--lime); }
.browser__bar .browser__url {
  flex: 1;
  height: 0.9rem;
  margin-left: 0.6rem;
  border-radius: var(--r-pill);
  background: rgba(23, 16, 41, 0.06);
}
.browser img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* 15. Portrait card -------------------------------------------------------- */
.portrait-card {
  position: relative;
  padding: 0.85rem;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--violet-ghost), var(--paper) 55%, var(--lime-ghost));
  box-shadow: 0 0 0 1px rgba(23, 16, 41, 0.06), 0 36px 80px -40px rgba(60, 30, 140, 0.6);
}
.portrait-card__media {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--r-xl) - 0.5rem);
  background: radial-gradient(120% 90% at 50% 0%, #3a2a63 0%, #150e28 68%);
  aspect-ratio: 4 / 4.4;
  display: grid;
  place-items: end center;
}
.portrait-card__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.portrait-card__chip {
  position: absolute;
  z-index: 3;
  left: 1.6rem;
  bottom: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--r-pill);
  background: rgba(13, 11, 20, 0.78);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}
.portrait-card__chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}
.portrait-card__note {
  position: absolute;
  z-index: 4;
  right: -1.4rem;
  bottom: -1.5rem;
  margin: 0;
  padding: 0.2rem 0.7rem;
  background: var(--paper);
  transform: rotate(-4deg);
  color: var(--violet-deep);
  font-size: 1.45rem;
  box-shadow: 0 10px 30px -18px rgba(60, 30, 140, 0.5);
}
.portrait-card__badge {
  position: absolute;
  z-index: 5;
  top: -1.6rem;
  left: -1.6rem;
  display: grid;
  place-items: center;
  width: 5.75rem;
  height: 5.75rem;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.3;
  text-transform: uppercase;
  transform: rotate(-8deg);
  box-shadow: 0 14px 30px -18px rgba(60, 30, 140, 0.6);
}
.portrait-card__badge b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* 16. Screen fan ----------------------------------------------------------- */
.fan {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0 2.5rem;
  perspective: 1400px;
}
.fan__item {
  flex: none;
  width: min(40%, 21rem);
  margin-inline: -1.8rem;
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0));
  transition: transform 0.5s var(--ease);
}
.fan__item:nth-child(1) { --r: -7deg; --y: 1.6rem; z-index: 1; }
.fan__item:nth-child(2) { --r: -2deg; z-index: 3; }
.fan__item:nth-child(3) { --r: 3deg; z-index: 2; }
.fan__item:nth-child(4) { --r: 8deg; --y: 1.6rem; z-index: 1; }
.fan__item:hover { transform: rotate(0deg) translateY(-0.5rem) scale(1.03); z-index: 4; }
.fan__item .browser { box-shadow: 0 0 0 1px rgba(23, 16, 41, 0.1), 0 40px 80px -40px rgba(10, 6, 24, 0.8); }
.fan__caption {
  margin: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

/* 17. Dark feature --------------------------------------------------------- */
.feature__copy { max-width: 34rem; }
.feature__copy h2 { margin-bottom: 1.2rem; }
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: var(--gap-xl);
  align-items: center;
}
.feature__media { position: relative; }
.device {
  position: relative;
  padding: 1rem;
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, rgba(143, 101, 240, 0.22), rgba(13, 11, 20, 0) 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
}
.device .browser { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 50px 90px -40px rgba(0, 0, 0, 0.9); }
.device__tag {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  background: rgba(13, 11, 20, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.device__tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--violet-soft); }
.device__tag--1 { left: -1.1rem; bottom: 2.4rem; }
.device__tag--2 { right: -0.8rem; top: 1.6rem; }
.device__tag--lime i { background: var(--lime); }

.quote {
  position: relative;
  margin: 0;
  padding-left: 1.75rem;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--ink);
}
.quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 4px;
  border-radius: 2px;
  background: var(--lime);
}
.section--dark .quote { color: var(--on-dark); }

/* 18. CTA + keyboard ------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 2rem + 5vw, 6rem) 0 var(--section-y);
  background:
    radial-gradient(60rem 30rem at 50% 26%, rgba(143, 101, 240, 0.22), transparent 70%),
    linear-gradient(180deg, #efeafb 0%, var(--paper) 55%);
  text-align: center;
}
.cta__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.cta h2 { max-width: 16em; }
.cta .lead { margin: 1.25rem auto 0; }
.cta .join { max-width: 32rem; margin: 2rem auto 0; }
.cta .join__note.on-light, .cta .join__status { color: var(--text-3); }
.cta .join__status { color: var(--violet-deep); }
.cta__alt {
  margin: 1.5rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-3);
}
.cta__alt a { color: var(--violet-deep); }

.keyboard {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(7rem, 14vw, 12rem);
  margin-bottom: clamp(1rem, 3vw, 2.5rem);
  overflow: hidden;
  mask-image: linear-gradient(180deg, #000 15%, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, #000 15%, transparent 92%);
  perspective: 900px;
}
.keyboard__deck {
  display: grid;
  grid-template-columns: repeat(18, minmax(0, 1fr));
  gap: clamp(0.3rem, 0.6vw, 0.55rem);
  width: min(82rem, 124%);
  margin: -2.5rem auto 0;
  padding-inline: 1rem;
  transform: rotateX(44deg) rotateZ(-3deg) scale(1.06);
  transform-origin: 50% 0;
  transform-style: preserve-3d;
}
.key {
  position: relative;
  aspect-ratio: 1;
  border-radius: clamp(0.4rem, 1vw, 0.8rem);
  background: linear-gradient(180deg, #ffffff, #e6dcfa);
  box-shadow: 0 0.42rem 0 #b9a7e6, 0 0.9rem 1.4rem -0.6rem rgba(60, 30, 140, 0.35);
  transform: translateZ(var(--z, 0));
  opacity: var(--o, 1);
}
.key--accent { background: linear-gradient(180deg, var(--lime-bright), var(--lime)); box-shadow: 0 0.42rem 0 #94b427, 0 0.9rem 1.4rem -0.6rem rgba(60, 30, 140, 0.35); }
.key--violet { background: linear-gradient(180deg, #a482ff, #7946e3); box-shadow: 0 0.42rem 0 #4b2a9c, 0 0.9rem 1.4rem -0.6rem rgba(60, 30, 140, 0.45); }
.key--dark { background: linear-gradient(180deg, #3a2a63, #231a36); box-shadow: 0 0.42rem 0 #150e28, 0 0.9rem 1.4rem -0.6rem rgba(10, 6, 24, 0.5); }

.keyboard--dark { mask-image: linear-gradient(180deg, #000 10%, transparent 90%); }
.keyboard--dark .key { background: linear-gradient(180deg, #4a3574, #2a1b4d); box-shadow: 0 0.42rem 0 #150e28, 0 0.9rem 1.4rem -0.6rem rgba(0, 0, 0, 0.5); }
.keyboard--dark .key--accent { background: linear-gradient(180deg, var(--lime-bright), var(--lime)); box-shadow: 0 0.42rem 0 #94b427; }

/* 19. Footer --------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 2rem + 4vw, 5rem) 0 0;
  background:
    linear-gradient(180deg, rgba(13, 11, 20, 0) 46%, rgba(92, 58, 220, 0.24) 100%),
    radial-gradient(70% 46% at 50% 112%, rgba(92, 58, 220, 0.42), rgba(13, 11, 20, 0) 70%),
    var(--ink);
  color: var(--on-dark-2);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 24rem;
  background: radial-gradient(50% 100% at 50% 100%, rgba(143, 101, 240, 0.16), transparent 70%);
  pointer-events: none;
}
.footer__top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__wordmark {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(3rem, 2rem + 8vw, 7.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: rgba(251, 250, 255, 0.9);
  text-decoration: none;
  transition: color 0.4s ease;
}
.footer__wordmark:hover { color: #fff; }
.footer__wordmark .footer__chip {
  display: inline-block;
  padding: 0.02em 0.16em 0.1em;
  border-radius: 0.16em;
  background: var(--lime);
  color: var(--ink);
  margin: 0 0.03em;
  transform: rotate(-2deg);
}
.footer__tagline {
  margin: 1.1rem 0 0;
  color: var(--lime);
  font-family: var(--font-hand);
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem);
  transform: rotate(-1.5deg);
}
.footer__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.25rem;
  text-align: right;
}
.footer__available {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}
.footer__available i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(200, 241, 54, 0.14);
}

.footer__nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 2.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
}
.footer__nav a {
  font-size: var(--text-s);
  font-weight: 500;
  color: var(--on-dark-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer__nav a:hover { color: var(--lime); }

.footer__bar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--on-dark-3);
}
.footer__bar p { margin: 0; }
.footer__bar a { color: var(--on-dark-3); text-decoration: none; }
.footer__bar a:hover { color: var(--lime); }

/* 20. Page heroes ---------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(4.5rem, 10vw, 8.5rem)) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(60% 46% at 80% 118%, rgba(92, 58, 220, 0.4), rgba(13, 11, 20, 0) 72%),
    radial-gradient(44% 80% at 0% 100%, rgba(121, 70, 227, 0.22), rgba(13, 11, 20, 0) 72%),
    var(--ink);
  color: var(--on-dark-2);
}
.page-hero h1 { color: var(--on-dark); }
.page-hero__lede {
  max-width: 40rem;
  margin: 1.4rem 0 0;
  font-size: var(--text-l);
  color: var(--on-dark-2);
  text-wrap: pretty;
}
.page-hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.page-hero__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.8;
  color: var(--on-dark-3);
  text-align: right;
}

.page-hero--paper {
  background:
    radial-gradient(60rem 24rem at 90% -10%, rgba(143, 101, 240, 0.16), transparent 70%),
    var(--paper);
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
}
.page-hero--paper h1 { color: var(--ink); }
.page-hero--paper .page-hero__lede { color: var(--text-2); }
.page-hero--paper .page-hero__meta { color: var(--text-3); }
.page-hero--paper .eyebrow { color: var(--violet-deep); }

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--violet-pale);
  text-decoration: none;
}
.breadcrumb:hover { color: var(--lime); }
.breadcrumb::before { content: "←"; }
.page-hero--paper .breadcrumb { color: var(--violet-deep); }
.page-hero--paper .breadcrumb:hover { color: var(--violet); }
.page-hero__meta a {
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 241, 54, 0.35);
}
.page-hero__meta a:hover { border-bottom-color: var(--lime); }
.page-hero .btn--ghost {
  color: var(--on-dark);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.page-hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.page-hero .text-link { color: var(--lime); }

/* 21. Article pages -------------------------------------------------------- */
.article-cover {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * clamp(1rem, 2.5vw, 2rem));
}
.article-cover .browser { border-radius: 1rem; }
.article-cover .browser__bar { height: 2rem; }

.article-body { padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: var(--section-y); }
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.article-main { max-width: 44rem; }
.article-main > .prose { max-width: none; }
.article-main .prose h2 {
  font-size: clamp(1.6rem, 1.35rem + 1.1vw, 2.15rem);
  margin: 2.4em 0 0.7em;
  line-height: 1.15;
}
.article-main .prose h3 {
  font-size: 1.3rem;
  margin: 2em 0 0.6em;
  letter-spacing: -0.02em;
}
.article-main .prose ul, .article-main .prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.article-main .prose li { margin-bottom: 0.5em; }
.article-main .prose li::marker { color: var(--violet); }
.article-main .prose blockquote {
  margin: 2em 0;
  padding-left: 1.4rem;
  border-left: 4px solid var(--lime);
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
}
.article-main .prose figure { margin: 2.25em 0; }
.article-main .prose figure img { border-radius: var(--r-m); }
.article-main .prose figcaption {
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--text-3);
}
.article-main .prose pre {
  margin: 1.6em 0;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  border-radius: var(--r-m);
  background: var(--ink);
  color: var(--on-dark-2);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.7;
}
.article-main .prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.article-main .prose code {
  padding: 0.12em 0.35em;
  border-radius: 0.3rem;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--violet-deep);
}
.article-main .prose hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--line); }

.article-aside {
  position: sticky;
  top: 7rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.aside-card {
  padding: 1.35rem;
  border-radius: var(--r-m);
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px rgba(23, 16, 41, 0.05);
}
.aside-card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-deep);
}
.aside-card p { font-size: var(--text-s); margin: 0; color: var(--text-2); }
.aside-card ul { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.aside-card li { font-size: var(--text-s); color: var(--text-2); }
.aside-card li b { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.aside-card a { color: var(--violet-deep); text-decoration: none; }
.aside-card a:hover { text-decoration: underline; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 1.5rem;
  margin: 0 0 2.5rem;
  padding: 1.5rem 0;
  border-block: 1px solid var(--line);
}
.facts > div { display: flex; flex-direction: column; gap: 0.25rem; }
.facts dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.facts dd {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.facts dd a { color: inherit; text-decoration: none; border-bottom: 2px solid var(--lime); }
.facts dd a:hover { color: var(--violet-deep); }

.article-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.article-next a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--violet-deep);
  text-decoration: none;
}
.article-next a:hover { text-decoration: underline; }

.author-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.author-card img {
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper-2);
}
.author-card__name {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.author-card__role {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}
.author-card a { margin-left: auto; }

/* 22. Contact & forms ------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.detail-list { display: grid; gap: 1.35rem; margin: 2rem 0 0; }
.detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
}
.detail:last-child { border-bottom: 0; padding-bottom: 0; }
.detail__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.detail a, .detail p {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.detail a:hover { color: var(--violet-deep); }
.detail__socials { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.detail__socials a { font-size: var(--text-s); font-family: var(--font-body); font-weight: 500; }

.form-card {
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border-radius: var(--r-l);
  background: var(--white);
  box-shadow: var(--shadow-card), 0 40px 80px -50px rgba(60, 30, 140, 0.45);
}
.form-card h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); margin-bottom: 0.5rem; }
.form-card__note { font-size: var(--text-s); color: var(--text-3); margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.field input, .field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.65rem;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--text-s);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(121, 70, 227, 0.16);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(84, 78, 96, 0.5); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.35rem; }
.form-note { margin: 0; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.03em; color: var(--text-3); }
.form-status { margin-top: 1rem; font-size: var(--text-s); color: var(--violet-deep); min-height: 1.2em; }
.form-status:empty { display: none; }

/* 23. 404 ------------------------------------------------------------------ */
.not-found {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 6rem) 0 4rem;
  background:
    radial-gradient(60% 46% at 50% 112%, rgba(92, 58, 220, 0.44), rgba(13, 11, 20, 0) 72%),
    var(--ink);
  color: var(--on-dark-2);
  text-align: center;
}
.not-found__code {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(6rem, 4rem + 16vw, 15rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: var(--on-dark);
}
.not-found .not-found__code { color: var(--on-dark); }
.not-found__code .hl { color: var(--lime); }
.not-found h1 { margin: 1.5rem 0 0; font-size: var(--display-3); color: var(--on-dark); }
.not-found p { max-width: 30rem; margin: 1rem auto 0; color: var(--on-dark-2); }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.not-found .btn--ghost {
  color: var(--on-dark);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.not-found .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* 24. Reveal & motion ------------------------------------------------------ */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.rise { animation: rise 0.8s var(--ease) both; animation-delay: calc(var(--i, 0) * 0.09s + 0.08s); }
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

.js .hero [data-rise] { opacity: 0; } /* restored by .rise animation or no-js fallback */

@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;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero [data-rise] { opacity: 1; }
  .marquee__track { animation: none; }
  .hero__inner, .hero__note { transform: none !important; }
  .hero__sticker { transform: rotate(-6deg) !important; }
}

/* 25. Responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .work-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: minmax(0, 1fr) 15rem; }
}

@media (max-width: 960px) {
  .header-nav { display: none; }
  .header-pill { grid-template-columns: 1fr auto; }
  .header-actions { grid-column: 2; }
  .menu-toggle { display: grid; }
  .header-actions .btn--lime { display: none; }

  .js .header-nav {
    position: absolute;
    z-index: 2;
    grid-column: auto;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem 1.1rem;
    border-radius: var(--r-l);
    background: var(--paper);
    box-shadow: 0 24px 60px -20px rgba(13, 11, 20, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.4s var(--ease), visibility 0s 0.4s;
  }
  .js .site-header.is-open .header-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s ease, transform 0.4s var(--ease);
  }
  .js .header-nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--paper-3);
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
  }
  .js .header-nav a:last-child { border-bottom: 0; }
  .header-nav a::after { display: none; }
  .header-nav a[aria-current="page"] { color: var(--violet-deep); }
  .header-nav__cta { display: none; }
  .js .header-nav a.header-nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding: 0.85rem 1.25rem;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--lime);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--text-s);
    font-weight: 600;
    text-align: center;
  }
  .js .header-nav a.header-nav__cta:hover { background: var(--lime-bright); }

  .hero__note { display: none; }
  .split, .feature-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .split__media { order: -1; }
  .split--media-last .split__media { order: 0; }
  .feature__copy { max-width: none; }
  .device { transform: none; }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .aside-card { flex: 1 1 14rem; }
  .fan__item { width: min(42%, 15rem); margin-inline: -1.4rem; }
}

@media (max-width: 760px) {
  :root { --header-h: 52px; }
  .work-grid, .work-grid--three { grid-template-columns: minmax(0, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .page-hero__row { flex-direction: column; align-items: flex-start; }
  .page-hero__meta { text-align: left; }
  .footer__top { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .footer__aside { align-items: flex-start; text-align: left; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .join__row { flex-direction: column; align-items: stretch; padding: 0.55rem; border-radius: 1.35rem; }
  .join__field { padding: 0.9rem 1rem; text-align: center; }
  .join__btn { width: 100%; }
  .join__note { text-align: center; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .author-card { flex-wrap: wrap; }
  .author-card a { margin-left: 0; }
  .fan { flex-wrap: nowrap; overflow: hidden; }
  .fan__item { width: 42%; margin-inline: -1rem; }
  .article-next { flex-direction: column; align-items: flex-start; }
  .keyboard__deck { width: 150%; }
}

@media (max-width: 520px) {
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 4.5rem); }
  .hero__scroll { display: none; }
  .fact-grid { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .btn-arrow { min-height: 3rem; font-size: var(--text-s); }
  .btn-arrow::before, .btn-arrow .btn-arrow__icon { width: 2.25rem; height: 2.25rem; }
  .portrait-card__badge { width: 4.75rem; height: 4.75rem; top: -1.1rem; left: -1.1rem; }
  .portrait-card__note { right: -0.4rem; bottom: -1.1rem; }
  .device__tag--1 { left: 0.25rem; bottom: 0.9rem; }
  .device__tag--2 { right: 0.25rem; top: 0.75rem; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
}

/* no-JS fallbacks */
html:not(.js) .reveal { opacity: 1; transform: none; }
html:not(.js) .hero [data-rise] { opacity: 1; }
