:root {
  --red: #bf001d;
  --red-hot: #ff2d44;
  --red-deep: #5c0010;
  --ink: #0b0b0c;
  --ink-soft: #2a2a2d;
  --muted: #8c8587;
  --paper: #f5f2ea;
  --band: #ece8de;
  --line: rgba(11, 11, 12, 0.09);
  --display: "League Gothic", "Arial Narrow", Impact, sans-serif;
  --text: "Hanken Grotesk", "SF Pro Display", system-ui, sans-serif;
  --radius: 12px;
  --nav-h: 64px;
  --ink-over-lead: #2c16b8;
  --ink-over-trail: #5646f0;
  --frame: max(10px, calc((100% - 1180px) / 2 - 28px));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.defs { position: absolute; }

html::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.26;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 1.1 -0.28'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

ul { list-style: none; }

body::before, body::after {
  content: "";
  position: absolute;
  top: var(--nav-h);
  bottom: 0;
  width: 1px;
  background: var(--line);
  pointer-events: none;
  z-index: 1;
}
body::before { left: var(--frame); }
body::after { right: var(--frame); }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }

.lead { color: var(--ink); }
.trail { color: var(--muted); }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 40px;
  height: var(--nav-h);
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background: transparent;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.nav.scrolled {
  background: rgba(245, 242, 234, 0.86);
  backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; }
.brand-logo { display: block; height: 42px; width: auto; }

.nav-links { display: flex; gap: 30px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--ink-soft); transition: color 0.2s; }
.nav-links a:hover { color: var(--red); }
.nav-actions { display: flex; gap: 10px; margin-left: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn-small { padding: 8px 15px; font-size: 14px; }
.btn-solid { background: var(--red); color: #fff; }
.btn-solid:hover { background: #d60021; transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(191, 0, 29, 0.8); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: rgba(11, 11, 12, 0.25); transform: translateY(-1px); }

.hero { position: relative; overflow: hidden; margin-top: calc(var(--nav-h) * -1); }
.hero-stage {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 82vh, 780px);
  padding-top: var(--nav-h);
}

.ribbon {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  overflow: hidden;
  clip-path: polygon(46% 0, 100% 0, 100% 100%, 82% 100%);
  pointer-events: none;
}
.ribbon i {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, #bcd6ff 0%, #b79bff 25%, #ff7fd0 45%, #ff5a4f 62%, #ffa31a 82%, #ffd88a 100%);
}
.ribbon-canvas {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero .ribbon-canvas {
  -webkit-mask-image:
    radial-gradient(circle 34px at 66% 100%, transparent 33px, #000 34px),
    radial-gradient(circle 24px at 72.5% 100%, transparent 23px, #000 24px),
    radial-gradient(circle 20px at 61% 100%, transparent 19px, #000 20px);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(circle 34px at 66% 100%, transparent 33px, #000 34px),
    radial-gradient(circle 24px at 72.5% 100%, transparent 23px, #000 24px),
    radial-gradient(circle 20px at 61% 100%, transparent 19px, #000 20px);
  mask-composite: intersect;
}
.is-3d > .ribbon, .is-3d > i { display: none; }

@keyframes flow {
  from { background-position: 0% 30%; }
  to { background-position: 100% 70%; }
}

.hero-copy { position: relative; z-index: 3; padding: 56px 0; }

.ticker {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.ticker b { font-weight: 500; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

h1 {
  font-weight: 300;
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.07;
  letter-spacing: -0.028em;
  max-width: 15em;
}
h1 .lead, h1 .trail { display: inline; }
h1 .lead { font-weight: 400; }

.headline { position: relative; filter: url(#rough); }
.headline-ink {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  clip-path: polygon(0 0, 0 0, 0 0);
}
.headline-ink.over-edge .lead { color: var(--ink-over-lead); }
.headline-ink.over-edge .trail { color: var(--ink-over-trail); }
.headline-ink.over-red .lead, .headline-ink.over-red .trail { color: #fff; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.strip-band { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(245, 242, 234, 0.8); }

.logo-carousel {
  overflow: hidden;
  padding: 26px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logo-track {
  --set-width: 1200px;
  display: flex;
  width: max-content;
  animation: logo-scroll var(--duration, 22s) linear infinite;
}
.logo-track:has(.logo-item:hover) { animation-play-state: paused; }
.logo-set { display: flex; flex-shrink: 0; align-items: center; gap: 72px; padding-right: 72px; }
.logo-item { display: flex; align-items: center; flex-shrink: 0; transition: filter 0.35s, opacity 0.35s; }
.logo-item a { display: flex; }
.logo-track:has(.logo-item:hover) .logo-item:not(:hover) { filter: grayscale(1); opacity: 0.45; }
.logo { display: block; width: auto; }
.logo-rootwork { height: 44px; }
.logo-afterglow { height: 42px; }
.logo-hinge { height: 58px; }
.logo-daylog { height: 58px; border-radius: 8px; }
.logo-molotov { position: relative; display: block; height: 58px; aspect-ratio: 3.09; overflow: hidden; border-radius: 8px; background: #0f1114; }
.logo-molotov video { position: absolute; top: -32.6%; left: -2.1%; width: 112.7%; height: auto; }
@keyframes logo-scroll { to { transform: translateX(calc(var(--set-width) * -1)); } }

.section { padding: 110px 0 20px; }
.section-band { background: var(--band); margin-top: 90px; padding-bottom: 100px; }

.section-title, .cta h2 { filter: url(#rough); }
.section-title {
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.022em;
  max-width: 21em;
  margin-bottom: 56px;
}
.section-title .lead { font-weight: 400; }
.section-title-center { text-align: center; margin-inline: auto; margin-bottom: 48px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; padding: 44px 0; text-align: center; }
.stats::before, .stats::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red) 50%, transparent);
  opacity: 0.55;
}
.stats::before { top: 0; }
.stats::after { bottom: 0; }
.stats dt { font-family: var(--display); font-size: 84px; line-height: 1; font-weight: 400; color: var(--ink); }
.stats div:nth-child(n + 2) dt { color: #b9b2b4; }
.stats dd { margin: 8px auto 0; color: var(--muted); font-size: 14px; max-width: 13em; }

.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.studio-lead .section-title { margin-bottom: 0; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(191, 0, 29, 0.09);
  color: var(--red);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.3s, background 0.3s;
}
.accordion details[open] summary::after { content: "\2212"; background: var(--red); color: #fff; }
.accordion p { padding: 0 48px 24px 0; color: var(--muted); max-width: 32em; }

.section-cta { padding-bottom: 120px; }
.cta { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta h2 { font-weight: 300; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.07; letter-spacing: -0.028em; max-width: 15em; }
.cta h2 .lead { font-weight: 400; }

.footer { background: var(--band); padding: 64px 0 56px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 14px; color: var(--muted); max-width: 22em; }
.footer h4 { font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.footer li { margin-bottom: 9px; }
.footer li a { color: #5d5759; transition: color 0.2s; }
.footer li a:hover { color: var(--red); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  body::before, body::after { display: none; }
  .headline-ink { display: none; }
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .hero-stage .ribbon-canvas { width: 100%; opacity: 0.3; }
  .ribbon { width: 100%; height: 300px; bottom: auto; clip-path: polygon(40% 0, 100% 0, 100% 100%, 70% 100%); opacity: 0.4; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .studio-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .nav { padding-inline: 16px; }
  .hero { padding-top: 48px; }
  .section { padding-top: 80px; }
  .brand-logo { height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .logo-track { animation: none; }
}
