/* ==========================================================
   Bay Powdercoaters — site stylesheet
   Custom utilities that complement Tailwind. No rounded
   capsules, no glass cards. Industrial editorial.
   ========================================================== */

:root {
  --ink: #0B0B0B;
  --bone: #F4F1EA;
  --bone-light: #FBF9F4;
  --ochre: #FFE100;
  --rule: rgba(11, 11, 11, 0.12);
  --rule-on-ink: rgba(244, 241, 234, 0.16);
}

html, body { background: var(--bone-light); }

/* Typography refinements */
.font-display {
  font-feature-settings: "ss01", "ss02";
}
.h-display {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Dimension line — a horizontal rule with end-caps, like a
   technical drawing measurement. Pure CSS. */
.dimline {
  position: relative;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.dimline::before,
.dimline::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 1px;
  height: 11px;
  background: currentColor;
}
.dimline::before { left: 0; }
.dimline::after  { right: 0; }

/* Vertical dimension */
.dimline-v {
  position: relative;
  width: 1px;
  background: currentColor;
  opacity: 0.7;
}
.dimline-v::before,
.dimline-v::after {
  content: "";
  position: absolute;
  left: -5px;
  width: 11px;
  height: 1px;
  background: currentColor;
}
.dimline-v::before { top: 0; }
.dimline-v::after  { bottom: 0; }

/* Powder-spray dot mark — abstracted from the BPC logo motif.
   Used decoratively on dark surfaces. */
.spray-dot {
  width: var(--s, 12px);
  height: var(--s, 12px);
  background: var(--ochre);
  border-radius: 50%;
  display: inline-block;
}

/* Blueprint micro-grid background */
.bg-grid-ink {
  background-image:
    linear-gradient(to right, rgba(244,241,234,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244,241,234,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.bg-grid-bone {
  background-image:
    linear-gradient(to right, rgba(11,11,11,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,11,11,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Marquee */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 0;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee__track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* Spec table */
.spec {
  display: grid;
  grid-template-columns: 1fr auto;
  border-top: 1px solid var(--rule);
}
.spec > div {
  display: contents;
}
.spec dt,
.spec dd {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}
.spec dt {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(11,11,11,0.6);
  align-self: center;
}
.spec dd {
  text-align: right;
  font-weight: 500;
}
.spec--ink dt,
.spec--ink dd {
  border-color: var(--rule-on-ink);
  color: var(--bone);
}
.spec--ink dt { color: rgba(244,241,234,0.55); }
.spec--ink {
  border-color: var(--rule-on-ink);
}

/* Ticker hairline — a single-line key/value strip */
.hairline {
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  opacity: 0.95;
}

/* Custom underline-on-hover for nav links, no pills */
.nav-link {
  position: relative;
  padding: 0.25rem 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--ochre);
  transition: right 280ms cubic-bezier(.2,.7,.2,1);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  right: 0;
}

/* Editorial number plate */
.numplate {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
}

/* Anchor offset for fixed header */
section[id] { scroll-margin-top: 96px; }

/* Pull-quote vertical bar */
.pullquote {
  border-left: 2px solid var(--ochre);
  padding-left: 1.25rem;
}

/* Image frame with technical corner brackets */
.frame {
  position: relative;
}
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--ochre);
}
.frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* Button: square, industrial */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.4rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid currentColor;
  transition: background 200ms, color 200ms, border-color 200ms;
}
.btn-ochre {
  background: var(--ochre);
  color: var(--ink);
  border-color: var(--ochre);
}
.btn-ochre:hover { background: #FFEC4A; border-color: #FFEC4A; }
.btn-ink {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.btn-ink:hover { background: var(--bone-light); color: var(--ink); border-color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: inherit;
}
.btn-ghost:hover { background: currentColor; color: var(--bone-light); }
.btn-ghost.on-ink:hover { color: var(--ink); }

/* Arrow */
.btn .arrow {
  width: 1.1em;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: width 220ms;
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { width: 1.6em; }

/* No focus rings styled away — keep accessibility */
:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 3px;
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
