/* ==========================================================================
   Jessica Nyassa — Historian · Researcher · Consultant
   Oxblood / stone / charcoal. Bodoni Moda display, Source Serif 4 text.
     1. Tokens
     2. Reset & base
     3. Typography
     4. Layout primitives
     5. Masthead & navigation
     6. Components
     7. Page sections
     8. Forms
     9. Footer
    10. Utilities, motion & print
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */

:root {
  /* Palette */
  --ink:          #16130F;
  --ink-2:        #221D17;
  --ink-3:        #2E2821;
  --oxblood:      #5E1F27;
  --oxblood-deep: #431319;
  --oxblood-lift: #7A2B33;
  --bone:         #F4F0E8;
  --parchment:    #EAE4D8;
  --stone:        #CFC6B6;
  --stone-deep:   #9A9081;
  --brass:        #A98A52;

  /* Semantic */
  --bg:         var(--bone);
  --bg-alt:     var(--parchment);
  --text:       #241F19;
  --text-muted: #5C5348;
  --accent:     var(--oxblood);
  --rule:       #CCC3B3;
  --rule-hair:  #DED7C9;
  --hair-brass: rgba(169, 138, 82, 0.45);

  /* Type */
  --display: "Bodoni Moda", "Didot", "Bodoni MT", Georgia, serif;
  --display-opsz: "opsz" 14;
  --serif:   "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --step--2: 0.75rem;                                      /* 12px  labels           */
  --step--1: 0.875rem;                                     /* 14px  meta, captions   */
  --step-0:  1.0625rem;                                    /* 17px  body             */
  --step-1:  clamp(1.1875rem, 1.08rem + 0.4vw, 1.4375rem); /* 19–23 lead             */
  --step-2:  clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);     /* 22–28 h3               */
  --step-3:  clamp(1.875rem, 1.3rem + 2vw, 3rem);          /* 30–48 h2               */
  --step-4:  clamp(2.5rem, 1.5rem + 4vw, 4.5rem);          /* 40–72 h1               */
  --step-5:  clamp(3rem, 1rem + 8.5vw, 7.5rem);            /* 48–120 hero wordmark   */

  /* Measure & space */
  --measure: 33rem;
  --measure-wide: 44rem;
  --s-1: 0.5rem;  --s-2: 0.75rem; --s-3: 1rem;   --s-4: 1.5rem;
  --s-5: 2rem;    --s-6: 3rem;    --s-7: 4.5rem; --s-8: 6.5rem;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3.5rem);
  --shell: 78rem;
}

/* 2. Reset & base ---------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

::selection { background: var(--oxblood); color: var(--bone); }

:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: var(--gutter); top: 0; z-index: 100;
  background: var(--oxblood); color: var(--bone);
  font-family: var(--sans); font-size: var(--step--1);
  padding: 0.6rem 1rem; text-decoration: none;
  transform: translateY(-120%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

/* 3. Typography ------------------------------------------------------------ */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  font-optical-sizing: none;
  font-variation-settings: var(--display-opsz);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.2; }
h4 {
  font-family: var(--sans); font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4;
}

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text);
}

a {
  color: var(--oxblood);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(94, 31, 39, 0.35);
  transition: text-decoration-color 140ms ease, color 140ms ease;
}
a:hover { text-decoration-color: var(--oxblood); }

strong { font-weight: 600; }

em, .italic { font-style: italic; }

blockquote {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-optical-sizing: none;
  font-variation-settings: var(--display-opsz);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.375rem);
  font-style: italic;
  line-height: 1.24;
  letter-spacing: -0.01em;
}

.prose > * + * { margin-top: var(--s-4); }
.prose h3 { margin-top: var(--s-6); }
.prose ul, .prose ol { padding-left: 1.15em; margin: 0 0 var(--s-4); }
.prose li { margin-bottom: var(--s-2); }
.prose li::marker { color: var(--stone-deep); }

/* 4. Layout primitives ----------------------------------------------------- */

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - (var(--gutter) * 2), 58rem); }

.measure      { max-width: var(--measure); }
.measure-wide { max-width: var(--measure-wide); }

.section        { padding-block: var(--s-8); }
.section--tight { padding-block: var(--s-7); }
.section--alt   { background: var(--bg-alt); }
.section--rule  { border-top: 1px solid var(--rule-hair); }

.section--dark {
  background: var(--ink);
  color: var(--parchment);
}
.section--dark h2, .section--dark h3, .section--dark blockquote { color: var(--bone); }
.section--dark .lead, .section--dark p { color: rgba(234, 228, 216, 0.82); }
.section--dark a:not(.btn) { color: var(--bone); text-decoration-color: rgba(244,240,232,0.45); }

.split { display: grid; gap: var(--s-6); grid-template-columns: 1fr; }
@media (min-width: 60em) {
  .split { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
  .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--service { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); }
  .split--media { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
  .split--media-flip .split__media { order: 2; }
  .split__aside--sticky { position: sticky; top: 6.5rem; }
}

.grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr; }
@media (min-width: 42em) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62em) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.stack > * + *    { margin-top: var(--s-4); }
.stack-sm > * + * { margin-top: var(--s-2); }
.stack-lg > * + * { margin-top: var(--s-6); }

/* 5. Masthead & navigation ------------------------------------------------- */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(169, 138, 82, 0.22);
}

.masthead__inner {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding-block: 1.05rem;
}
@media (min-width: 55em) {
  .masthead__inner { grid-template-columns: 1fr auto 1fr; }
  .masthead__inner .nav { grid-column: 2; }
}

.wordmark { text-decoration: none; color: var(--bone); display: block; }
.wordmark__name {
  display: block;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  font-optical-sizing: none;
  font-variation-settings: var(--display-opsz);
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.wordmark__role {
  display: none;
  font-family: var(--sans);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 0.3rem;
}
@media (min-width: 40em) { .wordmark__role { display: block; } }

.nav { font-family: var(--sans); }
.nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: clamp(1.25rem, 2.5vw, 2.5rem);
}
.nav__link {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, 0.78);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}
.nav__link:hover { color: var(--bone); border-bottom-color: var(--brass); }
.nav__link[aria-current="page"] { color: var(--bone); border-bottom-color: var(--oxblood-lift); }

.nav__toggle {
  display: none;
  font-family: var(--sans); font-size: 0.7rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: transparent; color: var(--bone);
  border: 1px solid rgba(244, 240, 232, 0.35);
  padding: 0.5rem 0.85rem; cursor: pointer;
}
.nav__toggle:hover { border-color: var(--brass); color: var(--brass); }

@media (max-width: 54.99em) {
  .nav__toggle { display: inline-block; }
  .nav {
    grid-column: 1 / -1;
    max-height: 0; overflow: hidden;
    transition: max-height 240ms ease;
  }
  .nav[data-open="true"] { max-height: 20rem; }
  .nav__list {
    flex-direction: column; gap: 0;
    padding-top: var(--s-3);
  }
  .nav__link {
    display: block;
    padding-block: 0.8rem;
    border-bottom: 1px solid rgba(244, 240, 232, 0.12);
  }
}

/* 6. Components ------------------------------------------------------------ */

.label {
  font-family: var(--sans);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin: 0 0 var(--s-4);
}
.label--brass { color: var(--brass); }
.label--quiet { color: var(--text-muted); }

.label-rule {
  display: flex; align-items: center; gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.label-rule::after {
  content: ""; flex: 1 1 auto; height: 1px;
  background: var(--hair-brass);
}
.label-rule .label { margin: 0; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn--primary { background: var(--oxblood); border-color: var(--oxblood); color: var(--bone); }
.btn--primary:hover { background: var(--oxblood-deep); border-color: var(--oxblood-deep); }
.btn--ghost { background: transparent; border-color: rgba(36, 31, 25, 0.35); color: var(--text); }
.btn--ghost:hover { background: var(--text); border-color: var(--text); color: var(--bone); }
.btn--light { background: transparent; border-color: rgba(244, 240, 232, 0.4); color: var(--bone); }
.btn--light:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.arrow-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--oxblood);
  border-bottom: 1px solid var(--hair-brass);
  padding-bottom: 0.2rem;
}
.arrow-link::after { content: " \2192"; }
.arrow-link:hover { border-bottom-color: var(--oxblood); }
.section--dark .arrow-link { color: var(--bone); }

.rule { border: 0; border-top: 1px solid var(--rule-hair); margin: 0; }
.rule--brass { border-top-color: var(--hair-brass); }

/* Figures */
figure { margin: 0; }
figcaption {
  font-family: var(--sans);
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: var(--s-3);
  padding-left: var(--s-3);
  border-left: 1px solid var(--hair-brass);
}
.section--dark figcaption { color: rgba(234, 228, 216, 0.62); }

.frame { position: relative; overflow: hidden; background: var(--ink-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--portrait  { aspect-ratio: 4 / 5; }
.frame--landscape { aspect-ratio: 4 / 3; }
.frame--wide      { aspect-ratio: 16 / 9; }
.frame--band      { aspect-ratio: 21 / 9; }
.frame--tall      { aspect-ratio: 3 / 4; }
/* Once the two-column splits stack, a 4:5 portrait would otherwise run the
   full width of the page and tower over everything below it. */
@media (max-width: 59.99em) {
  .frame--portrait { max-width: 26rem; }
}

.frame--mat::after {
  content: "";
  position: absolute; inset: 0.6rem;
  border: 1px solid rgba(244, 240, 232, 0.28);
  pointer-events: none;
}

/* Index list (services, process) */
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.index-list > li { border-bottom: 1px solid var(--rule-hair); }
.index-list > li:last-child { border-bottom: 1px solid var(--rule); }

.index-item {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: var(--s-3) var(--s-4);
  align-items: baseline;
  padding-block: var(--s-4);
  text-decoration: none;
  color: inherit;
}
@media (min-width: 52em) {
  .index-item { grid-template-columns: 2.25rem minmax(0, 19rem) minmax(0, 1fr); padding-block: var(--s-5); }
}
.index-item__no {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.2;
  color: var(--brass);
}
.index-item__title {
  font-family: var(--display);
  font-weight: 600;
  font-optical-sizing: none;
  font-variation-settings: var(--display-opsz);
  font-size: var(--step-2);
  line-height: 1.16;
  letter-spacing: -0.012em;
  margin: 0;
}
.index-item__desc {
  font-size: var(--step--1);
  font-family: var(--sans);
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  grid-column: 2 / -1;
}
@media (min-width: 52em) { .index-item__desc { grid-column: 3; } }
a.index-item:hover .index-item__title { color: var(--oxblood); }
a.index-item:hover .index-item__no { color: var(--oxblood); }

.service__title {
  font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.125rem);
  margin-bottom: var(--s-3);
}

/* Definition-style meta lists */
.meta-list { margin: 0; }
.meta-list div {
  display: grid; gap: 0.15rem;
  padding-block: var(--s-3);
  border-top: 1px solid var(--rule-hair);
}
@media (min-width: 40em) { .meta-list div { grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: var(--s-4); } }
.meta-list dt {
  font-family: var(--sans); font-size: var(--step--2);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
}
.meta-list dd { margin: 0; }

/* Education blocks */
.degree { border-top: 1px solid var(--rule); padding-top: var(--s-4); }
.degree + .degree { margin-top: var(--s-6); }
.degree__inst {
  font-family: var(--sans); font-size: var(--step--1);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 var(--s-2);
}
.degree h3 { font-size: var(--step-1); margin-bottom: var(--s-3); }
.pill-list {
  list-style: none; margin: 0 0 var(--s-4); padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.pill-list li {
  font-family: var(--sans); font-size: var(--step--1);
  color: var(--text-muted);
  border: 1px solid var(--rule);
  padding: 0.3rem 0.7rem;
  line-height: 1.4;
}

.degree__modules { list-style: none; margin: 0 0 var(--s-4); padding: 0; }
.degree__modules li {
  position: relative;
  padding-left: 1.2rem;
  font-family: var(--sans); font-size: var(--step--1);
  color: var(--text-muted);
  line-height: 1.5;
}
.degree__modules li + li { margin-top: 0.3rem; }
.degree__modules li::before {
  content: "\2014";
  position: absolute; left: 0;
  color: var(--brass);
}
.degree__diss {
  font-size: var(--step--1); font-family: var(--sans);
  color: var(--text-muted); margin: 0;
}
.degree__diss cite { font-family: var(--serif); font-size: var(--step-0); font-style: italic; color: var(--text); }

/* Anything set in the display face keeps the pinned optical size. */
.display-face {
  font-family: var(--display);
  font-optical-sizing: none;
  font-variation-settings: var(--display-opsz);
}

/* 7. Page sections --------------------------------------------------------- */

/* Hero */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 62em) {
  .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: stretch; }
}

.hero__text {
  padding-block: clamp(3rem, 2rem + 6vw, 7rem);
  padding-right: var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - var(--shell)) / 2));
  align-self: center;
}
.hero__eyebrow {
  font-family: var(--sans);
  font-size: var(--step--2);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 var(--s-5);
}
.hero__name {
  font-family: var(--display);
  font-size: var(--step-5);
  font-weight: 600;
  font-optical-sizing: none;
  font-variation-settings: var(--display-opsz);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--bone);
}
.hero__name span { display: block; }
.hero__rule {
  width: 5rem; height: 1px;
  background: var(--brass);
  border: 0; margin: var(--s-5) 0;
}
.hero__lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: rgba(244, 240, 232, 0.8);
  max-width: 30rem;
  margin: 0 0 var(--s-6);
}
.hero__media { position: relative; min-height: clamp(17rem, 52vh, 26rem); background: var(--ink-2); }
@media (min-width: 62em) { .hero__media { min-height: min(84vh, 46rem); } }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--ink) 0%, rgba(22,19,15,0.55) 22%, rgba(22,19,15,0) 55%);
}
@media (max-width: 61.99em) {
  .hero__media::after { background: linear-gradient(180deg, var(--ink) 0%, rgba(22,19,15,0.3) 30%, rgba(22,19,15,0) 70%); }
}

/* Page head (inner pages) */
.page-head {
  background: var(--ink);
  color: var(--bone);
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}
.page-head h1 { max-width: 18ch; color: var(--bone); margin-bottom: 0; }
.page-head .lead {
  max-width: var(--measure-wide);
  margin-top: var(--s-5);
  color: rgba(244, 240, 232, 0.8);
}
.page-head .label { color: var(--brass); }

/* Statement */
.statement p:not(.label) {
  font-family: var(--display);
  font-weight: 500;
  font-optical-sizing: none;
  font-variation-settings: var(--display-opsz);
  font-size: clamp(1.375rem, 1rem + 1.6vw, 2.125rem);
  line-height: 1.3;
  letter-spacing: -0.012em;
  max-width: 38rem;
}

/* Full-bleed quote band */
.band {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
}
.band__media { position: absolute; inset: 0; }
.band__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.band__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(22,19,15,0.88) 0%, rgba(22,19,15,0.58) 42%, rgba(22,19,15,0.74) 100%),
    linear-gradient(90deg, rgba(94,31,39,0) 45%, rgba(94,31,39,0.3) 100%);
}
.band__inner {
  position: relative;
  padding-block: clamp(4rem, 3rem + 8vw, 9rem);
}
.band blockquote { max-width: 30rem; color: var(--bone); margin-left: auto; }
.band cite {
  display: block;
  font-family: var(--sans); font-style: normal;
  font-size: var(--step--2); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass);
  margin-top: var(--s-4);
  max-width: 30rem; margin-left: auto;
}

/* Focus / specialism strip */
.focus-grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 48em) { .focus-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); } }
.focus h3 {
  font-size: var(--step-2);
  padding-top: var(--s-3);
  border-top: 1px solid var(--hair-brass);
  margin-bottom: var(--s-3);
}
.focus p { font-size: var(--step--1); font-family: var(--sans); color: var(--text-muted); line-height: 1.65; }
.section--dark .focus p { color: rgba(234, 228, 216, 0.72); }
.section--dark .pill-list li { color: rgba(234, 228, 216, 0.75); border-color: rgba(244, 240, 232, 0.24); }

/* Closing call to action */
.cta { background: var(--oxblood); color: var(--bone); }
.cta h2 { color: var(--bone); max-width: 16ch; }
.cta p { color: rgba(244, 240, 232, 0.85); max-width: 32rem; }
.cta .label { color: rgba(244, 240, 232, 0.72); }

/* 8. Forms ----------------------------------------------------------------- */

.form { max-width: 40rem; }
.form__row { margin-bottom: var(--s-5); }
@media (min-width: 40em) { .form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); } }

label, legend {
  display: block;
  font-family: var(--sans);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s-2);
}

label .hint {
  display: inline;
  font-weight: 400;
  font-style: italic;
  color: var(--stone-deep);
  margin-left: 0.35rem;
}

.hint {
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 0.35rem;
}

input, select, textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: var(--step-0);
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.7rem 0.1rem;
  transition: border-color 140ms ease;
}
textarea {
  min-height: 9rem; resize: vertical; line-height: 1.6;
  border: 1px solid var(--rule);
  padding: 0.8rem 0.9rem;
}
textarea:hover { border-color: var(--stone-deep); }
textarea:focus { border-color: var(--oxblood); box-shadow: inset 0 0 0 1px var(--oxblood); }
input:hover, select:hover, textarea:hover { border-bottom-color: var(--stone-deep); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-bottom-color: var(--oxblood);
  box-shadow: 0 1px 0 0 var(--oxblood);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235C5348' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  padding-right: 2rem;
}

fieldset { border: 0; margin: 0 0 var(--s-5); padding: 0; }

.form__note {
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--text-muted);
  margin-top: var(--s-4);
}

/* 9. Footer ---------------------------------------------------------------- */

.footer {
  background: var(--ink);
  color: var(--parchment);
  padding-block: var(--s-7) var(--s-5);
  border-top: 1px solid rgba(169, 138, 82, 0.25);
}
.footer a { color: var(--bone); text-decoration-color: rgba(244, 240, 232, 0.35); }
.footer a:hover { text-decoration-color: var(--bone); }

.footer__grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr; }
@media (min-width: 48em) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-7); }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 64em) {
  .footer__grid {
    grid-template-columns: minmax(0, 1.9fr) repeat(3, minmax(0, 1fr));
    gap: var(--s-7);
  }
  .footer__grid > :first-child { grid-column: auto; }
}

.footer__name {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 600;
  font-optical-sizing: none;
  font-variation-settings: var(--display-opsz);
  line-height: 1.1;
  margin: 0 0 var(--s-2);
  color: var(--bone);
}
.footer__role {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 var(--s-4);
}
.footer p, .footer li {
  font-family: var(--sans);
  font-size: var(--step--1);
  color: rgba(234, 228, 216, 0.72);
  line-height: 1.7;
}
.footer h2 {
  font-family: var(--sans);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  margin: 0 0 var(--s-3);
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: var(--s-2); }

.social-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.social-list a > span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--hair-brass);
  transition: text-decoration-color 140ms ease;
}
.social-list a:hover > span { text-decoration-color: var(--bone); }

.social-list img {
  height: 1.15rem;
  width: auto;
  opacity: 0.9;
  flex: none;
  transition: opacity 140ms ease;
}
.social-list a:hover img { opacity: 1; }

.footer__handle {
  font-family: var(--sans);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  color: var(--brass);
  margin-top: var(--s-3);
}

.footer__base {
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(244, 240, 232, 0.14);
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5);
  justify-content: space-between;
}
.footer__base p { font-size: var(--step--2); color: rgba(234, 228, 216, 0.5); margin: 0; }

/* 10. Utilities, motion & print -------------------------------------------- */

.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;
}

.text-muted { color: var(--text-muted); }
.sans  { font-family: var(--sans); }
.small { font-size: var(--step--1); }
.mt-0  { margin-top: 0; }
.mt-5  { margin-top: var(--s-5); }
.mt-6  { margin-top: var(--s-6); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .masthead, .footer, .band, .cta, .nav__toggle, .skip-link { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { text-decoration: none; color: #000; }
}

/* Draft placeholders — add class="drafting" to <body> to highlight ------------ */
.drafting .ph {
  background: rgba(169, 138, 82, 0.22);
  box-shadow: 0 0 0 2px rgba(169, 138, 82, 0.22);
}
