/* ==========================================================================
   Critical Dimensions CNC — style.css
   Plain CSS, no build step. Tokens up top, components below.
   ========================================================================== */

:root {
  --ink: #16202b;        /* headings, primary text */
  --steel: #4a5867;      /* secondary text */
  --mill: #d3d9df;       /* rules, borders */
  --sheet: #f3f5f7;      /* light panels */
  --paper: #ffffff;
  --dykem: #2447a6;      /* layout-fluid blue: links, buttons, accents */
  --dykem-deep: #1a3580;
  --dykem-tint: #e9eef9;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --measure: 66ch;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 76px;

  --r: 2px;
  --t: 160ms ease;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--dykem); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--dykem-deep); }

:focus-visible { outline: 2px solid var(--dykem); outline-offset: 3px; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r);
}
.skip:focus { top: 8px; }

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 700;
  font-variation-settings: "wdth" 112;
}
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; font-variation-settings: "wdth" 105; }
h4 { font-size: 1.05rem; font-variation-settings: "wdth" 100; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
}
.muted { color: var(--steel); }

/* ---------- Layout ---------- */

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.section { padding: clamp(44px, 5.6vw, 76px) 0; }
.section--tight { padding: clamp(30px, 3.6vw, 48px) 0; }
.section--sheet { background: var(--sheet); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink a { color: #b9c8f2; }

.rule { border: 0; border-top: 1px solid var(--mill); margin: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(26px, 3.6vw, 56px);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.section-head { margin-bottom: clamp(20px, 2.8vw, 34px); }
.section-head p { color: var(--steel); }
.section-head p:last-child { margin-bottom: 0; }
.section-head .btn { margin-top: 4px; }

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

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font: inherit; font-weight: 600; font-size: 1rem;
  border-radius: var(--r);
  border: 1px solid var(--dykem);
  background: var(--dykem); color: #fff;
  text-decoration: none; cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.btn:hover { background: var(--dykem-deep); border-color: var(--dykem-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.section--ink .btn--ghost { color: #fff; border-color: #fff; }
.section--ink .btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--sm { padding: 10px 16px; font-size: .95rem; }

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

.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mill);
}
.header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.brand__logo { width: auto; height: 46px; flex: none; }
@media (max-width: 560px) { .brand__logo { height: 36px; } }
.brand__name {
  font-weight: 700; font-size: 1.05rem; line-height: 1.05; letter-spacing: -0.01em;
  font-variation-settings: "wdth" 112;
}
.brand__name small { display: block; font-weight: 500; font-size: .8rem; color: var(--steel); letter-spacing: .02em; font-variation-settings: "wdth" 100; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: var(--r); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--dykem); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--dykem); }

.nav__item { position: relative; }
.nav__toggle {
  font: inherit; font-weight: 500; color: var(--ink); background: none; border: 0;
  padding: 10px 12px; cursor: pointer; border-radius: var(--r);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav__toggle:hover { color: var(--dykem); }
.nav__toggle svg { width: 12px; height: 12px; transition: transform var(--t); }
.nav__item[data-open="true"] .nav__toggle svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 240px; padding: 8px;
  background: var(--paper); border: 1px solid var(--mill); border-radius: var(--r);
  box-shadow: 0 12px 30px rgba(22,32,43,.10);
  display: none; flex-direction: column;
}
.nav__item[data-open="true"] .nav__menu { display: flex; }
.nav__menu a { padding: 10px 12px; display: block; }
.nav .btn { display: none; }

.header__phone { color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.header__phone:hover { color: var(--dykem); }

.burger {
  display: none; background: none; border: 1px solid var(--mill); border-radius: var(--r);
  width: 44px; height: 44px; cursor: pointer; padding: 0; color: var(--ink);
}
.burger svg { width: 22px; height: 22px; margin: auto; }

@media (max-width: 1000px) {
  .header__phone { display: none; }
  .header .btn { display: none; }
  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--paper);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 40px;
    overflow-y: auto;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a, .nav__toggle { padding: 14px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--mill); width: 100%; text-align: left; justify-content: space-between; }
  .nav__menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
  .nav__menu a { font-size: 1.05rem; }
  .nav .btn { display: inline-flex; margin-top: 20px; justify-content: center; border-bottom: 1px solid var(--dykem); }
}

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

.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 48px;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.hero .wrap { position: relative; z-index: 1; width: min(var(--wrap), 100% - 2 * var(--gutter)); }
.hero__lead { max-width: 46rem; }
.hero__kicker { color: var(--steel); font-weight: 500; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.1rem, 4.1vw, 3.4rem); max-width: 15ch; }
.hero .lede { margin-top: 22px; max-width: 52ch; }

.hero__proof {
  display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 22px;
  color: var(--steel); font-size: .95rem;
}
.hero__proof strong { color: var(--ink); font-weight: 600; }

@media (max-width: 960px) {
  .hero { align-items: flex-start; padding-top: calc(var(--header-h) + 28px); }
  .hero h1 { max-width: none; }
}

/* ---------- Quote form (styled as a job traveler card) ---------- */

.traveler {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 8px 8px 0 var(--dykem-tint);
}
.traveler__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 16px 22px 14px;
  border-bottom: 1px solid var(--ink);
}
.traveler__head h2 { font-size: 1.2rem; margin: 0; }
.traveler__head span { color: var(--steel); font-size: .9rem; }
.traveler form { padding: 20px 22px 22px; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .92rem; font-weight: 600; }
.field label small { font-weight: 400; color: var(--steel); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 11px 12px; border: 1px solid var(--mill); border-radius: var(--r);
  background: var(--paper); width: 100%;
  transition: border-color var(--t), box-shadow var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--dykem); box-shadow: 0 0 0 3px var(--dykem-tint);
}
.field textarea { min-height: 96px; resize: vertical; }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: #b3261e; }
.field__err { color: #b3261e; font-size: .85rem; display: none; }
.field--invalid .field__err { display: block; }
.field input[type="file"] { padding: 8px; font-size: .92rem; }
.field input[type="file"]::file-selector-button {
  font: inherit; font-size: .9rem; font-weight: 600; margin-right: 10px;
  padding: 6px 12px; border: 1px solid var(--ink); border-radius: var(--r);
  background: var(--paper); color: var(--ink); cursor: pointer;
}
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 480px) { .fields-2 { grid-template-columns: 1fr; } }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.form__foot .btn { flex: none; }
.form__note { color: var(--steel); font-size: .9rem; margin: 0; }
.form__status { margin-top: 14px; padding: 12px 14px; border-radius: var(--r); font-size: .95rem; display: none; }
.form__status[data-state="ok"] { display: block; background: var(--dykem-tint); color: var(--dykem-deep); }
.form__status[data-state="err"] { display: block; background: #fdecea; color: #8c1d18; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Page header (inner pages) ---------- */

.page-head {
  padding: calc(var(--header-h) + clamp(36px, 5vw, 64px)) 0 clamp(30px, 4vw, 52px);
  background: var(--sheet);
  border-bottom: 1px solid var(--mill);
}
.page-head h1 { max-width: 18ch; }
.page-head .lede { max-width: 62ch; margin-top: 18px; }
.crumbs { font-size: .9rem; color: var(--steel); margin-bottom: 20px; }
.crumbs a { color: var(--steel); }
.crumbs span { margin: 0 8px; }

/* ---------- Spec panel ---------- */

.spec {
  border: 1px solid var(--ink); border-radius: var(--r); background: var(--paper);
  padding: 4px 0;
}
.spec dl { margin: 0; }
.spec div {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline;
  padding: 12px 20px; border-bottom: 1px solid var(--mill);
}
.spec div:last-child { border-bottom: 0; }
.spec dt { color: var(--steel); font-size: .92rem; margin: 0; }
.spec dd { margin: 0; font-weight: 600; text-align: right; font-variation-settings: "wdth" 105; }
.spec dd.big { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }

/* ---------- Stats row ---------- */

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--mill); border-radius: var(--r);
  margin-top: clamp(32px, 5vw, 56px);
}
.stats div { padding: 22px 24px; border-right: 1px solid var(--mill); }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font-size: 2rem; line-height: 1; font-weight: 700; letter-spacing: -0.02em; font-variation-settings: "wdth" 112; }
.stats span { color: var(--steel); font-size: .92rem; display: block; margin-top: 8px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--mill); }
}

/* ---------- Service rows ---------- */

.rows { border-top: 1px solid var(--ink); }
.row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) auto;
  gap: 16px 40px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--mill);
  color: inherit; text-decoration: none;
}
.row:hover .row__title { color: var(--dykem); }
.row__title { font-size: 1.25rem; font-weight: 700; font-variation-settings: "wdth" 108; letter-spacing: -0.01em; }
.row p { max-width: none; color: var(--steel); }
.row__go { color: var(--dykem); font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Checklist ---------- */

.checks {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px;
}
.checks li {
  position: relative; padding-left: 30px; line-height: 1.45;
}
.checks li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 14px; height: 14px; border: 1.5px solid var(--dykem); border-radius: 2px;
}
.checks li::after {
  content: ""; position: absolute; left: 4px; top: 8px;
  width: 4px; height: 8px; border: solid var(--dykem); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
@media (max-width: 700px) { .checks { grid-template-columns: 1fr; } }

/* ---------- Process steps (a real sequence, so numbered) ---------- */

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 0; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 64px 1fr; gap: 20px;
  padding: 17px 0; border-top: 1px solid var(--mill);
}
.steps li:last-child { border-bottom: 1px solid var(--mill); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 1.6rem; font-weight: 700; color: var(--dykem); line-height: 1;
  font-variation-settings: "wdth" 112; letter-spacing: -0.02em; padding-top: 2px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { max-width: 62ch; color: var(--steel); }

/* ---------- Drawing note callout ---------- */

.note {
  display: grid; grid-template-columns: auto 1fr; gap: 18px 28px; align-items: start;
  padding: 22px 24px; border: 1px solid var(--dykem); border-left-width: 6px;
  border-radius: var(--r); background: var(--paper);
}
.note h2, .note h3 { margin: 0; font-size: 1.35rem; max-width: 18ch; }
.note p { max-width: none; font-weight: 500; }
@media (max-width: 760px) { .note { grid-template-columns: 1fr; } .note h2, .note h3 { max-width: none; } }

/* ---------- Industries ---------- */

.ind {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--mill); border: 1px solid var(--mill); border-radius: var(--r); overflow: hidden;
}
.ind article { background: var(--paper); padding: 26px 26px 28px; }
.ind h3 { margin-bottom: 8px; }
.ind p { color: var(--steel); max-width: none; }
.ind a { display: block; color: inherit; text-decoration: none; }
.ind a:hover h3 { color: var(--dykem); }
@media (max-width: 900px) { .ind { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ind { grid-template-columns: 1fr; } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li a, .tags li span {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--mill); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.tags li a:hover { border-color: var(--dykem); color: var(--dykem); }

/* ---------- Contact strip ---------- */

.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px;
}
.contact-grid h3 { font-size: 1rem; color: var(--steel); font-weight: 500; margin-bottom: 6px; font-variation-settings: "wdth" 100; }
.contact-grid a, .contact-grid strong { font-size: 1.25rem; font-weight: 700; font-variation-settings: "wdth" 108; }
.contact-grid a { color: var(--ink); text-decoration: none; }
.contact-grid a:hover { color: var(--dykem); }
.contact-grid p { max-width: none; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Authority block ---------- */

.auth { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 3.4vw, 48px); align-items: center; }
.auth__src {
  padding: 24px; background: var(--sheet); border-radius: var(--r); border: 1px solid var(--mill);
  align-self: start;
}
.auth__src h3 { font-size: 1rem; margin-bottom: 8px; }
.auth__src p { color: var(--steel); font-size: .95rem; max-width: none; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--mill); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 44px 16px 0; position: relative;
  font-size: 1.15rem; font-weight: 600; font-variation-settings: "wdth" 104;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px;
  border: solid var(--dykem); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg);
  transition: transform var(--t);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
/* the panel is still animating shut here, so point the caret back down early */
.faq details[data-closing] summary::after { transform: translateY(-70%) rotate(45deg); }
.faq summary:hover { color: var(--dykem); }
.faq .faq__a { padding: 0 0 18px; color: var(--steel); }
.faq .faq__a p { max-width: 70ch; }

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

.cta { }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: center; }
.cta p { color: #c9d2dd; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .cta .wrap { grid-template-columns: 1fr; } }

/* ---------- Section artwork ----------
   Photographs used as atmosphere rather than as blocks: each one is masked with
   a gradient so it dissolves into the section's own background instead of
   ending on a hard edge. Per-section art, position, opacity and mask come in as
   custom properties, so one rule covers every placement. */

.section--art,
.section--grid { position: relative; isolation: isolate; overflow: hidden; }

.section--art::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--art);
  /* cover is the default, but a section can pull the photo back to show more of
     it; the uncovered strip sits under the transparent end of the mask */
  background-size: var(--art-size, cover);
  background-repeat: no-repeat;
  background-position: var(--art-pos, center);
  opacity: var(--art-o, .3);
  -webkit-mask-image: var(--art-mask, linear-gradient(90deg, transparent 22%, #000 88%));
  mask-image: var(--art-mask, linear-gradient(90deg, transparent 22%, #000 88%));
}

/* a drawing grid, faded out so it reads as paper texture, not as a pattern */
.section--grid::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(22,32,43,.05) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(22,32,43,.05) 47px 48px);
  -webkit-mask-image: var(--grid-mask, radial-gradient(130% 95% at 8% 0%, #000 10%, transparent 70%));
  mask-image: var(--grid-mask, radial-gradient(130% 95% at 8% 0%, #000 10%, transparent 70%));
}

/* panels sitting on artwork need to lift off it */
.section--art .spec,
.section--art .traveler { box-shadow: 0 18px 44px rgba(22,32,43,.16); }

/* ---------- Steps and prose on a dark section ---------- */

.section--ink .steps li { border-color: rgba(255,255,255,.16); }
.section--ink .steps li::before { color: #8fb0ff; }
.section--ink .steps p { color: #a9b6c5; }
.section--ink .prose p, .section--ink .lede { color: #c2ccd8; }

/* ---------- Cards on a dark section ---------- */

.section--ink .section-head p { color: #b3c0cf; }
.section--ink .card {
  background: #0d1925;
  border-color: rgba(255,255,255,.14);
  color: #e4eaf1;
}
.section--ink .card:hover {
  background: #122232;
  border-color: var(--dykem);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.section--ink .card__media { background: #0d1925; }
.section--ink .card__title { color: #fff; }
.section--ink .card:hover .card__title { color: #8fb0ff; }
.section--ink .card p { color: #a9b6c5; }
.section--ink .card__go { color: #8fb0ff; }

/* ---------- Testimonials ----------
   The two quotes differ a lot in length, so the longer one takes the wider
   column and both stretch to a shared height; the attribution is pinned to the
   foot of each card, which turns the leftover space into deliberate margin. */

.quotes {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(18px, 2.2vw, 28px);
  align-items: stretch;
}

.quote-card {
  display: flex; flex-direction: column;
  margin: 0;
  padding: clamp(22px, 2.4vw, 32px);
  background: #0d1925;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
}
.quote-card::before {
  content: "\201C";
  display: block;
  font-size: 3.4rem; line-height: .8;
  color: var(--dykem);
  margin-bottom: 10px;
}
.quote-card blockquote { margin: 0; }
.quote-card blockquote p {
  color: #c2ccd8; max-width: 62ch;
  font-size: 1rem; margin-bottom: 1em;
}
.quote-card blockquote p:last-child { margin-bottom: 0; }
.quote-card--lead blockquote p:first-child {
  color: #e8edf3; font-size: 1.1rem; font-weight: 500;
}
/* the shorter quote carries larger type: it evens the visual weight of the two
   cards and gives the punchier testimonial the emphasis it deserves */
.quote-card:not(.quote-card--lead) blockquote p {
  font-size: 1.12rem; line-height: 1.55; color: #dbe3ec;
}

.quote-card figcaption {
  margin-top: auto; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.quote-card figcaption strong {
  display: block; color: #fff;
  font-weight: 700; font-variation-settings: "wdth" 106;
}
.quote-card figcaption span { color: #8fa0b3; font-size: .92rem; }

@media (max-width: 860px) {
  .quotes { grid-template-columns: 1fr; }
}

/* ---------- Industry tiles ---------- */

.ind-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ind-mini a { display: block; text-decoration: none; color: inherit; }
.ind-mini figure {
  position: relative; margin: 0; overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--mill); border-radius: var(--r);
  background: var(--sheet);
}
.ind-mini img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms ease; }
.ind-mini a:hover figure { border-color: var(--dykem); }
.ind-mini a:hover img { transform: scale(1.07); }
.ind-mini figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 32px 12px 10px;
  font-size: .85rem; font-weight: 600; line-height: 1.2; color: #fff;
  background: linear-gradient(180deg, rgba(11,17,24,0), rgba(11,17,24,.9));
}
@media (max-width: 520px) { .ind-mini { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .ind-mini a:hover img { transform: none; }
}

/* ---------- Icons ---------- */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.22em;
}
.ico--sm { width: 16px; height: 16px; stroke-width: 2; }
.ico--lg { width: 26px; height: 26px; }

/* headings that lead with an icon */
.note h2, .note h3,
.auth__src h3,
.contact-grid h3 { display: flex; align-items: flex-start; gap: 10px; }
.note h2 .ico, .note h3 .ico { color: var(--dykem); margin-top: 3px; }
.auth__src h3 .ico, .contact-grid h3 .ico { color: var(--dykem); margin-top: 1px; }

/* the arrow on a link or button nudges forward on hover */
.btn .ico, .card__go .ico { transition: transform var(--t); }
.btn:hover .ico, .card:hover .card__go .ico { transform: translateX(3px); }
.card__go { display: inline-flex; align-items: center; gap: 8px; }

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

.footer {
  background: var(--ink);
  color: #b3c0cf;
  border-top: 3px solid var(--dykem);
}
.footer a { color: #e4eaf1; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer__top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.25fr;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(40px, 4.6vw, 60px) 0 clamp(28px, 3vw, 40px);
}

.footer__mark {
  display: inline-flex; align-items: center; gap: 12px;
  color: #fff; margin-bottom: 18px;
}
.footer__mark:hover { text-decoration: none; color: #fff; }
.footer__mark svg { width: 34px; height: 34px; flex: none; }
.footer__mark img { width: auto; height: 46px; flex: none; }
.footer__mark span {
  font-weight: 700; font-size: 1.05rem; line-height: 1.05;
  letter-spacing: -0.01em; font-variation-settings: "wdth" 112;
}
.footer__mark small {
  display: block; font-weight: 500; font-size: .8rem;
  color: #8fa0b3; letter-spacing: .02em; font-variation-settings: "wdth" 100;
}

.footer__brand p { font-size: .95rem; max-width: 44ch; }
.footer__slogan { font-style: italic; color: #8fa0b3; }

.footer__badges {
  list-style: none; padding: 0; margin: 20px 0 0;
  display: grid; gap: 10px;
}
.footer__badges li {
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem; color: #8fa0b3;
}
.footer__badges .ico { color: #8fb0ff; }

.footer h2 {
  font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: #7b8a9c; margin-bottom: 16px;
  font-variation-settings: "wdth" 100;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer__col li { font-size: .95rem; }

/* chevron bullets on the link columns; the contact column has its own icons.
   Decorative, so they stay pseudo-elements and out of the accessibility tree. */
.footer__col:not(.footer__contact) li { position: relative; padding-left: 18px; }
.footer__col:not(.footer__contact) li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 6px; height: 6px;
  border: solid #8fb0ff; border-width: 1.6px 1.6px 0 0;
  transform: translateY(-50%) rotate(45deg);
  transition: left var(--t), border-color var(--t);
}
.footer__col:not(.footer__contact) li:hover::before { left: 5px; border-color: #fff; }

.footer__contact li { display: flex; align-items: center; gap: 11px; }
.footer__contact .ico { color: #8fb0ff; }
.footer__contact .btn { margin-top: 22px; }

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 12px 28px;
  padding: 20px 0 30px;
  border-top: 1px solid rgba(255,255,255,.13);
  font-size: .88rem; color: #7b8a9c;
}
.footer__credit a { color: #9fb0c2; }
.footer__credit a:hover { color: #fff; }

@media (max-width: 1000px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ---------- Misc ---------- */

.prose p { max-width: var(--measure); }
.prose h2 { margin-top: 1.15em; }
.prose h2:first-child { margin-top: 0; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 11px 0; border-bottom: 1px solid var(--mill); }
.link-list li:first-child { border-top: 1px solid var(--ink); }
.link-list--cols {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(24px, 3.4vw, 52px);
}
.link-list--cols li:nth-child(-n+2) { border-top: 1px solid var(--ink); }
@media (max-width: 760px) {
  .link-list--cols { grid-template-columns: 1fr; }
  .link-list--cols li:nth-child(2) { border-top: 0; }
}
.link-list a { font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--ink); font-variation-settings: "wdth" 106; }
.link-list a:hover { color: var(--dykem); }
.link-list p { margin: 4px 0 0; color: var(--steel); max-width: none; }

.quote {
  border-left: 3px solid var(--dykem); padding: 6px 0 6px 20px; margin: 28px 0 0;
  font-size: 1.25rem; font-weight: 500; font-style: italic; max-width: 32ch;
}

/* ==========================================================================
   MEDIA
   Images and video. Every photographic surface that carries text sits under a
   scrim so the type keeps its contrast regardless of what the picture is doing.
   ========================================================================== */

/* ---------- Reusable image frame ---------- */

.media { margin: 0; position: relative; }

/* The aspect ratio lives on the image, not the figure, so a figure that also
   carries a caption still sizes to both. (It used to clip the caption away.) */
.media img {
  display: block; width: 100%; height: auto;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--mill);
  background: var(--sheet);
  box-shadow: 0 18px 38px rgba(22,32,43,.16);
}
.media--4x3 img { aspect-ratio: 4 / 3; }
.media--1x1 img { aspect-ratio: 1 / 1; }

/* Drafting corner marks: the way a drawing frames a view. They sit outside the
   photo on opposite corners, so the picture reads as framed rather than pasted. */
.media::before,
.media::after {
  content: ""; position: absolute; pointer-events: none;
  width: clamp(32px, 4.5vw, 52px);
  height: clamp(32px, 4.5vw, 52px);
  border: 2px solid var(--dykem);
}
.media::before {
  top: -11px; left: -11px;
  border-right: 0; border-bottom: 0;
  border-radius: 14px 0 0 0;
}
.media::after {
  right: -11px; bottom: -11px;
  border-left: 0; border-top: 0;
  border-radius: 0 0 14px 0;
}
/* a captioned figure is taller than its photo, so the lower mark would drift */
.media:has(.media__cap)::after { display: none; }

@media (max-width: 560px) {
  .media::before { top: -8px; left: -8px; }
  .media::after { right: -8px; bottom: -8px; }
}
.media__cap {
  margin: 10px 2px 0; font-size: .88rem; color: var(--steel);
}
.media + .spec,
.media + .tags,
.media + .checks,
.media + .contact-grid { margin-top: 22px; }
/* a figure that ends a column in a split should breathe above it */
.split .media { margin-top: 22px; }
.split > .media:first-child,
.split .prose + .media,
.split > div > .media:first-child { margin-top: 0; }

/* ---------- Hero video ---------- */

.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img,
.hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  /* dark from the left, where the headline sits; lighter over the cut itself */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,17,24,.92) 0%, rgba(11,17,24,.80) 38%, rgba(11,17,24,.46) 70%, rgba(11,17,24,.58) 100%),
    linear-gradient(180deg, rgba(11,17,24,.55) 0%, rgba(11,17,24,.10) 34%, rgba(11,17,24,.62) 100%);
}

.hero .hero__kicker { color: #b9c8f2; }
.hero h1 { color: #fff; }
.hero .lede { color: #e4eaf1; }
.hero__proof { color: #c2ccd8; }
.hero__proof strong { color: #fff; }
/* the quote card stays a light panel, so it opts back out of the hero's white text */
.hero .traveler { color: var(--ink); }

@media (max-width: 960px) {
  .hero__media::after {
    background:
      linear-gradient(180deg, rgba(11,17,24,.86) 0%, rgba(11,17,24,.62) 45%, rgba(11,17,24,.88) 100%);
  }
}

/* ---------- Quote drawer ----------
   A tab on the right edge of the viewport. Clicking it slides the quote sheet
   out from that edge; the tab rides along on the sheet's leading edge. It is
   also a drop target: drop a STEP or PDF on it and the sheet opens with the
   drawing already attached, so "send the print" is literal. */

.quote-drawer {
  --panel-w: min(420px, 92vw);
  position: fixed; top: 50%; right: 0;
  z-index: 40;                       /* the header sits at 50 and stays on top */
  display: flex; align-items: center;
  /* parked with the sheet off-screen, so only the tab shows. Animating transform
     keeps this on the compositor: no layout or paint work per frame. */
  transform: translate(var(--panel-w), -50%);
  transition: transform 520ms cubic-bezier(.32,.72,0,1);
  will-change: transform;
}
.quote-drawer[data-open="true"] { transform: translate(0, -50%); }

/* --- the tab --- */

.drawer__tab {
  flex: none; align-self: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 24px 13px;
  font: inherit; color: #fff; cursor: pointer;
  background: rgb(14,21,30);
  border: 1px solid rgba(255,255,255,.22);
  border-right: 0;
  border-left: 3px solid var(--dykem);
  border-radius: var(--r) 0 0 var(--r);
  box-shadow: -6px 0 24px rgba(11,17,24,.34);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.drawer__tab:hover { background: rgb(20,29,40); }
.quote-drawer[data-open="true"] .drawer__tab {
  background: var(--dykem); border-left-color: var(--dykem-deep);
  border-color: var(--dykem);
}

.drawer__icon { display: flex; }
.drawer__icon svg { width: 24px; height: 24px; color: #b9c8f2; transition: color var(--t); }
.quote-drawer[data-open="true"] .drawer__icon svg { color: #fff; }

.drawer__label {
  writing-mode: vertical-rl;
  font-size: 1rem; font-weight: 700; letter-spacing: .03em;
  font-variation-settings: "wdth" 105;
  white-space: nowrap;
}

.drawer__caret {
  display: flex; width: 26px; height: 26px; flex: none;
  align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
  transform: rotate(90deg);          /* points left: the sheet pulls out leftward */
  transition: transform 320ms ease, background var(--t), border-color var(--t);
}
.drawer__caret svg { width: 12px; height: 12px; }
.quote-drawer[data-open="true"] .drawer__caret {
  transform: rotate(-90deg); background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5);
}

/* a file is hovering over the tab */
.quote-drawer[data-drag="true"] .drawer__tab {
  background: var(--dykem); border-color: var(--dykem);
}
.quote-drawer[data-drag="true"] .drawer__icon svg { color: #fff; }

/* --- the sheet that slides out --- */

.drawer__panel {
  width: var(--panel-w); flex: none;
  /* keeps the parked form out of the tab order and the accessibility tree,
     but only once it has finished sliding away */
  visibility: hidden;
  transition: visibility 0s linear 520ms;
}
.quote-drawer[data-open="true"] .drawer__panel {
  visibility: visible; transition-delay: 0s;
}

.drawer__sheet {
  width: 100%;
  max-height: min(86vh, 660px);
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--mill); border-right: 0;
  box-shadow: -18px 0 50px rgba(11,17,24,.34);
  padding: 20px 22px 22px;
}
.drawer__sheet .traveler { border: 0; border-radius: 0; box-shadow: none; background: none; }
.drawer__sheet .traveler__head { padding: 0 0 12px; }
.drawer__sheet .quote-form { padding: 14px 0 0; }

.drawer__filenote {
  margin: 10px 0 0; max-width: none;
  font-size: .9rem; font-weight: 600; color: var(--dykem-deep);
  display: none;
}
.drawer__filenote[data-state="file"] { display: block; }

/* --- form fits the 420px sheet in two columns --- */

.drawer__sheet .quote-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px;
  align-items: start;
}
.drawer__sheet .field--span2,
.drawer__sheet .field--full,
.drawer__sheet .form__foot,
.drawer__sheet .form__status { grid-column: 1 / -1; }
.drawer__sheet .field textarea { min-height: 72px; }

/* --- hero call to action, now that the form is not in the hero --- */

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

@media (max-width: 700px) {
  .drawer__tab { padding: 18px 10px; gap: 10px; }
  .drawer__label { font-size: .92rem; }
  .drawer__sheet { padding: 16px 18px 18px; }
}
@media (max-width: 420px) {
  .drawer__sheet .quote-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .quote-drawer { transition: none; }
  .drawer__panel { transition: none; }
}

/* ---------- Page header over a banner ---------- */

.page-head--media {
  position: relative; overflow: hidden;
  background: var(--ink); border-bottom: 0;
}
.page-head--media .page-head__media { position: absolute; inset: 0; z-index: 0; }
.page-head--media .page-head__media img,
.page-head--media .page-head__media video { width: 100%; height: 100%; object-fit: cover; }
.page-head--media .page-head__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,17,24,.93) 0%, rgba(11,17,24,.82) 45%, rgba(11,17,24,.52) 100%),
    linear-gradient(180deg, rgba(11,17,24,.45), rgba(11,17,24,.25) 50%, rgba(11,17,24,.55));
}
.page-head--media .wrap { position: relative; z-index: 1; }
.page-head--media h1 { color: #fff; }
.page-head--media .lede { color: #e4eaf1; }
.page-head--media .crumbs,
.page-head--media .crumbs a { color: #b9c8f2; }
.page-head--media .crumbs a:hover { color: #fff; }

/* ---------- Service cards ---------- */

/* six-column bed: two wide cards on the first row, three standard on the second */
.cards {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
}
.card { grid-column: span 2; }
.card--wide { grid-column: span 3; }
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--mill); border-radius: 10px;
  background: var(--paper); overflow: hidden;
  color: inherit; text-decoration: none;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.card:hover {
  border-color: var(--dykem);
  box-shadow: 0 10px 28px rgba(22,32,43,.10);
  transform: translateY(-2px);
}
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sheet); }

/* --- wide cards run horizontally, copy beside the photo --- */
.card--wide { flex-direction: row; align-items: stretch; }
.card--wide.card--flip { flex-direction: row-reverse; }
.card--wide { min-height: 208px; }
.card--wide .card__body {
  flex: 1 1 48%; min-width: 0; justify-content: center;
  padding: clamp(18px, 1.8vw, 24px) clamp(18px, 1.8vw, 24px);
}
.card--wide .card__media {
  flex: 1 1 52%; min-width: 0;
  aspect-ratio: auto; position: relative;
}
.card--wide .card__media img { position: absolute; inset: 0; }
.card--wide .card__title { font-size: 1.3rem; margin-bottom: 6px; }
.card--wide p { margin-bottom: 12px; }
/* sits with the copy instead of being pushed to the foot of the card */
.card--wide .card__go { margin-top: 0; }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms ease;
}
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 14px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.card__title {
  font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em;
  font-variation-settings: "wdth" 108; margin-bottom: 6px;
}
.card:hover .card__title { color: var(--dykem); }
.card p { color: var(--steel); max-width: none; font-size: .97rem; margin-bottom: 12px; }
.card__go { margin-top: auto; color: var(--dykem); font-weight: 600; font-size: .95rem; }

@media (max-width: 1040px) {
  .card--wide { grid-column: 1 / -1; }
  .card:not(.card--wide) { grid-column: span 3; }
  .card:not(.card--wide):last-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  /* match the specificity of the 1040px rule above, or it keeps winning */
  .card--wide,
  .card:not(.card--wide),
  .card:not(.card--wide):last-child { grid-column: 1 / -1; }
  /* stack them, otherwise the photo is squeezed to a sliver */
  .card--wide, .card--wide.card--flip { flex-direction: column; }
  .card--wide .card__media { aspect-ratio: 4 / 3; }
  .card--wide .card__body { padding: 16px 18px 18px; }
  .card--wide .card__title { font-size: 1.2rem; }
}

/* ---------- Industry cards ---------- */

.ind article { padding: 0; }
.ind__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sheet); }
.ind__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms ease;
}
.ind a:hover .ind__media img { transform: scale(1.04); }
.ind__body { padding: 18px 20px 20px; }

/* ---------- Related-service list thumbnails ---------- */

.link-list li {
  display: grid; grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px; align-items: center;
}
.link-list__thumb {
  width: 96px; height: 64px; object-fit: cover;
  border: 1px solid var(--mill); border-radius: 6px;
}
@media (max-width: 420px) {
  .link-list li { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .link-list__thumb { width: 72px; height: 48px; }
}

/* ---------- Photographic section surfaces ---------- */



.cta {
  position: relative;
  background-image:
    linear-gradient(90deg, rgba(11,17,24,.95) 0%, rgba(11,17,24,.86) 50%, rgba(11,17,24,.72) 100%),
    url("../img/global/cta-band.jpg");
  background-size: cover;
  background-position: center;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

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