/* Lux Barbershop: concept site in the style of ALICE Hair & Art (Framer). KERA Tech Solutions, 2026. */
:root {
  --bg: #F5F5F5;
  --panel: #E1E1E1;
  --foot: #DEDEDE;
  --ink: #121212;
  --mute: #5C5C5C;
  --inv: #F2F2F2;
  --accent: #1F4A39;          /* bottle green of the shop's leather chairs: the one accent */
  --fs: 14px;
  --lh: 1.1;
  --ls: .1em;
  --G: calc(100% - 16px);     /* usable width inside the 8px page gutter */
  --ease: cubic-bezier(.7, 0, .2, 1);
  --sans: 'Host Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --logo: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
}
@media (min-width: 810px) and (max-width: 1100px) { :root { --fs: 12px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--foot); }
body {
  margin: 0; color: var(--ink); background: var(--foot);
  font: 400 var(--fs)/var(--lh) var(--sans); letter-spacing: var(--ls); text-transform: uppercase;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
p, h1, h2, h3, ul, figure, blockquote { margin: 0; padding: 0; font: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 8px; top: 8px; z-index: 60; padding: 6px 10px; background: var(--ink); color: var(--inv); transform: translateY(-200%); }
.skip:focus { transform: none; }

/* grain: 128px noise tile, difference at 10% (the reference does the same) */
.grain {
  position: fixed; inset: 0; z-index: 30; pointer-events: none;
  background: url(../img/grain.png) repeat 0 0 / 128px; mix-blend-mode: difference; opacity: .055;
}

/* ---------------------------------------------------------------- header */
.hdr {
  position: fixed; left: 0; right: 0; top: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); padding: 0 8px;
  color: var(--inv); mix-blend-mode: difference; pointer-events: none;
  transform: translateY(9px); transition: transform .95s var(--ease);
}
.hdr[data-state="mid"] { transform: translateY(calc(50vh - 8px)); }
.hdr a, .hdr button { pointer-events: auto; }
.hdr__logo {
  grid-column: 1; justify-self: start; position: relative; top: -2px;
  font: 700 22px/15.4px var(--logo); font-variation-settings: 'opsz' 96; letter-spacing: .44em; text-transform: uppercase;
}
.hdr__nav { display: contents; }
.hdr__link { position: relative; display: block; }
.hdr__link[data-sec="services"] { grid-column: 4; }
.hdr__link[data-sec="gallery"] { grid-column: 5; }
.hdr__link span { position: relative; z-index: 1; transition: color .3s; }
.hdr__link::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; bottom: -1px; background: var(--inv);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease);
}
.hdr__link:hover::before, .hdr[data-active="services"] [data-sec="services"]::before, .hdr[data-active="gallery"] [data-sec="gallery"]::before { transform: scaleX(1); }
.hdr__link:hover span, .hdr[data-active="services"] [data-sec="services"] span, .hdr[data-active="gallery"] [data-sec="gallery"] span { color: #000; }
.hdr__addr { grid-column: 7 / span 1; white-space: nowrap; justify-self: start; }
.hdr__addr:hover, .bar__it:hover, .foot a:hover { opacity: .55; }
.hdr__lang { grid-column: 8; display: flex; gap: .45em; justify-self: end; }
@media (min-width: 810px) and (max-width: 980px) { .hdr__addr { display: none; } }
@media (min-width: 810px) and (max-width: 1320px) { .bar__up, .fb7 { justify-self: end; } }
.lang-btn { background: none; border: 0; padding: 0; cursor: pointer; opacity: .45; transition: opacity .3s; }
.lang-btn[aria-pressed="true"], .lang-btn:hover { opacity: 1; }

/* ---------------------------------------------------------------- bottom bar (desktop) */
.bar {
  position: fixed; left: 0; right: 0; bottom: 9px; z-index: 20;
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); padding: 0 8px;
  color: var(--inv); mix-blend-mode: difference; pointer-events: none; transition: opacity .4s;
}
.bar__it { pointer-events: auto; justify-self: start; white-space: nowrap; transition: opacity .3s; }
.bar__info { grid-column: 2; }
.bar__book { grid-column: 4; }
.bar__ig { grid-column: 7; }
.bar__up { grid-column: 8; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.is-past .bar__up { opacity: 1; visibility: visible; transition: opacity .4s; }
.is-end .bar { opacity: 0; pointer-events: none; }
.is-end .bar__it { pointer-events: none; }
.mbar, .mmenu { display: none; }

/* ---------------------------------------------------------------- page wrapper (scrolls over the fixed footer) */
.wrap { position: relative; z-index: 1; background: var(--bg); }

/* ---------------------------------------------------------------- hero: fixed 7x3 grid */
.hero { position: relative; z-index: 1; height: calc(200vh - 7px); clip-path: inset(0); pointer-events: none; }
.hero__fix { position: fixed; inset: 0; background: var(--bg); }
.hero__media { position: absolute; inset: 0; transition: filter .9s ease, opacity .9s ease; }
.hero.is-blur .hero__media { filter: blur(16px); opacity: .8; }
.slot {
  position: absolute; overflow: hidden; background: #d6d6d6;
  opacity: 1; visibility: visible; transition: opacity .5s ease calc(var(--i) * .1s), visibility 0s;
}
.hero[data-state="a"] .is-b, .hero[data-state="b"] .is-a { opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; }
.slot__in, .slot img { width: 100%; height: 100%; }
.slot img { object-fit: cover; }
.slot img, .sq img, .row__img img { color: transparent; }
.reel img { position: absolute; inset: 0; opacity: 0; }
.reel img.is-on { opacity: 1; }
.bw img { filter: grayscale(1) contrast(1.08); }

/* row height R = (100vh-16)/3, column C = (100%-16)/7 : the reference's grid */
.s-a1 { left: 8px; top: 8px; height: calc((100% - 16px) / 3); width: calc((100vh - 16px) / 3); }
.s-a2 { left: calc(8px + var(--G) * 4 / 7); bottom: calc(100% - 8px - (100% - 16px) / 3); width: calc(var(--G) / 7); aspect-ratio: 1; }
.s-a3 { left: calc(8px + var(--G) * 5 / 7); top: calc(8px + (100% - 16px) / 3); height: calc((100% - 16px) * .5317); width: calc((100vh - 16px) * .5317 * 9 / 16); }
.s-a4 { left: calc(8px + var(--G) * 2 / 7); top: calc(8px + (100% - 16px) * 2 / 3); height: calc((100% - 16px) / 3); width: calc((100vh - 16px) / 3 * .8); }
.s-b1 { left: calc(8px + var(--G) * 6 / 7); top: 8px; width: calc(var(--G) / 7); height: calc((100% - 16px) / 3); }
.s-b2 { right: calc(100% - 8px - var(--G) * 4 / 7); top: 8px; height: calc((100% - 16px) / 3); width: calc((100vh - 16px) / 3 * 2 / 3); }
.s-b3 { left: 8px; bottom: calc(100% - 8px - (100% - 16px) * 2 / 3); width: calc(var(--G) / 7); aspect-ratio: 9 / 16; }
.s-b4 { left: calc(8px + var(--G) * 4 / 7); top: calc(8px + (100% - 16px) / 3); width: calc(var(--G) * 2 / 7); height: calc((100% - 16px) / 3); }
.s-b5 { left: calc(8px + var(--G) * 3 / 7); top: calc(8px + (100% - 16px) * 2 / 3); width: calc(var(--G) / 7); aspect-ratio: 1; }

.hero__txt { position: absolute; inset: 0; color: var(--inv); mix-blend-mode: difference; transition: opacity .5s ease; }
.hero__sub { position: absolute; left: 8px; top: calc(50% + 24px); }
.hero__tag { position: absolute; left: calc(8px + var(--G) * 3 / 7); top: calc(50% + 63px); }
.hero__p { position: absolute; left: calc(8px + var(--G) * 2 / 7); top: calc(50% + 86px); width: min(600px, calc(var(--G) * 3 / 7 - 6px)); }


/* ---------------------------------------------------------------- labels */
.label { position: relative; margin-left: calc(8px + var(--G) / 8); }
.slash { position: absolute; right: 100%; white-space: pre; }

/* ---------------------------------------------------------------- services (the reference's stylist rows) */
.svc { position: relative; z-index: 2; padding-top: 96px; }
.svc__intro { margin-left: calc(8px + var(--G) * 2 / 7); width: min(600px, calc(var(--G) * 3 / 7)); }
.svc__rating { display: inline-block; margin-bottom: 15.4px; }
.svc__label { margin-top: 54px; }
.svc__panel { margin: 25px 8px 0; padding: 8px 0; background: var(--panel); display: flex; flex-direction: column; gap: 8px; }
.row {
  display: grid; grid-template-columns: calc(100% / 7) minmax(0, min(590px, calc(100% * 3 / 7 - 12px))) 1fr 250px;
  height: 340px;
}
.row__name { grid-column: 1; }
.row__body { grid-column: 2; display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 6px; }
.row__quote { color: var(--mute); max-width: 520px; }
.row__quote footer { margin-top: 6px; }
.row__img { grid-column: 4; position: relative; overflow: hidden; }
.row__img img { width: 100%; height: 100%; object-fit: cover; }
.chip {
  position: absolute; left: 0; bottom: 0; padding: 3px 7px 2px; background: #DEDEDE; color: var(--ink);
  opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s, background-color .3s, color .3s;
}
.row:hover .chip, .chip:focus-visible { opacity: 1; transform: none; }
.chip:hover { background: var(--accent); color: var(--inv); }
@media (hover: none) { .chip { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- gallery (the reference's exhibition grid) */
.gal { position: relative; z-index: 2; padding-top: 89px; padding-bottom: 59px; }
.gal__head { position: relative; height: 15.4px; }
.gal__btn {
  position: absolute; top: 0; left: calc(8px + var(--G) * .4755); width: 168px;
  display: flex; justify-content: space-between; padding-right: 4px; background: var(--panel); transition: background-color .3s, color .3s;
}
.gal__btn span:last-child { font-size: .8em; }
.gal__btn:hover { background: var(--ink); color: var(--inv); }
.gal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 37px; padding: 0 8px; margin-top: 108px; }
.sq { margin-right: 4px; aspect-ratio: 1; overflow: hidden; background: #d6d6d6; }
.sq img { width: 100%; height: 100%; object-fit: cover; }
.sq.c0 { grid-column: 1 / 3; } .sq.c1 { grid-column: 3 / 5; } .sq.c2 { grid-column: 5 / 7; }
.sq.r0 { grid-row: 1; } .sq.r1 { grid-row: 2; } .sq.r2 { grid-row: 3; } .sq.r3 { grid-row: 4; }

/* ---------------------------------------------------------------- footer: fixed, revealed under the page */
.reveal { height: 100vh; }
.foot { position: fixed; inset: 0; z-index: 0; background: var(--foot); color: var(--ink); }
.foot__logo { display: none; }
.foot__form { position: absolute; left: calc(8px + var(--G) * 3 / 8); top: calc(50% + 24px); width: calc(var(--G) * 2 / 8 - 4px); }
.foot__intro { color: var(--mute); margin-bottom: 23px; }
.form label { display: block; margin-bottom: 3px; }
.form input, .form textarea {
  display: block; width: 100%; border: 0; border-radius: 0; padding: 2px 0 1px; background: rgba(255, 255, 255, .28);
  line-height: var(--lh); outline-offset: 2px;
}
.form textarea { height: 100px; resize: none; }
.form ::placeholder { color: var(--mute); opacity: 1; }
.form input:focus, .form textarea:focus { background: rgba(255, 255, 255, .6); }
.form button {
  display: block; width: 100%; margin-top: 3px; padding: 1px 0; border: 0; cursor: pointer;
  background: var(--accent); color: var(--inv); transition: background-color .3s;
}
.form button:hover { background: var(--ink); }
.foot__visit { position: absolute; left: calc(8px + var(--G) * 6 / 8); top: calc(50% + 24px); }
.foot__label { color: var(--mute); margin-bottom: 8px; }
.foot__visit li { line-height: 1.43; }
.foot__visit li.gap { margin-top: 10px; }
.foot__base {
  position: absolute; left: 0; right: 0; bottom: 9px; padding: 0 8px;
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-items: end;
}
.fb { display: flex; flex-direction: column; gap: 5px; white-space: nowrap; }
.fb__l, .fb__c { color: var(--mute); }
.fb__c { margin-bottom: 6px; }
.fb0 { grid-column: 1 / 4; } .fb3 { grid-column: 4 / 6; } .fb6 { grid-column: 7; } .fb7 { grid-column: 8; justify-content: flex-end; }

/* ---------------------------------------------------------------- concept toast */
.toast {
  position: fixed; left: 8px; bottom: 100px; z-index: 45; width: min(360px, calc(100% - 16px));
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 10px 10px 12px;
  background: var(--ink); color: var(--inv); font-size: 11px; line-height: 1.35;
  opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s;
}
.toast.is-in { opacity: 1; transform: none; }
.toast p { flex: 1; }
.toast__x { border: 0; background: none; color: inherit; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }

/* ---------------------------------------------------------------- entrance + appear (hidden only when JS runs) */
.js .hdr__logo, .js .hdr__link, .js .hdr__addr, .js .hdr__lang,
.js .hero .is-a .slot__in, .js .hero__sub, .js .hero__tag, .js .hero__p, .js .bar__it:not(.bar__up), .js .mbar { opacity: 0; }
.js [data-appear], .js .sq { opacity: 0; transform: translateY(10px); }

/* ================================================================ mobile (the reference's phone layout) */
@media (max-width: 809px) {
  .hdr { transform: none !important; grid-template-columns: 1fr auto; padding: 6px 8px 0; transition: none; }
  .hdr__logo { font-size: 46px; line-height: 40px; letter-spacing: .3em; top: 0; }
  .hdr__nav, .hdr__addr { display: none; }
  .hdr__lang { grid-column: 2; margin-top: 4px; }
  .bar { display: none; }
  .mbar {
    display: flex; position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 50; height: 40px;
    align-items: center; justify-content: space-between; padding: 0 12px;
    border: 0; background: rgba(222, 222, 222, .92); color: var(--ink); cursor: pointer; text-align: left;
  }
  .mbar__icon { display: grid; gap: 3px; width: 14px; }
  .mbar__icon i { display: block; height: 2px; background: currentColor; transition: transform .35s var(--ease); }
  .mbar[aria-expanded="true"] .mbar__icon i:first-child { transform: translateY(2.5px) rotate(45deg); }
  .mbar[aria-expanded="true"] .mbar__icon i:last-child { transform: translateY(-2.5px) rotate(-45deg); }
  .mmenu {
    display: flex; position: fixed; inset: 0; z-index: 48; background: var(--foot);
    flex-direction: column; justify-content: flex-end; gap: 28px; padding: 80px 20px 76px;
    opacity: 0; transition: opacity .4s;
  }
  .mmenu[hidden] { display: none; }
  .mmenu.is-open { opacity: 1; }
  .mmenu nav { display: flex; flex-direction: column; gap: 14px; }
  .mmenu nav a { font-size: 20px; }
  .mmenu__lang { display: flex; gap: .5em; font-size: 16px; }

  .s-a3, .s-b3 { display: none; }
  .slot { --m1: min(calc(var(--G) * .6), 27vh); }
  .s-a1 { left: 8px; top: 8px; width: var(--m1); height: auto; aspect-ratio: 2 / 3; }
  .s-a2 { left: calc(8px + var(--m1)); top: 8px; bottom: auto; width: min(calc(var(--G) * .4), 18vh); }
  .s-a4 { left: 8px; top: calc(8px + (100% - 16px) * .66); width: var(--m1); height: auto; aspect-ratio: 4 / 5; }
  .s-b2 { right: auto; left: 8px; top: 8px; width: min(calc(var(--G) * .5), 22vh); height: auto; aspect-ratio: 2 / 3; }
  .s-b1 { left: calc(8px + var(--G) * .6); top: calc(8px + (100% - 16px) * .13); width: min(calc(var(--G) * .4), 18vh); height: auto; aspect-ratio: 2 / 3; }
  .s-b4 { left: calc(8px + var(--G) * .3); top: calc(8px + (100% - 16px) * .4); width: min(calc(var(--G) * .7), 45vh); height: auto; aspect-ratio: 1.38; }
  .s-b5 { left: 8px; top: calc(8px + (100% - 16px) * .66); width: min(calc(var(--G) * .35), 16vh); }

  .hero__txt { inset: 46% 0 auto 0; display: flex; flex-direction: column; gap: 14px; padding: 0 8px; }
  .hero__sub, .hero__tag, .hero__p { position: static; width: auto; }
  .hero__tag { text-align: center; }

  .hero { height: calc(175vh - 60px); }
  .svc { padding-top: 60px; }
  .svc__intro { margin: 0 8px; width: auto; }
  .label { margin-left: 8px; }
  .slash { position: static; }
  .svc__label { margin-top: 48px; }
  .svc__panel { margin: 20px 8px 0; padding: 0; background: none; gap: 16px; }
  .row { display: block; height: auto; background: var(--panel); padding-top: 8px; }
  .row__name { padding: 0 8px; margin-bottom: 15px; }
  .row__body { padding: 0 8px 14px; gap: 14px; }
  .row__img { aspect-ratio: 4 / 5; }
  .gal { padding-top: 72px; padding-bottom: 72px; }
  .gal__head { display: flex; align-items: flex-start; justify-content: space-between; height: auto; padding-right: 8px; }
  .gal__btn { position: static; width: 46%; }
  .gal__grid { grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 32px; }
  .sq, .sq.c0, .sq.c1, .sq.c2 { grid-column: auto; grid-row: auto; margin: 0; }
  .sq:nth-child(3), .sq:nth-child(6) { grid-column: 1 / 3; aspect-ratio: 4 / 3; }

  .reveal { display: none; }
  .foot { position: relative; z-index: 1; inset: auto; padding: 56px 8px 72px; display: flex; flex-direction: column; gap: 44px; }
  .foot__logo { display: block; font: 700 46px/1 var(--logo); font-variation-settings: 'opsz' 96; letter-spacing: .3em; }
  .foot__form, .foot__visit { position: static; width: auto; }
  .foot__base { position: static; display: flex; flex-direction: column; gap: 22px; padding: 0; }
  .fb { white-space: normal; }
  .fb__c { margin-bottom: 0; }
  .fb7 { display: none; }
  .toast { bottom: 56px; }
}

/* ================================================================ reduced motion: everything visible, no movement */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
  .js .hdr__logo, .js .hdr__link, .js .hdr__addr, .js .hdr__lang, .js .hero .is-a .slot__in, .js .hero__sub,
  .js .hero__tag, .js .hero__p, .js .bar__it:not(.bar__up), .js .mbar, .js [data-appear], .js .sq { opacity: 1; transform: none; }
}
