:root {
  --forge-grey: #CED2E8;
  --tower-deep: #422638;
  --shield-copper: #CE7244;
  --herald-gold: #E8B25A;
  --forge-card: #F0F8F8;
  --pike-slate: #686A8A;
  --ember-red: #CC5244;
  --wood-lining: #A26862;
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  margin: 0;
  padding: 0;
  background: #CED2E8;
  color: #422638;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  line-height: 1.7;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: #422638;
}

p {
  margin: 0 0 1em;
}

a {
  color: #CE7244;
  text-decoration: none;
}

a:hover {
  color: #A26862;
  text-decoration: underline;
}

strong {
  color: #422638;
}

/* ============ BULWARK SHIELD FACES NAV ============ */
.bulwarkwall {
  background: #422638;
  width: 100%;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.bulwark-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #CED2E8;
  white-space: nowrap;
}

.bulwark-brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #CE7244;
  display: inline-block;
  flex-shrink: 0;
}

.bulwark-shields {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bulwark-shield {
  position: relative;
  display: block;
  padding: 10px 20px 12px;
  background: #F0F8F8;
  color: #422638;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid #A26862;
  border-radius: 4px 4px 24px 24px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bulwark-shield::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #E8B25A;
}

.bulwark-shield:hover,
.bulwark-shield:focus {
  background: #CE7244;
  color: #F0F8F8;
  text-decoration: none;
  transform: translateY(-1px);
}

.bulwark-shield:hover::before,
.bulwark-shield:focus::before {
  background: #F0F8F8;
}

.bulwark-shield.is-current {
  background: #CE7244;
  color: #F0F8F8;
  border-color: #E8B25A;
}

.bulwark-shield.is-current::before {
  background: #F0F8F8;
}

.bulwark-toggle {
  display: none;
  background: #F0F8F8;
  color: #422638;
  border: 1px solid #A26862;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* ============ AEGIS DECK HERO ============ */
.aegisdeck {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 56px;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 48px;
  align-items: center;
}

.aegisdeck-left {
  min-width: 0;
}

.aegisdeck-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #686A8A;
  border-top: 2px solid #686A8A;
  padding-top: 6px;
  margin-bottom: 20px;
}

.aegisdeck-headline {
  font-size: 52px;
  font-weight: 700;
  color: #422638;
  margin: 0 0 24px;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.aegisdeck-headline .aegisdeck-display {
  display: block;
  font-style: italic;
  font-size: 76px;
  color: #CE7244;
  letter-spacing: -0.02em;
  margin-top: 6px;
}

.aegisdeck-lede {
  font-size: 18px;
  color: #422638;
  max-width: 46ch;
  margin-bottom: 16px;
}

.aegisdeck-inline-link {
  display: inline-block;
  color: #CE7244;
  font-weight: 700;
  border-bottom: 2px solid #CE7244;
  padding-bottom: 1px;
  margin-bottom: 26px;
}

.aegisdeck-inline-link:hover {
  color: #422638;
  border-bottom-color: #CC5244;
  text-decoration: none;
}

.aegisdeck-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 360px;
  background: #CE7244;
  color: #F0F8F8;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 22px;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.aegisdeck-cta:hover {
  background: #422638;
  color: #F0F8F8;
  text-decoration: none;
}

.aegisdeck-cta-arrow {
  font-size: 20px;
  line-height: 1;
}

/* ============ RAMPART PLAN PANEL ============ */
.rampartplan {
  background: #F0F8F8;
  border: 3px solid #422638;
  border-radius: 3px;
  padding: 22px;
  position: relative;
}

.rampartplan-title {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #686A8A;
  border-bottom: 1px solid #A26862;
  padding-bottom: 8px;
  margin-bottom: 16px;
  font-family: "Courier New", Courier, monospace;
}

.rampartplan-field {
  position: relative;
  height: 300px;
  border: 2px solid #422638;
  background: #CED2E8;
  overflow: hidden;
}

.rampartplan-bastion {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 3px solid #422638;
  background: #CED2E8;
}

.rampartplan-bastion.tl { top: -8px; left: -8px; }
.rampartplan-bastion.tr { top: -8px; right: -8px; }
.rampartplan-bastion.bl { bottom: -8px; left: -8px; }
.rampartplan-bastion.br { bottom: -8px; right: -8px; }

.rampartplan-bastion::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 8px;
  background: #E8B25A;
}

.rampartplan-wall {
  position: absolute;
  background: #422638;
}

.rampartplan-wall.top { top: 18px; left: 34px; right: 34px; height: 7px; }
.rampartplan-wall.bottom { bottom: 18px; left: 34px; right: 34px; height: 7px; }
.rampartplan-wall.left { left: 18px; top: 34px; bottom: 34px; width: 7px; }
.rampartplan-wall.right { right: 18px; top: 34px; bottom: 34px; width: 7px; }

.rampartplan-slit {
  position: absolute;
  background: #686A8A;
}

.rampartplan-slit.h1 { top: 14px; left: 80px; width: 34px; height: 12px; }
.rampartplan-slit.h2 { top: 14px; right: 80px; width: 34px; height: 12px; }
.rampartplan-slit.v1 { left: 14px; top: 92px; width: 12px; height: 44px; }
.rampartplan-slit.v2 { right: 14px; bottom: 92px; width: 12px; height: 44px; }

.rampartplan-keep {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 84px;
  border: 3px solid #422638;
  background: #F0F8F8;
}

.rampartplan-keep::before {
  content: "KEEP";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #686A8A;
  font-weight: 700;
}

.rampartplan-keep::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 8px;
  background: #E8B25A;
}

.rampartplan-caption {
  font-size: 13px;
  color: #686A8A;
  margin: 14px 0 0;
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 0.02em;
}

/* ============ WALL PREAMBLE ============ */
.wallpreamble {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.wallpreamble p {
  font-size: 17px;
  color: #422638;
}

.wallpreamble p:first-child {
  font-size: 20px;
  border-left: 4px solid #CE7244;
  padding-left: 18px;
}

.wallpreamble-aside {
  background: #F0F8F8;
  border-left: 6px solid #686A8A;
  padding: 22px 24px;
}

.wallpreamble-aside h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.wallpreamble-aside p {
  font-size: 15px;
  margin: 0;
}

/* ============ STRAKE ROW RUN ============ */
.strakerow {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 56px;
}

.strakerow-head {
  border-top: 3px solid #422638;
  padding-top: 18px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.strakerow-head h2 {
  font-size: 34px;
  margin: 0;
}

.strakerow-head p {
  margin: 0;
  font-size: 15px;
  color: #686A8A;
  max-width: 46ch;
}

.strakerow-run {
  display: block;
}

.strakerow-item {
  display: grid;
  grid-template-columns: 56px minmax(180px, 260px) 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px 4px;
  border-bottom: 1px solid #A26862;
  position: relative;
}

.strakerow-item:first-child {
  border-top: 1px solid #A26862;
}

.strakerow-item.is-riveted::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E8B25A;
  border: 2px solid #A26862;
}

.strakerow-glyph {
  position: relative;
  width: 44px;
  height: 44px;
  margin-top: 2px;
}

.strakerow-glyph::before,
.strakerow-glyph::after {
  content: "";
  position: absolute;
  left: 4px;
  height: 6px;
  width: 36px;
  background: #686A8A;
  border-radius: 1px;
}

.strakerow-glyph::before {
  top: 12px;
}

.strakerow-glyph::after {
  top: 24px;
  left: 10px;
  width: 26px;
  background: #422638;
}

.strakerow-name {
  font-size: 21px;
  font-weight: 700;
  margin: 0;
  color: #422638;
}

.strakerow-name a {
  color: #422638;
  border-bottom: 2px solid #CE7244;
}

.strakerow-name a:hover {
  color: #CE7244;
  text-decoration: none;
}

.strakerow-text {
  font-size: 16px;
  color: #422638;
  margin: 0;
}

/* ============ SIGIL BAND ============ */
.sigilband {
  background: #CE7244;
  position: relative;
  margin-top: 40px;
}

.sigilband-tails {
  display: flex;
  width: 100%;
  height: 18px;
  overflow: hidden;
}

.sigilband-tail {
  flex: 1;
  height: 18px;
  background: #F0F8F8;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  margin-right: 4px;
}

.sigilband-tail.is-deep {
  background: #422638;
}

.sigilband-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 34px 24px;
  text-align: center;
  color: #F0F8F8;
  font-size: 19px;
  font-weight: 600;
}

/* ============ WATCH BOOK CLOSER ============ */
.watchbook {
  background: #CED2E8;
  padding: 0;
  position: relative;
  margin-top: 0;
}

.watchbook-rule {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 3px;
  background: #422638;
  margin-top: 56px;
}

.watchbook-horn {
  position: absolute;
  left: 50%;
  top: -15px;
  transform: translateX(-50%);
  width: 66px;
  height: 30px;
  background: #A26862;
  border-radius: 30px 30px 0 0;
  border: 2px solid #422638;
}

.watchbook-horn::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #E8B25A;
  border: 2px solid #422638;
}

.watchbook-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 48px;
}

.watchbook-links {
  text-align: center;
  font-size: 15px;
  margin-bottom: 30px;
  color: #686A8A;
}

.watchbook-links a {
  color: #422638;
  font-weight: 600;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
}

.watchbook-links a:hover {
  color: #CE7244;
  border-bottom-color: #CC5244;
  text-decoration: none;
}

.watchbook-dot {
  display: inline-block;
  margin: 0 12px;
  color: #686A8A;
}

.watchbook-brandline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #A26862;
  padding-top: 22px;
}

.watchbook-brand {
  font-weight: 700;
  font-size: 17px;
  color: #422638;
  display: flex;
  align-items: center;
  gap: 8px;
}

.watchbook-brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CE7244;
}

.watchbook-blurb {
  font-size: 14px;
  color: #686A8A;
  max-width: 420px;
  margin: 0;
}

.watchbook-meta {
  margin-top: 18px;
  font-size: 14px;
  color: #422638;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-family: "Courier New", Courier, monospace;
}

.watchbook-ember {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #CC5244;
  margin-right: 6px;
  vertical-align: middle;
}

/* ============ ENTRY GATEWAY (home secondary links) ============ */
.entrygateway {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.entrygateway-card {
  background: #F0F8F8;
  border-top: 6px solid #686A8A;
  padding: 26px 26px 22px;
}

.entrygateway-card.is-copper {
  border-top-color: #CE7244;
}

.entrygateway-card h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.entrygateway-card p {
  font-size: 15px;
  color: #422638;
  margin-bottom: 14px;
}

.entrygateway-card a {
  font-weight: 700;
  color: #CE7244;
  border-bottom: 2px solid #CE7244;
  padding-bottom: 1px;
}

.entrygateway-card a:hover {
  color: #422638;
  border-bottom-color: #CC5244;
  text-decoration: none;
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

/* ============ SERVICES PAGE ============ */
.pagelead {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 24px 22px;
}

.pagelead h1 {
  font-size: 46px;
  line-height: 1.06;
  margin-bottom: 16px;
  max-width: 20ch;
}

.pagelead h1 em {
  font-style: italic;
  color: #CE7244;
}

.pagelead p {
  font-size: 19px;
  max-width: 62ch;
  color: #422638;
}

.serviceenginetable {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

.serviceengine {
  padding: 30px 4px;
  border-bottom: 1px solid #A26862;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
}

.serviceengine:first-child {
  border-top: 3px solid #422638;
}

.serviceengine-name {
  font-size: 25px;
  margin: 0 0 6px;
}

.serviceengine-tag {
  display: inline-block;
  font-size: 12px;
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #422638;
  background: #E8B25A;
  padding: 2px 9px;
}

.serviceengine-body p {
  font-size: 16px;
  color: #422638;
}

.processoverview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.processoverview-head {
  border-top: 3px solid #422638;
  padding-top: 18px;
  margin-bottom: 24px;
}

.processoverview-head h2 {
  font-size: 32px;
  margin: 0;
}

.processoverview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.processoverview-list li {
  background: #F0F8F8;
  border-left: 6px solid #CE7244;
  padding: 20px 22px;
  font-size: 16px;
}

.processoverview-list strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}

.servicecalltoarms {
  background: #422638;
  color: #F0F8F8;
  padding: 48px 24px;
}

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

.servicecalltoarms h2 {
  color: #F0F8F8;
  font-size: 30px;
  margin: 0 0 8px;
}

.servicecalltoarms p {
  color: #F0F8F8;
  margin: 0;
  max-width: 56ch;
}

.servicecalltoarms a {
  display: inline-block;
  background: #CE7244;
  color: #F0F8F8;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 2px;
  white-space: nowrap;
}

.servicecalltoarms a:hover {
  background: #E8B25A;
  color: #422638;
  text-decoration: none;
}

/* ============ CONTACT PAGE ============ */
.contactlayout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contactlayout h1 {
  font-size: 42px;
  margin-bottom: 14px;
}

.contactintro p {
  font-size: 17px;
  color: #422638;
}

.contactdetails {
  margin-top: 26px;
  background: #F0F8F8;
  border-top: 6px solid #686A8A;
  padding: 24px 26px;
}

.contactdetails h2 {
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #686A8A;
  margin-bottom: 14px;
}

.contactdetails dl {
  margin: 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 16px;
  font-size: 16px;
}

.contactdetails dt {
  font-weight: 700;
  color: #422638;
}

.contactdetails dd {
  margin: 0;
  color: #422638;
}

.contactform {
  background: #F0F8F8;
  border: 3px solid #422638;
  padding: 30px 28px;
}

.contactform h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.contactform-note {
  font-size: 14px;
  color: #686A8A;
  margin-bottom: 20px;
}

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

.contactform-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #422638;
  margin-bottom: 6px;
}

.contactform-field input,
.contactform-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 11px 12px;
  border: 2px solid #686A8A;
  border-radius: 2px;
  background: #FFFFFF;
  color: #422638;
}

.contactform-field input:focus,
.contactform-field textarea:focus {
  outline: none;
  border-color: #CE7244;
}

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

.contactform-submit {
  background: #CE7244;
  color: #F0F8F8;
  font-family: inherit;
  font-weight: 700;
  font-size: 17px;
  border: none;
  padding: 15px 28px;
  border-radius: 2px;
  cursor: pointer;
}

.contactform-submit:hover {
  background: #422638;
}

.contactform-status {
  margin-top: 16px;
  font-size: 15px;
  color: #422638;
  min-height: 1.2em;
}

.faqblock {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.faqblock h2 {
  font-size: 30px;
  border-top: 3px solid #422638;
  padding-top: 18px;
  margin-bottom: 20px;
}

.faqentry {
  border-bottom: 1px solid #A26862;
}

.faqentry:first-of-type {
  border-top: 1px solid #A26862;
}

.faqentry-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  color: #422638;
  padding: 20px 30px 20px 4px;
  cursor: pointer;
  position: relative;
}

.faqentry-q::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #CE7244;
  font-weight: 400;
}

.faqentry.is-open .faqentry-q::after {
  content: "\2013";
}

.faqentry-a {
  display: none;
  padding: 0 30px 20px 4px;
  font-size: 16px;
  color: #422638;
}

.faqentry.is-open .faqentry-a {
  display: block;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .aegisdeck {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 44px;
  }

  .aegisdeck-headline {
    font-size: 42px;
  }

  .aegisdeck-headline .aegisdeck-display {
    font-size: 58px;
  }

  .wallpreamble,
  .entrygateway,
  .contactlayout {
    grid-template-columns: 1fr;
  }

  .serviceengine {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .processoverview-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .bulwarkwall-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .bulwark-toggle {
    display: inline-block;
  }

  .bulwark-shields {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    padding-bottom: 6px;
  }

  .bulwark-shields.is-open {
    display: flex;
  }

  .bulwark-shield {
    width: 100%;
    border-radius: 4px 4px 20px 20px;
  }

  .strakerow-item {
    grid-template-columns: 44px 1fr;
    gap: 14px;
  }

  .strakerow-text {
    grid-column: 2;
  }

  .aegisdeck-headline {
    font-size: 34px;
  }

  .aegisdeck-headline .aegisdeck-display {
    font-size: 46px;
  }

  .pagelead h1 {
    font-size: 34px;
  }

  .contactlayout h1 {
    font-size: 32px;
  }

  .contactdetails dl {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }

  .contactdetails dt {
    margin-top: 8px;
  }

  .sigilband-body {
    font-size: 17px;
  }
}

.aegisdeck-right {
  min-width: 0;
}
