/* Homepage voice: same ink, yellow, and heavy stamp as the footer,
   without repeating the wordmark scene. Scoped to the home namespace
   so the rest of the site keeps its type. */

body[data-namespace="/"] {
  --font-body: "Nunito", "Segoe UI", sans-serif;
  --font-heading: "Nunito", "Segoe UI", sans-serif;
  --ink: #f4f1ea;
  --paper: #0d0d0d;
  font-family: var(--font-body);
}

body[data-namespace="/"] h1,
body[data-namespace="/"] h2,
body[data-namespace="/"] h3 {
  font-family: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-transform: none;
  line-height: 0.95;
}

body[data-namespace="/"] .nav-link,
body[data-namespace="/"] .header-cta,
body[data-namespace="/"] .mobile-nav-link {
  font-family: "Nunito", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
}

body[data-namespace="/"] .header-cta {
  border-radius: 999px;
  border: 2px solid var(--color-accent-ink);
  box-shadow: 0 3px 0 var(--color-accent-ink);
}

body[data-namespace="/"] .header-cta:hover {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 0 5px 0 var(--color-accent-ink);
}

body[data-namespace="/"] .nav-link::after {
  height: 3px;
  border-radius: 999px;
}

/* ---- bench hero ---------------------------------------------------------- */

.bench {
  position: relative;
  min-height: 100svh;
  background:
    radial-gradient(circle at 80% 40%, rgba(255, 229, 0, 0.06), transparent 42%),
    var(--paper, #0d0d0d);
  color: var(--ink, #f4f1ea);
  overflow: hidden;
}

.bench-sheet {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  min-height: 100svh;
  padding: calc(var(--header-height) + 28px) clamp(20px, 5vw, 72px) 48px;
  max-width: 1440px;
  margin: 0 auto;
}

.bench-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink, #f4f1ea);
}

.bench-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 2px solid var(--ink, #f4f1ea);
  transform: rotate(-8deg);
  background: var(--paper, #0d0d0d);
}

.bench-badge svg {
  fill: var(--paper, #0d0d0d);
  stroke: var(--ink, #f4f1ea);
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.bench-badge circle {
  fill: var(--color-accent);
  stroke: none;
}

.bench-headline {
  margin: 0 0 18px;
  max-width: 9ch;
  font-size: clamp(3.4rem, 6.4vw, 6.4rem);
  color: var(--ink, #f4f1ea);
}

.bench-headline span {
  display: block;
  transform-origin: 0 80%;
  animation: bench-stamp 0.7s cubic-bezier(0.2, 0.8, 0.25, 1.15) var(--d) both;
}

.bench-sub {
  max-width: 36ch;
  margin: 0 0 26px;
  font-size: 1.125rem;
  line-height: 1.5;
  color: color-mix(in oklab, var(--ink, #f4f1ea) 72%, #0d0d0d);
}

.bench-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bench-btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid var(--ink, #f4f1ea);
  font-family: "Nunito", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--ink, #f4f1ea);
  transition: transform 0.18s cubic-bezier(0.3, 1.4, 0.5, 1), box-shadow 0.18s;
}

.bench-btn.is-solid {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border-color: var(--color-accent-ink);
  box-shadow: 0 3px 0 var(--color-accent-ink);
}

.bench-btn.is-outline {
  background: transparent;
  color: var(--ink, #f4f1ea);
}

.bench-btn:hover {
  transform: translateY(-2px) rotate(-1.1deg);
  box-shadow: 0 5px 0 var(--ink, #f4f1ea);
  color: var(--ink, #f4f1ea);
}

.bench-btn.is-solid:hover {
  color: var(--color-accent-ink);
  box-shadow: 0 5px 0 var(--color-accent-ink);
}

.bench-stage {
  position: relative;
  cursor: grab;
}

.bench-stage:active {
  cursor: grabbing;
}

.bench-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.bench-svg .ink {
  fill: #141414;
  stroke: #f4f1ea;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.bench-svg .line {
  fill: none;
  stroke: #f4f1ea;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bench-svg .a {
  fill: var(--color-accent);
  stroke: #141414;
  stroke-width: 2.4;
}

.bench-svg .bench-hit {
  fill: transparent;
  stroke: none;
  cursor: pointer;
}

.bench-svg text {
  fill: #f4f1ea;
  font-family: "Nunito", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 18px;
}

.bench-ground .bench-draw,
.bench-tuft {
  fill: none;
  stroke: #f4f1ea;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bench-ground .bench-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: bench-draw 1.3s cubic-bezier(0.6, 0, 0.3, 1) 0.15s forwards;
}

.bench-tuft {
  opacity: 0;
  animation: bench-fade 0.6s ease 0.9s forwards;
}

.bench-part {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: bench-pop 0.7s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}

#bench-wheel { animation-delay: 0.35s; }

#bench-wheel:focus {
  outline: none;
}

#bench-wheel:focus-visible .bench-rotor > circle.ink {
  stroke: var(--color-accent);
}
#bench-axle { animation-delay: 0.5s; }
#bench-stem { animation-delay: 0.68s; }

.bench-rotor {
  transform-box: fill-box;
  transform-origin: center;
}

.bench-note {
  opacity: 0;
  animation: bench-fade 0.5s ease 1s forwards;
}

.bench-bubble {
  position: absolute;
  left: 18%;
  top: 18%;
  transform: translate(-20%, -100%) rotate(-2deg);
  background: #141414;
  color: #f4f1ea;
  border: 2px solid #f4f1ea;
  border-radius: 16px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 3px 3px 0 var(--color-accent);
  pointer-events: none;
}

.bench-bubble[hidden] {
  display: none;
}

.bench-float {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bench-floater {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 36px;
  height: 36px;
  animation: bench-drift 7s ease-in-out var(--d) infinite;
}

.bench-floater svg {
  width: 100%;
  height: 100%;
  fill: #141414;
  stroke: #f4f1ea;
  stroke-width: 1.8;
  stroke-linejoin: round;
  filter: drop-shadow(2px 2px 0 rgba(255, 229, 0, 0.45));
}

.bench-floater polygon,
.bench-floater path {
  fill: var(--color-accent);
}

@keyframes bench-stamp {
  0% { opacity: 0; transform: translateY(-18%) scale(1.18) rotate(var(--r)); }
  60% { opacity: 1; transform: translateY(2%) scale(0.97) rotate(0deg); }
  100% { opacity: 1; transform: rotate(var(--r)); }
}

@keyframes bench-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes bench-fade {
  to { opacity: 1; }
}

@keyframes bench-pop {
  0% { opacity: 0; transform: translateY(16%) scale(0.86); }
  100% { opacity: 1; transform: none; }
}

@keyframes bench-drift {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-14px) rotate(8deg); }
}

/* ---- featured work: a small tacked frame, not a cinema screen ----------- */

body[data-namespace="/"] .feature-section {
  background: #141414;
  border-top: none;
  padding: 28px clamp(20px, 5vw, 72px) 12px;
}

body[data-namespace="/"] .feature-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  min-height: 0;
  color: var(--ink, #f4f1ea);
  text-decoration: none;
}

body[data-namespace="/"] .feature-copy {
  padding: 0;
  gap: 14px;
}

body[data-namespace="/"] .feature-kicker {
  font-family: "Nunito", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

body[data-namespace="/"] .feature-copy h2 {
  max-width: 12ch;
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
}

body[data-namespace="/"] .feature-copy p {
  max-width: 36ch;
  font-family: "Nunito", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  color: color-mix(in oklab, #f4f1ea 72%, #0d0d0d);
}

body[data-namespace="/"] .feature-link {
  align-self: flex-start;
  margin-top: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid #f4f1ea;
  box-shadow: 0 3px 0 #f4f1ea;
  font-family: "Nunito", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
  font-size: 14px;
  color: #f4f1ea;
}

body[data-namespace="/"] .feature-ticket:hover .feature-link {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #f4f1ea;
}

body[data-namespace="/"] .feature-frame {
  position: relative;
  margin: 8px 0 0;
  justify-self: end;
  width: 100%;
}

body[data-namespace="/"] .feature-tack {
  position: absolute;
  z-index: 2;
  top: -7px;
  left: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid #141414;
  box-shadow: 0 2px 0 #f4f1ea;
}

body[data-namespace="/"] .feature-screen {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 2px solid #f4f1ea;
  border-radius: 16px;
  overflow: hidden;
  background: #0d0d0d;
  box-shadow: 6px 6px 0 var(--color-accent);
  transform: rotate(1.6deg);
  transition: transform 0.2s cubic-bezier(0.3, 1.4, 0.5, 1), box-shadow 0.2s;
}

body[data-namespace="/"] .feature-ticket:hover .feature-screen {
  transform: rotate(-0.6deg) translateY(-3px);
  box-shadow: 8px 9px 0 var(--color-accent);
}

body[data-namespace="/"] .feature-screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}

body[data-namespace="/"] .feature-frame figcaption {
  margin: 10px 4px 0 0;
  text-align: right;
  font-family: "Nunito", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: color-mix(in oklab, #f4f1ea 70%, #0d0d0d);
}

/* ---- capabilities as sketch cards --------------------------------------- */

body[data-namespace="/"] .capabilities-section {
  background: #141414;
  border-top: none;
}

body[data-namespace="/"] .section-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

body[data-namespace="/"] .section-subtitle {
  font-family: "Nunito", "Segoe UI", sans-serif;
  font-size: 1.05rem;
}

body[data-namespace="/"] .capability-row {
  border-top: none;
  gap: 18px;
}

body[data-namespace="/"] .capability-item,
body[data-namespace="/"] .capability-item + .capability-item {
  border: 2px solid #f4f1ea;
  border-radius: 22px;
  padding: 28px 24px 24px;
  background: #0d0d0d;
  box-shadow: 5px 5px 0 var(--color-accent);
  transform: rotate(var(--tilt, -0.6deg));
  transition: transform 0.2s cubic-bezier(0.3, 1.4, 0.5, 1);
}

body[data-namespace="/"] .capability-item:nth-child(2) { --tilt: 0.7deg; }
body[data-namespace="/"] .capability-item:nth-child(3) { --tilt: -0.3deg; }

body[data-namespace="/"] .capability-item:hover {
  transform: translateY(-4px) rotate(0deg);
}

body[data-namespace="/"] .capability-index {
  font-family: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 2px solid #f4f1ea;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--color-accent);
}

body[data-namespace="/"] .capability-item h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  margin-top: 16px;
}

body[data-namespace="/"] .capability-item p {
  font-family: "Nunito", "Segoe UI", sans-serif;
}

body[data-namespace="/"] .close-section {
  background: #0d0d0d;
  border-top: 1.5px dashed rgba(244, 241, 234, 0.2);
}

body[data-namespace="/"] .close-sentence {
  font-family: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.035em;
  max-width: 14em;
}

body[data-namespace="/"] .close-link {
  font-family: "Nunito", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
  font-size: 1rem;
  box-shadow: inset 0 -3px 0 var(--color-accent);
}

body[data-namespace="/"] .btn {
  font-family: "Nunito", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
  border-radius: 999px;
  border: 2px solid var(--color-accent-ink);
  box-shadow: 0 3px 0 var(--color-accent-ink);
}

body[data-namespace="/"] .btn:hover {
  transform: translateY(-2px) rotate(-1deg);
}

@media (max-width: 860px) {
  .bench-sheet {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: calc(var(--header-height) + 18px);
  }

  .bench-headline {
    max-width: none;
    font-size: clamp(2.8rem, 12vw, 4.2rem);
  }

  body[data-namespace="/"] .feature-ticket {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  body[data-namespace="/"] .feature-frame {
    justify-self: start;
    width: min(260px, 78%);
  }

  body[data-namespace="/"] .capability-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bench-headline span,
  .bench-part,
  .bench-floater,
  .bench-ground .bench-draw,
  .bench-tuft,
  .bench-note {
    animation: none;
    opacity: 1;
    stroke-dashoffset: 0;
  }
}
