/* BW huisstijlpagina
   Tokens come from bw huisstijl.ai (p. 13–14). Mobile first. */

@font-face {
  font-family: "Michroma";
  src: url("../fonts/michroma-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colours */
  --color-asphalt: #2f2b3d;        /* primair */
  --color-lime: #a3be42;           /* accent, Pantone 369 C */
  --color-mist: #e8f4fd;           /* secundair */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-asphalt-rgb: 47 43 61;
  --color-lime-rgb: 163 190 66;
  --color-mist-rgb: 232 244 253;

  /* Roles */
  --text: var(--color-asphalt);
  --text-muted: rgb(var(--color-asphalt-rgb) / 0.78);
  --surface: var(--color-white);
  --line: rgb(var(--color-asphalt-rgb) / 0.16);
  --focus: var(--color-asphalt);

  /* Type */
  --font-display: "Michroma", "Eurostile", "Arial", sans-serif;
  --font-body: "Lato", "Helvetica Neue", "Arial", sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  /* Brand book p. 13: H1 48pt, H2 22pt, H3 = body size (14pt) */
  --h1: clamp(2rem, 1.25rem + 3.2vw, 3.5rem);
  --h2: clamp(1.3rem, 1.15rem + 0.55vw, 1.6rem);
  --tagline-tracking: 0.058em;     /* baseline in the logo */

  /* Space and shape */
  --gutter: 1rem;
  --wrap: 78rem;
  --section-space: clamp(4rem, 3rem + 5vw, 8rem);
  --radius-oval: 999px;
  --radius-s: 4px;
  --stroke: 2px;
  --header-h: 4.25rem;
}

@media (min-width: 40em) {
  :root { --gutter: 2rem; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--color-lime);
  color: var(--color-asphalt);
  font-weight: 700;
  border-radius: var(--radius-oval);
}
.skip-link:focus { top: 0.75rem; }

/* Brand type system (brand book p. 13)
   H1: Michroma, lowercase. H2: Michroma, sentence case. H3: Lato Bold, uppercase. */
.h2 {
  font-family: var(--font-display);
  font-size: var(--h1);
  line-height: 1.15;
  max-width: 22ch;
}
.t-h2 {
  font-family: var(--font-display);
  font-size: var(--h2);
  line-height: 1.3;
}
.t-h3 {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}
.section { padding-block: var(--section-space); }
.section__head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.section__head p { max-width: 52ch; color: var(--text-muted); font-size: var(--step-1); }

/* Buttons: the oval label from the logo */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border: var(--stroke) solid currentColor;
  border-radius: var(--radius-oval);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--solid {
  background: var(--color-lime);
  border-color: var(--color-lime);
  color: var(--color-asphalt);
}
.btn--solid:hover { background: var(--color-white); border-color: var(--color-white); }
.btn--ghost { color: var(--color-white); }
.btn--ghost:hover { background: var(--color-white); border-color: var(--color-white); color: var(--color-asphalt); }

/* Header: logo + one way back to the main site */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-white);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: block; flex-shrink: 0; padding: 0.4rem 0; border-radius: var(--radius-s); }
.brand__mark { width: auto; height: 2.4rem; }

.btn__arrow { flex-shrink: 0; width: 1rem; height: 0.75rem; }
.btn--back {
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  font-size: var(--step--1);
  color: var(--color-asphalt);
}
.btn--back:hover { background: var(--color-asphalt); color: var(--color-white); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: min(calc(100svh - var(--header-h)), 60rem);
  background: var(--color-asphalt);
  color: var(--color-white);
  --focus: var(--color-lime);
}
.pic--hero {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.pic--hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgb(var(--color-asphalt-rgb) / 0.55) 0%,
      rgb(var(--color-asphalt-rgb) / 0.35) 35%,
      rgb(var(--color-asphalt-rgb) / 0.9) 72%,
      var(--color-asphalt) 100%);
}
.hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3.5rem;
  padding-block: clamp(2.5rem, 2rem + 4vw, 5rem) clamp(2.5rem, 2rem + 3vw, 4rem);
}
.hero__head { display: grid; gap: 1.5rem; justify-items: start; }
.hero__title {
  font-family: var(--font-display);
  /* Always one line, like the baseline in the logo: ~15.8em wide incl. the oval */
  font-size: min(5.5vw, 3rem);
  line-height: 1.2;
  letter-spacing: var(--tagline-tracking);
  white-space: nowrap;
}
/* The baseline oval from the brand book, drawn around the headline */
.label-oval {
  position: relative;
  display: inline-block;
  padding: 0.3em 1em 0.35em;
}
.label-oval::before {
  content: "";
  position: absolute;
  inset: 0;
  border: max(2px, 0.05em) solid currentColor;
  border-radius: var(--radius-oval);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero__statements {
  display: grid;
  gap: 2.25rem;
}
.statement {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding-top: 1.25rem;
  border-top: var(--stroke) solid var(--color-lime);
}
.statement__text { max-width: 54ch; margin-top: 0.4rem; font-size: var(--step-1); line-height: 1.55; }

@media (min-width: 48em) {
  .hero__statements { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 5rem); }
}

/* One orchestrated moment: the oval draws itself around the headline */
@media (prefers-reduced-motion: no-preference) {
  .js .label-oval::before {
    animation: draw-oval 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.25s both;
  }
}
@keyframes draw-oval {
  from { clip-path: inset(0 100% 0 0 round var(--radius-oval)); }
  to { clip-path: inset(0 0 0 0 round var(--radius-oval)); }
}

/* Story */
.story__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.story__text { display: grid; gap: 1.1rem; max-width: 36rem; }
.story__text .h2 { margin-bottom: 0.5rem; }
.story__media img { width: 100%; border-radius: var(--radius-s); }

.values { margin-top: clamp(3.5rem, 3rem + 3vw, 6rem); }
.values__title { margin-bottom: 2rem; }
.values__list { display: grid; gap: 2rem; }
.values__list li { padding-top: 1rem; border-top: var(--stroke) solid var(--color-asphalt); }
.values__list h3 { margin-bottom: 0.5rem; }
.values__list p { color: var(--text-muted); max-width: 38ch; }

@media (min-width: 60em) {
  .story__grid { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 7rem); }
  .values__list { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); }
}

/* Logo */
.logo {
  background: var(--color-asphalt);
  color: var(--color-white);
  --focus: var(--color-lime);
  --text-muted: rgb(var(--color-mist-rgb) / 0.85);
}
.logo__hero { display: grid; gap: 2.5rem; align-items: center; }
.logo__big { width: min(100%, 30rem); }
/* Brand book p. 8: small line + big line */
.logo__title { display: grid; gap: 0.2em; font-family: var(--font-display); line-height: 1.15; }
.logo__title-small { font-size: var(--h2); }
.logo__title-big { font-size: var(--h1); }
.logo__points {
  display: grid;
  gap: 2rem;
  margin-top: clamp(3rem, 2.5rem + 3vw, 5.5rem);
}
.logo__points h3 { margin-bottom: 0.5rem; }
.logo__points p { color: var(--text-muted); max-width: 40ch; }

.rules {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  margin-top: clamp(3.5rem, 3rem + 3vw, 6rem);
  padding-top: clamp(3rem, 2.5rem + 2vw, 4.5rem);
  border-top: 1px solid rgb(var(--color-mist-rgb) / 0.2);
}
.clearspace { margin: 0; justify-self: start; }
.clearspace__zone {
  /* x = height of the B = 20.2% of the mark width (measured in the .ai) */
  --mark-w: min(20rem, 62vw);
  --x: calc(var(--mark-w) * 0.202);
  position: relative;
  padding: var(--x);
  border: 1px dashed rgb(var(--color-mist-rgb) / 0.6);
  background: repeating-linear-gradient(-45deg, rgb(var(--color-lime-rgb) / 0.22) 0 1px, transparent 1px 9px);
}
.clearspace__zone img { width: var(--mark-w); background: var(--color-asphalt); }
/* A B at exact clear-space height on each side of the mark */
.clearspace__b {
  position: absolute;
  height: var(--x);
  width: calc(var(--x) * 1.3046); /* B aspect ratio 224.15 / 171.82 */
  fill: rgb(var(--color-lime-rgb) / 0.85);
}
.clearspace__b--top { top: 0; left: 50%; transform: translateX(-50%); }
.clearspace__b--bottom { bottom: 0; left: 50%; transform: translateX(-50%); }
/* Rotated so the height of the B spans the side gap */
.clearspace__b--left { left: calc(var(--x) / 2); top: 50%; transform: translate(-50%, -50%) rotate(-90deg); }
.clearspace__b--right { right: calc(var(--x) / 2); top: 50%; transform: translate(50%, -50%) rotate(90deg); }
.clearspace figcaption { margin-top: 0.9rem; font-size: var(--step--1); color: var(--text-muted); }
.rules__text { display: grid; gap: 0.9rem; max-width: 40ch; }
.rules__text p { color: var(--text-muted); }

@media (min-width: 60em) {
  .logo__hero { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 7rem); }
  .logo__points { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); }
  .rules { grid-template-columns: auto 1fr; gap: clamp(3rem, 6vw, 7rem); }
}

/* Downloads */
.downloads { background: var(--color-mist); }
.switch {
  display: inline-flex;
  margin: 0 0 2rem;
  padding: 0.3rem;
  border: var(--stroke) solid var(--color-asphalt);
  border-radius: var(--radius-oval);
  background: var(--color-white);
}
.switch label { position: relative; cursor: pointer; }
.switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.switch span {
  display: block;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-oval);
  font-weight: 700;
  font-size: var(--step--1);
}
.switch input:checked + span { background: var(--color-asphalt); color: var(--color-white); }
.switch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
/* The switch only works with JS; hide it otherwise */
.no-js .switch { display: none; }

.variants { display: grid; gap: 1.25rem; }
.variant {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--color-white);
  border-radius: var(--radius-s);
  overflow: hidden;
}
.variant__preview {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 16%;
}
.variant__preview img { width: 100%; max-height: 100%; object-fit: contain; }
.variant--lime .variant__preview { background: var(--color-asphalt); }
.variant--asphalt .variant__preview { background: var(--color-white); border-bottom: 1px solid var(--line); }
.variant--white .variant__preview {
  background:
    linear-gradient(rgb(var(--color-asphalt-rgb) / 0.35), rgb(var(--color-asphalt-rgb) / 0.35)),
    url("../img/hero-640.webp") 8% 50% / 260% auto;
}
.variant--black .variant__preview { background: var(--color-white); border-bottom: 1px solid var(--line); }
.variant__body { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.25rem 1.25rem 1.5rem; }

.variant__use { color: var(--text-muted); font-size: var(--step--1); }
.formats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 1rem; }
.fmt {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border: var(--stroke) solid var(--color-asphalt);
  border-radius: var(--radius-oval);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.fmt:hover { background: var(--color-asphalt); color: var(--color-white); }

@media (min-width: 40em) {
  .variants { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 70em) {
  .variants { grid-template-columns: repeat(4, 1fr); }
}

/* Colours */
.swatches { display: grid; gap: 1.5rem; }
.swatch { display: grid; align-content: start; gap: 1rem; }
.swatch__chip { height: 8rem; border-radius: var(--radius-s); }
.swatch--asphalt .swatch__chip { background: var(--color-asphalt); }
.swatch--lime .swatch__chip { background: var(--color-lime); }
.swatch--mist .swatch__chip { background: var(--color-mist); box-shadow: inset 0 0 0 1px var(--line); }
.swatch__info { display: grid; align-content: start; gap: 0.2rem; justify-items: start; }
.swatch__values { display: grid; gap: 0.1rem; margin: 0.25rem 0 0.9rem; font-variant-numeric: tabular-nums; }
.copy {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  background: none;
  border: var(--stroke) solid var(--color-asphalt);
  border-radius: var(--radius-oval);
  font-weight: 700;
  font-size: var(--step--1);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.copy:hover, .copy.is-done { background: var(--color-asphalt); color: var(--color-white); }
.colors__note {
  margin-top: 2.5rem;
  max-width: 60ch;
  padding-left: 1rem;
  border-left: 4px solid var(--color-lime);
  color: var(--text-muted);
}

/* Proportions follow how much each colour is used */
@media (min-width: 48em) {
  .swatches { grid-template-columns: 5fr 2.4fr 3fr; gap: 1.25rem; }
  .swatch__chip { height: clamp(12rem, 22vw, 18rem); }
}

/* Typography */
.type { background: var(--color-mist); }
.fonts { display: grid; gap: 1.25rem; }
.font {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--color-white);
  border-radius: var(--radius-s);
}
.font__name { margin-bottom: 1rem; color: var(--text-muted); }
.font__h1 { font-family: var(--font-display); font-size: var(--h1); line-height: 1.15; }
.font__h2 { font-family: var(--font-display); font-size: var(--h2); line-height: 1.3; margin-top: 0.4rem; }
.font__body { max-width: 40ch; margin-top: 0.25rem; }
.font__meta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-weight: 700;
}
.font__use { color: var(--text-muted); }
.type__note { margin-top: 1.5rem; color: var(--text-muted); font-size: var(--step--1); }

@media (min-width: 48em) {
  .fonts { grid-template-columns: 1fr 1fr; }
}

/* Applications */
.gallery { display: grid; gap: 2rem 1.25rem; }
.gallery__item { display: flex; flex-direction: column; margin: 0; }
.gallery__item .pic { display: block; flex: 1; min-height: 0; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-s); }
.gallery__item figcaption { margin-top: 0.7rem; font-size: var(--step--1); color: var(--text-muted); }
.gallery__item--plate img { object-fit: contain; background: var(--color-white); }
.flags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.flags img { aspect-ratio: 3 / 4; }

@media (min-width: 60em) {
  .gallery { grid-template-columns: repeat(12, 1fr); }
  .gallery__item--shirt { grid-column: 1 / 6; grid-row: 1 / 3; }
  .gallery__item--facade { grid-column: 6 / 13; grid-row: 1; }
  .gallery__item--cards { grid-column: 6 / 13; grid-row: 2; }
  .gallery__item--facade img,
  .gallery__item--cards img { aspect-ratio: 16 / 10; }
  .gallery__item--flags { grid-column: 1 / 13; }
  .flags { gap: 1.25rem; }
  .gallery__item--trailer { grid-column: 1 / 8; }
  .gallery__item--plate { grid-column: 8 / 13; }
  .gallery__item--trailer img { aspect-ratio: 3 / 2; }
}

/* Package */
.package {
  background: var(--color-lime);
  color: var(--color-asphalt);
  --text-muted: var(--color-asphalt);
}
.package__inner { display: grid; gap: 2.5rem; align-items: center; }
.package__inner > div { display: grid; gap: 1.1rem; }
.package__inner p { max-width: 50ch; font-size: var(--step-1); }
.package__inner .package__license { font-size: var(--step--1); }
.btn--package {
  justify-self: start;
  flex-wrap: wrap;
  padding: 1.1rem 2rem;
  background: var(--color-asphalt);
  border-color: var(--color-asphalt);
  color: var(--color-white);
  font-size: var(--step-1);
}
.btn--package:hover { background: var(--color-white); border-color: var(--color-white); color: var(--color-asphalt); }
.btn__icon { width: 1.4rem; height: 1.4rem; }
.btn__meta { font-weight: 400; font-size: var(--step--1); opacity: 0.85; }

@media (min-width: 60em) {
  .package__inner { grid-template-columns: 1fr auto; gap: 4rem; }
}

/* Footer */
.site-footer {
  background: var(--color-asphalt);
  color: var(--color-mist);
  font-size: var(--step--1);
  --focus: var(--color-lime);
}
.footer__main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(3rem, 2.5rem + 3vw, 5rem);
}
.footer__logo { width: 11rem; height: auto; margin-bottom: 1.75rem; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer address strong { color: var(--color-white); }
.site-footer address a,
.footer__legal a { text-decoration: none; }
.site-footer address a:hover,
.footer__legal a:hover { text-decoration: underline; color: var(--color-white); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  position: relative;
  padding-block: 1.5rem;
}
.footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid rgb(var(--color-mist-rgb) / 0.2);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }

@media print {
  .site-header, .hero__actions, .switch, .formats, .copy, .package .btn { display: none !important; }
  .hero, .logo, .package, .site-footer { background: none; color: #000; }
}
