/* Hair Affair · site styles
   Built by Duma Creative. One page, no frameworks.
   Contents: 1 tokens · 2 base · 3 hero · 4 top bar and menu · 5 prices · 6 the salon
             7 team and reviews · 8 good to know · 9 visit · 10 footer · 11 motion · 12 page not found */

/* 1. Tokens ------------------------------------------------------------- */
@font-face {
  font-family: "Linden Hill";
  src: url("../fonts/linden-hill.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Geologica;
  src: url("../fonts/geologica.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --emerald: #0e4a3a;
  --deep: #0a3329;
  --deepest: #06221b;
  --paper: #faf6ee;
  --cream: #f3ecdc;
  --cream-soft: #d8cfbf;
  --cream-mute: #cfc4b0;
  --neon: #fff3c4;
  --ink: #1b2420;
  --ink-soft: #3e4843;
  --mute: #55605a;
  --green-label: #2c5a4c;
  --rule-dark: rgb(14 74 58 / 16%);
  --rule-light: rgb(243 236 220 / 20%);
  --display: "Linden Hill", georgia, "Times New Roman", serif;
  --text: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(22px, 6.5vw, 120px);
  --section: clamp(72px, 9vw, 140px);
  --ease-out: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* 2. Base --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--cream);
  font: 300 1rem/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid currentcolor;
  outline-offset: 4px;
}

[id] {
  scroll-margin-top: 72px;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--cream);
  color: var(--deep);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.label {
  margin-bottom: 16px;
  font-size: 0.8125rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.title {
  font: 400 clamp(2.375rem, 4vw, 3.625rem) / 1.16 var(--display);
}

.title span {
  display: block;
}

.lede {
  max-width: 44ch;
  font-size: 1.03rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.btn-cream {
  background: var(--cream);
  color: var(--deep);
}

.btn-line {
  border-color: rgb(243 236 220 / 60%);
  color: var(--cream);
}

.btn-green {
  background: var(--emerald);
  color: var(--paper);
}

/* Sections after the first screen sit above it and slide over it. */
main > section,
.foot {
  position: relative;
  z-index: 2;
}

/* 3. Hero --------------------------------------------------------------- */
.hero {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
}

/* Once the page has slid over it, stop painting the layers nobody can see. */
.hero.is-covered .hero-photo,
.hero.is-covered .hero-bloom,
.hero.is-covered .fan {
  visibility: hidden;
}

.hero-photo,
.hero-bloom,
.hero-veil,
.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-photo,
.hero-bloom {
  background: url("../img/welcome-wall.jpg") center 30% / cover no-repeat;
}

.hero-photo {
  filter: brightness(0.5) contrast(1.12);
}

/* The Welcome sign's own light, bloomed and breathing slowly. */
.hero-bloom {
  filter: blur(22px) brightness(1.5) saturate(0.6);
  mix-blend-mode: screen;
  opacity: 0.26;
}

.hero-veil {
  background:
    radial-gradient(ellipse 46% 40% at 50% 34%, rgb(6 34 27 / 80%), rgb(6 34 27 / 35%) 70%, rgb(6 34 27 / 0%)),
    linear-gradient(180deg, rgb(6 34 27 / 35%), rgb(6 34 27 / 0%) 40%, rgb(6 34 27 / 45%));
}

.hero-shade {
  z-index: 4;
  background: #04140f;
  opacity: 0;
}

.nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 32px;
  width: min(1320px, 100% - 48px);
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font: 400 1.44rem/1 var(--display);
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.nav-links a {
  display: inline-block;
  padding: 12px 0;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.nav-tel {
  display: inline-block;
  padding: 12px 0;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-underline-offset: 6px;
}

.menu-btn {
  display: none;
  min-height: 44px;
  margin-left: auto;
  padding: 0 16px;
  border: 1px solid rgb(243 236 220 / 45%);
  background: none;
  font-weight: 400;
  font-size: 0.82rem;
  cursor: pointer;
}

.hero-copy {
  position: relative;
  z-index: 3;
  margin-top: clamp(18px, 5vh, 64px);
  padding: 0 24px;
  text-align: center;
}

.hero-copy .label {
  margin-bottom: 18px;
  color: #e6dccb;
}

.hero h1 {
  font: 400 clamp(2.5rem, 5vw, 4.875rem) / 1.02 var(--display);
  letter-spacing: -0.005em;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
  margin: 22px 0 26px;
  color: #e6dccb;
  font-size: 0.94rem;
}

.facts li {
  padding: 0 18px;
  border-left: 1px solid rgb(243 236 220 / 25%);
}

.facts li:first-child {
  border-left: 0;
}

.acts {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* The wheel: photos ride one big wheel whose hub is below the screen. */
.fan {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 2;
  width: 0;
  height: 0;
}

.card {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(170px, min(18vw, 34vh), 290px); /* also eases down on short laptop screens */
  aspect-ratio: 3 / 4;
  border: 6px solid #fbf8f2;
  background: #fbf8f2;
  box-shadow: 0 14px 34px rgb(0 0 0 / 18%), 0 2px 6px rgb(0 0 0 / 10%);
  translate: -50% -74%;
  transform-origin: 50% 230%;
  cursor: pointer;
  will-change: transform;
}

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

/* Resting fan, used until the script takes over (and when it never does). */
.card:nth-child(1) { transform: rotate(-36deg); }
.card:nth-child(2) { transform: rotate(-18deg); }
.card:nth-child(3) { transform: rotate(0deg); z-index: 2; }
.card:nth-child(4) { transform: rotate(18deg); }
.card:nth-child(5) { transform: rotate(36deg); }

@media (width <= 820px) {
  /* Phones get a lighter copy of the first-screen photo. */
  .hero-photo,
  .hero-bloom {
    background-image: url("../img/welcome-wall-s.jpg");
  }

  .nav-links,
  .nav-tel {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .facts {
    flex-direction: column;
    gap: 4px;
  }

  .facts li {
    border-left: 0;
  }

  .card {
    width: clamp(130px, 42vw, 190px);
    border-width: 4px;
    translate: -50% -92%;
    transform-origin: 50% 215%;
  }
}

@media (width <= 480px) {
  .hero h1 {
    font-size: clamp(2rem, 9.4vw, 2.5rem);
  }

  .hero-copy {
    padding: 0 18px;
  }

  .acts {
    flex-direction: column;
  }
}

/* 4. Top bar and menu --------------------------------------------------- */
.bar {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px 8px 8px 18px;
  border: 1px solid rgb(243 236 220 / 16%);
  background: rgb(10 51 41 / 90%);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); /* Safari 17 and earlier */
  backdrop-filter: blur(16px) saturate(1.2);
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, -140%);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s, visibility 0s 0.7s;
}

.bar.is-shown {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.bar .brand {
  font-size: 1.25rem;
}

.bar .brand img {
  width: 26px;
}

.bar .nav-links {
  gap: 22px;
  margin-left: 0;
  font-size: 0.85rem;
}

.bar .btn {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.85rem;
}

@media (width <= 820px) {
  .bar {
    right: 12px;
    left: 12px;
    gap: 12px;
    transform: translateY(-140%);
  }

  .bar.is-shown {
    transform: none;
  }

  .bar .btn {
    display: none;
  }
}

.sheet {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 80px 28px 40px;
  border: 0;
  background: var(--deep);
  color: var(--cream);
}

.sheet[open] {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sheet::backdrop {
  background: var(--deep);
}

.sheet-links a {
  display: block;
  border-bottom: 1px solid rgb(243 236 220 / 15%);
  font: 400 2.375rem/1.4 var(--display);
  text-decoration: none;
}

.sheet .btn {
  margin-top: 26px;
  font-size: 1rem;
}

.sheet-close {
  position: absolute;
  top: 16px;
  right: 24px;
  display: block;
}

/* 5. Prices ------------------------------------------------------------- */
.prices {
  margin-top: -1px;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: var(--paper);
  box-shadow: 0 -30px 70px rgb(0 0 0 / 28%);
  color: var(--ink);
}

.prices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(100vh, 980px);
}

.prices-media {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--deep);
}

.prices-media img {
  position: absolute;
  top: -7%;
  left: 0;
  width: 100%;
  height: 114%;
  object-fit: cover;
  object-position: 30% 50%;
}

/* Window light: a warm shaft of sun that crosses the photo as you scroll. */
.sun {
  position: absolute;
  inset: -20%;
  z-index: 2;
  background: linear-gradient(112deg, transparent 30%, rgb(255 214 150 / 0%) 34%, rgb(255 214 150 / 80%) 44%, rgb(255 238 205 / 95%) 50%, rgb(255 214 150 / 75%) 56%, rgb(255 214 150 / 0%) 66%, transparent 70%);
  filter: blur(18px);
  mix-blend-mode: soft-light;
  opacity: var(--sun-o, 0);
  transform: translateX(var(--sun-x, -30%));
  pointer-events: none;
}

.prices-copy {
  align-self: center;
  max-width: 720px;
  padding: var(--section) var(--gutter);
}

.prices .label {
  color: var(--green-label);
}

.prices .title {
  max-width: 14ch;
  color: var(--emerald);
}

.prices .lede {
  margin: 18px 0 30px;
  color: var(--mute);
}

.tabs {
  display: flex;
  gap: 30px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--rule-dark);
}

.tab {
  position: relative;
  min-height: 44px;
  padding: 0 0 14px;
  border: 0;
  background: none;
  color: var(--mute);
  font-weight: 400;
  font-size: 0.94rem;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.tab[aria-selected="true"] {
  color: var(--emerald);
}

.tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--emerald);
}

/* Without the script every list shows, each under its own heading. */
.panel-title {
  margin: 34px 0 4px;
  color: var(--emerald);
  font: 400 1.75rem/1.1 var(--display);
}

.tabs[hidden] {
  display: none;
}

.js .panel-title {
  display: none;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid rgb(14 74 58 / 12%);
}

.price-name {
  font-weight: 400;
  font-size: 1.06rem;
}

.price-name small {
  display: block;
  margin-top: 2px;
  color: var(--mute);
  font-weight: 300;
  font-size: 0.875rem;
}

.price-amount {
  color: var(--emerald);
  font: 400 1.75rem/1 var(--display);
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}

.price-amount .from {
  margin-right: 6px;
  color: var(--mute);
  font: 300 0.82rem/1 var(--text);
  letter-spacing: 0.04em;
}

.price-amount.is-ask {
  color: var(--mute);
  font: 400 0.9rem/1.2 var(--text);
  letter-spacing: 0.02em;
}

.price-notes {
  margin-top: 18px;
  color: var(--mute);
  font-size: 0.875rem;
}

.price-notes li + li {
  margin-top: 4px;
}

.prices-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}

.prices-foot p {
  max-width: 30ch;
  color: var(--mute);
  font-size: 0.85rem;
}

@media (width <= 860px) {
  .prices-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .prices-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .prices-media img {
    object-position: 50% 62%;
  }

  .prices-copy {
    padding: 48px 22px 64px;
  }

  .tabs {
    gap: 22px;
  }

  .price-amount {
    font-size: 1.5rem;
  }
}

/* 6. The salon ---------------------------------------------------------- */
.salon {
  background: var(--deep);
}

.salon .label {
  color: var(--cream-mute);
}

.salon .title {
  font-size: clamp(2.5rem, 4.2vw, 4rem);
}

.salon .lede {
  max-width: 38ch;
  margin-top: 20px;
  color: var(--cream-soft);
}

.salon-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(100vh, 820px);
}

.salon-copy {
  place-self: center end;
  width: 100%;
  max-width: 720px;
  padding: var(--section) var(--gutter);
}

.salon-photo {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.salon-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--zoom, 1));
}

@media (width <= 860px) {
  .salon-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .salon-copy {
    justify-self: stretch;
    padding: 72px 22px 56px;
  }

  .salon-photo {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

/* 7. Team and reviews --------------------------------------------------- */
.team {
  background: var(--paper);
  color: var(--ink);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(100vh, 900px);
}

.team-copy {
  place-self: center end;
  width: 100%;
  max-width: 720px;
  padding: var(--section) var(--gutter);
}

.team .label {
  color: var(--green-label);
}

.team .title {
  color: var(--emerald);
}

.team .lede {
  margin: 18px 0 34px;
  color: var(--mute);
}

.people {
  border-top: 1px solid var(--rule-dark);
}

.people li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule-dark);
}

.people-initial {
  display: grid;
  flex: 0 0 56px;
  place-items: center;
  height: 56px;
  border: 1px solid rgb(14 74 58 / 35%);
  color: var(--emerald);
  font: 400 1.625rem/1 var(--display);
}

.people b {
  display: block;
  color: var(--emerald);
  font: 400 1.75rem/1.1 var(--display);
}

.people small {
  display: block;
  margin-top: 4px;
  color: var(--mute);
  font-size: 0.9rem;
}

.reviews {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--deep);
  color: var(--cream);
}

.reviews-photo {
  position: absolute;
  inset: -6% 0;
  background: url("../img/salon.jpg") center / cover;
  filter: saturate(0.85);
}

.reviews-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgb(10 51 41 / 90%), rgb(10 51 41 / 80%) 55%, rgb(6 30 24 / 92%));
}

.reviews-in {
  position: relative;
  max-width: 640px;
  padding: clamp(64px, 7vw, 120px) clamp(22px, 6vw, 110px);
}

.score {
  color: var(--neon);
  font: 200 clamp(5.5rem, 9vw, 8.625rem) / 1.15 var(--text);
  letter-spacing: -0.04em;
  text-shadow: 0 0 40px rgb(255 236 170 / 18%);
}

.score-sub {
  margin: 12px 0 40px;
  color: #e6dccb;
  font-size: 0.94rem;
  letter-spacing: 0.04em;
}

.quote {
  padding: 20px 0;
  border-top: 1px solid rgb(243 236 220 / 22%);
}

.quote p {
  font: 400 clamp(1.375rem, 1.9vw, 1.75rem) / 1.2 var(--display);
}

.quote footer {
  margin-top: 12px;
  color: var(--cream-mute);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (width <= 860px) {
  .team-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .team-copy {
    justify-self: stretch;
    padding: 72px 22px 56px;
  }

  .reviews-in {
    padding: 64px 22px;
  }
}

/* 8. Good to know ------------------------------------------------------- */
.know {
  padding: clamp(80px, 10vw, 150px) 0;
  background: var(--cream);
  color: var(--ink);
}

.know-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(36px, 7vw, 120px);
  align-items: start;
  width: min(1240px, 100% - 48px);
  margin: 0 auto;
}

.know .label {
  color: var(--green-label);
}

.know .title {
  color: var(--emerald);
}

.know .lede {
  max-width: 40ch;
  margin: 18px 0 40px;
  color: var(--mute);
}

.voucher {
  position: relative;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 26px;
  align-items: center;
  padding: 34px 36px;
  overflow: hidden;
  background: var(--emerald) linear-gradient(135deg, #0e4a3a, #13604b 55%, #0b3d30);
  color: var(--cream);
}

.voucher img {
  width: 86px;
  height: auto;
}

.voucher-kicker {
  color: #d8c99a;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.voucher-title {
  margin: 8px 0 4px;
  font: 400 1.875rem/1.1 var(--display);
}

.voucher-sub {
  color: var(--cream-soft);
  font-size: 0.9rem;
}

.voucher-sheen {
  position: absolute;
  inset: -50%;
  background: linear-gradient(105deg, transparent 42%, rgb(255 240 200 / 16%) 50%, transparent 58%);
  transform: translateX(var(--sheen-x, -30%));
  pointer-events: none;
}

.rules > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--rule-dark);
}

.rules > div:last-child {
  border-bottom: 1px solid var(--rule-dark);
}

.rules dt {
  color: var(--emerald);
  font: 400 1.625rem/1.1 var(--display);
}

.rules dd {
  color: var(--ink-soft);
}

@media (width <= 860px) {
  .know-grid {
    grid-template-columns: 1fr;
  }

  .rules > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .voucher {
    grid-template-columns: 62px 1fr;
    gap: 18px;
    padding: 26px 22px;
  }

  .voucher img {
    width: 62px;
  }
}

/* 9. Visit -------------------------------------------------------------- */
.visit {
  background: var(--deep);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(100vh, 880px);
}

.visit-copy {
  place-self: center end;
  width: 100%;
  max-width: 720px;
  padding: var(--section) var(--gutter);
}

.visit .label {
  color: var(--cream-mute);
}

.visit .title {
  font-size: clamp(2.625rem, 4.6vw, 4.25rem);
  line-height: 1.12;
}

.visit-town {
  margin: 14px 0 34px;
  color: var(--cream-soft);
  font-size: 1.06rem;
  font-style: normal;
}

.contact,
.hours {
  width: 100%;
  border-top: 1px solid var(--rule-light);
}

.contact > div,
.hours tr {
  border-bottom: 1px solid var(--rule-light);
}

.contact > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 4px 0;
}

.contact dt,
.hours th,
.hours-title {
  color: var(--cream-mute);
  font-weight: 300;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact a {
  display: inline-block;
  padding: 11px 0;
  overflow-wrap: anywhere;
  text-underline-offset: 5px;
  text-decoration-color: rgb(243 236 220 / 40%);
}

.hours-title {
  margin: 34px 0 12px;
}

.hours {
  margin-bottom: 36px;
  border-collapse: collapse;
  text-align: left;
}

.hours th,
.hours td {
  padding: 13px 0;
  vertical-align: baseline;
}

.hours th {
  width: 128px;
}

.hours small {
  display: block;
  color: #b9ae9c;
  font-size: 0.875rem;
}

.hours .is-today th,
.hours .is-today td {
  color: var(--neon);
}

.visit-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* The photo fills one screen and stays put while the details scroll past,
   so the whole shopfront and its sign are always in frame. */
.visit-photo {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.visit-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%; /* keeps the whole sign in frame */
}

@media (width <= 860px) {
  .visit-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .visit-copy {
    justify-self: stretch;
    padding: 72px 22px 56px;
  }

  .visit-photo {
    position: relative;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .contact > div {
    grid-template-columns: 90px 1fr;
  }

  .hours th {
    width: 124px;
  }
}

/* 10. Footer ------------------------------------------------------------ */
.foot {
  padding: 40px 0;
  background: var(--deepest);
  color: #b9ae9c;
  font-size: 0.85rem;
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  width: min(1240px, 100% - 48px);
  margin: 0 auto;
}

.foot img {
  width: 44px;
  height: auto;
}

.foot address {
  font-style: normal;
}

.foot a {
  display: inline-block;
  padding: 12px 0;
  text-underline-offset: 4px;
}

/* 11. Motion ------------------------------------------------------------ */

/* Stagger steps for reveals, and the order of rows in a price list. */
.d1 { --d: 0.1s; }
.d2 { --d: 0.2s; }
.d3 { --d: 0.3s; }
.price:nth-child(2) { --r: 1; }
.price:nth-child(3) { --r: 2; }
.price:nth-child(4) { --r: 3; }
.price:nth-child(5) { --r: 4; }
.price:nth-child(6) { --r: 5; }
.price:nth-child(7) { --r: 6; }
.price:nth-child(8) { --r: 7; }

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .hero-bloom {
    animation: breathe 9s ease-in-out infinite alternate;
  }

  /* Reveals only apply once the script has started (it adds .js). */
  .js [data-rv] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s);
  }

  .js [data-rv].is-in {
    opacity: 1;
    transform: none;
  }

  .js .title span {
    opacity: 0;
    transform: translateY(60%);
    transition: transform 1.2s cubic-bezier(0.16, 0.84, 0.2, 1), opacity 0.8s;
  }

  .js .title span:nth-child(2) {
    transition-delay: 0.09s;
  }

  .js .title.is-in span {
    opacity: 1;
    transform: none;
  }

  .js .price {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.8s ease calc(var(--r, 0) * 70ms + 0.3s), transform 0.9s var(--ease-out) calc(var(--r, 0) * 70ms + 0.3s);
  }

  .js .panels.is-in .price {
    opacity: 1;
    transform: none;
  }

  .js .panel:not([hidden]) {
    animation: panel-in 0.6s ease;
  }

  /* The prices photo opens from a framed window to full bleed. */
  .js .prices-media {
    clip-path: inset(var(--clip, 0%) round var(--round, 0));
  }

  .js .prices-media img {
    transform: translateY(var(--shift, 0%)) scale(var(--zoom, 1));
  }

  .card,
  .hero-photo,
  .hero-bloom,
  .reviews-photo,
  .salon-photo img {
    will-change: transform;
  }
}

@keyframes breathe {
  from { opacity: 0.2; }
  to { opacity: 0.3; }
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media print {
  .hero {
    position: static;
    height: auto;
    min-height: 0;
  }

  .fan,
  .bar,
  .sun,
  .menu-btn {
    display: none;
  }
}

/* 12. Page not found ---------------------------------------------------- */
.lost {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px 24px;
  text-align: center;
}

.lost img {
  width: 96px;
  height: auto;
}

.lost h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
}

.lost .lede {
  color: var(--cream-soft);
}
