/* ============================================================
   TwinWorks minimal theme, loaded AFTER Styles.css.
   Clean, quiet, engineering-grade: white surfaces, near-black ink,
   hairline borders, one accent, Inter with tight display tracking.
   ============================================================ */

:root {
  --ink: #0a0a0b;
  --ink-2: #52525b;
  --ink-3: #8b8b94;
  --paper: #ffffff;
  --paper-2: #f6f6f4;
  --line: #e7e7e2;
  --line-strong: #d6d6cf;
  --accent: #007bff;
  --radius-card: 20px;
  --radius-img: 16px;
}

/* ---------- Type ---------- */
* {
  font-family: "Inter", "Inter Variable", system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv05", "cv11";
}

h1, h2, h3, h4, h5 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.12;
}

p { color: var(--ink-2); }

.hero-header {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  color: var(--ink);
}

.hero-paragraph,
.hero-centered-section p {
  font-size: 1.06rem;
  color: var(--ink-2);
}

/* Photo heroes (use-case pages): the base caps the text column at
   min(50%, 560px) with a selector that out-ranks its own 900px
   full-width override, so phones got a skinny half-width strip */
@media (max-width: 900px) {
  .hero-bg .hero-home-text-container {
    width: 100%;
    align-items: flex-start;
  }
  /* the per-page overlays darken the left half only (desktop split); with
     full-width text, scrim the whole photo evenly instead */
  .hero-bg {
    background: linear-gradient(180deg, rgba(10, 10, 11, 0.72) 0%, rgba(10, 10, 11, 0.5) 55%, rgba(10, 10, 11, 0.6) 100%), var(--hero-bg) center / cover no-repeat;
  }
}

/* In-copy links: quiet underline instead of grey */
a:not(.button):not(.button-primary):not(.button-secondary):not(.button-hero):not(.button-outline-arrow):not(.nav-button):not(.cta-inline):not(.notfound-button),
a:not(.button):not(.button-primary):not(.button-secondary):not(.button-hero):not(.button-outline-arrow):not(.nav-button):not(.cta-inline):not(.notfound-button):visited {
  color: var(--ink) !important;
  text-decoration: underline !important;
  text-decoration-color: var(--line-strong) !important;
  text-underline-offset: 3px;
}
a:not(.button):not(.button-primary):not(.button-secondary):not(.button-hero):not(.button-outline-arrow):not(.nav-button):not(.cta-inline):not(.notfound-button):hover {
  color: var(--ink) !important;
  text-decoration: underline !important;
  text-decoration-color: var(--ink) !important;
}
/* Nav + footer links stay clean (no underline).
   :not(#tw-noop) lifts specificity above the underline rule's :not() chain. */
.navbar a:not(#tw-noop), .footer a:not(#tw-noop),
.dropdown-content a:not(#tw-noop), .use-case-item-link a:not(#tw-noop),
.logo a:not(#tw-noop) {
  text-decoration: none !important;
}
.navbar a:not(#tw-noop):not(.nav-button) { color: var(--ink) !important; }
.footer a:not(#tw-noop) { color: #a3a3ac !important; }
.footer a:not(#tw-noop):hover { color: #fff !important; }

/* Kickers / eyebrows */
.example-demo-kicker, .pain-kicker, .figures__tag,
.industry-tag, .supported-by-title {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.14em !important;
  color: var(--ink-3) !important;
}

/* ---------- Buttons ---------- */
.button-hero, .button-primary, .nav-button {
  background-color: var(--ink) !important;
  color: #fff !important;
  border: 1px solid var(--ink) !important;
  border-radius: 999px !important;
  padding: 12px 24px;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.button-hero:hover, .button-primary:hover, .nav-button:hover {
  background-color: #2b2b31 !important;
  color: #fff !important;
  transform: translateY(-1px);
}
.button-secondary {
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 999px !important;
  padding: 11px 22px;
  font-size: 15px !important;
  font-weight: 500 !important;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.button-secondary:hover {
  background: var(--paper-2) !important;
  border-color: var(--ink) !important;
  color: var(--ink) !important;
}
.hero-bg .button-secondary {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
}
.hero-bg .button-secondary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: #fff !important;
}
/* Dark surfaces get inverted buttons */
.value-prop-cta {
  color: #fff;
}
.value-prop-cta h2 {
  color: #fff;
}
.value-prop-cta .value-statement {
  color: rgba(255, 255, 255, 0.85);
}
.value-prop-cta .button-primary {
  background-color: #fff !important;
  color: var(--ink) !important;
  border-color: #fff !important;
}
.value-prop-cta .cta-logo {
  display: block;
  width: clamp(160px, 18vw, 220px);
  height: auto;
  margin-inline: auto;
}
.value-prop-cta .button-secondary {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
}
.value-prop-cta .button-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border-color: #fff !important;
}

/* ---------- Navbar ---------- */
.navbar {
  background-color: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(10, 10, 11, 0.04);
  /* radius stays the base 2rem: the navbar grows when the Use Cases
     dropdown expands inline, and a pill radius deforms into an egg */
}
.navigation a {
  font-size: 15px;
  font-weight: 450;
  color: var(--ink);
}
/* Mobile navbar keeps the full wordmark; base swaps to the bare icon at 920px */
@media (max-width: 920px) {
  .logo .logo-desktop { display: block; height: 30px; }
  .logo .logo-mobile { display: none; }
}

/* ---------- Surfaces & sections ---------- */
.section-background-white { background-color: var(--paper); }
.industries-section { background: var(--paper-2); }
/* Footer: black surface, white text (dark twin of the pain section) */
.footer {
  background: #0a0a0b;
  border-top: 1px solid #1d1d22;
}
.footer, .footer a { color: #a3a3ac; }
.footer p { color: #a3a3ac; }
.footer .footer__heading, .footer .footer__title { color: #fff; }
.footer .footer__bottom { border-top-color: rgba(255, 255, 255, 0.14); }
.footer .footer__input {
  background: #141417;
  border-color: #2a2a30;
  color: #fff;
}
.footer .footer__input::placeholder { color: #6f6f78; }
.footer .button-secondary {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}
.footer .button-secondary:hover {
  background: #fff !important;
  border-color: #fff !important;
  color: #0a0a0b !important;
}
.footer__input {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.inner-card {
  background-color: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

/* Supported-by strip: monochrome, quiet */
.supported-by-logos img {
  filter: grayscale(1);
  opacity: 0.62;
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.supported-by-logos img:hover { filter: none; opacity: 1; }

/* ---------- Cards ---------- */
.use-case-item {
  box-shadow: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  height: auto;
  max-height: none;
  min-height: 0;
}
.use-case-item:hover {
  box-shadow: 0 14px 34px rgba(10, 10, 11, 0.07);
  transform: translateY(-3px);
}

.use-case-item-content {
  justify-content: flex-start;
}

.use-case-item-content h4 {
  display: flex;
  align-items: flex-end;
  min-height: 2.6em;
}

.use-case-item-content > p {
  width: 100%;
  min-height: 7.5rem;
  margin: 0;
  font-size: clamp(0.78rem, 0.72rem + 0.16vw, 0.88rem);
  font-weight: 400;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .use-case-item-content h4,
  .use-case-item-content > p {
    min-height: 0;
  }
}

.industry-card {
  border-radius: var(--radius-card);
  background: #fff;
  border: 1px solid var(--line);
  padding: 0 0 1.25rem;
}
.industry-frame-wrapper {
  background: var(--paper-2);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.industry-body { padding: 1.1rem 1.25rem 0; }
.responsive-image { border-radius: var(--radius-img); }

/* ---------- Figures / stats ---------- */
.figures { background: var(--paper); }
.figures__number {
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.figures__label { color: var(--ink-3); }

/* ---------- Pain section (the one dark surface) ---------- */
.pain-section {
  background: var(--ink);
}
.pain-card {
  background: #141417;
  border: 1px solid #26262b;
  border-radius: var(--radius-card);
}
.pain-kicker { color: var(--ink-3) !important; }
.pain-header h2 { color: #fff; }
.pain-lead { color: #b9b9c0; }
.pain-card h3 { color: #fff; }
.pain-card p { color: #a3a3ac; }
.pain-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #1b1b20;
  color: #ffffff;
  margin-bottom: 1rem;
}

/* ---------- Home banner (AR): black instead of blue ---------- */
/* ---------- Demo cards ---------- */
.example-demo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: none;
  background: #fff;
}

/* Stat sources: quiet attribution under each figure */
.figures__source {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

/* ---------- Scrollytelling orchestration diagram ----------
   The old scrolly rig is back (scrollytelling.js) with today's elements;
   these token overrides pull its palette into the minimal system. */
.scrolly {
  --scrolly-ink: #ffffff;
  --scrolly-muted: #a3a3ac;
  --scrolly-line: rgba(255, 255, 255, 0.45);
  --scrolly-accent: #007bff;
  --scrolly-bg: #000000;
  --scrolly-panel: #141417;
  background: #000000; /* base paints a light gradient; this section is true black */
}
.scrolly::before { display: none; } /* base sheen + grid overlay: gone */
.scrolly__canvas { background-image: none; }
/* diagram only, at every width: the step cards stay in the DOM to drive
   the scroll length, but never render; the canvas centers instead */
.scrolly__grid { grid-template-columns: 1fr; }
.scrolly__steps {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.scrolly__canvas {
  max-width: 720px;
  margin: 0 auto;
}
.scrolly__icon {
  background: #141417;
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}
.scrolly__step { border-color: rgba(255, 255, 255, 0.1); }
.scrolly__step.is-active { border-color: rgba(255, 255, 255, 0.28); }
.scrolly__logo { border-color: transparent; }
.scrolly__intro {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.scrolly__intro h2 {
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #ffffff;
}
.scrolly__intro h2 em { font-style: normal; color: #007bff; }
.scrolly__kicker {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.14em !important;
  color: var(--ink-3) !important;
}
.scrolly__path--pen { --path-start: 0.34; }
/* labels and caption sit on paper chips so connector lines never run
   through text: the line visually stops at the text boundary */
.scrolly__icon-label {
  background: #000000;
  padding: 2px 6px;
  border-radius: 7px;
}
.scrolly__logo-caption {
  background: #000000;
  padding: 4px 10px;
  border-radius: 9px;
}
.scrolly__logo-caption {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: #a3a3ac;
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
}
/* phones: fewer competing elements and more air for the 11 nodes */
@media (max-width: 640px) {
  .scrolly__visual { top: 92px; }
  .scrolly__canvas {
    aspect-ratio: auto;
    height: min(74vh, 560px);
    min-height: 470px;
  }
  .scrolly__icon { width: 42px; height: 42px; border-radius: 14px; }
  .scrolly__icon svg { width: 20px; height: 20px; }
  .scrolly__icon-label { font-size: 10px; line-height: 1.25; }
  .scrolly__icon--label-top .scrolly__icon-label { max-width: 76px; }
  .scrolly__logo { width: 118px; padding: 12px 14px; }
  .scrolly__logo-caption { font-size: 0.75rem; margin-top: 0.65rem; }
  .scrolly__icon-label--side,
  .scrolly__icon-label--side-left {
    left: 50%;
    right: auto;
    top: calc(100% + 6px);
    transform: translateX(-50%);
    text-align: center;
    width: max-content;
    max-width: 110px;
  }
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.faq-item summary { color: var(--ink); }
.faq-item summary::after { color: var(--ink-3); }
.faq-item p { color: var(--ink-2); }
/* Chevron: keep "+" and rotate it to × when open (base swaps content to "–",
   which can't animate). [open] covers no-JS / reduced motion; .faq-anim is
   set by faq-accordion.js and keys the icon to .is-open so it turns in sync
   with the height animation in both directions. */
.faq-item[open] summary::after {
  content: "+";
  transform: translateY(-50%) rotate(45deg);
}
.faq-anim .faq-item summary::after {
  content: "+";
  transform: translateY(-50%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-anim .faq-item.is-open summary::after {
  transform: translateY(-50%) rotate(45deg);
}
/* ---------- Hero image treatment ---------- */
.hero-image {
  border-radius: var(--radius-card);
}

/* Homepage 3D hero: canvas fills the image slot; the fallback <img>
   underneath is removed by hero-scene.js once WebGL is running */
.hero-canvas {
  flex: 1 1 0;
  max-width: 50%;
  aspect-ratio: 5 / 4;
  position: relative;
  min-width: 0;
}
.hero-canvas canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.hero-canvas__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-card);
}
@media (max-width: 900px) {
  .hero-canvas { max-width: 100%; width: 100%; }
}

/* ---------- Section rhythm: more air ---------- */
.use-cases-section, .figures, .industries-section, .faq-section {
  padding-top: clamp(64px, 9vw, 128px);
  padding-bottom: clamp(64px, 9vw, 128px);
}

/* ---------- Use-case grid: five cards, one row ---------- */
@media (min-width: 1100px) {
  .use-case-container { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ============================================================
   Polish round 2
   ============================================================ */

/* ---------- Kill the graph-paper texture; flat quiet surfaces ---------- */
.example-demo-section::before,
.segment-demo-section::before { display: none; }
.example-demo-section,
.segment-demo-section { background: var(--paper-2); }

/* ---------- Chat demo: monochrome bubbles & controls ---------- */
.example-demo-bubble.is-user {
  background: var(--ink);
  color: #fff;
}
/* the global `p { color: var(--ink-2) }` targets the paragraph directly and
   beats inherited white, so re-assert it inside the black bubble */
.example-demo-bubble.is-user p,
.example-demo-bubble.is-user li { color: #fff; }
.example-demo-bubble.is-assistant {
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.example-demo-next {
  background: var(--ink);
  color: #fff;
}
.example-demo-next:hover { background: #2b2b31; }
.example-demo-chevron {
  background: #fff;
  border: 1px solid var(--line-strong);
}
.example-demo-label {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
}

/* ============================================================
   Orchestration schematic: mirrors the deck's platform slide,
   sources -> bus -> TwinWorks -> fan -> deliverables
   ============================================================ */
/* Stacked flow on small screens: sources, hub, deliverables — items spread
   horizontally as wrapping chips so the section stays short */
/* ---------- Contact page: form joins the design system ---------- */
.contact-card .inner-card {
  padding: clamp(2rem, 5vw, 3.5rem);
}
.contact-page h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.contact-form-sub-title p { color: var(--ink-2); }
.contact-form-note {
  font-size: 0.92rem;
  color: var(--ink-3) !important;
  margin-top: 0.4rem;
}
.contact-form label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}
.contact-form input,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--ink-3); }
.contact-form input:focus,
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10, 10, 11, 0.08);
}
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%238b8b94' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.contact-form .button {
  background-color: var(--ink) !important;
  color: #fff !important;
  border: 1px solid var(--ink) !important;
  border-radius: 999px !important;
  padding: 12px 30px;
  font-size: 15px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.contact-form .button:hover {
  background-color: #2b2b31 !important;
  transform: translateY(-1px);
}

/* ---------- Why TwinWorks ---------- */
.why-twinworks {
  padding: clamp(4.5rem, 8vw, 7.5rem) clamp(1.25rem, 5vw, 4rem);
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.why-twinworks__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.why-twinworks__header {
  width: 100%;
  max-width: 880px;
  margin: 0 auto clamp(2.25rem, 5vw, 4rem);
  text-align: center;
}

.why-twinworks__kicker {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.why-twinworks__header h2 {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(2.25rem, 4.6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.052em;
}

.why-twinworks__lead {
  max-width: 720px;
  margin: 1.25rem auto 0;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.why-twinworks__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(10, 10, 11, 0.06);
  scrollbar-width: thin;
}

.why-twinworks__table-wrap:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.why-twinworks__table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--ink-2);
}

.why-twinworks__table th,
.why-twinworks__table td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
  font-size: 0.9rem;
  line-height: 1.35;
}

.why-twinworks__table thead th {
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.035em;
}

.why-twinworks__table th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 30%;
  min-width: 245px;
  padding-left: 1.4rem;
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
  text-align: left;
}

.why-twinworks__table thead th:first-child {
  z-index: 2;
}

.why-twinworks__table tbody th {
  color: var(--ink);
  font-weight: 520;
}

.why-twinworks__table tbody tr:last-child th,
.why-twinworks__table tbody tr:last-child td {
  border-bottom: 0;
}

.why-twinworks__table .why-twinworks__twinworks-col {
  background: var(--ink);
  border-bottom-color: #29292f;
  color: #fff;
}

.why-twinworks__table thead .why-twinworks__twinworks-col {
  border-radius: 0 19px 0 0;
}

.why-twinworks__table-logo {
  display: block;
  width: clamp(6.5rem, 9vw, 8.25rem);
  height: auto;
  margin: 0 auto;
}

.why-twinworks__table tbody tr:last-child .why-twinworks__twinworks-col {
  border-radius: 0 0 19px 0;
}

.why-twinworks__check {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--ink);
}

.why-twinworks__twinworks-col .why-twinworks__check {
  color: #fff;
}

.why-twinworks__beta {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #b8b8c0;
}

.why-twinworks__pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.5vw, 1.15rem);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.why-twinworks__pillar {
  --pillar-accent: var(--accent);
  --pillar-accent-soft: #eaf3ff;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: clamp(1.15rem, 2vw, 1.5rem);
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(10, 10, 11, 0.045);
  transition: box-shadow 220ms ease;
}

.why-twinworks__pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.why-twinworks__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: var(--pillar-accent-soft);
  color: var(--pillar-accent);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.why-twinworks__pillar-label {
  color: var(--ink-3);
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.why-twinworks__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 132px;
  margin: 1rem 0 1.35rem;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 50%, var(--pillar-accent-soft), transparent 68%),
    #fafafb;
}

.why-twinworks__visual svg {
  width: 100%;
  height: 100%;
  padding: 0.55rem;
  transition: transform 300ms ease;
}

.why-twinworks__visual path,
.why-twinworks__visual rect,
.why-twinworks__visual circle {
  vector-effect: non-scaling-stroke;
}

.why-twinworks__shape {
  fill: #fff;
  stroke: #c8c8cf;
  stroke-width: 1.2;
}

.why-twinworks__wire {
  fill: none;
  stroke: #a9a9b2;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 3 4;
}

.why-twinworks__accent-shape {
  fill: var(--pillar-accent-soft);
  stroke: var(--pillar-accent);
  stroke-width: 1.4;
}

.why-twinworks__accent-line,
.why-twinworks__ink-line {
  fill: none;
  stroke: var(--pillar-accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-twinworks__ink-line {
  stroke: var(--ink-2);
  stroke-width: 1.2;
}

.why-twinworks__node {
  fill: var(--pillar-accent);
  stroke: #fff;
  stroke-width: 1.5;
}

.why-twinworks__pillar h3 {
  margin: 0 0 0.65rem;
  min-height: 2.45em;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.17;
  letter-spacing: -0.025em;
}

.why-twinworks__pillar p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-2);
}

@media (hover: hover) {
  .why-twinworks__pillar:hover {
    box-shadow: 0 20px 50px rgba(10, 10, 11, 0.09);
  }
  .why-twinworks__pillar:hover .why-twinworks__visual svg {
    transform: scale(1.035);
  }
}

@media (max-width: 900px) {
  .why-twinworks__pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .why-twinworks {
    padding-inline: 1rem;
  }
  .why-twinworks__header h2 {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }
  .why-twinworks__table-wrap {
    border-radius: 16px;
  }
  .why-twinworks__table th,
  .why-twinworks__table td {
    padding: 0.85rem 1rem;
  }
  .why-twinworks__pillars {
    grid-template-columns: 1fr;
  }
  .why-twinworks__pillar {
    border-radius: 16px;
  }
  .why-twinworks__pillar h3 {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-twinworks__pillar,
  .why-twinworks__visual svg {
    transition: none;
  }
}

.example-demo-metadata {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.3rem 0.65rem;
  margin: 0.7rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.example-demo-metadata dt,
.example-demo-metadata dd {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
}

.example-demo-metadata dt {
  color: var(--ink-3);
  font-weight: 500;
}

.example-demo-metadata dd {
  color: var(--ink);
  font-weight: 520;
}

@media (max-width: 480px) {
  .example-demo-metadata {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
  .example-demo-metadata dd + dt {
    margin-top: 0.45rem;
  }
}

/* ---------- Bilingual legal page ---------- */
.legal-page-body {
  background: var(--paper);
}

.legal-page {
  display: block;
  width: calc(100% - 2rem);
  max-width: 1080px;
  margin: clamp(2.5rem, 6vw, 5rem) auto clamp(4rem, 8vw, 7rem);
  padding: clamp(1.5rem, 5vw, 4rem);
  overflow: visible;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 65px rgba(10, 10, 11, 0.07);
  color: var(--ink);
  text-align: left;
}

.legal-page__header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  width: 100%;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.legal-page .legal-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-align: left;
}

.legal-language {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-2);
}

.legal-language__button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 550;
  line-height: 1;
  cursor: pointer;
}

.legal-language__button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 2px rgba(10, 10, 11, 0.18);
}

.legal-language__button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.legal-content {
  width: 100%;
}

.legal-content[hidden] {
  display: none;
}

.legal-page .legal-section {
  width: 100%;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.legal-page .legal-section:last-child {
  margin-bottom: 0;
}

.legal-page .legal-section h2 {
  margin: 0 0 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.legal-page .legal-paragraph,
.legal-page .legal-paragraph a {
  font-size: 0.92rem;
}

.legal-page .legal-paragraph {
  max-width: 900px;
  margin: 0 0 0.65rem;
  color: var(--ink-2);
  line-height: 1.7;
}

.legal-page .legal-paragraph strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 620px) {
  .legal-page {
    width: calc(100% - 1.5rem);
    margin-top: 2rem;
    padding: 1.35rem;
    border-radius: 18px;
  }
  .legal-page__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
  }
}

/* ---------- Merged demo + contact page ---------- */
.contact-merged-body {
  padding-top: 0;
  background: var(--paper);
}

.contact-page--merged {
  display: block;
  box-sizing: border-box;
  min-height: 100dvh;
  padding: clamp(6.25rem, 8vh, 7rem) clamp(1.25rem, 4vw, 3rem) clamp(1.25rem, 3vh, 2rem);
  background:
    radial-gradient(circle at 12% 16%, rgba(10, 10, 11, 0.045), transparent 30rem),
    var(--paper);
}

.contact-merged-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-demo-copy {
  position: sticky;
  top: 100px;
  min-width: 0;
  padding-top: 0;
}

.contact-demo-eyebrow {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.contact-demo-copy h1 {
  max-width: 720px;
  margin: 0.75rem 0 1rem;
  font-size: clamp(2.5rem, 5vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  color: var(--ink);
}

.contact-demo-intro {
  max-width: 680px;
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  line-height: 1.55;
  color: var(--ink-2);
}

.contact-demo-agenda {
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.contact-demo-agenda h2 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.contact-demo-agenda ul {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-demo-agenda li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  line-height: 1.4;
  color: var(--ink-2);
}

.contact-demo-agenda li::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 47%, var(--ink) 48% 55%, transparent 56%) 7px 9px / 7px 5px no-repeat,
    linear-gradient(45deg, transparent 43%, var(--ink) 44% 55%, transparent 56%) 4px 10px / 5px 4px no-repeat,
    #fff;
}

.contact-demo-note {
  max-width: 680px;
  margin: 1.5rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--ink);
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}

.contact-page--merged .contact-form-container {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0;
}

.contact-page--merged .contact-card {
  padding: 0;
}

.contact-page--merged .contact-card .inner-card {
  align-items: stretch;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(10, 10, 11, 0.08);
}

.contact-page--merged .contact-card h1,
.contact-page--merged .contact-form-sub-title {
  text-align: left;
}

.contact-page--merged .contact-form-sub-title {
  padding: 0;
}

.contact-page--merged .contact-form-sub-title p {
  text-align: left;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.contact-page--merged .contact-form-sub-title .contact-form-note {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
}

.contact-page--merged .contact-form {
  width: 100%;
  padding-top: 0.6rem;
  scroll-margin-top: 6.5rem;
}

.contact-page--merged .contact-form label {
  margin-bottom: 0.2rem;
  font-size: 0.82rem;
}

.contact-page--merged .contact-form input[type="text"],
.contact-page--merged .contact-form input[type="email"],
.contact-page--merged .contact-form textarea {
  margin-bottom: 0.7rem;
  padding-block: 9px;
}

.contact-page--merged .contact-form select {
  margin: 0.25rem 0 0.7rem;
  padding-block: 9px;
}

.contact-page--merged .contact-form textarea {
  height: 72px;
}

.contact-page--merged .contact-form .button {
  padding-block: 10px;
}

@media (min-width: 901px) and (max-height: 820px) {
  .contact-page--merged {
    padding-top: 5.5rem;
    padding-bottom: 0.75rem;
  }
  .contact-page--merged .contact-card .inner-card {
    padding: 1rem 1.5rem;
  }
  .contact-page--merged .contact-card h1 {
    margin-bottom: 0.25rem;
    font-size: 1.9rem;
  }
  .contact-page--merged .contact-form-sub-title p {
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    line-height: 1.35;
  }
  .contact-page--merged .contact-form-sub-title .contact-form-note {
    margin-bottom: 0.1rem;
    font-size: 0.74rem;
  }
  .contact-page--merged .contact-form {
    padding-top: 0.3rem;
  }
  .contact-page--merged .contact-form label {
    margin-bottom: 0.1rem;
    font-size: 0.75rem;
  }
  .contact-page--merged .contact-form input[type="text"],
  .contact-page--merged .contact-form input[type="email"],
  .contact-page--merged .contact-form textarea {
    margin-bottom: 0.4rem;
    padding-block: 6px;
  }
  .contact-page--merged .contact-form select {
    margin: 0.15rem 0 0.4rem;
    padding-block: 6px;
  }
  .contact-page--merged .contact-form textarea {
    height: 52px;
  }
  .contact-page--merged .contact-form .button {
    padding-block: 7px;
  }
  .contact-demo-copy h1 {
    margin-block: 0.6rem 0.75rem;
    font-size: clamp(2.4rem, 4vw, 3.5rem);
  }
  .contact-demo-intro {
    font-size: 0.95rem;
    line-height: 1.4;
  }
  .contact-demo-agenda {
    margin-top: 1rem;
  }
  .contact-demo-agenda h2 {
    margin-bottom: 0.5rem;
  }
  .contact-demo-agenda ul {
    gap: 0.45rem;
  }
  .contact-demo-agenda li {
    font-size: 0.9rem;
    line-height: 1.3;
  }
  .contact-demo-note {
    margin-top: 1rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
    line-height: 1.35;
  }
}

@media (min-width: 901px) {
  .contact-page--merged .contact-form {
    scroll-margin-top: 100dvh;
  }
}

@media (max-width: 900px) {
  .contact-page--merged { padding-top: 6.5rem; }
  .contact-merged-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-demo-copy {
    position: static;
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .contact-page--merged { padding-inline: 1rem; }
  .contact-demo-copy h1 { font-size: clamp(2.35rem, 12vw, 3.3rem); }
  .contact-page--merged .contact-card .inner-card {
    padding: 1.5rem;
    border-radius: 18px;
  }
}

/* ---------- About page ---------- */
/* The 3D butterfly scrollytelling keeps its black canvas: this page's one
   dark moment. The hero text reveals over it late in the scroll (315vh into
   the 400vh sticky section), then the light sections follow. */
.aboutVideo { background: #000; } /* black before WebGL paints, and if it never does */
/* the global 10lvh body padding would leave a white band above the black
   scrolly; let the canvas run to the very top, under the fixed navbar */
body.scrolly-page { padding-top: 0; }
.about-scrolly-overlay {
  position: absolute;
  top: 315vh;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: 820px;
  padding: 0 24px;
  text-align: center;
  /* soft halo so the text stays readable where the butterfly lands behind it */
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.6);
}
.about-scrolly-overlay h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #fff;
  margin: 0 0 1.2rem;
}
.about-scrolly-overlay .about-lead { color: rgba(255, 255, 255, 0.75); }
.scroll-prompt .scroll-arrow { color: #fff; }

.about-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin: 0 0 1.1rem;
}
.about-kicker--dark { color: rgba(255, 255, 255, 0.55); }
.about-lead {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 auto;
  max-width: 640px;
}

.about-grid {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 128px) 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.about-cell {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  padding: 2.2rem;
}
.about-statement {
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}

.about-story {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 128px) 24px 0;
}
.about-story p { color: var(--ink-2); line-height: 1.7; margin: 0 0 1.15rem; }
.about-story .about-kicker { margin-bottom: 1.5rem; }
.about-cta-row { margin-top: 2.2rem; }

.about-place {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 128px) 24px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.about-place__text h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.025em;
  margin: 0 0 1.1rem;
}
.about-place__text p:not(.about-kicker) {
  color: var(--ink-2);
  line-height: 1.7;
  margin: 0 0 1rem;
}
.about-place__map { margin: 0; }
.about-place__map img { width: 100%; height: auto; display: block; }
.about-place__map figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-3);
  text-align: center;
}
@media (max-width: 760px) {
  .about-place { grid-template-columns: 1fr; }
  .about-place__map { max-width: 320px; margin: 0 auto; }
}

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

/* ---------- Sitewide unification (audit pass) ---------- */
/* legacy blue raster icons render monochrome */
.split-feature__icon { filter: grayscale(1); opacity: 0.8; }

/* homepage use-case card hover: no legacy blue wash */
.use-case-icon::after { display: none !important; }
.use-case-item-content { box-shadow: none !important; background: #fff !important; }

/* the second FAQ implementation joins the system */
.faq { background: var(--paper); }
.faq__item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.faq__question { color: var(--ink); }
.faq__answer, .faq__answer p { color: var(--ink-2); }
.faq__header h2 { color: var(--ink); }
.faq__header p { color: var(--ink-2); }

/* article CTA band: flat ink, no navy gradient */
.value-prop-cta { background: #0a0a0b !important; border-radius: var(--radius-card); }

/* stragglers from the old button set */
.button, .notfound-button {
  background-color: var(--ink) !important;
  color: #fff !important;
  border: 1px solid var(--ink) !important;
  border-radius: 999px !important;
  padding: 12px 24px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}
.button-outline-arrow {
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 999px !important;
  padding: 11px 22px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}
.tab-button {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.tab-button.active, .tab-button[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.section-cta { background: var(--paper-2); border-radius: var(--radius-card); }

/* the old-era purple/cyan gradient block goes ink */
.future-state {
  background: #0a0a0b !important;
  border-radius: var(--radius-card);
}
.future-state .opportunity-text {
  color: #fff;
}

/* ============================================================
   Buyer-intent landing pages and resource pathways
   ============================================================ */

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10001;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  transform: translateY(-150%);
  transition: transform 0.15s ease;
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid rgba(0, 123, 255, 0.48);
  outline-offset: 3px;
}

.intent-page main,
.resource-detail-page main {
  overflow: clip;
}

.intent-breadcrumb {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0 20px;
  font-size: 0.86rem;
  color: var(--ink-3);
}

.intent-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intent-breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--line-strong);
}

.intent-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.82fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
}

.intent-eyebrow,
.resource-group__eyebrow,
.intent-section__eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.intent-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.6rem, 5.4vw, 4.9rem);
  letter-spacing: -0.052em;
  line-height: 0.98;
}

.intent-hero__lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.65;
}

.intent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.intent-microcopy {
  max-width: 650px;
  margin: 16px 0 0;
  color: var(--ink-3);
  font-size: 0.88rem;
}

.intent-hero__visual {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: clamp(20px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper-2);
}

.intent-hero__visual::before {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  content: "";
  pointer-events: none;
}

.intent-hero__visual img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

.intent-signal-bar {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}

.intent-signal-bar__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.intent-signal {
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  color: var(--ink-2);
  font-size: 0.95rem;
}

.intent-signal strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-weight: 650;
}

.intent-section {
  padding: clamp(72px, 9vw, 120px) 20px;
}

.intent-section--muted { background: var(--paper-2); }
.intent-section--ink { background: var(--ink); }

.intent-section__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.intent-section__header {
  max-width: 760px;
  margin-bottom: 42px;
}

.intent-section__header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.045em;
}

.intent-section__header > p:last-child {
  margin: 18px 0 0;
  font-size: 1.08rem;
  line-height: 1.7;
}

.intent-section--ink h2,
.intent-section--ink h3,
.intent-section--ink strong { color: #fff; }
.intent-section--ink p,
.intent-section--ink li { color: #c7c7cc; }
.intent-section--ink .intent-section__eyebrow { color: #71b5ff; }
.intent-section--ink .intent-card h3,
.intent-section--ink .intent-limit strong { color: var(--ink); }
.intent-section--ink .intent-card p,
.intent-section--ink .intent-limit { color: var(--ink-2); }

.intent-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.intent-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
}

.intent-card__number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #b9d9ff;
  border-radius: 50%;
  background: #edf6ff;
  color: #005ebf;
  font-size: 0.78rem;
  font-weight: 700;
}

.intent-card h3 {
  margin: 22px 0 10px;
  font-size: 1.18rem;
}

.intent-card p { margin: 0; }

.intent-card a {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
}

.intent-workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow;
}

.intent-workflow li {
  position: relative;
  min-width: 0;
  padding: 56px 20px 0 0;
  counter-increment: workflow;
}

.intent-workflow li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  content: counter(workflow, decimal-leading-zero);
  font-size: 0.7rem;
  font-weight: 700;
}

.intent-workflow li:not(:last-child)::after {
  position: absolute;
  top: 18px;
  left: 44px;
  right: 8px;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.intent-workflow strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.intent-workflow span {
  display: block;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.55;
}

.intent-two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 8vw, 100px);
  align-items: start;
}

.intent-two-column h2 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
}

.intent-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.intent-checklist li {
  position: relative;
  padding: 18px 0 18px 34px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.intent-checklist li::before {
  position: absolute;
  top: 20px;
  left: 0;
  color: var(--accent);
  content: "✓";
  font-weight: 800;
}

.intent-callout {
  padding: 28px;
  border: 1px solid #b9d9ff;
  border-radius: var(--radius-card);
  background: #f3f8ff;
}

.intent-callout h3 { margin-top: 0; }
.intent-callout p:last-child { margin-bottom: 0; }

.intent-limit {
  padding: 26px 28px;
  border-left: 4px solid var(--ink);
  border-radius: 0 16px 16px 0;
  background: var(--paper-2);
}

.intent-limit strong { color: var(--ink); }

.intent-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
}

.intent-table-wrap:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.intent-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
}

.intent-table th,
.intent-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.intent-table th {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.intent-table td { color: var(--ink-2); }
.intent-table tbody tr:last-child td { border-bottom: 0; }

.intent-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.intent-related a {
  display: flex;
  min-height: 150px;
  padding: 24px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  color: var(--ink) !important;
  font-size: 1.05rem;
  font-weight: 650;
  text-decoration: none !important;
}

.intent-related a span {
  color: var(--ink-3);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intent-related a::after {
  color: var(--accent);
  content: "Read more →";
  font-size: 0.88rem;
  font-weight: 600;
}

.intent-faq {
  width: min(900px, 100%);
  margin: 0 auto;
}

.intent-faq h2 {
  margin: 0 0 28px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.intent-faq details {
  border-top: 1px solid var(--line);
}

.intent-faq details:last-child { border-bottom: 1px solid var(--line); }

.intent-faq summary {
  position: relative;
  padding: 22px 42px 22px 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.03rem;
  font-weight: 650;
  list-style: none;
}

.intent-faq summary::-webkit-details-marker { display: none; }
.intent-faq summary::after {
  position: absolute;
  top: 20px;
  right: 0;
  color: var(--ink-3);
  content: "+";
  font-size: 1.45rem;
  font-weight: 400;
}
.intent-faq details[open] summary::after { content: "−"; }
.intent-faq details p { max-width: 760px; margin: 0 0 22px; }

.intent-final-cta {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 96px;
  padding: clamp(38px, 7vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
  border-radius: 28px;
  background: var(--ink);
}

.intent-final-cta h2 {
  max-width: 680px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.intent-final-cta p { max-width: 680px; margin: 16px 0 0; color: #c7c7cc; }
.intent-final-cta .intent-actions { margin: 0; }
.intent-final-cta .button-primary { background: #fff !important; color: var(--ink) !important; border-color: #fff !important; }
.intent-final-cta .button-secondary { color: #fff !important; border-color: #696970 !important; }

/* Problem-led resource directory */
.resource-directory {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 12px 0 100px;
}

.resource-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 72px;
  padding: 0;
  list-style: none;
}

.resource-jump-links a {
  display: block;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none !important;
}

.resource-group { margin-top: 78px; scroll-margin-top: 110px; }
.resource-group:first-of-type { margin-top: 0; }
.resource-group__header { max-width: 760px; margin-bottom: 26px; }
.resource-group__header h2 { margin: 0; font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.resource-group__header p:last-child { margin: 12px 0 0; }

.resource-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.resource-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
}

.resource-card:focus-within {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.resource-card .article-link:focus-visible {
  outline: 0;
}

.resource-card > a {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: var(--ink) !important;
  text-decoration: none !important;
}

.resource-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--paper-2);
}

.resource-card__body { padding: 22px; }
.resource-card__type {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.resource-card h3 { margin: 10px 0 9px; font-size: 1.18rem; }
.resource-card p { margin: 0; font-size: 0.94rem; }
.resource-card--text > a { justify-content: center; min-height: 230px; }

/* Keep the problem-led directory useful without making discovery feel endless. */
.resources-page .resources-hero { padding: 24px 16px 20px; }
.resources-page .resource-directory { padding-top: 0; padding-bottom: 72px; }
.resources-page .resource-jump-links { margin-bottom: 32px; }
.resources-page .resource-group { margin-top: 52px; }
.resources-page .resource-group:first-of-type { margin-top: 0; }
.resources-page .resource-group__header { margin-bottom: 18px; }

@media (min-width: 1100px) {
  .resources-page .resource-group__header {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 32px;
    align-items: end;
    max-width: none;
  }

  .resources-page .resource-group__header p:last-child { margin: 0; }
  .resources-page .resource-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .resources-page .resource-card .article-link { gap: 8px; padding: 12px; }
  .resources-page .resource-card .article-header { margin-bottom: 8px; }
  .resources-page .resource-card h3 { margin: 0; font-size: 1.05rem; }
  .resources-page .resource-card .article-description {
    font-size: 0.875rem;
    -webkit-line-clamp: 2;
  }
}

/* Source-safe comparison components */
.article-disclosure,
.comparison-evidence-note {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 0.9rem;
}

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

.comparison-fit-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
}

.comparison-fit-card h3 { margin-top: 0; }

.comparison-source-list {
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper-2);
}

.comparison-source-list h2,
.comparison-source-list h3 { margin-top: 0; }
.comparison-source-list li + li { margin-top: 8px; }

@media (max-width: 980px) {
  .intent-hero { grid-template-columns: 1fr; padding-top: 26px; }
  .intent-hero__visual { max-width: 680px; }
  .intent-card-grid, .resource-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intent-workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 18px; }
  .intent-workflow li:not(:last-child)::after { display: none; }
  .intent-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Keep the first conversion action inside compact laptop viewports. */
@media (min-width: 981px) and (max-height: 900px) {
  .intent-hero { padding-top: 32px; padding-bottom: 64px; }
  .intent-hero h1 { font-size: clamp(2.6rem, 4.9vw, 4.4rem); }
  .intent-hero__lead { margin-top: 20px; line-height: 1.55; }
  .intent-actions { margin-top: 22px; }
}

@media (max-width: 720px) {
  .intent-breadcrumb { padding-top: 92px; }
  .intent-hero { width: min(100% - 30px, 1180px); padding-bottom: 62px; }
  .intent-hero h1 { font-size: clamp(2.45rem, 13vw, 3.8rem); }
  .intent-actions { align-items: stretch; flex-direction: column; }
  .intent-actions a { width: 100%; justify-content: center; text-align: center; }
  .intent-signal-bar__inner { grid-template-columns: 1fr; }
  .intent-card-grid, .resource-card-grid, .intent-related, .comparison-fit-grid { grid-template-columns: 1fr; }
  .intent-workflow { grid-template-columns: 1fr; }
  .intent-two-column { grid-template-columns: 1fr; }
  .intent-final-cta { grid-template-columns: 1fr; margin-bottom: 64px; }
  .intent-final-cta .intent-actions { margin-top: 6px; }
  .intent-table-wrap::before {
    position: sticky;
    left: 0;
    display: block;
    width: max-content;
    padding: 6px 10px;
    color: var(--ink-2);
    content: "Scroll horizontally for all columns \2192";
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    pointer-events: none;
  }
  .resource-directory { width: min(100% - 30px, 1180px); }
  .resources-page .resource-card .article-link {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-areas:
      "image type"
      "image title"
      "image description";
    gap: 5px 12px;
    align-items: start;
    padding: 12px;
  }
  .resources-page .resource-card .article-type { grid-area: type; justify-self: start; }
  .resources-page .resource-card .article-image {
    grid-area: image;
    height: 100%;
    min-height: 112px;
    aspect-ratio: auto;
  }
  .resources-page .resource-card .article-header { grid-area: title; margin: 0; min-width: 0; }
  .resources-page .resource-card .article-body { grid-area: description; min-width: 0; }
  .resources-page .resource-card h3 { margin: 0; font-size: 0.98rem; }
  .resources-page .resource-card .article-description {
    font-size: 0.82rem;
    line-height: 1.4;
    -webkit-line-clamp: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link { transition: none; }
}
