/* ============================================================
   VLRD — livery & brand identity
   Two inks: #007dc5 blue + #003263 navy on paper white.
   Type: extra-thin display against extra-bold body.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --bg: #f7f5ea;
  --paper: #fffdf4;
  --ink-a: #007dc5;
  --ink-b: #f23120;
  --navy: #003263;
  --ink: #14121c;
  --ink-soft: #4a4658;
  --rule: rgba(20, 18, 28, 0.16);
  --shadow: rgba(0, 125, 197, 0.14);
  --accent-text: #007dc5;

  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(1.1rem, 5vw, 3.5rem);
  --measure: 55ch;
}

/* Dark mode: same two inks, inverted paper. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14121c;
    --paper: #1c1a26;
    --ink: #f4f1e6;
    --ink-soft: #b3aec4;
    --rule: rgba(244, 241, 230, 0.18);
    --shadow: rgba(0, 125, 197, 0.22);
    --accent-text: #4db8f0;
  }
}

html[data-theme='light'] {
  --bg: #f7f5ea;
  --paper: #fffdf4;
  --ink: #14121c;
  --ink-soft: #4a4658;
  --rule: rgba(20, 18, 28, 0.16);
  --shadow: rgba(0, 125, 197, 0.14);
  --accent-text: #007dc5;
}

html[data-theme='dark'] {
  --bg: #14121c;
  --paper: #1c1a26;
  --ink: #f4f1e6;
  --ink-soft: #b3aec4;
  --rule: rgba(244, 241, 230, 0.18);
  --shadow: rgba(0, 125, 197, 0.22);
  --accent-text: #4db8f0;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.1rem);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 55% at 8% -5%, rgba(0, 125, 197, 0.18) 0%, transparent 62%),
    radial-gradient(ellipse 65% 60% at 100% 12%, rgba(242, 49, 32, 0.13) 0%, transparent 58%),
    radial-gradient(ellipse 80% 50% at 50% 108%, rgba(0, 125, 197, 0.10) 0%, transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink-b);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- type ---------- */

h1, h2, h3 { font-weight: 200; letter-spacing: -0.02em; line-height: 1.02; margin: 0; }

h1 {
  font-size: clamp(2.9rem, 11vw, 7.5rem);
  font-variation-settings: 'opsz' 96;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.7rem, 4.6vw, 2.9rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 300;
}

p { margin: 0 0 1.1em; }

strong { font-weight: 800; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
}

.lede {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 700;
  line-height: 1.45;
}

.muted { color: var(--ink-soft); font-weight: 600; }

.ph {
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 2px dotted var(--ink-a);
  padding-bottom: 1px;
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { display: block; }

section { padding-block: clamp(3.2rem, 9vw, 6.5rem); }

.col {
  max-width: var(--measure);
  margin-inline: auto;
}

/* wide asides pull out past the narrow column */
.aside {
  max-width: 1180px;
  margin-inline: auto;
  margin-block: clamp(2rem, 6vw, 4rem);
}

@media (min-width: 900px) {
  .aside {
    margin-inline: calc(-1 * clamp(0rem, 12vw, 11rem));
  }
}

.rule {
  border: 0;
  border-top: 2px solid var(--rule);
  margin: 0;
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 2px solid var(--rule);
}

.site-head .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
  padding-block: 0.7rem;
}

@media (min-width: 700px) {
  .site-head .bar { min-height: 96px; }
}

.wordmark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.3em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.wordmark span { color: var(--ink-a); }

/* Logo images replace the wordmark text. Two files: one for light
   backgrounds (black wordmark), one for dark backgrounds (white wordmark). */
.wordmark img {
  display: block;
  height: 42px;
  width: auto;
}

@media (min-width: 700px) {
  .wordmark img { height: 54px; }
}

/* Light mode shows the light-background logo. */
.wordmark .logo-dark { display: none; }

/* Dark mode shows the dark-background logo. */
html[data-theme='dark'] .wordmark .logo-light { display: none; }
html[data-theme='dark'] .wordmark .logo-dark { display: block; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme='light']) .wordmark .logo-light { display: none; }
  html:not([data-theme='light']) .wordmark .logo-dark { display: block; }
}

html[data-theme='light'] .wordmark .logo-light { display: block; }
html[data-theme='light'] .wordmark .logo-dark { display: none; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 2vw, 1.4rem);
}

.nav a,
.nav-link {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 0.35rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.nav-link:hover { border-bottom-color: var(--ink-a); }

/* ---------- showroom dropdown ---------- */

.nav-item { position: relative; }

.nav-drop .caret {
  width: 10px;
  height: 7px;
  flex: none;
  transition: transform 0.2s ease;
}

.nav-item.open .nav-drop .caret { transform: rotate(180deg); }

.dropdown {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 190px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--shadow);
  display: none;
  z-index: 50;
}

.nav-item.open .dropdown { display: block; }

.dropdown a {
  display: block;
  padding: 0.85rem 1rem;
  min-height: 44px;
  border-bottom: 0;
  white-space: nowrap;
}

.dropdown a:hover {
  background: var(--ink-a);
  color: #ffffff;
}

.theme-toggle {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.6rem 0.85rem;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover { background: var(--ink); color: var(--bg); }

@media (max-width: 640px) {
  .nav a.hide-sm { display: none; }
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-block: 2px solid var(--ink);
  background: var(--navy);
  color: #ffffff;
  padding-block: 0.55rem;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: scroll 34s linear infinite;
}

.marquee-track span {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track span::after {
  content: '◆';
  margin-left: 3rem;
  color: #ffffff;
}

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

/* ---------- hero ---------- */

/* Section headings get real air before the body copy that follows. */
section > .wrap > .col > h2 { margin-bottom: clamp(1.6rem, 4.5vw, 2.6rem); }

.hero { padding-block: clamp(3rem, 10vw, 7rem) clamp(2rem, 6vw, 4rem); }

.hero h1 { margin-bottom: 1.2rem; }

.hero h1 .mis {
  position: relative;
  display: inline-block;
  color: var(--ink);
}

.hero h1 .mis::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--ink-a);
  transform: translate(-6px, 5px);
  z-index: -1;
  mix-blend-mode: multiply;
}

html[data-theme='dark'] .hero h1 .mis::before { mix-blend-mode: screen; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme='light']) .hero h1 .mis::before { mix-blend-mode: screen; }
}

.hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 2px solid var(--rule);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover { background: var(--ink-a); border-color: var(--ink-a); color: #ffffff; }

.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

/* ---------- work cards ---------- */

.work-grid {
  display: grid;
  gap: clamp(1.4rem, 4vw, 2.6rem);
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

.card {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: clamp(1.2rem, 3vw, 1.9rem);
  box-shadow: 8px 8px 0 var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover { transform: translate(-3px, -3px); box-shadow: 12px 12px 0 var(--shadow); }

.card .tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  display: block;
  margin-bottom: 0.9rem;
}

.card h3 { margin-bottom: 0.7rem; }

.card p { margin-bottom: 0; font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }

.card .swatches {
  display: flex;
  gap: 0;
  margin-top: 1.3rem;
  border: 2px solid var(--ink);
  height: 34px;
}

.card .swatches i { flex: 1; }

/* ---------- process list ---------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1.2rem;
  padding-block: 1.5rem;
  border-top: 2px solid var(--rule);
}

.steps li:last-child { border-bottom: 2px solid var(--rule); }

.steps li::before {
  content: '0' counter(step);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-a);
  padding-top: 0.35rem;
}

.steps h3 { grid-column: 2; margin-bottom: 0.4rem; }
.steps p { grid-column: 2; margin: 0; font-weight: 600; color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  gap: clamp(1.6rem, 5vw, 3.4rem);
  grid-template-columns: 1fr;
}

@media (min-width: 820px) {
  .about-grid { grid-template-columns: 1.35fr 1fr; align-items: start; }
}

.factlist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }

.factlist li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 2px solid var(--rule);
  font-size: 0.9rem;
}

.factlist b {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.factlist span { font-weight: 700; text-align: right; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  gap: clamp(1.8rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
}

@media (min-width: 820px) {
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

form { display: grid; gap: 1.1rem; }

.field { display: grid; gap: 0.45rem; }

label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

input, textarea, select {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 0.8rem 0.9rem;
  min-height: 48px;
  width: 100%;
  border-radius: 0;
}

textarea { min-height: 150px; resize: vertical; }

input:focus, textarea:focus, select:focus {
  outline: 3px solid var(--ink-b);
  outline-offset: 2px;
}

.form-status {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0;
  padding: 0.8rem 0.9rem;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.form-status[data-state='ok'] { border-color: var(--accent-text); color: var(--accent-text); }
.form-status[data-state='err'] { border-color: #c0200f; color: #c0200f; }

html[data-theme='dark'] .form-status[data-state='err'] { color: #ff7a68; border-color: #ff7a68; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme='light']) .form-status[data-state='err'] { color: #ff7a68; border-color: #ff7a68; }
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 2px solid var(--ink);
  padding-block: clamp(2.4rem, 6vw, 3.6rem) 5rem;
  margin-top: clamp(2rem, 6vw, 4rem);
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 3rem;
  justify-content: space-between;
  align-items: flex-end;
}

.foot-grid p { margin: 0; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }

/* ---------- footer social ---------- */

.foot-social { display: flex; flex-direction: column; align-items: flex-start; }

.foot-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.7rem;
}

/* Icons line up with the "S" of the label above them, not with the
   label's box — the first icon's own padding is pulled back out. */
.social {
  list-style: none;
  margin: 0;
  margin-left: -11px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
}

/* Transparent emblems — no boxes, no labels. The icon is the button. */
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social a:hover { color: var(--ink-a); transform: translateY(-2px); }

.social svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: currentColor;
}

/* TradingPaints mark — a supplied colour logo, so it does not inherit
   the icon colour. Two files, swapped with the theme. */
.social .tp-logo {
  width: 24px;
  height: 24px;
  display: block;
}

.social .tp-dark { display: none; }

html[data-theme='dark'] .social .tp-light { display: none; }
html[data-theme='dark'] .social .tp-dark { display: block; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme='light']) .social .tp-light { display: none; }
  html:not([data-theme='light']) .social .tp-dark { display: block; }
}

html[data-theme='light'] .social .tp-light { display: block; }
html[data-theme='light'] .social .tp-dark { display: none; }

.attribution {
  position: static;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 1;
  color: var(--ink-soft);
  margin-top: 1.6rem;
}

.attribution a { color: var(--ink-soft); text-decoration: underline; }

/* ---------- inner page head ---------- */

.page-head { padding-block: clamp(2.6rem, 8vw, 5.5rem) clamp(3.2rem, 9vw, 6.5rem); }

.page-title {
  font-size: clamp(2.1rem, 6.5vw, 4.2rem);
  font-weight: 200;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0 0 clamp(1.4rem, 4vw, 2.2rem);
}

/* ---------- showroom split ---------- */

.split {
  display: grid;
  gap: clamp(1.4rem, 4vw, 2.6rem);
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .split { grid-template-columns: repeat(2, 1fr); }
}

.split-card {
  display: block;
  text-decoration: none;
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: clamp(1.3rem, 3vw, 2rem);
  box-shadow: 8px 8px 0 var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.split-card:hover { transform: translate(-3px, -3px); box-shadow: 12px 12px 0 var(--shadow); }

.split-card h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 0.8rem; }

.split-card p { font-size: 0.96rem; font-weight: 600; color: var(--ink-soft); }

.split-card .go {
  display: inline-block;
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* ---------- showroom quad (four-up presentation) ---------- */

.quad {
  display: grid;
  gap: clamp(1.2rem, 3vw, 1.8rem);
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .quad { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
  .quad { grid-template-columns: repeat(4, 1fr); }
}

.quad-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.quad-card:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 var(--shadow); }

/* The solid colour plate stands in for the image that will go here. */
.quad-plate {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-bottom: 2px solid var(--ink);
}

.quad-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1rem, 2.4vw, 1.4rem);
}

.quad-body .tag { margin-bottom: 0.7rem; }

.quad-body h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin-bottom: 0.6rem;
}

.quad-body p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

.quad-body .go {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* ---------- image gallery ---------- */

.gallery {
  display: grid;
  gap: clamp(1rem, 3vw, 1.8rem);
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

.shot {
  margin: 0;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--shadow);
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 2px solid var(--ink);
}

.shot figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.8rem;
  align-items: baseline;
  padding: 0.85rem 1rem;
  font-size: 0.86rem;
}

.shot figcaption b {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.gallery-note { margin-top: 1.4rem; font-size: 0.88rem; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .card:hover { transform: none; }
  .split-card:hover { transform: none; }
  .quad-card:hover { transform: none; }
  .social a:hover { transform: none; }
}
