/* Bruning Labs landing — page layout on top of the Nocturne system.
   Every value here comes from a Nocturne token; only layout lives in this file. */

html { scroll-behavior: smooth; }
a { text-decoration: none; }

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* The single 1080px column every band is measured against. */
.shell { max-width: 1080px; width: 100%; margin: 0 auto; }
.section { padding: 72px 22px; }
.section-hero { padding: 96px 22px 104px; }
.section-last { padding-bottom: 88px; }

/* The fading rule stops short of the gutters so its fade reads inside the column. */
.rule { width: calc(100% - 44px); margin: 0 auto; }

/* — nav — */
.nav-brand-mark { display: inline-flex; align-items: center; gap: 10px; }
/* "Labs" tucks under the wordmark's own tracking rather than sitting a word away. */
.nav-brand-accent { color: var(--color-accent); margin-left: -6px; }
.nav-lang { font-size: 13px; }
/* The links are only a group when the bar wraps; on desktop they stay
   direct flex children so .nav lays out exactly as the system draws it. */
.nav-links { display: contents; }

/* — hero — */
.hero-kicker { color: var(--color-accent); margin-bottom: 18px; }
.hero-title { max-width: 660px; text-wrap: pretty; margin-bottom: 20px; }
.hero-sub {
  max-width: 480px; font-size: 17px; line-height: 1.6;
  margin-bottom: 34px; text-wrap: pretty;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* — section headings — */
.kicker { margin-bottom: 8px; color: var(--color-neutral-500); }
.section-title { margin-bottom: 34px; max-width: 560px; text-wrap: pretty; }

/* — products — */
.grid-products {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 17px; max-width: 880px;
}
.product-card { padding: 28px; gap: 14px; }
/* A light plate behind each wordmark: the logos are drawn for white grounds. */
.logo-plate {
  height: 64px; display: flex; align-items: center; justify-content: flex-start;
  background: var(--color-neutral-100); border-radius: var(--radius-md);
  padding: 10px 16px;
}
.logo-plate img { max-height: 44px; width: auto; max-width: 200px; }
.product-title { font-size: 21px; }
.product-body { font-size: 14px; line-height: 1.6; }
.product-meta { justify-content: space-between; margin-top: 6px; }
.product-link { font-size: 13px; }

/* — consulting — */
.consulting {
  display: grid; grid-template-columns: minmax(260px, 5fr) minmax(300px, 7fr);
  gap: 56px; align-items: start;
}
.consulting-sub { font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.consulting-title { text-wrap: pretty; margin-bottom: 16px; }
.services { display: flex; flex-direction: column; }
/* Each row carries its own fading rule, the same ramp the .hr paints. */
.service {
  display: flex; gap: 18px; padding: 20px 0;
  background: linear-gradient(to right,
    transparent, var(--color-divider) 48px,
    var(--color-divider) calc(100% - 48px), transparent) no-repeat bottom / 100% 1px;
}
.service-num { color: var(--color-accent); font-size: 13px; padding-top: 2px; min-width: 24px; }
.service-title { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
.service-desc { margin: 0; font-size: 14px; line-height: 1.6; text-wrap: pretty; }

/* — about — */
.about {
  display: grid; grid-template-columns: 160px minmax(280px, 560px);
  gap: 40px; align-items: start;
}
.about-portrait {
  width: 160px; height: 160px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; position: relative;
  background: var(--color-surface);
  display: grid; place-items: center;
}
/* Initials sit under the photo, so a missing portrait degrades to a mark
   rather than a broken-image glyph. */
.about-portrait::before {
  content: 'PB'; font-family: var(--font-heading); font-size: 42px;
  color: var(--color-neutral-700); letter-spacing: -0.015em;
}
.about-portrait img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.about-name { margin-bottom: 14px; }
.about-body { font-size: 15px; line-height: 1.65; margin: 0; text-wrap: pretty; }

/* — cases — */
.grid-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 17px; }
.case-card { padding: 26px; gap: 12px; }
.case-tag { align-self: flex-start; }
.case-title { font-size: 18px; }
.case-body { font-size: 14px; line-height: 1.6; }
/* Paragraph-size accent text takes the deep ramp step, not the accent itself. */
.case-result { font-size: 13px; color: var(--color-accent-300); }

/* — quotes — */
.quotes-kicker { margin-bottom: 34px; color: var(--color-neutral-500); }
.grid-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.quote { margin: 0; border-left: 2px solid var(--color-accent); padding-left: 20px; }
.quote blockquote { margin: 0 0 12px; font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.quote figcaption { font-size: 13px; margin-top: 0; color: var(--color-neutral-500); }

/* — footer — */
.footer { border-top: 1px solid var(--color-divider); margin-top: auto; }
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 26px 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--color-neutral-500);
}
.footer-links { display: flex; gap: 24px; font-size: 13px; }
.footer-links a { color: var(--color-neutral-400); }
.footer-links a:hover { color: var(--color-accent); }
.footer-legal { font-size: 11px; color: var(--color-neutral-600); }

/* — narrow viewports —
   The canvas only ever drew the desktop column; these collapse the two
   asymmetric grids and pull the type down a step. */
@media (max-width: 860px) {
  .consulting { grid-template-columns: 1fr; gap: 32px; }
  .about { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 620px) {
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .section { padding: 56px 22px; }
  .section-hero { padding: 64px 22px 72px; }
  .grid-products { grid-template-columns: 1fr; }
  .grid-quotes { gap: 28px; }
  /* The nav wraps to two rows before the links start colliding: brand and
     language toggle hold the top row, the links take the one below. */
  .nav { flex-wrap: wrap; row-gap: var(--space-3); }
  .nav-links {
    display: flex; gap: var(--space-4);
    order: 1; flex-basis: 100%;
  }
}

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