:root {
  --split: 50%;
  --ink: #0c0b0a;
  --paper: #f4efe6;
  --line: #d2652b;
}

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

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: "Fraunces", "Iowan Old Style", Georgia, serif;
}

.scroller {
  position: fixed;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

.track {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

.pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.pane iframe {
  display: block;
  width: 100vw;
  min-height: 100vh;
  border: 0;
  background: var(--ink);
  pointer-events: auto;
  overflow: hidden;
}

.pane-pro {
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
  z-index: 1;
}

.pane-person {
  clip-path: inset(0 0 0 var(--split));
  z-index: 1;
  background: var(--paper);
}

.pane-person iframe {
  background: var(--paper);
}

.handle {
  position: fixed;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 28px;
  margin-left: -14px;
  z-index: 3;
  cursor: ew-resize;
  touch-action: none;
}

.handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--line);
}

.handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 48px;
  margin: -24px 0 0 -9px;
  border: 2px solid var(--line);
  background: var(--ink);
}

.chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  pointer-events: none;
}

.mark {
  margin: 0;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.toggles {
  display: flex;
  gap: 6px;
  pointer-events: auto;
}

.toggles button {
  appearance: none;
  border: 1px solid rgba(244, 239, 230, 0.35);
  background: rgba(12, 11, 10, 0.72);
  color: var(--paper);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
}

.toggles button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.handle:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .handle {
    display: none;
  }

  .chrome {
    padding: 10px 12px;
  }

  .toggles button {
    padding: 8px 9px;
    font-size: 0.65rem;
  }
}
