/* The Holy Cut: rounded photographic sections, scoped to the public homepage. */
.homepage {
    --section-radius: 34px;
    --panel-radius: 28px;
    --panel-edge: rgba(232, 232, 232, .12);
    --panel-ink: #b9b9b9;
    --section-ease: cubic-bezier(.16, 1, .3, 1);
}

.homepage .works-section {
    padding-top: 84px;
}

.homepage .section-heading {
    gap: 40px;
    margin-bottom: 34px;
}

.homepage .section-heading h2 {
    font-size: clamp(44px, 4.6vw, 72px);
}

.homepage .section-heading > p {
    max-width: 40ch;
    color: var(--panel-ink);
}

/* One large portrait, with two horizontal service panels beside it. */
.homepage .service-menu {
    grid-template-columns: 1.04fr 1fr;
    grid-template-rows: repeat(2, minmax(238px, auto));
    gap: 20px;
    align-items: stretch;
}

.homepage .service-entry {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, .88fr) minmax(0, 1fr);
    gap: 0;
    min-height: 238px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid var(--panel-edge);
    border-radius: var(--panel-radius);
    background: #101010;
    transition: transform 550ms var(--section-ease), border-color 280ms ease,
        background-color 280ms ease;
}

.homepage .service-entry-main {
    display: grid;
    grid-row: 1 / 3;
    grid-column: 1;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(260px, 1fr) auto;
    min-height: 496px;
}

.homepage .service-entry .service-photo {
    position: relative;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #080808;
}

.homepage .service-entry .service-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 238px;
    aspect-ratio: auto;
    object-fit: cover;
    filter: grayscale(1) brightness(.93) contrast(1.04);
    transition: transform 1100ms var(--section-ease), filter 500ms ease;
}

.homepage .service-entry-main .service-photo img {
    min-height: 260px;
    object-position: center 58%;
}

.homepage .service-entry-main .service-photo .haircut-service-image {
    object-fit: cover;
    object-position: 65% center;
}

.homepage .service-entry .service-details {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    margin: 0;
    padding: clamp(24px, 2.4vw, 36px);
}

.homepage .service-entry-main .service-details {
    padding: 28px 32px 32px;
}

.homepage .service-name {
    gap: 14px;
    align-items: baseline;
}

.homepage .service-entry h3 {
    font-size: clamp(25px, 2.2vw, 34px);
    font-weight: 500;
}

.homepage .service-entry .service-price {
    margin: 0;
    color: #aaa;
    font-size: 14px;
}

.homepage .service-entry .service-price strong {
    color: #eee;
    font-weight: 550;
}

.homepage .service-entry .service-details > p {
    max-width: 45ch;
    margin-top: 18px;
    color: var(--panel-ink);
    font-size: 16px;
    line-height: 1.65;
}

.homepage .service-note {
    margin-top: 24px;
    font-size: 14px;
    color: #aaa;
}

/* The single-chair statement has its own full-width, tactile frame. */
.homepage .studio-section {
    position: relative;
    grid-template-columns: 1.18fr 1fr;
    gap: clamp(40px, 6vw, 86px);
    margin-top: 68px;
    padding: clamp(36px, 5vw, 68px);
    border: 1px solid var(--panel-edge);
    border-radius: var(--section-radius);
    background: #101010;
    overflow: hidden;
}

.homepage .studio-statement h2 {
    font-size: clamp(42px, 4.8vw, 70px);
    line-height: 1.08;
}

.homepage .studio-statement > p {
    max-width: 32ch;
    margin-top: 32px;
    color: var(--panel-ink);
    font-size: 17px;
    line-height: 1.65;
}

.homepage .studio-details {
    align-self: stretch;
    align-content: center;
    max-width: none;
    gap: 30px;
    padding-left: clamp(24px, 3vw, 44px);
    border-left: 1px solid rgba(255, 255, 255, .1);
}

.homepage .studio-details h3 {
    font-size: 24px;
}

.homepage .studio-details p {
    max-width: 36ch;
    margin-top: 12px;
    color: var(--panel-ink);
    font-size: 16px;
}

/* Contact is an address spread, with a darker inset for the real details. */
.homepage .visit-section {
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(36px, 5vw, 70px);
    margin-top: 32px;
    padding: clamp(32px, 4.7vw, 64px);
    border: 1px solid var(--panel-edge);
    border-radius: var(--section-radius);
    background: #0c0c0c;
    overflow: hidden;
}

.homepage .visit-section::before {
    display: none;
}

.homepage .visit-copy h2 {
    font-size: clamp(38px, 3.9vw, 58px);
    line-height: 1.08;
}

.homepage .visit-copy > p {
    margin-top: 22px;
    color: var(--panel-ink);
    font-size: 16px;
}

.homepage .visit-copy h3 {
    margin-top: 30px;
    font-size: 25px;
}

.homepage .visit-contact {
    align-self: stretch;
    align-content: center;
    gap: 20px;
    padding: clamp(26px, 3vw, 42px);
    border-radius: 24px;
    background: #161616;
}

.homepage .visit-contact .contact-name {
    font-size: 28px;
    color: #eee;
}

.homepage .visit-contact address {
    font-size: 18px;
    color: #c3c3c3;
}

.homepage .visit-contact .contact-phone {
    max-width: 100%;
    font-size: clamp(23px, 2.25vw, 34px);
    white-space: nowrap;
}

.homepage .visit-contact .text-link {
    font-size: 16px;
    text-decoration-thickness: 1px;
}

/* The closing booking panel is composed as a photographic brand spread. */
.homepage .booking-panel {
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
    gap: 0;
    margin-top: 32px;
    padding: 18px;
    border: 1px solid var(--panel-edge);
    border-radius: var(--section-radius);
    background: #101010;
    overflow: hidden;
}

.homepage .booking-panel .sign-visual {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 370px;
    aspect-ratio: 1.2;
    border-radius: 22px;
    overflow: hidden;
    background: #060606;
}

.homepage .sign-visual picture,
.homepage .sign-visual img {
    display: block;
    width: 100%;
    height: 100%;
}

.homepage .sign-visual picture {
    position: absolute;
    inset: 0;
}

.homepage .sign-visual img {
    object-fit: cover;
    object-position: center;
    filter: grayscale(1) brightness(.96);
    transition: transform 1400ms var(--section-ease);
}

.homepage .booking-copy {
    min-width: 0;
    padding: clamp(28px, 4vw, 56px);
}

.homepage .booking-copy h2 {
    font-size: clamp(40px, 4.3vw, 64px);
    line-height: 1.05;
}

.homepage .booking-copy .lede {
    max-width: 35ch;
    color: var(--panel-ink);
    font-size: 16px;
}

.homepage .booking-copy .sparkle-button {
    margin-top: 30px;
}

.homepage .site-footer {
    margin-top: 54px;
    padding: 30px 34px 24px;
    border-radius: 28px;
    background: #0b0b0b;
}

/* Quiet feedback and different arrival gestures, with a visible no-JS state. */
@media (hover: hover) and (pointer: fine) {
    .homepage .service-entry:hover {
        transform: translateY(-4px);
        border-color: rgba(255, 255, 255, .26);
        background: #141414;
    }

    .homepage .service-entry:hover .service-photo img {
        transform: scale(1.045);
        filter: grayscale(1) brightness(1.03) contrast(1.04);
    }

    .homepage.motion-ready .service-entry.is-visible:hover .service-photo img {
        transform: scale(1.045);
    }

    .homepage .booking-panel:hover .sign-visual img {
        transform: scale(1.035);
    }

    .homepage .visit-contact .contact-phone:hover {
        color: #fff;
        transform: translateX(4px);
    }
}

.homepage .visit-contact .contact-phone {
    transition: color 200ms ease, transform 350ms var(--section-ease);
}

@media (prefers-reduced-motion: no-preference) {
    .homepage.motion-ready .service-entry .service-photo img {
        transform: scale(1.075);
    }

    .homepage.motion-ready .service-entry.is-visible .service-photo img {
        transform: scale(1);
    }

    .homepage.motion-ready .service-entry .service-details > * {
        transition: opacity 650ms ease, transform 750ms var(--section-ease);
    }

    .homepage.motion-ready .service-entry:not(.is-visible) .service-details > * {
        opacity: 0;
        transform: translateY(14px);
    }

    .homepage.motion-ready .service-entry.is-visible .service-details > * {
        opacity: 1;
        transform: none;
        transition-delay: 110ms;
    }

    .homepage.motion-ready .service-entry.is-visible .service-details > p {
        transition-delay: 190ms;
    }

    .homepage.motion-ready .visit-copy.reveal {
        transform: translateX(-18px);
    }

    .homepage.motion-ready .visit-contact.reveal {
        transform: translateX(18px);
        transition-delay: 90ms;
    }

    .homepage.motion-ready .visit-copy.is-visible,
    .homepage.motion-ready .visit-contact.is-visible {
        transform: none;
    }

    .homepage.motion-ready .sign-visual:not(.is-visible) img {
        transform: scale(1.09);
    }

    .homepage.motion-ready .sign-visual.is-visible img {
        transform: scale(1);
    }
}

@media (max-width: 1100px) {
    .homepage .service-menu {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(2, minmax(240px, auto));
    }

    .homepage .service-entry:not(.service-entry-main) {
        grid-template-columns: minmax(135px, .7fr) 1fr;
        gap: 0;
    }

    .homepage .service-entry .service-details {
        padding: 24px;
    }

    .homepage .service-name {
        display: block;
    }

    .homepage .service-entry .service-price {
        margin-top: 10px;
    }

    .homepage .studio-section,
    .homepage .visit-section {
        gap: 32px;
        padding: 38px;
    }

    .homepage .studio-statement h2 {
        font-size: 48px;
    }

    .homepage .studio-details {
        padding-left: 28px;
    }

    .homepage .booking-copy {
        padding: 30px;
    }

    .homepage .booking-copy h2 {
        font-size: 44px;
    }
}

@media (min-width: 701px) and (max-width: 900px) {
    .homepage .service-menu {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 18px;
    }

    .homepage .service-entry-main {
        grid-row: auto;
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
        min-height: 290px;
    }

    .homepage .service-entry:not(.service-entry-main) {
        grid-template-columns: 1fr;
        grid-template-rows: 180px auto;
    }

    .homepage .service-entry .service-photo img {
        min-height: 0;
    }

    .homepage .service-entry-main .service-photo img {
        min-height: 290px;
    }

    .homepage .studio-section,
    .homepage .visit-section {
        grid-template-columns: 1fr 1fr;
        gap: 26px;
        padding: 30px;
    }

    .homepage .studio-statement h2 {
        font-size: 38px;
    }

    .homepage .studio-details {
        padding-left: 24px;
    }

    .homepage .visit-copy h2 {
        font-size: 38px;
    }

    .homepage .visit-contact {
        padding: 24px;
    }

    .homepage .visit-contact .contact-phone {
        font-size: 23px;
    }

    .homepage .booking-panel {
        grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    }

    .homepage .booking-panel .sign-visual {
        min-height: 330px;
    }

    .homepage .booking-copy {
        padding: 28px;
    }

    .homepage .booking-copy h2 {
        font-size: 40px;
    }

    .homepage .booking-copy .spark-button {
        min-width: 210px;
        padding-inline: 24px;
    }
}

@media (max-width: 700px) {
    .homepage {
        --section-radius: 28px;
        --panel-radius: 24px;
    }

    .homepage .works-section {
        padding-top: 66px;
    }

    .homepage .section-heading {
        margin-bottom: 28px;
    }

    .homepage .section-heading h2 {
        font-size: 42px;
    }

    .homepage .section-heading > p {
        margin-top: 18px;
        font-size: 16px;
    }

    .homepage .service-menu {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 16px;
    }

    .homepage .service-entry-main {
        grid-column: auto;
        grid-row: auto;
        grid-template-columns: 1fr;
        grid-template-rows: 245px auto;
        min-height: 0;
    }

    .homepage .service-entry:not(.service-entry-main) {
        grid-template-columns: minmax(105px, .62fr) 1fr;
        grid-template-rows: 1fr;
        min-height: 230px;
        gap: 0;
    }

    .homepage .service-entry .service-photo img {
        min-height: 0;
    }

    .homepage .service-entry-main .service-photo img {
        min-height: 245px;
    }

    .homepage .service-entry .service-details {
        padding: 24px 20px;
    }

    .homepage .service-entry-main .service-details {
        padding: 25px;
    }

    .homepage .service-entry h3 {
        font-size: 25px;
    }

    .homepage .service-entry .service-details > p {
        margin-top: 16px;
        font-size: 16px;
        line-height: 1.6;
    }

    .homepage .service-note {
        margin-top: 22px;
        font-size: 14px;
    }

    .homepage .studio-section {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 44px;
        padding: 30px;
    }

    .homepage .studio-statement h2 {
        font-size: clamp(31px, 8.6vw, 44px);
    }

    .homepage .studio-statement > p {
        margin-top: 28px;
        font-size: 16px;
    }

    .homepage .studio-details {
        gap: 26px;
        padding: 26px 0 0;
        border-top: 1px solid rgba(255, 255, 255, .1);
        border-left: 0;
    }

    .homepage .studio-details h3 {
        font-size: 23px;
    }

    .homepage .visit-section {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: 20px;
        padding: 28px;
    }

    .homepage .visit-copy h2 {
        font-size: 36px;
    }

    .homepage .visit-copy h3 {
        margin-top: 28px;
        font-size: 24px;
    }

    .homepage .visit-contact {
        gap: 18px;
        padding: 24px;
        border-radius: 20px;
    }

    .homepage .visit-contact .contact-name {
        font-size: 26px;
    }

    .homepage .visit-contact .contact-phone {
        font-size: clamp(23px, 5.7vw, 28px);
    }

    .homepage .booking-panel {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 20px;
        padding: 14px;
    }

    .homepage .booking-panel .sign-visual {
        min-height: 0;
        height: auto;
        aspect-ratio: 1.28;
        border-radius: 18px;
    }

    .homepage .booking-copy {
        padding: 28px 14px 22px;
    }

    .homepage .booking-copy h2 {
        font-size: clamp(32px, 8.6vw, 42px);
    }

    .homepage .booking-copy .lede {
        margin-top: 22px;
    }

    .homepage .booking-copy .sparkle-button,
    .homepage .booking-copy .spark-button {
        width: 100%;
    }

    .homepage .booking-copy .spark-button {
        min-width: 0;
    }

    .homepage .site-footer {
        margin-top: 38px;
        padding: 28px;
        border-radius: 24px;
    }
}

@media (max-width: 380px) {
    .homepage .service-entry:not(.service-entry-main) {
        grid-template-columns: 1fr;
        grid-template-rows: 170px auto;
    }

    .homepage .service-entry-main {
        grid-template-rows: 220px auto;
    }

    .homepage .service-entry-main .service-photo img {
        min-height: 220px;
    }

    .homepage .service-entry .service-details {
        padding: 24px;
    }

    .homepage .studio-section,
    .homepage .visit-section {
        padding: 24px;
    }

    .homepage .visit-contact {
        padding: 20px;
    }

    .homepage .visit-contact .contact-phone {
        font-size: 22px;
    }

    .homepage .site-footer {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .homepage .service-entry,
    .homepage .service-entry img,
    .homepage .service-details > *,
    .homepage .visit-contact .contact-phone,
    .homepage .sign-visual img {
        transition: none;
        transform: none;
    }
}
