* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #14101C;
  color: #EFEAF7;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: #D5C9EC; }

/* ===== right-vertical rail navigation ===== */
.rail-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 90px;
  z-index: 1000;
  background: #14101C;
  border-left: 1px solid #6B4FA0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 24px;
}

.rail-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  margin-bottom: 30px;
}

.brand-letter {
  font-family: Georgia, "Times New Roman", serif;
  color: #D5C9EC;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.25;
}

.rail-links {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-left: 24px;
  padding-right: 8px;
}

.rail-link {
  position: relative;
  display: block;
  color: #D5C9EC;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 9px 4px 9px 14px;
}

.rail-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #6B4FA0;
}

.rail-link:hover { color: #EFEAF7; }

.rail-link.active { color: #EFEAF7; }

.rail-link.active::before {
  top: 0;
  transform: none;
  width: 3px;
  height: 100%;
  background: #6B4FA0;
}

.nav-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1100;
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid #6B4FA0;
  background: #1E1830;
  border-radius: 4px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #D5C9EC;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-wrap { margin-right: 90px; }

/* ===== buttons ===== */
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 14px 30px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary { background: #6B4FA0; color: #EFEAF7; }
.btn-primary:hover { background: #7A5FB4; color: #EFEAF7; }
.btn-outline { border-color: #D5C9EC; color: #D5C9EC; background: transparent; }
.btn-outline:hover { background: #D5C9EC; color: #14101C; }

/* ===== centered stack hero ===== */
.center-stack-hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 108px 32px 84px;
  text-align: center;
}

.hero-chip {
  display: inline-block;
  background: #6B4FA0;
  color: #EFEAF7;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
}

.center-stack-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  line-height: 1.12;
  font-weight: 700;
  color: #EFEAF7;
  max-width: 860px;
  margin: 26px auto 22px;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.75;
  color: #EFEAF7;
  max-width: 780px;
  margin: 0 auto 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
}

.hero-brush {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 54px auto 0;
}

.brush-handle {
  display: block;
  width: 8px;
  height: 60px;
  background: #D5C9EC;
}

.brush-tip {
  display: block;
  width: 34px;
  height: 30px;
  background: #6B4FA0;
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
}

/* ===== duo panels ===== */
.duo-section { padding: 96px 32px; }

.section-head {
  max-width: 840px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-eyebrow {
  display: block;
  color: #D5C9EC;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1.2;
  color: #EFEAF7;
  margin: 0 0 18px;
}

.duo-intro {
  font-size: 17px;
  line-height: 1.75;
  color: #EFEAF7;
  margin: 0 0 14px;
}

.duo-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  background: #6B4FA0;
  border: 1px solid #6B4FA0;
}

.duo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
}

.duo-panel {
  background: #1E1830;
  padding: 44px 44px 48px;
}

.duo-panel h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: #D5C9EC;
  font-size: 24px;
  margin: 0 0 14px;
}

.duo-panel p {
  color: #EFEAF7;
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

/* ===== metric band ===== */
.metric-band { background: #6B4FA0; padding: 70px 32px; }

.metric-head { text-align: center; margin-bottom: 44px; }

.metric-title {
  color: #D5C9EC;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.metric-sub {
  color: #14101C;
  font-size: 15px;
  font-weight: 500;
  max-width: 720px;
  margin: 12px auto 0;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  background: #14101C;
}

.metric {
  background: #6B4FA0;
  padding: 38px 18px;
  text-align: center;
}

.metric-num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  color: #D5C9EC;
}

.metric-suffix { color: #D5C9EC; font-size: 46px; font-weight: 700; }

.metric-num-static {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 700;
  color: #D5C9EC;
}

.metric-label {
  display: block;
  margin-top: 10px;
  color: #14101C;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ===== cta band ===== */
.cta-band { background: #D5C9EC; padding: 88px 32px; text-align: center; }

.cta-band h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1.2;
  color: #1E1830;
  max-width: 820px;
  margin: 0 auto 18px;
}

.cta-band p {
  color: #1E1830;
  font-size: 17px;
  line-height: 1.75;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* ===== single row footer ===== */
.single-row-footer { background: #6B4FA0; padding: 26px 32px; }

.single-row-footer p {
  margin: 0;
  text-align: center;
  color: #EFEAF7;
  font-size: 14px;
  line-height: 1.9;
}

.single-row-footer a { color: #EFEAF7; text-decoration: none; border-bottom: 1px solid #D5C9EC; }
.single-row-footer a:hover { color: #D5C9EC; }

/* ===== scroll reveal ===== */
.fade-up { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ===== secondary pages ===== */
.page-hero { padding: 96px 32px 60px; }

.service-list { max-width: 1080px; margin: 0 auto; padding: 0 32px 96px; }

.service-list-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 54px;
}

.service-list-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  color: #EFEAF7;
  margin: 0 0 16px;
}

.service-list-head p { color: #EFEAF7; font-size: 17px; line-height: 1.75; margin: 0; }

.service-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 46px 8px;
  border-top: 1px solid #6B4FA0;
}

.service-block:last-child { border-bottom: 1px solid #6B4FA0; }

.service-index {
  font-family: Georgia, "Times New Roman", serif;
  color: #6B4FA0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.service-block h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: #D5C9EC;
  font-size: 26px;
  margin: 0 0 14px;
}

.service-block p { color: #EFEAF7; line-height: 1.8; margin: 0 0 14px; }
.service-block p:last-child { margin: 0; }

.process-band { background: #1E1830; padding: 84px 32px; border-top: 1px solid #6B4FA0; border-bottom: 1px solid #6B4FA0; }

.process-head { text-align: center; max-width: 820px; margin: 0 auto 48px; }

.process-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  color: #EFEAF7;
  margin: 0 0 16px;
}

.process-head p { color: #EFEAF7; font-size: 17px; line-height: 1.75; margin: 0; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1080px;
  margin: 0 auto;
  background: #6B4FA0;
}

.process-step { background: #14101C; padding: 34px 28px; }

.step-num {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  color: #6B4FA0;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}

.process-step h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: #D5C9EC;
  font-size: 20px;
  margin: 0 0 10px;
}

.process-step p { color: #EFEAF7; font-size: 15px; line-height: 1.7; margin: 0; }

/* ===== contact page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px 80px;
  align-items: start;
}

.contact-form-panel { background: #1E1830; border: 1px solid #6B4FA0; padding: 40px; }

.contact-form-panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: #D5C9EC;
  font-size: 26px;
  margin: 0 0 22px;
}

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  color: #D5C9EC;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: #14101C;
  border: 1px solid #6B4FA0;
  color: #EFEAF7;
  font-size: 15px;
  font-family: inherit;
  padding: 12px 14px;
  border-radius: 3px;
}

.form-field textarea { min-height: 140px; resize: vertical; }

.form-status { margin: 16px 0 0; font-size: 14px; color: #D5C9EC; }
.form-status.ok { color: #BDE0C2; }
.form-status.error { color: #F2B8C0; }

.contact-info-panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: #D5C9EC;
  font-size: 26px;
  margin: 0 0 22px;
}

.info-row { padding: 18px 0; border-top: 1px solid #6B4FA0; }

.info-row:first-of-type { border-top: none; }

.info-row h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #D5C9EC;
  margin: 0 0 6px;
}

.info-row p { color: #EFEAF7; font-size: 16px; line-height: 1.7; margin: 0; }

.info-row a { color: #EFEAF7; text-decoration: none; border-bottom: 1px solid #6B4FA0; }
.info-row a:hover { color: #D5C9EC; }

.faq-section { max-width: 860px; margin: 0 auto; padding: 0 32px 96px; }

.faq-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  color: #EFEAF7;
  text-align: center;
  margin: 0 0 34px;
}

.faq-item { background: #1E1830; border: 1px solid #6B4FA0; margin-bottom: 14px; }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  color: #EFEAF7;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  padding: 20px 24px;
  cursor: pointer;
}

.faq-question::after { content: "+"; color: #6B4FA0; font-size: 22px; font-weight: 700; }
.faq-item.open .faq-question::after { content: "-"; }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer p { margin: 0; padding: 0 24px 22px; color: #EFEAF7; line-height: 1.75; }

/* ===== responsive ===== */
@media (max-width: 900px) {
  .site-wrap { margin-right: 0; }
  .nav-toggle { display: flex; }
  .rail-nav {
    width: 100%;
    border-left: none;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    align-items: center;
    justify-content: center;
    padding-top: 90px;
  }
  .rail-nav.open { transform: translateX(0); }
  .rail-brand { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); margin: 0; flex-direction: row; }
  .brand-letter { font-size: 14px; }
  .rail-links { width: auto; padding: 0; align-items: center; gap: 6px; }
  .rail-link { font-size: 16px; padding: 12px 16px; }
  .center-stack-hero { padding: 80px 24px 60px; }
  .center-stack-hero h1 { font-size: 36px; }
  .hero-lead { font-size: 17px; }
  .duo-section { padding: 64px 24px; }
  .section-head h2 { font-size: 30px; }
  .duo-row { grid-template-columns: 1fr; }
  .duo-panel { padding: 30px 24px; }
  .metric-band { padding: 56px 24px; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .metric { padding: 30px 12px; }
  .metric-num { font-size: 36px; }
  .metric-suffix { font-size: 36px; }
  .cta-band { padding: 64px 24px; }
  .cta-band h2 { font-size: 30px; }
  .service-list { padding: 0 24px 64px; }
  .service-block { grid-template-columns: 1fr; gap: 10px; padding: 34px 0; }
  .process-band { padding: 60px 24px; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; padding: 0 24px 64px; }
  .faq-section { padding: 0 24px 64px; }
}

@media (max-width: 520px) {
  .process-steps { grid-template-columns: 1fr; }
  .center-stack-hero h1 { font-size: 32px; }
  .metric-row { grid-template-columns: 1fr 1fr; }
}
