/* ==========================================================================
   House of Hair & Co -- minimalist black & white
   ========================================================================== */

:root {
    --ink: #111111;
    --ink-soft: #2a2a2a;
    --paper: #ffffff;
    --mist: #f5f5f4;
    --line: #e2e2e0;
    --muted: #6b6b6b;

    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
    --script: 'Mrs Saint Delafield', cursive;

    --wrap: 1200px;
    --gutter: clamp(20px, 5vw, 48px);
    --section: clamp(80px, 11vw, 150px);
    --header-h: 88px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* reset-ish ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    font-variant-numeric: lining-nums;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; }

.d-none { display: none !important; }
.float-start { float: left; }
.float-end { float: right; }
.text-white { color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* type ------------------------------------------------------------------ */
.eyebrow {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .32em;
    text-transform: uppercase;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.eyebrow::before { content: ''; width: 40px; height: 1px; background: currentColor; }
.eyebrow--light { color: #fff; }

.section-title {
    font-family: var(--serif);
    font-size: clamp(40px, 5.4vw, 68px);
    line-height: 1.04;
    letter-spacing: -.01em;
    margin-bottom: 28px;
}
.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; text-transform: none; }
.lead { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.4; font-weight: 400; }

/* buttons --------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px;
    padding: 0 34px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    background: none;
    cursor: pointer;
    transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--dark:hover { background: #fff; color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--outline { color: currentColor; border-color: currentColor; min-height: 44px; padding: 0 24px; }
.btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--block { width: 100%; }

/* header ---------------------------------------------------------------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    color: #fff;
    transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: height .4s var(--ease); }
.site-header__logo { position: relative; display: block; width: 150px; flex-shrink: 0; }
.site-header__logo img { width: 100%; transition: opacity .4s var(--ease); }
.site-header__logo .logo-dark { position: absolute; inset: 0; opacity: 0; }

.site-nav { display: flex; align-items: center; gap: 44px; }
.site-nav ul { display: flex; gap: 34px; }
.site-nav ul a {
    position: relative;
    font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
    text-decoration: none; padding: 6px 0;
}
.site-nav ul a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: right;
    transition: transform .4s var(--ease);
}
.site-nav ul a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-header:not(.is-solid) .site-nav__book:hover { background: #fff; color: var(--ink); border-color: #fff; }

.site-header.is-solid { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.site-header.is-solid .site-header__inner { height: 72px; }
.site-header.is-solid .logo-light { opacity: 0; }
.site-header.is-solid .logo-dark { opacity: 1; }
.site-header.is-solid .site-header__logo { width: 120px; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
    position: relative; z-index: 2;
}
.nav-toggle span {
    position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor;
    transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav-open .nav-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 22px; transform: rotate(-45deg); }

/* hero ------------------------------------------------------------------ */
.hero {
    position: relative;
    min-height: 100vh; min-height: 100svh;
    display: flex; align-items: flex-end;
    color: #fff;
    overflow: hidden;
    background: var(--ink);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; animation: hero-in 2.4s var(--ease) both; }
.hero__shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 24%),
        linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 45%, rgba(0,0,0,0) 70%),
        linear-gradient(0deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.4) 45%, rgba(0,0,0,0) 75%);
}
.hero__content { position: relative; padding-bottom: clamp(56px, 10vh, 110px); padding-top: 140px; }
.hero__script { font-size: clamp(44px, 6vw, 76px); line-height: 1; margin: 0 0 4px; }
.hero__title { font-family: var(--serif); font-size: clamp(48px, 7.4vw, 104px); line-height: .98; letter-spacing: -.015em; margin-bottom: 24px; }
.hero__text { max-width: 500px; font-size: 18px; margin-bottom: 36px; color: rgba(255,255,255,.88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__content > * { animation: rise 1.1s var(--ease) both; }
.hero__content > *:nth-child(2) { animation-delay: .12s; }
.hero__content > *:nth-child(3) { animation-delay: .24s; }
.hero__content > *:nth-child(4) { animation-delay: .36s; }

@keyframes hero-in { from { transform: scale(1.08); opacity: .4; } to { transform: scale(1); opacity: 1; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* story ----------------------------------------------------------------- */
.story__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.story__heading { position: sticky; top: 120px; }
.story__script { font-size: clamp(56px, 7vw, 96px); line-height: .95; }
.story__body { color: var(--ink-soft); max-width: 620px; }
.story__body .lead { color: var(--ink); margin-bottom: 1.2em; }
.story__signoff {
    font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--ink);
    padding-top: 28px; margin-top: 36px; border-top: 1px solid var(--line);
}

.stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    margin-top: clamp(64px, 9vw, 120px);
}
.stat { text-align: center; padding: 20px 16px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num { display: block; font-family: var(--serif); font-variant-numeric: lining-nums; font-size: clamp(56px, 7vw, 92px); line-height: 1; }
.stat__label { display: block; margin-top: 14px; font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }

/* services -------------------------------------------------------------- */
.services { background: var(--mist); }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.service { padding: 36px 32px 40px 0; }
.service + .service { padding-left: 32px; border-left: 1px solid var(--line); }
.service__num { display: block; font-size: 12px; font-weight: 500; letter-spacing: .2em; color: var(--muted); margin-bottom: 40px; }
.service__title { font-family: var(--serif); font-size: 32px; line-height: 1.1; margin-bottom: 16px; }
.service p { font-size: 16px; color: var(--ink-soft); margin: 0; }
.services__note { margin: 48px 0 0; color: var(--muted); font-size: 16px; }
.services__note a { color: var(--ink); text-underline-offset: 4px; }

/* the space ------------------------------------------------------------- */
.space__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.space__img { position: relative; }
.space__img::after {
    content: ''; position: absolute; inset: 24px -24px -24px 24px; z-index: -1;
    border: 1px solid var(--ink);
}
.space__img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.space__text { max-width: 480px; color: var(--ink-soft); }
.space__text .section-title { color: var(--ink); }
.space__text .btn { margin-top: 18px; }

/* careers --------------------------------------------------------------- */
.careers { background: var(--ink); color: rgba(255,255,255,.82); text-align: center; }
.careers__inner { max-width: 760px; }
.careers .eyebrow { justify-content: center; }
.careers .eyebrow::after { content: ''; width: 40px; height: 1px; background: currentColor; }
.careers__title { font-family: var(--serif); color: #fff; font-size: clamp(52px, 7vw, 92px); line-height: 1; margin-bottom: 28px; }
.careers__title .script { font-size: 1.25em; margin-left: .06em; }
.careers p { font-size: 18px; margin: 0 auto 40px; max-width: 560px; }

/* contact --------------------------------------------------------------- */
.contact__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 8vw, 120px); }
.contact__info { color: var(--ink-soft); }
.contact__info .section-title { color: var(--ink); }
.contact__list { margin-top: 36px; }
.contact__list li { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact__list li:first-child { border-top: 1px solid var(--line); }
.contact__list i { width: 16px; font-size: 14px; color: var(--ink); }
.contact__list a { text-decoration: none; }
.contact__list a:hover { text-decoration: underline; text-underline-offset: 4px; }

.hours { margin-top: 32px; }
.hours li, .site-footer__hours li { display: flex; justify-content: space-between; gap: 24px; }
.hours li { padding: 8px 0; font-size: 16px; }

.contact__form-wrap { background: var(--mist); padding: clamp(28px, 4vw, 56px); }
.field { margin-bottom: 26px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field label {
    display: block; margin-bottom: 6px;
    font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
}
.field input, .field textarea {
    width: 100%;
    border: 0; border-bottom: 1px solid #bdbdbb; border-radius: 0;
    background: transparent;
    padding: 10px 0;
    font-family: var(--sans); font-size: 17px; font-weight: 300; color: var(--ink);
    transition: border-color .3s var(--ease);
    -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.contact-form .btn { margin-top: 8px; }
.contact-success-message { margin: 0 0 20px; font-size: 15px; padding: 12px 16px; border: 1px solid var(--line); background: #fff; }
.contact-success-message.is-success { border-color: var(--ink); }
.contact-success-message.is-error { border-color: #a12a2a; color: #a12a2a; }
.grecaptcha-badge { visibility: hidden; }

/* footer ---------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); font-size: 15px; padding-top: clamp(64px, 8vw, 100px); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1.4fr 1.4fr 1fr; gap: 48px; padding-bottom: 64px; }
.site-footer__brand img { width: 200px; margin-bottom: 22px; }
.site-footer__brand p { font-family: var(--serif); font-style: italic; font-size: 20px; color: #fff; }
.site-footer__title { font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.site-footer__list li { padding: 4px 0; }
.site-footer__list a { text-decoration: none; transition: color .3s; }
.site-footer__list a:hover { color: #fff; }
.site-footer__bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
    padding-top: 24px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.14);
    font-size: 13px; color: rgba(255,255,255,.5);
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: rgba(255,255,255,.8); }

/* coming soon (shown on "/" while COMING_SOON is on) ------------------- */
.coming-soon {
    position: relative;
    min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 64px var(--gutter) 88px;
    text-align: center;
    color: #fff;
    background: var(--ink);
    overflow: hidden;
}
.coming-soon__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; animation: hero-in 2.4s var(--ease) both; }
.coming-soon__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.72) 0%, rgba(0,0,0,.6) 60%, rgba(0,0,0,.5) 100%); }
.coming-soon__content { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.coming-soon__content { position: relative; max-width: 560px; }
.coming-soon__content > * { animation: rise 1.1s var(--ease) both; }
.coming-soon__content > *:nth-child(2) { animation-delay: .15s; }
.coming-soon__content > *:nth-child(3) { animation-delay: .3s; }
.coming-soon__content > *:nth-child(4) { animation-delay: .45s; }
.coming-soon__logo { margin: 0 auto 6px; width: min(420px, 78vw); }
.coming-soon__logo img { width: 100%; }
.coming-soon__script { font-size: clamp(52px, 9vw, 92px); line-height: 1; margin: 0 0 22px; }
.coming-soon__text { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.45; color: rgba(255,255,255,.9); margin-bottom: 36px; }
.coming-soon__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; font-size: 15px; }
.coming-soon__links a { text-decoration: none; color: rgba(255,255,255,.85); transition: color .3s; }
.coming-soon__links a:hover { color: #fff; }
.coming-soon__links i { margin-right: 6px; }
.coming-soon__foot { position: absolute; bottom: 24px; left: 0; right: 0; margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }

/* reveal on scroll (only when js is running) ---------------------------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* responsive ------------------------------------------------------------ */
@media (max-width: 1100px) {
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .service:nth-child(3) { padding-left: 0; border-left: 0; }
    .service:nth-child(n+3) { border-top: 1px solid var(--line); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
    :root { --header-h: 72px; }
    .site-header__logo { width: 120px; }
    .nav-toggle { display: block; }
    .site-nav {
        position: fixed; inset: 0; z-index: 1;
        flex-direction: column; justify-content: center; gap: 48px;
        background: var(--ink); color: #fff;
        opacity: 0; visibility: hidden;
        transition: opacity .4s var(--ease), visibility .4s;
    }
    .site-nav ul { flex-direction: column; align-items: center; gap: 22px; }
    .site-nav ul a { font-family: var(--serif); font-size: 34px; font-weight: 400; letter-spacing: 0; text-transform: none; }
    .nav-open .site-nav { opacity: 1; visibility: visible; }
    .nav-open .site-header { color: #fff; background: transparent; box-shadow: none; }
    .nav-open .site-header .logo-light { opacity: 1; }
    .nav-open .site-header .logo-dark { opacity: 0; }
    .nav-open { overflow: hidden; }
    .site-header__logo { z-index: 2; }
    .site-nav .site-nav__book { color: #fff; border-color: #fff; }

    .story__grid, .space__grid, .contact__grid { grid-template-columns: 1fr; }
    .story__heading { position: static; }
    .space__img { max-width: 520px; margin-right: 24px; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .services__grid { grid-template-columns: 1fr; }
    .service, .service + .service { padding: 32px 0; border-left: 0; }
    .service + .service { border-top: 1px solid var(--line); }
    .service__num { margin-bottom: 16px; }
    .stats { grid-template-columns: 1fr; }
    .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 36px; }
    .hero__actions .btn { flex: 1 1 100%; }
    .hero__img { object-position: 80% 40%; }
    .hero__shade { background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 22%), linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.5) 50%, rgba(0,0,0,.1) 80%); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}
