:root {
  --hillier: #F2EEE2;
  --feebook: #2E342C;
  --penstroke: #167A3A;
  --fufai: #1C221C;
  --bill-panel: #D8E0E4;
  --nib-brass: #C66044;
  --ledger-mist: #92938D;
  --rule-solid: #C6C2B4;
  --cord-solid: #1C221C;
  --panel-line: #B7C1C6;
  --fufai-light: #2C342C;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: #2E342C;
  line-height: 1.2;
  margin: 0 0 16px 0;
}

p {
  margin: 0 0 16px 0;
}

a {
  color: #167A3A;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

/* ============================================================
   BEAD RAIL NAV
   ============================================================ */

.beadrailnav {
  position: relative;
  background-color: #F2EEE2;
  border-top: 4px solid #1C221C;
  padding: 18px 32px 14px 32px;
}

.beadrailnav::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 4px;
  background-color: #1C221C;
}

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

.beadrailnav-brand {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #2E342C;
  background-color: #D8E0E4;
  border: 2px solid #1C221C;
  border-radius: 4px 22px 22px 4px;
  padding: 10px 26px 10px 16px;
  line-height: 1.1;
  display: inline-block;
}

.beadrailnav-beads {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.beadrailnav-beads li {
  margin: 0;
  padding: 0;
}

.beadrailnav-beads a {
  display: inline-block;
  background-color: #D8E0E4;
  color: #2E342C;
  border: 2px solid #1C221C;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-family: Georgia, "Times New Roman", Times, serif;
}

.beadrailnav-beads a:hover {
  background-color: #167A3A;
  color: #F2EEE2;
  text-decoration: none;
}

.beadrailnav-beads a.is-active {
  background-color: #167A3A;
  color: #F2EEE2;
  border-color: #1C221C;
}

.beadrailnav-beads li:nth-child(1) a {
  padding-left: 15px;
  padding-right: 15px;
}

.beadrailnav-beads li:nth-child(2) a {
  padding-left: 27px;
  padding-right: 27px;
}

.beadrailnav-beads li:nth-child(3) a {
  padding-left: 19px;
  padding-right: 19px;
}

.beadrailnav-beads li:nth-child(4) a {
  padding-left: 23px;
  padding-right: 23px;
}

.beadrailnav-beads li:nth-child(5) a {
  padding-left: 17px;
  padding-right: 17px;
}

.beadrailnav-toggle {
  display: none;
  background-color: #1C221C;
  color: #F2EEE2;
  border: 2px solid #1C221C;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", Times, serif;
  cursor: pointer;
}

/* ============================================================
   ABACUS HERO
   ============================================================ */

.abacushero {
  background-color: #F2EEE2;
  padding: 58px 32px 70px 32px;
  border-bottom: 2px solid #C6C2B4;
}

.abacushero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 54px;
}

.abacushero-text {
  flex: 0 0 58%;
  max-width: 58%;
}

.abacushero-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #167A3A;
  border-bottom: 3px solid #167A3A;
  padding-bottom: 6px;
  margin-bottom: 22px;
}

.abacushero-headline {
  font-size: 46px;
  line-height: 1.08;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #2E342C;
}

.abacushero-display {
  display: block;
  font-size: 84px;
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #167A3A;
  margin: 4px 0 24px 0;
}

.abacushero-lede {
  font-size: 18px;
  color: #2E342C;
  max-width: 620px;
}

.abacushero-inline {
  color: #167A3A;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.abacushero-cta {
  display: block;
  margin-top: 26px;
  background-color: #167A3A;
  color: #F2EEE2;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.03em;
  padding: 18px 28px;
  border: 2px solid #1C221C;
  border-radius: 4px;
  max-width: 620px;
}

.abacushero-cta:hover {
  background-color: #1C221C;
  color: #F2EEE2;
  text-decoration: none;
}

.abacushero-cta-arrow {
  float: right;
  font-size: 20px;
}

/* Abacus frame device */
.abacushero-frame {
  flex: 0 0 42%;
  max-width: 42%;
}

.abacushero-board {
  position: relative;
  background-color: #1C221C;
  border-radius: 10px;
  padding: 26px 24px;
  box-shadow: 10px 10px 0 #C6C2B4;
}

.abacushero-board::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 14px;
  right: 14px;
  height: 10px;
  background-color: #2C342C;
  border-radius: 6px 6px 0 0;
}

.abacushero-board::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 14px;
  right: 14px;
  height: 10px;
  background-color: #2C342C;
  border-radius: 0 0 6px 6px;
}

.abacushero-wire {
  position: relative;
  height: 4px;
  background-color: #92938D;
  border-radius: 2px;
  margin: 26px 34px;
}

.abacushero-wire:first-child {
  margin-top: 10px;
}

.abacushero-wire:last-child {
  margin-bottom: 10px;
}

.abacushero-bead {
  position: absolute;
  top: 50%;
  width: 26px;
  height: 34px;
  border-radius: 7px;
  transform: translateY(-50%);
  border: 2px solid #0F140F;
}

.abacushero-bead.b-pen {
  background-color: #167A3A;
}

.abacushero-bead.b-nib {
  background-color: #C66044;
}

.abacushero-bead.b-pale {
  background-color: #D8E0E4;
}

.abacushero-caption {
  margin-top: 20px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #92938D;
  font-weight: 700;
  text-align: center;
}

/* ============================================================
   SHARED SECTION FRAME
   ============================================================ */

.section-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

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

.section-head h2 {
  font-size: 36px;
  margin-bottom: 12px;
}

.section-head p {
  font-size: 17px;
  color: #2E342C;
}

.section-kicker {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #167A3A;
  margin-bottom: 12px;
}

/* ============================================================
   LEDGER CORD
   ============================================================ */

.ledgercord {
  position: relative;
  background-color: #F2EEE2;
  padding: 76px 0 84px 0;
  border-bottom: 2px solid #C6C2B4;
}

.ledgercord-sheet {
  position: relative;
}

.ledgercord-sheet::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 58px;
  width: 2px;
  background-color: #1C221C;
}

.ledgercord-list {
  list-style: none;
  margin: 42px 0 0 0;
  padding: 0 0 0 118px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.ledgercord-slip {
  position: relative;
  background-color: #D8E0E4;
  border: 2px solid #1C221C;
  border-radius: 3px;
  padding: 26px 30px 24px 30px;
  box-shadow: 6px 6px 0 #C6C2B4;
}

.ledgercord-slip.no-wide {
  max-width: 100%;
}

.ledgercord-slip.no-narrow {
  max-width: 72%;
}

.ledgercord-slip::before {
  content: "";
  position: absolute;
  left: -60px;
  top: 34px;
  width: 58px;
  height: 2px;
  background-color: #1C221C;
}

.ledgercord-slip::after {
  content: "";
  position: absolute;
  left: -67px;
  top: 28px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #F2EEE2;
  border: 3px solid #1C221C;
}

.ledgercord-mark {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #92938D;
  background-color: #F2EEE2;
  border: 2px solid #92938D;
  border-radius: 3px;
  padding: 3px 10px;
  margin-bottom: 12px;
}

.ledgercord-slip h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.ledgercord-slip p {
  margin-bottom: 12px;
  font-size: 16px;
}

.ledgercord-link {
  font-weight: 700;
  font-size: 15px;
  color: #167A3A;
}

/* ============================================================
   EDITORIAL PROSE SECTIONS
   ============================================================ */

.proseband {
  background-color: #F2EEE2;
  padding: 76px 0;
  border-bottom: 2px solid #C6C2B4;
}

.proseband-alt {
  background-color: #D8E0E4;
  padding: 76px 0;
  border-bottom: 2px solid #C6C2B4;
}

.proseband-grid {
  display: flex;
  gap: 54px;
  align-items: flex-start;
}

.proseband-col {
  flex: 1 1 50%;
}

.proseband-col h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.proseband-col h3 {
  font-size: 22px;
  margin-top: 26px;
  margin-bottom: 10px;
}

.proseband-col p {
  font-size: 16px;
}

.proseband-lede {
  font-size: 18px;
  font-weight: 700;
  color: #2E342C;
}

.proseband-callout {
  background-color: #F2EEE2;
  border-left: 6px solid #167A3A;
  padding: 20px 24px;
  margin-top: 20px;
  font-size: 16px;
  color: #2E342C;
}

.proseband-alt .proseband-callout {
  background-color: #D8E0E4;
  border-left: 6px solid #1C221C;
}

.service-text-links {
  list-style: none;
  margin: 18px 0 0 0;
  padding: 0;
}

.service-text-links li {
  border-bottom: 2px solid #C6C2B4;
  padding: 12px 0;
  font-size: 16px;
}

.service-text-links li:last-child {
  border-bottom: none;
}

.service-text-links a {
  font-weight: 700;
  color: #167A3A;
}

.service-text-links span {
  color: #2E342C;
}

/* ============================================================
   NIB WELL BAND
   ============================================================ */

.nibwellband {
  background-color: #1C221C;
  padding: 40px 0;
  position: relative;
}

.nibwellband-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nibwellband-cup {
  flex: 0 0 104px;
  position: relative;
  width: 104px;
  height: 78px;
}

.nibwellband-cup::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 104px;
  height: 44px;
  background-color: #2C342C;
  border: 3px solid #F2EEE2;
  border-radius: 0 0 52px 52px;
}

.nibwellband-cup::after {
  content: "";
  position: absolute;
  bottom: 30px;
  left: 74px;
  width: 8px;
  height: 54px;
  background-color: #167A3A;
  border: 2px solid #F2EEE2;
  border-radius: 3px;
  transform: rotate(26deg);
  transform-origin: bottom center;
}

.nibwellband-text {
  flex: 1 1 auto;
  font-size: 21px;
  color: #F2EEE2;
  font-family: Georgia, "Times New Roman", Times, serif;
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   PROCESS ROWS (services page)
   ============================================================ */

.processband {
  background-color: #F2EEE2;
  padding: 76px 0;
  border-bottom: 2px solid #C6C2B4;
}

.processband-list {
  list-style: none;
  margin: 36px 0 0 0;
  padding: 0;
  counter-reset: stepnone;
}

.processband-item {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 26px 0;
  border-bottom: 2px solid #C6C2B4;
}

.processband-item:last-child {
  border-bottom: none;
}

.processband-num {
  flex: 0 0 74px;
  height: 74px;
  border-radius: 50%;
  border: 3px solid #1C221C;
  background-color: #167A3A;
  color: #F2EEE2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", Times, serif;
}

.processband-body h3 {
  font-size: 23px;
  margin-bottom: 8px;
}

.processband-body p {
  margin-bottom: 8px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contactband {
  background-color: #F2EEE2;
  padding: 68px 0 80px 0;
  border-bottom: 2px solid #C6C2B4;
}

.contactband-grid {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-top: 20px;
}

.contactband-formcol {
  flex: 1 1 56%;
}

.contactband-infocol {
  flex: 1 1 44%;
}

.contactform {
  background-color: #D8E0E4;
  border: 2px solid #1C221C;
  border-radius: 4px;
  padding: 30px;
  box-shadow: 8px 8px 0 #C6C2B4;
}

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

.contactform-note {
  font-size: 15px;
  color: #2E342C;
  margin-bottom: 20px;
}

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

.contactform-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2E342C;
  margin-bottom: 7px;
}

.contactform-field input,
.contactform-field textarea {
  width: 100%;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 16px;
  color: #2E342C;
  background-color: #F2EEE2;
  border: 2px solid #1C221C;
  border-radius: 3px;
  padding: 11px 13px;
}

.contactform-field input:focus,
.contactform-field textarea:focus {
  outline: 3px solid #167A3A;
  outline-offset: 1px;
}

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

.contactform-submit {
  display: block;
  width: 100%;
  background-color: #167A3A;
  color: #F2EEE2;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 2px solid #1C221C;
  border-radius: 4px;
  padding: 15px 22px;
  cursor: pointer;
}

.contactform-submit:hover {
  background-color: #1C221C;
  color: #F2EEE2;
}

.contactform-status {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 700;
  color: #167A3A;
}

.contactinfo-block {
  background-color: #D8E0E4;
  border: 2px solid #1C221C;
  border-radius: 4px;
  padding: 26px 28px;
  margin-bottom: 22px;
}

.contactinfo-block h3 {
  font-size: 19px;
  margin-bottom: 10px;
  color: #167A3A;
}

.contactinfo-block p {
  margin-bottom: 6px;
  font-size: 16px;
}

.contactinfo-block a {
  font-weight: 700;
}

.faqband {
  background-color: #D8E0E4;
  padding: 70px 0 80px 0;
  border-bottom: 2px solid #C6C2B4;
}

.faqband-list {
  max-width: 860px;
  margin: 30px auto 0 auto;
}

.faqband-item {
  background-color: #F2EEE2;
  border: 2px solid #1C221C;
  border-radius: 4px;
  margin-bottom: 16px;
  overflow: hidden;
}

.faqband-q {
  display: block;
  width: 100%;
  text-align: left;
  background-color: #F2EEE2;
  color: #2E342C;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 18px;
  font-weight: 700;
  border: none;
  padding: 20px 24px;
  cursor: pointer;
  position: relative;
}

.faqband-q::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #167A3A;
  font-weight: 700;
}

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

.faqband-q:hover {
  color: #167A3A;
}

.faqband-a {
  padding: 0 24px 20px 24px;
  font-size: 16px;
  color: #2E342C;
  border-top: 2px solid #C6C2B4;
  padding-top: 16px;
  margin-top: 0;
}

/* ============================================================
   BLOTTER FOOTER
   ============================================================ */

.blotterfoot {
  background-color: #1C221C;
  color: #F2EEE2;
  padding: 0;
}

.blotterfoot-face {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 32px 40px 32px;
  position: relative;
  background-color: #F2EEE2;
  border-left: 14px solid #1C221C;
  border-right: 14px solid #1C221C;
}

.blotterfoot-face::before {
  content: "";
  position: absolute;
  top: 34px;
  right: 12%;
  width: 90px;
  height: 62px;
  border-radius: 46% 54% 58% 42%;
  background-color: #167A3A;
  transform: rotate(-12deg);
}

.blotterfoot-face::after {
  content: "";
  position: absolute;
  bottom: 46px;
  right: 24%;
  width: 54px;
  height: 40px;
  border-radius: 52% 48% 44% 56%;
  background-color: #167A3A;
  transform: rotate(8deg);
}

.blotterfoot-grid {
  position: relative;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.blotterfoot-main {
  flex: 1 1 64%;
}

.blotterfoot-brand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2E342C;
  margin-bottom: 14px;
}

.blotterfoot-blurb {
  font-size: 16px;
  color: #2E342C;
  max-width: 560px;
  margin-bottom: 18px;
}

.blotterfoot-lines {
  font-size: 16px;
  color: #2E342C;
  margin-bottom: 6px;
}

.blotterfoot-lines a {
  color: #2E342C;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blotterfoot-lines a:hover {
  color: #167A3A;
}

.blotterfoot-links {
  flex: 0 0 26%;
}

.blotterfoot-links h3 {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #167A3A;
  margin-bottom: 14px;
}

.blotterfoot-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blotterfoot-links li {
  margin-bottom: 11px;
}

.blotterfoot-links a {
  color: #2E342C;
  font-size: 16px;
  font-weight: 700;
}

.blotterfoot-links a:hover {
  color: #167A3A;
  text-decoration: underline;
}

.blotterfoot-baseline {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 32px;
  font-size: 14px;
  color: #F2EEE2;
  background-color: #1C221C;
}

.blotterfoot-nib {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #167A3A;
  border: 2px solid #F2EEE2;
  border-radius: 2px 6px 2px 2px;
  margin-right: 8px;
  transform: rotate(12deg);
  vertical-align: middle;
}

.blotterfoot-baseline a {
  color: #F2EEE2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */

.reveal {
  transform: translateY(22px);
  transition: transform 480ms ease;
}

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

.nojs .reveal,
html.nojs .reveal {
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 940px) {
  .abacushero-inner {
    flex-direction: column;
    gap: 40px;
  }

  .abacushero-text,
  .abacushero-frame {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
  }

  .abacushero-headline {
    font-size: 38px;
  }

  .abacushero-display {
    font-size: 66px;
  }

  .proseband-grid {
    flex-direction: column;
    gap: 34px;
  }

  .contactband-grid {
    flex-direction: column;
  }

  .blotterfoot-grid {
    flex-direction: column;
    gap: 30px;
  }

  .ledgercord-list {
    padding-left: 88px;
  }

  .ledgercord-sheet::before {
    left: 40px;
  }

  .ledgercord-slip.no-narrow {
    max-width: 100%;
  }

  .ledgercord-slip::before {
    left: -46px;
    width: 44px;
  }

  .ledgercord-slip::after {
    left: -53px;
  }
}

@media (max-width: 700px) {
  .beadrailnav {
    padding: 14px 18px 16px 18px;
  }

  .beadrailnav-inner {
    gap: 14px;
  }

  .beadrailnav-beads {
    width: 100%;
    gap: 8px;
  }

  .beadrailnav-beads a {
    padding: 8px 14px;
    font-size: 14px;
  }

  .beadrailnav-beads li:nth-child(n) a {
    padding-left: 14px;
    padding-right: 14px;
  }

  .abacushero {
    padding: 40px 18px 52px 18px;
  }

  .abacushero-headline {
    font-size: 32px;
  }

  .abacushero-display {
    font-size: 54px;
  }

  .section-wrap {
    padding: 0 18px;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .ledgercord {
    padding: 54px 0 62px 0;
  }

  .ledgercord-sheet::before {
    left: 22px;
  }

  .ledgercord-list {
    padding-left: 54px;
    gap: 20px;
  }

  .ledgercord-slip {
    padding: 20px 20px 18px 20px;
  }

  .ledgercord-slip::before {
    left: -30px;
    width: 28px;
  }

  .ledgercord-slip::after {
    left: -37px;
    top: 26px;
  }

  .ledgercord-slip h3 {
    font-size: 21px;
  }

  .proseband,
  .proseband-alt,
  .processband {
    padding: 54px 0;
  }

  .nibwellband-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 0 18px;
  }

  .nibwellband-text {
    font-size: 17px;
  }

  .blotterfoot-face {
    padding: 36px 20px 30px 20px;
    border-left: 8px solid #1C221C;
    border-right: 8px solid #1C221C;
  }

  .blotterfoot-baseline {
    padding: 14px 20px;
  }

  .contactform {
    padding: 22px;
  }

  .processband-item {
    gap: 16px;
  }

  .processband-num {
    flex: 0 0 52px;
    height: 52px;
    font-size: 17px;
  }
}
