  .home-hero {
    position: relative;
    padding-top: 18px;
    isolation: isolate;
  }

  .home-hero .hero-frame {
    min-height: 760px;
    border: 1px solid rgba(17, 17, 17, 0.14);
    background: rgba(255, 255, 255, 0.66);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.82) inset,
      0 22px 56px rgba(181, 140, 97, 0.08),
      0 3px 8px rgba(17, 17, 17, 0.04);
    overflow: hidden;
  }

  .home-hero .hero-frame::before {
    inset: 20px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.02)),
      radial-gradient(circle at 50% 42%, rgba(181, 140, 97, 0.12), transparent 0 22%, rgba(181, 140, 97, 0.06) 36%, transparent 58%),
      repeating-linear-gradient(90deg, rgba(181, 140, 97, 0.05) 0 1px, transparent 1px 44px),
      repeating-linear-gradient(0deg, rgba(181, 140, 97, 0.045) 0 1px, transparent 1px 44px);
    background-size: auto, 72% 72%, 100% 100%, 100% 100%;
    background-position: 0 0, 50% 50%, 0 0, 0 0;
    background-repeat: no-repeat, no-repeat, repeat, repeat;
    opacity: 0.42;
  }

  .home-hero .hero-frame::after {
    inset: 20px 20px auto auto;
    width: 34%;
    height: 34%;
    border-left: 1px solid rgba(181, 140, 97, 0.22);
    border-bottom: 1px solid rgba(181, 140, 97, 0.22);
    background:
      radial-gradient(circle at 22% 22%, rgba(181, 140, 97, 0.05), transparent 22%),
      radial-gradient(circle at 68% 34%, rgba(181, 140, 97, 0.04), transparent 18%);
    opacity: 0.4;
  }

  .home-hero .hero-grid {
    position: relative;
    min-height: 760px;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .home-hero__copy {
    position: relative;
    z-index: 2;
    min-height: 760px;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 28px 30px 32px;
  }

  .home-hero__stage {
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 14px;
    padding-top: 0;
  }

  .home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    text-transform: uppercase;
    letter-spacing: 0.36em;
    font-size: 0.66rem;
    color: var(--accent);
    border: 1px solid rgba(181, 140, 97, 0.18);
    background: rgba(255, 250, 244, 0.68);
    box-shadow: 0 10px 30px rgba(181, 140, 97, 0.06);
  }

  .home-hero__eyebrow::before {
    content: none;
  }

  .home-hero__title-wrap {
    position: relative;
    width: 100%;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: visible;
  }

  .home-hero__title-wrap::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(560px, 62vw);
    height: min(560px, 62vw);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 251, 245, 0.96) 0%, rgba(255, 248, 240, 0.62) 30%, rgba(255, 246, 236, 0.12) 58%, transparent 76%);
    filter: blur(30px);
    opacity: 0.88;
    pointer-events: none;
  }

  .home-hero__title-wrap::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(420px, 46vw);
    height: min(120px, 14vw);
    transform: translate(-50%, -50%);
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12)),
      repeating-linear-gradient(90deg, rgba(181, 140, 97, 0.06) 0 10px, transparent 10px 16px);
    border: 1px solid rgba(181, 140, 97, 0.08);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.5) inset,
      0 20px 44px rgba(181, 140, 97, 0.08);
    opacity: 0.34;
    pointer-events: none;
    z-index: 0;
  }

  .home-hero__title-bg {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    font-family: "Cormorant Garamond", "Baskerville", "Palatino Linotype", Georgia, serif;
    font-size: clamp(4.6rem, 10vw, 10.8rem);
    line-height: 0.88;
    letter-spacing: 0.12em;
    color: rgba(181, 140, 97, 0.08);
    text-transform: uppercase;
    user-select: none;
    white-space: pre-wrap;
    text-align: center;
    pointer-events: none;
    filter: blur(0.55px);
    text-shadow:
      0 0 84px rgba(255, 250, 244, 0.96),
      0 0 180px rgba(255, 247, 239, 0.76);
  }

  .home-hero__title {
    z-index: 1;
    margin: 0;
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    transform: none;
    font-family: "Cormorant Garamond", "Baskerville", "Palatino Linotype", Georgia, serif;
    font-weight: 600;
    font-size: clamp(3.8rem, 7.8vw, 8.2rem);
    line-height: 0.86;
    letter-spacing: 0.09em;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    text-wrap: balance;
    text-transform: uppercase;
    padding-left: 0;
    margin-inline: 0;
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.92),
      0 2px 0 rgba(255, 255, 255, 0.6),
      0 16px 36px rgba(27, 20, 14, 0.16),
      0 34px 72px rgba(181, 140, 97, 0.12);
  }

  body.home .home-hero .home-hero__title {
    max-width: none;
    width: 100%;
    min-width: 0;
    display: inline-block;
  }

  .home-hero__lead {
    margin: 0 auto;
    max-width: 44rem;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.82;
    text-align: center;
  }

  .home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
  }

  .home-hero__scroll-hint {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 16px auto 0;
    color: rgba(17, 17, 17, 0.5);
    text-decoration: none;
    transition: transform 180ms ease, color 180ms ease, opacity 180ms ease;
    opacity: 0.82;
  }

  .home-hero__scroll-hint:hover {
    transform: translateY(3px);
    color: rgba(17, 17, 17, 0.72);
  }

  .home-hero__scroll-hint-text {
    font-size: 0.62rem;
    line-height: 1;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    font-weight: 700;
  }

  .home-hero__scroll-hint-icon {
    position: relative;
    width: 18px;
    height: 34px;
    display: grid;
    place-items: center;
    animation: home-hero-scroll-bounce 1.8s ease-in-out infinite;
  }

  .home-hero__scroll-hint-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 22px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(181, 140, 97, 0.05), currentColor 35%, currentColor 70%, rgba(181, 140, 97, 0.05));
    border-radius: 999px;
  }

  .home-hero__scroll-hint-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 8px;
    height: 8px;
    transform: translateX(-50%) rotate(45deg);
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
  }

  @keyframes home-hero-scroll-bounce {
    0%,
    100% {
      transform: translateY(0);
      opacity: 0.72;
    }
    50% {
      transform: translateY(5px);
      opacity: 1;
    }
  }

  .home-hero__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: min(720px, 100%);
    margin-top: 0;
    margin-inline: auto;
  }

  .home-hero__stat {
    display: grid;
    gap: 2px;
    justify-items: center;
    padding: 6px 4px 0;
    text-align: center;
  }

  .home-hero__stat-value {
    font-family: "Manrope", sans-serif;
    font-size: clamp(0.98rem, 1.4vw, 1.2rem);
    line-height: 1;
    letter-spacing: 0.06em;
    color: rgba(17, 17, 17, 0.84);
  }

  .home-hero__stat-label {
    font-size: 0.62rem;
    line-height: 1.2;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--accent);
  }

  .home-hero__ornaments {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
  }

  .home-hero__paca {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.2px);
  }

  .home-hero__paca--a {
    top: 18%;
    left: 16%;
    width: 40vw;
    height: 38vw;
    background:
      radial-gradient(circle at 48% 42%, rgba(255, 248, 240, 0.78), rgba(255, 248, 240, 0.1) 28%, transparent 56%),
      radial-gradient(circle at 58% 54%, rgba(181, 140, 97, 0.08), transparent 0 18%, rgba(181, 140, 97, 0.04) 32%, transparent 56%),
      repeating-linear-gradient(113deg, rgba(181, 140, 97, 0.04) 0 1px, transparent 1px 36px),
      repeating-linear-gradient(23deg, rgba(181, 140, 97, 0.026) 0 1px, transparent 1px 30px);
    mask-image: radial-gradient(circle at 50% 48%, black 0 34%, rgba(0, 0, 0, 0.7) 50%, transparent 72%);
    opacity: 0.6;
  }

  .home-hero__paca--b {
    top: 22%;
    right: 4%;
    width: 30vw;
    height: 28vw;
    background:
      radial-gradient(circle at 38% 44%, rgba(255, 249, 244, 0.7), rgba(255, 249, 244, 0.08) 24%, transparent 54%),
      repeating-linear-gradient(96deg, rgba(181, 140, 97, 0.035) 0 1px, transparent 1px 28px);
    mask-image: radial-gradient(circle at 42% 44%, black 0 28%, transparent 72%);
    opacity: 0.46;
  }

  .home-hero__arc {
    position: absolute;
    border: 1px solid rgba(181, 140, 97, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.38) inset;
  }

  .home-hero__arc--a { width: 40vw; height: 40vw; top: 12%; left: 16%; opacity: 0.58; }
  .home-hero__arc--b { width: 30vw; height: 30vw; top: 28%; right: 14%; opacity: 0.48; }

  .home-hero__tool {
    position: absolute;
    pointer-events: none;
    opacity: 0.14;
    filter: blur(0.2px);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    mix-blend-mode: screen;
  }

  .home-hero__tool--comb {
    left: 5%;
    bottom: 10%;
    width: min(38vw, 520px);
    height: min(16vw, 220px);
    transform: rotate(-12deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 920 280'%3E%3Cg fill='none' stroke='%23b58c61' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M70 150h560' stroke-width='10' opacity='.22'/%3E%3Cpath d='M70 150h560' stroke-width='2.5' opacity='.55'/%3E%3Crect x='92' y='110' width='220' height='80' rx='30' stroke-width='8' opacity='.18'/%3E%3Cpath d='M170 110v80M195 110v80M220 110v80M245 110v80M270 110v80M295 110v80M320 110v80M345 110v80' stroke-width='5' opacity='.38'/%3E%3Cpath d='M660 110c34 0 60 26 60 60s-26 60-60 60-60-26-60-60 26-60 60-60Zm0 20c23 0 40 17 40 40s-17 40-40 40-40-17-40-40 17-40 40-40Z' stroke-width='6' opacity='.34'/%3E%3Cpath d='M708 152c56-12 108-18 162-20' stroke-width='6' opacity='.28'/%3E%3Cpath d='M705 160c58 14 106 28 154 50' stroke-width='6' opacity='.28'/%3E%3C/g%3E%3C/svg%3E");
  }

  .home-hero__tool--comb::before {
    content: none;
  }

  .home-hero__tool--scissors {
    right: 7%;
    top: 20%;
    width: min(22vw, 300px);
    height: min(22vw, 300px);
    transform: rotate(20deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%23b58c61' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M110 115c24 24 76 72 100 96' stroke-width='10' opacity='.22'/%3E%3Cpath d='M128 98c24 24 76 72 100 96' stroke-width='3.5' opacity='.48'/%3E%3Ccircle cx='132' cy='302' r='42' stroke-width='10' opacity='.2'/%3E%3Ccircle cx='285' cy='162' r='42' stroke-width='10' opacity='.2'/%3E%3Ccircle cx='132' cy='302' r='26' stroke-width='3.5' opacity='.42'/%3E%3Ccircle cx='285' cy='162' r='26' stroke-width='3.5' opacity='.42'/%3E%3Cpath d='M165 270c26-22 58-56 88-88' stroke-width='10' opacity='.16'/%3E%3Cpath d='M171 276c26-22 58-56 88-88' stroke-width='3.5' opacity='.36'/%3E%3Cpath d='M244 205c28 20 56 44 92 74' stroke-width='10' opacity='.16'/%3E%3Cpath d='M248 200c28 20 56 44 92 74' stroke-width='3.5' opacity='.36'/%3E%3C/g%3E%3C/svg%3E");
  }

  .home-hero__mark {
    position: absolute;
    color: rgba(17, 17, 17, 0.14);
    font-size: clamp(1.5rem, 2.6vw, 3rem);
    line-height: 1;
    transform: rotate(-10deg);
    text-shadow: 0 10px 26px rgba(181, 140, 97, 0.12);
  }

  .home-hero__mark--a { top: 16%; left: 12%; }
  .home-hero__mark--b { top: 22%; right: 14%; transform: rotate(16deg); }
  .home-hero__mark--c { top: 46%; left: 10%; }
  .home-hero__mark--d { top: 56%; right: 12%; transform: rotate(14deg); }
  .home-hero__mark--e { top: 74%; left: 18%; }
  .home-hero__mark--f { top: 78%; right: 20%; transform: rotate(10deg); }
  .home-hero__mark--g { top: 70%; left: 48%; transform: translateX(-50%) rotate(-8deg); }
  .home-hero__mark--h { top: 28%; left: 50%; transform: translateX(-50%) rotate(8deg); }

  .home-hero__ornaments {
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, #000 10%, #000 90%, rgba(0, 0, 0, 0.04) 100%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, #000 10%, #000 90%, rgba(0, 0, 0, 0.04) 100%);
  }

  .home-services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .about-section__copy,
  .about-section__visual {
    min-width: 0;
  }

  .about-section {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 0;
    align-items: stretch;
    min-height: 470px;
  }

  .about-section__copy {
    display: grid;
    align-content: center;
    gap: 16px;
    padding: clamp(28px, 3.6vw, 48px);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 251, 246, 0.82)),
      radial-gradient(circle at 14% 18%, rgba(181, 140, 97, 0.08), transparent 22%),
      radial-gradient(circle at 82% 84%, rgba(125, 139, 134, 0.06), transparent 18%);
    position: relative;
  }

  .about-section__copy .kicker {
    width: fit-content;
  }

  .about-section__title {
    margin: 0;
    font-family: "Fraunces", serif;
    font-size: clamp(2.3rem, 4.2vw, 4rem);
    line-height: 0.94;
    letter-spacing: -0.065em;
    max-width: 12ch;
  }

  .about-section__text {
    margin: 0;
    color: rgba(17, 17, 17, 0.72);
    font-size: 1.01rem;
    line-height: 1.78;
    max-width: 44ch;
  }

  .about-section__points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 34rem;
    margin-top: 8px;
  }

  .about-section__point {
    padding: 16px 18px;
    border: 1px solid rgba(181, 140, 97, 0.1);
    background: rgba(255, 255, 255, 0.52);
    box-shadow: 0 12px 26px rgba(181, 140, 97, 0.05);
    backdrop-filter: blur(6px);
  }

  .about-section__point strong {
    display: block;
    font-family: "Manrope", sans-serif;
    font-size: 0.92rem;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.86);
  }

  .about-section__point span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .about-section__visual {
    min-height: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.02)),
      var(--about-image, none) center/cover no-repeat;
    position: relative;
    display: grid;
    align-items: end;
    padding: 20px;
  }

  .about-section__visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(17, 17, 17, 0.18) 100%);
  }

  .about-section__badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 250, 244, 0.72);
    backdrop-filter: blur(14px);
    color: rgba(17, 17, 17, 0.82);
    box-shadow: 0 14px 30px rgba(17, 17, 17, 0.12);
  }

  .about-section__badge strong {
    display: block;
    font-family: "Fraunces", serif;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .about-section__badge span {
    display: block;
    margin-top: 3px;
    font-size: 0.72rem;
    line-height: 1;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--accent);
  }

  /* Keep the homepage airy, while bringing the overall scale down. */
  body.home .section {
    padding-block: 34px;
  }

  body.home .home-hero {
    padding-top: 12px;
  }

  body.home .home-hero .hero-frame,
  body.home .home-hero .hero-grid,
  body.home .home-hero__copy {
    min-height: 640px;
  }

  body.home .home-hero__copy {
    padding: 22px 24px 26px;
  }

  body.home .home-hero__stage {
    gap: 10px;
  }

  body.home .home-hero__eyebrow {
    padding: 8px 15px;
    font-size: 0.58rem;
  }

  body.home .home-hero__title-wrap {
    min-height: 210px;
  }

  body.home .home-hero__title {
    font-size: clamp(3.2rem, 6.7vw, 7rem);
  }

  body.home .home-hero__title-bg {
    font-size: clamp(3.8rem, 8.5vw, 9rem);
  }

  body.home .home-hero__stats {
    width: min(620px, 100%);
  }

  body.home .home-hero__lead {
    max-width: 40rem;
    font-size: 0.94rem;
    line-height: 1.68;
  }

  body.home .home-hero__actions,
  body.home .card-actions {
    gap: 9px;
  }

  body.home .home-hero__actions .btn,
  body.home .card-actions .btn {
    padding: 11px 16px;
    font-size: 0.68rem;
  }

  body.home .home-hero__scroll-hint {
    margin-top: 10px;
    gap: 7px;
  }

  body.home .about-section__copy {
    gap: 12px;
    padding-block: 16px;
    padding-inline: 14px;
  }

  body.home .about-section {
    margin: 0;
  }

  body.home .about-section__title {
    font-size: clamp(2rem, 3.5vw, 3.3rem);
    margin-bottom: 14px;
  }

  body.home .about-section__text {
    font-size: 0.94rem;
    line-height: 1.65;
  }

  body.home .about-section__visual {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  body.home .about-section__point {
    padding: 13px 15px;
  }

  body.home .service-card,
  body.home .gallery-card,
  body.home .card {
    padding: 14px;
  }

  body.home #home-services .section-head,
  body.home #home-services .home-services-grid,
  body.home #home-services .section-actions {
    padding-inline: clamp(10px, 1.4vw, 18px);
  }

  body.home #home-services .section-head {
    padding-top: clamp(12px, 1.5vw, 18px);
  }

  body.home #home-services .home-services-grid {
    padding-bottom: clamp(12px, 1.5vw, 18px);
  }

  body.home #home-services .section-actions {
    padding-bottom: clamp(12px, 1.5vw, 18px);
  }

  body.home #home-services .service-pill {
    min-height: 32px;
    padding: 7px 9px;
    font-size: 0.6rem;
  }

  body.home .home-team-section .section-head {
    max-width: 54rem;
    padding-inline: clamp(8px, 1vw, 14px);
  }

  body.home .home-team-section .team-grid {
    gap: clamp(14px, 1.8vw, 22px);
  }

  body.home .home-team-section .team-card {
    border-color: rgba(17, 17, 17, 0.12);
    box-shadow: 0 16px 42px rgba(27, 20, 14, 0.06);
  }

  body.home .home-team-section .team-card__visual {
    min-height: 300px;
  }

  body.home .home-team-section .team-card__body {
    padding: clamp(20px, 2.2vw, 28px);
  }

  @media (max-width: 980px) {
    body.home .section {
      padding-block: 24px;
    }

    body.home .home-hero .hero-frame,
    body.home .home-hero .hero-grid,
    body.home .home-hero__copy {
      min-height: 560px;
    }

    body.home .home-hero__copy {
      padding: 18px 18px 22px;
    }

    body.home .home-hero__title-wrap {
      min-height: 180px;
    }

    body.home .home-hero__title {
      font-size: clamp(2.6rem, 10vw, 4.8rem);
    }

    body.home .home-hero__title-bg {
      font-size: clamp(3rem, 10vw, 5rem);
    }

    body.home #home-services .section-head,
    body.home #home-services .home-services-grid,
    body.home #home-services .section-actions {
      padding-inline: 10px;
    }

    body.home .about-section {
      margin: 0;
    }

    body.home #home-services .section-head {
      padding-top: 10px;
    }

    body.home #home-services .home-services-grid,
    body.home #home-services .section-actions {
      padding-bottom: 10px;
    }

    body.home .home-team-section .team-card__visual {
      min-height: 240px;
    }

    .home-services-grid,
    .home-galleries-grid,
    .home-cta-grid {
      grid-template-columns: 1fr;
    }

    .home-hero .hero-frame {
      min-height: 560px;
    }

    .home-hero .hero-grid,
    .home-hero__copy {
      min-height: 560px;
    }

    .home-hero__title-wrap {
      min-height: 180px;
    }

    .home-hero__stats {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-hero__title {
      width: 100%;
      max-width: 100%;
      font-size: clamp(2.8rem, 12vw, 5.4rem);
      white-space: normal;
    }

    body.home .home-hero .home-hero__title {
      max-width: none;
      width: 100%;
      min-width: 0;
    }

    .home-hero__title-bg {
      font-size: clamp(2.2rem, 11vw, 5.2rem);
    }

    .home-hero__arc--a,
    .home-hero__arc--b {
      width: 62vw;
      height: 62vw;
      opacity: 0.45;
    }

    .home-hero__mark--a,
    .home-hero__mark--b,
    .home-hero__mark--c,
    .home-hero__mark--d,
    .home-hero__mark--e,
    .home-hero__mark--f,
    .home-hero__mark--g,
    .home-hero__mark--h {
      font-size: 1.2rem;
      opacity: 0.6;
    }

    .about-section {
      grid-template-columns: 1fr;
    }

    .about-section__copy {
      padding: 24px 20px;
    }

    .about-section__points {
      grid-template-columns: 1fr;
    }

    .about-section__visual {
      min-height: 0;
      height: auto;
      aspect-ratio: 3 / 2;
      padding: 16px;
    }
  }

  @media (max-width: 650px) {
    .home-hero__stats {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

/* Match the homepage hero's top rhythm to the reviews pages. */
body.home .hero:first-child {
  padding-top: clamp(12px, 1.5vw, 18px);
}

/* Homepage gallery: a compact editorial grid, separate from the full gallery view. */
body.home .home-galleries-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 156px;
  gap: 12px;
}

body.home .home-galleries-grid .gallery-card {
  position: relative;
  display: grid;
  grid-column: span 4;
  grid-row: span 1;
  align-content: end;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 0;
  color: #fff;
  background-color: #726960;
  background-position: center;
  background-size: cover;
  box-shadow: none;
  isolation: isolate;
}

body.home .home-galleries-grid .gallery-card:nth-child(1) {
  grid-column: span 6;
  grid-row: span 2;
}

body.home .home-galleries-grid .gallery-card:nth-child(2),
body.home .home-galleries-grid .gallery-card:nth-child(3) {
  grid-column: span 3;
}

body.home .home-galleries-grid .gallery-card:nth-child(n + 4) {
  grid-column: span 4;
}

body.home .home-galleries-grid .gallery-card::before {
  z-index: -1;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.02) 30%, rgba(17, 17, 17, 0.78) 100%);
  opacity: 1;
}

body.home .home-galleries-grid .gallery-card::after {
  z-index: -2;
  opacity: 0.34;
}

body.home .home-galleries-grid .gallery-card > * {
  position: relative;
  z-index: 1;
}

body.home .home-galleries-grid .gallery-card .label {
  position: absolute;
  top: 16px;
  left: 20px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.home .home-galleries-grid .gallery-card__top {
  position: absolute;
  top: 14px;
  right: 14px;
  margin: 0;
}

body.home .home-galleries-grid .gallery-card__count {
  display: inline-flex;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(17, 17, 17, 0.18);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}

body.home .home-galleries-grid .gallery-card h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: clamp(1.3rem, 2.1vw, 2rem);
  line-height: 0.98;
}

body.home .home-galleries-grid .gallery-card p {
  display: -webkit-box;
  max-width: 32rem;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.home .home-galleries-grid + .section-actions {
  justify-content: center;
  margin-top: 16px !important;
}

/* Keep homepage galleries as six equal cards, never as a mosaic. */
body.home .home-galleries-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 220px;
}

body.home .home-galleries-grid .gallery-card,
body.home .home-galleries-grid .gallery-card:nth-child(1),
body.home .home-galleries-grid .gallery-card:nth-child(2),
body.home .home-galleries-grid .gallery-card:nth-child(3),
body.home .home-galleries-grid .gallery-card:nth-child(n + 4) {
  grid-column: span 1;
  grid-row: span 1;
}

body.home .home-featured-reviews .section-head {
  margin-bottom: 18px;
}

body.home .home-featured-reviews__grid {
  gap: 12px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 24px) / 3);
  grid-template-columns: none;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(181, 140, 97, .55) transparent;
  scrollbar-width: thin;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

body.home .home-reviews-carousel {
  position: relative;
  min-width: 0;
}

body.home .home-featured-reviews__grid::-webkit-scrollbar {
  height: 7px;
}

body.home .home-featured-reviews__grid::-webkit-scrollbar-thumb {
  background: rgba(181, 140, 97, .55);
  border-radius: 99px;
}

body.home .home-featured-review {
  min-width: 0;
  scroll-snap-align: start;
}

body.home .home-reviews-carousel__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(17, 17, 17, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 8px 22px rgba(17, 17, 17, .08);
}

body.home .home-reviews-carousel__arrow--prev { left: -21px; }
body.home .home-reviews-carousel__arrow--next { right: -21px; }

body.home .home-reviews-carousel__arrow:disabled {
  opacity: .28;
  pointer-events: none;
}

body.home .home-featured-review {
  display: flex;
  min-height: 178px;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

body.home .home-featured-review__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.home .home-featured-review__top strong {
  color: var(--ink);
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
}

body.home .home-featured-review .stars {
  flex-shrink: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

body.home .home-featured-review .stars span {
  color: rgba(181, 140, 97, 0.22);
}

body.home .home-featured-review .stars span.is-active {
  color: var(--accent);
}

body.home .home-featured-review .quote {
  margin: 0;
  color: var(--ink);
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  line-height: 1.2;
}

body.home .home-featured-review__service {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.home .home-featured-reviews .section-actions {
  justify-content: center;
  margin-top: 16px;
}

@media (max-width: 860px) {
body.home .home-galleries-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 180px;
  }

body.home .home-galleries-grid .gallery-card,
  body.home .home-galleries-grid .gallery-card:nth-child(1),
  body.home .home-galleries-grid .gallery-card:nth-child(2),
  body.home .home-galleries-grid .gallery-card:nth-child(3),
  body.home .home-galleries-grid .gallery-card:nth-child(n + 4) {
    grid-column: span 1;
    grid-row: span 1;
  }

body.home .home-galleries-grid .gallery-card:nth-child(1) {
    grid-column: span 2;
  }

body.home .home-galleries-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 200px;
  }
}

@media (max-width: 560px) {
body.home .home-galleries-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 190px;
  }

body.home .home-galleries-grid .gallery-card:nth-child(1) {
    grid-column: span 1;
  }

body.home .home-galleries-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 190px;
  }
}

.team-grid {
  grid-template-columns: 1fr;
}

.team-card {
  display: grid;
  padding: 0;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.78)),
    linear-gradient(135deg, rgba(181, 140, 97, 0.06), transparent 36%);
}

.team-card__visual,
.team-card__body {
  min-width: 0;
}

.team-card__visual {
  position: relative;
  padding: 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  overflow: hidden;
}

.team-card--reverse .team-card__visual {
  order: 2;
  border-right: 0;
  border-left: 1px solid var(--line);
}

.team-card__visual::before,
.team-card__visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.team-card__visual::before {
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.team-card__visual::after {
  right: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.36), transparent 56%);
}

.team-card__visual strong {
  position: relative;
  z-index: 1;
  align-self: center;
  font-family: "Fraunces", serif;
  font-size: clamp(4rem, 9vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.08em;
  color: rgba(17, 17, 17, 0.9);
}

.team-card__index,
.team-card__tag {
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  color: rgba(17, 17, 17, 0.72);
}

.team-card__tag {
  align-self: flex-start;
  padding: 9px 12px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.68);
}

.team-card__body {
  padding: 26px 26px 24px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.team-card__body h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 0.94;
}

.team-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.16em;
  font-size: 1.12rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.team-stars__icons {
  display: inline-flex;
  gap: 0.08em;
}

.team-stars__icons span {
  color: rgba(185, 139, 87, 0.28);
}

.team-stars__icons span.is-active {
  color: var(--accent);
}

.team-card__quote {
  margin: 8px 0 0;
  color: var(--ink);
  font-family: "Fraunces", serif;
  font-size: 1.08rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
  max-width: 28rem;
}

.team-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.team-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.66rem;
  color: var(--muted);
}

.team-card .card-actions {
  margin-top: 8px;
}

.service-card {
  display: grid;
  gap: 16px;
  min-height: 240px;
}

.service-card--group {
  grid-template-rows: auto auto 1fr;
  min-height: 100%;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.service-card--group::before {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(181, 140, 97, 0.14);
  pointer-events: none;
}

.service-group-head {
  display: grid;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.service-group-head .kicker {
  color: var(--accent);
}

.service-group-head h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 2.1rem;
  line-height: 0.92;
  min-height: 3.86rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.service-group-head p {
  margin: 0;
  color: var(--muted);
  min-height: 4.5rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.66rem;
  color: var(--muted);
}

.service-card h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 2rem;
  line-height: 0.9;
}

.gallery-card__top {
  display: none;
}

.gallery-card__count {
  display: none;
}

.service-card--group {
  padding: clamp(14px, 1.5vw, 18px);
}

.service-group-head {
  padding-bottom: 12px;
}

.service-pill {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.62rem;
}

.team-card__visual {
  padding: var(--card-space);
  min-height: 320px;
}

.team-card__body {
  padding: var(--card-space);
  gap: var(--content-gap);
}

.team-card__body h3 {
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
}

.team-card__quote {
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 860px) {
.team-card,
  .team-card--reverse {
    grid-template-columns: 1fr;
  }

.team-card__visual,
  .team-card--reverse .team-card__visual {
    min-height: 220px;
    border-left: 0;
    border-right: 0;
      order: 0;
  }

.team-card__body {
    order: 1;
  }

.team-card__body {
    padding: 22px 20px 20px;
  }

.team-card .card-actions {
    margin-top: 6px;
  }

.team-card__visual {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
.team-card__visual {
    min-height: 230px;
  }
}

/* Page-specific rules moved out of style.css. */
.home .hero-visual::after{
  content: none;
}

.home-hero-gallery{
  position: relative;
  height: 100%;
  min-height: 580px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.05), rgba(17, 17, 17, 0.14)),
    var(--hero-image) center/cover no-repeat;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(23, 17, 12, 0.16);
}

.home-hero-gallery::after{
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.home-hero-gallery__mini{
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 1;
  display: grid;
  gap: 10px;
  width: min(220px, calc(100% - 48px));
}

.home-hero-gallery__mini span,
.home-hero-gallery__badge{
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(12px);
  color: rgba(17, 17, 17, 0.8);
}

.home-hero-gallery__mini span{
  padding: 11px 13px;
  font-size: 0.8rem;
  line-height: 1.2;
}

.home-hero-gallery__badge{
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.team-grid{
  display: grid;
  gap: 16px;
}

.team-card--reverse{
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.team-card__visual--nora{
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02)),
    linear-gradient(145deg, #f4e5d5 0%, #d7b894 55%, #9f7557 100%);
}

.team-card__visual--judit{
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02)),
    linear-gradient(145deg, #f0e8df 0%, #cbb096 55%, #8f6d56 100%);
}

.team-card__visual--dora{
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02)),
    linear-gradient(145deg, #ead9cd 0%, #c9a086 52%, #8a6452 100%);
}

.home-mini-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.home-mini-list li{
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.home-mini-list li:first-child{
  padding-top: 0;
  border-top: 0;
}

.home-mini-list strong{
  font-family: "Fraunces", serif;
  font-size: 1.02rem;
  line-height: 1;
}

.home-mini-list span{
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.service-card,
.gallery-card,
.team-card{
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.gallery-card{
  position: relative;
  min-height: 240px;
  overflow: hidden;
  display: grid;
  align-content: end;
  gap: 0;
  text-align: left;
  padding: 18px 18px 16px;
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease;
  box-shadow: none;
  color: #fff9f4;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.gallery-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0 40%, rgba(17, 17, 17, 0.76) 100%),
    linear-gradient(135deg, rgba(181, 140, 97, 0.16), transparent 36%);
}

.gallery-card::after{
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--gallery-cover);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.82;
  pointer-events: none;
}

.gallery-card > *{
  position: relative;
  z-index: 1;
}

.gallery-card:hover{
  transform: translateY(-4px);
}

.gallery-card:focus-visible{
  outline: none;
  box-shadow: 0 0 0 2px rgba(181, 140, 97, 0.18), 0 0 0 4px rgba(17, 17, 17, 0.08);
}

.gallery-card h3{
  margin: 6px 0 4px;
  font-family: "Fraunces", serif;
  font-size: 1.9rem;
  line-height: 1;
  color: #fff9f4;
}

.gallery-card p{
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  max-width: 28rem;
}

.gallery-card__tags{
  display: none;
}

.gallery-card__tags span{
  display: none;
}

.gallery-card[data-span="8"]{
  grid-column: span 8;
}

.gallery-card[data-span="6"]{
  grid-column: span 6;
}

.gallery-card[data-span="4"]{
  grid-column: span 4;
}

.gallery-card[data-tone="sand"]{
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, #e9d7be, #caa981 55%, #8f6c4d);
}

.gallery-card[data-tone="ink"]{
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, #43352b, #1b1512 60%, #0f0d0c);
}

.gallery-card[data-tone="rose"]{
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, #e1b7a5, #c4907e 58%, #8f6059);
}

.gallery-card[data-tone="cream"]{
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.12)),
    linear-gradient(135deg, #f8eedf, #e0c8a5 60%, #c09a72);
}

.gallery-card[data-tone="sage"]{
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, #c2cdc1, #93a298 55%, #66766f);
}

.gallery-card{
  position: relative;
  display: grid;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.gallery-card:hover{
  transform: translateY(-2px);
  border-color: rgba(181, 140, 97, 0.35);
  box-shadow: 0 28px 70px rgba(27, 20, 14, 0.12);
}

.gallery-card__media{
  position: absolute;
  inset: 0;
}

.gallery-card__media img,
.gallery-card__placeholder{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card__placeholder{
  display: grid;
  align-content: end;
  gap: 6px;
  padding: 18px;
  color: var(--bg);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.54)),
    linear-gradient(135deg, rgba(181, 140, 97, 0.48), rgba(125, 139, 134, 0.34));
}

.gallery-card__placeholder span{
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.65rem;
}

.gallery-card__placeholder strong{
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  line-height: 1.02;
}

.gallery-card__overlay{
  position: relative;
  z-index: 1;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 18px;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.56));
  color: #fff;
}

.gallery-card__tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-card__tag{
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.62rem;
}

.gallery-card__content{
  display: grid;
  gap: 8px;
}

.gallery-card__content h3{
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.15rem, 1.7vw, 1.8rem);
  line-height: 1.02;
}

.gallery-card__content p{
  margin: 0;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.gallery-mosaic__item.is-employee .gallery-card__overlay{
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.08), rgba(17, 17, 17, 0.52)),
    linear-gradient(135deg, rgba(125, 139, 134, 0.24), rgba(181, 140, 97, 0.3));
}

.gallery-mosaic__item.is-service .gallery-card__overlay{
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.08), rgba(17, 17, 17, 0.56)),
    linear-gradient(135deg, rgba(181, 140, 97, 0.28), rgba(216, 196, 170, 0.18));
}

.gallery-card{
  position: relative;
  min-height: 240px;
  overflow: hidden;
  display: grid;
  align-content: end;
  gap: 0;
  text-align: left;
  padding: 18px 18px 16px;
  border: 0;
  cursor: default;
  transition: transform 180ms ease;
  box-shadow: none;
  color: #fff9f4;
}

.gallery-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0 40%, rgba(17, 17, 17, 0.76) 100%),
    linear-gradient(135deg, rgba(181, 140, 97, 0.16), transparent 36%);
}

.gallery-card > *{
  position: relative;
  z-index: 1;
}

.gallery-card:hover{
  transform: translateY(-4px);
}

.gallery-card .label{
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: rgba(255, 249, 244, 0.74);
}

.gallery-card h3{
  margin: 6px 0 4px;
  font-family: "Fraunces", serif;
  font-size: 1.9rem;
  line-height: 1;
  color: #fff9f4;
}

.gallery-card p{
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  max-width: 28rem;
}

.gallery-card[data-span="8"]{
  grid-column: span 8;
}

.gallery-card[data-span="6"]{
  grid-column: span 6;
}

.gallery-card[data-span="4"]{
  grid-column: span 4;
}

.gallery-card[data-tone="sand"]{
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, #e9d7be, #caa981 55%, #8f6c4d);
}

.gallery-card[data-tone="ink"]{
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, #43352b, #1b1512 60%, #0f0d0c);
}

.gallery-card[data-tone="rose"]{
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, #e1b7a5, #c4907e 58%, #8f6059);
}

.gallery-card[data-tone="cream"]{
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.12)),
    linear-gradient(135deg, #f8eedf, #e0c8a5 60%, #c09a72);
}

.gallery-card[data-tone="sage"]{
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, #c2cdc1, #93a298 55%, #66766f);
}

@media (max-width: 1160px) {

  .gallery-card[data-span="8"],
.gallery-card[data-span="6"],
.gallery-card[data-span="4"]{
    grid-column: span 6;
  }}

@media (max-width: 860px) {

  .gallery-card{
    min-height: 240px;
  }

  .gallery-card[data-span="8"],
.gallery-card[data-span="6"],
.gallery-card[data-span="4"]{
    grid-column: auto;
  }}

.team-grid{
  gap: var(--content-gap);
}

.service-card{
  padding: var(--card-space);
}

body.home .home-services-carousel {
  position: relative;
  min-width: 0;
}

body.home .home-services-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  grid-template-columns: none;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(181, 140, 97, .55) transparent;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

body.home .home-services-grid::-webkit-scrollbar {
  height: 7px;
}

body.home .home-services-grid::-webkit-scrollbar-thumb {
  background: rgba(181, 140, 97, .55);
  border-radius: 99px;
}

body.home .home-services-grid .service-card {
  min-width: 0;
  scroll-snap-align: start;
}

body.home .home-services-carousel__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(17, 17, 17, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 8px 22px rgba(17, 17, 17, .08);
}

body.home .home-services-carousel__arrow--prev { left: -21px; }
body.home .home-services-carousel__arrow--next { right: -21px; }

body.home .home-services-carousel__arrow:disabled {
  opacity: .28;
  pointer-events: none;
}

@media (max-width: 1000px) {
  body.home .home-services-grid {
    grid-auto-columns: calc((100% - 16px) / 2);
  }
}

@media (max-width: 620px) {
  body.home .home-services-carousel {
    padding-bottom: 58px;
  }

  body.home .home-services-grid {
    grid-auto-columns: calc(100% - 16px);
    padding-inline: 8px;
    scroll-padding-inline: 8px;
  }

  body.home .home-services-carousel__arrow {
    top: auto;
    bottom: 8px;
    transform: none;
  }

  body.home .home-services-carousel__arrow--prev { left: calc(50% - 46px); right: auto; }
  body.home .home-services-carousel__arrow--next { left: calc(50% + 4px); right: auto; }
}

.gallery-card{
  padding: var(--card-space);
}

/* Structured editorial homepage hero */
body.home .home-hero .hero-frame{
  min-height: 0;
  aspect-ratio: 2 / 1;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(250,243,235,.86)),
    repeating-linear-gradient(90deg, rgba(181,140,97,.035) 0 1px, transparent 1px 44px);
}

body.home .home-hero .hero-frame::before,
body.home .home-hero .hero-frame::after{
  display: none;
}

body.home #home-services{
  scroll-margin-top: 22px;
}

/* Editorial team cards: compact, image-led cards instead of alternating panels. */
body.home .home-team-section .section-head {
  max-width: 48rem;
  margin-bottom: clamp(24px, 4vw, 42px);
}

body.home .home-team-section .section-copy {
  max-width: 38rem;
}

body.home .home-team-section .team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  align-items: stretch;
}

body.home .home-team-section .team-card,
body.home .home-team-section .team-card--reverse {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.13);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 44px rgba(27, 20, 14, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

body.home .home-team-section .team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(27, 20, 14, 0.12);
}

body.home .home-team-section .team-card__visual,
body.home .home-team-section .team-card--reverse .team-card__visual {
  order: 0;
  min-height: 300px;
  aspect-ratio: auto;
  padding: 18px;
  border: 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.13);
  background-position: center;
  background-size: cover;
}

body.home .home-team-section .team-card__visual::before {
  inset: 14px;
  border-color: rgba(255, 255, 255, 0.42);
}

body.home .home-team-section .team-card__visual::after {
  right: -28px;
  bottom: -45px;
  width: 190px;
  height: 190px;
}

body.home .home-team-section .team-card__index {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

body.home .home-team-section .team-card__tag {
  align-self: flex-end;
  padding: 8px 10px;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(8px);
}

body.home .home-team-section .team-card__body {
  order: 1;
  min-height: 288px;
  padding: 22px 22px 20px;
  gap: 11px;
  grid-template-rows: auto auto minmax(52px, 1fr) auto auto;
}

body.home .home-team-section .team-card__body h3 {
  font-size: clamp(1.8rem, 2.4vw, 2.45rem);
  line-height: 0.98;
}

body.home .home-team-section .team-card__quote {
  margin: 0;
  min-height: 52px;
  font-family: inherit;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--muted);
}

body.home .home-team-section .team-stars {
  gap: 9px;
  font-size: 0.92rem;
  letter-spacing: 0;
}

body.home .home-team-section .team-stars strong {
  color: var(--ink);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

body.home .home-team-section .team-stars__icons {
  gap: 2px;
  font-size: 1rem;
}

body.home .home-team-section .team-card__meta {
  gap: 7px;
  margin-top: 0;
}

body.home .home-team-section .team-card__meta span {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

body.home .home-team-section .team-card__contact {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 7px;
  width: 100%;
  margin-top: 2px;
}

body.home .home-team-section .team-card__contact span {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}

body.home .home-team-section .team-card .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

body.home .home-team-section .team-card .card-actions .btn {
  flex: 1 1 auto;
  min-height: 38px;
  padding: 10px 12px;
  font-size: 0.62rem;
}

body.home .home-team-section .team-grid--count-1 {
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
}

body.home .home-team-section .team-grid--count-1 .team-card {
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  grid-template-rows: 1fr;
}

body.home .home-team-section .team-grid--count-1 .team-card__visual {
  min-height: 410px;
  border-right: 1px solid rgba(17, 17, 17, 0.13);
  border-bottom: 0;
}

body.home .home-team-section .team-grid--count-1 .team-card__body {
  min-height: 410px;
  padding: clamp(28px, 4vw, 48px);
}

body.home .home-team-section .team-grid--count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
}

@media (max-width: 980px) {
  body.home .home-team-section .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.home .home-team-section .team-grid {
    grid-template-columns: 1fr;
  }

  body.home .home-team-section .team-card__visual,
  body.home .home-team-section .team-card--reverse .team-card__visual {
    min-height: 260px;
  }
}

@media (max-width: 860px) {
  body.home .home-team-section .team-grid--count-1 .team-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  body.home .home-team-section .team-grid--count-1 .team-card__visual {
    min-height: 300px;
    border-right: 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.13);
  }

  body.home .home-team-section .team-grid--count-1 .team-card__body {
    min-height: 288px;
  }
}

.home-hero__layout{
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  min-height: 0;
  height: 100%;
}

body.home .home-hero__copy{
  min-height: 0;
  display: flex;
  align-items: center;
  padding: clamp(34px, 4.2vw, 64px) clamp(20px, 2.4vw, 38px);
  border-right: 1px solid rgba(17,17,17,.1);
  background: rgba(255,253,249,.74);
}

body.home .home-hero__stage{
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 24px;
  max-width: 35rem;
  padding: 0;
}

body.home .home-hero__eyebrow{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--accent);
  font-size: .66rem;
  letter-spacing: .32em;
}

body.home .home-hero__eyebrow i{
  display: block;
  flex: 0 0 58px;
  height: 1px;
  background: var(--accent);
}

body.home .home-hero__title{
  width: 100%;
  margin: 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", "Baskerville", Georgia, serif;
  font-size: clamp(2.9rem, 4.1vw, 5rem);
  font-weight: 500;
  line-height: .82;
  letter-spacing: -.045em;
  text-align: left;
  text-transform: none;
  text-wrap: balance;
  text-shadow: none;
}

body.home .home-hero__subline{
  margin-top: 4px;
  color: var(--ink);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .48em;
  line-height: 1;
  text-transform: uppercase;
}

body.home .home-hero__subline::after{
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  margin-top: 10px;
  background: var(--accent);
}

body.home .home-hero__lead{
  margin-top: 2px;
  max-width: 33rem;
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.75;
  text-align: left;
}

body.home .home-hero__actions{
  justify-content: flex-start;
  gap: 10px;
}

body.home .home-hero__stats{
  width: 100%;
  margin: 14px 0 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(17,17,17,.12);
  padding-top: 16px;
}

body.home .home-hero__details{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  width: 100%;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(17,17,17,.12);
  color: var(--muted);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .24em;
  line-height: 2;
  text-transform: uppercase;
}

body.home .home-hero__details div{
  display: flex;
  flex-direction: column;
}

body.home .home-hero__details i{
  display: block;
  width: 34px;
  height: 1px;
  margin-top: 10px;
  background: var(--accent);
}

body.home .home-hero__stat{
  justify-items: start;
  padding: 0 16px 0 0;
  text-align: left;
}

body.home .home-hero__stat + .home-hero__stat{
  padding-left: 16px;
  border-left: 1px solid rgba(17,17,17,.12);
}

body.home .home-hero__stat-value{
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
  letter-spacing: -.03em;
}

body.home .home-hero__stat-label{
  margin-top: 5px;
  font-size: .55rem;
  letter-spacing: .18em;
  line-height: 1.35;
}

body.home .home-hero__scroll-hint{
  flex-direction: row;
  align-self: start;
  margin: 4px 0 0;
  gap: 8px;
}

.home-hero__media{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  grid-template-rows: minmax(0, 1fr) 28%;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 18px;
  background: #fff;
}

.home-hero__main-image,
.home-hero__supporting-image{
  position: relative;
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(17,17,17,.02), rgba(17,17,17,.2)),
    var(--hero-image, linear-gradient(135deg, #d7c5b0, #92745a)) center/cover no-repeat;
}

.home-hero__main-image{
  min-height: 0;
  grid-column: 1;
  grid-row: 1;
}

.home-hero__main-image-photo{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-hero__main-image > picture{
  position: absolute;
  inset: 0;
  display: block;
}

.home-hero__media-label{
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(255,250,244,.76);
  color: var(--ink);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.home-hero__supporting-images{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
  grid-column: 1;
  grid-row: 2;
}

.home-hero__supporting-image{
  min-height: 0;
}

.home-hero__supporting-image--placeholder{
  background:
    linear-gradient(135deg, rgba(255,255,255,.2), transparent 45%),
    linear-gradient(125deg, #d7c6b3 0 42%, #b89775 42% 48%, #eee2d2 48% 100%);
}

.home-hero__media-rail{
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  padding: 12px 0 8px;
  border-left: 1px solid rgba(181,140,97,.34);
  color: var(--accent);
}

.home-hero__media-rail span{
  writing-mode: vertical-rl;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.home-hero__media-rail i{
  display: block;
  width: 1px;
  height: 42px;
  background: var(--accent);
}

@media (max-width: 860px){
  .home-hero__layout{
    grid-template-columns: 1fr;
  }

  body.home .home-hero__copy{
    border-right: 0;
    border-bottom: 1px solid rgba(17,17,17,.1);
    padding: 42px 28px 38px;
  }

  body.home .home-hero__title{
    font-size: clamp(3rem, 12vw, 5rem);
  }

  body.home .home-hero__subline{
    letter-spacing: .3em;
  }

  .home-hero__media{
    aspect-ratio: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(360px, 58vw) 112px;
  }

  .home-hero__media-rail{
    display: none;
  }
}

@media (min-width: 861px) and (max-width: 1024px){
  body.home .about-section{
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body.home .about-section__copy,
  body.home .about-section__visual{
    width: 100%;
    grid-column: 1;
  }

  body.home .about-section__visual{
    height: auto;
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 520px){
  body.home .home-hero__copy{
    padding: 34px 22px 30px;
  }

  body.home .home-hero__stage{
    gap: 18px;
  }

  body.home .home-hero__title{
    font-size: clamp(2.7rem, 13vw, 4rem);
    transform: none;
  }

  body.home .home-hero__actions{
    width: 100%;
  }

  body.home .home-hero__actions .btn{
    flex: 1 1 auto;
    text-align: center;
  }

  body.home .home-hero__stats{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 14px;
  }

  body.home .home-hero__stat:nth-child(3){
    padding-left: 0;
    border-left: 0;
  }

  body.home .home-hero__stat:nth-child(4){
    padding-left: 16px;
    border-left: 1px solid rgba(17,17,17,.12);
  }

  .home-hero__media{
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(300px, 78vw) 92px;
    gap: 8px;
    padding: 8px;
  }

  .home-hero__supporting-images{
    gap: 8px;
  }
}

/* The about section still fits side by side on small tablets and narrow laptops. */
@media (min-width: 861px) and (max-width: 1100px){
  body.home .about-section{
    grid-template-columns: minmax(0, .92fr) minmax(280px, 1.08fr);
    min-height: 420px;
  }

  body.home .about-section__copy{
    padding: 26px 20px;
    gap: 12px;
  }

  body.home .about-section__title{
    max-width: 10ch;
    font-size: clamp(2.2rem, 4.5vw, 3.3rem);
  }

  body.home .about-section__text{
    font-size: 0.9rem;
    line-height: 1.6;
  }

  body.home .about-section__visual{
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 2;
  }
}

/* Final mobile hero layout: remove desktop sizing rules below 860px. */
@media (max-width: 860px){
  body.home .about-section{
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body.home .about-section__copy,
  body.home .about-section__visual{
    width: 100%;
    grid-column: 1;
  }

  body.home .about-section__visual{
    height: auto;
    aspect-ratio: 3 / 2;
  }

  body.home .home-hero{
    padding-top: 8px;
    padding-bottom: 16px;
  }

  body.home .home-hero .hero-frame{
    min-height: 0;
    aspect-ratio: auto;
    padding: 0;
  }

  body.home .home-hero__layout{
    display: block;
    height: auto;
  }

  body.home .home-hero__copy{
    min-height: 0;
    display: block;
    padding: 30px 22px 26px;
    border-right: 0;
    border-bottom: 0;
  }

  body.home .home-hero__stage{
    width: 100%;
    max-width: 38rem;
    gap: 16px;
    margin-inline: auto;
  }

  body.home .home-hero__eyebrow{
    font-size: 0.58rem;
    letter-spacing: 0.24em;
  }

  body.home .home-hero__title{
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.7rem, 8vw, 4.5rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-align: left;
    overflow-wrap: normal;
    word-break: normal;
  }

  body.home .home-hero__subline{
    font-size: 0.6rem;
    letter-spacing: 0.28em;
  }

  body.home .home-hero__lead{
    max-width: 34rem;
    font-size: 0.92rem;
    line-height: 1.65;
    text-align: left;
  }

  body.home .home-hero__actions{
    width: 100%;
    justify-content: flex-start;
  }

  body.home .home-hero__actions .btn{
    flex: 0 1 auto;
    min-height: 42px;
  }

  body.home .home-hero__details{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
    padding-top: 14px;
    font-size: 0.54rem;
    line-height: 1.7;
  }

  body.home .home-hero__scroll-hint{
    display: none;
  }

  body.home .home-hero__media{
    display: grid;
    min-height: 0;
    height: auto;
    align-content: start;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(280px, 62vw) auto;
    gap: 8px;
    padding: 8px;
  }

  body.home .home-hero__main-image{
    grid-column: 1;
    grid-row: 1;
  }

  body.home .home-hero__supporting-images{
    grid-column: 1;
    grid-row: 2;
    gap: 8px;
    align-content: start;
  }

  body.home .home-hero__supporting-image{
    aspect-ratio: 16 / 9;
    height: auto;
  }

  body.home .home-hero__media-label{
    right: 12px;
    bottom: 12px;
    padding: 8px 10px;
    font-size: 0.52rem;
  }
}

@media (max-width: 520px){
  body.home .home-hero__copy{
    padding: 26px 18px 22px;
  }

  body.home .home-hero__title{
    font-size: clamp(2.55rem, 11vw, 3.8rem);
  }

  body.home .home-hero__actions{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home .home-hero__actions .btn{
    width: 100%;
    padding-inline: 10px;
    text-align: center;
  }

  body.home .home-hero__media{
    grid-template-rows: minmax(250px, 72vw) auto;
  }
}

@media (max-width: 1024px){
  body.home .about-section{
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body.home .about-section__copy,
  body.home .about-section__visual{
    width: 100%;
    grid-column: 1;
  }

  body.home .about-section__text{
    max-width: none;
  }

  body.home .about-section__visual{
    height: auto;
    aspect-ratio: 3 / 2;
  }
}

@media (min-width: 861px){
  body.home .home-team-section .team-card__visual,
  body.home .home-team-section .team-card--reverse .team-card__visual{
    min-height: 410px;
  }
}

/* Keep the team section at a stable visible count and let extra cards slide. */
body.home .home-team-carousel {
  position: relative;
  min-width: 0;
}

body.home .home-team-section .team-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  grid-template-columns: none;
  gap: clamp(14px, 2vw, 24px);
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(181, 140, 97, .55) transparent;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

body.home .home-team-section .team-grid::-webkit-scrollbar {
  height: 7px;
}

body.home .home-team-section .team-grid::-webkit-scrollbar-thumb {
  background: rgba(181, 140, 97, .55);
  border-radius: 99px;
}

body.home .home-team-section .team-card {
  min-width: 0;
  scroll-snap-align: start;
}

body.home .home-team-carousel__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(17, 17, 17, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 8px 22px rgba(17, 17, 17, .08);
}

body.home .home-team-carousel__arrow--prev { left: -21px; }
body.home .home-team-carousel__arrow--next { right: -21px; }

body.home .home-team-carousel__arrow:disabled {
  opacity: .28;
  pointer-events: none;
}

body.home .home-team-carousel.is-static .home-team-carousel__arrow {
  display: none;
}

body.home .home-inspiration-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 16px);
}

body.home .home-inspiration-card {
  position: relative;
  display: block;
  min-height: 125px;
  overflow: hidden;
  background: var(--surface-strong);
  isolation: isolate;
}

.service-card__image {
  min-height: 150px;
  margin: -24px -24px 0;
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

body.home .home-inspiration-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 58%, rgba(17, 17, 17, .58));
  content: "";
  pointer-events: none;
}

body.home .home-inspiration-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 125px;
  object-fit: cover;
  transition: transform 420ms ease;
}

body.home .home-inspiration-card:hover img,
body.home .home-inspiration-card:focus-visible img {
  transform: scale(1.04);
}

body.home .home-inspiration-card__label {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  color: #fff;
  font-size: .66rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  body.home .home-inspiration-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.home .home-inspiration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home .home-inspiration-card:nth-child(n + 7) {
    display: none;
  }

  body.home .home-inspiration-actions {
    justify-content: center;
  }
}

/* Keep gallery names readable below the image instead of overlaying the artwork. */
body.home .home-inspiration-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid rgba(17, 17, 17, .1);
  border-radius: 3px;
  background: rgba(255, 255, 255, .78);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(53, 39, 27, .05);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

body.home .home-inspiration-card::after {
  display: none;
}

body.home .home-inspiration-card img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px 2px 0 0;
}

body.home .home-inspiration-card__label {
  position: static;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px 13px 16px;
  overflow: hidden;
  color: var(--ink);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.35;
  text-overflow: ellipsis;
  text-transform: uppercase;
  text-wrap: balance;
}

body.home .home-inspiration-card__label::before {
  width: 3px;
  height: 26px;
  flex: 0 0 3px;
  background: #756b62;
  content: "";
}

body.home .home-inspiration-card__label::after {
  margin-left: auto;
  color: #756b62;
  content: "↗";
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1;
}

body.home .home-inspiration-card:hover,
body.home .home-inspiration-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(37, 27, 18, .14);
}

body.home .home-inspiration-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  body.home .home-inspiration-grid {
    gap: 10px;
  }

  body.home .home-inspiration-card img {
    aspect-ratio: 1 / 1;
  }

  body.home .home-inspiration-card__label {
    min-height: 52px;
    gap: 8px;
    padding: 9px 9px 10px 10px;
    font-size: .59rem;
    letter-spacing: .06em;
    line-height: 1.25;
  }

  body.home .home-inspiration-card__label::before {
    width: 2px;
    height: 22px;
    flex-basis: 2px;
  }

  body.home .home-inspiration-card__label::after {
    font-size: .95rem;
  }
}

body.home .home-team-section .team-grid--count-1 {
  grid-auto-columns: 100%;
}

body.home .home-team-section .team-grid--count-2 {
  grid-auto-columns: calc((100% - 24px) / 2);
}

@media (max-width: 1000px) {
  body.home .home-team-section .team-grid {
    grid-auto-columns: calc((100% - 24px) / 2);
  }
}

@media (max-width: 640px) {
  body.home .home-team-carousel {
    padding-bottom: 58px;
  }

  body.home .home-team-section .team-grid {
    grid-auto-columns: calc(100% - 16px);
    padding-inline: 8px;
    scroll-padding-inline: 8px;
  }

  body.home .home-team-section .team-grid--count-1,
  body.home .home-team-section .team-grid--count-2 {
    grid-auto-columns: calc(100% - 16px);
  }

  body.home .home-team-carousel__arrow {
    top: auto;
    bottom: 8px;
    transform: none;
  }

body.home .home-team-carousel__arrow--prev { left: calc(50% - 46px); right: auto; }
  body.home .home-team-carousel__arrow--next { left: calc(50% + 4px); right: auto; }
}

@media (max-width: 1000px) {
  body.home .home-featured-reviews__grid {
    grid-auto-columns: calc((100% - 12px) / 2);
  }
}

@media (max-width: 640px) {
  body.home .home-reviews-carousel {
    padding-bottom: 58px;
  }

  body.home .home-featured-reviews__grid {
    grid-auto-columns: calc(100% - 16px);
    padding-inline: 8px;
    scroll-padding-inline: 8px;
  }

  body.home .home-reviews-carousel__arrow {
    top: auto;
    bottom: 8px;
    transform: none;
  }

  body.home .home-reviews-carousel__arrow--prev { left: calc(50% - 46px); right: auto; }
  body.home .home-reviews-carousel__arrow--next { left: calc(50% + 4px); right: auto; }
}
