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

:root {
  --black: #000;
  --white: #fff;
  --grey: #a1a1a1;
  --line: #262626;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --page: 84rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; color-scheme: dark; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 1.0625rem/1.55 "Instrument Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, dl, dd, ol, ul, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
p a, .foot a { text-decoration: underline; text-decoration-color: #5c5c5c; text-underline-offset: 0.2em; }
p a:hover, .foot a:hover { text-decoration-color: var(--white); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 4px; }

h2 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.button {
  display: inline-block;
  padding: 0.8125rem 1.375rem;
  background: var(--white); color: var(--black);
  font-weight: 500;
  line-height: 1.25;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s;
}
.button:hover { background: #d9d9d9; }
.button-ghost { background: rgb(255 255 255 / 0.08); color: var(--white); }
.button-ghost:hover { background: rgb(255 255 255 / 0.16); }
.button-small { padding: 0.4375rem 1rem; font-size: 0.9375rem; }

/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.75rem var(--gutter);
  background: rgb(0 0 0 / 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.wordmark { font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.025em; }
.bar nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); font-size: 0.9375rem; }
.bar nav a:not(.button) { color: var(--grey); transition: color 0.15s; }
.bar nav a:not(.button):hover { color: var(--white); }

/* Hero */
.hero {
  position: relative;
  padding: clamp(5rem, 11vw, 9.5rem) var(--gutter) clamp(1rem, 3vw, 2.5rem);
  text-align: center;
}
.hero h1 {
  max-width: 13em;
  margin-inline: auto;
  font-size: clamp(2.75rem, 7vw, 6.5rem);
  font-weight: 500;
  line-height: 1.01;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.lede {
  max-width: 31em;
  margin: clamp(1.5rem, 2.6vw, 2rem) auto 0;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.45;
  color: var(--grey);
  text-wrap: balance;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); }

/* Products: a panel in each product's own colour */
.products {
  position: relative;
  z-index: 1;
  max-width: var(--page);
  margin-inline: auto;
  padding: clamp(4rem, 8vw, 7rem) var(--gutter) 0;
  background: var(--black);
}
.products > h2 { margin-bottom: clamp(2rem, 4vw, 3.5rem); }

.panel {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin-top: 1.25rem;
  padding: clamp(1.75rem, 4vw, 3.5rem) 0 clamp(1.75rem, 4vw, 3.5rem) clamp(1.75rem, 4vw, 3.5rem);
  border-radius: clamp(14px, 2vw, 24px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
  overflow: hidden;
}
.panel-findar { background: radial-gradient(90% 120% at 95% 0%, #4a1fa8 0%, #1a0d3a 48%, #0b0718 100%); }
.panel-easymacros { background: radial-gradient(70% 110% at 100% 100%, #a8431a 0%, #2a1712 50%, #0e0b0a 100%); }
.panel-hundred { background: radial-gradient(90% 120% at 95% 0%, #1f3fd0 0%, #0d1a55 48%, #060a1e 100%); }

.panel-name { font-size: 1.0625rem; font-weight: 500; color: rgb(255 255 255 / 0.72); }
.panel h3 {
  margin-top: 0.75rem;
  font-size: clamp(1.875rem, 3.4vw, 3rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.panel-text p:not(.panel-name) { max-width: 26em; margin-top: 1rem; color: rgb(255 255 255 / 0.72); }
.panel-text .button { margin-top: 1.75rem; }
.panel > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14), 0 30px 70px -20px rgb(0 0 0 / 0.8);
}

/* Consulting */
.consulting, .about, .closing {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.consulting { padding-block: clamp(5rem, 11vw, 9rem) 0; }
.consulting h2 { max-width: 12em; }
.section-intro { max-width: 30em; margin-top: 1.25rem; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.45; color: var(--grey); }
.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.services > div { padding-top: 1.25rem; border-top: 1px solid #4a4a4a; }
.services dt { font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.services dd { margin-top: 0.625rem; color: var(--grey); font-size: 1rem; }

/* The record: real numbers, so they can be large */
.record {
  margin-top: clamp(4rem, 8vw, 6.5rem);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  border-radius: clamp(14px, 2vw, 24px);
  background: #0e0e0e;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.record h3 { font-size: 1.0625rem; font-weight: 500; color: var(--grey); }
.record ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.record li { color: var(--grey); }
.record strong {
  display: block;
  font-size: clamp(2.75rem, 6.2vw, 5.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--white);
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.record figure { margin-top: clamp(2rem, 4vw, 3rem); padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--line); }
.record blockquote { max-width: 26em; text-wrap: balance; font-size: clamp(1.375rem, 2.4vw, 2rem); line-height: 1.2; letter-spacing: -0.025em; }
.record figcaption { margin-top: 0.625rem; color: var(--grey); font-size: 0.9375rem; }

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-block: clamp(5rem, 11vw, 9rem) 0;
}
.about-intro img { width: 5.5rem; height: 5.5rem; border-radius: 50%; object-fit: cover; margin-bottom: 1.5rem; }
.about h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.about-intro > p { max-width: 26em; margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.5; color: var(--grey); }
.about-intro .elsewhere { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: 1.5rem; color: var(--white); font-size: 1rem; }
.elsewhere a { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; transition: color 0.15s; }
.elsewhere a:hover { color: var(--grey); }
.elsewhere svg { flex: none; }

.timeline li {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.timeline li:first-child { padding-top: 0; border-top: 0; }
.when { color: var(--grey); font-variant-numeric: tabular-nums; }
.timeline strong { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.012em; }
.timeline li p { max-width: 38em; margin-top: 0.25rem; color: var(--grey); }

/* Closing */
.closing { padding-block: clamp(5rem, 11vw, 9rem); text-align: center; }
.closing h2 { margin-inline: auto; max-width: 11em; }
.closing .button { margin-top: 2rem; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 3rem;
  max-width: var(--page);
  margin-inline: auto;
  padding: 2rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--grey);
}

@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .panel { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
  .panel-text { padding-right: clamp(1.75rem, 4vw, 3.5rem); }
  .panel > img { border-radius: 12px 0 0 0; margin-top: 0.5rem; }
  .about { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .bar nav a:not(.button) { display: none; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .button { width: 100%; text-align: center; }
}

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