:root {
  --divider-ink: rgb(255 255 255 / 32%);
  --divider-dash: 2px;
  --divider-repeat: 6px;
  --divider-horizontal: repeating-linear-gradient(
    to right, var(--divider-ink) 0 var(--divider-dash), transparent var(--divider-dash) var(--divider-repeat)
  );
  --divider-vertical: repeating-linear-gradient(
    to bottom, var(--divider-ink) 0 var(--divider-dash), transparent var(--divider-dash) var(--divider-repeat)
  );
}
body {
  container-type: inline-size;
}
.work .project,
.about,
.connect,
footer.wrap {
  position: relative;
  border-color: transparent;
}
.work .project:not(:last-child)::after,
.about::before,
.connect::before,
footer.wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 100cqw;
  transform: translateX(-50%);
  height: 1px;
  background: var(--divider-horizontal);
  pointer-events: none;
}
.work .project:not(:last-child)::after {
  bottom: 0;
}
.work .project:last-child {
  margin-bottom: 0;
}
.about::before,
.connect::before,
footer.wrap::before {
  top: 0;
}


/* The three homepage sections share the same label and spacing. */
:root {
  --home-section-inset: clamp(32px, 4vw, 56px);
  --home-label-gap: clamp(24px, 3vw, 40px);
}
.work.wrap,
.about.wrap,
.connect.wrap {
  padding-top: var(--home-section-inset);
}
.about.wrap {
  padding-bottom: var(--home-section-inset);
}
.work .section-heading,
.about > .eyebrow,
.connect > .connect-rule {
  margin: 0 0 var(--home-label-gap);
}
.work .section-heading h2,
.about > .eyebrow,
.connect > .connect-rule {
  color: var(--ink);
  font-size: var(--type-project, 21px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.about-grid > h2,
.connect-grid > h2 {
  font-size: var(--type-hero);
  line-height: 1.2;
}
/* Homepage polish draft: preserve the existing palette, content and motion. */
.work .project-showcase .project-tags {
  gap: 8px;
  margin-top: 16px;
}
.work .project-showcase .project-tags li {
  font-family: var(--font-family);
  font-size: var(--type-label);
  letter-spacing: .01em;
  text-transform: none;
  padding: 6px 12px;
}
.work .project-link:is(:hover, :focus-visible) .project-caption-title h3 {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
.work .project-link .project-caption-title h3 {
  transition: color 160ms ease-out;
}
.hero .motion-toggle {
  min-height: 44px;
  padding-inline: 16px;
  color: var(--text-reading);
}
.hero .motion-toggle:hover {
  border-color: var(--accent);
}
.connect .connect-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 2px;
}
@media (max-width: 767px) {
  .work .project-showcase .project-caption-description {
    margin-top: 10px;
  }
  .work .project-showcase .project-tags {
    gap: 8px 6px;
    margin-top: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .work .project-link .project-caption-title h3 { transition: none; }
}

