/* ==========================================================================
   Robbins & Myers, Inc. — site stylesheet
   Plain CSS, no build step. Colors and type are defined once in :root.
   ========================================================================== */

:root {
  --navy-950: #050e1f;
  --navy-900: #0a1a33;
  --navy-800: #102544;
  --navy-700: #1a3560;
  --navy-600: #284a7e;
  --steel-500: #6f86a6;
  --steel-300: #b9c4d2;
  --steel-200: #d7dee7;
  --steel-100: #eef1f5;
  --charcoal-900: #1d2128;
  --charcoal-700: #3a404a;
  --charcoal-500: #5f6672;
  --white: #ffffff;
  --paper: #f6f8fb;
  --line: #e2e7ee;
  --metal: linear-gradient(100deg, #8d99a8 0%, #e9edf2 38%, #a7b2bf 62%, #f4f6f9 100%);
  --ok: #1d6b45;
  --ok-bg: #e8f4ee;
  --err: #a1262b;
  --err-bg: #fbeceb;
  --tbc: #8a5a00;
  --tbc-bg: #fff4dc;

  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Sitka Heading", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(10, 26, 51, .06), 0 2px 8px rgba(10, 26, 51, .05);
  --shadow-md: 0 10px 30px rgba(10, 26, 51, .10), 0 2px 6px rgba(10, 26, 51, .06);
  --shadow-lg: 0 24px 60px rgba(5, 14, 31, .22);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.32rem; line-height: 1.3; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid #7fa6e0; outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--navy-700); color: var(--white); }

main { overflow-x: clip; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  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; z-index: 200;
  background: var(--white); color: var(--navy-900); padding: 10px 16px;
  border-radius: var(--radius); box-shadow: var(--shadow-md); font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Draft banner (toggled in js/main.js) ---------- */
.draft-banner {
  background: var(--tbc-bg);
  color: #5c3c00;
  font-size: .86rem;
  line-height: 1.45;
  border-bottom: 1px solid #f0d9a6;
}
.draft-banner .container { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.draft-banner button {
  flex: none; border: 1px solid #d9b866; background: transparent; color: inherit;
  border-radius: 4px; padding: 3px 10px; font: inherit; cursor: pointer;
}
.draft-banner button:hover { background: #fbe7b8; }

/* "To confirm" placeholder marker — remove each one as details are verified */
.tbc {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--tbc);
  background: var(--tbc-bg);
  border: 1px dashed #d9a640;
  border-radius: 3px;
  padding: 4px 6px;
  margin-left: 6px;
  white-space: nowrap;
}
.ph { color: var(--tbc); font-style: italic; }
.on-dark .ph { color: #f3cf86; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed-position mobile menu inside the header box. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(10, 26, 51, .06); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-900); }
.brand:hover { color: var(--navy-900); }
.brand-mark {
  position: relative;
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  background: var(--navy-900);
  border-radius: 4px;
  color: #e9edf2;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.brand-mark::after {
  content: ""; position: absolute; left: 7px; right: 7px; bottom: 7px; height: 1.5px;
  background: var(--metal); border-radius: 1px;
}
.brand-mark span { transform: translateY(-2px); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.28rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.brand-sub {
  margin-top: 6px;
  font-size: .64rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--steel-500);
}
.on-dark .brand, .site-footer .brand { color: var(--white); }
.site-footer .brand-mark { background: var(--white); color: var(--navy-900); }
.site-footer .brand-sub { color: var(--steel-300); }

.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-list a {
  position: relative; display: block;
  padding: 10px 12px;
  font-size: .92rem; font-weight: 500; letter-spacing: .01em;
  color: var(--charcoal-700); text-decoration: none;
  border-radius: 4px;
  transition: color .2s;
}
.nav-list a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--navy-700); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-list a:hover { color: var(--navy-900); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--navy-900); font-weight: 600; }
.nav-list .nav-cta a {
  margin-left: 8px; padding: 10px 18px;
  background: var(--navy-900); color: var(--white); font-weight: 600;
}
.nav-list .nav-cta a::after { display: none; }
.nav-list .nav-cta a:hover, .nav-list .nav-cta a[aria-current="page"] { background: var(--navy-700); color: var(--white); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line); background: var(--white); border-radius: var(--radius);
  cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 11px; width: 20px; height: 2px; background: var(--navy-900);
  content: ""; transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; left: 0; right: 0; top: var(--nav-top, var(--header-h)); bottom: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 16px var(--gutter) 40px;
    overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { padding: 16px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-list a::after { display: none; }
  .nav-list .nav-cta a { margin: 24px 0 0; text-align: center; border-radius: var(--radius); border: 0; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 1.05rem; letter-spacing: .04em; }
  .brand-mark { width: 40px; height: 40px; font-size: 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px;
  font: 600 .95rem/1.2 var(--font-body); letter-spacing: .02em;
  text-decoration: none; border-radius: 4px; border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--white); color: var(--navy-900); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.btn-primary:hover { background: var(--steel-100); color: var(--navy-900); transform: translateY(-2px); }
.btn-outline { border-color: rgba(255, 255, 255, .55); color: var(--white); background: rgba(255, 255, 255, .04); }
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, .12); color: var(--white); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: var(--steel-300); color: var(--navy-900); background: var(--white); }
.btn-ghost:hover { border-color: var(--navy-900); color: var(--navy-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Eyebrows, rules, section scaffolding ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--navy-600);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: linear-gradient(90deg, var(--navy-600), var(--steel-300)); border-radius: 1px; }
.on-dark .eyebrow { color: var(--steel-300); }
.on-dark .eyebrow::before { background: var(--metal); }

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-sm { padding: clamp(56px, 7vw, 88px) 0; }
.section-alt { background: var(--paper); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--charcoal-500); line-height: 1.7; }
.on-dark { color: var(--steel-200); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark .lead { color: var(--steel-200); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 820px);
  display: flex; align-items: center;
  background: var(--navy-950);
  padding: 120px 0 140px;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 65% center; animation: kenburns 24s ease-out both; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 14, 31, .96) 0%, rgba(8, 22, 46, .88) 38%, rgba(10, 26, 51, .45) 75%, rgba(10, 26, 51, .25) 100%),
    linear-gradient(0deg, rgba(5, 14, 31, .55) 0%, rgba(5, 14, 31, 0) 40%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 60%);
}
.hero-content { max-width: 720px; }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 em { font-style: normal; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--steel-200); max-width: 600px; margin-bottom: 36px; }
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: rgba(5, 14, 31, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-foot .container { display: grid; grid-template-columns: repeat(3, 1fr); }
.hero-foot .container > * {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 0; color: var(--steel-200); text-decoration: none; font-size: .92rem;
}
.hero-foot a:hover { color: var(--white); }
.hero-foot svg { width: 20px; height: 20px; color: var(--steel-300); flex: none; }
.hero-foot > .container > * + * { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .12); }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }

@media (max-width: 760px) {
  .hero { padding: 88px 0 72px; min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(5, 14, 31, .82) 0%, rgba(8, 22, 46, .9) 100%); }
  .hero-foot { position: static; margin-top: 48px; background: transparent; backdrop-filter: none; border-top: 0; }
  .hero-foot .container { grid-template-columns: 1fr; }
  .hero-foot > .container > * + * { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .hero-foot .container > * { padding: 14px 0; }
  .hero { flex-direction: column; align-items: stretch; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy-900);
  padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 7vw, 88px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(111, 134, 166, .28), transparent 60%),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .6;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(270deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(270deg, #000, transparent 70%);
}
.page-hero.has-image::before {
  background: linear-gradient(90deg, rgba(5, 14, 31, .95) 0%, rgba(10, 26, 51, .82) 50%, rgba(10, 26, 51, .55) 100%);
}
.page-hero .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 820px; }
.page-hero .lead { color: var(--steel-200); max-width: 680px; margin: 0; }
.crumbs { display: flex; gap: 10px; list-style: none; margin-bottom: 22px; font-size: .84rem; color: var(--steel-300); }
.crumbs a { color: var(--steel-200); text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--steel-500); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy-700), var(--steel-300));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--steel-200); }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--charcoal-500); font-size: .98rem; margin-bottom: 0; }
.card .card-list { list-style: none; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.card .card-list li { position: relative; padding-left: 20px; font-size: .93rem; color: var(--charcoal-700); margin-bottom: 8px; }
.card .card-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--steel-500); }
.card-num {
  position: absolute; right: 24px; top: 20px;
  font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--steel-100);
  transition: color .35s;
}
.card:hover .card-num { color: var(--steel-200); }

.icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 22px;
  border-radius: 6px;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
  color: #dfe5ec;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 18px rgba(10, 26, 51, .16);
  transition: transform .35s var(--ease);
}
.icon svg { width: 26px; height: 26px; }
.card:hover .icon { transform: rotate(-4deg) scale(1.05); }
.icon-light { background: var(--steel-100); color: var(--navy-800); box-shadow: inset 0 0 0 1px var(--line); }

.card-placeholder { border-style: dashed; border-color: #e3c78a; background: #fffcf4; box-shadow: none; }
.card-placeholder .icon { background: var(--tbc-bg); color: var(--tbc); box-shadow: inset 0 0 0 1px #e8cf96; }

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.media-frame { position: relative; }
.media-frame img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.media-frame::before {
  content: ""; position: absolute; z-index: -1; left: -18px; top: -18px; width: 46%; height: 52%;
  border-left: 2px solid var(--steel-300); border-top: 2px solid var(--steel-300);
}
.media-frame::after {
  content: ""; position: absolute; z-index: -1; right: -18px; bottom: -18px; width: 60%; height: 60%;
  background: var(--steel-100); border-radius: var(--radius);
}
.media-frame { isolation: isolate; }
.media-caption {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(10, 26, 51, .88); color: var(--white);
  padding: 14px 18px; border-radius: 4px; font-size: .9rem;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.media-caption svg { width: 20px; height: 20px; flex: none; color: var(--steel-300); }

.check-list { list-style: none; display: grid; gap: 14px; margin: 26px 0 32px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--navy-600); }
.check-list strong { color: var(--navy-900); display: block; }

/* ---------- Industries tiles ---------- */
.tile {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white);
  transition: border-color .3s, transform .35s var(--ease), box-shadow .35s;
}
.tile:hover { border-color: var(--steel-300); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tile .icon { width: 48px; height: 48px; margin-bottom: 8px; }
.tile .icon svg { width: 22px; height: 22px; }
.tile h3 { font-size: 1.15rem; margin: 0; }
.tile p { margin: 0; font-size: .93rem; color: var(--charcoal-500); }

/* ---------- Values / pillars on dark ---------- */
.band-dark {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy-900);
  color: var(--steel-200);
}
.band-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(800px 380px at 10% 0%, rgba(111, 134, 166, .22), transparent 60%),
              radial-gradient(700px 360px at 100% 100%, rgba(40, 74, 126, .45), transparent 60%);
}
.pillar { padding: 32px 28px; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); background: rgba(255, 255, 255, .03); transition: background .3s, border-color .3s, transform .35s var(--ease); }
.pillar:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); transform: translateY(-3px); }
.pillar h3 { color: var(--white); font-size: 1.2rem; }
.pillar p { margin: 0; font-size: .96rem; color: var(--steel-300); }
.pillar .icon { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: var(--steel-200); }
.steps li { position: relative; padding: 0 24px 0 0; }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: relative; display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 24px;
  border-radius: 50%; background: var(--white); border: 1px solid var(--steel-300);
  font-family: var(--font-display); font-size: 1.1rem; color: var(--navy-900);
  transition: background .3s, color .3s, border-color .3s;
}
.steps li:hover::before { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.steps h3 { font-size: 1.15rem; }
.steps p { font-size: .95rem; color: var(--charcoal-500); margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .steps::before { display: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(64px, 8vw, 104px) 0;
  background: var(--navy-950);
}
.cta-band .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 14, 31, .97) 10%, rgba(10, 26, 51, .78) 100%); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-inner h2 { color: var(--white); margin-bottom: 12px; }
.cta-inner p { color: var(--steel-200); margin: 0; max-width: 560px; }
.cta-contacts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; }
.cta-contacts a { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 500; }
.cta-contacts a:hover { text-decoration: underline; }
.cta-contacts svg { width: 18px; height: 18px; color: var(--steel-300); }

/* ---------- Prose (privacy etc.) ---------- */
.prose-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: .9rem; }
.toc p { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--steel-500); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; color: var(--charcoal-500); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--navy-900); border-left-color: var(--navy-700); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; padding-top: .6em; }
.prose h2:first-child { margin-top: 0; padding-top: 0; }
.prose ul { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose .note { background: var(--paper); border-left: 3px solid var(--steel-500); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; font-size: .95rem; }
@media (max-width: 900px) { .prose-layout { grid-template-columns: 1fr; } .toc { position: static; } }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 920px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--navy-900); color: var(--steel-200);
  border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
  position: relative; overflow: hidden; isolation: isolate;
}
.contact-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 260px at 100% 0%, rgba(111, 134, 166, .3), transparent 60%); }
.contact-card h2 { color: var(--white); font-size: 1.8rem; }
.contact-method { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.contact-method:last-of-type { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.contact-method .icon { width: 46px; height: 46px; margin: 0; background: rgba(255, 255, 255, .08); }
.contact-method .icon svg { width: 20px; height: 20px; }
.contact-method small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-300); margin-bottom: 4px; }
.contact-method a { color: var(--white); font-size: 1.12rem; font-weight: 500; text-decoration: none; word-break: break-word; }
.contact-method a:hover { text-decoration: underline; }
.contact-card .fine { font-size: .88rem; color: var(--steel-300); margin: 22px 0 0; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-md); }
.form-card h2 { font-size: 1.8rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--navy-900); margin-bottom: 8px; }
.field label .opt { font-weight: 400; color: var(--charcoal-500); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px;
  font: 400 1rem/1.4 var(--font-body); color: var(--charcoal-900);
  background: var(--paper); border: 1px solid #cfd7e2; border-radius: 4px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--steel-500); }
.field input:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(40, 74, 126, .18); }
.field.has-error input, .field.has-error textarea { border-color: var(--err); background: #fffafa; }
.field .error { display: none; margin-top: 6px; font-size: .85rem; color: var(--err); }
.field.has-error .error { display: block; }
.field .hint { margin-top: 6px; font-size: .82rem; color: var(--charcoal-500); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.form-foot p { margin: 0; font-size: .84rem; color: var(--charcoal-500); max-width: 360px; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: var(--white); border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.is-sending .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert { display: none; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 4px; margin-bottom: 22px; font-size: .95rem; }
.alert.is-visible { display: flex; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert p { margin: 0; }
.alert strong { display: block; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #b9dcc8; }
.alert-err { background: var(--err-bg); color: var(--err); border: 1px solid #efc2c0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--steel-300); padding: 80px 0 0; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--font-body); font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: var(--steel-300); text-decoration: none; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; }
.footer-about p { margin: 20px 0 0; max-width: 340px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 24px 0 32px; font-size: .82rem; color: var(--steel-500); }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-bottom p { margin: 0; }
.footer-bottom .metal-rule { height: 1px; background: var(--metal); opacity: .35; margin-bottom: 24px; }

/* ---------- Simple centered pages (404, thank-you) ---------- */
.center-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 96px 0; background: var(--paper); }
.center-page .code { font-family: var(--font-display); font-size: clamp(5rem, 14vw, 9rem); line-height: 1; background: linear-gradient(180deg, var(--navy-700), var(--steel-300)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.center-page .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Motion layer
   ========================================================================== */

/* Page enter / leave */
body { animation: page-in .6s var(--ease) both; }
body.is-leaving { opacity: 0; transition: opacity .22s ease; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; left: 0; top: 0; z-index: 300;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--navy-600), #c9d3df 60%, #ffffff);
  transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

/* Hero entrance sequence */
.hero .eyebrow, .hero .lead, .hero .btn-row, .hero-foot { animation: rise 1s var(--ease) both; }
.hero .eyebrow { animation-delay: .15s; }
.hero .eyebrow::before { animation: grow-x 1s var(--ease) .3s both; transform-origin: left; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .line > span { display: inline-block; animation: line-up 1.1s var(--ease) both; }
.hero h1 .line:nth-child(1) > span { animation-delay: .3s; }
.hero h1 .line:nth-child(2) > span { animation-delay: .45s; }
.hero .lead { animation-delay: .75s; }
.hero .btn-row { animation-delay: .9s; }
.hero-foot { animation-delay: 1.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Metallic shimmer on the hero accent words */
.hero h1 em {
  background: linear-gradient(100deg, #8d99a8 0%, #e9edf2 20%, #a7b2bf 40%, #ffffff 50%, #a7b2bf 60%, #e9edf2 80%, #8d99a8 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* Inner page hero entrance */
.page-hero .crumbs, .page-hero .eyebrow, .page-hero h1, .page-hero .lead { animation: rise .9s var(--ease) both; }
.page-hero .eyebrow { animation-delay: .08s; }
.page-hero h1 { animation-delay: .18s; }
.page-hero .lead { animation-delay: .32s; }

/* Parallax images get overscan so edges never show */
.page-hero .bg[data-parallax], .cta-band .bg[data-parallax] { top: -15%; bottom: auto; height: 130%; will-change: transform; }
.hero-media[data-parallax] { will-change: transform; }

/* Eyebrow rule draws in on reveal */
.js .reveal .eyebrow::before, .js .reveal.eyebrow::before { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .25s; }
.js .reveal.is-visible .eyebrow::before { transform: scaleX(1); }

/* Image curtain reveal */
.js .media-frame.reveal { opacity: 1; transform: none; }
.js .media-frame.reveal img { clip-path: inset(0 100% 0 0); transform: scale(1.12); transition: clip-path 1.3s var(--ease), transform 1.8s var(--ease); }
.js .media-frame.reveal.is-visible img { clip-path: inset(0 0 0 0); transform: scale(1); }
.js .media-frame.reveal .media-caption { opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .6s var(--ease); transition-delay: .9s; }
.js .media-frame.reveal.is-visible .media-caption { opacity: 1; transform: none; }
.js .media-frame.reveal::before { transform: scale(.6); opacity: 0; transition: transform 1s var(--ease) .4s, opacity 1s .4s; transform-origin: top left; }
.js .media-frame.reveal.is-visible::before { transform: none; opacity: 1; }

/* Process line draws across */
.steps.reveal-line::before { transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; background: linear-gradient(90deg, var(--navy-700), var(--steel-300)); }
.steps.reveal-line.is-visible::before { transform: scaleX(1); }

/* Cursor spotlight on cards */
.card, .pillar, .tile { position: relative; }
.card::after, .pillar::after, .tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  opacity: 0; transition: opacity .35s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(40, 74, 126, .09), transparent 60%);
}
.pillar::after { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(200, 214, 232, .12), transparent 60%); }
.card:hover::after, .pillar:hover::after, .tile:hover::after { opacity: 1; }

/* Button shine sweep */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease);
}
.btn-primary::after, .btn-ghost::after { background: linear-gradient(100deg, transparent, rgba(40, 74, 126, .12), transparent); }
.btn:hover::after { left: 130%; }

/* Brand mark rule glints on hover */
.brand-mark::after { transition: left .4s var(--ease), right .4s var(--ease); }
.brand:hover .brand-mark::after { left: 4px; right: 4px; }

/* Capability marquee */
.marquee {
  overflow: hidden; background: var(--navy-950); color: var(--steel-300);
  border-top: 1px solid rgba(255, 255, 255, .08);
  position: relative;
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 1; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--navy-950), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--navy-950), transparent); }
.marquee-track { display: flex; align-items: center; width: max-content; padding: 22px 0; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.5rem); color: #dfe5ec; white-space: nowrap; padding: 0 28px; letter-spacing: .01em; }
.marquee i { width: 8px; height: 8px; transform: rotate(45deg); background: var(--metal); flex: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Flowing pipeline lines on dark bands (injected by main.js) */
.flow-lines { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; opacity: .55; }
.flow-lines .pipe { fill: none; stroke: rgba(185, 196, 210, .14); stroke-width: 1.5; }
.flow-lines .flow { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 60 540; animation: flow 7s linear infinite; }
.flow-lines .flow.f2 { animation-duration: 9s; animation-delay: -3s; }
.flow-lines .flow.f3 { animation-duration: 11s; animation-delay: -6s; }
@keyframes flow { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }

/* Icon float on card hover */
.tile:hover .icon, .pillar:hover .icon { transform: translateY(-3px); }
.tile .icon, .pillar .icon { transition: transform .35s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .flow-lines { display: none; }
  .js .media-frame.reveal img { clip-path: none; transform: none; }
  .steps.reveal-line::before { transform: none; }
  .hero h1 em { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .draft-banner, .cta-band, .nav-toggle { display: none !important; }
  .page-hero, .hero { background: none !important; color: #000; padding: 24px 0; }
  .page-hero h1, .hero h1 { color: #000; }
}
