@font-face {
  font-family: "RollRoom Display";
  src: url("./assets/rollroom/Caprasimo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

#labs {
  --rr-red: oklch(0.52 0.19 27);
  --rr-ink: oklch(0.20 0.006 70);
  --rr-paper: oklch(0.975 0.009 80);
  --rr-muted: oklch(0.47 0.018 70);
  scroll-margin-top: 100px;
}

.hero-labs-link { gap: 8px; white-space: nowrap; }
.hero-labs-new, .rollroom-new { flex-shrink: 0; font-size: 0.625rem; font-weight: 700; line-height: 1; letter-spacing: 0.04em; }
.hero-labs-new { transform: translateY(-4px); opacity: 0.82; }
.rollroom-new { padding: 4px 7px; border-radius: 100px; border: 1px solid transparent; background: var(--rr-red); color: var(--rr-paper); }

.rollroom-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 32px;
  margin-top: 56px;
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: 40px;
  background: var(--rr-paper);
  color: var(--rr-ink);
  border: 1px solid oklch(0.89 0.016 80);
}

.rollroom-copy { min-width: 0; padding: 12px 0; }
.rollroom-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--rr-muted);
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.rollroom-brand { display: flex; align-items: center; gap: 16px; }
.rollroom-brand img { width: 56px; height: 56px; border-radius: 14px; }
.rollroom-brand h3 {
  font-family: "RollRoom Display", Georgia, serif;
  font-size: clamp(2rem, 3.3vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.15;
  margin: 0;
}
.rollroom-promise {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.45;
  margin: 32px 0 20px;
  text-wrap: balance;
}
.rollroom-promise span { color: var(--rr-red); }
.rollroom-description { font-size: 1rem; line-height: 1.85; color: var(--rr-muted); margin: 0; }
.rollroom-description > span { display: block; }
.rollroom-description > span > span { display: inline-block; }
.rollroom-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 32px; }
.rollroom-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 16px 24px;
  min-height: 56px;
  border-radius: 100px;
  background: var(--rr-ink);
  color: var(--rr-paper);
  font-size: 1rem;
  font-weight: 700;
  transition: background 200ms ease, transform 200ms ease;
}
.rollroom-cta > span:last-child { font-size: 1.25rem; }
.rollroom-explore { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-block: 10px; color: var(--rr-ink); font-size: 0.875rem; font-weight: 500; }
.rollroom-explore > span:first-child { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: oklch(0.72 0.018 70); }
.rollroom-demo { min-width: 0; width: 100%; max-width: 560px; justify-self: end; }
.rollroom-prints {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  align-items: start;
  gap: 20px;
  padding: 24px 8px 32px 24px;
}
.rollroom-print {
  margin: 0;
  min-width: 0;
  padding: 8px 8px 0;
  background: oklch(0.99 0.006 85);
  box-shadow: 0 16px 24px -12px oklch(0.2 0.01 75 / 0.23), 0 1px 3px oklch(0.2 0.01 75 / 0.08);
}
.rollroom-original { margin-top: 32px; transform: rotate(-7deg); }
.rollroom-result { transform: rotate(5deg); }
.rollroom-print img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.rollroom-exposure { position: relative; }
.rollroom-developed { position: absolute; inset: 0; }
.rollroom-print figcaption { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 44px; padding: 0 2px; font-size: 0.75rem; line-height: 1.4; color: var(--rr-muted); }
.rollroom-result figcaption > span:first-child { display: flex; align-items: center; gap: 6px; color: var(--rr-red); font-weight: 700; }
.rollroom-result i { display: block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.rollroom-canister { width: 88px; height: auto; transform: rotate(-10deg); filter: drop-shadow(0 7px 5px oklch(0.2 0.01 75 / 0.13)); }
.rollroom-demo-footer { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 8px; padding: 0 8px; }
.rollroom-film-caption { display: grid; gap: 6px; }
.rollroom-film-caption strong { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 1.1rem; font-weight: 700; }
.rollroom-film-caption strong span { font-size: 0.8rem; font-weight: 500; color: var(--rr-muted); white-space: nowrap; }
.rollroom-film-caption > span { color: var(--rr-muted); font-size: 0.8rem; }
.rollroom-motion { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 8px; padding: 0; background: transparent; color: var(--rr-muted); cursor: pointer; transition: background 200ms ease; }
.rollroom-motion[hidden], .rollroom-motion .motion-play { display: none; }
.rollroom-motion[data-paused="true"] .motion-play { display: block; }
.rollroom-motion[data-paused="true"] .motion-pause { display: none; }
.rollroom-motion:active { background: oklch(0.89 0.016 80); }
.rollroom-cta:focus-visible, .rollroom-explore:focus-visible, .rollroom-motion:focus-visible { outline: 3px solid var(--rr-red); outline-offset: 5px; }

@media (hover: hover) {
  .rollroom-cta:hover { background: var(--rr-red); transform: translateY(-2px); }
  .rollroom-explore:hover { color: var(--rr-red); }
  .rollroom-explore:hover > span:first-child { text-decoration-color: currentColor; }
  .rollroom-motion:hover { background: oklch(0.93 0.013 80); }
}

@media (max-width: 1080px) {
  .rollroom-feature { gap: 24px; padding: 32px; grid-template-columns: 0.95fr 1.05fr; }
  .rollroom-brand { gap: 12px; }
  .rollroom-brand img { width: 44px; height: 44px; border-radius: 11px; }
  .rollroom-promise { font-size: 1.65rem; }
  .rollroom-prints { gap: 14px; padding-left: 8px; }
}

@media (max-width: 760px) {
  .hero-labs-link { padding-inline: 22px; letter-spacing: 0; }
  #labs { scroll-margin-top: 70px; }
  .rollroom-feature { grid-template-columns: 1fr; padding: 28px 24px 24px; margin-top: 32px; border-radius: 28px; gap: 20px; }
  .rollroom-copy { padding: 0; }
  .rollroom-eyebrow { margin-bottom: 20px; }
  .rollroom-brand h3 { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .rollroom-promise { margin-top: 24px; font-size: clamp(1.5rem, 4.7vw, 2rem); }
  .rollroom-description { font-size: 1rem; }
  .rollroom-description > span { text-wrap: balance; }
  .rollroom-actions { margin-top: 24px; }
  .rollroom-cta { min-height: 52px; padding: 14px 22px; }
  .rollroom-demo { justify-self: center; }
  .rollroom-prints { max-width: 440px; margin: 0 auto; padding-top: 24px; }
  .rollroom-print { padding: 5px 5px 0; }
  .rollroom-print figcaption { font-size: 0.75rem; padding-inline: 1px; }
  .rollroom-canister { width: 72px; }
  .rollroom-demo-footer { grid-template-columns: 72px minmax(0, 1fr); }
  .rollroom-film-caption { gap: 4px; }
  .rollroom-film-caption strong { font-size: 0.95rem; }
  .rollroom-film-caption > span { font-size: 0.8rem; text-wrap: balance; }
}

@media (prefers-reduced-motion: reduce) {
  .rollroom-cta, .rollroom-motion { transition: none; }
}

/* Future products continue the existing paper surface. */
.labs-future {
  margin-top: 56px;
  padding: 40px clamp(28px, 3.4vw, 48px) 8px;
  border-top: 1px solid var(--line);
  color: var(--rr-ink);
  scroll-margin-top: 140px;
}
.future-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.future-heading h3 { font-size: 1.5rem; font-weight: 500; line-height: 1.5; margin: 0; }
.future-note { display: flex; align-items: center; gap: 8px; color: var(--rr-muted); font-size: 0.8rem; line-height: 1.6; margin: 0; }
.future-note > span:first-child { flex: 0 0 6px; height: 6px; border-radius: 50%; background: oklch(0.46 0.10 148); }
.future-pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; margin-top: 40px; }
.future-pillar { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.future-pillar-heading { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.future-pillar-title { min-width: 0; }
.future-sketch { position: relative; flex: 0 0 100px; height: 84px; }
.future-sketch span { position: absolute; border: 1px solid oklch(0.78 0.03 90); box-shadow: 0 5px 8px -5px oklch(0.25 0.02 80 / 0.25); }
.dialogue-note { top: 7px; left: 2px; width: 68px; height: 46px; padding: 13px 11px; border-radius: 9px 9px 9px 2px; background: var(--rr-paper); transform: rotate(-9deg); }
.dialogue-note i { display: block; height: 2px; background: oklch(0.54 0.025 80); border-radius: 2px; }
.dialogue-note i + i { margin-top: 7px; width: 65%; }
.dialogue-reply { top: 35px; left: 34px; width: 62px; height: 38px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 9px 9px 2px 9px; background: oklch(0.86 0.07 145); transform: rotate(6deg); }
.dialogue-reply i { width: 5px; height: 5px; border-radius: 50%; background: oklch(0.42 0.06 145); }
.skill-sheet { top: 10px; left: 24px; width: 48px; height: 62px; border-radius: 6px; }
.sheet-back { background: oklch(0.87 0.05 245); transform: translateX(-14px) rotate(-18deg); }
.sheet-middle { background: oklch(0.89 0.065 50); transform: translateX(15px) rotate(17deg); }
.sheet-front { display: grid; grid-template-columns: repeat(2, 10px); align-content: center; justify-content: center; gap: 5px; background: var(--rr-paper); transform: rotate(-3deg); }
.sheet-front i { width: 10px; height: 10px; background: oklch(0.57 0.10 145); border-radius: 2px; }
.sheet-front i:nth-child(2) { border-radius: 50%; background: oklch(0.63 0.13 35); }
.sheet-front i:nth-child(3) { border-radius: 50% 50% 2px 2px; background: oklch(0.6 0.10 245); }
.sheet-front i:nth-child(4) { background: oklch(0.77 0.10 90); transform: rotate(45deg) scale(0.75); }
.future-pillar h4 { font-size: clamp(1.5rem, 2.3vw, 2rem); letter-spacing: -0.025em; line-height: 1.4; margin: 0; }
.future-pillar-promise { font-size: 1.15rem; font-weight: 500; line-height: 1.6; margin: 16px 0 12px; text-wrap: pretty; }
.future-pillar-description { color: var(--rr-muted); font-size: 1rem; line-height: 1.85; max-width: 42ch; margin: 0; text-wrap: pretty; }
.future-status { display: inline-block; margin: 8px 0 0; padding: 3px 8px; border: 1px solid oklch(0.82 0.018 80); border-radius: 5px; background: oklch(0.945 0.014 80); color: var(--rr-muted); font-size: 0.75rem; font-weight: 500; line-height: 1.5; }

@media (max-width: 1080px) {
  .labs-future { padding-left: 32px; padding-right: 32px; }
  .future-pillars { gap: 40px; }
}
@media (max-width: 760px) {
  .labs-future { margin-top: 40px; padding: 32px 0 0; scroll-margin-top: 90px; }
  .future-heading h3 { font-size: 1.35rem; }
  .future-pillars { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
  .future-pillar + .future-pillar { padding-top: 32px; border-top: 1px solid var(--line); }
  .future-pillar h4 { font-size: 1.75rem; }
  .future-pillar-heading { gap: 8px; }
  .future-sketch { flex-basis: 84px; }
  .dialogue-note { left: 0; width: 58px; height: 42px; padding: 11px 9px; }
  .dialogue-reply { left: 28px; top: 32px; width: 52px; }
  .skill-sheet { left: 22px; width: 40px; height: 56px; }
  .future-pillar-promise { margin-top: 12px; font-size: 1.05rem; }
}

@media (max-width: 360px) {
  .rollroom-cta { gap: 16px; padding-inline: 16px; }
  .rollroom-result figcaption { gap: 0; }
  .rollroom-result i { display: none; }
  .future-pillar h4 { font-size: 1.5rem; }
  .future-sketch { flex-basis: 72px; transform: scale(0.85); transform-origin: left center; }
}
