:root {
  color-scheme: dark;
  --black: #050505;
  --panel: #0d0d0d;
  --panel-soft: #121212;
  --white: #f5f5f2;
  --muted: #a7a7a2;
  --line: rgba(255, 255, 255, .16);
  --line-strong: rgba(255, 255, 255, .34);
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html {
  background: var(--black);
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--black);
  color: var(--white);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("assets/paint-bg.png") center / cover no-repeat;
  filter: grayscale(1) contrast(1.15) brightness(.42);
  opacity: .34;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5,5,5,.6), #050505 82%);
  pointer-events: none;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 10px 14px; background: var(--white); color: var(--black); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, .88);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: .94rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: grayscale(1) brightness(2.8);
}

.brand small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .19em;
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--muted); font-size: .88rem; font-weight: 650; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--white); }
.main-nav .nav-contact { border: 1px solid var(--line-strong); padding: 10px 16px; color: var(--white); }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; color: var(--white); padding: 11px; }
.menu-button span { display: block; height: 1px; background: currentColor; margin: 5px 0; }

main { min-height: 72vh; }
.view { animation: page-in .38s cubic-bezier(.22, .8, .3, 1) both; }

@keyframes page-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: .96; letter-spacing: -.045em; }

.hero {
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: stretch;
  border-inline: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 9vw, 126px) clamp(24px, 6vw, 76px);
  background: rgba(5, 5, 5, .78);
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 26px;
  font-size: clamp(3.4rem, 7vw, 7rem);
  text-transform: uppercase;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 570px;
  margin-bottom: 34px;
  color: #d1d1cc;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--black);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.button.secondary { background: transparent; color: var(--white); border-color: var(--line-strong); }
.button:hover { background: #d9d9d4; }
.button.secondary:hover { background: var(--white); color: var(--black); }

.hero-art {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-left: 1px solid var(--line);
  background: #0b0b0b url("assets/paint-bg.png") center / cover no-repeat;
  filter: grayscale(1);
}

.hero-art::after {
  content: "OUTLET";
  position: absolute;
  right: -18px;
  bottom: -34px;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(6rem, 12vw, 12rem);
  font-weight: 900;
  letter-spacing: -.08em;
  line-height: 1;
  writing-mode: vertical-rl;
}

.hero-art-card {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 1;
  width: min(250px, calc(100% - 48px));
  padding: 20px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(5,5,5,.72);
}

.hero-art-card span { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.hero-art-card strong { display: block; margin-top: 10px; font-size: 1.06rem; line-height: 1.35; }

.section { padding: clamp(72px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.section-head h2 { max-width: 760px; margin-bottom: 0; font-size: clamp(2.5rem, 5vw, 5rem); text-transform: uppercase; }
.text-link { color: var(--muted); font-size: .84rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.text-link:hover { color: var(--white); }

.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); }
.category-card { min-height: 188px; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; border-right: 1px solid var(--line); background: rgba(8,8,8,.84); }
.category-card:last-child { border-right: 0; }
.category-card small { color: var(--muted); font-size: .7rem; letter-spacing: .13em; }
.category-card strong { font-size: clamp(1.2rem, 2vw, 1.8rem); line-height: 1; text-transform: uppercase; }
.category-card:hover { background: var(--white); color: var(--black); }
.category-card:hover small { color: #505050; }

.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brand-card { min-height: 150px; display: grid; place-items: center; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f4f4f0; }
.brand-card img { width: 100%; height: 86px; object-fit: contain; }

.page-hero { padding: clamp(76px, 10vw, 132px) 0 58px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 900px; margin-bottom: 22px; font-size: clamp(3.2rem, 7vw, 7.4rem); text-transform: uppercase; }
.page-hero p:not(.eyebrow) { max-width: 680px; margin-bottom: 0; color: #ccccC7; font-size: 1.05rem; }

.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 32px; }
.filter-button { padding: 10px 14px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: .79rem; font-weight: 760; text-transform: uppercase; }
.filter-button:hover, .filter-button.is-active { border-color: var(--white); background: var(--white); color: var(--black); }

.catalog-state { min-height: 330px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; padding: clamp(28px, 5vw, 54px); border: 1px solid var(--line); background: rgba(8,8,8,.84); }
.catalog-state h2 { max-width: 720px; margin-bottom: 16px; font-size: clamp(2.2rem, 5vw, 5.1rem); text-transform: uppercase; }
.catalog-state p { max-width: 590px; margin-bottom: 0; color: var(--muted); }
.catalog-code { align-self: start; color: var(--muted); font-size: .72rem; letter-spacing: .16em; }

.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.about-grid > * { background: rgba(8,8,8,.94); padding: clamp(28px, 5vw, 56px); }
.about-grid h2 { font-size: clamp(2.1rem, 4vw, 4rem); text-transform: uppercase; }
.about-grid p { max-width: 650px; color: #ccccC7; }
.facts { display: grid; gap: 0; }
.fact { padding: 20px 0; border-top: 1px solid var(--line); }
.fact:first-child { padding-top: 0; border-top: 0; }
.fact strong { display: block; margin-bottom: 5px; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.fact span { color: var(--muted); }

.contact-panel { display: grid; grid-template-columns: 1fr .85fr; border: 1px solid var(--line); background: rgba(8,8,8,.88); }
.contact-copy, .contact-status { padding: clamp(28px, 5vw, 56px); }
.contact-copy { border-right: 1px solid var(--line); }
.contact-copy h2 { font-size: clamp(2.2rem, 4vw, 4.2rem); text-transform: uppercase; }
.contact-copy p { color: var(--muted); }
.contact-status { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.status-line { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.status-line span { color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); background: rgba(5,5,5,.96); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr .8fr; gap: 50px; padding-block: 58px; }
.footer-grid strong { font-size: 1rem; letter-spacing: .16em; }
.footer-grid p { max-width: 350px; margin: 14px 0 0; color: var(--muted); }
.footer-grid nav { display: grid; align-content: start; gap: 8px; }
.footer-grid nav a { color: var(--muted); }
.footer-grid nav a:hover { color: var(--white); }
.footer-grid .footer-status { margin: 0; color: var(--white); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-align: right; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }

@media (max-width: 900px) {
  :root { --shell: min(100% - 28px, 740px); }
  .menu-button { display: block; }
  .main-nav { position: absolute; top: 76px; left: 0; right: 0; display: none; padding: 18px var(--shell); border-bottom: 1px solid var(--line); background: #080808; }
  .main-nav.is-open { display: grid; gap: 0; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav .nav-contact { border: 0; padding-inline: 0; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { min-height: 620px; }
  .hero-art { min-height: 440px; border-top: 1px solid var(--line); border-left: 0; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card { border-bottom: 1px solid var(--line); }
  .category-card:nth-child(2n) { border-right: 0; }
  .category-card:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-panel { grid-template-columns: 1fr; }
  .contact-copy { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 24px); }
  .header-inner { min-height: 68px; }
  .brand { font-size: .78rem; letter-spacing: .1em; }
  .brand img { width: 34px; height: 34px; }
  .brand small { font-size: .5rem; }
  .main-nav { top: 68px; }
  .hero { border-inline: 0; }
  .hero-copy { min-height: 560px; padding-inline: 6px; }
  .hero h1 { font-size: clamp(3.05rem, 16vw, 5.3rem); }
  .hero-art { min-height: 390px; }
  .section-head { align-items: start; flex-direction: column; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card, .category-card:nth-child(2n) { min-height: 134px; border-right: 0; border-bottom: 1px solid var(--line); }
  .category-card:last-child { grid-column: auto; }
  .brand-grid { grid-template-columns: 1fr; }
  .brand-card { min-height: 134px; }
  .page-hero { padding-top: 76px; }
  .page-hero h1 { font-size: clamp(3rem, 17vw, 5rem); }
  .catalog-state { grid-template-columns: 1fr; min-height: 380px; }
  .catalog-code { order: -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid .footer-status { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .view { animation: none; }
}
