/* Lights, signs and screens: drawn hardware (no real products), lit by the same states the floor board shows. */
.home { --s-red: #FF5A4A; --s-amber: #FFB02E; --s-green: #2FBF71; --s-blue: #5AA9FF; }
.sg-hero { padding-top: clamp(48px, 7vw, 96px) !important; }
.sg-hero h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 22px; color: #fff; }
.sg-hero h1 em { font-style: normal; color: var(--brand); }

/* Signal tower (the <symbol>): dim lenses, one lit by the figure's state. */
.t-metal { fill: #3A475B; }
.t-metal-2 { fill: #2A3546; }
.t-shine { stroke: rgba(255, 255, 255, .18); stroke-width: 3; stroke-linecap: round; fill: none; }
/* Colours reach inside each <use> copy only as inherited custom properties, so each state sets them. */
.seg-red { fill: var(--seg-r, #3B1A18); filter: var(--seg-rf, none); }
.seg-amber { fill: var(--seg-a, #3D3017); filter: var(--seg-af, none); }
.seg-green { fill: var(--seg-g, #15301F); filter: var(--seg-gf, none); }
[data-state="red"] { --seg-r: var(--s-red); --seg-rf: drop-shadow(0 0 14px var(--s-red)); }
[data-state="amber"] { --seg-a: var(--s-amber); --seg-af: drop-shadow(0 0 14px var(--s-amber)); animation: flash 1.1s steps(1) infinite; }
[data-state="green"] { --seg-g: var(--s-green); --seg-gf: drop-shadow(0 0 14px var(--s-green)); }
@keyframes flash { 50% { --seg-a: #3D3017; --seg-af: none; } }

.towers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 2vw, 24px); align-items: end; background: radial-gradient(ellipse at 50% 30%, rgba(255, 198, 41, .07), transparent 70%); border: 1px solid var(--h-line); border-radius: 22px; padding: 28px 18px 22px; }
.tower { margin: 0; text-align: center; }
.tower svg, .lane-tower svg { width: 100%; max-width: 120px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.tower figcaption { margin-top: 12px; display: grid; gap: 2px; }
.tower figcaption strong { color: #fff; font-size: 15px; }
.tower figcaption span { color: var(--h-muted); font-size: 13px; }

/* One line through a shift: the tower steps through the list beside it. */
.sg-panel { padding: clamp(18px, 3vw, 30px); }
.lane { display: grid; grid-template-columns: 110px 1fr; gap: 22px; align-items: center; }
.lane-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lane-steps li { color: var(--h-muted); font-size: 15px; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; transition: background .3s, border-color .3s, color .3s; display: flex; gap: 10px; align-items: baseline; }
.lane-steps li strong { color: #fff; font-family: var(--mono); font-weight: 500; font-size: 13px; }
.lane-steps li.on { background: var(--h-panel-2); border-color: var(--h-line-2); color: var(--h-text); }
.pip { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; position: relative; top: 1px; }
.pip-red { background: var(--s-red); box-shadow: 0 0 10px var(--s-red); }
.pip-amber { background: var(--s-amber); box-shadow: 0 0 10px var(--s-amber); }
.pip-green { background: var(--s-green); box-shadow: 0 0 10px var(--s-green); }
.pip-blue { background: var(--s-blue); box-shadow: 0 0 10px var(--s-blue); }

/* LED sign: text seen only through the dot grid, scrolling. */
.ledsign { margin-top: 8px; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .7)); }
.ledsign svg { width: 100%; height: auto; display: block; }
.sign-case { fill: #1A2230; stroke: #2E3B50; stroke-width: 2; }
.sign-glass { fill: #050608; }
.sign-off { opacity: .07; }
.sign-text { font: 700 62px/1 var(--mono); letter-spacing: 2px; }
.sign-text .amber, .desk-text.amber { fill: var(--s-amber); }
.sign-text .red, .desk-text.red { fill: var(--s-red); }
.sign-text .green, .desk-text.green { fill: var(--s-green); }
.sign-text .dim { fill: #6B5A3A; }
.led-marquee { animation: led-marquee 34s linear infinite; }
@keyframes led-marquee { to { transform: translateX(-3420px); } }

/* Wall screen and line tablet: real screens, drawn frames. */
.tv { max-width: 620px; margin: 0 auto; }
.tv-bezel { background: #0A0E14; border: 1px solid #2A3546; border-radius: 14px; padding: 12px; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .95); }
.tv-bezel img { border-radius: 4px; display: block; width: 100%; height: auto; }
.tv-stand { width: 34%; height: 46px; margin: 0 auto; background: linear-gradient(#1C2533, #121924); clip-path: polygon(38% 0, 62% 0, 70% 70%, 100% 76%, 100% 100%, 0 100%, 0 76%, 30% 70%); }
.tablet { position: relative; max-width: 600px; margin: 0 auto; background: linear-gradient(145deg, #2A3546, #0C121C); border-radius: 26px; padding: 14px; box-shadow: 0 0 0 1px #3A475B inset, 0 60px 120px -50px rgba(0, 0, 0, .95); }
.tablet img { border-radius: 14px; display: block; width: 100%; height: auto; }
.tab-banner { position: absolute; left: 14px; right: 14px; top: 14px; z-index: 1; display: flex; align-items: center; gap: 12px; background: #E07A1F; color: #fff; padding: 10px 16px; border-radius: 14px 14px 0 0; font-size: 14px; animation: tab-drop 6s ease-in-out infinite; }
.tab-banner div { display: grid; line-height: 1.25; flex: 1; }
.tab-banner span { font-size: 12.5px; opacity: .9; }
.tab-banner b { font-size: 13px; }
.bell { width: 18px; height: 18px; border-radius: 50% 50% 4px 4px; background: #fff; flex: none; }
@keyframes tab-drop { 0%, 12% { transform: translateY(-20px); opacity: 0; } 20%, 80% { transform: none; opacity: 1; } 92%, 100% { transform: translateY(-20px); opacity: 0; } }

/* Desk display: three messages taking turns. */
.desk { max-width: 460px; margin: 0 auto; }
.desk svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .7)); }
.desk-body { fill: #1A2230; stroke: #2E3B50; stroke-width: 2; }
.desk-foot { fill: #121924; }
.desk-text { font: 700 40px/1 var(--mono); letter-spacing: 1px; }
.fill-red { fill: var(--s-red); }
.fill-amber { fill: var(--s-amber); }
.stroke-green { stroke: var(--s-green); stroke-width: 9; fill: none; stroke-linecap: square; }
.desk-msgs .m { opacity: 0; animation: turn 9s infinite; }
.desk-msgs .m2 { animation-delay: 3s; }
.desk-msgs .m3 { animation-delay: 6s; }
@keyframes turn { 0%, 30% { opacity: 1; } 33.4%, 100% { opacity: 0; } }

/* Events and steps */
.events { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ev { background: var(--h-panel); border: 1px solid var(--h-line); border-radius: 16px; padding: 18px; }
.ev strong { display: block; color: #fff; margin: 12px 0 4px; }
.ev p { margin: 0; color: var(--h-muted); font-size: 14px; }
/* Seven events: the last one fills out its row, in four columns or two. */
.ev-wide { grid-column: span 2; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--h-panel); border: 1px solid var(--h-line); border-radius: 18px; padding: 22px; }
.step b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 198, 41, .14); color: var(--brand); font-family: var(--mono); margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--h-muted); font-size: 15px; }

/* The home page's callout card linking here. */
.sig-callout { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: center; background: var(--h-panel); border: 1px solid var(--h-line); border-radius: 22px; padding: 22px 26px; text-decoration: none; transition: border-color .3s, transform .3s; }
.sig-callout:hover { border-color: var(--h-line-2); transform: translateY(-2px); }
.sig-callout .mini { display: flex; gap: 8px; justify-content: center; }
.sig-callout .mini svg { width: 30px; height: auto; overflow: visible; }
.sig-callout h3 { margin: 0 0 4px; color: #fff; font-size: 19px; }
.sig-callout p { margin: 0; color: var(--h-muted); font-size: 15px; }
.sig-callout .go { color: var(--brand); font-weight: 650; white-space: nowrap; }

@media (max-width: 900px) {
  .events { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sig-callout { grid-template-columns: 1fr; text-align: left; }
  .sig-callout .mini { justify-content: flex-start; }
  .lane { grid-template-columns: 76px 1fr; gap: 14px; }
}
@media (max-width: 460px) { .events { grid-template-columns: 1fr; } .ev-wide { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) {
  .led-marquee, .tab-banner, [data-state="amber"] { animation: none; }
  .desk-msgs .m { animation: none; }
  .desk-msgs .m1 { opacity: 1; }
}
