/* ============================================================
   GridSync LLC - switchboard control-room theme
   BUS-NIGHT body / DIAL-CREAM text / COPPER-BUS accent
   LAMP-GLOW highlight (needle, pilot dots, display word only)
   PHASE-PHOSPHOR functional (wave glyph, ticks only)
   ============================================================ */

:root {
  --bus-night: #141A18;
  --chamber-deep: #1B2320;
  --chassis-deep: #1B2320;
  --dial-cream: #F1EDE0;
  --copper-bus: #C07840;
  --lamp-glow: #E0B04A;
  --phase-phosphor: #4E8C5A;
  --panel-bone: #E7E2D2;
  --bus-ink: #232622;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.65;
  background-color: #141A18;
  color: #F1EDE0;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Trebuchet MS", Verdana, sans-serif;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: #C07840;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background-color: #C07840;
  color: #232622;
  padding: 10px 18px;
  z-index: 60;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------------- NAV: DIAL-KEY FASCIA ---------------- */

.dialnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #1B2320;
  border-bottom: 3px solid #C07840;
}

.dialnav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.dialnav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #232622;
  border: 2px solid #C07840;
  border-radius: 6px;
  padding: 8px 18px;
}

.brand-name {
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: bold;
  font-size: 1.15rem;
  color: #F1EDE0;
  letter-spacing: 0.04em;
}

.rotor-glyph {
  position: relative;
  width: 26px;
  height: 26px;
  display: inline-block;
}

.rotor-glyph-ring {
  position: absolute;
  inset: 0;
  border: 3px solid #C07840;
  border-radius: 50%;
}

.rotor-glyph-hub {
  position: absolute;
  inset: 8px;
  background-color: #F1EDE0;
  border-radius: 50%;
}

.dialnav-keys {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
}

.dial-key {
  position: relative;
  display: inline-block;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.95rem;
  font-weight: bold;
  color: #232622;
  background-color: #E7E2D2;
  text-decoration: none;
  padding: 12px 16px 10px;
  border-radius: 10px 10px 4px 4px;
  border: 2px solid #C07840;
  border-top: 4px solid #C07840;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.dial-key-a { min-width: 84px; text-align: center; }
.dial-key-b { min-width: 108px; text-align: center; }
.dial-key-c { min-width: 104px; text-align: center; }
.dial-key-d { min-width: 100px; text-align: center; }
.dial-key-e { min-width: 92px; text-align: center; }

.dial-key:hover,
.dial-key:focus {
  background-color: #F1EDE0;
  transform: translateY(-2px);
}

.dial-notch {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 3px;
  background-color: #C07840;
  border-radius: 2px;
}

.dialnav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background-color: #C07840;
  border: none;
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
}

.dialnav-toggle-bar {
  width: 26px;
  height: 3px;
  background-color: #232622;
  border-radius: 2px;
}

/* ---------------- HERO: ROTOR BAY SCENE ---------------- */

.rotorbay {
  padding: 54px 0 0;
}

.rotorbay-head {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 34px;
}

.rotorbay-kicker {
  font-family: "Trebuchet MS", Verdana, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: #C07840;
  margin: 0 0 14px;
}

.rotorbay-title {
  font-size: 3rem;
  margin: 0 0 20px;
  color: #F1EDE0;
}

.rb-line {
  display: block;
}

.rb-word {
  display: block;
  font-size: 5.4rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  color: #E0B04A;
}

.rotorbay-lede {
  max-width: 780px;
  font-size: 1.12rem;
}

.rb-inline-link {
  color: #C07840;
  font-weight: bold;
  text-decoration: underline;
}

.rb-arrow {
  display: inline-block;
  margin-left: 6px;
  font-weight: bold;
}

.rotorbay-band {
  position: relative;
  background-color: #E7E2D2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  align-items: center;
  gap: 20px;
  padding: 40px 24px 96px;
}

/* rotor disc */
.rb-rotor {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 250px;
}

.rb-rotor-disc {
  position: relative;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background-color: #232622;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rb-rotor-ring {
  position: absolute;
  inset: 12px;
  border: 10px solid #C07840;
  border-radius: 50%;
}

.rb-rotor-slot {
  position: absolute;
  width: 8px;
  height: 46px;
  background-color: #C07840;
  border-radius: 3px;
  top: 20px;
  left: 50%;
  transform-origin: 4px 76px;
}

.rb-rotor-slot-1 { transform: translateX(-50%) rotate(0deg); }
.rb-rotor-slot-2 { transform: translateX(-50%) rotate(45deg); }
.rb-rotor-slot-3 { transform: translateX(-50%) rotate(90deg); }
.rb-rotor-slot-4 { transform: translateX(-50%) rotate(135deg); }
.rb-rotor-slot-5 { transform: translateX(-50%) rotate(180deg); }
.rb-rotor-slot-6 { transform: translateX(-50%) rotate(225deg); }
.rb-rotor-slot-7 { transform: translateX(-50%) rotate(270deg); }
.rb-rotor-slot-8 { transform: translateX(-50%) rotate(315deg); }

.rb-rotor-hub {
  position: relative;
  width: 46px;
  height: 46px;
  background-color: #F1EDE0;
  border: 6px solid #C07840;
  border-radius: 50%;
  z-index: 2;
}

.rb-rotor-pedestal {
  width: 90px;
  height: 34px;
  background-color: #232622;
  margin-top: -6px;
}

.rb-plate {
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: #F1EDE0;
  background-color: #232622;
  padding: 5px 12px;
  border-radius: 3px;
  margin-top: 6px;
}

/* synchroscope cluster */
.rb-scope {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.rb-dial {
  position: relative;
  border-radius: 50%;
  background-color: #232622;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rb-dial-face {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background-color: #F1EDE0;
  border: 4px solid #C07840;
}

.rb-dial-small {
  width: 86px;
  height: 86px;
}

.rb-dial-center {
  width: 176px;
  height: 176px;
}

.rb-needle {
  position: absolute;
  bottom: 50%;
  left: 50%;
  width: 5px;
  height: 64px;
  transform-origin: center bottom;
  border-radius: 3px;
  z-index: 3;
}

.rb-needle-left {
  background-color: #E0B04A;
  transform: translateX(-50%) rotate(-34deg);
}

.rb-needle-right {
  background-color: #4E8C5A;
  transform: translateX(-50%) rotate(26deg);
}

.rb-lamp {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #E0B04A;
  z-index: 4;
}

.rb-lamp-1 { bottom: 18px; left: 30px; }
.rb-lamp-2 { bottom: 10px; left: 50%; transform: translateX(-50%); }
.rb-lamp-3 { bottom: 18px; right: 30px; }

/* knife switch column */
.rb-switch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  background-color: #232622;
  border-radius: 8px;
  padding: 18px 40px;
}

.rb-switch-blade {
  width: 14px;
  height: 52px;
  background-color: #C07840;
  border-radius: 3px;
  margin: 5px 0;
}

.rb-switch-cap {
  width: 26px;
  height: 16px;
  background-color: #141A18;
  border-radius: 4px;
  margin: 3px 0;
}

.rb-switch-plate {
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: #E7E2D2;
  margin-top: 12px;
  text-align: center;
}

/* primary CTA full-width bar */
.rb-primary {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #C07840;
  color: #232622;
  text-decoration: none;
  padding: 20px 40px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: bold;
  font-size: 1.1rem;
}

.rb-primary:hover,
.rb-primary:focus {
  background-color: #A9642F;
}

.rb-primary-arrow {
  font-size: 1.5rem;
}

/* ---------------- SECTIONS: CELL LADDER RUN ---------------- */

.cellrun {
  padding: 70px 24px;
  background-color: #141A18;
}

.cellrun-intro {
  max-width: 1080px;
  margin: 0 auto 40px;
  border-left: 6px solid #C07840;
  padding-left: 22px;
}

.cellrun-heading {
  font-size: 2.1rem;
  color: #F1EDE0;
  margin: 0 0 12px;
}

.cellrun-note {
  max-width: 760px;
  font-size: 1.05rem;
}

.cellrun-wall {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cell-panel {
  position: relative;
  background-color: #E7E2D2;
  color: #232622;
  border: 2px solid #C07840;
  border-radius: 6px;
  padding: 26px 30px;
}

.cell-panel-b { width: 74%; margin-left: 0; }
.cell-panel-e { width: 84%; margin-left: 12%; }
.cell-panel-h { width: 68%; margin-left: 4%; }
.cell-panel-k { width: 88%; margin-left: 8%; }
.cell-panel-r { width: 72%; margin-left: 2%; }
.cell-panel-w { width: 82%; margin-left: 14%; }

.cell-mark {
  position: absolute;
  top: 10px;
  right: 14px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 2rem;
  font-weight: bold;
  color: #C07840;
}

.cell-title {
  font-size: 1.4rem;
  color: #232622;
  margin: 0 0 10px;
}

.cell-text {
  margin: 0;
  max-width: 640px;
}

.cell-link {
  color: #8A4A18;
  font-weight: bold;
  text-decoration: underline;
}

.cell-flag {
  position: absolute;
  top: 16px;
  left: -10px;
  width: 20px;
  height: 30px;
  background-color: #C07840;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 40% 50%);
}

.cell-meter {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: #141A18;
  background-color: #E7E2D2;
  border: 2px solid #232622;
  border-radius: 4px;
  padding: 3px 8px;
}

/* ---------------- PLANT PAPER ---------------- */

.plantpaper {
  background-color: #1B2320;
  padding: 64px 24px;
}

.plantpaper-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.plantpaper-heading {
  font-size: 2rem;
  color: #F1EDE0;
  margin: 0 0 26px;
  border-bottom: 3px solid #C07840;
  padding-bottom: 14px;
}

.plantpaper-cols p {
  font-size: 1.06rem;
}

/* ---------------- CELL STEPS ---------------- */

.cellsteps {
  padding: 64px 24px;
  background-color: #141A18;
}

.cellsteps-heading {
  font-size: 2rem;
  color: #F1EDE0;
  margin: 0 0 28px;
  text-align: center;
}

.cellsteps-track {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.step-cell {
  background-color: #1B2320;
  border-top: 5px solid #C07840;
  border-radius: 4px;
  padding: 20px 16px;
}

.step-index {
  display: block;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: bold;
  color: #E0B04A;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.step-text {
  font-size: 0.95rem;
  margin: 0;
  color: #F1EDE0;
}

/* ---------------- SECTOR BLOCK ---------------- */

.sectorblock {
  background-color: #E7E2D2;
  color: #232622;
  padding: 64px 24px;
}

.sectorblock-heading {
  max-width: 1080px;
  margin: 0 auto 22px;
  font-size: 2rem;
  color: #232622;
}

.sectorblock-text {
  max-width: 1080px;
  margin: 0 auto 1.1em;
  font-size: 1.06rem;
}

/* ---------------- CONTACT STUB ---------------- */

.contactstub {
  background-color: #1B2320;
  padding: 60px 24px;
  text-align: center;
}

.contactstub-heading {
  font-size: 1.9rem;
  color: #F1EDE0;
  margin: 0 0 14px;
}

.contactstub-text {
  max-width: 720px;
  margin: 0 auto 18px;
  font-size: 1.05rem;
}

.contactstub-link {
  display: inline-block;
  color: #C07840;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: underline;
}

/* ---------------- ACCENT STRIP ---------------- */

.accentstrip {
  display: flex;
  align-items: center;
  gap: 22px;
  background-color: #1B2320;
  border-top: 3px solid #C07840;
  border-bottom: 3px solid #C07840;
  padding: 22px 24px;
}

.accentstrip-text {
  margin: 0;
  max-width: 1000px;
  font-size: 1.05rem;
  color: #F1EDE0;
}

.phase-glyph {
  position: relative;
  flex: 0 0 auto;
  width: 60px;
  height: 34px;
}

.phase-wave {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #4E8C5A;
  border-radius: 2px;
}

.phase-wave-1 { top: 3px; }
.phase-wave-2 { top: 15px; }
.phase-wave-3 { top: 27px; }

/* ---------------- FOOTER: RELAY ROOM ---------------- */

.relayfoot {
  background-color: #1B2320;
  border-top: 4px solid #C07840;
}

.relayfoot-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 24px 30px;
  display: flex;
  gap: 34px;
}

.relayfoot-duct {
  position: relative;
  flex: 0 0 74px;
  border-left: 4px solid #C07840;
  border-right: 4px solid #C07840;
  background-color: #141A18;
}

.duct-block {
  position: absolute;
  left: 14px;
  width: 42px;
  height: 22px;
  background-color: #232622;
  border: 2px solid #C07840;
  border-radius: 3px;
}

.duct-block-1 { top: 24px; }
.duct-block-2 { top: 74px; }
.duct-block-3 { top: 124px; }
.duct-block-4 { top: 174px; }

.duct-tie {
  position: absolute;
  left: 8px;
  width: 54px;
  height: 4px;
  background-color: #C07840;
}

.duct-tie-1 { top: 56px; }
.duct-tie-2 { top: 156px; }

.relayfoot-main {
  flex: 1;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.relayfoot-brand {
  flex: 1 1 280px;
}

.relayfoot-nameplate {
  display: inline-block;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: bold;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #F1EDE0;
  background-color: #232622;
  border: 2px solid #C07840;
  border-radius: 5px;
  padding: 8px 16px;
  margin: 0 0 14px;
}

.relayfoot-blurb {
  margin: 0;
  max-width: 380px;
  font-size: 0.98rem;
  color: #F1EDE0;
}

.relayfoot-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.relayfoot-colhead {
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #C07840;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lamp-trio {
  display: inline-flex;
  gap: 4px;
}

.lamp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #E0B04A;
}

.relayfoot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.relayfoot-list li {
  margin-bottom: 8px;
}

.relayfoot-list a {
  color: #F1EDE0;
  text-decoration: none;
  font-size: 1rem;
}

.relayfoot-list a:hover,
.relayfoot-list a:focus {
  text-decoration: underline;
  color: #C07840;
}

.relayfoot-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background-color: #141A18;
  border-top: 2px solid #C07840;
  padding: 16px 24px;
  font-size: 0.88rem;
  color: #F1EDE0;
}

.strip-bolt {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #C07840;
  border: 2px solid #F1EDE0;
  flex: 0 0 auto;
}

.strip-sep {
  color: #C07840;
}

/* ---------------- CONTACT FORM ---------------- */

.contactgrid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: start;
}

.contactform {
  background-color: #E7E2D2;
  color: #232622;
  border: 2px solid #C07840;
  border-radius: 6px;
  padding: 26px 28px;
}

.contactform-field {
  margin: 0 0 16px;
}

.contactform-label {
  display: block;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: bold;
  font-size: 0.92rem;
  color: #232622;
  margin-bottom: 6px;
}

.contactform-input {
  width: 100%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  color: #232622;
  background-color: #F1EDE0;
  border: 2px solid #232622;
  border-radius: 4px;
  padding: 10px 12px;
}

.contactform-input:focus {
  outline: 3px solid #C07840;
}

.contactform-textarea {
  resize: vertical;
}

.contactform-submit {
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: bold;
  font-size: 1rem;
  color: #232622;
  background-color: #C07840;
  border: 2px solid #232622;
  border-radius: 4px;
  padding: 12px 26px;
  cursor: pointer;
}

.contactform-submit:hover,
.contactform-submit:focus {
  background-color: #A9642F;
}

.contactform-note {
  margin: 14px 0 0;
  font-size: 0.92rem;
  color: #232622;
}

.contactinfo {
  background-color: #1B2320;
  border: 2px solid #C07840;
  border-radius: 6px;
  padding: 24px;
}

.contactinfo-heading {
  font-size: 1.15rem;
  color: #C07840;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contactinfo-line {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #F1EDE0;
}

.contactinfo-tag {
  display: inline-block;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: bold;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #232622;
  background-color: #E0B04A;
  border-radius: 3px;
  padding: 2px 8px;
  margin-right: 8px;
}

.contactinfo-hours {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contactinfo-hours li {
  font-size: 0.96rem;
  color: #F1EDE0;
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
}

.contactinfo-hours li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  background-color: #4E8C5A;
  border-radius: 50%;
}

/* ---------------- FAQ ---------------- */

.faq-item {
  max-width: 1080px;
  margin: 0 auto 14px;
  border: 2px solid #C07840;
  border-radius: 6px;
  overflow: hidden;
}

.acc-trigger {
  display: block;
  width: 100%;
  text-align: left;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: bold;
  font-size: 1.05rem;
  color: #F1EDE0;
  background-color: #232622;
  border: none;
  padding: 16px 20px;
  cursor: pointer;
}

.acc-trigger:hover,
.acc-trigger:focus {
  color: #C07840;
}

.acc-trigger[aria-expanded="true"] {
  color: #E0B04A;
}

.faq-panel {
  background-color: #E7E2D2;
  padding: 16px 20px;
}

.faq-text {
  margin: 0;
  color: #232622;
  font-size: 1rem;
}

/* ---------------- SCROLL REVEAL ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 900px) {
  .rotorbay-band {
    grid-template-columns: 1fr;
    padding-bottom: 110px;
  }
  .cellsteps-track {
    grid-template-columns: repeat(2, 1fr);
  }
  .cell-panel-b,
  .cell-panel-e,
  .cell-panel-h,
  .cell-panel-k,
  .cell-panel-r,
  .cell-panel-w {
    width: 100%;
    margin-left: 0;
  }
  .relayfoot-duct {
    display: none;
  }
}

@media (max-width: 640px) {
  .rotorbay-title {
    font-size: 2.1rem;
  }
  .rb-word {
    font-size: 3.4rem;
  }
  .cellsteps-track {
    grid-template-columns: 1fr;
  }
  .contactgrid {
    grid-template-columns: 1fr;
  }
  .dialnav-toggle {
    display: flex;
  }
  .dialnav-keys {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .dialnav-keys.dialnav-open {
    display: flex;
  }
  .dial-key {
    width: 100%;
    min-width: 0;
  }
  .relayfoot-inner {
    flex-direction: column;
  }
}
