@font-face {
  font-family: "STIX Two Text";
  src: url("./fonts/stix-two-text-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "STIX Two Text";
  src: url("./fonts/stix-two-text-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("./fonts/instrument-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf8f3;
  --ink: #002147;
  --muted: #606b75;
  --rule: #d7d9d5;
  --signal: #ac503d;
  --serif: "STIX Two Text", Georgia, serif;
  --sans: "Instrument Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { color: var(--paper); background: var(--ink); }
a { color: inherit; text-underline-offset: .22em; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 6px;
}
button { font: inherit; }
[hidden] { display: none !important; }
#main:focus, #contact:focus { outline: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 10;
  left: 1rem;
  top: 1rem;
  padding: .7rem 1rem;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
.page { width: min(1180px, calc(100% - 112px)); margin-inline: auto; }
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 100px;
  border-bottom: 1px solid var(--rule);
}
.site-index {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
}
.index-mark { width: 5px; height: 5px; background: var(--signal); }
.quiet-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  font-size: 13px;
  text-decoration: none;
}
.quiet-link:hover { text-decoration: underline; }
.introduction {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(64px, 6.5vw, 104px) 76px;
}
.eyebrow {
  margin: 0 0 25px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .075em;
}
h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(64px, 7.8vw, 112px);
  font-weight: 400;
  line-height: .97;
  letter-spacing: -.023em;
}
h1 span { display: block; }
h1 span + span { margin-top: 5px; }
.proposition {
  margin: 28px 0 22px;
  max-width: 43ch;
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
  color: #4e5d6b;
}
.tagline {
  display: block;
  margin-top: 11px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(24px, 2vw, 28px);
  line-height: 1.35;
}
.enquiry-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 33px;
  min-height: 44px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  text-decoration: none;
}
.link-arrow { flex: 0 0 auto; transition: transform 180ms ease; }
.enquiry-link:hover .link-arrow, .email:hover .link-arrow { transform: translate(2px, -2px); }
.quiet-link:hover .link-arrow { transform: translateY(2px); }
.seal-figure { width: 100%; max-width: 376px; justify-self: end; margin: 0; }
.seal { display: block; width: 100%; height: auto; }
.practice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: 30px 32px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.practice-item { display: flex; align-items: baseline; gap: 23px; padding-right: 22px; }
.practice-item + .practice-item { border-left: 1px solid var(--rule); padding-left: 32px; }
.item-index { color: var(--muted); font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.practice h3 { margin: 0 0 5px; font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.25; }
.practice p { margin: 0; color: var(--muted); font-size: 13px; }
.closer-look { border-bottom: 1px solid var(--rule); }
.closer-look summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  list-style: none;
  cursor: pointer;
  font-size: 13px;
}
.closer-look summary::-webkit-details-marker { display: none; }
.closer-look summary:hover { color: var(--signal); }
.disclosure-mark { position: relative; width: 12px; height: 12px; margin-right: 3px; }
.disclosure-mark::before, .disclosure-mark::after {
  position: absolute;
  top: 5px;
  left: 0;
  width: 12px;
  height: 1px;
  background: currentColor;
  content: "";
}
.disclosure-mark::after { transform: rotate(90deg); transition: transform 180ms ease; }
.closer-look[open] .disclosure-mark::after { transform: rotate(0); }
.closer-look-content {
  padding-bottom: 32px;
}
.closer-look-content p { margin: 0; max-width: 56ch; color: #495767; font-size: 15px; line-height: 1.75; }
.contact {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: start;
  gap: 2rem;
  padding-block: 44px 34px;
}
.contact h2 { margin: 4px 0 0; font-family: var(--serif); font-size: clamp(26px, 2.5vw, 32px); font-weight: 400; line-height: 1.3; letter-spacing: -.015em; }
.contact-details { min-width: 0; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.email { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font-size: 18px; text-decoration-thickness: 1px; }
.email-addresses { display: grid; gap: 3px; }
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: start;
  gap: 8px;
  min-width: 164px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}
.copy-button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.copy-button[aria-busy="true"] { cursor: progress; opacity: .65; }
.copy-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1; }
.copy-status { min-height: 1.5em; margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.colophon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 106px;
  padding-block: 18px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .015em;
}
.colophon-note { display: inline-flex; align-items: center; gap: 15px; }
.end-mark { color: var(--ink); font-size: 13px; }

/* The small graphs use the same visual grammar as Charlie's personal site. */
.network-strip {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4.5vw, 60px);
  min-width: 0;
  min-height: 66px;
  pointer-events: none;
}
.network-slot { position: relative; width: 66px; height: 66px; flex: 0 0 auto; }
.network { position: absolute; inset: 0; opacity: 0; }
.network.is-visible {
  opacity: .7;
  animation: network-appear 600ms ease both;
  animation-play-state: paused;
}
.network.is-visible.is-retiring { animation-name: network-disappear; animation-duration: 500ms; animation-play-state: paused; }
.network svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: center;
  animation: network-turn var(--network-duration, 64s) linear infinite;
  animation-direction: var(--network-direction, normal);
  animation-play-state: paused;
}
.networks-running .network-strip.is-in-view .network.is-visible,
.networks-running .network-strip.is-in-view .network.is-visible svg { animation-play-state: running; }
.network-edges { fill: none; stroke: var(--ink); stroke-width: .78; stroke-linecap: round; stroke-linejoin: round; }
.network-edges path { vector-effect: non-scaling-stroke; opacity: .5; }
.network-edges path + path { opacity: .3; stroke-dasharray: 1.2 3.5; }
.network-nodes circle { fill: var(--paper); stroke: var(--ink); stroke-width: .9; vector-effect: non-scaling-stroke; }
.network-nodes .network-signal { fill: var(--signal); stroke: var(--paper); stroke-width: 1.4; }
.motion-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.motion-toggle:hover { color: var(--ink); }
.motion-toggle svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.motion-toggle .play-icon, .motion-toggle[data-paused="true"] .pause-icon { display: none; }
.motion-toggle[data-paused="true"] .play-icon { display: block; }
@keyframes network-turn { to { transform: rotate(360deg); } }
@keyframes network-appear {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: .7; transform: scale(1); }
}
@keyframes network-disappear {
  from { opacity: .7; transform: scale(1); }
  to { opacity: 0; transform: scale(1.025); }
}

@media (min-width: 1600px) {
  .introduction { padding-top: 112px; padding-bottom: 96px; }
}

@media (max-width: 1000px) {
  .page { width: calc(100% - 72px); }
  .introduction { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; padding-block: 76px 66px; }
  h1 { font-size: clamp(60px, 8.4vw, 84px); }
  .practice-item { gap: 14px; padding-right: 12px; }
  .practice-item + .practice-item { padding-left: 20px; }
  .practice p { font-size: 13px; }
  .contact { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 700px) {
  .page { width: calc(100% - 44px); max-width: 520px; }
  .masthead { display: grid; grid-template-columns: 1fr auto; min-height: 80px; gap: 4px 20px; padding-block: 15px 12px; }
  .masthead .network-strip { grid-column: 1 / -1; grid-row: 2; gap: 36px; }
  .network-strip { min-height: 50px; }
  .network-slot { width: 50px; height: 50px; }
  .site-index { gap: 9px; font-size: 10px; letter-spacing: .045em; }
  .quiet-link { gap: 12px; font-size: 12px; }
  .introduction { grid-template-columns: 1fr; gap: 48px; padding-block: 59px 43px; }
  .eyebrow { margin-bottom: 24px; font-size: 12px; letter-spacing: .045em; }
  h1 { font-size: clamp(61px, 14.8vw, 88px); }
  .proposition { margin-top: 25px; margin-bottom: 21px; font-size: 16px; }
  .tagline { font-size: 24px; }
  .enquiry-link { font-size: 13px; }
  .seal-figure { width: 82%; max-width: 310px; justify-self: center; }
  .practice { grid-template-columns: 1fr; padding-block: 8px; }
  .practice-item { gap: 23px; padding: 20px 0; }
  .practice-item + .practice-item { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
  .practice-item > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; }
  .practice h3 { margin: 0; font-size: 21px; }
  .practice p { font-size: 13px; }
  .closer-look-content { padding-bottom: 27px; }
  .closer-look-content p { font-size: 14px; }
  .contact { gap: 12px; padding-block: 31px 25px; }
  .contact h2 { font-size: 26px; }
  .email { gap: 12px; font-size: 15px; }
  .colophon { display: grid; grid-template-columns: 1fr auto; min-height: 100px; align-items: center; gap: 0 12px; padding-block: 19px; font-size: 9px; }
  .colophon > span:first-child { align-self: end; }
  .colophon .network-strip { grid-column: 2; grid-row: 1 / span 2; gap: 10px; }
  .colophon .network-slot:last-child { display: none; }
  .colophon-note { gap: 9px; }
}

@media (max-width: 360px) {
  .page { width: calc(100% - 36px); }
  h1 { font-size: 57px; }
  .practice-item { gap: 15px; }
  .practice h3 { font-size: 20px; }
  .practice p { font-size: 12px; }
  .email { gap: 10px; font-size: 14px; }
  .colophon-note { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .network.is-visible, .network.is-visible.is-retiring, .network svg { animation: none; }
  .network.is-retiring { display: none; }
  .motion-toggle { display: none; }
}

@media print {
  :root { --paper: #fff; }
  .page { width: 100%; }
  .masthead { min-height: 60px; }
  .introduction { padding-block: 40px; }
  h1 { font-size: 66px; }
  .copy-button, .copy-status, .closer-look, .skip-link, .network-strip, .motion-toggle { display: none; }
  .contact { padding-block: 25px; }
  .colophon { min-height: 50px; }
  a { text-decoration: none; }
}
