/* ============================================================
   BUYARY SOLUTIONS — audience narrative pages
   Standalone light theme on the buyary.com / investor-brief
   palette: cream #F8F7F3 · ink #1C1B1B · navy #3C5266
            deep #1B2642 · orange #D9623C · green #3BAA3F
   Type: Playfair Display · Josefin Sans · Inter
   (Does NOT load platform.css — these pages are light.)
   ============================================================ */

:root {
  --navy: #3C5266;
  --navy-deep: #1B2642;
  --navy-ink: #142033;
  --orange: #D9623C;
  --orange-soft: #E8926F;
  --green: #3BAA3F;
  --green-light: #8BC34A;
  --cream: #F8F7F3;
  --cream-2: #F3F1EC;
  --sand: #E3DFD6;
  --ink: #1C1B1B;
  --ink-soft: #474747;
  --line: rgba(60, 82, 102, 0.16);
  --line-strong: rgba(60, 82, 102, 0.3);
  --line-light: rgba(248, 247, 243, 0.18);
  --cream-dim: rgba(248, 247, 243, 0.72);
  --cream-faint: rgba(248, 247, 243, 0.45);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Josefin Sans", "Trebuchet MS", sans-serif;
  --data: "Inter", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;

  --track: 0.16em;
  --maxw: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--serif);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--navy); color: var(--cream); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 700; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(5rem, 11vw, 9rem) 0; position: relative; }
.section--alt { background: var(--cream-2); }

/* ============ GRAIN ============ */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 9990;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 8s steps(10) infinite;
}
@keyframes grain-shift {
  0%,100% { transform: translate(0,0); }
  10% { transform: translate(-5%,-8%); } 20% { transform: translate(-12%,3%); }
  30% { transform: translate(6%,-10%); } 40% { transform: translate(-4%,12%); }
  50% { transform: translate(-10%,4%); } 60% { transform: translate(12%,0); }
  70% { transform: translate(0,10%); } 80% { transform: translate(-8%,-3%); }
  90% { transform: translate(9%,6%); }
}

/* ============ TYPOGRAPHY ============ */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: var(--track); text-transform: uppercase;
  color: var(--orange);
  display: flex; align-items: center; gap: 0.9rem;
  margin-bottom: 1.8rem;
}
.eyebrow__line { display: inline-block; width: 42px; height: 1px; background: var(--orange); flex-shrink: 0; }
.eyebrow__dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
  opacity: 0.75;
}
.eyebrow__num {
  font-family: var(--data); font-weight: 500; font-size: 0.66rem;
  color: var(--navy); opacity: 0.55; letter-spacing: 0.04em;
  transform: translateY(1px);
}

.h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 500; line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--navy-deep);
  margin-bottom: 1.4rem;
  /* even the lines instead of stranding one word on its own row */
  text-wrap: balance;
}
.h2 em { font-style: italic; color: var(--orange); }

/* ============ BUTTONS (pill + slide fill, as on the brief) ============ */
.btn {
  font-family: var(--sans); font-weight: 600;
  letter-spacing: var(--track); text-transform: uppercase;
  font-size: 0.72rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.05rem 2.1rem 0.95rem;
  border-radius: 100px; cursor: pointer;
  position: relative; overflow: hidden;
  transition: color 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
              transform 0.35s var(--ease-out);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn--solid { background: var(--navy-deep); color: var(--cream); }
.btn--solid::before { background: var(--orange); }
.btn--solid:hover::before { transform: translateY(0); }
.btn--ghost { border: 1px solid var(--navy); color: var(--navy); background: transparent; }
.btn--ghost::before { background: var(--navy); }
.btn--ghost:hover { color: var(--cream); }
.btn--ghost:hover::before { transform: translateY(0); }
.btn--light { background: var(--cream); color: var(--navy-deep); }
.btn--light::before { background: var(--orange); }
.btn--light:hover { color: var(--cream); }
.btn--light:hover::before { transform: translateY(0); }
.btn--ghostlight { border: 1px solid rgba(248,247,243,0.55); color: var(--cream); background: transparent; }
.btn--ghostlight::before { background: var(--cream); }
.btn--ghostlight:hover { color: var(--navy-deep); border-color: var(--cream); }
.btn--ghostlight:hover::before { transform: translateY(0); }
.btn--lg { padding: 1.25rem 2.6rem 1.15rem; font-size: 0.8rem; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem;
  padding: 1.15rem var(--pad);
  transition: background 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out),
              padding 0.45s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(248, 247, 243, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
  padding: 0.72rem var(--pad);
}
.nav__logo { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.nav__logo img { height: 26px; width: auto; flex-shrink: 0; }
@media (max-width: 400px) {
  .nav__tag { display: none; }
  .nav__logo img { height: 22px; }
  .nav__actions { gap: 0.7rem; }
  .nav__cta { padding: 0.6rem 0.9rem 0.5rem; letter-spacing: 0.08em; }
}
.nav__tag {
  font-family: var(--sans); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(217, 98, 60, 0.45);
  border-radius: 2px;
  padding: 0.34em 0.55em 0.2em; /* Josefin caps sit high; extra top pad centers them in the chip */
  line-height: 1;
}
.nav__links { display: flex; gap: 1.9rem; }
.nav__links a {
  font-family: var(--sans); font-size: 0.66rem; font-weight: 600;
  letter-spacing: var(--track); text-transform: uppercase;
  color: var(--ink-soft);
  position: relative; padding-bottom: 3px;
  transition: color 0.3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--orange);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 1.4rem; flex-shrink: 0; }
.nav__cta { white-space: nowrap; }
.nav__signin {
  font-family: var(--sans); font-size: 0.66rem; font-weight: 600;
  letter-spacing: var(--track); text-transform: uppercase;
  color: var(--ink-soft); transition: color 0.3s;
}
.nav__signin:hover { color: var(--ink); }
.nav__cta { padding: 0.78rem 1.4rem 0.68rem; font-size: 0.64rem; }
@media (max-width: 1080px) { .nav__links { display: none; } }
@media (max-width: 560px) {
  .nav__signin { display: none; }
  .nav { gap: 0.7rem; }
  .nav__actions { gap: 0.9rem; }
  .nav__cta { padding: 0.66rem 1.05rem 0.56rem; font-size: 0.58rem; letter-spacing: 0.1em; }
}

/* ============ HERO ============ */
.shero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 7.5rem var(--pad) 5.5rem;
}
.static .shero { min-height: 780px; }
.shero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.9;
}
@media (max-width: 760px) { .shero__canvas { opacity: 0.55; } }
.shero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 78% 60% at 50% 44%, rgba(248,247,243,0) 30%, rgba(248,247,243,0.6) 72%, var(--cream) 100%),
    linear-gradient(to bottom, rgba(248,247,243,0.6), rgba(248,247,243,0) 24%, rgba(248,247,243,0) 68%, var(--cream) 100%);
}
.shero__inner { position: relative; z-index: 2; max-width: 62rem; }
.shero__eyebrow { justify-content: center; text-shadow: 0 1px 14px rgba(248,247,243,0.8); }
@media (max-width: 600px) {
  /* keep the label on one line so the separator dot reads centered — but keep
     the flanking rule lines (they animate in on load). shrink + no-wrap. */
  .shero__eyebrow { font-size: 0.56rem; letter-spacing: 0.08em; gap: 0.55rem; white-space: nowrap; }
  .shero__eyebrow .eyebrow__line { width: 24px; }
}
.shero__title {
  font-size: clamp(2.5rem, 6.6vw, 5.1rem);
  font-weight: 500; line-height: 1.07;
  letter-spacing: -0.015em;
  color: var(--navy-deep);
  margin-bottom: 1.8rem;
}
.shero__title em { font-style: italic; color: var(--orange); }
.hero__line { display: block; overflow: hidden; padding: 0.05em 0.15em 0.16em; margin: -0.05em -0.15em -0.16em; }
.hero__line-in { display: block; }
.shero__sub {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 44rem; margin: 0 auto 2.5rem;
  text-shadow: 0 1px 14px rgba(248,247,243,0.8);
  text-wrap: balance;   /* even the lines instead of a long line + orphan */
}
.shero__sub em { color: var(--ink); }
.shero__ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
}
.hero__scroll-line { width: 1px; height: 44px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%; background: var(--orange);
  animation: scroll-drip 2.2s var(--ease-out) infinite;
}
@keyframes scroll-drip { 0% { top: -100%; } 60%,100% { top: 100%; } }
.hero__scroll-word {
  font-family: var(--sans); font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--navy);
  opacity: 0.6;
}

/* ============ CHAPTERS ============ */
.story { max-width: 50rem; }
.story p {
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 1.5em;
}
.story p:last-child { margin-bottom: 0; }
.story em { color: var(--orange); font-style: italic; }
.story strong, .story b { color: var(--ink); font-weight: 600; }

/* ---- Source wall: the widgets logo ticker, repurposed for the light
   'How Buyary helps' section. Logos tint to a uniform soft charcoal so the
   wall reads as one system on cream; two identical sets loop seamlessly. ---- */
.srcs { margin-top: clamp(2.4rem, 5vw, 3.6rem); max-width: 64rem; }
.srcs__note {
  border-top: 1px dashed var(--line-strong);
  padding-top: 1.4rem; margin: 0 0 1.5rem;
  font-family: var(--data); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); opacity: 0.62;
}
.proof__ticker { position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker-scroll 60s linear infinite; }
.proof__ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__set { display: flex; align-items: center; flex: none; gap: clamp(2.2rem, 4vw, 3.4rem); padding-right: clamp(2.2rem, 4vw, 3.4rem); }
.tick { display: inline-flex; align-items: center; flex: none; }
.tick__logo { display: block; width: auto; height: 20px; max-width: 112px; object-fit: contain; filter: brightness(0); opacity: 0.42; transition: opacity 0.25s ease; }
.tick__logo--icon { height: 26px; }
.tick:hover .tick__logo { opacity: 0.82; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .proof__ticker { -webkit-mask-image: none; mask-image: none; }
  .ticker__track { animation: none; flex-wrap: wrap; width: 100%; }
  .ticker__set { flex-wrap: wrap; }
  .ticker__set + .ticker__set { display: none; }
}

/* friction ticker — the places shoppers wander off to */
.drift { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.drift span {
  font-family: var(--data); font-size: 0.85rem; color: var(--ink-soft);
  border: 1px dashed var(--line-strong); border-radius: 999px;
  padding: 0.5rem 1.05rem 0.45rem;
  background: rgba(255,255,255,0.5);
}

/* ============ PILLAR / CAPABILITY GRID ============ */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 2vw, 1.3rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .pillars { grid-template-columns: 1fr; } }
.pillars--2 { grid-template-columns: repeat(2, 1fr); max-width: 56rem; }
@media (max-width: 640px) { .pillars--2 { grid-template-columns: 1fr; } }
.pillar {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem 1.5rem 1.35rem;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(27,38,66,0.04), 0 12px 28px -20px rgba(27,38,66,0.16);
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out);
}
.pillar:hover {
  border-color: rgba(217,98,60,0.5);
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(27,38,66,0.05), 0 20px 36px -20px rgba(27,38,66,0.22);
}
.pillar b {
  display: block;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy-deep); margin-bottom: 0.5rem;
}
.pillar p {
  font-family: var(--data); font-size: 0.9rem;
  color: var(--ink-soft); line-height: 1.55; margin: 0;
}
.pillar__num {
  font-family: var(--data); font-size: 0.64rem; font-weight: 500;
  color: var(--navy); opacity: 0.5; letter-spacing: 0.08em;
  display: block; margin-bottom: 0.8rem;
}

/* ============ QUOTE BAND (deep navy watercolor moment) ============ */
.qband {
  position: relative;
  padding: clamp(6rem, 12vw, 10rem) 0;
  text-align: center;
  overflow: hidden;
  background: var(--navy-deep) url("../assets/wash-navy-field.jpg") center / cover no-repeat;
}
.qband::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--navy-deep) 0%, rgba(27,38,66,0.55) 30%, rgba(27,38,66,0.8) 100%);
}
.qband .wrap { position: relative; z-index: 2; }
.qband__mark {
  font-family: var(--serif); font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 0.4; color: var(--orange-soft); opacity: 0.95;
  display: block; margin-bottom: 1.6rem;
}
.qband__text {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  line-height: 1.28; letter-spacing: -0.01em;
  color: var(--cream);
  max-width: 52rem; margin: 0 auto;
  text-wrap: balance;
}
.qband__text em { font-style: italic; color: var(--orange-soft); }
.qband__foot {
  margin-top: 2rem;
  font-family: var(--sans); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream-faint);
}

/* ============ JOURNEY RAIL (numbered flow, vertical) ============ */
.rail { max-width: 40rem; margin-top: clamp(2rem, 4vw, 3rem); }
.rail__step {
  position: relative;
  display: grid; grid-template-columns: 3.4rem 1fr;
  gap: clamp(1rem, 3vw, 1.8rem);
  padding-bottom: clamp(1.8rem, 4vw, 2.6rem);
}
.rail__step:last-child { padding-bottom: 0; }
.rail__step::before {
  content: ""; position: absolute;
  left: 1.15rem; top: 2.7rem; bottom: 0.4rem;
  width: 1px;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 4px, transparent 4px 9px);
}
.rail__step:last-child::before { display: none; }
.rail__dot {
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--data); font-size: 0.78rem; font-weight: 600;
  color: var(--orange);
}
.rail__body b {
  display: block;
  font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 600; color: var(--navy-deep); margin-bottom: 0.4rem;
  padding-top: 0.28rem;
}
.rail__body p {
  font-family: var(--data); font-size: 0.95rem;
  color: var(--ink-soft); line-height: 1.65; margin: 0;
}

/* ============ AGENT PIPELINE (horizontal flow) ============ */
.pipe {
  display: flex; align-items: stretch; gap: 0;
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.pipe__node {
  flex: 1; min-width: 158px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(27,38,66,0.04), 0 12px 28px -20px rgba(27,38,66,0.16);
  padding: 1.3rem 1.1rem 1.15rem;
  text-align: center;
  position: relative;
}
.pipe__node--hot {
  border-color: rgba(217,98,60,0.6);
  box-shadow: 0 0 0 1px rgba(217,98,60,0.2), 0 16px 34px -18px rgba(217,98,60,0.35);
}
.pipe__node b {
  display: block;
  font-family: var(--sans); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--navy-deep); margin-bottom: 0.4rem;
}
.pipe__node--hot b { color: var(--orange); }
.pipe__node span {
  font-family: var(--data); font-size: 0.76rem;
  color: var(--ink-soft); line-height: 1.5; display: block;
}
.pipe__link {
  flex: 0 0 clamp(1.6rem, 4vw, 3.2rem);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.pipe__link::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 4px, transparent 4px 9px);
  opacity: 0.75;
}
.pipe__link::after {
  content: ""; position: relative; z-index: 1;
  border-left: 6px solid var(--orange);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  margin-left: auto; margin-right: -1px;
}
/* Narrow screens: stack the flow vertically so no card ever overflows or
   forces a horizontal scroll. Connectors rotate to point downward. */
@media (max-width: 760px) {
  .pipe { flex-direction: column; align-items: stretch; overflow-x: visible; }
  .pipe__node { width: 100%; min-width: 0; }
  .pipe__link { flex: 0 0 auto; width: 100%; height: 1.9rem; }
  .pipe__link::before {
    left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto;
    background: repeating-linear-gradient(180deg, var(--orange) 0 4px, transparent 4px 9px);
  }
  .pipe__link::after {
    position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    margin: 0;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 6px solid var(--orange); border-bottom: 0;
  }
}

/* ============ OUTCOMES (big serif words) ============ */
.outcomes {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.4rem, 3.5vw, 2.6rem) clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  max-width: 58rem;
}
@media (max-width: 700px) { .outcomes { grid-template-columns: 1fr; } }
.outcome { border-left: 1px solid var(--line-strong); padding-left: 1.4rem; }
.outcome b {
  display: block;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  line-height: 1.22; color: var(--navy-deep);
}
.outcome b em { font-style: italic; color: var(--orange); }
.outcome span {
  display: block; margin-top: 0.45rem;
  font-family: var(--data); font-size: 0.88rem;
  color: var(--ink-soft); line-height: 1.55;
}

/* ============ RELATED PRODUCTS ============ */
.rel {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: clamp(0.9rem, 2vw, 1.3rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.rel__card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.6rem 1.5rem 1.4rem;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(27,38,66,0.04), 0 12px 28px -20px rgba(27,38,66,0.16);
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out);
}
.rel__card:hover {
  border-color: rgba(217,98,60,0.55);
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(27,38,66,0.05), 0 24px 44px -22px rgba(27,38,66,0.28);
}
.rel__kicker {
  font-family: var(--sans); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 0.65rem;
}
.rel__card b {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  color: var(--navy-deep); margin-bottom: 0.45rem;
}
.rel__card p {
  font-family: var(--data); font-size: 0.86rem;
  color: var(--ink-soft); line-height: 1.55;
  margin: 0 0 1.2rem;
}
.rel__go {
  margin-top: auto;
  font-family: var(--sans); font-size: 0.64rem; font-weight: 700;
  letter-spacing: var(--track); text-transform: uppercase;
  color: var(--navy);
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: color 0.3s, gap 0.3s var(--ease-out);
}
.rel__card:hover .rel__go { color: var(--orange); gap: 0.85rem; }

/* ============ CODE BLOCK (stays dark, like the brief's terminal) ============ */
.codeblock {
  border: 1px solid rgba(20,32,51,0.5);
  border-radius: 8px;
  background: var(--navy-ink);
  overflow: hidden;
  margin: 1.8rem 0 0;
  max-width: 46rem;
  text-align: left;
  box-shadow: 0 24px 48px -24px rgba(27,38,66,0.4);
}
.codeblock__bar {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid rgba(248,247,243,0.1);
  background: rgba(248,247,243,0.04);
}
.codeblock__dots { display: flex; gap: 5px; }
.codeblock__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(248,247,243,0.18); }
.codeblock__file { font-family: var(--mono); font-size: 0.68rem; color: var(--cream-faint); }
.codeblock__copy {
  margin-left: auto;
  font-family: var(--sans); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream-dim);
  background: none; border: 1px solid rgba(248,247,243,0.3);
  border-radius: 3px; padding: 0.35em 0.7em 0.25em;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.codeblock__copy:hover { color: var(--cream); border-color: rgba(248,247,243,0.55); }
.codeblock__copy.is-copied { color: var(--green-light); border-color: rgba(139,195,74,0.5); }
.codeblock pre {
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: clamp(0.68rem, 1.4vw, 0.78rem);
  line-height: 1.7;
  color: var(--cream);
}
.c-fn { color: var(--orange-soft); }
.c-str { color: var(--green-light); }
.c-key { color: var(--cream-dim); }

/* ============ FINAL CTA (deep navy watercolor, like the brief's raise) ============ */
.scta {
  position: relative;
  padding: clamp(7rem, 14vw, 11rem) 0;
  text-align: center;
  overflow: hidden;
  background: var(--navy-deep) url("../assets/wash-navy-field.jpg") center / cover no-repeat;
}
.scta::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--navy-deep) 0%, rgba(27,38,66,0.5) 34%, rgba(27,38,66,0.78) 100%);
}
.scta__inner { position: relative; z-index: 2; }
.scta__title {
  font-size: clamp(2.4rem, 6.2vw, 4.8rem);
  font-weight: 400; line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin-bottom: 2.4rem;
}
.scta__title em { font-style: italic; color: var(--orange-soft); }
.scta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.8rem; }
.scta__contact {
  color: var(--cream-dim); font-size: 0.96rem; font-style: italic;
  max-width: 40rem; margin-left: auto; margin-right: auto;
  text-wrap: balance;   /* even the two lines instead of a long line + orphan */
}
.scta__contact a {
  color: var(--orange-soft); font-style: normal;
  border-bottom: 1px solid rgba(232,146,111,0.5);
  padding-bottom: 2px;
  transition: border-color 0.3s;
}
.scta__contact a:hover { border-color: var(--orange-soft); }

/* ============ SOLUTIONS HUB INDEX ============ */
.hub {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 2vw, 1.3rem);
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
}
@media (max-width: 960px) { .hub { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .hub { grid-template-columns: 1fr; } }
.hub__card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.7rem 1.6rem 1.5rem;
  min-height: 190px;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(27,38,66,0.04), 0 12px 28px -20px rgba(27,38,66,0.16);
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out);
}
.hub__card:hover {
  border-color: rgba(217,98,60,0.55);
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(27,38,66,0.05), 0 24px 44px -22px rgba(27,38,66,0.28);
}
.hub__num {
  font-family: var(--data); font-size: 0.66rem; font-weight: 500;
  color: var(--navy); opacity: 0.55; letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.hub__card b {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600;
  color: var(--navy-deep); margin-bottom: 0.5rem;
}
.hub__card p {
  font-family: var(--data); font-size: 0.86rem;
  color: var(--ink-soft); line-height: 1.55; margin: 0 0 1.2rem;
}
.hub__card .rel__go { margin-top: auto; }
.hub__card:hover .rel__go { color: var(--orange); gap: 0.85rem; }

/* ============ FOOTER (light) ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--cream-2);
}
.footer__grid {
  display: grid; grid-template-columns: 1fr 1fr 1.9fr 1fr;
  gap: 2.2rem clamp(1.6rem, 4vw, 4rem);
  align-items: start;
}
.footer__col--wide .footer__links { columns: 2; column-gap: clamp(1.2rem, 2.5vw, 2.2rem); }
.footer__col--wide .footer__links a { break-inside: avoid; }
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col--wide { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .footer__grid { grid-template-columns: 1fr; }
  /* phones: taper — short columns first, the long Solutions directory last */
  .footer__col--wide { order: 5; }
}
.footer__bar {
  margin-top: clamp(2.2rem, 4vw, 3.2rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap;
}
.footer__brand { display: flex; gap: 0.85rem; align-items: center; }
.footer__brand img { opacity: 0.9; display: block; }
.footer__brand p { font-family: var(--data); font-size: 0.8rem; color: var(--ink-soft); line-height: 1.5; }
.footer__brand span { color: var(--navy); opacity: 0.7; font-style: italic; font-family: var(--serif); }
.footer__ext { display: flex; gap: 1.8rem; }
.footer__ext a { font-family: var(--data); font-size: 0.82rem; color: var(--ink-soft); transition: color 0.3s; }
.footer__ext a:hover { color: var(--orange); }
.footer__head {
  font-family: var(--sans); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--navy);
  opacity: 0.75;
  margin-bottom: 0.9rem;
}
.footer__col a {
  display: block; width: fit-content;
  transform: translateX(0);
  font-family: var(--data); font-size: 0.86rem;
  color: var(--ink-soft);
  padding: 0.22rem 0;
  transition: color 0.3s, transform 0.25s var(--ease-out);
}
.footer__col a:hover { color: var(--orange); transform: translateX(2px); }

/* brand block (footer sibling anatomy — see FOOTER-SPEC.md) */
@media (min-width: 1101px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.9fr 1fr; } }
.footer__brandcol { padding-right: clamp(0.5rem, 2vw, 2rem); }
.footer__logo { display: block; width: 168px; height: auto; margin-bottom: 1.25rem; }
.footer__tagline {
  font-family: var(--serif); font-style: italic;
  /* dimmed like the menu overlay's tagline — it's a brand aside, not a heading */
  font-size: 1.18rem; line-height: 1.4; color: var(--ink-soft);
  margin-bottom: 0.75rem;
}
@media (max-width: 1100px) { .footer__brandcol { grid-column: 1 / -1; } }
/* only the tablet band gets the 4-track grid; below 900px the earlier
   2-column rules must win again (this block outranks them by source order) */
@media (min-width: 901px) and (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1.9fr 1fr; }
}
/* whenever the brand block owns a full row (<=1100px) and there's room, lay it
   across — logo + tagline left, mission pushed right — instead of stacking in
   the left corner and leaving the right half of the row empty */
@media (min-width: 700px) and (max-width: 1100px) {
  .footer__brandcol {
    display: flex; align-items: center;
    gap: clamp(2rem, 5vw, 3.5rem);
    padding-right: 0;
  }
  .footer__brandcol .footer__logo { margin-bottom: 0; }
  .footer__tagline { margin-bottom: 0; }
}
.footer__ext a {
  font-family: var(--sans); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
}
/* spec floor: styled focus, not just UA default */
.footer a:focus-visible, .footer__logolink:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}
/* one-time entrance (menu.js arms it; hidden only when JS is live) */
@media (prefers-reduced-motion: no-preference) {
  .footer.is-armed .footer__grid > * { opacity: 0; transform: translateY(14px); }
  .footer.is-armed.is-inview .footer__grid > * {
    opacity: 1; transform: none;
    transition: opacity 0.55s ease, transform 0.65s var(--ease-out);
  }
  .footer.is-armed.is-inview .footer__grid > :nth-child(2) { transition-delay: 70ms; }
  .footer.is-armed.is-inview .footer__grid > :nth-child(3) { transition-delay: 140ms; }
  .footer.is-armed.is-inview .footer__grid > :nth-child(4) { transition-delay: 210ms; }
  .footer.is-armed.is-inview .footer__grid > :nth-child(5) { transition-delay: 280ms; }
}

/* ============ REVEAL DEFAULTS (JS-driven) ============ */
.js .shero__eyebrow, .js .shero__sub, .js .shero__ctas, .js .hero__scroll { opacity: 0; }
.js .hero__line-in { transform: translateY(110%); }
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js .rail__step, .js .pipe__node, .js .pipe__link { opacity: 0; }
.js .qband__text, .js .qband__mark, .js .qband__foot { opacity: 0; }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .hero__scroll-line::after { animation: none; }
  .js .shero__eyebrow, .js .shero__sub, .js .shero__ctas, .js .hero__scroll,
  .js .hero__line-in, .js [data-reveal], .js .rail__step, .js .pipe__node,
  .js .pipe__link, .js .qband__text, .js .qband__mark, .js .qband__foot {
    opacity: 1 !important; transform: none !important;
  }
  * { scroll-behavior: auto !important; }
}

/* ============ CONTACT FORM (solutions + industries) ============
   A light-theme outreach form. The submit composes a mailto to sales so the
   site stays fully static; ?topic= preselects the inquiry and tailors the
   lede so each entry point acknowledges the need it came from. */
.contact { padding-top: clamp(7.5rem, 14vh, 11rem); }
.contact__lede {
  font-family: var(--data); font-size: clamp(1rem, 1.4vw, 1.14rem);
  color: var(--ink-soft); line-height: 1.62; max-width: 40rem; margin: 1.2rem 0 0;
}
.contact__lede strong { color: var(--ink); font-weight: 600; }
.cform { display: flex; flex-direction: column; gap: 1.6rem; margin-top: clamp(2.4rem, 5vw, 3.4rem); max-width: 44rem; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .cform__row { grid-template-columns: 1fr; } }
.cform__field { display: flex; flex-direction: column; }
.cform label {
  font-family: var(--sans); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); margin-bottom: 0.55rem;
}
.cform input, .cform select, .cform textarea {
  width: 100%; font-family: var(--data); font-size: 0.95rem; color: var(--ink);
  background: #FFFFFF; border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 0.78rem 0.9rem; transition: border-color 0.25s, box-shadow 0.25s;
}
.cform input:focus, .cform select:focus, .cform textarea:focus {
  outline: none; border-color: rgba(217,98,60,0.6); box-shadow: 0 0 0 3px rgba(217,98,60,0.12);
}
.cform textarea { min-height: 130px; resize: vertical; }
.cform select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%233C5266' stroke-width='1.5' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.95rem center; padding-right: 2.3rem;
}
.cform__submit { align-self: flex-start; border: none; margin-top: 0.4rem; cursor: pointer; }
.cform__hint { font-family: var(--data); font-size: 0.88rem; color: var(--ink-soft); margin: 1.7rem 0 0; }
.cform__hint a { color: var(--orange); text-decoration: none; border-bottom: 1px solid rgba(217,98,60,0.35); }
.cform__done {
  display: none; margin-top: clamp(2.4rem, 5vw, 3.4rem); max-width: 40rem;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,255,255,0.6); padding: 2rem 2.1rem;
}
.cform__done b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--navy-deep); margin-bottom: 0.5rem; }
.cform__done p { font-family: var(--data); font-size: 0.95rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.cform__done a { color: var(--orange); }
.is-submitted .cform { display: none; }
.is-submitted .cform__done { display: block; }

/* skip link (a11y) */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 10001;
  transform: translateY(-260%);
  font-family: var(--sans, sans-serif); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--orange, #D9623C); color: #FFFFFF;
  padding: 0.8rem 1.2rem; border-radius: 6px;
  transition: transform 0.25s;
}
.skip-link:focus { transform: none; }
