/* ===========================================================================
   BrickBytes LLC — site stylesheet
   Brand continuity: OLED black ground, blurple wireframe accent, amber ember.
   =========================================================================== */

:root {
  --bg:            #000000;
  --bg-elev:       #08090E;
  --surface:       rgba(255, 255, 255, 0.028);
  --surface-hover: rgba(255, 255, 255, 0.05);
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text:   rgba(255, 255, 255, 0.94);
  --muted:  rgba(255, 255, 255, 0.60);
  --faint:  rgba(255, 255, 255, 0.50);

  --blurple-rgb: 145, 112, 255;
  --blurple:     rgb(145, 112, 255);
  --blurple-dim: rgba(145, 112, 255, 0.14);
  --amber:       #FF9A34;

  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco,
               Consolas, "Liberation Mono", monospace;

  --shell:  1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --band:   clamp(72px, 11vh, 132px);

  --radius:    14px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--blurple);
  color: #08050F;
  font-weight: 650;
  border-radius: 0 0 10px 0;
}

.skip-link:focus { left: 0; }

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

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

.band { padding-block: var(--band); }

.band--tight { padding-block: clamp(52px, 7vh, 84px); }

/* Heading beside body copy; stacks on narrow viewports. */
.split {
  display: grid;
  gap: clamp(20px, 4vw, 56px);
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: start;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

.band--edge {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.14;
  text-wrap: balance;
}

h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: clamp(19px, 2vw, 22px); letter-spacing: -0.015em; line-height: 1.3; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(17px, 1.9vw, 20px);
  color: var(--muted);
  line-height: 1.68;
  max-width: 64ch;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blurple);
}

.section-head { max-width: 66ch; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head p { margin-top: 20px; }

/* --- Wordmark ------------------------------------------------------------ */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.wordmark .ember {
  display: inline-grid;
  place-items: center;
  font-size: 0.92em;
  line-height: 1;
  transform-origin: 50% 82%;
  filter: drop-shadow(0 0 8px rgba(255, 154, 52, 0.34))
          drop-shadow(0 0 18px rgba(255, 92, 32, 0.16));
  animation: emberFlicker 1s steps(8, end) infinite;
}

@keyframes emberFlicker {
  0%   { transform: scale(1.000) rotate(-1.0deg); }
  25%  { transform: scale(1.025, 0.985) rotate(0.8deg); }
  50%  { transform: scale(0.990, 1.025) rotate(-0.5deg); }
  75%  { transform: scale(1.018, 0.995) rotate(0.6deg); }
  100% { transform: scale(1.000) rotate(-1.0deg); }
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header[data-stuck="true"] {
  border-bottom-color: var(--border);
  background: rgba(0, 0, 0, 0.88);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.site-header .wordmark { font-size: 19px; }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
}

.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); }

.site-nav .btn { color: #0A0616; }

.site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
}

/* Disclosure button for the mobile menu; inline nav is used on desktop. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--surface-hover);
  border-color: rgba(var(--blurple-rgb), 0.5);
}

@media (max-width: 860px) {
  /* Baseline, and the only state without JavaScript: the links wrap onto
     their own row and stay visible. The disclosure button stays hidden,
     because nothing would be able to operate it. */
  .site-nav { flex-wrap: wrap; justify-content: flex-end; }

  /* The nav becomes two rows, so top-align it against the wordmark rather
     than centring the wordmark against the taller block. */
  .site-header__inner { align-items: flex-start; padding-top: 16px; }
  .site-header .wordmark { padding-top: 7px; }

  .site-nav__links {
    order: 4;
    flex-basis: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 18px;
    margin-top: 12px;
    padding: 12px 0 14px;
    border-top: 1px solid var(--border);
    font-size: 15px;
  }

  /* Enhanced: scripting is available, so collapse the links into the
     disclosure menu. Everything below is scoped to that flag. */
  [data-nav-enhanced="true"] .nav-toggle { display: inline-flex; order: 3; }
  [data-nav-enhanced="true"] .site-nav .btn { order: 2; }
  [data-nav-enhanced="true"] .site-nav { flex-wrap: nowrap; }
  [data-nav-enhanced="true"] .site-header__inner { align-items: center; padding-top: 0; }
  [data-nav-enhanced="true"] .site-header .wordmark { padding-top: 0; }

  /* Panel drops from the header, which is the nearest positioned ancestor.
     display:none while closed keeps the links out of the tab order. */
  [data-nav-enhanced="true"] .site-nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    order: 0;
    flex-basis: auto;
    margin-top: 0;
    border-top: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 14px;
    /* Opaque: at 97% the hero wordmark still ghosted through the links. */
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  }

  [data-nav-enhanced="true"] .site-nav__links[data-open="true"] { display: flex; }

  [data-nav-enhanced="true"] .site-nav__links a {
    padding: 14px 2px;
    font-size: 16.5px;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 420px) {
  .site-header .wordmark span:not(.ember) { font-size: 17px; }
  .site-nav .btn { padding: 9px 14px; font-size: 13.5px; }
  .site-nav { gap: 10px; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.2s ease,
              border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--blurple);
  color: #0A0616;
  box-shadow: 0 6px 26px rgba(var(--blurple-rgb), 0.26);
}

.btn--primary:hover {
  background: rgb(163, 136, 255);
  box-shadow: 0 8px 32px rgba(var(--blurple-rgb), 0.36);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  background: var(--surface-hover);
  border-color: rgba(var(--blurple-rgb), 0.5);
}

.btn--sm { padding: 10px 18px; font-size: 14.5px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 560;
  color: var(--blurple);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--blurple-rgb), 0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.textlink:hover { border-bottom-color: var(--blurple); }

.textlink .arrow { transition: transform 0.2s ease; }
.textlink:hover .arrow { transform: translateX(3px); }

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Darkest behind the copy on the left; the wall stays legible to the right. */
  background:
    linear-gradient(100deg,
                    rgba(0, 0, 0, 0.93) 0%,
                    rgba(0, 0, 0, 0.86) 30%,
                    rgba(0, 0, 0, 0.42) 60%,
                    rgba(0, 0, 0, 0.16) 100%),
    linear-gradient(180deg,
                    rgba(0, 0, 0, 0.62) 0%,
                    rgba(0, 0, 0, 0) 22%,
                    rgba(0, 0, 0, 0) 68%,
                    rgba(0, 0, 0, 0.72) 100%);
}

@media (max-width: 900px) {
  .hero::after {
    background:
      linear-gradient(180deg,
                      rgba(0, 0, 0, 0.72) 0%,
                      rgba(0, 0, 0, 0.88) 18%,
                      rgba(0, 0, 0, 0.88) 74%,
                      rgba(0, 0, 0, 0.78) 100%);
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(80px, 14vh, 148px) clamp(60px, 10vh, 112px);
}

.hero__mark {
  font-size: clamp(46px, 9.5vw, 96px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.34em;
}

.hero__tagline {
  margin: 22px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(14px, 2.1vw, 18px);
  letter-spacing: 0.05em;
  color: rgba(var(--blurple-rgb), 0.92);
}

.hero__copy {
  margin: 30px 0 0;
  font-size: clamp(17px, 2.05vw, 21px);
  line-height: 1.62;
  color: var(--muted);
  max-width: 60ch;
  text-wrap: pretty;
}

.hero .btn-row { margin-top: 40px; }

.hero__entity {
  margin: 34px 0 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
}

/* Compact hero used on interior pages */

.hero--interior .hero__inner { padding-block: clamp(64px, 11vh, 108px); }

.hero--interior .hero__mark {
  font-size: clamp(30px, 5.4vw, 52px);
  letter-spacing: -0.03em;
}

/* Interior heroes are short; the following band needs less lead-in. */
.hero--interior + .band,
.hero--interior + .band--tight { padding-top: clamp(48px, 6vh, 78px); }

.hero__title {
  margin: 20px 0 0;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.024em;
  line-height: 1.16;
}

.hero__kicker {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.8vw, 16px);
  letter-spacing: 0.045em;
  color: rgba(var(--blurple-rgb), 0.92);
}

/* --- Cards & grids ------------------------------------------------------- */

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--wide { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
  position: relative;
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg,
              rgba(255, 255, 255, 0.038) 0%,
              rgba(255, 255, 255, 0.012) 100%);
  transition: border-color 0.25s ease, transform 0.25s ease,
              box-shadow 0.25s ease;
}

.card--lift:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--blurple-rgb), 0.42);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.55),
              0 0 0 1px rgba(var(--blurple-rgb), 0.1);
}

.card__index {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(var(--blurple-rgb), 0.78);
}

.card h3 { margin-bottom: 14px; }

.card p { color: var(--muted); font-size: 15.8px; line-height: 1.62; }

/* Capability chip lists */

.caplist {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.caplist li {
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.022);
  font-size: 13px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
}

/* --- CTA band ------------------------------------------------------------ */

.cta {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--blurple-rgb), 0.26);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px);
  background:
    radial-gradient(ellipse 70% 130% at 12% 0%,
                    rgba(var(--blurple-rgb), 0.17) 0%,
                    rgba(var(--blurple-rgb), 0) 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}

.cta h2 { max-width: 20ch; }
.cta p { margin-top: 20px; max-width: 62ch; color: var(--muted); font-size: 17px; }
.cta .btn-row { margin-top: 32px; }

/* --- Product cards ------------------------------------------------------- */

.product {
  display: flex;
  flex-direction: column;
  padding: 32px 30px;
}

.product__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.product__head h3 { margin: 0; font-size: clamp(20px, 2.2vw, 24px); }

.status {
  flex: none;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status--dev {
  color: var(--amber);
  background: rgba(255, 154, 52, 0.1);
  border: 1px solid rgba(255, 154, 52, 0.32);
}

.status--rnd {
  color: rgba(var(--blurple-rgb), 1);
  background: rgba(var(--blurple-rgb), 0.1);
  border: 1px solid rgba(var(--blurple-rgb), 0.34);
}

.product__note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--faint);
  line-height: 1.55;
}

/* --- Service detail (engineering page) ----------------------------------- */

.service {
  padding-block: clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--border);
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
}

@media (max-width: 900px) {
  .service { grid-template-columns: 1fr; }
}

.service:first-of-type { border-top: none; padding-top: 0; }

.service__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(var(--blurple-rgb), 0.78);
  margin-bottom: 14px;
  display: block;
}

.service h3 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 0; }

.service__body p { color: var(--muted); }

.service__list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.service__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15.4px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.service__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(var(--blurple-rgb), 0.85);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* --- Prose (about / privacy) --------------------------------------------- */

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2em; margin-bottom: 0.6em; font-size: clamp(22px, 2.6vw, 28px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; margin-bottom: 0.5em; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.5em; }
.prose strong { color: var(--text); font-weight: 620; }

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

.contact-grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
}

@media (max-width: 940px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.form { display: grid; gap: 20px; }

.field { display: grid; gap: 8px; }

.field label {
  font-size: 14.5px;
  font-weight: 580;
  color: rgba(255, 255, 255, 0.88);
}

.field .hint {
  font-size: 13px;
  color: var(--faint);
  line-height: 1.5;
}

.field .req { color: var(--blurple); font-weight: 500; }

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.field textarea { resize: vertical; min-height: 118px; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.42); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blurple);
  background: rgba(255, 255, 255, 0.055);
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.form__note {
  font-size: 13.5px;
  color: var(--faint);
  line-height: 1.55;
  max-width: 46ch;
}

.form__status {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--blurple);
}

.form__status:empty { display: none; }

.aside-card {
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.aside-card + .aside-card { margin-top: 18px; }

.aside-card h3 { font-size: 17px; margin-bottom: 12px; }

.aside-card p,
.aside-card li { font-size: 15px; color: var(--muted); }

.aside-card ul { margin: 0; padding-left: 18px; }
.aside-card li { margin-bottom: 6px; }

.mail {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--blurple);
  word-break: break-word;
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--blurple-rgb), 0.34);
}

.mail:hover { border-bottom-color: var(--blurple); }

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding-block: clamp(52px, 7vw, 76px) 34px;
}

.site-footer__top {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
}

@media (max-width: 760px) {
  .site-footer__top { grid-template-columns: 1fr; }
}

.site-footer .wordmark { font-size: 22px; }

.site-footer__entity {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.site-footer__tagline {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(var(--blurple-rgb), 0.82);
}

.site-footer__blurb {
  margin: 18px 0 0;
  font-size: 14.5px;
  color: var(--faint);
  max-width: 44ch;
  line-height: 1.6;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 28px;
}

.footer-nav h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 10px; }

.footer-nav a {
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-nav a:hover { color: var(--text); }

.site-footer__bottom {
  margin-top: clamp(40px, 6vw, 60px);
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
}

.site-footer__bottom p {
  margin: 0;
  font-size: 13.5px;
  color: var(--faint);
}

/* Legal line, optionally preceded by a certification mark. */
.site-footer__legal {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Sizing for an official certification mark, if BrickBytes is ever authorized
   to display one. Defined ahead of the asset so adding the image is a one-line
   change rather than a footer redesign. */
.site-footer__cert {
  flex: none;
  height: 34px;
  width: auto;
  /* An SVG with no intrinsic dimensions would otherwise fall back to a 300px
     default width and blow out the row; contain keeps it undistorted. */
  max-width: 200px;
  object-fit: contain;
}
