/* =========================================================
   i4 Hardware — Board & IoT device development
   Builds on ../css/style.css (tokens, nav, buttons, forms, cursor)
   and ../css/lp.css (hero shell, sections, plans, FAQ, apply form)
   ========================================================= */

.hw {
  --copper: #d6a35c;
  --mask: #0d3b2e;
  --silk: #e8f2ec;
  --sig: #8ff3ff;
  --gold: #f2c46d;
}
/* the mobile CTA owns the bottom edge on this page, so keep the section indicator out of its way */
.hw .indicator { right: auto; left: var(--gutter); }

/* ---------- Board drawing (hero + process stage) ---------- */
.hw-board { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--f-mono); }
.b-board { fill: var(--mask); stroke: #1f6b52; stroke-width: 2; }
.b-grain { fill: url(#b-grain); opacity: .5; pointer-events: none; }
.b-hole { fill: #07140f; stroke: var(--gold); stroke-width: 3; }
.b-trace { fill: none; stroke: var(--copper); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; transition: stroke .6s, opacity .6s; }
.b-trace.is-bus { stroke-width: 1.6; opacity: .6; }
.b-pad { fill: var(--gold); opacity: .9; }
.b-via { fill: #07140f; stroke: var(--gold); stroke-width: 1.4; }
.b-sig { fill: none; stroke: var(--sig); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 8 150; filter: drop-shadow(0 0 4px var(--sig)); animation: b-sig 2.6s linear infinite; pointer-events: none; }
.b-sig.is-slow { animation-duration: 3.6s; }
.b-sig.is-d1 { animation-delay: -.9s; }
.b-sig.is-d2 { animation-delay: -1.7s; }
@keyframes b-sig { from { stroke-dashoffset: 158; } to { stroke-dashoffset: 0; } }
.b-silk { fill: var(--silk); font-size: 11px; letter-spacing: .08em; pointer-events: none; }
.b-silk.is-sm { font-size: 9px; opacity: .8; }
.b-part { cursor: pointer; transition: opacity .35s; }
.b-part .b-body { transition: stroke .3s, filter .3s; }
.b-part:hover .b-body, .b-part.is-on .b-body { stroke: var(--sig); stroke-width: 2.4; filter: drop-shadow(0 0 8px rgba(143, 243, 255, .7)); }
.hw-board.is-pick .b-part:not(.is-on) { opacity: .45; }
.b-led { fill: #4ade80; filter: drop-shadow(0 0 6px #4ade80); animation: b-blink 1.6s steps(2) infinite; }
@keyframes b-blink { 50% { opacity: .2; } }

/* ---------- Hero ---------- */
.hw-hero .o-hero__grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.hw-stage { position: relative; perspective: 1400px; }
.hw-stage__tilt { transform: rotateX(var(--rx, 10deg)) rotateY(var(--ry, -8deg)); transform-style: preserve-3d; transition: transform .6s var(--ease-out); filter: drop-shadow(0 50px 60px rgba(0, 0, 0, .55)); }
.hw-stage__below { display: flex; align-items: flex-start; gap: 14px; }
.hw-info { flex: 1; min-width: 0; margin-top: 14px; padding: 12px 16px; min-height: 74px; border-radius: 14px; border: 1px solid rgba(150, 185, 255, .18); background: rgba(6, 13, 29, .55); backdrop-filter: blur(8px); }
.hw-info .mono { font-size: 9.5px; color: var(--sig); }
.hw-info p { font-size: 13.5px; line-height: 1.7; color: rgba(222, 232, 255, .85); margin-top: 2px; }
.hw-tele { position: relative; z-index: 2; flex: none; margin-top: -34px; width: 250px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(143, 243, 255, .3); background: rgba(6, 13, 29, .82); backdrop-filter: blur(10px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); color: #eef3ff; }
.hw-tele__head { display: flex; align-items: center; gap: 8px; font-size: 9.5px; color: var(--sig); margin-bottom: 8px; }
.hw-tele__head i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; animation: b-blink 1.2s steps(2) infinite; }
.hw-tele dl { display: grid; gap: 6px; margin: 0; }
.hw-tele dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hw-tele dt { font-size: 11px; color: rgba(214, 226, 255, .55); white-space: nowrap; }
.hw-tele dd { margin: 0; display: flex; align-items: center; gap: 6px; }
.hw-tele dd b { font-family: var(--f-mono); font-size: 12px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hw-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.hw-bars i { width: 3px; border-radius: 1px; background: rgba(214, 226, 255, .25); }
.hw-bars i:nth-child(1) { height: 4px; } .hw-bars i:nth-child(2) { height: 6px; } .hw-bars i:nth-child(3) { height: 9px; } .hw-bars i:nth-child(4) { height: 12px; }
.hw-bars i.is-on { background: #4ade80; }
.hw-tele__foot { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(150, 185, 255, .15); font-size: 9.5px; color: rgba(214, 226, 255, .6); text-transform: none; letter-spacing: .04em; }
.hw-stage__note { font-size: 11px; color: rgba(214, 226, 255, .4); margin-top: 10px; }
@media (max-width: 1180px) { .hw-hero .o-hero__grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .hw-stage__below { flex-direction: column; align-items: stretch; gap: 0; }
  .hw-tele { width: auto; margin-top: 12px; }
  .hw-stage__tilt { transform: none; }
}

/* ---------- Services ---------- */
.hw-caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hw-cap { position: relative; padding: 30px 28px 26px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 30px 60px -45px rgba(10, 22, 48, .4); overflow: hidden; }
.hw-cap::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(214, 163, 92, .14), transparent 70%); pointer-events: none; }
.hw-cap--ai::after { background: radial-gradient(circle, rgba(47, 128, 255, .16), transparent 70%); }
.hw-cap__ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #0f4a39, #0b2e24); box-shadow: inset 0 0 0 1px rgba(214, 163, 92, .45); }
.hw-cap__ic svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hw-cap--ai .hw-cap__ic { background: linear-gradient(135deg, #1d56d8, #0f2a6a); box-shadow: inset 0 0 0 1px rgba(143, 211, 255, .45); }
.hw-cap--ai .hw-cap__ic svg { stroke: #cfe6ff; }
.hw-cap h3 { font-family: var(--f-serif-jp); font-weight: 700; font-size: 21px; margin: 20px 0 10px; }
.hw-cap p { color: var(--muted); font-size: 14px; line-height: 1.95; }
.hw-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.hw-tags li { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--accent); font-weight: 500; }
.hw-tags--dark li { background: rgba(214, 163, 92, .14); color: var(--gold); }
@media (max-width: 1020px) { .hw-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hw-caps { grid-template-columns: 1fr; } }

/* ---------- Works ---------- */
.hw-work { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(18px, 2.4vw, 30px); border-radius: 30px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); }
.hw-work + .hw-work { margin-top: 22px; }
.hw-work--rev .hw-work__art { order: 2; }
.hw-art { display: block; width: 100%; height: auto; border-radius: 20px; font-family: var(--f-sans); }
.hw-art .blink { animation: b-blink 1.4s steps(2) infinite; }
.hw-art .waves path { animation: hw-wave 2s ease-out infinite; transform-box: fill-box; transform-origin: left center; }
.hw-art .waves path:nth-child(2) { animation-delay: .3s; }
.hw-art .waves path:nth-child(3) { animation-delay: .6s; }
@keyframes hw-wave { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.hw-work__award { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #2a1d05; background: linear-gradient(135deg, #ffe3a3, #e9b55a); box-shadow: 0 12px 30px -14px rgba(233, 181, 90, .8); margin-bottom: 18px; line-height: 1.5; }
.hw-work__award svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.hw-work__kicker { color: var(--gold); line-height: 1.8; }
.hw-work h3 { font-family: var(--f-serif-jp); font-weight: 700; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.4; margin: 10px 0 16px; }
.hw-work h3 span { font-size: 1.15em; background: linear-gradient(120deg, #ffe3a3, #e9b55a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hw-work__text { color: var(--muted); font-size: 15px; line-height: 2; }
.hw-spec { display: grid; gap: 0; margin: 18px 0 0; border-top: 1px solid var(--line); }
.hw-spec > div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hw-spec dt { color: var(--muted); }
.hw-spec dd { margin: 0; font-weight: 500; }
.hw-ext { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 13.5px; color: var(--fg); border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color .3s, color .3s; }
.hw-ext:hover { color: var(--gold); border-color: var(--gold); }
.hw-ext svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 960px) { .hw-work { grid-template-columns: 1fr; } .hw-work--rev .hw-work__art { order: 0; } }

/* ---------- Process (scrollytelling) ---------- */
.hw-flow { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.hw-flow__sticky { position: sticky; top: calc(var(--nav-h) + 20px); height: calc(100vh - var(--nav-h) - 40px); min-height: 460px; display: flex; align-items: center; }
.hw-flow__stage { position: relative; width: 100%; padding: 26px 26px 70px; border-radius: 28px; overflow: hidden; background: #08150f; border: 1px solid rgba(150, 185, 255, .14); transition: background-color .7s; }
.hw-flow__stage::before { content: ''; position: absolute; inset: 0; opacity: .5; transition: opacity .7s; background-image: linear-gradient(rgba(150, 185, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(150, 185, 255, .05) 1px, transparent 1px); background-size: 28px 28px; }
.hw-flow__stage[data-step="0"], .hw-flow__stage[data-step="1"] { background: #f2efe6; }
.hw-flow__stage[data-step="0"]::before, .hw-flow__stage[data-step="1"]::before { background-image: linear-gradient(rgba(29, 86, 216, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 86, 216, .08) 1px, transparent 1px); opacity: 1; }
.hw-flow__stage[data-step="2"] { background: #0a0d12; }
.hw-flow__stage[data-step="5"] { background: #0c1d38; }
.hw-board--flow { position: relative; }
.hw-board--flow .l { opacity: 0; transition: opacity .6s, transform .8s var(--ease-out); }
.hw-flow__stage[data-step="0"] .l-req,
.hw-flow__stage[data-step="1"] .l-sch,
.hw-flow__stage[data-step="2"] .l-base, .hw-flow__stage[data-step="2"] .l-copper,
.hw-flow__stage[data-step="3"] .l-base, .hw-flow__stage[data-step="3"] .l-copper, .hw-flow__stage[data-step="3"] .l-parts,
.hw-flow__stage[data-step="4"] .l-base, .hw-flow__stage[data-step="4"] .l-copper, .hw-flow__stage[data-step="4"] .l-parts, .hw-flow__stage[data-step="4"] .l-sig,
.hw-flow__stage[data-step="5"] .l-field { opacity: 1; }
/* step 03: the board as it looks in the layout tool — top copper red, bottom copper blue */
.hw-flow__stage[data-step="2"] .b-board { fill: #10151c; stroke: #e2e8f0; stroke-dasharray: 6 5; }
.hw-flow__stage[data-step="2"] .b-trace { stroke: #ff6b6b; opacity: .95; }
.hw-flow__stage[data-step="2"] .b-trace.is-bot { stroke: #5aa8ff; }
.hw-flow__stage[data-step="2"] .b-grain { opacity: 0; }
.hw-flow__stage[data-step="4"] .l-parts { opacity: .55; }
.hw-board--flow .b-part { cursor: default; }
.hw-board--flow .l-sch text, .hw-board--flow .l-req text { font-family: var(--f-sans); }
.hw-code { position: absolute; right: 18px; top: 18px; width: min(330px, 62%); margin: 0; padding: 14px 16px; border-radius: 14px; background: rgba(5, 10, 18, .9); border: 1px solid rgba(143, 243, 255, .3); color: #cfe6ff; font-size: 10.5px; line-height: 1.75; white-space: pre; overflow: hidden; text-transform: none; letter-spacing: 0; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease-out); pointer-events: none; }
.hw-flow__stage[data-step="4"] .hw-code { opacity: 1; transform: none; }
.hw-code .c { color: #7c8aa5; }
.hw-code .k { color: #c4b5fd; }
.hw-code .f { color: #8ff3ff; }
.hw-flow__cap { position: absolute; left: 24px; right: 24px; bottom: 20px; display: flex; gap: 14px; align-items: baseline; font-size: 15px; color: #fff; z-index: 2; transition: color .6s; }
.hw-flow__cap .mono { color: var(--gold); white-space: nowrap; }
.hw-flow__cap b { font-weight: 500; }
.hw-flow__stage[data-step="0"] .hw-flow__cap, .hw-flow__stage[data-step="1"] .hw-flow__cap { color: #0a1630; }
.hw-flow__stage[data-step="0"] .hw-flow__cap .mono, .hw-flow__stage[data-step="1"] .hw-flow__cap .mono { color: #1d56d8; }
.hw-steps { display: grid; }
.hw-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 30px 0; opacity: .3; transition: opacity .5s; }
.hw-step.is-active { opacity: 1; }
.hw-step:first-child { min-height: 60vh; }
.hw-step:last-child { min-height: 80vh; }
.hw-step__num { color: var(--gold); }
.hw-step h3 { font-family: var(--f-serif-jp); font-weight: 700; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.4; margin: 10px 0 16px; }
.hw-step p { color: var(--muted); font-size: 15.5px; line-height: 2; max-width: 30em; }
.hw-step__tag { margin-top: 18px !important; color: var(--gold) !important; font-size: 10.5px !important; }
@media (max-width: 960px) {
  .hw-flow { grid-template-columns: 1fr; gap: 0; }
  .hw-flow__sticky { top: calc(var(--nav-h) + 6px); height: auto; min-height: 0; z-index: 3; }
  .hw-flow__stage { padding: 14px 14px 50px; border-radius: 20px; }
  .hw-flow__cap { font-size: 13px; bottom: 14px; left: 16px; right: 16px; }
  .hw-code { font-size: 9px; width: 70%; padding: 10px 12px; right: 10px; top: 10px; }
  .hw-step { min-height: 64vh; padding: 24px 0; }
  .hw-step:first-child { min-height: 50vh; }
  .hw-step p { font-size: 14.5px; }
}

/* ---------- Builder ---------- */
.hw-build { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 44px); padding: clamp(22px, 3vw, 40px); border-radius: 28px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 30px 60px -45px rgba(10, 22, 48, .4); }
.hw-build__pick { display: grid; gap: 20px; align-content: start; }
.hw-pick legend { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; margin-bottom: 10px; padding: 0; }
.hw-pick legend .mono { color: var(--accent); font-size: 10px; }
.hw-pick__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hw-pick .chip { height: 36px; font-size: 13px; padding: 0 14px; }
.hw-build__out { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hw-diagram { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 22px; padding: 22px; border-radius: 22px; background: #0b1630; color: #eef3ff; }
.hw-dg { position: relative; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(150, 185, 255, .25); background: rgba(255, 255, 255, .03); animation: hw-pop .4s var(--ease-out) both; }
@keyframes hw-pop { from { opacity: 0; transform: scale(.96); } }
.hw-dg .mono { font-size: 9px; color: rgba(214, 226, 255, .55); }
.hw-dg ul { display: grid; gap: 4px; margin-top: 6px; }
.hw-dg li { font-size: 13px; line-height: 1.5; }
.hw-dg--core { border-color: var(--gold); background: linear-gradient(135deg, rgba(15, 74, 57, .9), rgba(11, 46, 36, .9)); box-shadow: 0 0 30px -8px rgba(214, 163, 92, .5); }
.hw-dg--core .mono { color: var(--gold); }
.hw-dg--view { border-color: rgba(143, 211, 255, .45); }
.hw-dg--empty li { color: rgba(214, 226, 255, .4); }
/* arrows between the columns */
.hw-dg[data-arrow]::after { content: ''; position: absolute; top: 50%; right: -18px; width: 14px; height: 2px; background: var(--sig); box-shadow: 0 0 6px var(--sig); }
.hw-dg[data-arrow]::before { content: ''; position: absolute; top: calc(50% - 4px); right: -20px; border: 5px solid transparent; border-left: 6px solid var(--sig); border-right: 0; }
.hw-dg--power { grid-column: 2; }
.hw-dg--power::after { content: ''; position: absolute; left: 50%; top: -14px; width: 2px; height: 12px; background: var(--gold); }
.hw-build__example { font-size: 14px; line-height: 1.8; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 7%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); }
.hw-build__example b { color: var(--accent); }
.hw-notes { display: grid; gap: 8px; }
.hw-notes li { display: grid; grid-template-columns: 9em 1fr; gap: 12px; font-size: 13.5px; line-height: 1.75; padding: 10px 0; border-bottom: 1px solid var(--line); animation: hw-pop .4s var(--ease-out) both; }
.hw-notes b { font-weight: 700; }
.hw-notes span { color: var(--muted); }
@media (max-width: 1020px) { .hw-build { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .hw-diagram { grid-template-columns: 1fr; padding: 16px; }
  .hw-dg[data-arrow]::after { top: auto; bottom: -12px; right: auto; left: 50%; width: 2px; height: 10px; }
  .hw-dg[data-arrow]::before { top: auto; bottom: -16px; right: auto; left: calc(50% - 4px); border: 5px solid transparent; border-top: 6px solid var(--sig); border-bottom: 0; }
  .hw-dg--power { grid-column: 1; order: 3; }
  .hw-dg--power::after { display: none; }
  .hw-notes li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Dashboard ---------- */
.hw-dash { position: relative; border-radius: 26px; overflow: hidden; border: 1px solid rgba(150, 185, 255, .18); background: #08111f; color: #eef3ff; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8); }
.hw-dash__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border-bottom: 1px solid rgba(150, 185, 255, .12); }
.hw-dash__bar b { font-size: 15px; }
.hw-dash__bar .mono { font-size: 9.5px; color: rgba(214, 226, 255, .5); text-transform: none; letter-spacing: .04em; }
.hw-dash__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.hw-map { border-right: 1px solid rgba(150, 185, 255, .12); }
.hw-map__svg { display: block; width: 100%; height: auto; font-family: var(--f-sans); }
.m-land { fill: #0c1a2c; }
.m-grid { stroke: rgba(150, 185, 255, .06); stroke-width: 1; }
.m-river { fill: none; stroke: #16365e; stroke-width: 14; stroke-linecap: round; }
.m-road { fill: none; stroke: #23324a; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.m-road.is-main { stroke: #2e4262; stroke-width: 9; }
.m-track { fill: none; stroke: var(--sig); stroke-width: 2; stroke-dasharray: 4 5; opacity: .6; }
.m-pin { cursor: pointer; }
.m-pin circle.dot { fill: #34d399; stroke: #08111f; stroke-width: 3; transition: r .3s; }
.m-pin.is-warn circle.dot { fill: #ff9a3c; }
.m-pin circle.ring { fill: none; stroke: #34d399; stroke-width: 2; opacity: 0; }
.m-pin.is-on circle.ring { animation: m-ring 1.6s ease-out infinite; }
.m-pin.is-warn circle.ring { stroke: #ff9a3c; }
@keyframes m-ring { from { opacity: .9; r: 8; } to { opacity: 0; r: 26; } }
.m-pin text { fill: #dbe7ff; font-size: 11.5px; paint-order: stroke; stroke: #08111f; stroke-width: 4px; }
.m-pin.is-on text { fill: #fff; font-weight: 700; }
.hw-detail { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.hw-detail__name { display: flex; align-items: center; gap: 10px; }
.hw-detail__name b { font-size: 16px; }
.hw-chip { font-size: 11px; padding: 2px 10px; border-radius: 999px; background: rgba(52, 211, 153, .15); color: #6ee7b7; }
.hw-chip.is-warn { background: rgba(255, 154, 60, .18); color: #ffc48a; }
.hw-detail__kind { font-size: 12.5px; color: rgba(214, 226, 255, .6); }
.hw-detail__val { display: flex; align-items: baseline; gap: 6px; }
.hw-detail__val b { font-family: var(--f-serif-en); font-size: 54px; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.hw-detail__val span { color: rgba(214, 226, 255, .6); }
.hw-spark { width: 100%; height: 80px; }
.hw-spark__line { fill: none; stroke: var(--sig); stroke-width: 2; vector-effect: non-scaling-stroke; }
.hw-spark__area { fill: rgba(143, 243, 255, .08); }
.hw-spark__th { fill: none; stroke: #ff9a3c; stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.hw-detail__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding-top: 10px; border-top: 1px solid rgba(150, 185, 255, .12); }
.hw-detail__meta dt { font-size: 10.5px; color: rgba(214, 226, 255, .5); }
.hw-detail__meta dd { margin: 2px 0 0; font-family: var(--f-mono); font-size: 12px; }
.hw-slider { display: grid; gap: 4px; margin-top: 4px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px dashed rgba(150, 185, 255, .25); font-size: 12.5px; }
.hw-slider span { display: flex; justify-content: space-between; gap: 10px; }
.hw-slider b { font-weight: 500; color: #ffc48a; font-size: 11.5px; }
.hw-slider[hidden] { display: none; }
.hw-list { width: 100%; border-collapse: collapse; font-size: 13px; border-top: 1px solid rgba(150, 185, 255, .12); }
.hw-list th, .hw-list td { padding: 10px 20px; text-align: left; border-bottom: 1px solid rgba(150, 185, 255, .08); white-space: nowrap; }
.hw-list th { font-weight: 500; font-size: 11px; color: rgba(214, 226, 255, .5); }
.hw-list tbody tr { cursor: pointer; transition: background-color .3s; }
.hw-list tbody tr:hover, .hw-list tbody tr.is-on { background: rgba(143, 243, 255, .06); }
.hw-list td:nth-child(3) { font-family: var(--f-mono); }
.hw-alert { position: absolute; left: 16px; top: 62px; display: flex; gap: 12px; align-items: flex-start; width: min(360px, calc(100% - 32px)); padding: 14px 16px; border-radius: 16px; background: #fff7ed; color: #3b1d06; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); animation: hw-alert .5s var(--ease-out) both; z-index: 3; }
@keyframes hw-alert { from { opacity: 0; transform: translateY(-12px); } }
.hw-alert__ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: #f97316; }
.hw-alert b { font-size: 14px; }
.hw-alert p { font-size: 12.5px; line-height: 1.7; margin-top: 2px; color: #7c2d12; }
@media (max-width: 960px) { .hw-dash__grid { grid-template-columns: 1fr; } .hw-map { border-right: 0; border-bottom: 1px solid rgba(150, 185, 255, .12); } }
@media (max-width: 640px) {
  .hw-list th:nth-child(2), .hw-list td:nth-child(2), .hw-list th:nth-child(4), .hw-list td:nth-child(4) { display: none; }
  .hw-list th, .hw-list td { padding: 10px 14px; }
  .hw-alert { top: auto; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .b-sig { display: none; }
}

/* builder: "見る" sits under "つなぐ" with a connector from above */
.hw-dg--view { grid-column: 3; grid-row: 2; }
.hw-dg--view::after { content: ''; position: absolute; left: 50%; top: -14px; width: 2px; height: 12px; background: var(--sig); box-shadow: 0 0 6px var(--sig); }
@media (max-width: 560px) { .hw-dg--view { grid-column: 1; grid-row: auto; order: 4; } .hw-dg--view::after { display: none; } }
/* field scene links in the process stage */
.hw-board--flow .f-link { animation: b-sig 3s linear infinite; }
.hw-board--flow .waves path { animation: hw-wave 2s ease-out infinite; }
.hw-board--flow .waves path:nth-child(2) { animation-delay: .3s; }
.hw-board--flow .waves path:nth-child(3) { animation-delay: .6s; }
/* step 03 also shows the parts as outlines (footprints), as a layout tool does */
.hw-flow__stage[data-step="2"] .l-parts { opacity: 1; }
.hw-flow__stage[data-step="2"] .l-parts * { fill: none !important; stroke: rgba(232, 242, 236, .55) !important; stroke-width: 1 !important; filter: none !important; animation: none !important; }
.hw-flow__stage[data-step="2"] .l-parts text { fill: rgba(232, 242, 236, .75) !important; stroke: none !important; }
