/* ==========================================================================
   DJM Global — site styles
   One stylesheet for every page. No framework.
   ========================================================================== */

:root {
    /* Brand — logo blues and navy */
    --navy-950: #071a2c;
    --navy-900: #0b2540;
    --blue-700: #0a5c9c;
    --blue-600: #0b6fb8;
    --blue-100: #e8f2fa;

    --ink: #0f2233;
    --text: #354656;
    --muted: #5d6d7b;
    --line: #d9e2ea;
    --bg: #f4f7fa;
    --surface: #ffffff;

    --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --radius: 6px;
    --header-h: 84px;
    --gutter: clamp(16px, 4vw, 32px);
    --section: clamp(56px, 8vw, 104px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 1.6rem + 2.2vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.625rem, 1.35rem + 1.1vw, 2.25rem); letter-spacing: -.005em; }
h3 { font-size: clamp(1.15rem, 1.08rem + .3vw, 1.3rem); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
ul, ol { padding-left: 1.25em; }
strong { color: var(--ink); font-weight: 600; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 3px; }

.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: -100px; z-index: 100;
    background: var(--navy-900); color: #fff; padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 800px; }
.section { padding-block: var(--section); }
.section--white { background: var(--surface); }
.section + .section { border-top: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { margin: 0; }

.lead { font-size: clamp(1.125rem, 1.06rem + .25vw, 1.25rem); color: var(--ink); }

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: 11px 22px;
    font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
    color: #fff; background: var(--blue-600); border: 1px solid var(--blue-600); border-radius: 4px;
    cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { color: #fff; background: var(--blue-700); border-color: var(--blue-700); }
.btn--light { color: var(--navy-900); background: #fff; border-color: #fff; }
.btn--light:hover { color: var(--navy-900); background: var(--blue-100); border-color: var(--blue-100); }
.btn--ghost { background: transparent; border-color: rgb(255 255 255 / .75); }
.btn--ghost:hover { background: rgb(255 255 255 / .12); border-color: #fff; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.text-link { font-weight: 600; }

/* ---------- Header / navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 58px; width: auto; }

.nav-toggle {
    display: none; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; color: var(--navy-900);
    background: transparent; border: 1px solid var(--line); border-radius: 4px; cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.site-nav__list { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.site-nav__link {
    display: block; padding: 8px 10px;
    color: var(--ink); font-weight: 500; font-size: 1rem; text-decoration: none;
    border-bottom: 2px solid transparent;
}
.site-nav__link:hover { color: var(--blue-600); }
.site-nav__link[aria-current="page"], .site-nav__link[data-active] { color: var(--blue-600); border-bottom-color: var(--blue-600); }
.site-nav__cta { margin-left: 16px; }
.site-nav__cta .btn[aria-current="page"] { background: var(--navy-900); border-color: var(--navy-900); }

.has-menu { position: relative; }
.site-nav__split { display: flex; align-items: center; }
.site-nav__split .site-nav__link { padding-right: 2px; }
.site-nav__caret {
    display: grid; place-items: center; width: 30px; height: 40px; padding: 0;
    color: var(--ink); background: none; border: 0; cursor: pointer;
}
.site-nav__caret .icon { width: 18px; height: 18px; }
.site-nav__caret[aria-expanded="true"] .icon { transform: rotate(180deg); }
.submenu {
    position: absolute; top: calc(100% + 8px); left: -4px; min-width: 290px;
    list-style: none; margin: 0; padding: 6px 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
    box-shadow: 0 10px 24px rgb(11 37 64 / .1);
    display: none;
}
.submenu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.submenu a { display: block; padding: 9px 16px; color: var(--ink); font-size: .9375rem; text-decoration: none; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--blue-100); color: var(--blue-700); }
.has-menu.is-open .submenu { display: block; }
@media (hover: hover) and (min-width: 1025px) {
    .has-menu:hover .submenu, .has-menu:focus-within .submenu { display: block; }
}

@media (max-width: 1024px) {
    :root { --header-h: 68px; }
    .brand img { height: 48px; }
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: fixed; inset: var(--header-h) 0 auto; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
        background: var(--surface); border-bottom: 1px solid var(--line);
        padding: 8px var(--gutter) 24px;
        display: none;
    }
    .site-nav.is-open { display: block; }
    .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav__list > li { border-bottom: 1px solid var(--line); }
    .site-nav__list > .site-nav__cta { border-bottom: 0; }
    .site-nav__link { padding: 14px 0; font-size: 1.0625rem; border-bottom: 0; }
    .site-nav__split { justify-content: space-between; }
    .site-nav__split .site-nav__link { flex: 1; }
    .site-nav__caret { width: 48px; height: 48px; }
    .submenu { position: static; min-width: 0; padding: 0 0 10px; border: 0; box-shadow: none; background: none; }
    .submenu::before { display: none; }
    .submenu a { padding: 10px 0 10px 16px; }
    .site-nav__cta { margin: 16px 0 0; }
    .site-nav__cta .btn { width: 100%; }
}

/* ---------- Home hero ---------- */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    color: #fff; background: var(--navy-900);
    padding-block: clamp(72px, 11vw, 152px);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgb(7 26 44 / .85) 0%, rgb(7 26 44 / .6) 55%, rgb(7 26 44 / .2) 100%);
}
.hero__content { max-width: 660px; }
.hero h1 { color: #fff; font-size: clamp(2.375rem, 1.7rem + 3vw, 3.75rem); line-height: 1.1; margin-bottom: 24px; }
.hero p { color: rgb(255 255 255 / .9); font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }

/* ---------- Inner page hero ---------- */
.page-hero {
    position: relative; isolation: isolate; overflow: hidden;
    background: var(--navy-900); color: #fff;
    padding-block: clamp(56px, 8vw, 104px);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.page-hero--image::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgb(7 26 44 / .88) 0%, rgb(7 26 44 / .66) 60%, rgb(7 26 44 / .4) 100%);
}
.page-hero h1 { color: #fff; max-width: 820px; margin-bottom: 0; }
.page-hero__lead { max-width: 640px; margin-top: 16px; color: rgb(255 255 255 / .88); font-size: 1.125rem; }
.crumb { margin: 0 0 12px; font-size: .9375rem; color: rgb(255 255 255 / .75); }
.crumb a { color: #fff; text-decoration: underline; text-decoration-color: rgb(255 255 255 / .4); }
.crumb a:hover { color: #fff; text-decoration-color: #fff; }

/* ---------- Media frames & galleries ---------- */
.media { display: grid; gap: 10px; }
.media__frame { position: relative; overflow: hidden; border-radius: var(--radius); background: #e9eff4; }
.media[data-tone="white"] .media__frame { background: #fff; border: 1px solid var(--line); }
.media[data-tone="dark"] .media__frame { background: var(--navy-900); }
.media[data-tone="light"] .media__frame { background: #eaf1f7; }
.media__slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.media__slide.is-active { opacity: 1; visibility: visible; }
.media__slide > img { width: 100%; height: 100%; }
.media__slide[data-fit="cover"] > img { object-fit: cover; }
.media__slide[data-fit="contain"] > img { object-fit: contain; padding: clamp(14px, 5%, 32px); }
.media__slide[data-fit="blur"] > img { object-fit: contain; position: relative; }
.media__slide[data-fit="blur"] > .media__backdrop {
    position: absolute; inset: 0; object-fit: cover; filter: blur(28px) brightness(.8); transform: scale(1.15);
}
.media__thumbs { display: flex; gap: 8px; }
.media__thumb {
    width: 72px; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; cursor: pointer;
    background: #e9eff4; border: 1px solid var(--line); border-radius: 3px; opacity: .65;
}
.media__thumb img { width: 100%; height: 100%; object-fit: cover; }
.media__thumb:hover { opacity: 1; }
.media__thumb[aria-pressed="true"] { opacity: 1; border-color: var(--blue-600); box-shadow: 0 0 0 1px var(--blue-600); }

/* Inset: whole image, never upscaled */
.media__slide[data-fit="inset"] > img {
    position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 100%; max-height: 100%;
    border-radius: var(--radius);
}

/* Spot: no panel — a small square of colour sits behind the centre of the product */
.media[data-spot] .media__frame { background: none; overflow: visible; border: 0; }
.media[data-spot] .media__frame::before {
    content: ""; position: absolute; inset: 0; margin: auto; height: 72%; aspect-ratio: 1; max-width: 100%;
    border-radius: 10px; background: #d9e8f4;
}
.media[data-spot][data-tone="dark"] .media__frame::before { background: var(--navy-900); }
.media[data-spot] .media__slide[data-fit="contain"] > img { padding: 2%; }

/* Swap: second image appears on hover (pointer devices), tap or keyboard toggle */
.media[data-swap] .media__frame { cursor: pointer; }
.media[data-swap] .media__frame.is-swapped .media__slide:first-child { opacity: 0; visibility: hidden; }
.media[data-swap] .media__frame.is-swapped .media__slide:last-child { opacity: 1; visibility: visible; }
@media (hover: hover) {
    .media[data-swap] .media__frame:hover .media__slide:first-child { opacity: 0; visibility: hidden; }
    .media[data-swap] .media__frame:hover .media__slide:last-child { opacity: 1; visibility: visible; }
}

.media--video .media__frame { background: #000; }
.media--video video { width: 100%; height: 100%; object-fit: contain; background: #000; }

/* ---------- Feature rows (text + media) ---------- */
.feature {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(32px, 6vw, 80px); align-items: center;
}
.feature + .feature { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.feature--reverse .feature__media { order: -1; }
.feature__body h2 { font-size: clamp(1.5rem, 1.3rem + .9vw, 2rem); }
.feature__body > .feature__sub { margin-top: -4px; font-size: 1.125rem; font-weight: 500; color: var(--blue-600); }
.feature__label { margin: 24px 0 10px; font-weight: 600; color: var(--ink); }
@media (max-width: 860px) {
    .feature { grid-template-columns: 1fr; }
    .feature--reverse .feature__media, .feature__media { order: -1; }
}

/* ---------- Lists ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { width: 20px; height: 20px; margin-top: 4px; color: var(--blue-600); stroke-width: 2.5; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(32px, 4vw, 48px) clamp(20px, 3vw, 36px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

/* Product / item entries: image, then numbered heading and text — no boxes */
.item { display: flex; flex-direction: column; }
.item__body { padding-top: 18px; }
.item__body h3 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.item__body p { font-size: 1rem; }
.num { flex: none; font-size: .9375rem; font-weight: 600; color: var(--blue-600); font-variant-numeric: tabular-nums; }

/* Solution links — image with title and one line beneath */
.solution-card { display: block; color: var(--text); text-decoration: none; }
.solution-card__img { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--navy-900); }
.solution-card__img img { width: 100%; height: 100%; object-fit: cover; }
.solution-card h2, .solution-card h3 { margin: 16px 0 4px; font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem); color: var(--ink); }
.solution-card p { margin: 0; color: var(--muted); font-size: 1rem; }
.solution-card:hover h2, .solution-card:hover h3 { color: var(--blue-600); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.solution-card:hover { color: var(--text); }
.grid--solutions-lg .solution-card h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.photo { overflow: hidden; border-radius: var(--radius); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--square { aspect-ratio: 1; }
/* Cutout photo: a smaller, slightly rotated blue square sits behind the image */
.photo--cutout { position: relative; isolation: isolate; overflow: visible; background: none; }
.photo--cutout::before {
    content: ""; position: absolute; z-index: -1; inset: 0; margin: auto;
    width: 68%; height: 68%; border-radius: 10px; background: #d9e8f4;
    transform: rotate(-7deg);
}
.photo--cutout img { position: relative; object-fit: contain; padding: 4%; }

.philosophy { position: relative; max-width: 420px; margin-inline: auto; }
.philosophy .photo { position: relative; z-index: 1; aspect-ratio: 2 / 3; }
.philosophy__ring { position: absolute; z-index: 0; width: 52%; right: -12%; top: -8%; }
@media (max-width: 860px) { .philosophy { max-width: 340px; } .philosophy__ring { right: -2%; top: -6%; width: 46%; } }

.statements { display: grid; gap: 28px; }
.statement { padding-top: 18px; border-top: 2px solid var(--ink); }
.statement h3 { margin-bottom: 8px; }
.statement p { font-size: 1.0625rem; }
.statement--wide { margin-top: clamp(32px, 4vw, 48px); max-width: 860px; }

/* ---------- Marine ---------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li {
    counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 12px;
    padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); font-weight: 600; color: var(--blue-600); font-variant-numeric: tabular-nums; }
.how { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
@media (max-width: 960px) { .how { grid-template-columns: 1fr; } }

.benefits { display: block; columns: 2; column-gap: 48px; max-width: 860px; }
.benefits li { break-inside: avoid; margin-bottom: 10px; }
@media (max-width: 560px) { .benefits { columns: 1; } }

.note { margin-top: clamp(40px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); font-size: 1.125rem; color: var(--ink); }

/* ---------- Prose (privacy policy etc.) ---------- */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.prose h3 { margin-top: 1.8em; }
.prose h4 { font-size: 1.0625rem; margin-top: 1.5em; }
.prose ul { margin: 0 0 1.25em; }
.prose li { margin-bottom: .5em; }
.prose li > p { margin: 0; }
.prose > :first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose a { word-break: break-word; }
.meta { color: var(--muted); font-size: .9375rem; }

/* ---------- Contact ---------- */
.form-card { max-width: 820px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.form-card iframe { display: block; width: 100%; height: 1780px; border: 0; }
@media (max-width: 640px) { .form-card iframe { height: 1900px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgb(255 255 255 / .75); padding-top: clamp(48px, 6vw, 72px); font-size: .9375rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer__brand img { width: 240px; height: auto; margin-bottom: 20px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer h2 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgb(255 255 255 / .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__base {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
    margin-top: clamp(40px, 5vw, 56px); padding-block: 20px; border-top: 1px solid rgb(255 255 255 / .12);
    font-size: .875rem; color: rgb(255 255 255 / .6);
}
.site-footer__base p { margin: 0; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .site-footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ==========================================================================
   Phones
   ========================================================================== */
html.nav-open { overflow: hidden; }

@media (max-width: 1024px) {
    /* Menu fills the screen below the header */
    .site-nav { bottom: 0; max-height: none; }
}

@media (max-width: 680px) {
    :root { --section: 48px; }
    body { font-size: 1rem; }
    .lead { font-size: 1.0625rem; }
    .section-head { margin-bottom: 24px; }

    .hero { padding-block: 48px 56px; }
    .hero h1 { margin-bottom: 16px; }
    .page-hero { padding-block: 40px 44px; }
    .crumb { margin-bottom: 6px; }
    .crumb a { display: inline-block; padding: 6px 0; }

    /* Home: solution links become compact rows (image beside title) */
    .grid--solutions-compact { gap: 0; }
    .grid--solutions-compact .solution-card {
        display: grid; grid-template-columns: 112px 1fr; gap: 0 16px; align-items: center;
        padding: 14px 0; border-bottom: 1px solid var(--line);
    }
    .grid--solutions-compact .solution-card:first-child { border-top: 1px solid var(--line); }
    .grid--solutions-compact .solution-card__img { border-radius: 4px; }
    .grid--solutions-compact .solution-card h3 { margin: 0 0 2px; font-size: 1.0625rem; }
    .grid--solutions-compact .solution-card p { font-size: .9375rem; line-height: 1.45; }

    /* About: keep supporting images in proportion to the text */
    .photo--cutout.photo--square { aspect-ratio: 4 / 3; }
    .philosophy { max-width: 260px; }

    .feature + .feature { margin-top: 40px; padding-top: 40px; }
    .feature__label { margin-top: 20px; }
    .item__body { padding-top: 14px; }
    .steps li { padding: 12px 0; }

    /* Contact: the Google Form has its own card styling, so use the full width */
    .form-card { margin-inline: calc(var(--gutter) * -1); border: 0; border-radius: 0; background: none; }

    /* Footer: bigger tap areas */
    .site-footer ul { gap: 0; }
    .site-footer li a { display: inline-block; padding: 7px 0; }
    .site-footer__base { flex-direction: column; }
}

@media (max-width: 480px) {
    .hero .btn-row, .feature .btn-row { flex-direction: column; }
    .hero .btn-row .btn, .feature .btn-row .btn { width: 100%; }
}

/* ==========================================================================
   Motion
   ========================================================================== */
main { overflow-x: clip; } /* side slide-ins never cause sideways scrolling */

:root { --reveal-x: 48px; --reveal-y: 32px; }
@media (max-width: 680px) { :root { --reveal-x: 28px; --reveal-y: 24px; } }

.js [data-reveal] {
    opacity: 0;
    transition: opacity .8s ease, transform .9s cubic-bezier(.16, .84, .3, 1);
    transition-delay: var(--d, 0ms);
    will-change: opacity, transform;
}
.js [data-reveal="up"] { transform: translateY(var(--reveal-y)); }
.js [data-reveal="left"] { transform: translateX(calc(var(--reveal-x) * -1)); }
.js [data-reveal="right"] { transform: translateX(var(--reveal-x)); }
.js [data-reveal].is-visible { opacity: 1; transform: none; will-change: auto; }

/* Hero and page titles animate in on load */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero__content > *, .page-hero__inner > * { animation: rise .9s cubic-bezier(.16, .84, .3, 1) both; }
.hero__content > :nth-child(2), .page-hero__inner > :nth-child(2) { animation-delay: .12s; }
.hero__content > :nth-child(3), .page-hero__inner > :nth-child(3) { animation-delay: .24s; }
.hero__bg img, .page-hero__bg img { animation: settle 1.8s cubic-bezier(.16, .84, .3, 1) both; }
.hero::before, .page-hero--image::before { animation: fade 1s ease both; }

/* Small hover touches */
.solution-card__img img { transition: transform .6s cubic-bezier(.16, .84, .3, 1); }
.solution-card:hover .solution-card__img img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .hero__content > *, .page-hero__inner > *, .hero__bg img, .page-hero__bg img, .hero::before, .page-hero--image::before { animation: none; }
    .solution-card:hover .solution-card__img img { transform: none; }
}

/* ==========================================================================
   Headings typeface + engineering grid on banners
   ========================================================================== */
:root {
    --font-display: "IBM Plex Sans Condensed", "IBM Plex Sans", system-ui, sans-serif;
    --grid-lines:
        linear-gradient(rgb(255 255 255 / .055) 1px, transparent 1px) 0 0 / 56px 56px,
        linear-gradient(90deg, rgb(255 255 255 / .055) 1px, transparent 1px) 0 0 / 56px 56px;
}

h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; line-height: 1.1; }
.prose h2 { font-family: var(--font); line-height: 1.2; }

.hero::after, .page-hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--grid-lines);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 60%); mask-image: linear-gradient(90deg, #000 0%, transparent 60%);
}
