/* Shared Services catalog and navigation disclosure. */
.services-menu {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}

.services-menu-trigger {
  width: 100%;
}

.services-menu-trigger::after {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin: 0 0 0.18rem 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.services-menu[data-open="true"] .services-menu-trigger::after,
.services-menu:not([data-enhanced="true"]):focus-within .services-menu-trigger::after {
  transform: translateY(0.16rem) rotate(225deg);
}

.services-menu-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  z-index: 400;
  display: grid;
  width: min(20rem, calc(100vw - 2rem));
  grid-template-columns: 1fr;
  gap: 0.25rem;
  padding: 0.5rem;
  overflow: auto;
  color: #16321f;
  background: #ffffff;
  border: 1px solid rgba(23, 71, 43, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(16, 51, 31, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 0.45rem);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.services-menu-panel a,
.nav-links .services-menu-panel a {
  display: block;
  flex: none;
  min-width: 0;
  padding: 0.72rem 0.78rem;
  border-radius: 6px;
  color: #294d36;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
}

.services-menu-group {
  min-width: 0;
  padding: 0.25rem;
}

.services-menu-heading {
  margin: 0;
  padding: 0.5rem 0.78rem 0.35rem;
  color: #a84908;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.services-menu-panel a:hover,
.services-menu-panel a:focus-visible {
  color: #10331f;
  background: #edf4e2;
  outline: none;
}

.services-menu-mobile-nav {
  display: none;
}

.services-menu:hover .services-menu-panel,
.services-menu:focus-within .services-menu-panel,
.services-menu[data-open="true"] .services-menu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.services-menu-trigger:focus-visible,
.catalog-jump-links a:focus-visible,
.service-copy .btn:focus-visible {
  outline: 3px solid #f2740d;
  outline-offset: 3px;
}

.services-page {
  overflow-x: clip;
}

.services-page .nav-brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.services-page .nav-links .active {
  color: #17472b;
  background: #ffffff;
}

.catalog-container {
  width: min(100% - 2rem, 74rem);
  margin-inline: auto;
}

.services-hero {
  padding: calc(var(--nav-h, 68px) + 3.75rem) 0 3.5rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(23, 71, 43, 0.14);
}

.services-hero h1 {
  max-width: 12ch;
  margin: 0 0 1rem;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  letter-spacing: 0;
}

.services-hero > .catalog-container > p {
  max-width: 46rem;
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.catalog-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
}

.catalog-jump-links a {
  color: #1f5c38;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(31, 92, 56, 0.35);
  text-underline-offset: 0.3rem;
}

.service-band {
  scroll-margin-top: calc(var(--nav-h, 68px) + 1rem);
  padding: 4.5rem 0;
  background: #f6f9ee;
}

.service-band-muted {
  background: #eef4f7;
}

.service-band-heading {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.service-band-heading h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: 0;
}

.service-band-heading p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

.service-showcase {
  display: grid;
  gap: 1.4rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(23, 71, 43, 0.16);
}

.service-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e6ece7;
  border: 1px solid rgba(23, 71, 43, 0.13);
  border-radius: 8px;
}

.service-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-copy {
  align-self: center;
  max-width: 34rem;
}

.service-copy h3 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  letter-spacing: 0;
}

.service-copy > p:not(.service-status) {
  margin: 0 0 1.35rem;
  font-size: 1rem;
  line-height: 1.7;
}

.service-status {
  margin: 0 0 0.65rem;
  color: #a84908;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.service-copy .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.catalog-back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.65rem 0.9rem;
  color: #17472b;
  font-size: 0.85rem;
  font-weight: 750;
  background: #fff;
  border: 1px solid rgba(23, 71, 43, 0.2);
  border-radius: 6px;
}

.compact-catalog { padding-top: 2.25rem; padding-bottom: 3rem; }
.compact-product-band { display: grid; gap: 1rem; padding: 1.35rem 0; border-top: 1px solid rgba(23,71,43,.16); }
.compact-product-head { display: grid; gap: .35rem; }
.compact-product-head h2 { margin: 0; font-size: clamp(1.35rem,3vw,2rem); letter-spacing: 0; }
.compact-product-head p { max-width: 52rem; margin: 0; font-size: .9rem; line-height: 1.55; }
.compact-feature-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .4rem 1rem; margin: 0; padding: 0; list-style: none; }
.compact-feature-list li { position: relative; min-width: 0; padding-left: 1rem; color: #355744; font-size: .8rem; line-height: 1.45; }
.compact-feature-list li::before { content: ""; position: absolute; top: .5em; left: 0; width: 6px; height: 6px; background: #f2740d; border-radius: 50%; }
.compact-media { min-width: 0; overflow: hidden; }
.compact-media .phone-gallery { display: flex; gap: .75rem; padding-bottom: .4rem; overflow-x: auto; }
.compact-media .phone-gallery > * { flex: 0 0 132px; }
.compact-media .phone-shot { height: 278px; aspect-ratio: auto; }
.compact-media > img { display: block; width: auto; max-width: 100%; height: 260px; object-fit: contain; object-position: left center; border-radius: 6px; }
.compact-media .service-video-pair { width: min(100%,420px); height: 260px; border-radius: 6px; }
.compact-action { justify-self: start; min-height: 44px; }

@media (min-width: 760px) {
  .compact-product-band { grid-template-columns: minmax(15rem,.72fr) minmax(0,1.28fr); column-gap: 2rem; }
  .compact-product-head, .compact-feature-list { grid-column: 1; }
  .compact-media { grid-column: 2; grid-row: 1 / span 3; }
  .compact-action { grid-column: 1; }
}

@media (max-width: 560px) {
  .compact-catalog { padding-top: 1.25rem; }
  .compact-product-band { padding: 1.1rem 0; }
  .compact-feature-list { grid-template-columns: 1fr; }
  .compact-media .phone-gallery > * { flex-basis: 118px; }
  .compact-media .phone-shot { height: 248px; }
  .compact-media > img, .compact-media .service-video-pair { height: 220px; }
}

@media (min-width: 800px) {
  .service-showcase {
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    min-height: 28rem;
    padding: 3rem 0;
    align-items: center;
  }

  .service-showcase:nth-of-type(even) .service-media {
    order: 2;
  }

  .service-showcase:nth-of-type(even) .service-copy {
    justify-self: end;
  }
}

@media (max-width: 980px) {
  .nav-links {
    overflow: visible !important;
  }

  .services-menu {
    position: static;
  }

  .services-menu-panel {
    position: fixed;
    top: calc(var(--nav-h, 68px) + 0.5rem);
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    max-height: calc(100dvh - var(--nav-h, 68px) - 1.5rem);
    transform: translateY(0.45rem);
  }

  .services-menu:hover .services-menu-panel,
  .services-menu:focus-within .services-menu-panel,
  .services-menu[data-open="true"] .services-menu-panel {
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .services-menu-trigger::after {
    display: none;
  }

  .services-menu-panel {
    grid-template-columns: 1fr;
  }

  .services-menu-group + .services-menu-group {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(23, 71, 43, 0.12);
  }

  .catalog-container {
    width: min(100% - 1.5rem, 74rem);
  }

  .services-hero {
    padding-top: calc(var(--nav-h, 68px) + 2.75rem);
  }

  .service-band {
    padding: 3.5rem 0;
  }
}

@media (max-width: 360px) {
  .services-menu {
    flex: 0 0 auto;
  }

  .services-menu-trigger {
    width: auto;
    padding-inline: 6px;
    white-space: nowrap;
  }

  .services-menu-panel {
    right: 0.5rem;
    left: 0.5rem;
  }

  .services-menu-mobile-nav {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.25rem;
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(23, 71, 43, 0.14);
  }

  .services-menu-mobile-nav a,
  .nav-links .services-menu-mobile-nav a {
    padding: 0.6rem 0.25rem;
    font-size: 0.7rem;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-menu-trigger::after,
  .services-menu-panel {
    transition: none;
  }
}

/* Editorial product catalog and portfolio service layouts. */
.brand-mark {
  display: block;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
}

.catalog-page {
  color: #183c26;
  background: #f8faf6;
}

.catalog-hero {
  padding: calc(var(--nav-h, 68px) + 3.5rem) 0 3.75rem;
  border-bottom: 1px solid rgba(23, 71, 43, 0.14);
}

.catalog-hero .catalog-back-link {
  margin-bottom: 2.1rem;
}

.catalog-eyebrow,
.editorial-kicker,
.portfolio-number {
  margin: 0 0 0.75rem;
  color: #b5540a;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-hero h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.catalog-hero > .catalog-container > p:last-child {
  max-width: 43rem;
  margin: 1.15rem 0 0;
  color: #486653;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.editorial-hero {
  background: #ffffff;
}

.editorial-product {
  scroll-margin-top: calc(var(--nav-h, 68px) + 1rem);
  padding: clamp(3.5rem, 8vw, 6.75rem) 0;
  background: #f4f7ef;
  border-bottom: 1px solid rgba(23, 71, 43, 0.1);
}

.editorial-product:nth-child(even) {
  background: #ffffff;
}

.editorial-product-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.editorial-product-grid-solo {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.editorial-product-grid-solo .editorial-copy {
  max-width: 34rem;
}

.editorial-product-grid-solo .editorial-features {
  justify-content: center;
}

.editorial-product:nth-child(even) .editorial-copy {
  order: 2;
}

.editorial-copy {
  max-width: 31rem;
}

.editorial-copy h2,
.portfolio-copy h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.editorial-copy > p:not(.editorial-kicker),
.portfolio-copy > div > p:not(.portfolio-number) {
  margin: 0;
  color: #496754;
  font-size: 1rem;
  line-height: 1.72;
}

.editorial-soon-pill {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding: 4px 14px;
  border-radius: 50px;
  background: rgba(242, 116, 13, 0.1);
  border: 1px solid rgba(242, 116, 13, 0.3);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b5540a;
}

.btn-disabled {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 26px;
  border-radius: 50px;
  background: #eceee9;
  color: #8a938c;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: not-allowed;
}

.editorial-features,
.portfolio-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.15rem;
  margin: 1.5rem 0 1.75rem;
  padding: 1.15rem 0;
  list-style: none;
  border-top: 1px solid rgba(23, 71, 43, 0.16);
  border-bottom: 1px solid rgba(23, 71, 43, 0.16);
}

.editorial-features li,
.portfolio-features li {
  position: relative;
  padding-left: 1rem;
  color: #345841;
  font-size: 0.82rem;
  line-height: 1.45;
}

.editorial-features li::before,
.portfolio-features li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 6px;
  height: 6px;
  background: #e66d10;
  border-radius: 50%;
}

.editorial-media.phone-gallery,
.love-gallery.phone-gallery {
  display: flex;
  justify-content: center;
  gap: clamp(0.55rem, 1.6vw, 1.1rem);
  min-width: 0;
  padding: 0.75rem 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.editorial-media .phone-shot {
  flex: 0 0 clamp(112px, 15vw, 160px);
  height: clamp(250px, 35vw, 355px);
}

.expense-gallery .phone-shot {
  flex-basis: clamp(140px, 19vw, 188px);
}

.desktop-showcase {
  overflow: hidden;
  background: #e9eee7;
  border: 1px solid rgba(23, 71, 43, 0.15);
  border-radius: 8px;
}

.desktop-showcase img {
  display: block;
  width: 100%;
  height: clamp(250px, 35vw, 390px);
  object-fit: contain;
}

.portfolio-hero {
  color: #163b25;
  background: #edf3e8;
}

.portfolio-service {
  scroll-margin-top: calc(var(--nav-h, 68px) + 1rem);
  padding: clamp(3.75rem, 8vw, 7rem) 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(23, 71, 43, 0.12);
}

.portfolio-service:nth-child(even) {
  background: #eef4f5;
}

.portfolio-media {
  width: 100%;
  min-width: 0;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.portfolio-media-wide {
  height: clamp(260px, 51vw, 590px);
  overflow: hidden;
  background: #e5ebe5;
  border: 1px solid rgba(23, 71, 43, 0.13);
  border-radius: 8px;
}

.portfolio-media-wide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-service:nth-of-type(4) .portfolio-media-wide img,
.portfolio-service:nth-of-type(5) .portfolio-media-wide img {
  object-fit: contain;
}

.portfolio-copy {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) minmax(14rem, 0.85fr) auto;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.portfolio-copy .portfolio-features {
  margin: 0;
}

.portfolio-copy .btn {
  white-space: nowrap;
}

.video-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem);
  max-width: 38rem;
  margin-inline: auto;
}

.video-showcase video {
  display: block;
  width: 100%;
  max-height: 430px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #14291b;
  border-radius: 8px;
}

.love-gallery {
  max-width: 48rem;
  margin-inline: auto;
}

.love-gallery .phone-shot {
  flex: 0 0 clamp(135px, 20vw, 205px);
  height: clamp(295px, 43vw, 445px);
}

.love-gallery .phone-shell img {
  object-position: center;
}

.love-video-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 1.35rem);
  width: min(100%, 34rem);
  margin-inline: auto;
}

.love-glow-frame {
  display: block;
  aspect-ratio: 478 / 850;
  padding: 5px;
  overflow: hidden;
  background: #fff7f9;
  border: 1px solid rgba(226, 92, 132, 0.62);
  border-radius: 8px;
  box-shadow: 0 0 28px rgba(226, 92, 132, 0.32);
}

.love-glow-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.model-showcase {
  width: min(100%, 68rem);
  height: clamp(360px, 55vw, 620px);
  margin-inline: auto;
  overflow: hidden;
  background: #dfe8df;
  border: 1px solid rgba(23, 71, 43, 0.14);
  border-radius: 8px;
}

.model-showcase iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.taxverse-gallery {
  display: flex;
  align-items: stretch;
  gap: 0.8rem;
  min-width: 0;
  padding-bottom: 0.4rem;
  overflow-x: auto;
}

.taxverse-shot {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: clamp(180px, 17vw, 215px);
  aspect-ratio: var(--shot-ratio);
  overflow: hidden;
  background: #eef2ed;
  border: 1px solid rgba(23, 71, 43, 0.14);
  border-radius: 8px;
}

.taxverse-shot img {
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.taxverse-shot--desktop { min-width: 13rem; }
.taxverse-shot--mobile { min-width: 5.5rem; }

@media (max-width: 820px) {
  .editorial-product-grid,
  .portfolio-copy {
    grid-template-columns: 1fr;
  }

  .editorial-product:nth-child(even) .editorial-copy {
    order: 0;
  }

  .editorial-copy {
    max-width: 38rem;
  }

  .portfolio-copy {
    align-items: start;
  }

  .portfolio-copy .portfolio-features {
    width: min(100%, 34rem);
  }

  .portfolio-copy .btn {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .catalog-hero {
    padding-top: calc(var(--nav-h, 68px) + 2.4rem);
    padding-bottom: 2.8rem;
  }

  .catalog-hero .catalog-back-link {
    margin-bottom: 1.6rem;
  }

  .editorial-product,
  .portfolio-service {
    padding: 3.25rem 0;
  }

  .editorial-product-grid {
    gap: 1.8rem;
  }

  .editorial-features,
  .portfolio-features {
    grid-template-columns: 1fr;
  }

  .editorial-media.phone-gallery,
  .love-gallery.phone-gallery {
    justify-content: flex-start;
    margin-inline: -0.75rem;
    padding-inline: 0.75rem;
  }

  .editorial-media .phone-shot {
    flex-basis: 126px;
    height: 276px;
  }

  .expense-gallery .phone-shot {
    flex-basis: 150px;
  }

  .love-gallery .phone-shot {
    flex-basis: 148px;
    height: 320px;
  }

  .portfolio-media-wide {
    height: 270px;
  }

  .video-showcase {
    gap: 0.65rem;
  }

  .taxverse-gallery {
    display: flex;
    gap: 0.65rem;
    margin-inline: -0.75rem;
    padding: 0 0.75rem 0.5rem;
    overflow-x: auto;
  }

  .taxverse-shot {
    flex: 0 0 auto;
    height: 240px;
  }
}
