/* =========================================================================
   Bolton Footwear — theme.css
   Design tokens ported 1:1 from the design build (oklch colour space).
   ========================================================================= */

:root {
  --bf-radius: 0rem;

  --bf-ink: oklch(0.185 0 0);
  --bf-ash: oklch(0.265 0 0);
  --bf-steel: oklch(0.41 0 0);
  --bf-ember: oklch(0.652 0.176 42);
  --bf-bone: oklch(0.965 0.003 60);

  --bf-bg: oklch(0.16 0 0);
  --bf-fg: oklch(0.965 0.003 60);
  --bf-card: oklch(0.215 0 0);
  --bf-primary: oklch(0.652 0.176 42);
  --bf-primary-fg: oklch(0.16 0 0);
  --bf-muted: oklch(0.245 0 0);
  --bf-muted-fg: oklch(0.685 0 0);
  --bf-border: oklch(1 0 0 / 12%);
  --bf-input: oklch(1 0 0 / 16%);
  --bf-ring: oklch(0.652 0.176 42);

  --bf-font-display: "Bebas Neue", "Barlow Condensed", Impact, sans-serif;
  --bf-font-sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bf-max: 1440px;
  --bf-pad: 1.25rem;
  --bf-header-h: 6.5rem;
}

@media (min-width: 640px) {
  :root { --bf-pad: 2.5rem; }
}

/* ---------- Reset / base ------------------------------------------------ */

*,
*::before,
*::after { box-sizing: border-box; border-color: var(--bf-border); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--bf-bg);
  color: var(--bf-fg);
  font-family: var(--bf-font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--bf-primary); }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--bf-font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 0.88;
  text-transform: uppercase;
  margin: 0;
}

p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--bf-ember); color: var(--bf-ink); }

:focus-visible {
  outline: 2px solid var(--bf-ring);
  outline-offset: 3px;
}

.bf-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--bf-primary);
  color: var(--bf-primary-fg);
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.bf-skip-link:focus { left: 1rem; top: 1rem; }

.bf-screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ---------- Type helpers ------------------------------------------------ */

.bf-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bf-muted-fg);
}
.bf-eyebrow--primary { color: var(--bf-primary); }

.bf-num {
  font-family: var(--bf-font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  line-height: 0.82;
}

.bf-muted { color: var(--bf-muted-fg); }
.bf-accent { color: var(--bf-primary); }

.bf-lead { line-height: 1.7; color: var(--bf-muted-fg); }
.bf-small { font-size: 0.875rem; line-height: 1.7; color: var(--bf-muted-fg); }

.bf-h2 { font-size: 3rem; margin-top: 1.25rem; }
.bf-h3 { font-size: 1.5rem; line-height: 1.05; }

@media (min-width: 640px) {
  .bf-h2 { font-size: 4.5rem; }
}

/* ---------- Layout ------------------------------------------------------ */

.bf-container {
  width: 100%;
  max-width: var(--bf-max);
  margin-inline: auto;
  padding-inline: var(--bf-pad);
}

.bf-section {
  padding-block: 6rem;
  scroll-margin-top: 6rem;
}
.bf-section--rule { border-top: 1px solid var(--bf-border); }

@media (min-width: 640px) {
  .bf-section { padding-block: 8rem; }
}

.bf-grid { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr); }
.bf-grid--tight { gap: 2rem; }
.bf-grid--end { align-items: end; }

@media (min-width: 768px) {
  .bf-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  /* Span is set on grid-column-END so that an explicit .bf-s* start does not
     cancel it (the grid-column shorthand would reset the end to auto). */
  .bf-c1 { grid-column-end: span 1; }
  .bf-c2 { grid-column-end: span 2; }
  .bf-c3 { grid-column-end: span 3; }
  .bf-c4 { grid-column-end: span 4; }
  .bf-c5 { grid-column-end: span 5; }
  .bf-c6 { grid-column-end: span 6; }
  .bf-c7 { grid-column-end: span 7; }
  .bf-c8 { grid-column-end: span 8; }
  .bf-c9 { grid-column-end: span 9; }
  .bf-c10 { grid-column-end: span 10; }
  .bf-c12 { grid-column-end: span 12; }
  .bf-s5 { grid-column-start: 5; }
  .bf-s6 { grid-column-start: 6; }
  .bf-s7 { grid-column-start: 7; }
  .bf-s8 { grid-column-start: 8; }
  .bf-s9 { grid-column-start: 9; }
}

/* Hairline card grid: 1px gaps rendered by the border-coloured background */
.bf-cardgrid {
  display: grid;
  gap: 1px;
  background: var(--bf-border);
  margin-top: 4rem;
}
.bf-cardgrid > * { background: var(--bf-bg); }
.bf-cardgrid--2 { grid-template-columns: 1fr; }
.bf-cardgrid--3 { grid-template-columns: 1fr; }
.bf-cardgrid--4 { grid-template-columns: 1fr; }
.bf-cardgrid--boxed { border: 1px solid var(--bf-border); }

@media (min-width: 640px) {
  .bf-cardgrid--2,
  .bf-cardgrid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .bf-cardgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .bf-cardgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Decorative layers ------------------------------------------ */

.bf-gridlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 5%) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 5%) 1px, transparent 1px);
  background-size: 88px 88px;
}
.bf-gridlines--soft { opacity: 0.6; }

.bf-glow {
  position: absolute;
  pointer-events: none;
  width: 36rem;
  height: 36rem;
  background-image: radial-gradient(
    circle at 70% 30%,
    color-mix(in oklab, var(--bf-ember) 22%, transparent),
    transparent 62%
  );
}

/* ---------- Buttons ----------------------------------------------------- */

.bf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.bf-btn--solid {
  background: var(--bf-primary);
  color: var(--bf-primary-fg);
}
.bf-btn--solid:hover { color: var(--bf-primary-fg); transform: translateY(-2px); }
.bf-btn--ghost { border: 1px solid var(--bf-border); }
.bf-btn--ghost:hover { border-color: var(--bf-primary); color: var(--bf-primary); }
.bf-btn--lg { padding: 1rem 2rem; }
.bf-btn__arrow { transition: transform 0.25s ease; }
.bf-btn:hover .bf-btn__arrow { transform: translateX(4px); }
.bf-btn--back:hover .bf-btn__arrow { transform: translateX(-4px); }

/* ---------- Header / navigation ---------------------------------------- */

.bf-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
}
.bf-header.is-scrolled {
  border-bottom-color: var(--bf-border);
  background: color-mix(in oklab, var(--bf-bg) 80%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.bf-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
}

.bf-logo img { height: 3.5rem; width: auto; }
.bf-logo__text {
  font-family: var(--bf-font-display);
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bf-nav { display: none; align-items: center; gap: 2rem; }
.bf-nav a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bf-muted-fg);
  transition: color 0.25s ease;
}
.bf-nav a:hover,
.bf-nav .current-menu-item > a,
.bf-nav .bf-nav__link.is-active { color: var(--bf-primary); }

.bf-header__actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.bf-header__shop { display: none; }

.bf-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--bf-border);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.bf-burger:hover { border-color: var(--bf-primary); color: var(--bf-primary); }
.bf-burger svg { width: 1.25rem; height: 1.25rem; }
.bf-burger .bf-burger__close,
.bf-burger[aria-expanded="true"] .bf-burger__open { display: none; }
.bf-burger[aria-expanded="true"] .bf-burger__close { display: block; }

.bf-mobile-nav {
  display: none;
  border-top: 1px solid var(--bf-border);
  background: color-mix(in oklab, var(--bf-bg) 95%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.bf-mobile-nav.is-open { display: block; }
.bf-mobile-nav__inner { display: flex; flex-direction: column; padding-block: 0.5rem; }
.bf-mobile-nav a {
  border-bottom: 1px solid var(--bf-border);
  padding-block: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bf-muted-fg);
}
.bf-mobile-nav .bf-btn {
  justify-content: center;
  margin-top: 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 0;
  color: var(--bf-primary-fg);
  letter-spacing: 0.18em;
}

@media (min-width: 640px) {
  .bf-header__inner { padding-block: 1.75rem; }
  .bf-logo img { height: 4rem; }
  .bf-header__shop { display: inline-flex; }
}
@media (min-width: 768px) {
  .bf-nav { display: flex; }
  .bf-burger { display: none; }
  .bf-mobile-nav { display: none !important; }
}

/* ---------- Hero -------------------------------------------------------- */

.bf-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 8rem;
  padding-bottom: 4rem;
}
.bf-hero--home { min-height: 100svh; }
.bf-hero__img {
  position: absolute;
  inset-block: 0;
  right: 0;
  height: 100%;
  width: 62%;
  object-fit: cover;
  opacity: 0.4;
  filter: grayscale(35%);
}
.bf-hero--team .bf-hero__img { width: 58%; opacity: 0.25; filter: grayscale(100%); }
.bf-hero__scrim {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to right,
    var(--bf-bg),
    color-mix(in oklab, var(--bf-bg) 85%, transparent),
    transparent
  );
}
.bf-hero__glow { right: 10%; top: 33%; }
.bf-hero__inner { position: relative; }

.bf-hero__title {
  margin-top: 2rem;
  overflow-wrap: break-word;
  font-size: 19vw;
  line-height: 0.8;
}
.bf-hero__title .bf-indent { display: inline-block; margin-left: 8%; }

.bf-hero__aside { border-left: 2px solid var(--bf-primary); padding-left: 1.5rem; }
.bf-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.bf-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--bf-border);
  margin-top: 5rem;
}
.bf-stat { background: var(--bf-bg); padding: 1.5rem 1.25rem; }
.bf-stat__v { font-size: 3rem; }
.bf-stat__l { margin-top: 0.75rem; }

@media (min-width: 640px) {
  .bf-hero { padding-top: 10rem; }
  .bf-hero__title { font-size: 13vw; }
  .bf-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bf-stat__v { font-size: 3.75rem; }
}
@media (min-width: 768px) {
  .bf-hero__img { opacity: 0.55; }
  .bf-hero--team .bf-hero__img { opacity: 0.25; }
  .bf-hero__aside-wrap { margin-top: -6rem; }
}
@media (min-width: 1024px) {
  .bf-hero__title { font-size: 10.5vw; }
}

/* ---------- Brand tiles strip ------------------------------------------ */

.bf-tiles {
  position: relative;
  margin-top: 3.5rem;
  padding-block: 1.25rem;
  border-block: 1px solid var(--bf-border);
}
.bf-tiles__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.bf-tiles__rule { height: 1px; flex: 1; background: var(--bf-border); }
.bf-tiles__viewport { position: relative; overflow: hidden; }
.bf-tiles__track { display: flex; width: max-content; }
.bf-tiles__fade {
  position: absolute;
  inset-block: 0;
  width: 6rem;
  pointer-events: none;
}
.bf-tiles__fade--l { left: 0; background-image: linear-gradient(to right, var(--bf-bg), transparent); }
.bf-tiles__fade--r { right: 0; background-image: linear-gradient(to left, var(--bf-bg), transparent); }

.bf-tile {
  position: relative;
  flex-shrink: 0;
  width: 11rem;
  height: 6rem;
  margin-inline: 0.375rem;
  border: 1px solid color-mix(in oklab, var(--bf-border) 70%, transparent);
  background: color-mix(in oklab, var(--bf-card) 40%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: border-color 0.4s ease;
}
.bf-tile:hover { border-color: color-mix(in oklab, var(--bf-primary) 70%, transparent); }
.bf-tile::before,
.bf-tile::after {
  content: "";
  position: absolute;
  width: 0.625rem;
  height: 0.625rem;
  border-color: color-mix(in oklab, var(--bf-primary) 70%, transparent);
}
.bf-tile::before { left: 0; top: 0; border-left: 1px solid; border-top: 1px solid; }
.bf-tile::after { right: 0; bottom: 0; border-right: 1px solid; border-bottom: 1px solid; }
.bf-tile img {
  max-height: 3.5rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.5s ease;
}
.bf-tile:hover img { opacity: 1; }
.bf-tile img.is-inverted { filter: invert(1); }

/* ---------- Marquee band ------------------------------------------------ */

.bf-marquee {
  overflow: hidden;
  border-block: 1px solid var(--bf-border);
  background: var(--bf-primary);
  color: var(--bf-primary-fg);
  padding-block: 0.75rem;
}
.bf-marquee__track { display: flex; width: max-content; gap: 2.5rem; white-space: nowrap; }
.bf-marquee__group { display: flex; gap: 2.5rem; }
.bf-marquee__item {
  font-family: var(--bf-font-display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}
.bf-marquee__item span { margin-left: 2.5rem; opacity: 0.5; }

@media (min-width: 640px) {
  .bf-marquee__item { font-size: 1.5rem; }
}

.bf-marquee-anim { animation: bf-marquee 32s linear infinite; }
@keyframes bf-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- About ------------------------------------------------------- */

.bf-about__media { position: relative; }
.bf-about__media img { width: 100%; object-fit: cover; filter: grayscale(25%); }
.bf-about__note {
  position: relative;
  z-index: 10;
  margin-top: -4rem;
  margin-left: 1rem;
  max-width: 20rem;
  border: 1px solid var(--bf-border);
  background: var(--bf-card);
  padding: 1.75rem;
}
.bf-about__note-v { font-size: 3.75rem; color: var(--bf-primary); }

.bf-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; }
.bf-pills li {
  border: 1px solid var(--bf-border);
  padding: 0.5rem 1rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bf-muted-fg);
}

@media (min-width: 768px) {
  .bf-about__note { margin-left: -4rem; }
}

/* ---------- Credential / governance / document cards ------------------- */

.bf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.bf-card:hover { background: var(--bf-card); }
.bf-card__n { font-size: 0.75rem; color: var(--bf-primary); }
.bf-card__n--lg { font-size: 2.25rem; color: var(--bf-border); transition: color 0.3s ease; }
.bf-card:hover .bf-card__n--lg { color: var(--bf-primary); }
.bf-card h3 { margin-top: 1rem; font-size: 1.5rem; line-height: 1.05; }
.bf-card p { margin-top: 1rem; font-size: 0.875rem; line-height: 1.7; color: var(--bf-muted-fg); }

.bf-card--doc { padding: 2rem; }
.bf-card--doc h3 { margin-top: 2rem; font-size: 1.875rem; }
.bf-card__doc-top { display: flex; align-items: flex-start; justify-content: space-between; }
.bf-card__doc-top svg { width: 2.25rem; height: 2.25rem; color: var(--bf-primary); }
.bf-card__dl {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bf-primary);
}
.bf-card__dl svg { width: 1rem; height: 1rem; transition: transform 0.25s ease; }
.bf-card--doc:hover .bf-card__dl svg { transform: translateY(2px); }

.bf-card--gov h3 { margin-top: 1.5rem; font-size: 1.875rem; }
.bf-card--gov p { margin-top: 1.5rem; }

@media (min-width: 640px) {
  .bf-card--doc { padding: 2.5rem; }
  .bf-card--gov { padding: 2.5rem; }
  .bf-card--gov h3 { font-size: 2.25rem; }
}

/* ---------- Local advantage band --------------------------------------- */

.bf-band { position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid var(--bf-border); }
.bf-band__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: grayscale(100%);
}
.bf-band__scrim {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to bottom,
    var(--bf-bg),
    color-mix(in oklab, var(--bf-bg) 70%, transparent),
    var(--bf-bg)
  );
}
.bf-band__inner { position: relative; padding-block: 6rem; }
.bf-adv {
  display: grid;
  gap: 1px;
  background: var(--bf-border);
  align-self: start;
}
.bf-adv > div {
  background: color-mix(in oklab, var(--bf-bg) 90%, transparent);
  backdrop-filter: blur(4px);
  padding: 2rem;
}
.bf-adv__n { font-size: 2.25rem; color: var(--bf-primary); }
.bf-adv h3 { margin-top: 1rem; font-size: 1.5rem; line-height: 1.05; }
.bf-adv p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.7; color: var(--bf-muted-fg); }

@media (min-width: 640px) {
  .bf-band__inner { padding-block: 8rem; }
  .bf-adv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Capacity ---------------------------------------------------- */

.bf-capacity { position: relative; overflow: hidden; }
.bf-capacity__glow { left: -10rem; top: 0; width: 34rem; height: 34rem; opacity: 0.7; }
.bf-capacity__inner { position: relative; }
.bf-capacity__title { font-size: 3.75rem; }
.bf-capacity__totals { display: grid; gap: 2rem; }
.bf-capacity__total { border-top: 2px solid var(--bf-border); padding-top: 1.25rem; }
.bf-capacity__total--key { border-top-color: var(--bf-primary); }
.bf-capacity__total p:first-child { font-size: 3rem; }
.bf-capacity__total p + p { margin-top: 0.75rem; font-size: 0.875rem; color: var(--bf-muted-fg); }

.bf-rows { margin-top: 5rem; }
.bf-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--bf-border);
  padding-block: 1.5rem;
  transition: background-color 0.3s ease;
}
.bf-row:hover { background: color-mix(in oklab, var(--bf-card) 60%, transparent); }
.bf-row__n { grid-column-end: span 2; font-size: 0.65rem; font-weight: 600; color: var(--bf-muted-fg); }
.bf-row__name { grid-column-end: span 10; font-size: 1.5rem; transition: color 0.3s ease; }
.bf-row:hover .bf-row__name { color: var(--bf-primary); }
.bf-row__bar { grid-column-end: span 12; }
.bf-row__bar div { height: 3px; width: 100%; background: var(--bf-border); }
.bf-row__bar div > i { display: block; height: 100%; background: var(--bf-primary); }
.bf-row__fig { grid-column-end: span 6; }
.bf-row__fig p:first-child { font-size: 1.5rem; }
.bf-row__fig--key p:first-child { color: var(--bf-primary); }
.bf-row__fig p + p {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--bf-muted-fg);
}

@media (min-width: 640px) {
  .bf-capacity__title { font-size: 4.5rem; }
  .bf-capacity__totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf-capacity__total p:first-child { font-size: 3.75rem; }
  .bf-row__n { grid-column-end: span 1; }
  .bf-row__name { grid-column-end: span 4; font-size: 1.875rem; }
  .bf-row__bar { grid-column-end: span 4; }
  .bf-row__fig { grid-column-end: span 1; text-align: right; }
  .bf-row__fig--key { grid-column-end: span 2; }
}

/* ---------- Craft ------------------------------------------------------- */

.bf-craft__media { position: relative; }
.bf-craft__media img { width: 100%; object-fit: cover; }
.bf-craft__quote {
  position: relative;
  z-index: 10;
  margin-top: -2.5rem;
  margin-left: auto;
  max-width: 16rem;
  background: var(--bf-primary);
  color: var(--bf-primary-fg);
  padding: 1.5rem;
  font-family: var(--bf-font-display);
  font-size: 1.5rem;
  line-height: 1.05;
}
.bf-pillars { display: grid; gap: 2rem; margin-top: 3rem; }
.bf-pillars > div { border-top: 1px solid var(--bf-border); padding-top: 1.25rem; }
.bf-pillars dt { font-family: var(--bf-font-display); text-transform: uppercase; font-size: 1.5rem; line-height: 1.05; }
.bf-pillars dd { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.7; color: var(--bf-muted-fg); }

@media (min-width: 640px) {
  .bf-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .bf-craft__quote { margin-right: -3rem; }
}

/* ---------- Facilities -------------------------------------------------- */

.bf-facilities { display: grid; gap: 1.5rem; margin-top: 4rem; }
.bf-facility {
  position: relative;
  border: 1px solid var(--bf-border);
  background: var(--bf-card);
  padding: 2rem;
  transition: border-color 0.3s ease;
}
.bf-facility:hover { border-color: var(--bf-primary); }
.bf-facility__n {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 2.25rem;
  color: var(--bf-border);
  transition: color 0.3s ease;
}
.bf-facility:hover .bf-facility__n { color: color-mix(in oklab, var(--bf-primary) 40%, transparent); }
.bf-facility h3 { margin-top: 0.75rem; font-size: 2.25rem; }
.bf-facility__addr { margin-top: 1.5rem; font-size: 0.875rem; line-height: 1.7; color: var(--bf-muted-fg); }
.bf-facility__tel { display: inline-block; margin-top: 0.5rem; font-size: 0.875rem; color: var(--bf-primary); }
.bf-facility__tel:hover { text-decoration: underline; }
.bf-facility__note {
  margin-top: 2rem;
  border-top: 1px solid var(--bf-border);
  padding-top: 1.25rem;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--bf-muted-fg);
}

@media (min-width: 768px) {
  .bf-facilities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bf-facility--2 { transform: translateY(2rem); }
  .bf-facility--3 { transform: translateY(4rem); }
}

/* ---------- Brands cluster ---------------------------------------------- */

.bf-brands { position: relative; isolation: isolate; overflow: hidden; }
.bf-brands__bg1 {
  position: absolute; inset: 0; z-index: -10; pointer-events: none; opacity: 0.7;
  background: radial-gradient(120% 80% at 50% 0%, oklch(0.24 0.03 250) 0%, transparent 60%);
}
.bf-brands__bg2 {
  position: absolute; left: 50%; top: 33%; z-index: -10; pointer-events: none;
  width: 46rem; height: 46rem; transform: translateX(-50%); opacity: 0.6;
  background-image: radial-gradient(circle at 70% 30%, color-mix(in oklab, var(--bf-ember) 22%, transparent), transparent 62%);
}
.bf-brands__bg3 {
  position: absolute; inset: 0; z-index: -10; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 35%, var(--bf-bg) 100%);
}
.bf-brands__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  column-gap: 1.5rem;
  row-gap: 3.5rem;
  margin-top: 5rem;
}
.bf-brands__item { display: flex; align-items: center; justify-content: center; }
.bf-brands__item img {
  margin-inline: auto;
  max-height: 5rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.65));
}
.bf-brands__item img.is-inverted { filter: invert(1) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.65)); }

@media (min-width: 640px) {
  .bf-brands__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bf-brands__item img { max-height: 6rem; }
}
@media (min-width: 1024px) {
  .bf-brands__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 2.5rem; row-gap: 5rem; }
}

.bf-reveal { opacity: 0; filter: blur(14px); }
.bf-reveal[data-shown="true"] { animation: bf-brand-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes bf-brand-in {
  from { opacity: 0; filter: blur(14px); scale: 1.14; }
  to { opacity: 1; filter: blur(0); scale: 1; }
}
.bf-float { animation: bf-float 7s ease-in-out infinite; }
@keyframes bf-float {
  0%, 100% { transform: translateY(-6px); }
  50% { transform: translateY(6px); }
}

/* ---------- Divisions --------------------------------------------------- */

.bf-divisions__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.bf-divisions__head h2 { font-size: 3rem; letter-spacing: 0.02em; }
.bf-division {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 2rem;
  transition: background-color 0.3s ease;
}
.bf-division:hover { background: var(--bf-card); }
.bf-division__n {
  font-family: var(--bf-font-display);
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  color: var(--bf-primary);
  text-align: center;
}
.bf-division__logo {
  display: flex;
  height: 8rem;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 1.25rem;
}
.bf-division__logo img { max-height: 6rem; width: auto; object-fit: contain; transition: transform 0.5s ease; }
.bf-division:hover .bf-division__logo img { transform: scale(1.05); }
.bf-division__meta { text-align: center; }
.bf-division__meta p:first-child {
  font-family: var(--bf-font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bf-division__meta p + p { font-size: 0.875rem; color: var(--bf-muted-fg); }

@media (min-width: 768px) {
  .bf-divisions__head h2 { font-size: 4.5rem; }
}

/* ---------- Contact ----------------------------------------------------- */

.bf-contact { position: relative; overflow: hidden; }
.bf-contact__glow { right: -8rem; bottom: 0; width: 40rem; height: 40rem; }
.bf-contact__inner { position: relative; gap: 4rem; }
.bf-contact__title { margin-top: 1.25rem; font-size: 3.75rem; line-height: 0.86; }
.bf-contact__dl {
  display: grid;
  gap: 2.5rem;
  align-self: start;
  border-top: 2px solid var(--bf-primary);
  padding-top: 2rem;
  font-size: 0.875rem;
}
.bf-contact__dl dd { margin-top: 0.5rem; line-height: 1.7; color: var(--bf-muted-fg); }
.bf-contact__tel { font-size: 1.875rem; color: var(--bf-fg); }
.bf-contact__tel:hover { color: var(--bf-primary); }

@media (min-width: 640px) {
  .bf-contact__title { font-size: 6rem; }
}

/* ---------- Team -------------------------------------------------------- */

.bf-profiles { display: grid; gap: 1px; background: var(--bf-border); margin-top: 4rem; }
.bf-profile {
  display: grid;
  gap: 2.5rem;
  background: var(--bf-bg);
  padding-block: 3rem;
  scroll-margin-top: 8rem;
}
.bf-profile__photo { aspect-ratio: 4 / 5; width: 100%; max-width: 24rem; object-fit: cover; object-position: top; }
.bf-profile h3 { font-size: 2.25rem; }
.bf-profile__role { margin-top: 0.75rem; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bf-primary); }
.bf-profile__bio {
  margin-top: 2rem;
  min-height: 8rem;
  border-left: 2px solid var(--bf-border);
  padding-left: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--bf-muted-fg);
}
.bf-profile__bio p + p { margin-top: 1.25rem; }
.bf-profile__links { display: flex; align-items: center; gap: 0.75rem; margin-top: 2rem; flex-wrap: wrap; }
.bf-iconlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--bf-border);
  color: var(--bf-muted-fg);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.bf-iconlink:hover { border-color: var(--bf-primary); color: var(--bf-primary); }
.bf-iconlink svg { width: 1rem; height: 1rem; }
.bf-profile__email { font-size: 0.875rem; color: var(--bf-muted-fg); word-break: break-all; }

@media (min-width: 768px) {
  .bf-profile { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .bf-profile__media { grid-column-end: span 4; }
  .bf-profile__body { grid-column-start: 6; grid-column-end: span 7; }
}
@media (min-width: 640px) {
  .bf-profile h3 { font-size: 3rem; }
}

/* Compact team list (optional shortcode/section) */
.bf-teamlist { margin-top: 4rem; border-top: 1px solid var(--bf-border); }
.bf-teamlist li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1.5rem;
  row-gap: 0.75rem;
  border-bottom: 1px solid var(--bf-border);
  padding-block: 1.5rem;
  transition: background-color 0.3s ease;
}
.bf-teamlist li:hover { background: color-mix(in oklab, var(--bf-card) 60%, transparent); }
.bf-teamlist img { height: 6rem; width: 4.5rem; flex-shrink: 0; object-fit: cover; object-position: top; }
.bf-teamlist__years { width: 2.5rem; flex-shrink: 0; font-size: 1.875rem; color: var(--bf-border); transition: color 0.3s ease; }
.bf-teamlist li:hover .bf-teamlist__years { color: var(--bf-primary); }
.bf-teamlist h3 { min-width: 12rem; flex: 1; font-size: 1.875rem; }
.bf-teamlist__role { min-width: 14rem; flex: 1; font-size: 0.875rem; color: var(--bf-muted-fg); }

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

.bf-cta-band { position: relative; overflow: hidden; border-top: 1px solid var(--bf-border); }
.bf-cta-band__glow { right: -8rem; bottom: 0; width: 40rem; height: 40rem; }
.bf-cta-band__inner { position: relative; }
.bf-cta-band h2 { max-width: 42rem; font-size: 3rem; line-height: 0.9; }

@media (min-width: 640px) {
  .bf-cta-band h2 { font-size: 4.5rem; }
}

.bf-footer { border-top: 1px solid var(--bf-border); padding-block: 3.5rem; }
.bf-footer__inner { display: flex; flex-direction: column; gap: 1.5rem; }
.bf-footer img { height: 4rem; width: auto; }
.bf-footer__tag { margin-top: 1rem; }
.bf-footer__copy { font-size: 0.75rem; color: var(--bf-muted-fg); }
.bf-footer__nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1rem; }
.bf-footer__nav a { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bf-muted-fg); }

@media (min-width: 768px) {
  .bf-footer__inner { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .bf-footer img { height: 5rem; }
}

/* ---------- Editorial pages (page.php / single.php / 404) -------------- */

.bf-page { padding-top: 10rem; padding-bottom: 6rem; }
.bf-page__header { max-width: 52rem; }
.bf-page__title { font-size: 3rem; }
.bf-page__meta { margin-top: 1rem; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bf-muted-fg); }
.bf-page__thumb { margin-top: 3rem; }

.bf-prose { max-width: 46rem; margin-top: 3rem; color: var(--bf-muted-fg); }
.bf-prose > * + * { margin-top: 1.5rem; }
.bf-prose h2 { font-size: 2.25rem; color: var(--bf-fg); margin-top: 3rem; }
.bf-prose h3 { font-size: 1.75rem; color: var(--bf-fg); margin-top: 2.5rem; }
.bf-prose a { color: var(--bf-primary); text-decoration: underline; text-underline-offset: 3px; }
.bf-prose ul, .bf-prose ol { padding-left: 1.25rem; }
.bf-prose ul { list-style: disc; }
.bf-prose ol { list-style: decimal; }
.bf-prose li + li { margin-top: 0.5rem; }
.bf-prose blockquote {
  border-left: 2px solid var(--bf-primary);
  padding-left: 1.5rem;
  font-family: var(--bf-font-display);
  font-size: 1.5rem;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--bf-fg);
}
.bf-prose code {
  background: var(--bf-card);
  padding: 0.15em 0.4em;
  font-size: 0.875em;
}
.bf-prose img { margin-block: 2rem; }
.bf-prose table { width: 100%; border-collapse: collapse; }
.bf-prose th, .bf-prose td { border: 1px solid var(--bf-border); padding: 0.75rem; text-align: left; }
.bf-prose th { color: var(--bf-fg); font-weight: 600; }

.bf-pagination { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 4rem; }
.bf-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding-inline: 0.5rem;
  border: 1px solid var(--bf-border);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.bf-pagination .page-numbers.current { background: var(--bf-primary); color: var(--bf-primary-fg); border-color: var(--bf-primary); }

.bf-postlist { display: grid; gap: 1px; background: var(--bf-border); margin-top: 4rem; }
.bf-postlist article { background: var(--bf-bg); padding: 2rem; transition: background-color 0.3s ease; }
.bf-postlist article:hover { background: var(--bf-card); }
.bf-postlist h2 { font-size: 1.875rem; }
.bf-postlist time { display: block; margin-top: 0.75rem; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bf-primary); }
.bf-postlist p { margin-top: 1rem; font-size: 0.875rem; line-height: 1.7; color: var(--bf-muted-fg); }

@media (min-width: 640px) {
  .bf-page__title { font-size: 4.5rem; }
  .bf-postlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* WP core alignment / caption classes */
.alignwide { max-width: 100%; }
.alignfull { width: 100%; }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: 0 2rem 1.5rem 0; }
.alignright { float: right; margin: 0 0 1.5rem 2rem; }
.wp-caption-text, figcaption {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--bf-muted-fg);
}
.sticky, .gallery-caption, .bypostauthor { display: block; }

/* Admin bar offset for the fixed header */
body.admin-bar .bf-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .bf-header { top: 46px; }
}

/* ---------- Motion preferences ----------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bf-marquee-anim,
  .bf-float { animation: none; }
  .bf-reveal { opacity: 1; filter: none; }
  .bf-reveal[data-shown="true"] { animation: none; }
  .bf-btn:hover { transform: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- WordPress menu integration --------------------------------- */

/* wp_nav_menu wraps links in <li>; collapse the wrapper so the flex layout
   above applies to the anchors themselves. */
.bf-nav li,
.bf-mobile-nav li,
.bf-footer__nav li { display: contents; }
.bf-nav ul, .bf-mobile-nav ul, .bf-footer__nav ul { display: contents; }

.bf-searchform { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: stretch; }
.bf-searchform input[type="search"]::placeholder { color: var(--bf-muted-fg); }
