/* Ellery Contracting brand layer. Loaded after the template's site.css. */

/* The template sets some variables on body as well as :root, so override both. */
:root,
body {
  /* Brand colors. Red is sampled from the logo file. */
  --ellery-red: #ec1c24;
  --ellery-red-dark: #c0161d;
  --ellery-black: #111111;
  --ellery-grey: #a7a9ac;

  --_colors---theme-colors--primary: var(--ellery-red);
  --_colors---theme-colors--secondary: var(--ellery-black);
  --_colors---theme-colors--primary-02: var(--ellery-grey);
  --_colors---theme-colors--body-title: var(--ellery-black);
  --blue-type-02: var(--ellery-red);
  --light-blue: rgba(255, 255, 255, 0.08);

  /* Fonts: Poppins for UI and body text (matches the logo tagline and the
     client's printed guide), a classic serif for headlines (echoes the logo). */
  --_fonts---body-font: var(--font-body), "Poppins", sans-serif;
  --_fonts---heading-font: var(--font-body), "Poppins", sans-serif;
  --ellery-display-font: var(--font-display), "Cormorant Garamond", Georgia, serif;
}

/* Editorial serif headlines */
.hero-title-02,
.about-title-02,
.service-section-title,
.service-card-title,
.build-title,
.review-title-multi,
.career-title,
.faq-title,
.cta-home-title,
.footer-title,
.choose-card-title,
.vision-title {
  font-family: var(--ellery-display-font);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-title-02 {
  max-width: 760px;
  line-height: 1;
}

/* Keep long words whole; scale large headlines down on phones */
.about-title-02,
.service-section-title,
.build-title,
.review-title-multi,
.career-title,
.faq-title,
.cta-home-title {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}
@media (max-width: 767px) {
  .about-title-area .about-title-02._02 {
    max-width: 100%;
  }
}
@media (max-width: 479px) {
  .hero-title-02 {
    font-size: 44px;
  }
  .about-title-02,
  .career-title,
  .cta-home-title {
    font-size: 34px;
    line-height: 1.1;
  }
  .service-section-title,
  .build-title,
  .review-title-multi,
  .faq-title {
    font-size: 30px;
    line-height: 1.1;
  }
}

/* Sticky call / quote bar on phones */
.mobile-action-bar {
  display: none;
}
@media (max-width: 767px) {
  .mobile-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--ellery-black);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.18);
  }
  .mobile-action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
  }
  .mobile-action.quote {
    background: var(--ellery-red);
  }
  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header: wide logo and a phone link beside the quote button */
.nav-logo-image {
  width: 210px;
  max-width: 210px;
  height: auto;
}
.nav-phone {
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-phone:hover {
  color: var(--ellery-red);
}
.nav-phone-mobile {
  display: none;
}
.info-button-box .button-text-front,
.info-button-box .button-text-back {
  white-space: nowrap;
}
@media (max-width: 1279px) {
  .nav-phone {
    display: none;
  }
  .nav-logo-image {
    width: 170px;
    max-width: 170px;
  }
}
@media (max-width: 991px) {
  .nav-logo-image {
    width: 170px;
    max-width: 170px;
  }
  .nav-phone-mobile {
    display: block;
  }
}
@media (max-width: 479px) {
  .nav-logo-image {
    width: 150px;
    max-width: 150px;
  }
}

/* Hero: project photo replaces the template's background video */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--ellery-black);
}
.hero-slide {
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}
.hero-slide.is-active {
  opacity: 1;
}
/* Each photo drifts for its whole time on screen, including while it fades
   out, so nothing snaps back. Odd and even slides drift opposite ways. */
.hero-slides.is-playing .hero-slide.is-active,
.hero-slides.is-playing .hero-slide.is-leaving {
  animation: hero-drift-a 9s linear both;
}
.hero-slides.is-playing .hero-slide:nth-child(even).is-active,
.hero-slides.is-playing .hero-slide:nth-child(even).is-leaving {
  animation-name: hero-drift-b;
}
@keyframes hero-drift-a {
  from {
    transform: scale(1.04) translate3d(-1%, 0, 0);
  }
  to {
    transform: scale(1.14) translate3d(1.5%, -1%, 0);
  }
}
@keyframes hero-drift-b {
  from {
    transform: scale(1.14) translate3d(1.5%, 1%, 0);
  }
  to {
    transform: scale(1.04) translate3d(-1%, 0, 0);
  }
}
.hero-slides-controls {
  position: absolute;
  right: 30px;
  top: 50%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  transform: translateY(-50%);
  color: #fff;
}
.hero-slides-ticks {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-slides-ticks li {
  width: auto;
}
.hero-slides-ticks button {
  display: block;
  width: 44px;
  padding: 7px 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.hero-slides-ticks button::before {
  content: "";
  display: block;
  height: 2px;
  margin-left: auto;
  width: 20px;
  background: rgba(255, 255, 255, 0.45);
  transition:
    width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s;
}
.hero-slides-ticks button:hover::before {
  background: #fff;
}
.hero-slides-ticks button.is-active::before {
  width: 44px;
}
.hero-slides-ticks button span {
  display: block;
  height: 2px;
  margin-top: -2px;
  background: var(--ellery-red);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-slides-ticks button.is-active span {
  transform: scaleX(1);
}
.hero-slides-ticks button.is-active span[style] {
  animation: hero-tick linear both;
}
@keyframes hero-tick {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.hero-slides-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}
.hero-slides-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.35);
  color: #fff;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.hero-slides-toggle:hover {
  background: var(--ellery-red);
  border-color: var(--ellery-red);
}
.hero-slides-controls button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@media (max-width: 767px) {
  .hero-slides-controls {
    /* tucked under the menu button, clear of the title and the quote card */
    top: 100px;
    right: 20px;
    flex-direction: row;
    align-items: center;
    transform: none;
  }
  .hero-slides-ticks,
  .hero-slides-label {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}
.hero-video .video-overlay {
  background-image: linear-gradient(90deg, rgba(10, 10, 10, 0.78) 0%, rgba(10, 10, 10, 0.45) 55%, rgba(10, 10, 10, 0.2) 100%);
}

/* Project cards: neighborhood label above the title */
.project-location {
  color: var(--ellery-red);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Process accordion: button under the title */
.build-left-action {
  margin-top: 32px;
}

/* Reviews: initials instead of customer photos */
.review-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ellery-red);
  color: #fff;
  font-weight: 600;
  font-size: 22px;
}
@media (max-width: 767px) {
  .review-initials {
    font-size: 15px;
  }
}
blockquote.review-text {
  margin: 0;
  padding: 0;
  border: 0;
}

/* Founder teaser (template career section) */
.career-thumbnail-box.founder-thumbnail {
  background-image: linear-gradient(90deg, rgba(17, 17, 17, 0.88), rgba(17, 17, 17, 0.15)),
    url("/images/projects/kentucky-ave-se/kentucky-ave-se-36.jpg");
  background-position: 0 0, 50% 50%;
}
.career-user-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

/* CTA band */
.cta,
.cta.section-padding {
  background-image: linear-gradient(270deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.25) 100%),
    url("/images/projects/kentucky-ave-se/kentucky-ave-se-53.jpg");
}
@media (max-width: 767px) {
  .cta,
  .cta.section-padding {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
      url("/images/projects/kentucky-ave-se/kentucky-ave-se-53.jpg");
  }
}

/* Hero: Google mark in place of the template's star graphic */
.hero-google {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
}

/* Services intro: the big outlined word over the photo, as in the template */
.overlay-title {
  font-family: var(--font-body), "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  /* The animation scales the word to 1.6x, so cap it to stay inside the screen */
  font-size: min(120px, 10.5vw);
}

/* Services intro: keep the section pinned until its wipe animation is done.
   The template fixed the wrapper at 500vh, which released the pin early once
   the grid grew to eight cards and let the photo scroll away mid-animation.
   Now the wrapper is as tall as the grid plus 320vh of pinned scrolling, and
   the animation (motion/definitions.js, m187) runs over a fixed 450% of the
   viewport, so the cards have faded in before anything moves. */
.service-milti {
  height: auto;
}
.service-milti::after {
  content: "";
  display: block;
  height: 320vh;
}
/* The photo layer always floats over the section. The template takes it out
   of the page flow only once scrolling starts; with the wrapper's height now
   following its contents, that made the page 100vh shorter mid-scroll and
   threw every scroll animation below this section off by a screen. */
.service-milti .service-animate-box {
  position: absolute;
  top: 0;
  left: 0;
}

/* Services: call-to-action card that fills the grid's eighth slot */
.service-quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  height: 100%;
  min-height: 320px;
  padding: 40px;
  background-color: var(--ellery-black);
  color: #fff;
}
.service-quote-card .service-card-title {
  color: #fff;
  font-size: 34px;
  line-height: 1.1;
  text-transform: none;
}
.service-quote-card p {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 16px;
}
.service-quote-card .service-quote-phone {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}
.service-quote-card .service-quote-phone:hover {
  color: var(--ellery-red);
}
.service-quote-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

/* Footer */
.image-overlay {
  background-color: rgba(12, 12, 12, 0.9);
}
.footer-logo img {
  width: 100%;
  height: auto;
}
.footer-contact-link[href^="mailto:"] {
  text-transform: none;
}
.footer-about {
  color: rgba(255, 255, 255, 0.7);
  max-width: 360px;
  margin-top: 20px;
  line-height: 1.6;
}

/* ===================== Inner pages ===================== */

.nav-phone.dark {
  color: var(--ellery-black);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.breadcrumbs a {
  color: inherit;
  opacity: 0.75;
  text-decoration: none;
}
.breadcrumbs a:hover {
  opacity: 1;
  color: var(--ellery-red);
}
.service-banner-overlay .breadcrumbs {
  color: #fff;
}
.service-details-title {
  font-family: var(--ellery-display-font);
  font-weight: 600;
  max-width: 900px;
  line-height: 1.05;
}

/* Page intro (index pages) */
.page-intro-title {
  font-family: var(--ellery-display-font);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  max-width: 900px;
  margin: 16px 0 20px;
  color: var(--ellery-black);
}
.page-intro-text {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.6;
}

/* Service sidebar */
.service-sidebar {
  position: sticky;
  top: 24px;
}
.siderbar-single-item.is-current .related-service-title {
  color: var(--ellery-red);
}
.siderbar-single-item:hover .related-service-title {
  color: var(--ellery-red);
}
.sidebar-quote {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
}
.sidebar-quote-title {
  color: #fff;
  font-family: var(--ellery-display-font);
  font-size: 28px;
  font-weight: 600;
}
.sidebar-quote p {
  margin: 0;
}
.sidebar-quote-phone {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}
.sidebar-quote-phone:hover {
  color: var(--ellery-red);
}
@media (max-width: 991px) {
  .service-sidebar {
    position: static;
  }
}

/* Rich text blocks */
.single-details-block .ui-richtext h2,
.details-process-title {
  font-family: var(--ellery-display-font);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  color: var(--ellery-black);
  margin: 0 0 16px;
}
.single-details-block .ui-richtext p {
  margin: 0 0 14px;
  line-height: 1.7;
}
.single-details-block {
  margin-bottom: 24px;
}
.details-block-intro {
  margin: -4px 0 24px;
  line-height: 1.7;
}
.process-card-number {
  color: var(--ellery-red);
  margin-right: 10px;
}
/* Card grids must shrink on phones (the template's 1fr columns can't) */
.process-card-box {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.single-process-card {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 479px) {
  .process-card-box {
    grid-template-columns: minmax(0, 1fr);
  }
}
.process-card-box.is-odd > .single-process-card:last-child {
  grid-column: 1 / -1;
}

/* What's included */
.included-list {
  counter-reset: included;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.included-list li {
  counter-increment: included;
  position: relative;
  padding: 20px 0 20px 56px;
  border-top: 1px solid var(--_colors---theme-colors--border-color);
}
.included-list li::before {
  content: counter(included, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 22px;
  color: var(--ellery-red);
  font-weight: 600;
}
.included-list h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ellery-black);
}
.included-list p {
  margin: 0 !important;
}

/* Cost tiers */
.price-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.price-tier {
  padding: 24px;
  background: var(--_colors---theme-colors--body-color-04, #f5f5f5);
  border-top: 3px solid var(--ellery-grey);
}
.price-tier:nth-child(2) {
  border-top-color: var(--ellery-black);
}
.price-tier:nth-child(3) {
  border-top-color: var(--ellery-red);
}
.price-tier-level {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price-tier-range {
  font-family: var(--ellery-display-font);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ellery-black);
  margin: 10px 0 6px;
}
.price-tier-summary {
  font-weight: 500;
  margin-bottom: 12px;
}
.price-tier ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
}
.price-notes {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
}
.price-notes li + li {
  margin-top: 6px;
}
@media (max-width: 767px) {
  .price-tier-grid {
    grid-template-columns: 1fr;
  }
}

/* Featured project */
.featured-project-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.featured-project-images .is-large {
  grid-column: 1 / -1;
}
.featured-project-images .image-componant {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin: 8px 0 24px;
  padding: 0;
  list-style: none;
}
.featured-highlights li {
  position: relative;
  padding-left: 22px;
}
.featured-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  background: var(--ellery-red);
}
@media (max-width: 479px) {
  .featured-highlights {
    grid-template-columns: 1fr;
  }
}

/* Areas + related services */
.areas-related .container {
  display: flex;
  flex-direction: column;
  gap: 72px;
}
.areas-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}
.areas-block .service-section-title {
  margin-top: 16px;
}
.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.area-chips a {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--_colors---theme-colors--border-color);
  color: var(--ellery-black);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.area-chips a:hover {
  border-color: var(--ellery-red);
  color: var(--ellery-red);
}
.related-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  padding: 16px;
  color: inherit;
  text-decoration: none;
}
.related-card-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.related-card:hover .related-card-image img {
  transform: scale(1.04);
}
.areas-related {
  background: var(--_colors---theme-colors--body-color-04, #f5f5f5);
}
@media (max-width: 991px) {
  .areas-block,
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ answers: size to their content (the template fixes them at 65px) */
:root {
  interpolate-size: allow-keywords;
}
.faq-answer-box.active {
  height: auto;
}
.faq-answer-text {
  padding-bottom: 8px;
}

/* Area links wrap in a row (the template sets lists to a column) */
.area-chips {
  flex-direction: row;
}
.area-chips li {
  width: auto;
}
.areas-block {
  align-items: start;
}

.review-title {
  font-family: var(--ellery-display-font);
  font-weight: 600;
}

/* Service banner: drop the vertical "Read More" link on phones so it can't overlap the title */
@media (max-width: 767px) {
  .detaiuls-banner-more {
    display: none;
  }
}

/* Service page: quick-fact cards under the "Why Ellery" intro */
.why-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 0 32px;
}
.why-card {
  padding: 20px;
  border-left: 3px solid var(--ellery-red);
  background: var(--_colors---theme-colors--body-color-04, #f5f5f5);
}
.why-card-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ellery-black);
  margin-bottom: 6px;
}
.why-card p {
  margin: 0;
  line-height: 1.55;
}
@media (max-width: 479px) {
  .why-cards {
    grid-template-columns: 1fr;
  }
}
.areas-intro {
  margin-top: 16px;
  max-width: 560px;
  line-height: 1.7;
}

/* Cost factors (services without published price ranges) */
.cost-factors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.cost-factors li {
  padding: 20px;
  background: var(--_colors---theme-colors--body-color-04, #f5f5f5);
  border-top: 3px solid var(--ellery-red);
}
.cost-factors h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ellery-black);
}
.cost-factors p {
  margin: 0;
  line-height: 1.55;
}
@media (max-width: 479px) {
  .cost-factors {
    grid-template-columns: 1fr;
  }
}

/* ===================== Portfolio ===================== */

.portfolio-section {
  padding-top: 0;
}
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.portfolio-filter {
  padding: 10px 18px;
  border: 1px solid var(--_colors---theme-colors--border-color);
  background: #fff;
  color: var(--ellery-black);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.portfolio-filter:hover {
  border-color: var(--ellery-red);
  color: var(--ellery-red);
}
.portfolio-filter.is-active {
  background: var(--ellery-black);
  border-color: var(--ellery-black);
  color: #fff;
}
.portfolio-count {
  margin: 20px 0 28px;
  font-size: 14px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.portfolio-grid-item[hidden] {
  display: none;
}
.project-single-item {
  height: 100%;
}
.project-image-wrapper {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.project-image-wrapper .project-box-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-image-wrapper:hover .project-box-thumbnail {
  transform: scale(1.03);
}
.project-box-title {
  font-family: var(--ellery-display-font);
  font-weight: 600;
}
.project-box-title a {
  color: inherit;
  text-decoration: none;
}
.project-box-title a:hover {
  color: var(--ellery-red);
}
@media (max-width: 767px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* Project detail */
.overview-title,
.sidebar-title {
  font-family: var(--ellery-display-font);
  font-weight: 600;
}
.details-prject-content .single-details-block .ui-richtext h2 + p {
  margin-top: 0;
}
.details-prject-content .ui-richtext h2:not(:first-child) {
  margin-top: 28px;
}
.single-sidebar-meta.is-stacked {
  flex-direction: column;
  align-items: flex-start;
}
.sidebar-service-links {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-service-links a {
  color: inherit;
  font-weight: 500;
}
.sidebar-service-links a:hover {
  color: var(--ellery-red);
}
.sidebar-cta {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--_colors---theme-colors--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar-cta p {
  margin: 0;
  font-weight: 500;
}

.gallery-title {
  margin: 16px 0 32px;
}
.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.project-gallery-item {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.project-gallery-item.is-wide {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-gallery-item:hover img {
  transform: scale(1.03);
}
@media (max-width: 767px) {
  .project-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .project-gallery-item.is-wide {
    grid-column: span 2;
    grid-row: auto;
    aspect-ratio: 3 / 2;
  }
}

.gallery-dialog {
  width: min(1200px, 94vw);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.gallery-dialog::backdrop {
  background: rgba(10, 10, 10, 0.9);
}
.gallery-dialog-figure {
  margin: 0;
}
.gallery-dialog-figure img {
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
}
.gallery-dialog-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}
.gallery-dialog-btn {
  position: fixed;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.gallery-dialog-btn:hover {
  background: var(--ellery-red);
}
.gallery-dialog-btn.close {
  top: 16px;
  right: 16px;
}
.gallery-dialog-btn.prev {
  left: 16px;
  top: 50%;
}
.gallery-dialog-btn.next {
  right: 16px;
  top: 50%;
}

.more-projects {
  background: var(--_colors---theme-colors--body-color-04, #f5f5f5);
}
.more-projects-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.more-projects-head .service-section-title {
  margin-top: 16px;
}
.more-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 991px) {
  .more-projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark project sidebar: readable links and CTA */
.project-details-sidebar .sidebar-service-links a,
.project-details-sidebar .sidebar-cta p {
  color: #fff;
}
.project-details-sidebar .sidebar-service-links a:hover {
  color: var(--ellery-red);
}
.project-details-sidebar .sidebar-cta {
  border-top-color: rgba(255, 255, 255, 0.15);
}

/* Portfolio on phones: filters scroll sideways, card text sits below the photo */
@media (max-width: 767px) {
  .portfolio-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -20px;
    padding: 0 20px 6px;
    scrollbar-width: none;
  }
  .portfolio-filters::-webkit-scrollbar {
    display: none;
  }
  .portfolio-filter {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .project-single-item .project-image-wrapper {
    aspect-ratio: 4 / 3;
  }
  .project-single-item .project-card-block {
    position: relative;
    inset: auto;
    background: var(--ellery-black);
    padding: 20px;
  }
}
@media (max-width: 767px) {
  .project-single-item {
    display: flex;
    flex-direction: column;
  }
  .project-single-item .project-image-wrapper,
  .project-single-item .project-card-block {
    width: 100%;
  }
}

/* Grid columns must be able to shrink below their content's width */
.portfolio-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.more-projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.portfolio-grid-item,
.project-single-item {
  min-width: 0;
}
.project-box-title {
  white-space: normal;
}
@media (max-width: 991px) {
  .more-projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 767px) {
  .portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.featured-project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.text-link {
  color: var(--ellery-black);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--ellery-red);
  text-underline-offset: 4px;
}
.text-link:hover {
  color: var(--ellery-red);
}

/* ===================== Area pages ===================== */
.footer-area-links a {
  color: inherit;
  text-decoration: none;
}
.footer-area-links a:hover {
  color: var(--ellery-red);
}
.area-chips.static {
  margin-top: 8px;
}
.area-chips.static span {
  display: inline-block;
  padding: 8px 14px;
  background: var(--_colors---theme-colors--body-color-04, #f5f5f5);
  color: var(--ellery-black);
  font-weight: 500;
  font-size: 15px;
}
.included-list h3 a {
  color: inherit;
  text-decoration: none;
}
.included-list h3 a:hover {
  color: var(--ellery-red);
}
.area-facts .project-meta-text {
  line-height: 1.55;
}
.areas-index .container {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.areas-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 991px) {
  .related-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===================== Contact ===================== */
.contact-header {
  background-image: linear-gradient(90deg, rgba(12, 12, 12, 0.85), rgba(12, 12, 12, 0.35)),
    url("/images/projects/kentucky-ave-se/kentucky-ave-se-13.jpg");
  background-size: cover;
  background-position: center;
}
.contact-header .breadcrumbs {
  color: #fff;
}
.contact-hero-title {
  font-family: var(--ellery-display-font);
  font-weight: 600;
}
.contact-block-title {
  font-family: var(--ellery-display-font);
  font-weight: 600;
}
.quote-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.quote-form select.contact-page-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23111' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}
.quote-form .contact-button {
  background-color: var(--ellery-red);
  color: #fff;
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.quote-form .contact-button:hover {
  background-color: var(--ellery-red-dark);
}
.quote-form .contact-button:disabled {
  opacity: 0.7;
  cursor: wait;
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.quote-privacy {
  margin: 0;
  font-size: 13px;
}
.quote-error {
  padding: 12px 16px;
  background: #fdecec;
  border-left: 3px solid var(--ellery-red);
  color: #7a1015;
}
.quote-error a,
.quote-success a {
  color: inherit;
  font-weight: 600;
}
.quote-success {
  padding: 32px 8px;
}
.quote-success:focus {
  outline: none;
}
.quote-success-title {
  font-family: var(--ellery-display-font);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ellery-black);
  margin-bottom: 12px;
}
.contact-next {
  background: var(--_colors---theme-colors--body-color-04, #f5f5f5);
}
.contact-next-title {
  margin-top: 16px;
}
.contact-next-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 991px) {
  .contact-next-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 479px) {
  .form-row-2,
  .contact-next-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===================== Meet the Founder ===================== */
.founder-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
}
.founder-portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--_colors---theme-colors--body-color-04, #f5f5f5);
}
.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.founder-hero-text .page-intro-title {
  margin-bottom: 8px;
}
.founder-role {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ellery-red);
  margin-bottom: 24px;
}
.founder-lead {
  margin: 0 0 24px;
  padding: 0 0 0 20px;
  border-left: 3px solid var(--ellery-red);
  font-family: var(--ellery-display-font);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.3;
  color: var(--ellery-black);
}
.founder-quick {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.founder-quick li {
  position: relative;
  padding-left: 22px;
}
.founder-quick li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  background: var(--ellery-red);
}
.founder-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.founder-story {
  background: var(--_colors---theme-colors--body-color-04, #f5f5f5);
}
.founder-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 56px;
  align-items: start;
}
.founder-promise {
  position: sticky;
  top: 24px;
  padding: 40px;
  background: var(--ellery-black);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.founder-promise-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ellery-red);
}
.founder-promise-text {
  font-family: var(--ellery-display-font);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
}
.text-link.light {
  color: #fff;
}
.text-link.light:hover {
  color: var(--ellery-red);
}
.standards-title {
  margin-top: 16px;
}
.standards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.founder-credentials {
  background: var(--_colors---theme-colors--body-color-04, #f5f5f5);
}
.founder-credentials .why-cards {
  margin: 0;
}
.founder-credentials .why-card {
  background: #fff;
}
@media (max-width: 991px) {
  .founder-hero-grid,
  .founder-story-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .founder-promise {
    position: static;
  }
  .standards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 479px) {
  .standards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .founder-promise-text {
    font-size: 32px;
  }
}
.contact-header.section-padding {
  background-image: linear-gradient(90deg, rgba(12, 12, 12, 0.85), rgba(12, 12, 12, 0.35)),
    url("/images/projects/kentucky-ave-se/kentucky-ave-se-13.jpg");
  background-size: cover;
  background-position: center;
}

/* The quote form must never depend on an entrance animation */
.contact-from {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* ===================== FAQ & Resources ===================== */
.faq-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.faq-topics a {
  padding: 8px 14px;
  border: 1px solid var(--_colors---theme-colors--border-color);
  color: var(--ellery-black);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.faq-topics a:hover {
  border-color: var(--ellery-red);
  color: var(--ellery-red);
}
.faq-page {
  padding-top: 0;
}
.faq-page .container {
  display: flex;
  flex-direction: column;
  gap: 72px;
}
.faq-group {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px;
  scroll-margin-top: 120px;
}
.faq-group-head p {
  margin-top: 12px;
  line-height: 1.6;
}
.faq-group-head {
  align-self: start;
  position: sticky;
  top: 120px;
}
.faq-item {
  border-bottom: 1px solid var(--_colors---theme-colors--border-color);
}
.faq-item:first-child {
  border-top: 1px solid var(--_colors---theme-colors--border-color);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ellery-black);
}
.faq-item summary:hover h3 {
  color: var(--ellery-red);
}
.faq-item summary:focus-visible {
  outline: 2px solid var(--ellery-red);
  outline-offset: 4px;
}
.faq-item-icon {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}
.faq-item-icon::before,
.faq-item-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 2px;
  background: var(--ellery-red);
  transition: transform 0.25s ease;
}
.faq-item-icon::after {
  transform: rotate(90deg);
}
.faq-item[open] .faq-item-icon::after {
  transform: rotate(0deg);
}
.faq-item p {
  margin: 0 0 22px;
  max-width: 720px;
  line-height: 1.7;
}
.faq-link-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.faq-link-columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.faq-link-columns a:not(.icon-button):not(.sidebar-quote-phone) {
  color: var(--ellery-black);
  font-weight: 500;
}
.faq-link-columns a:not(.icon-button):not(.sidebar-quote-phone):hover {
  color: var(--ellery-red);
}
.faq-link-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ellery-red);
  margin-bottom: 12px;
}
.faq-side-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  background: var(--_colors---theme-colors--body-color-04, #f5f5f5);
}
.faq-side-cta p {
  margin: 0;
}
.faq-side-cta .sidebar-quote-phone {
  color: var(--ellery-black);
}

.resources-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 56px;
  align-items: center;
}
.guide-card {
  background: var(--ellery-black);
  color: #fff;
}
.guide-card-cover {
  display: block;
  padding: 28px 28px 0;
}
.guide-card-cover img {
  width: 100%;
  height: auto;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s ease;
}
.guide-card-cover:hover img {
  transform: translateY(-4px);
}
.guide-card-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.guide-card-title {
  font-family: var(--ellery-display-font);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
}
.guide-card-body p {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}
.resources-section {
  scroll-margin-top: 100px;
}
.resources-section.alt {
  background: var(--_colors---theme-colors--body-color-04, #f5f5f5);
}
.resources-head {
  max-width: 720px;
  margin-bottom: 40px;
}
.resources-head .service-section-title {
  margin-top: 16px;
}
.resources-head p {
  margin-top: 12px;
  line-height: 1.6;
}
.guide-topics {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--_colors---theme-colors--border-color);
  border: 1px solid var(--_colors---theme-colors--border-color);
}
.guide-topics li {
  padding: 28px;
  background: #fff;
}
.guide-topic-num {
  display: block;
  font-family: var(--ellery-display-font);
  font-size: 32px;
  font-weight: 600;
  color: var(--ellery-red);
  line-height: 1;
  margin-bottom: 14px;
}
.guide-topics h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ellery-black);
}
.guide-topics p {
  margin: 0;
  line-height: 1.6;
}
.process-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.two-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}
.two-lists .service-section-title {
  margin: 16px 0 24px;
}
.check-list,
.flag-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.check-list li,
.flag-list li {
  position: relative;
  padding: 14px 16px 14px 48px;
  background: #fff;
  line-height: 1.5;
}
.check-list li::before,
.flag-list li::before {
  position: absolute;
  left: 16px;
  top: 14px;
  width: 20px;
  text-align: center;
  font-weight: 700;
}
.check-list li::before {
  content: "?";
  color: var(--ellery-red);
}
.flag-list li::before {
  content: "!";
  color: #fff;
  background: var(--ellery-red);
  border-radius: 50%;
  height: 20px;
  line-height: 20px;
  font-size: 13px;
}
.compare-table-wrap {
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 560px;
}
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--_colors---theme-colors--border-color);
  text-align: left;
  vertical-align: top;
}
.compare-table thead th {
  background: var(--ellery-black);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.compare-table tbody th {
  font-weight: 500;
  color: var(--ellery-black);
}
.compare-table td {
  text-align: center;
  width: 120px;
}
.compare-table input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--ellery-red);
  cursor: pointer;
}
.compare-yes {
  color: var(--ellery-red);
  font-weight: 700;
  font-size: 18px;
}
.cost-table td {
  text-align: left;
  width: auto;
}
.cost-table tbody th a {
  color: var(--ellery-black);
  font-weight: 600;
}
.cost-table tbody th a:hover {
  color: var(--ellery-red);
}
.cost-range {
  display: block;
  font-weight: 600;
  color: var(--ellery-black);
  white-space: nowrap;
}
.cost-summary {
  display: block;
  font-size: 14px;
  margin-top: 2px;
}
.license-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.license-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.license-agency {
  font-weight: 600;
  color: var(--ellery-black);
}
.license-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
  padding-top: 8px;
}
.glossary {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
}
.glossary > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--_colors---theme-colors--border-color);
}
.glossary dt {
  font-weight: 600;
  color: var(--ellery-black);
  margin-bottom: 4px;
}
.glossary dd {
  margin: 0;
  line-height: 1.6;
}
.resources-faq-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding: 28px;
  background: var(--_colors---theme-colors--body-color-04, #f5f5f5);
}
.resources-faq-link p {
  margin: 0;
  font-weight: 500;
  color: var(--ellery-black);
}
@media (max-width: 991px) {
  .faq-group,
  .resources-hero-grid,
  .two-lists {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .faq-group-head {
    position: static;
  }
  .guide-card {
    max-width: 420px;
  }
  .guide-topics,
  .process-steps,
  .license-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .faq-link-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .guide-topics,
  .process-steps,
  .license-grid,
  .faq-link-columns,
  .glossary {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq-item summary h3 {
    font-size: 16px;
  }
}

/* Reviews, legal and 404 pages */
.review-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.review-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--_colors---theme-colors--body-color-04, #f5f5f5);
  border-top: 3px solid var(--ellery-red);
}
.review-card-stars {
  color: var(--ellery-red);
  letter-spacing: 2px;
}
.review-card blockquote {
  margin: 0;
  font-family: var(--ellery-display-font);
  font-size: 24px;
  line-height: 1.3;
  color: var(--ellery-black);
}
.review-card-meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}
.review-card-name {
  font-weight: 600;
  color: var(--ellery-black);
  font-size: 16px;
}
.review-card-meta a {
  color: var(--ellery-red);
  font-weight: 500;
}
.process-promises {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.process-promises .why-card {
  background: #fff;
}
.legal-updated {
  margin: 8px 0 32px;
  font-size: 14px;
}
.legal-body {
  max-width: 760px;
}
.legal-body h2 {
  font-size: 24px;
  margin: 32px 0 8px;
}
.not-found-actions {
  margin: 32px 0;
}
@media (max-width: 991px) {
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .process-promises {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .review-grid,
  .process-promises {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===================== Service pages (full-width sections) ===================== */
/* Section order: hero, "on this page" bar, why Ellery, photo ribbon, what
   matters, services in depth, cost, featured project, process. The reviews,
   FAQ and areas sections below them are shared components. */

.svc-section {
  padding: clamp(64px, 9vw, 120px) clamp(20px, 2.1vw, 30px);
  scroll-margin-top: 64px;
}
.svc-anchor {
  scroll-margin-top: 64px;
}
.svc-section > .container,
.svc-hero .container {
  margin-left: auto;
  margin-right: auto;
}
.svc-section p {
  margin: 0;
}
.svc-h2 {
  margin: 20px 0 0;
  font-family: var(--ellery-display-font);
  font-weight: 600;
  font-size: clamp(32px, 3.7vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--ellery-black);
}
.svc-h3 {
  margin: 0;
  font-family: var(--ellery-display-font);
  font-weight: 600;
  font-size: clamp(24px, 2.1vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--ellery-black);
}
.svc-head {
  margin-bottom: clamp(40px, 5vw, 72px);
}
.svc-head-split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px 64px;
  align-items: end;
}
.svc-head-text {
  max-width: 62ch;
  line-height: 1.65;
}
.svc-head-text p + a,
.svc-head-text p + p {
  display: inline-block;
  margin-top: 18px;
}

/* ---- Hero ---- */
.svc-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(88vh, 860px);
  background: var(--ellery-black);
  color: #fff;
  overflow: hidden;
}
.svc-hero-image {
  object-fit: cover;
  animation: svc-hero-settle 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes svc-hero-settle {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}
.svc-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0) 24%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0) 46%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.62) 45%, rgba(10, 10, 10, 0) 82%);
}
.svc-hero-body {
  position: relative;
  padding: 180px clamp(20px, 2.1vw, 30px) clamp(36px, 5vw, 64px);
}
.svc-hero-inner .breadcrumbs {
  color: #fff;
}
.svc-hero-inner .breadcrumbs ol {
  margin-bottom: 20px;
}
.svc-hero-title {
  max-width: 1000px;
  margin: 0;
  font-family: var(--ellery-display-font);
  font-weight: 600;
  font-size: clamp(36px, 4.5vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
  color: #fff;
}
.svc-hero-text {
  max-width: 52ch;
  margin: 24px 0 0;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}
.svc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 32px;
}
.svc-hero-phone {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.svc-hero-phone span {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--ellery-red);
  text-underline-offset: 5px;
}
.svc-hero-phone:hover span {
  color: var(--ellery-red);
}
.svc-hero-facts-bar {
  position: relative;
  padding: 0 clamp(20px, 2.1vw, 30px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 10, 10, 0.5);
}
.svc-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.svc-hero-facts li {
  position: relative;
  padding: 20px 24px 20px 22px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
}
.svc-hero-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 8px;
  height: 8px;
  background: var(--ellery-red);
}
.svc-hero-facts li + li {
  padding-left: 46px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.svc-hero-facts li + li::before {
  left: 24px;
}

/* ---- "On this page" bar ---- */
.svc-subnav {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 0 clamp(20px, 2.1vw, 30px);
  background: #fff;
  border-bottom: 1px solid var(--_colors---theme-colors--border-color);
}
.svc-subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}
.svc-subnav-list {
  display: flex;
  flex-direction: row;
  gap: 28px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.svc-subnav-list::-webkit-scrollbar {
  display: none;
}
.svc-subnav-list li {
  flex: 0 0 auto;
  width: auto;
}
.svc-subnav-list a {
  position: relative;
  display: block;
  padding: 19px 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #5a5a5a;
  text-decoration: none;
  transition: color 0.2s;
}
.svc-subnav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--ellery-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-subnav-list a:hover,
.svc-subnav-list a[aria-current="true"] {
  color: var(--ellery-black);
}
.svc-subnav-list a[aria-current="true"]::after {
  transform: scaleX(1);
}
.svc-subnav-cta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 20px;
}
.svc-subnav-phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--ellery-black);
  text-decoration: none;
  white-space: nowrap;
}
.svc-subnav-phone:hover {
  color: var(--ellery-red-dark);
}
.svc-subnav-quote {
  padding: 10px 18px;
  background: var(--ellery-red);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.svc-subnav-quote:hover {
  background: var(--ellery-black);
}
.svc-subnav a:focus-visible,
.svc-section a:focus-visible,
.svc-hero a:focus-visible {
  outline: 2px solid var(--ellery-red);
  outline-offset: 3px;
}

/* ---- Why Ellery ---- */
.svc-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px clamp(40px, 6vw, 96px);
  align-items: start;
}
.svc-overview-photo {
  position: relative;
  margin-top: 40px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  /* The site's signature cut corner, drawn without an overlay image */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 64px), calc(100% - 64px) 100%, 0 100%);
}
.svc-overview-photo img,
.svc-ribbon-item img,
.svc-project-photos img,
.svc-depth-inline img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.svc-overview-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 68ch;
  padding-top: 40px;
  line-height: 1.7;
}
.svc-lead {
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.5;
  color: var(--ellery-black);
}
.svc-overview-actions,
.svc-project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 16px;
}
.svc-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(48px, 6vw, 88px) 0 0;
  border-top: 1px solid var(--ellery-black);
}
.svc-facts > div {
  padding: 24px 24px 0 0;
}
.svc-facts > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--_colors---theme-colors--border-color);
}
.svc-facts dt {
  margin-bottom: 10px;
  font-family: var(--ellery-display-font);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ellery-black);
}
.svc-facts dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

/* ---- Photo ribbon ---- */
.svc-ribbon {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 5fr);
  gap: 6px;
  background: #fff;
}
.svc-ribbon-item {
  height: clamp(220px, 30vw, 460px);
  overflow: hidden;
}
.svc-ribbon-item img {
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-ribbon-item:hover img {
  transform: scale(1.04);
}

/* ---- What matters (dark band) ---- */
.svc-themes,
.svc-process {
  background: var(--ellery-black);
  color: rgba(255, 255, 255, 0.76);
}
.svc-themes p,
.svc-process p,
.svc-cost-cta p {
  color: rgba(255, 255, 255, 0.78);
}
.svc-themes .svc-h2,
.svc-themes .svc-h3,
.svc-process .svc-h2 {
  color: #fff;
}
.svc-themes-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 48px clamp(40px, 6vw, 96px);
  align-items: start;
}
.svc-themes-head {
  position: sticky;
  top: 104px;
}
.svc-themes-intro {
  max-width: 44ch;
  margin-top: 24px !important;
  line-height: 1.65;
}
.svc-themes-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.svc-themes-list li {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: auto;
  padding: 36px 36px 44px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  line-height: 1.65;
}
.svc-themes-list li:nth-child(even) {
  padding-left: 36px;
  padding-right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}
.svc-themes-list li::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--ellery-red);
}

/* ---- Services in depth ---- */
.svc-depth-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.svc-depth-stage {
  position: sticky;
  top: 96px;
}
.svc-depth-frame {
  position: relative;
  height: min(62vh, 620px);
  overflow: hidden;
  background: var(--_colors---theme-colors--body-color-04, #f5f5f5);
}
.svc-depth-photo {
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-depth-photo.is-shown {
  opacity: 1;
  transform: scale(1);
}
.svc-depth-caption {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-top: 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ellery-black);
}
.svc-depth-count {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}
.svc-depth-count i {
  font-style: normal;
  color: #8a8a8a;
}
.svc-depth-current {
  color: #5a5a5a;
}
.svc-depth-progress {
  height: 2px;
  margin-top: 14px;
  background: var(--_colors---theme-colors--border-color);
}
.svc-depth-progress span {
  display: block;
  height: 100%;
  background: var(--ellery-red);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-depth-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.svc-depth-block {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  width: auto;
  padding: 40px 0 44px;
  border-top: 1px solid var(--_colors---theme-colors--border-color);
}
.svc-depth-block:first-child {
  padding-top: 0;
  border-top: 0;
}
.svc-depth-block:last-child {
  padding-bottom: 0;
}
.svc-depth-index {
  padding-top: 6px;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #8a8a8a;
  transition: color 0.3s;
}
.svc-depth-block.is-active .svc-depth-index {
  color: var(--ellery-red-dark);
}
.svc-depth-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 66ch;
  line-height: 1.7;
}
.svc-depth-lead {
  margin-top: -6px !important;
  font-weight: 500;
  color: var(--ellery-red-dark);
}
.svc-depth-summary {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ellery-black);
}
.svc-depth-inline {
  display: none;
}

/* ---- Cost ---- */
.svc-cost {
  background: var(--_colors---theme-colors--body-color-04, #f5f5f5);
}
.svc-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff;
}
.svc-tier {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 44px);
}
.svc-tier + .svc-tier {
  border-left: 1px solid var(--_colors---theme-colors--border-color);
}
.svc-tier-level {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ellery-red-dark);
}
.svc-tier-range {
  margin: 18px 0 10px;
  font-family: var(--ellery-display-font);
  font-size: clamp(30px, 2.8vw, 40px);
  font-weight: 700;
  line-height: 1.05;
  font-variant-numeric: lining-nums;
  color: var(--ellery-black);
}
.svc-tier-summary {
  padding-bottom: 22px;
  font-weight: 500;
  color: var(--ellery-black);
  border-bottom: 1px solid var(--_colors---theme-colors--border-color);
}
.svc-tier ul,
.svc-project-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.svc-tier li,
.svc-project-highlights li {
  position: relative;
  width: auto;
  padding-left: 22px;
  line-height: 1.5;
}
.svc-tier li::before,
.svc-project-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--ellery-red);
}
.svc-factors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 80px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.svc-tiers + .svc-factors {
  margin-top: 48px;
}
.svc-factors li {
  width: auto;
  padding: 24px 0;
  border-top: 1px solid #c9c9c9;
}
.svc-factors h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ellery-black);
}
.svc-factors p {
  line-height: 1.6;
}
.svc-cost-foot {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 64px);
}
.svc-cost-notes h3 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ellery-black);
}
.svc-cost-notes ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.svc-cost-notes li {
  width: auto;
  padding: 14px 0;
  border-top: 1px solid #c9c9c9;
  font-size: 16px;
  line-height: 1.6;
}
.svc-cost-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(28px, 3vw, 44px);
  background: var(--ellery-black);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}
.svc-cost-cta-title {
  font-family: var(--ellery-display-font);
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 600;
  line-height: 1.08;
  text-transform: uppercase;
  color: #fff;
}
.svc-cost-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 8px;
}
.svc-cost-cta-phone {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.svc-cost-cta-phone:hover {
  color: var(--ellery-red);
}

/* ---- Featured project ---- */
.svc-project-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px clamp(40px, 5vw, 80px);
  align-items: start;
}
.svc-project-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.svc-project-main {
  grid-column: 1 / -1;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.svc-project-small {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.svc-project-copy {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  line-height: 1.7;
}
.svc-project-copy .project-location {
  margin-bottom: -6px;
  color: var(--ellery-red-dark);
}
.svc-project-copy .svc-h2 {
  margin-top: 0;
  font-size: clamp(30px, 3vw, 44px);
}
.svc-project-highlights {
  margin-top: 6px;
  padding-top: 22px;
  border-top: 1px solid var(--_colors---theme-colors--border-color);
  color: var(--ellery-black);
}

/* ---- Process (dark band) ---- */
.svc-process .svc-head-text {
  color: rgba(255, 255, 255, 0.76);
}
.svc-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.svc-steps li {
  position: relative;
  width: auto;
  padding: 32px 24px 0 0;
  line-height: 1.6;
}
.svc-steps li + li {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}
.svc-steps li::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--ellery-red);
}
.svc-steps li + li::before {
  left: 24px;
}
.svc-step-num {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.svc-steps h3 {
  margin: 14px 0 12px;
  font-family: var(--ellery-display-font);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
}
.svc-steps p {
  font-size: 16px;
}

/* ---- Tablet ---- */
@media (max-width: 1199px) {
  .svc-subnav-phone {
    display: none;
  }
  .svc-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 48px;
    border-top: 0;
  }
  .svc-steps li {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }
  .svc-steps li:nth-child(3n + 1) {
    padding-left: 0;
    border-left: 0;
  }
  .svc-steps li:nth-child(3n + 1)::before {
    left: 0;
  }
}
@media (max-width: 991px) {
  .svc-head-split,
  .svc-overview-grid,
  .svc-themes-grid,
  .svc-depth-grid,
  .svc-project-grid,
  .svc-cost-foot {
    grid-template-columns: minmax(0, 1fr);
  }
  .svc-head-split {
    align-items: start;
  }
  .svc-overview-copy {
    padding-top: 0;
  }
  .svc-themes-head,
  .svc-project-copy {
    position: static;
  }
  .svc-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }
  .svc-facts > div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  /* The pinned photo gives way to a photo inside each block */
  .svc-depth-stage {
    display: none;
  }
  .svc-depth-inline {
    display: block;
    grid-column: 1 / -1;
    aspect-ratio: 3 / 2;
    margin-bottom: 24px;
    overflow: hidden;
  }
  .svc-tiers {
    grid-template-columns: minmax(0, 1fr);
  }
  .svc-tier + .svc-tier {
    border-left: 0;
    border-top: 1px solid var(--_colors---theme-colors--border-color);
  }
  .svc-hero-body {
    padding-top: 150px;
  }
}
@media (max-width: 767px) {
  .svc-subnav-cta {
    display: none;
  }
  .svc-subnav {
    padding-right: 0;
  }
  .svc-subnav-list {
    gap: 22px;
    padding-right: 20px;
  }
  .svc-hero {
    min-height: 0;
  }
  .svc-hero-facts {
    grid-template-columns: minmax(0, 1fr);
    padding: 8px 0;
  }
  .svc-hero-facts li,
  .svc-hero-facts li + li {
    padding: 8px 0 8px 22px;
    border-left: 0;
  }
  .svc-hero-facts li::before,
  .svc-hero-facts li + li::before {
    left: 0;
    top: 14px;
  }
  .svc-ribbon {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .svc-ribbon-item:first-child {
    grid-column: 1 / -1;
  }
  .svc-themes-list,
  .svc-factors {
    grid-template-columns: minmax(0, 1fr);
  }
  .svc-themes-list li,
  .svc-themes-list li:nth-child(even) {
    padding: 28px 0 32px;
    border-left: 0;
  }
  .svc-steps {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }
  .svc-steps li,
  .svc-steps li + li {
    padding: 28px 0 32px;
    border-left: 0;
  }
  .svc-steps li::before,
  .svc-steps li + li::before {
    left: 0;
  }
  .svc-depth-block {
    grid-template-columns: minmax(0, 1fr);
    padding: 36px 0 40px;
  }
  .svc-depth-index {
    padding: 0 0 8px;
  }
}
@media (max-width: 479px) {
  .svc-facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .svc-facts > div,
  .svc-facts > div + div {
    padding: 20px 0 0;
    border-left: 0;
  }
  .svc-facts > div + div {
    border-top: 1px solid var(--_colors---theme-colors--border-color);
  }
  .svc-facts {
    row-gap: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .svc-hero-image {
    animation: none;
  }
  .svc-depth-photo,
  .svc-depth-progress span,
  .svc-ribbon-item img,
  .svc-subnav-list a::after {
    transition: none;
  }
}

/* ---- Service page motion ----
   Scroll reveals apply only under html.svc-motion, which ServiceMotion adds
   when JavaScript runs and the visitor hasn't asked for reduced motion.
   Without it everything is simply visible. */
:root {
  --svc-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hero entrance: the title rises out of a mask, then the rest follows */
@media (prefers-reduced-motion: no-preference) {
  .svc-hero-title {
    animation: svc-title-in 1.3s var(--svc-ease) 0.15s both;
  }
  .svc-hero-inner .breadcrumbs,
  .svc-hero-text,
  .svc-hero-actions {
    animation: svc-rise 1s var(--svc-ease) both;
  }
  .svc-hero-inner .breadcrumbs {
    animation-delay: 0.05s;
  }
  .svc-hero-text {
    animation-delay: 0.5s;
  }
  .svc-hero-actions {
    animation-delay: 0.65s;
  }
  .svc-hero-facts-bar {
    animation: svc-fade 1s ease-out 0.8s both;
  }
  .svc-hero-facts li {
    animation: svc-rise 0.9s var(--svc-ease) both;
  }
  .svc-hero-facts li:nth-child(1) {
    animation-delay: 0.9s;
  }
  .svc-hero-facts li:nth-child(2) {
    animation-delay: 1s;
  }
  .svc-hero-facts li:nth-child(3) {
    animation-delay: 1.1s;
  }
}
@keyframes svc-title-in {
  from {
    clip-path: inset(0 0 100% 0);
    transform: translateY(48px);
  }
  to {
    clip-path: inset(-10% 0 -10% 0);
    transform: translateY(0);
  }
}
@keyframes svc-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes svc-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Rise into place */
.svc-motion [data-reveal="up"] {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s var(--svc-ease),
    transform 1.1s var(--svc-ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.svc-motion [data-reveal="up"].is-in {
  opacity: 1;
  transform: none;
}

/* Photos wipe open from the bottom edge while settling back from a zoom */
.svc-motion [data-reveal="wipe"] img,
.svc-motion [data-reveal="frame"] {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.3s var(--svc-ease);
  transition-delay: calc(var(--i, 0) * 140ms);
}
.svc-motion [data-reveal="wipe"] img {
  scale: 1.18;
  transition:
    clip-path 1.3s var(--svc-ease),
    scale 1.9s var(--svc-ease),
    transform 1.2s var(--svc-ease);
  transition-delay: calc(var(--i, 0) * 140ms), calc(var(--i, 0) * 140ms), 0s;
}
.svc-motion [data-reveal="wipe"].is-in img,
.svc-motion [data-reveal="frame"].is-in {
  clip-path: inset(0);
}
.svc-motion [data-reveal="wipe"].is-in img {
  scale: 1;
}

/* What matters: the red tick draws after its item arrives */
.svc-motion .svc-themes-list li::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--svc-ease);
  transition-delay: calc(var(--i, 0) * 110ms + 350ms);
}
.svc-motion .svc-themes-list li.is-in::before {
  transform: scaleX(1);
}

/* Process: the steps arrive left to right, each tick drawing as it lands */
.svc-motion [data-reveal="steps"] li > * {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--svc-ease),
    transform 1.1s var(--svc-ease);
  transition-delay: calc(var(--i, 0) * 160ms + 150ms);
}
.svc-motion [data-reveal="steps"] li::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--svc-ease);
  transition-delay: calc(var(--i, 0) * 160ms);
}
.svc-motion [data-reveal="steps"].is-in li > * {
  opacity: 1;
  transform: none;
}
.svc-motion [data-reveal="steps"].is-in li::before {
  transform: scaleX(1);
}

/* Depth from scrolling, where the browser supports scroll-driven animation */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .svc-hero-image {
      animation:
        svc-hero-settle 1.6s var(--svc-ease) both,
        svc-hero-drift linear both;
      animation-timeline: auto, scroll(root);
      animation-range: normal, 0px 900px;
    }
    .svc-ribbon-item img {
      position: relative;
      top: -12%;
      height: 124%;
      animation: svc-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }
}
@keyframes svc-hero-drift {
  to {
    translate: 0 14%;
  }
}
@keyframes svc-drift {
  from {
    translate: 0 -7%;
  }
  to {
    translate: 0 7%;
  }
}

/* ===================== Pricing guide (/pricing) ===================== */
/* Built from the service page pieces (svc-hero, svc-section, svc-tiers and
   the data-reveal scroll animations). Only what's specific to it is here. */
.pg-factors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.pg-factors li {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 36px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  line-height: 1.65;
}
.pg-factors li + li {
  padding-left: 36px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}
.pg-factor-num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ellery-red);
}
.pg-why-foot {
  max-width: 70ch;
  margin-top: clamp(40px, 5vw, 64px) !important;
  line-height: 1.65;
}

.pg-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.pg-jump a {
  padding: 9px 16px;
  background: #fff;
  border: 1px solid var(--_colors---theme-colors--border-color);
  color: var(--ellery-black);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.pg-jump a:hover {
  border-color: var(--ellery-red);
  color: var(--ellery-red-dark);
}
.pg-guide {
  scroll-margin-top: 96px;
}
.pg-guide + .pg-guide {
  margin-top: clamp(48px, 6vw, 88px);
}
.pg-guide-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin-bottom: 20px;
}
.pg-guide-unit {
  font-size: 14px;
  color: var(--_colors---theme-colors--body-text);
}
.pg-guide-head .text-link {
  margin-left: auto;
  font-size: 15px;
}
.pg-tier {
  position: relative;
}
/* A red rule draws across the top of each tier as it arrives */
.pg-tier::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ellery-red);
  transform-origin: left;
}
.svc-motion .pg-tier::before {
  transform: scaleX(0);
  transition: transform 1s var(--svc-ease);
  transition-delay: calc(var(--i, 0) * 110ms + 300ms);
}
.svc-motion .pg-tier.is-in::before {
  transform: scaleX(1);
}
.pg-tier dl {
  display: flex;
  flex-direction: column;
  margin: 8px 0 0;
}
.pg-tier dl > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--_colors---theme-colors--border-color);
}
.pg-tier dl > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.pg-tier dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--_colors---theme-colors--body-text);
}
.pg-tier dd {
  margin: 4px 0 0;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ellery-black);
}
.svc-cost .svc-cost-foot {
  margin-top: clamp(48px, 6vw, 88px);
}

.pg-hidden-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.pg-hidden-head {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  line-height: 1.65;
}
.pg-hidden-head .svc-h2 {
  margin-top: 2px;
}
.pg-hidden-lead {
  font-weight: 500;
  color: var(--ellery-black);
}
.pg-rule {
  margin-top: 10px;
  padding: 28px;
  background: var(--ellery-black);
  color: rgba(255, 255, 255, 0.82);
  border-left: 3px solid var(--ellery-red);
}
.pg-rule-title {
  margin-bottom: 10px;
  font-family: var(--ellery-display-font);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}
.pg-rule p {
  color: inherit;
}
.pg-cost {
  border-bottom: 1px solid var(--_colors---theme-colors--border-color);
}
.pg-cost:first-child {
  border-top: 1px solid var(--_colors---theme-colors--border-color);
}
.pg-cost summary {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 16px;
  gap: 8px 16px;
  align-items: start;
  padding: 28px 0;
  cursor: pointer;
  list-style: none;
}
.pg-cost summary::-webkit-details-marker {
  display: none;
}
.pg-cost summary:focus-visible {
  outline: 2px solid var(--ellery-red);
  outline-offset: 4px;
}
.pg-cost-num {
  font-family: var(--ellery-display-font);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: lining-nums;
  color: var(--ellery-red);
}
.pg-cost-title h3 {
  margin: 0 0 6px;
  font-family: var(--ellery-display-font);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--ellery-black);
  transition: color 0.2s;
}
.pg-cost summary:hover h3 {
  color: var(--ellery-red-dark);
}
.pg-cost-title > span {
  display: block;
  line-height: 1.55;
}
.pg-cost summary .faq-item-icon {
  margin-top: 10px;
}
.pg-cost[open] .faq-item-icon::after {
  transform: rotate(0deg);
}
.pg-cost-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 0 36px 72px;
  line-height: 1.65;
}
@media (prefers-reduced-motion: no-preference) {
  .pg-cost[open] .pg-cost-body {
    animation: svc-rise 0.6s var(--svc-ease) both;
  }
}
.pg-cost-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pg-cost-group h4 {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ellery-black);
}
.pg-cost-group ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pg-cost-group li {
  position: relative;
  padding-left: 22px;
}
.pg-cost-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--ellery-red);
}
.pg-cost-group strong {
  color: var(--ellery-black);
  font-weight: 600;
}
.pg-callout {
  padding: 22px 24px;
  background: var(--_colors---theme-colors--body-color-04, #f5f5f5);
  border-left: 3px solid var(--ellery-red);
}
.pg-callout-title {
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--ellery-black);
}

.pg-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 3vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.pg-checks li {
  position: relative;
  padding: 20px 0 20px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  line-height: 1.5;
}
.pg-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--ellery-red);
}
.pg-checks li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 24px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
/* The tick lands just after its row */
.svc-motion .pg-checks li::after {
  opacity: 0;
  transition: opacity 0.4s ease;
  transition-delay: calc(var(--i, 0) * 110ms + 500ms);
}
.svc-motion .pg-checks li.is-in::after {
  opacity: 1;
}
.pg-bottom {
  max-width: 900px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-left: 28px;
  border-left: 3px solid var(--ellery-red);
}
.pg-bottom-label {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ellery-red);
}
.pg-bottom p {
  font-family: var(--ellery-display-font);
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.4;
  color: #fff;
}
@media (max-width: 991px) {
  .pg-hidden-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pg-hidden-head {
    position: static;
  }
  .pg-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .pg-factors,
  .pg-checks {
    grid-template-columns: minmax(0, 1fr);
  }
  .pg-factors li,
  .pg-factors li + li {
    padding: 28px 0;
    border-left: 0;
  }
  .pg-guide-head .text-link {
    margin-left: 0;
  }
  .pg-cost summary {
    grid-template-columns: 40px minmax(0, 1fr) 16px;
    gap: 8px 12px;
  }
  .pg-cost-num {
    font-size: 26px;
  }
  .pg-cost-body {
    padding-left: 0;
  }
}

/* Header: seven menu items need tighter spacing on small laptops and
   landscape tablets (below 992px the menu becomes a hamburger). */
@media (min-width: 992px) and (max-width: 1199px) {
  .menu-wrapper {
    gap: 14px;
  }
  .menu-wrapper .menu-item,
  .menu-wrapper .menu-dropdown {
    font-size: 15px;
  }
}
@media (min-width: 992px) and (max-width: 1039px) {
  .menu-wrapper {
    gap: 9px;
  }
}
.pg-cost-title > span {
  font-size: 16px;
}

/* ===================== Home page on phones ===================== */
@media (max-width: 767px) {
  /* Hero: one clear message and one action. The photo strip, the
     consultation card (the sticky bar already has Get a Quote) and the scroll
     hint are dropped, the text gets a darker backing, and the reviews line
     sits clear of the sticky call bar. */
  .hero-multi .hero-trigger-box,
  .hero-multi .hero-meta-box {
    display: none;
  }
  .hero-multi .hero-02-block.section-padding {
    height: max(640px, 100svh);
    padding-bottom: 0;
  }
  .hero-multi .hero-video-block {
    padding-bottom: 84px;
  }
  .hero-video .video-overlay {
    background-image: linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.78) 0%,
      rgba(10, 10, 10, 0.58) 50%,
      rgba(10, 10, 10, 0.8) 100%
    );
  }
  .hero-multi .hero-text-02 {
    color: rgba(255, 255, 255, 0.92);
  }
  .hero-multi .hero-content-02 {
    gap: 28px;
  }
  .hero-multi .hero-action-box {
    padding: 22px;
  }
  .hero-multi .hero-rating-box {
    flex-flow: row;
    align-items: center;
    gap: 12px;
  }

  /* Services: a shorter pinned intro (see m187p in motion/definitions.js)... */
  .service-milti::after {
    height: 130vh;
  }
  /* ...and compact rows instead of seven full-height cards. */
  .service-milti .service-collection-list {
    gap: 12px;
  }
  .service-milti .service-item-link {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 12px;
  }
  .service-milti .service-thumbnail-box {
    height: 104px;
  }
  .service-milti .service-thumbnail-box .cut-shape-box,
  .service-milti .card-button-box {
    display: none;
  }
  .service-milti .service-title-text {
    position: relative;
    gap: 6px;
    padding: 0 26px 0 0;
    border: 0;
  }
  .service-milti .service-title-text::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 9px;
    height: 9px;
    border: solid var(--ellery-red);
    border-width: 2px 2px 0 0;
    transform: translateY(-50%) rotate(45deg);
  }
  .service-milti .service-card-title._02 {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 19px;
    line-height: 1.2;
  }
  .service-milti .service-text-box._02 {
    padding: 0;
    border: 0;
  }
  .service-milti .servcie-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
  }
  .service-quote-card {
    min-height: 0;
    padding: 28px 24px;
  }


  /* Founder: a shorter scroll (see m54p in motion/definitions.js). */
  .career.founder {
    height: 215vh;
  }
}
@media (max-width: 767px) {
  /* Reviews: no stretched gap between the quote and the reviewer */
  .review .slider-item-content {
    height: auto;
    justify-content: flex-start;
    gap: 24px;
  }
  .review .author-image-title.multi {
    flex-direction: row;
    align-items: center;
  }
}
@media (max-width: 767px) {
  /* Hero grows with its content on short phones instead of clipping it */
  .hero-multi .hero-02-block.section-padding {
    height: auto;
    min-height: 100svh;
  }
  .hero-multi .hero-video,
  .hero-multi .hero-video-content,
  .hero-multi .video-box-container {
    min-height: inherit;
  }
  .hero-multi .hero-video-block {
    min-height: 100svh;
    padding-top: 108px;
  }
}
@media (max-width: 767px) {
  /* The photo layer joins the page flow so the hero is as tall as its text
     needs, and the slideshow's pause button moves beside the reviews line. */
  .hero-multi .hero-02-block.section-padding {
    padding-top: 0;
  }
  .hero-multi .hero-video {
    position: relative;
    width: 100%;
    height: auto;
  }
  .hero-multi .hero-video-content,
  .hero-multi .video-box-container,
  .hero-multi .hero-video-block {
    height: auto;
  }
  .hero-multi .hero-slides-controls {
    top: auto;
    right: 20px;
    bottom: 76px;
    transform: none;
  }
  .hero-multi .hero-slides-ticks {
    display: none;
  }
}
@media (max-width: 767px) {
  /* Photo runs edge to edge; the text keeps the page gutter */
  .hero-multi .hero-02-block.section-padding {
    padding-left: 0;
    padding-right: 0;
  }
  .hero-multi .hero-video-block {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (max-width: 380px) {
  .hero-multi .hero-title-02 {
    font-size: 33px;
  }
  .hero-multi .hero-text-02 {
    font-size: 15px;
  }
}
@media (max-width: 767px) {
  .hero-multi .video-block-content {
    padding-top: 18px;
  }
}
@media (max-width: 380px) {
  .cta-home-title {
    font-size: 29px;
  }
}

/* ---------- Blog (/blog and /blog/[slug]) ---------- */
.blog-header .breadcrumbs {
  margin-bottom: 4px;
}
.blog-header .breadcrumbs,
.blog-header .breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
}
.blog-header .breadcrumbs a:hover {
  color: #fff;
}
.blog-hero-text {
  max-width: 440px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}
.blog-hero-right .featured-slider-content {
  text-decoration: none;
}
.blog-hero-right .featured-image-block {
  height: 100%;
}
.blog-hero-right .featured-blog-image {
  transition: transform 0.8s var(--svc-ease, ease);
}
.blog-hero-right .featured-slider-content:hover .featured-blog-image {
  transform: scale(1.04);
}
.featured-post-title {
  max-width: 620px;
  margin: 0;
  line-height: 1.2;
}
.blog-list-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 40px;
}
.blog-collection-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.blog-collection-item {
  display: flex;
  min-width: 0;
}
.blog-card-item {
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.blog-thumbnail-box .image-componant {
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--svc-ease, ease);
}
.blog-card-item:hover .image-componant {
  transform: scale(1.05);
}
.blog-card-title {
  margin: 0;
  line-height: 1.3;
  transition: color 0.2s ease;
}
.blog-card-item:hover .blog-card-title {
  color: var(--ellery-red);
}
.blog-text {
  margin: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-category {
  white-space: nowrap;
}
.blog-card-item:not(.item-type-02) .blog-category {
  background-color: var(--_colors---theme-colors--body-color-01, #f1f1f1);
}

/* Post page */
.blog-post-banner .blog-details-block {
  margin-top: 56px;
}
.blog-top-meta {
  flex-wrap: wrap;
  gap: 8px 24px;
}
.blog-subtitle,
.blog-author-name {
  margin: 0;
  font-weight: 500;
  color: var(--ellery-black);
}
.blog-author-name {
  color: var(--_colors---theme-colors--body-text, #555);
}
.blog-content-details .ui-richtext p {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.75;
}
.blog-content-details .ui-richtext p:first-child {
  font-size: 21px;
  line-height: 1.6;
  color: var(--ellery-black);
}
.blog-content-details .ui-richtext p:last-child {
  margin-bottom: 0;
}
.blog-post-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 28px 32px;
  border-left: 3px solid var(--ellery-red);
  background: var(--_colors---theme-colors--body-color-04, #f5f5f5);
}
.blog-post-cta-title {
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 600;
  color: var(--ellery-black);
}
.blog-post-cta p {
  max-width: 520px;
  margin: 0;
}
@media (max-width: 991px) {
  .blog-collection-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .blog-hero-left,
  .blog-hero-right {
    padding-left: 0;
    padding-right: 0;
  }
  .blog-hero-content {
    padding-top: 120px;
  }
  .blog-list-head {
    margin-bottom: 28px;
  }
  .blog-post-banner .blog-details-block {
    margin-top: 36px;
  }
  .blog-content-details .ui-richtext p {
    font-size: 17px;
  }
  .blog-content-details .ui-richtext p:first-child {
    font-size: 19px;
  }
  .blog-post-cta {
    padding: 24px 20px;
  }
}
@media (max-width: 479px) {
  .blog-collection-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .blog-thumbnail-box {
    height: 220px;
  }
}

/* Blog type and spacing: serif display titles like the rest of the site */
.blog-hero-content {
  padding-bottom: 96px;
}
.blog-hero-title,
.featured-post-title,
.blog-card-title {
  font-family: var(--ellery-display-font);
  font-weight: 600;
}
.blog-hero-title {
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.05;
}
.featured-post-title {
  font-size: clamp(24px, 2.4vw, 34px);
}
.blog-card-title {
  font-size: clamp(21px, 1.7vw, 25px);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 767px) {
  .blog-hero-content {
    padding-bottom: 56px;
  }
}
.blog-title.scroll-title {
  margin: 0;
  font-family: var(--ellery-display-font);
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.1;
}

/* ---------- Why Ellery cards: a project photo in each, all rows aligned ---------- */
.why-choose-multi .single-choose-card {
  display: flex;
  flex-direction: column;
}
.why-choose-multi .choose-block-card {
  flex: 1;
}
/* Room for a two-line title, so the photos start at the same height in every card */
.why-choose-multi .choose-title-box {
  align-items: flex-start;
  min-height: 2.4em;
  font-size: clamp(20px, 1.6vw, 24px);
}
.why-choose-multi .choose-card-title {
  margin: 0;
  font-size: inherit;
  line-height: 1.2;
}
.why-choose-multi .choose-title-prefix {
  margin-top: 0.6em;
}
.why-choose-multi .choose-image-card {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.why-choose-multi .choose-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--svc-ease, ease);
}
.why-choose-multi .single-choose-card:hover .choose-photo {
  transform: scale(1.05);
}
.why-choose-multi .choose-card-text {
  margin: 0;
}
@media (max-width: 767px) {
  .why-choose-multi .choose-title-box {
    min-height: 0;
  }
  .why-choose-multi .choose-image-card {
    aspect-ratio: 16 / 9;
  }
}
/* Narrow four-column layout: titles can run to three lines */
@media (min-width: 992px) and (max-width: 1279px) {
  .why-choose-multi .choose-title-box {
    min-height: 3.6em;
    font-size: 19px;
  }
}

/* Google review badges link to the Google Business Profile */
.hero-rating-link,
.rating-link {
  color: inherit;
  text-decoration: none;
}
.hero-rating-link:hover .hero-rating-text,
.rating-link:hover .rating-title {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 4px;
}

/* Reviews page: full Google reviews, some with paragraph breaks */
.reviews-page .review-grid {
  display: block;
  columns: 3;
  column-gap: 20px;
}
.reviews-page .review-card {
  break-inside: avoid;
  margin-bottom: 20px;
  padding: 28px;
}
.reviews-page .review-card blockquote {
  white-space: pre-line;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.65;
}
@media (max-width: 991px) {
  .reviews-page .review-grid {
    columns: 2;
  }
}
@media (max-width: 600px) {
  .reviews-page .review-grid {
    columns: 1;
  }
  .reviews-page .review-card {
    padding: 22px;
  }
}
.review-card-stars-empty {
  opacity: 0.25;
}
.reviews-google-link {
  color: var(--ellery-red, #ec1c24);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Phones: home portfolio cards and review slider arrows ---------- */
@media (max-width: 767px) {
  /* Portfolio slider: the photo fills the card and a short caption (area and
     project name) sits over a dark fade along the bottom edge. The summary and
     button are dropped at this width; the whole card is the link. */
  .project-multi .project-item-link {
    display: block;
    position: relative;
    height: auto;
  }
  .project-multi .project-card-thumbnail {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }
  .project-multi .card-project-content {
    position: absolute;
    inset: auto 0 0 0;
    width: auto;
    padding: 72px 20px 20px;
    background-image: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.86) 62%);
    background-size: auto;
  }
  .project-multi .card-project-content .service-title-text {
    background-color: transparent;
    gap: 0;
  }
  .project-multi .card-project-content .project-location {
    color: #fff;
    margin-bottom: 6px;
  }
  .project-multi .card-project-content .service-card-title._02 {
    color: #fff;
    margin: 0;
  }
  .project-multi .card-project-content .service-text-box {
    display: none;
  }
  /* Review slider: the template parks the arrows off the left edge of the
     screen at this width. Bring them back under the quote. */
  .review .slider-arrow.left.multi.home-02 {
    left: 0;
    right: auto;
  }
  .review .slider-arrow.right.multi.home-02 {
    left: 50px;
    right: auto;
  }
}

/* Association badges: a small row above the footer on every page. */
.memberships-strip {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 28px var(--_spacing---space-large-s, 20px);
}
.memberships-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.memberships-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.6);
}
.memberships-logos {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 32px;
  width: 100%;
  max-width: 1040px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.memberships-logos a {
  display: block;
}
.membership-logo {
  display: block;
  width: auto;
}
.membership-logo.is-nahb {
  height: 50px;
}
.membership-logo.is-mbia {
  height: 40px;
}
.membership-logo.is-nkba {
  height: 36px;
}
.membership-logo.is-bba {
  height: 34px;
}
@media (max-width: 767px) {
  .memberships-logos {
    justify-content: center;
    gap: 16px 28px;
  }
  .membership-logo.is-nahb {
    height: 42px;
  }
  .membership-logo.is-mbia {
    height: 34px;
  }
  .membership-logo.is-nkba {
    height: 30px;
  }
  .membership-logo.is-bba {
    height: 28px;
  }
}

/* TV feature band on the home page. */
.tv-feature {
  background: #1a1a1a;
  color: #fff;
  padding: 72px var(--_spacing---space-large-s, 20px);
}
.tv-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.tv-feature-title {
  margin: 16px 0 16px;
  font-family: var(--ellery-display-font);
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
}
.tv-feature-blurb {
  margin: 0 0 28px;
  max-width: 60ch;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}
.tv-feature-button {
  display: inline-block;
  padding: 14px 26px;
  background: var(--ellery-red);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.tv-feature-button:hover {
  background: var(--ellery-red-dark);
  color: #fff;
}
.tv-feature-thumb {
  position: relative;
  display: block;
  overflow: hidden;
}
.tv-feature-thumb a {
  display: block;
}
.tv-feature-thumb.is-playing {
  aspect-ratio: 16 / 9;
  background: #000;
}
.tv-feature-thumb iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.tv-feature-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.tv-feature-thumb a:hover img {
  transform: scale(1.03);
}
.tv-feature-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: var(--ellery-red);
}
.tv-feature-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -11px 0 0 -6px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
@media (max-width: 991px) {
  .tv-feature {
    padding: 56px var(--_spacing---space-large-s, 20px);
  }
  .tv-feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* The play button fades in after the video thumbnail has wiped open. */
.svc-motion .tv-feature-thumb .tv-feature-play {
  opacity: 0;
  transition: opacity 0.6s ease 0.7s;
}
.svc-motion .tv-feature-thumb.is-in .tv-feature-play {
  opacity: 1;
}

/* Home portfolio: note that the slider shows only some of the projects. */
.project-multi-note {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.75;
}
