:root {
  --bg: #f2eee2;
  --ink: #2c2926;
  --muted: #666665;
  --line: rgba(44, 41, 38, 0.35);
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  overflow-x: hidden;
}

.page {
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(24px, 6vw, 36px);
}

@media (prefers-reduced-motion: reduce) {
  animateMotion,
  animate {
    display: none;
  }
}
.intro h1 {
  font-size: clamp(1.7rem, 4vw, 2.1rem);
  font-weight: 700;
  margin: 0;
}
.intro .tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--muted);
  line-height: 1.5;
  max-width: 34rem;
  text-wrap: balance;
  margin: 14px 0 0;
}

.loop-section {
  align-self: stretch;
}

.loop-diagram {
  position: relative;
  width: min(700px, 100%);
  aspect-ratio: 1.3;
  margin: 0 auto;
  --loop-aspect-ratio: 1.3;
}

.loop-diagram__connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.loop-dot {
  transform-box: fill-box;
  transform-origin: center;
  transform: scaleY(var(--loop-aspect-ratio, 1));
}

.loop-diagram__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.loop-grid__item {
  position: relative;
}

.loop-grid__icon-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40%;
  height: 43.3333333333%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loop-grid__icon-wrap::before {
  content: "";
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  background: var(--bg);
}

.loop-grid__icon {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: fill;
  color: var(--ink);
}

.loop-grid__label {
  position: absolute;
  left: 50%;
  top: calc(71.6666666667% + 5px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 1px;
  background: var(--bg);
}

.loop-grid__item--label-above .loop-grid__label {
  top: auto;
  bottom: calc(71.6666666667% + 5px);
}

.bio {
  max-width: 30rem;
  margin: 48px 0 0;
}
.bio h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 16px;
}
.bio p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 14px;
  font-size: 1rem;
}
.bio p:last-child {
  margin-bottom: 0;
}

.services {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}
.services .service h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.services .service ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.services .service li {
  color: var(--muted);
  line-height: 1.5;
  font-size: 1rem;
}

.site-footer {
  text-align: center;
  padding: 0 24px 64px;
}
.site-footer a {
  font-weight: 400;
  font-size: 0.95rem;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, text-underline-offset 0.2s ease;
}
.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration-color: var(--ink);
  text-underline-offset: 5px;
}
.site-footer .attribution {
  margin: 10px 0 0;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}
.site-footer .attribution a {
  font-weight: 400;
}
