/* =============================================================
   YulaiDev — HONG KONG YULAI DEVELOPMENT CO., LIMITED
   Horizontal Chapter Slide / drawing-set chapters
   Palette: SITE HUT NIGHT #23211E · PLAN WHITE #F1EFE7
            SURVEY RUST #B85C38 · DRAWING GREY #8B8D86
            HUT SLATE #2B2926 · LINING CREAM #F6F2E5 · LEVEL INK #191814
   ============================================================= */

body {
  background: #23211E;
  color: #F1EFE7;
  font-size: 16px;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.65;
  margin: 0;
  padding: 0;
}

.chart-wrap {
  width: 100%;
  overflow-x: hidden;
}

/* ---------- fixed right-edge chapter tab rail ---------- */

.ray-nav {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rail-back {
  background: #2B2926;
  border: 1px solid #3A3833;
  border-right: none;
  border-radius: 6px 0 0 6px;
  padding: 10px 6px 10px 8px;
  display: flex;
  flex-direction: row;
  gap: 16px;
}

.spindleNotch {
  width: 6px;
  align-self: center;
  height: 0;
  margin-left: -3px;
}

.rail-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ch-tab {
  display: block;
  width: 34px;
  height: 34px;
  text-decoration: none;
  color: #8B8D86;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  line-height: 36px;
  text-align: center;
  border: 1px solid transparent;
  transition: border 0.3s ease;
}

.ch-tab.is-live,
.ch-tab.is-done {
  color: #F1EFE7;
  background: #B85C38;
  border-color: #D0774F;
}

.scrollLift {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 30;
}

.topClick {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2B2926;
  border: 1px solid #3A3833;
  color: #B85C38;
  font-size: 20px;
  cursor: pointer;
}

.topClick:hover {
  background: #B85C38;
  color: #23211E;
}

/* ---------- chapter sheets ---------- */

.hsheet {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 90px 48px 90px;
}

.sheetCard {
  position: relative;
  background: #23211E;
  border: 2px solid #413E37;
  outline: 2px solid #3A3833;
  outline-offset: 8px;
  padding: 70px 62px;
}

.bpGrid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(#2A2824 1px, transparent 1px),
    linear-gradient(90deg, #2A2824 1px, transparent 1px);
  background-size: 46px 46px;
  background-color: #23211E;
}

.sheetNoTxt {
  position: absolute;
  right: 16px;
  top: 10px;
  color: #8B8D86;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 2px;
}

.sheetBody {
  position: relative;
  z-index: 2;
}

.chapLabel {
  font-family: 'Courier New', monospace;
  color: #B85C38;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.chRule {
  display: block;
  width: 150px;
  height: 3px;
  background: #B85C38;
  border: none;
  margin: 18px 0 30px;
}

.chH2 {
  font-weight: normal;
  font-size: 34px;
  color: #F1EFE7;
  letter-spacing: 0.5px;
  margin: 6px 0 16px;
  line-height: 1.15;
}

.rustStamp {
  display: inline-block;
  border: 2px solid #B85C38;
  color: #B85C38;
  font-family: 'Courier New', monospace;
  padding: 4px 14px;
  letter-spacing: 2px;
  background: #2B2926;
}

.stampCap {
  font-size: 13px;
  font-family: 'Courier New', monospace;
  color: #8B8D86;
  margin-top: 10px;
}

/* ---------- CHED 01 title drawing ---------- */

.titleFrame {
  border: 1px solid #3A3833;
  outline: 1px solid #B85C38;
  outline-offset: -12px;
  padding: 104px 78px 90px;
  position: relative;
}

.titleKick {
  color: #B85C38;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  letter-spacing: 6px;
  text-transform: uppercase;
}

.titleBig {
  font-size: 74px;
  line-height: 1.05;
  color: #F1EFE7;
  font-weight: normal;
  margin: 26px 0 6px;
  letter-spacing: 1px;
  max-width: 760px;
}

.titleMid {
  font-size: 20px;
  color: #F6F2E5;
  font-style: italic;
  max-width: 600px;
  margin: 10px 0 30px;
}

.titleLead {
  color: #D6D3CB;
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 22px;
}

.nextSheet {
  display: inline-block;
  margin-top: 26px;
  color: #F1EFE7;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
  border: 1px solid #B85C38;
  padding: 12px 22px;
  text-decoration: none;
}

.nextSheet:hover {
  background: #B85C38;
  color: #23211E;
}

/* ---------- three tall drawing panels ---------- */

.rackTrio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 26px;
}

.prosePanel {
  background: #2B2926;
  border: 1px solid #45423C;
  outline: 1px solid #3A3833;
  outline-offset: 5px;
  display: flex;
  flex-direction: column;
}

.panelHead {
  background: #B85C38;
  color: #F6F2E5;
  padding: 10px 18px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.panelH3 {
  margin: 18px 18px 8px;
  font-size: 24px;
  font-weight: normal;
  color: #F1EFE7;
  line-height: 1.25;
}

.panelTxt {
  margin: 0 18px;
  color: #C9C7BF;
  font-size: 15px;
  line-height: 1.72;
  flex: 1;
}

.toServices {
  display: inline-block;
  margin: 16px 18px 20px;
  color: #B85C38;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid #B85C38;
  width: fit-content;
}

.toServices:hover {
  color: #F1EFE7;
}

/* ---------- margin-note split ---------- */

.splitSheet {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 22px;
}

.marginNote {
  background: #2B2926;
  border-left: 3px solid #B85C38;
  padding: 18px 20px;
}

.mNLabel {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #B85C38;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 10px;
}

.marginNote p {
  font-size: 14.5px;
  color: #C9C7BF;
  line-height: 1.7;
  margin: 0 0 12px;
}

.spineProse h3 {
  font-size: 21px;
  color: #F6F2E5;
  font-weight: normal;
  margin: 22px 0 10px;
}

.spineProse p {
  color: #D6D3CB;
  line-height: 1.75;
  margin: 0 0 18px;
}

.pullLine {
  border-left: 4px solid #B85C38;
  padding: 4px 22px;
  margin: 26px 0;
  color: #F6F2E5;
  font-size: 21px;
  font-style: italic;
  line-height: 1.5;
}

.stdUl {
  margin: 8px 0 20px;
  padding-left: 22px;
  color: #C9C7BF;
}

.stdUl li {
  margin-bottom: 10px;
}

.urlPlain {
  color: #B85C38;
  text-decoration: none;
  border-bottom: 1px dotted #B85C38;
}

.urlPlain:hover {
  color: #F1EFE7;
}

/* ---------- handover certificate ---------- */

.isoPad {
  max-width: 760px;
  margin: 40px auto 0;
  background: #2B2926;
  border: 2px solid #B85C38;
  outline: 1px solid #8B8D86;
  outline-offset: 8px;
  padding: 46px 50px;
  text-align: center;
  position: relative;
}

.isoSeal {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 2px dashed #B85C38;
  color: #B85C38;
  transform: rotate(-8deg);
  font-family: 'Courier New', monospace;
  font-size: 12px;
  padding: 6px 10px;
  letter-spacing: 1px;
  z-index: 2;
}

.isoH3 {
  font-size: 30px;
  font-weight: normal;
  color: #F1EFE7;
  margin: 6px 0 16px;
}

.isoPara {
  color: #C9C7BF;
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto 20px;
}

.toContact {
  display: inline-block;
  margin-top: 6px;
  color: #F6F2E5;
  font-family: 'Courier New', monospace;
  border: 1px solid #B85C38;
  padding: 12px 26px;
  text-decoration: none;
  letter-spacing: 1px;
}

.toContact:hover {
  background: #B85C38;
  color: #23211E;
}

/* ---------- tear lines ---------- */

.perfLine {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1224px;
  margin: 0 auto;
  padding: 0 48px;
  color: #8B8D86;
}

.dashedRule {
  flex: 1;
  border-top: 1px dashed #8B8D86;
}

.scissorsGlyph {
  font-size: 18px;
  color: #B85C38;
}

/* ---------- footer as title block ---------- */

.creditArea {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px 48px;
}

.titleBlockRow {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.1fr 0.9fr 1.1fr;
  border: 2px solid #3A3833;
}

.blockBay {
  padding: 16px 18px;
  background: #2B2926;
  border-right: 1px solid #3A3833;
  position: relative;
  z-index: 1;
}

.blockBay:last-child {
  border-right: none;
}

.bayCap {
  display: block;
  font-size: 11px;
  font-family: 'Courier New', monospace;
  color: #B85C38;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.bayTxt {
  font-size: 13.5px;
  color: #D6D3CB;
  line-height: 1.6;
}

.blockUrl {
  display: block;
  color: #C9C7BF;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.8;
  font-family: 'Courier New', monospace;
}

.blockUrl:hover {
  color: #B85C38;
}

.theMark {
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
  color: #8B8D86;
  font-size: 14px;
}

/* ---------- services page extra ---------- */

.serviceDetail {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 30px;
  margin-top: 0;
  padding: 26px 0;
  border-top: 1px solid #3A3833;
}

.serviceIndex {
  font-family: 'Courier New', monospace;
  color: #B85C38;
  font-size: 13px;
  letter-spacing: 2px;
  padding-top: 6px;
}

.serviceIndex strong {
  display: block;
  color: #F1EFE7;
  font-size: 18px;
  font-weight: normal;
  font-family: Georgia, serif;
  margin-top: 4px;
}

.sevBody {
  color: #D6D3CB;
  line-height: 1.75;
}

.sevBody p {
  margin: 0 0 14px;
}

/* ---------- contact page extra ---------- */

.formHut {
  max-width: 820px;
  margin: 34px auto 0;
  background: #2B2926;
  border: 2px solid #45423C;
  outline: 1px solid #3A3833;
  outline-offset: 6px;
  padding: 40px 92px;
}

.fieldRow {
  margin-bottom: 20px;
}

.fieldRow label {
  display: block;
  font-size: 13px;
  font-family: 'Courier New', monospace;
  color: #B85C38;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.fieldRow input,
.fieldRow textarea {
  width: 100%;
  box-sizing: border-box;
  background: #23211E;
  border: 1px solid #56524A;
  color: #F1EFE7;
  padding: 12px;
  font-family: Georgia, serif;
  font-size: 16px;
}

.fieldRow input:focus,
.fieldRow textarea:focus {
  outline: 2px solid #B85C38;
  border-color: #B85C38;
}

.fieldRow textarea {
  min-height: 150px;
  resize: vertical;
}

.submitBtn {
  background: #B85C38;
  border: none;
  color: #F6F2E5;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  letter-spacing: 2px;
  padding: 13px 34px;
  cursor: pointer;
}

.submitBtn:hover {
  background: #D0774F;
}

.drawNote {
  border: 1px solid #45423C;
  padding: 18px 20px;
  margin-top: 22px;
  background: #23211E;
}

.contactMeta {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.contactMeta li {
  color: #C9C7BF;
  margin-bottom: 8px;
  font-size: 15px;
}

/* ---------- reveal (function lives in JS, safe w/o JS) ---------- */

.revealObj {
  opacity: 1;
  transform: none;
}

.willMove {
  will-change: transform;
}

/* ---------- headings inside chapters all share colour scheme ---------- */

.accentEyebrow {
  color: #B85C38;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.smallPrint {
  color: #8B8D86;
  font-size: 13px;
}

@media (max-width: 920px) {
  .hsheet,
  .creditArea {
    padding-left: 16px;
    padding-right: 16px;
  }
  .sheetCard {
    padding: 40px 22px;
  }
  .titleFrame {
    padding: 60px 26px;
  }
  .titleBig {
    font-size: 44px;
  }
  .rackTrio,
  .splitSheet,
  .serviceDetail {
    grid-template-columns: 1fr;
  }
  .titleBlockRow {
    grid-template-columns: 1fr 1fr;
  }
  .perfLine {
    padding: 0 16px;
  }
  .formHut {
    padding: 26px 18px;
  }
  .isoPad {
    padding: 28px 18px;
  }
  .ray-nav {
    display: none;
  }
}

/* ---------- scroll entry (gated behind JS, reveals via clip/translate) ---------- */

.enterMark { }

.js-on .enterMark {
  clip-path: inset(14% 6% 14% 6%);
  transform: translateY(26px);
  transition: clip-path 0.7s ease-out, transform 0.7s ease-out;
}

.js-on .enterMark.is-sight {
  clip-path: inset(0 0 0 0);
  transform: none;
}

.js-on .enterMark.is-parked {
  clip-path: inset(0 0 0 0);
  transform: none;
  transition: none;
}

.stackGap {
  margin-top: 0;
}
