/*
 * 3D-Multiprint site styles.
 *
 * Ported verbatim from the Next.js reference (reference-preview/app/globals.css)
 * so the WordPress frontend matches it exactly. Three deliberate changes:
 *
 *   1. `@import "tailwindcss"` removed. The reference never compiles Tailwind:
 *      the project has no PostCSS config, so the CSS it serves contains no
 *      Preflight and no utilities. A reset here would break the match, and
 *      its `antialiased` body class is a utility that never compiles either.
 *   2. Asset URLs replaced by custom properties (--brand-logo, --hero-image,
 *      --editorial-image) so Kenji can swap images from the media library.
 *   3. The font-family variables next/font injected are declared here instead.
 *
 * WordPress-only additions live in the clearly marked block at the bottom.
 * Everything above it should be diffable against the reference.
 */

:root {
  --ink: #111923;
  --ink-2: #1b2633;
  --paper: #202b39;
  --surface: #19232f;
  --panel: #253242;
  --panel-2: #2d3c4f;
  --white: #f7f9fb;
  --muted: #b5c0ce;
  --line: #435166;
  --blue: #517de2;
  --blue-dark: #9bb8ff;
  --signal-lime: #d8ff36;
  --signal-red: #ff3b30;
  --blue-on-light: #2b56ad;
  --text-on-dark: #f2f6ff;
  --text-on-signal-red: #111923;
  --orange: var(--signal-red);
  --orange-soft: #512622;
  --teal: var(--blue);
  --teal-dark: var(--blue-dark);
  --lime: var(--signal-lime);
  --copper: var(--orange);
  /* next/font/google injected these; assets/css/fonts.css self-hosts the files. */
  --font-geist-sans: 'Geist';
  --font-geist-mono: 'Geist Mono';

  /* Overridden inline by the theme when an editor picks a different image. */
  --brand-logo: url('../img/3d-multiprint-logo-dark.svg');
  --hero-image: url('../img/hero-v3.webp');
  --editorial-image: url('../img/material-library-v3.webp');

  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--white); font-family: var(--font-geist-sans), Arial, sans-serif; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 400; }
button, input, select, textarea { font: inherit; }
svg { display: block; }
.c4-icon { fill: none; stroke: currentColor; stroke-width: 1.65px; stroke-linecap: square; stroke-linejoin: miter; overflow: visible; }
.c4-icon .icon-layer { stroke: var(--icon-accent, var(--signal-lime)); }
.c4-icon .icon-layer-fill { fill: var(--icon-accent, var(--signal-lime)); stroke: var(--icon-accent, var(--signal-lime)); }
.container { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }

/* Navigation and brand */
.site-header { position: sticky; top: 0; z-index: 60; height: 82px; background: rgba(23,32,44,.95); backdrop-filter: blur(18px); border-bottom: 1px solid #4a586d; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; min-width: 315px; }
.brand-logo { display: block; width: 300px; aspect-ratio: 680 / 174; flex: 0 0 auto; background: var(--brand-logo) center / contain no-repeat; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.desktop-nav a { position: relative; font-size: 13px; font-weight: 650; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; bottom: -10px; width: 0; height: 3px; background: var(--signal-lime); transition: width .2s ease; }
.desktop-nav a:hover::after { width: 100%; }
.header-cta { min-height: 44px; display: inline-flex; align-items: center; gap: 14px; padding: 0 6px 0 18px; color: var(--ink); background: var(--signal-lime); font-size: 12px; font-weight: 800; }
.header-cta svg { width: 34px; height: 34px; padding: 8px; color: var(--text-on-signal-red); background: var(--signal-red); fill: none; stroke: currentColor; stroke-width: 2; }
.mobile-menu { display: none; margin-left: auto; position: relative; }
.mobile-menu summary { width: 46px; height: 46px; display: grid; place-content: center; gap: 7px; list-style: none; background: var(--signal-lime); cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .2s ease; }
.mobile-menu[open] summary span:first-child { transform: translateY(4.5px) rotate(45deg); }
.mobile-menu[open] summary span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.mobile-menu nav { position: absolute; right: 0; top: 55px; min-width: 280px; display: flex; flex-direction: column; gap: 18px; padding: 24px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 28px 70px rgba(0,0,0,.42); }
.mobile-menu nav > a { font-size: 14px; font-weight: 700; }

/* Buttons and shared type */
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 0 23px; border: 1px solid transparent; border-radius: 2px; font-size: 13px; font-weight: 760; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button svg, .text-link svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.button-primary { color: var(--text-on-signal-red); background: var(--signal-red); }
.button-primary:hover { background: var(--signal-red); }
.button-ghost { color: var(--white); border-color: #566477; background: rgba(17,24,36,.56); }
.button-dark { color: white; background: var(--ink); }
.button-light { color: var(--ink); background: var(--white); }
.button-large { min-height: 60px; padding-inline: 28px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.eyebrow, .kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--blue); text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 800; }
.eyebrow > span { min-width: 27px; min-height: 22px; display: grid; place-content: center; padding: 0 5px; color: white; background: var(--blue); letter-spacing: .04em; }
.kicker-light { color: var(--signal-lime); }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--signal-lime); font-size: 13px; font-weight: 780; }
.text-link svg { transition: transform .2s ease; }
.text-link:hover, .text-link:focus-visible { color: var(--signal-lime); text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover svg, .text-link:focus-visible svg { transform: translateX(3px); }
.home-intro .text-link, .material-editorial .text-link, .about-story .text-link, .scan-overview .text-link { color: var(--blue-on-light); }
.section { padding-block: 118px; }
.section-heading { margin-bottom: 52px; }
.section h2, .cta-section h2 { margin: 0; font-size: clamp(40px, 4.4vw, 66px); line-height: .98; letter-spacing: -.052em; }

/* Home hero */
.hero { position: relative; overflow: hidden; padding-top: 64px; background: radial-gradient(circle at 18% 20%, #3a5275 0, #243347 39%, #18222f 78%); border-bottom: 1px solid var(--line); }
.hero-blueprint { position: absolute; inset: 0; background-image: linear-gradient(rgba(216,255,54,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(216,255,54,.075) 1px, transparent 1px); background-size: 88px 88px; mask-image: linear-gradient(90deg, black, transparent 68%); }
.hero .eyebrow { color: var(--signal-lime); }
.hero-grid { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; gap: 58px; align-items: center; min-height: 635px; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 45px; }
.hero h1 { max-width: 670px; margin: 0; font-size: clamp(58px, 6.2vw, 92px); line-height: .91; letter-spacing: -.064em; font-weight: 660; }
.hero h1 em { display: inline; color: var(--signal-lime); font-style: normal; }
.hero-lead { max-width: 620px; margin: 28px 0 0; color: #d1d9e4; font-size: 18px; line-height: 1.65; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 36px; color: var(--muted); font-size: 11px; }
.hero-proof span { display: flex; align-items: center; gap: 7px; }
.hero-proof b { color: var(--white); }
.hero-proof svg { width: 16px; stroke: var(--signal-lime); stroke-width: 2.5; fill: none; }
.hero-visual { position: relative; height: 585px; margin-right: calc((100vw - min(1240px, calc(100vw - 64px))) / -2); }
.hero-image { position: absolute; inset: 0; background-color: #27313d; background-image: linear-gradient(90deg, rgba(25,35,47,.77), rgba(25,35,47,.12) 46%, transparent), linear-gradient(0deg, rgba(16,24,34,.18), transparent 55%), var(--hero-image); background-size: cover; background-position: center; }
.hero-image::after { content: ""; position: absolute; inset: 0; border-left: 1px solid rgba(16,21,33,.2); }
.hero-spec { position: absolute; z-index: 2; min-width: 132px; padding: 14px 16px; display: flex; flex-direction: column; color: white; background: rgba(31,43,57,.96); box-shadow: 12px 12px 0 rgba(216,255,54,.27); }
.hero-spec small { color: #90a4c7; letter-spacing: .16em; font-size: 8px; }
.hero-spec b { margin-top: 5px; font-size: 23px; letter-spacing: .02em; }
.hero-spec span { color: #b8bec8; font-size: 9px; }
.hero-spec-top { top: 35px; left: 34px; }
.hero-spec-bottom { right: 42px; bottom: 45px; color: var(--text-on-signal-red); background: var(--signal-red); box-shadow: 12px 12px 0 rgba(216,255,54,.35); }
.hero-spec-bottom small, .hero-spec-bottom span { color: var(--text-on-signal-red); }
.hero-crosshair { position: absolute; z-index: 2; width: 54px; height: 54px; right: 24%; top: 31%; border: 1px solid var(--signal-lime); border-radius: 50%; }
.hero-crosshair i { position: absolute; background: var(--orange); }
.hero-crosshair i:first-child { width: 72px; height: 1px; left: -10px; top: 26px; }
.hero-crosshair i:last-child { width: 1px; height: 72px; left: 26px; top: -10px; }
.hero-meta { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -1px; background: #202b39; }
.hero-meta > div { min-height: 86px; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 0 27px; color: white; border-right: 1px solid #343c4a; }
.hero-meta > div:last-child { border-right: 0; }
.hero-meta small { color: #8893a4; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.hero-meta strong { font-size: 13px; font-weight: 650; }

.capability-rail { color: var(--ink); background: var(--signal-lime); }
.capability-rail-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; text-transform: uppercase; letter-spacing: .11em; font-size: 10px; font-weight: 800; }
.capability-rail i { width: 6px; height: 6px; border-radius: 50%; background: var(--signal-red); }

.home-intro { color: var(--ink); background: #f2f4f7; }
.home-intro .kicker { color: var(--blue-on-light); }
.home-intro-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 105px; align-items: end; }
.home-intro h2 { max-width: 800px; }
.home-intro-copy { padding-top: 26px; border-top: 2px solid var(--ink); }
.home-intro-copy p { margin: 0 0 24px; color: #536071; font-size: 16px; line-height: 1.8; }

.solutions-section { padding-bottom: 120px; background: #f2f4f7; }
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.solution-card { min-height: 430px; display: flex; flex-direction: column; padding: 34px; border: 1px solid transparent; transition: transform .25s ease, box-shadow .25s ease; }
.solution-blue { color: white; background: #3568c7; }
.solution-dark { color: white; background: #263343; border-color: #445368; }
.solution-steel { color: white; background: #465b73; border-color: #5c7189; }
.solution-lime { grid-column: span 3; color: var(--ink); background: var(--signal-lime); }
.solution-light { grid-column: span 3; color: var(--ink); background: white; border-color: #d9dee5; }
.solution-red { grid-column: span 5; color: var(--text-on-signal-red); background: var(--signal-red); }
.solution-card:hover { transform: translateY(-6px); box-shadow: 0 22px 45px rgba(5,10,18,.16); }
.solution-card-head { display: flex; align-items: flex-start; justify-content: space-between; }
.solution-card-head > span { color: #9bb8ff; font-size: 9px; letter-spacing: .14em; font-weight: 800; }
.solution-blue .solution-card-head > span, .solution-dark .solution-card-head > span, .solution-steel .solution-card-head > span { color: var(--signal-lime); font-size: 11px; }
.solution-red .solution-card-head > span { color: var(--text-on-signal-red); }
.solution-lime .solution-card-head > span, .solution-light .solution-card-head > span { color: #2454b2; }
.solution-card-head i { --icon-accent: var(--signal-lime); width: 68px; height: 62px; display: grid; place-content: center; color: currentColor; background: transparent; border-bottom: 2px solid var(--signal-lime); font-style: normal; }
.solution-lime .solution-card-head i, .solution-light .solution-card-head i, .solution-red .solution-card-head i { color: currentColor; background: transparent; }
.solution-card-head svg { width: 48px; height: 48px; }
.solution-card h3 { margin: 64px 0 15px; font-size: 32px; letter-spacing: -.04em; }
.solution-card > p { margin: 0; color: #b2bdcb; font-size: 16px; line-height: 1.75; }
.solution-blue > p, .solution-dark > p, .solution-steel > p { color: var(--text-on-dark); }
.solution-lime > p, .solution-light > p { color: #536071; }
.solution-red > p { color: var(--text-on-signal-red); }
.solution-card > small { margin-top: 28px; color: #8b99aa; font-size: 13px; font-weight: 500; line-height: 1.65; }
.solution-blue > small, .solution-dark > small, .solution-steel > small { color: var(--text-on-dark); }
.solution-lime > small, .solution-light > small { color: #5e6a78; }
.solution-red > small { color: var(--text-on-signal-red); }
.solutions-cta { display: flex; justify-content: flex-end; padding-top: 28px; }

.project-gallery-section { background: #111923; }
.project-gallery-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 90px; align-items: end; margin-bottom: 48px; }
.project-gallery-heading h2 { max-width: 720px; }
.project-gallery-heading > div:last-child { padding-top: 24px; border-top: 2px solid var(--signal-lime); }
.project-gallery-heading > div:last-child p { margin: 0; color: #b8c2d0; font-size: 15px; line-height: 1.75; }
.project-gallery-heading > div:last-child small { display: block; margin-top: 14px; color: #778395; font-size: 9px; line-height: 1.65; }
.project-gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 270px; gap: 14px; }
.project-shot { position: relative; overflow: hidden; grid-column: span 5; margin: 0; background: #202b39; border: 1px solid #435166; }
.project-shot-featured { grid-column: span 7; grid-row: span 2; }
.project-shot:nth-child(5) { grid-column: span 7; }
.project-shot-image { position: absolute; inset: 0; background-position: center; background-size: cover; filter: saturate(.82) contrast(1.07); transform: scale(1.01); transition: transform .5s ease, filter .5s ease; }
.project-shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,17,27,.02) 36%, rgba(10,17,27,.9) 100%); pointer-events: none; }
.project-shot::before { content: ""; position: absolute; z-index: 2; width: 34px; height: 5px; right: 22px; top: 22px; background: linear-gradient(90deg, var(--signal-lime) 70%, var(--signal-red) 70%); }
.project-shot:hover .project-shot-image { filter: saturate(.96) contrast(1.08); transform: scale(1.045); }
.project-shot figcaption { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 7px; padding: 30px; }
.project-shot figcaption small { color: var(--signal-lime); text-transform: uppercase; letter-spacing: .13em; font-size: 8px; font-weight: 820; }
.project-shot figcaption strong { max-width: 460px; color: white; font-size: clamp(18px, 2vw, 26px); line-height: 1.08; letter-spacing: -.025em; }

.audience-section { padding-block: 14px 118px; color: white; background: #202b39; }
.audience-grid { display: grid; grid-template-columns: 1fr; }
.audience-card { position: relative; overflow: hidden; min-height: 520px; display: flex; flex-direction: column; justify-content: space-between; padding: 38px; transition: transform .25s ease, box-shadow .25s ease; }
.audience-card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px rgba(0,0,0,.2); }
.audience-scan { background: linear-gradient(135deg, #2e5ebb, #1d3557); }
.audience-label { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; width: fit-content; text-transform: uppercase; letter-spacing: .13em; font-size: 9px; font-weight: 850; }
.audience-label svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.audience-card > div:not(.audience-scan-visual) { position: relative; z-index: 2; max-width: 680px; }
.audience-card h2 { margin: 0; font-size: clamp(40px, 4.4vw, 66px); line-height: .95; letter-spacing: -.055em; }
.audience-card p { max-width: 600px; margin: 22px 0 0; color: #d6e1f2; line-height: 1.7; }
.audience-link { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-size: 12px; font-weight: 800; }
.audience-link svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.audience-scan-visual { position: absolute; width: 470px; height: 470px; right: 22px; top: 25px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: url('../img/scan-physical-digital.webp') center / cover no-repeat; box-shadow: 0 24px 70px rgba(11,25,49,.26); }

.material-band { padding-block: 112px; color: white; background: #253242; border-block: 1px solid #526177; }
.material-band-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: start; }
.material-band h2 { margin: 0; font-size: clamp(44px, 4.7vw, 68px); line-height: .98; letter-spacing: -.055em; }
.material-band-copy > p:not(.kicker) { max-width: 530px; margin: 28px 0 34px; color: #aab2bf; line-height: 1.75; }
.material-spectrum { border-top: 1px solid #394150; }
.material-spectrum > a { min-height: 63px; display: grid; grid-template-columns: 1fr auto 30px; gap: 17px; align-items: center; border-bottom: 1px solid #394150; transition: padding .2s ease, background .2s ease; }
.material-spectrum > a:hover { padding-inline: 14px; background: #314156; }
.material-spectrum strong { font-size: 18px; letter-spacing: .02em; }
.material-spectrum i { width: 86px; height: 5px; background: linear-gradient(90deg, var(--signal-lime), var(--blue)); }
.material-spectrum svg { width: 19px; fill: none; stroke: var(--signal-lime); stroke-width: 2; }

.material-editorial { color: var(--ink); background: #eef1f5; }
.material-editorial .kicker { color: var(--blue-on-light); }
.editorial-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 90px; align-items: center; }
.editorial-image { position: relative; min-height: 570px; background: #d8d6d0 var(--editorial-image) center / cover no-repeat; }
.editorial-image::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 0 70px rgba(6,9,14,.2); }
.editorial-label { position: absolute; z-index: 2; left: 0; bottom: 0; padding: 13px 18px; color: var(--ink); background: var(--signal-lime); letter-spacing: .13em; font-size: 9px; font-weight: 850; }
.editorial-copy h2 { font-size: clamp(42px, 4.2vw, 62px); }
.editorial-copy > p:not(.kicker) { margin: 26px 0; color: #536071; line-height: 1.75; }
.property-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 32px 0; border-top: 1px solid #cbd2dc; border-left: 1px solid #cbd2dc; }
.property-grid span { min-height: 90px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 18px; border-right: 1px solid #cbd2dc; border-bottom: 1px solid #cbd2dc; }
.property-grid b { color: var(--blue-on-light); font-size: 23px; }
.property-grid small { color: #5e6a78; font-size: 10px; text-transform: uppercase; letter-spacing: .11em; }

.process-section { padding-block: 115px; background: #202b39; }
.process-heading { display: grid; grid-template-columns: .7fr 1.3fr .55fr; gap: 45px; align-items: end; margin-bottom: 58px; }
.process-heading .kicker { margin: 0; }
.process-heading .kicker, .faq-page .kicker, .detail-services .kicker, .finder-section .kicker, .contact-section .kicker { color: var(--signal-lime); }
.process-heading h2 { margin: 0; font-size: clamp(42px, 4.5vw, 64px); line-height: .98; letter-spacing: -.052em; }
.process-heading > p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #536176; border-left: 1px solid var(--line); }
.process-grid article { position: relative; min-height: 260px; display: flex; flex-direction: column; padding: 28px; background: var(--panel); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-grid article::before { content: ""; position: absolute; left: 0; top: 0; width: 0; height: 4px; background: linear-gradient(90deg, var(--signal-lime), var(--signal-red)); transition: width .25s ease; }
.process-grid article:hover::before { width: 100%; }
.process-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.process-top > span { width: 42px; height: 42px; display: grid; place-content: center; color: var(--ink); background: var(--signal-lime); font-size: 11px; font-weight: 900; box-shadow: 7px 7px 0 var(--signal-red); }
.process-top > small { color: #9eadbe; opacity: 1; text-transform: uppercase; letter-spacing: .12em; font-size: 8px; font-weight: 750; }
.process-grid article > div { margin-top: auto; }
.process-grid h3 { margin: 0 0 9px; font-size: 20px; }
.process-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

.about-section { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: .47fr 1.02fr 1fr; gap: 70px; align-items: start; }
.about-index { color: #7f8b9b; font-size: 10px; letter-spacing: .15em; line-height: 1.7; }
.about-index span { color: var(--blue); font-size: 42px; letter-spacing: -.05em; font-weight: 720; }
.about-title h2 { font-size: clamp(40px, 4vw, 58px); }
.about-text { padding-top: 25px; border-top: 2px solid #526176; }
.about-text p { margin: 0 0 19px; color: var(--muted); line-height: 1.78; }

.cta-section { padding-block: 86px; color: white; background: linear-gradient(120deg, #1d428d, #285dc4); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 55px; }
.cta-inner .eyebrow { color: white; }
.cta-inner .eyebrow > span { color: var(--ink); background: var(--orange); }

/* Page gateways */
.gateway-section { padding-block: 16px 118px; background: #202b39; }
.gateway-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.gateway-card { position: relative; overflow: hidden; min-height: 400px; display: flex; flex-direction: column; justify-content: space-between; padding: 38px; transition: transform .25s ease; }
.gateway-card:hover { transform: translateY(-5px); }
.gateway-about { color: var(--ink); background: #f1f3f6; box-shadow: inset 0 7px 0 var(--signal-lime); }
.gateway-faq { color: var(--text-on-signal-red); background: var(--signal-red); }
.gateway-card::after { content: ""; position: absolute; width: 250px; height: 250px; right: -95px; top: -95px; border: 1px solid currentColor; border-radius: 50%; opacity: .19; box-shadow: 0 0 0 54px rgba(255,255,255,.06); }
.gateway-kicker { position: relative; z-index: 1; text-transform: uppercase; letter-spacing: .16em; font-size: 9px; font-weight: 850; }
.gateway-card > div { position: relative; z-index: 1; max-width: 650px; }
.gateway-card h2 { margin: 0; font-size: clamp(36px, 3.4vw, 54px); line-height: 1; letter-spacing: -.05em; }
.gateway-card p { max-width: 540px; margin: 20px 0 0; opacity: .74; line-height: 1.7; }
.gateway-faq p { opacity: 1; }
.gateway-card > i { position: relative; z-index: 1; width: 52px; height: 52px; display: grid; place-content: center; color: white; background: var(--ink); font-style: normal; }
.gateway-faq > i { color: var(--ink); background: white; }
.gateway-card > i svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; }

/* FAQ */
.faq-page { background: #202b39; }
.faq-page-grid { display: grid; grid-template-columns: .68fr 1.32fr; gap: 96px; align-items: start; }
.faq-page aside { position: sticky; top: 124px; }
.faq-page aside h2 { font-size: clamp(40px, 4.1vw, 60px); }
.faq-page aside > p:not(.kicker) { margin: 24px 0; color: var(--muted); line-height: 1.75; }
.faq-list { border-top: 1px solid #536176; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 18px 4px; list-style: none; cursor: pointer; font-size: 17px; font-weight: 720; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { position: relative; flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid #536176; }
.faq-list summary i::before, .faq-list summary i::after { content: ""; position: absolute; left: 9px; top: 16px; width: 14px; height: 1px; background: var(--orange); transition: transform .2s ease; }
.faq-list summary i::after { transform: rotate(90deg); }
.faq-list details[open] summary i::after { transform: rotate(0); }
.faq-list details[open] summary { color: var(--signal-lime); }
.faq-list details > p { max-width: 760px; margin: -4px 58px 25px 4px; color: var(--muted); font-size: 13px; line-height: 1.75; }

/* About page */
.about-story { color: var(--ink); background: #f1f3f6; }
.about-story-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 105px; align-items: start; }
.about-statement > span { display: inline-flex; padding: 9px 12px 8px; color: var(--signal-lime); background: var(--ink); border: 0; box-shadow: none; font-size: 12px; font-weight: 850; line-height: 1; letter-spacing: .12em; }
.about-statement h2 { margin-top: 32px; font-size: clamp(44px, 4.6vw, 68px); }
.about-story-copy { padding-top: 25px; border-top: 2px solid var(--ink); }
.about-story-copy > p { margin: 0 0 20px; color: #536071; font-size: 15px; line-height: 1.8; }
.about-story-copy ul { margin: 30px 0 0; padding: 25px 0 0; display: grid; gap: 13px; border-top: 1px solid #cbd2dc; list-style: none; }
.about-story-copy li { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 750; }
.about-story-copy li svg { --icon-accent: var(--blue-on-light); width: 17px; color: var(--blue-on-light); fill: none; stroke-width: 2.3; }
.about-principles { padding-block: 18px 118px; background: #f1f3f6; }
.about-principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.about-principles article { min-height: 390px; padding: 32px; display: grid; grid-template-rows: 116px auto auto 1fr; align-content: start; color: white; background: #253242; }
.about-principles article:nth-child(2) { background: #285fc9; }
.about-principles article:nth-child(3) { color: white; background: #465b73; border: 1px solid #5c7189; }
.about-principles article > i { --icon-accent: var(--signal-lime); width: 70px; height: 62px; display: grid; place-content: center; color: white; background: transparent; border-bottom: 2px solid var(--signal-lime); font-style: normal; }
.about-principles article > i svg { width: 48px; height: 48px; }
.about-principles article > span { margin-top: 0; color: var(--signal-lime); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 800; }
.about-principles h3 { min-height: 2.5em; margin: 13px 0; font-size: 28px; line-height: 1.25; letter-spacing: -.035em; }
.about-principles p { margin: 0; color: var(--text-on-dark); font-size: 16px; line-height: 1.7; }
.about-closing { text-align: center; background: #101720; }
.about-closing .kicker { justify-content: center; }
.about-closing h2 { max-width: 980px; margin-inline: auto; }
.about-closing .button { margin-top: 38px; }
.cta-inner h2 { max-width: 850px; font-size: clamp(40px, 4.5vw, 64px); }

/* Inner-page hero and CTA */
.page-hero { position: relative; overflow: hidden; padding-block: 104px 112px; color: white; background: radial-gradient(circle at 78% 25%, #486c9d 0, #2b405a 38%, #1a2532 76%); border-bottom: 1px solid var(--line); }
.page-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px); background-size: 90px 90px; mask-image: linear-gradient(90deg, black, transparent 74%); }
.page-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -70px; top: -230px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.035), 0 0 0 180px rgba(255,90,47,.08); }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--signal-lime); }
.page-hero .eyebrow > span { color: var(--ink); background: var(--signal-lime); }
.page-hero h1 { max-width: 980px; margin: 0; font-size: clamp(54px, 6.4vw, 84px); line-height: .94; letter-spacing: -.06em; font-weight: 650; }
.page-hero-inner > p:not(.eyebrow) { max-width: 720px; margin: 26px 0 0; color: #b9c5d5; font-size: 17px; line-height: 1.7; }
.page-hero .button { margin-top: 31px; }
.inner-cta { padding-block: 92px; background: var(--paper); }
.inner-cta-box { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 55px; padding: 56px; color: white; background: var(--ink); }
.inner-cta-box::after { content: ""; position: absolute; width: 210px; height: 210px; right: -45px; bottom: -90px; border: 1px solid #3f4a5c; border-radius: 50%; }
.inner-cta-box > * { position: relative; z-index: 1; }
.inner-cta-box h2 { max-width: 720px; margin: 0; font-size: clamp(38px, 4vw, 58px); line-height: 1; letter-spacing: -.05em; }
.inner-cta-box p:not(.kicker) { max-width: 680px; margin: 18px 0 0; color: #a9b1be; line-height: 1.7; }

/* Services page */
.detail-services { background: var(--surface); }
.detail-stack { border-top: 1px solid var(--line); }
.detail-service { display: grid; grid-template-columns: 105px 1fr 1fr; gap: 58px; padding-block: 66px; border-bottom: 1px solid var(--line); }
.detail-number { display: flex; flex-direction: column; gap: 25px; align-items: flex-start; }
.detail-number > span { --icon-accent: var(--signal-lime); width: 72px; height: 64px; display: grid; place-content: center; color: white; background: transparent; border-bottom: 2px solid var(--signal-lime); }
.detail-number svg { width: 50px; height: 50px; }
.detail-number b { color: var(--orange); font-size: 11px; }
.detail-service h2 { font-size: clamp(34px, 3.5vw, 52px); }
.detail-lead { margin: 18px 0 0; color: #9bb8ff; font-size: 16px; line-height: 1.6; font-weight: 700; }
.detail-body > p { margin: 2px 0 28px; color: var(--muted); line-height: 1.78; }
.detail-body ul { margin: 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.detail-body li { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.detail-body svg { width: 16px; fill: none; stroke: var(--signal-lime); stroke-width: 2.3; }
.order-guide { color: white; background: #202b39; }
.order-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 100px; }
.order-grid h2 { font-size: clamp(42px, 4.2vw, 60px); }
.order-grid > div:first-child > p:not(.kicker) { color: #aab2bf; line-height: 1.75; }
.order-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #414958; border-left: 1px solid #414958; }
.order-list > div { position: relative; min-height: 160px; display: flex; gap: 22px; padding: 27px; background: var(--panel); border-right: 1px solid #414958; border-bottom: 1px solid #414958; }
.order-list > div > i { --icon-accent: var(--signal-lime); color: #fff; border-bottom: 2px solid var(--signal-lime); flex: none; place-content: center; width: 44px; height: 44px; font-style: normal; display: grid; }
.order-list > div > i svg { width: 38px; height: 38px; }
.order-list span { display: flex; flex-direction: column; gap: 9px; }
.order-list strong { font-size: 16px; }
.order-list small { color: #a9b3c1; font-size: 12px; line-height: 1.5; }
.service-material-link { padding-block: 76px; color: white; background: #345fba; }
.service-material-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.service-material-inner .kicker { color: white; }
.service-material-inner h2 { max-width: 770px; margin: 0; font-size: clamp(37px, 4vw, 56px); line-height: 1; letter-spacing: -.05em; }

/* 3D scan */
.scan-overview { color: var(--ink); background: #f2f4f7; }
.scan-overview .kicker { color: var(--blue-on-light); }
.scan-overview-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 92px; align-items: center; }
.scan-copy h2 { font-size: clamp(42px, 4.5vw, 65px); }
.scan-copy > p:not(.kicker) { margin: 27px 0 28px; color: #536071; font-size: 16px; line-height: 1.8; }
.scan-project-specs { display: grid; grid-template-columns: 1fr 1fr; margin: 30px 0 24px; border-top: 1px solid #cbd2dc; border-left: 1px solid #cbd2dc; }
.scan-project-specs > div { min-height: 76px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 14px 17px; border-right: 1px solid #cbd2dc; border-bottom: 1px solid #cbd2dc; }
.scan-project-specs dt { color: var(--blue-on-light); opacity: 1; text-transform: uppercase; letter-spacing: .13em; font-size: 12px; font-weight: 820; }
.scan-project-specs dd { margin: 0; color: var(--ink); font-size: 13px; font-weight: 720; }
.scan-copy > p.scan-availability { margin: 22px 0 28px; padding: 18px 20px; color: #364252; background: white; border-left: 5px solid var(--signal-red); font-size: 13px; line-height: 1.65; }
.scan-visual { position: relative; overflow: hidden; min-height: 560px; color: white; background: radial-gradient(circle at 50% 45%, #446c99 0, #263e5c 38%, #152130 78%); border: 1px solid #556579; box-shadow: 18px 18px 0 var(--signal-lime); }
.scan-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(216,255,54,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(216,255,54,.12) 1px, transparent 1px); background-size: 46px 46px; transform: perspective(520px) rotateX(13deg) scale(1.18); }
.scan-thermometer-visual.has-custom-image { background: #1a2634 var(--scan-custom-image) center / cover no-repeat; }
.scan-thermometer-visual.has-custom-image .scan-device,
.scan-thermometer-visual.has-custom-image .scan-beam { display: none; }
.scan-frame { position: absolute; inset: 48px; }
.scan-frame i { position: absolute; width: 62px; height: 62px; border-color: var(--signal-lime); border-style: solid; }
.scan-frame i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; }
.scan-frame i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
.scan-frame i:nth-child(3) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.scan-frame i:nth-child(4) { left: 0; bottom: 0; border-width: 0 0 2px 2px; }
.scan-device { position: absolute; left: 50%; top: 48%; width: 390px; height: 330px; transform: translate(-48%,-50%) rotate(-7deg); }
.scan-device-body { position: absolute; left: 38px; top: 46px; width: 270px; height: 116px; border: 2px solid rgba(255,255,255,.78); border-radius: 25px 62px 26px 23px; background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.025)); box-shadow: inset 0 0 45px rgba(216,255,54,.09), 12px 14px 0 rgba(8,15,25,.12); }
.scan-device-front { position: absolute; left: 0; top: 53px; width: 72px; height: 101px; border: 2px solid var(--signal-lime); border-radius: 22px 7px 7px 22px; background: rgba(216,255,54,.13); box-shadow: 0 0 28px rgba(216,255,54,.18); }
.scan-device-lens { position: absolute; left: 12px; top: 76px; width: 42px; height: 54px; border: 2px solid rgba(255,255,255,.88); border-radius: 50%; box-shadow: inset 0 0 0 7px rgba(11,20,31,.62); }
.scan-device-handle { position: absolute; left: 202px; top: 129px; width: 104px; height: 166px; border: 2px solid rgba(255,255,255,.72); border-radius: 13px 22px 35px 30px; background: linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.015)); transform: skewX(10deg) rotate(-4deg); transform-origin: top left; }
.scan-device-trigger { position: absolute; left: 181px; top: 141px; width: 48px; height: 67px; border: 2px solid var(--signal-red); border-radius: 5px 5px 22px 11px; background: rgba(255,59,48,.18); transform: rotate(12deg); }
.scan-device-point { position: absolute; width: 7px; height: 7px; background: var(--signal-lime); box-shadow: 33px 21px 0 rgba(255,255,255,.76), -26px 57px 0 var(--signal-red), 65px 86px 0 var(--signal-lime), 14px 128px 0 rgba(255,255,255,.72); }
.scan-device-point-a { left: 81px; top: 64px; }
.scan-device-point-b { right: 69px; top: 104px; }
.scan-device-point-c { left: 234px; bottom: 78px; }
.scan-beam { position: absolute; left: 0; right: 0; top: 44%; height: 3px; background: var(--signal-red); box-shadow: 0 0 22px var(--signal-red), 0 15px 42px rgba(255,59,48,.4); }
.scan-status { position: absolute; left: 26px; bottom: 24px; display: flex; align-items: center; gap: 9px; padding: 10px 13px; color: #dbe6f4; background: rgba(16,25,36,.84); letter-spacing: .12em; font-size: 8px; font-weight: 800; }
.scan-status b { width: 7px; height: 7px; background: var(--signal-lime); border-radius: 50%; box-shadow: 0 0 10px var(--signal-lime); }
.scan-project-code { position: absolute; right: 26px; top: 24px; color: #dbe6f4; letter-spacing: .14em; font: 750 8px/1 var(--font-geist-mono), monospace; }

.scan-case-study { color: white; background: #111923; }
.scan-case-heading { display: grid; grid-template-columns: 1.08fr .72fr; gap: 90px; align-items: end; margin-bottom: 52px; }
.scan-case-heading h2 { max-width: 760px; }
.scan-case-heading > p { margin: 0; padding-top: 24px; color: #aeb9c8; border-top: 2px solid var(--signal-lime); font-size: 14px; line-height: 1.75; }
.scan-case-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.scan-case-card { grid-column: span 4; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.scan-case-card:nth-child(1), .scan-case-card:nth-child(2) { grid-column: span 6; }
.scan-case-media { position: relative; overflow: hidden; height: 260px; background: #1a2634; border-bottom: 1px solid var(--line); }
.scan-case-media::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(216,255,54,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(216,255,54,.08) 1px, transparent 1px); background-size: 34px 34px; }
.scan-case-card.has-custom-image .scan-case-media { background: #1a2634 var(--case-custom-image) center / cover no-repeat; }
.scan-case-card.has-custom-image .scan-case-media::before,
.scan-case-card.has-custom-image .case-device { display: none; }
.case-media-tag { position: absolute; left: 0; bottom: 0; padding: 10px 13px; color: var(--ink); background: var(--signal-lime); text-transform: uppercase; letter-spacing: .14em; font-size: 8px; font-weight: 850; }
.case-device { position: absolute; left: 50%; top: 50%; width: 235px; height: 170px; transform: translate(-50%,-48%) rotate(-8deg); }
.case-device i { position: absolute; display: block; }
.case-device i:nth-child(1) { left: 25px; top: 26px; width: 170px; height: 64px; border-radius: 14px 38px 15px 13px; background: #111820; border: 2px solid #657487; }
.case-device i:nth-child(2) { left: 0; top: 30px; width: 49px; height: 58px; border-radius: 13px 5px 5px 13px; background: var(--signal-red); border: 2px solid #ff8d84; }
.case-device i:nth-child(3) { left: 129px; top: 80px; width: 70px; height: 84px; border-radius: 7px 12px 22px 19px; background: #111820; border: 2px solid #657487; transform: skewX(9deg); }
.case-device i:nth-child(4) { left: 119px; top: 87px; width: 31px; height: 39px; border-radius: 4px 4px 14px 7px; background: var(--signal-red); transform: rotate(10deg); }
.case-device b { position: absolute; left: 8px; top: 42px; width: 27px; height: 34px; border-radius: 50%; background: #05080c; border: 4px solid #313c49; }
.scan-case-scan .case-device i, .scan-case-scan .case-device b { background: rgba(255,255,255,.025); border-color: #9bb8ff; box-shadow: 20px 12px 0 -8px var(--signal-lime), 48px 33px 0 -8px white; }
.scan-case-scan .scan-case-media { background: radial-gradient(circle at 52% 48%, #294d75, #162333 72%); }
.scan-case-cad .case-device i:nth-child(1), .scan-case-cad .case-device i:nth-child(3) { background: rgba(81,125,226,.14); border-color: var(--signal-lime); }
.scan-case-cad .case-device i:nth-child(2) { background: rgba(216,255,54,.17); border-color: var(--signal-lime); }
.scan-case-cad .case-device i:nth-child(4) { background: rgba(255,255,255,.1); border: 1px solid #9bb8ff; }
.scan-case-print .case-device i:not(:nth-child(2)), .scan-case-print .case-device b { opacity: .16; }
.scan-case-print .case-device i:nth-child(2) { left: 71px; top: 43px; width: 98px; height: 105px; border-radius: 28px 10px 10px 28px; background: var(--signal-lime); border-color: #efffb9; box-shadow: 14px 14px 0 rgba(216,255,54,.12); }
.scan-case-print .scan-case-media { background: radial-gradient(circle at 50% 45%, #344356, #16202b 72%); }
.scan-case-result .case-device i:nth-child(2) { background: var(--signal-lime); border-color: #efffb9; box-shadow: 0 0 25px rgba(216,255,54,.18); }
.scan-case-content { min-height: 185px; display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 25px; }
.scan-case-content > span { color: var(--signal-lime); font: 700 13px/1 var(--font-geist-mono), monospace; }
.scan-case-content h3 { margin: 0 0 11px; font-size: 20px; letter-spacing: -.025em; }
.scan-case-content p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.scan-uses-section { padding-block: 94px; background: #202b39; }
.scan-uses { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.scan-uses article { min-height: 320px; display: flex; flex-direction: column; padding: 32px; background: var(--panel); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scan-uses article > i { --icon-accent: var(--signal-lime); width: 70px; height: 64px; display: grid; place-content: center; color: white; background: transparent; border-bottom: 2px solid var(--signal-lime); font-style: normal; }
.scan-uses svg { width: 49px; height: 49px; }
.scan-uses h2 { margin: auto 0 13px; font-size: 27px; line-height: 1.05; letter-spacing: -.04em; }
.scan-uses p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.scan-quality { color: var(--text-on-signal-red); background: var(--signal-red); }
.scan-quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.scan-quality .kicker, .scan-quality h2 { color: var(--text-on-signal-red); }
.scan-limits { padding-top: 26px; border-top: 2px solid rgba(17,25,35,.65); }
.scan-limits > p { margin: 0 0 28px; color: var(--text-on-signal-red); font-size: 15px; line-height: 1.8; }
.scan-limits ul { margin: 0; padding: 0; display: grid; gap: 14px; list-style: none; }
.scan-limits li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-on-signal-red); font-size: 12px; font-weight: 720; }
.scan-limits svg { width: 17px; flex: 0 0 auto; fill: none; stroke: var(--text-on-signal-red); stroke-width: 2.4; }

/* Material finder */
.finder-section { background: var(--surface); }
.finder-shell { display: grid; grid-template-columns: 1.15fr .85fr; border: 1px solid var(--line); background: var(--panel); box-shadow: 18px 18px 0 #111923; }
.finder-controls { padding: 46px; }
.finder-step + .finder-step { margin-top: 34px; padding-top: 34px; border-top: 1px solid var(--line); }
.finder-step-title { display: flex; gap: 15px; align-items: center; margin-bottom: 21px; padding-left: 14px; border-left: 3px solid var(--blue); }
.finder-step-title > div { display: flex; flex-direction: column; gap: 4px; }
.finder-step-title strong { font-size: 17px; }
.finder-step-title small { color: var(--muted); font-size: 11px; }
.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.choice-grid-three { grid-template-columns: repeat(3, 1fr); }
.choice-grid-five { grid-template-columns: repeat(5, 1fr); }
.choice-grid button { min-height: 56px; padding: 9px; color: #eef2f6; background: #1e2937; border: 1px solid var(--line); border-radius: 0; font-size: 11px; font-weight: 740; cursor: pointer; transition: .18s ease; }
.choice-grid button:hover { border-color: var(--blue); }
.choice-grid button.active { color: var(--ink); background: var(--signal-lime); border-color: var(--signal-lime); box-shadow: inset 0 -4px 0 var(--signal-red); }
.finder-result { position: relative; overflow: hidden; padding: 46px; color: white; background: var(--ink); }
.finder-result::after { content: ""; position: absolute; width: 220px; height: 220px; right: -95px; top: -80px; border: 1px solid #3d4655; border-radius: 50%; }
.finder-result > * { position: relative; z-index: 1; }
.result-material { display: flex; align-items: center; gap: 15px; margin: 19px 0; }
.result-material > span { width: 20px; height: 20px; border: 2px solid white; }
.result-material h2 { margin: 0; font-size: 48px; letter-spacing: -.04em; }
.finder-result > p:not(.kicker) { color: #b3bbc7; line-height: 1.7; }
.result-application { margin: 22px 0; padding: 15px 0; display: flex; flex-direction: column; gap: 7px; border-top: 1px solid #394150; border-bottom: 1px solid #394150; }
.result-application small { color: #7f8998; text-transform: uppercase; letter-spacing: .13em; font-size: 8px; }
.result-application strong { color: white; font-size: 12px; line-height: 1.55; }
.finder-result ul { margin: 23px 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.finder-result li { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; }
.finder-result li svg { width: 16px; fill: none; stroke: var(--orange); stroke-width: 2.3; }
.result-note { margin: 23px 0; padding: 15px; color: #9ea8b7; background: #1d2431; border-left: 3px solid var(--blue); font-size: 10px; line-height: 1.65; }
.material-compare { background: #161f2a; }
.material-library-heading { display: grid; grid-template-columns: 1fr .5fr; gap: 38px 70px; align-items: end; }
.material-library-heading .kicker { grid-column: 1 / -1; margin-bottom: 0; color: var(--signal-lime); }
.material-library-heading > p:last-child { margin: 0; color: #9ba7b7; font-size: 14px; line-height: 1.75; }
.material-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.material-card { --mat: #8f969d; position: relative; overflow: hidden; min-height: 500px; padding: 42px; display: flex; flex-direction: column; background: #202b39; border: 1px solid #435166; box-shadow: inset 0 5px 0 var(--mat); scroll-margin-top: 104px; }
.material-card::after { content: ""; position: absolute; width: 210px; height: 210px; right: -100px; top: -105px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; box-shadow: 0 0 0 38px rgba(255,255,255,.025); }
.material-card.mat-placf { --mat: #303840; }
.material-card.mat-petg { --mat: #74a6bd; }
.material-card.mat-petght { --mat: #535967; }
.material-card.mat-tpu { --mat: #2e64d6; }
.material-card.mat-asa { --mat: #e8e3d7; }
.material-card.mat-silk { --mat: #d17a57; }
.material-card-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.material-card-head span { width: 32px; height: 32px; flex: 0 0 auto; background: var(--mat); border: 1px solid rgba(255,255,255,.18); box-shadow: inset -6px -7px 10px rgba(0,0,0,.2), inset 6px 5px 9px rgba(255,255,255,.18); }
.material-card-head small { color: var(--signal-lime); text-transform: uppercase; letter-spacing: .14em; font-family: var(--font-geist-mono), monospace; font-size: 10px; font-weight: 720; }
.material-card h3 { position: relative; z-index: 1; margin: 18px 0 32px; color: white; font-family: var(--font-geist-mono), monospace; font-size: clamp(38px, 4vw, 53px); line-height: 1; letter-spacing: -.055em; }
.material-card > p { position: relative; z-index: 1; max-width: 600px; margin: 0; color: #aeb7c4; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.55; letter-spacing: -.02em; }
.material-card ul { position: relative; z-index: 1; margin: auto 0 0; padding: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.material-card li { padding: 10px 14px; color: #b8cbf8; background: rgba(52,95,186,.2); border: 1px solid #516d9d; border-radius: 3px; font-family: var(--font-geist-mono), monospace; font-size: 11px; line-height: 1.25; font-weight: 650; }
.material-card-grid > .material-card:last-child:nth-child(odd) { grid-column: span 2; min-height: 410px; }
.material-disclaimer { max-width: 940px; margin: 34px auto 0; padding: 18px 22px; color: var(--muted); background: var(--panel); border-left: 3px solid var(--orange); font-size: 11px; line-height: 1.7; }

/* Contact */
.contact-section { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 76px; align-items: start; }
.contact-aside { position: sticky; top: 120px; }
.contact-aside h2 { font-size: 48px; }
.contact-aside > p:not(.kicker) { color: var(--muted); line-height: 1.75; }
.contact-card { margin-top: 24px; padding: 20px 0; display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); }
.contact-card > i { --icon-accent: var(--signal-lime); width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-content: center; color: white; border: 1px solid var(--line); font-style: normal; }
.contact-card > i svg { width: 20px; height: 20px; }
.contact-card > span { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.contact-card small { color: #9bb8ff; text-transform: uppercase; letter-spacing: .13em; font-size: 8px; font-weight: 800; }
.contact-card a { font-size: 16px; font-weight: 750; }
.contact-tip { margin-top: 30px; padding: 24px; color: white; background: var(--panel); border-left: 5px solid var(--signal-lime); }
.contact-tip strong { color: white; font-size: 12px; }
.contact-tip ul { margin: 14px 0 0; padding-left: 17px; color: #afb7c4; font-size: 11px; line-height: 1.9; }
.form-panel { border: 1px solid var(--line); box-shadow: 14px 14px 0 #111923; }
.form-panel-head { padding: 18px 28px; display: flex; justify-content: space-between; gap: 20px; color: var(--ink); background: var(--signal-lime); }
.form-panel-head span { font-size: 12px; font-weight: 800; }
.form-panel-head small { color: #3f4a21; }
.inquiry-form { padding: 32px; display: grid; gap: 19px; background: var(--panel); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.form-row-triple { grid-template-columns: minmax(110px, 0.7fr) 1fr 1fr; }
.inquiry-form label { display: grid; gap: 7px; color: #b6c0ce; font-size: 10px; font-weight: 760; }
.inquiry-form input:not([type="checkbox"]), .inquiry-form select, .inquiry-form textarea { width: 100%; color: var(--white); background: #1c2734; border: 1px solid #536177; border-radius: 0; outline: 0; font-size: 13px; }
.inquiry-form input::placeholder, .inquiry-form textarea::placeholder { color: #aab5c2; opacity: 1; }
.inquiry-form input:not([type="checkbox"]), .inquiry-form select, .inquiry-form textarea { border-color: #718096; }
.inquiry-form input:not([type="checkbox"]), .inquiry-form select { height: 49px; padding-inline: 13px; }
.inquiry-form textarea { padding: 13px; resize: vertical; }
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(35,94,231,.11); }
.privacy-check { display: flex !important; grid-template-columns: 17px 1fr; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; line-height: 1.5; }
.privacy-check input { margin-top: 2px; accent-color: var(--blue); }
.privacy-check a { color: #9bb8ff; text-decoration: underline; }
.form-action { display: flex; align-items: center; gap: 18px; }
.form-action button { border: 0; cursor: pointer; }
.form-action small { max-width: 235px; color: var(--muted); line-height: 1.5; }
.form-status { margin: 0; color: #9bb8ff; font-size: 11px; font-weight: 800; }

/* Legal */
.legal-hero { padding-block: 82px; color: white; background: linear-gradient(120deg, #26374b, #456993); }
.legal-hero .eyebrow { color: white; }
.legal-hero h1 { max-width: 920px; margin: 0; font-size: clamp(48px, 6vw, 76px); line-height: .95; letter-spacing: -.06em; }
.legal-section { padding-block: 92px; background: var(--surface); }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 72px; align-items: start; }
.legal-layout > aside { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 2px solid var(--blue); }
.legal-layout > aside strong { font-size: 13px; }
.legal-layout > aside span { color: var(--muted); font-size: 10px; }
.legal-content { max-width: 830px; }
.legal-content > section { padding-block: 31px; border-bottom: 1px solid var(--line); }
.legal-content > section:first-of-type { padding-top: 0; }
.legal-content h2 { margin: 0 0 16px; font-size: 24px; letter-spacing: -.03em; }
.legal-content p, .legal-content li { color: var(--muted); font-size: 13px; line-height: 1.8; }
.legal-content a { color: var(--blue-dark); text-decoration: underline; }
.legal-draft { margin-bottom: 36px; padding: 19px 21px; color: #f3ce81; background: #2b2415; border-left: 3px solid #efaa24; }
.legal-draft strong { font-size: 12px; }
.legal-draft p { margin: 8px 0 0; color: #d4b872; font-size: 11px; line-height: 1.6; }
.legal-date { margin-top: 30px; color: #8d949e !important; font-size: 10px !important; }

/* Footer */
.site-footer { color: white; background: #151e29; }
.footer-project { min-height: 164px; display: flex; align-items: center; justify-content: space-between; gap: 55px; padding-block: 34px; border-bottom: 1px solid #49566a; }
.footer-project small { color: var(--signal-lime); text-transform: uppercase; letter-spacing: .15em; font-size: 9px; font-weight: 850; }
.footer-project h2 { max-width: 770px; margin: 11px 0 0; font-size: clamp(32px, 3vw, 44px); line-height: 1; letter-spacing: -.045em; }
.footer-main { display: grid; grid-template-columns: .8fr .8fr 1.65fr; gap: 42px; padding-block: 44px; align-items: start; }
.footer-location { display: flex; align-items: center; gap: 8px; }
.footer-location svg { width: 16px; fill: none; stroke: var(--signal-lime); stroke-width: 1.8; }
.footer-main h3 { margin: 2px 0 15px; color: var(--signal-lime); text-transform: uppercase; letter-spacing: .13em; font-size: 9px; }
.footer-main > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-main a, .footer-main span { color: #a2aab7; font-size: 12px; }
.footer-main a:hover { color: var(--orange); }
.footer-contact .brand { margin: 2px 0 8px; }
.footer-contact > p { max-width: 470px; margin: 4px 0 9px; color: #8793a3; font-size: 12px; line-height: 1.65; }
.footer-contact > .footer-contact-link { display: flex; align-items: center; gap: 10px; }
.footer-contact > .footer-contact-link > svg { width: 18px; flex: 0 0 auto; fill: none; stroke: var(--signal-lime); stroke-width: 1.6; }
.social-links { display: flex; gap: 9px; margin-top: 10px; }
.social-links a { width: 43px; height: 43px; display: grid; place-content: center; color: white; background: #283647; border: 1px solid #536177; transition: color .2s ease, background .2s ease, transform .2s ease; }
.social-links a:hover { color: var(--ink); background: var(--signal-lime); transform: translateY(-3px); }
.social-links svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.social-links .icon-fill { fill: currentColor; stroke: none; }
.footer-bottom { min-height: 60px; display: flex; align-items: center; justify-content: flex-start; gap: 25px; color: #8993a2; border-top: 1px solid #292f3a; font-size: 11px; }
.footer-credit { color: #8993a2; text-decoration: none; }
.footer-credit:hover, .footer-credit:focus-visible { color: var(--signal-lime); text-decoration: underline; }

@media (min-width: 1200px) {
  .desktop-nav a, .button, .text-link { font-size: 14px; }
  .header-cta { font-size: 13px; }
  .eyebrow, .kicker, .capability-rail-inner { font-size: 11px; }
  .hero-proof { font-size: 12px; }
  .hero-spec small, .hero-meta small, .project-shot figcaption small, .audience-label, .editorial-label, .process-top > small, .gateway-kicker, .footer-project small, .footer-main h3 { font-size: 10px; }
  .hero-spec span, .project-gallery-heading > div:last-child small, .property-grid small, .about-index, .material-card-head small { font-size: 11px; }
  .hero-meta strong, .audience-link, .about-story-copy li, .order-list small, .scan-limits li { font-size: 14px; }
  .process-heading > p:last-child, .process-grid p, .faq-list details > p, .detail-body li, .scan-uses p, .scan-case-content p, .material-disclaimer, .legal-content p, .legal-content li { font-size: 15px; }
  .case-media-tag, .scan-project-code, .scan-status { font-size: 9px; }
  .scan-project-specs dd { font-size: 15px; }
  .material-card li, .result-note, .contact-tip strong, .contact-tip ul, .form-panel-head span, .form-status { font-size: 13px; }
  .inquiry-form label { font-size: 12px; }
  .inquiry-form input:not([type="checkbox"]), .inquiry-form select, .inquiry-form textarea { font-size: 15px; }
  .footer-main a, .footer-main span { font-size: 14px; }
  .footer-contact > p { font-size: 14px; }
  .footer-bottom { font-size: 12px; }
}

@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .header-cta { margin-left: auto; }
  .hero-grid { gap: 30px; }
  .material-band-grid { gap: 60px; }
  .editorial-grid { gap: 55px; }
  .choice-grid-five { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 840px) {
  .container { width: min(100% - 34px, 720px); }
  .site-header { height: 72px; }
  .header-cta { display: none; }
  .mobile-menu { display: block; }
  .section { padding-block: 82px; }
  .hero { padding-top: 54px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-bottom: 10px; }
  .hero-visual { height: 480px; margin-right: calc((100vw - min(720px, calc(100vw - 34px))) / -2); margin-left: calc((100vw - min(720px, calc(100vw - 34px))) / -2); }
  .hero-image { background-position: 62% center; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta > div { min-height: 70px; border-right: 0; border-bottom: 1px solid #343c4a; }
  .home-intro-grid, .material-band-grid, .editorial-grid, .about-grid, .order-grid, .finder-shell, .contact-grid, .faq-page-grid, .gateway-grid, .about-story-grid, .scan-overview-grid, .scan-quality-grid, .scan-case-heading { grid-template-columns: 1fr; gap: 45px; }
  .solutions-grid { grid-template-columns: 1fr; }
  .solution-card, .solution-blue, .solution-dark, .solution-lime, .solution-light, .solution-red { grid-column: auto; min-height: 340px; }
  .project-gallery-heading { grid-template-columns: 1fr; gap: 34px; }
  .project-gallery { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .project-shot, .project-shot:nth-child(5) { grid-column: auto; min-height: 340px; }
  .project-shot-featured { grid-row: auto; min-height: 480px; }
  .audience-card { min-height: 430px; }
  .audience-scan-visual { width: 300px; height: 300px; right: -30px; top: 65px; opacity: .6; }
  .editorial-image { min-height: 470px; order: 2; }
  .process-heading { grid-template-columns: 1fr; gap: 18px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .faq-page aside { position: static; }
  .gateway-card { min-height: 340px; }
  .about-principles-grid { grid-template-columns: 1fr; }
  .about-principles article { min-height: 0; grid-template-rows: auto; }
  .about-principles h3 { min-height: 0; }
  .detail-service { grid-template-columns: 75px 1fr; gap: 30px; }
  .detail-body { grid-column: 2; }
  .scan-visual { min-height: 500px; }
  .scan-case-card, .scan-case-card:nth-child(1), .scan-case-card:nth-child(2) { grid-column: span 6; }
  .scan-case-card:last-child { grid-column: span 12; }
  .scan-uses { grid-template-columns: 1fr; }
  .scan-uses article { min-height: 260px; }
  .material-library-heading, .material-card-grid { grid-template-columns: 1fr; }
  .material-library-heading { gap: 20px; }
  .material-card-grid > .material-card:last-child:nth-child(odd) { grid-column: auto; }
  .contact-aside { position: static; }
  .legal-layout { grid-template-columns: 1fr; gap: 30px; }
  .legal-layout > aside { position: static; }
  .service-material-inner, .inner-cta-box, .cta-inner { align-items: flex-start; flex-direction: column; }
  .footer-project { align-items: flex-start; flex-direction: column; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: span 2; }
}

@media (max-width: 540px) {
  .container { width: min(100% - 26px, 480px); }
  .header-inner { gap: 12px; }
  .brand { min-width: 0; }
  .brand-logo { width: min(215px, calc(100vw - 98px)); }
  .hero h1 { font-size: clamp(44px, 13vw, 52px); }
  .hero-lead { font-size: 16px; }
  .hero-proof { display: grid; gap: 10px; }
  .hero-visual { height: 380px; }
  .hero-spec-top { top: 18px; left: 18px; }
  .hero-spec-bottom { right: 18px; bottom: 24px; }
  .capability-rail-inner {
    min-height: 54px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: clamp(4px, 1.7vw, 8px);
    padding-block: 12px;
    font-size: clamp(7.5px, 2.45vw, 10px);
    letter-spacing: .04em;
    white-space: nowrap;
  }
  .capability-rail-inner span { min-width: 0; text-align: center; }
  .capability-rail-inner i {
    display: block;
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
  }
  .page-hero h1 { font-size: clamp(40px, 11.3vw, 48px); }
  .legal-hero h1 {
    font-size: clamp(30px, 9.25vw, 36px);
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
  .section h2, .cta-section h2, .material-band h2 { font-size: clamp(36px, 10.25vw, 40px); }
  .detail-service h2 { font-size: clamp(29px, 8.5vw, 34px); }
  .hero h1,
  .page-hero h1,
  .section h2,
  .cta-section h2,
  .material-band h2,
  .detail-service h2,
  .material-library-heading h2,
  .legal-content h2,
  .legal-content h3,
  .gateway-card h2,
  .audience-card h2 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
  .material-library-heading > * { min-width: 0; }
  .material-spectrum > a { grid-template-columns: 1fr 24px; }
  .material-spectrum i { display: none; }
  .process-grid, .form-row { grid-template-columns: 1fr; }
  .project-gallery-heading { margin-bottom: 34px; }
  .project-shot, .project-shot:nth-child(5) { min-height: 270px; }
  .project-shot-featured { min-height: 360px; }
  .project-shot figcaption { padding: 23px; }
  .about-grid { gap: 28px; }
  .detail-service { grid-template-columns: 1fr; }
  .detail-number { flex-direction: row; justify-content: space-between; align-items: center; }
  .detail-body { grid-column: 1; }
  .order-list, .choice-grid, .choice-grid-three, .choice-grid-five { grid-template-columns: 1fr; }
  .finder-controls, .finder-result { padding: 27px 21px; }
  /* Mobile: cards hug their content so the property tags sit right under the
     description instead of being pushed to the bottom of a fixed-height card,
     which left a large gap (Martin, 03.09.2026). */
  .material-card,
  .material-card-grid > .material-card:last-child:nth-child(odd) { min-height: auto; }
  .material-card { padding: 29px 24px; }
  .material-card h3 { margin-bottom: 25px; font-size: 38px; }
  .material-card > p { font-size: 18px; }
  .material-card ul { margin-top: 0; padding-top: 20px; }
  .inquiry-form { padding: 24px 19px; }
  .form-panel-head, .form-action { align-items: flex-start; flex-direction: column; }
  .inner-cta-box { padding: 34px 24px; }
  .gateway-card { min-height: 320px; padding: 27px; }
  .gateway-card h2 { font-size: 34px; }
  .audience-card { min-height: 390px; padding: 27px; }
  .audience-card h2 { font-size: 36px; }
  .audience-scan-visual { width: 240px; height: 240px; right: -46px; top: 75px; }
  .scan-visual { min-height: 410px; box-shadow: 9px 9px 0 var(--signal-lime); }
  .scan-frame { inset: 27px; }
  .scan-device { left: 48%; transform: translate(-50%,-50%) rotate(-7deg) scale(.72); }
  .scan-project-code { display: none; }
  .scan-project-specs { grid-template-columns: 1fr; }
  .scan-case-card, .scan-case-card:nth-child(1), .scan-case-card:nth-child(2), .scan-case-card:last-child { grid-column: span 12; }
  .scan-case-media { height: 230px; }
  .scan-case-content { min-height: 0; }
  .about-story-grid { gap: 40px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-contact { grid-column: auto; }
  .footer-bottom { padding-block: 23px; align-items: flex-start; flex-direction: column; }
}

@media (max-width: 360px) {
  .audience-scan-visual { top: 95px; }
  .page-hero { padding-block: 82px 90px; }
  .page-hero h1 { font-size: 40px; letter-spacing: -.052em; }
  .page-hero-inner > p:not(.eyebrow) { font-size: 16px; }
  .section { padding-block: 72px; }
  .detail-service { padding-block: 54px; }
  .detail-service h2 { font-size: 29px; letter-spacing: -.045em; }
  .gateway-card h2 { font-size: 31px; }
  .audience-card h2 { font-size: 32px; }
  .order-grid h2,
  .service-material-inner h2,
  .inner-cta-box h2,
  .contact-aside h2 { font-size: 36px; }
  .finder-step-title { padding-left: 11px; gap: 11px; }
  .finder-step-title strong { font-size: 16px; }
  .result-material h2 { font-size: 42px; }
}

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


/* ==========================================================================
   WordPress additions
   Everything above this line is the ported reference stylesheet. Everything
   below exists because WordPress needs it or because the briefing requires
   something the reference never implemented.
   ========================================================================== */

/* --- Skip link ---------------------------------------------------------- */
/* Required by the briefing; the reference has no skip link. */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 13px 20px;
  color: var(--ink);
  background: var(--signal-lime);
  font-size: 13px;
  font-weight: 800;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* --- Visible focus ------------------------------------------------------ */
/* The reference ships no focus styling at all. WCAG needs it, and colour alone
   is not enough, so this is an outline with an offset rather than a tint. */
:focus-visible {
  outline: 3px solid var(--signal-lime);
  outline-offset: 3px;
}
.home-intro :focus-visible,
.material-editorial :focus-visible,
.about-story :focus-visible,
.scan-overview :focus-visible,
.about-principles article:nth-child(3) :focus-visible,
.solution-lime :focus-visible,
.solution-light :focus-visible,
.capability-rail :focus-visible,
.form-panel-head :focus-visible {
  /* Lime on a light surface fails contrast; ink reads on every light section. */
  outline-color: var(--ink);
}
.mobile-menu summary:focus-visible { outline-offset: -3px; }

/* --- Admin bar ---------------------------------------------------------- */
/* The sticky header would otherwise slide underneath the logged-in toolbar. */
body.admin-bar .site-header { top: 32px; }
body.admin-bar .faq-page aside,
body.admin-bar .contact-aside,
body.admin-bar .legal-layout > aside { top: 156px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* --- Editable prose ----------------------------------------------------- */
/* Preflight strips list markers globally. Inside content the owner edits in
   Gutenberg they need to come back, or a bulleted list renders as flat lines. */
.prose ul { padding-left: 20px; list-style: disc; }
.prose ol { padding-left: 22px; list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose > *:last-child { margin-bottom: 0; }
.prose strong { font-weight: 750; }
.prose em { font-style: italic; }
.prose a { color: var(--blue-dark); text-decoration: underline; }

/* --- Project gallery fallback ------------------------------------------- */
/* The reference gallery is hand-tiled for exactly five projects: one 7-column
   feature plus 5/5/5/7 fills three rows with no gaps. At any other count the
   template adds this class and falls back to an even grid, which is honest
   rather than leaving a hole. The admin warns when this kicks in. */
.project-gallery-uniform { grid-auto-rows: 300px; }
.project-gallery-uniform .project-shot,
.project-gallery-uniform .project-shot:nth-child(5) { grid-column: span 6; grid-row: auto; }
@media (max-width: 840px) {
  .project-gallery-uniform .project-shot,
  .project-gallery-uniform .project-shot:nth-child(5) { grid-column: auto; }
}

/* --- Media -------------------------------------------------------------- */
/* Images uploaded through the media library carry width/height attributes;
   this keeps them fluid without losing their aspect ratio. */
.wp-block-image img,
.wp-caption img,
figure img { max-width: 100%; height: auto; }

/* --- Screen reader only ------------------------------------------------- */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


/* --- Contact form ------------------------------------------------------- */
/* The reference form is a mailto: link with no server, so it has no error,
   upload or feedback states. These match its visual language. */

/* Honeypot. Hidden from people without display:none, which some bots skip. */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-feedback {
  margin: 0 0 4px;
  padding: 15px 18px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}
.form-feedback-success { color: var(--ink); background: var(--signal-lime); }
.form-feedback-error { color: var(--text-on-signal-red); background: var(--signal-red); }

/* Errors carry an icon-free text label and a border change, never colour on
   its own, so they survive a monochrome or high-contrast rendering. */
.form-error {
  display: block;
  margin-top: 6px;
  color: #ffb3ae;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.form-error::before { content: "! "; }
.inquiry-form [aria-invalid="true"] { border-color: var(--signal-red); border-width: 2px; }

.form-upload input[type="file"] {
  width: 100%;
  padding: 13px;
  color: var(--white);
  background: #1c2734;
  border: 1px dashed #536177;
  font-size: 12px;
  cursor: pointer;
}
.form-upload input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 7px 13px;
  color: var(--ink);
  background: var(--signal-lime);
  border: 0;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.form-upload > small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
}
.privacy-check .form-error { margin-top: 4px; }


/* --- Narrow-width word breaking ----------------------------------------- */
/*
 * German compound words are long, and the reference sets headline sizes with a
 * clamp() floor: "Geschäftsbedingungen" at the 48px minimum is about 520 px
 * wide and simply runs off a 320 px screen. Measured on the reference as well -
 * it overflows to exactly the same scrollWidth - so this is an inherited bug,
 * not a porting mistake. The briefing requires no horizontal scrolling at
 * 320 px, so it is fixed here and noted in docs/ABWEICHUNGEN.md.
 *
 * Two rules are needed together:
 *   overflow-wrap lets a word break rather than overflow its box.
 *   min-width: 0 lets a grid track shrink below its content's intrinsic width -
 *   without it, an auto-sized track stays as wide as the longest word.
 *
 * Neither changes anything at widths where the text already fits, so desktop
 * rendering is untouched. Verified: 1440 px stays at a 0 px height delta.
 */
h1, h2, h3, h4, h5, h6,
.hero-lead, .detail-lead, .legal-content p, .legal-content li,
.material-card > p, .scan-project-specs dd, .footer-contact-link span {
  overflow-wrap: break-word;
}

.detail-service > *,
.solutions-grid > *,
.process-grid article > *,
.material-card,
.order-list > div,
.scan-case-content > *,
.finder-shell > *,
.contact-grid > *,
.legal-layout > *,
.faq-page-grid > *,
.footer-main > div,
.hero-grid > *,
.about-story-grid > *,
.editorial-grid > *,
.material-band-grid > * {
  min-width: 0;
}
