@font-face {
  font-family: "PandawareFredoka";
  src: url("assets/fonts/fredoka/Fredoka-variable.ttf?v=2") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 75% 125%;
  font-display: block;
}

:root {
  color-scheme: light;
  --font-global: "PandawareFredoka", "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-sans: var(--font-global);
  --font-display: var(--font-global);
  --font-mono: var(--font-global);
  --black: #050505;
  --ink: #111111;
  --muted: #565656;
  --line: #d7d7d1;
  --paper: #ffffff;
  --card: #ffffff;
  --milk: #f8f8f4;
  --soft: #eeeeea;
  --header-bg: rgba(255, 255, 255, 0.96);
  --footer-bg: #050505;
  --footer-fg: #ffffff;
  --footer-muted: #d9d9d3;
  --shadow: 0 18px 38px rgba(0, 0, 0, 0.07);
  --hero-opacity: 0.72;
  --hero-filter: none;
  --radius: 8px;
  --page-pad: 5vw;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --black: #f4f1e8;
    --ink: #ece9df;
    --muted: #b7b2a5;
    --line: #34312b;
    --paper: #080807;
    --card: #14130f;
    --milk: #10100d;
    --soft: #1d1b16;
    --header-bg: rgba(8, 8, 7, 0.95);
    --footer-bg: #030302;
    --footer-fg: #f4f1e8;
    --footer-muted: #b7b2a5;
    --shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
    --hero-opacity: 0.3;
    --hero-filter: grayscale(1) brightness(0.55) contrast(1.12);
  }
}

* {
  box-sizing: border-box;
  font-family: "PandawareFredoka", "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif !important;
}

*::before,
*::after {
  box-sizing: inherit;
  font-family: "PandawareFredoka", "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif !important;
}

html {
  font-family: var(--font-global);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-global);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: 0;
}

html,
body,
body *,
body *::before,
body *::after {
  font-family: var(--font-global) !important;
}

p,
a,
span,
strong,
address,
summary,
button,
input,
select,
textarea,
h1,
h2,
h3 {
  font-family: var(--font-global) !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
}

.site-header {
  align-items: center;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px var(--page-pad);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
.site-nav {
  align-items: center;
  display: flex;
}

.brand {
  color: var(--black);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--black);
  border: 2px solid var(--black);
  border-radius: 50%;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  position: relative;
  width: 34px;
}

.brand-mark::before,
.brand-mark::after {
  background: var(--black);
  border-radius: 50%;
  content: "";
  height: 12px;
  position: absolute;
  top: -3px;
  width: 12px;
}

.brand-mark::before {
  left: -3px;
}

.brand-mark::after {
  right: -3px;
}

.brand-mark span {
  background: var(--paper);
  border-radius: 50%;
  height: 18px;
  width: 18px;
}

.site-nav {
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.site-nav a {
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  padding: 8px 11px;
  text-decoration: none;
}

.site-nav a:hover {
  border-color: var(--black);
  color: var(--black);
}

.hero {
  align-items: center;
  background: var(--milk);
  display: grid;
  isolation: isolate;
  min-height: 78svh;
  overflow: hidden;
  padding: 72px var(--page-pad);
  position: relative;
}

.hero-image {
  filter: var(--hero-filter);
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center right;
  opacity: var(--hero-opacity);
  position: absolute;
  width: 100%;
  z-index: -1;
}

.hero-copy {
  max-width: 760px;
  padding: 22px 0;
}

.eyebrow {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--black);
  font-family: var(--font-display);
  line-height: 1.03;
  margin: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

h1 {
  font-size: 5.3rem;
}

h2 {
  font-size: 3.15rem;
}

h3 {
  font-size: 1.55rem;
  line-height: 1.15;
}

p {
  margin: 0;
}

.hero-lede {
  font-family: var(--font-global) !important;
  font-size: 1.35rem;
  max-width: 650px;
  padding-top: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
}

.button-primary {
  background: var(--black);
  color: var(--paper);
}

.button-secondary {
  background: var(--card);
  color: var(--black);
}

.button:hover {
  transform: translateY(-1px);
}

.section {
  border-top: 1px solid var(--line);
  padding: 84px var(--page-pad);
}

.section-inner {
  margin: 0 auto;
  max-width: 1180px;
}

.intro-grid,
.research-layout,
.contact-layout {
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
}

.large-text,
.section-heading p {
  color: var(--muted);
  font-family: var(--font-global) !important;
  font-weight: 500;
  font-size: 1.18rem;
}

.section-services,
.section-contact {
  background: var(--milk);
}

.section-heading {
  max-width: 760px;
}

.service-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
}

.service-card,
.metric,
.contact-note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 294px;
  padding: 28px;
}

.service-number {
  align-items: center;
  background: var(--black);
  border-radius: 50%;
  color: var(--paper);
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.service-card p,
.metric span {
  color: var(--muted);
  font-family: var(--font-global) !important;
  font-weight: 500;
}

.metric-list {
  display: grid;
  gap: 14px;
}

.metric {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.metric strong {
  color: var(--black);
  font-family: var(--font-display);
  font-size: 2.3rem;
  line-height: 1;
}

.metric a {
  color: var(--black);
  font-weight: 700;
  width: fit-content;
}

.contact-reveal {
  margin-top: 4px;
}

.contact-reveal[open] {
  display: grid;
  gap: 14px;
}

.contact-reveal:not([open]) > :not(summary) {
  display: none;
}

.contact-summary {
  align-items: center;
  background: var(--black);
  border: 2px solid var(--black);
  border-radius: var(--radius);
  color: var(--paper);
  cursor: pointer;
  display: flex;
  font-weight: 700;
  justify-content: center;
  list-style: none;
  min-height: 58px;
  padding: 14px 18px;
  text-align: center;
  width: 100%;
}

.contact-summary::-webkit-details-marker {
  display: none;
}

.contact-summary::marker {
  content: "";
}

.contact-summary:hover {
  transform: translateY(-1px);
}

.contact-reveal-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-address-image {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: auto;
  max-width: min(100%, 420px);
  padding: 8px;
}

.contact-note {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.contact-note strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.1;
}

.contact-note p {
  color: var(--muted);
}

.site-footer {
  align-items: start;
  background: var(--footer-bg);
  color: var(--footer-fg);
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto;
  padding: 34px var(--page-pad);
}

.site-footer div {
  display: grid;
  gap: 6px;
}

.site-footer strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.site-footer span,
.site-footer address {
  color: var(--footer-muted);
}

.site-footer address {
  font-style: normal;
}

.site-footer a {
  font-family: var(--font-mono);
}

@media (max-width: 920px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .hero {
    min-height: 74svh;
  }

  .intro-grid,
  .research-layout,
  .contact-layout,
  .service-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    position: static;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 70svh;
    padding-bottom: 56px;
    padding-top: 56px;
  }

  .hero-image {
    opacity: calc(var(--hero-opacity) * 0.34);
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.45rem;
    max-width: 17ch;
  }

  .hero-lede {
    font-size: 1.12rem;
  }

  .section {
    padding-bottom: 62px;
    padding-top: 62px;
  }

  .service-card,
  .metric,
  .contact-note {
    padding: 22px;
  }
}

@media (prefers-color-scheme: dark) {
  .contact-address-image {
    filter: invert(1);
  }
}
