/* Webrigg: softly rounded controls and pixel geometry. */
:root {
  --corner-radius: 14px;
  --round-small: 8px;
  --round-surface: 22px;
  --round-form: var(--round-surface);
  --section-arc-width: 3px;
  /* Center the whole stroke in the gutter, leaving equal clear space on both sides. */
  --section-arc-inset: calc((var(--gutter) - var(--section-arc-width)) / 2);
  --section-arc-radius: calc(var(--round-form) + var(--gutter) - var(--section-arc-inset));
}

.button, .header-contact, .concept-action, .menu-toggle,
.icon-button, .design-toggle, .project-navigation button {
  border-radius: var(--corner-radius);
}
.about-photo, .about-photo img,
.project-dialog, .project-preview-wrap > .preview,
.project-stage .preview { border-radius: var(--round-surface); }
.contact-form {
  border-radius: var(--round-form);
  overflow: hidden;
}
.contact-form, .contact-methods .contact-email-row {
  box-shadow:
    0 1px 2px rgb(24 38 48 / .035),
    0 4px 12px -4px rgb(24 38 48 / .055),
    0 18px 36px -16px rgb(24 38 48 / .12);
}
.form-field input, .form-field textarea, .project-type-options label > span,
.email-copy-button { border-radius: var(--round-small); }
.contact-email-row { border-radius: 16px; }
.faq details { border-radius: 18px; overflow: hidden; }
.faq summary .plus, .process-row > span, .cover-label {
  border-radius: var(--round-small);
}
.plus::before, .plus::after { border-radius: 1.5px; }

/* Concept previews use the same continuous curves as the other surfaces. */
.concept-cover, .concept-card:first-child .concept-cover {
  border-radius: var(--round-surface);
  clip-path: none;
}
.service-card {
  --service-radius: var(--round-surface);
  --section-arc-width: 2px;
  --section-arc-inset: 8px;
  --section-arc-radius: calc(var(--service-radius) - var(--section-arc-inset));
  border-radius: var(--service-radius);
}
.pixel-spark[data-rounded-shape], .menu-arrow[data-rounded-shape] { clip-path: var(--rounded-pixel-cut); }
.hero-glint, .hero-glint::before, .hero-glint::after,
.footer-pixel, .brand-dot,
.footer-word .brand-pixel { border-radius: 1.5px; }
.menu-dialog { border-radius: 0; }
.menu-dialog nav.menu-navigation > a { border-radius: 0; }

.header--fixed { border-radius: 0 0 var(--section-arc-radius) var(--section-arc-radius); }
@media (min-width: 801px) {
  /* Match the button's curve plus its equal bottom/right inset. */
  .header--fixed {
    --header-outer-radius: calc(var(--corner-radius) + (var(--header-row-height) + 1px - var(--header-toggle-size)) / 2);
    border-bottom-left-radius: var(--header-outer-radius);
    border-bottom-right-radius: var(--header-outer-radius);
  }
}

/* Both light sections share an outer curve that accounts for the form inset. */
.work-section.contrast-section, .contact-section.contrast-section {
  position: relative;
  isolation: isolate;
  border-radius: calc(var(--round-form) + var(--gutter));
}
.work-section.contrast-section > .wrap, .contact-section.contrast-section > .wrap {
  position: relative;
  z-index: 1;
}

/* One short, round-ended arc follows each light section's outer corner. */
.section-corner {
  position: absolute;
  width: var(--section-arc-radius);
  height: var(--section-arc-radius);
  border-top: var(--section-arc-width) solid currentColor;
  border-left: var(--section-arc-width) solid currentColor;
  border-top-left-radius: var(--section-arc-radius);
  color: #687780;
  opacity: .42;
  pointer-events: none;
  z-index: 0;
}
.section-corner::before, .section-corner::after {
  content: '';
  position: absolute;
  width: var(--section-arc-width);
  height: var(--section-arc-width);
  background: currentColor;
  border-radius: 50%;
}
.section-corner::before {
  top: calc(-1 * var(--section-arc-width));
  right: calc(-.5 * var(--section-arc-width));
}
.section-corner::after {
  left: calc(-1 * var(--section-arc-width));
  bottom: calc(-.5 * var(--section-arc-width));
}
.section-corner--tl { top: var(--section-arc-inset); left: var(--section-arc-inset); }
.section-corner--tr { top: var(--section-arc-inset); right: var(--section-arc-inset); transform: rotate(90deg); }
.section-corner--br { bottom: var(--section-arc-inset); right: var(--section-arc-inset); transform: rotate(180deg); }
.section-corner--bl { bottom: var(--section-arc-inset); left: var(--section-arc-inset); transform: rotate(270deg); }
.service-card > .section-corner { color: currentColor; opacity: .24; }
.service-card:nth-child(2) > .section-corner { color: #687780; opacity: .42; }

/* The three steps use the same inset on every edge. */
.about-process .process-row { padding: 24px; }

/* One reading column gives each question room at tablet widths too. */
.faq {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1024px;
  gap: 36px;
}
.faq-title { position: static; text-align: center; }
.faq-title h2 { font-size: clamp(36px, 4.8vw, 60px); line-height: 1.08; }
.faq-title .eyebrow { margin-bottom: 20px; }
.faq summary { min-height: 80px; padding: 20px 20px 20px 28px; }
.faq summary:focus-visible { outline-offset: -3px; }
.faq summary .plus { width: 40px; height: 40px; }
.faq-answer { padding: 0 88px 28px 28px; }
.faq-answer p { max-width: 68ch; }

/* Center the introductions without changing form or contact-row alignment. */
.work-section .section-heading { margin-inline: auto; text-align: center; }
.work-intro { justify-content: center; text-align: center; }
.work-intro > p { margin-inline: auto; }
.contact-intro { text-align: center; align-self: center; }
.contact-lead, .contact-next { margin-inline: auto; }
.work-intro > p, .statement > p:last-child, .contact-next { text-wrap: balance; }
/* Stack equal-width contact rows and reserve space for copy confirmation. */
.contact-layout {
  grid-template-columns: minmax(600px, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
}
.contact-methods {
  width: 360px;
  margin-inline: auto;
  text-align: left;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.contact-methods .contact-email-row { min-width: 0; }
.contact-methods .contact-email { font-size: 14px; gap: 12px; }
@media (max-width: 1200px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); max-width: 960px; margin-inline: auto; }
  .contact-lead, .contact-next { max-width: 680px; }
}

@media (max-width: 620px) {
  :root { --round-form: 18px; }
  .hero-actions .button, .header-contact, .menu-toggle, .menu-close {
    border-radius: 12px;
  }
  .about-photo, .about-photo img { border-radius: 18px; }
  .concept-cover, .concept-card:first-child .concept-cover, .service-card { border-radius: 18px; }
  .service-card { --service-radius: 18px; }
  .about-process .process-row { padding: 20px; }
  .faq { gap: 28px; }
  .faq summary { min-height: 80px; padding: 20px; }
  .faq summary .plus { width: 32px; height: 32px; }
  .faq-answer { padding: 0 20px 24px; }
  .contact-section .contact-intro { padding-top: 24px; }
  .contact-methods { width: 100%; }
  .contact-methods .contact-email { gap: 18px; }
}
