/* ==========================================================================
   DS Engineering — site styles
   No build step, no external dependencies. Edit tokens below to rebrand.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------- */
:root {
  /* Brand */
  --navy-900: #081826;
  --navy-800: #0c2436;
  --navy-700: #123147;
  --steel-500: #5b7183;
  --accent: #e8762a;        /* combustion orange — CTAs, highlights */
  --accent-dark: #c85f18;
  --data: #2ea3a5;          /* teal — data / measurement accents */

  /* Neutrals */
  --ink: #15222c;
  --ink-soft: #3d4d59;
  --muted: #66788a;
  --bg: #ffffff;
  --bg-alt: #f4f7f9;
  --line: #dfe6ec;

  /* Type */
  /* IBM Plex — self-hosted, SIL OFL 1.1. Industrial by origin, and it carries
     Cyrillic for the Bulgarian version. System stack remains the fallback. */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono",
    Menlo, Consolas, monospace;

  /* Layout */
  --wrap: 1140px;
  --wrap-narrow: 760px;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(8, 24, 38, 0.06),
    0 2px 8px rgba(8, 24, 38, 0.05);
  --shadow-md: 0 4px 12px rgba(8, 24, 38, 0.08),
    0 12px 32px rgba(8, 24, 38, 0.08);
  --header-h: 72px;
}

/* --- Reset / base -------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
}
h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
}
h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1.1em;
  /* Justified body copy, with hyphenation to keep word spacing even. */
  text-align: justify;
  hyphens: auto;
}

.aside-box li,
.steps p {
  text-align: justify;
  hyphens: auto;
}

/* Short UI strings stay flush left — justifying them looks broken. */
.card__meta,
.hero__figure figcaption,
.contact-list .label,
.contact-list .value,
.form-field .hint,
.form-field .error,
.form-status,
.footer-bottom p,
.site-footer .brand + p,
.strip li {
  text-align: left;
  hyphens: manual;
}

a {
  color: var(--navy-700);
  text-decoration-color: rgba(18, 49, 71, 0.35);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-dark);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  padding-left: 1.2em;
}

strong {
  font-weight: 650;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --- Utilities ----------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.wrap--narrow {
  max-width: var(--wrap-narrow);
}

.section {
  padding-block: clamp(56px, 8vw, 96px);
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section--dark {
  background: var(--navy-800);
  color: #d8e3ec;
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.section--dark .eyebrow {
  color: var(--data);
}

.lede {
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 68ch;
}

.section--dark .lede {
  color: #b9cad8;
}

.section-head {
  max-width: 70ch;
  margin-bottom: 40px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--navy-900);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
  color: #fff;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    transform 0.1s ease, color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn--outline {
  border-color: var(--line);
  color: var(--navy-800);
  background: #fff;
}

.btn--outline:hover {
  border-color: var(--navy-700);
  color: var(--navy-900);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* --- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand wordmark — change the text in each HTML file and the colours here. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  white-space: nowrap;
}

.brand:hover {
  color: var(--navy-900);
}

.brand__mark {
  flex: 0 0 auto;
  width: auto;
  height: 40px;
}

/* The glyph supplies "DS", so the text beside it is just "Engineering" —
   weighted to read as one lockup rather than a caption. */
.brand__name span {
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--navy-800);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-800);
  cursor: pointer;
}

.nav-toggle__bars {
  position: relative;
  width: 16px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before {
  top: 0;
  box-shadow: 0 4px 0 currentColor;
}

.nav-toggle__bars::after {
  bottom: 0;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-weight: 550;
  text-decoration: none;
  color: var(--ink-soft);
}

.site-nav a:hover {
  background: var(--bg-alt);
  color: var(--navy-900);
}

.site-nav a[aria-current="page"] {
  color: var(--navy-900);
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: 0;
}

.site-nav .nav-cta a {
  margin-left: 10px;
  padding: 10px 18px;
  background: var(--navy-800);
  color: #fff;
  box-shadow: none;
  border-radius: var(--radius);
}

.site-nav .nav-cta a:hover {
  background: var(--navy-900);
  color: #fff;
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #cfdde8;
  padding-block: clamp(56px, 8vw, 92px);
}

.hero::after {
  /* faint engineering grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.hero > .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  color: #fff;
  margin-bottom: 20px;
  max-width: 20ch;
}

.hero p {
  color: #b9cad8;
  font-size: 1.1rem;
  max-width: 54ch;
}

.hero__figure {
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}

.hero__figure figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: #8fa8bb;
  text-transform: uppercase;
}

/* Page header for interior pages */
.page-head {
  background: var(--navy-800);
  color: #b9cad8;
  padding-block: clamp(44px, 6vw, 72px);
  border-bottom: 4px solid var(--accent);
}

.page-head h1 {
  color: #fff;
  margin-bottom: 14px;
}

.page-head p {
  color: #b9cad8;
  max-width: 62ch;
  margin-bottom: 0;
  font-size: 1.08rem;
}

/* --- Capability strip ---------------------------------------------------- */
.strip {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding-block: 26px;
}

.strip ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strip li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--ink-soft);
}

.strip li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--data);
}

/* --- Cards --------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 24px;
}

/* Fixed 2-up: auto-fit would fit 3 across at some widths and orphan the 4th
   card on a row of its own. */
.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
}

/* Side-by-side cards with matching structure (heading, text, list, figure):
   each part shares a row with its neighbour, so the figures start at the
   same height however long the lists above them are. */
.grid--rows > .card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  row-gap: 0;
  align-content: start;
}

.grid--rows > .card > .figure {
  align-self: start;
}

.card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-bottom: 10px;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: rgba(232, 118, 42, 0.1);
  color: var(--accent-dark);
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

/* Spans the full grid width — used to close out an odd-numbered card row. */
.card--wide {
  grid-column: 1 / -1;
}

.card--flat {
  background: transparent;
  box-shadow: none;
  border: 0;
  border-top: 3px solid var(--navy-800);
  border-radius: 0;
  padding: 22px 24px 24px;
}

.card__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Role/company line on the digital business card (/qr) — larger and
   centred, unlike .card__meta's small left-aligned caption style, which
   this line used to borrow and which read as an afterthought under a
   centred name. */
.vcard-role {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--navy-700);
}

/* Digital business card (/qr) — every text block centres, which reads
   better on a phone screen than the site's default left-aligned/justified
   body copy. Scoped to this page's <main> (.vcard-main) so the shared
   utility classes it borrows — p's justified default, .card__meta and
   .contact-list's flush-left rules above — keep their normal behaviour
   everywhere else on the site. */
.vcard-main p,
.vcard-main h1,
.vcard-main .eyebrow,
.vcard-main .contact-list .label,
.vcard-main .contact-list .value {
  text-align: center;
}

/* --- Service detail blocks ---------------------------------------------- */
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line);
}

.service:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.service__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
}

.service h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  margin-top: 8px;
}

/* Worked fault examples on /faults — one bordered article per fault */
.fault-list {
  display: grid;
  gap: 12px;
}

.fault-list > article {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1em;
  display: grid;
  gap: 10px;
}

/* The tick is positioned, not a flex item: with display:flex on the <li>,
   inline markup such as <strong> split the sentence into separate columns. */
.check-list li {
  position: relative;
  padding-left: 29px;
  color: var(--ink-soft);
  /* Tick-list items are short and sit in narrow cards, where justification
     opens wide gaps between words. */
  text-align: left;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(46, 163, 165, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23207e80' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

/* --- Process steps ------------------------------------------------------- */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.steps li {
  counter-increment: step;
  padding-top: 18px;
  border-top: 2px solid rgba(255, 255, 255, 0.18);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--data);
  font-weight: 600;
}

.steps h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.steps p {
  font-size: 0.96rem;
  color: #b9cad8;
  margin: 0;
}

/* --- Split (about) ------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.aside-box {
  padding: 26px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.aside-box h3 {
  font-size: 1.02rem;
  margin-bottom: 12px;
}

.aside-box ul {
  margin: 0;
  padding-left: 1.1em;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.aside-box li + li {
  margin-top: 7px;
}

/* --- CTA band ------------------------------------------------------------ */
.cta-band {
  background: var(--navy-900);
  color: #cfdde8;
  padding-block: clamp(48px, 7vw, 76px);
}

.cta-band .wrap {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 32px;
  align-items: center;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 10px;
}

.cta-band p {
  color: #b9cad8;
  margin: 0;
  max-width: 56ch;
}

/* --- Contact form -------------------------------------------------------- */
.contact-form {
  margin-top: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-800);
}

.form-field .req {
  color: var(--accent-dark);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c6d2dc;
  border-radius: var(--radius);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--navy-700);
}

.form-field .hint {
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.form-field .error {
  display: none;
  margin: 6px 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: #b3311c;
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: #b3311c;
  background: #fdf7f5;
}

.form-field.is-invalid .error {
  display: block;
}

/* Honeypot — kept out of view and out of the a11y tree, never display:none
   (some bots skip those fields). */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 18px 0 0;
  padding: 13px 16px;
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 550;
}

.form-status[hidden] {
  display: none;
}

.form-status--ok {
  background: #eef8f3;
  border: 1px solid #b9dfcd;
  color: #1c6b47;
}

.form-status--err {
  background: #fdf1ef;
  border: 1px solid #f0c4bb;
  color: #a32d19;
}

/* --- Contact ------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li + li {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contact-list dt,
.contact-list .label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.contact-list .value {
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--navy-900);
}

.contact-list .value a {
  color: var(--navy-900);
}

/* --- Placeholder marker (remove once real content is in) ---------------- */
.tbc {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 1px 6px;
  border-radius: 3px;
  background: #fff3cd;
  border: 1px dashed #d9a520;
  color: #7a5a00;
  white-space: nowrap;
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: #93a9ba;
  padding-block: 56px 28px;
  font-size: 0.94rem;
}

.site-footer a,
.site-footer a:visited {
  color: #e8f0f6;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
}

.site-footer h2 {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7d95a8;
  margin-bottom: 14px;
  font-weight: 600;
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 14px;
}

.site-footer .brand__name span {
  color: #ffffff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 9px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  color: #7d95a8;
}

.footer-bottom p {
  margin: 0;
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .hero > .wrap,
  .split,
  .contact-grid,
  .service,
  .cta-band .wrap {
    grid-template-columns: 1fr;
  }

  .service__head {
    max-width: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16.5px;
  }

  /* Justified text creates uneven rivers of whitespace in narrow columns —
     left-align on phones instead, desktop keeps the justified layout. */
  p,
  .check-list li,
  .aside-box li,
  .steps p {
    text-align: left;
    hyphens: auto;
  }

  .grid--2 {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 20px;
  }

  .site-nav[hidden] {
    display: none;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav a {
    padding: 12px 10px;
    font-size: 1.02rem;
  }

  .site-nav a[aria-current="page"] {
    border-radius: var(--radius);
    box-shadow: inset 3px 0 0 var(--accent);
  }

  .site-nav .nav-cta a {
    margin: 8px 0 0;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* --- Print --------------------------------------------------------------- */
@media print {
  .site-header,
  .nav-toggle,
  .cta-band,
  .hero__figure {
    display: none !important;
  }

  body {
    font-size: 11pt;
    color: #000;
  }

  .hero,
  .page-head,
  .section--dark,
  .site-footer {
    background: #fff !important;
    color: #000 !important;
  }

  .hero h1,
  .page-head h1,
  .section--dark h2,
  .section--dark h3,
  .site-footer h2 {
    color: #000 !important;
  }

  .site-footer a,
  .site-footer a:visited {
    color: #000 !important;
  }
}

/* --- Figures and photo placeholders -------------------------------------- */
.figure {
  margin: 28px 0 0;
  padding: 18px 18px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.figure img,
.figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.figure figcaption {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
  text-align: left;
}

.section--alt .figure {
  background: #fff;
}

/* Marks where a real photograph is still required. Delete the rule once every
   placeholder has been replaced, so any survivor becomes obvious. */
.photo-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 28px;
  text-align: center;
  background: repeating-linear-gradient(
    45deg,
    #f4f7f9,
    #f4f7f9 12px,
    #eef2f5 12px,
    #eef2f5 24px
  );
  border: 2px dashed #c3ced8;
  border-radius: var(--radius-lg);
  color: var(--muted);
}

.photo-placeholder svg {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  opacity: 0.5;
}

.photo-placeholder b {
  display: block;
  font-size: 0.98rem;
  color: var(--navy-800);
  margin-bottom: 4px;
}

.photo-placeholder span {
  font-size: 0.86rem;
  max-width: 42ch;
  display: block;
}

/* ==========================================================================
   Polish pass — smoother surfaces, motion and typography
   ========================================================================== */

/* Softer, layered shadows instead of a single hard drop */
:root {
  --shadow-sm: 0 1px 2px rgba(8, 24, 38, 0.04),
    0 4px 12px rgba(8, 24, 38, 0.05);
  --shadow-md: 0 2px 6px rgba(8, 24, 38, 0.06),
    0 16px 40px rgba(8, 24, 38, 0.09);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Headings break more sensibly, body avoids orphans */
h1, h2, h3 {
  text-wrap: balance;
}

.lede, .card p, .steps p {
  text-wrap: pretty;
}

/* Justification is far more even with hyphenation actually constrained */
p, .check-list li, .aside-box li {
  hyphenate-limit-chars: 8 4 4;
}

/* Cards lift very slightly on hover — enough to feel responsive, not bouncy */
.card {
  transition: box-shadow 0.28s var(--ease), transform 0.28s var(--ease),
    border-color 0.28s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cfdae3;
}

.card--flat:hover,
.card--wide:hover {
  transform: none;
}

.card--flat {
  transition: border-color 0.28s var(--ease);
}

.card--flat:hover {
  border-top-color: var(--accent);
}

/* Buttons: smoother, with a touch of depth */
.btn {
  transition: background-color 0.22s var(--ease), border-color 0.22s var(--ease),
    transform 0.16s var(--ease), box-shadow 0.22s var(--ease),
    color 0.22s var(--ease);
}

.btn--primary {
  box-shadow: 0 1px 2px rgba(200, 95, 24, 0.25),
    0 6px 16px rgba(232, 118, 42, 0.22);
}

.btn--primary:hover {
  box-shadow: 0 2px 4px rgba(200, 95, 24, 0.28),
    0 10px 24px rgba(232, 118, 42, 0.3);
  transform: translateY(-1px);
}

.btn--primary:active,
.btn--outline:active,
.btn--ghost:active {
  transform: translateY(0);
}

.btn--outline:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* Nav: animate the active underline rather than snapping it in */
.site-nav a {
  position: relative;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.site-nav a[aria-current="page"] {
  box-shadow: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s var(--ease);
}

.site-nav a[aria-current="page"]::after,
.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-nav .nav-cta a::after {
  display: none;
}

.site-nav .nav-cta a {
  transition: background-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.site-nav .nav-cta a:hover {
  box-shadow: var(--shadow-sm);
}

/* Links in body copy get a smoother underline */
main a:not(.btn):not(.brand) {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

/* Figures and placeholders sit more softly on the page */
.figure {
  box-shadow: var(--shadow-sm);
}

.photo-placeholder {
  transition: border-color 0.28s var(--ease), background-color 0.28s var(--ease);
}

.photo-placeholder:hover {
  border-color: var(--accent);
}

/* Section rhythm: a little more air, and dark sections meet light ones cleanly */
.section {
  padding-block: clamp(64px, 8.5vw, 104px);
}

.section--dark,
.cta-band,
.site-footer {
  /* stop sub-pixel seams showing between adjacent dark blocks */
  background-clip: padding-box;
}

/* Capability strip reads as a quieter band */
.strip li::before {
  transition: transform 0.28s var(--ease);
}

.strip li:hover::before {
  transform: scale(1.35);
}

/* Steps: subtle rule that brightens on hover */
.steps li {
  transition: border-top-color 0.28s var(--ease);
}

.steps li:hover {
  border-top-color: var(--data);
}

/* Aside box gets the same softness as cards */
.aside-box {
  box-shadow: var(--shadow-sm);
}

/* Selection colour picked from the palette rather than the browser default */
::selection {
  background: rgba(232, 118, 42, 0.22);
  color: var(--navy-900);
}

/* Nothing above should move for readers who would rather it did not */
@media (prefers-reduced-motion: reduce) {
  .card:hover,
  .btn--primary:hover,
  .btn--outline:hover {
    transform: none;
  }
}

/* --- Specification tables ------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
  margin: 18px 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table-scroll th,
.table-scroll td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table-scroll th {
  background: var(--bg-alt);
  font-weight: 650;
  color: var(--navy-900);
  white-space: nowrap;
}

.table-scroll tbody tr:last-child td {
  border-bottom: 0;
}

.table-scroll td {
  color: var(--ink-soft);
}

/* --- Language switcher ---------------------------------------------------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.lang-switch a {
  padding: 6px 9px;
  text-decoration: none;
  color: var(--muted);
  background: #fff;
  font-weight: 600;
}

.lang-switch a:hover {
  color: var(--navy-900);
  background: var(--bg-alt);
}

.lang-switch a[aria-current="true"] {
  background: var(--navy-800);
  color: #fff;
}

@media (max-width: 760px) {
  .lang-switch {
    margin: 12px 0 0;
    align-self: flex-start;
  }
}
