.project-types a, .need-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 10px 15px;
  border: 1px solid var(--glass-edge);
  border-radius: 17px;
  background: var(--glass-fill);
  box-shadow: var(--glass-rim);
  color: var(--ink);
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}
.project-types a::after, .need-links a::after {
  flex: none;
  content: '';
  width: 7px;
  height: 7px;
  margin-right: 3px;
  border-top: 2px solid var(--pine);
  border-right: 2px solid var(--pine);
  transform: rotate(45deg);
}
.project-types a:hover, .need-links a:hover { background: #f1fff4; border-color: #89bca5; }
.project-question { margin: 4px 0 12px; font-size: 1.35rem; line-height: 1.25; letter-spacing: -.025em; }
.need-links { display: grid; gap: 9px; }
#project-picker .back-link { display: inline-flex; align-items: center; min-height: 44px; }

.need-page { padding-block: 22px 52px; }
.need-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 0 10px; margin-bottom: 12px; color: var(--pine); }
.need-crumb a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; font-weight: 650; }
.need-overview, .need-details { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.need-hero, .need-panel { border-radius: 26px; padding: clamp(20px, 4vw, 43px); }
.need-hero {
  border: 1px solid #30846b;
  background: radial-gradient(ellipse at 95% 0%, #2e715d, transparent 62%), #103a2e;
  color: #fcfffb;
  box-shadow: inset 0 1px 1px #a8e9cf48, 0 22px 30px -25px #0f3a2bad;
}
.need-location { margin: 0; color: #d4eee0; font-size: .875rem; }
.need-hero h1 { margin: 12px 0; font-size: clamp(2.45rem, 5.8vw, 4.6rem); text-wrap: balance; }
.need-intro { max-width: 55ch; margin: 0 0 19px; color: #ecf7ef; }
.need-quote { background: #f3fbef; color: #153f30; }
.need-quote:hover { background: #dceee0; }
.need-hero .need-helper-link { color: #fff; margin-left: 14px; }
.need-panel {
  border: 1px solid var(--glass-edge);
  background: var(--glass-fill);
  box-shadow: var(--glass-rim);
}
.need-panel h2 { margin: 0 0 14px; font: 400 clamp(1.65rem, 3vw, 2.3rem)/1.12 var(--serif); letter-spacing: -.025em; }
.need-details { margin-top: 16px; }
.need-panel ul { margin: 0; padding-left: 20px; color: #29453a; }
.need-panel li + li { margin-top: 9px; }
.need-prep ul { padding: 0; list-style: none; }
.need-prep li { padding: 9px 0; border-top: 1px solid #b8d0c1; }
.need-gallery-card { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-weight: 650; color: var(--pine); }
.need-gallery-card img { border-radius: 10px; object-fit: cover; }

.ask-section { scroll-margin-top: 8px; }
.ask-section h2 { font: 400 clamp(1.85rem, 3vw, 2.65rem)/1.13 var(--serif); letter-spacing: -.035em; }
.ask-section .form { display: grid; gap: 12px; padding: clamp(17px, 4vw, 30px); }
.ask-section label { font-size: .9rem; font-weight: 680; }
.ask-section input, .ask-section select { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #adc6b7; border-radius: 11px; background: #fff; color: var(--ink); }
.ask-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.ask-actions .back-link { min-height: 44px; }
.ask-result p { margin: 12px 0; color: #29453a; }
.ask-result select { margin-bottom: 10px; }
.need-page .ask-section { margin-top: 28px; }
.portfolio-page .ask-section { margin-top: 26px; }
@media (max-width: 720px) {
  .need-overview, .need-details { grid-template-columns: 1fr; gap: 12px; }
  .need-details { margin-top: 12px; }
}
@media (max-width: 590px) {
  .project-types a, .need-links a { padding-inline: 12px; font-size: .9375rem; }
}
.need-helper-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }

/* Give the category question a stationary pool of light behind the glass. */
.category-sheet {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 850px;
  margin: 8px auto 32px;
  padding: clamp(22px, 5vw, 58px);
  border: 1px solid #fff;
  border-radius: clamp(22px, 3vw, 34px);
  background: linear-gradient(135deg, #f8fffbe8, #e4f4ebef);
  box-shadow: inset 0 1px 2px #fff, 0 10px 42px -20px #27604775;
}
.category-sheet::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse 49% 35% at 32% 26%, #a7f0cfba, transparent),
    radial-gradient(ellipse 26% 46% at 98% 2%, #c2eddd 5%, transparent);
  pointer-events: none;
}
.category-name { margin: 0; color: #2a5948; font-size: .94rem; font-weight: 680; }
.category-sheet h1 { margin: 12px 0 clamp(20px, 4vw, 32px); max-width: 18ch; text-wrap: balance; font-size: clamp(2.25rem, 6vw, 4.35rem); }
.category-sheet .need-links a { background: linear-gradient(140deg,#fffffff2,#f7fffbba); }
body :focus-visible {
  outline: 2px solid #176d54;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #aaf1d39c, 0 0 16px 4px #7ee5b988;
}
body .showcase-caption a:focus-visible, .need-hero :focus-visible, .footer :focus-visible { outline-color: #b6fbd9; }
@media (forced-colors: active) {
  body :focus-visible { outline: 3px solid Highlight; }
}
.site-directory { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.site-directory a { display: inline-flex; align-items: center; min-height: 44px; }
.standalone-section { margin: 12px 0 36px; }
.standalone-section h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.project-entry { display: block; overflow: hidden; border-radius: 24px; background: var(--glass-fill); border: 1px solid var(--glass-edge); box-shadow: var(--glass-rim); text-decoration: none; }
.project-entry img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.project-entry span { display: block; padding: 18px; font: 400 clamp(1.45rem, 3vw, 2rem)/1.12 var(--serif); }
.project-detail { max-width: 760px; margin: 15px auto; }
.project-detail .project-title { margin: 6px 0 16px; font: 400 clamp(1.6rem, 4vw, 2.6rem)/1.1 var(--serif); letter-spacing: -.03em; }

.mobile-navigation { display: none; }

@media (max-width: 590px) {
  .topbar .nav {
    position: relative;
    background: linear-gradient(130deg, #fbfdf9ec, #e7f3ebea);
  }
  .navlinks .work-nav:not(.nav-cta) { display: none; }
  .mobile-navigation { display: block; }
  .mobile-navigation summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    min-width: 44px;
    padding: 0 5px;
    border-radius: 16px;
    color: var(--pine);
    font: 650 .875rem/1.2 var(--sans);
    list-style: none;
    cursor: pointer;
  }
  .mobile-navigation summary, .mobile-navigation-panel a {
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-navigation[open] summary { background: #e0eee4; }
  .mobile-navigation summary::-webkit-details-marker { display: none; }
  .menu-caret {
    width: 7px;
    height: 7px;
    border-right: 1.8px solid;
    border-bottom: 1.8px solid;
    transform: translateY(-2px) rotate(45deg);
  }
  .mobile-navigation[open] .menu-caret {
    transform: translateY(2px) rotate(225deg);
  }
  .mobile-navigation-panel {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    max-height: calc(100vh - 155px);
    max-height: calc(100dvh - 155px - env(safe-area-inset-bottom));
    overflow: auto;
    overscroll-behavior: contain;
    padding: 6px;
    background: linear-gradient(145deg, #fcfefb, #edf5ef);
    border: 1px solid #c9dacf;
    border-radius: 22px;
    box-shadow: inset 0 0 0 1px #fff, 0 14px 36px -13px #163e2f55;
  }
  .navlinks .mobile-navigation-panel a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 47px;
    padding: 10px 16px;
    border-radius: 13px;
    color: #234e3e;
    font: 580 .97rem/1.4 var(--sans);
  }
  .mobile-navigation-panel a::after {
    content: '';
    width: 6px;
    height: 6px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
  }
  .mobile-navigation-panel .active-section {
    background: #d9ecdf;
    box-shadow: inset 3px 0 #378365;
  }
  .mobile-navigation-panel a:active { background: #d5eadd; }
  .mobile-navigation-panel a:focus-visible { outline-offset: -3px; }
}
@media (max-width: 350px) {
  .mobile-navigation summary { gap: 5px; font-size: .8125rem; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar .nav { background: #f4f8f3; }
}

#need-related-title { scroll-margin-top: 6rem; }
