:root {
  color-scheme: light;
  --red: #e11922;
  --red-dark: #a70f17;
  --ink: #070707;
  --charcoal: #111215;
  --paper: #ffffff;
  --soft: #f3f4f6;
  --line: #d7d9de;
  --muted: #60646f;
  --warm: #f7d060;
  --radius: 8px;
  --max: 1180px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  --motion: 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body:has(.nav.is-open) {
  overflow: hidden;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link,
.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip-link {
  background: var(--paper);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 900;
  left: 16px;
  top: 14px;
  z-index: 50;
}

.skip-link:focus {
  border: 2px solid var(--red);
  clip: auto;
  clip-path: none;
  height: auto;
  margin: 0;
  overflow: visible;
  padding: 10px 14px;
  white-space: normal;
  width: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--warm);
  outline-offset: 3px;
}

.section,
.services,
.section-dark {
  scroll-margin-top: 82px;
}

.site-header {
  align-items: center;
  background: rgba(7, 7, 7, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--paper);
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr auto;
  left: 0;
  min-height: 74px;
  padding: 10px clamp(18px, 4vw, 54px);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 180ms ease, min-height 180ms ease;
  z-index: 20;
}

.site-header.is-scrolled {
  background: rgba(7, 7, 7, 0.96);
  min-height: 64px;
}

.brand {
  align-items: center;
  display: inline-flex;
  position: relative;
  text-decoration: none;
  z-index: 2;
}

.brand img {
  height: clamp(46px, 5vw, 54px);
  object-fit: contain;
  width: clamp(50px, 5vw, 58px);
}

.nav {
  align-items: center;
  display: flex;
  gap: clamp(18px, 3vw, 42px);
  justify-content: center;
}

.nav a {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.nav a::after {
  background: var(--red);
  bottom: -10px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: var(--paper);
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-call {
  background: var(--red);
  border-radius: var(--radius);
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 900;
  padding: 12px 16px;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.header-call:hover,
.header-call:focus-visible {
  background: #ff252d;
  transform: translateY(-1px);
}

.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.nav-toggle {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--paper);
  display: none;
  height: 42px;
  padding: 8px;
  position: relative;
  width: 42px;
  z-index: 2;
}

.nav-toggle span {
  background: var(--paper);
  display: block;
  height: 2px;
  margin: 6px 0;
  width: 24px;
}

.section,
.services,
.section-dark {
  padding: clamp(58px, 8vw, 96px) clamp(20px, 5vw, 64px);
}

.hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.9) 40%, rgba(0, 0, 0, 0.72) 100%),
    radial-gradient(circle at 82% 28%, rgba(225, 25, 34, 0.32), transparent 36%),
    #060606;
  color: var(--paper);
  display: grid;
  gap: clamp(36px, 6vw, 74px);
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1.22fr);
  min-height: min(760px, 100svh);
  overflow: hidden;
  padding-top: 120px;
}

.hero-copy {
  min-width: 0;
  max-width: 560px;
  position: relative;
  z-index: 2;
}

.preline {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.hero h1 {
  font-size: clamp(4.5rem, 10vw, 10rem);
  letter-spacing: 0;
  line-height: 0.82;
  margin: 0 0 24px;
  max-width: 100%;
}

.hero h1 span {
  color: var(--red);
}

.hero-lede {
  color: var(--paper);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.24;
  margin: 0 0 16px;
}

.hero-copy p:not(.preline, .hero-lede) {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.03rem;
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  display: inline-flex;
  font-size: 0.96rem;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button.primary {
  background: var(--red);
  color: var(--paper);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #ff252d;
  transform: translateY(-1px);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--paper);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--paper);
  transform: translateY(-1px);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.hero-badges li {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 7px 11px;
}

.hero-media {
  min-height: 520px;
  position: relative;
}

.hero-media > img {
  bottom: -8px;
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.5));
  max-width: min(880px, 92vw);
  position: absolute;
  right: -32px;
  width: 100%;
}

.shop-sign {
  align-items: center;
  background: linear-gradient(135deg, #1e1f24, #09090a);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
  grid-template-columns: auto 1fr 1fr 1fr;
  left: 2%;
  padding: 18px 22px;
  position: absolute;
  top: 8%;
  transform: rotate(-1.5deg);
  width: min(520px, 78%);
  z-index: 2;
}

.shop-sign img {
  height: 78px;
  width: 82px;
}

.shop-sign span {
  color: var(--paper);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 950;
  text-align: center;
}

.shop-sign span:nth-child(2) {
  color: var(--red);
}

.intro {
  align-items: end;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  margin-inline: auto;
  max-width: var(--max);
}

.intro h2,
.section-heading h2,
.work h2,
.contact h2 {
  font-size: clamp(2.45rem, 5vw, 5.4rem);
  letter-spacing: 0;
  line-height: 0.92;
  margin: 0;
}

.intro p,
.section-heading p,
.work-copy p,
.contact-info p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 16px 0 0;
  max-width: 62ch;
}

.intro-proof {
  background: var(--ink);
  border-radius: var(--radius);
  color: var(--paper);
  padding: 24px;
}

.intro-proof span {
  color: var(--red);
  display: block;
  font-size: 2.6rem;
  font-weight: 950;
  line-height: 1;
}

.intro-proof p {
  color: rgba(255, 255, 255, 0.72);
  margin: 10px 0 0;
}

.services {
  background: var(--soft);
}

.section-heading {
  margin: 0 auto 30px;
  max-width: var(--max);
}

.service-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 38px;
  max-width: var(--max);
}

.service-tab {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--charcoal);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 900;
  min-height: 42px;
  padding: 10px 18px;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.service-tab.is-active {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
}

.service-tab:hover,
.service-tab:focus-visible {
  border-color: var(--red);
  transform: translateY(-1px);
}

.service-group {
  margin: 0 auto 46px;
  max-width: var(--max);
}

.service-group[hidden],
.service-card[hidden] {
  display: none;
}

.group-title {
  align-items: end;
  border-bottom: 3px solid var(--ink);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
}

.group-title h3 {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
}

.group-title p {
  color: var(--muted);
  margin: 0;
  max-width: 430px;
}

.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.service-card:hover {
  border-color: rgba(225, 25, 34, 0.34);
  box-shadow: 0 16px 30px rgba(17, 18, 21, 0.1);
  transform: translateY(-2px);
}

.service-card.wide {
  grid-column: span 2;
}

.service-card img {
  aspect-ratio: 16 / 10;
  background: #dfe1e6;
  height: auto;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}

.service-card:hover img {
  transform: scale(1.035);
}

.service-card h4 {
  font-size: 1.02rem;
  line-height: 1.14;
  margin: 14px 14px 8px;
}

.service-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 14px 18px;
}

.stats {
  background: var(--ink);
  color: var(--paper);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-block: 30px;
}

.stats div {
  border-right: 1px solid rgba(255, 255, 255, 0.26);
  padding: 10px 24px;
  text-align: center;
}

.stats div:last-child {
  border-right: 0;
}

.stats strong {
  color: var(--paper);
  display: block;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.stats span {
  color: rgba(255, 255, 255, 0.76);
  display: block;
  font-weight: 800;
  margin-top: 6px;
}

.work {
  display: grid;
  gap: clamp(28px, 5vw, 58px);
  grid-template-columns: 280px 1fr;
  margin-inline: auto;
  max-width: calc(var(--max) + 128px);
}

.work-copy {
  position: sticky;
  top: 100px;
}

.text-link {
  color: var(--red);
  display: inline-flex;
  font-weight: 950;
  margin-top: 22px;
  text-decoration: none;
}

.work-gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-gallery figure {
  background: var(--soft);
  border-radius: var(--radius);
  margin: 0;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.work-gallery figure:hover {
  box-shadow: 0 16px 30px rgba(17, 18, 21, 0.12);
  transform: translateY(-2px);
}

.work-gallery figure:first-child {
  grid-column: span 2;
}

.work-gallery img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}

.work-gallery figure:first-child img {
  object-fit: contain;
}

.work-gallery figure:hover img {
  transform: scale(1.035);
}

.work-gallery figcaption {
  font-size: 0.88rem;
  font-weight: 900;
  padding: 10px 12px 12px;
}

.contact {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.86)),
    url("../public/assets/optimized/contact-shop-1600.webp") center / cover;
  color: var(--paper);
  display: grid;
  gap: clamp(28px, 5vw, 58px);
  grid-template-columns: 0.86fr 1.14fr;
}

.contact-info,
.contact-form {
  margin-inline: auto;
  max-width: 620px;
  width: 100%;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.74);
}

.contact dl {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 34px 0 0;
}

.contact dt {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.contact dd {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  margin: 6px 0 0;
}

.contact dd a {
  text-decoration: none;
}

.contact-form {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 34px);
}

.contact-form h3 {
  font-size: 1.7rem;
  margin: 0 0 22px;
}

.form-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.contact-form span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--ink);
  min-height: 46px;
  padding: 11px 12px;
  width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--warm);
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.form-status {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  margin: 14px 0 0;
}

.footer {
  align-items: center;
  background: #030303;
  color: rgba(255, 255, 255, 0.68);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--paper);
  font-weight: 800;
  text-decoration: none;
}

.quick-contact {
  bottom: 18px;
  display: grid;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 18px;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
  visibility: hidden;
  z-index: 30;
}

.show-quick-contact .quick-contact {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
  visibility: visible;
}

.quick-contact a {
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 950;
  min-width: 94px;
  padding: 9px 12px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.quick-contact a:last-child {
  background: var(--red);
}

.quick-contact a:hover,
.quick-contact a:focus-visible {
  transform: translateY(-1px);
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    margin-inline: auto;
    min-height: 430px;
    width: min(100%, 760px);
  }

  .card-grid,
  .card-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .work,
  .contact {
    grid-template-columns: 1fr;
  }

  .work-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    min-height: 72px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    align-items: stretch;
    background: rgba(7, 7, 7, 0.98);
    bottom: 0;
    display: none;
    flex-direction: column;
    justify-content: start;
    left: 0;
    padding: 96px 26px 30px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 1.45rem;
    padding: 18px 0;
  }

  .nav a::after {
    bottom: 12px;
    right: auto;
    width: 44px;
  }

  .header-call {
    display: none;
  }

  .hero {
    gap: 22px;
    padding-top: 104px;
  }

  .hero h1 {
    font-size: clamp(3.75rem, 17vw, 5rem);
    line-height: 0.9;
  }

  .hero h1 span {
    display: block;
  }

  .hero-media {
    min-height: 350px;
    width: 100%;
  }

  .hero-media > img {
    left: 50%;
    max-width: 620px;
    right: auto;
    transform: translateX(-38%);
    width: 155%;
  }

  .shop-sign {
    grid-template-columns: auto 1fr;
    left: 0;
    padding: 16px;
    width: 92%;
  }

  .shop-sign span {
    text-align: left;
  }

  .intro,
  .group-title {
    display: block;
  }

  .group-title p {
    margin-top: 10px;
  }

  .card-grid,
  .card-grid.compact,
  .contact dl,
  .form-row,
  .stats {
    grid-template-columns: 1fr;
  }

  .work-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card.wide,
  .work-gallery figure:first-child {
    grid-column: auto;
  }

  .stats div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    border-right: 0;
  }

  .stats div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  body {
    padding-bottom: calc(46px + env(safe-area-inset-bottom));
  }

  .section,
  .services,
  .section-dark {
    padding-inline: 20px;
  }

  .hero-actions,
  .hero-actions .button,
  .quote-actions,
  .quote-actions .button {
    width: 100%;
  }

  .service-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-tab {
    padding-inline: 10px;
  }

  .work-gallery {
    grid-template-columns: 1fr;
  }

  .quick-contact {
    background: var(--ink);
    bottom: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    left: 0;
    padding-bottom: env(safe-area-inset-bottom);
    right: 0;
  }

  .quick-contact a {
    border-radius: 0;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .shop-sign {
    animation: sign-settle 680ms cubic-bezier(0.16, 1, 0.3, 1) both, sign-float 7s ease-in-out 900ms infinite;
  }

  .hero-copy {
    animation: copy-settle 620ms ease-out both;
  }

  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--motion), transform var(--motion);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  @keyframes copy-settle {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes sign-settle {
    from {
      opacity: 0;
      transform: translateY(-18px) rotate(-3deg);
    }
    to {
      opacity: 1;
      transform: translateY(0) rotate(-1.5deg);
    }
  }

  @keyframes sign-float {
    0%,
    100% {
      transform: translateY(0) rotate(-1.5deg);
    }
    50% {
      transform: translateY(-6px) rotate(-1.5deg);
    }
  }
}

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