.pencil-subtitle {
  margin: calc(20 / 1728 * 100vw) 0 0;
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-size: calc(28 / 1728 * 100vw);
  line-height: 120%;
}


.pencil-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: calc(50 / 1728 * 100vw);
}

.pencil-video-element {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.pencil-video-label {
  position: absolute;
  left: calc(24 / 1728 * 100vw);
  bottom: calc(24 / 1728 * 100vw);
  z-index: 2;
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-size: calc(15 / 1728 * 100vw);
}

.pencil-video-progress {
  position: absolute;
  left: calc(70 / 1728 * 100vw);
  right: calc(140 / 1728 * 100vw);
  bottom: calc(27 / 1728 * 100vw);
  z-index: 3;
  height: calc(18 / 1728 * 100vw);
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.pencil-video:hover .pencil-video-progress {
  opacity: 1;
  pointer-events: auto;
}

.pencil-video-progress::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(
    to right,
    #000 0%,
    #000 var(--video-progress, 0%),
    rgba(0, 0, 0, 0.3) var(--video-progress, 0%),
    rgba(0, 0, 0, 0.3) 100%
  );
}

.pencil-video-progress::-webkit-slider-thumb {
  width: calc(12 / 1728 * 100vw);
  height: calc(12 / 1728 * 100vw);
  margin-top: calc(-5 / 1728 * 100vw);
  border: 1px solid #000;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
}

.pencil-video-progress::-moz-range-track {
  height: 2px;
  background: rgba(0, 0, 0, 0.3);
}

.pencil-video-progress::-moz-range-progress {
  height: 2px;
  background: #000;
}

.pencil-video-progress::-moz-range-thumb {
  width: calc(12 / 1728 * 100vw);
  height: calc(12 / 1728 * 100vw);
  border: 1px solid #000;
  border-radius: 50%;
  background: #fff;
}

.pencil-play-toggle {
  position: absolute;
  left: calc(24 / 1728 * 100vw);
  bottom: calc(20 / 1728 * 100vw);
  z-index: 3;
  width: calc(34 / 1728 * 100vw);
  height: calc(34 / 1728 * 100vw);
  padding: 0;
  border: 0.6px solid #000;
  border-radius: 50%;
  background: #fff;
  font-family: Arial, sans-serif;
  font-size: calc(13 / 1728 * 100vw);
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.pencil-video:hover .pencil-play-toggle {
  opacity: 1;
  pointer-events: auto;
}

.pencil-sound-toggle {
  position: absolute;
  right: calc(24 / 1728 * 100vw);
  bottom: calc(20 / 1728 * 100vw);
  z-index: 3;
  width: calc(34 / 1728 * 100vw);
  height: calc(34 / 1728 * 100vw);
  padding: 0;
  border: 0.6px solid #000;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pencil-sound-toggle svg {
  width: calc(16 / 1728 * 100vw);
  height: auto;
}

.pencil-facts {
  grid-template-columns: 1.65fr 1fr 1fr 0.6fr;
}

.pencil-eyebrow {
  margin-bottom: calc(18 / 1728 * 100vw) !important;
  font-family: 'Arial Narrow', Arial, sans-serif !important;
  font-size: calc(15 / 1728 * 100vw) !important;
  color: #8a8a8a;
}

.pencil-storyboard-overview,
.pencil-frame-grid,
.pencil-comparison,
.pencil-palette,
.pencil-style-system,
.pencil-look-grid,
.pencil-style-frames,
.pencil-outcome {
  grid-column: 2;
}

.pencil-storyboard-overview {
  width: 100%;
  aspect-ratio: 16 / 5;
  margin-top: calc(75 / 1728 * 100vw);
}

.pencil-frame-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(28 / 1728 * 100vw) calc(22 / 1728 * 100vw);
  margin-top: calc(28 / 1728 * 100vw);
}

.pencil-frame-grid figure,
.pencil-comparison figure {
  margin: 0;
}

.pencil-frame-grid .media-placeholder,
.pencil-comparison .media-placeholder,
.pencil-style-frames .media-placeholder {
  aspect-ratio: 16 / 9;
}

.pencil-frame-grid figcaption,
.pencil-comparison figcaption {
  margin-top: calc(9 / 1728 * 100vw);
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-size: calc(13 / 1728 * 100vw);
  color: #777;
}

.pencil-comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: calc(28 / 1728 * 100vw);
  margin-top: calc(70 / 1728 * 100vw);
}

.pencil-palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(18 / 1728 * 100vw);
  margin-top: calc(75 / 1728 * 100vw);
}

.pencil-palette div {
  font-family: 'Arial Narrow', Arial, sans-serif;
}

.pencil-palette span {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 0.3px solid #cfcfcf;
}

.pencil-palette div:nth-child(1) span {
  background: #f3e9d2;
}

.pencil-palette div:nth-child(2) span {
  background: #1859a8;
}

.pencil-palette div:nth-child(3) span {
  background: #d64132;
}

.pencil-palette div:nth-child(4) span {
  background: #111;
}

.pencil-palette p {
  margin: calc(10 / 1728 * 100vw) 0 calc(3 / 1728 * 100vw);
  font-size: calc(16 / 1728 * 100vw);
}

.pencil-palette small {
  font-size: calc(13 / 1728 * 100vw);
  color: #777;
}

.pencil-style-system {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 calc(55 / 1728 * 100vw);
  margin: calc(65 / 1728 * 100vw) 0 0;
  border-top: 0.3px solid #000;
  font-family: 'Arial Narrow', Arial, sans-serif;
}

.pencil-style-system div {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  padding: calc(17 / 1728 * 100vw) 0;
  border-bottom: 0.3px solid #cfcfcf;
}

.pencil-style-system dt {
  color: #8a8a8a;
}

.pencil-style-system dd {
  margin: 0;
}

.pencil-look-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(22 / 1728 * 100vw);
  margin-top: calc(65 / 1728 * 100vw);
}

.pencil-style-frames {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: calc(28 / 1728 * 100vw);
  margin-top: calc(75 / 1728 * 100vw);
}

.pencil-outcome {
  margin: calc(90 / 1728 * 100vw) 0 0;
  padding: calc(34 / 1728 * 100vw) 0 0;
  border-top: 0.3px solid #000;
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-size: calc(30 / 1728 * 100vw);
  line-height: 125%;
}

@media (max-width: 800px) {
  .pencil-frame-grid,
  .pencil-look-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
