:root {
  --ink: #0F1B2D;
  --ink-2: #172A44;
  --brass: #B8862B;
  --brass-light: #D9A54A;
  --verdigris: #2F7D6F;
  --paper: #F4F6F5;
  --text: #24313F;
  --muted: #586675;
  --rule: #D5DBDA;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--brass-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  z-index: 10;
}
.skip:focus { left: 8px; }

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

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
}

h3 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.section-intro {
  margin-top: 14px;
  max-width: 38em;
  color: var(--muted);
  font-size: 1.125rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--brass);
  color: var(--ink);
  font: 600 1rem/1 var(--body);
  text-decoration: none;
  padding: 16px 24px;
  border-radius: 6px;
  border: 2px solid var(--brass);
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--brass-light); border-color: var(--brass-light); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-small { padding: 10px 16px; font-size: .9375rem; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--rule);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.brand img { width: 220px; height: auto; }
.site-header ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-header nav a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  color: var(--text);
}
.site-header nav a:not(.btn):hover { color: var(--brass); }

/* Hero */
.hero {
  background: var(--ink);
  color: #DCE3EA;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 40px;
  padding-top: clamp(56px, 9vw, 112px);
  padding-bottom: clamp(56px, 9vw, 112px);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.75rem, 6.4vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  max-width: 11ch;
}
.lede {
  margin-top: 28px;
  max-width: 34em;
  font-size: 1.1875rem;
  line-height: 1.6;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* The key: the one animated moment on the page */
.key {
  width: 100%;
  max-height: 520px;
  justify-self: end;
}
.key .gear path { fill: none; stroke: var(--brass); stroke-width: 26; }
.key .gear path.inner { stroke-width: 10; }
.key .teeth rect { fill: var(--brass); }
.key .net path {
  fill: none;
  stroke: var(--brass-light);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.key .nodes circle { fill: var(--ink); stroke: var(--brass-light); stroke-width: 6; }
.key .shaft > * { fill: var(--brass); }
.key .hole { fill: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .key .net path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: draw 1.6s ease-out .3s forwards;
  }
  .key .nodes circle {
    opacity: 0;
    animation: light .5s ease-out forwards;
  }
  .key .nodes circle:nth-child(1)  { animation-delay: .35s; }
  .key .nodes circle:nth-child(2)  { animation-delay: .45s; }
  .key .nodes circle:nth-child(3)  { animation-delay: .55s; }
  .key .nodes circle:nth-child(4)  { animation-delay: .7s; }
  .key .nodes circle:nth-child(5)  { animation-delay: .8s; }
  .key .nodes circle:nth-child(6)  { animation-delay: .95s; }
  .key .nodes circle:nth-child(7)  { animation-delay: 1.05s; }
  .key .nodes circle:nth-child(8)  { animation-delay: 1.2s; }
  .key .nodes circle:nth-child(9)  { animation-delay: 1.3s; }
  .key .nodes circle:nth-child(10) { animation-delay: 1.45s; }
  .key .hole { animation: glow 1s ease-out 1.8s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes light {
  0%   { opacity: 0; fill: var(--brass-light); }
  60%  { opacity: 1; fill: var(--brass-light); }
  100% { opacity: 1; fill: var(--ink); }
}
@keyframes glow {
  0%   { fill: var(--ink); }
  40%  { fill: var(--brass-light); }
  100% { fill: var(--ink); }
}

/* Sections */
.services, .process, .principles {
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(64px, 9vw, 120px);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 64px;
  margin-top: 56px;
}
.service-list article {
  border-left: 3px solid var(--brass);
  padding-left: 24px;
}
.service-list article p { margin-top: 12px; max-width: 34em; }
.service-list .fit {
  color: var(--muted);
  font-size: .9688rem;
}
.service-list .fit strong { color: var(--verdigris); font-weight: 600; }

.process { background: #fff; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.steps {
  list-style: none;
  counter-reset: step;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 64px;
  border-top: 3px solid var(--ink);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 16px;
  left: 0;
  font: 800 1.75rem/1 var(--display);
  color: var(--brass);
}
.steps .when {
  margin-top: 6px;
  color: var(--verdigris);
  font-weight: 600;
  font-size: .9375rem;
}
.steps li p:last-child { margin-top: 12px; }

.principles-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.principles dl { margin: 0; }
.principles dl > div {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.principles dl > div:first-child { padding-top: 6px; }
.principles dt {
  font: 700 1.375rem/1.2 var(--display);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.principles dd { margin: 10px 0 0; max-width: 36em; }

.contact {
  background: var(--verdigris);
  color: #E9F3F0;
}
.contact-inner {
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: clamp(64px, 8vw, 104px);
}
.contact h2 { color: #fff; max-width: 16ch; }
.contact p { margin-top: 18px; max-width: 36em; font-size: 1.125rem; }
.contact .btn { margin-top: 32px; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #AEB9C6;
  font-size: .9375rem;
}
.footer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 34px; height: auto; }
.wordmark {
  font: 600 1.5rem/1 "Poppins", var(--body);
  color: #fff;
  letter-spacing: -0.01em;
}
.wordmark span { color: var(--brass-light); }
.tagline { margin-top: 4px; font-size: .8125rem; letter-spacing: .06em; }
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a { text-decoration: none; color: #DCE3EA; }
.footer-links a:hover { color: var(--brass-light); }
.copy {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
}

/* Privacy / simple pages */
.page {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(64px, 9vw, 120px);
}
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 800; }
.page h2 { font-size: 1.5rem; margin-top: 40px; }
.page p, .page ul { margin-top: 14px; }
.page .updated { color: var(--muted); margin-top: 10px; }

/* Responsive */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .principles-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 760px) {
  .site-header nav li:not(:last-child) { display: none; }
  .brand img { width: 170px; }
  .header-row { min-height: 68px; }
  .hero-grid { grid-template-columns: 1fr; }
  .key { max-height: 260px; justify-self: start; order: -1; width: auto; }
  .service-list { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
  .steps { grid-template-columns: 1fr; margin-top: 40px; }
  .footer-row { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
}
