/* The new standalone pages (/contact, /our-work, /window-tint-killeen, /resources) in the builder
   page's language (docs/superpowers/specs/2026-10-29-site-restructure). They reuse css/page-sections.css's
   .ps-* components; this file holds only what differs on a page of its own. */
body.site-page {
  --ps-inset: clamp(18px, 5vw, 72px);
}
/* No background line on these pages, so no room for one on top. */
body.site-page .ps-section {
  padding-block: clamp(76px, 9vw, 132px);
}
body.site-page .ps-section h1 {
  margin-top: 14px;
  color: var(--text);
  font: 700 clamp(2.2rem, 4.6vw, 3.6rem) / 0.95 var(--disp);
  text-transform: uppercase;
}
body.site-page .ps-section h1 em {
  color: var(--red-hot);
  font-style: normal;
}

/* ---- Contact: no box, the installer's lines on hairlines (from css/home.css) ------------- */
body.contact-page .hm-contact {
  border-top: 1px solid var(--line-soft);
}
body.contact-page .hm-contact .contact-grid {
  gap: 36px clamp(32px, 6vw, 96px);
}
body.contact-page .hm-contact-rows {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
body.contact-page .hm-contact .c-row {
  padding-inline: 0;
  border-bottom-color: var(--line);
}
body.contact-page .hm-contact .c-row:hover {
  padding-left: 0;
  background: none;
}
body.contact-page .hm-contact a.c-row:hover .val { color: var(--red-hot); }
body.contact-page .hm-contact .hm-contact-book {
  display: flex;
  width: fit-content;
  margin-block: 26px;
}

/* ---- Final call to action (copied from css/home.css's .hm-final-actions) ---- */
.site-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 767px) {
  .site-final-actions { width: 100%; }
}
.site-final-call {
  margin-top: 22px;
  color: var(--muted);
}
.site-final-call a {
  border-bottom: 1px solid var(--red);
  color: var(--text);
}

/* ---- Our work: the photo grid and the wrap jobs ------------------------------------------- */
body.work-page .ow-intro { padding-bottom: clamp(40px, 5vw, 72px); }
body.work-page .ow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(28px, 4vw, 44px);
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  body.work-page .ow-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (min-width: 1024px) {
  body.work-page .ow-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
body.work-page .ow-tile {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
}
body.work-page .ow-tile picture,
body.work-page .ow-tile img {
  display: block;
  width: 100%;
  height: 100%;
}
body.work-page .ow-tile img {
  object-fit: cover;
  transition: transform 0.35s ease;
}
body.work-page .ow-tile:hover img,
body.work-page .ow-tile:focus-visible img { transform: scale(1.03); }
body.work-page .ow-tile:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  body.work-page .ow-tile img { transition: none; }
  body.work-page .ow-tile:hover img,
  body.work-page .ow-tile:focus-visible img { transform: none; }
}
body.work-page .ow-wraps { padding-top: 0; }
body.work-page .ow-wrap-grid {
  display: grid;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 44px);
}
@media (min-width: 1024px) {
  body.work-page .ow-wrap-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
}
body.work-page .wp-cd-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1024px) {
  body.work-page .wp-cd-pair { grid-template-columns: minmax(0, 1fr); }
}
body.work-page .ow-a3,
body.work-page .wp-cd-fig { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--panel); }
body.work-page .ow-a3 img,
body.work-page .wp-cd-fig img { display: block; width: 100%; height: auto; }
body.work-page .wp-cd-fig figcaption { position: absolute; left: 8px; bottom: 8px; padding: 6px 10px; border-left: 2px solid var(--red); border-radius: 2px; background: rgba(10, 10, 14, .82); color: var(--text); font: 600 .72rem / 1 var(--body); letter-spacing: .2em; text-transform: uppercase; }

/* ---- Window tint: the two films (copied from css/home.css) ---- */
/* The two films, the infrared number leading each. */
body.tint-page .hm-pk-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-block: 1px solid var(--line);
}
body.tint-page .hm-pk {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 20px 0;
}
body.tint-page .hm-pk + .hm-pk {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
/* styles.css's .service-pkg-card:hover skin repaints any card it touches. Here a hover changes
   nothing about the card itself; only its button responds. */
body.tint-page .hm-pk-pair .hm-pk:hover {
  border-color: var(--line);
  background: none;
  box-shadow: none;
}
/* Lit like the builder page's Super card, hover included. */
body.tint-page .hm-pk-pair .hm-pk-feat,
body.tint-page .hm-pk-pair .hm-pk-feat:hover {
  background: linear-gradient(160deg, rgba(220, 38, 38, 0.16), rgba(20, 20, 27, 0.55) 60%);
  box-shadow: inset 0 2px 0 var(--red);
}
body.tint-page .hm-pk-tag {
  align-self: flex-start;
  padding-block: 5px;
  color: var(--faint);
  font: 600 0.68rem / 1 var(--body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
body.tint-page .hm-pk-feat .hm-pk-tag {
  padding-inline: 9px;
  background: var(--red);
  color: #fff;
  transform: skewX(-10deg);
}
body.tint-page .hm-pk h3 {
  color: var(--text);
  font: 700 1.25rem / 1 var(--disp);
  text-transform: uppercase;
}
body.tint-page .hm-pk-film {
  color: var(--red-hot);
  font: 600 0.7rem / 1.2 var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
body.tint-page .hm-pk-ir {
  margin-top: 6px;
  color: var(--text);
  font: 700 clamp(3rem, 5.4vw, 4.6rem) / 0.8 var(--disp);
}
body.tint-page .hm-pk-ir span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font: 600 0.68rem / 1.3 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
body.tint-page .hm-pk-price {
  margin-top: 4px;
  color: var(--text);
  font: 700 1.5rem / 1 var(--disp);
}
body.tint-page .hm-pk-price small {
  margin-left: 8px;
  color: var(--faint);
  font: 600 0.66rem / 1 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
body.tint-page .hm-pk-select {
  align-self: flex-start;
  margin-top: 6px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid var(--red);
  background: none;
  color: var(--text);
  cursor: pointer;
  font: 600 0.7rem / 1 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
body.tint-page .hm-pk-select:hover,
body.tint-page .hm-pk-select:focus-visible { color: var(--red-hot); }
body.tint-page .hm-pk-warranty {
  color: var(--muted);
  font: 600 0.66rem / 1 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
body.tint-page .hm-pk-select { display: inline-block; text-decoration: none; }

/* ---- The comfort science: this page's header and mobile bar (copied from css/home.css) ---- */
body.tint-page .comfort-science {
  --cs-top: 73px;
  --cs-bottom: 0px;
}
@media (min-width: 768px) and (max-width: 839px) {
  body.tint-page .comfort-science { --cs-top: 111px; }
}
@media (min-width: 840px) and (max-width: 959px) {
  body.tint-page .comfort-science { --cs-top: 91px; }
}
@media (max-width: 639px) {
  body.tint-page .comfort-science { --cs-bottom: 82px; }
}
@media (max-width: 359px) {
  body.tint-page .comfort-science { --cs-bottom: 96px; }
}

/* ---- Window tint: the hero, the films and the short sections --------------------------------
   The Tesla is shown whole, never cropped: drawn at most 108vh wide, so its 3:2 frame is never
   taller than 72% of the screen (the preload's sizes say the same). Its edges fade into the stage
   and the words sit on the faded road. */
body.tint-page .tp-hero {
  position: relative;
  isolation: isolate;
  padding-bottom: clamp(36px, 6vw, 72px);
  background: var(--bg);
}
body.tint-page .tp-hero-photo {
  display: block;
  width: min(100%, 108vh);
  width: min(100%, 108svh);
  margin-inline: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%), linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 62%, transparent 100%), linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}
body.tint-page .tp-hero-photo img {
  display: block;
  width: 100%;
  height: auto;
}
body.tint-page .tp-hero-in {
  margin-top: clamp(-80px, -6vw, -28px);
}
body.tint-page .tp-hero h1 {
  color: var(--text);
  font: 700 clamp(2.2rem, 5.4vw, 4.6rem) / 0.92 var(--disp);
  text-transform: uppercase;
  text-wrap: balance;
}
body.tint-page .tp-hero h1 em {
  color: var(--red-hot);
  font-style: normal;
}
body.tint-page .tp-hero-sub {
  max-width: 52ch;
  margin-block: 14px 22px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
@media (max-width: 639px) {
  body.tint-page .tp-hero { padding-bottom: calc(82px + 28px); }
}
@media (max-width: 359px) {
  body.tint-page .tp-hero { padding-bottom: calc(96px + 28px); }
}
body.tint-page .tp-films h2,
body.tint-page .tp-what h2,
body.tint-page .tp-shades h2 { margin-bottom: clamp(18px, 3vw, 32px); }
body.tint-page .tp-films-foot { margin-top: 26px; }
body.tint-page .tp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 24px;
}
@media (max-width: 639px) {
  body.tint-page .hm-pk-pair { grid-template-columns: minmax(0, 1fr); }
  body.tint-page .hm-pk + .hm-pk { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  body.tint-page .hm-pk + .hm-pk.hm-pk-feat { padding-inline: 16px; }
}

/* From 1024px the words sit beside the photo: copy left, the photo whole on the right at 56vw
   (the preload's and the sources' sizes say the same), no mask and no overlap. */
@media (min-width: 1024px) {
  body.tint-page .tp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56vw;
    align-items: center;
    padding-bottom: 0;
  }
  body.tint-page .tp-hero-photo {
    grid-column: 2;
    grid-row: 1;
    width: 56vw;
    -webkit-mask-image: none;
    mask-image: none;
  }
  body.tint-page .tp-hero-in {
    grid-column: 1;
    grid-row: 1;
    margin-top: 0;
    padding-inline: var(--ps-inset) 24px;
  }
  body.tint-page .tp-hero h1 { font-size: clamp(2.4rem, 3.6vw, 4.2rem); }
}

/* ---- Resources: three groups of linked pages ------------------------------------------------ */
body.resources-page .rs-intro { padding-bottom: clamp(24px, 4vw, 48px); }
/* The header is sticky: 73px, up to 111px at 768-819px. The section's own top padding is kept short
   so the jump from the menu does not leave a gap this tall above the heading. */
body.resources-page .rs-group {
  scroll-margin-top: 124px;
  padding-top: clamp(24px, 3vw, 40px);
}
body.resources-page .rs-group h2 {
  margin: 14px 0 clamp(18px, 3vw, 32px);
  color: var(--text);
  font: 700 clamp(1.8rem, 3.6vw, 2.8rem) / 1 var(--disp);
  text-transform: uppercase;
}
body.resources-page .rs-group h2 em {
  color: var(--red-hot);
  font-style: normal;
}
body.resources-page .rs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.resources-page .rs-entry {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 20px 22px;
  text-decoration: none;
}
body.resources-page .rs-entry:hover,
body.resources-page .rs-entry:focus-visible { border-color: var(--red); }
body.resources-page .rs-title {
  color: var(--text);
  font: 700 1.2rem / 1.15 var(--disp);
  text-transform: uppercase;
}
body.resources-page .rs-sum {
  font-size: 0.95rem;
  line-height: 1.55;
}
/* Service areas read as a list of places: a compact grid of ruled entries, not article panels. */
body.resources-page .rs-places {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(14px, 3vw, 32px);
}
@media (min-width: 768px) { body.resources-page .rs-places { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { body.resources-page .rs-places { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
body.resources-page .rs-place {
  height: auto;
  gap: 6px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
body.resources-page .rs-place:hover,
body.resources-page .rs-place:focus-visible { border-top-color: var(--red); }
body.resources-page .rs-place .rs-title { font-size: 1.05rem; }
body.resources-page .rs-place .rs-sum {
  font-size: 0.8rem;
  line-height: 1.45;
}
