:root {
  --r61-ink: #020b14;
  --r61-cyan: #36dcf5;
  --r61-gold: #f5b92d;
  --r61-white: #f7fbfd;
  --r61-copy: #c9d8df;
}

body.home {
  grid-template-rows: 58px auto auto;
  background: var(--r61-ink);
}

body.home main {
  display: block;
  min-height: 0;
  padding: 6px 12px 0;
}

body.home .stage { margin: 0 auto; }

.sc-r61-world {
  width: min(100%, 1460px);
  margin: 0 auto;
  overflow: hidden;
  border-inline: 1px solid rgba(59, 207, 237, .18);
  color: var(--r61-white);
  background: var(--r61-ink);
}

.sc-r61-scene,
.sc-r61-machine {
  position: relative;
  isolation: isolate;
  min-height: clamp(620px, 52vw, 760px);
  overflow: hidden;
  border-top: 1px solid rgba(60, 214, 242, .22);
  background: #03111e;
}

.sc-r61-art {
  position: absolute;
  z-index: -4;
  inset: -2%;
  width: 104%;
  height: 104%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.92) saturate(1.08) contrast(1.04);
  transform: scale(1.025);
  animation: sc-r61-drift 18s ease-in-out infinite alternate;
}

.sc-r61-scene::before,
.sc-r61-machine::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  pointer-events: none;
}

.sc-r61-scene::after,
.sc-r61-machine::after {
  content: "";
  position: absolute;
  z-index: 8;
  top: 0;
  bottom: 0;
  width: 22%;
  pointer-events: none;
  opacity: .32;
  background: linear-gradient(90deg, transparent, rgba(72, 221, 246, .18), transparent);
  transform: translateX(-130%);
  animation: sc-r61-scan 9s linear infinite;
}

.sc-r61-field::before,
.sc-r61-roles::before,
.sc-r61-close::before {
  background:
    linear-gradient(90deg, rgba(2, 11, 20, .97) 0%, rgba(3, 17, 29, .86) 35%, rgba(3, 17, 29, .16) 68%, rgba(2, 11, 20, .30) 100%),
    linear-gradient(0deg, rgba(2, 11, 20, .76), transparent 43%);
}

.sc-r61-handover::before {
  background:
    linear-gradient(270deg, rgba(2, 11, 20, .96) 0%, rgba(3, 17, 29, .83) 39%, rgba(3, 17, 29, .12) 68%, rgba(2, 11, 20, .28) 100%),
    linear-gradient(0deg, rgba(2, 11, 20, .72), transparent 46%);
}

.sc-r61-copy {
  position: relative;
  z-index: 3;
  width: min(52%, 720px);
  padding: clamp(82px, 9vw, 132px) 0 148px clamp(30px, 6vw, 92px);
  text-shadow: 0 5px 30px rgba(0, 0, 0, .92);
}

.sc-r61-handover .sc-r61-copy {
  margin-left: auto;
  padding-right: clamp(30px, 6vw, 92px);
  padding-left: 0;
}

.sc-r61-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--r61-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.sc-r61-copy h2,
.sc-r61-machine h2 {
  margin: 0;
  max-width: 840px;
  font-size: clamp(38px, 4.6vw, 70px);
  line-height: .98;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.sc-r61-copy p,
.sc-r61-machine header p {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--r61-copy);
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.62;
}

.sc-r61-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.sc-r61-actions a {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(65, 219, 244, .48);
  border-radius: 7px;
  color: var(--r61-cyan);
  background: rgba(2, 17, 29, .58);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .055em;
  backdrop-filter: blur(9px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.sc-r61-actions a:first-child {
  border-color: var(--r61-gold);
  color: #07131d;
  background: linear-gradient(135deg, #ffd66e, var(--r61-gold));
  box-shadow: 0 14px 34px rgba(245, 185, 45, .22);
}

.sc-r61-actions a:hover,
.sc-r61-actions a:focus-visible {
  transform: translateY(-2px);
  border-color: #fff;
  box-shadow: 0 16px 40px rgba(54, 220, 245, .18);
}

.sc-r61-intake {
  position: absolute;
  z-index: 4;
  right: clamp(28px, 5vw, 76px);
  bottom: 44px;
  left: clamp(28px, 5vw, 76px);
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 112px)) minmax(80px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-block: 1px solid rgba(78, 221, 243, .30);
  background: linear-gradient(90deg, rgba(2, 14, 25, .88), rgba(5, 31, 47, .54), rgba(2, 14, 25, .80));
  backdrop-filter: blur(10px);
}

.sc-r61-intake span {
  color: #eaf7fa;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.sc-r61-intake i {
  position: relative;
  display: block;
  height: 2px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--r61-cyan), var(--r61-gold));
  box-shadow: 0 0 18px rgba(54, 220, 245, .66);
}

.sc-r61-intake i::after {
  content: "";
  position: absolute;
  inset: -4px auto -4px 0;
  width: 70px;
  background: #fff;
  filter: blur(5px);
  animation: sc-r61-line 2.8s linear infinite;
}

.sc-r61-intake strong { color: var(--r61-gold); font-size: 12px; }

.sc-r61-machine { min-height: clamp(720px, 62vw, 900px); }
.sc-r61-machine .sc-r61-art { filter: brightness(.72) saturate(1.06) contrast(1.06); }
.sc-r61-machine::before {
  background:
    linear-gradient(180deg, rgba(2, 10, 18, .96) 0%, rgba(2, 11, 20, .70) 24%, rgba(2, 11, 20, .04) 52%, rgba(2, 11, 20, .92) 100%),
    radial-gradient(circle at 50% 50%, transparent 0 30%, rgba(2, 11, 20, .36) 78%);
}

.sc-r61-machine header {
  position: relative;
  z-index: 3;
  width: min(100% - 56px, 920px);
  margin: auto;
  padding-top: clamp(54px, 6vw, 90px);
  text-align: center;
  text-shadow: 0 5px 28px #000;
}

.sc-r61-machine header p { margin-inline: auto; }

.sc-r61-machine ol,
.sc-r61-roleline,
.sc-r61-proofline {
  position: absolute;
  z-index: 5;
  right: clamp(26px, 5vw, 76px);
  bottom: 40px;
  left: clamp(26px, 5vw, 76px);
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sc-r61-machine ol { grid-template-columns: repeat(5, 1fr); }

.sc-r61-machine li,
.sc-r61-roleline li,
.sc-r61-proofline li {
  position: relative;
  min-width: 0;
  padding: 17px 15px 14px;
  border-top: 1px solid rgba(64, 219, 245, .52);
  background: rgba(2, 15, 26, .72);
  backdrop-filter: blur(8px);
}

.sc-r61-machine li:not(:last-child)::after,
.sc-r61-roleline li:not(:last-child)::after,
.sc-r61-proofline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--r61-gold);
  box-shadow: 0 0 18px var(--r61-gold);
}

.sc-r61-machine li span,
.sc-r61-roleline li span,
.sc-r61-proofline li span {
  display: block;
  color: var(--r61-gold);
  font-size: 10px;
  font-weight: 900;
}

.sc-r61-machine li b,
.sc-r61-roleline li b,
.sc-r61-proofline li b {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: clamp(10px, .9vw, 13px);
  letter-spacing: .04em;
}

.sc-r61-machine li small {
  display: block;
  max-width: 190px;
  margin-top: 5px;
  color: rgba(239, 250, 253, .88);
  font-size: clamp(9px, .72vw, 11px);
  line-height: 1.3;
}

.sc-r61-energy {
  position: absolute;
  z-index: 2;
  left: 8%;
  top: 51%;
  width: 84%;
  height: 3px;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, var(--r61-cyan) 20%, var(--r61-gold) 52%, var(--r61-cyan) 82%, transparent);
  box-shadow: 0 0 28px rgba(54, 220, 245, .8);
}

.sc-r61-energy::after {
  content: "";
  position: absolute;
  inset: -8px auto -8px 0;
  width: 12%;
  background: #fff;
  filter: blur(7px);
  animation: sc-r61-line 3.4s linear infinite;
}

.sc-r61-roleline,
.sc-r61-proofline { grid-template-columns: repeat(4, 1fr); }
.sc-r61-roleline li,
.sc-r61-proofline li { background: linear-gradient(180deg, rgba(2, 15, 26, .42), rgba(2, 15, 26, .88)); }

.sc-r61-proofline i {
  display: block;
  width: 13px;
  height: 13px;
  margin-bottom: 9px;
  border: 2px solid var(--r61-cyan);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(54, 220, 245, .55);
}

.sc-r61-release {
  position: absolute;
  z-index: 4;
  right: 6%;
  bottom: 60px;
  display: grid;
  grid-template-columns: auto 100px auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(245, 185, 45, .55);
  border-radius: 8px;
  background: rgba(2, 15, 26, .76);
  backdrop-filter: blur(9px);
}

.sc-r61-release span,
.sc-r61-release strong { font-size: 10px; font-weight: 900; letter-spacing: .07em; }
.sc-r61-release span { color: var(--r61-cyan); }
.sc-r61-release strong { color: var(--r61-gold); }
.sc-r61-release i { height: 2px; background: linear-gradient(90deg, var(--r61-cyan), var(--r61-gold)); box-shadow: 0 0 14px var(--r61-cyan); }

.sc-world-motion [data-world-scene] .sc-r61-copy,
.sc-world-motion [data-world-scene] > header,
.sc-world-motion [data-world-scene] > ol {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .85s ease, transform .85s cubic-bezier(.2, .8, .2, 1);
}

.sc-world-motion [data-world-scene].is-visible .sc-r61-copy,
.sc-world-motion [data-world-scene].is-visible > header,
.sc-world-motion [data-world-scene].is-visible > ol {
  opacity: 1;
  transform: translateY(0);
}

@keyframes sc-r61-drift {
  from { transform: scale(1.025) translate3d(-.35%, 0, 0); }
  to { transform: scale(1.055) translate3d(.35%, -.35%, 0); }
}

@keyframes sc-r61-scan {
  0%, 16% { left: -26%; }
  72%, 100% { left: 126%; }
}

@keyframes sc-r61-line {
  from { transform: translateX(-120%); }
  to { transform: translateX(1100%); }
}

body.home .site-footer {
  padding: 12px 0;
  border-top: 1px solid rgba(60, 214, 242, .22);
  background: #020a12;
}

@media (max-width: 900px) {
  .sc-r61-scene,
  .sc-r61-machine { min-height: 720px; }
  .sc-r61-copy { width: min(72%, 650px); }
  .sc-r61-intake { grid-template-columns: repeat(4, 1fr); }
  .sc-r61-intake i { grid-column: 1 / 4; }
  .sc-r61-machine ol { grid-template-columns: repeat(5, 1fr); }
  .sc-r61-release { right: auto; left: 6%; }
}

@media (max-width: 760px) {
  body.home { grid-template-rows: 54px auto auto; }
  body.home main { padding: 0; }
  .sc-r61-world { width: 100%; border-inline: 0; }
  .sc-r61-scene,
  .sc-r61-machine { min-height: 760px; }
  .sc-r61-art { inset: 0; width: 100%; height: 100%; object-position: 68% center; }
  .sc-r61-field::before,
  .sc-r61-roles::before,
  .sc-r61-close::before,
  .sc-r61-handover::before {
    background: linear-gradient(180deg, rgba(2, 11, 20, .80), rgba(2, 11, 20, .28) 44%, rgba(2, 11, 20, .94) 76%);
  }
  .sc-r61-copy,
  .sc-r61-handover .sc-r61-copy {
    width: 100%;
    margin: 0;
    padding: 48px 22px 250px;
  }
  .sc-r61-copy h2,
  .sc-r61-machine h2 { font-size: clamp(34px, 10vw, 48px); }
  .sc-r61-copy p,
  .sc-r61-machine header p { font-size: 15px; }
  .sc-r61-actions { gap: 8px; }
  .sc-r61-actions a { width: 100%; }
  .sc-r61-intake { right: 18px; bottom: 22px; left: 18px; grid-template-columns: repeat(2, 1fr); }
  .sc-r61-intake i { grid-column: 1 / 2; }
  .sc-r61-machine { min-height: 900px; }
  .sc-r61-machine .sc-r61-art { object-position: 50% center; filter: brightness(.58) saturate(1.05); }
  .sc-r61-machine header { width: auto; margin: 0 22px; padding-top: 48px; text-align: left; }
  .sc-r61-machine ol,
  .sc-r61-roleline,
  .sc-r61-proofline {
    right: 18px;
    bottom: 22px;
    left: 18px;
    grid-template-columns: 1fr;
  }
  .sc-r61-machine li,
  .sc-r61-roleline li,
  .sc-r61-proofline li { min-height: 54px; padding: 9px 12px; }
  .sc-r61-machine li span,
  .sc-r61-roleline li span,
  .sc-r61-proofline li span { display: inline; margin-right: 8px; }
  .sc-r61-machine li b,
  .sc-r61-roleline li b,
  .sc-r61-proofline li b { display: inline; }
  .sc-r61-roleline,
  .sc-r61-proofline { bottom: 22px; }
  .sc-r61-proofline i { display: inline-block; width: 9px; height: 9px; margin: 0 8px 0 0; }
  .sc-r61-release { right: 18px; bottom: 24px; left: 18px; grid-template-columns: 1fr; }
  .sc-r61-release i { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-r61-art,
  .sc-r61-scene::after,
  .sc-r61-machine::after,
  .sc-r61-intake i::after,
  .sc-r61-energy::after { animation: none !important; }
  .sc-world-motion [data-world-scene] .sc-r61-copy,
  .sc-world-motion [data-world-scene] > header,
  .sc-world-motion [data-world-scene] > ol { opacity: 1; transform: none; transition: none; }
}

/* R64: toon de volledige keten als één scène. Geen crop, kaartenrij of dashboardstrook. */
.sc-r61-machine {
  display: flex;
  min-height: 0;
  flex-direction: column;
  background: #020b14;
}

.sc-r61-machine .sc-r61-art {
  position: relative;
  z-index: 0;
  order: 2;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(1.02) saturate(1.10) contrast(1.02);
  transform: none;
  animation: sc-r61-machine-glow 7s ease-in-out infinite alternate;
}

.sc-r61-machine::before {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(2, 11, 20, .10) 0 38%, transparent 60%, rgba(2, 11, 20, .64) 100%),
    linear-gradient(90deg, rgba(2, 11, 20, .16), transparent 18% 82%, rgba(2, 11, 20, .16));
}

.sc-r61-machine header {
  position: relative;
  z-index: 4;
  top: auto;
  right: auto;
  left: auto;
  order: 1;
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  column-gap: clamp(30px, 6vw, 96px);
  align-items: end;
  margin: 0;
  padding: clamp(34px, 4vw, 58px) clamp(28px, 5vw, 76px) clamp(28px, 3vw, 42px);
  text-align: left;
  background:
    radial-gradient(circle at 72% 18%, rgba(54, 220, 245, .09), transparent 24%),
    #020b14;
}

.sc-r61-machine header .sc-r61-kicker { grid-column: 1 / -1; }
.sc-r61-machine header h2 { grid-column: 1; font-size: clamp(36px, 3.55vw, 56px); }
.sc-r61-machine header p { grid-column: 2; margin: 0 0 3px; }

.sc-r61-machine ol {
  z-index: 5;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  pointer-events: none;
}

.sc-r61-machine ol li,
.sc-r61-machine ol li:nth-child(n) {
  position: absolute;
  width: clamp(140px, 13vw, 190px);
  padding: 0;
  border: 0;
  background: none;
  backdrop-filter: none;
  text-shadow: 0 3px 14px #000, 0 1px 3px #000;
}
.sc-r61-machine ol li::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  margin-bottom: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--r61-gold);
  box-shadow: 0 0 0 6px rgba(245, 185, 45, .13), 0 0 24px var(--r61-gold);
}
.sc-r61-machine li:not(:last-child)::after,
.sc-r61-machine .sc-r61-energy { display: none; }
.sc-r61-machine ol li:nth-child(1) { right: auto; bottom: 5%; left: 4.5%; }
.sc-r61-machine ol li:nth-child(2) { right: auto; bottom: 19%; left: 28%; }
.sc-r61-machine ol li:nth-child(3) { right: auto; bottom: 5%; left: 49%; }
.sc-r61-machine ol li:nth-child(4) { right: auto; bottom: 19%; left: 70%; }
.sc-r61-machine ol li:nth-child(5) { right: 2.2%; bottom: 5%; left: auto; }

@keyframes sc-r61-machine-glow {
  from { filter: brightness(.98) saturate(1.06) contrast(1.02); }
  to { filter: brightness(1.06) saturate(1.16) contrast(1.03); }
}

@media (max-width: 760px) {
  .sc-r61-machine { min-height: 0; }
  .sc-r61-machine::before { display: none; }
  .sc-r61-machine header {
    display: block;
    padding: 32px 22px 26px;
  }
  .sc-r61-machine header h2 { font-size: clamp(34px, 9vw, 46px); }
  .sc-r61-machine header p { margin-top: 16px; }
  .sc-r61-machine .sc-r61-art {
    position: relative;
    top: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: brightness(1.04) saturate(1.12) contrast(1.02);
    transform: none;
    animation: none;
  }
  .sc-r61-machine ol {
    position: relative;
    z-index: 5;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    order: 3;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 18px 18px 24px;
    background: #020b14;
  }
  .sc-r61-machine ol li,
  .sc-r61-machine ol li:nth-child(n) {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
  }
  .sc-r61-machine ol li::before { width: 7px; height: 7px; margin-bottom: 7px; }
  .sc-r61-machine li span { display: block; margin: 0 0 4px; }
  .sc-r61-machine li b { display: block; margin: 0; font-size: clamp(7px, 1.8vw, 9px); line-height: 1.2; }
  .sc-r61-machine li small { display: none; }
}

@media (max-width: 430px) {
  .sc-r61-machine ol { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
}
