/* Chemsafe Industrial Coatings — site styles */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plexmono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --navy: #032F69;
  --navy-700: #0A2550;
  --navy-800: #073274;
  --navy-900: #04245A;
  --blue: #0B5FE3;
  --blue-hi: #3A82F7;
  --blue-700: #0849B5;
  --sun: #FFC72C;
  --sun-hi: #FFD866;
  --steel: #6B7078;
  --steel-400: #8FA6CC;
  --steel-300: #B3C8E8;
  --steel-200: #D6E3F6;
  --ice: #7FB0FF;
  --paper: #F5F8FD;
  --paper-2: #E4EDFA;
  --white: #FFFFFF;
  --ink: #0A1424;
  --ink-2: #3A4454;
  --line: rgba(10, 20, 36, .12);
  --line-dark: rgba(255, 255, 255, .14);
  --gutter: clamp(20px, 4.2vw, 64px);
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif; font-size: 17px; line-height: 1.55; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

/* ---------- type ---------- */
.display {
  font-weight: 780; font-stretch: 112%; letter-spacing: -.028em; line-height: .94; text-wrap: balance;
}
h2.display { font-size: clamp(40px, 5.6vw, 92px); }
.eyebrow {
  font-family: "Plex Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px; color: var(--blue);
}
.eyebrow::before {
  content: ""; width: 9px; height: 10px; background: currentColor; flex: none;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.on-dark .eyebrow { color: var(--steel-300); }
.on-dark .eyebrow::before { background: var(--sun); }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.on-dark { color: var(--white); }
.on-dark .lede { color: var(--steel-300); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 650; font-stretch: 106%; font-size: 16px; letter-spacing: .01em; white-space: nowrap; cursor: pointer;
  background: var(--blue); color: var(--white); transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { background: var(--blue-700); }
.btn-light { background: var(--sun); color: var(--ink); }
.btn-light:hover { background: var(--sun-hi); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--white); }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 40px; padding: 0 var(--gutter); color: var(--white);
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), transform .4s var(--ease);
}
.nav-logo { position: relative; display: block; width: 190px; flex: none; }
.nav-logo img { width: 100%; height: auto; transition: opacity .3s var(--ease); }
.nav-logo .logo-dark { position: absolute; inset: 0; opacity: 0; }
.nav-links { display: flex; gap: 32px; margin-left: auto; font-size: 15px; font-weight: 520; }
.nav-links a { position: relative; padding: 6px 0; opacity: .86; transition: opacity .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .35s var(--ease); }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 22px; }
.nav-phone { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .9; }
.nav .btn { background: var(--sun); color: var(--ink); }
.nav .btn:hover { background: var(--sun-hi); }
.nav.is-solid { background: rgba(4, 36, 90, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav[data-theme="light"] { color: var(--ink); }
.nav[data-theme="light"].is-solid { background: rgba(245, 248, 253, .88); box-shadow: 0 1px 0 var(--line); }
.nav[data-theme="light"] .logo-light { opacity: 0; }
.nav[data-theme="light"] .logo-dark { opacity: 1; }
.nav[data-theme="light"] .btn { background: var(--blue); color: var(--white); }
.nav[data-theme="light"] .btn:hover { background: var(--blue-700); }
.nav-burger { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 49; background: var(--navy-900); color: var(--white);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px; display: flex; flex-direction: column; gap: 32px;
}
.menu[hidden] { display: none; }
.menu-links a { display: block; font-size: 34px; font-weight: 720; font-stretch: 110%; letter-spacing: -.02em; padding: 8px 0; border-bottom: 1px solid var(--line-dark); }
.menu-contact { margin-top: auto; display: grid; gap: 12px; }
.menu-contact .btn { width: 100%; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: var(--navy-900); }
.hero-media { position: absolute; inset: 0; background: #0b2c66; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3,30,80,.5) 0%, rgba(3,30,80,0) 20%),
    linear-gradient(90deg, rgba(3,30,80,.84) 0%, rgba(3,30,80,.5) 36%, rgba(3,30,80,0) 64%),
    linear-gradient(0deg, rgba(3,30,80,.72) 0%, rgba(3,30,80,.3) 26%, rgba(3,30,80,0) 46%);
}
.hero-copy { position: absolute; left: var(--gutter); bottom: calc(11vh + 96px); width: min(780px, 62vw); }
.hero-copy .eyebrow { color: var(--steel-200); }
.hero-title { font-size: clamp(46px, 6.3vw, 108px); margin: 22px 0 22px; }
.hero-sub { font-size: clamp(17px, 1.4vw, 21px); color: var(--steel-200); max-width: 30em; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.pillars { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.22); }
.pillar { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: baseline; }
.pillar-word { font-size: 20px; font-weight: 760; font-stretch: 112%; letter-spacing: -.01em; text-transform: uppercase; }
.pillar-line { grid-column: 2; font-size: 15px; color: var(--steel-200); }
.pillar-no { font-family: "Plex Mono", monospace; font-size: 12px; letter-spacing: .16em; color: var(--sun); }

/* ---------- system (3D) ---------- */
.system { position: relative; height: 400vh; background: var(--navy-900); }
.system-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(75% 80% at 64% 58%, #3482F4 0%, #0F56CF 40%, #073A92 78%, #052C72 100%);
}
.system-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.system-fallback { display: none; position: absolute; right: 12%; top: 50%; width: min(38vw, 560px); transform: translateY(-46%); }
.no-webgl .system-fallback { display: block; }
.no-webgl .system-canvas { display: none; }
.system-head { position: absolute; left: var(--gutter); top: calc(var(--nav-h) + 9vh); width: min(560px, 40vw); }
.system-head h2 { margin: 20px 0 24px; }
.layers { position: absolute; inset: 0; pointer-events: none; }
.layer { position: absolute; left: 0; top: 0; width: 300px; will-change: transform, opacity; --lw: 60px; }
.js .layer { opacity: 0; }
.layer::before { content: ""; position: absolute; left: calc(100% + 16px); top: 9px; width: calc(var(--lw) - 16px); height: 1px; background: linear-gradient(90deg, rgba(169,176,184,.35), var(--white)); }
.layer::after { content: ""; position: absolute; left: calc(100% + var(--lw) - 4px); top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 5px rgba(255,199,44,.22); }
.layer-no { font-family: "Plex Mono", monospace; font-size: 12px; letter-spacing: .16em; color: var(--sun); }
.layer b { display: block; font-size: 20px; font-weight: 720; font-stretch: 108%; margin: 0 0 4px; letter-spacing: -.01em; line-height: 1.15; }
.layer span:last-child { display: block; font-size: 14px; line-height: 1.4; color: var(--steel-300); }
.system-foot { position: absolute; left: var(--gutter); bottom: 9vh; width: min(520px, 40vw); }
.js .system-foot { opacity: 0; }
.system-foot p { font-size: clamp(22px, 2vw, 30px); font-weight: 650; font-stretch: 106%; letter-spacing: -.015em; line-height: 1.2; }

/* ---------- services (3D ring) ---------- */
.services { position: relative; height: 440vh; background: var(--navy-900); perspective: 1800px; }
.services-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); transform-origin: 50% 0; }
.services-head { position: absolute; left: var(--gutter); top: calc(var(--nav-h) + 5vh); right: var(--gutter); display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; z-index: 2; }
.services-head h2 { margin-top: 18px; }
.svc-count { font-family: "Plex Mono", monospace; font-size: 13px; letter-spacing: .14em; color: var(--steel); white-space: nowrap; padding-bottom: 10px; }
.svc-count b { color: var(--blue); font-weight: 500; }
.ring-stage { position: absolute; inset: 0; perspective: 1700px; perspective-origin: 50% 60%; }
.ring { position: absolute; left: 50%; top: 63%; transform-style: preserve-3d; will-change: transform; }
.svc { position: absolute; width: var(--cw, 380px); height: calc(var(--cw, 380px) * 1.3); left: calc(var(--cw, 380px) / -2); top: calc(var(--cw, 380px) * -.65); backface-visibility: hidden; }
.svc a { display: flex; flex-direction: column; height: 100%; background: var(--white); border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(4, 18, 39, .35), 0 0 0 1px var(--line); }
.svc-img { position: relative; flex: 1; overflow: hidden; background: var(--paper-2); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc a:hover .svc-img img { transform: scale(1.05); }
.svc-body { position: relative; padding: 22px 24px 26px; }
.svc-no { font-family: "Plex Mono", monospace; font-size: 12px; letter-spacing: .14em; color: var(--blue); }
.svc h3 { font-size: 24px; font-weight: 740; font-stretch: 108%; letter-spacing: -.015em; margin: 6px 0 8px; line-height: 1.1; }
.svc p { font-size: 15px; line-height: 1.45; color: var(--ink-2); padding-right: 36px; }
.svc-go { position: absolute; right: 22px; bottom: 26px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); transition: background .25s, color .25s; }
.svc-go svg { width: 16px; height: 16px; }
.svc a:hover .svc-go { background: var(--blue); color: var(--white); }

/* ---------- industries ---------- */
.industries { background: var(--paper-2); padding: clamp(96px, 12vw, 180px) var(--gutter); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head h2 { margin-top: 18px; }
.sec-head .lede { max-width: 26em; }
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; perspective: 1200px; }
.ind { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--navy-800); transform-style: preserve-3d; transition: transform .5s var(--ease); }
.ind img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .9s var(--ease), opacity .4s; }
.ind::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,40,110,.82) 0%, rgba(4,40,110,0) 58%); }
.ind:hover img { transform: scale(1.06); opacity: 1; }
.ind-label { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; color: var(--white); }
.ind-label b { display: block; font-size: clamp(20px, 1.7vw, 26px); font-weight: 720; font-stretch: 108%; letter-spacing: -.015em; line-height: 1.1; }
.ind-label span { display: block; margin-top: 6px; font-size: 14px; color: var(--steel-200); }

/* ---------- work (3D fly-through) ---------- */
.work { position: relative; height: 560vh; background: var(--paper-2); perspective: 1800px; }
.work-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: linear-gradient(165deg, #1466E8 0%, #0A48B8 50%, #052E78 100%); transform-origin: 50% 0; }
.work-head { position: absolute; left: var(--gutter); top: calc(var(--nav-h) + 5vh); z-index: 3; width: min(520px, 36vw); }
.work-head h2 { margin-top: 18px; }
.work-count { position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 5vh + 8px); z-index: 3; font-family: "Plex Mono", monospace; font-size: 13px; letter-spacing: .14em; color: var(--steel-300); }
.work-count b { color: var(--sun); font-weight: 500; }
.work-stage { position: absolute; inset: 0; }
.work-world { position: absolute; left: 50%; top: 54%; }
.shot { position: absolute; left: 0; top: 0; width: var(--sw, 30vw); transform-origin: 0 0; will-change: transform, opacity; }
.shot figure { transform: translate(-50%, -50%); }
.shot img { width: 100%; height: auto; aspect-ratio: var(--ar, 4 / 3); object-fit: cover; border-radius: 4px; box-shadow: 0 40px 80px -30px rgba(2,16,48,.65); }
.shot figcaption { margin-top: 16px; display: flex; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--steel-300); }
.shot figcaption b { color: var(--white); font-weight: 640; font-stretch: 106%; }
.work-end { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; z-index: 2; width: min(760px, 86vw); }
.js .work-end { opacity: 0; }
.work-end p { font-size: clamp(34px, 3.8vw, 60px); font-weight: 780; font-stretch: 112%; letter-spacing: -.03em; line-height: 1; margin-bottom: 32px; }

/* ---------- process ---------- */
.process { background: var(--paper); padding: clamp(96px, 12vw, 180px) var(--gutter); }
.process-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.process-head { position: sticky; top: calc(var(--nav-h) + 6vh); }
.process-head h2 { margin: 18px 0 24px; }
.steps { display: grid; gap: clamp(56px, 7vw, 110px); perspective: 1400px; }
.step figure { border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-2); transform-origin: 50% 100%; }
.step figure img { width: 100%; height: 100%; object-fit: cover; }
.step-body { display: grid; grid-template-columns: 76px 1fr; gap: 0 20px; margin-top: 26px; }
.step-no { font-size: 46px; font-weight: 800; font-stretch: 116%; line-height: 1; letter-spacing: -.04em; color: var(--blue); }
.step h3 { font-size: clamp(26px, 2.2vw, 34px); font-weight: 760; font-stretch: 110%; letter-spacing: -.02em; line-height: 1.1; }
.step p { grid-column: 2; margin-top: 10px; color: var(--ink-2); max-width: 32em; }

/* ---------- quote ---------- */
.quote { position: relative; background: var(--blue); padding: clamp(96px, 11vw, 170px) var(--gutter); overflow: hidden; }
.quote-bg { position: absolute; inset: 0; }
.quote-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .2; filter: grayscale(1) contrast(1.1); }
.quote-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(8,70,190,.97) 10%, rgba(11,90,222,.86) 55%, rgba(6,52,150,.94) 100%); }
.quote-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.quote-copy h2 { margin: 18px 0 24px; }
.direct { margin-top: 44px; border-top: 1px solid var(--line-dark); }
.direct a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line-dark); transition: padding .3s var(--ease); }
.direct a:hover { padding-left: 8px; }
.direct span { font-family: "Plex Mono", monospace; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-300); width: 100px; flex: none; }
.direct b { font-size: clamp(18px, 1.5vw, 22px); font-weight: 620; margin-right: auto; font-variant-numeric: tabular-nums; }
.direct svg { width: 18px; height: 18px; color: var(--steel-300); }
.qform { background: rgba(255,255,255,.08); border: 1px solid var(--line-dark); border-radius: 8px; padding: clamp(24px, 3vw, 44px); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 560; color: var(--steel-200); letter-spacing: .01em; }
.field label i { font-style: normal; color: var(--steel-400); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; height: 52px; padding: 0 16px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.18);
  background: rgba(3, 30, 80, .42); color: var(--white); font-size: 16px; transition: border-color .2s, background .2s;
}
.field textarea { height: 112px; padding: 14px 16px; resize: vertical; line-height: 1.45; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9B0B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field select option { color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--steel-400); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sun); background: rgba(3, 30, 80, .62); }
.field.is-bad input { border-color: #F08B7E; }
.field-err { font-size: 13px; color: #F4A79C; display: none; }
.field.is-bad .field-err { display: block; }
.form-actions { margin-top: 26px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--steel-300); line-height: 1.5; margin-top: 18px; }
.form-note a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.foot { background: var(--navy); color: var(--steel-300); padding: 72px var(--gutter) 40px; border-top: 1px solid var(--line-dark); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-logo { width: 230px; }
.foot-tag { margin-top: 18px; font-family: "Plex Mono", monospace; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.foot h4 { margin: 0 0 16px; color: var(--white); font-size: 14px; font-weight: 640; letter-spacing: .02em; }
.foot li { margin: 8px 0; font-size: 15px; }
.foot a:hover { color: var(--white); }
.foot-base { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 20px; font-size: 13px; }

.actionbar { display: none; }

/* =========================================================
   Touch / small screens: clean, flat, fast
   ========================================================= */
.is-touch .services, .is-touch .work { height: auto; perspective: none; background: none; }
.is-touch .services-pin, .is-touch .work-pin { position: relative; height: auto; overflow: visible; }
.is-touch .services-pin { padding: calc(var(--nav-h) + 40px) var(--gutter) 88px; }
.is-touch .services-head { position: static; display: block; margin-bottom: 32px; }
.is-touch .svc-count { display: none; }
.is-touch .ring-stage { position: static; perspective: none; }
.is-touch .ring { position: static; transform: none !important; display: grid; gap: 0; border-top: 1px solid var(--line); }
.is-touch .svc { position: static; width: auto; height: auto; transform: none !important; opacity: 1 !important; }
.is-touch .svc a { flex-direction: row; align-items: center; gap: 16px; background: none; box-shadow: none; border-radius: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.is-touch .svc-img { flex: none; width: 92px; height: 72px; border-radius: 4px; }
.is-touch .svc-body { padding: 0 44px 0 0; flex: 1; }
.is-touch .svc h3 { font-size: 19px; margin: 2px 0 4px; }
.is-touch .svc p { font-size: 14px; padding: 0; }
.is-touch .svc-go { right: 0; bottom: auto; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; background: var(--paper-2); }
.is-touch .work-pin { padding: calc(var(--nav-h) + 40px) 0 88px; }
.is-touch .work-head { position: static; width: auto; padding: 0 var(--gutter); margin-bottom: 32px; }
.is-touch .work-count { display: none; }
.is-touch .work-stage { position: static; perspective: none; }
.is-touch .work-world { position: static; transform: none !important; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.is-touch .work-world::-webkit-scrollbar { display: none; }
.is-touch .shot { position: static; flex: none; width: min(78vw, 420px); transform: none !important; opacity: 1 !important; scroll-snap-align: start; scroll-margin-left: var(--gutter); }
.is-touch .shot figure { transform: none; }
.is-touch .shot figcaption { flex-direction: column; gap: 2px; font-size: 14px; }
.is-touch .work-end { position: static; transform: none; opacity: 1 !important; text-align: left; padding: 40px var(--gutter) 0; width: auto; }
.is-touch .work-end p { font-size: 30px; margin-bottom: 22px; }
.is-touch .layer { left: var(--gutter) !important; right: var(--gutter); top: auto !important; bottom: calc(96px + env(safe-area-inset-bottom)); width: auto; max-width: 560px; transform: none !important; }
.is-touch .layer::before, .is-touch .layer::after { display: none; }
.is-touch .layer, .is-touch .system-foot { padding: 14px 16px; border-radius: 14px; background: rgba(4,36,90,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.is-touch .system-foot { right: var(--gutter); width: auto; bottom: calc(100px + env(safe-area-inset-bottom)); }
.reduce .layers { inset: auto var(--gutter) 40px var(--gutter); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.reduce .layer { position: static; max-width: none; }
.reduce .system-foot { display: none; }
.swipe-hint { display: none; }
.is-touch .swipe-hint { display: flex; align-items: center; gap: 10px; padding: 18px var(--gutter) 0; font-family: "Plex Mono", monospace; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-300); }
.is-touch .swipe-hint i { width: 40px; height: 1px; background: currentColor; }

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 1023px) {
  .process-grid, .quote-grid { grid-template-columns: 1fr; }
  .process-head { position: static; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  .nav { gap: 12px; }
  .nav-logo { width: 150px; }
  .nav-phone { display: none; }
  .nav .btn { display: none; }
  .nav-burger { display: grid; place-items: center; gap: 6px; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; }
  .nav-burger span:not(.sr) { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .nav-burger { grid-template-rows: auto auto; align-content: center; }

  .hero { min-height: 600px; }
  .film-shade { background: linear-gradient(180deg, rgba(3,30,80,.55) 0%, rgba(3,30,80,.08) 22%, rgba(3,30,80,.3) 46%, rgba(4,36,90,.86) 72%, var(--navy-900) 100%); }
  .hero-copy { left: var(--gutter); right: var(--gutter); width: auto; bottom: 32px; }
  .hero-copy .eyebrow { font-size: 12px; letter-spacing: .04em; }
  .hero-title { font-size: clamp(34px, 10.4vw, 46px); margin: 14px 0 12px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-actions .btn { padding: 0 12px; height: 52px; }
  .pillars { display: none; }

  .system { height: 260vh; }
  .system-pin { background: radial-gradient(110% 60% at 50% 56%, #3482F4 0%, #0F56CF 45%, #073A92 85%, #052C72 100%); }
  .system-head { top: calc(var(--nav-h) + 22px); width: auto; right: var(--gutter); }
  .system-head h2 { margin: 12px 0 10px; }
  .system-head .lede { font-size: 15px; }
  .layer { left: var(--gutter) !important; right: var(--gutter); top: auto !important; bottom: calc(96px + env(safe-area-inset-bottom)); width: auto; transform: none !important; padding-left: 0; }
  .layer::before, .layer::after { display: none; }
  .layer b { font-size: 21px; }
  .system-foot { left: var(--gutter); right: var(--gutter); width: auto; bottom: calc(100px + env(safe-area-inset-bottom)); }
  .system-foot p { font-size: 21px; }
  .system-fallback { width: 62%; right: 19%; top: 50%; }

  .sec-head { display: block; }
  .sec-head .lede { margin-top: 16px; }
  .ind-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ind { aspect-ratio: 1 / 1.08; }
  .ind-label { left: 14px; right: 14px; bottom: 14px; }
  .ind-label b { font-size: 17px; }
  .ind-label span { display: none; }

  .step-body { grid-template-columns: 56px 1fr; gap: 0 12px; margin-top: 18px; }
  .step-no { font-size: 34px; }

  .fgrid { grid-template-columns: 1fr; gap: 14px; }
  .qform { padding: 20px; }
  .form-actions .btn { width: 100%; }
  .direct span { width: 86px; }

  .foot { padding: 52px var(--gutter) 110px; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .foot-top > :first-child, .foot-top > :last-child { grid-column: 1 / -1; }
  .foot-logo { width: 190px; }
  .foot h4 { margin-bottom: 4px; }
  .foot li { margin: 0; font-size: 15px; line-height: 1.3; }
  .foot li a { display: block; padding: 11px 0; }
  .foot-top > :last-child li:not(:has(a)) { padding: 6px 0; }
  .foot-base { margin-top: 36px; }
  .foot-base a, .form-note a { display: inline-block; padding: 12px 2px; margin: -12px 0; }
  .crumbs a { padding: 12px 0; margin: -12px 0; }
  .foot-base { flex-direction: column; }

  .actionbar {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; padding: 6px; border-radius: 10px;
    background: rgba(4, 36, 90, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 12px 40px rgba(0,0,0,.35);
    transform: translateY(140%); transition: transform .45s var(--ease);
  }
  .actionbar.is-on { transform: none; }
  .actionbar a { height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; color: var(--white); font-size: 15px; font-weight: 620; }
  .actionbar a svg { width: 18px; height: 18px; }
  .actionbar .ab-primary { background: var(--sun); color: var(--ink); }
}

/* No JS, or reduced motion: everything readable, nothing pinned */
.reduce .system { height: auto; }
.reduce .system-pin { position: relative; }
.reduce .layer, .reduce .system-foot { opacity: 1; }

/* =========================================================
   Inner pages
   ========================================================= */
.page-hero { position: relative; background: linear-gradient(160deg, #1466E8 0%, #0A48B8 48%, #052E78 100%); padding: calc(var(--nav-h) + clamp(48px, 7vw, 110px)) var(--gutter) clamp(72px, 9vw, 140px); overflow: hidden; perspective: 1400px; }
.page-hero.slim { padding-bottom: clamp(56px, 6vw, 96px); }
.ph-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-family: "Plex Mono", monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-300); }
.crumbs a:hover { color: var(--white); }
.page-hero h1 { font-size: clamp(44px, 6vw, 100px); margin: 22px 0; }
.ph-lede { font-size: clamp(17px, 1.4vw, 21px); color: var(--steel-200); max-width: 30em; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.ph-media { position: relative; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--navy-800); box-shadow: 0 60px 120px -40px rgba(0,0,0,.75); transform-origin: 50% 50%; }
.ph-media img { width: 100%; height: 100%; object-fit: cover; }
.sec { padding: clamp(88px, 10vw, 150px) var(--gutter); background: var(--paper); }
.sec.alt { background: var(--paper-2); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.split h2 { margin-top: 18px; }
.split .lede { margin-top: 24px; }
.why-list { border-top: 1px solid var(--line); counter-reset: w; }
.why-list li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); font-size: clamp(19px, 1.6vw, 24px); font-weight: 640; font-stretch: 106%; letter-spacing: -.01em; line-height: 1.25; }
.why-list li::before { counter-increment: w; content: counter(w, decimal-leading-zero); font-family: "Plex Mono", monospace; font-size: 12px; letter-spacing: .14em; color: var(--blue); padding-top: 7px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 15px; font-weight: 560; }
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.rel { border-radius: 6px; overflow: hidden; background: var(--white); box-shadow: 0 0 0 1px var(--line); transition: transform .5s var(--ease); }
.rel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rel figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; font-size: 14px; color: var(--ink-2); }
.rel figcaption b { color: var(--ink); font-weight: 650; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: clamp(18px, 1.5vw, 22px); font-weight: 650; font-stretch: 106%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 28px; font-weight: 300; line-height: 1; color: var(--blue); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 40em; }
.more-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; margin-top: 32px; border-top: 1px solid var(--line); }
.more-list a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.more-list a svg { width: 16px; height: 16px; color: var(--steel); transition: transform .3s var(--ease); }
.more-list a:hover svg { transform: translateX(4px); color: var(--blue); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-card { display: flex; flex-direction: column; height: 100%; background: var(--white); border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .3s; }
.svc-card:hover { box-shadow: 0 30px 60px -30px rgba(4,18,39,.35), 0 0 0 1px var(--line); }
.svc-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-card div { position: relative; flex: 1; padding: 22px 24px 26px; }
.svc-card h3 { font-size: 24px; font-weight: 740; font-stretch: 108%; letter-spacing: -.015em; margin: 6px 0 8px; line-height: 1.1; }
.svc-card p { font-size: 15px; color: var(--ink-2); padding-right: 36px; }
.svc-card .svc-go { position: absolute; right: 22px; bottom: 26px; }
.proj-grid { columns: 3 300px; column-gap: 16px; }
.proj-grid .rel { break-inside: avoid; margin-bottom: 16px; display: block; }
.proj-grid .rel img { aspect-ratio: auto; }
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pcard { padding: 34px 30px; background: var(--white); border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.pcard b { color: var(--blue); display: block; font-size: clamp(34px, 3.4vw, 52px); font-weight: 800; font-stretch: 116%; letter-spacing: -.04em; text-transform: uppercase; line-height: .9; margin-bottom: 18px; }
.pcard p { color: var(--ink-2); }
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; font-weight: 720; font-stretch: 106%; margin: 44px 0 12px; letter-spacing: -.01em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); margin: 0 0 12px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.quote.page-top { padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 120px)); }

@media (max-width: 1023px) {
  .ph-grid, .split { grid-template-columns: 1fr; }
  .ph-media { aspect-ratio: 16 / 11; max-width: 640px; }
  .more-list { grid-template-columns: 1fr 1fr; }
  .svc-grid, .pcards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .page-hero h1 { font-size: clamp(36px, 11vw, 52px); margin: 16px 0; }
  .ph-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .ph-actions .btn { padding: 0 12px; }
  .why-list li { grid-template-columns: 44px 1fr; font-size: 18px; padding: 20px 0; }
  .more-list, .svc-grid, .pcards { grid-template-columns: 1fr; }
  .faq summary { font-size: 17px; padding: 20px 0; }
}
.why-list .muted { display: block; margin-top: 6px; font-size: 16px; font-weight: 400; font-stretch: 100%; color: var(--ink-2); letter-spacing: 0; line-height: 1.5; }
.pcard { transition: transform .5s var(--ease); }
.svc-count a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- SEO pages: areas, guides, footer area links ---------- */
.mini-h { margin: 0 0 14px; font-family: "Plex Mono", monospace; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.area-facts .chips + .mini-h { margin-top: 36px; }
.more-head { margin-top: 56px; }
.more-list.one { grid-template-columns: 1fr; margin-top: 18px; }
.area-group + .area-group { margin-top: 56px; }
.area-group .more-list { margin-top: 0; }
.text-link { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.guide-side { position: sticky; top: calc(var(--nav-h) + 24px); }
.foot-areas { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.foot-areas ul { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0 0 22px; }
.foot-areas li { margin: 0; font-size: 14px; }
@media (max-width: 767px) {
  .guide-side { position: static; }
  .foot-areas ul { gap: 0 18px; }
  .foot-areas li a { display: block; padding: 11px 0; }
  .foot-areas h4 { margin: 0; }
  .foot-areas h4 a, .text-link { display: inline-block; padding: 12px 0; }
  .more-head { margin-top: 40px; }
}
.display.fit { font-size: clamp(34px, 4.2vw, 64px); overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 767px) {
  .svc-card { flex-direction: row; align-items: stretch; }
  .svc-card img { width: 104px; flex: none; aspect-ratio: auto; height: auto; min-height: 104px; object-fit: cover; }
  .svc-card div { padding: 14px 16px; }
  .svc-card h3 { font-size: 19px; margin: 2px 0 4px; }
  .svc-card p { font-size: 14px; padding-right: 26px; }
  .svc-card .svc-go { right: 12px; bottom: 14px; }
}

/* ---------- product specifics, case studies, industries (2026-10-20) ---------- */
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.opt { position: relative; display: flex; flex-direction: column; padding: 28px 26px 26px; background: var(--white); border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.opt-no { font-family: "Plex Mono", monospace; font-size: 12px; letter-spacing: .14em; color: var(--blue); }
.opt h3 { margin: 10px 0 10px; font-size: 22px; font-weight: 740; font-stretch: 106%; letter-spacing: -.015em; line-height: 1.15; }
.opt p:not(.opt-best) { font-size: 15px; color: var(--ink-2); margin-bottom: 18px; }
.opt-best { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink); font-weight: 600; }
.opt-best b { font-family: "Plex Mono", monospace; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.spec { margin: 0; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: minmax(120px, 2fr) 5fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-family: "Plex Mono", monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); padding-top: 4px; }
.spec dd { margin: 0; font-size: clamp(18px, 1.5vw, 22px); font-weight: 640; letter-spacing: -.01em; line-height: 1.3; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 28px; }
.gallery figure { margin: 0; border-radius: 6px; overflow: hidden; background: var(--paper-2); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rel-a { display: block; color: inherit; }
.rel-a figcaption b { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.rel-a:hover figcaption b { text-decoration-color: currentColor; }
.split .lede + .lede { margin-top: 16px; }
@media (max-width: 1023px) {
  .opts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .opts { grid-template-columns: 1fr; gap: 12px; }
  .opt { padding: 22px 20px 20px; }
  .opt h3 { font-size: 20px; }
  .spec div { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 20px; }
}

/* ---------- phone length (2026-10-27, Duval: phone pages short, no long stacks; a computer keeps everything as it was) ----------
   [data-fold] lists are open on a computer and folded on a phone (main.js); stacked cards become swipe rows; the quote form's
   optional fields wait behind "Add more details". */
.fold > summary, .more-btn, .fold-all { display: none; }
.menu-open #ddai-chatbot-widget { display: none !important; }   /* its greeting bubble covered the open menu's "Request a quote" */
@media (max-width: 767px) {
  .fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; border-bottom: 1px solid var(--line); list-style: none; cursor: pointer; font-size: 17px; font-weight: 640; font-stretch: 106%; letter-spacing: -.01em; }
  .fold > summary::-webkit-details-marker { display: none; }
  .fold > summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 6px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--ease); }
  .fold[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
  .fold > .eyebrow, .fold > h4 { display: none; }
  .fold > .more-list { margin: 6px 0 18px; }
  .sec .fold:first-child > summary { border-top: 1px solid var(--line); }
  .foot .fold > summary { border-color: var(--line-dark); font-size: 16px; }
  .foot .fold:first-child > summary { border-top: 1px solid var(--line-dark); }
  .foot-areas { margin-top: 32px; padding-top: 0; border-top: 0; }
  .foot .fold > ul { margin: 10px 0 14px; }
  .foot .fold-all { display: block; font-weight: 600; }

  .opts, .related, .gallery, .steps { display: flex; gap: 12px; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .opts::-webkit-scrollbar, .related::-webkit-scrollbar, .gallery::-webkit-scrollbar, .steps::-webkit-scrollbar { display: none; }
  .opts > *, .related > *, .steps > * { flex: none; width: min(82vw, 420px); scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .gallery > * { flex: none; width: min(72vw, 360px); scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .process-grid { gap: 28px; }
  .step-body { grid-template-columns: 52px 1fr; gap: 0 12px; margin-top: 18px; }
  .step-no { font-size: 34px; }
  .step p { margin-top: 6px; }
  .is-touch .svc p { display: none; }
  .is-touch .svc-body { display: flex; align-items: center; gap: 10px; }
  .is-touch .svc h3 { margin: 0; }
  .system { height: 200vh; }
  .svc-grid.compact { gap: 8px; }
  .svc-grid.compact .svc-card img { width: 72px; min-height: 64px; }
  .svc-grid.compact .svc-card div { padding: 12px 14px; display: flex; align-items: center; }
  .svc-grid.compact .svc-card p, .svc-grid.compact .svc-no { display: none; }
  .svc-grid.compact .svc-card h3 { margin: 0; padding-right: 30px; font-size: 17px; }
  .svc-grid.compact .svc-card .svc-go { bottom: auto; top: 50%; transform: translateY(-50%); }
  .crumbs a { display: inline-block; padding: 12px 6px; margin: -12px -6px; }

  .js .qform:not(.is-more) [data-opt] { display: none; }
  .js .more-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 4px 0 18px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
  .more-btn i { font-style: normal; opacity: .7; text-decoration: none; }
  .js .more-btn[hidden] { display: none; }
}

/* Chemsafe Assistant (DoubleDown AI chat widget, started by assets/js/chat-boot.js) */
#ddai-chatbot-widget .ddw { --dd-primary: var(--ddw-brand); }
@media (max-width: 767px) {
  #ddai-chatbot-widget .ddw:not(.ddw-card) { bottom: calc(84px + env(safe-area-inset-bottom)); right: 14px; }
}
/* CS-CHAT-LOOK-V1 (2026-10-20, Duval: "add some designs and transitions to this chatbot"): Chemsafe's own look over the
   DoubleDown AI widget v2 on this site only. Navy/blue + the logo's hexagon, spring entrances. Keyframes, not transitions, for
   anything that appears with the window: the widget un-hides the window and opens it in the same frame, so a transition never runs. */
#ddai-chatbot-widget .ddw {
  --cs-navy: #032F69; --cs-blue: #0B5FE3; --cs-blue-d: #0849B5; --cs-paper: #F5F8FD; --cs-line: #E4EDFA; --cs-ring: #D6E3F6; --cs-ink: #0A1424;
  --cs-spring: cubic-bezier(.2, 1.3, .35, 1); --cs-out: cubic-bezier(.16, 1, .3, 1);
}

/* launcher: brand gradient, a soft ring that pulses three times while the chat is closed */
#ddai-chatbot-widget .ddw .ddw-launch {
  background: linear-gradient(140deg, #2A78F5 0%, var(--cs-blue) 42%, var(--cs-navy) 100%);
  box-shadow: 0 14px 32px -10px rgba(3, 47, 105, .6), inset 0 0 0 1.5px rgba(255, 255, 255, .2);
  transition: transform .35s var(--cs-spring), box-shadow .3s;
}
#ddai-chatbot-widget .ddw .ddw-launch:hover { transform: translateY(-3px) scale(1.05); }
#ddai-chatbot-widget .ddw .ddw-launch:active { transform: scale(.94); }
#ddai-chatbot-widget .ddw:not(.ddw-open) .ddw-launch { animation: cs-ring 2.4s var(--cs-out) 2s 3; }
@keyframes cs-ring {
  0% { box-shadow: 0 14px 32px -10px rgba(3, 47, 105, .6), inset 0 0 0 1.5px rgba(255, 255, 255, .2), 0 0 0 0 rgba(11, 95, 227, .5); }
  70%, 100% { box-shadow: 0 14px 32px -10px rgba(3, 47, 105, .6), inset 0 0 0 1.5px rgba(255, 255, 255, .2), 0 0 0 20px rgba(11, 95, 227, 0); }
}

/* teaser bubble: the logo mark beside the line, springs up from the launcher */
#ddai-chatbot-widget .ddw .ddw-popup {
  align-items: center; padding: 12px 10px 12px 14px; border-radius: 18px 18px 6px 18px; transform-origin: 100% 100%;
  box-shadow: 0 18px 40px -14px rgba(3, 47, 105, .45), 0 0 0 1px rgba(3, 47, 105, .08); animation: cs-teaser .6s var(--cs-spring) both;
}
#ddai-chatbot-widget .ddw .ddw-popup::before { content: ""; flex: none; width: 24px; height: 29px; background: url("../logo/chemsafe-mark.svg") center / contain no-repeat; }
#ddai-chatbot-widget .ddw .ddw-popup p { color: var(--cs-ink); font-weight: 500; }
@keyframes cs-teaser { from { opacity: 0; transform: translateY(14px) scale(.88); } to { opacity: 1; transform: none; } }

/* window */
#ddai-chatbot-widget .ddw .ddw-win {
  border-radius: 22px; background: var(--cs-paper); transform-origin: 100% 100%;
  box-shadow: 0 34px 80px -24px rgba(3, 47, 105, .5), 0 0 0 1px rgba(3, 47, 105, .08);
}
#ddai-chatbot-widget .ddw.ddw-open .ddw-win { animation: cs-open .55s var(--cs-spring) both; }
@keyframes cs-open { 0% { opacity: 0; transform: translateY(26px) scale(.9); } 50% { opacity: 1; } 100% { opacity: 1; transform: none; } }

/* header: navy to blue, a faint hexagon pattern, a light sweep and a yellow line drawn on opening */
#ddai-chatbot-widget .ddw .ddw-head {
  position: relative; overflow: hidden; padding: 16px 12px 17px 16px; gap: 12px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='42'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.11' stroke-width='1.2'%3E%3Cpolygon points='12,3.5 18.06,7 18.06,14 12,17.5 5.94,14 5.94,7'/%3E%3Cpolygon points='36,24.5 42.06,28 42.06,35 36,38.5 29.94,35 29.94,28'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(125deg, var(--cs-navy) 0%, #0A47AE 58%, var(--cs-blue) 100%);
}
#ddai-chatbot-widget .ddw .ddw-head::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #FFC72C, #FFD866);
  transform: scaleX(0); transform-origin: 0 50%;
}
#ddai-chatbot-widget .ddw.ddw-open .ddw-head::before { animation: cs-draw .7s var(--cs-out) .3s both; }
#ddai-chatbot-widget .ddw .ddw-head::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .16) 48%, transparent 66%);
}
#ddai-chatbot-widget .ddw.ddw-open .ddw-head::after { animation: cs-sheen 1.1s ease .35s both; }
@keyframes cs-draw { to { transform: scaleX(1); } }
@keyframes cs-sheen { to { transform: translateX(120%); } }
#ddai-chatbot-widget .ddw .ddw-av-head { width: 44px; height: 44px; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .22), 0 6px 14px -4px rgba(0, 0, 0, .35); }
#ddai-chatbot-widget .ddw.ddw-open .ddw-av-head { animation: cs-pop .6s var(--cs-spring) .12s both; }
@keyframes cs-pop { from { opacity: 0; transform: scale(.4) rotate(-40deg); } to { opacity: 1; transform: none; } }
#ddai-chatbot-widget .ddw .ddw-who strong { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
/* the title and the logo already say Chemsafe: the subtitle keeps only the status (it wrapped as "Replies in / seconds") */
#ddai-chatbot-widget .ddw .ddw-who span { display: flex; align-items: center; font-size: 0; color: rgba(255, 255, 255, .92); }
#ddai-chatbot-widget .ddw .ddw-who span::after { content: "Replies in seconds"; font-size: 12.5px; line-height: 1.35; }
#ddai-chatbot-widget .ddw .ddw-live { margin: 0 6px 0 1px; animation: cs-live 2.2s ease-in-out infinite; }
@keyframes cs-live { 0%, 100% { box-shadow: 0 0 0 2px rgba(52, 211, 153, .3); } 50% { box-shadow: 0 0 0 5px rgba(52, 211, 153, .1); } }
#ddai-chatbot-widget .ddw.ddw-open .ddw-who { animation: cs-down .5s var(--cs-out) .18s both; }
@keyframes cs-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
#ddai-chatbot-widget .ddw .ddw-close { transition: transform .35s var(--cs-spring), background .2s; }
#ddai-chatbot-widget .ddw .ddw-close:hover { transform: rotate(90deg); }

/* conversation: paper ground with a fainter hexagon pattern, white bot bubbles, blue visitor bubbles, entrances from their side */
#ddai-chatbot-widget .ddw .dd-body {
  padding: 18px 14px 10px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='42'%3E%3Cg fill='none' stroke='%23032F69' stroke-opacity='.05' stroke-width='1.2'%3E%3Cpolygon points='12,3.5 18.06,7 18.06,14 12,17.5 5.94,14 5.94,7'/%3E%3Cpolygon points='36,24.5 42.06,28 42.06,35 36,38.5 29.94,35 29.94,28'/%3E%3C/g%3E%3C/svg%3E"),
    var(--cs-paper);
}
#ddai-chatbot-widget .ddw .dd-msg.dd-bot { background: #fff; color: var(--cs-ink); border-radius: 18px 18px 18px 6px; box-shadow: 0 8px 20px -14px rgba(3, 47, 105, .35), 0 0 0 1px var(--cs-line); }
#ddai-chatbot-widget .ddw .dd-msg.dd-client { background: linear-gradient(135deg, var(--cs-blue), var(--cs-blue-d)); color: #fff; border-radius: 18px 18px 6px 18px; box-shadow: 0 10px 22px -12px rgba(11, 95, 227, .6); }
#ddai-chatbot-widget .ddw .dd-msg-avatar { background: #fff; box-shadow: 0 0 0 1.5px var(--cs-line); }
#ddai-chatbot-widget .ddw.ddw-open .dd-body > .dd-msg-row:first-child { animation: cs-in-l .6s var(--cs-spring) .24s both; }
#ddai-chatbot-widget .ddw .dd-row-bot .dd-msg.dd-new { animation: cs-in-l .5s var(--cs-spring) both; transform-origin: 0 100%; }
#ddai-chatbot-widget .ddw .dd-row-client .dd-msg.dd-new { animation: cs-in-r .5s var(--cs-spring) both; transform-origin: 100% 100%; }
@keyframes cs-in-l { from { opacity: 0; transform: translate(-14px, 10px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes cs-in-r { from { opacity: 0; transform: translate(14px, 10px) scale(.92); } to { opacity: 1; transform: none; } }
#ddai-chatbot-widget .ddw .dd-typing { background: #fff; box-shadow: 0 0 0 1px var(--cs-line); }
#ddai-chatbot-widget .ddw .dd-typing span { background: var(--cs-blue); }

/* shortcuts and reply options: white pills that fill blue on hover, rising in one after another */
#ddai-chatbot-widget .ddw .dd-chip, #ddai-chatbot-widget .ddw .dd-qr-b {
  background: #fff; color: var(--cs-navy); font-weight: 650;
  box-shadow: inset 0 0 0 1.5px var(--cs-ring), 0 4px 10px -8px rgba(3, 47, 105, .4);
  transition: transform .25s var(--cs-spring), background .2s, color .2s, box-shadow .2s;
}
#ddai-chatbot-widget .ddw .dd-chip:hover, #ddai-chatbot-widget .ddw .dd-qr-b:hover {
  background: var(--cs-blue); color: #fff; transform: translateY(-2px);
  box-shadow: inset 0 0 0 1.5px var(--cs-blue), 0 8px 16px -8px rgba(11, 95, 227, .6);
}
#ddai-chatbot-widget .ddw .dd-chips { padding-top: 6px; }
#ddai-chatbot-widget .ddw.ddw-open .dd-chip { animation: cs-chip .5s var(--cs-spring) .32s both; }
#ddai-chatbot-widget .ddw.ddw-open .dd-chip:nth-child(2) { animation-delay: .38s; }
#ddai-chatbot-widget .ddw.ddw-open .dd-chip:nth-child(3) { animation-delay: .44s; }
#ddai-chatbot-widget .ddw.ddw-open .dd-chip:nth-child(4) { animation-delay: .5s; }
#ddai-chatbot-widget .ddw.ddw-open .dd-chip:nth-child(5) { animation-delay: .56s; }
#ddai-chatbot-widget .ddw .dd-qr-b { animation: cs-chip .45s var(--cs-spring) .1s both; }
#ddai-chatbot-widget .ddw .dd-qr-b:nth-child(2) { animation-delay: .16s; }
#ddai-chatbot-widget .ddw .dd-qr-b:nth-child(3) { animation-delay: .22s; }
@keyframes cs-chip { from { opacity: 0; transform: translateY(12px) scale(.85); } to { opacity: 1; transform: none; } }

/* "Talk to a human": a quiet pill with a headset icon */
#ddai-chatbot-widget .ddw .dd-ho-btn { gap: 6px; box-shadow: none; font-weight: 650; color: var(--cs-blue) !important; transition: background .2s, box-shadow .2s; }
#ddai-chatbot-widget .ddw .dd-ho-btn::before {
  content: ""; flex: none; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14v-2a8 8 0 0 1 16 0v2'/%3E%3Cpath d='M4 14h3v6H5a1 1 0 0 1-1-1z'/%3E%3Cpath d='M20 14h-3v6h2a1 1 0 0 0 1-1z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14v-2a8 8 0 0 1 16 0v2'/%3E%3Cpath d='M4 14h3v6H5a1 1 0 0 1-1-1z'/%3E%3Cpath d='M20 14h-3v6h2a1 1 0 0 0 1-1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
#ddai-chatbot-widget .ddw .dd-ho-btn:hover { background: #fff !important; box-shadow: inset 0 0 0 1.5px var(--cs-ring); }

/* composer */
#ddai-chatbot-widget .ddw .dd-foot { background: #fff; border-top: 1px solid var(--cs-line); }
#ddai-chatbot-widget .ddw.ddw-open .dd-foot { animation: cs-up .5s var(--cs-out) .3s both; }
@keyframes cs-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
#ddai-chatbot-widget .ddw .dd-foot input { background: var(--cs-paper); border-radius: 14px; transition: box-shadow .2s, background .2s; }
#ddai-chatbot-widget .ddw .dd-foot input:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--cs-blue), 0 0 0 4px rgba(11, 95, 227, .12); outline: none; }
#ddai-chatbot-widget .ddw .dd-send, #ddai-chatbot-widget .ddw .dd-send:hover { background: linear-gradient(135deg, var(--cs-blue), var(--cs-navy)); border-radius: 14px; }
#ddai-chatbot-widget .ddw .dd-send { transition: transform .25s var(--cs-spring), filter .2s; }
#ddai-chatbot-widget .ddw .dd-send:hover { filter: brightness(1.12); transform: translateY(-1px); }
#ddai-chatbot-widget .ddw .dd-send:active { transform: scale(.92); }
#ddai-chatbot-widget .ddw .dd-send .ddw-i { transition: transform .3s var(--cs-spring); }
#ddai-chatbot-widget .ddw .dd-send:hover .ddw-i { transform: translateX(2px); }
#ddai-chatbot-widget .ddw .dd-chips-toggle, #ddai-chatbot-widget .ddw .dd-mic { color: var(--cs-blue); }
#ddai-chatbot-widget .ddw .ddw-legal { background: #fff; color: #5A6372; }

/* phones: the window is a full-screen sheet that slides up */
@media (max-width: 480px) {
  #ddai-chatbot-widget .ddw:not(.ddw-card) .ddw-win { border-radius: 0; }
  #ddai-chatbot-widget .ddw:not(.ddw-card).ddw-open .ddw-win { animation: cs-sheet .5s var(--cs-out) both; }
}
@keyframes cs-sheet { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  #ddai-chatbot-widget .ddw, #ddai-chatbot-widget .ddw *, #ddai-chatbot-widget .ddw *::before, #ddai-chatbot-widget .ddw *::after { animation: none !important; }
  #ddai-chatbot-widget .ddw .ddw-head::before { transform: none; }
}
