/* ============================================================
   Chris Johnson — Canon Consultancy
   Design language: Gibraltar maritime-insurance register.
   Ink navy + parchment + brass, with a ledger/log-book motif
   for the board & governance history (the one place a numbered
   sequence is actually true: it's a chronological register).
   ============================================================ */

:root {
  --ink-navy: #1a2419;
  --deep-blue: #2b3a29;
  --steel: #465345;
  --parchment: #eee7d6;
  --parchment-light: #f6f2e7;
  --brass: #7eb300;
  --brass-light: #9dcb33;
  --ensign: #39754f;
  --ink-text: #1b1b18;
  --paper-text: #f2eee3;
  --hairline: rgba(126, 179, 0, 0.28);
  --hairline-dark: rgba(242, 238, 227, 0.16);

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --max-w: 1120px;
}

* { box-sizing: border-box; }

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment-light);
  color: var(--ink-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Eyebrow / coordinates label ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-light);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brass-light);
  display: inline-block;
}
.eyebrow.on-light { color: var(--brass); }
.eyebrow.on-light::before { background: var(--brass); }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--ink-navy);
  border-bottom: 1px solid var(--hairline-dark);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand img.brand-mark {
  height: 34px;
  width: auto;
  display: block;
}
.brand img.brand-mark.full-lockup {
  height: 30px;
}
.brand .brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--paper-text);
  line-height: 1.15;
}
.brand .brand-name span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-top: 3px;
  font-weight: 500;
}
nav.primary-nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
nav.primary-nav a {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--paper-text);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  opacity: 0.85;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
nav.primary-nav a:hover,
nav.primary-nav a:focus-visible {
  opacity: 1;
  border-color: var(--brass-light);
}
nav.primary-nav a.current {
  opacity: 1;
  border-color: var(--brass-light);
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- Hero (home only) ---------- */
.hero {
  background: var(--ink-navy);
  color: var(--paper-text);
  position: relative;
  overflow: hidden;
  padding: 96px 0 120px;
}
.hero::before {
  /* concentric arcs, echoing the Canon Consultancy mark, faint and ink-on-ink */
  content: "";
  position: absolute;
  top: 50%;
  right: -160px;
  width: 620px;
  height: 620px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23f2eee3' stroke-width='3' opacity='0.09' stroke-linecap='round'%3E%3Cpath d='M162 40 A86 86 0 1 0 162 160'/%3E%3Cpath d='M138 62 A58 58 0 1 0 138 138'/%3E%3Cpath d='M114 84 A30 30 0 1 0 114 116'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.06;
  margin: 0 0 18px;
  max-width: 15ch;
}
.hero .role-line {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--brass-light);
  margin: 0 0 28px;
  letter-spacing: 0.01em;
}
.hero p.lede {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.7;
  max-width: 54ch;
  color: rgba(242, 238, 227, 0.88);
  margin: 0 0 36px;
}
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 13px 24px;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-brass {
  background: var(--brass);
  color: var(--ink-navy);
}
.btn-brass:hover { background: var(--brass-light); }
.btn-outline {
  border-color: rgba(242, 238, 227, 0.4);
  color: var(--paper-text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--brass-light); color: var(--brass-light); }
.btn-outline.on-light {
  border-color: rgba(27, 27, 24, 0.28);
  color: var(--ink-text);
}
.btn-outline.on-light:hover { border-color: var(--ensign); color: var(--ensign); }

/* ---------- Section scaffolding ---------- */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 14px;
  color: var(--ink-navy);
}
.section-head p {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--steel);
  margin: 0;
  line-height: 1.6;
}

.divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* ---------- Practice / capability cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.card {
  background: var(--parchment-light);
  padding: 32px 28px;
}
.card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brass);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 18px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--ink-navy);
}
.card p {
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--steel);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Register / ledger table ---------- */
.register-preview-wrap,
.register-wrap {
  background: var(--ink-navy);
  color: var(--paper-text);
}
.register {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 14.5px;
}
.register thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-light);
  font-weight: 500;
  padding: 0 18px 14px;
  border-bottom: 1px solid var(--hairline-dark);
}
.register tbody td {
  padding: 20px 18px;
  border-bottom: 1px solid var(--hairline-dark);
  vertical-align: top;
}
.register tbody tr:last-child td { border-bottom: none; }
.register .ref {
  font-family: var(--font-mono);
  color: var(--brass-light);
  white-space: nowrap;
  font-size: 13px;
}
.register .entity {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--paper-text);
}
.register .role {
  color: rgba(242, 238, 227, 0.82);
}
.register .period {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brass-light);
  white-space: nowrap;
}
.register .notes {
  color: rgba(242, 238, 227, 0.68);
  font-size: 13.5px;
  max-width: 32ch;
}

@media (max-width: 760px) {
  .register thead { display: none; }
  .register, .register tbody, .register tr, .register td { display: block; width: 100%; }
  .register tbody tr {
    padding: 20px 18px;
    border-bottom: 1px solid var(--hairline-dark);
  }
  .register tbody td { border-bottom: none; padding: 3px 0; }
  .register .entity { margin-top: 4px; }
  .register .notes { max-width: none; }
}

/* ---------- Prose blocks (Expert Witness / About text) ---------- */
.prose {
  max-width: 68ch;
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--ink-text);
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink-navy);
  margin: 40px 0 12px;
}
.prose p { margin: 0 0 20px; }
.prose .case-ref {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--brass);
}

.pull-note {
  border-left: 2px solid var(--brass);
  padding: 4px 0 4px 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--deep-blue);
  margin: 32px 0;
}

/* ---------- Two-col layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

.aside-box {
  background: var(--parchment);
  border: 1px solid var(--hairline);
  padding: 28px 26px;
}
.aside-box .eyebrow { margin-bottom: 14px; }
.aside-box ul { margin: 0; padding: 0; list-style: none; }
.aside-box li {
  font-family: var(--font-sans);
  font-size: 14.5px;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
}
.aside-box li:first-child { border-top: none; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-detail .row {
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
}
.contact-detail .row:first-child { border-top: none; padding-top: 0; }
.contact-detail .label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-bottom: 6px;
}
.contact-detail .value {
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--ink-navy);
  text-decoration: none;
}
.contact-detail .value:hover { color: var(--ensign); }

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: 15.5px;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  background: var(--parchment-light);
  color: var(--ink-text);
  border-radius: 2px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass);
}
.form-note {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--steel);
  margin-top: -4px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink-navy);
  color: rgba(242, 238, 227, 0.7);
  padding: 48px 0;
  border-top: 1px solid var(--hairline-dark);
}
footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer.site-footer .foot-brand {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--paper-text);
  display: flex;
  align-items: center;
  gap: 12px;
}
footer.site-footer .foot-brand img {
  height: 26px;
  width: auto;
  display: block;
}
footer.site-footer .foot-links {
  display: flex;
  gap: 24px;
  font-family: var(--font-sans);
  font-size: 13.5px;
}
footer.site-footer a { text-decoration: none; }
footer.site-footer a:hover { color: var(--brass-light); }
footer.site-footer .fine {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(242, 238, 227, 0.4);
  width: 100%;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline-dark);
}

/* ---------- Page hero (interior pages, shorter than home) ---------- */
.page-hero {
  background: var(--ink-navy);
  color: var(--paper-text);
  padding: 64px 0 56px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 46px);
  margin: 16px 0 14px;
}
.page-hero p {
  font-family: var(--font-sans);
  font-size: 16.5px;
  color: rgba(242, 238, 227, 0.82);
  max-width: 60ch;
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 56px 0; }
  .wrap { padding: 0 20px; }
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  nav.primary-nav {
    gap: 8px 22px;
  }
}
@media (max-width: 460px) {
  .card-grid { grid-template-columns: 1fr; }
}
