html { scroll-behavior: smooth; }
body { background-color: #F7F4EF; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

/* Bracket-frame signature element, echoing the logo's corner marks */
.bracket-frame { position: relative; }
.bracket-frame::before,
.bracket-frame::after,
.bracket-frame > .bf-tr,
.bracket-frame > .bf-bl {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--bf-color, #50BCB6);
}
.bracket-frame::before {
  top: -1px; left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}
.bracket-frame::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}
.bracket-frame > .bf-tr {
  top: -1px; right: -1px;
  border-top: 2px solid;
  border-right: 2px solid;
}
.bracket-frame > .bf-bl {
  bottom: -1px; left: -1px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}
@media (max-width: 640px) {
  .bracket-frame::before, .bracket-frame::after,
  .bracket-frame > .bf-tr, .bracket-frame > .bf-bl { width: 18px; height: 18px; }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.running-stitch { stroke-dasharray: 6 7; }

::selection { background: #50BCB6; color: #F7F4EF; }

.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0%;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { width: 100%; }
.nav-link[aria-current="page"] { color: #3F8B85; }

/* Form fields */
.field-label {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: #6B6560;
}
.field-input {
  width: 100%;
  background: transparent;
  border: 1px solid #DDD6CC;
  padding: 0.85rem 1rem;
  font-family: 'Instrument Sans', sans-serif;
  color: #1C1B19;
  transition: border-color 0.2s ease;
}
.field-input:focus {
  outline: none;
  border-color: #3F8B85;
}
.field-input::placeholder { color: #A8A199; }

.service-option {
  cursor: pointer;
}
.service-option input { position: absolute; opacity: 0; }
.service-option span {
  display: block;
  border: 1px solid #DDD6CC;
  padding: 0.9rem 1rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.service-option input:checked + span {
  border-color: #3F8B85;
  background-color: rgba(80,188,182,0.08);
}
.service-option input:focus-visible + span {
  outline: 2px solid #3F8B85;
  outline-offset: 2px;
}

.fork-panel { transition: border-color 0.25s ease, transform 0.25s ease; }
.fork-panel:hover { border-color: #3F8B85; }

.filter-btn[aria-pressed="true"] {
  background-color: #1C1B19;
  color: #F7F4EF;
}
