/* Shared structure. All colors and brand type resolve through tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink-900); background: var(--white); font: 16px/1.7 var(--font-body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: var(--track-display); font-weight: 400; color: var(--green-700); overflow-wrap: anywhere; }
h1 { font-size: clamp(30px, 4vw, 58px); line-height: 1.2; font-weight: 300; }
h2 { font-size: clamp(25px, 2.5vw, 38px); line-height: 1.35; }
h3 { font-size: 18px; line-height: 1.5; }
p { overflow-wrap: anywhere; }
a { color: var(--green-700); text-underline-offset: 5px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--green-700); outline-offset: 5px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; z-index: 100; top: 12px; left: 12px; width: auto; height: auto; margin: 0; clip: auto; clip-path: none; padding: 12px 20px; background: var(--white); color: var(--green-900); }
.site-header { position: relative; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
/* Round 2, 2026-09-08: previous rule kept; superseded by §5 below.
.site-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-height: 110px; padding-block: 6px; }
*/
.site-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-height: 140px; padding-block: 6px; }
.logo { display: inline-flex; flex: none; }
/* Round 2, 2026-09-08: previous rule kept; superseded by §5 below.
.logo img { height: 96px; object-fit: contain; }
*/
.logo img { height: 125px; object-fit: contain; }
.nav-links { list-style: none; margin: 0; padding: 16px 0; display: flex; align-items: stretch; gap: 4px; flex-direction: column; width: 100%; border-top: 1px solid var(--line); }
.nav-links a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; color: var(--green-900); text-decoration: none; font-size: 14px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration: underline; }
.nav-links .nav-contact { background: var(--green-700); color: var(--white); justify-content: center; padding-inline: 22px; border-radius: var(--radius); }
.nav-links .lang { text-decoration: underline; text-underline-offset: 6px; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 12px; background: transparent; color: var(--green-900); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.site-nav[data-ready] .nav-toggle { display: flex; }
.site-nav[data-ready] .nav-toggle[aria-expanded="false"] + .nav-links { display: none; }
.hero { padding-block: 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy { min-width: 0; }
.hero-copy::before { content: ""; display: block; width: 64px; height: 2px; background: var(--gold-400); margin-bottom: 28px; }
.hero-copy p { margin-top: 28px; max-width: 64ch; font-size: 17px; }
.actions { display: flex; gap: 16px 24px; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; min-height: 48px; padding: 13px 24px; background: var(--green-700); color: var(--white); border: 1px solid var(--green-700); border-radius: var(--radius); text-decoration: none; font-size: 14px; font-weight: 500; cursor: pointer; }
.button:hover { background: var(--green-800); border-color: var(--green-800); }
.text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font-size: 14px; font-weight: 500; }
.arrow { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }
.media { position: relative; aspect-ratio: 16 / 9; background: var(--green-900); overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.hero .media { aspect-ratio: 4 / 5; }
/* An SVG loaded through img cannot inherit document custom properties.
   The placeholder is used as a mask, painted from live CSS tokens. Replacing
   its img src with photography automatically removes this treatment. */
.media:has(img[src$="/assets/img/placeholder.svg"]) img { opacity: 0; }
.media:has(img[src$="/assets/img/placeholder.svg"])::after { content: ""; position: absolute; inset: 0; background: var(--gold-400); opacity: .28; mask: url('../assets/img/placeholder.svg') center / cover no-repeat; -webkit-mask: url('../assets/img/placeholder.svg') center / cover no-repeat; pointer-events: none; }
.section { padding-block: var(--section-y); }
.section-grid { display: grid; gap: 32px; }
.section-head { max-width: 820px; }
.section-body { min-width: 0; }
.section-body > p { max-width: 70ch; color: var(--ink-600); }
.section-body > p + p { margin-top: 24px; }
.section-body > .media { margin-block: 32px; }
.section-body > .cards { margin-top: 32px; }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.card h3 { margin-bottom: 14px; }
.card p { color: var(--ink-600); font-size: 15px; }
.card .media { margin: -28px -28px 28px; }
.icon { width: 36px; height: 36px; color: var(--gold-400); fill: none; stroke: currentColor; stroke-width: 1.2; margin-bottom: 28px; }
.integration { margin-top: 32px; padding: 24px 0 0 24px; border-top: 1px solid var(--gold-400); border-left: 1px solid var(--gold-400); }
.visual-grid { display: grid; gap: 32px; align-items: start; }
.visual-grid .cards { margin: 0; }
.clean .section-body > p { font-size: 18px; }
.clean .text-link { margin-top: 24px; }
.industry-link { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; height: 100%; color: var(--green-700); text-decoration: none; }
.industry-link h3 { margin: 0; }
.industry-link:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.industry-link .arrow { margin-top: 6px; }
.cta .section-body p { font-size: 18px; }
.cta .button { margin-top: 28px; }
/* Work order 3: no solution scroll offset; the header is not sticky. */
.prose .section-body { max-width: 860px; }
.prose .text-link { margin-top: 20px; }
.flow-figure { margin-top: 8px; }
.flow { width: 100%; max-width: 720px; margin-inline: auto; height: auto; color: var(--green-700); }
.flow .box { fill: var(--green-050); stroke: var(--line); stroke-width: 1.5; }
.flow .connector { fill: none; stroke: var(--green-700); stroke-width: 1.5; }
.flow .optional { stroke-dasharray: 6 6; }
.flow .glyph { fill: none; stroke: var(--green-700); stroke-width: 1.5; }
.flow text { fill: var(--green-700); font: 24px var(--font-body); }
.flow figcaption, figcaption { margin-top: 24px; color: var(--ink-600); font-size: 14px; }
.form { display: grid; gap: 24px; max-width: 860px; }
.form-row { display: grid; gap: 24px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--green-900); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; color: var(--ink-900); background: var(--white); border: 1px solid var(--ink-400); border-radius: var(--radius); }
.field textarea { min-height: 160px; resize: vertical; }
.form .button { justify-self: start; }
.form-note { font-size: 14px; color: var(--ink-600); }
.site-footer { padding-block: 48px 24px; background: var(--green-900); color: var(--green-100); }
.footer-top { display: grid; gap: 32px; align-items: center; }
.footer-brand { display: grid; gap: 24px; align-items: center; }
.footer-brand .logo { justify-self: start; }
.footer-brand p { max-width: 34ch; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: var(--white); min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
.footer-legal { border-top: 1px solid var(--green-800); margin-top: 40px; padding-top: 24px; font-size: 12px; }
.site-footer :focus-visible { outline-color: var(--gold-400); }
.redirect { min-height: 100vh; display: grid; align-content: center; gap: 32px; padding-block: 56px; }
@media (min-width: 600px) {
  .cards-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
  .site-nav { flex-wrap: nowrap; }
  .site-nav[data-ready] .nav-toggle { display: none; }
  .nav-links, .site-nav[data-ready] .nav-toggle[aria-expanded="false"] + .nav-links { display: flex; flex-direction: row; width: auto; align-items: center; gap: 12px; border: 0; padding: 0; }
  .nav-links a { padding-inline: 12px; }
  .hero { padding-block: 88px; }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; }
  .hero .media { aspect-ratio: 16 / 9; }
  .cards-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .visual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
  .visual-grid .cards-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clean .section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 64px; }
  .clean .section-head { grid-column: 1; }
  .clean .section-body { display: contents; }
  .clean .section-body > p, .clean .section-body > a { grid-column: 1; }
  .clean .section-body > .media { grid-column: 2; grid-row: 1 / 4; margin: 0; align-self: center; }
  .footer-top { grid-template-columns: 1fr auto; }
  .footer-brand { grid-template-columns: auto 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button { transition: background-color .18s ease, color .18s ease; }
}

@media (min-width: 860px) and (max-width: 959px) { .logo img { height: 96px; } } /* nowrap row: ES menu 519px + 220px mark > 717px content at 861px */
@media (max-width: 359px) { .logo img { height: 108px; } } /* 220px mark + 48px toggle > 272px content at 320px */
