/* Exonia Consulting — shared styles
   Palette: ink plum / lavender paper / brand indigo — sampled from the Exonia logo
   Type: Fraunces (display serif) + Inter (body) + IBM Plex Mono (citations, dates, tags)
*/

:root {
  /* Sampled directly from the Exonia logo files: #9A84BE (icon face),
     #5D5C95 (wordmark ink), #20132C (icon shadow facet) */
  --ink: #1D1329;
  --ink-soft: #5F5670;
  --paper: #F8F6FB;
  --paper-raised: #ECE7F3;
  --rule: #DAD2E6;
  --brand: #5D5C95;
  --brand-light: #9A84BE;
  --brand-deep: #3C3465;
  --contrast: #7A4361;
  --white: #FFFFFF;
  --max: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

a { color: inherit; }

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

.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
}

/* ---------- Header ---------- */

header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand img {
  display: block;
  height: 34px;
  width: auto;
}

nav.primary {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14.5px;
}

nav.primary a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

nav.primary a:hover,
nav.primary a:focus-visible { color: var(--brand); }

nav.primary a.cta {
  border: 1px solid var(--brand);
  padding: 8px 16px;
  border-radius: 2px;
  color: var(--ink);
}

nav.primary a.cta:hover { background: var(--paper-raised); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 3px;
}

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

.hero {
  background: var(--ink);
  color: var(--white);
  padding: 76px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -18%;
  right: -6%;
  width: 520px;
  height: 546px;
  background-image: url('logo-icon.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .hero::after {
    width: 320px;
    height: 336px;
    top: -10%;
    right: -14%;
    opacity: 0.05;
  }
}

.hero .eyebrow { margin-bottom: 22px; display: block; color: var(--brand-light); }

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
  margin: 0 0 28px;
  max-width: 16ch;
}

.hero p.lead {
  font-size: 19px;
  line-height: 1.65;
  color: rgba(251, 249, 243, 0.82);
  max-width: 56ch;
  margin: 0 0 36px;
}

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 24px;
  border: 1px solid var(--brand-light);
  color: var(--white);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover { background: var(--brand-light); color: var(--ink); }

/* ---------- Sections ---------- */

section { padding: 80px 0; }

h2.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 34px);
  margin: 0 0 14px;
}

p.section-lead {
  color: var(--ink-soft);
  max-width: 62ch;
  font-size: 16.5px;
  margin: 0 0 48px;
}

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

/* ---------- Proportionality statement ---------- */

.proportionality {
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.proportionality .wrap {
  max-width: 640px;
}

.pull-quote {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 18px;
  color: var(--ink);
}

.pull-sub {
  font-size: 15.5px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Divisions ---------- */

.divisions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.division {
  padding: 40px 40px 40px 0;
  border-bottom: 1px solid var(--rule);
}

.division:nth-child(odd) {
  border-right: 1px solid var(--rule);
  padding-right: 40px;
}

.division:nth-child(even) { padding-left: 40px; }

.division .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brand);
  margin-bottom: 10px;
}

.division h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  margin: 0 0 14px;
}

.division > p.division-lead {
  color: var(--ink-soft);
  margin: 0 0 22px;
  font-size: 15.5px;
}

.strand {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}

.strand:first-of-type { border-top: none; }

.strand h4 {
  font-size: 15.5px;
  font-weight: 600;
  margin: 0 0 6px;
}

.strand p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 760px) {
  .divisions { grid-template-columns: 1fr; }
  .division:nth-child(odd) { border-right: none; padding-right: 0; }
  .division:nth-child(even) { padding-left: 0; }
}

/* ---------- Track record ---------- */

.track-record { background: var(--paper-raised); }

.tbc {
  background: rgba(122, 67, 97, 0.12);
  color: var(--contrast);
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: 13px;
  border-radius: 2px;
}

/* ---------- Insights ---------- */

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.insight-card {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.insight-card .cat {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.insight-card h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 10px;
  line-height: 1.3;
}

.insight-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
}

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

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

footer.site {
  background: var(--ink);
  color: rgba(251, 249, 243, 0.85);
  padding: 56px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

.footer-grid h5 {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-light);
  margin: 0 0 14px;
}

.footer-grid p, .footer-grid a {
  font-size: 14.5px;
  color: rgba(251, 249, 243, 0.72);
  text-decoration: none;
  display: block;
  margin: 0 0 8px;
}

.footer-grid a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(251, 249, 243, 0.15);
  padding-top: 24px;
  font-size: 13px;
  color: rgba(251, 249, 243, 0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

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

/* ---------- Team page ---------- */

.team-intro {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.team-intro::after {
  content: "";
  position: absolute;
  top: -22%;
  right: -4%;
  width: 380px;
  height: 399px;
  background-image: url('logo-icon.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.team-intro .wrap {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .team-intro::after {
    width: 240px;
    height: 252px;
    opacity: 0.04;
  }
}

.team-intro p.lead {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.45;
  max-width: 34ch;
  margin: 0;
}

.bio {
  padding: 64px 0;
  border-bottom: 1px solid var(--rule);
}

.bio#carol {
  background: var(--paper-raised);
}

.bio-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
}

.bio-portrait {
  aspect-ratio: 4 / 5;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  overflow: hidden;
}

.bio-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bio-portrait.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
  padding: 12px;
}

.credential {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.7;
}

.credential strong {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin-bottom: 8px;
}

.credential .based,
.credential .authorisations {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.social-links a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: border-color 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

.social-links svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.bio-name {
  font-size: clamp(28px, 3.6vw, 36px);
  font-weight: 500;
  margin: 0 0 6px;
}

.bio-role {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 24px;
}

.bio-main p.lead {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.bio-main p {
  font-size: 15.5px;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 66ch;
}

.bio-main p a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid var(--brand-light);
}

.bio-main p a:hover { border-bottom-color: var(--brand); }

.matters-group {
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin: 36px 0 4px;
}

.matters-intro {
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 8px;
}

.matter-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.matter-list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}

.matter-year {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brand);
  padding-top: 2px;
}

.matter-body strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

.matter-body span {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.matter-body em { color: var(--ink); font-style: italic; }

.matter-list.dense {
  margin-top: 4px;
}

.matter-list.dense li {
  display: block;
  padding: 12px 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.matter-list.dense .matter-year-inline {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--brand);
  margin-right: 10px;
}

.matter-list.dense strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink);
}

.matter-list.dense em { color: var(--ink); font-style: italic; }

@media (max-width: 760px) {
  .bio-inner { grid-template-columns: 1fr; }
  .bio-portrait { max-width: 220px; }
  .matter-list li { grid-template-columns: 1fr; gap: 4px; }
}
