:root {
  color-scheme: light;
  --ink: #28232a;
  --rose: #e85d8f;
  --aqua: #1a9da1;
  --violet: #7c5bc9;
  --citrus: #b7bd31;
  --cream: #fff7ee;
  --paper: #ffffff;
  --muted: #746a78;
  --line: rgba(40, 35, 42, 0.14);
  --shadow: 0 22px 48px rgba(40, 35, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(232, 93, 143, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(26, 157, 161, 0.08) 1px, transparent 1px),
    var(--cream);
  background-size: 34px 34px;
  font-family: "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.color-rail {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  height: 8px;
}

.color-rail span:nth-child(1) {
  background: var(--rose);
}

.color-rail span:nth-child(2) {
  background: var(--aqua);
}

.color-rail span:nth-child(3) {
  background: var(--citrus);
}

.color-rail span:nth-child(4) {
  background: var(--violet);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(200px, auto) 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(40, 35, 42, 0.12);
  background: rgba(255, 247, 238, 0.94);
  backdrop-filter: blur(18px);
}

.site-header .header-cta {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  justify-self: end;
}

.site-header .brand {
  grid-column: 1;
  grid-row: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 950;
}

.brand strong {
  display: block;
  font-size: 22px;
  letter-spacing: 0;
}

.brand span span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-board {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.nav-board a,
.button,
.gallery-lock {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(40, 35, 42, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
}

.nav-board a:nth-child(2n) {
  border-color: rgba(26, 157, 161, 0.26);
}

.nav-board a:nth-child(3n) {
  border-color: rgba(232, 93, 143, 0.28);
}

.nav-board a[aria-current="page"] {
  background: var(--rose);
  color: #ffffff;
}

.header-cta,
.button {
  border-color: var(--aqua);
  background: var(--aqua);
  color: #ffffff;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.14);
}

.button.alt {
  border-color: rgba(232, 93, 143, 0.3);
  background: #ffffff;
  color: var(--rose);
}

.gallery-lock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(40, 35, 42, 0.22);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 640px;
  display: grid;
  align-items: end;
  padding: 116px max(22px, calc((100vw - 1180px) / 2)) 70px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(40, 35, 42, 0.86), rgba(232, 93, 143, 0.55) 48%, rgba(26, 157, 161, 0.16)),
    var(--hero-image, url("https://images.unsplash.com/photo-1604654894610-df63bc536371?auto=format&fit=crop&w=1800&q=80")) center / cover;
  color: #ffffff;
}

.hero:not(.nail-hero) {
  min-height: 540px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(40, 35, 42, 0.78), rgba(232, 93, 143, 0.42) 45%, rgba(26, 157, 161, 0.2)),
    var(--hero-image, url("https://images.unsplash.com/photo-1632345031435-8727f6897d53?auto=format&fit=crop&w=1800&q=80")) center / cover;
}

.hero:not(.nail-hero) .hero-copy {
  padding: 20px 0 20px 22px;
  border-left: 10px solid var(--rose);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 40%;
  background: linear-gradient(0deg, rgba(40, 35, 42, 0.82), transparent);
}

.hero-copy {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 16px;
  color: #f8ee99;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: 72px;
  line-height: 0.96;
}

h2 {
  color: var(--ink);
  font-size: 48px;
  line-height: 1.05;
}

h3 {
  font-size: 22px;
}

.hero p:not(.eyebrow),
.lead {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section {
  padding: 76px max(22px, calc((100vw - 1180px) / 2));
}

.section.white {
  background: #ffffff;
}

.section.dark {
  background: var(--ink);
  color: #ffffff;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading p,
.tile p,
.menu-card p,
.art-card p,
.party-card p,
.step p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.dark h2,
.dark h3 {
  color: #ffffff;
}

.dark .section-heading p,
.dark .tile p {
  color: rgba(255, 255, 255, 0.72);
}

.tile-grid,
.menu-grid,
.art-grid,
.party-grid,
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tile,
.menu-card,
.art-card,
.party-card,
.step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  padding: 22px;
}

.dark .tile {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.tile strong,
.menu-card strong,
.art-card strong,
.party-card strong,
.step strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 18px;
}

.dark .tile strong {
  color: #ffffff;
}

.studio-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 1.18fr);
  gap: 22px;
  align-items: stretch;
}

.studio-strip img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.menu-card {
  position: relative;
  overflow: hidden;
}

.menu-card::before {
  content: "";
  display: block;
  width: 64px;
  height: 8px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--rose);
}

.menu-card:nth-child(2)::before,
.menu-card:nth-child(5)::before {
  background: var(--aqua);
}

.menu-card:nth-child(3)::before,
.menu-card:nth-child(6)::before {
  background: var(--citrus);
}

.price {
  color: var(--violet);
  font-size: 30px;
  font-weight: 950;
}

.art-card {
  padding: 0;
  overflow: hidden;
}

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

.art-card div {
  padding: 20px;
}

.membership-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 24px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 28px;
  box-shadow: var(--shadow);
}

.perk-list {
  display: grid;
  gap: 12px;
}

.perk-list div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
}

.perk-list code {
  display: grid;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--violet);
  color: #ffffff;
  font-family: inherit;
  font-weight: 950;
}

.booking-box {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.56fr);
  gap: 26px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.booking-box .step-grid {
  grid-template-columns: 1fr;
  align-content: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  min-height: 44px;
  border: 1px solid rgba(40, 35, 42, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 26px max(22px, calc((100vw - 1180px) / 2));
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer a {
  color: #ffffff;
  font-weight: 900;
}

.nav-board {
  position: sticky;
  top: 0;
  grid-column: 1 / -1;
  grid-row: 2;
  z-index: 19;
  width: 100%;
  transform: none;
  justify-content: center;
  padding: 8px;
  border: 1px solid rgba(40, 35, 42, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(40, 35, 42, 0.18);
  backdrop-filter: blur(18px);
}

.gallery-lock {
  bottom: 18px;
}

.nav-board a {
  min-width: 94px;
}

.nail-hero {
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.58fr);
  gap: 28px;
  align-items: center;
}

.nail-lookbook {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-self: stretch;
}

.nail-lookbook img {
  width: 100%;
  object-fit: cover;
  border: 4px solid #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.nail-lookbook img:nth-child(1) {
  grid-row: span 2;
  height: 500px;
}

.nail-lookbook img:nth-child(2),
.nail-lookbook img:nth-child(3) {
  height: 244px;
}

.polish-editorial {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0 max(22px, calc((100vw - 1180px) / 2)) 78px;
}

.polish-editorial span {
  display: grid;
  min-height: 120px;
  place-items: center;
  padding: 18px;
  color: #ffffff;
  font-weight: 950;
  text-align: center;
}

.polish-editorial span:nth-child(1) {
  background: var(--rose);
}

.polish-editorial span:nth-child(2) {
  background: var(--aqua);
}

.polish-editorial span:nth-child(3) {
  background: var(--violet);
}

.polish-editorial span:nth-child(4) {
  background: var(--ink);
}

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

  .site-header .brand,
  .site-header .header-cta,
  .nav-board {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .nav-board {
    top: 0;
    justify-content: flex-start;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 40px;
  }

  .studio-strip,
  .nail-hero,
  .membership-board,
  .booking-box {
    grid-template-columns: 1fr;
  }

  .nail-lookbook img:nth-child(1),
  .nail-lookbook img:nth-child(2),
  .nail-lookbook img:nth-child(3) {
    grid-row: auto;
    height: 260px;
  }

  .tile-grid,
  .menu-grid,
  .art-grid,
  .party-grid,
  .step-grid,
  .polish-editorial {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .header-cta {
    justify-self: start;
  }

  .nav-board a {
    flex: 1 1 42%;
  }

  .hero {
    min-height: 560px;
    padding-top: 84px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }

  .tile-grid,
  .menu-grid,
  .art-grid,
  .party-grid,
  .step-grid,
  .nail-lookbook,
  .polish-editorial,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .studio-strip img,
  .art-card img {
    height: 290px;
  }
}

.site-header {
  grid-template-columns: minmax(250px, auto) minmax(0, 1fr) auto;
  align-items: start;
  row-gap: 12px;
}

.nav-board {
  border-color: color-mix(in srgb, var(--tray-color, var(--rose)) 28%, rgba(40, 35, 42, 0.12));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tray-color, var(--rose)) 12%, #ffffff), #ffffff);
}

.nav-board a {
  position: relative;
  overflow: hidden;
  min-width: 104px;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nav-board a::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--polish, var(--rose));
}

.nav-board a:hover {
  transform: translateY(-2px);
  border-color: var(--polish, var(--rose));
}

.polish-reveal {
  opacity: 0;
  transform: translateY(20px) rotate(-0.6deg);
  transition: opacity 520ms ease var(--delay, 0ms), transform 520ms ease var(--delay, 0ms), box-shadow 180ms ease;
}

.polish-reveal.polish-in {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.polish-reveal:hover {
  box-shadow: 0 18px 40px rgba(40, 35, 42, 0.14);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px 16px;
  }

  .site-header .brand,
  .site-header .header-cta,
  .nav-board {
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
  }

  .site-header .header-cta {
    justify-self: stretch;
  }

  .nav-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
    justify-content: stretch;
  }

  .nav-board a {
    min-width: 0;
    width: 100%;
    padding: 0 8px;
    font-size: 12px;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
  }

  .nav-board a::before {
    width: 7px;
    height: 7px;
    margin-right: 6px;
  }
}

@media (max-width: 420px) {
  .nav-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gallery-lock {
    position: fixed;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    text-indent: -999px;
  }

  .gallery-lock::before {
    content: "<";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 20px;
    text-indent: 0;
  }
}
