/* ============================================================
   Boundless Designs — page styles
   Dark sub-brand theme. Depends on colors_and_type.css + styles.css.
   ============================================================ */

.bd-body {
  background: var(--bd-bg);
  color: var(--bd-fg);
}
.bd-body .nav {
  background: rgba(10, 10, 12, 0.62);
  border-bottom-color: transparent;
}
.bd-body .nav--scrolled { background: rgba(10, 10, 12, 0.88); border-bottom-color: rgba(239,233,216,0.14); }
.bd-body .nav__logo,
.bd-body .nav__tab { color: var(--bd-fg); }
.bd-body .nav__tab::after { background: var(--bd-fg); }

.bd-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}

/* ---------- Hero ---------- */
.bd-hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  overflow: hidden;
  background: var(--bd-bg);
}
.bd-hero__stage { position: absolute; inset: 0; }
/* Kept well back — the guide film carries its own wordmark, and at full strength
   it competes with the hero lockup sitting on top of it. */
.bd-hero__film { object-fit: cover; opacity: 0.26; filter: grayscale(.55) contrast(1.05); }
.bd-hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(10,10,12,0.25) 0%, rgba(10,10,12,0.92) 78%),
    linear-gradient(to bottom, rgba(10,10,12,0.9) 0%, rgba(10,10,12,0.2) 30%, rgba(10,10,12,0.95) 100%);
}
.bd-hero__chrome {
  position: relative; z-index: 2;
  display: grid; grid-template-rows: auto 1fr auto;
  gap: 32px;
  padding: 120px 48px 56px;
  min-height: 88vh;
}
.bd-hero__top {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
  font-family: var(--font-sans); font-weight: 500;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(239,233,216,0.62);
}
.bd-hero__chip { display: flex; align-items: center; gap: 10px; }
.bd-hero__dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--bd-accent);
  animation: blink 1.8s ease-in-out infinite;
}
.bd-hero__center { display: grid; place-content: center; justify-items: center; gap: 22px; text-align: center; }
/* The supplied mark is dark artwork on transparent — knock it out to cream so it
   holds on the dark hero. Replace with a light-colourway export when one exists. */
.bd-hero__logo {
  width: min(62vw, 620px); height: auto; display: block;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}
.bd-hero__mark {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 0.88;
  font-size: clamp(64px, 12vw, 200px); margin: 0;
}
.bd-hero__bottom {
  display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: end;
  padding-top: 24px; border-top: 1px solid rgba(239,233,216,0.16);
}
.bd-hero__bottom-label {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bd-accent); margin-bottom: 10px;
}
.bd-hero__bottom-copy p {
  margin: 0; max-width: 62ch;
  font-size: 16px; line-height: 1.65; color: rgba(239,233,216,0.92);
}
.bd-hero__cta {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 13px;
  padding: 16px 22px; white-space: nowrap;
  background: var(--bd-fg); color: var(--bd-bg);
  transition: background 80ms;
}
.bd-hero__cta:hover { background: var(--bd-accent); }

/* ---------- Section shell ---------- */
.bd-section { padding: 128px 48px; position: relative; }
.bd-section__head { margin-bottom: 56px; }
.bd-section__head--split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
}
.bd-eyebrow {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(239,233,216,0.62); margin-bottom: 18px;
}
.bd-display {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 0.92;
  font-size: clamp(40px, 5.4vw, 92px); margin: 0;
}
.bd-display span { color: var(--bd-accent); }
.bd-section__lede {
  font-size: 16px; line-height: 1.7; margin: 0;
  max-width: 52ch; justify-self: end;
  color: rgba(239,233,216,0.78);
}

/* ---------- Use cases ---------- */
.bd-cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.bd-cap { padding-top: 22px; border-top: 1px solid rgba(239,233,216,0.24); }
.bd-cap__num {
  font-family: var(--font-display); font-size: 12px;
  color: var(--bd-accent); margin-bottom: 14px;
}
.bd-cap__title {
  font-family: var(--font-display); text-transform: uppercase;
  /* See .bd-attr__k — caps at this size need positive tracking, not negative. */
  letter-spacing: 0.06em; font-size: 26px; line-height: 1.08; margin: 0 0 12px;
}
.bd-cap__body { font-size: 14px; line-height: 1.65; color: rgba(239,233,216,0.7); margin: 0; }

/* ---------- Work grid ---------- */
.bd-work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.bd-work { margin: 0; }
.bd-work--7 { grid-column: span 7; }
.bd-work--5 { grid-column: span 5; }
.bd-work__frame {
  position: relative; overflow: hidden; width: 100%;
  aspect-ratio: var(--bd-ar, 16 / 9);
}
.bd-work__cap {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 12px; margin-top: 12px;
  border-top: 1px solid rgba(239,233,216,0.24);
}
.bd-work__label {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.02em; font-size: 18px; line-height: 1.15;
}
.bd-work__note { font-size: 13px; line-height: 1.55; color: rgba(239,233,216,0.62); max-width: 56ch; }

/* ---------- Brand guide ---------- */
.bd-guide-list { list-style: none; margin: 0 0 56px; padding: 0; }
.bd-guide-row {
  display: grid; grid-template-columns: 60px 1fr; gap: 20px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid rgba(239,233,216,0.16);
  transition: padding-left 240ms var(--ease-out);
}
.bd-guide-row:hover { padding-left: 10px; }
.bd-guide-num { font-family: var(--font-display); font-size: 12px; color: var(--bd-accent); }
.bd-guide-title {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: -0.015em; font-size: clamp(20px, 2.2vw, 32px); line-height: 1.05;
}
.bd-attrs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.bd-attr { padding-top: 20px; border-top: 1px solid rgba(239,233,216,0.24); }
.bd-attr__k {
  font-family: var(--font-display); text-transform: uppercase;
  /* Negative tracking is a headline trick for large mixed-case display type.
     At 22px, all-caps, weight 900, on a dark ground it closes the counters and
     the letters run together — gold on near-black already blooms optically.
     Caps want positive tracking. */
  letter-spacing: 0.08em; font-size: 22px; margin: 0 0 10px; color: var(--bd-accent);
}
.bd-attr__v { font-size: 13px; line-height: 1.6; color: rgba(239,233,216,0.7); margin: 0; }

/* ---------- Studio ---------- */
.bd-studio__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.bd-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.bd-fact { padding: 16px 0; border-top: 1px solid rgba(239,233,216,0.16); }
.bd-fact__k {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(239,233,216,0.55); margin-bottom: 6px;
}
.bd-fact__v {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: -0.015em; font-size: 17px; line-height: 1.15;
}
.bd-contact { margin-top: 96px; padding-top: 40px; border-top: 1px solid rgba(239,233,216,0.24); }
.bd-contact__label {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bd-accent); margin-bottom: 22px;
}
.bd-contact__email {
  display: inline-flex; align-items: center; gap: 18px;
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: -0.015em; font-size: clamp(32px, 5vw, 76px); line-height: 1;
  color: var(--bd-fg);
}
.bd-contact__email:hover { color: var(--bd-accent); }
.bd-contact__detail {
  display: flex; gap: 40px; flex-wrap: wrap; margin-top: 28px;
  font-family: var(--font-sans); font-weight: 500;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(239,233,216,0.6);
}

/* ---------- Footer ---------- */
.bd-footer { padding: 64px 48px 32px; border-top: 1px solid rgba(239,233,216,0.24); }
.bd-footer__top { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-bottom: 48px; }
.bd-footer__mark {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: -0.01em; font-size: clamp(40px, 6vw, 84px); line-height: 0.9;
}
.bd-footer__mark span { font-size: 0.24em; vertical-align: super; color: var(--bd-accent); }
.bd-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.bd-footer__label {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(239,233,216,0.55); margin-bottom: 14px;
}
.bd-footer__cols a,
.bd-footer__cols span {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; font-size: 14px; color: rgba(239,233,216,0.86);
}
.bd-footer__cols a:hover { color: var(--bd-accent); }
.bd-footer__bottom {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  padding-top: 24px; border-top: 1px solid rgba(239,233,216,0.16);
  font-family: var(--font-sans); font-weight: 500;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(239,233,216,0.55);
}
.bd-footer__bottom > :nth-child(2) { text-align: center; }
.bd-footer__bottom > :nth-child(3) { text-align: right; }

/* ---------- Responsive (desktop-first; mobile pass comes later) ---------- */
@media (max-width: 1100px) {
  .bd-section__head--split,
  .bd-studio__grid { grid-template-columns: 1fr; }
  .bd-section__lede { justify-self: start; }
  .bd-cap-grid { grid-template-columns: 1fr; }
  .bd-attrs { grid-template-columns: 1fr 1fr; }
  .bd-work--7, .bd-work--5 { grid-column: span 12; }
  .bd-footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .bd-section, .bd-footer { padding-left: 20px; padding-right: 20px; }

  /* The 128px desktop rhythm stacks — one section's bottom against the next
     section's top is 256px of nothing, roughly a third of a phone screen.
     64px keeps the break legible as a break without the void. */
  /* .bd-display is fluid 40-84px. Negative tracking is right at 84px, where it
     tightens the lockup; at the 40px mobile floor the same value closes the caps
     up. Tracking has to follow the size, and only the size is fluid. */
  .bd-display {
    letter-spacing: 0.04em;
    /* The tracking costs width, and the longest authored line ("WRITTEN DOWN.")
       needs 387px of the 335px available at the 40px floor — it would break the
       hand-set two-line rhythm into three. Size down so the breaks hold. */
    font-size: clamp(26px, 8.8vw, 40px);
  }

  .bd-section { padding-top: 64px; padding-bottom: 64px; }
  .bd-section__head { margin-bottom: 32px; }

  /* At the desktop floor of 32px the address measures 427px against 335px of
     usable width and drags its arrow off-screen with it. */
  .bd-contact__email {
    font-size: clamp(20px, 6.2vw, 40px);
    gap: 10px; padding: 11px 0;
    overflow-wrap: anywhere;
  }
  .bd-contact__email svg { flex: 0 0 auto; width: 16px; height: 16px; }
  /* Touch targets */
  .bd-footer__cols a, .bd-footer__cols span { padding: 12px 0; }
  .bd-hero__cta, .bd-contact__label { touch-action: manipulation; }
  .bd-hero__chrome { padding: 110px 20px 40px; }
  .bd-hero__top { grid-template-columns: 1fr; gap: 8px; }
  .bd-hero__top > * { text-align: left !important; }
  .bd-hero__bottom { grid-template-columns: 1fr; }
  .bd-attrs { grid-template-columns: 1fr; }
  .bd-facts { grid-template-columns: 1fr; }
  .bd-footer__cols { grid-template-columns: 1fr; }
  .bd-footer__bottom { grid-template-columns: 1fr; gap: 8px; }
  .bd-footer__bottom > :nth-child(2),
  .bd-footer__bottom > :nth-child(3) { text-align: left; }
}
