/* ==========================================================
   Rafferty & Maze: Shared stylesheet
   ========================================================== */

:root {
  --green-base:   #0E1F16;
  --green-panel:  #15291E;
  --green-deep:   #091410;
  --ivory:        #F0EAD6;
  --ivory-dim:    #E3DDC8;
  --brass:        #C9A961;
  --brass-dim:    #8F7A46;
  --sage-line:    #2A4535;
  --warm-gray:    #A8A090;

  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', 'Times New Roman', serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --col-prose:  480px;
  --col-ledger: 640px;
  --col-legal:  680px;
  --col-wide:   960px;

  --pad-section: clamp(72px, 10vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--green-base);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "liga", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.94  0 0 0 0 0.92  0 0 0 0 0.84  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

main, header, footer { position: relative; z-index: 2; }

::selection { background: var(--brass); color: var(--green-base); }

a { color: inherit; text-decoration: none; }

/* ----------------------------------------------------------
   Typography primitives
   ---------------------------------------------------------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.small-caps {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

.display {
  font-family: var(--serif);
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.012em;
  font-weight: 400;
  margin: 0;
}

.display .line-2 {
  display: block;
  font-style: italic;
  color: var(--brass);
}

.lede {
  font-family: var(--serif);
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ivory-dim);
  max-width: var(--col-prose);
  margin: 0;
  line-height: 1.6;
}

.figure {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* ----------------------------------------------------------
   Header + navigation + geo switcher
   ---------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(24px, 4vw, 56px);
  border-bottom: 1px solid var(--sage-line);
  gap: 24px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ivory);
  white-space: nowrap;
}
.wordmark .amp {
  font-style: italic;
  color: var(--brass);
  padding: 0 0.08em;
}

.site-nav {
  display: flex;
  gap: clamp(18px, 2.6vw, 36px);
  align-items: center;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.site-nav a { transition: color .25s ease; }
.site-nav a:hover { color: var(--brass); }
.site-nav a.current { color: var(--brass); }
.site-nav .cta { color: var(--brass); }
.site-nav .cta:hover { color: var(--ivory); }

.nav-sep {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--sage-line);
  margin: 0 4px;
}

.geo-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.geo-switch .flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 20px;
  font-size: 16px;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 2px;
  opacity: 0.5;
  filter: saturate(0.7);
  transition: opacity .2s ease, border-color .2s ease, filter .2s ease;
}
.geo-switch .flag:hover { opacity: 0.9; filter: saturate(1); }
.geo-switch .flag.active {
  opacity: 1;
  filter: saturate(1);
  border-color: var(--brass);
}

/* ----------------------------------------------------------
   Section layout
   ---------------------------------------------------------- */

.section {
  padding: var(--pad-section) clamp(24px, 4vw, 56px);
  border-bottom: 1px solid var(--sage-line);
}
.section.dim { background: var(--green-panel); }
.section.deep { background: var(--green-deep); }

.col-prose  { max-width: var(--col-prose);  margin-inline: auto; }
.col-ledger { max-width: var(--col-ledger); margin-inline: auto; }
.col-legal  { max-width: var(--col-legal);  margin-inline: auto; }
.col-wide   { max-width: var(--col-wide);   margin-inline: auto; }

.divider {
  color: var(--brass);
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.4em;
  margin: 40px 0;
}

hr.rule-hair {
  border: 0;
  border-top: 1px solid var(--sage-line);
  margin: 56px auto;
  max-width: 240px;
}

/* ----------------------------------------------------------
   CTA link (never a button)
   ---------------------------------------------------------- */

.cta-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  padding: 16px 26px;
  border: 1px solid var(--brass);
  transition: color .25s ease, background .25s ease;
  cursor: pointer;
}
.cta-link::after { content: "  →"; opacity: 0.75; }
.cta-link:hover  { background: var(--brass); color: var(--green-base); }

.cta-link.ghost::after { content: ""; }

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */

.hero {
  padding-top: clamp(120px, 16vw, 200px);
  padding-bottom: clamp(120px, 16vw, 180px);
  text-align: center;
}
.hero .eyebrow { margin-bottom: 44px; display: inline-block; }
.hero .display { max-width: 960px; margin-inline: auto; }
.hero .lede { margin: 40px auto 52px; text-align: center; }

/* Inner page header (smaller than hero) */
.page-header {
  text-align: center;
  padding-top: clamp(88px, 10vw, 128px);
  padding-bottom: clamp(48px, 6vw, 72px);
}
.page-header .eyebrow { margin-bottom: 24px; display: inline-block; }
.page-header h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}
.page-header h1 em { font-style: italic; color: var(--brass); }
.page-header .lede {
  margin-left: auto; margin-right: auto;
  max-width: 560px;
}

/* ----------------------------------------------------------
   Process grid
   ---------------------------------------------------------- */

.process .section-head {
  text-align: center;
  margin-bottom: 80px;
}
.process .eyebrow { display: inline-block; margin-bottom: 24px; }
.process h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.15;
}
.process h2 em { color: var(--brass); font-style: italic; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 5vw, 72px);
  max-width: 1040px;
  margin-inline: auto;
}

.step { text-align: center; padding: 0 8px; }
.roman {
  font-family: var(--serif);
  font-style: italic;
  font-size: 42px;
  color: var(--brass);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  display: block;
}
.step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
  color: var(--ivory);
}
.step p {
  margin: 0 auto;
  color: var(--ivory-dim);
  font-size: 15px;
  line-height: 1.6;
  max-width: 300px;
}

@media (max-width: 780px) {
  .process-grid { grid-template-columns: 1fr; gap: 56px; }
}

/* ----------------------------------------------------------
   Ledger table (used on home and fees)
   ---------------------------------------------------------- */

.ledger .section-head { text-align: center; margin-bottom: 64px; }
.ledger h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}
.ledger h2 em { font-style: italic; color: var(--brass); }
.ledger .section-head p {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin: 16px 0 0;
}

.ledger-caption {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  text-align: center;
  margin: 0 auto 24px;
}

.ledger-table {
  width: 100%;
  max-width: var(--col-ledger);
  margin-inline: auto;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.ledger-table tr.row > * {
  padding: 18px 0;
  border-bottom: 1px solid var(--sage-line);
  font-size: 17px;
}
.ledger-table tr.row td:first-child  { color: var(--ivory-dim); }
.ledger-table tr.row td:last-child   {
  text-align: right; color: var(--ivory); letter-spacing: 0.01em;
}

.ledger-table tr.subtotal > * {
  padding: 22px 0 18px;
  font-size: 17px;
  border-bottom: 1px solid var(--sage-line);
}
.ledger-table tr.subtotal td:first-child {
  color: var(--warm-gray);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.ledger-table tr.subtotal td:last-child { text-align: right; color: var(--ivory); }

.ledger-table tr.remit > * {
  padding: 24px 0;
  border-top: 3px double var(--brass);
  border-bottom: 3px double var(--brass);
  font-size: 20px;
}
.ledger-table tr.remit td:first-child {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
}
.ledger-table tr.remit td:last-child {
  text-align: right; color: var(--ivory);
  font-size: 26px; letter-spacing: 0.01em;
}

.ledger-note {
  max-width: var(--col-ledger);
  margin: 28px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--warm-gray);
  font-style: italic;
  line-height: 1.6;
}
.ledger-note + .ledger-note { margin-top: 14px; }

/* Muted in-line ledger annotation */
.ann {
  color: var(--warm-gray);
  font-size: 13px;
  font-style: italic;
}

/* ----------------------------------------------------------
   Cases grid
   ---------------------------------------------------------- */

.cases .section-head { text-align: center; margin-bottom: 72px; }
.cases h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 0;
  letter-spacing: -0.005em;
}
.cases h2 em { font-style: italic; color: var(--brass); }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1040px;
  margin-inline: auto;
  border-top: 1px solid var(--sage-line);
  border-bottom: 1px solid var(--sage-line);
}
.case {
  padding: 44px 28px;
  text-align: center;
  border-right: 1px solid var(--sage-line);
}
.case:last-child { border-right: 0; }
.case .label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 18px;
}
.case .value {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ivory);
  line-height: 1.25;
}
.case .value .accent { font-style: italic; color: var(--brass); }

@media (max-width: 820px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .case { border-right: 1px solid var(--sage-line); border-bottom: 1px solid var(--sage-line); }
  .case:nth-child(2n) { border-right: 0; }
  .case:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 480px) {
  .cases-grid { grid-template-columns: 1fr; }
  .case { border-right: 0 !important; border-bottom: 1px solid var(--sage-line); }
  .case:last-child { border-bottom: 0; }
}

/* ----------------------------------------------------------
   Closing
   ---------------------------------------------------------- */

.closing {
  text-align: center;
  padding-top: clamp(100px, 14vw, 160px);
  padding-bottom: clamp(100px, 14vw, 160px);
}
.closing .quietly {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  font-size: clamp(32px, 4.4vw, 48px);
  letter-spacing: -0.005em;
  margin: 0 0 36px;
  line-height: 1.1;
}
.closing p {
  max-width: 520px;
  margin: 0 auto 52px;
  color: var(--warm-gray);
  font-size: 17px;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   Long-form prose (process, privacy, terms)
   ---------------------------------------------------------- */

.prose {
  max-width: var(--col-legal);
  margin-inline: auto;
  color: var(--ivory-dim);
}
.prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.005em;
  color: var(--ivory);
  margin: 64px 0 20px;
  line-height: 1.2;
}
.prose h2 em { color: var(--brass); font-style: italic; }
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  color: var(--ivory);
  margin: 36px 0 14px;
}
.prose p {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.65;
}
.prose p.figcaption {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 36px;
}
.prose ul, .prose ol {
  margin: 0 0 20px;
  padding-left: 20px;
  line-height: 1.65;
}
.prose li { margin-bottom: 8px; }
.prose em { font-style: italic; color: var(--brass); }
.prose a {
  color: var(--brass);
  border-bottom: 1px solid var(--brass-dim);
  transition: border-color .2s;
}
.prose a:hover { border-bottom-color: var(--brass); }

.prose .cite {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--warm-gray);
  letter-spacing: 0.04em;
  font-style: normal;
}

/* ----------------------------------------------------------
   Specimen letterhead (process page)
   ---------------------------------------------------------- */

.specimen {
  background: var(--ivory);
  color: #1a1a18;
  padding: 48px clamp(32px, 5vw, 64px);
  max-width: var(--col-legal);
  margin: 40px auto;
  font-family: var(--serif);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.5);
  position: relative;
}
.specimen .mark {
  text-align: center;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: #1a1a18;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--brass);
  margin-bottom: 28px;
}
.specimen .mark .amp { font-style: italic; color: var(--brass); }
.specimen .ref {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #7a7a72;
  margin-bottom: 24px;
}
.specimen .body p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #1a1a18;
  margin: 0 0 14px;
}
.specimen .body p em { color: #6a5a22; }
.specimen .foot {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9a9a90;
  margin-top: 32px;
  text-align: center;
  border-top: 1px solid #d0c9b6;
  padding-top: 14px;
}

/* ----------------------------------------------------------
   Fees: stacked worked examples
   ---------------------------------------------------------- */

.worked-example {
  padding: 56px 0;
  border-bottom: 1px solid var(--sage-line);
}
.worked-example:last-child { border-bottom: 0; }
.worked-example .ledger-caption { margin-bottom: 32px; }

/* ----------------------------------------------------------
   Form (submit a case)
   ---------------------------------------------------------- */

.form {
  max-width: var(--col-legal);
  margin: 0 auto;
}
.form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 48px;
}
.form legend {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 28px;
  padding: 0;
}
.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 20px;
}
.form .row.single { grid-template-columns: 1fr; }

@media (max-width: 640px) {
  .form .row { grid-template-columns: 1fr; gap: 20px; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gray);
}
.field label .req { color: var(--brass); margin-left: 3px; }

.field input,
.field textarea,
.field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--sage-line);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 17px;
  padding: 10px 0 12px;
  width: 100%;
  border-radius: 0;
  transition: border-color .25s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--brass);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--serif);
}
.field input::placeholder,
.field textarea::placeholder {
  color: #6a6357;
  font-style: italic;
}

.confirm {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  cursor: pointer;
  font-size: 15px;
  color: var(--ivory-dim);
  line-height: 1.5;
}
.confirm input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1px solid var(--sage-line);
  background: transparent;
  flex: 0 0 18px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
}
.confirm input[type="checkbox"]:checked {
  background: var(--brass);
  border-color: var(--brass);
}
.confirm input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid var(--green-base);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.submit-row .note {
  font-size: 13px;
  color: var(--warm-gray);
  font-style: italic;
  max-width: 380px;
}

button.cta-link {
  background: transparent;
  font-family: var(--sans);
}

/* Evidence section: note + file uploads */

.form-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  color: var(--warm-gray);
  line-height: 1.55;
  margin: 0 0 28px;
  max-width: 580px;
}

.field.upload { margin-bottom: 24px; }
.field.upload .hint {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--warm-gray);
  line-height: 1.5;
  margin: 4px 0 12px;
  font-style: italic;
}
.field.upload input[type="file"] {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ivory-dim);
  padding: 4px 0 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed var(--sage-line);
  border-radius: 0;
  cursor: pointer;
  width: 100%;
}
.field.upload input[type="file"]:focus {
  outline: none;
  border-bottom-color: var(--brass);
}
.field.upload input[type="file"]::file-selector-button,
.field.upload input[type="file"]::-webkit-file-upload-button {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brass);
  background: transparent;
  border: 1px solid var(--brass);
  padding: 9px 18px;
  margin-right: 16px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.field.upload input[type="file"]::file-selector-button:hover,
.field.upload input[type="file"]::-webkit-file-upload-button:hover {
  background: var(--brass);
  color: var(--green-base);
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */

.site-footer {
  padding: 60px clamp(24px, 4vw, 56px) 48px;
  color: var(--warm-gray);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.8;
}
.footer-inner {
  max-width: var(--col-wide);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-block { max-width: 360px; }
.footer-block .mark {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ivory-dim);
  margin-bottom: 10px;
  display: block;
}
.footer-block .mark .amp { font-style: italic; color: var(--brass); }

.footer-links {
  display: flex;
  gap: 28px;
  align-self: flex-end;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  flex-wrap: wrap;
}
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: var(--brass); }

/* ----------------------------------------------------------
   Geo toast (shown after auto-redirect)
   ---------------------------------------------------------- */

.geo-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--green-panel);
  border: 1px solid var(--brass);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 100;
  max-width: calc(100vw - 48px);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.geo-toast.visible { transform: translateX(-50%) translateY(0); }
.geo-toast a {
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  border-bottom: 1px solid var(--brass-dim);
}
.geo-toast a:hover { border-bottom-color: var(--brass); }
.geo-toast .close {
  cursor: pointer;
  color: var(--warm-gray);
  font-size: 18px;
  line-height: 1;
  padding: 0 0 0 4px;
}
.geo-toast .close:hover { color: var(--ivory); }

/* ----------------------------------------------------------
   Motion
   ---------------------------------------------------------- */

.rise {
  opacity: 0;
  transform: translateY(10px);
  animation: rise 900ms cubic-bezier(.2,.7,.2,1) forwards;
}
.d-1 { animation-delay:  80ms; }
.d-2 { animation-delay: 200ms; }
.d-3 { animation-delay: 340ms; }
.d-4 { animation-delay: 480ms; }
.d-5 { animation-delay: 620ms; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; animation: none; }
  html { scroll-behavior: auto; }
  .geo-toast { transition: none; }
}

/* ----------------------------------------------------------
   Breadcrumbs (inner pages)
   ---------------------------------------------------------- */

.breadcrumbs {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-gray);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding-top: 28px;
  padding-bottom: 8px;
}
.breadcrumbs a { color: var(--warm-gray); transition: color .2s; }
.breadcrumbs a:hover { color: var(--brass); }
.breadcrumbs .sep { color: var(--brass-dim); }
.breadcrumbs .current { color: var(--ivory-dim); }

@media (max-width: 520px) {
  .breadcrumbs { font-size: 10px; gap: 8px; }
}

/* ----------------------------------------------------------
   Trust strip
   ---------------------------------------------------------- */

.trust {
  padding: clamp(56px, 7vw, 80px) clamp(24px, 4vw, 56px);
  border-bottom: 1px solid var(--sage-line);
  background: var(--green-base);
}
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 920px;
  margin-inline: auto;
  gap: clamp(24px, 3vw, 48px);
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.trust-item .label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--warm-gray);
}
.trust-item .value {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ivory-dim);
  line-height: 1.4;
}
.trust-item .value em { font-style: italic; color: var(--brass); }

@media (max-width: 720px) {
  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* ----------------------------------------------------------
   About / Team
   ---------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 6vw, 96px);
  max-width: 920px;
  margin: 0 auto;
  align-items: start;
}
.about-grid .portrait {
  aspect-ratio: 3/4;
  background: var(--green-panel);
  border: 1px solid var(--sage-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-gray);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 20px;
  text-align: center;
}
.about-grid .name {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--ivory);
  margin: 0 0 6px;
}
.about-grid .role {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 20px;
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
}

.credentials {
  max-width: 920px;
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 56px;
  padding: 48px 0 0;
  border-top: 1px solid var(--sage-line);
}
.cred-item h4 {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 10px;
}
.cred-item p {
  margin: 0;
  color: var(--ivory-dim);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .credentials { grid-template-columns: 1fr; gap: 28px; }
}

/* ----------------------------------------------------------
   Contact page
   ---------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  max-width: 920px;
  margin: 0 auto;
}
.contact-block h3 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 18px;
}
.contact-block p,
.contact-block address {
  margin: 0 0 18px;
  font-style: normal;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ivory-dim);
}
.contact-block a {
  color: var(--ivory);
  border-bottom: 1px solid var(--brass-dim);
  transition: border-color .2s;
}
.contact-block a:hover { border-bottom-color: var(--brass); }

.contact-hours {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--sage-line);
  max-width: 920px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
}
.contact-hours .label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
}
.contact-hours .time {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ivory-dim);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .contact-grid,
  .contact-hours { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------
   Insights: card index + article
   ---------------------------------------------------------- */

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 3vw, 48px) clamp(28px, 3vw, 56px);
  max-width: 1040px;
  margin: 0 auto;
}
.insight-card {
  border-top: 1px solid var(--sage-line);
  padding: 32px 0 0;
  transition: border-color .25s ease;
}
.insight-card:hover { border-top-color: var(--brass); }
.insight-card .meta {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 14px;
}
.insight-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0 0 12px;
}
.insight-card h3 a { color: var(--ivory); transition: color .2s; }
.insight-card h3 a:hover { color: var(--brass); }
.insight-card p {
  margin: 0 0 14px;
  color: var(--warm-gray);
  font-size: 14.5px;
  line-height: 1.6;
}
.insight-card .read {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

/* Article */
.article-meta {
  display: flex;
  gap: 16px;
  justify-content: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 28px;
}
.article-meta .dot { color: var(--brass-dim); }
.article-body { max-width: var(--col-legal); margin: 0 auto; }
.article-body .lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2vw, 22px);
  color: var(--ivory-dim);
  line-height: 1.5;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--sage-line);
}
.article-body blockquote {
  margin: 32px 0;
  padding: 10px 0 10px 28px;
  border-left: 2px solid var(--brass);
  font-style: italic;
  color: var(--ivory-dim);
  font-size: 18px;
  line-height: 1.55;
}

/* ----------------------------------------------------------
   Calculator
   ---------------------------------------------------------- */

.calc {
  max-width: var(--col-ledger);
  margin: 0 auto;
  background: var(--green-panel);
  border: 1px solid var(--sage-line);
  padding: clamp(32px, 4vw, 56px);
}
.calc .inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.calc .inputs .field { gap: 10px; }
.calc .result-caption {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass);
  text-align: center;
  margin-bottom: 12px;
}
.calc .note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--warm-gray);
  font-style: italic;
  text-align: center;
  line-height: 1.55;
}

@media (max-width: 600px) {
  .calc .inputs { grid-template-columns: 1fr; gap: 24px; }
}

/* ----------------------------------------------------------
   404
   ---------------------------------------------------------- */

.not-found {
  text-align: center;
  padding-top: clamp(120px, 18vw, 220px);
  padding-bottom: clamp(120px, 18vw, 200px);
}
.not-found .roman-xl {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(120px, 18vw, 200px);
  color: var(--brass);
  line-height: 1;
  margin: 0 0 24px;
  letter-spacing: 0.04em;
}
.not-found h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 18px;
}
.not-found h1 em { font-style: italic; color: var(--brass); }
.not-found p {
  max-width: 440px;
  margin: 0 auto 44px;
  color: var(--warm-gray);
  font-size: 17px;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   Homepage fee calculator (sliders + live ledger)
   ---------------------------------------------------------- */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.calc-section .section-head {
  text-align: center;
  margin-bottom: 64px;
}
.calc-section .section-head .eyebrow {
  display: inline-block;
  margin-bottom: 20px;
}
.calc-section .section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.005em;
  line-height: 1.15;
  margin: 0;
}
.calc-section .section-head h2 em {
  font-style: italic;
  color: var(--brass);
}
.calc-subline {
  max-width: 480px;
  margin: 20px auto 0;
  color: var(--warm-gray);
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
}

.calc-controls {
  max-width: 520px;
  margin: 0 auto 64px;
}

.slider-row + .slider-row { margin-top: 48px; }

.slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 22px;
}
.slider-head label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-gray);
}
.slider-value {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--brass);
  letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* The slider, bespoke across webkit + firefox */
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 18px;
  background: transparent;
  cursor: pointer;
  outline: none;
  margin: 0;
  padding: 0;
  --fill: 50%;
}

.calc-slider::-webkit-slider-runnable-track {
  height: 2px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(to right,
      var(--brass) 0, var(--brass) var(--fill),
      var(--sage-line) var(--fill), var(--sage-line) 100%);
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--brass);
  border: 0;
  border-radius: 50%;
  margin-top: -8px;
  cursor: grab;
  transition: box-shadow .2s ease;
}
.calc-slider::-webkit-slider-thumb:active { cursor: grabbing; }
.calc-slider:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 5px rgba(201, 169, 97, 0.25);
}

.calc-slider::-moz-range-track {
  height: 2px;
  background: var(--sage-line);
  border: 0;
  border-radius: 0;
}
.calc-slider::-moz-range-progress {
  height: 2px;
  background: var(--brass);
  border: 0;
}
.calc-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--brass);
  border: 0;
  border-radius: 50%;
  cursor: grab;
  transition: box-shadow .2s ease;
}
.calc-slider:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 5px rgba(201, 169, 97, 0.25);
}

/* Labels under the slider track. Amount slider shows only min/max (flex).
   Age slider shows four stops at precise percentages (absolute positioning). */
.slider-axis {
  margin-top: 14px;
  padding: 0 9px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-gray);
  font-variant-numeric: tabular-nums;
  display: flex;
  justify-content: space-between;
}
.slider-axis.four-stops {
  position: relative;
  height: 14px;
  display: block;
}
.slider-axis.four-stops span {
  position: absolute;
  top: 0;
  white-space: nowrap;
  transition: color .2s ease;
}
.slider-axis.four-stops span:nth-child(1) { left: 9px; transform: translateX(0); }
.slider-axis.four-stops span:nth-child(2) { left: 33.33%; transform: translateX(-50%); }
.slider-axis.four-stops span:nth-child(3) { left: 66.67%; transform: translateX(-50%); }
.slider-axis.four-stops span:nth-child(4) { right: 9px; }

.slider-row[data-age="0"] .slider-axis.four-stops span:nth-child(1),
.slider-row[data-age="1"] .slider-axis.four-stops span:nth-child(2),
.slider-row[data-age="2"] .slider-axis.four-stops span:nth-child(3),
.slider-row[data-age="3"] .slider-axis.four-stops span:nth-child(4) {
  color: var(--brass);
}

@media (max-width: 520px) {
  .slider-axis.four-stops span:nth-child(2) { left: 36%; }
  .slider-axis.four-stops span:nth-child(3) { left: 68%; }
}

/* The live ledger inherits .ledger-table styles. Only add the hidden-row rule. */
.calc-ledger tr[hidden] { display: none; }
.calc-ledger .cmf-row > * {
  color: var(--warm-gray) !important;
  font-style: italic;
}
.calc-ledger .cmf-row td:first-child {
  font-style: italic;
}

.calc-cta {
  text-align: center;
  margin-top: 48px;
}

@media (max-width: 520px) {
  .slider-head { gap: 12px; }
  .slider-value { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .calc-slider::-webkit-slider-thumb,
  .calc-slider::-moz-range-thumb { transition: none; }
}

/* ----------------------------------------------------------
   Skip-to-content link (accessibility)
   ---------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--brass);
  color: var(--green-base);
  padding: 14px 22px;
  z-index: 200;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--ivory);
  outline-offset: -4px;
}

/* ----------------------------------------------------------
   Glossary (definition list)
   ---------------------------------------------------------- */

.glossary {
  max-width: var(--col-legal);
  margin: 0 auto;
  padding: 0;
}
.glossary dt {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ivory);
  margin: 0 0 12px;
  padding-top: 36px;
  border-top: 1px solid var(--sage-line);
  letter-spacing: -0.005em;
}
.glossary dt:first-of-type { border-top: 0; padding-top: 0; }
.glossary dt em { font-style: italic; color: var(--brass); }
.glossary dd {
  margin: 0 0 36px;
  color: var(--ivory-dim);
  font-size: 16px;
  line-height: 1.65;
}
.glossary dd a {
  color: var(--brass);
  border-bottom: 1px solid var(--brass-dim);
  transition: border-color .2s;
}
.glossary dd a:hover { border-bottom-color: var(--brass); }
.glossary dd .cite {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--warm-gray);
}

/* ----------------------------------------------------------
   Related articles (article-level internal link block)
   ---------------------------------------------------------- */

.related {
  padding-top: clamp(72px, 9vw, 104px);
  padding-bottom: clamp(72px, 9vw, 104px);
}
.related .section-head {
  text-align: center;
  margin-bottom: 56px;
  max-width: var(--col-wide);
  margin-inline: auto;
}
.related .section-head .eyebrow {
  display: inline-block;
  margin-bottom: 20px;
}
.related .section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.005em;
  margin: 0;
  line-height: 1.15;
}
.related .section-head h2 em { font-style: italic; color: var(--brass); }
