/* Home page, written phone first: base rules are the phone layout, larger screens add to them.
   Bands alternate the three brand colours: ink, sand, white. */
.hm-band { padding-block: clamp(56px, 9vw, 132px); }
.hm-band--ink { background: var(--as-ink); color: var(--as-white); }
.hm-band--sand { background: var(--as-sand); color: var(--as-ink); }
.hm-band--white { background: var(--as-white); color: var(--as-ink); }

.hm :is(h1, h2, h3, p, ul, ol, blockquote) { margin: 0; padding: 0; }
.hm :is(ul, ol) { list-style: none; }
.hm :is(h1, h2) { font-family: var(--as-display); font-weight: 400; text-wrap: balance; }
.hm h2 { font-size: clamp(2.375rem, 4.8vw, 4.25rem); line-height: 1.08; }
.hm h3 { font: 600 1.0625rem/1.4 var(--as-text); }
.hm .hm-band--ink p { color: var(--as-on-dark); }
.hm .hm-band--white p { color: var(--as-on-light); }
.hm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; margin-bottom: clamp(26px, 4vw, 56px); }
.hm .hm-head p { max-width: 52ch; margin-top: 10px; }
.hm-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hm-actions .as-btn { flex: 1 1 100%; gap: 10px; }
.as-btn--line-ink { background: transparent; border-color: var(--as-ink); }
.as-btn--line-ink:hover { background: var(--as-white); border-color: var(--as-white); }
.hm-more { width: 100%; min-height: 50px; margin-top: 14px; border: 1px solid currentColor; background: none; color: inherit; font: 600 .9375rem/1 var(--as-text); cursor: pointer; }

/* Hero: the portrait fills the first screen, text and buttons sit on it */
.hm-hero { position: relative; display: flex; align-items: flex-end; min-height: max(430px, calc(100vh - var(--as-header-h) - var(--as-tabs-h, 0px))); min-height: max(430px, calc(100svh - var(--as-header-h) - var(--as-tabs-h, 0px))); background: var(--as-ink); overflow: hidden; }
.hm-hero__photo { position: absolute; inset: 0 0 18%; }
.hm-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 12%; animation: hm-settle 1.6s cubic-bezier(.2, .7, .2, 1); }
.hm-hero__photo::after { content: ""; position: absolute; inset: 25% 0 -1px; background: linear-gradient(to bottom, rgba(26, 26, 26, 0), rgba(26, 26, 26, .72) 48%, #1A1A1A 88%); }
@keyframes hm-settle { from { transform: scale(1.06); } }
.hm-hero__text { position: relative; width: 100%; padding: 0 20px 24px; }
.hm .hm-hero h1 { font-size: clamp(2.125rem, 11.2vw, 4.5rem); line-height: 1; }
.hm-hero h1 span { color: var(--as-sand); }
.hm .hm-hero p { max-width: 44ch; margin: 14px 0 20px; font-size: .9375rem; line-height: 1.55; color: rgba(255, 255, 255, .86); }
.hm-hero .hm-actions { flex-wrap: nowrap; }
.hm-hero .hm-actions .as-btn { flex: 1 1 auto; padding-inline: 14px; white-space: nowrap; }

/* Service tiles and price list */
.hm-tiles li { width: min(56vw, 260px); }
.hm-tiles a { position: relative; display: block; overflow: hidden; color: var(--as-white); background: var(--as-ink); }
.hm-tiles img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s; }
.hm-tiles a::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to bottom, transparent, rgba(20, 18, 16, .85)); }
.hm-tiles b, .hm-tiles a span { position: absolute; left: 16px; z-index: 1; }
.hm-tiles b { bottom: 38px; font: 600 1.1875rem/1.3 var(--as-text); }
.hm-tiles a span { bottom: 15px; font-size: .9375rem; line-height: 1.4; }
.hm-menu { margin-top: 24px !important; border-bottom: 1px solid var(--as-line-light); }
.hm-menu li { border-top: 1px solid var(--as-line-light); }
.hm-menu a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; min-height: 54px; color: var(--as-ink); }
.hm-menu b { font: 500 1.0625rem/1.4 var(--as-text); overflow-wrap: anywhere; }
.hm-menu span { font-size: .9375rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hm-menu i, .hm-cats i { font-size: .6875rem; opacity: .55; }

/* About */
.hm-about { display: grid; gap: 28px; }
.hm-about__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.hm .hm-about h2 { margin-bottom: 18px; }
.hm-about__body { font-size: 1rem; }
.hm .hm-about p + p { margin-top: 18px; }
.hm-about__links { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 22px; color: var(--as-sand); }

/* Shop */
.hm-product { position: relative; min-width: 0; width: 44vw; max-width: 220px; }
.hm-product__img { display: block; aspect-ratio: 1; overflow: hidden; background: #F4F3F1; }
.hm-product__img img { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .4s; }
.hm .hm-product h3 { margin-top: 12px; font-size: .9375rem; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hm-product h3 a { color: var(--as-ink); }
.hm-product p { font-size: .875rem; }
.hm .hm-product .hm-price { margin-top: 4px; color: var(--as-ink); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.hm-heart { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--as-ink); font-size: 1.0625rem; cursor: pointer; }
.hm-heart[aria-pressed="true"] { background: var(--as-ink); color: var(--as-white); }
.hm .hm-cats { margin-top: 36px; border-bottom: 1px solid var(--as-line-light); }
.hm-cats a { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--as-line-light); color: var(--as-ink); }
.hm-cats__img { display: block; height: 64px; overflow: hidden; background: #F4F3F1; }
.hm-cats img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hm-cats b { display: block; font: 600 1.0625rem/1.4 var(--as-text); }
.hm-cats__text span { display: none; color: var(--as-on-light); font-size: .9375rem; }

/* Booking */
.hm-book { display: grid; gap: 32px; }
.hm-book .hm-actions { margin-top: 24px; }
.hm .hm-book__lead { max-width: 44ch; margin-top: 14px; }
.hm-steps li { display: grid; grid-template-columns: 44px 1fr; padding: 18px 0; border-top: 1px solid var(--as-line-light); }
.hm-steps__n { font: 400 1.75rem/1.1 var(--as-text); font-variant-numeric: tabular-nums; }

/* Classes */
.hm-classes { border-bottom: 1px solid var(--as-line-light); }
.hm-classes a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 20px; align-items: baseline; padding: 15px 0; border-top: 1px solid var(--as-line-light); color: var(--as-ink); }
.hm-classes b { font: 600 1.0625rem/1.4 var(--as-text); }
.hm-classes__meta { grid-row: 2; color: var(--as-on-light); font-size: .9375rem; }
.hm-classes__price { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Reviews */
.hm-reviews li { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; width: min(78vw, 340px); padding: 22px; border: 1px solid var(--as-line-dark); }
.hm-reviews blockquote { font-size: 1.125rem; line-height: 1.55; overflow-wrap: anywhere; }
.hm-reviews p { font-size: .9375rem; }
.hm-reviews strong { display: block; color: var(--as-sand); font-weight: 600; }

/* Why the studio */
.hm-why { display: grid; gap: 22px; }
.hm-why li { display: grid; grid-template-columns: 44px 1fr; }
.hm-why i { padding-top: 4px; font-size: 1.25rem; color: #8A7761; }
.hm .hm-why p { margin-top: 2px; font-size: .9375rem; }

/* Visit */
.hm-visit { padding-block: clamp(56px, 7vw, 96px); }
.hm-visit .as-wrap { display: grid; gap: 24px; }
.hm .hm-visit p { max-width: 44ch; margin-top: 12px; }

/* Very small or short phones */
@media (max-width: 350px) { .hm-hero .hm-actions { gap: 8px; } .hm-hero .hm-actions .as-btn { padding-inline: 8px; font-size: .875rem; } }
@media (max-width: 680px) and (max-height: 600px) { .hm-hero__text > p { display: none; } .hm-hero .hm-actions { margin-top: 18px; } }

/* Phone only */
@media (max-width: 680px) {
    .hm-menu.is-cut li:nth-child(n+6) { display: none; }
    .hm-about__body.is-cut p:first-child { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
    .hm-about__body.is-cut p + p { display: none; }
}
@media (min-width: 681px) {
    .hm-more { display: none !important; }
    .hm-actions .as-btn { flex: 0 0 auto; }
    .hm-menu { columns: 2; column-gap: clamp(40px, 7vw, 112px); border-bottom: 0; }
    .hm-menu li { break-inside: avoid; }
    .hm-why { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
    .hm-classes { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 7vw, 112px); border-bottom: 0; }
    .hm-hero .hm-actions .as-btn { flex: 0 0 auto; padding-inline: 30px; }
    .hm-hero__text { padding: 0 clamp(20px, 4vw, 48px) 44px; }
}
@media (min-width: 681px) and (max-width: 860px) { .hm-hero__photo img { object-position: 50% 20%; } }

@media (min-width: 861px) {
    .hm-head p { font-size: 1.0625rem; }
    /* Hero: portrait runs to the edge of the screen */
    .hm-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46%); align-items: stretch; min-height: min(calc(100vh - 77px), 860px); }
    .hm-hero__photo { position: relative; inset: auto; order: 2; min-height: 560px; overflow: hidden; }
    .hm-hero__photo img { position: absolute; inset: 0; object-position: 50% 24%; }
    .hm-hero__photo::after { display: none; }
    .hm-hero__text { align-self: center; justify-self: end; max-width: 734px; padding: 64px clamp(24px, 4vw, 64px) 64px clamp(20px, 4vw, 48px); }
    .hm .hm-hero h1 { font-size: clamp(3rem, 6.3vw, 6.25rem); }
    .hm .hm-hero p { margin: 28px 0 36px; font-size: 1.0625rem; }
    .hm-hero .hm-actions { flex-wrap: wrap; }

    .hm-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
    .hm-tiles li { width: auto; }
    .hm-menu { margin-top: 44px !important; }
    .hm-menu a { transition: padding .25s; }
    .hm-menu a:hover { padding-left: 10px; }

    .hm-about, .hm-book { grid-template-columns: 5fr 6fr; gap: clamp(32px, 7vw, 112px); align-items: center; }
    .hm .hm-about h2 { margin-bottom: 28px; }
    .hm-about__body { font-size: 1.0625rem; }
    .hm-steps li { grid-template-columns: 64px 1fr; padding: 24px 0; }
    .hm-steps li:last-child { border-bottom: 1px solid var(--as-line-light); }

    .hm-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 24px; }
    .hm-product { width: auto; max-width: none; }
    .hm .hm-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 80px; border: 0; }
    .hm-cats a { display: block; padding: 0; border: 0; }
    .hm-cats__img { height: auto; aspect-ratio: 3 / 2; margin-bottom: 16px; }
    .hm-cats__text span { display: block; margin-top: 6px; }
    .hm-cats i { display: none; }

    .hm-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 24px; }
    .hm-reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hm-reviews li { width: auto; padding: 32px; }
    .hm-reviews blockquote { font-size: 1.25rem; }
    .hm-why { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(32px, 5vw, 80px); }
    .hm-visit .as-wrap { grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
}
@media (min-width: 861px) and (max-width: 1000px) { .hm-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hm-products li:nth-child(n+7) { display: none; } }
@media (hover: hover) {
    .hm-tiles a:hover img, .hm-product:hover .hm-product__img img, .hm-cats a:hover img { transform: scale(1.03); }
    .hm-product h3 a:hover, .hm-classes a:hover b { text-decoration: underline; text-underline-offset: 4px; }
    .hm-heart:hover { background: var(--as-ink); color: var(--as-white); }
    .hm-more:hover { opacity: .7; }
}
