/* ============================================================
   Tolsma Equipment — Global Styles
   ============================================================ */

:root {
  --red: #e1161d;
  --red-dark: #b01015;
  --red-darker: #8c0d11;
  --black: #0c0c0e;
  --ink: #141417;
  --ink-2: #1c1c20;
  --steel: #55555e;
  --gray: #6e6e78;
  --line: #e4e4e8;
  --paper: #f4f4f6;
  --white: #ffffff;

  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --shadow-sm: 0 1px 3px rgba(12, 12, 14, 0.08);
  --shadow-md: 0 6px 24px rgba(12, 12, 14, 0.12);
  --shadow-lg: 0 16px 48px rgba(12, 12, 14, 0.18);

  --container: 1200px;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */

h1, h2, h3, .h-style {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--ink);
}

.section-title .accent { color: var(--red); }

.section-kicker {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  color: var(--red);
  margin-bottom: 6px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.lead {
  color: var(--gray);
  font-size: 1.06rem;
  max-width: 640px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  padding: 14px 28px;
  border: none;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 14px 100%);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }

/* Outline buttons: the parent background is the border color; the
   ::after pseudo paints the interior with a matching inset clip-path
   (a plain border/box-shadow would be cut off by the parent clip). */
.btn-outline,
.btn-outline-dark {
  position: relative;
  isolation: isolate;
}

.btn-outline::after,
.btn-outline-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: polygon(3px 2px, calc(100% - 15.5px) 2px, calc(100% - 3px) calc(100% - 2px), 15.5px calc(100% - 2px));
  transition: opacity 0.2s ease;
}

.btn-outline { background: var(--white); color: var(--white); }
.btn-outline::after { background: var(--black); }
.btn-outline:hover { color: var(--black); }
.btn-outline:hover::after { opacity: 0; }

.btn-outline-dark { background: var(--ink); color: var(--ink); }
.btn-outline-dark::after { background: var(--white); }
.btn-outline-dark:hover { color: var(--white); }
.btn-outline-dark:hover::after { opacity: 0; }

.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: #e8e8ec; }

.btn-sm { padding: 10px 20px; font-size: 0.95rem; }

.text-link {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}
.text-link:hover { color: var(--red-dark); }
.text-link .arrow { transition: transform 0.2s ease; }
.text-link:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 3px solid var(--red);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

/* The logo is the priority element in the bar: it must never shrink or
   become unreadable. flex-shrink: 0 + max-width: none stop the flex row
   from scaling it down; the nav compresses instead (breakpoints below). */
.logo { flex-shrink: 0; display: flex; align-items: center; }
.logo img, .logo svg {
  /* Heights include the 2-unit clear space built into the logo file. */
  height: 50px;
  width: auto;
  max-width: none;
}

.main-nav ul {
  display: flex;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.02rem;
  color: #d6d6dc;
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--white); }

.header-contact {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #d6d6dc;
  font-size: 0.92rem;
  white-space: nowrap;
}

.header-contact .contact-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.header-contact .icon { color: var(--red); flex-shrink: 0; }

.header-contact .phone {
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.header-contact .phone:hover { color: var(--red); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px auto;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (full-bleed cinematic) ---------- */

.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  animation: hero-zoom 16s ease-out both;
}

.hero-bg .hero-art {
  position: absolute;
  left: 0;
  right: 0;
  top: -9%;
  height: 118%;              /* headroom for scroll parallax */
  width: 100%;
  object-fit: cover;
  object-position: 62% center;
  will-change: transform;
}

/* readability vignette over the full-bleed photo */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: -10% 0;
  background:
    linear-gradient(90deg, rgba(12, 12, 14, 0.88) 0%, rgba(12, 12, 14, 0.55) 34%, rgba(12, 12, 14, 0.12) 62%, rgba(12, 12, 14, 0.35) 100%),
    linear-gradient(0deg, rgba(12, 12, 14, 0.85) 0%, rgba(12, 12, 14, 0) 34%),
    linear-gradient(180deg, rgba(12, 12, 14, 0.5) 0%, rgba(12, 12, 14, 0) 22%);
}

/* film grain (inline SVG noise) */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.06'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* red diagonal slashes sweeping in */
.hero-slashes { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.hero-slashes span {
  position: absolute;
  top: -12%;
  bottom: -12%;
  background: var(--red);
  transform: skewX(-18deg);
}

.hero-slashes .s1 { width: 110px; right: 24%; opacity: 0.85; animation: slash-in 0.9s cubic-bezier(0.22, 0.9, 0.3, 1) 0.15s both; }
.hero-slashes .s2 { width: 20px; right: calc(24% + 140px); opacity: 0.6; animation: slash-in 0.9s cubic-bezier(0.22, 0.9, 0.3, 1) 0.3s both; }
.hero-slashes .s3 { width: 7px; right: calc(24% + 190px); opacity: 0.4; animation: slash-in 0.9s cubic-bezier(0.22, 0.9, 0.3, 1) 0.42s both; }

@keyframes slash-in {
  from { transform: skewX(-18deg) translateX(55vw); }
  to { transform: skewX(-18deg) translateX(0); }
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  flex: 1;
  min-height: clamp(540px, calc(100svh - 148px), 840px);
  /* top/bottom only — a shorthand here would wipe out .container's side padding */
  padding-top: 56px;
  padding-bottom: 72px;
  width: 100%;
}

.hero-copy { max-width: 680px; will-change: transform, opacity; }

.hero-kicker {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.92rem;
  color: #e6e6ec;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--red);
  transform: skewX(-18deg);
  flex-shrink: 0;
}

.hero-copy h1 {
  font-size: clamp(3rem, 7vw, 5.2rem);
  margin-bottom: 22px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}

.hero-copy h1 .accent { color: var(--red); }

/* kinetic word-by-word reveal */
.hero-copy h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }

.hero-copy h1 .w {
  display: inline-block;
  transform: translateY(115%);
  animation: word-up 0.75s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

.hero-copy h1 .line:nth-child(1) .w:nth-child(1) { animation-delay: 0.1s; }
.hero-copy h1 .line:nth-child(1) .w:nth-child(2) { animation-delay: 0.2s; }
.hero-copy h1 .line:nth-child(2) .w:nth-child(1) { animation-delay: 0.32s; }
.hero-copy h1 .line:nth-child(2) .w:nth-child(2) { animation-delay: 0.42s; }

@keyframes word-up { to { transform: translateY(0); } }

.hero-sub {
  color: #d3d3db;
  font-size: 1.14rem;
  max-width: 460px;
  margin-bottom: 34px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
  animation: rise-in 0.65s cubic-bezier(0.22, 0.9, 0.3, 1) 0.55s both;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; animation: rise-in 0.65s cubic-bezier(0.22, 0.9, 0.3, 1) 0.68s both; }

/* ---------- Hero ticker ---------- */

.hero-ticker {
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
}

.hero-ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 13px 0 13px 30px;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.92rem;
  color: #cfcfd7;
  white-space: nowrap;
}

.ticker-item::after {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--red);
  transform: skewX(-18deg);
  margin-left: 30px;
  flex-shrink: 0;
}

@keyframes ticker-scroll { to { transform: translateX(-50%); } }

/* ---------- Stats bar ---------- */

.stats-bar {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-60deg, transparent 0 34px, rgba(255, 255, 255, 0.02) 34px 38px);
}

.stats-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 26px 20px;
  text-align: center;
  position: relative;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 2px;
  background: var(--red);
  transform: skewX(-18deg);
  opacity: 0.7;
}

.stat .stat-value {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--white);
  line-height: 1;
}

.stat .stat-value .accent { color: var(--red); }

.stat .stat-label {
  color: #9c9ca6;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ---------- Category tiles ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cat-tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
  box-shadow: var(--shadow-sm);
  background: var(--ink);
}

.cat-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.cat-tile:hover img { transform: scale(1.06); }

.cat-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 12, 14, 0.85) 0%, rgba(12, 12, 14, 0.25) 45%, rgba(12, 12, 14, 0.05) 70%);
  transition: background 0.3s ease;
}

.cat-tile .cat-body {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 2;
  color: var(--white);
}

.cat-tile .cat-body::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  background: var(--red);
  transform: skewX(-18deg);
  margin-bottom: 10px;
  transition: width 0.3s ease;
}

.cat-tile:hover .cat-body::before { width: 68px; }

.cat-tile h3 {
  font-size: 1.55rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-tile h3 .arrow {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cat-tile:hover h3 .arrow { opacity: 1; transform: translateX(0); }

.cat-tile p {
  color: #cfcfd6;
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ---------- Visit section ---------- */

.visit-photo {
  position: relative;
  isolation: isolate;
}

.visit-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
  box-shadow: var(--shadow-md);
}

.visit-photo .visit-photo-accent {
  position: absolute;
  top: 22px;
  left: -18px;
  right: 18px;
  bottom: -18px;
  border: 3px solid var(--red);
  z-index: -1;
}

.visit-hours {
  margin-top: 22px;
  border-collapse: collapse;
  min-width: min(300px, 100%); /* a fixed 300px overflowed 320px phones */
}

.visit-hours td {
  padding: 8px 24px 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--gray);
}

.visit-hours td:last-child {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
  padding-right: 0;
}

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section-alt { background: var(--paper); }

/* ---------- Inventory cards ---------- */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.inv-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}

.inv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.inv-card .inv-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #fafafb 0%, #ededf0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.inv-card .inv-img img,
.inv-card .inv-img svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inv-card .inv-img img { transition: transform 0.4s ease; }
.inv-card:hover .inv-img img { transform: scale(1.06); }

.inv-badge {
  position: absolute;
  top: 12px;
  left: 0;
  z-index: 2;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  padding: 4px 14px 4px 12px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.inv-badge.used { background: var(--red); }

.inv-card .inv-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.inv-card h3 {
  font-size: 1.25rem;
  color: var(--ink);
}

.inv-card .inv-specs {
  color: var(--gray);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.inv-card .inv-price {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--red);
  margin-top: auto;
  padding-top: 8px;
}

.inv-card .inv-price .price-note {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--gray);
  letter-spacing: 0;
}

/* ---------- Value props ---------- */

.home-featured-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

.home-featured-layout .featured-grid {
  grid-template-columns: repeat(2, 1fr);
}

.value-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  box-shadow: var(--shadow-sm);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.value-item { display: flex; gap: 14px; align-items: flex-start; }

.value-item .icon {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}

.value-item h3 { font-size: 1.05rem; letter-spacing: 0.04em; }

.value-item p { color: var(--gray); font-size: 0.88rem; line-height: 1.45; }

/* ---------- Financing banner ---------- */

.finance-banner {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}

.finance-banner .finance-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  filter: grayscale(1) brightness(2.4) contrast(1.15);
  opacity: 0.5;
  z-index: 0;
}

.finance-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    repeating-linear-gradient(-60deg, transparent 0 26px, rgba(255,255,255,0.025) 26px 30px),
    linear-gradient(90deg, var(--red) 0%, var(--red) 52%, transparent 52.1%);
  clip-path: polygon(0 0, 58% 0, 47% 100%, 0 100%);
}

.finance-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  /* top/bottom only — a shorthand here would wipe out .container's side padding */
  padding-top: 40px;
  padding-bottom: 40px;
  color: var(--white);
}

.finance-copy { display: flex; align-items: center; gap: 22px; }

.finance-copy .icon-circle {
  width: 64px;
  height: 64px;
  border: 3px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.finance-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

.finance-copy p { color: rgba(255,255,255,0.88); font-size: 0.98rem; max-width: 480px; }

/* ---------- Testimonials ---------- */

.testimonial-band { background: var(--paper); }

.testimonial-grid {
  display: grid;
  grid-template-columns: 320px repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.testimonial-intro h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
}
.testimonial-intro h2 .accent { color: var(--red); }

.stars {
  color: var(--red);
  letter-spacing: 2px;
  font-size: 1.1rem;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stars .score { color: var(--ink); font-weight: 700; font-size: 0.95rem; letter-spacing: 0; }
.stars .score span { font-weight: 400; color: var(--gray); }

.quote-card { position: relative; padding-left: 34px; }

.quote-card .qmark {
  position: absolute;
  left: 0;
  top: -4px;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--red);
  line-height: 1;
}

.quote-card p { font-size: 0.95rem; color: var(--ink-2); margin-bottom: 12px; }

.quote-card cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--gray);
}
.quote-card cite strong { color: var(--ink); }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding: 56px 0;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  right: -60px;
  width: 220px;
  background: var(--red);
  transform: skewX(-18deg);
  opacity: 0.92;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  right: 180px;
  width: 18px;
  background: var(--red);
  transform: skewX(-18deg);
  opacity: 0.55;
}

.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.page-hero h1 .accent { color: var(--red); }
.page-hero p { color: #c9c9d1; max-width: 560px; margin-top: 10px; position: relative; z-index: 2; }

/* ---------- Inventory page ---------- */

.inv-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.inv-toolbar .filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.92rem;
  padding: 8px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--steel);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 100%, 9px 100%);
  transition: background 0.18s ease, color 0.18s ease;
}

.chip:hover { border-color: var(--steel); color: var(--ink); }

.chip.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.inv-toolbar select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.inv-toolbar select#inv-sort { margin-left: auto; }

.inv-count { color: var(--gray); font-size: 0.9rem; }

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.inv-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--gray);
  padding: 60px 0;
}

/* ---------- Unit detail page ---------- */

.unit-section { padding-top: 40px; }

.back-link { margin-bottom: 24px; display: inline-flex; }
.back-link .arrow-flip { display: inline-flex; transform: rotate(180deg); }

.unit-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: start;
}

.unit-gallery { position: sticky; top: calc(var(--header-h) + 24px); }

.unit-main-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #fafafb 0%, #ededf0 100%);
  border: 1px solid var(--line);
  overflow: hidden;
}

.unit-main-img img, .unit-main-img svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(12, 12, 14, 0.65);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  transition: background 0.18s ease;
}
.gal-nav:hover { background: var(--red); }
.gal-nav.prev { left: 0; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.gal-nav.next { right: 0; clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%); }

.gal-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(12, 12, 14, 0.7);
  color: var(--white);
  font-size: 0.8rem;
  padding: 3px 10px;
  letter-spacing: 0.05em;
}

.unit-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.thumb {
  width: 72px;
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  background: none;
  overflow: hidden;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.active { border-color: var(--red); opacity: 1; }

.unit-info { display: flex; flex-direction: column; gap: 14px; }

.unit-info .inv-badge { position: static; align-self: flex-start; }

.unit-info h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

.unit-meta { color: var(--gray); font-size: 0.9rem; letter-spacing: 0.02em; }

.spec-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }

.spec-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.84rem;
  padding: 5px 13px;
  color: var(--steel);
  letter-spacing: 0.03em;
}

.unit-price {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 800;
  font-size: 2.3rem;
  color: var(--red);
}

.unit-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.unit-note { color: var(--gray); font-size: 0.88rem; }

.unit-desc-title {
  font-size: 1.25rem;
  margin-top: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.unit-desc { color: var(--gray); font-size: 0.95rem; white-space: pre-line; }

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  box-shadow: var(--shadow-sm);
  padding: 30px 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.service-card .icon {
  color: var(--red);
  margin-bottom: 16px;
}

.service-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.service-card p { color: var(--gray); font-size: 0.93rem; }

/* ---------- Split CTA / info rows ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split .panel-dark {
  background: var(--ink);
  color: var(--white);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}

/* Corner slash: a fixed-size stripe pinned to the bottom-right corner. It
   must not be sized from the panel's height: a slanted bar that spans the
   panel leans further into the text the taller the panel gets. At this
   size its edge stays right of the text column on every line. */
.split .panel-dark::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 4px;
  width: 30px;
  height: 130px;
  background: var(--red);
  transform: skewX(-18deg);
  transform-origin: bottom left;
  opacity: 0.9;
}

.split .panel-dark h3 { font-size: 1.5rem; margin-bottom: 10px; }
.split .panel-dark p { color: #c9c9d1; font-size: 0.95rem; margin-bottom: 20px; max-width: 400px; }

/* ---------- Feature list (financing points etc.) ---------- */

.point-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.point-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}

.point-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.point-card p { color: var(--gray); font-size: 0.92rem; }

/* ---------- Forms ---------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  box-shadow: var(--shadow-md);
  padding: 36px 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.88rem;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
}

.form-field textarea { resize: vertical; min-height: 120px; }

.form-note { font-size: 0.82rem; color: var(--gray); margin-top: 14px; }

.form-success {
  display: none;
  background: #e8f6ec;
  border: 1px solid #b7e0c2;
  color: #1c6b34;
  padding: 14px 18px;
  font-size: 0.95rem;
  margin-top: 16px;
}
.form-success.show { display: block; }

.form-error {
  display: none;
  background: #fdecec;
  border: 1px solid #f1b8ba;
  color: #9a1218;
  padding: 14px 18px;
  font-size: 0.95rem;
  margin-top: 16px;
}
.form-error.show { display: block; }

.form-field [aria-invalid="true"] { border-color: var(--red); }

.form-card button[type="submit"]:disabled { opacity: 0.6; cursor: progress; }

/* Shown only if the form's script never starts (see inquiry_form_nojs). */
.form-nojs {
  max-height: 0; overflow: hidden; margin: 0; visibility: hidden;
  font-size: 0.9rem; color: var(--steel);
  animation: form-nojs-in 0s linear 2.5s forwards;
}
.form-nojs a { color: var(--red-dark); font-weight: 600; }
.form-card.is-ready .form-nojs { display: none; }
@keyframes form-nojs-in { to { max-height: 200px; margin-top: 14px; visibility: visible; } }

/* Honeypot: off-screen for people, still a normal field to a bot. */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Contact page ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: start;
}

.info-card {
  background: var(--ink);
  color: var(--white);
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
}

/* Corner slash: same fixed-size stripe as .split .panel-dark (see there). */
.info-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 4px;
  width: 30px;
  height: 130px;
  background: var(--red);
  transform: skewX(-18deg);
  transform-origin: bottom left;
}

.info-card h3 { font-size: 1.4rem; margin-bottom: 20px; }

.info-card .info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  font-size: 0.94rem;
  color: #d6d6dc;
}

.info-card .info-row:last-of-type { border-bottom: none; }

.info-card .info-row .icon { color: var(--red); flex-shrink: 0; margin-top: 3px; }

.info-card .info-row a:hover { color: var(--red); }

.info-card .hours-table { width: 100%; margin-top: 4px; }
.info-card .hours-table td { padding: 3px 0; font-size: 0.9rem; color: #d6d6dc; }
.info-card .hours-table td:last-child { text-align: right; color: var(--white); }

/* ---------- Map placeholder ---------- */

.map-embed {
  border: 1px solid var(--line);
  background: var(--paper);
  aspect-ratio: 21 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.95rem;
  margin-top: 48px;
}

.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--black);
  color: #b9b9c2;
  padding: 64px 0 0;
  border-top: 3px solid var(--red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr;
  gap: 36px;
  padding-bottom: 48px;
}

.footer-brand img, .footer-brand svg { height: 39px; width: auto; margin-bottom: 16px; }

.footer-brand p { font-size: 0.9rem; max-width: 260px; }

.footer-col h4 {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 9px; }

.footer-col a {
  font-size: 0.92rem;
  transition: color 0.18s ease;
}
.footer-col a:hover { color: var(--red); }

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.footer-contact .icon { color: var(--red); flex-shrink: 0; margin-top: 3px; }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover { background: var(--red); border-color: var(--red); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.footer-bottom .legal { display: flex; gap: 8px; align-items: center; }
.footer-bottom .legal a:hover { color: var(--red); }

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tighten the nav before it can crowd the logo — the logo never shrinks */
@media (max-width: 1280px) {
  .main-nav a { padding: 10px 10px; font-size: 0.98rem; }
}

@media (max-width: 1080px) {
  .main-nav a { padding: 9px 7px; font-size: 0.94rem; }
  .header-inner { gap: 14px; }
  .header-contact { gap: 12px; font-size: 0.88rem; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .home-featured-layout { grid-template-columns: 1fr; }
  .value-panel {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .value-panel .value-item { flex: 1 1 240px; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .inventory-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 84vw);
    background: var(--ink);
    padding: calc(var(--header-h) + 24px) 28px 40px;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 105;
    overflow-y: auto;
    box-shadow: -12px 0 40px rgba(0,0,0,0.4);
  }

  .main-nav.open { transform: translateX(0); }

  .main-nav ul { flex-direction: column; gap: 2px; }

  .main-nav a {
    font-size: 1.25rem;
    padding: 12px 6px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .main-nav a::after { display: none; }
  .main-nav a.active { color: var(--red); }

  /* Must stay below .site-header (z-index 100): the drawer lives inside the
     header's stacking context, so a scrim above 100 would cover the open menu. */
  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .nav-scrim.show { opacity: 1; pointer-events: auto; }


  .hero-inner {
    min-height: clamp(480px, calc(100svh - 200px), 720px);
    align-items: flex-end;
    /* top/bottom only — keep .container's side padding intact */
    padding-top: 120px;
    padding-bottom: 48px;
  }

  /* keep the photo's subject visible behind the copy on narrow screens */
  .hero-bg .hero-art { object-position: 70% center; }

  .hero-bg::after {
    background:
      linear-gradient(0deg, rgba(12, 12, 14, 0.92) 0%, rgba(12, 12, 14, 0.55) 42%, rgba(12, 12, 14, 0.1) 75%),
      linear-gradient(180deg, rgba(12, 12, 14, 0.55) 0%, rgba(12, 12, 14, 0) 25%);
  }

  .hero-slashes .s2, .hero-slashes .s3 { display: none; }
  .hero-slashes .s1 { width: 54px; right: 7%; opacity: 0.55; }

  .split { grid-template-columns: 1fr; gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; }
  .unit-layout { grid-template-columns: 1fr; gap: 28px; }
  .unit-gallery { position: static; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .point-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .finance-banner::before {
    clip-path: none;
    background:
      repeating-linear-gradient(-60deg, transparent 0 26px, rgba(255,255,255,0.03) 26px 30px),
      linear-gradient(180deg, rgba(225, 22, 29, 0.94) 0%, rgba(140, 13, 17, 0.96) 100%);
  }
  .finance-inner { flex-direction: column; align-items: flex-start; }

  .cat-grid { grid-template-columns: 1fr; }
  .visit-photo { margin-left: 18px; margin-bottom: 18px; }
  .visit-section .split { gap: 40px; }
}

@media (max-width: 560px) {
  .featured-grid,
  .inventory-grid,
  .services-grid { grid-template-columns: 1fr; }

  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat { padding: 18px 10px; }
  .stat:nth-child(3)::before { display: none; }

  .form-grid { grid-template-columns: 1fr; }

  .section { padding: 52px 0; }

  .hero-ctas .btn { width: 100%; justify-content: center; }

  .finance-copy { flex-direction: column; align-items: flex-start; }

  .inv-toolbar select { width: 100%; }
  .inv-toolbar select#inv-sort { margin-left: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col.footer-contact-col { grid-column: 1 / -1; }
}

/* ============================================================
   Polish pass
   ============================================================ */

/* ---------- Compact header on scroll ---------- */

.header-inner { transition: height 0.25s ease; }
.logo img { transition: height 0.25s ease; }

.site-header { transition: box-shadow 0.25s ease; }
.site-header.scrolled { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35); }
.site-header.scrolled .header-inner { height: 58px; }
.site-header.scrolled .logo img { height: 41px; }

/* ---------- Hero entrance + slow zoom ---------- */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-zoom {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}

.hero-kicker { animation: rise-in 0.65s cubic-bezier(0.22, 0.9, 0.3, 1) both; }

/* ---------- Angled seam under the stats bar ---------- */

.stats-bar {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), 0 100%);
  padding-bottom: 10px;
}

/* ---------- Card footer: price + view-details affordance ---------- */

.inv-card .inv-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.inv-card .inv-foot .inv-price { margin-top: 0; padding-top: 0; }

.inv-card .inv-view {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  color: var(--steel);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.inv-card:hover .inv-view { color: var(--red); }
.inv-card:hover .inv-view .arrow { transform: translateX(3px); }
.inv-card .inv-view .arrow { transition: transform 0.2s ease; }

/* ---------- Image fade-in ---------- */

@keyframes img-in { from { opacity: 0; } to { opacity: 1; } }

.inv-img img,
.cat-tile img,
.unit-main-img img,
.visit-photo img { animation: img-in 0.45s ease both; }

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: none;
  background: var(--red);
  color: var(--white);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.back-to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--red-dark); }

/* ---------- Keyboard focus ---------- */

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.main-nav a:focus-visible,
.footer-col a:focus-visible { outline-offset: 0; }

/* ---------- Mobile drawer: contact block + staggered entrance ---------- */

.drawer-contact { display: none; }

@media (max-width: 860px) {
  .main-nav li,
  .main-nav .drawer-contact {
    opacity: 0;
    transform: translateX(26px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .main-nav li:nth-child(1) { transition-delay: 0.05s; }
  .main-nav li:nth-child(2) { transition-delay: 0.1s; }
  .main-nav li:nth-child(3) { transition-delay: 0.15s; }
  .main-nav li:nth-child(4) { transition-delay: 0.2s; }
  .main-nav li:nth-child(5) { transition-delay: 0.25s; }
  .main-nav li:nth-child(6) { transition-delay: 0.3s; }
  .main-nav .drawer-contact { transition-delay: 0.38s; }

  .main-nav.open li,
  .main-nav.open .drawer-contact { opacity: 1; transform: none; }

  .main-nav .drawer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 30px;
  }

  .drawer-contact .btn { display: inline-flex; }

  /* Undo the .main-nav a link metrics on the drawer's phone button */
  .main-nav .drawer-contact .btn {
    padding: 12px 26px;
    font-size: 1.05rem;
    border-bottom: none;
  }

  /* Undo the .main-nav a link styling for the drawer's email line */
  .main-nav .drawer-email {
    font-family: var(--font-body);
    font-style: normal;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.95rem;
    color: #d6d6dc;
    padding: 0;
    border-bottom: none;
  }
  .main-nav .drawer-email:hover { color: var(--red); }
  .drawer-note { color: #8b8b95; font-size: 0.85rem; font-style: italic; }
}

/* ---------- Header logo priority on small screens ---------- */

@media (max-width: 860px) {
  .logo img { height: 47px; }
}

@media (max-width: 600px) {
  /* Keep the logo large and readable: the phone number moves to the
     drawer's call button instead of squeezing the wordmark. */
  .header-contact { display: none; }
  .logo img { height: 45px; }
  .site-header.scrolled .logo img { height: 39px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero-kicker, .hero-copy h1 .w, .hero-sub, .hero-ctas,
  .hero-bg, .hero-slashes span, .ticker-track,
  .inv-img img, .cat-tile img, .unit-main-img img, .visit-photo img {
    animation: none;
  }
  .hero-copy h1 .w { transform: none; }
  .main-nav li, .main-nav .drawer-contact { transition: none; opacity: 1; transform: none; }
  .back-to-top { transition: none; }
}

/* ============================================================
   Crank-to-11 pass
   ============================================================ */

/* ---------- Section kickers get a slash accent ---------- */

.section-kicker::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 3px;
  background: var(--red);
  transform: skewX(-18deg);
  margin-right: 10px;
  vertical-align: middle;
}

/* ---------- Header scroll progress ---------- */

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -3px;              /* overlays the red border strip */
  height: 3px;
  width: 0%;
  background: var(--white);
  z-index: 1;
  pointer-events: none;
}

/* ---------- Flagship spotlight ---------- */

.spotlight-band {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding: 88px 0;
}

.spotlight-band::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 58%;
  width: 150px;
  background: var(--red);
  transform: skewX(-18deg);
  opacity: 0.14;
}

.spotlight-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-60deg, transparent 0 34px, rgba(255, 255, 255, 0.015) 34px 38px);
  pointer-events: none;
}

.spot-watermark {
  position: absolute;
  right: -0.05em;
  top: 8px;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(5rem, 14vw, 11rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.spotlight-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: 56px;
  align-items: center;
}

.spot-media {
  position: relative;
  isolation: isolate;
}

.spot-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 48px, 100% 100%, 0 100%);
  animation: img-in 0.45s ease both;
}

.spot-media .spot-frame {
  position: absolute;
  top: -16px;
  left: 18px;
  right: -16px;
  bottom: 18px;
  border: 3px solid var(--red);
  z-index: -1;
}

.spot-media .spot-badge {
  position: absolute;
  top: 16px;
  left: 0;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  padding: 6px 18px 6px 14px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

.spot-info { display: flex; flex-direction: column; gap: 16px; }

.spot-info h2 { font-size: clamp(2rem, 4vw, 3rem); }

.spot-info .spot-meta { color: #9c9ca6; font-size: 0.9rem; letter-spacing: 0.02em; }

.spot-info .spec-list li {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: #d6d6dc;
}

.spot-info .spot-price {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--red);
  line-height: 1;
}

.spot-info .spot-price .price-label {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9c9ca6;
  margin-bottom: 6px;
}

.spot-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }

@media (max-width: 860px) {
  .spotlight-inner { grid-template-columns: 1fr; gap: 40px; }
  .spot-media { margin-right: 16px; }
  .spotlight-band { padding: 64px 0; }
  .spot-watermark { font-size: 5rem; top: 4px; }
}

/* ---------- Card cursor sheen (tilt is applied inline by JS) ---------- */

.inv-card { will-change: transform; }

.inv-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.16), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

@media (pointer: fine) {
  .inv-card:hover::after { opacity: 1; }
}

/* ============================================================
   QA pass fixes
   ============================================================ */

/* Skip link — first focusable element, visible only on keyboard focus */
.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 2000;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  padding: 10px 16px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* Card footer never clips: "View Details" drops under the price when tight */
.inv-card .inv-foot { flex-wrap: wrap; }

/* Small red text on the light-gray sections: #e1161d measured 4.41:1 on
   --paper (AA needs 4.5). This near-identical red reaches 4.9:1. */
.section-alt .section-kicker,
.section-alt .text-link { color: #d4121a; }

@media (max-width: 860px) {
  /* 16px controls: iOS Safari zooms the whole page on focus below that */
  .form-field input,
  .form-field select,
  .form-field textarea,
  .inv-toolbar select { font-size: 16px; }

  /* Comfortable footer tap targets (were 18px tall) */
  .footer-col:not(.footer-contact-col) ul li { margin-bottom: 0; }
  .footer-col:not(.footer-contact-col) a { display: inline-block; padding: 8px 0; }
  .footer-contact li { padding: 4px 0; }
}

@media (max-width: 560px) {
  /* Home featured grid: its 2-column layout rule out-specified the phone
     collapse, leaving 153px cards whose footers overflowed. */
  .home-featured-layout .featured-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  /* Button labels are owner-editable (up to 40 chars): let them wrap on
     phones instead of forcing the page wider (320px screens overflowed). */
  .btn { white-space: normal; text-align: center; justify-content: center; }
}

/* Grid children may shrink below their content's intrinsic width */
.split > * { min-width: 0; }
