/* Roboeye site — single stylesheet, no web fonts, no JS framework.
   One design, "industrial": the base rules below plus the [data-style="industrial"] block (tokens and layout
   overrides); layout.html always sets <html data-style="industrial">, and the selectors keep that prefix so the
   cascade stays as tested. The loops are rendered on white and multiplied into the page (.on-light). */
:root {
  --bg: #fff;
  --bg-2: #f5f5f7;
  --panel: #fff;
  --line: #e3e3e8;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0071e3;
  --btn: #0071e3;
  --btn-ink: #fff;
  --good: #0a7547;
  --bad: #b4232a;
  --part: #e0a100;
  --good-bg: rgba(10, 117, 71, .1);
  --bad-bg: rgba(180, 35, 42, .1);
  --media-bg: #0b1622;
  --header-bg: rgba(255, 255, 255, .82);
  --contact-bg: var(--bg-2);
  --contact-text: var(--text);
  --contact-muted: var(--muted);
  --hero-glow: transparent;
  --radius: 18px;
  --media-radius: 18px;
  --btn-radius: 999px;
  --head-font: inherit;
  --wrap: 1180px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 8px; background: var(--btn); color: var(--btn-ink); font-weight: 600; }
.skip:focus { top: 12px; text-decoration: none; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; font-family: var(--head-font); text-wrap: balance; }
p, dd { text-wrap: pretty; }
/* Chinese headings break only at spaces and punctuation, so words like 引导 are never split (overflow-wrap is the safety net). */
:lang(zh) :is(h1, h2, h3) { word-break: keep-all; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow, .step { color: var(--accent); font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 44em; }
section { padding: 136px 0; }
section.alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: 56px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--header-bg); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.site-header .logo img { height: 28px; width: auto; }
.site-header nav { display: flex; gap: 26px; margin-left: auto; font-size: .95rem; }
.site-header nav a { color: var(--muted); }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--text); text-decoration: none; }
.lang { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.lang:hover { color: var(--text); text-decoration: none; }
.lang svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 480px) { .lang { padding: 10px; margin: -10px; } .lang span { display: none; } .lang svg { width: 22px; height: 22px; } }
.btn { display: inline-block; padding: 12px 22px; border-radius: var(--btn-radius); font-weight: 600; font-size: .95rem; border: 1px solid var(--btn); }
.btn-sm { padding: 7px 16px; font-size: .88rem; }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-ghost { color: var(--btn); }
.btn:hover { text-decoration: none; filter: brightness(1.08); }

/* Sub-page hero */
.page-hero { padding: 152px 0 96px; background: radial-gradient(900px 420px at 85% 0%, var(--hero-glow), transparent 70%); }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); letter-spacing: -0.025em; max-width: 16em; }
.page-hero .lead { margin-top: 22px; }

/* Grids and cards */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); align-items: start; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Photo cards (real site photos may be cropped to a common ratio; evidence images may not) */
.photo-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s; }
.photo-card:hover { text-decoration: none; border-color: var(--accent); }
.photo-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
/* The bin-picking photo carries the Roboeye watermark at its right edge; keep it whole. */
.photo-card img.pos-right { object-position: 100% 50%; }
.photo-card .body { padding: 22px 24px 26px; }
.photo-card p { color: var(--muted); margin: 0; }

/* Split block: media + text */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }

/* Figures */
.figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.figure img { width: 100%; height: auto; }
/* Before/after evidence images have different aspect ratios: show both at the taller ratio, scaled (never cropped)
   and letterboxed in the screenshots' own background colour, so the two cards line up. */
.compare .figure img { aspect-ratio: 900 / 493; object-fit: contain; background: #344b64; }
.figure figcaption { background: var(--panel); padding: 12px 16px; font-size: .88rem; color: var(--muted); }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; margin-right: 6px; }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.good { background: var(--good-bg); color: var(--good); }
.tag.plain { background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); }
/* Field runs: one pair (point cloud | result) at a time once JS has made the tabs work; without JS all pairs show. */
.runs { max-width: 1084px; }
.runs .run + .run { margin-top: 20px; }
.run .figure img { background: #ddeefa; }
.run-tabs { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.js .run-tabs { display: flex; }
.js .runs .run + .run { margin-top: 0; }
.run[hidden] { display: none; }
.run-tabs button { font: inherit; font-size: .9rem; font-weight: 600; padding: 7px 16px; border-radius: var(--btn-radius); border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; }
.run-tabs button:hover { color: var(--text); }
.run-tabs button[aria-selected="true"] { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.note { font-size: .88rem; color: var(--muted); margin-top: 18px; }

/* Case studies */
.case-study { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.case-study + .case-study { margin-top: 136px; }
.case-study .photos { display: grid; gap: 12px; }
.case-study .photos img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 4 / 3; object-fit: cover; }
.case-study dl { margin: 24px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; }
.case-study dt { color: var(--accent); font-weight: 600; font-size: .9rem; }
.case-study dd { margin: 0; color: var(--muted); }
/* Two photos: side by side above the text, so a tall photo stack no longer leaves the text column half empty. */
.case-wide { grid-template-columns: 1fr; gap: 32px; }
.case-wide .photos { grid-template-columns: 1fr 1fr; }
.case-wide > div:last-child { display: grid; grid-template-columns: 1fr 1.15fr; column-gap: 48px; align-items: start; }
.case-wide > div:last-child > * { grid-column: 1; justify-self: start; }
.case-wide > div:last-child > dl { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
.case-wide > div:last-child > .specs { grid-column: 2; grid-row: 3; }
.specs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.specs span { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font-size: .9rem; }
.specs b { color: var(--accent); }

/* Field-of-view tool (/fov/, assets/fov.js): controls | 3D or three dimensioned views (switch) + results */
section.fov-section, [data-style] section.fov-section { padding-top: 0; }
/* The 3D view and results stay in sight while the controls beside them scroll. */
.fov-stage { position: sticky; top: 84px; }
.fov { display: grid; grid-template-columns: minmax(280px, 340px) 1fr; gap: 28px; align-items: start; }
.fov [hidden] { display: none !important; }
.fov-controls { display: grid; gap: 16px; }
/* Until the script has set them up for the scene in the URL, the controls would show every option (all scenes,
   both camera mounts): keep the space but show nothing. */
.fov:not([data-ready]) .fov-controls { visibility: hidden; }
.fov-controls fieldset { margin: 0; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); display: grid; gap: 12px; min-width: 0; }
.fov-controls legend { padding: 0 6px; margin-left: -6px; font-weight: 600; }
.fov-field { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); min-width: 0; }
.fov-slide { grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; }
.fov-slide > span:first-child { grid-column: 1 / -1; }
.fov-slide input[type="range"] { width: 100%; min-width: 0; accent-color: var(--accent); }
.fov-num { display: inline-flex; align-items: center; gap: 6px; }
.fov-num i { font-style: normal; color: var(--muted); min-width: 1.6em; }
.fov input[type="number"], .fov select { font: inherit; font-size: .95rem; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; width: 100%; min-width: 0; }
.fov-slide input[type="number"] { width: 6.2em; }
.fov input:focus-visible, .fov select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fov-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fov-row3 input[type="number"] { padding-inline: 6px; } /* room for 4 digits */
.fov-check { display: flex; gap: 8px; align-items: center; font-size: .88rem; }
.fov-check input { accent-color: var(--accent); }
/* A checkbox in front of a size caption marks that size in the 3D view. */
.fov-cap { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; } /* a lone field in a row may run into the empty column next to it */
.fov-mark { margin: 0; flex: none; accent-color: var(--accent); cursor: pointer; }
.fov-scenes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fov-scenes label { position: relative; }
.fov-scenes input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fov-scenes span { display: block; text-align: center; font-size: .88rem; font-weight: 600; padding: 8px 6px; border: 1px solid var(--line); border-radius: var(--btn-radius); color: var(--muted); }
.fov-scenes input:checked + span { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.fov-scenes input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fov-file { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.fov-file input { font-size: .85rem; max-width: 100%; }
.fov-cad-note { margin: -4px 0 0; font-size: .8rem; color: var(--muted); }
.fov-group { display: grid; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.fov-group-h { font-weight: 600; }
.fov-field small { font-weight: 400; color: var(--muted); }
.fov-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fov-actions .btn, .fov-bar .btn { cursor: pointer; font-family: inherit; background-color: transparent; }
.fov-bar .btn-primary { background: var(--btn); }
.fov-stage { display: grid; gap: 16px; min-width: 0; container-type: inline-size; }
.fov-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
/* While a file is dragged over the tool, the stage says where to drop it. */
.fov.dropping .fov-stage::after { content: attr(data-drop); position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 24px; text-align: center; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--panel) 88%, transparent); border: 2px dashed var(--accent); border-radius: var(--radius); pointer-events: none; }
.fov-switch { display: inline-flex; justify-self: start; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.fov-switch button { font: inherit; font-size: .88rem; font-weight: 600; padding: 6px 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; }
.fov-switch button[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }
.fov-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fov[data-v="views"] .fov-3d, .fov[data-v="views"] .fov-hint, .fov[data-v="3d"] .fov-views, .fov[data-v="3d"] .fov-legend,
.fov.no-webgl .fov-switch, .fov.no-webgl .fov-3d { display: none; }
/* Shrinks on short screens so the 3D view and the results fit on one screen below the header. */
.fov-3d { position: relative; height: clamp(340px, calc(100vh - 490px), 520px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
/* Shown until js/fov.ts starts (the three.js chunk can take seconds on a slow link). */
.fov-loading { margin: 0; color: var(--muted); }
.fov-3d .fov-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; pointer-events: none; }
/* Download progress (js/progress.js, the STEP reader in js/fov.ts); without a value it shows as busy. */
.fov-progress { display: block; width: 220px; max-width: 100%; height: 6px; accent-color: var(--accent); }
html:not(.js) .fov-progress { display: none; }
.fov-cad-note .fov-progress { margin-top: 6px; }
/* Size fields while a CAD part is loaded (js/fov.ts lockSize). */
.fov input[readonly] { color: var(--muted); background: var(--line); cursor: not-allowed; }
.fov-box { justify-self: start; cursor: pointer; font-family: inherit; background-color: transparent; }
.fov-3d canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.fov-full { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); cursor: pointer; }
.fov-full:hover { border-color: var(--accent); color: var(--accent); }
.fov-full:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fov-full svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fov-full .off, .fov-full[aria-pressed="true"] .on { display: none; }
.fov-full[aria-pressed="true"] .off { display: inline; }
/* Full screen: the API's :fullscreen, or .is-full where there is no API. */
.fov-3d:fullscreen { height: 100%; border: 0; border-radius: 0; }
.fov-3d.is-full { position: fixed; inset: 0; z-index: 1000; height: auto; border: 0; border-radius: 0; }
.fov-locked { overflow: hidden; }
.fov-labels { position: absolute; inset: 0; pointer-events: none; }
.fov-label { font-size: .75rem; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: var(--panel); color: var(--text); border: 1px solid var(--line); white-space: nowrap; }
.fov-label.fp { color: var(--accent); border-color: var(--accent); }
.fov-label.gap { font-size: .7rem; padding: 1px 5px; color: var(--accent); border-color: var(--accent); }
.fov-label.neg { color: var(--bad); border-color: var(--bad); }
.fov-label.dim { font-size: .7rem; padding: 1px 5px; border-color: var(--text); }
.fov-row dd b.neg { color: var(--bad); }
/* How to move the 3D view, next to the switch (OrbitControls: Ctrl / Cmd / Shift + drag also pans). */
.fov-hint { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .82rem; color: var(--muted); }
.fov-hint b { color: var(--text); font-weight: 600; }
.fov-hint svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fov-hint-touch { display: none; }
@media (pointer: coarse) { .fov-hint-mouse { display: none; } .fov-hint-touch { display: inline; } }
.fov-readout dl { margin: 0; display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.fov-row + .fov-row { border-top: 1px solid var(--line); }
.fov-row { display: grid; grid-template-columns: minmax(0, 15em) 1fr; gap: 16px; padding: 12px 16px; }
.fov-row dt { font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.fov-row dd { margin: 0; color: var(--muted); font-size: .92rem; }
.fov-row dd b { color: var(--text); }
.fov-row.ok dt { color: var(--good); }
.fov-row.bad dt { color: var(--bad); }
.fov-mark { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; font-size: .8rem; flex: none; }
.fov-row.ok .fov-mark { background: var(--good-bg); }
.fov-row.bad .fov-mark { background: var(--bad-bg); }
.fov-sub { color: var(--muted); font-size: .85rem; }
/* All three views side by side when the stage is wide enough, so they fit on one screen with the results. */
.fov-views { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@container (min-width: 480px) { .fov-views { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 760px) { .fov-views { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fov-views figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.fov-views svg { display: block; width: 100%; height: auto; aspect-ratio: 400 / 320; }
.fov-views figcaption { padding: 8px 12px; font-size: .85rem; font-weight: 600; border-top: 1px solid var(--line); }
.fov-views figcaption span { font-weight: 400; color: var(--muted); margin-left: 6px; }
.fov-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .82rem; color: var(--muted); }
.fov-legend li { display: flex; gap: 8px; align-items: center; }
.fov-legend i { flex: none; width: 20px; height: 12px; border-radius: 3px; }
.fov-legend .sw.ok { background: var(--good-bg); border: 1.5px solid var(--good); }
.fov-legend .sw.part { background: color-mix(in srgb, var(--part) 15%, transparent); border: 1.5px solid var(--part); }
.fov-legend .sw.bad { background: var(--bad-bg); border: 1.5px solid var(--bad); }
.fov-legend .ln { height: 0; border-radius: 0; border-top: 1.5px solid var(--accent); }
.fov-legend .ln.dash { border-top-style: dashed; }
.fov-note { margin: 28px 0 0; font-size: .85rem; color: var(--muted); max-width: 60em; }
.fov svg .ground { fill: var(--bg-2); }
.fov svg .floor { stroke: var(--muted); stroke-width: 1; }
.fov svg .frustum { fill: var(--accent); fill-opacity: .1; stroke: var(--accent); stroke-opacity: .6; stroke-width: 1; }
.fov svg .guide { fill: none; stroke: var(--accent); stroke-opacity: .45; stroke-dasharray: 2 3; }
.fov svg .fp { fill: var(--accent); fill-opacity: .08; stroke: var(--accent); stroke-width: 1.5; }
.fov svg .fp-low { fill: none; stroke-dasharray: 5 4; stroke-width: 1.2; }
.fov svg .container { fill: #9aa7b4; fill-opacity: .25; stroke: var(--muted); stroke-width: 1.2; }
.fov svg .container.ok { fill: var(--good); fill-opacity: .18; stroke: var(--good); }
.fov svg .container.bad { fill: var(--bad); fill-opacity: .14; stroke: var(--bad); }
.fov svg .container.leg { fill-opacity: .15; stroke-opacity: .6; }
.fov svg .part { fill-opacity: .75; stroke-width: 1.2; }
.fov svg .part.ok { fill: var(--part); stroke: var(--part); }
.fov svg .part.bad { fill: var(--bad); stroke: var(--bad); }
.fov svg .cam { fill: var(--text); }
.fov svg .cam-top { fill: none; stroke: var(--text); stroke-width: 1.5; }
.fov svg .dim line { stroke: var(--text); stroke-width: .8; }
.fov svg .dim line.ext { stroke: var(--muted); stroke-width: .5; stroke-dasharray: 2 2; }
.fov svg .tick { stroke: var(--text); stroke-width: 1; }
.fov svg .dim text { fill: var(--text); font-size: 19px; font-weight: 600; paint-order: stroke; stroke: var(--panel); stroke-width: 3px; }
@media (max-width: 900px) {
  .fov { grid-template-columns: 1fr; }
  .fov-stage { order: -1; position: relative; }
  .fov-3d { height: min(68vw, 460px); }
}
@media (max-width: 600px) {
  .fov-row { grid-template-columns: 1fr; gap: 4px; }
  .fov-3d { height: 78vw; }
}

/* Contact band */
/* section.contact-band: must outrank section.alt, which also sets the background */
section.contact-band { text-align: center; background: var(--contact-bg); color: var(--contact-text); }
.contact-band h2 { margin-bottom: .4em; }
.contact-band .lead { margin: 0 auto 32px; color: var(--contact-muted); }
.contact-list { list-style: none; padding: 0; margin: 40px auto 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 20px 56px; }
.contact-list li { display: flex; flex-direction: column; gap: 4px; }
.contact-list span { color: var(--contact-muted); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.contact-list a { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; color: var(--contact-text); }
.contact-list .qr img { width: 112px; border-radius: 6px; background: #fff; padding: 6px; border: 1px solid var(--line); }

footer { border-top: 1px solid var(--line); padding: 32px 0 96px; color: var(--muted); font-size: .85rem; } /* bottom room for the style bar */
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Homepage hero: text, then the loop as a dark media tile (the dark style turns it into a full-bleed background) */
.story-hero { position: relative; padding: 112px 0 0; }
.story-hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); letter-spacing: -0.025em; }
.story-hero .lead { max-width: 30em; margin: 22px 0 34px; }
.story-hero .cta, .page-hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { position: relative; max-width: var(--wrap); margin: 72px auto 0; padding: 0 20px; }
.hero-media .anim { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 62%; }
.on-light { mix-blend-mode: multiply; }
/* Live loop canvas (assets/loops.js), laid over the poster it replaces. */
.live { position: absolute; pointer-events: none; }
canvas.live[hidden] { display: none; }
.illus { position: absolute; right: 14px; bottom: 10px; z-index: 3; font-size: .75rem; color: var(--muted); letter-spacing: .02em; }
.hero-media .illus { right: 20px; bottom: 0; }
.loop { position: relative; margin: 0; }
/* The light loop is square; capped so it does not tower over the text beside it. */
.loop:has(img.on-light) { width: 100%; max-width: 460px; justify-self: center; }
.loop .anim { width: 100%; height: auto; }

/* ---------- Industrial: B2B, split hero, cards with depth, navy + brand teal ---------- */
[data-style="industrial"] {
  --bg: #f3f5f8; --bg-2: #fff; --panel: #fff; --line: #dce3ea;
  --text: #0f1f2e; --muted: #526375; --accent: #00707c; --btn: #0b2e4f; --btn-ink: #fff;
  --contact-bg: #0b2e4f; --contact-text: #fff; --contact-muted: rgba(255, 255, 255, .65);
  --header-bg: #fff; --hero-glow: rgba(10, 140, 154, .1);
  --radius: 10px; --media-radius: 12px; --btn-radius: 6px;
}
[data-style="industrial"] .site-header { box-shadow: 0 1px 3px rgba(15, 31, 46, .06); }
[data-style="industrial"] .site-header .wrap { height: 64px; }
[data-style="industrial"] .site-header nav a { font-weight: 500; }
[data-style="industrial"] h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
[data-style="industrial"] .step, [data-style="industrial"] .eyebrow { display: inline-block; letter-spacing: .08em; font-size: .78rem; padding: 4px 10px; border-radius: 4px; background: rgba(0, 112, 124, .1); }
[data-style="industrial"] section { padding: 104px 0; }
/* Inner-page hero: same white-to-page band and rule as the home hero, so its padding reads as a section break, not a gap. */
[data-style="industrial"] section.page-hero { padding: 128px 0 72px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
[data-style="industrial"] .story-hero { display: grid; grid-template-columns: 0.9fr 1.3fr; align-items: center; gap: 56px; max-width: var(--wrap); margin: 0 auto; padding: 96px 20px;
  background: none; }
[data-style="industrial"] main > .story-hero { max-width: none; padding-left: max(20px, calc((100% - var(--wrap)) / 2 + 20px)); padding-right: max(20px, calc((100% - var(--wrap)) / 2 + 20px));
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
[data-style="industrial"] .story-hero .wrap { padding: 0; max-width: none; }
[data-style="industrial"] .story-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); }
[data-style="industrial"] .hero-media { margin: 0; padding: 0; max-width: none; }
[data-style="industrial"] .hero-media .illus { right: 0; }
[data-style="industrial"] .hero-media .anim { aspect-ratio: 16 / 9; object-position: 50% 50%; }
[data-style="industrial"] .photo-card, [data-style="industrial"] .figure { box-shadow: 0 1px 2px rgba(15, 31, 46, .05); }
[data-style="industrial"] .photo-card:hover { border-color: var(--line); box-shadow: 0 12px 32px rgba(11, 46, 79, .14); transform: translateY(-3px); }
[data-style="industrial"] .photo-card h3::after { content: " →"; color: var(--accent); }
[data-style="industrial"] .case-study { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
[data-style="industrial"] .case-study + .case-study { margin-top: 32px; }
[data-style="industrial"] .specs span { background: var(--bg); }
[data-style="industrial"] .contact-band a { color: #fff; }
[data-style="industrial"] .contact-list .qr img { border: 0; }
[data-style="industrial"] footer { background: #081f36; color: rgba(255, 255, 255, .6); border-top: 0; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split, .case-study { grid-template-columns: 1fr; gap: 32px; }
  .site-header .wrap, [data-style] .site-header .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; gap: 12px 20px; }
  html { scroll-padding-top: 128px; }
  .site-header .lang { margin-left: auto; }
  .site-header nav { order: 3; width: 100%; margin: 0; padding-bottom: 10px; gap: 22px; overflow-x: auto; white-space: nowrap; }
  section, [data-style] section { padding: 88px 0; }
  .story-hero { padding-top: 72px; }
  .hero-media { margin-top: 48px; }
  .page-hero { padding: 96px 0 64px; }
  .case-study + .case-study { margin-top: 96px; }
  [data-style="industrial"] .story-hero { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
  [data-style="industrial"] section.page-hero { padding: 72px 0 48px; }
  [data-style="industrial"] .case-study { padding: 20px; }
  [data-style="industrial"] .case-study + .case-study { margin-top: 24px; }
  .case-wide > div:last-child { display: block; }
  .case-wide > div:last-child > dl { margin-top: 24px; }
}
@media (max-width: 600px) {
  /* One centred column: wrapped rows of uneven width left the mobile number and QR misaligned. */
  .contact-list { flex-direction: column; align-items: center; gap: 24px; }
  .contact-list li { align-items: center; }
  .wrap { padding: 0 16px; }
  /* Hero loop full-bleed and 4:3 on phones: at 16:9 inside the gutter it was only ~190 px tall. */
  .hero-media { padding: 0; }
  .hero-media .illus { right: 16px; }
  [data-style="industrial"] .story-hero { gap: 16px; }
  [data-style="industrial"] .hero-media { margin: 0 -16px; }
  [data-style="industrial"] .hero-media .illus { right: 16px; }
  [data-style="industrial"] .hero-media .anim { aspect-ratio: 4 / 3; object-position: 50% 50%; }
  .case-wide .photos { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .case-study dl { grid-template-columns: 1fr; gap: 4px; }
  .case-study dd { margin-bottom: 10px; }
  [data-style="industrial"] main > .story-hero { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
