/* ==========================================================================
   Vinyl page (/fence-types/vinyl/)
   Loaded only on that page by midwest_fence_page_styles() in functions.php.
   Builds on style.css tokens and components; every class here is vn-.
   The style & color studio and the install-day toggle run on :has(), with
   a static fallback for browsers without it.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared bits
   -------------------------------------------------------------------------- */
.vn-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* No lone words on the last line of a heading. */
.vn-hero__title,
.vn-why .section__title,
.vn-grade .section__title,
.vn-studio .section__title,
.vn-fit .section__title,
.vn-work .section__title,
.vn-faq .section__title,
.vn-contact__title,
.vn-feature__title {
  text-wrap: balance;
}

/* Left-aligned section header that keeps the site's title underline. */
.vn-head-left {
  text-align: left;
  max-width: none;
  margin: 0 0 var(--spacing-lg);
}

.vn-head-left .section__title::after {
  margin-left: 0;
}

.vn-head-left .section__subtitle {
  max-width: 620px;
}

.vn-lead {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-gray-800);
  margin-bottom: var(--spacing-lg);
}

.vn-body {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-gray-600);
}

.vn-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  color: var(--color-primary-dark);
  padding-bottom: 2px;
  border-bottom: 1.5px solid rgba(252, 127, 37, 0.35);
  transition: gap var(--transition-base), border-color var(--transition-base), color var(--transition-fast);
  white-space: nowrap;
}

.vn-link-arrow:hover {
  gap: 0.7rem;
  border-color: var(--color-primary);
}

.vn-link-arrow--light {
  color: var(--color-primary);
}

.vn-link-arrow svg {
  flex-shrink: 0;
}

/* Inline links in body copy. */
.vn-year__more a,
.vn-rules a,
.vn-life__src a,
.vn-controls__fine a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-decoration-color: rgba(224, 106, 16, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-fast);
}

.vn-year__more a:hover,
.vn-rules a:hover,
.vn-life__src a:hover,
.vn-controls__fine a:hover {
  text-decoration-color: currentColor;
}

.vn-tag {
  display: block;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.vn-zoom {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-white);
  background: rgba(10, 10, 10, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Keyboard focus for everything interactive on the page. */
.vn-hero a:focus-visible,
.vn-why a:focus-visible,
.vn-grade a:focus-visible,
.vn-studio a:focus-visible,
.vn-fit a:focus-visible,
.vn-work a:focus-visible,
.vn-filter:focus-visible,
.vn-faq a:focus-visible,
.vn-faq .svc-faq__question:focus-visible,
.vn-contact a:focus-visible,
.vn-lightbox button:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* Check-circle bullet, shared by the hero trust line, fit list, and the
   estimate section. */
.vn-hero__trust li::before,
.vn-checks li::before,
.vn-assure li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(252, 127, 37, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fc7f25' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* --------------------------------------------------------------------------
   Hero: full-bleed photo, copy on the softened side, glance bar that
   overlaps into the next section
   -------------------------------------------------------------------------- */
.vn-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(620px, 88vh, 820px);
  padding: calc(var(--header-height) + 3.5rem) 0 7.5rem;
  background-color: var(--color-black);
  color: var(--color-white);
}

.vn-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background-color: #2b2a24;
}

.vn-hero__media picture,
.vn-hero__img {
  display: block;
  width: 100%;
  height: 100%;
}

.vn-hero__img {
  object-fit: cover;
  object-position: 62% 58%;
}

/* Copy side dark, fence side clear; a touch of shade under the header and
   above the glance bar. */
.vn-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.78) 32%, rgba(10, 10, 10, 0.38) 56%, rgba(10, 10, 10, 0.06) 78%, rgba(10, 10, 10, 0) 100%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.45) 0%, rgba(10, 10, 10, 0) 24%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0) 34%);
  pointer-events: none;
}

.vn-hero__credit {
  position: absolute;
  top: calc(var(--header-height) + 1.5rem);
  right: 2rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  padding: 0.6rem 0.95rem;
  border-radius: 12px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(10, 10, 10, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.vn-hero__credit span {
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-size: 10.5px;
}

.vn-hero__inner {
  width: 100%;
}

.vn-hero__content {
  max-width: 640px;
}

.vn-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: var(--spacing-xl);
}

.vn-crumbs li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.35);
}

.vn-crumbs a {
  color: rgba(255, 255, 255, 0.62);
  transition: color var(--transition-fast);
}

.vn-crumbs a:hover {
  color: var(--color-primary);
}

.vn-crumbs [aria-current] {
  color: rgba(255, 255, 255, 0.9);
}

.vn-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 1.5rem + 2.5vw, 3.6rem);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: var(--color-white);
  margin-bottom: var(--spacing-lg);
}

.vn-hero__accent {
  color: var(--color-primary);
}

/* The heading face sets its comma wide at this weight; pull it in. */
.vn-kern {
  margin-left: -0.09em;
}

.vn-hero__lede {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.86);
  max-width: 580px;
  margin-bottom: var(--spacing-xl);
}

.vn-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}

.vn-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  list-style: none;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.84);
}

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

/* Glance bar: half on the photo, half on the page below. */
.vn-glance-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  transform: translateY(50%);
}

.vn-glance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr);
  list-style: none;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(10, 10, 10, 0.28), 0 2px 6px rgba(10, 10, 10, 0.2);
  overflow: hidden;
}

.vn-glance__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  padding: 1.35rem 1.6rem;
  min-height: 104px;
}

.vn-glance__item + .vn-glance__item {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.vn-glance__value {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1rem + 0.6vw, 1.55rem);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--color-white);
}

.vn-glance__label {
  font-size: var(--font-size-sm);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
}

.vn-glance__chips {
  display: flex;
  margin-bottom: 0.2rem;
}

.vn-glance__chips i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--chip);
  border: 2px solid #141414;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.vn-glance__chips i + i {
  margin-left: -7px;
}

/* --------------------------------------------------------------------------
   Why vinyl
   -------------------------------------------------------------------------- */
.vn-why {
  padding-top: calc(var(--spacing-5xl) + 3.75rem);
}

.vn-why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 4.5rem;
  align-items: center;
}

/* Upkeep: twenty years of stain jobs vs. a garden hose, as a dark
   head-to-head card. */
.vn-upkeep {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 2rem;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(252, 127, 37, 0.18) 0%, rgba(252, 127, 37, 0) 55%),
    #121212;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(10, 10, 10, 0.22);
  color: var(--color-white);
}

.vn-upkeep__head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.vn-upkeep__eyebrow {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.vn-upkeep__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
  color: var(--color-white);
}

.vn-upkeep__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.vn-upkeep__side {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.15rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
}

.vn-upkeep__side--vinyl {
  background: rgba(252, 127, 37, 0.08);
  border-color: rgba(252, 127, 37, 0.38);
}

.vn-upkeep__name {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.vn-upkeep__num {
  margin-top: 0.6rem;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 4.6vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #d9b38c;
}

.vn-upkeep__side--vinyl .vn-upkeep__num {
  color: var(--color-primary);
}

.vn-upkeep__unit {
  margin-top: 0.3rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
}

.vn-upkeep__note {
  margin: 0.5rem 0 1rem;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.vn-upkeep__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.vn-upkeep__chips li {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(217, 179, 140, 0.14);
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  color: #e6c8a6;
  opacity: 0;
  transform: scale(0.6);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  transition-delay: calc(0.2s + var(--i, 0) * 0.1s);
}

.vn-upkeep__side--vinyl .vn-upkeep__chips li {
  background: rgba(252, 127, 37, 0.16);
  color: #ffb37a;
}

.vn-upkeep.fade-in-right--visible .vn-upkeep__chips li {
  opacity: 1;
  transform: none;
}

.vn-upkeep__vs {
  display: grid;
  place-items: center;
  align-self: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--font-size-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #121212;
}

.vn-upkeep__foot {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--font-size-sm);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.vn-upkeep__foot strong {
  color: var(--color-white);
}

/* Four reasons, typographic cards. */
.vn-perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin-top: 4.5rem;
}

.vn-perk {
  position: relative;
  padding: 1.75rem 1.5rem 1.6rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 16px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.vn-perk::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 1.5rem;
  width: 36px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--color-primary);
  transition: width var(--transition-slow);
}

.vn-perk:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(10, 10, 10, 0.08);
  border-color: rgba(252, 127, 37, 0.35);
}

.vn-perk:hover::before {
  width: 64px;
}

.vn-perk__tag {
  display: block;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 0.6rem;
}

.vn-perk__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  color: var(--color-black);
  margin-bottom: 0.55rem;
}

.vn-perk p {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  color: var(--color-gray-600);
}

/* --------------------------------------------------------------------------
   What's inside counts: install-day toggle, comparison, Kansas year
   -------------------------------------------------------------------------- */
.vn-age {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: fit-content;
  min-inline-size: 0;
  margin: 0 auto 2.75rem;
  padding: 6px;
  border: 1px solid var(--color-gray-200);
  border-radius: 999px;
  background: var(--color-white);
  box-shadow: 0 6px 18px rgba(10, 10, 10, 0.06);
}

.vn-age input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.vn-age label {
  position: relative;
  z-index: 1;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-align: center;
  white-space: nowrap;
  color: var(--color-gray-600);
  cursor: pointer;
  transition: color 0.3s ease;
}

.vn-age label:hover {
  color: var(--color-black);
}

.vn-age input:checked + label {
  color: var(--color-white);
}

.vn-age input:focus-visible + label {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.vn-age__thumb {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc(50% - 6px);
  border-radius: 999px;
  background: var(--color-black);
  box-shadow: 0 4px 12px rgba(10, 10, 10, 0.25);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s ease;
}

#vn-age-later:checked ~ .vn-age__thumb {
  transform: translateX(100%);
  background: var(--color-primary-dark);
}

/* Comparison: a white card behind "ours", a faint one behind "theirs". */
.vn-cmp {
  --vn-label-w: 150px;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.vn-cmp::before,
.vn-cmp::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc((100% - var(--vn-label-w)) / 2);
  border-radius: 22px;
  pointer-events: none;
}

.vn-cmp::before {
  left: var(--vn-label-w);
  background: rgba(10, 10, 10, 0.025);
  border: 1px solid rgba(10, 10, 10, 0.06);
}

.vn-cmp::after {
  right: 0;
  background: var(--color-white);
  border: 1px solid rgba(252, 127, 37, 0.28);
  box-shadow: 0 22px 54px rgba(10, 10, 10, 0.09);
}

.vn-cmp__heads,
.vn-cmp__table {
  position: relative;
  z-index: 1;
}

.vn-cmp__heads {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-left: var(--vn-label-w);
}

.vn-cmp__head {
  padding: 1.75rem 1.75rem 0.5rem;
}

.vn-cmp__eyebrow {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gray-500);
}

.vn-cmp__head--ours .vn-cmp__eyebrow {
  color: var(--color-primary-dark);
}

.vn-cmp__status {
  min-height: 1.3em;
  margin: 0.4rem 0 0.5rem;
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  color: var(--color-black);
}

.vn-cmp__later {
  display: none;
}

.vn-grade:has(#vn-age-later:checked) .vn-cmp__now {
  display: none;
}

.vn-grade:has(#vn-age-later:checked) .vn-cmp__later {
  display: inline;
  animation: vnSwap 0.45s ease both;
}

.vn-grade:has(#vn-age-later:checked) .vn-cmp__head--cheap .vn-cmp__status {
  color: #9a4a12;
}

@keyframes vnSwap {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* The little fences: fresh on both sides, aged on builder-grade only. */
.vn-cmp__fig {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.vn-mini {
  transition: opacity 0.6s ease;
}

.vn-mini__face {
  fill: #fbfbf9;
}

.vn-mini__face--aged {
  fill: #ebe1c5;
}

.vn-mini__rail {
  fill: #f2f2ee;
  stroke: #d2d2cb;
  stroke-width: 1;
}

.vn-mini__rail--aged {
  fill: #e3d6b4;
  stroke: #c9b98f;
}

.vn-mini__groove {
  fill: none;
  stroke: rgba(10, 10, 10, 0.08);
  stroke-width: 1.2;
}

.vn-mini__posts rect {
  fill: #f4f4f1;
  stroke: #cfcfc8;
  stroke-width: 1;
  transition: fill 0.6s ease, stroke 0.6s ease;
}

.vn-mini__posts .vn-mini__cap {
  fill: #ffffff;
}

.vn-mini__crack {
  fill: none;
  stroke: #7c5a2e;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vn-mini__ground {
  stroke: rgba(10, 10, 10, 0.14);
  stroke-width: 1;
}

.vn-mini--aged {
  opacity: 0;
}

.vn-grade:has(#vn-age-later:checked) .vn-cmp__head--cheap .vn-mini--aged {
  opacity: 1;
}

.vn-grade:has(#vn-age-later:checked) .vn-cmp__head--cheap .vn-mini--fresh {
  opacity: 0;
}

.vn-grade:has(#vn-age-later:checked) .vn-cmp__head--cheap .vn-mini__posts rect {
  fill: #e9dfc2;
  stroke: #c7b88e;
}

/* Spec table, aligned under the two cards. */
.vn-cmp__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

/* Fixed layout takes widths from the columns, so the label column matches
   the offset of the two cards above. */
.vn-cmp__col-label {
  width: var(--vn-label-w);
}

.vn-cmp__table tbody th,
.vn-cmp__table td {
  padding: 1rem 1.75rem;
  vertical-align: top;
  text-align: left;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  border-top: 1px solid rgba(10, 10, 10, 0.07);
}

.vn-cmp__table tbody th {
  width: var(--vn-label-w);
  padding-left: 0;
  padding-right: 1rem;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-900);
  border-top-color: rgba(10, 10, 10, 0.1);
}

.vn-cmp__table tbody tr:last-child td {
  padding-bottom: 1.75rem;
}

.vn-cmp__theirs {
  color: var(--color-gray-600);
}

.vn-cmp__ours {
  font-weight: var(--font-weight-medium);
  color: var(--color-black);
}

.vn-cmp__ours::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--color-primary);
  vertical-align: 0.12em;
}

/* A Kansas year: four stops on a cold-to-hot line. */
.vn-year {
  margin-top: 5rem;
}

.vn-year__title {
  text-align: center;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
  margin-bottom: 2.25rem;
}

.vn-year__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  list-style: none;
  padding-top: 3rem;
}

.vn-year__list::before {
  content: '';
  position: absolute;
  top: 0.95rem;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #7f99b2 0%, #b7c4cd 20%, #ebbd73 44%, #fc7f25 62%, #ecab63 82%, #b48c6c 100%);
}

.vn-year__item {
  position: relative;
}

.vn-year__month {
  position: absolute;
  top: -3rem;
  left: 0;
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gray-900);
  background: var(--color-cream);
  border: 1.5px solid rgba(10, 10, 10, 0.14);
}

.vn-year__name {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
  margin-bottom: 0.5rem;
}

.vn-year__item p {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  color: var(--color-gray-600);
}

.vn-year__more {
  max-width: 720px;
  margin: 2.75rem auto 0;
  text-align: center;
  font-size: var(--font-size-base);
  color: var(--color-gray-600);
}

/* --------------------------------------------------------------------------
   Style & color studio
   -------------------------------------------------------------------------- */
.vn-studio {
  --vn-face: #f8f8f5;
  --vn-edge: #c2c2ba;
  --vn-post: #f1f1ed;
  --vn-cap: #fcfcfa;
  --vn-groove: rgba(10, 10, 10, 0.09);
}

.vn-studio:has(#vn-color-tan:checked) {
  --vn-face: #d8c6a3;
  --vn-edge: #ad9873;
  --vn-post: #d1bf9c;
  --vn-cap: #e1d1b1;
  --vn-groove: rgba(80, 58, 26, 0.14);
}

.vn-studio:has(#vn-color-clay:checked) {
  --vn-face: #bca88e;
  --vn-edge: #94806a;
  --vn-post: #b4a087;
  --vn-cap: #c7b49a;
  --vn-groove: rgba(60, 44, 28, 0.16);
}

.vn-studio:has(#vn-color-gray:checked) {
  --vn-face: #a8abaa;
  --vn-edge: #828584;
  --vn-post: #a1a4a3;
  --vn-cap: #b6b9b8;
  --vn-groove: rgba(10, 10, 10, 0.14);
}

.vn-studio:has(#vn-color-woodgrain:checked) {
  --vn-face: url(#vn-grain);
  --vn-edge: #7a4524;
  --vn-post: #9b5b33;
  --vn-cap: #ad6a40;
  --vn-groove: rgba(58, 26, 8, 0.3);
}

.vn-studio:has(#vn-color-black:checked) {
  --vn-face: #2d2d2d;
  --vn-edge: #111111;
  --vn-post: #262626;
  --vn-cap: #3b3b3b;
  --vn-groove: rgba(255, 255, 255, 0.07);
}

.vn-studio__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: start;
}

.vn-stage-col {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.vn-stage {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, #d9e3ec 0%, #e8edf0 55%, #f3f0e8 100%);
  border: 1px solid rgba(10, 10, 10, 0.06);
  box-shadow: 0 22px 54px rgba(10, 10, 10, 0.08);
}

.vn-stage__svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1.75rem;
}

.vn-stage__shadow {
  fill: rgba(10, 10, 10, 0.08);
}

.vn-stage__ground {
  stroke: rgba(10, 10, 10, 0.16);
  stroke-width: 1;
}

.vn-f-face {
  fill: var(--vn-face);
  transition: fill 0.35s ease;
}

.vn-f-rail {
  fill: var(--vn-face);
  stroke: var(--vn-edge);
  stroke-width: 1;
  transition: fill 0.35s ease, stroke 0.35s ease;
}

.vn-f-post {
  fill: var(--vn-post);
  stroke: var(--vn-edge);
  stroke-width: 1;
  transition: fill 0.35s ease, stroke 0.35s ease;
}

.vn-f-cap {
  fill: var(--vn-cap);
  stroke: var(--vn-edge);
  stroke-width: 1;
  transition: fill 0.35s ease, stroke 0.35s ease;
}

.vn-f-groove {
  fill: none;
  stroke: var(--vn-groove);
  stroke-width: 1.4;
  transition: stroke 0.35s ease;
}

.vn-f-picket {
  stroke: var(--vn-edge);
  stroke-width: 1;
}

.vn-f-lattice {
  fill: url(#vn-lattice);
}

#vn-lattice path {
  stroke: var(--vn-face);
}

/* One style at a time: cross-fade with a small lift. */
.vn-fig {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.vn-studio:has(#vn-style-privacy:checked) :is(.vn-fig--privacy, .vn-fig--tall),
.vn-studio:has(#vn-style-semi:checked) :is(.vn-fig--semi, .vn-fig--tall),
.vn-studio:has(#vn-style-picket:checked) .vn-fig--picket,
.vn-studio:has(#vn-style-ranch:checked) .vn-fig--ranch {
  opacity: 1;
  transform: none;
}

.vn-stage__readout {
  padding: 1.25rem 1.6rem 1.35rem;
  background: var(--color-white);
  border-top: 1px solid rgba(10, 10, 10, 0.06);
}

.vn-readout__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
}

.vn-readout__meta {
  margin-top: 0.2rem;
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
}

[data-vn-style],
[data-vn-color] {
  display: none;
}

.vn-studio:has(#vn-style-privacy:checked) [data-vn-style="privacy"],
.vn-studio:has(#vn-style-semi:checked) [data-vn-style="semi"],
.vn-studio:has(#vn-style-picket:checked) [data-vn-style="picket"],
.vn-studio:has(#vn-style-ranch:checked) [data-vn-style="ranch"],
.vn-studio:has(#vn-color-white:checked) [data-vn-color="white"],
.vn-studio:has(#vn-color-tan:checked) [data-vn-color="tan"],
.vn-studio:has(#vn-color-clay:checked) [data-vn-color="clay"],
.vn-studio:has(#vn-color-gray:checked) [data-vn-color="gray"],
.vn-studio:has(#vn-color-woodgrain:checked) [data-vn-color="woodgrain"],
.vn-studio:has(#vn-color-black:checked) [data-vn-color="black"] {
  display: inline;
}

/* Without :has(), show full privacy in white and keep the pickers usable. */
@supports not selector(:has(*)) {
  .vn-fig--privacy,
  .vn-fig--tall {
    opacity: 1;
    transform: none;
  }

  [data-vn-style="privacy"],
  [data-vn-color="white"] {
    display: inline;
  }
}

/* Pickers */
.vn-picker {
  min-inline-size: 0;
  margin: 0 0 1.75rem;
  padding: 0;
  border: 0;
}

.vn-picker__legend {
  display: block;
  margin-bottom: 0.85rem;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gray-500);
}

.vn-options {
  display: grid;
  gap: 0.7rem;
}

.vn-opt {
  position: relative;
  display: block;
  cursor: pointer;
}

.vn-opt input,
.vn-swatch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.vn-opt__body {
  position: relative;
  display: block;
  padding: 1rem 1.15rem 1rem 3.1rem;
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-200);
  border-radius: 14px;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
}

.vn-opt__body::before {
  content: '';
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--color-gray-400);
  background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.vn-opt:hover .vn-opt__body {
  border-color: rgba(252, 127, 37, 0.45);
}

.vn-opt input:checked + .vn-opt__body {
  border-color: var(--color-primary);
  background: linear-gradient(180deg, #fffaf6 0%, var(--color-white) 100%);
  box-shadow: 0 0 0 3px rgba(252, 127, 37, 0.14), 0 10px 24px rgba(10, 10, 10, 0.06);
}

.vn-opt input:checked + .vn-opt__body::before {
  border-color: var(--color-primary);
  background: var(--color-primary);
  box-shadow: inset 0 0 0 3px var(--color-white);
}

.vn-opt input:focus-visible + .vn-opt__body {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.vn-opt__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.vn-opt__name {
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
}

.vn-opt__price {
  flex-shrink: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-dark);
}

.vn-opt__price small {
  margin-left: 1px;
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-500);
}

.vn-opt__text {
  display: block;
  margin-top: 0.3rem;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--color-gray-600);
}

.vn-swatches {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
}

.vn-swatch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.25rem 0.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.vn-swatch:hover {
  background: var(--color-gray-100);
}

.vn-swatch__chip {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--chip);
  box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.14), 0 2px 6px rgba(10, 10, 10, 0.1);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

#vn-color-woodgrain + .vn-swatch__chip {
  background: repeating-linear-gradient(96deg, #a7643a 0 5px, #93552f 5px 7px, #b2704a 7px 11px, #a0603a 11px 14px);
}

.vn-swatch input:checked + .vn-swatch__chip {
  transform: scale(1.06);
  box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.14), 0 0 0 3px var(--color-white), 0 0 0 5px var(--color-primary);
}

.vn-swatch input:focus-visible + .vn-swatch__chip {
  outline: 3px solid var(--color-primary);
  outline-offset: 6px;
}

.vn-swatch__name {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-600);
}

.vn-swatch input:checked ~ .vn-swatch__name {
  color: var(--color-black);
}

.vn-picker__note {
  margin-top: 0.85rem;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--color-gray-600);
}

.vn-controls__fine {
  font-size: var(--font-size-xs);
  line-height: 1.6;
  color: var(--color-gray-500);
}

/* Local rules */
.vn-rules {
  margin-top: 4.5rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--color-gray-200);
}

.vn-rules__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
  margin-bottom: 1.75rem;
}

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

.vn-rules__item dt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
  margin-bottom: 0.5rem;
}

.vn-rules__item dt::before {
  content: '';
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--color-primary);
}

.vn-rules__item dd {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  color: var(--color-gray-600);
}

.vn-rules__note {
  margin-top: 2rem;
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
}

/* --------------------------------------------------------------------------
   Good fit? Checks, lifespan chart, and other fences
   -------------------------------------------------------------------------- */
.vn-fit__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 4rem;
  align-items: center;
}

.vn-fit__heading {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
  margin-bottom: 1.5rem;
}

.vn-checks {
  display: grid;
  gap: 1.1rem;
  list-style: none;
}

.vn-checks li {
  position: relative;
  padding-left: 2.15rem;
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-gray-800);
}

.vn-checks li::before {
  position: absolute;
  top: 2px;
  left: 0;
  width: 22px;
  height: 22px;
  background-size: 12px;
}

.vn-checks strong {
  color: var(--color-black);
}

/* Lifespan chart: emphasis form, vinyl in the accent, the rest in gray. */
.vn-life {
  --vn-name-w: 172px;
  --vn-val-w: 88px;
  margin: 0;
  padding: 1.75rem 1.75rem 1.4rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 20px;
  box-shadow: 0 18px 46px rgba(10, 10, 10, 0.07);
}

.vn-life__head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1.1rem;
}

.vn-life__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
}

.vn-life__sub {
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
}

.vn-life__rows {
  list-style: none;
}

.vn-life__row {
  display: grid;
  grid-template-columns: var(--vn-name-w) minmax(0, 1fr) var(--vn-val-w);
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.6rem;
  margin: 0 -0.6rem;
  border-radius: 10px;
  transition: background-color var(--transition-fast);
}

.vn-life__row:hover {
  background: var(--color-gray-100);
}

.vn-life__row.is-vinyl {
  background: var(--color-primary-light);
}

.vn-life__name {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  color: var(--color-gray-900);
}

.vn-life__name a {
  color: var(--color-gray-900);
  text-decoration: underline;
  text-decoration-color: rgba(10, 10, 10, 0.2);
  text-underline-offset: 3px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.vn-life__name a:hover {
  color: var(--color-primary-dark);
  text-decoration-color: currentColor;
}

.vn-life__row.is-vinyl .vn-life__name {
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
}

.vn-life__meta {
  font-size: 11.5px;
  font-weight: var(--font-weight-normal);
  color: var(--color-gray-500);
}

.vn-life__meta abbr {
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.04em;
  color: var(--color-gray-600);
}

/* Hairline gridlines every 10 years on a 0-70 scale. */
.vn-life__track {
  position: relative;
  height: 30px;
  background-image: linear-gradient(90deg, rgba(10, 10, 10, 0.07) 1px, transparent 1px);
  background-size: calc(100% / 7) 100%;
}

.vn-life__bar {
  position: absolute;
  top: 50%;
  left: calc(var(--from) / 70 * 100%);
  width: calc((var(--to) - var(--from)) / 70 * 100%);
  height: 10px;
  margin-top: -5px;
  border-radius: 4px;
  background: #8c8c8c;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(0.2s + var(--i, 0) * 0.1s);
}

.vn-life__row.is-open .vn-life__bar {
  background: linear-gradient(90deg, #8c8c8c 70%, rgba(140, 140, 140, 0.2) 100%);
}

.vn-life__row.is-vinyl .vn-life__bar {
  background: var(--color-primary-dark);
}

.vn-life.fade-in-right--visible .vn-life__bar {
  transform: scaleX(1);
}

.vn-life__val {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
  color: var(--color-gray-900);
}

.vn-life__row.is-vinyl .vn-life__val {
  color: var(--color-primary-dark);
}

.vn-life__axis {
  display: flex;
  justify-content: space-between;
  margin: 0.4rem calc(var(--vn-val-w) + 1rem) 0 calc(var(--vn-name-w) + 1rem);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--color-gray-500);
}

.vn-life__axis span {
  width: 0;
  display: flex;
  justify-content: center;
  white-space: nowrap;
}

.vn-life__src {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--color-gray-200);
  font-size: var(--font-size-xs);
  line-height: 1.5;
  color: var(--color-gray-500);
}

/* When another fence fits better. */
.vn-else {
  margin-top: 4.5rem;
}

.vn-else__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
}

.vn-else__item {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.4rem 1.35rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 16px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.vn-else__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(10, 10, 10, 0.07);
}

.vn-else__item h4 {
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
  margin-bottom: 0.45rem;
}

.vn-else__item p {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  color: var(--color-gray-600);
  margin-bottom: 1rem;
}

.vn-else__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: auto;
}

.vn-else__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary-dark);
  transition: gap var(--transition-base);
}

.vn-else__links a:hover {
  gap: 0.6rem;
}

.vn-else__links svg {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   Our Work
   -------------------------------------------------------------------------- */
.vn-work {
  background: var(--color-black);
  color: var(--color-white);
}

.vn-work .section__title {
  color: var(--color-white);
}

.vn-work .section__subtitle {
  color: rgba(255, 255, 255, 0.68);
}

.vn-work__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.vn-work__head .vn-head-left {
  margin-bottom: 0;
}

.vn-work__head .vn-link-arrow {
  margin-bottom: 0.6rem;
}

.vn-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.vn-filter {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.vn-filter:hover {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.vn-filter[aria-pressed="true"] {
  color: var(--color-black);
  background: var(--color-white);
  border-color: var(--color-white);
}

/* Feature: the big photo, with a small caption on its lower edge. */
.vn-feature[hidden] {
  display: none;
}

.vn-feature__photo {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: var(--color-slate-800);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  color: var(--color-white);
}

.vn-feature__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.vn-feature__photo:hover img,
.vn-feature__photo:focus-visible img {
  transform: scale(1.035);
}

.vn-feature__photo:focus-visible,
.vn-tile__link:focus-visible {
  outline-offset: -4px;
}

.vn-feature__photo:hover .vn-zoom,
.vn-feature__photo:focus-visible .vn-zoom,
.vn-tile__link:hover .vn-zoom,
.vn-tile__link:focus-visible .vn-zoom {
  opacity: 1;
  transform: scale(1);
}

.vn-feature__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 6rem 2rem 1.75rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.4) 55%, rgba(0, 0, 0, 0) 100%);
}

.vn-feature__title {
  max-width: 640px;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
}

.vn-feature__note {
  max-width: 560px;
  font-size: var(--font-size-sm);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

/* More projects, once they're added. */
.vn-work__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 2rem;
  list-style: none;
}

.vn-tile {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--color-slate-800);
}

.vn-tile__link {
  display: block;
  color: var(--color-white);
}

.vn-tile__link img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.vn-tile__link:hover img,
.vn-tile__link:focus-visible img {
  transform: scale(1.045);
}

.vn-tile__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 3.5rem 1.25rem 1.1rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0) 100%);
}

.vn-tile__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
}

.vn-work__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.vn-work__foot p {
  max-width: 640px;
  font-size: var(--font-size-lg);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.vn-lightbox .lightbox__caption {
  bottom: 52px;
}

/* Visible the moment it opens, so focus can move to the close button. */
.vn-lightbox.lightbox--active {
  transition: opacity 0.3s ease, visibility 0s;
}

.vn-lightbox [hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.vn-faq__more {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 2.75rem auto 0;
}

.vn-more {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.3rem 3.25rem 1.3rem 1.4rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 16px;
  background: var(--color-white);
  transition: border-color var(--transition-base), background-color var(--transition-base), transform var(--transition-base);
}

.vn-more:hover {
  border-color: rgba(252, 127, 37, 0.5);
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

.vn-more__eyebrow {
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}

.vn-more strong {
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  color: var(--color-black);
}

.vn-more span:not(.vn-more__eyebrow) {
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--color-gray-600);
}

.vn-more svg {
  position: absolute;
  top: 1.35rem;
  right: 1.3rem;
  color: var(--color-primary-dark);
  transition: transform var(--transition-base);
}

.vn-more:hover svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Estimate
   -------------------------------------------------------------------------- */
.vn-contact {
  position: relative;
  overflow: hidden;
}

/* A soft warm glow behind the form. */
.vn-contact::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(252, 127, 37, 0.12), rgba(252, 127, 37, 0));
  pointer-events: none;
}

.vn-contact__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas:
    "head form"
    "route form"
    "side form";
  grid-template-rows: auto auto 1fr;
  column-gap: 4rem;
  row-gap: 2.25rem;
}

.vn-contact__head {
  grid-area: head;
}

.vn-route {
  grid-area: route;
}

.vn-contact__side {
  grid-area: side;
}

.vn-contact__form {
  grid-area: form;
}

.vn-contact__title {
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.7rem);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

.vn-contact__text {
  max-width: 500px;
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.72);
}

/* How it works: a connected route of four stops. */
.vn-route {
  list-style: none;
  counter-reset: vn-route;
}

.vn-route li {
  position: relative;
  padding: 0 0 1.5rem 3.1rem;
  counter-increment: vn-route;
}

.vn-route li::before {
  content: counter(vn-route);
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  background: var(--color-slate-900);
}

.vn-route li::after {
  content: '';
  position: absolute;
  top: 32px;
  bottom: 2px;
  left: 14px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(252, 127, 37, 0.55), rgba(255, 255, 255, 0.1));
}

.vn-route li:last-child {
  padding-bottom: 0;
}

.vn-route li:last-child::after {
  display: none;
}

.vn-route h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-bottom: 0.3rem;
}

.vn-route p {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.66);
}

.vn-route a {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
}

.vn-review {
  margin: 0 0 1.5rem;
  padding: 1.5rem 1.6rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.vn-review__stars {
  font-size: var(--font-size-base);
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}

.vn-review blockquote {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.88);
}

.vn-review figcaption {
  margin-top: 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

.vn-assure {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
  list-style: none;
}

.vn-assure li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: var(--font-size-sm);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
}

/* --------------------------------------------------------------------------
   Load-in: the hero photo eases into place (transform only, so it never
   delays the LCP paint); the glance bar rises in after it.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .vn-hero__img {
    animation: vnSettle 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .vn-glance {
    animation: vnRise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
  }
}

@keyframes vnSettle {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

@keyframes vnRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Tablet and small laptop
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .vn-hero {
    min-height: 640px;
  }

  .vn-hero__media::after {
    background:
      linear-gradient(90deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.75) 45%, rgba(10, 10, 10, 0.3) 75%, rgba(10, 10, 10, 0.1) 100%),
      linear-gradient(180deg, rgba(10, 10, 10, 0.45) 0%, rgba(10, 10, 10, 0) 24%),
      linear-gradient(0deg, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0) 34%);
  }

  .vn-hero__credit {
    display: none;
  }

  .vn-glance__item {
    padding: 1.2rem 1.2rem;
  }

  .vn-why__grid,
  .vn-fit__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .vn-perks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vn-cmp {
    --vn-label-w: 120px;
  }

  .vn-cmp__head {
    padding: 1.5rem 1.25rem 0.5rem;
  }

  .vn-cmp__status {
    min-height: 2.6em;
  }

  .vn-cmp__table tbody th,
  .vn-cmp__table td {
    padding: 0.95rem 1.25rem;
  }

  .vn-cmp__table tbody th {
    padding-left: 0;
    padding-right: 0.75rem;
  }

  .vn-year__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 3.75rem;
  }

  .vn-year__list::before {
    display: none;
  }

  .vn-year__item::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 0;
    right: -2rem;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #7f99b2, #ebbd73);
  }

  .vn-year__item:nth-child(2)::before {
    right: 0;
    background: linear-gradient(90deg, #ebbd73, #fc7f25);
  }

  .vn-year__item:nth-child(3)::before {
    background: linear-gradient(90deg, #fc7f25, #ecab63);
  }

  .vn-year__item:nth-child(4)::before {
    right: 0;
    background: linear-gradient(90deg, #ecab63, #b48c6c);
  }

  .vn-studio__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .vn-stage-col,
  .vn-controls {
    position: static;
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
  }

  .vn-rules__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vn-else__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vn-work__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vn-contact__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "form"
      "route"
      "side";
    grid-template-rows: none;
  }

  .vn-contact__side {
    max-width: 640px;
  }
}

/* --------------------------------------------------------------------------
   Phones
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .vn-hero {
    display: block;
    min-height: 0;
    padding: var(--header-height) 0 4.5rem;
    background:
      radial-gradient(70% 45% at 100% 40%, rgba(252, 127, 37, 0.12), transparent 70%),
      linear-gradient(180deg, #151515 0%, var(--color-black) 100%);
  }

  .vn-hero__media {
    position: relative;
    inset: auto;
    z-index: 0;
    aspect-ratio: 4 / 3;
  }

  .vn-hero__media::after {
    background: linear-gradient(0deg, #151515 0%, rgba(21, 21, 21, 0.55) 22%, rgba(21, 21, 21, 0) 48%);
  }

  .vn-hero__img {
    object-position: 50% 50%;
  }

  .vn-hero__credit {
    display: flex;
    top: auto;
    bottom: 1rem;
    left: var(--container-padding);
    right: auto;
    align-items: flex-start;
  }

  .vn-hero__content {
    position: relative;
    padding-top: 1.25rem;
  }

  .vn-crumbs ol {
    margin-bottom: var(--spacing-lg);
  }

  .vn-hero__title {
    font-size: clamp(2rem, 1.5rem + 3vw, 2.5rem);
  }

  .vn-hero__lede {
    font-size: var(--font-size-base);
  }

  .vn-hero__actions .btn {
    flex: 1 1 100%;
  }

  .vn-glance-wrap {
    position: static;
    transform: none;
    margin-top: 2.25rem;
  }

  .vn-glance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    box-shadow: none;
  }

  .vn-glance__item {
    min-height: 0;
    padding: 1.05rem 1.1rem;
  }

  .vn-glance__item + .vn-glance__item {
    border-left: 0;
  }

  .vn-glance__item:nth-child(even) {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .vn-glance__item:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .vn-glance__chips i {
    width: 20px;
    height: 20px;
  }

  .vn-glance__chips i + i {
    margin-left: -6px;
  }

  .vn-why {
    padding-top: var(--spacing-4xl);
  }

  .vn-upkeep {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .vn-upkeep__split {
    grid-template-columns: minmax(0, 1fr);
  }

  .vn-upkeep__vs {
    justify-self: center;
    margin: -0.4rem 0;
  }

  .vn-perks {
    grid-template-columns: 1fr;
    margin-top: 3rem;
  }

  .vn-age {
    width: 100%;
  }

  .vn-age label {
    padding: 0.75rem 0.5rem;
  }

  /* Comparison: the label rides above each pair of cells. */
  .vn-cmp {
    --vn-label-w: 0px;
  }

  .vn-cmp::before,
  .vn-cmp::after {
    border-radius: 16px;
  }

  .vn-cmp__head {
    padding: 1.1rem 0.85rem 0.25rem;
  }

  .vn-cmp__status {
    min-height: 3.9em;
    font-size: var(--font-size-sm);
  }

  .vn-cmp__eyebrow {
    font-size: 10.5px;
    letter-spacing: 0.08em;
  }

  .vn-cmp__table,
  .vn-cmp__table tbody {
    display: block;
  }

  .vn-cmp__table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .vn-cmp__table tbody th {
    grid-column: 1 / -1;
    width: auto;
    padding: 0.85rem 0.85rem 0;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gray-500);
  }

  .vn-cmp__table td {
    padding: 0.35rem 0.85rem 0.9rem;
    font-size: 13px;
    border-top: 0;
  }

  .vn-cmp__ours::before {
    display: none;
  }

  .vn-year {
    margin-top: 3.75rem;
  }

  .vn-year__title {
    text-align: left;
    font-size: var(--font-size-xl);
  }

  .vn-year__list {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 0 0 0 3.5rem;
  }

  .vn-year__list::before {
    display: block;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 1.2rem;
    right: auto;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, #7f99b2 0%, #ebbd73 40%, #fc7f25 62%, #b48c6c 100%);
  }

  .vn-year__item::before,
  .vn-year__item:nth-child(n)::before {
    display: none;
  }

  .vn-year__month {
    top: 0;
    left: -3.5rem;
    width: 2.7rem;
    padding: 0.3rem 0;
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .vn-year__more {
    text-align: left;
  }

  /* Studio: compact chips on phones; the readout carries the details. */
  .vn-stage__svg {
    margin-top: 1rem;
  }

  .vn-stage__readout {
    padding: 1rem 1.15rem 1.1rem;
  }

  .vn-readout__title {
    font-size: var(--font-size-lg);
  }

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

  .vn-opt__body {
    height: 100%;
    padding: 0.8rem 0.8rem 0.8rem 2.4rem;
  }

  .vn-opt__body::before {
    top: 0.95rem;
    left: 0.8rem;
    width: 16px;
    height: 16px;
  }

  .vn-opt__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .vn-opt__name {
    font-size: var(--font-size-sm);
    line-height: 1.3;
  }

  .vn-opt__text {
    display: none;
  }

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

  .vn-rules {
    margin-top: 3.5rem;
    padding-top: 2.25rem;
  }

  .vn-rules__title {
    font-size: var(--font-size-xl);
  }

  .vn-rules__list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .vn-fit__heading {
    font-size: var(--font-size-xl);
  }

  /* Lifespan chart: name and value on one line, the bar beneath. */
  .vn-life {
    padding: 1.4rem 1.15rem 1.15rem;
  }

  .vn-life__row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0.4rem;
    padding: 0.7rem 0.6rem;
  }

  .vn-life__track {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 18px;
  }

  .vn-life__val {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  .vn-life__axis {
    margin: 0.4rem 0 0;
  }

  .vn-life__axis span:first-child {
    justify-content: flex-start;
  }

  .vn-life__axis span:last-child {
    justify-content: flex-end;
  }

  .vn-else {
    margin-top: 3.5rem;
  }

  .vn-else__list {
    grid-template-columns: 1fr;
  }

  .vn-work__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .vn-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 calc(var(--container-padding) * -1) 1.5rem;
    padding: 0 var(--container-padding);
    scrollbar-width: none;
  }

  .vn-filters::-webkit-scrollbar {
    display: none;
  }

  .vn-filter {
    flex-shrink: 0;
  }

  .vn-feature__photo {
    border-radius: 16px;
  }

  .vn-feature__photo img {
    aspect-ratio: 4 / 3;
  }

  /* On phones the caption sits under the photo instead of over it. */
  .vn-feature__caption {
    position: static;
    padding: 1.1rem 1.25rem 1.3rem;
    background: none;
  }

  .vn-work__grid {
    grid-template-columns: 1fr;
  }

  .vn-work__foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .vn-work__foot p {
    font-size: var(--font-size-base);
  }

  .vn-faq__more {
    grid-template-columns: 1fr;
  }

  .vn-assure {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .vn-glance__value {
    font-size: var(--font-size-lg);
  }

  .vn-glance__label {
    font-size: var(--font-size-xs);
  }

  .vn-cmp__head {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion: everything shows in its final state.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .vn-upkeep__chips li,
  .vn-life__bar {
    transform: none;
    transition: none;
  }

  .vn-fig,
  .vn-mini,
  .vn-age__thumb,
  .vn-perk,
  .vn-else__item,
  .vn-more,
  .vn-feature__photo img,
  .vn-tile__link img {
    transition: none;
  }

  .vn-grade:has(#vn-age-later:checked) .vn-cmp__later {
    animation: none;
  }
}
