/* ==========================================================================
   Merzotti — dark classic theme
   ========================================================================== */

/* Fonts (self-hosted, SIL Open Font License) ------------------------------ */

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-var.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Playfair Display";
    src: url("../fonts/playfair-display-var.woff2") format("woff2");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Playfair Display";
    src: url("../fonts/playfair-display-italic-var.woff2") format("woff2");
    font-weight: 400 900;
    font-style: italic;
    font-display: swap;
}

/* Tokens ------------------------------------------------------------------- */

:root {
    --bg: #0e0d0b;
    --bg-alt: #14120f;
    --surface: #1b1814;
    --surface-2: #23201a;
    --line: #2f2a22;
    --line-strong: #463e31;

    --text: #ece5d8;
    --text-soft: #c9c0b0;
    --muted: #9c9382;

    --gold: #c9a35b;
    --gold-light: #e2c487;
    --gold-dark: #9c7a3c;
    --on-gold: #17130c;

    --success: #93c08c;
    --danger: #e38a78;

    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

    --radius: 4px;
    --radius-lg: 10px;
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --section: clamp(64px, 9vw, 120px);
    --header-h: 76px;

    --shadow: 0 20px 50px -20px rgb(0 0 0 / 70%);
    --ease: cubic-bezier(.2, .7, .2, 1);

    color-scheme: dark;
}

/* Reset -------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0s !important;
        animation-duration: 0s !important;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 .5em;
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.01em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.75rem);
}

h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}

h3 {
    font-size: 1.3rem;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--gold-light);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--gold);
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

address {
    font-style: normal;
}

dl,
dd {
    margin: 0;
}

::selection {
    background: var(--gold);
    color: var(--on-gold);
}

/* Utilities ---------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow {
    max-width: calc(820px + var(--gutter) * 2);
}

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

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--gold);
    color: var(--on-gold);
    font-weight: 600;
}

.skip-link:focus {
    top: 16px;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: .875rem;
}

.center {
    text-align: center;
}

p.center {
    margin-top: 48px;
    margin-bottom: 0;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--gold);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1px;
    margin-right: 12px;
    vertical-align: middle;
    background: currentColor;
}

.lead {
    max-width: 60ch;
    color: var(--text-soft);
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.icon {
    width: 1.1em;
    height: 1.1em;
    flex: none;
}

.framed {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    outline: 1px solid var(--line);
    outline-offset: 10px;
}

/* Buttons & links ---------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 28px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font: 600 .82rem/1.2 var(--font-sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.btn:active {
    transform: translateY(1px);
}

.btn--gold {
    background: var(--gold);
    color: var(--on-gold);
}

.btn--gold:hover {
    background: var(--gold-light);
    color: var(--on-gold);
}

.btn--ghost {
    border-color: var(--line-strong);
    background: transparent;
    color: var(--text);
}

.btn--ghost:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.btn--sm {
    min-height: 42px;
    padding: 8px 18px;
    font-size: .74rem;
}

.btn--block {
    width: 100%;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-light);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
}

.link-arrow .icon {
    transition: transform .2s var(--ease);
}

.link-arrow:hover .icon {
    transform: translateX(4px);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.actions--center {
    justify-content: center;
}

/* Header ------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: border-color .3s;
}

/* The blur lives on a pseudo-element: backdrop-filter on the header itself would
   turn it into the containing block of the fixed mobile menu. */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgb(14 13 11 / 72%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color .3s;
}

.site-header.is-scrolled {
    border-color: var(--line);
}

.site-header.is-scrolled::before,
.nav-open .site-header::before {
    background: rgb(14 13 11 / 94%);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-h);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--gold);
    text-decoration: none;
}

.logo:hover {
    color: var(--gold-light);
}

.logo__mark {
    width: 42px;
    height: 42px;
}

.logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo__name {
    color: var(--text);
    font: 600 1.4rem/1 var(--font-serif);
    letter-spacing: .02em;
}

.logo__sub {
    margin-top: 4px;
    color: var(--muted);
    font-size: .62rem;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav__list {
    display: flex;
    gap: 4px;
    list-style: none;
}

.site-nav__link {
    position: relative;
    display: block;
    padding: 8px 12px;
    color: var(--text-soft);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
}

.site-nav__link::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 2px;
    left: 12px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform .25s var(--ease);
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
    color: var(--text);
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.nav-toggle .icon {
    width: 22px;
    height: 22px;
    margin: auto;
}

.nav-toggle__close,
.nav-open .nav-toggle__open {
    display: none;
}

.nav-open .nav-toggle__close {
    display: block;
}

@media (max-width: 960px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 0;
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding: 24px var(--gutter) 40px;
        overflow-y: auto;
        background: var(--bg);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    }

    .nav-open .site-nav {
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .nav-open {
        overflow: hidden;
    }

    .site-nav__list {
        flex-direction: column;
    }

    .site-nav__link {
        padding: 16px 0;
        border-bottom: 1px solid var(--line);
        font-family: var(--font-serif);
        font-size: 1.6rem;
        letter-spacing: 0;
        text-transform: none;
    }

    .site-nav__link::after {
        display: none;
    }

    .site-nav__link[aria-current="page"] {
        color: var(--gold-light);
    }

    .site-nav__cta {
        min-height: 54px;
    }
}

/* Hero --------------------------------------------------------------------- */

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(92vh, 860px);
    margin-top: calc(var(--header-h) * -1);
    padding: calc(var(--header-h) + 80px) 0 72px;
    overflow: hidden;
    isolation: isolate;
}

.hero__bg,
.page-hero__bg,
.course-hero__bg,
.academy-teaser__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__bg {
    object-position: 65% 15%;
}

.hero::before,
.page-hero--image::before,
.course-hero::before,
.academy-teaser::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero::before {
    background:
        linear-gradient(90deg, rgb(14 13 11 / 96%) 0%, rgb(14 13 11 / 82%) 38%, rgb(14 13 11 / 25%) 75%, rgb(14 13 11 / 45%) 100%),
        linear-gradient(0deg, var(--bg) 0%, transparent 35%);
}

@media (max-width: 700px) {
    .hero::before {
        background: linear-gradient(0deg, var(--bg) 0%, rgb(14 13 11 / 90%) 50%, rgb(14 13 11 / 60%) 100%);
    }
}

.hero__title {
    max-width: 12ch;
}

.hero__title em,
.page-hero__title em {
    color: var(--gold);
    font-style: italic;
    font-weight: 500;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 48px;
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid rgb(201 163 91 / 25%);
    max-width: 760px;
}

.stats dt {
    color: var(--gold-light);
    font: 600 2rem/1 var(--font-serif);
}

.stats dd {
    margin-top: 6px;
    color: var(--muted);
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* Inner page hero ---------------------------------------------------------- */

.page-hero {
    position: relative;
    padding: clamp(72px, 10vw, 128px) 0 clamp(48px, 6vw, 72px);
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(ellipse at 80% 0%, rgb(201 163 91 / 10%), transparent 55%),
        var(--bg-alt);
}

.page-hero--image {
    padding-top: clamp(110px, 14vw, 180px);
}

.page-hero--image::before {
    background:
        linear-gradient(90deg, rgb(14 13 11 / 95%) 0%, rgb(14 13 11 / 80%) 50%, rgb(14 13 11 / 55%) 100%),
        linear-gradient(0deg, var(--bg) 0%, transparent 60%);
}

.page-hero__title {
    max-width: 18ch;
}

.page-hero .lead {
    margin-bottom: 0;
}

.breadcrumbs {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: .85rem;
}

.breadcrumbs a {
    color: var(--text-soft);
}

/* Sections ----------------------------------------------------------------- */

.section {
    padding-block: var(--section);
}

.section--tight {
    padding-block: clamp(48px, 6vw, 80px);
}

.section--alt {
    border-block: 1px solid var(--line);
    background: var(--bg-alt);
}

.section-head {
    max-width: 680px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-head .eyebrow::after {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1px;
    margin-left: 12px;
    vertical-align: middle;
    background: currentColor;
}

.section-head p:last-child {
    margin-bottom: 0;
}

.section-head--light p:not(.eyebrow) {
    color: var(--text-soft);
}

.grid {
    display: grid;
    gap: 24px;
}

.grid--3 {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.grid--4 {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(40px, 7vw, 96px);
    align-items: center;
}

.split__media img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.split--contacts {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: start;
}

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

    .split__media {
        max-width: 520px;
    }

    .split--contacts .split__media {
        order: -1;
    }

    .split--contacts .split__media img {
        aspect-ratio: 16 / 10;
    }
}

.checklist {
    display: grid;
    gap: 12px;
    margin: 24px 0 32px;
    list-style: none;
}

.checklist li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--text-soft);
}

.checklist .icon {
    margin-top: .25em;
    color: var(--gold);
}

.checklist--two {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    column-gap: 32px;
}

/* Cards -------------------------------------------------------------------- */

.card {
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.card__title {
    font-size: 1.35rem;
}

.tag {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 2px;
    background: rgb(14 13 11 / 85%);
    color: var(--gold-light);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 24px;
    list-style: none;
}

.chips li {
    padding: 4px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--text-soft);
    font-size: .8rem;
}

.price {
    color: var(--gold-light);
    font: 600 1.35rem/1 var(--font-serif);
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-bottom: 20px;
    list-style: none;
    color: var(--muted);
    font-size: .85rem;
}

.meta li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta .icon {
    color: var(--gold);
}

/* Service tiles (home) */

.service-tile {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius-lg);
    color: var(--text);
    text-decoration: none;
    isolation: isolate;
}

.service-tile img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

.service-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgb(14 13 11 / 92%) 0%, rgb(14 13 11 / 10%) 60%);
}

.service-tile:hover {
    color: var(--text);
}

.service-tile:hover img {
    transform: scale(1.05);
}

.service-tile__body {
    position: absolute;
    right: 24px;
    bottom: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-tile__title {
    font: 600 1.6rem/1.1 var(--font-serif);
}

.service-tile__price {
    color: var(--gold-light);
    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* Course card */

.course-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: border-color .25s, transform .25s var(--ease);
}

.course-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-3px);
}

.course-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.course-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

.course-card:hover .course-card__media img {
    transform: scale(1.05);
}

.course-card__media .tag {
    position: absolute;
    top: 14px;
    left: 14px;
}

.course-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.course-card__title {
    margin-bottom: 6px;
    font-size: 1.4rem;
}

.course-card__title a {
    color: var(--text);
    text-decoration: none;
}

.course-card:hover .course-card__title a {
    color: var(--gold-light);
}

/* Stretched link: makes the whole card clickable while keeping a single link for keyboard and screen readers. */
.course-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.course-card__link:focus-visible {
    outline: none;
}

.course-card:has(.course-card__link:focus-visible) {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.course-card:hover .link-arrow .icon {
    transform: translateX(4px);
}

.course-card__tagline {
    color: var(--muted);
    font-size: .92rem;
}

.course-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

/* Barber card */

.barber-card__photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.barber-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(.35) contrast(1.05);
    transition: filter .4s, transform .6s var(--ease);
}

.barber-card:hover .barber-card__photo img {
    filter: none;
    transform: scale(1.03);
}

.focus-left img {
    object-position: 15% 50%;
}

.focus-right img {
    object-position: 85% 50%;
}

.barber-card__body {
    padding-top: 18px;
}

.barber-card__name {
    margin-bottom: 4px;
    font-size: 1.35rem;
}

.barber-card__role {
    margin-bottom: 0;
    color: var(--gold);
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.barber-card__meta {
    margin: 4px 0 16px;
    color: var(--muted);
    font-size: .85rem;
}

.barber-card--detailed .barber-card__body p:not(.barber-card__role, .barber-card__meta) {
    color: var(--text-soft);
}

.barber-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}

.barbers-list {
    display: grid;
    gap: clamp(48px, 7vw, 88px);
}

.barbers-list .barber-card {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.barbers-list .barber-card:nth-child(even) .barber-card__photo {
    order: 2;
}

.barbers-list .barber-card__name {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

@media (max-width: 760px) {
    .barbers-list .barber-card {
        grid-template-columns: 1fr;
    }

    .barbers-list .barber-card:nth-child(even) .barber-card__photo {
        order: 0;
    }

    .barbers-list .barber-card__photo {
        max-width: 420px;
    }
}

/* Reviews */

.review {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.review__stars {
    display: flex;
    gap: 3px;
    margin-bottom: 18px;
    color: var(--gold);
}

.review__stars .icon {
    width: 16px;
    height: 16px;
}

.review__text {
    flex: 1;
    margin: 0 0 24px;
    font: italic 400 1.12rem/1.55 var(--font-serif);
}

.review__text p {
    margin: 0;
}

.review__author {
    display: flex;
    flex-direction: column;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: .9rem;
}

.review__author span {
    color: var(--muted);
}

/* Academy teaser (home) ---------------------------------------------------- */

.academy-teaser {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.academy-teaser::before {
    background: linear-gradient(180deg, rgb(14 13 11 / 93%) 0%, rgb(14 13 11 / 85%) 50%, rgb(14 13 11 / 96%) 100%);
}

/* Features & steps (academy) ----------------------------------------------- */

.feature {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.feature__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border: 1px solid var(--gold-dark);
    border-radius: 50%;
    color: var(--gold);
}

.feature__icon .icon {
    width: 22px;
    height: 22px;
}

.feature__title {
    font-size: 1.25rem;
}

.feature p {
    margin: 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 32px;
    list-style: none;
    counter-reset: step;
}

.step {
    position: relative;
    padding-top: 64px;
    counter-increment: step;
}

.step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--gold);
    font: italic 500 2.6rem/1 var(--font-serif);
}

.step::after {
    content: "";
    position: absolute;
    top: 22px;
    right: 0;
    left: 72px;
    height: 1px;
    background: var(--line-strong);
}

.step__title {
    font-size: 1.3rem;
}

/* FAQ / details ------------------------------------------------------------ */

.faq {
    border-top: 1px solid var(--line);
}

.faq__item {
    border-bottom: 1px solid var(--line);
}

.faq__question,
.program summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 0;
    list-style: none;
    cursor: pointer;
}

.faq__question::-webkit-details-marker,
.program summary::-webkit-details-marker {
    display: none;
}

.faq__question span {
    flex: 1;
    font: 600 1.15rem/1.4 var(--font-serif);
}

.faq__question:hover span {
    color: var(--gold-light);
}

.faq__icon {
    color: var(--gold);
    transition: transform .25s var(--ease);
}

details[open] > summary .faq__icon {
    transform: rotate(180deg);
}

.faq__answer {
    padding: 0 40px 22px 0;
    color: var(--text-soft);
}

.faq__answer p {
    margin: 0;
}

.faq + .center {
    margin-top: 40px;
}

/* Gallery ------------------------------------------------------------------ */

.gallery {
    columns: 3 280px;
    column-gap: 16px;
}

.gallery__item {
    position: relative;
    display: block;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    break-inside: avoid;
}

.gallery__item img,
.gallery-strip__item img {
    width: 100%;
    transition: transform .6s var(--ease), filter .4s;
}

.gallery__item:hover img,
.gallery-strip__item:hover img {
    transform: scale(1.04);
}

.gallery__caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 40px 18px 14px;
    background: linear-gradient(0deg, rgb(14 13 11 / 85%), transparent);
    color: var(--text);
    font-size: .85rem;
    letter-spacing: .06em;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s, transform .3s var(--ease);
}

.gallery__item:hover .gallery__caption,
.gallery__item:focus-visible .gallery__caption {
    opacity: 1;
    transform: none;
}

.gallery-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.gallery-strip__item {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius);
}

.gallery-strip__item img {
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .gallery-strip {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Lightbox */

.lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgb(8 7 6 / 96%);
    color: var(--text);
}

.lightbox::backdrop {
    background: rgb(0 0 0 / 70%);
}

.lightbox__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 100%;
    margin: 0;
    padding: 64px 72px 32px;
}

.lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox__caption {
    color: var(--text-soft);
    font-size: .9rem;
    letter-spacing: .06em;
}

.lightbox__btn {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgb(14 13 11 / 70%);
    color: var(--text);
    cursor: pointer;
}

.lightbox__btn:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.lightbox__btn .icon {
    width: 22px;
    height: 22px;
}

.lightbox__close {
    top: 16px;
    right: 16px;
}

.lightbox__prev,
.lightbox__next {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__prev {
    left: 16px;
}

.lightbox__next {
    right: 16px;
}

@media (max-width: 640px) {
    .lightbox__figure {
        padding: 72px 12px 96px;
    }

    .lightbox__prev,
    .lightbox__next {
        top: auto;
        bottom: 24px;
        transform: none;
    }

    .lightbox__prev {
        left: calc(50% - 60px);
    }

    .lightbox__next {
        right: calc(50% - 60px);
    }
}

/* Services page ------------------------------------------------------------ */

.subnav {
    position: sticky;
    top: var(--header-h);
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgb(14 13 11 / 92%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.subnav ul {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
}

.subnav a {
    display: block;
    padding: 16px 14px;
    color: var(--text-soft);
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.subnav a:hover {
    color: var(--gold-light);
}

.price-sections {
    display: grid;
    gap: clamp(64px, 8vw, 112px);
}

.price-section {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}

.price-section:nth-child(even) .price-section__media {
    order: 2;
}

.price-section--plain {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
    margin-inline: auto;
    width: 100%;
}

.price-section__media img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

@media (max-width: 820px) {
    .price-section {
        grid-template-columns: 1fr;
    }

    .price-section:nth-child(even) .price-section__media {
        order: 0;
    }

    .price-section__media img {
        aspect-ratio: 16 / 9;
    }
}

.price-list {
    margin-top: 28px;
    list-style: none;
}

.price-list__item {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.price-list__item:first-child {
    border-top: 1px solid var(--line);
}

.price-list__row {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.price-list__name {
    margin: 0;
    font-size: 1.2rem;
}

.price-list__dots {
    flex: 1;
    min-width: 24px;
    border-bottom: 1px dotted var(--line-strong);
    transform: translateY(-5px);
}

.price-list__price {
    color: var(--gold-light);
    font: 600 1.2rem/1 var(--font-serif);
    white-space: nowrap;
}

.price-list__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 18px;
    margin-top: 6px;
    color: var(--muted);
    font-size: .9rem;
}

.price-list__meta p {
    flex: 1 1 260px;
    margin: 0;
}

.price-list__duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.price-list__book {
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* Course page -------------------------------------------------------------- */

.course-hero {
    position: relative;
    padding: clamp(96px, 12vw, 160px) 0 clamp(56px, 7vw, 88px);
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--line);
}

.course-hero::before {
    background:
        linear-gradient(90deg, rgb(14 13 11 / 96%) 0%, rgb(14 13 11 / 85%) 50%, rgb(14 13 11 / 55%) 100%),
        linear-gradient(0deg, var(--bg) 0%, transparent 50%);
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
    gap: 1px;
    max-width: 860px;
    margin-top: 40px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--line-strong);
}

.facts > div {
    padding: 16px 20px;
    background: rgb(20 18 15 / 92%);
}

.facts dt {
    color: var(--muted);
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.facts dd {
    margin-top: 4px;
    font-weight: 500;
}

.course-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

@media (max-width: 980px) {
    .course-layout {
        grid-template-columns: 1fr;
    }
}

.prose section + section {
    margin-top: 56px;
}

.prose h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.prose p {
    color: var(--text-soft);
}

.program {
    border-top: 1px solid var(--line);
    list-style: none;
}

.program__item {
    border-bottom: 1px solid var(--line);
}

.program__num {
    color: var(--gold);
    font: italic 500 1.2rem/1 var(--font-serif);
}

.program__title {
    flex: 1;
    font: 600 1.15rem/1.35 var(--font-serif);
}

.program__when {
    color: var(--muted);
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.program details ul {
    display: grid;
    gap: 8px;
    padding: 0 0 22px 44px;
    color: var(--text-soft);
    list-style: none;
}

.program details li::before {
    content: "—";
    margin-right: 10px;
    color: var(--gold-dark);
}

@media (max-width: 560px) {
    .program__when {
        display: none;
    }

    .program details ul {
        padding-left: 0;
    }
}

.sticky {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

@media (max-height: 820px) {
    .sticky {
        position: static;
    }
}

.cohorts {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
    list-style: none;
}

.cohort {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.cohort__date {
    font: 600 1.05rem/1.3 var(--font-serif);
}

.cohort__schedule {
    grid-column: 1;
    color: var(--muted);
    font-size: .82rem;
}

.cohort__seats {
    grid-row: 1 / span 2;
    grid-column: 2;
    align-self: center;
    color: var(--success);
    font-size: .78rem;
    white-space: nowrap;
}

.cohort__seats--low {
    color: var(--gold-light);
}

.course-aside__price {
    margin: 0 0 4px;
    color: var(--gold-light);
    font: 600 2.2rem/1.1 var(--font-serif);
}

.instructor {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.instructor p {
    margin: 0;
}

.instructor__photo {
    flex: none;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 50%;
}

.instructor__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor__name {
    font: 600 1.1rem/1.3 var(--font-serif);
}

.apply {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}

@media (max-width: 900px) {
    .apply {
        grid-template-columns: 1fr;
    }
}

/* Forms -------------------------------------------------------------------- */

.form {
    display: grid;
    gap: 22px;
}

.form__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 22px;
}

.field {
    display: grid;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.field label,
.field legend {
    padding: 0;
    color: var(--text-soft);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.field legend {
    margin-bottom: 8px;
}

.optional {
    color: var(--muted);
    font-weight: 400;
    letter-spacing: .04em;
    text-transform: none;
}

.field input:not([type="radio"], [type="checkbox"]),
.field select,
.field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    font: inherit;
    transition: border-color .2s, box-shadow .2s;
}

.field select {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a35b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.field select option:disabled {
    color: #5c5548;
}

.field input::-webkit-calendar-picker-indicator {
    filter: invert(.75) sepia(1) saturate(2) hue-rotate(5deg);
    cursor: pointer;
}

.field textarea {
    min-height: 96px;
    resize: vertical;
}

.field input:not([type="radio"], [type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgb(201 163 91 / 20%);
}

.field [aria-invalid="true"] {
    border-color: var(--danger) !important;
}

.field__error {
    margin: 0;
    color: var(--danger);
    font-size: .85rem;
}

.field--hp {
    position: absolute;
    left: -9999px;
}

.radios {
    display: grid;
    gap: 10px;
}

.radio {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    cursor: pointer;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: .95rem !important;
    font-weight: 400 !important;
    transition: border-color .2s, background-color .2s;
}

.radio:has(input:checked) {
    border-color: var(--gold);
    background: rgb(201 163 91 / 8%);
}

.radio input {
    accent-color: var(--gold);
    width: 18px;
    height: 18px;
    margin: 0;
}

.alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 18px;
    border: 1px solid;
    border-radius: var(--radius);
}

.alert p {
    margin: 0;
}

.alert:focus {
    outline: none;
}

.alert--success {
    border-color: rgb(147 192 140 / 45%);
    background: rgb(147 192 140 / 8%);
    color: var(--success);
}

.alert--success .icon {
    margin-top: .25em;
}

.alert--error {
    border-color: rgb(227 138 120 / 45%);
    background: rgb(227 138 120 / 8%);
    color: var(--danger);
}

/* Booking page */

.booking {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

.booking__aside {
    display: grid;
    gap: 24px;
}

.booking__aside .checklist {
    margin: 12px 0 0;
}

.booking__aside a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

@media (max-width: 960px) {
    .booking {
        grid-template-columns: 1fr;
    }
}

.barber-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 10px;
}

.barber-option {
    position: relative;
    cursor: pointer;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
}

.barber-option input {
    position: absolute;
    opacity: 0;
}

.barber-option__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    height: 100%;
    padding: 16px 10px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    text-align: center;
    transition: border-color .2s, background-color .2s;
}

.barber-option:hover .barber-option__card {
    border-color: var(--gold-dark);
}

.barber-option input:checked + .barber-option__card {
    border-color: var(--gold);
    background: rgb(201 163 91 / 8%);
}

.barber-option input:focus-visible + .barber-option__card {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.barber-option__avatar {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 8px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--gold);
}

.barber-option__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.barber-option__avatar--any .icon {
    width: 24px;
    height: 24px;
}

.barber-option__name {
    color: var(--text);
    font: 600 1rem/1.2 var(--font-serif);
}

.barber-option__role {
    color: var(--muted);
    font-size: .74rem;
    line-height: 1.3;
}

/* Contacts ----------------------------------------------------------------- */

.contact-list {
    display: grid;
    gap: 32px;
    list-style: none;
}

.contact-list li {
    display: flex;
    gap: 20px;
}

.contact-list__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--gold-dark);
    border-radius: 50%;
    color: var(--gold);
}

.contact-list__title {
    margin-bottom: 6px;
    font-size: 1.2rem;
}

.contact-list p {
    margin-bottom: 6px;
}

.hours {
    display: grid;
    gap: 6px;
    max-width: 280px;
}

.hours > div {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.hours dt {
    color: var(--muted);
}

.hours--compact {
    margin-top: 16px;
    font-size: .9rem;
}

.socials {
    display: flex;
    gap: 10px;
    list-style: none;
}

.socials a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--text-soft);
    transition: border-color .2s, color .2s;
}

.socials a:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.socials--large {
    flex-wrap: wrap;
    margin-top: 40px;
}

.socials--large a {
    display: inline-flex;
    gap: 10px;
    width: auto;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
}

/* CTA band ----------------------------------------------------------------- */

.cta-band {
    border-top: 1px solid var(--line);
    background:
        radial-gradient(ellipse at 0% 100%, rgb(201 163 91 / 12%), transparent 50%),
        var(--bg-alt);
}

.cta-band__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-block: clamp(56px, 7vw, 88px);
}

.cta-band__title {
    margin-bottom: 8px;
}

.cta-band .muted {
    margin: 0;
}

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Footer ------------------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--line);
    background: #0a0908;
    color: var(--text-soft);
    font-size: .95rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 48px 32px;
    padding-block: 72px 56px;
}

@media (max-width: 900px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}

.site-footer__brand .muted {
    max-width: 34ch;
    margin: 20px 0 24px;
}

.site-footer__title {
    margin-bottom: 18px;
    color: var(--gold);
    font: 600 .75rem/1.2 var(--font-sans);
    letter-spacing: .2em;
    text-transform: uppercase;
}

.site-footer ul:not(.socials) {
    display: grid;
    gap: 10px;
    list-style: none;
}

.site-footer a:not(.logo) {
    color: var(--text-soft);
    text-decoration: none;
}

.site-footer a:not(.logo):hover {
    color: var(--gold-light);
}

.site-footer address {
    line-height: 1.9;
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-block: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .85rem;
}

.site-footer__bottom p {
    margin: 0;
}

/* Error page ----------------------------------------------------------------- */

.error-page {
    padding-block: clamp(96px, 14vw, 180px);
}

.error-page__code {
    margin-bottom: 0;
    color: var(--gold);
    font: italic 500 clamp(5rem, 14vw, 9rem)/1 var(--font-serif);
}

.error-page .lead {
    margin-inline: auto;
}

/* US additions: badges, notes, consent, legal ---------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    padding: 6px 14px;
    border: 1px solid rgb(201 163 91 / 40%);
    border-radius: 999px;
    color: var(--gold-light);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.badge--hero {
    margin-top: 24px;
    background: rgb(14 13 11 / 55%);
}

.note-card {
    max-width: 760px;
    width: 100%;
    margin-inline: auto;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.note-card__title {
    font-size: 1.35rem;
}

.note-card .checklist {
    margin-bottom: 0;
}

.license-note {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 40px;
    padding: 20px 24px;
    border: 1px solid var(--line-strong);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-soft);
    font-size: .95rem;
}

.prose .license-note {
    margin-top: 0;
}

.license-note p {
    margin: 0;
}

.license-note__icon {
    flex: none;
    margin-top: 2px;
    color: var(--gold);
}

.license-note__icon .icon {
    width: 22px;
    height: 22px;
}

.field__hint {
    margin: -4px 0 4px;
    color: var(--muted);
    font-size: .85rem;
}

.checkbox {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--muted) !important;
    font-size: .85rem !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.5;
    text-transform: none !important;
    cursor: pointer;
}

.checkbox input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--gold);
}

.legal h2 {
    margin-top: 40px;
    font-size: 1.5rem;
}

.legal ul {
    display: grid;
    gap: 10px;
    padding-left: 1.2em;
    color: var(--text-soft);
}

.form p.center {
    margin-top: -8px;
}
