.paint-page {
  --paint-ink: #33251c;
  --paint-olive: #292c22;
  --paint-paper: #fff3dc;
  --paint-soft: #e1d2bb;
  --paint-sage: #d7dbad;
  --paint-section-space: clamp(3.4rem, 7vw, 7.35rem);
}

.paint-page [hidden] { display: none !important; }

.paint-intro {
  display: grid;
  grid-template-columns: minmax(0, .43fr) minmax(0, .57fr);
  min-height: clamp(32rem, 78svh, 49rem);
  border-bottom: 1px solid var(--hz-line);
}

.paint-intro-image {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #a49a7f;
}

.paint-intro-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 49% center;
}

.paint-intro-image figcaption {
  position: absolute;
  z-index: 1;
  right: clamp(.75rem, 2vw, 2rem);
  bottom: clamp(.75rem, 2vw, 1.6rem);
  max-width: calc(100% - 2 * clamp(.75rem, 2vw, 2rem));
  padding: .24em .65em;
  border-radius: .25rem;
  color: var(--paint-paper);
  background: #33251ce8;
  font-size: .76rem;
  overflow-wrap: anywhere;
}

.paint-intro-inner {
  align-self: center;
  padding-block: clamp(2.75rem, 6vw, 6rem);
  padding-inline-start: max(var(--hz-pad), (100vw - var(--hz-max)) / 2);
  padding-inline-end: clamp(1.6rem, 3vw, 3.1rem);
}

.paint-intro h1 {
  margin-block: .7rem clamp(1rem, 2.15vw, 1.7rem);
  font-size: clamp(3.25rem, 5.14vw, 6.5rem);
  font-weight: 740;
  line-height: .96;
  letter-spacing: -.06em;
}

.paint-intro h1 span { display: block; color: #505138; }

.paint-intro p {
  max-width: 36ch;
  color: var(--hz-secondary);
  font-size: clamp(1.04rem, 1.5vw, 1.3rem);
  line-height: 1.56;
}

.paint-intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem clamp(.9rem, 2.6vw, 2rem);
  margin-top: clamp(1.45rem, 3vw, 2.4rem);
}

.paint-page .paint-quote {
  border-color: var(--paint-ink);
  color: var(--paint-paper);
  background: var(--paint-ink);
}

.paint-page .paint-quote:hover { background: #524031; }
.paint-page :is(.paint-quote, .paint-request .hz-button) { white-space: normal; text-align: center; }

.paint-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: .7em;
  font-size: .92rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .3em;
}

.paint-text-link::after {
  flex: 0 0 auto;
  width: .5em;
  height: .5em;
  margin-bottom: .22em;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  content: '';
}

.paint-page .paint-film-section :is(a, button):focus-visible {
  outline: 2px solid var(--paint-paper);
  outline-offset: 4px;
}

.paint-scope, .paint-film-section, .paint-compare-band { padding-block: var(--paint-section-space); }

.paint-page :is(.paint-scope, .paint-feature-heading) h2 {
  font-size: clamp(2.4rem, 5.1vw, 5.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.052em;
  text-wrap: balance;
}

.paint-compare-band { background: #eee5d1; }

.paint-scope-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(1.65rem, 3.5vw, 3rem);
  border-block: 1px solid var(--hz-line);
}

.paint-scope-list .hz-scope-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: clamp(1.2rem, 2.7vw, 2rem) clamp(1rem, 2.5vw, 2.4rem);
  border: 0;
}

.paint-scope-list .hz-scope-row:first-child { padding-inline-start: 0; }
.paint-scope-list .hz-scope-row:last-child { padding-inline-end: 0; }
.paint-scope-list .hz-scope-row + .hz-scope-row { border-inline-start: 1px solid var(--hz-line); }
.paint-scope-list dt { margin-bottom: .55rem; }
.paint-scope-list :is(dt, dd) { overflow-wrap: anywhere; }
.paint-scope-list dd:last-child { margin-top: auto; padding-top: .65rem; }

.paint-page .paint-scope-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.paint-film-section {
  color: var(--paint-paper);
  background: var(--paint-olive);
}

.paint-feature-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: end;
  gap: clamp(1rem, 4.5vw, 4.35rem);
  margin-bottom: clamp(1.4rem, 3.4vw, 2.85rem);
}

.paint-feature-heading h2 { max-width: 14ch; }
.paint-feature-heading p { color: var(--hz-secondary); }
.paint-film-section .paint-feature-heading p { color: var(--paint-soft); }

.paint-reel video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  background: #a4a38f;
  border-radius: .8rem;
  object-fit: contain;
}

.paint-reel-caption {
  margin-bottom: .65rem;
  color: var(--paint-soft);
  font-size: .8rem;
}

.paint-playback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 1rem;
  margin-bottom: .85rem;
}

.paint-reel button {
  min-height: 44px;
  color: var(--paint-paper);
  background: none;
  font: inherit;
  font-size: .88rem;
  font-weight: 650;
  cursor: pointer;
}

.paint-play {
  flex: 0 0 auto;
  max-width: 100%;
  padding: .42em 1.1em;
  border: 1px solid #a8a790;
  border-radius: 4rem;
}

.paint-reel .paint-play:hover, .paint-reel-chapters button:hover { background: #3a3e30; }

.paint-progress {
  width: auto;
  min-width: min(7rem, 100%);
  height: .22rem;
  flex: 1 1 auto;
  border: 0;
  background: #535748;
  color: var(--paint-sage);
  appearance: none;
}

.paint-progress::-webkit-progress-bar { background: #535748; }
.paint-progress::-webkit-progress-value { background: var(--paint-sage); }
.paint-progress::-moz-progress-bar { background: var(--paint-sage); }

.paint-reel-chapters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.4rem, 1.4vw, 1rem);
  margin-top: clamp(.85rem, 2vw, 1.35rem);
}

.paint-reel-chapters button {
  padding: .55rem .3rem .4rem;
  border: 0;
  border-top: 2px solid #777c66;
  text-align: start;
  overflow-wrap: anywhere;
}

.paint-reel-chapters [aria-current] { color: var(--paint-sage); border-color: currentColor; }
.paint-video-error { margin-top: 1rem !important; }
.paint-video-error a { text-decoration: underline; text-underline-offset: .22em; }

.paint-request ul { color: var(--hz-secondary); padding-inline-start: 1.2em; }
.paint-request li { margin-block: .3em; }
.paint-request .hz-button { max-width: 100%; }
.paint-page .hz-contact h2 { max-width: 14ch !important; }

@media (max-width: 820px) {
  .paint-intro { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .paint-intro-inner { padding: 1.25rem var(--hz-pad) 1.8rem; }
  .paint-intro h1 { font-size: clamp(3rem, 11.3vw, 5.2rem); }
  .paint-intro-image { aspect-ratio: 3 / 2; }
}

@media (max-width: 740px) {
  .paint-page .hz-brand { min-width: 0; max-width: 100%; }
  .paint-feature-heading, .paint-scope-list { grid-template-columns: minmax(0, 1fr); }
  .paint-feature-heading h2 { max-width: 18ch; }
  .paint-scope-list .hz-scope-row { padding-inline: 0; }
  .paint-scope-list .hz-scope-row + .hz-scope-row { border-inline-start: 0; border-top: 1px solid var(--hz-line); }
}

@media (max-width: 350px) {
  .paint-page .hz-brand small { padding-inline-start: 0; text-align: center; white-space: normal; }
}

@media (prefers-reduced-motion: no-preference) {
  .paint-intro-image img { animation: paint-room-settle .45s ease-out both; }
  .paint-reel-chapters button { transition: border-color .18s ease-out, color .18s ease-out; }
}

@keyframes paint-room-settle {
  from { transform: scale(1.035); }
  to { transform: scale(1); }
}
