/*
Theme Name: Cooke CNC Service
Theme URI: https://www.cookecnc.com
Author: Cooke CNC Service
Description: Custom WordPress theme for Cooke CNC Service, including live Google Sheets inventory search and quote-request autofill.
Version: 1.13.3
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: cooke-cnc
*/

:root {
  --font-geist-sans: "Inter";
  --font-geist-mono: "Roboto Mono";
  --ink: #182236;
  --muted: #667080;
  --paper: #f6f3ec;
  --paper-deep: #ece8dd;
  --white: #fffefa;
  --accent: #c91f37;
  --accent-dark: #a9162c;
  --accent-muted: #a64b58;
  --accent-soft: #f3d9de;
  --line: rgba(24, 34, 54, 0.14);
  --shadow: 0 24px 80px rgba(74, 15, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-geist-sans), Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

.site-frame {
  min-height: 100vh;
  overflow: clip;
}

.site-top {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(24, 34, 54, 0.08);
}

body.admin-bar .site-top {
  top: 32px;
}

.section-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.contact-bar {
  background: var(--accent-muted);
  color: var(--white);
}

.contact-bar-inner {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 70px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 1.16rem;
  font-weight: 650;
}

.contact-bar-inner > span {
  opacity: 0.82;
}

.contact-bar-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-language {
  padding: 9px 2px;
  font-weight: 720;
  letter-spacing: 0.01em;
  opacity: 0.88;
  white-space: nowrap;
}

.contact-bar-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  font-weight: 760;
  letter-spacing: 0.01em;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.contact-bar-links a:hover,
.contact-bar-links a:focus-visible {
  background: var(--white);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 112px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.28rem;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.68rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu {
  display: none;
}

.mobile-header-search {
  display: none;
}

.primary-nav a {
  padding: 12px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 520;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.header-search,
.mobile-search {
  position: relative;
}

.header-search {
  width: clamp(165px, 17vw, 220px);
  flex: 0 1 220px;
}

.header-search input,
.mobile-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  outline: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.header-search input {
  height: 50px;
  padding: 0 44px 0 16px;
  border-radius: 999px;
  font-size: 1.02rem;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: var(--muted);
}

.header-search input:focus,
.mobile-search input:focus {
  border-color: var(--accent-muted);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(166, 75, 88, 0.12);
}

.header-search button,
.mobile-search button {
  position: absolute;
  top: 50%;
  display: grid;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  place-items: center;
  transform: translateY(-50%);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.header-search button {
  right: 5px;
  width: 38px;
  height: 38px;
  font-size: 1.12rem;
}

.header-search button:hover,
.header-search button:focus-visible,
.mobile-search button:hover,
.mobile-search button:focus-visible {
  background: var(--accent);
  transform: translateY(-50%) scale(1.04);
}

.header-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 1.08rem;
  font-weight: 650;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.hero {
  display: grid;
  min-height: 680px;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: clamp(52px, 8vw, 112px);
  padding-block: 96px 88px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(3.9rem, 7.3vw, 7.1rem);
  font-weight: 620;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(3.45rem, 5.65vw, 5.45rem);
  text-wrap: balance;
}

.hero-headline-primary,
.hero-headline-accent {
  display: block;
}

.hero-headline-accent {
  margin-top: 0.08em;
  font-size: 0.92em;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.hero h1 em,
.page-hero h1 em {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-intro {
  max-width: 620px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 680;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(201, 31, 55, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
  box-shadow: 0 18px 36px rgba(201, 31, 55, 0.34);
}

.button-light {
  background: var(--accent);
  color: var(--white);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-block: 8px;
  font-size: 0.94rem;
  font-weight: 650;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span,
.text-link:focus-visible span {
  color: var(--accent);
  transform: translateX(4px);
}

.hero-panel {
  position: relative;
  min-height: 490px;
  overflow: hidden;
  padding: 28px;
  border-radius: 28px;
  background: var(--ink);
  box-shadow: var(--shadow);
  color: var(--white);
}

.hero-logo-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #050505;
}

.hero-panel::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.hero-panel-heading,
.process-list,
.hero-logo-crop,
.hero-logo-meta {
  position: relative;
  z-index: 2;
}

.hero-panel-heading {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-logo-crop {
  width: 100%;
  aspect-ratio: 5 / 4;
  margin: 18px auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}

.hero-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-logo-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  color: rgba(255, 255, 255, 0.56);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-list {
  margin-top: 50px;
}

.process-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.process-number {
  color: var(--accent);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.72rem;
  line-height: 1.8;
}

.process-row h2 {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 620;
}

.process-row p {
  max-width: 280px;
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
  line-height: 1.55;
}

.panel-orbit {
  position: absolute;
  right: -82px;
  bottom: -100px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(201, 31, 55, 0.44);
  border-radius: 50%;
}

.panel-orbit span {
  position: absolute;
  inset: 22%;
  border: 1px solid rgba(201, 31, 55, 0.3);
  border-radius: 50%;
}

.panel-orbit span:nth-child(2) {
  inset: 40%;
  background: var(--accent);
  border: 0;
}

.panel-orbit span:nth-child(3) {
  top: -5px;
  right: 50%;
  bottom: auto;
  left: auto;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border: 0;
}

.trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 680;
}

.trust-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 26px;
  color: rgba(24, 34, 54, 0.82);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.76rem;
  font-weight: 680;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trust-points span::before {
  margin-right: 9px;
  color: var(--accent);
  content: "●";
}

.home-photo-showcase {
  padding-block: 132px 20px;
}

.home-photo-showcase-lower {
  padding-block: 0 132px;
}


.home-photo-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: 80px;
}

.home-photo-heading .eyebrow {
  margin-bottom: 18px;
}

.home-photo-heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.7rem, 5.2vw, 5rem);
  font-weight: 590;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.home-photo-heading h2 span {
  display: block;
}

.home-photo-heading > p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.home-photo-grid {
  display: grid;
  min-height: 420px;
  margin-top: 54px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 1fr;
  gap: 18px;
}

.home-photo-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper-deep);
  box-shadow: 0 20px 60px rgba(74, 15, 28, 0.08);
}

.home-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.home-photo-card:hover img {
  transform: scale(1.025);
}

.home-photo-card.has-photo::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 44%;
  background: linear-gradient(to top, rgba(10, 14, 22, 0.78), transparent);
  content: "";
  pointer-events: none;
}

.home-photo-card figcaption {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  z-index: 1;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.home-photo-placeholder {
  display: flex;
  height: 100%;
  min-height: inherit;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 34px;
  border: 2px dashed rgba(166, 75, 88, 0.4);
  border-radius: 25px;
  color: var(--accent-dark);
  text-align: center;
}

.home-photo-placeholder strong {
  font-size: 1.15rem;
}

.home-photo-placeholder span {
  max-width: 310px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.home-photo-grid-count-1 {
  min-height: 500px;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.home-photo-grid-count-1 .home-photo-card {
  min-height: 500px;
  grid-row: auto;
}

.home-photo-grid-count-2 {
  min-height: 410px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr;
}

.home-photo-grid-count-2 .home-photo-card {
  min-height: 410px;
  grid-row: auto;
}


.home-photo-slideshow {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  margin-top: 54px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper-deep);
  box-shadow: 0 24px 70px rgba(74, 15, 28, 0.1);
}

.home-slideshow-track {
  position: relative;
  min-height: 540px;
}

.home-slide {
  position: absolute;
  inset: 0;
  min-height: 540px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 520ms ease;
}

.home-slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.home-slide img {
  display: block;
  width: 100%;
  height: 540px;
  object-fit: cover;
}

.home-slide-fit {
  background: #e9e5dc;
}

.home-slide-fit::before {
  position: absolute;
  inset: -2%;
  z-index: 0;
  background-image: var(--slide-bg-image);
  background-position: center;
  background-size: cover;
  filter: blur(26px) saturate(0.9) brightness(0.96);
  transform: scale(1.08);
  opacity: 0.92;
  content: "";
}

.home-slide-fit img {
  position: relative;
  z-index: 1;
  object-fit: contain;
  background: transparent;
}


.home-slide::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 38%;
  background: linear-gradient(to top, rgba(9, 14, 24, 0.78), transparent);
  content: "";
  pointer-events: none;
}

.home-slide figcaption {
  position: absolute;
  right: 34px;
  bottom: 34px;
  left: 34px;
  z-index: 2;
  max-width: 760px;
  color: var(--white);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-slideshow-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(24, 34, 54, 0.72);
  color: var(--white);
  cursor: pointer;
  font-size: 1.25rem;
  place-items: center;
  transform: translateY(-50%);
  transition: background 180ms ease, transform 180ms ease;
}

.home-slideshow-arrow:hover,
.home-slideshow-arrow:focus-visible {
  background: var(--accent);
  transform: translateY(-50%) scale(1.05);
}

.home-slideshow-prev {
  left: 20px;
}

.home-slideshow-next {
  right: 20px;
}

.home-slideshow-footer {
  position: absolute;
  z-index: 5;
  right: 22px;
  top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(24, 34, 54, 0.68);
  backdrop-filter: blur(8px);
}

.home-slideshow-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.home-slideshow-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
}

.home-slideshow-dot.is-active {
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.home-slideshow-toggle {
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-slideshow-placeholder {
  min-height: 420px;
  margin-top: 54px;
}

@media (prefers-reduced-motion: reduce) {
  .home-slide {
    transition: none;
  }
}

.services-section {
  padding-block: 138px;
}

.key-points-grid {
  display: grid;
  overflow: hidden;
  margin-bottom: 88px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--line);
  box-shadow: 0 18px 60px rgba(74, 15, 28, 0.07);
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.key-point {
  position: relative;
  display: flex;
  min-height: 190px;
  flex-direction: column;
  padding: 27px 25px 25px;
  background: var(--white);
  transition:
    background 200ms ease,
    transform 200ms ease;
}

.key-point::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--accent-muted);
  content: "";
}

.key-point:hover {
  z-index: 1;
  background: #fff9f7;
  transform: translateY(-3px);
}

.key-point-number {
  margin-bottom: auto;
  color: var(--accent);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.key-point strong {
  display: block;
  margin-top: 34px;
  font-size: clamp(1.45rem, 2.4vw, 2.35rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.key-point-compact-title strong {
  font-size: clamp(1.28rem, 2vw, 2rem);
  letter-spacing: -0.045em;
}

.key-point > span:last-child {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: 80px;
  margin-bottom: 62px;
}

.section-heading h2 {
  max-width: 730px;
  margin: 0;
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  font-weight: 590;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.accent-text {
  color: var(--accent);
}

.section-heading-copy {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-card {
  min-height: 310px;
  padding: 30px;
  border-right: 1px solid var(--line);
  transition:
    background 220ms ease,
    transform 220ms ease;
}

.service-card:last-child {
  border-right: 0;
}

.service-card:hover {
  background: rgba(201, 31, 55, 0.055);
  transform: translateY(-6px);
}

.service-number {
  display: block;
  margin-bottom: 78px;
  color: var(--accent);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.72rem;
}

.service-card h3 {
  margin: 0 0 17px;
  font-size: 1.32rem;
  font-weight: 640;
  letter-spacing: -0.03em;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.68;
}

.proof-section {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 24px;
  padding-bottom: 138px;
}

.proof-card,
.proof-stat {
  padding: clamp(32px, 5vw, 64px);
  border-radius: 28px;
}

.proof-card {
  background: var(--white);
}

.proof-card blockquote {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.9rem);
  font-weight: 540;
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.quote-credit {
  margin: 46px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.quote-credit span {
  opacity: 0.72;
}

.proof-stat {
  display: flex;
  min-height: 380px;
  flex-direction: column;
  justify-content: space-between;
  background: var(--accent);
  color: var(--white);
}

.proof-stat strong {
  font-size: clamp(4.2rem, 7vw, 7rem);
  font-weight: 570;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.proof-stat p {
  max-width: 210px;
  margin: 0;
  font-size: 0.98rem;
  font-weight: 560;
  line-height: 1.55;
}

.cta-banner {
  position: relative;
  overflow: hidden;
  padding-block: 120px;
  background: var(--ink);
  color: var(--white);
}

.cta-banner::after {
  position: absolute;
  right: -130px;
  bottom: -230px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(201, 31, 55, 0.46);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgba(201, 31, 55, 0.07),
    0 0 0 160px rgba(201, 31, 55, 0.035);
  content: "";
}

.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.cta-content h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 6.6vw, 6.4rem);
  font-weight: 570;
  letter-spacing: -0.075em;
  line-height: 0.94;
}

.site-footer {
  padding-block: 54px 26px;
  background: var(--ink);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.6fr;
  gap: 40px;
  padding-bottom: 60px;
}

.footer-brand {
  max-width: 310px;
}

.footer-logo-crop {
  display: block;
  width: min(100%, 250px);
  aspect-ratio: 5 / 4;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.footer-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-brand p,
.footer-column a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-brand p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column h2 {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.36);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column a {
  width: fit-content;
  font-size: 0.86rem;
  transition: color 160ms ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: #f05a6f;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.36);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Shared inner-page styles */
.page-hero {
  display: grid;
  min-height: 530px;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.65fr);
  align-items: end;
  gap: 80px;
  padding-block: 100px 92px;
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(3.8rem, 7vw, 6.8rem);
}

.page-hero-copy {
  padding-bottom: 10px;
}

.page-hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.placeholder-panel {
  margin-bottom: 110px;
  padding: 60px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.45);
}

.placeholder-panel p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(48px, 10vw, 140px);
  padding-block: 115px 135px;
  border-top: 1px solid var(--line);
}

.story-label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-label span:last-child {
  font-size: 1rem;
}

.story-copy > p:first-child {
  max-width: 820px;
  margin: 0 0 34px;
  font-size: clamp(2rem, 4.3vw, 4rem);
  font-weight: 560;
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.story-copy > p:nth-child(2) {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.75;
}

.story-copy .template-note {
  max-width: 600px;
  margin: 48px 0 0;
  padding: 20px 22px;
  border-left: 3px solid var(--accent);
  background: rgba(201, 31, 55, 0.055);
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.7rem;
  line-height: 1.7;
}

.principles-section {
  padding-block: 130px;
  border-top: 1px solid var(--line);
}

.about-photo-row {
  padding-bottom: 88px;
}

.about-photo-row .home-photo-grid {
  margin-top: 0;
}

.numbers-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: 135px;
}

.number-item {
  min-height: 260px;
  padding: 34px;
  border: 1px solid var(--line);
  border-right: 0;
}

.number-item:last-child {
  border-right: 1px solid var(--line);
  background: var(--accent);
  color: var(--white);
}

.number-item strong {
  display: block;
  margin-bottom: 65px;
  font-size: clamp(3.6rem, 7vw, 6.8rem);
  font-weight: 570;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.number-item p {
  max-width: 170px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.number-item:last-child p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-hero {
  min-height: 440px;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(42px, 6vw, 76px);
  padding-block: 82px 76px;
}

.contact-hero h1 {
  max-width: 760px;
  font-size: clamp(3.2rem, 5.55vw, 5.35rem);
  line-height: 0.96;
  text-wrap: balance;
}

.contact-hero .page-hero-copy {
  max-width: 470px;
  justify-self: end;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: stretch;
  gap: clamp(32px, 5vw, 64px);
  padding-block: 72px 112px;
  border-top: 1px solid var(--line);
}

#contact-form-container {
  height: 100%;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 18px 50px rgba(24, 34, 54, 0.05);
}

.contact-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.form-error {
  display: flex;
  margin-bottom: 20px;
  padding: 16px 18px;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(201, 31, 55, 0.28);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-error strong {
  color: var(--accent-dark);
}

.contact-form {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

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

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form label > span {
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  transition:
    border 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.contact-form input,
.contact-form select {
  height: 56px;
  padding-inline: 17px;
}

.contact-form textarea {
  min-height: 94px;
  padding: 16px 17px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9299a3;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-submit-row {
  display: flex;
  margin-top: auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 4px;
}

.form-submit-row p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.66rem;
}

.contact-aside {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #d5d5d5;
  box-shadow: 0 18px 50px rgba(24, 34, 54, 0.07);
  color: var(--ink);
}

.contact-aside .eyebrow {
  color: var(--muted);
}

.contact-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 1.12rem;
  font-weight: 620;
}

.contact-email span {
  color: #f05a6f;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-details div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.contact-details span {
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-details p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.48;
}

.contact-expertise p + p {
  margin-top: 8px;
}

.contact-expertise .contact-part-help {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-phone-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-phone-list a {
  width: fit-content;
}

.contact-phone-list a:hover,
.contact-phone-list a:focus-visible {
  color: var(--accent);
}

.form-success {
  display: flex;
  min-height: 590px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(34px, 6vw, 72px);
  border-radius: 24px;
  background: var(--accent);
  color: var(--white);
}

.form-success .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.form-success > span {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 1.2rem;
}

.form-success h2 {
  max-width: 580px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 580;
  letter-spacing: -0.065em;
  line-height: 1;
}

.form-success > p:last-of-type {
  max-width: 550px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.form-reset {
  margin-top: 34px;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.next-steps {
  padding-block: 96px 112px;
  border-top: 1px solid var(--line);
}

.next-step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.next-step-grid article {
  min-height: 220px;
  padding: 26px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
}

.next-step-grid article > span {
  display: block;
  margin-bottom: 66px;
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.68rem;
}

.next-step-grid h2 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  font-weight: 640;
  letter-spacing: -0.03em;
}

.next-step-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.products-hero {
  min-height: 560px;
}

.sheet-integration {
  display: grid;
  margin-bottom: 72px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 26px;
  background: var(--ink);
  color: var(--white);
  gap: clamp(40px, 8vw, 100px);
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.brand-showcase {
  display: block;
  border: 1px solid rgba(24, 34, 54, 0.1);
  background: #d5d5d5;
  color: var(--ink);
  box-shadow: 0 22px 55px rgba(24, 34, 54, 0.09);
}

.brand-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.brand-showcase-header .eyebrow {
  margin: 0;
  color: rgba(24, 34, 54, 0.68);
}

.brand-showcase .sheet-status {
  color: rgba(24, 34, 54, 0.68);
}

.featured-brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.featured-brand-button,
.featured-brand-more {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  font-weight: 620;
}

.featured-brand-button {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.brand-showcase .featured-brand-button {
  border-color: rgba(24, 34, 54, 0.08);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(24, 34, 54, 0.07);
}

.featured-brand-button:hover,
.featured-brand-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.brand-showcase .featured-brand-button:hover,
.brand-showcase .featured-brand-button:focus-visible {
  border-color: rgba(24, 34, 54, 0.2);
  background: rgba(255, 255, 255, 0.94);
}

.featured-brand-more {
  gap: 9px;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.featured-brand-more:hover,
.featured-brand-more:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.sheet-integration-copy .eyebrow {
  color: rgba(255, 255, 255, 0.5);
}

.sheet-integration-copy h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.3rem, 4.8vw, 4.5rem);
  font-weight: 590;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.sheet-integration-copy > p:last-child {
  max-width: 660px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.67);
  line-height: 1.7;
}

.sheet-integration-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.sheet-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sheet-status > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #82d9a0;
  box-shadow: 0 0 0 5px rgba(130, 217, 160, 0.13);
}

.sheet-status-pending > span {
  background: #e0b66a;
  box-shadow: 0 0 0 5px rgba(224, 182, 106, 0.13);
}

.sheet-fields {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sheet-fields span {
  padding: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 620;
}

.catalog-section {
  padding-block: 48px 138px;
  border-top: 1px solid var(--line);
}

.inventory-back-to-top {
  position: fixed;
  z-index: 85;
  /* Keep the full button in the page margin, outside the 1180px inventory sheet. */
  right: max(12px, calc((100vw - 1180px) / 2 - 148px));
  bottom: 28px;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 14px 36px rgba(74, 15, 28, 0.24);
  cursor: pointer;
  font-family: var(--font-geist-sans), Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 720;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.inventory-back-to-top > span:first-child {
  font-size: 1.1rem;
  line-height: 1;
}

.inventory-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.inventory-back-to-top:hover,
.inventory-back-to-top:focus-visible {
  background: var(--accent-dark);
  box-shadow: 0 18px 42px rgba(74, 15, 28, 0.32);
  transform: translateY(-2px);
}

.catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 40px;
}

.inventory-search-actions {
  display: flex;
  width: min(100%, 800px);
  align-items: end;
  gap: 12px;
}

.inventory-search-actions .catalog-search-label {
  width: auto;
  flex: 1 1 auto;
}

.inventory-find-button {
  min-height: 64px;
  flex: 0 0 auto;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 16px;
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
  font-family: var(--font-geist-sans), Arial, Helvetica, sans-serif;
  font-size: 0.96rem;
  font-weight: 720;
  transition: background 160ms ease, transform 160ms ease;
}

.inventory-find-button:hover,
.inventory-find-button:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.catalog-search-label {
  display: flex;
  width: min(100%, 660px);
  flex-direction: column;
  gap: 12px;
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-search-label input {
  width: 100%;
  height: 64px;
  padding-inline: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-family: var(--font-geist-sans), Arial, Helvetica, sans-serif;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  transition:
    border 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.catalog-search-label input:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.catalog-count {
  margin: 0 0 20px;
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


.catalog-no-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: -10px 0 30px;
  padding: 24px 26px;
  border: 1px solid rgba(201, 31, 55, 0.24);
  border-radius: 20px;
  background: rgba(201, 31, 55, 0.055);
}

.catalog-no-match[hidden] {
  display: none;
}

.catalog-no-match > div {
  min-width: 0;
}

.catalog-no-match .eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.catalog-no-match h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.catalog-no-match p:last-child {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.catalog-no-match .button {
  flex: 0 0 auto;
  white-space: nowrap;
}

#catalog-results,
.inventory-table,
.brand-sheet-results {
  overflow-anchor: none;
}

.inventory-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
}

.inventory-header,
.inventory-row {
  display: grid;
  align-items: center;
  gap: 22px;
  grid-template-columns:
    minmax(210px, 1.35fr)
    minmax(155px, 0.85fr)
    minmax(155px, 0.85fr)
    minmax(100px, 0.55fr)
    max-content;
}

.inventory-header {
  padding: 15px 22px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.68rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory-row {
  min-height: 86px;
  padding: 16px 22px;
  transition: background 180ms ease;
}

.inventory-row + .inventory-row {
  border-top: 1px solid var(--line);
}

.inventory-row:hover {
  background: var(--white);
}

.inventory-row.inventory-row-search-match {
  background: #fff8d7;
}

.inventory-row.inventory-row-primary-match {
  background: #ffedaa;
  box-shadow: inset 4px 0 0 var(--accent);
  scroll-margin-top: 170px;
}

.inventory-row mark {
  padding: 0;
  border-radius: 3px;
  background: #ffe17a;
  color: #4a2500;
  box-shadow: 0 0 0 2px rgba(255, 225, 122, 0.35);
}

.inventory-part-number {
  color: var(--accent);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.74rem;
  font-weight: 720;
  letter-spacing: 0.04em;
}

.inventory-name {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 1rem;
  font-weight: 660;
  letter-spacing: -0.025em;
}

.inventory-name small {
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.58rem;
  font-weight: 620;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.inventory-catalog-number {
  color: var(--ink);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.7rem;
  overflow-wrap: anywhere;
}

.inventory-status {
  width: fit-content;
  padding: 7px 9px;
  border-radius: 999px;
  background: #dcecdf;
  color: #326442;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.58rem;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inventory-status-unavailable {
  background: var(--paper-deep);
  color: var(--muted);
}

.inventory-action {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.inventory-action:hover,
.inventory-action:focus-visible {
  color: var(--accent);
}

.catalog-loading {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
}

.catalog-loading span {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: inventory-spin 800ms linear infinite;
}

.catalog-loading p {
  margin: 0;
}

@keyframes inventory-spin {
  to {
    transform: rotate(360deg);
  }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
  transition:
    border 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.product-card:hover {
  border-color: rgba(201, 31, 55, 0.34);
  box-shadow: 0 22px 55px rgba(74, 15, 28, 0.09);
  transform: translateY(-5px);
}

.product-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 14px;
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-card-meta span:first-child {
  color: var(--accent);
  font-weight: 700;
}

.product-card h2 {
  margin: 54px 0 14px;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.product-card p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.product-card .text-link {
  width: fit-content;
  margin-top: auto;
}

.catalog-empty {
  padding: clamp(36px, 7vw, 78px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}

.catalog-empty h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 590;
  letter-spacing: -0.06em;
  line-height: 1;
}

.catalog-empty > p:not(.eyebrow) {
  max-width: 640px;
  margin: 26px 0 32px;
  color: var(--muted);
  line-height: 1.7;
}

.catalog-error-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.catalog-error-actions .button {
  cursor: pointer;
}

.catalog-note {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.64rem;
  line-height: 1.7;
}

body.brand-sheet-open {
  overflow: hidden;
}

body.brand-sheet-open::before {
  position: fixed;
  z-index: 900;
  top: var(--brand-sheet-top-offset, 146px);
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(10, 17, 31, 0.72);
  backdrop-filter: blur(4px);
  content: "";
}

.brand-sheet-dialog {
  position: fixed;
  z-index: 950;
  top: calc(var(--brand-sheet-top-offset, 146px) + 18px);
  left: 50%;
  width: min(1240px, calc(100% - 36px));
  max-width: none;
  max-height: calc(100vh - var(--brand-sheet-top-offset, 146px) - 36px);
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 26px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(9, 15, 28, 0.34);
  transform: translateX(-50%);
}

.brand-sheet-dialog:not([open]) {
  display: none;
}

.brand-sheet-dialog::backdrop {
  background: transparent;
}

.brand-sheet-shell {
  padding: clamp(26px, 4vw, 48px);
}

.brand-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.brand-sheet-header .eyebrow {
  margin-bottom: 12px;
}

.brand-sheet-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 610;
  letter-spacing: -0.06em;
  line-height: 1;
}

.brand-sheet-header > div > p:last-child {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.brand-sheet-close {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  place-items: center;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.brand-sheet-close:hover,
.brand-sheet-close:focus-visible {
  background: var(--accent);
  color: var(--white);
  transform: rotate(5deg);
}

.brand-sheet-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding-block: 28px;
}

.brand-sheet-toolbar .inventory-search-actions {
  width: min(100%, 760px);
}

.brand-sheet-toolbar .catalog-search-label {
  width: auto;
}

.brand-sheet-toolbar .catalog-search-label input {
  height: 56px;
  background: var(--white);
}

.brand-sheet-count {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
}

.brand-sheet-results {
  max-height: min(55vh, 560px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.brand-sheet-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  table-layout: auto;
}

.brand-sheet-table th {
  position: sticky;
  z-index: 2;
  top: 0;
  padding: 15px 18px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.68rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.brand-sheet-table td {
  padding: 17px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  vertical-align: middle;
}

.brand-sheet-table tbody tr:first-child td {
  border-top: 0;
}

.brand-sheet-table tbody tr:hover td {
  background: rgba(246, 243, 236, 0.72);
}

.brand-sheet-table tbody tr.brand-sheet-match-row td {
  background: #fff8d7;
}

.brand-sheet-table tbody tr.brand-sheet-primary-match td {
  background: #ffedaa;
  box-shadow: inset 0 2px 0 rgba(201, 31, 55, 0.28), inset 0 -2px 0 rgba(201, 31, 55, 0.28);
}

.brand-sheet-table tbody tr.brand-sheet-primary-match td:first-child {
  box-shadow:
    inset 4px 0 0 var(--accent),
    inset 0 2px 0 rgba(201, 31, 55, 0.28),
    inset 0 -2px 0 rgba(201, 31, 55, 0.28);
}

.brand-sheet-description-cell {
  min-width: 330px;
  color: var(--ink) !important;
  font-weight: 620;
}

.brand-sheet-part-cell,
.brand-sheet-catalog-cell {
  min-width: 180px;
  font-family: var(--font-geist-mono), monospace;
  overflow-wrap: anywhere;
}

.brand-sheet-part-cell {
  color: var(--accent) !important;
  font-weight: 760;
}

.brand-sheet-table mark {
  padding: 0;
  border-radius: 3px;
  background: #ffe17a;
  color: #4a2500;
  box-shadow: 0 0 0 2px rgba(255, 225, 122, 0.35);
}

.brand-sheet-table .inventory-status {
  display: inline-flex;
}

.brand-sheet-quote {
  color: var(--ink);
  font-weight: 720;
  white-space: nowrap;
}

.brand-sheet-quote:hover,
.brand-sheet-quote:focus-visible {
  color: var(--accent);
}

.brand-sheet-message {
  display: grid;
  min-height: 260px;
  padding: 40px;
  place-content: center;
  text-align: center;
}

.brand-sheet-message h3 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.brand-sheet-message p {
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--muted);
  line-height: 1.65;
}

.brand-sheet-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.64rem;
  line-height: 1.6;
}

.brands-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(48px, 9vw, 120px);
  padding-block: 120px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 32px;
}

.brands-heading h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 590;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.brand-list {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-list button {
  appearance: none;
  padding: 13px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 590;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.brand-list button:hover,
.brand-list button:focus-visible {
  border-color: var(--accent);
  background: var(--white);
  color: var(--accent);
  transform: translateY(-2px);
}

@media (max-width: 920px) {
  .site-header {
    gap: 12px;
  }

  .brand {
    font-size: 1.08rem;
  }

  .primary-nav {
    gap: 0;
  }

  .primary-nav a {
    padding-inline: 8px;
    font-size: 1rem;
  }

  .header-search {
    width: 155px;
    flex-basis: 155px;
  }

  .header-cta {
    padding-inline: 11px;
    font-size: 0.92rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-panel {
    min-height: 440px;
  }

  .home-photo-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .home-photo-grid {
    min-height: 320px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 1fr;
  }

  .home-photo-card,
  .home-photo-grid-count-2 .home-photo-card {
    min-height: 320px;
    grid-row: auto;
  }

  .home-photo-grid-count-1 {
    grid-template-columns: 1fr;
  }

  .home-photo-grid-count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-photo-grid-count-1 .home-photo-card {
    min-height: 420px;
  }

  .section-heading,
  .page-hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .sheet-integration {
    grid-template-columns: 1fr;
  }

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

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

  .service-card {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-card:last-child {
    border-bottom: 0;
  }

  .service-number {
    margin-bottom: 45px;
  }

  .proof-section {
    grid-template-columns: 1fr;
  }

  .proof-stat {
    min-height: 300px;
  }

  .story-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .numbers-section,
  .next-step-grid {
    grid-template-columns: 1fr;
  }

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

  .brands-section {
    grid-template-columns: 1fr;
  }

  .number-item {
    min-height: 220px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .number-item:last-child {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .catalog-no-match {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
    margin-top: -4px;
    padding: 22px;
  }

  .catalog-no-match .button {
    width: 100%;
    justify-content: center;
  }

  .section-shell,
  .site-header,
  .contact-bar-inner {
    width: min(100% - 32px, 1180px);
  }

  .inventory-search-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .inventory-find-button {
    width: 100%;
    min-height: 52px;
  }

  .contact-bar-inner {
    min-height: 74px;
    padding-block: 8px;
    justify-content: center;
  }

  .contact-bar-inner > span {
    display: none;
  }

  .contact-bar-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
  }

  .contact-language {
    font-size: clamp(0.84rem, 3.2vw, 0.98rem);
  }

  .contact-bar-links a {
    padding-inline: 8px;
    background: transparent;
    font-size: clamp(0.84rem, 3.2vw, 0.98rem);
  }

  .site-header {
    min-height: 88px;
  }

  .inventory-back-to-top {
    right: 16px;
    bottom: 18px;
    min-height: 46px;
    padding-inline: 15px;
    font-size: 0.84rem;
  }

  .primary-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .header-search {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
  }

  .mobile-menu summary {
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 650;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: flex;
    min-width: 170px;
    flex-direction: column;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .mobile-menu nav a {
    padding: 11px 12px;
    border-radius: 9px;
    font-size: 0.96rem;
  }

  .mobile-menu nav a:hover,
  .mobile-menu nav a:focus-visible {
    background: var(--paper);
  }

  .mobile-search {
    margin-top: 6px;
  }

  .mobile-search input {
    height: 42px;
    padding: 0 42px 0 12px;
    border-radius: 10px;
    font-size: 0.86rem;
  }

  .mobile-search button {
    right: 5px;
    width: 32px;
    height: 32px;
  }

  .hero {
    min-height: auto;
    gap: 50px;
    padding-block: 64px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(3.35rem, 16vw, 5rem);
  }

  .contact-hero h1 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .hero h1 {
    font-size: clamp(3.1rem, 14vw, 4.4rem);
  }

  .hero-headline-accent {
    white-space: normal;
  }

  .hero-actions,
  .cta-content,
  .trust-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-panel {
    min-height: 450px;
    padding: 24px;
  }

  .trust-points {
    justify-content: flex-start;
    gap: 12px 20px;
  }

  .home-photo-showcase {
    padding-block: 90px 0;
  }

  .home-photo-showcase-lower {
    padding-block: 0 90px;
  }

  .home-photo-grid {
    min-height: auto;
    margin-top: 38px;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .home-photo-grid-count-2 {
    grid-template-columns: 1fr;
  }

  .home-photo-card,
  .home-photo-grid-count-2 .home-photo-card {
    min-height: 250px;
    border-radius: 20px;
  }

  .home-photo-grid-count-1 .home-photo-card {
    min-height: 350px;
  }

  .home-photo-card figcaption {
    right: 18px;
    bottom: 17px;
    left: 18px;
  }

  .services-section {
    padding-block: 96px;
  }

  .key-points-grid {
    margin-bottom: 64px;
    grid-template-columns: 1fr;
  }

  .key-point {
    min-height: 156px;
  }

  .section-heading {
    margin-bottom: 48px;
  }

  .service-card {
    padding-inline: 8px;
  }

  .proof-section {
    padding-bottom: 96px;
  }

  .proof-card,
  .proof-stat {
    padding: 30px;
    border-radius: 22px;
  }

  .cta-banner {
    padding-block: 90px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .page-hero {
    min-height: 440px;
    padding-block: 72px;
  }

  .sheet-integration {
    margin-bottom: 52px;
    grid-template-columns: 1fr;
  }

  .brand-showcase-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-brand-button,
  .featured-brand-more {
    min-height: 48px;
    padding: 10px 16px;
    font-size: 0.92rem;
  }

  .sheet-fields {
    grid-template-columns: 1fr;
  }

  .placeholder-panel {
    padding: 32px;
  }

  .story-section {
    padding-block: 82px 100px;
  }

  .principles-section {
    padding-block: 96px;
  }

  .about-photo-row {
    padding-bottom: 64px;
  }

  .numbers-section {
    padding-bottom: 96px;
  }

  .contact-section {
    gap: 24px;
    padding-block: 56px 84px;
  }

  #contact-form-container,
  .contact-aside {
    padding: 26px;
  }

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

  .form-submit-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-aside {
    min-height: 0;
  }

  .form-success {
    min-height: 520px;
    padding: 30px;
  }

  .next-steps {
    padding-block: 90px;
  }

  .catalog-section {
    padding-block: 32px 96px;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-count {
    margin: 0;
  }

  .inventory-header {
    display: none;
  }

  .inventory-row {
    min-height: 0;
    padding: 20px;
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .inventory-action-cell {
    grid-column: 2;
    grid-row: 1;
  }

  .inventory-name {
    font-size: 1.15rem;
    grid-column: 1;
    grid-row: 1;
  }

  .inventory-part-number {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .inventory-catalog-number {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .inventory-status {
    grid-column: 1;
    grid-row: 4;
  }

  .inventory-action-cell {
    grid-row: 3;
  }

  .catalog-error-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-sheet-dialog {
    top: calc(var(--brand-sheet-top-offset, 142px) + 9px);
    width: calc(100% - 18px);
    max-height: calc(100vh - var(--brand-sheet-top-offset, 142px) - 18px);
    border-radius: 20px;
  }

  .brand-sheet-shell {
    padding: 22px;
  }

  .brand-sheet-header {
    gap: 18px;
  }

  .brand-sheet-header h2 {
    font-size: 2.15rem;
  }

  .brand-sheet-header > div > p:last-child {
    font-size: 0.96rem;
  }

  .brand-sheet-close {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-sheet-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-sheet-count {
    margin: 0;
    text-align: left;
  }

  .brand-sheet-results {
    max-height: 48vh;
  }

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

  .product-card {
    min-height: 270px;
  }

  .brands-section {
    padding-block: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-top {
    top: 46px;
  }
}


@media (max-width: 680px) {
  .home-photo-slideshow,
  .home-slideshow-track,
  .home-slide {
    min-height: 360px;
  }

  .home-slide img {
    height: 360px;
  }

  .home-slide-fit img {
    object-fit: contain;
  }

  .home-slide figcaption {
    right: 22px;
    bottom: 24px;
    left: 22px;
  }

  .home-slideshow-arrow {
    width: 42px;
    height: 42px;
  }

  .home-slideshow-prev {
    left: 12px;
  }

  .home-slideshow-next {
    right: 12px;
  }

  .home-slideshow-footer {
    right: 12px;
    top: 12px;
  }

  .home-slideshow-toggle {
    display: none;
  }
}

/* Mobile balance pass — phone-only. Desktop/tablet styling remains unchanged. */
@media (max-width: 680px) {
  .section-shell,
  .site-header,
  .contact-bar-inner {
    width: calc(100% - 36px);
  }

  /* Keep the pinned contact row tidy instead of letting the items wrap unevenly. */
  .contact-bar-inner {
    min-height: 84px;
    padding-block: 10px;
  }

  .contact-bar-links {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4px 10px;
  }

  .contact-language,
  .contact-bar-links a {
    min-width: 0;
    padding: 5px 0;
    font-size: clamp(0.8rem, 3.55vw, 0.94rem);
    line-height: 1.2;
  }

  .contact-language {
    justify-self: start;
  }

  .contact-bar-links a:first-of-type {
    justify-self: end;
  }

  .contact-bar-links a:last-of-type {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .site-header {
    min-height: 84px;
    gap: 12px;
  }

  .brand {
    gap: 9px;
    font-size: clamp(0.98rem, 4.5vw, 1.1rem);
    letter-spacing: -0.035em;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
  }

  .mobile-header-search {
    position: relative;
    display: block;
    width: clamp(128px, 34vw, 168px);
    flex: 0 1 168px;
    margin-left: auto;
  }

  .mobile-header-search input {
    width: 100%;
    height: 50px;
    padding: 0 46px 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    font-family: inherit;
    font-size: 0.98rem;
    outline: none;
  }

  .mobile-header-search input::placeholder {
    color: var(--muted);
  }

  .mobile-header-search input:focus {
    border-color: var(--accent-muted);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(166, 75, 88, 0.12);
  }

  .mobile-header-search button {
    position: absolute;
    top: 50%;
    right: 6px;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    cursor: pointer;
    place-items: center;
    transform: translateY(-50%);
  }

  .mobile-header-search button:hover,
  .mobile-header-search button:focus-visible {
    background: var(--accent);
  }

  .mobile-menu {
    flex: 0 0 auto;
  }

  .mobile-menu summary {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .mobile-menu nav {
    width: min(270px, calc(100vw - 36px));
    min-width: 0;
    padding: 12px;
  }

  @media (max-width: 390px) {
    .site-header {
      gap: 8px;
    }

    .brand {
      font-size: 0.92rem;
    }

    .brand-mark {
      width: 30px;
      height: 30px;
      flex-basis: 30px;
    }

    .mobile-header-search {
      width: clamp(120px, 34vw, 136px);
      flex-basis: 136px;
    }

    .mobile-menu summary {
      padding-inline: 11px;
    }
  }

  /* Homepage hero: preserve impact without crowding a narrow screen. */
  .hero {
    gap: 36px;
    padding-block: 48px 58px;
  }

  .hero .eyebrow {
    margin-bottom: 18px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.75rem, 12.2vw, 3.6rem);
    letter-spacing: -0.065em;
    line-height: 0.96;
  }

  .hero-headline-accent {
    margin-top: 0.14em;
    font-size: 0.9em;
    line-height: 1;
  }

  .hero-intro {
    margin-top: 24px;
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero-actions {
    width: 100%;
    gap: 12px;
    margin-top: 28px;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    width: 100%;
    justify-content: center;
  }

  .hero-actions .text-link {
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
  }

  .hero-panel {
    min-height: 360px;
    padding: 22px;
  }

  .hero-panel-heading {
    gap: 14px;
    font-size: 0.62rem;
  }

  .hero-logo-meta {
    gap: 8px;
    font-size: 0.62rem;
  }

  .trust-strip {
    gap: 18px;
    padding-block: 22px;
  }

  .trust-strip p {
    font-size: 0.96rem;
    line-height: 1.45;
  }

  .trust-points {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    font-size: 0.8rem;
    line-height: 1.4;
  }

  /* Slideshow and section headings. */
  .home-photo-showcase {
    padding-block: 72px 0;
  }

  .home-photo-heading {
    gap: 18px;
  }

  .home-photo-heading h2,
  .section-heading h2 {
    font-size: clamp(2.2rem, 10.5vw, 3rem);
    line-height: 1.02;
  }

  .home-photo-heading > p,
  .section-heading-copy {
    font-size: 0.96rem;
    line-height: 1.62;
  }

  .home-photo-slideshow,
  .home-slideshow-track,
  .home-slide {
    min-height: 300px;
  }

  .home-slide img {
    height: 300px;
  }

  .home-slide-fit img {
    object-fit: contain;
  }

  .home-slide figcaption {
    right: 18px;
    bottom: 18px;
    left: 18px;
    padding: 11px 13px;
    font-size: 0.8rem;
  }

  .services-section {
    padding-block: 76px;
  }

  .key-points-grid {
    margin-bottom: 52px;
    border-radius: 20px;
  }

  .key-point {
    min-height: 138px;
    padding: 22px;
  }

  .key-point strong,
  .key-point-compact-title strong {
    margin-top: 24px;
    font-size: clamp(1.6rem, 8vw, 2rem);
    line-height: 1.02;
  }

  .section-heading {
    gap: 18px;
    margin-bottom: 38px;
  }

  .service-card {
    padding: 26px 4px;
  }

  .service-number {
    margin-bottom: 28px;
  }

  .service-card h3 {
    font-size: 1.25rem;
  }

  .proof-section {
    gap: 16px;
    padding-bottom: 76px;
  }

  .proof-card,
  .proof-stat {
    padding: 26px;
  }

  .cta-banner {
    padding-block: 72px;
  }

  /* Inner-page hero sizing is reduced only on phones. */
  .page-hero,
  .contact-hero {
    min-height: 0;
    gap: 22px;
    padding-block: 54px 58px;
  }

  .page-hero h1,
  .contact-hero h1 {
    font-size: clamp(2.7rem, 12.5vw, 3.55rem);
    line-height: 0.98;
  }

  .page-hero-copy,
  .contact-hero .page-hero-copy {
    max-width: none;
    padding-bottom: 0;
    justify-self: stretch;
  }

  .page-hero-copy p {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  /* About page. */
  .story-section {
    gap: 28px;
    padding-block: 66px 76px;
  }

  .story-copy > p:first-child {
    margin-bottom: 24px;
    font-size: clamp(1.8rem, 8.8vw, 2.45rem);
  }

  .story-copy > p:nth-child(2) {
    font-size: 1rem;
    line-height: 1.65;
  }

  .principles-section {
    padding-block: 76px;
  }

  .about-photo-row {
    padding-bottom: 54px;
  }

  .numbers-section {
    gap: 12px;
    padding-bottom: 76px;
  }

  .number-item {
    min-height: 180px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 18px;
  }

  .number-item strong {
    margin-bottom: 34px;
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .number-item p {
    max-width: none;
  }

  /* Contact page. */
  .contact-section {
    gap: 18px;
    padding-block: 42px 68px;
  }

  #contact-form-container,
  .contact-aside {
    padding: 22px;
    border-radius: 20px;
  }

  .contact-form {
    gap: 17px;
  }

  .contact-form input,
  .contact-form select {
    min-height: 50px;
  }

  .contact-form textarea {
    min-height: 104px;
  }

  .contact-aside {
    gap: 20px;
  }

  .contact-email {
    font-size: 1rem;
  }

  .contact-details {
    gap: 14px;
  }

  .next-steps {
    padding-block: 68px;
  }

  .next-step-grid {
    gap: 12px;
    margin-top: 28px;
  }

  .next-step-grid article {
    min-height: 0;
    padding: 22px;
  }

  .next-step-grid article > span {
    margin-bottom: 30px;
  }

  /* CNC Electronics: compact controls, balanced brand grid, readable rows. */
  .sheet-integration {
    margin-bottom: 40px;
    padding: 24px;
    border-radius: 22px;
  }

  .brand-showcase-header {
    gap: 12px;
    margin-bottom: 22px;
  }

  .featured-brand-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .featured-brand-button,
  .featured-brand-more {
    width: 100%;
    min-height: 48px;
    padding: 9px 10px;
    font-size: 0.86rem;
    text-align: center;
  }

  .catalog-section {
    padding-block: 28px 76px;
  }

  .catalog-toolbar {
    gap: 18px;
    margin-bottom: 28px;
  }

  .catalog-search-label input {
    height: 54px;
    padding-inline: 16px;
  }

  .inventory-row {
    gap: 8px 14px;
    padding: 18px;
  }

  .inventory-name {
    font-size: 1.08rem;
    line-height: 1.25;
  }

  .inventory-part-number,
  .inventory-catalog-number {
    overflow-wrap: anywhere;
  }

  .inventory-action-cell {
    align-self: center;
  }

  .brand-sheet-dialog {
    width: calc(100% - 12px);
    border-radius: 18px;
  }

  .brand-sheet-shell {
    padding: 18px;
  }

  .brand-sheet-header h2 {
    font-size: 1.9rem;
  }

  .brand-sheet-toolbar {
    gap: 18px;
    padding-block: 20px;
  }

  .brand-sheet-results {
    max-height: 52vh;
  }

  /* Footer: one clean column on a phone. */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: auto;
  }
}
