/* ==========================================================================
   HPE, Inc. — site styles
   ========================================================================== */

:root {
    --red: #dd1e36;
    --red-dark: #b8172b;
    --ink: #231f20;
    --ink-soft: #4a4546;
    --gray-100: #f4f3f2;
    --gray-200: #e6e4e3;
    --gray-400: #a5a1a0;
    --gray-600: #6b6667;
    --white: #fff;

    --font: Barlow, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-display: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --section: clamp(56px, 8vw, 112px);
    --radius: 4px;
    --header-h: 76px;
    --shadow: 0 10px 30px rgb(35 31 32 / 0.08);

    /* Drafting grid (96px major / 24px minor) used by .cad-texture. */
    --cad-grid:
        linear-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 0.07) 1px, transparent 1px),
        linear-gradient(rgb(255 255 255 / 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 0.03) 1px, transparent 1px);
    --cad-grid-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
}

/* Fonts (self-hosted Barlow, SIL OFL — see /assets/fonts/OFL.txt) ------- */

@font-face { font-family: Barlow; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: Barlow; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400-italic.woff2") format("woff2"); }
@font-face { font-family: Barlow; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: Barlow; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: Barlow; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-semi-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-semi-condensed-700.woff2") format("woff2"); }

/* Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img, picture, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 0.5em; font-weight: 700; }

/* Labels, buttons and figures share the condensed display face. */
.eyebrow, .button, .text-link, .main-nav ul a, .site-header__phone, .breadcrumbs,
.contact-info__big, .site-footer__heading, .field label {
    font-family: var(--font-display);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.625rem, 3vw, 2.375rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--red); text-underline-offset: 0.18em; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

address { font-style: normal; margin-bottom: 0.5em; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }

.visually-hidden, .hp-field {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 100;
    background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: var(--white); }

.eyebrow {
    font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--red); margin-bottom: 0.75em;
}

.text-link { font-weight: 700; text-decoration: none; white-space: nowrap; }
.text-link::after { content: " \2192"; }

/* Buttons --------------------------------------------------------------- */

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 26px;
    font: inherit; font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    text-decoration: none; color: var(--white); background: var(--red);
    border: 2px solid var(--red); border-radius: var(--radius); cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.button:hover { color: var(--white); background: var(--red-dark); border-color: var(--red-dark); }
.button--small { min-height: 40px; padding: 8px 18px; font-size: 0.8125rem; }
.button--outline { color: var(--ink); background: transparent; border-color: var(--ink); }
.button--outline:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }
.button--ghost { background: transparent; border-color: rgb(255 255 255 / 0.7); }
.button--ghost:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.button--light { color: var(--red); background: var(--white); border-color: var(--white); }
.button--light:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }

/* Header ---------------------------------------------------------------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow 0.2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.site-header__logo { flex: none; }
.site-header__logo img { width: auto; height: 42px; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a {
    position: relative; display: block; padding: 6px 0;
    font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.02em; color: var(--ink); text-decoration: none;
}
.main-nav ul a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.2s;
}
.main-nav ul a:hover::after, .main-nav ul a[aria-current="page"]::after { transform: scaleX(1); }

.site-header__phone {
    display: none; align-items: center; gap: 6px;
    font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.site-header__phone svg { color: var(--red); }

.nav-toggle { display: none; }

@media (min-width: 1100px) {
    .site-header__phone { display: inline-flex; order: 3; }
    .main-nav { order: 2; }
}

@media (max-width: 899px) {
    .site-header__logo img { height: 34px; }
    .site-header__phone { display: inline-flex; margin-left: auto; }
    .site-header__phone span { display: none; }
    .site-header__phone svg { width: 22px; height: 22px; }

    .nav-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; margin-right: -10px; padding: 0;
        background: none; border: 0; cursor: pointer; color: var(--ink);
    }
    .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
        display: block; width: 24px; height: 2px; background: currentColor; transition: transform 0.2s, opacity 0.2s;
    }
    .nav-toggle__bars { position: relative; }
    .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
    .nav-toggle__bars::before { top: -7px; }
    .nav-toggle__bars::after { top: 7px; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

    .main-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px var(--gutter) 24px;
        background: var(--white); border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow);
        display: none;
    }
    .main-nav.is-open { display: flex; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav ul a { padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--gray-200); }
    .main-nav ul a::after { display: none; }
    .main-nav ul a[aria-current="page"] { color: var(--red); }
    .main-nav .button { margin-top: 20px; min-height: 48px; }
}

/* Home hero ------------------------------------------------------------- */

.hero {
    position: relative; isolation: isolate;
    display: flex; align-items: flex-end;
    min-height: min(84vh, 760px);
    color: var(--white); overflow: hidden;
}
.hero__media, .hero__media img, .hero__video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__media { z-index: -1; }
.hero__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgb(20 18 18 / 0.72) 0%, rgb(20 18 18 / 0.35) 45%, rgb(20 18 18 / 0) 80%),
                linear-gradient(0deg, rgb(20 18 18 / 0.35), transparent 40%);
}
.hero__video { opacity: 0; transition: opacity 0.8s; }
.hero__video.is-playing { opacity: 1; }
.hero__inner { padding-block: clamp(80px, 12vw, 140px) clamp(48px, 8vw, 96px); }
.hero h1 { max-width: 18ch; margin-bottom: 0.4em; }
.hero .eyebrow { color: var(--white); opacity: 0.85; }
.hero .eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; margin-right: 12px; vertical-align: middle; background: var(--red); }
.hero__lead { max-width: 52ch; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: rgb(255 255 255 / 0.88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
/* Phones: a shorter hero so the next section peeks in. svh = height with the browser UI showing. */
@media (max-width: 699px) {
    .hero { min-height: min(72vh, 600px); min-height: min(72svh, 600px); }
    .hero__inner { padding-top: 56px; }
}

/* Interior page hero ---------------------------------------------------- */

.page-hero {
    position: relative; isolation: isolate;
    background: var(--ink); color: var(--white);
    padding-block: clamp(48px, 8vw, 96px);
}
.page-hero--image { min-height: clamp(320px, 42vw, 480px); display: flex; align-items: flex-end; }
.page-hero__media, .page-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero__media { z-index: -1; }
.page-hero__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgb(20 18 18 / 0.88), rgb(20 18 18 / 0.45));
}

.page-hero h1 { margin-bottom: 0.3em; }
.page-hero__intro { max-width: 60ch; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: rgb(255 255 255 / 0.85); }

.breadcrumbs { font-size: 0.875rem; margin-bottom: 16px; color: rgb(255 255 255 / 0.7); }
.breadcrumbs a { color: rgb(255 255 255 / 0.85); text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); text-decoration: underline; }
.breadcrumbs span[aria-hidden] { margin-inline: 6px; }

/* Sections -------------------------------------------------------------- */

.section { padding-block: var(--section); }
.section--tint { background: var(--gray-100); }
.section--dark { background: var(--ink); color: var(--white); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }

.split { display: grid; gap: 24px 64px; }
.split__title { margin: 0; }
.split__body { font-size: 1.125rem; color: var(--ink-soft); }
@media (min-width: 900px) {
    .split { grid-template-columns: 5fr 7fr; }
    .split__title { border-left: 4px solid var(--red); padding-left: 24px; }
}

/* Cards ----------------------------------------------------------------- */

.card-grid { display: grid; gap: 24px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgb(35 31 32 / 0.06); transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card__link { display: block; height: 100%; color: inherit; text-decoration: none; }
.card__link:hover { color: inherit; }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--gray-200); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 24px 24px 28px; border-top: 4px solid var(--red); }
.card__body p { color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
    .card, .card__media img { transition: none; }
    .card:hover, .card:hover .card__media img { transform: none; }
}

/* Feature rows ---------------------------------------------------------- */

.feature { display: grid; gap: 28px 64px; align-items: center; }
.feature + .feature { margin-top: clamp(56px, 7vw, 96px); }
.feature__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--gray-200); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body p { color: var(--ink-soft); font-size: 1.125rem; }
.feature__body .button { margin-top: 12px; }
.feature__body h2 { position: relative; padding-top: 20px; }
.feature__body h2::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 4px; background: var(--red); }
.feature__body .eyebrow + h2 { padding-top: 0; }
.feature__body .eyebrow + h2::before { display: none; }
@media (min-width: 900px) {
    .feature { grid-template-columns: 1fr 1fr; }
    .feature--reverse .feature__media { order: 2; }
}

/* Lists ----------------------------------------------------------------- */


.lists { display: grid; gap: 48px 64px; }
@media (min-width: 800px) { .lists { grid-template-columns: 1fr 1fr; } }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid rgb(255 255 255 / 0.14); }
.check-list li::before {
    content: ""; position: absolute; left: 2px; top: 20px; width: 14px; height: 8px;
    border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg);
}
.check-list--dark li { border-bottom-color: var(--gray-200); }
.check-list__meta { display: block; margin-top: 2px; font-size: 0.8125rem; color: rgb(255 255 255 / 0.5); }

.link-list { padding-left: 1.2em; }
.link-list li { margin-bottom: 6px; }

/* Team ------------------------------------------------------------------ */

/* Flex rather than grid so an incomplete last row is centered. */
.team-grid { --cols: 1; --gap: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 40px var(--gap); list-style: none; margin: 0; padding: 0; }
.team-card { width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
@media (min-width: 560px) { .team-grid { --cols: 2; --gap: 24px; } }
@media (min-width: 900px) { .team-grid { --cols: 3; --gap: 32px; } }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; background: var(--gray-200); }
.team-card h3 { margin-bottom: 2px; }
.team-card__title { color: var(--gray-600); margin-bottom: 6px; }
.team-card a { font-size: 0.9375rem; overflow-wrap: anywhere; }

.gallery { display: grid; gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

/* Contact & forms ------------------------------------------------------- */

.contact-layout { display: grid; gap: 48px 72px; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 4fr 7fr; } }

.contact-strip { background: var(--gray-100); border-bottom: 1px solid var(--gray-200); }
.contact-strip__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.contact-strip__item { padding: 32px 0; }
.contact-strip__item + .contact-strip__item { border-top: 1px solid var(--gray-200); }
@media (min-width: 760px) {
    .contact-strip__item { padding: 40px 32px; }
    .contact-strip__item:first-child { padding-left: 0; }
    .contact-strip__item + .contact-strip__item { border-top: 0; border-left: 1px solid var(--gray-200); }
}
.contact-strip h2, .contact-info__note h3 {
    font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; color: var(--gray-600);
}
.contact-strip p { margin: 4px 0 0; color: var(--ink-soft); }
.contact-strip address { margin-bottom: 4px; }
.contact-strip__email { font-size: 1.25rem; font-weight: 600; overflow-wrap: anywhere; }

.quote-info > h2 { margin-bottom: 24px; }
.contact-info__big { font-size: 1.75rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.contact-info__note { padding: 24px; background: var(--gray-100); border-left: 4px solid var(--red); }

.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 24px; margin: 0; }
.hours dd { margin: 0; }

.form-panel { padding: clamp(24px, 4vw, 48px); background: var(--gray-100); border-radius: var(--radius); }
.form-panel > h2 { font-size: 1.5rem; }

.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label { font-weight: 600; font-size: 0.9375rem; padding: 0; }
.req { color: var(--red); }

.field input, .field textarea {
    width: 100%; min-height: 48px; padding: 12px 14px;
    font: inherit; font-size: 1rem; color: var(--ink);
    background: var(--white); border: 1px solid var(--gray-400); border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(221 30 54 / 0.25); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-error { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--red-dark); }


.form .button { justify-self: start; }
.form-note { margin: 0; font-size: 0.875rem; color: var(--gray-600); }

.notice { padding: 16px 20px; margin-bottom: 24px; border-radius: var(--radius); font-weight: 600; }
.notice--success { background: #e7f4ea; color: #1d5b2c; border-left: 4px solid #2e8b47; }
.notice--error { background: #fdecee; color: var(--red-dark); border-left: 4px solid var(--red); }

.map iframe { width: 100%; height: clamp(320px, 40vw, 460px); border: 0; filter: grayscale(0.35); }

/* CTA band -------------------------------------------------------------- */

.cta-band { background: var(--red); color: var(--white); padding-block: clamp(40px, 6vw, 64px); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin-bottom: 0.25em; }
.cta-band p { color: rgb(255 255 255 / 0.9); max-width: 56ch; }

/* Footer ---------------------------------------------------------------- */

.site-footer { background: #161414; color: rgb(255 255 255 / 0.75); font-size: 0.9375rem; padding-top: 64px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 0.8fr; } }
.site-footer__brand img { width: auto; height: 50px; max-width: 100%; margin-bottom: 20px; }
.site-footer__brand p { max-width: 34ch; }
.site-footer__heading { font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.site-footer__links, .social { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.social { margin-top: 16px; }
.site-footer__hours { margin-top: 12px; }
.site-footer__legal { padding-block: 20px; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 0.8125rem; color: rgb(255 255 255 / 0.55); }

.field-hint { margin: -2px 0 2px; font-size: 0.875rem; color: var(--gray-600); }
.contact-info__note .check-list { margin-bottom: 16px; }
.contact-info__files { font-size: 0.9375rem; }

/* CAD texture: drafting grid background, plus (via cad_drawing() in functions.php) an inline
   wireframe of the HPE toolpath as shown on the shop's CNC control. Works on red or dark
   backgrounds. Drawing source: _assets/source/make_hpe_svg.py */
.cad-texture {
    position: relative; isolation: isolate; overflow: hidden;
    background-image: var(--cad-grid);
    background-size: var(--cad-grid-size);
    background-position: -1px -1px;
}

.cad-drawing {
    position: absolute; z-index: -1; top: 50%; transform: translateY(-50%);
    right: max(-40px, calc(27vw - 760px));
    width: clamp(440px, 46vw, 700px); height: auto;
    pointer-events: none;
}
/* In the shorter CTA band, a smaller drawing is centred in the gap between the text (max 56ch)
   and the button. That gap's centre sits ~205px right of the page centre at every width; the
   extra -35px offsets the drawing's own empty margin on the left (axis labels). */
.cad-drawing--cta { width: 460px; right: auto; left: calc(50% + 170px); transform: translate(-50%, -50%); }
/* Smaller screens: the drawing shrinks into a free corner. Strokes are thickened (and the tiny
   axis numbers hidden) so the lines stay visible at roughly a fifth of the full size. */
@media (max-width: 1099px) {
    /* CTA: the button drops below the text, and the drawing sits in the bottom-right corner. */
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
    .cad-drawing--cta {
        width: 210px; left: auto; right: max(8px, calc(50vw - 560px)); top: auto; bottom: 10px; transform: none;
    }
    .cad-drawing--cta .cad-labels { display: none; }
    .cad-drawing--cta .cad-front { stroke-width: 4.5; }
    .cad-drawing--cta .cad-back, .cad-drawing--cta .cad-marks { stroke-width: 3.5; }
    .cad-drawing--cta .cad-depth, .cad-drawing--cta .cad-ax { stroke-width: 3; }
    .cad-drawing--cta .cad-rapid { stroke-width: 3; stroke-dasharray: 10 14; }
}
@media (max-width: 699px) {
    .cad-drawing--cta { width: 165px; bottom: 14px; }

    /* Contact header on phones: small, top-right, beside the short heading. */
    .page-hero .cad-drawing { width: 160px; top: 14px; right: 8px; transform: none; }
    .page-hero .cad-drawing .cad-labels { display: none; }
    .page-hero .cad-drawing .cad-front { stroke-width: 5.5; }
    .page-hero .cad-drawing .cad-back, .page-hero .cad-drawing .cad-marks { stroke-width: 4; }
    .page-hero .cad-drawing .cad-depth, .page-hero .cad-drawing .cad-ax { stroke-width: 3.5; }
    .page-hero .cad-drawing .cad-rapid { stroke-width: 3.5; stroke-dasharray: 12 16; }
}

/* Trace-on animation. Only with JS (main.js adds .is-drawn when the drawing scrolls into
   view) and only for visitors who haven't asked for reduced motion; otherwise it's static. */
@media (prefers-reduced-motion: no-preference) {
    .js .cad-drawing .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
    .js .cad-drawing .fade { opacity: 0; }
    .js .cad-drawing.is-drawn .draw {
        stroke-dashoffset: 0;
        transition: stroke-dashoffset var(--t, 0.8s) ease-in-out var(--d, 0s);
    }
    .js .cad-drawing.is-drawn .fade {
        opacity: 1;
        transition: opacity 0.6s ease var(--d, 0s);
    }
}
