:root {
  /* Layout: pale pages, each opening with a deep band. The band's lower edge
     is a horizon, and the ring from the logo sits on it: pale above the
     line, brass below. Content is left-aligned on a 76rem measure. */
  --deep: #0B4046;        /* peacock field */
  --pale: #EDF1E9;        /* celadon paper */
  --ink: #0A2B30;         /* text on pale, footer field */
  --soft: #456064;        /* secondary text on pale */
  --rule: #C3CEC5;        /* hairlines on pale */
  --brass: #DDAE44;       /* accent on deep fields */
  --brass-deep: #D2A033;  /* accent on pale fields */
  --on-deep: rgb(237 241 233 / 0.86);
  --face: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --measure: 76rem;
  --ring-lg: clamp(12rem, 25vw, 21rem);
  --ring-sm: clamp(9rem, 15vw, 13rem);
  color-scheme: only light;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--pale);
  color: var(--ink);
  font-family: var(--face);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, dl, dd, address { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
address { font-style: normal; }

::selection { background: var(--brass); color: var(--ink); }

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

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -5rem;
  z-index: 10;
  padding: 0.5rem 0.875rem;
  border-radius: 0.375rem;
  background: var(--ink);
  color: var(--pale);
}
.skip:focus { top: 0.75rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.125rem;
}

.brand { display: block; }
.brand img { width: auto; height: 2.75rem; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem clamp(1rem, 2.4vw, 2.25rem);
  font-weight: 500;
}

.nav a {
  padding-block: 0.375rem;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.nav a:hover { border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { border-bottom-color: var(--brass-deep); }

.nav a.nav-cta {
  padding: 0.5rem 1.125rem;
  border: 0;
  border-radius: 999px;
  background: var(--deep);
  color: var(--pale);
}
.nav a.nav-cta:hover,
.nav a.nav-cta[aria-current="page"] { background: var(--ink); }

/* Buttons --------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.8125rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: #E8BD5C; }
.btn-line { border-color: rgb(237 241 233 / 0.55); color: var(--pale); }
.btn-line:hover { border-color: var(--pale); }
.btn-deep { background: var(--deep); color: var(--pale); }
.btn-deep:hover { background: var(--ink); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* The ring on the horizon ---------------------------------------------- */

.ring {
  position: absolute;
  right: var(--gutter);
  bottom: calc(var(--d) / -2);
  width: var(--d);
  height: var(--d);
  pointer-events: none;
}
.ring::before,
.ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border: calc(var(--d) * 0.228) solid;
  border-radius: 50%;
}
.ring::before { border-color: var(--pale); clip-path: inset(0 0 50% 0); }
.ring::after { border-color: var(--brass-deep); clip-path: inset(50% 0 0 0); }

/* Home hero ------------------------------------------------------------- */

.hero,
.page-hero {
  position: relative;
  z-index: 1;
  background: var(--deep);
  color: var(--pale);
}

.hero-inner {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(4rem, 10vw, 8.5rem);
}

.hero h1 {
  max-width: 17ch;
  font-size: clamp(2.25rem, 1.2rem + 4.3vw, 4.5rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.lead {
  max-width: 46ch;
  margin-top: 1.5rem;
  color: var(--on-deep);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.5;
}

.hero .ring { --d: var(--ring-lg); }

/* Interior page hero ---------------------------------------------------- */

.page-hero-inner {
  position: relative;
  padding-block: clamp(2.75rem, 6vw, 5rem);
}

.page-hero h1 {
  font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.028em;
}

.page-hero .lead { max-width: 44ch; margin-top: 1rem; }
.page-hero .ring { --d: var(--ring-sm); }

.page-body {
  padding-block: calc(var(--ring-sm) / 2 + 2.5rem) clamp(3.5rem, 8vw, 6.5rem);
}

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

.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section + .section { padding-top: 0; }

.section-head h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.022em;
}
.section-head p {
  max-width: 46ch;
  margin-top: 0.875rem;
  color: var(--soft);
}

.below-hero .section-head {
  min-height: calc(var(--ring-lg) / 2 - 2.5rem);
  padding-right: calc(var(--ring-lg) + 2rem);
}

/* Practices ------------------------------------------------------------- */

.practices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.practice {
  display: grid;
  gap: 0.625rem;
  align-content: start;
  padding-top: 1.125rem;
  border-top: 2px solid var(--ink);
}

.practice h3,
.row strong {
  font-size: 1.3125rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

.practice h3 a { text-decoration: none; }
.practice h3 a:hover,
a.row:hover strong {
  text-decoration: underline;
  text-decoration-color: var(--brass-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.practice p { color: var(--soft); }

/* Ruled rows ------------------------------------------------------------ */

.rows {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 2px solid var(--ink);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0.375rem clamp(1.5rem, 4vw, 4rem);
  padding-block: 1.375rem;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.row span { color: var(--soft); }

.more {
  display: inline-block;
  margin-top: 1.75rem;
  font-weight: 600;
  text-decoration-color: var(--brass-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

/* Closing band ---------------------------------------------------------- */

.cta { background: var(--deep); color: var(--pale); }

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  padding-block: clamp(3rem, 8vw, 6rem);
}

.cta h2 {
  max-width: 16ch;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.024em;
  text-wrap: balance;
}

.cta p { max-width: 40ch; color: var(--on-deep); }
.cta .actions { margin-top: 1.5rem; }

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

.site-footer {
  background: var(--ink);
  color: var(--on-deep);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 2rem clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
}

.footer-brand img { width: auto; height: 2.5rem; }
.footer-brand p { max-width: 32ch; margin-top: 1rem; }

.site-footer h2 {
  margin-bottom: 0.625rem;
  color: var(--pale);
  font-size: 0.9375rem;
  font-weight: 600;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover {
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 0.2em;
}
.site-footer li + li { margin-top: 0.375rem; }
.site-footer address { margin-top: 0.625rem; line-height: 1.55; }

.legal {
  padding-block: 1.125rem 1.5rem;
  border-top: 1px solid rgb(237 241 233 / 0.2);
}

/* Services -------------------------------------------------------------- */

.service,
.case {
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
  border-top: 2px solid var(--ink);
}
.service:first-child,
.case:first-of-type { margin-top: clamp(2rem, 4vw, 3rem); }

.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem clamp(1.5rem, 5vw, 5rem);
}

.service h2,
.case h2 {
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.pitch {
  max-width: 30ch;
  margin-top: 0.75rem;
  color: var(--soft);
  font-size: 1.125rem;
}

.service-body p { max-width: 58ch; }

.service h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.375rem;
  font-size: 1rem;
  font-weight: 650;
}

.ticks li {
  position: relative;
  padding-block: 0.5rem;
  padding-left: 1.375rem;
  border-bottom: 1px solid var(--rule);
}
.ticks li::before {
  content: "";
  position: absolute;
  top: 1.05em;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brass-deep);
}

/* Case studies ---------------------------------------------------------- */

.note {
  max-width: 62ch;
  padding: 0.25rem 0 0.25rem 1.125rem;
  border-left: 3px solid var(--brass-deep);
  color: var(--soft);
}

.case h2 { max-width: 24ch; }

.summary {
  max-width: 54ch;
  margin-top: 0.75rem;
  color: var(--soft);
  font-size: 1.1875rem;
  line-height: 1.5;
}

.facts { margin-top: 1.75rem; }
.facts > div {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 0.25rem clamp(1rem, 4vw, 3rem);
  padding-block: 1rem;
  border-top: 1px solid var(--rule);
}
.facts dt { font-weight: 650; }
.facts dd { max-width: 66ch; }

/* About ----------------------------------------------------------------- */

.prose { max-width: 62ch; }
.prose p + p { margin-top: 1rem; }
.prose .big {
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem);
  line-height: 1.4;
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem) clamp(1.5rem, 5vw, 5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* Contact --------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.5rem clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}

.bigmail {
  font-size: clamp(1.5rem, 1.05rem + 2.2vw, 2.625rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-decoration-color: var(--brass-deep);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.contact-main h2,
.card h2 {
  font-size: 1.3125rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

.contact-main h2 { margin-top: 2.75rem; margin-bottom: 0.5rem; }
.contact-main .after { max-width: 52ch; margin-top: 1.5rem; color: var(--soft); }

.card {
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  background: #F6F8F3;
}
.card address { margin-top: 0.625rem; line-height: 1.55; }
.card p { margin-top: 1rem; color: var(--soft); }

/* Narrow screens -------------------------------------------------------- */

@media (max-width: 68rem) {
  .practices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 56rem) {
  .ring { display: none; }
  .below-hero .section-head { min-height: 0; padding-right: 0; }
  .page-body { padding-top: clamp(2.5rem, 7vw, 4rem); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 48rem) {
  .row,
  .cta-inner,
  .service,
  .facts > div,
  .principles,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-inner { align-items: start; }
}

@media (max-width: 36rem) {
  .practices,
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .brand img { height: 2.375rem; }
  .nav { gap: 0.25rem 0.875rem; font-size: 0.9375rem; }
  .nav a.nav-cta { padding: 0.4375rem 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .hero, .page-hero, .cta, .site-footer { background: none; color: var(--ink); }
  .ring, .nav, .actions { display: none; }
}
