@layer site-base {
@media (max-width: 899px) {
  .site-header nav > ul.nav-list {
    display: none;
  }

  .site-header .nav-mobile {
    display: block;
    position: relative;
  }
}
}
@layer site-theme {
:root {
  --accent: #2a3bd6;
  --background: #f3f2ee;
  --text: #14171c;
  --text-muted: #4a505b;
  --border: #dad8d1;
  --surface: #ffffff;
  --button-bg: #14171c;
  --button-text: #f3f2ee;
  --accent-text: #ffffff;
  --shadow-color: #14171c;
  --success: #166534;
  --error: #b91c1c;
  --status-text: #ffffff;
  --font-heading: "Bricolage Grotesque", "Noto Sans", "Noto Sans Armenian", "Noto Sans Georgian", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Bengali", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Instrument Sans", "Noto Sans", "Noto Sans Armenian", "Noto Sans Georgian", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Bengali", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-size-xs-value: 0.8125rem;
  --font-size-xs: calc(var(--font-size-xs-value) * var(--k-font-size-xs));
  --font-size-sm-value: 0.9375rem;
  --font-size-sm: calc(var(--font-size-sm-value) * var(--k-font-size-sm));
  --font-size-md-value: 1.0625rem;
  --font-size-md: calc(var(--font-size-md-value) * var(--k-font-size-md));
  --font-size-lg-value: 1.75rem;
  --font-size-lg: calc(var(--font-size-lg-value) * var(--k-font-size-lg));
  --font-size-xl-value: 2.75rem;
  --font-size-xl: calc(var(--font-size-xl-value) * var(--k-font-size-xl));
  --font-size-2xl-value: 3.5rem;
  --font-size-2xl: calc(var(--font-size-2xl-value) * var(--k-font-size-2xl));
  --font-size-3xl-value: 6rem;
  --font-size-3xl: calc(var(--font-size-3xl-value) * var(--k-font-size-3xl));
  --space-1-value: 0.25rem;
  --space-1: calc(var(--space-1-value) * var(--k-space-1));
  --space-2-value: 0.5rem;
  --space-2: calc(var(--space-2-value) * var(--k-space-2));
  --space-3-value: 0.75rem;
  --space-3: calc(var(--space-3-value) * var(--k-space-3));
  --space-4-value: 1rem;
  --space-4: calc(var(--space-4-value) * var(--k-space-4));
  --space-5-value: 1.5rem;
  --space-5: calc(var(--space-5-value) * var(--k-space-5));
  --space-6-value: 2rem;
  --space-6: calc(var(--space-6-value) * var(--k-space-6));
  --space-7-value: 3rem;
  --space-7: calc(var(--space-7-value) * var(--k-space-7));
  --space-8-value: 6.5rem;
  --space-8: calc(var(--space-8-value) * var(--k-space-8));
  --radius: 1.5rem;
  --radius-button: 160px;
  --measure: 40rem;
  --gap: 1.5rem;
  --shadow-sm: 0 1px 2px 0 color-mix(in srgb, var(--shadow-color) 8%, transparent);
  --shadow-md: 0 4px 8px -2px color-mix(in srgb, var(--shadow-color) 12%, transparent), 0 2px 4px -2px color-mix(in srgb, var(--shadow-color) 8%, transparent);
  --shadow-lg: 0 12px 24px -6px color-mix(in srgb, var(--shadow-color) 18%, transparent), 0 4px 8px -4px color-mix(in srgb, var(--shadow-color) 10%, transparent);
  --invert-bg: var(--text);
  --invert-text: var(--background);
  --focus: var(--accent);
  --accent-2: var(--accent);
  --accent-2-text: var(--accent-text);
  --accent-3: var(--accent);
  --accent-3-text: var(--accent-text);
  --font-meta: var(--font-body);
  --k-font-size-xs: 1;
  --k-font-size-sm: 1;
  --k-font-size-md: 1;
  --k-font-size-lg: 1;
  --k-font-size-xl: 1;
  --k-font-size-2xl: 1;
  --k-font-size-3xl: 1;
  --k-space-1: 1;
  --k-space-2: 1;
  --k-space-3: 1;
  --k-space-4: 1;
  --k-space-5: 1;
  --k-space-6: 1;
  --k-space-7: 1;
  --k-space-8: 1;
}
@media (max-width: 1023px) {
  :root {
    --k-font-size-lg: 0.95;
    --k-font-size-xl: 0.9;
    --k-font-size-2xl: 0.85;
    --k-font-size-3xl: 0.85;
    --k-space-5: 0.9;
    --k-space-6: 0.85;
    --k-space-7: 0.85;
    --k-space-8: 0.8;
  }
}
@media (max-width: 639px) {
  :root {
    --k-font-size-lg: 0.9;
    --k-font-size-xl: 0.85;
    --k-font-size-2xl: 0.78;
    --k-font-size-3xl: 0.7;
    --k-space-4: 0.9;
    --k-space-5: 0.8;
    --k-space-6: 0.75;
    --k-space-7: 0.7;
    --k-space-8: 0.65;
  }
}

/* --- Header: logo and name, the menu between them and the button, no rule underneath --- */

.site-header {
  border-bottom: 0;
}

.site-header-inner {
  padding-block: 1.75rem;
  gap: 1rem 2rem;
}

.site-header .site-logo {
  height: 1.875rem;
}

.site-name {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* With a button at the end of the row, the menu sits in the free space between the name and the button. */
.site-header-inner:has(> .block-button) > .site-name {
  margin-inline-end: 0;
}

.site-header-inner:has(> .block-button) > nav:not(.language-switcher) {
  margin-inline: auto;
}

.site-header nav > ul.nav-list {
  gap: 0.5rem 2rem;
  font-weight: 500;
}

.site-header nav > ul.nav-list a {
  display: inline-block;
  padding-block: 0.625rem;
  color: var(--text);
}

.site-header nav > ul.nav-list a:hover {
  text-decoration: none;
  opacity: 0.7;
}

.site-header-inner .button {
  min-height: 2.75rem;
  padding-inline: 1.375rem;
  font-size: 0.9375rem;
}

/* --- Page: a page of Sections is flush bands, from under the header to the footer --- */

main > .block-section:first-child {
  margin-block-start: -2.5rem;
  padding-block-start: var(--space-7);
}

main > .block-section + .block-section {
  margin-block-start: 0;
}

main > .block-section:last-child {
  margin-block-end: -4rem;
}

.block-section {
  padding-block: var(--space-8);
}

/* An introduction keeps its distance from the grid or columns below it. */
.block-section-inner > .block + .block-grid,
.block-section-inner > .block + .block-columns,
.block-section-inner > .block + .block-latest-posts {
  margin-block-start: var(--space-7);
}

/* Columns whose sides meet in the middle (variant), as the mockup's hero text beside its picture. */
.block-columns.is-style-middle {
  align-items: center;
}

/* Bands inside a post or project body meet edge to edge too. */
.post-body > .block-section + .block-section {
  margin-block-start: 0;
}

/* The accent tint (variant): a light band or panel in the accent's hue, its labels in a deeper accent. */
.is-style-tint {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--text);
}

.is-style-tint .block-rich-text.is-style-eyebrow {
  color: color-mix(in srgb, var(--accent) 80%, var(--text));
}

/* --- Headings: bold and tight, a big display scale --- */

.block-heading,
.post-title,
.blog-title,
.post-card-title {
  font-weight: 700;
}

h1.block-heading,
h1.blog-title {
  font-size: clamp(min(3rem, var(--font-size-3xl)), 7vw, var(--font-size-3xl));
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h1.post-title,
h2.block-heading {
  font-size: clamp(min(2.25rem, var(--font-size-2xl)), 4.6vw, var(--font-size-2xl));
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h3.block-heading,
.post-card-title {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* `*word*` in a heading: the accent colour. */
.block-heading em {
  color: var(--accent);
}

/* --- Text --- */

.block-rich-text > :last-child {
  margin-block-end: 0;
}

/* The small label over a heading (variant): tracked capitals in the accent colour. */
.block-rich-text.is-style-eyebrow {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.block-rich-text.is-style-eyebrow p {
  margin: 0;
}

/* A large statement in the heading font (variant), as in the mockup's "Who we are" and its quotes. */
.block-rich-text.is-style-statement {
  font-family: var(--font-heading);
  font-size: clamp(min(1.75rem, var(--font-size-xl)), 3.6vw, var(--font-size-xl));
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* --- Buttons: pills; a text link is the text with a thick line under it --- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3.25rem;
  padding: 0 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.button-secondary {
  background: transparent;
  border: 1.5px solid var(--text);
}

.button-secondary:hover {
  filter: none;
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.button-link,
.button-link:hover {
  min-height: 2.75rem;
  padding: 0;
  border-radius: 0;
  border-bottom: 2px solid currentColor;
  color: inherit;
  text-decoration: none;
}

.button-link:hover {
  opacity: 0.7;
}

/* --- Badge: an outlined pill in the muted colour --- */

.badge {
  gap: 0.625rem;
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

/* --- Cards: borderless rounded panels that stand off the band they sit on --- */

.block-card {
  background: var(--surface);
  border: 0;
}

:where(.block-section.is-style-surface) .block-card {
  background: var(--background);
}

.block-card-inner {
  padding: var(--space-6);
}

.block-card-inner > .block + .block {
  margin-block-start: 1.25rem;
}

/* The icon or initials tile: a dark rounded square, initials a circle. */
.block-card > .tile {
  width: 3.5rem;
  height: 3.5rem;
  margin: var(--space-6) var(--space-6) 0;
  border-radius: 1rem;
  background: var(--text);
  color: var(--background);
}

.block-card > .tile + .block-card-inner {
  padding-block-start: 1.25rem;
}

.block-card > .tile svg {
  width: 1.75rem;
  height: 1.75rem;
}

.block-card > .tile-text {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-family: var(--font-body);
  font-weight: 700;
}

/* The accent panel (variant): the accent colour, its text, links and tile reading on it. */
.block-card.is-style-accent {
  background: var(--accent);
  color: var(--accent-text);
}

.is-style-accent .block-rich-text a:not(.button) {
  color: inherit;
}

.block-card.is-style-accent > .tile {
  background: var(--accent-text);
  color: var(--accent);
}

/* --- Pictures: rounded corners --- */

.block-image img,
.block-gallery img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}

/* --- Post and project lists: rounded covers over the text, no frame --- */

.post-card {
  gap: 1.25rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.post-card-cover-link {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
}

.post-card-content {
  padding: 0;
}

/* --- Footer: the columns' links in the text colour, the legal line muted --- */

.site-footer {
  font-size: 1rem;
}

.site-footer .block-section {
  padding-block: 2.5rem 3.5rem;
}

.site-footer .block-heading {
  color: var(--text);
}

.site-footer .block-rich-text p + p {
  margin-block-start: 0.75rem;
}

.site-footer .block-rich-text a {
  color: var(--text);
  text-decoration: none;
}

.site-footer .block-rich-text a:hover {
  opacity: 0.7;
}

.site-footer > .wrap {
  padding-block-end: 1rem;
  font-size: 0.875rem;
}

.site-footer-nav a {
  color: inherit;
  text-decoration: none;
}

}
