/* p-m03: /industries/automotive/ (national automotive hub). Car-shaped design language: gauge eyebrows, panoramic
   assembly-line hero, engineer's notebook frames, assembly-line kanban, warning-light automations, road rollout.
   Every class is prefixed m03-. Motion is 2D only (translate, opacity, stroke). */
.m03 { --m03-acc: #0E7490; --m03-acc-d: #0B5C70; --m03-acc-bg: #E0F2F5; --m03-paper: #FFFDF7; --m03-rule: #D9E6EB; --m03-margin: #E9A3A3; }

/* gauge-style eyebrow: a small speedometer arc instead of the bar */
.m03 .eyebrow { color: var(--m03-acc-d); }
.m03 .eyebrow::before { width: 22px; height: 12px; border: 3px solid var(--m03-acc); border-bottom: 0; border-radius: 22px 22px 0 0; background: none;
  box-sizing: border-box; }

/* hero: centred headline, panorama strip below */
.m03-hero { padding-bottom: 40px; }
.m03-hero__c { max-width: 880px; margin: 18px auto 0; text-align: center; }
.m03-hero .kicker { color: var(--m03-acc-d); background: var(--m03-acc-bg); }
.m03-hero h1 .hl { color: var(--m03-acc-d); }
.m03-lead { position: relative; margin: 6px auto 14px; max-width: 40ch; font: 600 clamp(20px, 1rem + .8vw, 26px)/1.38 var(--font); color: var(--ink); }
.m03-lead::before { content: "\201C"; display: block; height: .5em; font: 800 2.6em/1 Georgia, serif; color: var(--m03-acc); }
.m03-sub { max-width: 74ch; margin: 28px auto 0; font-size: 16.5px; color: var(--text); text-align: center; }
.m03-trust, .m03-ctas { justify-content: center; }
.m03-hero .reply { justify-content: center; display: flex; }
.m03-pano { position: relative; margin-top: 30px; transform-origin: 50% 0; }
.m03-art.st-art { aspect-ratio: 16 / 5; border-radius: 26px; box-shadow: 0 40px 70px -40px rgba(11, 92, 112, .55); }
.m03-chip-a { left: 16px; top: 16px; }
.m03-chip-b { right: 16px; bottom: 72px; }
.m03-pause { position: absolute; right: 14px; bottom: 14px; z-index: 6; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .94); color: var(--ink); font: 600 13px/1 var(--font-ui); cursor: pointer; }
.m03-pause:hover { border-color: var(--m03-acc); color: var(--m03-acc-d); }
/* hero and scene motion (inner SVG elements only; the depth layers belong to kit-story.js) */
.m03-p { animation: m03-drift var(--t, 8s) linear var(--d, 0s) infinite; opacity: 0; }
@keyframes m03-drift { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .95; } 100% { transform: translate(var(--x, 10px), -110px); opacity: 0; } }
.m03-piston { animation: m03-stroke 2.4s ease-in-out infinite alternate; }
@keyframes m03-stroke { from { transform: translateY(18px); } to { transform: translateY(-8px); } }
.m03-pour { stroke-dasharray: 10 8; animation: m03-flow 1.2s linear infinite; }
@keyframes m03-flow { to { stroke-dashoffset: -36; } }
.m03-glow { animation: m03-glow 2.2s ease-in-out infinite alternate; }
@keyframes m03-glow { from { opacity: .65; } to { opacity: 1; } }
.m03-chuck { animation: m03-spin .5s steps(2) infinite; }
@keyframes m03-spin { 50% { opacity: .8; } }
.m03-crate { animation: m03-roll 3s ease-in-out infinite alternate; }
@keyframes m03-roll { from { transform: translateX(-8px); } to { transform: translateX(16px); } }
.m03-hero.is-paused .m03-p, .m03-hero.is-paused .m03-piston, .m03-hero.is-paused .m03-pour, .m03-hero.is-paused .m03-glow, .m03-hero.is-paused .m03-chuck { animation-play-state: paused; }

/* engineer's notebook frame (ruled paper, red margin line, punched holes) */
.m03-note { position: relative; padding: 22px 22px 20px 58px; border: 1px solid var(--m03-rule); border-radius: 6px 16px 16px 6px; line-height: 28px;
  background:
    radial-gradient(circle at 18px 28px, var(--paper) 5px, transparent 6px) 0 0 / 100% 84px repeat-y,
    linear-gradient(90deg, transparent 40px, var(--m03-margin) 40px, var(--m03-margin) 42px, transparent 42px),
    repeating-linear-gradient(to bottom, var(--m03-paper) 0, var(--m03-paper) 27px, var(--m03-rule) 27px, var(--m03-rule) 28px);
  box-shadow: 0 18px 34px -26px rgba(15, 39, 66, .45); }
.m03-note h3 { line-height: 28px; margin: 0 0 6px; }
.m03-note p { margin: 0 0 12px; }
.m03-note ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.m03-note li { font-size: 15px; line-height: 26px; }

/* horizontal scroll-driven gallery (pinned on desktop by p-m03.js, swipe on phones) */
.m03-gal { padding-bottom: 40px; }
.m03-gal__run { position: relative; }
.m03-gal__pin { overflow-x: clip; }
.m03-gal__track { display: flex; gap: 22px; padding: 6px max(16px, calc((100vw - 1200px) / 2)) 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; outline-offset: -4px; }
.m03-gal__run.is-pinned .m03-gal__pin { position: sticky; top: 76px; height: calc(100vh - 92px); display: flex; align-items: center; }
.m03-gal__run.is-pinned .m03-gal__track { overflow: visible; scroll-snap-type: none; will-change: transform; }
.m03-card { flex: 0 0 min(360px, 84vw); scroll-snap-align: start; padding: 18px 20px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line);
  border-top: 5px solid var(--m03-acc); box-shadow: 0 22px 40px -32px rgba(15, 39, 66, .5); }
.m03-card svg { width: 100%; height: auto; margin-bottom: 12px; }
.m03-card__k { margin: 0 0 6px; font: 700 12px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--m03-acc-d); }
.m03-card h3 { font-size: 19px; margin-bottom: 8px; }
.m03-card p { font-size: 15px; line-height: 1.55; margin: 0 0 10px; }
.m03-card__z { padding: 9px 12px; border-radius: 10px; background: var(--m03-acc-bg); color: var(--ink); font: 600 13.5px/1.45 var(--font-ui); }

/* tier chooser */
.m03-tier__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.m03-tier__tabs button { min-height: 46px; padding: 10px 18px; border-radius: 12px; border: 2px solid var(--m03-rule); background: #fff; color: var(--ink);
  font: 600 14.5px/1.2 var(--font-ui); cursor: pointer; }
.m03-tier__tabs [aria-selected="true"] { background: var(--m03-acc); border-color: var(--m03-acc); color: #fff; }
.m03-tier__panel { max-width: 900px; }
.m03-tier__panel ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.m03-tier__panel li { padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .85); border: 1px solid var(--m03-rule); line-height: 1.45; }
.m03-tier__panel li b { display: block; font: 700 12px/1.4 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--m03-acc-d); }

/* scroll story accents */
.m03-scene { border-left: 5px solid var(--m03-acc); }
.m03 .st-rail li.is-on { background: var(--m03-acc-bg); }
.m03 .st-rail li.is-on::before { border-color: var(--m03-acc); background: var(--m03-acc); }

/* kanban: an assembly line of job cards */
.m03-kb__days { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.m03-kb__days button { min-width: 64px; min-height: 44px; border-radius: 10px; border: 2px solid var(--m03-rule); background: #fff; font: 700 14px/1 var(--font-ui);
  color: var(--ink); cursor: pointer; }
.m03-kb__days [aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.m03-kb__board { display: grid; grid-template-columns: repeat(6, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.m03-kb__col { border-radius: 14px; background: #fff; border: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; min-height: 230px; }
.m03-kb__col > p { margin: 0 0 8px; font: 700 12px/1.3 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--m03-acc-d); }
.m03-kb__drop { flex: 1; display: grid; gap: 8px; align-content: start; padding-bottom: 18px;
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(14, 116, 144, .08) 10px 14px) bottom / 100% 12px no-repeat; }
.m03-kb__job { padding: 9px 10px; border-radius: 10px; background: var(--m03-acc-bg); border-left: 4px solid var(--m03-acc); animation: m03-in .35s ease both; }
.m03-kb__job b { display: block; font: 700 13.5px/1.3 var(--font-ui); color: var(--ink); }
.m03-kb__job small { font: 500 12.5px/1.35 var(--font-ui); color: var(--muted); }
.m03-kb__job--hot { background: #FEECEC; border-left-color: #B91C1C; }
@keyframes m03-in { from { opacity: .3; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.m03-kb__log { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.m03-kb__log li { padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 15px; }
.m03-kb.is-js .m03-kb__log li { display: none; }
.m03-kb.is-js .m03-kb__log li.is-on { display: block; }
.m03-kb__kpi { margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.m03-kb__kpi div { padding: 12px 14px; border-radius: 12px; background: #0F2742; color: #fff; }
.m03-kb__kpi small { display: block; font: 600 12px/1.3 var(--font-ui); color: #B9D6DD; }
.m03-kb__kpi b { font: 800 24px/1.2 var(--font); color: #fff; }
.m03-kb__kpi p { grid-column: 1 / -1; margin: 0; font: 500 13px/1.4 var(--font-ui); color: var(--muted); }

/* limits, integrations, clusters */
.m03-limits, .m03-int { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.m03-clusters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.m03-clusters .m03-note p { font-size: 15px; }
.m03-int li { display: block; }
.m03-int .ps-tag { margin-left: 4px; }
.m03-blr { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; padding: 24px; margin-bottom: 26px; border-radius: 18px; background: var(--m03-acc-bg); }
.m03-blr h3 { margin-bottom: 8px; }
.m03-fine { margin-top: 18px; font: 500 14.5px/1.55 var(--font-ui); color: var(--muted); }
.m03-plain { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15.5px; }
.m03-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.m03-split .sec__head { margin-bottom: 0; }

/* warning-light automations */
.m03-lights { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.m03-lights li { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 16px; background: #0F2742; color: #DCE8EE; }
.m03-lights b { display: block; margin-bottom: 4px; font: 700 16.5px/1.3 var(--font); color: #fff; }
.m03-lights span { font-size: 15px; line-height: 1.55; }
.m03-lamp { flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; }
.m03-lamp--amber { background: #FBBF24; box-shadow: 0 0 0 5px rgba(251, 191, 36, .2), 0 0 18px #FBBF24; }
.m03-lamp--red { background: #F87171; box-shadow: 0 0 0 5px rgba(248, 113, 113, .2), 0 0 18px #F87171; }
.m03-lamp--teal { background: #5EEAD4; box-shadow: 0 0 0 5px rgba(94, 234, 212, .2), 0 0 18px #5EEAD4; }
.m03-lamp--green { background: #4ADE80; box-shadow: 0 0 0 5px rgba(74, 222, 128, .2), 0 0 18px #4ADE80; }

/* rollout as a road with lane markings */
.m03-road::before { top: 17px; height: 14px; border-radius: 8px; opacity: 1;
  background: repeating-linear-gradient(90deg, #F8FAFC 0 18px, transparent 18px 34px) center / 100% 2px no-repeat, #334155; }
.m03-road i { border-color: var(--m03-acc); color: var(--m03-acc-d); }

/* checklist gauge (progress ring) */
.m03-gauge { position: relative; width: 210px; margin: 14px 0 0; }
.m03-gauge svg { width: 100%; height: auto; }
.m03-gauge__arc { transition: stroke-dasharray .45s ease; }
.m03-gauge__v { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; }
.m03-gauge__v b { display: block; font: 800 34px/1 var(--font); color: var(--ink); }
.m03-gauge__v small { font: 600 12.5px/1.2 var(--font-ui); color: var(--muted); }
.m03-chk .ks-chk__meter { display: none; }

@media (max-width: 1080px) {
  .m03-clusters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .m03-art.st-art { aspect-ratio: 16 / 8; }
  .m03-limits, .m03-int, .m03-lights, .m03-split, .m03-blr { grid-template-columns: 1fr; }
  .m03-tier__panel ul { grid-template-columns: 1fr; }
  .m03-kb__kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .m03-art.st-art { aspect-ratio: 4 / 3; border-radius: 18px; }
  .m03-chip-b { display: none; }
  .m03-pause { position: static; display: block; margin: 10px 0 0 auto; }
  .m03-clusters { grid-template-columns: 1fr; }
  .m03-note { padding-left: 46px; background-size: 100% 84px, auto, auto; }
  .m03-note { background:
    radial-gradient(circle at 14px 28px, var(--paper) 4px, transparent 5px) 0 0 / 100% 84px repeat-y,
    linear-gradient(90deg, transparent 30px, var(--m03-margin) 30px, var(--m03-margin) 32px, transparent 32px),
    repeating-linear-gradient(to bottom, var(--m03-paper) 0, var(--m03-paper) 27px, var(--m03-rule) 27px, var(--m03-rule) 28px); }
  .m03-kb__board { grid-template-columns: repeat(6, 150px); }
  .m03-road::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .m03-pano { transform: none !important; } .m03-pause { display: none; } }
