/* ============================================================
   Shang Shing Company Limited — App Release Desk
   Palette:
   bench-linen  #F1F1ED  body background
   build-ink    #24262B  primary text
   ship-indigo  #3D4E8F  accent (release branch indigo)
   bench-charcoal #26282C deep wells and footer
   card-blank   #FBFAF6  version tags and code cards
   rail-steel   #4E565E  pipeline rails
   pass-amber   #C08A3A  stage flags
   needle-rose  #B04A55  crash-free gauge needle ONLY
   ============================================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: #F1F1ED;
  color: #24262B;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: #3D4E8F;
}

/* ---------- shared reveal ---------- */
.reveal-item {
  visibility: visible;
  transform: none;
  transition: transform 0.6s ease;
}

.js-reveal .reveal-item {
  visibility: hidden;
  transform: translateY(18px);
}

.js-reveal .reveal-item.is-revealed {
  visibility: visible;
  transform: translateY(0);
}

.no-js .reveal-item {
  visibility: visible;
  transform: none;
}

/* ============================================================
   NAVIGATION — VERSION TAB HEAD (.versionhead)
   ============================================================ */
.versionhead {
  background-color: #26282C;
  padding: 0 0 26px;
  position: relative;
}

.versionhead-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.versionhead-rail {
  height: 6px;
  background-color: #4E565E;
  border-radius: 3px;
  margin-top: 18px;
  position: relative;
}

.versionhead-brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
}

.versionhead-brandplate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #3D4E8F;
  border-radius: 4px;
  padding: 7px 16px 7px 12px;
  text-decoration: none;
}

.versionhead-bracket {
  font-weight: 700;
  color: #FBFAF6;
  font-size: 20px;
  line-height: 1;
}

.versionhead-brandname {
  color: #FBFAF6;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.versionhead-tagline {
  color: #FBFAF6;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.versionhead-tags {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
}

.versionhead-tag {
  position: relative;
  background-color: #FBFAF6;
  border: 2px solid #3D4E8F;
  border-radius: 3px;
  padding: 9px 18px 9px 14px;
  min-width: 132px;
}

.vtag-high {
  margin-bottom: 10px;
}

.vtag-low {
  margin-bottom: 0;
}

.versionhead-tagcut {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background-color: #26282C;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.versionhead-taglabel {
  display: block;
  color: #3D4E8F;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.versionhead-taglink {
  display: block;
  color: #24262B;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.versionhead-taglink:hover {
  color: #3D4E8F;
  text-decoration: underline;
}

.versionhead-toggle {
  display: none;
  background-color: #3D4E8F;
  color: #FBFAF6;
  border: none;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* ============================================================
   HERO — BUILD BENCH (.buildbench)
   ============================================================ */
.buildbench {
  background-color: #F1F1ED;
  padding: 54px 0 60px;
  border-bottom: 6px solid #26282C;
}

.buildbench-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.buildbench-scene {
  position: relative;
  background-color: #26282C;
  border-radius: 8px;
  padding: 34px 26px 30px;
  display: grid;
  grid-template-columns: 260px 1fr 250px;
  gap: 22px;
  align-items: end;
  min-height: 340px;
}

.buildbench-backboard {
  position: absolute;
  top: 18px;
  left: 26px;
  right: 26px;
  bottom: 118px;
  border: 3px solid #4E565E;
  border-radius: 6px;
  pointer-events: none;
}

.buildbench-headline {
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #FBFAF6;
  z-index: 2;
}

.buildbench-headline .bbh-ship {
  color: #3D4E8F;
  background-color: #FBFAF6;
  padding: 0 8px;
  border-radius: 3px;
}

/* phone frames */
.buildbench-phones {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  padding-bottom: 26px;
  z-index: 3;
}

.bbphone {
  width: 104px;
  height: 200px;
  background-color: #26282C;
  border: 5px solid #4E565E;
  border-radius: 14px;
  padding: 8px 7px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bbphone-tall {
  height: 232px;
}

.bbphone-bar {
  height: 8px;
  background-color: #4E565E;
  border-radius: 2px;
}

.bbphone-screen {
  flex: 1;
  background-color: #FBFAF6;
  border-radius: 6px;
  padding: 7px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bbw-block {
  background-color: #4E565E;
  border-radius: 2px;
}

.bbw-wide {
  height: 26px;
}

.bbw-mid {
  height: 14px;
  width: 78%;
}

.bbw-short {
  height: 14px;
  width: 54%;
}

.bbw-action {
  height: 18px;
  background-color: #3D4E8F;
  border-radius: 3px;
  margin-top: auto;
}

/* pipeline */
.buildbench-pipeline {
  position: relative;
  padding: 0 6px 26px;
  z-index: 3;
}

.bbpipe-rail {
  position: relative;
  height: 10px;
  background-color: #4E565E;
  border-radius: 5px;
  margin-bottom: 14px;
}

.bbpipe-slider {
  position: absolute;
  top: -8px;
  left: 42%;
  width: 22px;
  height: 26px;
  background-color: #FBFAF6;
  border: 3px solid #3D4E8F;
  border-radius: 4px;
}

.bbpipe-flags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bbflag {
  background-color: #FBFAF6;
  color: #24262B;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 3px;
  position: relative;
}

.bbflag-amber {
  border: 2px solid #C08A3A;
}

/* code card */
.buildbench-codecard {
  align-self: center;
  background-color: #FBFAF6;
  border: 3px solid #4E565E;
  border-radius: 6px;
  padding: 14px 14px 12px;
  position: relative;
  z-index: 3;
}

.buildbench-codepin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 12px;
  background-color: #C08A3A;
  border-radius: 3px;
}

.bbcode-line {
  height: 9px;
  border-radius: 2px;
  margin-bottom: 7px;
  background-color: #3D4E8F;
}

.bbcode-l1 { width: 82%; }
.bbcode-l2 { width: 62%; }
.bbcode-l3 { width: 74%; }
.bbcode-l4 { width: 48%; }

.bbcode-run {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #24262B;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bbcode-runmark {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: #3D4E8F;
}

.benchstand {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 16px;
  background-color: #4E565E;
  border-radius: 0 0 6px 6px;
}

.buildbench-copy {
  max-width: 840px;
  margin: 30px auto 0;
  text-align: center;
}

.buildbench-copy p {
  font-size: 17px;
  color: #24262B;
}

.buildbench-actions {
  margin-top: 22px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.bench-cta {
  display: inline-block;
  background-color: #3D4E8F;
  color: #FBFAF6;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 30px;
  border-radius: 4px;
  border: 3px solid #3D4E8F;
  letter-spacing: 0.02em;
}

.bench-cta:hover {
  background-color: #26282C;
  border-color: #26282C;
}

.bench-link {
  color: #3D4E8F;
  font-weight: 700;
  text-decoration: underline;
}

.bench-link:hover {
  color: #26282C;
}

/* ============================================================
   STAGE GATE ROWS (.gateplate)
   ============================================================ */
.gatewall {
  background-color: #F1F1ED;
  padding: 56px 0 60px;
}

.gatewall-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.gatewall-heading {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #24262B;
}

.gatewall-sub {
  font-size: 16px;
  color: #24262B;
  max-width: 760px;
  margin: 0 0 34px;
}

.gaterail {
  position: relative;
  padding: 8px 0;
}

.gaterail-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background-color: #4E565E;
  border-radius: 4px;
}

.gaterail-plates {
  display: grid;
  gap: 22px;
  padding-top: 20px;
}

.gaterail-upper .gaterail-plates {
  grid-template-columns: repeat(3, 1fr);
}

.gaterail-lower {
  margin-top: 30px;
}

.gaterail-lower .gaterail-plates {
  grid-template-columns: repeat(3, 1fr);
  margin-left: 15%;
}

.gateplate {
  background-color: #FBFAF6;
  border: 3px solid #4E565E;
  border-radius: 4px;
  padding: 22px 20px 24px;
  position: relative;
  min-height: 218px;
}

.gateplate-corner {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 26px;
  height: 26px;
  background-color: #C08A3A;
  border-radius: 0 0 0 4px;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.gateplate-code {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #3D4E8F;
  border: 2px solid #3D4E8F;
  border-radius: 3px;
  padding: 2px 9px;
  margin-bottom: 12px;
}

.gateplate-title {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #24262B;
  line-height: 1.3;
}

.gateplate p {
  margin: 0;
  font-size: 15px;
  color: #24262B;
}

.gateplate-signed {
  border-color: #3D4E8F;
}

.gateplate-stamp {
  position: absolute;
  bottom: 14px;
  right: 16px;
  border: 2px solid #C08A3A;
  border-radius: 3px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #C08A3A;
}

.gatewall-note {
  margin-top: 34px;
  font-size: 15px;
  color: #24262B;
  max-width: 900px;
}

.gatewall-note a {
  color: #3D4E8F;
  font-weight: 700;
}

/* ============================================================
   CRASH-FREE RATE STRIP (.crashstrip)
   ============================================================ */
.crashstrip {
  background-color: #26282C;
  padding: 26px 0;
}

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

.crashstrip-dial {
  width: 108px;
  height: 58px;
  background-color: #FBFAF6;
  border-radius: 108px 108px 0 0;
  position: relative;
  border: 3px solid #4E565E;
  border-bottom: none;
  flex-shrink: 0;
}

.crashstrip-ticks {
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  height: 10px;
  display: flex;
  justify-content: space-between;
}

.crashstrip-tick {
  width: 2px;
  height: 10px;
  background-color: #4E565E;
}

.crashstrip-needle {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 3px;
  height: 42px;
  background-color: #B04A55;
  transform-origin: bottom center;
  transform: rotate(-18deg);
  border-radius: 2px;
}

.crashstrip-needlehub {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background-color: #B04A55;
  border-radius: 50%;
  z-index: 2;
}

.crashstrip-label {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  color: #24262B;
  z-index: 2;
}

.crashstrip-text {
  color: #FBFAF6;
  font-size: 17px;
  margin: 0;
  flex: 1;
  min-width: 260px;
}

.crashstrip-text a {
  color: #FBFAF6;
  font-weight: 700;
  text-decoration: underline;
}

/* ============================================================
   FOOTER — SIGNED BUILD TRAY (.buildtray)
   ============================================================ */
.buildtray {
  background-color: #26282C;
  padding: 0 0 18px;
}

.buildtray-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.buildtray-panel {
  background-color: #26282C;
  border-top: 6px solid #4E565E;
  padding: 34px 0 26px;
}

.buildtray-carts {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.buildcart {
  background-color: #FBFAF6;
  border: 3px solid #4E565E;
  border-radius: 4px;
  width: 148px;
  padding: 14px 12px 16px;
  position: relative;
}

.buildcart-tape {
  height: 14px;
  background-color: #C08A3A;
  border-radius: 2px;
  margin-bottom: 10px;
}

.buildcart-label {
  display: block;
  color: #3D4E8F;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.buildcart-name {
  display: block;
  color: #24262B;
  font-size: 14px;
  font-weight: 700;
}

.buildtray-lip {
  border-top: 4px solid #4E565E;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.buildtray-chip {
  background-color: #3D4E8F;
  color: #FBFAF6;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 3px;
}

.buildtray-chip:hover {
  background-color: #FBFAF6;
  color: #26282C;
}

.buildtray-cols {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 26px;
}

.buildtray-jobcard {
  background-color: #FBFAF6;
  border: 3px solid #4E565E;
  border-radius: 4px;
  padding: 18px 18px 20px;
}

.buildtray-jobtitle {
  color: #3D4E8F;
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 10px;
}

.buildtray-jobcard p {
  margin: 0;
  color: #24262B;
  font-size: 14px;
}

.buildtray-contact {
  color: #FBFAF6;
  font-size: 14px;
  line-height: 2;
}

.buildtray-contact strong {
  color: #C08A3A;
}

.buildtray-contact a {
  color: #FBFAF6;
}

.buildtray-benchrail {
  border-top: 3px solid #4E565E;
  margin-top: 24px;
  padding-top: 14px;
  color: #FBFAF6;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}

.buildtray-bracket {
  color: #C08A3A;
  font-weight: 700;
}

/* ============================================================
   PAGE SHELLS for services and contact
   ============================================================ */
.pageband {
  background-color: #26282C;
  padding: 40px 0;
}

.pageband-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.pageband-title {
  color: #FBFAF6;
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 10px;
}

.pageband-sub {
  color: #FBFAF6;
  font-size: 17px;
  margin: 0;
  max-width: 820px;
}

.deskband {
  background-color: #F1F1ED;
  padding: 50px 0 56px;
}

.deskband-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.deskband-inner h2 {
  font-size: 25px;
  color: #24262B;
  margin: 0 0 12px;
}

.deskband-inner h3 {
  font-size: 19px;
  color: #3D4E8F;
  margin: 26px 0 8px;
}

.deskband-inner p {
  color: #24262B;
  font-size: 16px;
}

.servicerow {
  background-color: #FBFAF6;
  border: 3px solid #4E565E;
  border-radius: 4px;
  padding: 22px 22px 20px;
  margin-bottom: 20px;
  position: relative;
}

.servicerow-code {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #3D4E8F;
  border: 2px solid #3D4E8F;
  border-radius: 3px;
  padding: 2px 9px;
  margin-bottom: 10px;
}

.servicerow-title {
  font-size: 21px;
  font-weight: 700;
  color: #24262B;
  margin: 0 0 10px;
}

.servicerow p {
  margin: 0 0 8px;
}

.processlist {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  counter-reset: proc;
}

.processlist li {
  background-color: #FBFAF6;
  border-left: 6px solid #C08A3A;
  border-radius: 3px;
  padding: 14px 18px;
  margin-bottom: 12px;
  counter-increment: proc;
  color: #24262B;
}

.processlist li::before {
  content: counter(proc) ". ";
  font-weight: 800;
  color: #3D4E8F;
}

.ctastrip {
  background-color: #26282C;
  padding: 34px 0;
}

.ctastrip-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ctastrip-text {
  color: #FBFAF6;
  font-size: 18px;
  margin: 0;
}

.ctastrip-link {
  background-color: #3D4E8F;
  color: #FBFAF6;
  text-decoration: none;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 4px;
  border: 3px solid #3D4E8F;
}

.ctastrip-link:hover {
  background-color: #FBFAF6;
  color: #26282C;
  border-color: #FBFAF6;
}

/* contact page */
.contactgrid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
}

.contactcard {
  background-color: #FBFAF6;
  border: 3px solid #4E565E;
  border-radius: 4px;
  padding: 24px;
}

.contactcard h2 {
  margin-top: 0;
}

.contactfield {
  display: block;
  margin-bottom: 14px;
}

.contactfield span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #3D4E8F;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.contactfield input,
.contactfield textarea {
  width: 100%;
  font-size: 15px;
  font-family: inherit;
  color: #24262B;
  background-color: #F1F1ED;
  border: 2px solid #4E565E;
  border-radius: 3px;
  padding: 10px 12px;
}

.contactfield textarea {
  min-height: 130px;
  resize: vertical;
}

.contactsubmit {
  background-color: #3D4E8F;
  color: #FBFAF6;
  border: 3px solid #3D4E8F;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 30px;
  cursor: pointer;
}

.contactsubmit:hover {
  background-color: #26282C;
  border-color: #26282C;
}

.contactstatus {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #24262B;
}

.contactinfo p {
  margin: 0 0 10px;
}

.contactinfo a {
  color: #3D4E8F;
  font-weight: 700;
}

.faqitem {
  background-color: #FBFAF6;
  border: 3px solid #4E565E;
  border-radius: 4px;
  margin-bottom: 14px;
  overflow: hidden;
}

.faqq {
  width: 100%;
  text-align: left;
  background-color: #FBFAF6;
  color: #24262B;
  border: none;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  padding: 16px 18px;
  cursor: pointer;
}

.faqq:hover {
  color: #3D4E8F;
}

.faqa {
  padding: 0 18px 16px;
  color: #24262B;
  font-size: 15px;
  display: none;
}

.faqitem.is-open .faqa {
  display: block;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .buildbench-scene {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .buildbench-headline {
    position: static;
    transform: none;
    margin-bottom: 24px;
    font-size: 28px;
  }
  .buildbench-backboard {
    display: none;
  }
  .gaterail-upper .gaterail-plates,
  .gaterail-lower .gaterail-plates {
    grid-template-columns: 1fr;
    margin-left: 0;
  }
  .buildtray-cols {
    grid-template-columns: 1fr;
  }
  .contactgrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .versionhead-toggle {
    display: inline-block;
  }
  .versionhead-tags {
    display: none;
  }
  .versionhead-tags.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .versionhead-tags.is-open .versionhead-tag {
    margin-bottom: 0;
    width: 100%;
  }
}
