/* ============================================================
   BuildWorkflow Home — trades/freight editorial
   Brand layer first → one exceptional artifact → calm sections
   Tokens: /bw-tokens.css (imported via styles.css)
   ============================================================ */

.page-home--editorial {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

/* Kill grid wallpaper on home — premium brand needs quiet ground */
body.page-home--editorial {
  background: var(--paper) !important;
  background-image: none !important;
}

.page-home--editorial .utility-bar {
  display: none;
}

/* —— Nav —— */
body.page-home--editorial .site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-h);
  min-height: var(--header-h);
  border-radius: 0 !important;
  background: rgba(246, 245, 242, 0.94) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: none !important;
  z-index: 50;
  transition: box-shadow var(--motion) var(--ease);
}

body.page-home--editorial .site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(20, 24, 31, 0.07) !important;
}

body.page-home--editorial .site-header .nav {
  height: var(--header-h);
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
  padding: 0;
}

body.page-home--editorial .brand-mark {
  width: 1.15rem !important;
  height: 1.15rem !important;
  background:
    linear-gradient(var(--ink) 0 38%, transparent 38% 62%, var(--ink) 62% 100%),
    linear-gradient(90deg, var(--ink) 0 38%, transparent 38% 62%, var(--ink) 62% 100%),
    var(--paper) !important;
  box-shadow: inset 0 0 0 1.5px var(--ink) !important;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Desktop nav only when the 6 links + CTA can sit without crush */
@media (min-width: 1180px) {
  body.page-home--editorial .nav-toggle {
    display: none !important;
  }
  body.page-home--editorial .nav-links {
    display: flex !important;
    position: static !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

body.page-home--editorial .site-header .nav-links a:not(.btn) {
  color: var(--ink) !important;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.68;
  transition: opacity var(--motion) var(--ease);
}

body.page-home--editorial .site-header .nav-links a:not(.btn):hover,
body.page-home--editorial .site-header .nav-links a:not(.btn)[aria-current="page"] {
  opacity: 1;
  border-bottom-color: transparent !important;
}

body.page-home--editorial .site-header .btn-nav-cta,
body.page-home--editorial .site-header .btn-primary {
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  color: #fff !important;
  border-radius: var(--radius) !important;
  min-height: var(--touch-min, 44px);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 1 !important;
}

.page-home--editorial .wrap {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
}

/* —— Buttons —— */
.page-home--editorial .btn {
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    transform var(--motion) var(--ease),
    background var(--motion) var(--ease),
    border-color var(--motion) var(--ease),
    color var(--motion) var(--ease);
}

.page-home--editorial .btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  min-height: 3.15rem;
  padding: 0.85rem 1.45rem;
}

.page-home--editorial .btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  transform: translateY(-1px);
}

.page-home--editorial .btn-secondary {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  min-height: 3.15rem;
  padding: 0.85rem 1.25rem;
}

.page-home--editorial .btn-secondary:hover {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.page-home--editorial .btn-on-ink {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
  border-radius: var(--radius);
}

/* —— 1. Brand hero —— */
.page-home--editorial .ed-hero {
  position: relative;
  padding: var(--space-hero) 0 0;
  background: var(--paper);
  overflow-x: clip;
}

.page-home--editorial .ed-hero-ops-kill,
.page-home--editorial .ed-hero::before,
.page-home--editorial .ed-hero::after {
  content: none !important;
  display: none !important;
}

.page-home--editorial .ed-hero-copy {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  max-width: min(38rem, calc(100vw - 2 * var(--pad)));
  margin-inline: auto;
  box-sizing: border-box;
}

.page-home--editorial .ed-kicker,
body.page-home--editorial .ed-hero .site-tag {
  margin: 0 0 1.35rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: var(--font-mono) !important;
  font-size: var(--fs-eyebrow) !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--ink-soft) !important;
}

body.page-home--editorial .ed-hero .site-tag::before {
  content: none !important;
  display: none !important;
}

.page-home--editorial .ed-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: -0.042em;
  font-weight: 700;
  color: var(--ink);
  text-transform: none;
  max-width: 12ch;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.page-home--editorial .ed-hero h1 .accent {
  color: var(--ink) !important;
}

.page-home--editorial .ed-hero .lede,
.page-home--editorial .ed-hero .hero-checks,
.page-home--editorial .ed-hero .hero-meaning {
  max-width: min(38rem, calc(100vw - 2 * var(--pad)));
}

.page-home--editorial .hero-checks {
  max-width: min(38rem, calc(100vw - 2 * var(--pad)));
}

.page-home--editorial .trade-strip {
  justify-content: center;
  margin: 0 auto var(--space-4);
  max-width: min(var(--max), calc(100vw - 2 * var(--pad)));
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-home--editorial .ed-hero .hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: var(--fs-small);
}

.page-home--editorial .ed-hero .hero-checks li::before {
  content: none;
}

.page-home--editorial .ed-hero .cta-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-home--editorial .ed-hero .hero-meaning {
  margin: 1.15rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 28rem;
}

/* Full-bleed field plane — dominant visual */
.page-home--editorial .ed-field {
  position: relative;
  margin-top: clamp(2.75rem, 7vw, 4.5rem);
  width: 100%;
  min-height: clamp(18rem, 42vw, 32rem);
  border-radius: 0;
  overflow: hidden;
  background: #1a1f27;
}

.page-home--editorial .ed-field-photo {
  display: block;
  width: 100%;
  height: clamp(18rem, 42vw, 32rem);
  object-fit: cover;
  object-position: center 42%;
}

.page-home--editorial .ed-field::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(20, 24, 31, 0.08) 0%,
    rgba(20, 24, 31, 0.42) 100%
  );
}

.page-home--editorial .ed-field .hero-atmosphere {
  display: none;
}

.page-home--editorial .ed-field-caption {
  position: absolute;
  left: var(--pad);
  bottom: 1.15rem;
  z-index: 1;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 245, 242, 0.92);
  font-weight: 600;
}

.page-home--editorial .ed-hero .hero-trust {
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
  margin: 0;
}

.page-home--editorial .ed-hero .hero-trust-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  padding: 1.5rem 0;
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.page-home--editorial .ed-hero .hero-trust em {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(20, 24, 31, 0.42);
  margin-bottom: 0.2rem;
}

/* —— 2. Path —— */
.page-home--editorial .ed-path {
  padding: var(--space-6) 0;
  background: var(--paper);
  border: 0;
}

.page-home--editorial .ed-path h2 {
  margin: 0 0 2rem;
  max-width: 16ch;
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.page-home--editorial .ed-path-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.page-home--editorial .ed-path-gap {
  display: inline-block;
  width: clamp(1.75rem, 7vw, 4rem);
  height: 1px;
  background: var(--steel);
  vertical-align: middle;
  opacity: 0.85;
}

/* —— 3. One exceptional artifact —— */
.page-home--editorial .ed-artifact {
  padding: var(--space-6) 0;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home--editorial .ed-artifact .ed-kicker {
  margin-bottom: 1rem;
}

.page-home--editorial .ed-artifact h2 {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.page-home--editorial .ed-artifact > .wrap > .lede {
  margin: 0 0 2.75rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

.page-home--editorial .ed-artifact .product-stage {
  position: relative;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0;
  min-height: 0;
}

.page-home--editorial .ed-artifact .product-stage::before {
  display: none;
}

.page-home--editorial .ed-artifact .product-chrome {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  max-width: none;
  margin: 0;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--paper);
  box-shadow: none;
  color: var(--ink);
}

.page-home--editorial .ed-artifact .product-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(20, 24, 31, 0.18);
}

.page-home--editorial .ed-artifact .product-chrome-title {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
}

.page-home--editorial .ed-artifact .product-chrome-meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.page-home--editorial .ed-artifact .ops-board,
.page-home--editorial .ed-artifact .product-stage .ops-board {
  position: relative;
  max-width: none;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  background: #fff;
  box-shadow: var(--shadow-artifact);
}

.page-home--editorial .ed-artifact .float-card {
  display: none;
}

.page-home--editorial .ed-artifact .ticket-stamp {
  color: var(--steel);
}

.page-home--editorial .ed-artifact .lane-tabs span {
  border-radius: var(--radius);
}

.page-home--editorial .ed-artifact .status-chip {
  border-radius: var(--radius);
}

.page-home--editorial .ed-artifact .status-chip--alert {
  background: rgba(180, 83, 9, 0.1);
  color: var(--steel-deep);
  border-color: rgba(180, 83, 9, 0.35);
}

/* —— 4. Trades —— */
.page-home--editorial .ed-trades {
  padding: var(--space-6) 0;
  background: var(--paper);
}

.page-home--editorial .ed-trades h2 {
  margin: 0 0 2.5rem;
  max-width: 16ch;
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.page-home--editorial .trade-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home--editorial .trade-chip {
  display: block;
  margin: 0;
  padding: 1.4rem 1.1rem;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
  transition: background var(--motion) var(--ease);
}

.page-home--editorial .trade-chip:hover {
  background: var(--paper-2);
}

.page-home--editorial .trade-strip-label {
  display: none;
}

/* —— Diff —— */
.page-home--editorial .diff-band {
  background: var(--ink);
  border: 0;
  padding: var(--space-6) 0;
}

.page-home--editorial .diff-grid {
  gap: 1rem;
}

.page-home--editorial .diff-card {
  min-height: 0;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(246, 245, 242, 0.12);
  background: transparent;
}

.page-home--editorial .diff-card:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.03);
}

.page-home--editorial .diff-card--on {
  border-color: rgba(180, 83, 9, 0.55);
  background: rgba(180, 83, 9, 0.08);
  box-shadow: none;
}

.page-home--editorial .diff-kicker {
  color: rgba(246, 245, 242, 0.45);
}

.page-home--editorial .diff-card--on .diff-kicker {
  color: var(--steel-bright);
}

.page-home--editorial .diff-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-transform: none;
}

/* —— Section rhythm —— */
.page-home--editorial .section {
  padding: var(--space-6) 0;
  background: var(--paper);
}

.page-home--editorial .section-band {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home--editorial .section-head h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 18ch;
}

.page-home--editorial .section-head .eyebrow,
.page-home--editorial .eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.page-home--editorial .ba-pane,
.page-home--editorial .assess-board,
.page-home--editorial .assess-deliverable,
.page-home--editorial .method-step,
.page-home--editorial .flow-node {
  border-radius: var(--radius);
  border-color: var(--line);
  box-shadow: none;
}

.page-home--editorial .assess-deliverable {
  background: var(--ink);
  box-shadow: none;
}

.page-home--editorial .section-ink,
.page-home--editorial .section-instrument {
  background: var(--ink);
  color: #fff;
}

.page-home--editorial .tool-moment--pro,
.page-home--editorial .instrument-panel {
  border-radius: var(--radius);
}

.page-home--editorial .section-final-pro,
.page-home--editorial .final-cta--pro {
  background: var(--paper);
  border-radius: 0;
  box-shadow: none;
  padding: var(--space-6) 0;
  text-align: left;
}

.page-home--editorial .final-cta--pro h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.page-home--editorial .site-footer {
  background: var(--ink);
  color: rgba(246, 245, 242, 0.72);
}

@media (max-width: 900px) {
  .page-home--editorial .ed-hero {
    overflow-x: visible;
  }
  .page-home--editorial .ed-hero-copy {
    width: 100%;
    max-width: min(38rem, calc(100vw - 2 * var(--pad)));
    padding-inline: var(--pad);
    min-width: 0;
    box-sizing: border-box;
  }
  .page-home--editorial .ed-hero h1 {
    max-width: 100%;
    font-size: clamp(2.05rem, 11vw, 2.85rem);
    letter-spacing: -0.035em;
  }
  .page-home--editorial .ed-hero .lede,
  .page-home--editorial .ed-hero .hero-meaning,
  .page-home--editorial .ed-hero .hero-checks,
  .page-home--editorial .ed-hero .cta-row {
    max-width: 100%;
    min-width: 0;
    font-size: 1.02rem;
  }
  .page-home--editorial .ed-hero .hero-meaning {
    font-size: 0.88rem;
  }
  .page-home--editorial .ed-hero .hero-checks {
    font-size: var(--fs-small);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home--editorial .btn,
  .page-home--editorial .trade-chip {
    transition: none;
  }
  .page-home--editorial .ed-hero h1,
  .page-home--editorial .ed-hero .lede {
    animation: none !important;
  }
  .page-home--editorial .ed-field-photo.is-waiting,
  .page-home--editorial .ed-field-photo.is-decoded {
    opacity: 1 !important;
    transition: none !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .page-home--editorial .ed-hero h1,
  .page-home--editorial .ed-hero .lede {
    animation: bw-rise 700ms var(--ease) both;
  }
  .page-home--editorial .ed-hero .lede { animation-delay: 70ms; }

  .page-home--editorial .ed-field-photo.is-waiting {
    opacity: 0;
  }
  .page-home--editorial .ed-field-photo.is-decoded {
    opacity: 1;
    transition: opacity 700ms var(--ease);
  }
}

@keyframes bw-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
