/* The router anatomy under the lamp on a Google router's product page (owner 2026-11-26 14:35 UTC: off the Pro home, onto every
   Google router page under its sales part; shop/_router_anatomy.html, router-anatomy.js, docs/54-router-anatomy.md). The lamp
   section's own rules, copied from the home's style.css, reference-effects.css and v9.css (the home keeps them for its plain lamp),
   with the variables and the box model the home sets on :root, here on the section only. Change a rule in both places. */
@font-face { font-family:Anton; src:url('./assets/fonts/Anton-gk.woff2') format('woff2'); font-weight:400; font-display:swap; }
#lamp-section {
  --gk-black:#060608; --gk-line:rgba(255,255,255,.08); --gk-text:#F4F4F6; --gk-muted:#9A9AA6;
  --gk-y:#FBE335; --gk-o:#D28E63; --gk-p:#F05666; --gk-v:#A83991;
  --gk-grad:linear-gradient(90deg,var(--gk-y) 0%,var(--gk-o) 24.7%,var(--gk-p) 38%,var(--gk-v) 100%);
  --gk-tube-glow:#8FF3FF; --gk-ease:cubic-bezier(.2,.7,.2,1); --ease-out:cubic-bezier(.16,1,.3,1);
  /* the page's column is 1240 px wide: the section takes the whole window, less a classic scrollbar (--ra-sb, router-anatomy.js) */
  margin-block:36px 0; margin-inline:calc(50% - 50vw + var(--ra-sb, 0px) / 2);
  font-family:Vazirmatn, Tahoma, sans-serif; line-height:normal; color:#f2f1ee; color-scheme:dark;
}
#lamp-section, #lamp-section *, #lamp-section *::before, #lamp-section *::after { box-sizing:border-box; }
.bf > #lamp-section { margin-block:0; }  /* the bundle's page spaces its sections itself */
#lamp-section .shell { width:min(1240px, 90%); margin-inline:auto; }
#lamp-section .sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0, 0, 0, 0); white-space:nowrap; }

/* ---- style.css ---- */
.device-ground { position: absolute; height: 10px; border-radius: 50%; background: var(--led, #58dcca); filter: blur(11px); opacity: .58; pointer-events: none; z-index: 1; }
.huawei-ground { left: 31%; right: 31%; bottom: 7%; --led: #65cde9; }
.huawei-stage { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.huawei-stage[data-dragging=true] { cursor: grabbing; }
.model-fallback { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; pointer-events: none; }
.model-fallback.is-hidden, [data-model-ready=true] > .model-fallback { visibility: hidden; }
.huawei-stage canvas { position: absolute; inset: 0; display: block; }
.model-hint { position: absolute; inset: auto 8px 4px; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0;
  color: #bfdddd; font-size: 11px; line-height: 1.8; text-align: center; opacity: 0; pointer-events: none; transition: opacity .35s var(--ease-out); }
[data-model-ready=true] > .model-hint { opacity: .8; }
[data-dragging=true] > .model-hint { opacity: 0; }
.lamp-section { position: relative; min-height: 105svh; background: #050c1b; overflow: hidden; padding: 110px 0 100px; }
.lamp-rig { height: 240px; position: relative; width: min(900px, 100%); margin-inline: auto; }
.lamp-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; align-items: center; position: relative; z-index: 3; margin-top: -45px; }
.lamp-copy { padding: 12px 0 0 24px; }
.lamp-copy h2 { font: 700 clamp(38px, 4.6vw, 70px)/1.1 Vazirmatn, sans-serif; letter-spacing: -.035em; text-align: right; margin: 0 0 28px; color: #f3f6f6; }
.lamp-copy h2 span { display: inline-block; margin-top: 6px; font-weight: 350; font-size: .63em; letter-spacing: .01em; color: #8acbd1; }
.lamp-copy > p { font-size: 15px; color: #b2c1ce; line-height: 2.1; max-width: 440px; margin: 0; }
.lamp-device { height: 530px; position: relative; direction: ltr; }
.huawei-stage { position: absolute; inset: -8% -8% 7%; z-index: 2; }
.huawei-stage .model-hint { bottom: -25px; }
@media (min-width: 1500px) {
  #lamp-section .shell { width: min(1400px, 88%); }
  .lamp-device { height: 590px; }
}
@media (max-width: 900px) {
  .lamp-copy h2 { font-size: 48px; }
  .lamp-device { height: 440px; }
  .lamp-section { padding-top: 80px; }
  .lamp-layout { margin-top: -65px; gap: 3%; }
  .lamp-copy { padding-left: 0; }
  .lamp-copy > p { font-size: 14px; }
}
@media (max-width: 600px) {
  #lamp-section .shell { width: 90%; }
  .model-hint { font-size: 11px; bottom: 0; }
  .lamp-section { padding: 76px 0 74px; min-height: auto; }
  .lamp-rig { height: 190px; }
  .lamp-layout { display: flex; flex-direction: column-reverse; margin-top: -75px; gap: 24px; }
  .lamp-device { width: 100%; height: 405px; }
  .huawei-stage { inset: -7% -5% 7%; }
  .lamp-copy { padding: 12px 0 0; width: 100%; text-align: center; }
  .lamp-copy h2 { text-align: center; font-size: 46px; margin-bottom: 21px; }
  .lamp-copy h2 span { font-size: .62em; }
  .lamp-copy > p { font-size: 14px; line-height: 2; margin-inline: auto; }
}
@media (max-width: 360px) {
  .lamp-copy h2 { font-size: 40px; }
}

/* ---- reference-effects.css ---- */
.lamp-section, #lamp-section {
  --lamp-progress:0; --lamp-background:#07111a; --lamp-line-width:18%;
  --lamp-beam-width:9%; --lamp-light:0; --lamp-sweep:-14%; --lamp-sweep-opacity:0;
  height:260svh; min-height:0; padding:0; overflow:clip; background:var(--lamp-background);
}
.lamp-stage { position:sticky; top:0; height:100svh; min-height:620px; overflow:hidden; background:var(--lamp-background); }
.lamp-stage .lamp-layout { height:100%; margin-top:0; padding-top:clamp(100px,18svh,170px); padding-bottom:36px; }
.lamp-stage .lamp-device { height:clamp(350px,66svh,580px); }
.lamp-rig {
  --lamp-level:clamp(72px,12svh,115px);
  position:absolute; top:0; left:50%; right:auto; bottom:auto;
  width:min(1440px,100%); height:clamp(220px,37svh,350px); margin:0;
  transform:translateX(-50%); pointer-events:none; overflow:visible; z-index:1;
}
.lamp-beam { position:absolute; top:var(--lamp-level); width:var(--lamp-beam-width); max-width:620px; height:clamp(190px,30svh,280px); opacity:calc(.12 + var(--lamp-light) * .56); }
.lamp-beam.left { right:50%; background:conic-gradient(from 70deg at center top, #24c4d5, transparent, transparent); }
.lamp-beam.right { left:50%; background:conic-gradient(from 290deg at center top, transparent, transparent, #24c4d5); }
.lamp-beam::before { content:""; position:absolute; inset:28% 0 0; background:var(--lamp-background); mask-image:linear-gradient(to top,white 3%,transparent); }
.lamp-beam::after { content:""; position:absolute; inset:0 auto 0 0; width:33%; background:var(--lamp-background); mask-image:linear-gradient(to right,white,transparent); }
.lamp-beam.right::after { left:auto; right:0; mask-image:linear-gradient(to left,white,transparent); }
.lamp-halo { position:absolute; left:50%; top:var(--lamp-level); width:var(--lamp-line-width); max-width:1110px; height:24px; transform:translate(-50%,-50%); border-radius:50%; background:#41d1dc; opacity:calc(.1 + var(--lamp-light) * .34); filter:blur(23px); }
.lamp-line { position:absolute; left:50%; top:var(--lamp-level); width:var(--lamp-line-width); max-width:1240px; height:2px; transform:translateX(-50%); background:linear-gradient(90deg,#5db9c000,#83e3e8 12%,#d8fffd 50%,#83e3e8 88%,#5db9c000); opacity:calc(.4 + var(--lamp-light) * .6); box-shadow:0 0 16px #35c9d259; }
.lamp-line::after { content:""; position:absolute; top:-2px; left:var(--lamp-sweep); width:15%; height:6px; transform:translateX(-50%); background:linear-gradient(90deg,transparent,#eaffff,transparent); opacity:var(--lamp-sweep-opacity); filter:blur(1px); }
.lamp-rig::before { content:""; position:absolute; inset:0 0 auto; height:var(--lamp-level); background:var(--lamp-background); z-index:1; }
.lamp-rig::after { content:""; position:absolute; inset:65% 0 -25%; background:linear-gradient(transparent,var(--lamp-background) 78%); }
#lamp-section[data-anatomy="on"] { height:710svh; }
html[data-anatomy-snap="on"] { scroll-snap-type:y proximity; }
.anatomy-stops { position:absolute; inset:0 auto auto 0; width:1px; height:0; pointer-events:none; }
.anatomy-stops > i { position:absolute; left:0; width:1px; height:1px; scroll-snap-align:start; scroll-snap-stop:always; }
.lamp-stage > .anatomy-canvas { position:absolute; inset:0; width:100%; height:100%; z-index:2; pointer-events:none; }
#lamp-section[data-anatomy="on"] .huawei-stage > canvas { display:none; }
#lamp-section[data-anatomy="on"]:not([data-assembly="whole"]) .lamp-os,
#lamp-section[data-anatomy="on"]:not([data-assembly="whole"]) .device-ground,
#lamp-section[data-anatomy="on"]:not([data-assembly="whole"]) .model-hint { opacity:0; visibility:hidden; }
#lamp-section[data-anatomy="on"]:not([data-assembly="whole"]) .lamp-stage { touch-action:pan-y pinch-zoom; user-select:none; -webkit-user-select:none; }
.anatomy-caption { position:absolute; z-index:4; inset-inline-start:max(24px,4vw); bottom:max(28px,env(safe-area-inset-bottom,0px)); box-sizing:border-box;
  width:min(330px,calc(100% - 32px)); padding:12px 15px 13px; border-radius:14px; border:1px solid var(--gk-line,rgba(255,255,255,.12));
  background:rgba(7,17,26,.82); color:#eef4f6; direction:rtl; text-align:right; pointer-events:none; opacity:0; visibility:hidden;
  transform:translateY(8px); transition:opacity .35s ease, transform .35s ease, visibility 0s linear .35s; backdrop-filter:blur(6px); }
.anatomy-caption[data-show="on"] { opacity:1; visibility:visible; transform:none; transition:opacity .35s ease, transform .35s ease; }
.anatomy-caption small { display:block; font-size:11.5px; color:#8acbd1; letter-spacing:.02em; }
.anatomy-caption strong { display:block; margin:3px 0 4px; font-size:15px; font-weight:700; }
.anatomy-caption p { margin:0; font-size:12.5px; line-height:1.85; color:#b2c1ce; min-height:3.7em; }
@media(max-width:700px) {
  .lamp-section, #lamp-section { height:280svh; }
  .lamp-stage { min-height:680px; }
  .lamp-stage .lamp-layout { display:flex; flex-direction:column-reverse; justify-content:center; gap:14px; padding-top:100px; padding-bottom:30px; }
  .lamp-stage .lamp-device { width:100%; height:clamp(260px,38svh,340px); flex-shrink:0; }
  .lamp-stage .lamp-copy { width:100%; padding:0; text-align:center; }
  .lamp-stage .lamp-copy h2 { text-align:center; font-size:clamp(33px,5.8svh,43px); margin-bottom:14px; }
  .lamp-stage .lamp-copy > p { font-size:13px; line-height:1.9; margin-inline:auto; }
  .lamp-rig { --lamp-level:72px; height:235px; }
  .lamp-beam { height:190px; }
  .lamp-halo { height:18px; filter:blur(17px); }
  #lamp-section[data-anatomy="on"] { height:730svh; }
  .anatomy-caption { inset-inline:16px; width:auto; bottom:calc(64px + env(safe-area-inset-bottom,0px)); padding:10px 13px 11px; }
  .anatomy-caption p { font-size:12px; min-height:3.6em; }
}
@media(max-height:620px), (max-width:700px) and (max-height:700px) {
  .lamp-section, #lamp-section, #lamp-section[data-anatomy="on"] { height:auto; }
  .lamp-stage { position:relative; height:auto; min-height:0; overflow:hidden; }
  .lamp-stage .lamp-layout { height:auto; padding-top:115px; padding-bottom:55px; }
  .lamp-stage .lamp-device { height:320px; }
}
@media(max-width:700px) and (max-height:700px) {
  .lamp-stage .lamp-device { height:275px; }
}
@media(prefers-reduced-motion:reduce) {
  .anatomy-caption, .anatomy-caption[data-show="on"] { transition:none; }
}

/* ---- v9.css ---- */
.lamp-section, #lamp-section { --lamp-background:var(--gk-black); --lamp-open:0; background:var(--gk-black); }
.lamp-line { width:min(76%,1100px); height:3px; transform:translateX(-50%) scaleX(var(--lamp-open)); background:linear-gradient(90deg,rgba(143,243,255,0),#c9faff 9%,#fff 50%,#c9faff 91%,rgba(143,243,255,0)); opacity:.32; box-shadow:0 0 8px rgba(143,243,255,.6); border-radius:3px; }
.lamp-halo { width:min(76%,1100px); transform:translate(-50%,-50%) scaleX(var(--lamp-open)); background:var(--gk-tube-glow); opacity:.05; }
.lamp-beam { width:min(38%,560px); max-width:none; opacity:.04; transform:scaleX(var(--lamp-open)); }
.lamp-beam.left { transform-origin:right center; background:conic-gradient(from 70deg at center top, #bdf7ff, transparent, transparent); }
.lamp-beam.right { transform-origin:left center; background:conic-gradient(from 290deg at center top, transparent, transparent, #bdf7ff); }
.lamp-spark { position:absolute; left:50%; top:var(--lamp-level); z-index:2; width:7px; height:7px; margin:-3.5px 0 0 -3.5px; border-radius:50%; background:#fff; box-shadow:0 0 12px 4px rgba(143,243,255,.85), 0 0 34px 10px rgba(143,243,255,.35); opacity:calc(min(1, var(--lamp-progress) * 60) * (1 - min(1, var(--lamp-open) * 3))); }
#lamp-section[data-power="on"] .lamp-line { opacity:1; animation:gk-flick .8s steps(1,end) both; }
#lamp-section[data-power="on"] .lamp-halo { opacity:.42; animation:gk-flick .8s steps(1,end) both; }
#lamp-section[data-power="on"] .lamp-beam { opacity:.62; animation:gk-flick .8s steps(1,end) both; }
.lamp-stage .lamp-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(320px,40%) minmax(0,1fr); grid-template-areas:"head device steps"; align-items:center; gap:3%; }
.lamp-copy { display:contents; }
.lamp-head { grid-area:head; padding:0; opacity:0; transform:translateY(14px); transition:opacity .6s var(--gk-ease) .35s, transform .7s var(--gk-ease) .35s; }
#lamp-section[data-power="on"] .lamp-head { opacity:1; transform:none; }
.lamp-kicker { display:inline-block; font-size:12px; letter-spacing:.02em; color:#bdf7ff; margin-bottom:12px; }
.lamp-head h2 { margin-bottom:18px; }
.lamp-head h2 span { color:#bdf7ff; }
.lamp-head > p { margin-bottom:22px; color:var(--gk-muted); }
.lamp-device { grid-area:device; }
.lamp-steps { grid-area:steps; list-style:none; margin:0; padding:0; display:grid; gap:12px; counter-reset:lamp; }
.lamp-steps li { position:relative; padding:14px 16px 14px 14px; border-radius:14px; border:1px solid var(--gk-line); background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.01)); opacity:0; transform:translateY(22px); transition:opacity .55s var(--gk-ease), transform .65s var(--gk-ease), border-color .4s; }
.lamp-steps b { display:block; font-size:15px; font-weight:700; color:var(--gk-text); margin-bottom:4px; }
.lamp-steps span { display:block; font-size:13px; line-height:1.9; color:var(--gk-muted); }
#lamp-section[data-step="1"] .lamp-steps li:nth-child(-n+1),
#lamp-section[data-step="2"] .lamp-steps li:nth-child(-n+2),
#lamp-section[data-step="3"] .lamp-steps li { opacity:.55; transform:none; }
#lamp-section[data-step="1"] .lamp-steps li:nth-child(1),
#lamp-section[data-step="2"] .lamp-steps li:nth-child(2),
#lamp-section[data-step="3"] .lamp-steps li:nth-child(3) { opacity:1; border-color:rgba(189,247,255,.28); }
#lamp-section .huawei-stage { filter:brightness(.3) saturate(.55); transition:filter .6s; }
#lamp-section[data-power="on"] .huawei-stage { filter:brightness(1.06) saturate(1); animation:gk-flick-device .8s steps(1,end) both; }
.lamp-device::before { content:""; position:absolute; inset:-30% -12% 0; z-index:1; pointer-events:none; background:radial-gradient(48% 70% at 50% 0%, rgba(201,250,255,.2), rgba(143,243,255,.05) 55%, transparent 75%); opacity:0; transition:opacity .4s; }
#lamp-section[data-power="on"] .lamp-device::before { opacity:1; animation:gk-flick .8s steps(1,end) both; }
#lamp-section .huawei-ground { --led:#bdf7ff; opacity:.12; left:24%; right:24%; height:16px; filter:blur(14px); transition:opacity .5s; }
#lamp-section[data-power="on"] .huawei-ground { opacity:.75; }
@media (max-width:1020px) {
  .lamp-stage .lamp-layout { display:grid; grid-template-columns:1fr; grid-template-areas:"device" "head" "steps"; gap:12px; padding-top:92px; }
  .lamp-stage .lamp-device { height:clamp(220px,32svh,300px); }
  .lamp-head { text-align:center; }
  .lamp-head h2 { font-size:clamp(28px,5svh,40px); margin-bottom:8px; }
  .lamp-head > p { display:none; }
  .lamp-kicker { margin-bottom:4px; }
  .lamp-steps { gap:8px; }
  .lamp-steps li { padding:10px 12px; }
  .lamp-steps li span { font-size:12px; line-height:1.8; }
}
@media (prefers-reduced-motion:reduce) {
  #lamp-section[data-power="on"] .lamp-line, #lamp-section[data-power="on"] .lamp-halo, #lamp-section[data-power="on"] .lamp-beam,
  #lamp-section[data-power="on"] .huawei-stage, #lamp-section[data-power="on"] .lamp-device::before { animation:none; }
  .lamp-steps li, .lamp-head { transition:none; }
}
.lamp-os { position:absolute; z-index:3; right:-6%; bottom:8%; width:min(46%,210px); padding:14px 16px 12px; border-radius:16px; direction:rtl; color:#fff; background:linear-gradient(160deg,rgba(22,26,38,.94),rgba(8,10,16,.94)); border:1px solid rgba(240,86,102,.5); box-shadow:inset 0 0 0 1px rgba(255,255,255,.04), 0 18px 50px rgba(240,86,102,.2); opacity:.2; transform:translateY(10px); transition:opacity .6s, transform .6s; pointer-events:none; }
#lamp-section[data-power="on"] .lamp-os { opacity:1; transform:none; }
.lamp-os b { display:block; direction:ltr; text-align:left; font:400 19px/1.05 Anton, Vazirmatn, sans-serif; letter-spacing:.04em; background:var(--gk-grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.lamp-os span { display:block; margin-top:6px; font-size:12.5px; color:rgba(255,255,255,.74); }
.lamp-os em { display:flex; gap:5px; margin-top:10px; direction:ltr; }
.lamp-os em i { width:7px; height:7px; border-radius:50%; background:#5EEAD4; box-shadow:0 0 8px #5EEAD4; }
.lamp-os em i:nth-child(2) { background:#FBE335; box-shadow:0 0 8px #FBE335; }
.lamp-os em i:nth-child(3) { background:#F05666; box-shadow:0 0 8px #F05666; }
@media (max-width:760px) {
  .lamp-os { right:2%; bottom:2%; width:min(52%,180px); padding:10px 12px; }
  .lamp-os b { font-size:15px; }
}
#lamp-title span { white-space:nowrap; font-size:.62em; }
@keyframes gk-flick { 0% { opacity:.08; } 12% { opacity:1; } 22% { opacity:.1; } 36% { opacity:1; } 46% { opacity:.35; } 58%, 100% { opacity:1; } }
@keyframes gk-flick-device { 0% { filter:brightness(.3) saturate(.55); } 12% { filter:brightness(1.06); } 22% { filter:brightness(.34) saturate(.6); } 36% { filter:brightness(1.06); } 46% { filter:brightness(.55); } 58%, 100% { filter:brightness(1.06) saturate(1); } }
