/* =========================================================================
   Web Control — website stylesheet
   Built from the Web Control Brand and Marketing Guide (v1, 1 Oct 2026).
   Palette: Ink Black, Electric Violet, Core Orange, Off-White + supporting
   violet shades and warm neutrals. Typeface: Poppins (brand kit).
   ========================================================================= */

:root {
  /* Core palette */
  --ink: #0F0324;
  --violet: #7052F2;
  --orange: #FF5E40;
  --off: #FAFAFA;
  /* Supporting shades */
  --v600: #5C40C7;
  --v700: #4A2B99;
  --v900: #361A6B;
  --warm: #F7F5F0;
  --stone: #EDE8DE;
  --white: #FFFFFF;

  --grad: linear-gradient(135deg, #361A6B 0%, #7052F2 45%, #FF5E40 100%);
  --grad-soft: linear-gradient(135deg, rgba(54,26,107,.94) 0%, rgba(112,82,242,.86) 50%, rgba(255,94,64,.82) 100%);

  --text: var(--ink);
  --muted: rgba(15, 3, 36, .72);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15,3,36,.04), 0 8px 24px rgba(15,3,36,.06);
  --shadow-lg: 0 20px 50px rgba(15,3,36,.14);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;

  --font: "Poppins", "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--off);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--v700); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.015em; font-weight: 700; color: inherit; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.005em; }
h4 { font-size: 1rem; }
strong, b { font-weight: 600; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--warm { background: var(--warm); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: #fff; }
.section--grad { background: var(--grad); color: #fff; }
.section + .section--warm, .section--warm + .section { border-top: 1px solid var(--stone); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .grid-5 { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-l { margin-top: clamp(32px, 4vw, 56px); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 14px;
}
.on-dark .eyebrow, .section--ink .eyebrow, .section--grad .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: #fff; opacity: .9; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--muted); }
.on-dark .lead, .section--ink .lead, .section--grad .lead, .hero .lead, .page-hero .lead { color: rgba(255,255,255,.86); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: .35em; }
.muted { color: var(--muted); }
.text-violet { color: var(--violet); } .text-orange { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 600 .95rem/1 var(--font); letter-spacing: .01em;
  padding: 15px 24px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn .i { width: 1.1em; height: 1.1em; transition: transform .15s ease; }
.btn:hover .i--arrow { transform: translateX(3px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(255,94,64,.32); }
.btn--primary:hover { background: #F04E30; color: #fff; transform: translateY(-1px); }
.btn--violet { background: var(--violet); color: #fff; }
.btn--violet:hover { background: var(--v600); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--v900); color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 11px 18px; font-size: .875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--violet); }
.link-arrow:hover .i { transform: translateX(3px); }
.link-arrow .i { width: 1em; height: 1em; transition: transform .15s ease; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,250,.92);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--stone); box-shadow: 0 4px 20px rgba(15,3,36,.05); }
.topbar { background: var(--ink); color: rgba(255,255,255,.82); font-size: .8rem; }
.topbar .container { display: flex; justify-content: flex-end; gap: 22px; align-items: center; min-height: 36px; }
.topbar a { color: rgba(255,255,255,.88); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar .i { width: 14px; height: 14px; }
@media (max-width: 680px) { .topbar .hide-sm { display: none; } .topbar .container { justify-content: center; } }

.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 13px; border-radius: 999px; background: none; border: 0; cursor: pointer;
  font: 500 .93rem/1 var(--font); color: var(--ink); text-decoration: none;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { background: rgba(112,82,242,.08); color: var(--v700); }
.nav__link.is-active { color: var(--violet); }
.nav__link .i { width: 14px; height: 14px; transition: transform .2s ease; }
.nav__link[aria-expanded="true"] .i { transform: rotate(180deg); }
.nav__cta { margin-left: 10px; }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px);
  min-width: 300px; background: #fff; border: 1px solid var(--stone); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.dropdown--wide { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav__item.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.dropdown a:hover { background: var(--warm); }
.dropdown .dd-icon { width: 34px; height: 34px; border-radius: 50%; background: rgba(112,82,242,.1); color: var(--violet); display: grid; place-items: center; flex: none; }
.dropdown .dd-icon .i { width: 17px; height: 17px; }
.dropdown strong { display: block; font-size: .92rem; font-weight: 600; line-height: 1.3; }
.dropdown small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; margin-top: 2px; }

.nav__toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; border-radius: 8px; }
.nav__toggle .i { width: 28px; height: 28px; }

@media (max-width: 1120px) {
  .nav__toggle { display: inline-flex; }
  .nav__panel {
    position: fixed; inset: calc(var(--header-h) + 36px) 0 0 0; background: var(--off);
    overflow-y: auto; padding: 16px var(--gutter) 40px; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; visibility: hidden;
    border-top: 1px solid var(--stone);
  }
  .nav-open .nav__panel { opacity: 1; transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav__menu { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--stone); }
  .nav__link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.05rem; border-radius: 0; }
  .nav__link:hover, .nav__link[aria-expanded="true"] { background: none; }
  .dropdown, .dropdown--wide { position: static; transform: none; min-width: 0; box-shadow: none; border: 0; background: transparent; padding: 0 0 12px; display: none; opacity: 1; visibility: visible; }
  .nav__item.is-open .dropdown { display: block; transform: none; }
  .nav__cta { margin: 20px 0 0; }
  .nav__cta .btn { width: 100%; }
}

/* ---------- Dot grid motif ---------- */
.dots {
  position: absolute; width: 140px; height: 60px; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.45) 1.2px, transparent 1.8px);
  background-size: 14px 14px;
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--grad);
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
}
.hero::after { /* soft vignette for depth */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 85% 40%, rgba(255,255,255,.10), transparent 60%);
}
.hero .dots { top: 36px; right: var(--gutter); }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); margin-bottom: .3em; }
.hero .lead { max-width: 620px; }
.hero__quote { border-left: 4px solid var(--orange); padding: 2px 0 2px 18px; font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.45; margin: 28px 0 34px; max-width: 600px; }
.hero__mark { position: relative; aspect-ratio: 1; max-width: 420px; margin-left: auto; width: 100%; }
.hero__mark img { width: 100%; height: 100%; filter: drop-shadow(0 0 40px rgba(112,82,242,.75)) drop-shadow(0 0 110px rgba(255,255,255,.18)); animation: float 9s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(2deg); } }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } .hero__mark { max-width: 220px; margin: 0; order: -1; } }

.hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid rgba(255,255,255,.3); }
.hero-stats b { display: block; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1; font-weight: 700; margin-bottom: 8px; }
.hero-stats span { font-size: .9rem; color: rgba(255,255,255,.84); line-height: 1.45; display: block; }
@media (max-width: 760px) { .hero-stats { grid-template-columns: 1fr 1fr; } }

.frost { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 18px 20px; backdrop-filter: blur(6px); }

/* ---------- Inner page hero (banded, photo + gradient overlay) ---------- */
.page-hero { position: relative; color: #fff; background: var(--grad); overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: .35; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); z-index: 1; }
.page-hero.no-photo::before { display: none; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .dots { top: 28px; right: var(--gutter); z-index: 2; }
.page-hero h1 { max-width: 860px; font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.page-hero .lead { max-width: 720px; margin-bottom: 28px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.breadcrumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.45); color: #fff; }
.chip--solid { background: var(--violet); border-color: var(--violet); color: #fff; text-transform: none; letter-spacing: 0; font-size: .88rem; }
.chip--light { background: #fff; border-color: var(--stone); color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .88rem; }

/* ---------- Cards ---------- */
.card {
  position: relative; background: #fff; border: 1px solid var(--stone); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px); box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card--warm { background: var(--warm); box-shadow: none; }
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.card--link { text-decoration: none; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(112,82,242,.35); color: var(--ink); }
.card--link .link-arrow { margin-top: auto; padding-top: 14px; }
.card--top-violet { border-top: 4px solid var(--violet); }
.card--top-orange { border-top: 4px solid var(--orange); }
.card__media { margin: calc(-1 * clamp(22px, 2.6vw, 30px)); margin-bottom: 22px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 7 / 5; background: var(--warm); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card--link:hover .card__media img { transform: scale(1.04); }

.icon-circle { width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; margin-bottom: 18px; flex: none; }
.icon-circle .i { width: 22px; height: 22px; }
.icon-circle--violet { background: var(--violet); }
.icon-circle--ink { background: var(--ink); }
.num-circle { width: 40px; height: 40px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; flex: none; }
.num-circle--orange { background: var(--orange); }

/* Service tiles (home) */
.service-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.service-card p { font-size: .95rem; }

/* ---------- Ink callout ---------- */
.callout {
  position: relative; background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: clamp(26px, 4vw, 44px) clamp(26px, 4vw, 48px); overflow: hidden;
}
.callout::before { content: ""; position: absolute; left: 0; top: clamp(22px, 3vw, 34px); bottom: clamp(22px, 3vw, 34px); width: 4px; background: var(--orange); border-radius: 0 3px 3px 0; }
.callout h2, .callout h3 { color: #fff; }
.callout p { color: rgba(255,255,255,.74); }
.callout .big { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 700; line-height: 1.25; color: #fff; margin: 0; letter-spacing: -.01em; }

/* ---------- Stat / value tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tile { border-radius: 12px; padding: 22px 20px; color: #fff; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.tile b { font-size: 2rem; line-height: 1; font-weight: 700; }
.tile span { font-weight: 600; line-height: 1.35; }
.tile--violet { background: var(--violet); } .tile--ink { background: var(--ink); } .tile--orange { background: var(--orange); } .tile--v700 { background: var(--v700); } .tile--v900 { background: var(--v900); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } .tiles .tile:last-child { grid-column: span 2; } }

.value-card .in-practice { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--stone); font-size: .9rem; }
.value-card .in-practice small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); margin-bottom: 4px; }

/* ---------- Lists ---------- */
.dot-list { list-style: none; padding: 0; margin: 0 0 1em; }
.dot-list li { position: relative; padding-left: 22px; margin-bottom: .55em; }
.dot-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.on-dark .dot-list li, .section--ink .dot-list li { color: rgba(255,255,255,.88); }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 36px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.cols-2 { columns: 2; column-gap: 40px; } .cols-2 li { break-inside: avoid; }
@media (max-width: 680px) { .cols-2 { columns: 1; } }

/* ---------- Steps / process ---------- */
.steps { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 14px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--stone); border-top: 4px solid var(--violet); border-radius: 12px; padding: 20px 18px; }
.step:nth-child(n+4) { border-top-color: var(--orange); }
.step small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .16em; color: var(--violet); margin-bottom: 6px; }
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: .9rem; color: var(--muted); margin: 0; }
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Media ---------- */
.media-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--warm); position: relative; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--accent::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--grad); }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__btn { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: var(--ink); color: #fff; }
.video__btn img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s ease, transform .4s ease; }
.video__btn:hover img { opacity: .95; transform: scale(1.03); }
.video__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(15,3,36,.75)); }
.video__play { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(255,94,64,.45); transition: transform .2s ease; }
.video__btn:hover .video__play { transform: translate(-50%, -50%) scale(1.08); }
.video__play .i { width: 28px; height: 28px; fill: #fff; stroke: none; margin-left: 4px; }
.video__title { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 14px; text-align: left; font: 600 .95rem/1.35 var(--font); }
.video-caption { font-weight: 600; margin: 12px 0 0; font-size: .98rem; }

/* ---------- Logo wall ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.logo-wall__item { background: #fff; border: 1px solid var(--stone); border-radius: 12px; aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 18px; }
.logo-wall__item img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .78; transition: filter .2s ease, opacity .2s ease; }
.logo-wall__item:hover img { filter: none; opacity: 1; }
a.logo-wall__item { text-decoration: none; }
.logo-wall--color img { filter: none; opacity: 1; }

/* ---------- Awards ---------- */
.awards { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.awards img { height: 116px; width: auto; background: #fff; border-radius: 12px; padding: 10px; }
.awards--sm img { height: 88px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.quotes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .quotes--3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 760px) { .quotes, .quotes--3 { grid-template-columns: 1fr; } }
.quote { position: relative; background: #fff; border: 1px solid var(--stone); border-radius: var(--radius); padding: 30px 28px 26px; display: flex; flex-direction: column; margin: 0; }
.quote:nth-child(4n+2), .quote:nth-child(4n+3) { background: var(--warm); }
.quote__mark { width: 40px; height: 40px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.quote__mark .i { width: 18px; height: 18px; fill: #fff; stroke: none; }
.quote__topic { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; }
.quote blockquote { margin: 0 0 20px; font-size: .97rem; line-height: 1.7; color: rgba(15,3,36,.86); }
.quote blockquote p:last-child { margin-bottom: 0; }
.quote figcaption { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--stone); font-size: .9rem; line-height: 1.4; }
.quote figcaption strong { display: block; font-weight: 600; }
.quote figcaption span { color: var(--muted); }
.quote.is-collapsible blockquote { max-height: 15.5em; overflow: hidden; position: relative; }
.quote.is-collapsible blockquote::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4em; background: linear-gradient(transparent, #fff); }
.quote:nth-child(4n+2).is-collapsible blockquote::after, .quote:nth-child(4n+3).is-collapsible blockquote::after { background: linear-gradient(transparent, var(--warm)); }
.quote.is-collapsible.is-expanded blockquote { max-height: none; }
.quote.is-expanded blockquote::after { display: none; }
.quote__more { align-self: flex-start; background: none; border: 0; padding: 0; margin: -8px 0 16px; font: 600 .88rem var(--font); color: var(--violet); cursor: pointer; }

/* ---------- Accordion ---------- */
.accordion { display: grid; gap: 12px; }
.accordion details { background: #fff; border: 1px solid var(--stone); border-radius: 12px; overflow: hidden; }
.accordion details[open] { box-shadow: var(--shadow); border-color: rgba(112,82,242,.3); }
.accordion summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--warm) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237052F2' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s ease; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 22px 20px; color: var(--muted); }
.accordion .acc-body p:last-child, .accordion .acc-body ul:last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--stone); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th { background: var(--ink); color: #fff; text-align: left; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 14px 18px; }
td { padding: 16px 18px; border-top: 1px solid var(--stone); vertical-align: top; }
tbody tr:nth-child(odd) td { background: var(--warm); }
td:first-child { font-weight: 600; }

/* SLA cards */
.sla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .sla { grid-template-columns: 1fr; } }
.sla__card { border-radius: var(--radius); padding: 28px; color: #fff; }
.sla__card:nth-child(1) { background: var(--orange); } .sla__card:nth-child(2) { background: var(--violet); } .sla__card:nth-child(3) { background: var(--ink); }
.sla__card small { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .9; }
.sla__card h3 { font-size: 1.5rem; margin: 6px 0 18px; }
.sla__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.28); }
.sla__row span { opacity: .88; font-size: .92rem; }
.sla__row b { font-size: 1.5rem; font-weight: 700; }

/* ---------- Product cards ---------- */
.product-card .card__media { aspect-ratio: 7 / 5; }
.product-card h3 { font-size: 1.25rem; }

/* ---------- Doc list (datasheets / whitepapers) ---------- */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
@media (max-width: 760px) { .doc-list { grid-template-columns: 1fr; } }
.doc-list a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--stone); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .15s ease, box-shadow .15s ease; }
.doc-list a:hover { border-color: rgba(112,82,242,.4); box-shadow: var(--shadow); }
.doc-list .icon-circle { width: 40px; height: 40px; margin: 0; }
.doc-list .icon-circle .i { width: 18px; height: 18px; }
.doc-list a > span { flex: 1; line-height: 1.35; }
.doc-list a > .i { color: var(--violet); }

/* ---------- Prose (legal pages / transcripts) ---------- */
.prose { font-size: 1rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.prose ul { list-style: none; padding: 0; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: .5em; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.prose p, .prose li { color: rgba(15,3,36,.86); }
.transcript p { margin-bottom: 1.1em; }
.transcript { max-height: 520px; overflow-y: auto; padding: 26px 28px; background: #fff; border: 1px solid var(--stone); border-radius: var(--radius); }

/* ---------- Contact ---------- */
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card .icon-circle { margin: 0; }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p, .contact-card address { margin: 0; font-style: normal; color: var(--muted); }
.contact-card a { font-weight: 600; font-size: 1.08rem; text-decoration: none; }

.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: 400 1rem/1.5 var(--font); color: var(--ink); background: #fff; border: 1.5px solid var(--stone); border-radius: 10px; padding: 13px 15px; transition: border-color .15s ease, box-shadow .15s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(112,82,242,.15); }
.field textarea { min-height: 160px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); }
.form-status { font-weight: 600; color: var(--v700); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--grad); color: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; }
.cta-band .dots { top: 22px; right: 26px; }
.cta-band h2 { margin-bottom: .3em; font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.cta-band p { color: rgba(255,255,255,.86); margin: 0; max-width: 620px; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.74); padding: clamp(56px, 7vw, 88px) 0 28px; font-size: .93rem; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { width: 220px; margin-bottom: 18px; }
.footer__brand p { max-width: 330px; }
.site-footer h3 { color: #fff; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer address { font-style: normal; line-height: 1.6; margin-bottom: 14px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.socials a:hover { background: var(--violet); border-color: var(--violet); text-decoration: none; }
.socials .i { width: 18px; height: 18px; }
.site-footer .socials .footer__linkedin { width: fit-content; max-width: 100%; height: auto; min-height: 48px; padding: 12px 16px; display: inline-flex; gap: 10px; border-radius: 8px; background: var(--violet); border: 1px solid var(--violet); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.4; }
.site-footer .socials .footer__linkedin .i { width: 23px; height: 23px; flex-shrink: 0; }
.site-footer .socials .footer__linkedin:hover { background: #5C40C7; border-color: #fff; color: #fff; }
.site-footer .socials .footer__linkedin:focus-visible { outline: 3px solid #FF5E40; outline-offset: 4px; }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: .82rem; color: rgba(255,255,255,.6); }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__tagline { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; color: rgba(255,255,255,.8); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .video { display: none !important; }
  body { background: #fff; }
  .page-hero, .hero { background: none !important; color: var(--ink) !important; padding: 0 0 24px; }
  .page-hero::before, .page-hero__bg { display: none; }
}

/* Late additions */
.tiles--3 { grid-template-columns: repeat(3, 1fr); }
.tiles--3 .tile { min-height: 120px; }
@media (max-width: 900px) { .tiles--3 { grid-template-columns: repeat(3, 1fr); } .tiles--3 .tile:last-child { grid-column: auto; } }
@media (max-width: 480px) { .tiles--3 { grid-template-columns: 1fr; } .tiles--3 .tile { min-height: 0; } }
@media (max-width: 900px) { .hero__mark { max-width: 140px; } }

/* ---------- Resource library (data sheets / white papers) ---------- */
.doc-list a > .icon-circle { flex: none; }
.res-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.res-nav { position: sticky; top: 130px; display: grid; gap: 6px; }
.res-nav h2 { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--violet); margin: 0 0 8px; }
.res-nav a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.res-nav a:hover { background: var(--warm); }
.res-nav a span { font-size: .78rem; font-weight: 700; color: var(--violet); background: rgba(112,82,242,.1); border-radius: 999px; padding: 2px 9px; }
.res-nav .callout { margin-top: 18px; padding: 24px 22px 24px 26px; }
.res-nav .callout h3 { font-size: 1.05rem; margin-bottom: 6px; }
.res-nav .callout p { font-size: .9rem; margin-bottom: 14px; }
.res-group + .res-group { margin-top: clamp(40px, 5vw, 64px); }
.res-group__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--stone); }
.res-group__head h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 0; }
.res-group__head p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.res-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--stone); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.res-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(112,82,242,.35); color: var(--ink); }
.res-card__cover { position: relative; height: 112px; background: var(--grad); overflow: hidden; }
.res-card__cover::before { content: ""; position: absolute; right: 14px; top: 14px; width: 70px; height: 28px; background-image: radial-gradient(rgba(255,255,255,.45) 1.2px, transparent 1.8px); background-size: 10px 10px; }
.res-card__doc { position: absolute; left: 20px; bottom: -18px; width: 62px; height: 80px; background: #fff; border-radius: 6px 16px 6px 6px; box-shadow: 0 8px 20px rgba(15,3,36,.25); display: grid; place-items: center; color: var(--violet); }
.res-card__doc .i { width: 26px; height: 26px; }
.res-card--ink .res-card__cover { background: linear-gradient(135deg, #0F0324, #361A6B); }
.res-card--violet .res-card__cover { background: linear-gradient(135deg, #4A2B99, #7052F2); }
.res-card--orange .res-card__cover { background: linear-gradient(135deg, #7052F2, #FF5E40); }
.res-card__body { padding: 28px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.res-card__type { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; }
.res-card__body h3 { font-size: 1.02rem; line-height: 1.35; margin: 0 0 16px; }
.res-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--stone); font-size: .82rem; color: var(--muted); }
.res-card__foot b { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-weight: 600; font-size: .88rem; }
.res-card__foot .i { width: 16px; height: 16px; transition: transform .15s ease; }
.res-card:hover .res-card__foot .i { transform: translateY(2px); }
.res-note { margin-top: clamp(32px, 4vw, 48px); padding: 18px 20px; background: var(--warm); border: 1px solid var(--stone); border-radius: 12px; font-size: .9rem; color: var(--muted); display: flex; gap: 12px; align-items: flex-start; }
.res-note .i { color: var(--violet); margin-top: 2px; }
@media (max-width: 960px) { .res-layout { grid-template-columns: 1fr; } .res-nav { position: static; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } .res-nav h2, .res-nav .callout { grid-column: 1 / -1; } }

/* ---------- Restructure: mega menu ---------- */
.nav { position: relative; }
.nav__item--mega { position: static; }
.dropdown--mega {
  left: 0; right: 0; transform: translateY(6px); min-width: 0;
  display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); gap: 8px 28px; padding: 26px 28px;
}
.nav__item--mega.is-open .dropdown--mega { transform: none; }
.mega__intro { background: var(--warm); border-radius: var(--radius-sm); padding: 20px; align-self: start; }
.mega__intro .eyebrow { margin-bottom: 8px; }
.mega__intro p { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.mega__col h3 { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); margin: 4px 0 8px; }
.mega__col h3 + a { margin-top: 0; }
.mega__col a + h3 { margin-top: 18px; }
.dropdown--mega .mega__col a { display: block; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; font-size: .92rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.dropdown--mega .mega__col a:hover { background: var(--warm); color: var(--v700); }
.nav__link { white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 1121px) { .nav__link { padding: 10px 9px; font-size: .88rem; } }
@media (max-width: 1120px) {
  .dropdown--mega, .nav__item--mega.is-open .dropdown--mega { display: none; padding: 0 0 12px; }
  .nav__item--mega.is-open .dropdown--mega { display: block; }
  .mega__intro { display: none; }
  .mega__col h3 { margin-top: 14px; }
}

/* ---------- Small print: site in development ---------- */
.dev-note { font-size: .7rem; line-height: 1.4; color: rgba(15,3,36,.45); margin: 0 0 18px; padding-top: 10px; }

/* ---------- Product status badges ---------- */
.status-badge { display: inline-block; align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(112,82,242,.1); color: var(--v700); margin-bottom: 10px; }
.status-badge.is-dev { background: rgba(255,94,64,.12); color: #C2381E; }
.page-hero .status-badge { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- Footer with five columns ---------- */
.footer__grid--5 { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr; }
@media (max-width: 1100px) { .footer__grid--5 { grid-template-columns: 1fr 1fr 1fr; } .footer__grid--5 .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer__grid--5 { grid-template-columns: 1fr; } }

/* ---------- Home: three service routes ---------- */
.routes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 960px) { .routes { grid-template-columns: 1fr; } }
.route { position: relative; overflow: hidden; display: flex; flex-direction: column; border-radius: calc(var(--radius) + 4px); padding: clamp(26px, 3vw, 36px); color: #fff; text-decoration: none; min-height: 100%; transition: transform .18s ease, box-shadow .18s ease; }
.route:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: #fff; }
.route--netsuite { background: linear-gradient(150deg, #4A2B99, #7052F2); }
.route--legacy { background: linear-gradient(150deg, #0F0324, #361A6B); }
.route--modern { background: linear-gradient(150deg, #7052F2, #FF5E40); }
.route small { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.route h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin: 10px 0 10px; }
.route p { color: rgba(255,255,255,.86); }
.route ul { list-style: none; padding: 0; margin: 6px 0 22px; display: grid; gap: 8px; }
.route li { font-size: .92rem; color: rgba(255,255,255,.9); padding-left: 18px; position: relative; }
.route li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .8; }
.route .link-arrow { color: #fff; margin-top: auto; }

/* Approved logo: square globe-W tile in the home hero */
.hero__mark img { border-radius: 28px; filter: none; box-shadow: 0 30px 80px rgba(15,3,36,.45), 0 0 0 1px rgba(255,255,255,.12); }

/* =====================================================================
   Pillar themes – one layout, three distinct business areas.
   NetSuite = violet, Legacy ERP Support = deep ink-violet on stone,
   Modernisation & Integration = violet-to-orange. Products = full brand
   gradient. Tokens are set on any [data-pillar] element so cards, menus
   and footer links carry the colour of the area they belong to.
   ===================================================================== */
:root {
  --p: var(--violet); --p-text: var(--violet); --p-icon: var(--orange);
  --p-tint: var(--warm); --p-signal: var(--orange); --p-hero: var(--grad);
}
[data-pillar="netsuite"], .pillar-bar__link--netsuite, .pillar-tag--netsuite {
  --p: #7052F2; --p-text: #5C40C7; --p-icon: #7052F2; --p-tint: #F2EFFE; --p-signal: #A897FF;
  --p-hero: linear-gradient(150deg, #361A6B 0%, #4A2B99 42%, #7052F2 100%);
}
[data-pillar="legacy"], .pillar-bar__link--legacy, .pillar-tag--legacy {
  --p: #361A6B; --p-text: #4A2B99; --p-icon: #361A6B; --p-tint: #F3EFE6; --p-signal: #EDE8DE;
  --p-hero: linear-gradient(150deg, #0F0324 0%, #1F0C45 48%, #361A6B 100%);
}
[data-pillar="modern"], .pillar-bar__link--modern, .pillar-tag--modern {
  --p: #FF5E40; --p-text: #C2381E; --p-icon: #FF5E40; --p-tint: #FFF2EE; --p-signal: #FF5E40;
  --p-hero: linear-gradient(135deg, #4A2B99 0%, #7052F2 42%, #FF5E40 100%);
}
[data-pillar="products"], .pillar-tag--products {
  --p: #5C40C7; --p-text: #4A2B99; --p-icon: #5C40C7; --p-tint: #F3F1F8; --p-signal: #FF5E40;
  --p-hero: linear-gradient(135deg, #0F0324 0%, #361A6B 45%, #7052F2 80%, #FF5E40 135%);
}

/* Shared components pick up the pillar colour */
.eyebrow { color: var(--p-text); }
.link-arrow { color: var(--p-text); }
.icon-circle { background: var(--p-icon); }
.icon-circle--violet { background: var(--violet); }
.icon-circle--ink { background: var(--ink); }
.check-list li::before { background-color: var(--p-icon); }
.card--top-violet { border-top-color: var(--p); }
.callout::before { background: var(--p-signal); }
body[data-pillar="netsuite"] .section--warm,
body[data-pillar="legacy"] .section--warm,
body[data-pillar="modern"] .section--warm,
body[data-pillar="products"] .section--warm { background: var(--p-tint); }
body[data-pillar="netsuite"] .cta-band,
body[data-pillar="legacy"] .cta-band,
body[data-pillar="modern"] .cta-band,
body[data-pillar="products"] .cta-band { background: var(--p-hero); }
body[data-pillar="legacy"] .cta-band { box-shadow: inset 0 0 0 1px rgba(237,232,222,.18); }

/* Pillar heroes: own gradient, own texture, own signal line */
body[data-pillar="netsuite"] .page-hero, body[data-pillar="legacy"] .page-hero,
body[data-pillar="modern"] .page-hero, body[data-pillar="products"] .page-hero {
  background: var(--p-hero); border-bottom: 4px solid var(--p-signal);
}
body[data-pillar="netsuite"] .page-hero::before, body[data-pillar="legacy"] .page-hero::before,
body[data-pillar="modern"] .page-hero::before, body[data-pillar="products"] .page-hero::before { background: var(--p-hero); opacity: .9; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
body[data-pillar="netsuite"] .page-hero::after {
  background: radial-gradient(circle at 88% 20%, rgba(168,151,255,.45) 0, rgba(168,151,255,0) 38%),
              radial-gradient(circle at 70% 120%, rgba(112,82,242,.55) 0, rgba(112,82,242,0) 45%);
}
body[data-pillar="legacy"] .page-hero::after {
  background-image: linear-gradient(rgba(237,232,222,.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(237,232,222,.07) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%); mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}
body[data-pillar="modern"] .page-hero::after {
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 2px, transparent 2px 26px);
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 100%); mask-image: linear-gradient(90deg, transparent 40%, #000 100%);
}
body[data-pillar="products"] .page-hero::after {
  background: radial-gradient(circle at 85% 30%, rgba(255,94,64,.35) 0, rgba(255,94,64,0) 40%);
}
body[data-pillar="netsuite"] .page-hero .eyebrow, body[data-pillar="legacy"] .page-hero .eyebrow,
body[data-pillar="modern"] .page-hero .eyebrow, body[data-pillar="products"] .page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); opacity: 1;
}
body[data-pillar="netsuite"] .page-hero .eyebrow::before, body[data-pillar="legacy"] .page-hero .eyebrow::before,
body[data-pillar="modern"] .page-hero .eyebrow::before, body[data-pillar="products"] .page-hero .eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--p-signal); flex: none;
}

/* Pillar switcher under the header */
.pillar-bar { background: #fff; border-bottom: 1px solid var(--stone); }
.pillar-bar .container { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); overflow-x: auto; scrollbar-width: none; }
.pillar-bar .container::-webkit-scrollbar { display: none; }
.pillar-bar__label { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.pillar-bar__link { display: inline-flex; align-items: center; gap: 8px; padding: 13px 2px 10px; border-bottom: 3px solid transparent;
  font-size: .88rem; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .15s ease, border-color .15s ease; }
.pillar-bar__link .i { width: 16px; height: 16px; color: var(--p); }
.pillar-bar__link:hover { color: var(--ink); border-bottom-color: color-mix(in srgb, var(--p) 35%, transparent); }
.pillar-bar__link[aria-current] { color: var(--ink); border-bottom-color: var(--p); }
@media (max-width: 600px) { .pillar-bar__label { display: none; } .pillar-bar__link { font-size: .8rem; } }

/* Cards that link into a pillar carry its colour; cross-pillar cards are labelled */
.card--pillar[data-pillar="netsuite"], .card--pillar[data-pillar="legacy"],
.card--pillar[data-pillar="modern"], .card--pillar[data-pillar="products"] { border-top: 3px solid var(--p); }
.card--pillar:hover { border-color: color-mix(in srgb, var(--p) 40%, transparent); border-top-color: var(--p); }
.pillar-tag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-bottom: 8px;
  font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--p-text); }
.pillar-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--p); }

/* Colour-coded main menu, mega menus and footer */
.nav__item[data-pillar] > .nav__link::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--p); flex: none; margin-right: 2px; }
.nav__item[data-pillar] > .nav__link.is-active { color: var(--p-text); }
.nav__item[data-pillar] .mega__intro { background: var(--p-tint); box-shadow: inset 0 4px 0 var(--p); }
.nav__item[data-pillar] .dropdown--mega a:hover { color: var(--p-text); }
.footer__pillar { display: flex; align-items: center; gap: 8px; }
.footer__pillar::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--p-signal); flex: none; }

/* Cookie consent banner */
.cookie-banner { position: fixed; left: var(--gutter); bottom: var(--gutter); z-index: 300; max-width: 460px;
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.12); display: grid; gap: 14px; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .9rem; line-height: 1.55; color: rgba(255,255,255,.82); }
.cookie-banner strong { color: #fff; display: block; margin-bottom: 4px; font-size: 1rem; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 600px) { .cookie-banner { right: var(--gutter); max-width: none; } .cookie-banner__actions .btn { flex: 1 1 auto; justify-content: center; } }

/* NetSuite online form embed (Contact / Request a demo) */
.nsform { margin-top: 8px; border: 0; }
.nsform iframe { display: block; width: 100%; min-height: 900px; border: 0; background: #fff; border-radius: var(--radius-sm); }

/* 404 page */
.nf-links { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 18px 0 0; }
.nf-links a { font-weight: 600; }
.footer__legal { margin: 18px 0 0; font-size: .72rem; line-height: 1.6; color: rgba(255,255,255,.5); }

/* =====================================================================
   Tighter vertical rhythm – shorter pages, same content.
   ===================================================================== */
.section { padding: clamp(44px, 5.6vw, 76px) 0; }
.section--tight { padding: clamp(28px, 3.6vw, 44px) 0; }
.page-hero { padding: clamp(44px, 5.6vw, 76px) 0 clamp(40px, 4.6vw, 60px); }
.page-hero h1 { margin-bottom: .4em; }
.page-hero .lead { margin-bottom: 22px; }
.section-head { margin-bottom: clamp(22px, 2.8vw, 36px); }
.mt-l { margin-top: clamp(22px, 2.8vw, 36px); }
.split { gap: clamp(24px, 4vw, 56px); }
.card { padding: clamp(20px, 2.2vw, 26px); }
.icon-circle { margin-bottom: 14px; }
.check-list { gap: 9px; }
.quote { padding: 24px 24px 22px; }
.callout { padding: clamp(22px, 3vw, 34px) clamp(22px, 3.4vw, 40px); }
.cta-band { padding: clamp(28px, 4.4vw, 52px); }
/* Two plain sections in a row share a background: don't double the gap between them */
.section:not(.section--warm):not(.section--white):not(.section--ink):not(.section--grad):not(.section--tight)
  + .section:not(.section--warm):not(.section--white):not(.section--ink):not(.section--grad):not(.section--tight),
.section--white + .section--white, .section--warm + .section--warm { padding-top: 0; }
/* The closing CTA band sits closer to the content above it */
.section + .section--tight { padding-top: 0; }
.section--warm + .section--tight, .section--white + .section--tight, .section--ink + .section--tight { padding-top: clamp(28px, 3.6vw, 44px); }

@media (max-width: 680px) {
  .section { padding: 40px 0; }
  .page-hero { padding: 36px 0 34px; }
  .page-hero h1 { font-size: 2rem; }
  .lead { font-size: 1.02rem; }
  h2 { font-size: 1.6rem; }
  .card { padding: 18px; }
  /* Link cards: icon sits beside the title instead of above it */
  .card--link { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: start; }
  .card--link > * { grid-column: 2; }
  .card--link > .icon-circle { grid-column: 1; grid-row: 1 / span 3; width: 40px; height: 40px; margin: 0; }
  .card--link > .icon-circle .i { width: 18px; height: 18px; }
  .card--link .link-arrow { padding-top: 8px; }
  .grid { gap: 14px; }
  .quote { padding: 20px 18px 18px; }
}
.quote.is-collapsible blockquote { max-height: 10.2em; }
.quote blockquote { margin-bottom: 16px; }
.quote__more { margin: -4px 0 14px; color: var(--p-text); }

/* =====================================================================
   Expandable panels – long sections fold away, content stays on the page.
   <details class="panel" [open]><summary>…</summary><div class="panel__body">…</div></details>
   ===================================================================== */
.panels { display: grid; gap: 12px; }
.panel { background: #fff; border: 1px solid var(--stone); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease; }
.panel[open] { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--p) 30%, var(--stone)); }
.panel > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 22px; }
.panel > summary::-webkit-details-marker { display: none; }
.panel > summary::after { content: ""; margin-left: auto; width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--p-tint, var(--warm)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F0324' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s ease; }
.panel[open] > summary::after { transform: rotate(45deg); }
.panel > summary:hover .panel__title strong, .panel > summary:hover h2, .panel > summary:hover h3 { color: var(--p-text); }
.panel > summary:focus-visible { outline: 3px solid var(--p); outline-offset: -3px; }
.panel__title { display: grid; gap: 2px; min-width: 0; }
.panel__title .eyebrow { margin: 0; font-size: .68rem; }
.panel__title strong { font-size: 1.08rem; line-height: 1.3; }
.panel > summary h2, .panel > summary h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.panel > summary p { margin: 2px 0 0; font-size: .9rem; color: var(--muted); }
.panel__meta { flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  background: var(--warm); border-radius: 999px; padding: 5px 10px; }
.panel__body { padding: 4px 22px 24px; border-top: 1px solid var(--stone); padding-top: 20px; }
.panel__body > :last-child { margin-bottom: 0; }
.panel + .panel { margin-top: 0; }
.panels-tools { display: flex; justify-content: flex-end; margin: -8px 0 10px; }
.panels-tools button { background: none; border: 0; padding: 4px 0; font: 600 .85rem var(--font); color: var(--p-text); cursor: pointer; }
.section--ink .panel, .on-dark .panel { color: var(--ink); }
@media (max-width: 680px) { .panel > summary { padding: 15px 16px; } .panel__body { padding: 16px 16px 20px; } .panel__meta { display: none; } }
.panel .reveal { opacity: 1; transform: none; }
.res-group.panel + .res-group.panel { margin-top: 12px; }
.res-group.panel .res-grid { margin-top: 0; }
.legal-panels .panel > summary h2 { font-size: 1.08rem; }
.legal-panels .panel__body { font-size: .97rem; }

/* Form success page (shown inside the NetSuite form iframe) */
body.bare { background: #fff; }
.form-success { max-width: 560px; margin: 0 auto; padding: clamp(40px, 8vw, 72px) 24px; text-align: center; }
.form-success__tick { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); color: #fff; display: inline-grid; place-items: center; margin-bottom: 20px; }
.form-success__tick .i { width: 30px; height: 30px; }
.form-success h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin-bottom: .2em; }
.form-success .lead { color: var(--ink); font-weight: 600; margin-bottom: 14px; }
.form-success p { color: var(--muted); }
.form-success__logo { display: block; width: 180px; height: auto; margin: 26px auto 0; opacity: .9; }

/* Pages built around an embedded NetSuite form: narrower info column, form at its designed width */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 740px); gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.form-layout__aside { display: grid; gap: 16px; }
.form-layout__aside .card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.form-layout__aside .card p { font-size: .92rem; }
@media (min-width: 1025px) { .form-layout__aside { position: sticky; top: 110px; } }
@media (max-width: 1024px) { .form-layout { grid-template-columns: 1fr; } .form-layout__form { order: -1; } }
.nsform { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 0; background: #fff; scroll-margin-top: 100px; }
.nsform iframe { display: block; width: 100%; height: var(--h, 1200px); min-height: 0; border: 0; border-radius: 0; }
@media (max-width: 700px) { .nsform iframe { height: var(--hm, 1500px); } }

/* Keep logos and badges in proportion */
.card > img { align-self: flex-start; max-width: 100%; object-fit: contain; }
.awards img { object-fit: contain; }

/* =====================================================================
   Long-form articles (Resources › Articles & Insights)
   ===================================================================== */
.art-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: .88rem; color: rgba(255,255,255,.82); }
.art-meta span { display: inline-flex; align-items: center; gap: 6px; }
.art-meta .i { width: 16px; height: 16px; }
.art-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.art-toc { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; padding-right: 6px; }
.art-toc h2 { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.art-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: toc; }
.art-toc a { display: grid; grid-template-columns: 26px 1fr; gap: 4px; padding: 6px 8px; border-radius: 8px; font-size: .84rem; line-height: 1.35; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; }
.art-toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-weight: 700; font-size: .72rem; color: var(--p-text); padding-top: 2px; }
.art-toc a:hover { background: var(--p-tint); color: var(--ink); }
.art-toc a.is-current { background: var(--p-tint); color: var(--ink); border-left-color: var(--p); font-weight: 600; }
.art-toc details > summary { display: none; }
.article { max-width: 760px; font-size: 1.06rem; }
.article p, .article li { color: rgba(15,3,36,.86); line-height: 1.75; }
.article > section { scroll-margin-top: 100px; padding-top: 8px; }
.article > section + section { margin-top: clamp(40px, 5vw, 60px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--stone); }
.article h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin: 0 0 .7em; }
.art-num { flex: none; font-size: .9rem; font-weight: 700; color: var(--p-text); background: var(--p-tint); border-radius: 8px; padding: 4px 9px; letter-spacing: .04em; transform: translateY(-3px); }
.article h3 { font-size: 1.12rem; margin: 1.6em 0 .5em; }
.article ul { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 6px; }
.article ul li { position: relative; padding-left: 24px; }
.article ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--p); }
.article ul.art-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.art-lede { font-size: clamp(1.12rem, 1.8vw, 1.28rem); color: var(--ink) !important; line-height: 1.6 !important; }
.art-q { font-weight: 600; color: var(--ink) !important; border-left: 3px solid var(--p); padding-left: 14px; margin: .4em 0; }
.art-qs { display: grid; gap: 8px; margin: 1em 0 1.4em; }
.art-key { position: relative; margin: 1.6em 0; padding: 22px 26px 22px 30px; border-radius: var(--radius); background: var(--ink); color: #fff; font-size: 1.12rem; font-weight: 600; line-height: 1.5; }
.art-key::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 3px 3px 0; background: var(--p-signal); }
.art-key p { color: #fff !important; margin: 0; line-height: 1.5 !important; }
.art-key small { display: block; margin-bottom: 6px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.65); font-weight: 700; }
.art-example { margin: 1.4em 0; padding: 18px 22px; border-radius: var(--radius); background: var(--p-tint); border: 1px dashed color-mix(in srgb, var(--p) 40%, transparent); }
.art-example p { margin: 0; }
.art-example p + p { margin-top: .6em; }
.art-example strong { color: var(--ink); }
/* Flow diagram */
.art-flow { list-style: none; padding: 0; margin: 1.4em 0; display: grid; gap: 0; counter-reset: flow; }
.art-flow li { position: relative; padding: 12px 16px 12px 58px; background: #fff; border: 1px solid var(--stone); border-radius: 12px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.art-flow li::before { counter-increment: flow; content: counter(flow); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--p); color: #fff; font-size: .8rem; display: grid; place-items: center; }
.art-flow li + li { margin-top: 22px; }
.art-flow li + li::after { content: ""; position: absolute; left: 28px; top: -23px; width: 2px; height: 22px; background: color-mix(in srgb, var(--p) 45%, transparent); }
.art-flow--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.art-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 1.2em 0; padding: 0; list-style: none; }
.art-chain li { padding: 8px 14px; border-radius: 999px; background: var(--p-tint); color: var(--ink); font-weight: 600; font-size: .92rem; }
.art-chain li + li::before { content: "→"; margin-right: 8px; color: var(--p-text); font-weight: 700; }
/* Equation */
.art-eq { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; margin: 1.4em 0; text-align: center; }
.art-eq div { padding: 16px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--stone); font-weight: 700; color: var(--ink); line-height: 1.35; }
.art-eq div:last-child { background: var(--p); border-color: var(--p); color: #fff; }
.art-eq span { font-size: 1.4rem; font-weight: 700; color: var(--p-text); }
/* Cost breakdown */
.art-cost { margin: 1.4em 0; border-radius: var(--radius); border: 1px solid var(--stone); background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.art-cost__head { padding: 14px 20px; background: var(--p-tint); font-weight: 700; color: var(--ink); font-size: .95rem; }
.art-cost dl { margin: 0; padding: 8px 20px 14px; display: grid; grid-template-columns: 1fr auto; }
.art-cost dt, .art-cost dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--stone); }
.art-cost dd { text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.art-cost dd.up { color: #C2381E; }
.art-cost .total { border-bottom: 0; font-weight: 700; color: var(--ink); font-size: 1.08rem; padding-top: 12px; }
/* Model cards */
.art-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 1.2em 0 1.4em; }
.art-cards .card { padding: 20px; }
.art-cards .card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.art-cards .card p { font-size: .95rem; margin: 0 0 .6em; line-height: 1.6; }
.art-cards .card ul { margin: 4px 0 0; gap: 3px; }
.art-cards .card li { font-size: .92rem; line-height: 1.5; }
.art-cards .card--wide { grid-column: 1 / -1; }
/* Numbered questions */
.art-numbered { list-style: none; padding: 0; margin: 1.2em 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; counter-reset: q; }
.art-numbered li { position: relative; padding: 10px 12px 10px 48px; border-radius: 10px; background: #fff; border: 1px solid var(--stone); font-size: .95rem; line-height: 1.45; }
.art-numbered li::before { counter-increment: q; content: counter(q); position: absolute; left: 12px; top: 9px; width: 26px; height: 26px; border-radius: 50%; background: var(--p-tint); color: var(--p-text); font-weight: 700; font-size: .8rem; display: grid; place-items: center; }
/* Scorecard */
.art-score { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.art-score th, .art-score td { padding: 11px 12px; border-bottom: 1px solid var(--stone); text-align: left; vertical-align: top; line-height: 1.45; }
.art-score thead th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.art-score th[scope=row] { font-weight: 700; color: var(--ink); white-space: nowrap; }
.art-score .g, .art-score .a, .art-score .r { position: relative; padding-left: 28px; }
.art-score .g::before, .art-score .a::before, .art-score .r::before { content: ""; position: absolute; left: 10px; top: 16px; width: 10px; height: 10px; border-radius: 50%; }
.art-score .g::before { background: #2E9E6A; } .art-score .a::before { background: #E8A317; } .art-score .r::before { background: #D9432A; }
.art-score thead .g { color: #1F7A50; } .art-score thead .a { color: #9A6A00; } .art-score thead .r { color: #B8341E; }
.art-score thead th::before { top: 13px; }
.art-roles { list-style: none; padding: 0; margin: 1.2em 0; display: grid; gap: 8px; }
.art-roles li { padding: 12px 16px; border-radius: 10px; background: var(--p-tint); }
.art-roles li::before { display: none; }
.art-roles strong { color: var(--ink); }
.art-close { font-size: 1.2rem; font-weight: 700; color: var(--ink) !important; }
@media (max-width: 1024px) {
  .art-layout { grid-template-columns: 1fr; }
  .art-toc { position: static; max-height: none; overflow: visible; padding: 0; }
  .art-toc details { border: 1px solid var(--stone); border-radius: var(--radius); background: #fff; }
  .art-toc details > summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 700; }
  .art-toc details > summary::-webkit-details-marker { display: none; }
  .art-toc details > summary::after { content: "+"; font-size: 1.3rem; color: var(--p-text); }
  .art-toc details[open] > summary::after { content: "–"; }
  .art-toc details > nav { padding: 0 10px 12px; }
  .art-toc h2 { display: none; }
}
@media (max-width: 680px) {
  .article { font-size: 1rem; }
  .art-cards, .art-numbered, .art-flow--wide, .article ul.art-cols { grid-template-columns: 1fr; }
  .art-eq { grid-template-columns: 1fr; } .art-eq span { line-height: 1; }
  .art-score th[scope=row] { white-space: normal; }
}

/* Featured article banner */
.feature-article { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
  padding: clamp(24px, 3.6vw, 40px); border-radius: calc(var(--radius) + 4px); color: #fff; text-decoration: none;
  background: linear-gradient(150deg, #361A6B 0%, #4A2B99 42%, #7052F2 100%); box-shadow: var(--shadow); }
.feature-article .eyebrow { color: #fff; opacity: .85; margin-bottom: 8px; }
.feature-article h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.2; margin: 0 0 8px; color: #fff; }
.feature-article p { margin: 0; color: rgba(255,255,255,.85); max-width: 640px; }
.feature-article .btn { white-space: nowrap; }
.feature-article:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.feature-article { transition: transform .18s ease, box-shadow .18s ease; }
@media (max-width: 760px) { .feature-article { grid-template-columns: 1fr; } }
.art-layout > * { min-width: 0; }
@media (max-width: 1024px) { .art-layout { grid-template-columns: minmax(0, 1fr); } }
.art-score thead th { background: var(--p-tint); color: var(--ink); }
.art-score tbody th { background: #fff; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .92rem; padding: 11px 12px; }
.art-score tbody tr:nth-child(even) th { background: var(--warm); }
.art-flow--wide { grid-auto-flow: column; grid-template-rows: repeat(7, auto); align-items: start; }
.art-flow--wide li:nth-child(8) { margin-top: 0; }
.art-flow--wide li:nth-child(8)::after { display: none; }
@media (max-width: 680px) {
  .art-flow--wide { grid-auto-flow: row; grid-template-rows: none; }
  .art-flow--wide li:nth-child(8) { margin-top: 22px; }
  .art-flow--wide li:nth-child(8)::after { display: block; }
}
.art-toc { top: 132px; max-height: calc(100vh - 150px); }
.article > section { scroll-margin-top: 132px; }

/* ---- New Web Control logo (brand pack v1, Oct 2026): header sizing ---- */
.brand img { height: 38px; width: auto; }
@media (max-width: 1560px) and (min-width: 1121px) {
  .brand img { height: 33px; }
  .nav__menu { gap: 0; }
  .nav__link { padding: 10px 8px; font-size: .86rem; }
  .nav__item[data-pillar] > .nav__link::before { width: 6px; height: 6px; }
  .nav__cta { margin-left: 4px; }
  .nav__cta .btn { padding: 10px 14px; }
}
@media (max-width: 1240px) and (min-width: 1121px) {
  .nav__link { padding: 10px 6px; font-size: .82rem; gap: 3px; }
  .nav__cta .btn .i { display: none; }
}
@media (max-width: 1120px) { .brand img { height: 32px; } }

/* ---- Headings: keep words whole when the browser text size is set larger than default ---- */
/* Overrides "overflow-wrap: anywhere" (mvc.css): only break a word if it cannot fit a line on its own. */
body h1, body h2, body h3 { overflow-wrap: break-word; }
/* Home hero: size the headline to its column so "transformation." always fits on one line. */
.hero__grid > div:first-child { container-type: inline-size; min-width: 0; }
.hero h1 { font-size: min(clamp(2.6rem, 6.4vw, 5rem), 11.5cqi); }
/* Card headings: shrink a little in narrow cards so long single words (e.g. "Maintainability") stay whole. */
.grid > .card { container-type: inline-size; }
:where(.grid > .card) h3 { font-size: min(1.2rem, 11cqi); }

/* ---- Chip links: no underline, and a hover that stays readable ---- */
a.chip { text-decoration: none; transition: background .2s, border-color .2s; }
a.chip:hover { color: #fff; background: rgba(255,255,255,.14); border-color: #fff; }
a.chip--light:hover { color: var(--ink); background: var(--warm); border-color: var(--violet); }
