/*
 * VENTURIX comparison page (Jake's document, 2026-10-22). Builds on the tokens
 * and components in styles.css. Every graphic is inline SVG or CSS, so the page
 * needs no new image files.
 */

/* Hero: the three films as sample swatches */

.cmp-hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

.cmp-hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.cmp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(5 5 5 / 0.35) 0%, var(--bg) 95%),
    linear-gradient(90deg, rgb(5 5 5 / 0.85) 0%, rgb(5 5 5 / 0.15) 75%);
}

.cmp-hero__body {
  display: grid;
}

@media (min-width: 1024px) {
  .cmp-hero__body {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(3rem, 5vw, 5rem);
    align-items: end;
  }

  .cmp-hero .swatches {
    margin-top: 0;
  }
}

.cmp-hero__title {
  font-size: clamp(2.25rem, 6.2vw, 4.75rem);
  font-stretch: 80%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.cmp-hero__title > span {
  display: block;
  color: #d6d6d6;
}

.cmp-hero__title > .cmp-hero__v {
  color: var(--white);
}

.cmp-vs {
  margin-right: 0.15em;
  color: var(--red);
  font-size: 0.6em;
  font-weight: 700;
}

.cmp-hero .lede {
  margin-top: 1.25rem;
  color: #d6d6d6;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.5rem, 2vw, 1rem);
  max-width: 40rem;
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
}

/* A cut sample of film: a glossy sheet with its backing peeled at one corner. */
.swatch {
  position: relative;
  display: grid;
  align-content: end;
  gap: 0.35rem;
  aspect-ratio: 4 / 5;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  overflow: hidden;
  border: 1px solid #3a3a3a;
  background: linear-gradient(160deg, #1f1f1f 0%, #0c0c0c 70%);
}

.swatch::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 28%;
  aspect-ratio: 1;
  background: linear-gradient(225deg, var(--bg) 50%, #d9d9d9 50%, #8e8e8e 100%);
  box-shadow: -2px 2px 6px rgb(0 0 0 / 0.6);
}

.swatch__film {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgb(255 255 255 / 0.13) 46%, rgb(255 255 255 / 0.02) 54%, transparent 64%);
  background-size: 260% 100%;
  background-position: 30% 0;
}

.swatch--v {
  border-color: var(--red);
  box-shadow: inset 0 3px 0 var(--red);
}

.swatch .logo {
  position: relative;
  width: 100%;
}

.swatch__name {
  position: relative;
  color: var(--white);
  font-size: clamp(0.875rem, 1.8vw, 1.0625rem);
  font-weight: 700;
  line-height: 1.2;
}

.swatch__note {
  position: relative;
  color: var(--grey-300);
  font-size: 0.75rem;
}

@media (prefers-reduced-motion: no-preference) {
  .swatch__film {
    animation: sheen 2.4s var(--ease-out) both;
  }

  .swatch:nth-child(2) .swatch__film {
    animation-delay: 0.15s;
  }

  .swatch:nth-child(3) .swatch__film {
    animation-delay: 0.3s;
  }
}

@keyframes sheen {
  from {
    background-position: 100% 0;
  }
}

/* Intro */

.cmp-intro {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.cmp-intro__grid {
  display: grid;
  gap: 1.5rem;
}

.cmp-intro__lead {
  max-width: 30ch;
  color: var(--white);
  font-size: clamp(1.375rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

.cmp-intro__body {
  display: grid;
  gap: 1rem;
  max-width: 60ch;
  font-size: 1.0625rem;
}

@media (min-width: 900px) {
  .cmp-intro__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: end;
  }
}

/* At a glance */

.cmp-glance {
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.cmp-glance h2 {
  margin-bottom: 1.5rem;
}

.score-wrap {
  margin-top: 2.5rem;
}

.score {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.score th,
.score td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.score thead th {
  border-bottom: 2px solid var(--border);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  vertical-align: bottom;
}

.score thead th:first-child {
  color: var(--grey-500);
}

.score thead .score__v {
  box-shadow: inset 0 3px 0 var(--red);
}

.score thead .logo {
  width: 7.5rem;
}

.score .score__v {
  background: rgb(225 6 0 / 0.07);
}

.score tbody th a {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.score tbody th a:hover {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 0.25em;
}

.score__n {
  display: inline-block;
  min-width: 1.4rem;
  color: var(--grey-500);
  font-variant-numeric: tabular-nums;
}

.score td {
  color: #d6d6d6;
}

.score td .mark {
  margin-right: 0.6rem;
  vertical-align: -0.1em;
}

/* Phones: each area becomes its own card, with the brand named on every row. */
@media (max-width: 759px) {
  .score,
  .score tbody,
  .score tr,
  .score th,
  .score td {
    display: block;
  }

  .score thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .score tbody tr {
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    background: var(--bg-raised);
  }

  .score tbody th {
    padding: 0.9rem 1rem 0.5rem;
    border-bottom: 0;
  }

  .score td {
    display: grid;
    grid-template-columns: 7.5rem auto 1fr;
    align-items: center;
    padding: 0.5rem 1rem;
    border-bottom: 0;
  }

  .score td:last-child {
    padding-bottom: 0.95rem;
  }

  .score td::before {
    content: attr(data-brand);
    color: var(--grey-500);
    font-size: 0.8125rem;
  }

  .score td.score__v::before {
    color: var(--white);
    font-weight: 700;
  }
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.25rem;
  color: var(--grey-300);
  font-size: 0.8125rem;
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Verdict marks. Same box for every state so the columns line up. */
.mark {
  display: inline-block;
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
}

.mark--top {
  background: var(--red);
}

.mark--close {
  border: 2px solid #e6e6e6;
}

.mark--behind {
  background: radial-gradient(circle, #6e6e6e 0 40%, transparent 44%);
}

.mark--record {
  border: 2px solid var(--white);
  background: radial-gradient(circle, var(--white) 0 30%, transparent 34%);
}

.mark--testing {
  border: 2px dashed var(--grey-300);
}

/* The seven areas */

.cmp-cat {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  border-top: 1px solid var(--border);
}

.cmp-cat__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 1024px) {
  .cmp-cat__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(3rem, 6vw, 5.5rem);
    align-items: center;
  }

  .cmp-cat--flip .fig {
    order: -1;
  }
}

/* Race-number numerals: outlined in brand red. */
.cmp-cat__n {
  margin-bottom: 0.75rem;
  color: transparent;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-stretch: 75%;
  font-weight: 800;
  line-height: 0.9;
  -webkit-text-stroke: 1.5px var(--red);
}

.cmp-cat h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
}

.cmp-cat__def {
  max-width: 60ch;
  margin-bottom: 1rem;
  color: #d6d6d6;
  text-wrap: pretty;
}

.cmp-cat__def--lead {
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 600;
}

.obs {
  display: grid;
  gap: 1px;
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  background: var(--border);
}

.obs__row {
  display: grid;
  gap: 0.4rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg);
}

.obs__row--v {
  background: var(--bg-raised);
  box-shadow: inset 0 3px 0 var(--red);
}

.obs dt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 700;
}

.obs dd {
  text-wrap: pretty;
}

.obs dd p + p {
  margin-top: 0.75rem;
}

.assess {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid rgb(225 6 0 / 0.4);
  background: rgb(225 6 0 / 0.08);
}

.assess h3 {
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.assess p {
  color: #ececec;
  text-wrap: pretty;
}

.assess p + p {
  margin-top: 0.75rem;
}

.cmp-note {
  max-width: 70ch;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border);
  color: var(--grey-300);
  font-size: 0.9375rem;
}

@media (min-width: 1024px) {
  .cmp-note {
    grid-column: 1 / -1;
  }
}

/* Figures: SVG art with its labels set in HTML, so they stay readable on phones. */

.fig {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

.fig__svg {
  width: 100%;
  height: auto;
}

.fig__labels {
  display: grid;
  gap: 0.75rem;
  color: var(--grey-300);
  font-size: 0.875rem;
  line-height: 1.45;
}

.fig__labels strong {
  display: block;
  color: var(--white);
  font-size: 0.9375rem;
}

.fig__labels--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-inline: 1.5%;
}

.fig__labels--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fig__labels--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  text-align: center;
}

.fig__labels--4 strong {
  font-size: 0.8125rem;
}

.fig figcaption {
  color: var(--grey-500);
  font-size: 0.8125rem;
}

/* The water drop rolls off now and then. */
.drop-roll {
  transform-box: fill-box;
}

@media (prefers-reduced-motion: no-preference) {
  .drop-roll {
    animation: roll 5.5s var(--ease-out) infinite;
  }
}

@keyframes roll {
  0%,
  55% {
    opacity: 1;
    transform: translateX(0);
  }

  85% {
    opacity: 0;
    transform: translateX(70px);
  }

  86% {
    opacity: 0;
    transform: translateX(0);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 5. Installation: a wide section with the four flaws in a row */

.cmp-cat__head {
  max-width: 48rem;
  margin-bottom: 2.5rem;
}

.defects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.defects svg {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
}

.defects p {
  margin-top: 0.6rem;
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 700;
}

@media (min-width: 900px) {
  .defects {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cmp-cat__cols {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 1024px) {
  .cmp-cat__cols {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }

  .cmp-cat__cols .obs,
  .cmp-cat__cols .assess {
    margin-top: 0;
  }
}

.cmp-quote {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.cmp-quote::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  margin-bottom: 1.25rem;
  background: var(--red);
}

.cmp-quote p {
  max-width: 28ch;
  color: var(--white);
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

/* 7. Aging: what ages a film, beside an exploded view of its layers */

.aging {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .aging {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}

.aging__factors li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--border);
  color: #e6e6e6;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.aging__factors svg,
.verdict svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aging__stack {
  display: grid;
  gap: 0.5rem;
}

/* Each layer steps right, like an exploded diagram. */
.layer {
  --i: 0;

  margin-left: calc(var(--i) * 0.75rem);
  margin-right: calc((3 - var(--i)) * 0.75rem);
  padding: 0.55rem 1rem;
  border: 1px solid;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
}

.layer--top {
  border-color: rgb(255 255 255 / 0.55);
  background: rgb(255 255 255 / 0.22);
}

.layer--film {
  --i: 1;

  padding-block: 1.75rem;
  border-color: rgb(255 255 255 / 0.2);
  background: linear-gradient(115deg, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.12) 50%, rgb(255 255 255 / 0.04));
}

.layer--adhesive {
  --i: 2;

  border-color: rgb(201 161 74 / 0.55);
  background: rgb(201 161 74 / 0.22);
  color: #f3e3b8;
}

.layer--paint {
  --i: 3;

  padding-block: 1.25rem;
  border-color: #7a1418;
  background: linear-gradient(135deg, #7a1418, #3a0d0f);
}

/* Overall assessment */

.cmp-overall {
  padding-block: var(--section-y);
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
}

.cmp-overall__title {
  max-width: 24ch;
  margin-bottom: 1.25rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
}

.cmp-overall__lede {
  max-width: 62ch;
  color: #d6d6d6;
}

.verdict {
  display: grid;
  gap: 1px;
  margin-top: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--border);
  background: var(--border);
}

@media (min-width: 900px) {
  .verdict {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
}

.verdict__col {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--bg);
}

.verdict__col--yes {
  box-shadow: inset 0 3px 0 var(--red);
}

.verdict h3 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.verdict li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-block: 0.55rem;
  color: #e6e6e6;
  font-size: 1.0625rem;
}

.verdict__col--yes svg {
  stroke-width: 2.4;
}

.verdict__col--wait svg {
  stroke: var(--grey-300);
}

.verdict__col--wait p {
  margin-top: 0.75rem;
  color: var(--grey-300);
  font-size: 0.875rem;
}

.cmp-overall__body {
  display: grid;
  gap: 1rem;
  max-width: 62ch;
  margin-top: clamp(2rem, 5vw, 3rem);
  color: #d6d6d6;
  font-size: 1.0625rem;
}

.cmp-overall__strong {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
}

/* Closing band */

.cmp-close {
  position: relative;
  padding-block: clamp(5rem, 12vw, 9rem);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.cmp-close__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cmp-close::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, rgb(5 5 5 / 0.55) 35%, rgb(5 5 5 / 0.75) 70%, var(--bg) 100%);
}

.cmp-close h2 {
  max-width: 22ch;
  margin-inline: auto;
  font-size: clamp(1.875rem, 4.6vw, 3.5rem);
}

.cmp-close .lede {
  margin: 1rem auto 0;
  color: #d6d6d6;
}

.cmp-close .actions {
  justify-content: center;
  margin-top: 2rem;
}

.cmp-disclaimer {
  padding-block: 2rem 3rem;
  color: var(--grey-300);
  font-size: 0.8125rem;
}

/* Scroll-linked rise for the evidence blocks, where the browser supports it.
   Without support, or with reduced motion, everything is simply there. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .fig,
    .obs,
    .assess,
    .score tbody tr {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
}
