/* Fuzz LLC: site styles */

:root {
  --bg: #121212;
  --bg-raised: #1a1a1a;
  --bg-card: #1e1e1e;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f2f2f2;
  --text-muted: #a8a8a8;
  --text-dim: #6f6f6f;
  --red: #ff0042;
  --red-soft: rgba(255, 0, 66, 0.14);
  --paper: #f4f2ee;
  --ink: #121212;

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: lowercase; color: var(--text-muted);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: 15px; letter-spacing: 0.02em;
  text-decoration: none; text-transform: lowercase;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 200ms var(--ease), background-color 200ms, border-color 200ms, color 200ms;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #ff1f58; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 300ms, border-color 300ms, backdrop-filter 300ms;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(18, 18, 18, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: block; line-height: 0; }
.logo img { width: 92px; height: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--font-display); font-size: 15px; text-decoration: none; text-transform: lowercase;
  color: var(--text-muted); transition: color 200ms;
}
.nav a:hover { color: var(--text); }
.nav .btn { padding: 10px 18px; color: #fff; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--text);
  cursor: pointer; position: relative; margin-right: -10px;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor; content: "";
  transition: transform 300ms var(--ease), background-color 200ms;
}
.menu-toggle span { top: 21px; }
.menu-toggle span::before { left: 0; top: -7px; }
.menu-toggle span::after { left: 0; top: 7px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .menu-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: rgba(18, 18, 18, 0.98);
    opacity: 0; visibility: hidden; transition: opacity 300ms, visibility 300ms;
  }
  .nav a { font-size: 30px; color: var(--text); }
  .nav .btn { font-size: 18px; padding: 14px 26px; margin-top: 10px; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav { height: 100vh; height: 100dvh; }
  .menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden; isolation: isolate;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 60%, rgba(18,18,18,0.85) 0%, rgba(18,18,18,0.2) 55%, rgba(18,18,18,0) 75%),
    linear-gradient(to bottom, rgba(18,18,18,0) 70%, var(--bg) 100%);
}
.hero-inner { padding-top: 120px; padding-bottom: 100px; }
.hero h1 {
  font-size: clamp(44px, 8.4vw, 116px); font-weight: 500; letter-spacing: -0.04em; line-height: 0.95;
  max-width: 11ch; margin: 22px 0 28px;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-muted); max-width: 34em; margin: 0 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 1px; height: 48px; background: linear-gradient(var(--line-strong), transparent); overflow: hidden;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 0; top: -20px; width: 1px; height: 20px; background: var(--red);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 48px; } }

/* ---------- Sections ---------- */

section { position: relative; }
.section { padding: clamp(80px, 12vw, 150px) 0; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.section-head h2 { font-size: clamp(34px, 5vw, 60px); }
.section-head p { color: var(--text-muted); margin: 0; font-size: 18px; }

/* Mission (light band) */
.mission { background: var(--paper); color: var(--ink); }
.mission .eyebrow { color: #5a5a5a; }
.mission-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.mission blockquote {
  margin: 22px 0 0; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -0.03em;
}
.mission blockquote mark { background: none; color: var(--red); }
.mission-body p { margin: 0 0 18px; color: #3d3d3d; }
.principles { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid rgba(0,0,0,0.12); }
.principles li { display: grid; grid-template-columns: 44px 1fr; gap: 6px; padding: 18px 0; border-bottom: 1px solid rgba(0,0,0,0.12); }
.principles .num { font-family: var(--font-display); color: var(--red); font-size: 14px; padding-top: 3px; }
.principles strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 18px; }
.principles span.d { color: #555; font-size: 15px; }

@media (max-width: 860px) { .mission-grid { grid-template-columns: 1fr; } }

/* Products */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.product {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--line);
  padding: clamp(26px, 3.4vw, 44px); display: flex; flex-direction: column; min-height: 520px;
  transition: border-color 300ms, transform 400ms var(--ease);
}
.product:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.product::before {
  content: ""; position: absolute; inset: auto -20% -45% -20%; height: 75%; z-index: 0;
  filter: blur(60px); opacity: 0.4; pointer-events: none;
}
.product.rp::before { background: radial-gradient(closest-side, #e8492d, transparent); }
.product.tandem::before { background: radial-gradient(closest-side, #8b3cc4, #2f63d8 60%, transparent); }
.product > * { position: relative; z-index: 1; }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.product-icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.badge {
  font-family: var(--font-display); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.product h3 { font-size: clamp(32px, 3.6vw, 44px); margin-bottom: 8px; }
.product .kicker { color: var(--text-muted); font-family: var(--font-display); margin: 0 0 18px; }
.product p.desc { color: var(--text-muted); margin: 0 0 26px; max-width: 30em; }
.product ul.features { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.product ul.features li {
  font-size: 13px; color: var(--text); padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line);
}
.platforms { font-size: 13px; color: var(--text-dim); margin-top: 18px; }

@media (max-width: 860px) { .products-grid { grid-template-columns: 1fr; } .product { min-height: 0; } }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.service { padding: 34px 28px 34px 0; border-bottom: 1px solid var(--line); }
.service + .service { padding-left: 28px; border-left: 1px solid var(--line); }
.service .glyph { width: 40px; height: 40px; color: var(--red); margin-bottom: 26px; }
.service h3 { font-size: 22px; margin-bottom: 12px; }
.service p { color: var(--text-muted); font-size: 15px; margin: 0; }

@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 28px 0; border-left: 0; }
}

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.person { display: grid; grid-template-columns: 180px 1fr; gap: 26px; align-items: center; padding: 22px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); }
.person img { width: 180px; height: 180px; border-radius: 10px; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 500ms; }
.person:hover img { filter: none; }
.person h3 { font-size: 26px; margin-bottom: 6px; }
.person .role { color: var(--red); font-family: var(--font-display); font-size: 14px; margin: 0 0 12px; text-transform: lowercase; }
.person p { color: var(--text-muted); font-size: 15px; margin: 0; }

@media (max-width: 980px) { .team-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .person { grid-template-columns: 1fr; }
  .person img { width: 100%; height: auto; aspect-ratio: 1; }
}

/* Contact */
.contact { text-align: center; overflow: hidden; }
.contact h2 { font-size: clamp(44px, 9vw, 120px); letter-spacing: -0.045em; margin: 22px 0 26px; }
.contact p { color: var(--text-muted); max-width: 36em; margin: 0 auto 36px; }
.contact .email {
  display: inline-block; font-family: var(--font-display); font-size: clamp(22px, 3.4vw, 38px);
  text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 4px; transition: color 200ms;
  word-break: break-word;
}
.contact .email:hover { color: var(--red); }
.contact .logo-mark { width: min(420px, 70%); margin: 0 auto clamp(30px, 5vw, 60px); opacity: 0.06; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; font-size: 14px; color: var(--text-dim); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after, .badge::before { animation: none; }
}

/* ---------- Legal pages ---------- */

.legal { padding: 150px 0 100px; }
.legal .wrap { max-width: calc(760px + var(--gutter) * 2); }
.legal h1 { font-size: clamp(40px, 6vw, 64px); margin: 18px 0 10px; }
.legal .updated { color: var(--text-dim); font-size: 14px; margin-bottom: 48px; }
.legal h2 { font-size: 24px; margin: 44px 0 14px; }
.legal p, .legal li { color: var(--text-muted); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--text); text-decoration-color: var(--red); text-underline-offset: 3px; }

.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 16px; }
.notfound h1 { font-size: clamp(80px, 18vw, 200px); color: var(--red); }
.notfound p { color: var(--text-muted); margin: 10px 0 30px; }
